]> git.proxmox.com Git - grub2.git/blob - ChangeLog
* grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
[grub2.git] / ChangeLog
1 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
2
3 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
4 with grub_printf to avoid unnecessary fatal failure.
5
6 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7
8 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
9 (INT_MAX): Likewise.
10 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
11 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
12 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
13 (strcpy): Likewise.
14 (strstr): Likewise.
15 (strchr): Likewise.
16 (strncpy): Likewise.
17 (strcat): Likewise.
18 (strncat): Likewise.
19 (strcoll): Likewise.
20 * include/grub/types.h (GRUB_SHRT_MAX): New define.
21 (GRUB_INT_MAX): Likewise.
22
23 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
24
25 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
26 unexpected error.
27 (optimize_utf8): Likewise.
28 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
29
30 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
31
32 * grub-core/boot/i386/pc/lnxboot.S: Use
33 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
34 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
35 location.
36 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
37 definition.
38 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
39
40 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
41
42 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
43 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
44 now to avoid double free.
45 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
46 hostdisk.
47 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
48 * util/grub-probe.c (escape_of_path): Always return a new copy.
49 (print_full_name): Escape path.
50 (probe): Don't call grub_util_devname_to_ofpath on NULL.
51 Fix hints on abstractions.
52
53 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
54
55 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
56 Don't add "root" line if no compatibility hont is available.
57 Suggested by: Seth Goldberg.
58
59 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
60
61 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
62 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
63 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
64 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
65
66 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
67
68 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
69
70 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
71
72 * util/grub-pe2elf.c (ehdr): Make static.
73 (shdr): Likewise.
74 (num_sections): Likewise.
75 (offset): Likewise.
76
77 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
78
79 Eliminate ofpath limits and possible overflows.
80
81 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
82 (OF_PATH_MAX): Removed.
83 (MAX_DISK_CAT): New const.
84 (find_obppath): Use allocated rather than preallocated buffer.
85 Return result. Argument of_path removed. All users updated.
86 Add missing fdstat.
87 (xrealpath): New function.
88 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
89 Allocate rather than use preallocated buffer. All users updated.
90 (__of_path_common): Use allocated rather than preallocatecd buffer.
91 Return result. Argument of_path removed. All users updated.
92 (vendor_is_ATA): Read only needed part form the file.
93 (check_sas): Allocate depending on contents rather than fixed.
94 (main) [STANDALONE]: Handle NULL result.
95
96 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
97
98 * grub-core/normal/completion.c (iterate_dev): Close the disk.
99
100 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
101
102 Cryptodisk write support.
103
104 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
105 (grub_cryptodisk_decrypt): Moved logic to ...
106 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
107 (grub_cryptodisk_write): Implement.
108 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
109 (grub_util_fd_write): ... this. Make global.
110 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
111
112 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
113
114 * include/grub/list.h (grub_list_remove): Don't crash if element is
115 removed twice.
116
117 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
118
119 Rename ofconsole to console.
120
121 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
122 as sysnonym to console.
123 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
124 * grub-core/term/ieee1275/console.c: ... this. All users updated.
125 Rename grub_ofconsole_ to grub_console_. All users updated
126 (grub_console_term_output): Rename "ofconsole" to "console".
127 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
128 as "console".
129
130 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
131
132 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
133 handling.
134 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
135 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
136 GRUB_DISK_DEVICE_FILE_ID.
137
138 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
139
140 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
141 and improve performance.
142
143 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
144
145 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
146 missing ieee1275/ prefix on whole disk.
147
148 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
149
150 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
151 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
152
153 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
154
155 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
156
157 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
158
159 Merge common RAID and LVM logic to an abstract diskfilter.
160 Add LDM support using the same framework.
161
162 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
163 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
164 (libgrubmods): Remove grub-core/disk/raid.c and
165 grub-core/partmap/gpt.c.
166 * grub-core/Makefile.core.def (ldm): New module.
167 (raid): Renamed to diskfilter. All users updated.
168 * grub-core/disk/raid.c: Moved to ...
169 * grub-core/disk/diskfilter.c: ... here.
170 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
171 (lv_num): New var.
172 (find_array): Renamed to ...
173 (find_lv): ... this. Support multi-LV. Skip nameless LVs
174 (grub_is_array_readable): Renamed to ...
175 (grub_is_lv_readable): ... this. Support multinode hierarchy.
176 (insert_array): New argument id.
177 (is_node_readable): New function.
178 (scan_device): Rename to ...
179 (scan_disk): .. this. Restrict to one disk.
180 (scan_devices): New function.
181 (grub_diskfilter_iterate): Support multi-LV.
182 Skip invisible and nameless LVs.
183 (grub_diskfilter_memberlist): Support multi-LV.
184 (grub_diskfilter_read_node): New function.
185 (grub_raid_read): Most of logic moved to ...
186 (read_segment): ... here
187 (read_lv): New function.
188 (grub_diskfilter_get_vg_by_uuid): New function.
189 (grub_diskfilter_make_raid): Likewise.
190 * grub-core/disk/ldm.c: New file.
191 * grub-core/disk/lvm.c (vg_list): Removed.
192 (lv_count): Likewise.
193 (scan_depth): Likewise.
194 (is_lv_readable): Likewise.
195 (grub_lvm_getvalue): Advance pointer past the number.
196 (find_lv): Removed.
197 (do_lvm_scan): Refactored into ...
198 (grub_lvm_detect): ... this. Support raid.
199 (grub_lvm_iterate): Removed.
200 (grub_lvm_memberlist): Likewise.
201 (grub_lvm_open): Likewise.
202 (grub_lvm_close): Likewise.
203 (read_lv): Likewise.
204 (read_node): Likewise.
205 (is_node_readable): Likewise.
206 (is_lv_readable): Likewise.
207 (grub_lvm_read): Likewise.
208 (grub_lvm_write): Likewise.
209 (grub_lvm_dev): Use diskfilter
210 (GRUB_MOD_INIT): Likewise.
211 (GRUB_MOD_FINI): Likewise.
212 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
213 new interface.
214 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
215 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
216 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
217 grub_diskfilter_read_node.
218 Fix a bug with xor.
219 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
220 grub_diskfilter_read_node.
221 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
222 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
223 (grub_disk_dev_iterate): Move from here...
224 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
225 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
226 Make global.
227 (grub_hostdisk_find_partition_start): Likewise.
228 (grub_hostdisk_os_dev_to_grub_drive): New function.
229 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
230 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
231 * util/getroot.c (make_device_name): ... here.
232 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
233 Move to ...
234 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
235 * grub-core/kern/emu/hostdisk.c
236 (convert_system_partition_to_system_disk): Move to ...
237 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
238 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
239 * util/getroot.c (device_is_wholedisk): ... here.
240 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
241 * util/getroot.c (find_system_device): ... here.
242 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
243 Move to ...
244 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
245 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
246 Move to ...
247 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
248 Handle LDM.
249 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
250 Move to ...
251 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
252 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
253 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
254 DISKFILTER.
255 * include/grub/raid.h: Renamed to ...
256 * include/grub/diskfilter.h: ... this.
257 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
258 (GRUB_RAID_LAYOUT_*): Make into array.
259 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
260 (grub_diskfilter_vg): New struct.
261 (grub_diskfilter_pv_id): Likewise.
262 (grub_raid_member): Removed.
263 (grub_raid_array): Likewise.
264 (grub_diskfilter_pv): New struct.
265 (grub_diskfilter_lv): Likewise.
266 (grub_diskfilter_segment): Likewise.
267 (grub_diskfilter_node): Likewise.
268 (grub_diskfilter_get_vg_by_uuid): New proto.
269 (grub_raid_register): Inline.
270 (grub_diskfilter_unregister): Likewise.
271 (grub_diskfilter_make_raid): New proto.
272 (grub_diskfilter_vg_register): Likewise.
273 (grub_diskfilter_read_node): Likewise.
274 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
275 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
276 (grub_util_is_ldm): Likewise.
277 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
278 (grub_hostdisk_find_partition_start): Likewise.
279 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
280 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
281 New definition.
282 (grub_gpt_partition_map_iterate): New proto.
283 * include/grub/lvm.h (grub_lvm_vg): Removed.
284 (grub_lvm_pv): Likewise.
285 (grub_lvm_lv): Likewise.
286 (grub_lvm_segment): Likewise.
287 (grub_lvm_node): Likewise.
288 * util/getroot.c [...]
289 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
290 (probe_abstraction): Likewise.
291 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
292 (main): Remove dead logic.
293
294 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
295
296 Simplify root device discover and don't fail when trying to open
297 incorrect devices.
298
299 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
300 function.
301 (get_diskname_from_path): Likewise.
302 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
303 of iterating.
304
305 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
306
307 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
308
309 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
310
311 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
312 pastthe end.
313
314 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
315
316 * util/grub-install.in: Add missing \.
317 Reported by: gentoofan
318
319 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
320
321 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
322 (direct_read): Use correct compressed size.
323 (grub_squash_read_data): Likewise.
324
325 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
326
327 * docs/grub.texi (Platform limitations): New section.
328 (Platform-specific operations): Likewise.
329 * docs/grub-dev.texi (Porting): Likewise.
330
331 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
332
333 IEEE1275 disk write support.
334
335 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
336 const void *.
337 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
338 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
339 and seek loginc to ...
340 (grub_ofdisk_prepare): ... here.
341 (grub_ofdisk_write): Implement.
342
343 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
344
345 ARC disk write support.
346
347 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
348 (reopen): New argument writable. All users updated.
349 Handle required access mode.
350 (grub_arcdisk_write): Implement.
351 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
352 (grub_arc_firmware_vector): Make buffer to write a const buffer.
353
354 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
355
356 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
357 (read_sblock): Don't attempt to read superblocks outside the disk size.
358
359 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
360
361 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
362 first superblock to find the second one when possible.
363
364 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
365
366 * util/grub-install.in: Fix an ARC bug.
367 Print a warning if no platform-specific setup is available.
368
369 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
370
371 Use static allocation rather than scratch pointer in reed_solomon.
372 It decreases its size significantly and avoids a variable in .text.
373
374 * grub-core/lib/reed_solomon.c (scratch): Removed.
375 (chosenstat): New const or static array.
376 (sigma): Likewise.
377 (errpot): Likewise.
378 (errpos): Likewise.
379 (sy): Likewise.
380 (mstat): Likewise.
381 (errvals): Likewise.
382 (eqstat): Likewise.
383 (pol_evaluate): Replace x with log_x argument. All users updated.
384 (syndroms): Removed.
385 (gauss_solve): Use statically allocated arrays.
386 (rs_recover): Likewise.
387 Calculate syndroms directly.
388 (decode_block): Use statically allocated arrays.
389 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
390 (main) [TEST]: Allow -DTEST -DSTANDALONE.
391
392 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
393
394 Eliminate fixed limit on reed solomon decoder length.
395
396 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
397 rather than hardcoding the address.
398 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
399 no_reed_solomon_length.
400 Move gate_a20 to no-reed-solomon part.
401 Don't force a particular size of no reed-solomon part.
402 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
403 Removed.
404 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
405 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
406
407 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
408
409 * grub-core/commands/wildcard.c (match_files): Handle filenames
410 without explicit device.
411 (wildcard_expand): Don't add explicit device if not already present.
412 * tests/grub_script_echo1.in: Add a new expansion test.
413
414 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
415
416 Replace single-linked with double-linked lists. It results in more
417 compact and more efficient code.
418
419 * grub-core/kern/list.c (grub_list_push): Moved from here ...
420 * include/grub/list.h (grub_list_push): ... to here. Set prev.
421 (grub_list_remove): Moved from here ...
422 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
423 (grub_prio_list_insert): Set prev.
424 * include/grub/list.h (grub_list): Add prev. All users updated.
425
426 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
427
428 Handle newer autotools. Add some missing quotes while on it.
429
430 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
431 (pkglib_DATA): Move grub-mkconfig_lib from here ...
432 (pkgdata_DATA): ... here.
433 * Makefile.util.def (update-grub_lib): Removed.
434 * conf/Makefile.common (pkglib_DATA): Removed.
435 (pkglib_SCRIPTS): Likewise.
436 (pkgdata_DATA): New variable.
437 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
438 needed.
439 Add missing quotes.
440 Remove unused variable while on it.
441 * tests/util/grub-shell.in: Likewise.
442 * util/grub-install.in: Likewise.
443 * util/grub-mkconfig.in: Likewise.
444 * util/grub-mknetdir.in: Likewise.
445 * util/grub-mkrescue.in: Likewise.
446 * util/grub-mkstandalone.in: Likewise.
447 * util/grub.d/00_header.in: Likewise.
448 * util/grub.d/10_hurd.in: Likewise.
449 * util/grub.d/10_illumos.in: Likewise.
450 * util/grub.d/10_kfreebsd.in: Likewise.
451 * util/grub.d/10_linux.in: Likewise.
452 * util/grub.d/10_netbsd.in: Likewise.
453 * util/grub.d/10_windows.in: Likewise.
454 * util/grub.d/20_linux_xen.in: Likewise.
455 * util/grub.d/30_os-prober.in: Likewise.
456 * util/update-grub_lib.in: Removed.
457
458 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
459
460 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
461 a workaround for intel problem.
462
463 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
464 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
465 2012-01-23 pfsmorigo
466
467 * util/grub-install.in: Support dd'in into PreP partition.
468 * util/grub-probe.c (probe): Support discovering partition type.
469 (main): Support -t msdos_parttype.
470
471 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
472
473 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
474 infinite recursion using counter.
475 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
476 init to skip it if the magic check fails.
477 (dec_stream_header): Init s->crc32.
478
479 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
480 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
481 2012-01-22 Richard Laager <rlaager@wiktel.com>
482
483 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
484 All users updated.
485 (find_bestub): Determine correct size.
486 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
487 (scan_disk): Align the size down.
488 Call check pool before find_bestub to have ashift.
489
490 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
491
492 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
493 dprintf in no-malloc zone.
494
495 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
496
497 * configure.ac: Add back in test for limits.h.
498
499 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
500
501 Support 4K-sector NTFS.
502
503 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
504 (grub_ntfs_data): Remove blocksize.
505 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
506 Remove data argument. All users updated.
507
508 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
509
510 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
511 being in .text to avoid dprel references.
512 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
513 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
514 (grub_arch_highmemsize): Likewise.
515 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
516 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
517 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
518
519 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
520
521 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
522
523 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
524 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
525
526 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
527
528 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
529 GRUB_UTIL.
530 (grub_set_datetime_cmos): Likewise.
531
532 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
533
534 Make XZ compression parameters dependent on target and not host CPU.
535
536 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
537 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
538
539 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
540
541 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
542 set but not used variable.
543
544 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
545
546 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
547 created when no uuid support is compiled into mkfs.reiser.
548
549 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
550
551 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
552 (utf8_to_macroman): Do the opposite.
553 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
554
555 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
556
557 * configure.ac: Refise build qemu_mips w/o unifont.
558
559 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
560
561 Eliminate grub_min/grub_max prone to overflow usage.
562
563 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
564 (poll_nonroot_hub): Likewise.
565 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
566 (grub_affs_label): Likewise.
567 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
568 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
569 (grub_hfs_label): Likewise.
570 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
571 * grub-core/fs/zfs/zfs.c (MIN): Remove.
572 (zap_leaf_array_equal): Use grub_size. Remove MIN.
573 (zap_leaf_array_get): Likewise.
574 (dnode_get_path): Likewise.
575 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
576 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
577 * grub-core/script/execute.c (grub_script_break): Likewise.
578 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
579 grub_max.
580 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
581 * include/grub/misc.h (grub_min): Removed.
582 (grub_max): Likewise.
583
584 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
585
586 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
587 direct.inode = 0.
588
589 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
590
591 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
592
593 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
594
595 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
596
597 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
598
599 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
600 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
601
602 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
603
604 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
605 rather than a hack for grub_strncasemap.
606
607 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
608
609 Support multiple initrds
610 Note: part of this was accidently committed in r3739.
611
612 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
613 initrd.
614 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
615 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
616 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
617 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
618 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
619
620 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
621
622 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
623 disks with unknown size.
624 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
625
626 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
627
628 Remove defines pertaining to arbitrary limits not affecting GRUB
629 anymore.
630
631 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
632 (EXT2_MAX_SYMLINKCNT): Likewise.
633 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
634 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
635 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
636 (GRUB_PXE_MAX_BLKSIZE): Likewise.
637 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
638 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
639 (DN_MAX_OBJECT_SHIFT): Likewise.
640 (DN_MAX_OFFSET_SHIFT): Likewise.
641 (DN_MAX_OBJECT): Likewise.
642 (DNODES_PER_LEVEL_SHIFT): Likewise.
643 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
644 (SPA_MAXBLOCKSIZE): Likewise.
645 (SPA_BLOCKSIZES): Likewise.
646 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
647 (MZAP_MAX_BLKSZ): Likewise.
648
649 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
650
651 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
652 handle NULL appropriately.
653 Remove MIN.
654
655 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
656
657 Fix efiemu.
658
659 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
660 cpu/types.h.
661 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
662 * configure.ac: Fix efiemu check.
663
664 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
665
666 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
667 grub_probe.
668 Reported by: adamwill
669
670 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
671
672 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
673
674 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
675
676 Fix handling of wide characters in gfxterm.
677
678 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
679 (clear_char): Likewise.
680 (paint_char): Skip code == NULL chars.
681 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
682
683 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
684
685 * grub-core/normal/charset.c: Move comment to right place.
686
687 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
688
689 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
690 (GRUB_AFFS_FLAG_FFS): Put back where it was.
691 (grub_affs_mount): Revert the correct version checking.
692
693 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
694
695 * docs/grub.texi (Unicode): Mention several other unsupported features.
696
697 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
698
699 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
700 case statements as compile-time one.
701 (direct_read): Prevent spurious warnings.
702 (grub_squash_read_data): Likewise.
703
704 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
705
706 Various squash4 fixes and LZO and XZ support.
707
708 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
709 Add xzembed source files.
710 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
711 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
712 (grub_squash_inode): New subtype long_dir.
713 (SQUASH_TYPE_LONG_DIR): New inode type.
714 (COMPRESSION): New enum.
715 (XZBUFSIZ): New const.
716 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
717 (read_chunk): Use data->decompress.
718 (zlib_decompress): New function.
719 (lzo_decompress): Likewise.
720 (xz_decompress): Likewise.
721 (squash_mount): Set new data fields.
722 (grub_squash_iterate_dir): Handle long dir.
723 (squash_unmount): Free xzdec and xzbuf.
724 (grub_squash_open): Check ino type.
725 (direct_read): Stylistic fixes. Use data->decompress.
726 (grub_squash_read_data): Likewise.
727 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
728 (get_byte): Likewise.
729 (grub_zlib_disk_read): Removed.
730 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
731 (GRUB_POSIX_BOOL_DEFINED): New define.
732 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
733 * grub-core/lib/xzembed/xz.h: Addmissing includes.
734 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
735 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
736
737 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
738
739 Don't override more informative errors.
740
741 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
742 * grub-core/font/font.c (open_section): Likewise.
743 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
744 filename. Don't override errors.
745 (grub_cmd_openbsd_ramdisk): Don't override errors.
746 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
747 (grub_cmd_initrd): Likewise.
748 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
749 (grub_cmd_initrd): Likewise.
750 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
751 (grub_cmd_linux): Likewise.
752 (grub_cmd_initrd): Likewise.
753 (grub_cmd_payload): Likewise.
754 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
755 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
756 (grub_cmd_module): Likewise.
757 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
758 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
759 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
760 (grub_cmd_xnu_mkext): Likewise.
761 (grub_cmd_xnu_ramdisk): Likewise.
762 (grub_xnu_check_os_bundle_required): Likewise.
763 (grub_xnu_load_kext_from_dir): Likewise.
764 (grub_cmd_xnu_kextdir): Likewise.
765 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
766
767 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
768
769 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
770 as 1024 in block size field. Found on one of my test images.
771 Small optimisation while on it.
772
773 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
774
775 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
776 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
777 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
778 performance fixes while on it.
779 (grub_sfs_close): Fix memory leak while on it.
780 (grub_sfs_label): Convert Latin1 to UTF-8.
781
782 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
783
784 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
785 space to avoid overflows.
786 (grub_hfs_label): Convert from macroman to UTF-8.
787
788 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
789
790 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
791
792 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
793
794 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
795
796 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
797
798 * unicode: Import Unicode 6.0 data.
799
800 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
801
802 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
803 outside of range.
804
805 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
806
807 Avoid cutting in the middle of UTF-8 character.
808
809 * include/grub/charset.h (grub_getend): New function.
810 * grub-core/script/function.c (grub_script_function_find): Use
811 grub_getend.
812 * grub-core/normal/completion.c (add_completion): Likewise.
813
814 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
815
816 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
817 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
818 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
819 (GRUB_UNICODE_TAG_END): Likewise.
820 (GRUB_UNICODE_LAST_VALID): Likewise.
821
822 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
823
824 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
825 len and make it smaller. All users updated.
826 * util/import_unicode.py: Put length and not end character.
827 Check length.
828
829 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
830
831 Make better Unicode-compliant and unify some UTF-8 code pathes.
832
833 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
834 valid character.
835 (grub_is_valid_utf8): Use grub_utf8_process.
836 Check resulting code range.
837 (grub_utf8_to_ucs4): Use grub_utf8_process.
838 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
839 valid character.
840
841 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
842
843 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
844
845 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
846
847 * docs/grub.texi (Filesystems): Mention AFS.
848
849 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
850
851 * docs/grub.texi (Filesystems): Clarify restrictions.
852 (Regexp): Mention non-Unicode regexp behaviour.
853 (Other): Mention non-Unicode matching behaviour.
854
855 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
856
857 Make HFS implementation use MacRoman.
858
859 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
860 (macroman): New const array.
861 (macroman_to_utf8): New function.
862 (utf8_to_macroman): Likewise.
863 (grub_hfs_find_dir): Use utf8_to_macroman.
864 (grub_hfs_dir): Use macroman_to_utf8.
865 Set case_insensitive.
866
867 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
868
869 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
870
871 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
872
873 Integrate hints into autogeneration scripts.
874
875 * docs/grub.texi (Filesystems): Add a hostdisk example.
876 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
877 (grub-probe): Add ofpath.
878 * gentpl.py: Remove group nosparc64.
879 * grub-core/commands/search.c (cache_entry): New struct.
880 (cache): New var.
881 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
882 * grub-core/commands/search_wrap.c (options): Add platform-specific
883 hint options.
884 (grub_cmd_search): Handle platform-specific hints.
885 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
886 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
887 (grub_util_biosdisk_data): Likewise.
888 (grub_util_biosdisk_open): Set device_map.
889 (read_device_map): Handle "" as indication of no map.
890 Set device_map.
891 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
892 (grub_util_biosdisk_get_compatibility_hint): New function.
893 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
894 * include/grub/emu/hostdisk.h
895 (grub_util_biosdisk_get_compatibility_hint): New proto.
896 * util/grub-install.in: Don't call grub-mkdevicemap.
897 Add platform-specific hint to load.cfg.
898 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
899 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
900 hints. Set root preliminary to compatibility hint, not to OS name.
901 * util/grub-probe.c (PRINT_*): Add hints.
902 (print): Make static.
903 (escape_of_path): New function.
904 (guess_bios_drive): Likewise.
905 (guess_efi_drive): Likewise.
906 (guess_baremetal_drive): Likewise.
907 (print_full_name): Likewise.
908 (probe): Handle hints.
909 (main): Likewise.
910 * util/ieee1275/devicemap.c: Removed.
911 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
912 updated.
913 (grub_util_devname_to_ofpath): Return NULL on failure.
914
915 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
916 resource leak.
917 * util/getroot.c (grub_util_pull_device): Fix memory leak.
918
919 * po/POTFILES.in: Regenerated.
920
921 Allow purely long options
922
923 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
924 (SHORT_ARG_USAGE): Likewise.
925 (grub_arg_show_help): Compare opt with help_options.
926 (parse_option): Receive opt as argument. If makes big simplificatons.
927 All users updated
928
929 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
930
931 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
932 Restructure to avoid warning.
933
934 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
935
936 * util/grub-install.in: Account for possible escaped comma in device
937 name.
938
939 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
940
941 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
942 channel.
943
944 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
945
946 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
947 allocation and zero-setting.
948 (grub_ieee1275_get_devname): Check that alias is complete.
949
950 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
951
952 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
953 unaligned segments.
954
955 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
956
957 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
958 prefix.
959 (grub_ofdisk_open): Check and discard ieee1275 prefix.
960 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
961 Add ieee1275 prefix.
962
963 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
964
965 * docs/grub.texi (Filesystems): Update.
966
967 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
968
969 Support odc, newc and bigendian cpio formats.
970
971 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
972 * grub-core/Makefile.core.def (newc): New module.
973 (odc): Likewise.
974 (cpio_be): Likewise.
975 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
976 (MAGIC): Likewise.
977 (MAGIC2): Likewise.
978 (head) [MODE_ODC]: Adapt for the format.
979 (head) [MODE_NEWC]: Likewise.
980 (head) [!MODE_*]: Write fields of interest as arrays.
981 (MAGIC_USTAR): Removed.
982 (read_number) [MODE_NEWC]: Change to hex.
983 (read_number) [!MODE_*]: Parse binary arrays.
984 (grub_cpio_find_file): Factor out the code for better structure and
985 always use read_number.
986 (grub_cpio_mount): Use MAGIC and MAGIC2.
987 (grub_cpio_dir): Exit on first hook non-0 return.
988 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
989 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
990 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
991 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
992 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
993 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
994 * grub-core/fs/newc.c: New file.
995 * grub-core/fs/odc.c: Likewise.
996 * grub-core/fs/cpio_be.c: Likewise.
997
998 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
999
1000 Fix handling of tar numbers occupying the whole field.
1001
1002 * grub-core/fs/cpio.c (read_number): New function.
1003 (grub_cpio_find_file): Use read_number instead of strtoull.
1004
1005 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1006
1007 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
1008 occupying the whole field size.
1009
1010 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
1011
1012 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
1013
1014 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1015
1016 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
1017
1018 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
1019
1020 * grub-core/Makefile.core.def (lzma_decompress): Add missing
1021 TARGET_IMG_LDFLAGS.
1022
1023 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1024
1025 * util/getroot.c (ESCAPED_PATH_MAX): New define.
1026 (mountinfo_entry): Increase the field size to take escaping into
1027 account.
1028 (find_root_device_from_libzfs): Add one byte to size of strings for
1029 security.
1030
1031 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1032
1033 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
1034 an assert.
1035 * util/grub-setup.c (setup): Likewise.
1036
1037 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
1038
1039 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
1040 _LzmaDecodeA.
1041
1042 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1043
1044 * docs/grub.texi (Internationalisation): New section.
1045
1046 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
1047
1048 * docs/grub.texi (Loopback booting): New section.
1049
1050 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
1051
1052 * util/grub-mkstandalone.in: Fix minor typo errors.
1053
1054 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
1055
1056 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
1057
1058 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
1059 net/icmp.c and net/icmp6.c.
1060 (http): New module.
1061 (priority_queue): Likewise.
1062 * grub-core/io/bufio.c: Rewritten.
1063 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
1064 TYPE_WITH_CONFIGFILE_OPTION.
1065 (legacy_commands): Add bootp and dhcp.
1066 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
1067 (grub_legacy_parse): Likewise.
1068 * grub-core/lib/priority_queue.c: New file.
1069 * grub-core/net/arp.c: Add missing license header.
1070 (arp_find_entry): Removed.
1071 (arp_find_entry): Likewise.
1072 (grub_net_arp_resolve): Rename to ...
1073 (grub_net_arp_send_request): ...this.
1074 (grub_net_arp_receive): New card argument.
1075 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
1076 Set router and DNS server.
1077 (grub_net_configure_by_dhcp_ack): Handle routing information.
1078 (grub_cmd_bootp): Set checksum.
1079 (grub_bootp_init): Remove net_dhcp.
1080 * grub-core/net/dns.c: New file.
1081 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
1082 completion.
1083 (get_card_packet): Handle allocation.
1084 (grub_efinet_findcards): Set mtu.
1085 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
1086 (get_card_packet): Handle allocation.
1087 (emucard): Set mtu.
1088 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
1089 (GRUB_MOD_INIT): Set mtu.
1090 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
1091 mtu.
1092 (get_card_packet): Handle allocation.
1093 (grub_ofnet_findcards): Set mtu.
1094 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
1095 assert.
1096 (grub_net_recv_ethernet_packet): Handle IPv6.
1097 * grub-core/net/http.c: New file.
1098 * grub-core/net/icmp.c: Likewise.
1099 * grub-core/net/icmp6.c: Likewise.
1100 * grub-core/net/ip.c (ip6addr): New type.
1101 (ip6hdr): Likewise.
1102 (reassemble): Likewise.
1103 (cmp): New function.
1104 (reassembles): New variable.
1105 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
1106 (id): New variable.
1107 (send_fragmented): New function.
1108 (grub_net_send_ip_packet): Rename to ...
1109 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
1110 Handle non-UDP.
1111 (grub_net_recv_ip_packets): Rename to ...
1112 (handle_dgram): ... this. Check checksum. Handle non-UDP.
1113 (free_rsm): New function.
1114 (free_old_fragments): Likewise.
1115 (grub_net_recv_ip4_packets): New function.
1116 (grub_net_send_ip6_packet): Likewise.
1117 (grub_net_send_ip_packet): Likewise.
1118 (grub_net_recv_ip6_packets): Likewise.
1119 (grub_net_recv_ip_packets): Likewise.
1120 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
1121 (LINK_LAYER_CACHE_SIZE): New const.
1122 (link_layer_find_entry): New function.
1123 (grub_net_link_layer_add_address): Likewise.
1124 (grub_net_link_layer_resolve_check): Likewise.
1125 (grub_net_link_layer_resolve): Likewise.
1126 (grub_net_ipv6_get_slaac): Likewise.
1127 (grub_net_ipv6_get_link_local): Likewise.
1128 (grub_cmd_ipv6_autoconf): Likewise.
1129 (parse_ip): Handle one number representation.
1130 (parse_ip6): New functoion.
1131 (match_net): Handle IPv6.
1132 (grub_net_resolve_address): Handle IPv6 and DNS.
1133 (grub_net_resolve_net_address): Handle IPv6.
1134 (route_cmp): New function.
1135 (grub_net_route_address): Find best route.
1136 (grub_net_addr_to_str): Handle IPv6.
1137 (grub_net_addr_cmp): New function.
1138 (grub_net_add_addr): Register local route.
1139 (print_net_address): Handle net address.
1140 (grub_net_poll_cards): Retransmit TCP.
1141 (grub_net_poll_cards_idle_real): Likewise.
1142 (have_ahead): New function.
1143 (grub_net_seek_real): Use underlying seek.
1144 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
1145 * grub-core/net/tcp.c: New file.
1146 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
1147 (cmp): New function.
1148 (ack): Likewise.
1149 (tftp_receive): Handle unordered input.
1150 (destroy_pq): New function.
1151 (tftp_close): Close pq.
1152 * grub-core/net/udp.c: Put missing license header.
1153 (grub_net_udp_socket): New function.
1154 (udp_socket_register): Likewise.
1155 (grub_net_udp_close): Likewise.
1156 (grub_net_recv_udp_packet): Check checksum.
1157 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
1158 * include/grub/misc.h (grub_memchr): New function.
1159 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
1160 (grub_net_card_driver): Return buf in recv.
1161 (grub_net_slaac_mac_list): New struct.
1162 (grub_network_level_protocol_id): Add ipv6.
1163 (grub_net_network_level_addr): Likewise.
1164 (grub_net_network_level_net_addr): Likewise.
1165 (grub_net_app_protocol): Add seek.
1166 (grub_net_socket): Removed.
1167 (grub_net_sockets): Likewise.
1168 (grub_net_socket_register): Likewise.
1169 (grub_net_socket_unregister): Likewise.
1170 (FOR_NET_SOCKETS): Likewise.
1171 (grub_net_add_addr): Add const.
1172 (GRUB_NET_BOOTP_*): New enum.
1173 (grub_net_addr_cmp): New proto.
1174 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
1175 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
1176 (grub_net_hwaddr_to_str): NEw proto.
1177 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
1178 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
1179 (grub_dns_init): New proto.
1180 (grub_dns_fini): Likewise.
1181 (grub_net_tcp_retransmit): Likewise.
1182 (grub_net_link_layer_add_address): Likewise.
1183 (grub_net_link_layer_resolve_check): Likewise.
1184 (grub_net_link_layer_resolve): Likewise.
1185 (grub_net_dns_lookup): Likewise.
1186 (grub_net_add_dns_server): Likewise.
1187 (grub_net_remove_dns_server): Likewise.
1188 (GRUB_NET_TRIES): New const.
1189 (GRUB_NET_INTERVAL): Likewise.
1190 * include/grub/net/arp.h: Mostly rewritten.
1191 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
1192 * include/grub/net/ip.h: Mostly rewritten.
1193 * include/grub/net/netbuff.h: Indent.
1194 * include/grub/net/tcp.h: New file.
1195 * include/grub/net/udp.h: Mostly rewritten.
1196 * include/grub/priority_queue.h: New file.
1197 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
1198 (grub_swap_bytes64_compile_time): Likewise.
1199 (grub_cpu_to_be16_compile_time): Likewise.
1200 (grub_cpu_to_be32_compile_time): Likewise.
1201 (grub_cpu_to_be64_compile_time): Likewise.
1202 (grub_be_to_cpu64_compile_time): Likewise.
1203
1204 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
1205
1206 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
1207 UINT_TO_PTR with cast.
1208
1209 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1210
1211 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
1212 don't use them.
1213
1214 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1215
1216 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
1217 already there.
1218
1219 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1220
1221 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
1222 confusing ipxe.
1223
1224 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1225
1226 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
1227 Add missing const attribute.
1228 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
1229 Likewise.
1230 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
1231 Likewise.
1232
1233 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1234
1235 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
1236 misaligned access.
1237 (serpent_setkey): Likewise.
1238 (serpent_encrypt_internal): Likewise.
1239 (serpent_decrypt_internal): Likewise.
1240 (serpent_encrypt): Don't put an alignment-increasing cast.
1241 (serpent_decrypt): Likewise.
1242 (serpent_test): Likewise.
1243
1244 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1245
1246 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
1247
1248 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1249
1250 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
1251
1252 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
1253 grub_addr_t casts.
1254 (PTR_TO_UINT64): Likewise.
1255 (PTR_TO_UINT32): Likewise.
1256
1257 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1258
1259 * util/grub-mkimage.c (generate_image): Decrease the higher limit
1260 because of stack.
1261 * util/grub-setup.c (setup): Don't add redundancy past the higher load
1262 limit.
1263
1264 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1265
1266 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
1267 text_width > available width a bit more gracefully.
1268
1269 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1270
1271 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
1272 current address calculation.
1273
1274 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1275
1276 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
1277 stack.
1278 (encode_block): Likewise.
1279
1280 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1281
1282 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
1283 certainety.
1284
1285 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1286
1287 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
1288 non-RS part to avoid RS messing with GDT.
1289 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
1290 Increase to suit in realmode routines.
1291
1292 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
1293
1294 * grub-core/kern/i386/realmode.S: Increase alignment.
1295 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
1296
1297 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1298
1299 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
1300 be deterministic.
1301 (syndroms): Compute 0 syndrom.
1302 (rs_recover): Use 0 syndrom.
1303
1304 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1305
1306 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
1307
1308 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1309
1310 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
1311 brackets.
1312
1313 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1314
1315 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
1316 account.
1317 (get_top_pad): Likewise.
1318 (get_right_pad): Likewise.
1319 (get_bottom_pad): Likewise.
1320
1321 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1322
1323 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
1324
1325 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1326
1327 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
1328 attribute as the structure isn't guaranteed to be properly aligned.
1329 (grub_efi_pci_device_path): Likewise.
1330 (grub_efi_pccard_device_path): Likewise.
1331 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
1332 specify the size of `memory_type'.
1333 (grub_efi_vendor_device_path): Likewise.
1334 (grub_efi_controller_device_path): Likewise.
1335 (grub_efi_acpi_device_path): Likewise.
1336 (grub_efi_expanded_acpi_device_path): Likewise.
1337 (grub_efi_atapi_device_path): Likewise.
1338 (grub_efi_scsi_device_path): Likewise.
1339 (grub_efi_fibre_channel_device_path): Likewise.
1340 (grub_efi_1394_device_path): Likewise.
1341 (grub_efi_usb_device_path): Likewise.
1342 (grub_efi_usb_class_device_path): Likewise.
1343 (grub_efi_i2o_device_path): Likewise.
1344 (grub_efi_mac_address_device_path): Likewise.
1345 (grub_efi_ipv4_device_path): Likewise.
1346 (grub_efi_ipv6_device_path): Likewise.
1347 (grub_efi_infiniband_device_path): Likewise.
1348 (grub_efi_uart_device_path): Likewise.
1349 (grub_efi_vendor_messaging_device_path): Likewise.
1350 (grub_efi_hard_drive_device_path): Likewise.
1351 (grub_efi_cdrom_device_path): Likewise.
1352 (grub_efi_vendor_media_device_path): Likewise.
1353 (grub_efi_file_path_device_path): Likewise.
1354 (grub_efi_protocol_device_path): Likewise.
1355 (grub_efi_piwg_device_path): Likewise.
1356 (grub_efi_bios_device_path): Likewise.
1357
1358 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1359
1360 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
1361 (grub_ucs4_to_utf8_alloc): Likewise.
1362 (grub_ucs4_to_utf8): Likewise.
1363 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
1364 (grub_ucs4_to_utf8_alloc): Likewise.
1365
1366 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
1367
1368 AFFS never uses unicode.
1369
1370 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
1371 (grub_latin1_to_utf8): New inline function.
1372 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
1373
1374 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1375
1376 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
1377 overflow.
1378
1379 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1380
1381 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
1382 (grub_squash_dirent_header): Likewise.
1383 (read_chunk): Don't double swap.
1384 (grub_squash_iterate_dir): Fix swap sizes.
1385
1386 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1387
1388 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
1389
1390 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1391
1392 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
1393 (grub_hfs_iterate_dir): Likewise.
1394
1395 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1396
1397 Fix video on platforms where unaligned access is forbidden.
1398 Make several optimisations while on it.
1399
1400 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
1401 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1402 (grub_video_fbblit_replace_32bit_1bit): Likewise.
1403 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1404 Disable.
1405 (grub_video_fbblit_replace_16bit_1bit):
1406 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1407 (grub_video_fbblit_replace_8bit_1bit): Likewise.
1408 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
1409 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
1410 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1411 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
1412 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
1413 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
1414 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
1415 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
1416 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
1417 (grub_video_fbblit_replace_index_RGB888): Likewise.
1418 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
1419 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
1420 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
1421 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
1422 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
1423 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
1424 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
1425 Disable.
1426 (grub_video_fbblit_blend_XXX565_1bit):
1427 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
1428 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
1429 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
1430 void *.
1431 * grub-core/video/fb/video_fb.c (common_blitter)
1432 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
1433 (grub_video_fb_create_render_target_from_pointer)
1434 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
1435 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
1436 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
1437 definition.
1438 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
1439
1440 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1441
1442 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
1443 HH22 and HM10 relocations.
1444
1445 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1446
1447 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
1448
1449 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1450
1451 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
1452 allocation succeeded.
1453
1454 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1455
1456 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
1457 argument a u8 pointer. All users updated.
1458 Handle unaligned buffers.
1459
1460 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1461
1462 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
1463 add_part to workaround compiler bug.
1464
1465 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1466
1467 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
1468
1469 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1470
1471 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
1472 Reserve alignment invariants.
1473 (grub_multiboot_load): Likewise.
1474 (retrieve_video_parameters): Likewise.
1475 (grub_multiboot_make_mbi): Likewise.
1476
1477 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1478
1479 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
1480 incorrect pointer.
1481
1482 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1483
1484 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
1485 (grub_pata_pio_write): Likewise.
1486
1487 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1488
1489 Add noreturn attributes and remove unreachable code.
1490
1491 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
1492 code.
1493 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
1494 code. Mark as noreturn.
1495 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
1496 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
1497 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
1498 unreachable code.
1499 * grub-core/kern/main.c (grub_main): Mark as noreturn.
1500 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
1501 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
1502 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
1503 * include/grub/kernel.h (grub_main): Mark as noreturn.
1504 * include/grub/reader.h (grub_rescue_run): Likewise.
1505
1506 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1507
1508 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
1509 redundant declaration.
1510
1511 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1512
1513 * include/grub/net.h (grub_net_network_level_interfaces): Remove
1514 redundant declaration.
1515 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
1516
1517 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1518
1519 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
1520 to ensure alignment.
1521 (grub_hdparm_print_identify): Make argument uint16 * to ensure
1522 alignment. Ensure tmp alignment.
1523 (grub_cmd_hdparm): Ensure buf alignment.
1524 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
1525 to ensure alignment.
1526 (grub_ata_dumpinfo): Ensure text alignment.
1527 (grub_atapi_identify): Preserve alignment invariant.
1528 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
1529
1530 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1531
1532 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
1533 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
1534 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
1535 * include/grub/misc.h (grub_reboot)
1536 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
1537 (grub_halt) [__mips__]: Likewise.
1538
1539 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1540
1541 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
1542 Remove redundant declaration.
1543 (grub_mmap_get_post64): Likewise.
1544 (grub_mmap_get_upper): Likewise.
1545 (grub_mmap_get_lower): Likewise.
1546
1547 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1548
1549 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
1550 uint32_t * to ensure alignment.
1551 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
1552
1553 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1554
1555 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
1556 uint16_t * to ensure alignment.
1557 (sun_pc_partition_map_iterate): Make `block' a union to ensure
1558 alignment.
1559
1560 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1561
1562 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
1563 to ensure alignment.
1564 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
1565
1566 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1567
1568 * grub-core/fs/ntfs.c (u16at): Make into inline function.
1569 Handle unaligned pointers.
1570 (u32at): Likewise.
1571 (u64at): Likewise.
1572 (fixup): Use byte access instead of v16at.
1573 (find_attr): Fix imporper usage of v32at.
1574 (read_data): Likewise.
1575 (list_file): Handle byte-swapping and unaligned strings.
1576 (grub_ntfs_label): Likewise.
1577
1578 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1579
1580 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
1581 as it's not necessarily aligned.
1582
1583 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1584
1585 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
1586 redundant declaration.
1587 (grub_serial_init): Likewise.
1588 (grub_terminfo_init): Likewise.
1589
1590 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1591
1592 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
1593 function.
1594 (ZAP_HASH_IDX): Likewise.
1595 (ZAP_LEAF_HASH_SHIFT): Likewise.
1596 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
1597 (LEAF_HASH): Likewise.
1598 (ZAP_LEAF_NUMCHUNKS): Likewise.
1599 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
1600 alignment invariants. Return pointer. All users updated.
1601 (ZAP_LEAF_ENTRY): Make into inline function.
1602 (NBBY): Removed.
1603 (xor): LIkewise.
1604 (xor_out): Use grub_crypto_xor.
1605 (dnode_get_path): Use grub_get_unaligned.
1606 (nvlist_find_value): Likewise.
1607 (grub_zfs_nvlist_lookup_uint64): Likewise.
1608 (grub_zfs_nvlist_lookup_string): Likewise.
1609 (get_nvlist_size): Likewise.
1610 (grub_zfs_open): Likewise.
1611 (fill_fs_info): Likewise.
1612 (grub_zfs_dir): Likewise.
1613 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
1614 alignment invariants.
1615 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
1616 necessarily aligned.
1617
1618 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1619
1620 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
1621
1622 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1623
1624 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
1625 arithmetic to conserve alignment invariants.
1626
1627 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1628
1629 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
1630 redundant declaration.
1631 (grub_efiemu_mm_obtain_request): Likewise.
1632 (grub_efiemu_prepare): Likewise.
1633
1634 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1635
1636 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
1637 to match types.
1638
1639 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1640
1641 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
1642 case of aunaligned recptr.
1643 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
1644 alignment.
1645 (grub_hfsplus_btree_search): Handle unaligned index.
1646
1647 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1648
1649 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
1650 to get freetag and skip.
1651
1652 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1653
1654 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
1655 array.
1656 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
1657 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
1658
1659 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1660
1661 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
1662 name for checksum and fix allocation algorithm.
1663
1664 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1665
1666 * include/grub/types.h (grub_properly_aligned_t): New type.
1667 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
1668 (grub_get_unaligned16): Add explicit casts.
1669 (grub_get_unaligned32): Likewise.
1670 (grub_get_unaligned64): Likewise.
1671 (grub_set_unaligned16): New function.
1672 (grub_set_unaligned32): Likewise.
1673
1674 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1675
1676 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
1677
1678 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1679
1680 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
1681 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
1682 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
1683
1684 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1685
1686 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
1687 conditionals.
1688
1689 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1690
1691 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
1692 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
1693
1694 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1695
1696 Unify and improve RAID and crypto xor.
1697
1698 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
1699 changed to grub_crypto_xor
1700 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
1701 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
1702 Use bigger types when possible.
1703
1704 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1705
1706 * grub-core/disk/raid.c (scan_devices): Fix condition.
1707
1708 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1709
1710 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
1711 Make name a const ptr.
1712
1713 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1714
1715 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
1716 first argument a const pointer.
1717 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
1718 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
1719 proto.
1720 (grub_children_iterate): Likewise.
1721 (grub_machine_mmap_iterate): Remove redundant declaration.
1722
1723 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1724
1725 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
1726 (grub_cmd_acpi) [!x86]: Disable EBDA.
1727
1728 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1729
1730 Enable UTF8 in gnulib regexp.
1731
1732 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
1733 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
1734 (isupper): Use grub_isupper.
1735 (isascii): New inline function.
1736 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
1737 * grub-core/lib/posix_wrap/wctype.h: Likewise.
1738 * grub-core/normal/charset.c (grub_utf8_process): New function.
1739 (grub_utf8_to_utf16): Use grub_utf8_process.
1740 (grub_encode_utf8_character): New function.
1741 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
1742 * include/grub/charset.h (grub_utf8_process): New declaration.
1743 (grub_encode_utf8_character): Likewise.
1744 * include/grub/misc.h (grub_islower): New inline function.
1745 (grub_isupper): Likewise.
1746 (grub_strchrsub): Moved down to fix the definitions.
1747
1748 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1749
1750 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
1751 specification.
1752
1753 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
1754
1755 * include/grub/loader.h (grub_loader_register_preboot_hook):
1756 Use struct preboot * and not void * for handle. All users updated.
1757 (grub_loader_unregister_preboot_hook): Likewise.
1758
1759 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1760
1761 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
1762 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
1763 UTF-16-BE. All users updated.
1764 (grub_hfsplus_cmp_catkey): Fix unicode handling.
1765 (grub_hfsplus_iterate_dir): Likewise.
1766 (grub_hfsplus_label): Likewise.
1767
1768 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
1769
1770 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
1771
1772 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
1773
1774 Add missing const qualifiers.
1775
1776 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
1777 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
1778 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
1779 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
1780 (grub_lvm_check_flag): Likewise.
1781 * grub-core/efiemu/i386/coredetect.c
1782 (grub_efiemu_get_default_core_name): Likewise
1783 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
1784 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
1785 * grub-core/fs/ntfs.c (fixup): Likewise.
1786 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
1787 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
1788 (fzap_lookup): Likewise.
1789 (zap_lookup): Likewise.
1790 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
1791 * grub-core/lib/legacy_parse.c (check_option): Likewise.
1792 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
1793 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
1794 (grub_freebsd_add_meta_module): Likewise.
1795 (grub_cmd_freebsd_module): Likewise.
1796 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
1797 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
1798 (grub_xnu_writetree_get_size): Likewise.
1799 (grub_xnu_writetree_toheap_real): Likewise.
1800 (grub_xnu_find_key): Likewise.
1801 (grub_xnu_create_key): Likewise.
1802 (grub_xnu_create_value): Likewise.
1803 (grub_xnu_register_memory): Likewise.
1804 (grub_xnu_check_os_bundle_required): Likewise.
1805 (grub_xnu_scan_dir_for_kexts): Likewise.
1806 (grub_xnu_load_kext_from_dir): Likewise.
1807 * grub-core/normal/color.c (color_list): Likewise.
1808 * grub-core/normal/completion.c (current_word): Likewise.
1809 * grub-core/normal/menu_entry.c (insert_string): Likewise.
1810 * grub-core/term/serial.c (grub_serial_find): Likewise.
1811 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
1812 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
1813 Likewise.
1814 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
1815 (grub_freebsd_add_meta_module): Likewise.
1816 * include/grub/lib/arg.h (grub_arg_option): Likewise.
1817 * include/grub/net.h (grub_net_card_driver): Likewise.
1818 (grub_net_card): Likewise.
1819 (grub_net_app_protocol): Likewise.
1820 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
1821 * include/grub/serial.h (grub_serial_find): Likewise.
1822 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
1823 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
1824 (grub_xnu_create_value): Likewise.
1825 (grub_xnu_find_key): Likewise.
1826 (grub_xnu_scan_dir_for_kexts): Likewise.
1827 (grub_xnu_load_kext_from_dir): Likewise.
1828
1829 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
1830 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
1831 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
1832 Moved from here ...
1833 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
1834
1835 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
1836
1837 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
1838
1839 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
1840
1841 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
1842 (read_device): Fix size calculation.
1843
1844 2011-11-25 Robert Millan <rmh@gnu.org>
1845
1846 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
1847 (find_root_device_from_libzfs): Add zpool output parser to be used
1848 as fallback when libzfs isn't available.
1849
1850 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
1851
1852 * po/Makefile.in.in: Add missing escape-continuation.
1853
1854 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
1855
1856 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
1857
1858 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1859
1860 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
1861
1862 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1863
1864 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
1865
1866 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1867
1868 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
1869
1870 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1871
1872 * grub-core/lib/adler32.c: Add missing license specification.
1873 * grub-core/lib/crc64.c: Likewise.
1874 * grub-core/loader/i386/pc/plan9.c: Likewise.
1875 * grub-core/partmap/plan.c: Likewise.
1876
1877 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
1878
1879 Add facility to debug GRUB with gdb under qemu.
1880
1881 * grub-core/gdb_grub.in: New file.
1882 * grub-core/gmodule.pl.in: Likewise.
1883 * grub-core/Makefile.core.def (gmodule.pl): New script.
1884 (gdb_grub): Likewise.
1885
1886 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1887
1888 * util/grub-mount.c (argp_parser): Accept relative pathes.
1889 * util/grub-fstest.c (argp_parser): Likewise.
1890
1891 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1892
1893 Plan9 support.
1894
1895 * Makefile.util.def (libgrubmods): Add
1896 grub-core/partmap/plan.c.
1897 * docs/grub.texi: Notice Plan9 support.
1898 * grub-core/Makefile.core.def (plan9): New module.
1899 (part_plan): Likewise.
1900 * grub-core/loader/i386/pc/plan9.c: New file.
1901 * grub-core/partmap/plan.c: Likewise.
1902 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
1903 define.
1904 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
1905 * include/grub/mm.h (grub_extend_alloc): New inline function.
1906
1907 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1908
1909 Make Reed-Solomon faster by using power of generator representation of
1910 GF(256)*.
1911
1912 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
1913 (gf_double_t): Likewise.
1914 (gf_invert): Removed.
1915 (gf_powx): New array.
1916 (gf_powx_inv): Likewise.
1917 (scratch): Move higher.
1918 (gf_reduce): Removed.
1919 (gf_mul): Use powx.
1920 (gf_invert): Likewise.
1921 (init_inverts): Replaced with ...
1922 (init_powx): ...this. All users updated.
1923 (pol_evaluate): Replace multiplications with additions.
1924 (rs_encode): Likewise.
1925 (gauss_eliminate): Call gf_invert.
1926 (grub_reed_solomon_add_redundancy): Call init_powx.
1927 (grub_reed_solomon_recover): Call init_powx unconditionally.
1928
1929 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1930
1931 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
1932
1933 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1934
1935 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
1936 disk->partiton for safety.
1937
1938 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1939
1940 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
1941 Fix a memory leak.
1942 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
1943
1944 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1945
1946 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
1947
1948 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1949
1950 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
1951
1952 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1953
1954 Fix spaces handling in proc/self/mountinfo.
1955
1956 * util/getroot.c (unescape): New function.
1957 (grub_find_root_device_from_mountinfo): Use unescape.
1958
1959 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1960
1961 Support ZFS embedding.
1962
1963 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
1964 (grub_zfs_fs): Register grub_zfs_embed.
1965
1966 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1967
1968 Fix MIPS compilation.
1969
1970 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
1971 * include/grub/offsets.h: Rename decompressor fields from
1972 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
1973 * util/grub-mkimage.c (image_targets): Use new names.
1974
1975 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1976
1977 Defer multiboot device parsing until we're in compressed part.
1978
1979 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
1980 bsd_part. setdevice has fallen into disuse.
1981 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
1982 (bsd_part): Likewise.
1983 (boot_dev): New variable.
1984 (multiboot_trampoline): Don't parse multiboot device.
1985 Pass multiboot device in %edx.
1986 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
1987 grub_boot_device.
1988 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
1989 Likewise.
1990 * grub-core/kern/i386/pc/startup.S: Save edx.
1991 (grub_boot_drive): Removed.
1992 (grub_install_dos_part): Likewise.
1993 (grub_install_bsd_part): Likewise.
1994 (grub_boot_device): New variable.
1995 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
1996 (grub_install_bsd_part): Likewise.
1997 (grub_boot_drive): Likewise.
1998 (grub_boot_device): New variable.
1999 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
2000 Removed.
2001 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
2002 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
2003 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
2004 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
2005 * util/grub-install.in: Remove redundant condition.
2006
2007 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2008
2009 Fix bug introduced by previous commit.
2010
2011 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
2012
2013 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2014
2015 Use decompressors framework on i386-pc. It increases core size
2016 by 46 bytes but improves compatibility and maintainability.
2017
2018 * grub-core/Makefile.core.def (lzma_decompress): New image.
2019 (kernel): Add i386_pc_ldflags.
2020 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
2021 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
2022 to real_to_prot, prot_to_real and device info.
2023 * include/grub/offsets.h: Renamed decompressor offsets.
2024 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
2025 (image_target_desc): Remove raw_size and rename decompressor fields.
2026 (compress_kernel): Handle lzma.
2027 (generate_image): Handle decompressors on i386-pc.
2028
2029 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2030
2031 * configure.ac: Add -fno-asynchronous-unwind-tables.
2032
2033 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2034
2035 Move assembly code to C by using intwrap. It increases core size
2036 by 88 bytes but improves compatibility and maintainability.
2037
2038 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
2039 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
2040 ... here. Translated to C.
2041 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
2042 * grub-core/term/i386/pc/console.c (grub_console_getkey):
2043 ... here. Translated to C.
2044 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
2045 * grub-core/term/i386/pc/console.c (grub_console_getxy):
2046 ... here. Translated to C.
2047 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
2048 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
2049 ... here. Translated to C.
2050 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
2051 * grub-core/term/i386/pc/console.c (grub_console_cls):
2052 ... here. Translated to C.
2053 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
2054 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
2055 ... here. Translated to C.
2056 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
2057 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
2058 Translated to C.
2059 * grub-core/term/i386/pc/console.c (int10_9): New function.
2060 (grub_console_putchar): Likewise.
2061 * include/grub/i386/pc/console.h: Removed the not anymore shared
2062 functions.
2063
2064 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2065
2066 Move grub_chainloader_real_boot out of the kernel.
2067
2068 * grub-core/Makefile.am: Remove machine/loader.h.
2069 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
2070 Removed.
2071 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
2072 variable.
2073 (grub_relocator16_keep_a20_enabled): Likewise.
2074 (grub_relocator16_boot): Fill new variables.
2075 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
2076 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
2077 relocator.
2078 (grub_chainloader_unload): Likewise.
2079 (grub_chainloader_cmd): Likewise.
2080 * include/grub/i386/pc/loader.h: Removed.
2081 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
2082 and esi. All initialisers updated.
2083
2084 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
2085 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
2086
2087 * Makefile.util.def (grub-mount): New util.
2088 * .bzrignore: Add grub-mount.
2089 * configure.ac: Check for fuse and enable grub-mount if available.
2090 * docs/man/grub-mount.h2m: New file.
2091 * util/grub-mount.c: Likewise.
2092
2093 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2094
2095 * grub-core/commands/efi/fixvideo.c: Gettextize.
2096 * grub-core/commands/hashsum.c: Likewise.
2097 * grub-core/commands/i386/cmostest.c: Likewise.
2098 * grub-core/commands/i386/pc/drivemap.c: Likewise.
2099 * grub-core/commands/i386/pc/lsapm.c: Likewise.
2100 * grub-core/commands/i386/pc/sendkey.c: Likewise.
2101 * grub-core/commands/lsmmap.c: Likewise.
2102 * grub-core/commands/menuentry.c: Likewise.
2103 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
2104 * grub-core/commands/setpci.c: Likewise.
2105 * grub-core/loader/i386/bsd.c: Likewise.
2106 * grub-core/loader/i386/linux.c: Likewise.
2107 * util/getroot.c: Likewise.
2108 * util/grub-editenv.c: Likewise.
2109 * util/grub-fstest.c: Likewise.
2110 * util/grub-mkfont.c: Likewise.
2111 * util/grub-mkimage.c: Likewise.
2112 * util/grub-mkpasswd-pbkdf2.c: Likewise.
2113 * util/grub-pe2elf.c: Likewise.
2114 * util/grub-probe.c: Likewise.
2115 * util/grub-setup.c: Likewise.
2116 * util/ieee1275/ofpath.c: Likewise.
2117 * util/misc.c: Likewise.
2118 * util/raid.c: Likewise.
2119
2120 2011-11-11 Robert Millan <rmh@gnu.org>
2121
2122 * util/getroot.c (grub_util_get_geom_abstraction): Remove
2123 __attribute__((unused)) from `os_dev', which *is* being used.
2124
2125 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2126
2127 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
2128 forgotten define.
2129 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
2130 GRUB_IA64_DL_GOT_ALIGN.
2131 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
2132 GRUB_IA64_DL_TRAMP_ALIGN.
2133
2134 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2135
2136 Replace grub_fatal with normal errors in i386 linux loader.
2137
2138 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
2139 (allocate_pages): Check find_efi_mmap_size return value.
2140 (grub_e820_add_region): Return error.
2141 (grub_linux_boot): Check mmap return value.
2142
2143 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2144
2145 * grub-core/commands/acpihalt.c: Gettextized.
2146 * grub-core/commands/cacheinfo.c: Likewise.
2147 * grub-core/commands/cmp.c: Likewise.
2148 * grub-core/commands/efi/loadbios.c: Likewise.
2149 * grub-core/commands/gptsync.c: Likewise.
2150 * grub-core/commands/ieee1275/suspend.c: Likewise.
2151 * grub-core/commands/legacycfg.c: Likewise.
2152 * grub-core/commands/memrw.c: Likewise.
2153 * grub-core/commands/minicmd.c: Likewise.
2154 * grub-core/commands/parttool.c: Likewise.
2155 * grub-core/commands/time.c: Likewise.
2156 * grub-core/commands/videoinfo.c: Likewise.
2157 * grub-core/disk/geli.c: Likewise.
2158 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
2159 * grub-core/disk/luks.c: Likewise.
2160 * grub-core/disk/lvm.c: Likewise.
2161 * grub-core/font/font_cmd.c: Likewise.
2162 * grub-core/fs/zfs/zfscrypt.c: Likewise.
2163 * grub-core/fs/zfs/zfsinfo.c: Likewise.
2164 * grub-core/gfxmenu/view.c: Likewise.
2165 * grub-core/kern/emu/hostdisk.c: Likewise.
2166 * grub-core/kern/emu/main.c: Likewise.
2167 * grub-core/kern/emu/misc.c: Likewise.
2168 * grub-core/kern/emu/mm.c: Likewise.
2169 * grub-core/kern/mips/arc/init.c: Likewise.
2170 * grub-core/kern/mips/loongson/init.c: Likewise.
2171 * grub-core/kern/partition.c: Likewise.
2172 * grub-core/lib/i386/halt.c: Likewise.
2173 * grub-core/lib/mips/arc/reboot.c: Likewise.
2174 * grub-core/lib/mips/loongson/reboot.c: Likewise.
2175 * grub-core/loader/i386/pc/chainloader.c: Likewise.
2176 * grub-core/loader/i386/xnu.c: Likewise.
2177 * grub-core/loader/multiboot.c: Likewise.
2178 * grub-core/net/bootp.c: Likewise.
2179 * grub-core/net/net.c: Likewise.
2180 * grub-core/normal/term.c: Likewise.
2181 * grub-core/partmap/bsdlabel.c: Likewise.
2182 * grub-core/parttool/msdospart.c: Likewise.
2183 * grub-core/term/gfxterm.c: Likewise.
2184 * grub-core/term/terminfo.c: Likewise.
2185 * grub-core/video/i386/pc/vbe.c: Likewise.
2186 * util/grub-menulst2cfg.c: Likewise.
2187 * util/grub-mkdevicemap.c: Likewise.
2188 * util/grub-mklayout.c: Likewise.
2189 * util/grub-mkrelpath.c: Likewise.
2190 * util/grub-script-check.c: Likewise.
2191 * util/ieee1275/grub-ofpathname.c: Likewise.
2192 * util/resolve.c: Likewise.
2193
2194 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2195
2196 Support %1$d syntax.
2197
2198 * tests/printf_unit_test.c: New file.
2199 * Makefile.util.def (printf_test): New test.
2200 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
2201
2202 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2203
2204 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
2205 fix.
2206
2207 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2208
2209 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
2210 dprintf.
2211 * grub-core/font/font.c (grub_font_load): Likewise.
2212
2213 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2214
2215 * util/grub-macho2img.c: Add comment concerning gettext.
2216 * grub-core/lib/legacy_parse.c: Likewise.
2217
2218 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2219
2220 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
2221 (grub_xvasprintf): Likewise.
2222
2223 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2224
2225 Add const keyword to grub_env_get and gettextize week days.
2226
2227 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
2228 (grub_read_hook_datetime): Return const char *.
2229 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
2230 updated.
2231 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
2232 Mark for gettext.
2233 (grub_get_weekday_name): Return const char *. Call gettext.
2234 * grub-core/script/argv.c (grub_script_argv_append): Receive const
2235 char * and len as the argument. All users updated.
2236 (grub_script_argv_split_append): Receive const char *.
2237 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
2238 * include/grub/env.h (grub_env_get): Likewise.
2239 (grub_env_read_hook_t): Return const char *.
2240 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
2241 (grub_script_argv_split_append): Likewise.
2242
2243 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2244
2245 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
2246
2247 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2248
2249 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
2250 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
2251
2252 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2253
2254 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
2255 Fix prototype.
2256
2257 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2258
2259 Fix mips compilation.
2260
2261 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
2262 normal decoder.
2263 (hashes): Use in embed decoder as well (for sizes).
2264 (dec_stream_header): Fix embed decompressor logic.
2265 (dec_stream_footer): Likewise.
2266
2267 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2268
2269 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
2270 an error and not a fatal on unrecognised relocation types.
2271
2272 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2273
2274 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
2275 Issue error rather than printf on unknown arguments.
2276
2277 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2278
2279 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
2280 Make buf a const.
2281
2282 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2283
2284 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
2285 Fix module name.
2286
2287 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2288
2289 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
2290 leftover debug printf.
2291
2292 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2293
2294 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
2295
2296 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2297
2298 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
2299 A stylistic fix.
2300
2301 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
2302
2303 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
2304
2305 2011-11-10 Shea Levy <slevy@tieronedesign.com>
2306
2307 Allow all modules to perform serial IO
2308
2309 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
2310 * include/grub/serial.h (grub_serial_port_configure): New inline
2311 function.
2312 (grub_serial_port_fetch): Likewise.
2313 (grub_serial_port_put): Likewise.
2314 (grub_serial_port_fini): Likewise.
2315 (grub_serial_find): New proto.
2316
2317 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2318
2319 Put symlink at the end of the node and fix a potential
2320 memory corruption.
2321
2322 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
2323 Make symlink into an array.
2324 (set_rockridge): Set have_symlink and alloc_dirents.
2325 (grub_iso9660_read_symlink): Use new layout.
2326 (grub_iso9660_iterate_dir): Fix memory corruption.
2327 Use new layout.
2328 (grub_iso9660_dir): Set have_symlink.
2329 (grub_iso9660_open): Likewise.
2330
2331 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2332
2333 Remove local keyword.
2334
2335 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
2336 (version_test_gt): Likewise.
2337 (version_find_latest): Likewise.
2338 (gettext_printf): Likewise.
2339 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
2340
2341 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2342
2343 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
2344
2345 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2346
2347 Fix ZFS memory and resource leaks.
2348
2349 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
2350 All users updated.
2351 Free type on exit.
2352 (fill_vdev_info): New parameter inserted. All users updated.
2353 (check_pool_label): Likewise.
2354 (scan_disk): Likewise.
2355 (scan_devices): Close non-inserted disks.
2356 (fzap_iterate): Free l.
2357 (unmount_device): Free children descripto memory.
2358
2359 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2360
2361 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
2362 argument (access out of bounds).
2363
2364 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2365
2366 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
2367 >= 6 drives.
2368
2369 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
2370
2371 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
2372 Fix declaration.
2373
2374 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2375
2376 Fix several memory leaks.
2377
2378 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
2379 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
2380 (grub_cpio_dir): Likewise.
2381 * grub-core/fs/fat.c (grub_fat_label): Likewise.
2382 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
2383 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
2384 (grub_romfs_label): Likewise.
2385 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
2386 (squash_unmount): New function.
2387 (grub_squash_dir): Fix memory leak.
2388 (grub_squash_open): Likewise.
2389 (grub_squash_read): Likewise.
2390 (grub_squash_mtime): Likewise.
2391 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
2392 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
2393 * util/grub-fstest.c (fstest): Likewise.
2394
2395 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2396
2397 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
2398 avoid accessing beyond the array.
2399
2400 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2401
2402 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
2403
2404 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
2405
2406 Several AFFS fixes.
2407
2408 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
2409 (GRUB_AFFS_FLAG_FFS): Removed.
2410 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
2411 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
2412 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
2413 (grub_fshelp_node): Make block 32-bit.
2414 Add block_cache and last_block_cache.
2415 (grub_affs_read_block): Fill and use block cache.
2416 (grub_affs_read_file): Removed.
2417 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
2418 boot block.
2419 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
2420 safety.
2421 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
2422 space.
2423 (grub_affs_close): Free block cache.
2424 (grub_affs_read): Use grub_fshelp_read_file directly.
2425
2426 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2427
2428 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
2429 with no error set.
2430
2431 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2432
2433 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
2434 used variable.
2435 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
2436 Likewise.
2437
2438 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2439
2440 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
2441
2442 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
2443 byteswap when needed.
2444
2445 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2446
2447 Fix FreeBSD compilation.
2448
2449 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
2450 to avoid circular dependency.
2451 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
2452 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
2453 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
2454
2455 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2456
2457 Fix ZFS crypto error types.
2458
2459 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
2460 (grub_gcm_decrypt): Likewise.
2461 (grub_zfs_load_key_real): Fix error code type. Handle possible error
2462 from PBKDF2.
2463
2464 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2465
2466 Illumos support.
2467
2468 * Makefile.util.def (10_illumos): New script.
2469 * configure.ac: Set COND_HOST_ILLUMOS.
2470 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
2471 Support Illumos calls.
2472 (find_partition_start) [__sun__]: Likewise.
2473 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
2474 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
2475 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
2476 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
2477 device.
2478 * util/grub-probe.c (probe) [__sun__]: Do character check.
2479 * util/grub.d/10_illumos.in: New file.
2480
2481 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2482
2483 Support escaped commas in hostdisk.
2484
2485 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
2486 (find_grub_drive): Use unescape_cmp.
2487 (make_device_name): Escape commas.
2488
2489 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2490
2491 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
2492
2493 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2494
2495 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
2496 variable.
2497
2498 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
2499
2500 Support trampoline jumps on powerpc.
2501
2502 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
2503 __ia64__ path.
2504 (grub_dl_load_segments): Set mod->sz.
2505 (grub_dl_flush_cache): Flush whole space occupied by module, not just
2506 segments.
2507 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
2508 (jump): Likewise.
2509 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
2510 function.
2511 (trampoline): New struct.
2512 (trampoline_template): New const.
2513 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
2514 * include/grub/dl.h (grub_dl): Add sz element.
2515 [__powerpc__]: Follow __ia64__.
2516 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
2517 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
2518 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
2519 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
2520
2521 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
2522
2523 ZFS crypto support.
2524
2525 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
2526 * grub-core/Makefile.core.def (zfscrypt): New module.
2527 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
2528 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
2529 it. All users updated.
2530 (grub_zfs_decrypt): New var.
2531 (grub_zfs_load_key): Likewise.
2532 (zio_checksum_functions): Add SHA256+MAC.
2533 (zio_checksum_verify): Handle incomplete comparison due to MAC.
2534 (zio_read): Handle encrypted blocks.
2535 (zap_verify): Remove incorrect check.
2536 (fzap_iterate): Handle non-standard fzap.
2537 (zap_iterate): Likewise.
2538 (zap_iterate_u64): New function.
2539 (dnode_get_fullpath): Load keys.
2540 * grub-core/fs/zfs/zfscrypt.c: New file.
2541 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
2542 (grub_crypto_ecb_encrypt): Make input const.
2543 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
2544 (grub_crypto_ecb_encrypt): Make input const.
2545 (GRUB_CIPHER_AES): New macro.
2546 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
2547 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
2548 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
2549 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
2550 prefix. All users updated.
2551 (grub_zfs_add_key): New proto.
2552 (grub_zfs_decrypt): Likewise.
2553 (grub_zfs_load_key): Likewise.
2554 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
2555 * util/grub-fstest.c (options): Add -K option.
2556 (argp_parser): Likewise.
2557
2558 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2559
2560 Support zle compression on ZFS.
2561
2562 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
2563 (decomp_table): Add zle.
2564 * include/grub/zfs/zio.h (zio_compress): Add zle.
2565
2566 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2567
2568 Support BtrFS embedding.
2569
2570 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
2571 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
2572 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
2573 * util/grub-setup.c (setup): Use fs embedding if available.
2574 Add additional sanity check.
2575
2576 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
2577
2578 * util/grub-install.in: Fix condition for config_opt.
2579
2580 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2581
2582 Support third redundancy strip on raidz3.
2583
2584 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
2585 Return error on singularity. All users updated.
2586 (read_device): Don't stop on 3rd failure on raidz3.
2587
2588 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2589
2590 Support case-insensitive ZFS subvolumes.
2591
2592 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
2593 All users updated.
2594 (zap_hash): Likewise.
2595 (name_cmp): New function.
2596 (zap_leaf_array_equal): New parameter case_insensitive.
2597 All users updated.
2598 (zap_leaf_lookup): Likewise.
2599 (fzap_lookup): Likewise.
2600 (zap_lookup): Likewise.
2601 (dnode_get_path): New parameter case_insensitive. Retrieve case
2602 sensitiviness of a volume. All users updated.
2603 (dnode_get_fullpath): New parameter case_insensitive.
2604 All users updated.
2605 (grub_zfs_dir): Set info.case_insensitiveness.
2606
2607 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2608
2609 Support second redundancy strip on raidz(2,3).
2610
2611 * grub-core/fs/zfs/zfs.c (powx): New array.
2612 (powx_inv): Likewise.
2613 (poly): New const.
2614 (xor_out): New function.
2615 (gf_mul): Likewise.
2616 (recovery): Likewise.
2617 (read_device): Use second redundancy strip.
2618
2619 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2620
2621 Use a power of generator representation of GF(256) multiplication group
2622 to save space time and complexity.
2623
2624 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
2625 (raid6_table2): Likewise.
2626 (powx): New array.
2627 (powx_inv): Likewise.
2628 (poly): New const.
2629 (grub_raid_block_mul): Replace with ...
2630 (grub_raid_block_mulx): ...this.
2631 (grub_raid6_init_table): Rewritten.
2632 (grub_raid6_recover): Use power of generator representation.
2633
2634 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2635
2636 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
2637 for the right device.
2638
2639 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2640
2641 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
2642 expected by grub-mkimage and it's more clear since there is no implicit
2643 padding.
2644
2645 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
2646
2647 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
2648 disk.
2649 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2650
2651 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
2652
2653 * util/grub-mkrescue.in: Fix handling xorriso option.
2654
2655 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2656
2657 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
2658 NULL.
2659
2660 2011-11-03 crocket <crockabiscuit@gmail.com>
2661
2662 * util/grub.d/10_linux.in: Add Slackware initrd naming.
2663
2664 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2665
2666 XZ CRC64 and SHA256 support.
2667
2668 * Makefile.util.def (libgrubmods): Add crc64.c.
2669 * grub-core/Makefile.core.def (crc64): New module.
2670 * grub-core/lib/crc64.c: New file.
2671 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
2672 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
2673 Fix the type.
2674 (MAX_HASH_SIZE): New define.
2675 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
2676 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
2677 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2678 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
2679 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
2680 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
2681 Handle non-crc32 hashes.
2682 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
2683 (dec_stream_header): Handle non-crc32 hashes.
2684 (dec_stream_footer): Likewise.
2685 (dec_block_header): Likewise.
2686 (dec_main): Likewise.
2687 (xz_dec_init): Likewise.
2688 (xz_dec_reset): Likewise.
2689 (xz_dec_end): Likewise.
2690 * util/import_gcry.py: Add CRC64 line.
2691
2692 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2693
2694 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
2695 as well.
2696
2697 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2698
2699 Make reiserfs label retrieval similar to other *_label functions.
2700
2701 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
2702 (REISERFS_MAX_LABEL_LENGTH): Removed.
2703 (REISERFS_LABEL_OFFSET): Likewise.
2704 (grub_reiserfs_label): Rewritten.
2705
2706 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2707
2708 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
2709 field.
2710
2711 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
2712
2713 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
2714
2715 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2716
2717 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
2718 drive failure on both raidz and raidz2.
2719
2720 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
2721
2722 Fix RAIDZ(2) for >= 5 devices.
2723
2724 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
2725 asize argument. All users updated.
2726
2727 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
2728
2729 Fix RAIDZ(2).
2730
2731 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
2732 (fill_vdev_info_real): Set ashift.
2733 (read_device): Rewrite RAIDZ part based on reverse engineering.
2734
2735 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2736
2737 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
2738 don't report potentially unavialiable fields in debug output.
2739 (find_path): Fix double-free and memory leak.
2740
2741 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2742
2743 Read label on UFS1.
2744
2745 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
2746 (grub_ufs_fs): Always set .label.
2747
2748 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2749
2750 Use shifts in UFS.
2751
2752 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
2753 (grub_ufs_data): New field log2_blksz.
2754 (grub_ufs_read_file): Use shifts.
2755 (grub_ufs_mount): Check block size and logarithm it.
2756
2757 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
2758
2759 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
2760 long symlinks.
2761
2762 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2763
2764 Handle symlinks and long names on tar and cpio.
2765
2766 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
2767 (ATTR_FILE): Likewise.
2768 (ATTR_DIR): Likewise.
2769 (ATTR_LNK): Likewise.
2770 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
2771 (grub_cpio_find_file): Fill mode, handle linkname field as well as
2772 L and K entries.
2773 (grub_cpio_mount): Zero-fill data.
2774 (handle_symlink): New function.
2775 (grub_cpio_dir): Handle symlinks.
2776 (grub_cpio_open): Likewise.
2777 (grub_cpio_close) [MODE_USTAR]: Free linkname.
2778
2779 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2780
2781 Fix iso9660 filename limitations and fix memory leaks.
2782
2783 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
2784 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
2785
2786 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2787
2788 Fix JFS file name length limitations.
2789
2790 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
2791 (grub_jfs_diropen): Fix maximum filename length.
2792 (grub_jfs_getent): Fix filename length.
2793 (grub_jfs_lookup_symlink): Fix size checks.
2794
2795 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2796
2797 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
2798 string.
2799
2800 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2801
2802 Leverage BFS implementation to read AFS.
2803
2804 * Makefile.util.def (libgrubmods): Add afs.c.
2805 * grub-core/Makefile.core.def (afs): New module
2806 * grub-core/fs/afs.c: New file.
2807 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
2808
2809 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2810
2811 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
2812
2813 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2814
2815 * grub-core/fs/bfs.c: Run indent.
2816
2817 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2818
2819 BFS implementation based on the specification.
2820
2821 * grub-core/fs/bfs.c: New file.
2822 * Makefile.util.def (libgrubmods): Add bfs.c.
2823 * grub-core/Makefile.core.def (bfs): New module.
2824
2825 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
2826
2827 * util/grub-fstest.c (cmd_cp): Clarify error message.
2828 (cmd_cmp): Likewise.
2829
2830 2011-10-30 Yves Blusseau <blusseau@zetam.org>
2831
2832 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
2833 and befs_be.
2834
2835 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
2836
2837 Remove afs and befs because of copyright problem.
2838
2839 * grub-core/fs/afs.c: Removed.
2840 * grub-core/fs/afs_be.c: Removed.
2841 * grub-core/fs/befs.c: Removed.
2842 * grub-core/fs/befs_be.c: Removed.
2843 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
2844 * grub-core/Makefile.core.def (afs): Removed.
2845 (afs_be): Likewise.
2846 (befs): Likewise.
2847 (befs_be): Likewise.
2848
2849 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2850
2851 Prefer rockridge over Joliet.
2852
2853 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
2854 to ...
2855 (set_rockridge): ... here.
2856 (grub_iso9660_mount): Check rockridge on the primary label when
2857 discovering. Ignore Joliet if Rockridge is present.
2858
2859 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2860
2861 Use shifts in nilfs2.
2862
2863 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
2864 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
2865 (grub_nilfs2_palloc_entries_per_group): Replace with ...
2866 (grub_nilfs2_log_palloc_entries_per_group): ... this.
2867 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
2868 (grub_nilfs2_entries_per_block): Replaced with ...
2869 (grub_nilfs2_log_entries_per_block_log): ... this.
2870 (grub_nilfs2_blocks_per_group): Replaced with ...
2871 (grub_nilfs2_blocks_per_group_log): ... this.
2872 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
2873 (grub_nilfs2_blocks_per_desc_block_log): ... this.
2874 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
2875 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
2876 (grub_nilfs2_palloc_entry_offset): Replaced ...
2877 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
2878 (grub_nilfs2_dat_translate): Use shifts.
2879 (grub_nilfs2_read_inode): Likewise.
2880 (GRUB_MOD_INIT): Ensure that logs are correct.
2881
2882 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2883
2884 Use shifts in minix filesystem.
2885
2886 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
2887 (GRUB_MINIX_ZONE2SECT): Likewise.
2888 (grub_minix_data): Replace block_size with log_block_size.
2889 (grub_minix_read_file): Use shifts.
2890 (grub_minix_mount): Check block size and take a logarithm.
2891
2892 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2893
2894 Use shifts in squash4.
2895
2896 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
2897 (squash_mount): Check block size and take logarithm.
2898 (direct_read): Use shifts.
2899
2900 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2901
2902 Correct befs block counting logic.
2903
2904 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
2905 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
2906 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
2907 (grub_afs_read_inode): Use block_shift.
2908 (RANGE_SHIFT): New definition.
2909 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
2910 unexpected conditions, use shifts and appropriate types.
2911 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
2912
2913 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
2914
2915 * grub-core/disk/raid.c (scan_devices): Check partition.
2916 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
2917
2918 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2919
2920 Support BFS (befs) UUID.
2921
2922 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
2923 (grub_afs_small_data_element_header): New struct.
2924 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
2925 (grub_afs_read_attribute) [MODE_BFS]: New function.
2926 (grub_afs_iterate_dir): Allocate for complete inode.
2927 (grub_afs_mount): Likewise.
2928 (grub_afs_uuid) [MODE_BFS]: New function.
2929 (grub_afs_fs) [MODE_BFS]: Add .uuid.
2930
2931 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
2932
2933 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
2934 (zfs_unmount): Fix memory leak.
2935
2936 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2937
2938 Support NTFS reparse points.
2939
2940 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
2941 (symlink_descriptor): New struct.
2942 (grub_ntfs_read_symlink): New function.
2943 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
2944 (grub_ntfs_open): Likewise.
2945
2946 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2947
2948 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
2949
2950 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2951
2952 fstest xnu_uuid subcommand.
2953
2954 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
2955 grub-core/commands/xnu_uuid.c.
2956 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
2957 (fstest): Handle xnu_uuid.
2958 (options): Document xnu_uuid.
2959 (argp_parser): Parse xnu_uuid.
2960
2961 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2962
2963 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
2964 -l argument. Add newline at the end if printing.
2965 (GRUB_MOD_INIT): Document -l.
2966
2967 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2968
2969 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
2970
2971 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
2972
2973 ZFS multi-device and version 33 support.
2974
2975 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
2976 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
2977 (grub_zfs_data): Add multidev-ice-related fields.
2978 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
2979 (dva_get_offset): Make dva const.
2980 (zfs_fetch_nvlist): New function.
2981 (fill_vdev_info_real): Likewise.
2982 (fill_vdev_info): Likewise.
2983 (check_pool_label): Likewise.
2984 (scan_disk): Likewise.
2985 (scan_devices): Likewise.
2986 (read_device): Likewise.
2987 (read_dva): Likewise.
2988 (zio_read_gang): Use read_dva.
2989 (zio_read_data): Likewise.
2990 (zap_leaf_lookup): Add missing endian conversion.
2991 (zap_verify): Add missing endian conversion. All users updated.
2992 (fzap_lookup): Likewise.
2993 (fzap_iterate): Likewise.
2994 (dnode_get_path): Handle SA bonus.
2995 (nvlist_find_value): Make input const. All users updated.
2996 (unmount_device): New function.
2997 (zfs_unmount): Use unmount_device.
2998 (zfs_mount): Use scan_disk.
2999 (zfs_mtime): New function.
3000 (grub_zfs_open): Handle system attributes.
3001 (fill_fs_info): Likewise.
3002 (grub_zfs_dir): Likewise.
3003 (grub_zfs_fs): Add mtime.
3004 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
3005 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
3006 (SA_MTIME_OFFSET): Likewise.
3007 (SA_SYMLINK_OFFSET): Likewise.
3008 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
3009 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
3010 (fstest): Support zfsinfo.
3011 (argp_parser): Likewise.
3012
3013 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3014
3015 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
3016 error.
3017
3018 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
3019
3020 ZFS fixes.
3021
3022 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
3023 sharing the same block. Iterate over correct number of indices.
3024 (dnode_get_path): Handle symlinks correctly.
3025
3026 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3027
3028 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
3029
3030 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3031
3032 Read label on HFS+.
3033
3034 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
3035 (grub_hfsplus_btree_search): Fix types.
3036 (grub_hfsplus_label): Implement.
3037
3038 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3039
3040 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
3041
3042 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3043
3044 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
3045
3046 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3047
3048 Fix symlink handling on iso9660.
3049
3050 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
3051 All users updated.
3052 (grub_iso9660_susp_iterate): Accept zero-size iterate.
3053 (grub_iso9660_read_symlink): Moved most of code ...
3054 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
3055
3056 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3057
3058 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
3059 Use union to avoid breaking strict-aliasing rules.
3060
3061 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3062
3063 Support multi-extent iso files.
3064
3065 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
3066 Add node.
3067 (grub_fshelp_node): Revamp. All users updated.
3068 (FLAG_*): New enum.
3069 (read_node): New function.
3070 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
3071 All users updated.
3072 (grub_iso9660_mount): Don't attempt to read sua when there is none.
3073 (get_node_size): New function.
3074 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
3075 entries.
3076 Fix memory leak on . and ..
3077 (grub_iso9660_read): Use read_node.
3078 (grub_iso9660_close): Free node.
3079
3080 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3081
3082 Fix tar 4G limit and handle paths containing dot.
3083
3084 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
3085 (canonicalize): New function.
3086 (grub_cpio_find_file): Use canonicalize. Store offs in
3087 grub_disk_addr_t.
3088 (grub_cpio_dir): Use grub_disk_addr_t.
3089 (grub_cpio_open): Likewise.
3090
3091 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3092
3093 Fix handling of uncompressed blocks on squashfs and break 4G limit.
3094
3095 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
3096 unused flags.
3097 (grub_squash_inode): Add long_file and block_size.
3098 (grub_squash_cache_inode): New struct.
3099 (grub_squash_dirent): Make types into enum.
3100 (SQUASH_TYPE_LONG_REGULAR): New type.
3101 (grub_squash_frag_desc): Add field size.
3102 (SQUASH_BLOCK_FLAGS): New enum.
3103 (grub_squash_data): Use grub_squash_cache_inode.
3104 (grub_fshelp_node): Make ino_chunk 64-bit.
3105 (read_chunk): Minor argument change. All users updated.
3106 (squash_mount): Use correct le_to_cpu.
3107 (grub_squash_open): Handle LONG_REGULAR.
3108 (direct_read): New function.
3109 (grub_squash_read_data): Handle blocks correctly.
3110
3111 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3112
3113 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
3114
3115 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
3116
3117 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
3118
3119 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3120
3121 Fix 2G limit on ZFS.
3122
3123 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
3124 types.
3125 (uberblock_verify): Likewise.
3126 (dmu_read): Likewise.
3127 (grub_zfs_read): Likewise. Remove invalid cast.
3128
3129 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3130
3131 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
3132 (grub_jfs_blkno): Fix incorrect shift.
3133 (grub_jfs_read_file): Use more appropriate types.
3134
3135 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3136
3137 Support triple indirect on minix2 and minix3.
3138
3139 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
3140 Declare triple_indir_zone.
3141 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
3142 indirect.
3143
3144 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
3145
3146 Minix FS fixes.
3147
3148 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
3149 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
3150 Rename ctime to mtime. All users updated.
3151 (grub_minix_get_file_block): Fix types and double indirect computations.
3152
3153 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3154
3155 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
3156 if no label is found.
3157 (grub_fat_iterate_dir): Fix file size type.
3158 (grub_fat_iterate_dir): Likewise.
3159
3160 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3161
3162 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
3163 save some space.
3164 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
3165 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
3166
3167 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3168
3169 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
3170
3171 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3172
3173 * util/import_gcry.py: Accept space between # and include.
3174
3175 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3176
3177 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
3178
3179 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3180
3181 Fine grainely disable warnings on lexer. Remove Wno-error on it.
3182
3183 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
3184 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
3185 yylex_strncpy.
3186 * grub-core/script/yylex.l: Add fine-grained #pragma.
3187
3188 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3189
3190 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
3191 New inline function.
3192 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
3193 Likewise.
3194 (memset) [GRUB_UTIL]: Likewise.
3195 (memcmp) [GRUB_UTIL]: Likewise.
3196
3197 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3198
3199 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
3200 inline function rather than a define.
3201
3202 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3203
3204 * util/grub-setup.c: Add missing include.
3205
3206 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3207
3208 * util/ieee1275/grub-ofpathname.c: Add missing include.
3209
3210 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3211
3212 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
3213 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
3214 Likewise.
3215
3216 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3217
3218 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
3219 grub_memcmp usage.
3220
3221 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3222
3223 * util/grub-install.in: Add datarootdir as per automake manual
3224 suggestion.
3225 * util/grub-mknetdir.in: Likewise.
3226
3227 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
3228
3229 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
3230 suggestion.
3231 * util/grub.d/10_kfreebsd.in: Likewise.
3232 * util/grub.d/10_linux.in: Likewise.
3233 * util/grub.d/10_netbsd.in: Likewise.
3234 * util/grub.d/10_windows.in: Likewise.
3235 * util/grub.d/20_linux_xen.in: Likewise.
3236
3237 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
3238
3239 Remove redundant grub_kernel_image_size.
3240
3241 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
3242 _edata and _start.
3243 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
3244 the small code. It moves it only by few bytes but simplifies the code.
3245 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
3246 _start.
3247 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
3248 (grub_kernel_image_size): Removed.
3249 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
3250 (grub_kernel_image_size): Removed.
3251 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
3252 compiled with Apple toolchain.
3253 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
3254 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
3255 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
3256 (grub_total_module_size): Likewise.
3257 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
3258 Removed.
3259 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
3260 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
3261 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
3262 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
3263 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
3264 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
3265 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
3266 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
3267 Removed.
3268 (grub_total_module_size): Removed.
3269 * util/grub-mkimage.c (image_target_desc): Remove image_size.
3270 (image_targets): Likewise.
3271 Set .compressed_size to no field on sparc.
3272 (generate_image): Remove kernel_image_size handling.
3273
3274 2011-10-19 Szymon Janc <szymon@janc.net.pl>
3275
3276 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
3277 NULL pointer dereference.
3278
3279 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3280
3281 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
3282 done with a dedicated section.
3283
3284 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
3285 Ensure the correct position of boot_path.
3286 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
3287 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
3288 other fields.
3289 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
3290 * include/grub/boot.h: Removed. All references removed.
3291 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
3292 Removed.
3293 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
3294
3295 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3296
3297 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
3298 name.
3299
3300 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3301
3302 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
3303
3304 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3305
3306 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
3307 Don't add the bogus brackets.
3308
3309 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3310
3311 ExFAT support.
3312
3313 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
3314 * grub-core/Makefile.core.def (exfat): New module.
3315 * grub-core/fs/exfat.c: New file.
3316 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
3317 (GRUB_FAT_ATTR_*): Make into an enum.
3318 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
3319 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
3320 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
3321 (GRUB_FAT_MAXFILE): Removed.
3322 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
3323 (grub_current_fat_bpb_t): New type.
3324 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
3325 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
3326 (grub_fat_dir_node_t): New type.
3327 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
3328 (fat_log2) [MODE_EXFAT]: Removed.
3329 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
3330 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
3331 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
3332 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
3333 (grub_fat_label) [MODE_EXFAT]: New function.
3334 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
3335 reserved_first_sector to 0.
3336
3337 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
3338
3339 Move grub_reboot out of the kernel.
3340
3341 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
3342 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
3343 * grub-core/lib/efi/reboot.c: ... here.
3344 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
3345 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
3346 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
3347 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
3348 * grub-core/lib/i386/reboot_trampoline.S: ... here.
3349 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
3350 * grub-core/lib/ieee1275/reboot.c: ... here.
3351 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
3352 * grub-core/lib/mips/arc/reboot.c: ... here.
3353 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
3354 * grub-core/lib/mips/loongson/reboot.c: ...here.
3355 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
3356 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
3357 * include/grub/emu/misc.h (grub_reboot): New function declaration.
3358 * include/grub/i386/reboot.h: New file.
3359 * include/grub/mips/loongson/ec.h: Fix includes.
3360 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
3361 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
3362 * grub-core/lib/i386/reboot.c: New file.
3363
3364 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
3365
3366 Make grub_prefix into module to fix the arbitrary limit and save
3367 some space.
3368
3369 * grub-core/kern/emu/main.c (grub_prefix): Removed.
3370 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
3371 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
3372 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
3373 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
3374 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
3375 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
3376 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
3377 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
3378 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
3379 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
3380 * include/grub/ia64/efi/kernel.h: Removed.
3381 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
3382 (grub_prefix): Removed.
3383 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
3384 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
3385 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
3386 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
3387 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
3388 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
3389 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
3390 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
3391 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
3392 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
3393 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
3394 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
3395 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
3396 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
3397 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
3398 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
3399 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
3400 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
3401 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
3402 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
3403 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
3404 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
3405 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
3406 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
3407 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
3408 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
3409 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
3410 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
3411 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
3412 from module.
3413 * util/grub-mkimage.c (image_target_desc): Removed prefix and
3414 prefix_end.
3415 (image_targets): Likewise.
3416 (generate_image): Put prefix as a module.
3417
3418 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3419
3420 Replace grub_module_iterate with FOR_MODULES.
3421
3422 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
3423 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
3424 (grub_efi_modules_addr): ...this.
3425 * grub-core/kern/efi/init.c (grub_modbase): New variable.
3426 (grub_efi_init): Set grub_modbase.
3427 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
3428 (grub_modbase): New variable.
3429 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
3430 (grub_modbase): New variable.
3431 (grub_machine_init): Set grub_modbase.
3432 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
3433 (grub_modbase): New variable.
3434 (grub_machine_init): Set grub_modbase.
3435 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
3436 (grub_modbase): New variable.
3437 (grub_machine_init): Set grub_modbase.
3438 * grub-core/kern/main.c (grub_module_iterate): Remove.
3439 (grub_modules_get_end): Use grub_modbase.
3440 (grub_load_modules): Use FOR_MODULES.
3441 (grub_load_config): Likewise.
3442 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
3443 (grub_modbase): New variable.
3444 (grub_machine_init): Set grub_modbase.
3445 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
3446 (grub_modbase): New variable.
3447 (grub_machine_init): Set grub_modbase.
3448 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
3449 Removed.
3450 (grub_modbase): New variable.
3451 (grub_machine_init): Set grub_modbase.
3452 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
3453 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
3454 (grub_module_iterate): Likewise.
3455 (grub_modbase): New variable declaration.
3456 (FOR_MODULES): New macro.
3457
3458 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3459
3460 * configure.ac: Check for __ctzdi2 and __ctzsi2.
3461 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
3462
3463 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3464
3465 Fix few obvious type discrepancies.
3466
3467 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
3468 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
3469 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
3470 variable.
3471 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
3472 and connected types.
3473 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
3474 offset.
3475 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
3476 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
3477 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
3478 and connected types.
3479
3480 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3481
3482 Fix python 3.x incompatibilities.
3483
3484 * gentpl.py: Put brackets around print strings.
3485 * util/import_gcry.py: Open explicitly as utf-8.
3486 Use in instead of has_key.
3487
3488 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
3489
3490 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
3491 (GRUB_XFS_INO_AGBITS): Make into inline function.
3492 (GRUB_XFS_INO_INOINAG): Likewise.
3493 (GRUB_XFS_INO_AG): Likewise.
3494 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
3495 (GRUB_XFS_EXTENT_OFFSET): Likewise.
3496 (GRUB_XFS_EXTENT_BLOCK): Likewise.
3497 (GRUB_XFS_EXTENT_SIZE): Likewise.
3498 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
3499 (GRUB_XFS_NEXT_DIRENT): Likewise.
3500 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
3501 (grub_xfs_read_file): Fix offset type.
3502
3503 2011-10-15 Robert Millan <rmh@gnu.org>
3504
3505 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
3506
3507 2011-10-15 Robert Millan <rmh@gnu.org>
3508
3509 Fix build problem on FreeBSD and GNU/kFreeBSD.
3510
3511 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
3512
3513 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3514
3515 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
3516
3517 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
3518 types.
3519 (grub_hfsplus_btree_recoffset): Likewise.
3520 (grub_hfsplus_btree_recptr): Likewise.
3521 (grub_hfsplus_find_block): Likewise.
3522 (grub_hfsplus_btree_search): Likewise.
3523 (grub_hfsplus_read_block): Likewise.
3524 (grub_hfsplus_read_file): Likewise.
3525 (grub_hfsplus_mount): Likewise.
3526 (grub_hfsplus_btree_iterate_node): Likewise.
3527 (grub_hfsplus_btree_search): Likewise.
3528 (grub_hfsplus_iterate_dir): Likewise.
3529 (grub_hfsplus_read): A small code simplification.
3530
3531 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3532
3533 * grub-core/kern/emu/hostdisk.c
3534 (convert_system_partition_to_system_disk): Don't assume that children
3535 of mapper nodes are mapper nodes.
3536
3537 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
3538
3539 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
3540 * include/grub/misc.h (grub_isxdigit): New function.
3541 * grub-core/video/colors.c (my_isxdigit): Removed. All users
3542 switched to grub_isxdigit.
3543 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
3544 number starting with a letter.
3545
3546 2011-10-09 Robert Millan <rmh@gnu.org>
3547
3548 LVM support for FreeBSD and GNU/kFreeBSD.
3549
3550 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
3551 GNU/kFreeBSD.
3552 (LVM_DEV_MAPPER_STRING): Move from here ...
3553 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
3554 * util/getroot.c: Include `<grub/util/lvm.h>'.
3555 (grub_util_get_dev_abstraction): Enable
3556 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
3557 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
3558 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
3559 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
3560 support it.
3561 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
3562 GNU/kFreeBSD.
3563 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
3564 when LVM abstraction is required for ${GRUB_DEVICE}.
3565
3566 2011-10-06 Szymon Janc <szymon@janc.net.pl>
3567
3568 Add support for LZO compression in GRUB:
3569 - import of minilzo library,
3570 - LZO decompression for btrfs,
3571 - lzop files decompression.
3572
3573 * grub-core/io/lzopio.c: New file.
3574 * grub-core/lib/adler32.c: Likewise.
3575 * grub-core/lib/minilzo/lzoconf.h: Likewise.
3576 * grub-core/lib/minilzo/lzodefs.h: Likewise.
3577 * grub-core/lib/minilzo/minilzo.c: Likewise.
3578 * grub-core/lib/minilzo/minilzo.h: Likewise.
3579 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
3580 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
3581 grub-core/lib/minilzo/minilzo.c to common.
3582 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
3583 cflags in cppflags.
3584 * grub-core/Makefile.core.def (btrfs): Likewise.
3585 * grub-core/Makefile.core.def (lzopio): New module.
3586 (adler32): Likewise.
3587 * grub-core/fs/btrfs.c: Include minilzo.h.
3588 (GRUB_BTRFS_COMPRESSION_LZO): New define.
3589 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
3590 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
3591 (grub_btrfs_lzo_decompress): New function.
3592 (grub_btrfs_extent_read): Add support for LZO compression type.
3593 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
3594 (GRUB_USHRT_MAX): Likewise.
3595 (GRUB_UINT_MAX): Likewise.
3596 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
3597 (UINT_MAX): Likewise.
3598 (CHAR_BIT): Likewise.
3599 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
3600 grub-core/lib/posix_wrap/limits.h
3601 (UCHAR_MAX): Likewise.
3602 * include/grub/file.h (grub_file_filter_id): New compression filter
3603 GRUB_FILE_FILTER_LZOPIO.
3604 * include/grub/file.h (grub_file_filter_id): Set
3605 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
3606 * include/grub/types.h (grub_get_unaligned16): New function.
3607 (grub_get_unaligned32): Likewise.
3608 (grub_get_unaligned64): Likewise.
3609 * util/import_gcry.py (cryptolist): Add adler32.
3610
3611 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
3612
3613 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
3614 in perspective decreases the complexity of build system and fixes
3615 compilation right now.
3616
3617 2011-10-01 Ales Nesrsta <starous@volny.cz>
3618
3619 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
3620 (fixed problem related to using UHCI with coreboot).
3621
3622 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
3623
3624 * gentpl.py: Use Autogen macros so that the output template file
3625 (Makefile.tpl) size is reduced.
3626
3627 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
3628
3629 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
3630 extra_dist.
3631
3632 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3633
3634 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
3635 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
3636
3637 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3638
3639 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
3640 _fullpath.
3641
3642 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
3643
3644 Remove extra declaration of sleep for mingw32.
3645
3646 * util/misc.c (sleep) [__MINGW32__]: Removed.
3647 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
3648
3649 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
3650
3651 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
3652 type and packname.
3653 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
3654 Resurrected.
3655 (NETBSD_BTINFO_BOOTWEDGE): New definition.
3656 (grub_netbsd_btinfo_bootwedge): New struct.
3657 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
3658 New function.
3659 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
3660
3661 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
3662
3663 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
3664 loader.
3665
3666 2011-09-28 Andreas Born <futur.andy@googlemail.com>
3667
3668 Fix incorrect identifiers in bash-completion.
3669
3670 * util/bash-completion.d/grub-completion.bash.in
3671 (_grub_mkpasswd-pbkdf2): Rename to ...
3672 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
3673 (_grub_script-check): Rename to ...
3674 (_grub_script_check): ... this. All users updated.
3675
3676 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
3677
3678 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
3679 Return 0 if disk isn't biosdisk.
3680
3681 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3682
3683 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
3684 on NetBSD.
3685 * Makefile.util.def (grub-fstest): Likewise.
3686
3687 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
3688
3689 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
3690 Get sector size from disk label.
3691
3692 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
3693
3694 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
3695 */README* as well as README*.
3696 Reported by: Axel Beckert.
3697
3698 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3699
3700 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
3701 case of less than 256 MiB of RAM.
3702
3703 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3704
3705 * grub-core/commands/wildcard.c (make_regex): Handle @.
3706
3707 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
3708
3709 * util/grub-install.in: Move cryptodisk logic to appropriate place.
3710
3711 2011-08-21 Szymon Janc <szymon@janc.net.pl>
3712
3713 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
3714 AC_LANG_CONFTEST macros.
3715
3716 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3717
3718 Add grub-fstest option to uncompress data for commands.
3719
3720 * util/grub-fstest.c (uncompress): New var.
3721 (options): New option -u.
3722
3723 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3724
3725 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
3726 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
3727
3728 2011-08-20 Szymon Janc <szymon@janc.net.pl>
3729
3730 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
3731 file type was not recognized correctly (not gzip or corrupted).
3732
3733 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3734
3735 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
3736 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
3737
3738 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3739
3740 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
3741 loongson.
3742 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
3743 video_radeon_fuloong2e.
3744 * grub-core/video/radeon_fuloong2e.c: New file.
3745 * include/grub/video.h (grub_video_id_t): Add new ID
3746 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
3747
3748 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3749
3750 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
3751 define.
3752 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
3753 that PRID matches the detected subplatform and reset the subplatform
3754 if it doesn't.
3755
3756 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3757
3758 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
3759
3760 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3761
3762 Fix PCI iterating on functions >= 4.
3763
3764 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
3765 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
3766 Removed.
3767 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
3768 (grub_pci_read): Fix bitmask.
3769 (grub_pci_read_word): Likewise.
3770 (grub_pci_read_byte): Likewise.
3771 (grub_pci_write): Likewise.
3772 (grub_pci_write_word): Likewise.
3773 (grub_pci_write_byte): Likewise.
3774
3775 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3776
3777 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
3778 can still be specified in TARGET_CFLAGS)
3779
3780 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
3781
3782 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
3783
3784 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
3785 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
3786 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
3787 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
3788 (FULOONG): Rename to ...
3789 (FULOONG2F): ... this. All users updated.
3790 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
3791 (machtype_fuloong2f_str): ... this.
3792 (machtype_fuloong2e_str): New string.
3793 Check for machtype_fuloong2e_str.
3794 * grub-core/loader/mips/linux.c (loongson_machtypes)
3795 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
3796 * grub-core/term/serial.c (loongson_defserial)
3797 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
3798 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
3799 loongson_defserial.
3800 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
3801 Rename to ...
3802 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
3803 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
3804 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
3805 to IMAGE_FULOONG2F_FLASH. All users updated.
3806 (image_targets): Rename images.
3807 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
3808
3809 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3810
3811 Make enable of disk cache statistics code configurable.
3812
3813 * configure.ac: --enable-cache-stats added.
3814 * config.h.in (DISK_CACHE_STATS): New define.
3815 * grub-core/Makefile.core.def (cacheinfo): New command.
3816 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
3817 * grub-core/commands/cacheinfo.c: New file.
3818 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
3819 moved to cacheinfo.c.
3820 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
3821 debug code.
3822 * include/grub/disk.h: Likewise.
3823
3824 2011-08-19 Szymon Janc <szymon@janc.net.pl>
3825
3826 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
3827 * grub-core/Makefile.am: Likewise.
3828
3829 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3830
3831 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
3832 non-zero pull.
3833
3834 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3835
3836 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
3837 All users updated.
3838 (grub_jfs_lookup_symlink): Use correct starting inode.
3839
3840 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3841
3842 * util/grub-setup.c (main): Add missing gcry initialisation.
3843
3844 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
3845
3846 Don't accept text modes on EFI when booting Linux.
3847
3848 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
3849 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
3850
3851 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
3852 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3853
3854 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
3855 use of "/path/.." as in grub-install for EFI as well as handling
3856 symlinks correctly.
3857 Fixes Debian bug #637768.
3858
3859 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
3860
3861 * util/grub-probe.c: Remove duplicate #include.
3862
3863 2011-08-10 Robert Millan <rmh@gnu.org>
3864
3865 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
3866
3867 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
3868 function.
3869 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
3870 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
3871
3872 2011-08-03 Robert Millan <rmh@gnu.org>
3873
3874 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
3875 la_array as packed.
3876 Reported by: Zachary Bedell
3877
3878 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3879
3880 * configure.ac: The Loongson port requires grub-mkfont due to its
3881 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
3882 be built.
3883
3884 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
3885
3886 * util/grub-install.in: Don't source grub-mkconfig_lib until after
3887 processing arguments (otherwise help2man fails when GRUB has not yet
3888 been installed).
3889
3890 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3891
3892 New script grub-mkstandalone.
3893
3894 * Makefile.util.def (grub-mkstandalone): New script.
3895 * docs/man/grub-mkstandalone.h2m: New file.
3896 * util/grub-mkstandalone.in: Likewise.
3897
3898 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3899
3900 Support ATA disks with 4K sectors.
3901
3902 * include/grub/ata.h (grub_ata): New member log_sector_size.
3903 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
3904 (grub_ata_identify): Read sector size.
3905 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
3906
3907 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3908
3909 * util/grub-install.in: Don't use uhci outside of x86.
3910
3911 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3912
3913 * util/grub-mkrescue.in: Add missing quotes.
3914
3915 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
3916
3917 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
3918 dereference.
3919
3920 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3921
3922 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
3923
3924 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3925
3926 * include/grub/video.h: add missing EXPORT_FUND on
3927 grub_video_edid_checksum and grub_video_edid_preferred_mode.
3928
3929 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3930
3931 * include/grub/mips/kernel.h: Fix define conflict.
3932
3933 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
3934
3935 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
3936 all four ways.
3937
3938 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
3939
3940 Preferred resolution detection for VBE.
3941
3942 * grub-core/video/video.c (grub_video_edid_checksum): New function.
3943 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
3944 the Flat Panel extension, in line with the X.org VESA driver.
3945 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
3946 New function.
3947 (grub_vbe_bios_get_ddc_capabilities): Likewise.
3948 (grub_vbe_bios_read_edid): Likewise.
3949 (grub_vbe_get_preferred_mode): Likewise.
3950 (grub_video_vbe_setup): When the mode is "auto", try to get the
3951 preferred mode from VBE, and use the largest mode that is no larger
3952 than the preferred mode (some BIOSes expose a preferred mode that is
3953 not in their mode list!). If this fails, fall back to 640x480 as a
3954 safe conservative choice.
3955 (grub_video_vbe_get_edid): New function.
3956 (grub_video_vbe_adapter): Add get_edid.
3957 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
3958 (struct grub_video_adapter): Add get_edid.
3959 (grub_video_edid_checksum): Add prototype.
3960 (grub_video_edid_preferred_mode): Likewise.
3961 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
3962 structure.
3963
3964 * grub-core/commands/videoinfo.c (print_edid): New function.
3965 (grub_cmd_videoinfo): Print EDID if available.
3966
3967 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
3968 is more appropriate on a wider range of platforms than 640x480.
3969 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
3970 documentation.
3971
3972 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3973
3974 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
3975
3976 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3977
3978 * po/POTFILES.in: Regenerate.
3979
3980 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3981
3982 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
3983 incorrect memory usage.
3984
3985 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
3986
3987 * util/grub-install.in: Source grub-mkconfig_lib.
3988
3989 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
3990
3991 Remove getroot.c from core on emu platform.
3992
3993 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
3994 kern/emu/raid.c.
3995 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
3996 useless.
3997 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
3998 * util/getroot.c (get_win32_path): ... here.
3999 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
4000 * util/getroot.c (fini_libzfs): ... here.
4001 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
4002 * util/getroot.c (grub_get_libzfs_handle): ... here.
4003 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
4004 Moved from here...
4005 * util/getroot.c (grub_find_zpool_from_dir): ... here.
4006 * grub-core/kern/emu/misc.c
4007 (grub_make_system_path_relative_to_its_root): Moved from here...
4008 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
4009 * grub-core/kern/emu/getroot.c: Moved from here ...
4010 * util/getroot.c: ... here. All users updated.
4011 * grub-core/kern/emu/raid.c: Moved from here ...
4012 * util/raid.c: ... here. All users updated.
4013
4014 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
4015
4016 * po/POTFILES.in: Regenerate.
4017
4018 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4019
4020 Fix compilation on GNU/Linux.
4021
4022 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
4023 Disable geli.
4024 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
4025 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
4026 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
4027
4028 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4029 2011-07-07 Michael Gorven <michael@gorven.za.net>
4030 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
4031
4032 LUKS and GELI support.
4033
4034 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
4035 grub-core/disk/luks.c, grub-core/disk/geli.c,
4036 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
4037 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
4038 grub-core/lib/arg.c.
4039 (libgrubmods.a): Remove gcrypts cflags and cppflags.
4040 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
4041 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
4042 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
4043 (grub-bin2h): Add libgcry.a.
4044 (grub-mkimage): Likewise.
4045 (grub-mkrelpath): Likewise.
4046 (grub-script-check): Likewise.
4047 (grub-editenv): Likewise.
4048 (grub-mkpasswd-pbkdf2): Likewise.
4049 (grub-pe2elf): Likewise.
4050 (grub-fstest): Likewise.
4051 (grub-mkfont): Likewise.
4052 (grub-mkdevicemap): Likewise.
4053 (grub-probe): Likewise.
4054 (grub-ofpath): Likewise.
4055 (grub-mklayout): Likewise.
4056 (example_unit_test): Likewise.
4057 (grub-menulst2cfg): Likewise.
4058 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
4059 * grub-core/Makefile.core.def (cryptodisk): New module.
4060 (luks): Likewise.
4061 (geli): Likewise.
4062 * grub-core/disk/AFSplitter.c: New file.
4063 * grub-core/disk/cryptodisk.c: Likewise.
4064 * grub-core/disk/geli.c: Likewise.
4065 * grub-core/disk/luks.c: Likewise.
4066 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
4067 grub_util_is_lvm.
4068 (grub_util_get_dm_abstraction): New function.
4069 (grub_util_follow_gpart_up): Likewise.
4070 (grub_util_get_geom_abstraction): Likewise.
4071 (grub_util_get_dev_abstraction): Use new functions.
4072 (grub_util_pull_device): Pull GELI and LUKS.
4073 (grub_util_get_grub_dev): Handle LUKS and GELI.
4074 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
4075 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
4076 (follow_geom_up): Removed.
4077 (grub_util_fd_seek): New function.
4078 (open_device): Use grub_util_fd_seek.
4079 (nread): Rename to ..
4080 (grub_util_fd_read): ... this. All users updated.
4081 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
4082 (grub_crypto_cbc_decrypt): Likewise.
4083 (grub_crypto_hmac_write): Likewise.
4084 (grub_crypto_hmac_buffer): Likewise.
4085 (grub_password_get): Extend to util.
4086 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
4087 New member modname.
4088 (gcry_md_spec) [GRUB_UTIL]: Likewise.
4089 * include/grub/cryptodisk.h: New file.
4090 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
4091 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
4092 LUKS and GELI.
4093 (grub_util_follow_gpart_up): New proto.
4094 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
4095 (grub_util_fd_read): Likewise.
4096 (grub_cryptodisk_cheat_mount): Likewise.
4097 (grub_util_cryptodisk_print_uuid): Likewise.
4098 (grub_util_get_fd_sectors): Likewise.
4099 * util/grub-fstest.c (mount_crypt): New var.
4100 (fstest): Mount crypto if requested.
4101 (options): New option -C.
4102 (argp_parser): Parse -C.
4103 (main): Init and fini gcry.
4104 * util/grub-install.in: Support cryptodisk install.
4105 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
4106 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
4107 cryptodisk.
4108 (prepare_grub_to_access_device): Likewise.
4109 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
4110 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
4111 (probe_cryptodisk_uuid): New function.
4112 (probe_abstraction): Likewise.
4113 (probe): Use new functions.
4114 * util/import_gcry.py: Create Makefile.utilgcry.def.
4115 Add modname member.
4116
4117 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
4118
4119 Lazy device scanning.
4120
4121 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
4122 (grub-setup): Remove util/raid.c.
4123 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
4124 * grub-core/disk/lvm.c (scan_depth): New variable.
4125 (grub_lvm_iterate): Rescan if necessary.
4126 (find_lv): New function based on grub_lvm_open.
4127 (grub_lvm_open): Use find_lv. Rescan on error.
4128 (is_node_readable): New function.
4129 (is_lv_readable): Likewise.
4130 (grub_lvm_scan_device): Skip already found disks.
4131 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
4132 Stop if searched device is found and readable.
4133 * grub-core/disk/raid.c (inscnt): New variable.
4134 (scan_depth): Likewise.
4135 (scan_devices): New function based on grub_raid_register. Abort if
4136 looked for device is found.
4137 (grub_raid_iterate): Rescan if needed.
4138 (find_array): NEw function based on -grub_raid_open.
4139 (grub_raid_open): Use find_array and rescan.
4140 (insert_array): Set became_readable_at.
4141 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
4142 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
4143 New function.
4144 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
4145 (grub_util_pull_device): New function.
4146 (grub_util_get_grub_dev): Call grub_util_pull_device.
4147 * util/raid.c: Moved to ..
4148 * grub-core/kern/emu/raid.c: ... here.
4149 (grub_util_raid_getmembers): New parameter "bootable".
4150 All users updated. Support 1.x.
4151 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
4152 All users updated.
4153 * include/grub/disk.h (grub_disk_pull_t): New enum.
4154 (grub_disk_dev): Change iterate prototype.
4155 All users updated.
4156 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
4157 New proto.
4158 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
4159 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
4160 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
4161 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
4162 All users updated.
4163 * include/grub/util/raid.h: Removed.
4164
4165 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
4166
4167 * po/POTFILES.in: Regenerate.
4168
4169 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
4170
4171 Unify sparc init with other ieee1275.
4172
4173 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
4174 instead of kern/sparc64/ieee1275/init.c.
4175 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
4176 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
4177 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
4178 grub/machine/kernel.h.
4179 (grub_ieee1275_original_stack) [__sparc__]: New variable.
4180 (grub_claim_heap) [__sparc__]: Use sparc version.
4181 (grub_machine_init): Moved args parsing to
4182 (grub_parse_cmdline): ...this.
4183 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
4184 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
4185 New definition.
4186 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
4187
4188 Move BOOTP to separate file.
4189
4190 * grub-core/Makefile.core.def (net): Add net/bootp.c.
4191 * grub-core/net/net.c: Move all BOOTP functions to
4192 * grub-core/net/bootp.c: ... here.
4193
4194 Use frame interface on PXE.
4195
4196 * grub-core/Makefile.core.def (pxecmd): Removed.
4197 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
4198 * grub-core/commands/i386/pc/pxecmd.c: Removed.
4199 * grub-core/i386/pc/pxe.c: Moved from here ...
4200 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
4201 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
4202 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
4203
4204 EFI network support.
4205
4206 * grub-core/Makefile.core.def (efinet): New module.
4207 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
4208 here...
4209 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
4210 All users updated.
4211 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
4212 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
4213 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
4214 * grub-core/net/drivers/efi/efinet.c: New file.
4215 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
4216 (grub_efi_net_config): New extern var.
4217
4218 Various cleanups and bugfixes.
4219
4220 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
4221 error.
4222 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
4223 disk declared as partition.
4224 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
4225 leak on failure.
4226 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
4227 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
4228 (grub_debug_zalloc): Likewise.
4229 (grub_debug_realloc): Likewise.
4230 (grub_debug_memalign): Likewise.
4231 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
4232 Check that target is IPv4.
4233 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
4234 local-mac-address as fallback.
4235 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
4236 memory leak.
4237 * grub-core/net/ip.c (ipchksum): Rename to ...
4238 (grub_net_ip_chksum): ... this. All users updated.
4239 (grub_net_recv_ip_packets): Special handling for DHCP.
4240 * util/grub-mkimage.c (generate_image): Zero-out aout header.
4241
4242 Unify prefix handling
4243
4244 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
4245 (grub_machine_get_bootlocation): ... this.
4246 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
4247 (grub_machine_get_bootlocation): ... this.
4248 (grub_prefix): New variable.
4249 (prefix): Removed.
4250 (root_dev): New variable.
4251 (dir): Likewise.
4252 (main): Use new variables.
4253 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
4254 Revamped into ...
4255 (grub_machine_get_bootlocation): ... this.
4256 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
4257 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
4258 (grub_machine_get_bootlocation): ... this.
4259 (grub_machine_set_prefix): Removed.
4260 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
4261 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
4262 Revamped into ...
4263 (grub_machine_get_bootlocation): ... this.
4264 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
4265 (grub_set_prefix_and_root): ... this. All users updated.
4266 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
4267 Revamped into ...
4268 (grub_machine_get_bootlocation): ... this.
4269 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
4270 (grub_machine_get_bootlocation): New proto.
4271 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
4272
4273 Less intrusive and more reliable seek on network implementation.
4274
4275 * grub-core/kern/file.c (grub_file_net_seek): Removed.
4276 (grub_file_seek): Don't call grub_file_net_seek.
4277 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
4278 (grub_net_fs_read_real): .. this.
4279 (grub_net_seek_real): Use net->offset.
4280 (grub_net_fs_read): Seek if necessary.
4281
4282 Unify IEEE1275 netwotk config with the other platforms.
4283
4284 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
4285 New variable.
4286 (grub_machine_get_bootlocation): Support network.
4287 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
4288 Support type and device parsing.
4289 (grub_ieee1275_get_device_type): New function.
4290 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
4291 into ...
4292 (grub_ieee1275_net_config_real): ... this.
4293 (grub_ofnet_probecards): Removed.
4294 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
4295 * include/grub/ieee1275/ofnet.h: Removed.
4296 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
4297 extern var.
4298 (grub_ieee1275_get_device_type): New function.
4299
4300 Unify network device closing across platforms and make more robust.
4301
4302 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
4303 grub_grubnet_fini.
4304 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
4305 already.
4306 * grub-core/net/net.c (grub_net_network_level_interface_register):
4307 Update num_ifaces.
4308 (grub_net_card_unregister): Close all interfaces.
4309 (receive_packets): Don't poll if no iterfaces are registered.
4310 Open if necessary.
4311 (grub_net_fini_hw): New function.
4312 (grub_net_restore_hw): Likewise.
4313 (fini_hnd): New variable.
4314 (GRUB_MOD_INIT): Register preboot hook.
4315 (GRUB_MOD_FINI): Run and unregister preboot hook.
4316
4317 Poll network cards when idle.
4318
4319 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
4320 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
4321 * grub-core/net/net.c (receive_packets): Save last poll time.
4322 (grub_net_poll_cards_idle_real): New function.
4323 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
4324 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
4325 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
4326
4327 Rename ofnet interfaces.
4328
4329 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
4330 (grub_ofnet_findcards): Use ofnet_%s names.
4331
4332 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
4333
4334 Cleanup socket opening.
4335
4336 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
4337 (grub_net_fs_close): Likewise.
4338 (grub_net_fs_read_real): Use eof member.
4339 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
4340 (+grub_net_udp_close): New inline function.
4341
4342 * include/grub/net/tftp.h: Moved to the top of ...
4343 * grub-core/net/tftp.c: ... here.
4344 * include/grub/net/ip.h: Moved mostly to the top of ...
4345 * grub-core/net/ip.c: ... here.
4346 * include/grub/net/ethernet.h: Moved mostly to the top of ...
4347 * grub-core/net/ethernet.c: ... here.
4348
4349 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
4350
4351 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
4352 FS name.
4353
4354 * include/grub/net/ip.h (ipv4_ini): Removed.
4355 (ipv4_fini): Likewise.
4356
4357 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
4358 (grub_net_send_ip_packets): Likewise.
4359
4360 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4361
4362 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
4363 grub_read_cmos prototype.
4364
4365 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4366
4367 VGA text support in qemu-mips
4368
4369 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
4370 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
4371 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
4372 text.
4373 * grub-core/kern/i386/qemu/init.c: Renamed to ...
4374 * grub-core/kern/vga_init.c: ... this.
4375 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
4376 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
4377 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
4378 Adjust.
4379 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
4380 GRUB_MACHINE_PCI_IO_BASE.
4381
4382 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4383
4384 MIPS qemu flash support.
4385
4386 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
4387 magic.
4388 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
4389 (grub_machine_init): Probe memory if its size isn't known.
4390 * util/grub-mkimage.c (image_targets): Add flash targets.
4391 (generate_image): Handle flash targets.
4392
4393 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4394
4395 MIPS qemu at_keyboard support.
4396
4397 * gentpl.py (videoinkernel): Add qemu-mips.
4398 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
4399 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
4400 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
4401 modules.
4402 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
4403 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
4404 * grub-core/term/serial.c (grub_serial_register)
4405 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
4406
4407 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
4408
4409 CMOS support on sparc.
4410
4411 * gentpl.py (cmos): Add powerpc and sparc.
4412 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
4413 powerpc and sparc.
4414 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
4415 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
4416 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
4417 grub_set_datetime_cmos.
4418 * grub-core/lib/ieee1275/cmos.c: New file.
4419 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
4420 (find_rtc): Set no_ieee1275_rtc on error.
4421 (grub_get_datetime): Call grub_get_datetime_cmos on error.
4422 (grub_set_datetime): Call grub_set_datetime_cmos on error.
4423 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
4424 fail. Move value to argument. All users updated
4425 (grub_cmos_write): Likewise.
4426 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
4427 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
4428 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
4429 grub_get_datetime_cmos and grub_set_datetime_cmos.
4430
4431 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
4432
4433 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
4434 sourcing grub-mkconfig_lib.
4435 * util/update-grub_lib.in: Likewise.
4436 * util/grub.d/00_header.in: Likewise.
4437 * util/grub.d/10_hurd.in: Likewise.
4438 * util/grub.d/10_kfreebsd.in: Likewise.
4439 * util/grub.d/10_linux.in: Likewise.
4440 * util/grub.d/10_netbsd.in: Likewise.
4441 * util/grub.d/10_windows.in: Likewise.
4442 * util/grub.d/20_linux_xen.in: Likewise.
4443 * util/grub.d/30_os-prober.in: Likewise.
4444
4445 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
4446
4447 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
4448 default_bg_color rather than black.
4449 (grub_gfxterm_fullscreen): Likewise.
4450 (grub_gfxterm_background_color_cmd): Save new background color in
4451 default_bg_color.
4452
4453 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4454
4455 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
4456
4457 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4458
4459 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
4460 mismerge.
4461
4462 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4463
4464 Chainloading on coreboot support.
4465
4466 * grub-core/Makefile.core.def (chain): Add coreboot.
4467 * grub-core/loader/i386/coreboot/chainloader.c: New file.
4468
4469 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4470
4471 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
4472 if it happens.
4473
4474 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4475
4476 Implement time command.
4477
4478 * grub-core/Makefile.core.def (time): New module.
4479 * grub-core/commands/time.c: New file.
4480 * grub-core/script/parser.y: Remove "time" keyword.
4481 * grub-core/script/yylex.l: Likewise.
4482
4483 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4484
4485 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
4486
4487 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4488
4489 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
4490 when handling leftovers.
4491
4492 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4493
4494 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
4495 so that help2man doesn't fail.
4496
4497 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4498
4499 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
4500 type in pointers on sparc64.
4501 (get_card_packet): Likewise.
4502
4503 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
4504
4505 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
4506 with `*'.
4507 (grub_cmd_videoinfo): Fetch current video mode.
4508
4509 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4510
4511 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
4512 because of underlying system restrictions.
4513
4514 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4515
4516 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
4517 necessary.
4518
4519 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4520
4521 Coreboot video support.
4522
4523 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
4524 (vbe): Likewise.
4525 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
4526 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
4527 here ...
4528 * grub-core/kern/i386/int.S: ... here.
4529 * grub-core/video/i386/pc/vbe.c: Updated includes.
4530 * grub-core/video/i386/pc/vga.c: Likewise.
4531 * include/grub/i386/coreboot/memory.h
4532 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
4533 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
4534 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
4535 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
4536 Disable interrupts.
4537 * include/grub/i386/pc/vga.h: Removed. All users updated.
4538
4539 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4540
4541 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
4542 definitions for dprintf.
4543 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
4544
4545 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
4546
4547 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
4548 prototype.
4549 (get_card_packet): Likewise.
4550
4551 2011-06-26 Yves Blusseau <blusseau@zetam.org>
4552
4553 Display the path of the file when file is not found
4554
4555 * grub-core/fs/fat.c: Display the filename when file is not found.
4556 * grub-core/fs/fshelp.c: Likewise.
4557 * grub-core/fs/hfs.c: Likewise.
4558 * grub-core/fs/jfs.c: Likewise.
4559 * grub-core/fs/minix.c: Likewise.
4560 * grub-core/fs/ufs.c: Likewise.
4561 * grub-core/fs/btrfs.c: Likewise.
4562 * grub-core/commands/i386/pc/play.c: Likewise.
4563
4564 2011-06-26 Szymon Janc <szymon@janc.net.pl>
4565
4566 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
4567 pointer checks before calling grub_free().
4568 * grub-core/commands/wildcard.c (match_devices): Likewise.
4569 * grub-core/commands/wildcard.c (match_files): Likewise.
4570 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
4571 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
4572 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
4573 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
4574 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
4575 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
4576 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
4577 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
4578 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
4579
4580 2011-06-25 Patrick <p55@mailinator.com>
4581
4582 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
4583
4584 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
4585
4586 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
4587 (grub_pxe_send): Likewise.
4588 (GRUB_MOD_INIT): Fix types.
4589
4590 2011-06-24 Szymon Janc <szymon@janc.net.pl>
4591
4592 * grub-core/io/xzio.c: Fix code style issues
4593
4594 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4595 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
4596
4597 Network infrastructure.
4598 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
4599
4600 * include/grub/net/arp.h: New file.
4601 * include/grub/net/device.h: Likewise.
4602 * include/grub/net/ethernet.h: Likewise.
4603 * include/grub/net/ip.h: Likewise.
4604 * include/grub/net/netbuff.h: Likewise.
4605 * include/grub/net/tftp.h: Likewise.
4606 * include/grub/net/udp.h: Likewise.
4607 * include/grub/ieee1275/ofnet.h: Likewise.
4608 * include/grub/emu/export.h: Likewise.
4609 * include/grub/net.h: Likewise.
4610 * grub-core/net/arp.c: Likewise.
4611 * grub-core/net/ethernet.c: Likewise.
4612 * grub-core/net/ip.c: Likewise.
4613 * grub-core/net/udp.c: Likewise.
4614 * grub-core/net/tftp.c: Likewise.
4615 * grub-core/net/netbuff.c: Likewise.
4616 * grub-core/net/net.c: Likewise.
4617 * grub-core/net/drivers/emu/emunet.c: Likewise.
4618 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
4619 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
4620 export.h.
4621 * grub-core/Makefile.core.def (net): New module.
4622 (tftp): Likewise.
4623 (ofnet): Likewise.
4624 (emunet): Likewise.
4625 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
4626 network protocols.
4627 * grub-core/kern/device.c (grub_net_open) : New variable.
4628 (grub_device_open): Handle network device.
4629 (grub_device_close): Likewise.
4630 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
4631 (grub_grubnet_fini): Likewise.
4632 (grub_file_seek): Seek in network device.
4633 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
4634 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
4635 network root.
4636 (grub_machine_fini): Call grub_grubnet_fini.
4637 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
4638 network.
4639 (grub_ieee1275_get_aliasdevname): New function.
4640 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
4641 Add unofficial Solaris network info.
4642 (grub_multiboot_make_mbi): Likewise.
4643 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
4644 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
4645 * include/grub/device.h (grub_fs): Removed.
4646 * include/grub/err.h (grub_err_t): Add network-related values.
4647 * include/grub/i386/pc/pxe.h: Removed bootp parts.
4648 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
4649 (grub_ieee1275_get_aliasdevname): New proto.
4650 * include/grub/net.h: Rewritten.
4651
4652 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4653
4654 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
4655 names.
4656
4657 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4658
4659 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
4660 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
4661 it truncates the output.
4662 Reported by: Ximin Luo.
4663
4664 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4665
4666 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
4667
4668 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4669
4670 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
4671 partmap before abstraction.
4672
4673 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
4674
4675 * util/grub-mkconfig_lib.in: Add missing quotes.
4676
4677 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4678
4679 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
4680 old method if mountinfo would return /dev/root and /dev/root doesn't
4681 exist.
4682
4683 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4684
4685 ZFS zlib support
4686
4687 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
4688 (decomp_table): Add zlib entries.
4689 (zio_read): USe 8 bits for compression function rather than 3.
4690 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
4691
4692 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
4693
4694 * grub-core/disk/ahci.c: Add missing license statements.
4695 * grub-core/fs/romfs.c: Likewise.
4696 * grub-core/lib/ia64/setjmp.S: Likewise.
4697 * grub-core/loader/i386/pc/freedos.c: Likewise.
4698 * grub-core/loader/ia64/efi/linux.c: Likewise.
4699 * grub-core/video/colors.c: Likewise.
4700 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
4701
4702 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4703
4704 AHCI support.
4705
4706 * grub-core/Makefile.core.def (ata_pthru): Removed.
4707 (ahci): New module.
4708 (pata): Likewise.
4709 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
4710 on unload.
4711 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
4712 readwrite.
4713 (grub_hdparm_do_check_powermode_cmd): Likewise.
4714 (grub_hdparm_do_smart_cmd): Likewise.
4715 (grub_hdparm_set_val_cmd): Likewise.
4716 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
4717 * grub-core/disk/ahci.c: New file.
4718 * grub-core/disk/ata.c: Factor out the low-level part into ...
4719 * grub-core/disk/pata.c: ... here.
4720 * grub-core/disk/ata_pthru.c: Contents moved to ...
4721 * grub-core/disk/pata.c: ... here.
4722 * grub-core/disk/scsi.c (grub_scsi_names): New array.
4723 (grub_scsi_iterate): Use grub_scsi_names.
4724 (grub_scsi_open): Likewise.
4725 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
4726 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
4727 (grub_ata_regs_t): New struct.
4728 (grub_disk_ata_pass_through_parms): Likewise.
4729 (grub_ata_device): Renamed to ...
4730 (grub_ata): ... this.
4731 (grub_ata_dev): New struct.
4732 Removed all low-level inline functions.
4733 * include/grub/scsi.h: Add PATA and AHCI subsystems.
4734 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
4735 iterate hooks and open. All users updated.
4736 * util/grub-install.in: Handle AHCI disk module.
4737
4738 2011-06-23 Szymon Janc <szymon@janc.net.pl>
4739
4740 Add support for DRI and RSTn markers in JPEG files.
4741
4742 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
4743 (JPEG_MARKER_RST0): Likewise.
4744 (JPEG_MARKER_RST1): Likewise.
4745 (JPEG_MARKER_RST2): Likewise.
4746 (JPEG_MARKER_RST3): Likewise.
4747 (JPEG_MARKER_RST4): Likewise.
4748 (JPEG_MARKER_RST5): Likewise.
4749 (JPEG_MARKER_RST6): Likewise.
4750 (JPEG_MARKER_RST7): Likewise.
4751 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
4752 (grub_jpeg_decode_dri): New function.
4753 (grub_jpeg_decode_sos): Move image data related part into
4754 grub_jpeg_decode_data function.
4755 (grub_jpeg_decode_data): New function.
4756 (grub_jpeg_reset): New function.
4757 (grub_jpeg_decode_jpeg): Handle new markers.
4758
4759 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4760
4761 * util/ieee1275/ofpath.c (check_sas): Close fd.
4762 (main): Free of_path.
4763 Reported by: David Volgyes <dvolgyes>.
4764
4765 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4766
4767 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
4768 Reported by: David Volgyes <dvolgyes>.
4769
4770 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4771
4772 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
4773 file after stat.
4774 Reported by: David Volgyes <dvolgyes>.
4775
4776 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4777
4778 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
4779
4780 Reported by: David Volgyes <dvolgyes>.
4781
4782 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4783
4784 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
4785 Prevent memory leak.
4786
4787 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4788
4789 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
4790 (main): Close file.
4791 Reported by: David Volgyes <dvolgyes>.
4792
4793 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4794
4795 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
4796 to continue if allocation is failed.
4797
4798 Reported by: David Volgyes <dvolgyes>.
4799
4800 2011-06-23 David Volgyes <dvolgyes>
4801
4802 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
4803 dereference.
4804
4805 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4806
4807 Fix spurious warning.
4808
4809 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
4810 (acorn_partition_map_find): Use .bin member.
4811
4812 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4813
4814 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
4815 /dev/root as a valid device.
4816
4817 2011-06-23 Jim Meyering <meyering@redhat.com>
4818
4819 Avoid NULL deref in grub_device_open.
4820
4821 * grub-core/kern/device.c (grub_device_open): Don't dereference
4822 a NULL pointer upon failed grub_env_get.
4823
4824 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
4825
4826 Support non-512B sectors and agglomerate reads.
4827
4828 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
4829 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
4830 (disk_io_guid): Removed.
4831 (make_devices): Locate solely by BlockIO.
4832 (grub_efidisk_open): Fill log_sector_size and total_sectors.
4833 (grub_efidisk_read): Use read_blocks.
4834 (grub_efidisk_write): Use write_blocks.
4835 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
4836 log_sector_size.
4837 (get_safe_sectors): Handle non-512B sectors.
4838 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
4839 sectors.
4840 (grub_biosdisk_write): Handle non-512B sectors.
4841 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
4842 (grub_scsi_read): Remove special non-512B block handling (now handled
4843 one level up).
4844 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
4845 and do sanity checks.
4846 (grub_disk_adjust_range): Handle non-512B sectors.
4847 (transform_sector): New function.
4848 (grub_disk_read_small): Likewise.
4849 (grub_disk_read): Rewritten.
4850 (grub_disk_write): Handle non-512B sectors.
4851 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
4852 log_sector_size.
4853 (open_device): Use log_sector_size.
4854 (grub_util_biosdisk_read): Likewise.
4855 (grub_util_biosdisk_write): Likewise.
4856 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
4857 non-512B sectors.
4858 (pc_partition_map_embed): Likewise.
4859 * include/grub/disk.h (grub_disk): New field log_sector_size.
4860 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
4861 (GRUB_DISK_CACHE_BITS): Increased to 6.
4862 * util/grub-fstest.c (fstest): New command testload.
4863 (argp_parser): Likewise.
4864
4865 2011-06-16 Robert Millan <rmh@gnu.org>
4866
4867 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
4868 `ata' driver on kernel of FreeBSD 9.
4869
4870 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
4871 (get_ataraid_disk_name): New functions.
4872 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
4873 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
4874 get_ataraid_disk_name() and get_ada_disk_name().
4875
4876 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
4877
4878 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
4879 input format.
4880
4881 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
4882
4883 * docs/grub.texi (Obtaining and Building GRUB): Substitute
4884 `ftp.gnu.org' for `alpha.gnu.org'.
4885
4886 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4887
4888 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
4889 partitions under /dev/disk/by-id/.
4890
4891 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
4892
4893 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
4894 after ten consecutive open failures. Scanning all the way up to
4895 10000 is excessive and can cause serious performance problems in
4896 some configurations.
4897 Fixes Ubuntu bug #787461.
4898
4899 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4900
4901 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
4902 opening new one.
4903
4904 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
4905 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
4906
4907 Don't stat devices unless we have to.
4908
4909 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
4910 dir == /dev/mapper.
4911 (grub_guess_root_device): Use already known os_dev if possible.
4912 * grub-core/kern/emu/hostdisk.c
4913 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
4914 if device is known to be a dm one.
4915
4916 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
4917
4918 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
4919 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
4920 Reported by: Pawel Tecza.
4921
4922 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
4923
4924 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
4925 (lsefisystab): Likewise.
4926 (lssal): Likewise.
4927 (lsefimmap): Likewise.
4928 (hdparm): Enable on qemu-mips.
4929 (setjmp): Add ia64 nodist.
4930 (serial): Simplify tags.
4931
4932 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4933
4934 * Makefile.util.def (grub-ofpathname): Install manual page.
4935
4936 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4937
4938 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
4939
4940 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4941
4942 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
4943
4944 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4945
4946 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
4947 into dprintf.
4948
4949 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
4950
4951 Use full 64-bit division.
4952
4953 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
4954 (grub_divmod64): ... this.
4955 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
4956 version.
4957
4958 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4959
4960 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
4961 `source'.
4962
4963 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4964
4965 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
4966 to avoid accidents when debugging with 'sh -x'.
4967 * grub-core/gensyminfo.sh.in: Likewise.
4968 * tests/example_scripted_test.in: Likewise.
4969 * tests/grub_cmd_regexp.in: Likewise.
4970 * tests/grub_script_blanklines.in: Likewise.
4971 * tests/grub_script_dollar.in: Likewise.
4972 * tests/grub_script_expansion.in: Likewise.
4973 * tests/grub_script_final_semicolon.in: Likewise.
4974 * tests/partmap_test.in: Likewise.
4975 * tests/util/grub-shell-tester.in: Likewise.
4976 * tests/util/grub-shell.in: Likewise.
4977
4978 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
4979
4980 Move gfxmenu color handling to video, so that gfxterm can use it
4981 too.
4982
4983 * grub-core/gfxmenu/named_colors.c: Move to ...
4984 * grub-core/video/colors.c: ... here. Rename
4985 grub_gui_get_named_color to grub_video_get_named_color.
4986 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
4987 * grub-core/video/colors.c (my_isxdigit): ... here.
4988 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
4989 Move to ...
4990 * grub-core/video/colors.c (parse_hex_color_component): ... here.
4991 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
4992 to ...
4993 * grub-core/video/colors.c (grub_video_parse_color): ... here.
4994
4995 * include/grub/gui.h (grub_gui_color_t): Move to ...
4996 * include/grub/video.h (grub_video_rgba_color_t): ... here.
4997 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
4998 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
4999 * include/grub/gui.h (grub_gui_map_color): Move to ...
5000 * include/grub/video.h (grub_video_map_rgba_color): ... here.
5001 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
5002 to ...
5003 * include/grub/video.h (grub_video_get_named_color): ... here.
5004 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
5005 * include/grub/video.h (grub_video_parse_color): ... here.
5006
5007 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
5008 video/colors.c.
5009 (gfxmenu): Remove gfxmenu/named_colors.c.
5010 (video) [videomodules]: Add video/colors.c.
5011
5012 Add a background_color command.
5013
5014 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
5015 function.
5016 (GRUB_MOD_INIT): Register background_color command.
5017 (GRUB_MOD_FINI): Unregister background_color command.
5018 (redraw_screen_rect): Allow blend/replace of text layer to be
5019 controlled independently from whether there is a background bitmap.
5020 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
5021 changing bitmap.
5022
5023 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5024
5025 Patch BPB in ntldr and chainloader --bpb.
5026
5027 * grub-core/fs/fat.c: Include grub/fat.h.
5028 (grub_fat_bpb): Moved to ...
5029 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
5030 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
5031 grub/ntfs.h.
5032 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
5033 Moved from here...
5034 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
5035 here.
5036 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
5037 New function.
5038 (grub_chainloader_cmd): Patch BPB if --bpb is given.
5039 (GRUB_MOD_INIT): Show --bpb.
5040 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
5041 * grub-core/normal/main.c (features): New variable.
5042 (GRUB_MOD_INIT): Set feature_* variables.
5043 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
5044 proto.
5045 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
5046
5047 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5048
5049 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
5050 for cleanness.
5051
5052 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5053
5054 FreeDOS direct loading support.
5055
5056 * docs/grub.texi (Supported OS): Add FreeDOS.
5057 * grub-core/Makefile.core.def (freedos): New module.
5058 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
5059 variable.
5060 (grub_relocator16_boot): Handle %ebx.
5061 * grub-core/lib/i386/relocator16.S: Likewise.
5062 * grub-core/loader/i386/pc/freedos.c: New file.
5063
5064 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5065
5066 Long Linux command line support.
5067
5068 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
5069 (maximal_cmdline_size): New variable.
5070 (allocate_pages): Use maximal_cmdline_size.
5071 (grub_cmd_linux): Set and use maximal_cmdline_size.
5072 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
5073 (allocate_pages): Use maximal_cmdline_size.
5074 (grub_cmd_linux): Set and use maximal_cmdline_size.
5075 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
5076 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
5077 and cmdline_size.
5078
5079 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5080 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
5081
5082 Improve devmapper support
5083
5084 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
5085 (grub_util_is_lvm): New function.
5086 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
5087 than lvm if not dmraid.
5088 Handle mapped md nodes.
5089 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
5090 (grub_util_device_is_mapped): ... this. Make always available. All users
5091 updated.
5092 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
5093 (convert_system_partition_to_system_disk): Handle lvm, mpath and
5094 dmraid nodes.
5095 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
5096
5097 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
5098
5099 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
5100
5101 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
5102 * grub-core/modinfo.sh.in: New file.
5103 * grub-core/Makefile.core.def (modinfo.sh): New script.
5104 * util/grub-mknetdir.in: Use modinfo.sh.
5105 * util/grub-mkrescue.in: Likewise.
5106
5107 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5108
5109 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
5110 Fix potential usage of Elf32 instead of Elf64 when compiling on
5111 32-bit architecture. Add endianness macros while on it.
5112
5113 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5114
5115 Use mipsel- rather than mips- in directories involving mipsel ports to
5116 allow both endiannesses coexist.
5117
5118 * configure.ac: proparate target_cpu=mipsel rather than resetting to
5119 mips. All conditions adjusted.
5120 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
5121 variable.
5122 * util/grub-install.in: Adjust conditions to take renaming into account.
5123 * util/grub-mkimage.c (image_targets): Likewise. New target
5124 mips-qemu_mips-elf for bigendian mips.
5125
5126 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5127
5128 Avoid unnecessary copying on MIPS.
5129
5130 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
5131 early if src == dest.
5132 * util/grub-mkimage.c (generate_image): Arange for src == dest if
5133 compression is none.
5134
5135 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5136
5137 Reduce memory footprint on SGI by putting modules before the kernel
5138 as opposed to after.
5139
5140 * grub-core/Makefile.core.def (kernel): Increase linking address.
5141 (none_decompress): Likewise.
5142 (xz_decompress): Likewise.
5143 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
5144 address.
5145 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
5146 layout change.
5147 (grub_arch_modules_addr): New function.
5148 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
5149 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
5150 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
5151 here.
5152 * grub-core/kern/mips/startup.S (total_size): Rename to ...
5153 (grub_total_modules_size): ... this. Make global.
5154 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
5155 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
5156 New definition.
5157 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
5158 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
5159 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
5160 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
5161 * util/grub-mkimage.c (image_target_desc): New flag
5162 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
5163 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
5164 (generate_image): Handle images with modules before kernel.
5165
5166 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5167
5168 Prevent potential loss of memory map by overwrite on qemu-mips.
5169
5170 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
5171 Save ram size in $s4.
5172 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
5173 All users changed to grub_arch_memsize.
5174 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
5175 Loongson.
5176 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
5177 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
5178 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
5179 external variable.
5180
5181 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5182
5183 * .bzrignore: Remove grub-dumpbios.
5184
5185 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5186
5187 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
5188 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
5189 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
5190 existing options which append).
5191 * docs/grub.texi (Simple configuration): Document new options.
5192 Reported by: Ian Jackson. Fixes Debian bug #617538.
5193
5194 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5195
5196 * util/grub-fstest.c (cmd_cat): New function.
5197 (fstest): Handle CMD_CAT.
5198 (options): Add cat.
5199 (argp_parser): Handle cat.
5200
5201 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
5202
5203 * Makefile.util.def (grub-bin2h): Don't install.
5204 * docs/man/grub-bin2h.h2m: Remove.
5205
5206 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5207
5208 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
5209 place.
5210
5211 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5212
5213 Reenable qemu-mips port.
5214
5215 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
5216 Fix small arc bug while on it.
5217 * gentpl.py: Handle qemu_mips.
5218 * grub-core/Makefile.am: Likewise.
5219 * grub-core/Makefile.core.def: Likewise.
5220 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
5221 inappropriate includes.
5222 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
5223 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
5224 * grub-core/kern/main.c (grub_modules_get_end)
5225 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
5226 * grub-core/kern/mips/qemu-mips: Moved to ..
5227 * grub-core/kern/mips/qemu_mips: ... this.
5228 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
5229 (grub_machine_init): Call terminfo_init and serial_init.
5230 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
5231 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
5232 New variable.
5233 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
5234 parameter passing.
5235 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
5236 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
5237 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
5238 * include/grub/mips/qemu_mips/cmos.h: New file.
5239 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
5240 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
5241 Removed.
5242 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
5243 Use correct mips-style address.
5244 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
5245 (GRUB_TICKS_PER_SECOND): Removed.
5246 (grub_get_rtc): Likewise.
5247 (grub_cpu_idle): Likewise.
5248 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
5249 New definition.
5250 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
5251 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
5252 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
5253 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
5254 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
5255 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
5256 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
5257 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
5258
5259 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
5260
5261 SGI ARCS port.
5262
5263 * Makefile.util.def (libgrubmods.a): Add dvh.c.
5264 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
5265 platforms.
5266 * configure.ac: New target mips-arc.
5267 * gentpl.py: Likewise.
5268 * grub-core/Makefile.am: Likewise.
5269 * grub-core/Makefile.core.def: Likewise.
5270 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
5271 (none_decompress): Likewise.
5272 (lsdev): New module.
5273 (datetime): Use lib/arc/datetime.c on ARC.
5274 (part_dvh): New module.
5275 * grub-core/commands/arc/lsdev.c: New file.
5276 * grub-core/disk/arc/arcdisk.c: Likewise.
5277 * grub-core/kern/mips/arc/init.c: Likewise.
5278 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
5279 aligned addresses.
5280 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
5281 support.
5282 (grub_arch_dl_relocate_symbols): Likewise.
5283 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
5284 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
5285 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
5286 platforms.
5287 * grub-core/lib/arc/datetime.c: New file.
5288 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
5289 pci.h on non-loongson.
5290 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
5291 (grub_linux_boot): Set unused registers to 0.
5292 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
5293 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
5294 * grub-core/mmap/mips/uppermem.c: ...here.
5295 * grub-core/partmap/dvh.c: New file.
5296 * grub-core/term/arc/console.c: Likewise.
5297 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
5298 (grub_terminfo_set_current): Add terminal "arc".
5299 (grub_terminfo_readkey): Support ARC sequences.
5300 * include/grub/arc/arc.h: New file.
5301 * include/grub/arc/console.h: Likewise.
5302 * include/grub/disk.h (grub_disk_dev_id): Add
5303 GRUB_DISK_DEVICE_ARCDISK_ID.
5304 * include/grub/mips/arc/kernel.h: New file.
5305 * include/grub/mips/arc/memory.h: Likewise.
5306 * include/grub/mips/arc/time.h: Likewise.
5307 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
5308 * include/grub/mips/kernel.h (grub_halt): ... here.
5309 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
5310 here...
5311 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
5312 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
5313 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
5314 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
5315 proto.
5316 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
5317 from here ...
5318 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
5319 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
5320 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
5321 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
5322 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
5323 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
5324 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
5325 (grub_phys_addr_t): Moved from here ...
5326 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
5327 (grub_vtop): Moved from here ...
5328 * include/grub/mips/memory.h (grub_vtop): ... here.
5329 (grub_map_memory): Moved from here ...
5330 * include/grub/mips/memory.h (grub_map_memory): ... here.
5331 (grub_unmap_memory): Moved from here ...
5332 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
5333 (grub_machine_mmap_iterate): Moved from here ...
5334 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
5335 (grub_mmap_get_lower): Moved from here ...
5336 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
5337 (grub_mmap_get_upper): Moved from here ...
5338 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
5339 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
5340 here ...
5341 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
5342 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
5343 here ...
5344 * include/grub/mips/time.h (grub_get_rtc): ... here.
5345 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
5346 here ...
5347 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
5348 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
5349 here ...
5350 * include/grub/mips/time.h (grub_cpu_idle): ... here.
5351 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
5352 definition.
5353 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
5354 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
5355 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
5356 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
5357 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
5358 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
5359 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
5360 (GRUB_MACHINE_LINK_ADDR): Likewise.
5361 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
5362 to 6.
5363 * util/grub-install.in: Run dvhtool on ARC.
5364 * util/grub-mkimage.c (image_targets): Add mips-arc.
5365 (generate_image): Handle ECOFF output for mips-arc.
5366
5367 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5368
5369 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
5370 blocks.
5371
5372 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5373
5374 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
5375 after enabling port.
5376
5377 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5378
5379 Skip incorrect USB devices.
5380
5381 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
5382 configcnt == 0.
5383 * include/grub/usb.h (grub_usb_err_t): New enum value
5384 GRUB_USB_ERR_BADDEVICE.
5385
5386 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
5387
5388 Fuloong video init support.
5389
5390 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
5391 well.
5392 (grub_vga_read_arx): New function.
5393 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
5394 definition.
5395 (framebuffer): New members io, mmioptr and mmiobase.
5396 (read_sis_cmd): New function.
5397 (write_sis_cmd): Likewise.
5398 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
5399 rather than 640x400.
5400 * grub-core/video/sis315_init.c: New file.
5401
5402 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5403
5404 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
5405 non-loongson.
5406 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
5407 to grub_dl_register_symbol.
5408
5409 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5410
5411 Fix compilation errors.
5412
5413 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
5414 potentially unused.
5415 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
5416 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
5417 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
5418 to loongson machines.
5419
5420 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5421
5422 Several FS mtime support.
5423
5424 * grub-core/fs/affs.c (grub_affs_time): New struct.
5425 (grub_affs_file): New field mtime.
5426 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
5427 type. Removed 'size'. New field 'di'. All users updated.
5428 (grub_affs_mount): Simplify checsum checking.
5429 (grub_affs_iterate_dir): New helper grub_affs_create_node.
5430 (grub_affs_dir): Handle mtime.
5431 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
5432 (grub_cpio_dir): Likewise.
5433 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
5434 (grub_hfs_filerec): New field mtime.
5435 (grub_hfs_dir): Handle mtime.
5436 (grub_hfs_mtime): New function.
5437 (grub_hfs_fs): Register grub_hfs_mtime.
5438 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
5439 (grub_iso9660_dir): New field mtime.
5440 (grub_fshelp_node): New field dirent.
5441 (iso9660_to_unixtime): New function.
5442 (iso9660_to_unixtime2): Likewise.
5443 (grub_iso9660_read_symlink): Use node->dirent.
5444 (grub_iso9660_iterate_dir): Likewise.
5445 (grub_iso9660_dir): Set mtime.
5446 (grub_iso9660_mtime): New function.
5447 (grub_iso9660_fs): Register grub_iso9660_mtime.
5448 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
5449 (grub_jfs_inode): New fields atime, ctime and mtime.
5450 (grub_jfs_dir): Set mtime.
5451 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
5452 * grub-core/fs/ntfs.c (list_file): Set mtime.
5453 (grub_ntfs_dir): Likewise.
5454 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
5455 (grub_reiserfs_iterate_dir): Set mtime.
5456 (grub_reiserfs_dir): Likewise.
5457 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
5458 (grub_fshelp_node): Likewise.
5459 (grub_sfs_iterate_dir): Set mtime.
5460 (grub_sfs_dir): Likewise.
5461 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
5462 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
5463 (grub_xfs_inode): New fields atime, mtime, ctime.
5464 (grub_xfs_dir): Set mtime.
5465 * include/grub/datetime.h (grub_datetime2unixtime): New function.
5466 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
5467 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
5468
5469 Support UDF symlinks.
5470
5471 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
5472 (grub_ufs_read_symlink): New function. All users updated.
5473
5474 Check amiga partmap checksum.
5475
5476 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
5477 (grub_amiga_partition): Likewise.
5478 (amiga_partition_map_checksum): New function.
5479 (amiga_partition_map_iterate): Check checksum.
5480
5481 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5482
5483 ROMFS support.
5484
5485 * Makefile.util.def (libgrubmods.a): Add romfs.
5486 * grub-core/Makefile.core.def (romfs): New module.
5487 * grub-core/fs/romfs.c: New file.
5488
5489 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5490
5491 Squashfs v4 support.
5492
5493 * Makefile.util.def (libgrubmods.a): Add squash4.
5494 * grub-core/Makefile.core.def (squash4): New module.
5495 * grub-core/fs/squash4.c: New file.
5496 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
5497 disk_input_start, disk_input.
5498 (get_byte): Handle disk_input.
5499 (grub_zlib_disk_read): New function.
5500 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
5501
5502 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5503 2011-05-15 Feiran Zheng <famcool@gmail.com>
5504
5505 * Makefile.util.def (libgrubmods.a): Add minix3.
5506 * grub-core/Makefile.core.def (minix3): New module.
5507 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
5508 (GRUB_MINIX_BSIZE): Removed.
5509 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
5510 (grub_minix_ino_t): New type.
5511 (grub_minix_le_to_cpu_ino): New macro.
5512 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
5513 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
5514 (grub_minix_data): New field block_size.
5515 (grub_minix_read_file): Handle 64-bit correctly.
5516 * grub-core/fs/minix3.c: New file.
5517
5518 2011-05-15 Tristan Gingold <gingold@free.fr>
5519 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
5520 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5521
5522 IA64 support.
5523
5524 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
5525 * configure.ac: Add ia64-efi target.
5526 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
5527 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
5528 * gentpl.py: Add ia64_efi platform.
5529 Rename x86_efi to efi and Add ia64-efi. All users updated.
5530 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
5531 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
5532 Remove kern/generic/rtc_get_time_ms.c on EFI.
5533 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
5534 kern/ia64/dl_helper.c on ia64-efi.
5535 Add kern/emu/cache.c on emu.
5536 (linux): Use on loader/ia64/efi/linux.c on ia64.
5537 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
5538 whether symbol is a function.
5539 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
5540 (grub_symbol): New field 'isfunc'.
5541 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
5542 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
5543 (grub_dl_load_segments): Place all sections into the same region.
5544 [__ia64__]: Create trampolines and got.
5545 [GRUB_MACHINE_EMU]: Call mprotect.
5546 (grub_dl_resolve_symbols): Resolve symbol type as well.
5547 [__ia64__]: Create function descriptors.
5548 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
5549 (grub_rtc_get_time_ms): ... this. Expressions simplified.
5550 (grub_get_rtc): New function.
5551 * grub-core/kern/emu/cache.c [__ia64__]: New file.
5552 * grub-core/kern/emu/cache.S: Renamed to ...
5553 * grub-core/kern/emu/cache_s.S: ... this.
5554 [__ia64__]: Add a nop.
5555 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
5556 [__ia64__]: New function.
5557 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
5558 * grub-core/kern/ia64/dl.c: New file.
5559 * grub-core/kern/ia64/dl_helper.c: Likewise.
5560 * grub-core/kern/ia64/efi/init.c: New file.
5561 * grub-core/kern/ia64/efi/startup.S: Likewise.
5562 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
5563 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
5564 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
5565 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
5566 * grub-core/loader/ia64/efi/linux.c: New file.
5567 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
5568 (GRUB_MOD_DEP): Likewise.
5569 (grub_dl) [__ia64__]: New fields got and tramp.
5570 (grub_dl): New field 'base'.
5571 (grub_dl_register_symbol): New argument isfunc. All users updated.
5572 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
5573 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
5574 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
5575 (grub_ia64_dl_get_tramp_got_size): New proto.
5576 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
5577 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
5578 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
5579 * include/grub/efi/api.h: Skip call wrappers on ia64.
5580 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
5581 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
5582 * include/grub/elf.h (ELF_ST_INFO): New definition.
5583 * include/grub/ia64/efi/kernel.h: New file.
5584 * include/grub/ia64/efi/memory.h: Likewise.
5585 * include/grub/ia64/efi/time.h: Likewise.
5586 * include/grub/ia64/kernel.h: Likewise.
5587 * include/grub/ia64/setjmp.h: Likewise (from glibc).
5588 * include/grub/ia64/time.h: New file.
5589 * include/grub/ia64/types.h: Likewise.
5590 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
5591 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
5592 New protos.
5593 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
5594 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
5595 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
5596 * util/grub-mkimage.c (image_target_desc): New field pe_target.
5597 All users updated.
5598 (EFI64_HEADER_SIZE): New definition. All users updated.
5599 (image_targets): Add ia64-efi.
5600 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
5601 jumpers_addr. All users updated.
5602 Create function descriptors.
5603 (count_funcs): New function.
5604 (unaligned_uint32): New struct.
5605 (MASK20): New definition.
5606 (MASK19): Likewise.
5607 (MASKF21): Likewise.
5608 (add_value_to_slot_20b): New function.
5609 (add_value_to_slot_21_real): Likewise.
5610 (add_value_to_slot_21): Likewise.
5611 (ia64_kernel_trampoline): New struct.
5612 (nopm): New variable.
5613 (jump): Likewise.
5614 (make_trampoline): New function.
5615 (relocate_addresses): Handle ia64.
5616 (make_reloc_section): Likewise.
5617 (load_image): Likewise.
5618
5619 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5620
5621 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
5622 warning. Move variables before code while on it.
5623
5624 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
5625
5626 Fuloong support.
5627
5628 * configure.ac: Rename yeeloong platform to loongson. All users updated.
5629 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
5630 * grub-core/boot/mips/loongson/fuloong.S: New file.
5631 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
5632 Explicitly init CS5536.
5633 [FULOONG]: Don't use serial until CS5536 is available.
5634 Set GPIO based on dumps.
5635 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
5636 [FULOONG]: Handle GPIO and memory controller differences.
5637 Parse machine type in $a2.
5638 * grub-core/boot/mips/startup_raw.S: Determine and save the
5639 architecture.
5640 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
5641 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
5642 init on architecture type.
5643 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
5644 SIS315E. Don't init at_keyboard on fuloong.
5645 (grub_halt): Support Fuloong.
5646 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
5647 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
5648 (loongson_machtypes): New array.
5649 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
5650 type.
5651 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
5652 config. All users updated. Handle CS5536 serial.
5653 * grub-core/term/serial.c (grub_serial_register): Conditionalise
5654 default port on machine type. Register serial as inactive.
5655 * grub-core/video/sis315pro.c: New file.
5656 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
5657 definition.
5658 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
5659 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
5660 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
5661 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
5662 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
5663 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
5664 to ...
5665 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
5666 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
5667 definition.
5668 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
5669 (grub_arch_machine): New extern var.
5670 * include/grub/mips/loongson/serial.h
5671 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
5672 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
5673 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
5674 (GRUB_MACHINE_SERIAL_PORT0): ... this.
5675 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
5676 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
5677 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
5678 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
5679 * include/grub/term.h (grub_term_register_input_inactive): New inline
5680 function.
5681 (grub_term_register_output_inactive): Likewise.
5682 * include/grub/video.h (grub_video_driver_id): New value
5683 GRUB_VIDEO_DRIVER_SIS315PRO.
5684 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
5685 New field "names". All users updated.
5686 New field value IMAGE_FULOONG_FLASH.
5687 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
5688
5689 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
5690
5691 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
5692 and add some clarification.
5693
5694 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5695
5696 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
5697 platforms if kernel is compressed.
5698
5699 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5700
5701 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
5702 unused modules since currently referrence counter isn't reliable and
5703 there isn't much memory to recover there anyway.
5704
5705 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5706
5707 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
5708 rather than resetting it to allow modules to reference themselves
5709 in init.
5710
5711 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5712
5713 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
5714 counter on dependencies since grub_dl_unref already handles this.
5715
5716 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5717
5718 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
5719 on error if not already done.
5720
5721 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5722
5723 Fix few potential memory misusage.
5724
5725 * grub-core/font/font.c (load_font_index): Don't free char_index to
5726 avoid double free.
5727 (grub_font_load): Zero-fill font at alloc for safety.
5728 Close file on error.
5729 (free_font): Free bmp_idx.
5730
5731 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5732
5733 * docs/grub.texi (Installation): Fix several outdated claims.
5734
5735 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5736
5737 Handle module_license on windows.
5738
5739 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
5740 sections shifted.
5741 (insert_string): Make argument const char * instead of char *.
5742 (write_section_data): Handle long section names.
5743 Handle module_license.
5744
5745 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5746
5747 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
5748 handle class-free menuentries.
5749 (grub_normal_add_menu_entry): Add a check to be sure.
5750
5751 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
5752
5753 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
5754 PgUp and PgDown.
5755
5756 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5757
5758 * configure.ac: Bump version to 1.99.
5759
5760 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5761
5762 Give ATA device a bit more time on first try in order to allow disks
5763 to spin up.
5764
5765 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
5766 if dev->present is 1. Reset dev->present on failure.
5767 (grub_ata_device_initialize): Set dev->present to 1.
5768 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
5769 (grub_ata_device): New member 'present'.
5770
5771 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5772
5773 * util/grub-mkimage.c (generate_image): Update hash.
5774
5775 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5776
5777 Flush caches on DMA memory.
5778
5779 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
5780 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
5781 (grub_dma_free): Likewise.
5782 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
5783
5784 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5785
5786 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
5787 to avoid asm treating ld and sd as macros.
5788
5789 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5790
5791 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
5792 decompressor.
5793
5794 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5795
5796 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
5797 grub_decompress_core since later would fail if grub_decompress_core
5798 is too far.
5799
5800 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
5801
5802 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
5803 R_MIPS_JALR since it's used by newer compiler.
5804
5805 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
5806
5807 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
5808
5809 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5810
5811 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
5812 file_path to 0 for surety.
5813 (grub_chainloader_boot): Set exit_data to NULL.
5814 Unset the loader once done.
5815 (grub_cmd_chainloader): Fix confusing error message if file is empty.
5816
5817 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5818
5819 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
5820 unknown key into a dprintf.
5821
5822 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5823
5824 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
5825 on first non-existant partition.
5826
5827 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5828
5829 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
5830 openning fails.
5831 Reported by: Mark Korenberg.
5832
5833 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5834
5835 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
5836 overflow.
5837
5838 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
5839
5840 * util/grub-mkimage.c (main): Explicitely flush and sync the output
5841 before closing to ensure that it will be readable by grub-setup.
5842
5843 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5844
5845 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
5846 (devpath_1): Use MAKE_PIWG_PATH.
5847 (devpath_2): Likewise.
5848 (devpath_3): Likewise.
5849 (devpath_4): Likewise.
5850 (devpath_5): Likewise.
5851 (devpath_6): Likewise.
5852
5853 The appleldr.mod was checked that to be binary identical to previous
5854 version.
5855
5856 2011-05-05 Zach <mikezackles>
5857
5858 Support 2010 Macbooks.
5859
5860 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
5861 (devs): Add devpath_6.
5862
5863 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5864
5865 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
5866 /dev/random. /dev/urandom is good enough for our purposes (salting).
5867
5868 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5869
5870 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
5871
5872 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5873
5874 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
5875 hexadecimal.
5876
5877 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
5878
5879 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
5880 and not 0 on failure.
5881
5882 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5883
5884 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
5885 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
5886 disk; otherwise grub_fs_probe will not fall back to the next
5887 filesystem.
5888 (grub_pxefs_open): Likewise, for consistency.
5889 Reported and tested by: Ezekiel Grave.
5890
5891 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
5892
5893 * tests/partmap_test.in: Don't hardcode path to parted.
5894 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
5895
5896 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
5897
5898 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
5899 of `ls' to find out which devices are available.
5900
5901 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5902
5903 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
5904 than source address for efi mmap buffer.
5905
5906 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5907
5908 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
5909 wrong action on non-detecting the magic.
5910
5911 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5912
5913 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
5914 already supplied by another part of the module (fixes compilation on
5915 FreeBSD).
5916
5917 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
5918
5919 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
5920 match the one used by mdadm.
5921
5922 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5923
5924 * po/README: Add instructions for creating po/LINGUAS.
5925
5926 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5927
5928 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
5929 #551428.
5930
5931 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
5932 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
5933 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
5934 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
5935 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
5936 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
5937 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
5938 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
5939 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
5940 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
5941 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
5942 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
5943 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
5944 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
5945 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
5946 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
5947 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
5948 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
5949 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
5950 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
5951 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
5952 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
5953
5954 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5955
5956 * grub-core/kern/emu/getroot.c
5957 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
5958 test that was incorrectly reintroduced in r3214.
5959 Reported by: Ian Dall. Fixes Savannah bug #33133.
5960
5961 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
5962
5963 Fix stack pointer handling in 16-bit relocator.
5964
5965 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
5966 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
5967 Fixes Ubuntu bug #683904.
5968
5969 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5970
5971 * configure.ac: Bump version to 1.99~rc2.
5972
5973 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5974
5975 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
5976 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
5977 * grub-core/lib/x86_64/setjmp.S: Likewise.
5978 * grub-core/lib/mips/setjmp.S: Likewise.
5979 * grub-core/lib/powerpc/setjmp.S: Likewise.
5980 * grub-core/lib/sparc64/setjmp.S: Likewise.
5981
5982 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
5983
5984 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
5985 * grub-core/lib/efi/datetime.c: Likewise.
5986
5987 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5988
5989 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
5990 New function.
5991 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
5992 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
5993 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
5994
5995 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
5996
5997 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
5998 bitmap.
5999 (grub_gfxterm_term_init): Likewise.
6000
6001 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
6002
6003 Take into account the decorations the computing menu entry width.
6004
6005 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
6006 (grub_gfxmenu_create_box): Register get_border_width.
6007 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
6008 if available.
6009 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
6010 get_border_width.
6011
6012 2011-04-18 Endres Puschner <code@e7p.de>
6013
6014 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
6015 Don't skip first class.
6016
6017 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6018
6019 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
6020 chunks.
6021 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
6022
6023 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6024
6025 Complete 64-bit division support.
6026
6027 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
6028 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
6029 * include/grub/misc.h (grub_divmod64): Rename to ...
6030 (grub_divmod64_full): ... this.
6031 (grub_divmod64): New inline function.
6032
6033 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6034
6035 * util/grub-mkimage.c (generate_image): Add forgotten comma.
6036
6037 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
6038
6039 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
6040 performing the necessary test.
6041
6042 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6043
6044 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
6045 (kfreebsd.elf): Likewise.
6046 (pc-chainloader.elf): Likewise.
6047 (ntldr.elf): Likewise.
6048
6049 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
6050
6051 Identify RAID by its UUID rather than (guessed) name.
6052
6053 * grub-core/disk/raid.c (ascii2hex): New function.
6054 (grub_raid_open): Accept mduuid/%s specification.
6055 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
6056 (get_mdadm_uuid): ... this.
6057 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
6058
6059 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
6060
6061 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
6062 to negative size.
6063
6064 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
6065
6066 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
6067 btrfs subvolume.
6068 * util/grub.d/20_linux_xen.in: Likewise.
6069
6070 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
6071
6072 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
6073 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
6074
6075 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
6076 Build a list of relevant visible mounts using the mnt_id and
6077 parent_mnt_id fields, and then scan that list at the end.
6078
6079 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
6080
6081 * docs/grub.texi (normal): New section.
6082 (normal_exit): New section.
6083 (Embedded configuration): Add reference to normal.
6084 (GRUB only offers a rescue shell): Likewise.
6085 * docs/grub-dev.texi (Error Handling): Fix typo.
6086
6087 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
6088
6089 * NEWS: Drop obsolete entry about probe-only btrfs support.
6090
6091 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
6092
6093 * util/import_gcry.py: Fix typo.
6094
6095 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6096
6097 * NEWS: Add btrfs support.
6098
6099 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6100 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
6101
6102 BtrFS support. Written by me (Vladimir) with important bugfixes and
6103 even more important testing by Colin.
6104
6105 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
6106 * grub-core/Makefile.core.def (btrfs): Add crc.c.
6107 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
6108 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
6109 mem_input_off and mem_input. All users updated to accept in-RAM input.
6110 (gzio_seek): New function.
6111 (test_zlib_header): Likewise.
6112 (grub_gzio_read): Likewise.
6113 (grub_zlib_decompress): Likewise.
6114 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
6115 Accept partial and non-virtual mounts.
6116 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
6117 avoid receiving /dev/dm-X as device.
6118 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
6119 Handle bind and partial mounts.
6120 * grub-core/lib/crc.c: New file.
6121 * include/grub/deflate.h: Likewise.
6122 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
6123 proto.
6124 * include/grub/lib/crc.h: New file.
6125
6126 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6127
6128 Implement automatic module license checking according to new GNU
6129 guidelines.
6130
6131 * grub-core/kern/dl.c (grub_dl_check_license): New function.
6132 (grub_dl_load_core): Use grub_dl_check_license.
6133 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
6134 (GRUB_MOD_LICENSE): Likewise.
6135 (GRUB_MOD_DUAL_LICENSE): Likewise.
6136 All modules updated.
6137
6138 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
6139
6140 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
6141 reserved_first_sector to 1. btrfs reserves plenty of space for boot
6142 loaders.
6143 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
6144
6145 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6146
6147 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
6148
6149 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6150
6151 * util/grub-fstest.c (read_file): Report GRUB error if file opening
6152 failed.
6153
6154 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
6155
6156 * grub-core/kern/file.c (grub_file_open): Don't take into account the
6157 parenthesis in the middle of the filename.
6158
6159 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6160
6161 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
6162 rather than trying to put initrd way too high.
6163 Reported by: Ryan Lortie <desrt@desrt.ca>
6164
6165 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6166
6167 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
6168 improperly removed string.
6169
6170 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6171
6172 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
6173 is_disk.
6174 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
6175 (open_device) Likewise.
6176 (grub_util_biosdisk_close): Likewise.
6177 Reported by: Mark Korenberg.
6178
6179 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
6180
6181 * util/grub-mkconfig_lib.in: Add missing quotes.
6182
6183 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
6184
6185 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
6186 is NULL.
6187
6188 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6189
6190 Dynamically count the number of lines for the lower banner.
6191
6192 * grub-core/normal/menu_entry.c (per_term_screen): New member
6193 num_entries.
6194 (print_down): Use num_entries.
6195 (update_screen): Likewise.
6196 (grub_menu_entry_run): Set num_entries.
6197 * grub-core/normal/menu_text.c (menu_viewer_data): New member
6198 num_entries.
6199 (grub_print_message_indented): Move real part to ...
6200 (grub_print_message_indented_real): ... here. Additional argument
6201 dry_run.
6202 (draw_border): Additional argument num_entries.
6203 (print_message): Additional argument dry_run.
6204 (print_entries): Receive menu viewer data.
6205 (grub_menu_init_page): New argment num_entries.
6206 (menu_text_set_chosen_entry): Use num_entries.
6207 (grub_menu_try_text): Likewise.
6208 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
6209 All users updated.
6210 (grub_ucs4_count_lines): New function.
6211 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
6212 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
6213 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
6214 (grub_term_border_height): Likewise.
6215 (grub_term_num_entries): Likewise.
6216
6217 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
6218
6219 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
6220 Remove now unused string.
6221
6222 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
6223
6224 * docs/grub-dev.texi (Finding your way around): Update for 1.99
6225 build system.
6226 (Getting started): GRUB is developed in Bazaar now, not Subversion.
6227
6228 (Comment): Fix typo.
6229 (Getting started): General copy-editing.
6230 (Typical Development Experience): Likewise.
6231 (Error Handling): Likewise.
6232 (Video API): Likewise.
6233
6234 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
6235
6236 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
6237 throughout.
6238
6239 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6240
6241 * util/grub-mkimage.c (main): Handle special naming of yeeloong
6242 directory.
6243
6244 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
6245
6246 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
6247 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
6248 "development".
6249
6250 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6251
6252 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
6253 grub_strcpy since the lines aren't necessarily 0-terminated.
6254
6255 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6256
6257 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
6258 root on legacy.
6259
6260 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6261
6262 * grub-core/commands/probe.c (options): Argument to set isn't optional.
6263 (GRUB_MOD_INIT): DEVICE isn't optional.
6264
6265 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6266
6267 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
6268 word on new line if it's too long anyway. Fixes a hang.
6269
6270 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6271
6272 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
6273 const.
6274 * util/grub-setup.c (main): Reuse md device name if available.
6275 * util/raid.c (grub_util_raid_getmembers): Receive device name and
6276 not GRUB name as argument.
6277 Based on patch by: Florian Wagner <fwagner>.
6278
6279 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6280
6281 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
6282 Place mbi on low memory for better compatibility.
6283
6284 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6285
6286 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
6287
6288 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6289 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
6290
6291 * autogen.sh: Ensure that collate and ctype locale is C.
6292 * conf/Makefile.common: Likewise.
6293
6294 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6295
6296 * grub-core/normal/menu.c: Add missing include.
6297
6298 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6299
6300 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
6301
6302 2011-04-08 Martin Zuther <mzuther@mzuther.de>
6303
6304 * util/grub-mkconfig.in: Ignore emacsen backup.
6305
6306 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6307
6308 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
6309 on open.
6310 (grub_util_biosdisk_close): Likewise.
6311
6312 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
6313
6314 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
6315 const attribute and use grub_isdigit.
6316
6317 2011-04-06 Andrey <dev_null@ukr.net>
6318
6319 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
6320 gcc warning.
6321
6322 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6323
6324 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
6325 useful grub_dprintf's.
6326
6327 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6328
6329 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
6330
6331 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6332
6333 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
6334
6335 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6336
6337 Output errors if theme loading failed.
6338
6339 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
6340 grub_gfxterm_fullscreen on error paths to ...
6341 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
6342 theme loading error.
6343
6344 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6345
6346 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
6347 space for older compilers.
6348 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
6349
6350 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
6351
6352 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
6353 and report them as not RAID members since they are useless for GRUB.
6354 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
6355
6356 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6357
6358 Increase LVM implementation robustness in order not to crash on
6359 configurations like pvmove. Previously code assumed that in some places
6360 only lvs or only pvs are used whereas it seems that they are used
6361 interchangeably.
6362
6363 * grub-core/disk/lvm.c (read_node): New function.
6364 (read_lv): Use read_node.
6365 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
6366 Match volumes only at the end when all lvs are found. Take both
6367 pvs (first) and lvs (second) into account.
6368 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
6369 mirror_* into node_*. All users updated.
6370 (grub_lvm_stripe): Merge this ...
6371 (grub_lvm_mirror): ... and this ...
6372 (grub_lvm_node): ... into this. All users updated.
6373
6374 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6375
6376 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
6377 of function to allow further scanning for LVMs.
6378
6379 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6380
6381 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
6382 on failed seek as it breaks open fd reusage.
6383
6384 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6385
6386 * util/grub-install.in: Add a recommendation to use --recheck before
6387 reporting bugs.
6388
6389 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6390
6391 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
6392 are obtained.
6393
6394 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
6395
6396 GRUB developper manual based on existing Internals section and
6397 contributions by the various authors with active copyright assignment.
6398
6399 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
6400 * docs/font_char_metrics.png: New file.
6401 * docs/font_char_metrics.txt: Likewise.
6402 * docs/grub-dev.texi: Likewise.
6403 * docs/grub.texi (Internals): Move from here ...
6404 * docs/grub-dev.texi: ... here.
6405
6406 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6407
6408 Store the loopback device as data on loopback grub_disk structures,
6409 rather than the file it points to. This fixes use of freed memory
6410 if an existing loopback device is replaced.
6411
6412 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
6413 disk->data, not dev->file.
6414 (grub_loopback_read): Adjust file assignment to match.
6415 Fixes Ubuntu bug #742967.
6416
6417 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6418
6419 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
6420 when replacing an existing device.
6421
6422 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
6423
6424 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
6425 memory corruptions.
6426
6427 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
6428 unsigned.
6429 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
6430 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
6431 (grub_jfs_read_inode): Likewise.
6432 (grub_jfs_opendir): Likewise. Remove now useless casts.
6433 (grub_jfs_getent): Likewise.
6434 Make ino a grub_uint32_t rather than int.
6435 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
6436 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
6437 division and module with bit operations.
6438 (grub_jfs_find_file): Make ino a grub_uint32_t.
6439 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
6440
6441 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
6442
6443 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
6444 warning. (This was in fact always initialised before use, but GCC
6445 wasn't smart enough to prove that.)
6446 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6447
6448 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
6449
6450 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
6451 stack alignment.
6452 (efi_wrap_1): Likewise.
6453 (efi_wrap_2): Likewise.
6454 (efi_wrap_3): Likewise.
6455 (efi_wrap_4): Likewise.
6456 (efi_wrap_5): Likewise.
6457 (efi_wrap_6): Likewise.
6458 (efi_wrap_10): Likewise.
6459 Based on information by: Red Hat/Peter Jones.
6460
6461 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6462
6463 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
6464 set-but-not-used variable.
6465
6466 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
6467
6468 * docs/grub.texi (Simple configuration): Be more explicit about
6469 GRUB_DEFAULT, and add an example.
6470 Reported by: Leslie Rhorer.
6471
6472 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6473
6474 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
6475 shell".
6476
6477 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6478
6479 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
6480 * util/grub.d/20_linux_xen.in: Likewise.
6481
6482 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6483
6484 * util/grub.d/10_linux.in: Try alternative config filenames where
6485 we parse config file.
6486 * util/grub.d/20_linux_xen.in: Likewise.
6487
6488 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
6489
6490 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
6491 * util/grub.d/20_linux_xen.in: Likewise.
6492
6493 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6494
6495 * grub-core/disk/raid.c (insert_array): Add few potentially
6496 useful grub_util_info.
6497 (grub_raid_register): Likewise.
6498
6499 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6500
6501 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
6502 Preserve partition number in mdadm code path.
6503
6504 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6505
6506 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
6507 few potentially useful grub_util_info.
6508
6509 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6510
6511 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
6512
6513 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6514
6515 * docs/grub.texi (default): Use @example rather than nested
6516 itemized lists to avoid breaking gendocs.
6517
6518 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6519
6520 * docs/grub.texi (Future): Update.
6521
6522 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6523
6524 * docs/grub.texi (Environment): New chapter.
6525 (Changes from GRUB Legacy): Link to "Environment block" section for
6526 details of limitations.
6527 (Simple configuration): Likewise. Link to documentation of gfxmode
6528 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
6529 respectively.
6530 (Shell-like scripting): Note that normal variables are stored in the
6531 environment.
6532 (gettext): Link to documentation of lang and locale_dir.
6533 (list_env): New section.
6534 (load_env): New section.
6535 (save_env): New section.
6536
6537 (Reporting bugs): Fix typo.
6538
6539 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6540
6541 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
6542 the example.
6543
6544 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
6545
6546 * grub-core/term/at_keyboard.c (set_scancodes)
6547 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
6548
6549 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6550
6551 * docs/grub.texi (Menu-specific commands): Remove some semantics
6552 that were true in GRUB Legacy but not in GRUB 2.
6553 (submenu): New section.
6554 (false): New section.
6555 (read): New section.
6556 (true): New section.
6557
6558 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6559
6560 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
6561
6562 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
6563
6564 * docs/grub.texi (Simple configuration): Explain some of the
6565 current limitations of grub-mkconfig.
6566 Reported by: Leslie Rhorer.
6567
6568 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6569
6570 Old macs search for boot.efi rather than for bootia32.efi.
6571
6572 * util/grub-install.in: Copy bootia32.efi to boot.efi.
6573 * util/grub-mkrescue.in: Likewise.
6574 Suggested by: Peter Jones.
6575
6576 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6577
6578 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
6579
6580 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6581
6582 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
6583 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
6584 (grub_lvm_mirror): New struct.
6585 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
6586 (grub_lvm_iterate): Iterate only visible volumes.
6587 (grub_lvm_read): Factor out to ..
6588 (read_lv): ... this. Support mirrors.
6589 (grub_lvm_read): New wrapper function.
6590 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
6591 stripped or mirrored.
6592
6593 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6594
6595 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
6596
6597 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6598
6599 * docs/grub.texi (loopback): New section.
6600
6601 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6602
6603 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
6604 removed -p option.
6605
6606 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6607
6608 * docs/grub.texi (BIOS installation): New section, partly based on
6609 previous text in other sections.
6610 (Installing GRUB using grub-install): Replace BIOS discussion with a
6611 cross-reference.
6612 (Images): Likewise.
6613
6614 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6615
6616 * grub-core/kern/emu/hostdisk.c (find_partition_start)
6617 [HAVE_DIOCGDINFO]: Add safety checks.
6618
6619 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6620
6621 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
6622 per default compiled in kernel and prior to 8.0 isn't shipped at all.
6623
6624 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
6625
6626 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
6627 real_sb->size is zero (e.g. RAID-0), get the disk size from
6628 real_sb->data_size instead.
6629 Fixes Ubuntu bug #743136.
6630
6631 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6632
6633 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
6634 printf clauses for printing size and start.
6635
6636 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6637
6638 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
6639 Reported and tested by: Timothy Nikkel.
6640
6641 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6642
6643 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
6644 (dirty_region_add_real): ... this.
6645 (dirty_region_add): Don't discard margin refresh when performing
6646 scheduled repaint.
6647
6648 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
6649
6650 * grub-core/lib/relocator.c (allocate_regstart)
6651 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
6652 terminals are capabple of malloc-free operation.
6653 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6654 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
6655
6656 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
6657
6658 * util/grub-setup.c: Copy the partition table zone if floppy support
6659 is disabled, even if no partition table is found.
6660
6661 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
6662 during POST if an invalid partition table is contained in the PBR
6663 of the active partition when GRUB is installed to a partition.
6664
6665 2011-03-28 Colin Watson <cjwatson@debian.org>
6666
6667 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
6668 comment.
6669
6670 2011-03-28 Colin Watson <cjwatson@debian.org>
6671
6672 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
6673 to be specific about what kind of RAID device we're scanning for.
6674
6675 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
6676
6677 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
6678 return freed string.
6679
6680 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6681
6682 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
6683
6684 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6685
6686 Use libgeom on FreeBSD to detect partitions.
6687
6688 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
6689 (grub-mkrelpath): Likewise.
6690 (grub-script-check): Likewise.
6691 (grub-editenv): Likewise.
6692 (grub-mkpasswd-pbkdf2): Likewise.
6693 (grub-fstest): Likewise.
6694 (grub-mkfont): Likewise.
6695 (grub-mkdevicemap): Likewise.
6696 (grub-probe): Likewise.
6697 (grub-setup): Likewise.
6698 (grub-ofpathname): Likewise.
6699 (grub-mklayout): Likewise.
6700 (example_unit_test): Likewise.
6701 (grub-menulst2cfg): Likewise.
6702 * grub-core/Makefile.core.def (grub-emu): Likewise.
6703 (grub-emu-lite): Likewise.
6704 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
6705 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
6706 define HAVE_DIOCGDINFO.
6707 (follow_geom_up) [FreeBSD]: New function.
6708 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
6709 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
6710 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
6711 unconditionally of HAVE_DIOCGDINFO.
6712
6713 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
6714
6715 Fix FreeBSD compilation problem.
6716
6717 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
6718 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
6719
6720 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
6721
6722 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
6723 Switch back to page zero before loading a kernel, since some kernel
6724 drivers expect that.
6725 Thanks to: Felix Kuehling.
6726
6727 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6728
6729 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
6730 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
6731 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
6732
6733 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6734
6735 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
6736 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
6737
6738 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6739
6740 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
6741 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
6742 malloc is disabled.
6743
6744 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
6745
6746 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
6747 for modules headers when counting the needed allocation size.
6748
6749 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6750
6751 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
6752 if no ASCII character is found to prevent crash.
6753
6754 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
6755
6756 * grub-core/video/bitmap.c (match_extension): Ignore case.
6757
6758 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6759
6760 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
6761
6762 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6763
6764 * grub-core/script/parser.y: Declare "time" as valid argument.
6765
6766 2011-03-23 Peter Jones <pjones@redhat.com>
6767
6768 Fix incorrect assert failure reporting.
6769
6770 * grub-core/tests/example_functional_test.c (example_test): Add
6771 a failure comment.
6772 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
6773 (failure_start): ...this. Check that malloc succeeded.
6774 Don't call xvasprintf. Return failure struct.
6775 (failure_append_vtext): New function.
6776 (failure_append_text): Likewise.
6777 (add_failure): Likewise.
6778 (grub_test_assert_helper): Likewise.
6779 * include/grub/test.h (grub_test_assert_helper): New declaration.
6780 (grub_test_assert): Macro rewritten.
6781
6782 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6783
6784 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
6785
6786 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6787
6788 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
6789
6790 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6791
6792 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
6793 into GRUB-style one.
6794
6795 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6796
6797 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
6798 error and not grub_errno.
6799 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
6800
6801 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6802
6803 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
6804 GRUB_USB_SPEED_NONE in case of failure and not the error code.
6805
6806 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6807
6808 * grub-core/efiemu/i386/pc/cfgtables.c
6809 (grub_machine_efiemu_init_tables): Make declaration a prototype.
6810 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
6811 (grub_xnu_unlock): Likewise.
6812 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
6813
6814 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6815
6816 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
6817 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
6818 * grub-core/commands/hashsum.c (aliases): Likewise.
6819 * grub-core/commands/setpci.c (pci_registers): Likewise.
6820 * grub-core/disk/usbms.c (attach_hook): Likewise.
6821 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
6822 (zio_checksum_table): Likewise.
6823 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
6824 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
6825 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
6826 * grub-core/lib/relocator.c (leftovers): Likewise.
6827 (extra_blocks): Likewise.
6828 * grub-core/loader/i386/bsd.c (relocator): Likewise.
6829 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
6830 (modules_last): Likewise.
6831 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
6832 (devices): Likewise.
6833 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
6834 (modules_last): Likewise.
6835 * grub-core/normal/auth.c (users): Likewise.
6836 * grub-core/normal/context.c (initial_menu): Likewise.
6837 (current_menu): Likewise.
6838 * grub-core/normal/crypto.c (crypto_specs): Likewise.
6839 * grub-core/term/serial.c (grub_serial_ports): Likewise.
6840 (grub_serial_terminfo_input_template): Likewise.
6841 (grub_serial_terminfo_output_template): Likewise.
6842 (grub_serial_terminfo_input): Likewise.
6843 (grub_serial_terminfo_output): Likewise.
6844 (registered): Likewise.
6845 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
6846
6847 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6848
6849 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
6850 grub_video_mode_type_t.
6851 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
6852 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
6853 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
6854
6855 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
6856
6857 * util/grub-install.in: Correct the x86-64 name as x86_64.
6858
6859 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
6860
6861 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
6862 initial chunk read from the kernel always includes GRUB's multiboot
6863 header, which is now outside the first sector.
6864
6865 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6866
6867 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
6868 cached mmap_size, so that this works correctly when called multiple
6869 times.
6870 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
6871
6872 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
6873
6874 * docs/grub.texi (Simple configuration): Tidy up formatting.
6875
6876 2011-03-07 Szymon Janc <szymon@janc.net.pl>
6877
6878 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
6879 Set-but-not-used variable removed.
6880
6881 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6882
6883 Workaround yet another IEEE1275 bug.
6884
6885 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
6886 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
6887 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
6888 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
6889 is set.
6890 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
6891 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
6892
6893 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6894
6895 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
6896 error.
6897
6898 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
6899
6900 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
6901 empty, since in that case we can only generate either nothing or a
6902 syntactically invalid configuration file.
6903 Reported by: Michal Suchanek. Fixes Debian bug #612898.
6904
6905 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6906
6907 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
6908 (Making a GRUB bootable CD-ROM): Likewise.
6909 (Invoking grub-mkrescue): New section.
6910 Reported by: Yann Dirson. Fixes Debian bug #612585.
6911
6912 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
6913
6914 * util/grub-install.in: Remove unnecessary brackets from tr
6915 arguments.
6916 * util/grub.d/10_hurd.in: Likewise.
6917 * util/grub.d/10_kfreebsd.in: Likewise.
6918 * util/grub.d/10_linux.in: Likewise.
6919 * util/grub.d/20_linux_xen.in: Likewise.
6920 Reported by: Jamie Heilman. Fixes Debian bug #612564.
6921
6922 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
6923
6924 * include/grub/file.h (not_easly_seekable): Rename to ...
6925 (not_easily_seekable): ... this. Update all users.
6926
6927 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
6928
6929 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
6930 grub-mkrescue.
6931
6932 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
6933
6934 * util/grub-mkimage.c (generate_image): Refuse to create the images
6935 bigger than the actual flash (512K) in Loongson machines. 512K is also
6936 the biggest chip supported by them.
6937
6938 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6939
6940 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
6941
6942 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
6943
6944 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
6945 super_offset field.
6946
6947 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6948
6949 * util/grub-install.in: Ignore install device on platforms
6950 where it doesn't make sense. Always use UUIDs except on pc, efi and
6951 sparc64.
6952 Reported by: Daniel Kahn Gillmor.
6953
6954 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6955
6956 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
6957
6958 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6959
6960 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
6961 (iterate_real): Don't rely on partition being non-NULL.
6962
6963 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6964
6965 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
6966 supported platforms. Put a compile time assert for this rather than
6967 generate a warning with 32-bit shift.
6968
6969 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6970
6971 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
6972 logical expression more readable.
6973
6974 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
6975
6976 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
6977 even if some elements have a name.
6978 Reported by: Alexander GQ Gerasiov.
6979
6980 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6981
6982 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
6983 path unreadable if `grub-probe -t abstraction' fails, for example if
6984 memberlist fails on an LVM volume group.
6985 Reported by: Darius Jahandarie.
6986
6987 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
6988
6989 * docs/grub.texi (Simple configuration): Document
6990 GRUB_PRELOAD_MODULES.
6991
6992 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
6993
6994 * .bzrignore: Remove nonexistent grub-pbkdf2.
6995
6996 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
6997
6998 * configure.ac: Bump version to 1.99~rc1.
6999
7000 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
7001
7002 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
7003 for safety.
7004
7005 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7006
7007 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
7008 module.
7009
7010 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7011
7012 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
7013
7014 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7015
7016 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
7017 diskdevid.
7018
7019 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7020
7021 Fix compilation on cygwin.
7022
7023 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
7024 -R .drectve on cygwin.
7025 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
7026 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
7027 (COND_CYGWIN): New condition.
7028 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
7029 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
7030 not @TARGET_OBJ2ELF@.
7031 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
7032 type to determine whether aux is to be used.
7033
7034 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7035
7036 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
7037 realpath'ed device string.
7038 Handle floppy (somewhat).
7039 Issue error in unknown case rather than garbage.
7040 Reported by: Axel Beckert.
7041
7042 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7043
7044 * util/grub.d/00_header.in (load_video): Handle the case when no video
7045 drivers available.
7046 Thanks to: Axel Beckert.
7047
7048 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7049
7050 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
7051 variable. Fixes problem on big endian platforms.
7052
7053 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7054
7055 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
7056 It doesn't work well there.
7057
7058 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7059
7060 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
7061 warning.
7062 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
7063 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
7064 counter.
7065
7066 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7067
7068 Use alias->path rather than buggy "canon".
7069
7070 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
7071 (ofdisk_hash_add): New argument curcan. All users updated.
7072
7073 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
7074
7075 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
7076
7077 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7078
7079 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
7080 loadmask before doing any calculations. Use correct type for offset.
7081 (grub_linux_load64): Likewise.
7082
7083 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
7084
7085 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
7086 with NULL.
7087 (console_grub_equivalences_unshift): Likewise.
7088 Reported by: Daniel Dehennin.
7089
7090 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7091
7092 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
7093 (set_env_limn_ro): Likewise.
7094 (GRUB_MOD_INIT): Likewise.
7095 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
7096 ARRAY_SIZE while on it.
7097 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
7098 * grub-core/normal/context.c (grub_env_export): Move from here ...
7099 * grub-core/kern/env.c (grub_env_export): ... here.
7100 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
7101 prefix.
7102 * grub-core/kern/main.c (grub_main): Export root and prefix.
7103 * include/grub/env.h (grub_env_export): Export.
7104 Reported by: Seth Goldberg.
7105
7106 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7107
7108 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7109 Take into account space used by ELF sections and multiboot palette.
7110 Reported by: Grégoire Sutre.
7111
7112 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7113
7114 * BUGS: New file.
7115
7116 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7117
7118 Pass more appropriate video id to Linux.
7119
7120 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
7121 grub_video_get_driver_id and variable gfxpayloadforcelfb to
7122 fill have_vga.
7123 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
7124 shift params->lfb_size.
7125 * include/grub/i386/linux.h: Make an enume out of have_vga values.
7126
7127 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7128
7129 * util/grub-menulst2cfg.c: Add missing include of misc.h.
7130
7131 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7132
7133 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
7134 separator and pass bootpath/devid even if only one of them is available.
7135 Reported by: Seth Goldberg.
7136
7137 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7138
7139 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
7140 implementations bug on them.
7141
7142 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
7143 memory.
7144 (filter_memory_map): Likewise.
7145
7146 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7147
7148 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
7149 Reported by: nebuchadnezzar.
7150
7151 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7152
7153 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
7154 Reported by: nebuchadnezzar.
7155
7156 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7157
7158 Submenu default support.
7159
7160 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
7161 auto_boot. All users updated.
7162 Declared static.
7163 Handle chosen and default with submenus.
7164 (grub_menu_execute_with_fallback): Declared static.
7165 Don't notify failure if autobooted. Upper level does it.
7166 (menuentry_eq): New function.
7167 (get_entry_number): Use menuentry_eq.
7168 (show_menu): New parameter "autobooted". All users updated.
7169 (grub_show_menu): Likewise.
7170 * include/grub/normal.h (grub_show_menu): Likewise.
7171 * include/grub/menu.h (grub_menu_execute_entry): Removed.
7172 (grub_menu_execute_with_fallback): Likewise.
7173
7174 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7175
7176 * util/grub-mklayout.c (usage): Update help text.
7177
7178 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7179
7180 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
7181
7182 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7183
7184 * util/grub-menulst2cfg.c (main): Trim the line.
7185
7186 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7187
7188 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
7189 (grub_machine_init): Don't check amount of low memory as reportedly
7190 INT 12h can be broken and if low memory is too low we wouldn't have
7191 gotten into grub_machine_init anyway.
7192
7193 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7194
7195 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
7196 (grub_machine_mmap_iterate): Take low memory into account
7197
7198 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7199
7200 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
7201 badfs.
7202 Reported by: TiCPU.
7203
7204 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
7205
7206 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
7207 members errors.
7208
7209 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
7210
7211 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
7212 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
7213
7214 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
7215
7216 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
7217 openbsd and netbsd types being in part_bsd module.
7218
7219 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7220
7221 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
7222 (_FILE_OFFSET_BITS): Likewise.
7223 Reported by: Seth Goldberg.
7224
7225 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
7226
7227 * configure.ac: Check for libdevmapper header.
7228
7229 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7230
7231 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
7232 avoid aliasing.
7233 (fzap_lookup): Likewise.
7234 (dnode_get): Likewise.
7235 (make_mdn): Likewise.
7236 (zfs_mount): Likewise.
7237 (fzap_iterate): Use temporary pointer to avoid aliasing.
7238 (grub_zfs_read): Likewise.
7239 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
7240 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
7241 pointers to avoid aliasing.
7242 (grub_cmd_xnu_kernel64): Likewise.
7243 (grub_xnu_load_driver): Likewise.
7244
7245 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7246
7247 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
7248 aliasing warning.
7249 (grub_cmd_terminal_output): Likewise.
7250 Reported and tested by: Grégoire Sutre.
7251
7252 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7253
7254 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
7255 warning.
7256 Reported and tested by: Grégoire Sutre.
7257
7258 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7259
7260 * configure.ac: Do CPU substitution even if it's specified explicitly.
7261 Reported and tested by: Alain Greppin.
7262
7263 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7264
7265 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
7266 Reported and tested by: Alain Greppin.
7267
7268 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7269
7270 Satisfy some bison versions need for inttypes.h.
7271
7272 * grub-core/lib/posix_wrap/inttypes.h: New file.
7273 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
7274 (int16_t): Likewise.
7275 (int32_t): Likewise.
7276 (int64_t): Likewise.
7277 Reported and tested by: Alain Greppin.
7278
7279 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
7280
7281 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
7282 Silence spurious warning.
7283 Reported and tested by: Alain Greppin.
7284
7285 2011-01-07 Szymon Janc <szymon@janc.net.pl>
7286
7287 * docs/grub.texi (Support automatic decompression): Update with xz
7288 decompression support.
7289
7290 2011-01-07 Szymon Janc <szymon@janc.net.pl>
7291
7292 Improve loaders' kernel command line handling.
7293
7294 * grub-core/lib/cmdline.c: New file.
7295 * include/grub/lib/cmdline.h: Likewise.
7296 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
7297 grub_create_loader_cmdline to create kernel command line.
7298 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7299 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
7300 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
7301 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
7302 (linux): Add lib/cmdline.c on common.
7303
7304 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7305
7306 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
7307 inopos might be unaligned.
7308
7309 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7310
7311 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
7312 endian transformations.
7313 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7314 Based on report by: Doug Nazar.
7315
7316 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
7317
7318 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
7319 array->members[i].start_sector.
7320 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
7321
7322 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
7323
7324 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
7325 Reported and tested by: Grégoire Sutre.
7326
7327 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
7328
7329 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
7330 avoid causing test failures by clearing the screen.
7331
7332 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
7333
7334 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
7335 Fix prefix check to handle the case where dir ends with a slash
7336 (most significantly, "/" itself).
7337 Reported by: Michael Vogt.
7338
7339 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7340
7341 Run terminfo_cls on initing terminfo output to clear the screen and
7342 move the cursor to (0,0).
7343
7344 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
7345 Call grub_terminfo_output_init.
7346 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
7347 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
7348 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
7349
7350 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7351
7352 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
7353 only when needed.
7354
7355 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7356
7357 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
7358 CTRL.
7359
7360 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
7361
7362 The E820 type 5 is BADRAM, not EXEC_CODE.
7363
7364 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7365 (GRUB_E820_BADRAM): New define.
7366 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
7367 into reserved. Propagate BADRAM.
7368 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
7369 (GRUB_E820_BADRAM): New define.
7370
7371 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7372
7373 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
7374 Ignore the memory post-4G.
7375 (grub_relocator_firmware_alloc_region): Additional debug statement.
7376
7377 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7378
7379 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
7380 names.
7381 Reported by: David Pravec.
7382
7383 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7384
7385 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
7386 BIOSes.
7387
7388 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7389
7390 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
7391 Prevent overflow.
7392 (grub_reed_solomon_recover): Likewise.
7393
7394 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7395
7396 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
7397
7398 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
7399
7400 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
7401 variable.
7402
7403 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
7404
7405 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
7406 descriptions of extract_legacy_entries_source and
7407 extract_legacy_entries_configfile.
7408 Reported by: Seung Soo, Ha.
7409
7410 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
7411
7412 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
7413 on devices that do not implement function 0.
7414
7415 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
7416
7417 * grub-core/fs/hfsplus.c: Make parent unsigned.
7418 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
7419 overflows.
7420 (grub_hfsplus_cmp_extkey): Likewise
7421
7422 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7423
7424 * util/grub-install.in: Correctly use bootloader_id and not
7425 GRUB_DISTRIBUTOR on efibootmgr line.
7426
7427 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
7428
7429 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
7430
7431 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
7432
7433 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
7434 Xen and reorder menu item wording to make it clearer that this entry
7435 will launch Xen. Print separate messages when loading Xen and
7436 Linux.
7437
7438 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7439
7440 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
7441 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
7442 loop in case of incorrect amiga partmap.
7443
7444 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7445
7446 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
7447 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
7448 Reported by:EHeM.
7449
7450 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
7451
7452 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
7453 spurious warning.
7454 Reported by: crocket
7455
7456 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7457
7458 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
7459 Preload EFIemu.
7460 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
7461
7462 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7463
7464 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
7465 is loaded
7466 (grub_cmd_xnu_kextdir): Likewise.
7467 (grub_cmd_xnu_splash): Likewise.
7468
7469 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7470
7471 Avoid using Reed-Solomon with 0 redundancy.
7472
7473 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
7474 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
7475 or 0 redundancy.
7476 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
7477 (grub_reed_solomon_recover): Likewise.
7478
7479 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
7480
7481 Don't use disk subsystem in freebsd_boot.
7482
7483 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
7484 (freebsd_biosdev): Likewise.
7485 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
7486 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
7487
7488 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7489
7490 Handling of files of unknown size is currently limited. They can't be
7491 used e.g. for initrd or modules. Moreover gzip handling of not
7492 easily seekable files is buggy. Disable unknown file size for now. May
7493 be inefficient but works.
7494
7495 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
7496 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
7497
7498 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
7499
7500 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
7501 floppy probe.
7502
7503 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
7504
7505 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
7506
7507 2010-12-25 Shea Levy <shlevy>
7508
7509 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
7510
7511 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7512
7513 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
7514 Windows Server 2008.
7515 Reported by: Devin Giddings.
7516
7517 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7518
7519 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
7520 writing an error message because of async power management.
7521 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
7522 (grub_reboot): Likewise.
7523
7524 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
7525
7526 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
7527 keep unit tests from failing when they shouldn't.
7528
7529 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7530
7531 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
7532 previous patch increased the size of the RS code by 20 bytes (at
7533 least with gcc-4.4), so increase this by 20 bytes to match.
7534 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
7535
7536 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7537
7538 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
7539 scratch area. Make sure to initialise chosen in standalone mode as
7540 well as non-standalone.
7541 Reported by: Robert Hooker and Andy Whitcroft.
7542 Tested by: Andy Whitcroft.
7543
7544 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7545
7546 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
7547 constructing a new unescaped string and passing it to grub_xputs in
7548 one go, rather than passing characters to grub_printf one at a time.
7549
7550 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7551
7552 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
7553 initialising utf16.
7554
7555 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
7556
7557 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
7558 comment. Add an extra layer of quotation, requiring the output of
7559 this function to be used in a printf format string.
7560 (gettext_printf): New function.
7561 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
7562 Extract translatable strings from here-documents and use a temporary
7563 variable instead, so that xgettext can find them.
7564 * util/grub.d/10_kfreebsd.in: Likewise.
7565 * util/grub.d/10_linux.in: Likewise.
7566 * util/grub.d/20_linux_xen.in: Likewise.
7567
7568 * po/grub.d.sed: New file.
7569 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
7570 arguments. Set c-format flags on all strings extracted from
7571 util/grub.d/ (xgettext refuses to include these itself for strings
7572 it extracted from a shell file, but these really are c-format).
7573
7574 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
7575
7576 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
7577 Avoid next pointing to nowhere.
7578
7579 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7580
7581 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
7582 rather than assuming than rootblock is exactly in the middle.
7583 (grub_affs_label): Likewise.
7584
7585 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7586
7587 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
7588 reserved_first_sector to 0.
7589 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
7590 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
7591 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
7592
7593 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
7594
7595 Fix handling of UTF-16 UDF labels.
7596
7597 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
7598 (read_string): .. here.
7599 (grub_udf_label): Use read_string.
7600
7601 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
7602
7603 * grub-core/normal/menu_entry.c (run): Execute commands from menu
7604 editor under argument scope.
7605 Reported by: Jordan Uggla
7606
7607 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7608
7609 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
7610
7611 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
7612
7613 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
7614 line, and other keys scroll an entire page (previous handling was
7615 for \r and \n to scroll a page and other keys to scroll two lines).
7616
7617 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
7618
7619 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
7620 Set ptrdest to correct get_physical_target_address rather than
7621 incorrect get_virtual_current_address.
7622
7623 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
7624
7625 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
7626 correct cat to grub_uint8_t * rather than grub_uint32_t *.
7627
7628 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7629
7630 * .bzrignore: Ignore grub-core/rs_decoder.S.
7631
7632 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
7633
7634 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
7635 .mo/.mo.gz opening sequence to ...
7636 (grub_mofile_open_lang): ... here.
7637 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
7638 * util/grub.d/00_header.in (grub_lang): Include country part of
7639 locale.
7640 Reported by: Mario Limonciello.
7641
7642 2010-12-09 Robert Millan <rmh@gnu.org>
7643
7644 * NEWS: Document addition of ZFS support.
7645
7646 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
7647
7648 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
7649 rather than `/ 2', as the latter requires -Wa,--divide which would
7650 require bumping our minimum binutils version.
7651
7652 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
7653
7654 * util/grub-script-check.c (main): Print script line number on
7655 error.
7656
7657 2010-12-01 Robert Millan <rmh@gnu.org>
7658
7659 * grub-core/fs/zfs/zfs.c: New file.
7660 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
7661 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
7662 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
7663 * grub-core/fs/zfs/zfsinfo.c: Likewise.
7664
7665 * include/grub/zfs/dmu.h: Likewise.
7666 * include/grub/zfs/dmu_objset.h: Likewise.
7667 * include/grub/zfs/dnode.h: Likewise.
7668 * include/grub/zfs/dsl_dataset.h: Likewise.
7669 * include/grub/zfs/dsl_dir.h: Likewise.
7670 * include/grub/zfs/sa_impl.h: Likewise.
7671 * include/grub/zfs/spa.h: Likewise.
7672 * include/grub/zfs/uberblock_impl.h: Likewise.
7673 * include/grub/zfs/vdev_impl.h: Likewise.
7674 * include/grub/zfs/zap_impl.h: Likewise.
7675 * include/grub/zfs/zap_leaf.h: Likewise.
7676 * include/grub/zfs/zfs.h: Likewise.
7677 * include/grub/zfs/zfs_acl.h: Likewise.
7678 * include/grub/zfs/zfs_znode.h: Likewise.
7679 * include/grub/zfs/zil.h: Likewise.
7680 * include/grub/zfs/zio.h: Likewise.
7681 * include/grub/zfs/zio_checksum.h: Likewise.
7682
7683 * Makefile.util.def: Build ZFS into libgrubmods.
7684 * grub-core/Makefile.core.def: Build zfs.mod.
7685
7686 2010-11-30 Szymon Janc <szymon@janc.net.pl>
7687
7688 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
7689 variable.
7690 * grub-core/commands/wildcard.c (match_files): Likewise.
7691
7692 2010-11-30 Robert Millan <rmh@gnu.org>
7693
7694 * grub-core/loader/i386/bsd.c
7695 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
7696 whether kernel is loaded using grub_loader_is_loaded(), rather
7697 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
7698 certain error conditions.
7699
7700 2010-11-30 Robert Millan <rmh@gnu.org>
7701
7702 * grub-core/commands/echo.c: Include `<grub/term.h>'.
7703 (grub_cmd_echo): Call grub_refresh() after printing a message.
7704
7705 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7706
7707 Avoid using tricks for initialising endian variables.
7708
7709 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
7710 Make const.
7711 (GRUB_MOD_INIT): Don't byte-swap.
7712 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7713 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
7714 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
7715 (grub_swap_bytes32_compile_time): Likewise.
7716 (grub_cpu_to_le32_compile_time): Likewise.
7717 (grub_cpu_to_le16_compile_time): Likewise.
7718
7719 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
7720
7721 * util/grub-setup.c (setup): Stop recommending --force. People who
7722 understand the dangers of blocklists are able to find this option
7723 anyway and the ones who don't shouldn't use it anyway.
7724
7725 2010-11-26 Robert Millan <rmh@gnu.org>
7726
7727 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
7728 Update all users.
7729
7730 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
7731
7732 Fix LVM-on-RAID probing.
7733
7734 * util/grub-probe.c (probe): Remember which disk was detected as
7735 RAID (perhaps an LVM physical volume). Use that disk's raidname
7736 rather than that of the top-level disk.
7737
7738 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
7739
7740 Fix cmdline argument quotes for setparams command of menuentry
7741 definitions.
7742
7743 * grub-core/commands/menuentry.c (setparams_prefix): Use single
7744 quotes for arguments.
7745 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
7746 grub_strchrsub function instead.
7747
7748 * include/grub/misc.h (grub_strchrsub): New function.
7749
7750 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7751
7752 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
7753 effort by skipping "." and ".." entries up-front.
7754 Suggested by: Michael Lazarev.
7755
7756 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7757
7758 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
7759 ldflags to ldadd, to fix link line ordering.
7760 (none_decompress): Likewise.
7761
7762 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
7763
7764 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
7765 platforms.
7766 (grub-emu-lite): Remove kern/emu/cache.S.
7767
7768 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7769
7770 * util/deviceiter.c (compare_devices): If the by-id link for a
7771 device couldn't be resolved, fall back to sorting by the by-id link
7772 rather than segfaulting.
7773 Reported and tested by: Daniel Mierswa.
7774
7775 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7776
7777 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
7778 ldflags, to fix link line ordering.
7779
7780 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7781
7782 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
7783 linkers are picky about this.
7784
7785 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7786
7787 * grub-core/Makefile.am (command.lst): Adjust sed expression
7788 ordering so that extended and priority commands aren't treated as
7789 ordinary commands.
7790
7791 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
7792
7793 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
7794 Remove byte-swapping function calls, which are not valid in
7795 structure initialisers.
7796 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
7797 non-const.
7798 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
7799 grub_gpt_partition_type_bios_boot.
7800
7801 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7802
7803 Fix test program build on GNU/kFreeBSD.
7804
7805 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
7806 $(LIBNVPAIR)' library dependencies.
7807
7808 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7809
7810 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
7811
7812 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
7813
7814 * util/grub-install.in: Remove excessive quoting that broke
7815 installations to RAID devices.
7816
7817 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7818
7819 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
7820 bootloader version instead of 0.
7821
7822 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7823
7824 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
7825 warning.
7826
7827 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
7828
7829 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
7830 retrieve the metadat sector if size isn't known.
7831 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7832
7833 2010-11-18 Robert Millan <rmh@gnu.org>
7834
7835 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
7836 with grub_memcmp().
7837
7838 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
7839
7840 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
7841 arrow.
7842 Reported by: Jordan Uggla.
7843
7844 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7845
7846 Make better UTF compliant.
7847
7848 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
7849 sequences as incorrect.
7850 (grub_is_valid_utf8): Likewise.
7851 (grub_utf8_to_ucs4): Likewise.
7852 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
7853 (grub_ucs4_to_utf8_alloc): Likewise.
7854 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
7855
7856 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
7857
7858 Make legacy_source behave like source.
7859
7860 * grub-core/commands/legacycfg.c (legacy_file): Don't call
7861 grub_show_menu.
7862 (grub_cmd_legacy_source): Call grub_show_menu if needed.
7863
7864 2010-11-16 Colin Watson <cjwatson@debian.org>
7865
7866 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
7867 (-Wunused implies -Wunused-parameter, but not vice versa).
7868
7869 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
7870
7871 * configure.ac: Make error messages less confusing by testing for
7872 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
7873 accepted, but produces a diagnostic if something else is wrong).
7874
7875 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7876
7877 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
7878 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
7879 (now unused).
7880 (grub_keyboard_controller_init)
7881 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
7882 read the initial state since controller isn't inited yet.
7883
7884 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
7885
7886 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
7887 allocate_regbeg may need to create new chunk header.
7888
7889 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7890
7891 Fix quoting in legacy parser.
7892
7893 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
7894 single quotes.
7895 (grub_legacy_parse): Likewise.
7896 Reported by: Jordan Uggla.
7897 Tested by: Jordan Uggla.
7898
7899 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7900
7901 Don't add -lgcc on i386 and x86_64.
7902
7903 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
7904 * conf/Makefile.common (LDADD_KERNEL): Likewise.
7905 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
7906
7907 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7908
7909 * configure.ac: Add -Wno-trampolines when supported.
7910
7911 2010-11-14 Modestas Vainius <modax@debian.org>
7912
7913 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
7914 fakeraid.
7915
7916 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7917
7918 Add generic logical block size support for UDF.
7919
7920 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
7921 (GRUB_UDF_BLKSZ): Removed.
7922 (struct grub_udf_data): New field "lbshift" to hold the logical block
7923 size of the file system in log2 format. All users updated.
7924 (sblocklist): Change type to unsigned.
7925 (grub_udf_mount): Change type of "sblklist" to unsigned.
7926 Move AVDP search before VRS recognition, because the latter requires
7927 knowledge of the logical block size, which is detected during the
7928 former.
7929 Detect and validate logical block size during AVDP search, adding
7930 support for block sizes 512, 1024 and 4096.
7931 Make VRS recognition independent of block size.
7932
7933 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7934
7935 Properly handle deleted files on UDF.
7936
7937 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
7938 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
7939 set.
7940
7941 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
7942
7943 Support reading files larger than 2 GiB.
7944
7945 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
7946 "offset" to grub_off_t.
7947 (grub_udf_read_file): Likewise for parameter "pos".
7948
7949 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7950
7951 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
7952 unavailable.
7953 (Simple configuration): Refer to Changes from GRUB Legacy about
7954 save_env availability.
7955
7956 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7957
7958 * util/grub-install.in: Ignore empty partition table detection
7959 instead of trying to include part_ module.
7960
7961 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7962
7963 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
7964 LVM on RAID support.
7965
7966 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
7967
7968 Properly define WORDS_BIGENDIAN in wrapped environments.
7969
7970 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
7971 definition.
7972 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
7973
7974 Reported by: Manoel Rebelo Abranches.
7975 Tested by: Manoel Rebelo Abranches.
7976
7977 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7978
7979 * util/grub-mkconfig.in: Fix quoting.
7980
7981 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7982
7983 Support big ext2 files.
7984
7985 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
7986 (grub_ext2_read_block): Support triple indirect blocks.
7987 (grub_ext2_read_file): Use 64-bit types and read size_high.
7988 (grub_ext2_open): Read size_high.
7989 Reported by: Ximin Luo.
7990 Tested by: Manoel Rebelo Abranches.
7991
7992 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7993
7994 * util/grub-install.in: Handle filenames containing spaces.
7995 Reported by: Jordan Uggla.
7996 Tested by: Jordan Uggla.
7997
7998 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
7999
8000 * util/grub-mkconfig.in (grub_script_check): New variable.
8001 Use grub_script_check instead of grub-script-check.
8002 Reported by: Barry Jackson.
8003
8004 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
8005
8006 * docs/grub.texi (menu): Correct the order.
8007 Reported by: D. Hugh Redelmeier.
8008
8009 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
8010
8011 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
8012 jump.
8013
8014 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
8015
8016 * include/grub/elfload.h (grub_elf32_size): New parameter.
8017 All users updated.
8018 Return maximum segments alignment.
8019 (grub_elf64_size): Likewise.
8020 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
8021 Return maximum segments alignment.
8022 (grub_elf64_size): Likewise.
8023 * grub-core/loader/powerpc/ieee1275/linux.c:
8024 (grub_linux_claimmap_iterate): New function. Uses the
8025 "available" property in the "memory" node for memory allocation
8026 for kernel in the PowerPC loader.
8027 (grub_linux_load32): Correctly find linux entry point offset.
8028 (grub_linux_load64): Likewise.
8029
8030 2010-11-07 Robert Millan <rmh@gnu.org>
8031
8032 On mips-yeeloong, build with -march=loongson2f when this flag is
8033 available (GCC >= 4.4).
8034 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
8035 `-march=mips3'.
8036 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
8037 or otherwise add -march=mips3.
8038
8039 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
8040
8041 Suppress shell expansion on echo '*' and echo "*" like cases.
8042 Reported by: Jordan Uggla.
8043
8044 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
8045 string arguments before shell expansion.
8046 * tests/grub_cmd_echo.in: New testcases.
8047
8048 2010-11-07 Robert Millan <rmh@gnu.org>
8049
8050 * conf/mips-qemu-mips.rmk: Remove stale file from previous
8051 transition.
8052
8053 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
8054
8055 * grub-core/kern/emu/hostdisk.c
8056 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
8057
8058 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8059
8060 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
8061 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
8062 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
8063
8064 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8065
8066 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
8067
8068 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8069
8070 * util/grub-install.in: Replace useless recomendation to pass
8071 --modules with a recomendation to report a bug.
8072
8073 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
8074
8075 Properly register serial terminfo.
8076 Reported by: Jordan Uggla
8077
8078 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
8079 const.
8080 (grub_serial_terminfo_output_template): Likewise.
8081 (grub_cmd_serial): Register "serial" with terminfo.
8082 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
8083 grub_serial_terminfo_output.
8084
8085 2010-11-05 Robert Millan <rmh@gnu.org>
8086
8087 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
8088 needed).
8089
8090 2010-11-05 Robert Millan <rmh@gnu.org>
8091
8092 On Yeeloong, pass machine type information to Linux.
8093
8094 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
8095 (LOONGSON_MACHTYPE): New macro, set to
8096 "machtype=lemote-yeeloong-2f-8.9inches".
8097 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
8098 additional argument to Linux.
8099
8100 2010-11-04 Robert Millan <rmh@gnu.org>
8101
8102 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
8103 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
8104 (its SATA disks are detected as slaveless IDE master drives on
8105 kFreeBSD).
8106 Reported by Carsten Aulbert.
8107
8108 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
8109
8110 * util/bin2h.c (main): Fix spelling error in generated output.
8111
8112 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
8113
8114 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
8115
8116 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8117
8118 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
8119 vga= option is supplied.
8120
8121 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8122
8123 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
8124 * util/grub.d/10_kfreebsd.in: Likewise.
8125 * util/grub.d/10_linux.in: Likewise.
8126 * util/grub.d/20_linux_xen.in: Likewise.
8127
8128 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8129
8130 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
8131 argument as an argument to no-argument option.
8132
8133 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8134
8135 * util/grub.d/10_linux.in: Add missing load_video with explicit
8136 GRUB_GFXPAYLOAD_LINUX.
8137
8138 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8139
8140 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
8141
8142 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8143
8144 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
8145 elements with invlid index.
8146 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
8147 * grub-core/disk/raid.c (insert_array): Automatically reallocate
8148 members.
8149 * include/grub/raid.h (grub_raid_member): New struct.
8150 (grub_raid_array): Transform devices and start_sector into usage of
8151 grub_raid_member. All users updated
8152 (allocated_devs): New member.
8153
8154 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
8155
8156 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
8157 is modified
8158
8159 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
8160
8161 NetBSD build fix for getline function conflict from gnulib.
8162
8163 * Makefile.util.def (libgrubkern.a): New library for grub kernel
8164 components that depend on gnulib headers.
8165 (libgrubmods.a): Renamed from earlier libgrub.a.
8166 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
8167
8168 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8169
8170 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
8171 install rather than creating a broken install.
8172
8173 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8174
8175 * util/grub-setup.c (argp): Remove misleading example of installing to
8176 a partition.
8177
8178 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8179
8180 * util/grub-setup.c (setup): Clarify the error message.
8181
8182 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
8183
8184 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
8185
8186 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8187
8188 * grub-core/kern/emu/misc.c
8189 (grub_make_system_path_relative_to_its_root)
8190 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
8191
8192 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
8193
8194 * grub-core/kern/emu/misc.c
8195 (grub_make_system_path_relative_to_its_root): Revert r2882.
8196
8197 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
8198
8199 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
8200 useless field head. All users updated.
8201 (free_subchunk): Correct handling of IN_REGION subchunk.
8202
8203 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
8204
8205 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
8206 (Supported kernels): Likewise.
8207
8208 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
8209
8210 Make mktemp invocations portable.
8211
8212 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
8213 exit if mktemp fails.
8214 * tests/grub_script_blockarg.in: Likewise.
8215 * tests/partmap_test.in: Likewise.
8216 * tests/util/grub-shell-tester.in: Likewise.
8217 * tests/util/grub-shell.in: Likewise.
8218 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
8219 * Makefile.am: Likewise, and chain shell commands with `&&'
8220 instead of ';'.
8221 * util/grub-mkrescue.in: Use the same explicit template as above, and
8222 exit if mktemp fails.
8223
8224 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
8225
8226 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
8227 Linux kernel, reported by Dennis Schridde.
8228
8229 2010-10-17 Szymon Janc <szymon@janc.net.pl>
8230
8231 * grub-core/normal/auth.c (grub_auth_check_authentication):
8232 Set-but-not-used variable removed.
8233
8234 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8235
8236 * docs/grub.texi (GNU/Linux): Document APM unavailability with
8237 32-bit linux protocol.
8238
8239 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8240
8241 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
8242 cursor shape for sanity.
8243
8244 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8245
8246 * docs/grub.texi (Installation): Document buggy BIOS install.
8247
8248 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8249
8250 * docs/grub.texi (Installation): Indent.
8251
8252 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8253
8254 * util/grub-setup.c (setup): New parameter allow_floppy.
8255 (arguments): New member allow_floppy.
8256 (argp_parser): Handle --allow-floppy.
8257 (main): Pass allow_floppy.
8258 * util/grub-install.in: New option --allow-floppy passed though to
8259 grub-setup.
8260
8261 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8262
8263 * util/grub-install.in: Handle partitionless disks.
8264
8265 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
8266
8267 * util/grub-setup.c (setup): Don't clean blocklists before readability
8268 verfification.
8269
8270 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8271
8272 * docs/grub.texi (Installation): Document embedding zone. Remove
8273 obsolete grub-install example.
8274
8275 2010-10-16 Szymon Janc <szymon@janc.net.pl>
8276
8277 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
8278 Set-but-not-used variable ifdef'ed.
8279 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
8280 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
8281 variable removed.
8282 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
8283 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
8284 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
8285 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
8286 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
8287 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
8288 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
8289 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
8290 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
8291 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
8292 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
8293 Likewise.
8294
8295 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8296
8297 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
8298 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
8299 enum value.
8300
8301 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8302
8303 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
8304 synonym to _S5_. Needed for some DSDTs.
8305
8306 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8307
8308 Userspace ACPI parser debugging.
8309
8310 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
8311 headers and add relevant defines. Don't include standard headers.
8312 (main) [GRUB_DSDT_TEST]: New function.
8313 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
8314 Don't declare functions.
8315
8316 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8317
8318 Remove dead grub_efi_mm_fini.
8319
8320 * grub-core/kern/efi/mm.c (allocated_page): Removed.
8321 (ALLOCATED_PAGES_SIZE): Likewise.
8322 (MAX_ALLOCATED_PAGES): Likewise.
8323 (allocated_pages): Likewise.
8324 (grub_efi_allocate_pages): Don't record allocated pages.
8325 (grub_efi_free_pages): Likewise.
8326 (grub_efi_mm_init): Likewise.
8327 (grub_efi_mm_fini): Removed.
8328
8329 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8330
8331 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
8332 (grub_efi_mm_init): Take into account the memory map size increase.
8333
8334 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
8335
8336 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
8337 (serial_hw_put): Wait based on real time rather than port reads. Don't
8338 roken ports.
8339 * include/grub/serial.h (grub_serial_port): New field broken.
8340
8341 2010-10-16 Robert Millan <rmh@gnu.org>
8342
8343 * grub-core/kern/emu/misc.c
8344 (grub_make_system_path_relative_to_its_root): Fix premature return
8345 when processing non-root ZFS filesystems.
8346 Reported by Sergio Talens-Oliag.
8347
8348 2010-10-15 Robert Millan <rmh@gnu.org>
8349
8350 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
8351 guarantee compressed ones are processed first.
8352
8353 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8354
8355 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
8356 grub_efiemu_autocore.
8357
8358 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
8359
8360 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
8361 rather than 0x1b.
8362 (grub_console_getkey): Use correct jae opcode rather than ja.
8363
8364 2010-10-12 Robert Millan <rmh@gnu.org>
8365
8366 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
8367 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
8368 variable. All references updated.
8369
8370 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
8371
8372 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
8373
8374 Correctly distinguish mdraid flavours.
8375
8376 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
8377 (insert_array): New argument raid.
8378 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
8379 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
8380 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
8381
8382 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
8383
8384 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
8385 handling of special keys.
8386
8387 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8388
8389 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
8390 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
8391
8392 2010-10-02 Aleš Nesrsta <starous@volny.cz>
8393
8394 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
8395 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
8396 users updated.
8397 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
8398 Use right endpoint when querying descriptor.
8399
8400 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8401
8402 Clear out 0x80 color bit on EFI.
8403 Tested by: decoder
8404 Reported by: decoder and meta tech.
8405
8406 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
8407 (grub_console_setcolorstate): Clear out 0x80 bit.
8408 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
8409 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
8410 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
8411
8412 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
8413
8414 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
8415 Set to "auto".
8416
8417 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8418
8419 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
8420 mo_file after freeing.
8421
8422 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8423
8424 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
8425
8426 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8427
8428 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
8429 flags.
8430
8431 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8432
8433 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
8434 usage.
8435
8436 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
8437
8438 Put terminfo into core on ieee1275 and yeeloong (needed for console).
8439
8440 * gentpl.py: New groups terminfoinkernel and terminfomodule.
8441 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
8442 and terminfo.h when needed.
8443 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
8444 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
8445 (terminfo): Enable only on terminfokernel.
8446 (extcmd): Likewise.
8447 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
8448 * include/grub/lib/arg.h: Likewise.
8449 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
8450 incorrect usage of ->.
8451
8452 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8453
8454 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
8455 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
8456
8457 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8458
8459 Fix coreboot compilation.
8460
8461 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
8462 Take VBE info into account even if only text is supported.
8463 (fill_vbe_info): Take into account the case when only VGA text
8464 is supported.
8465 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
8466 on coreboot, multiboot and qemu.
8467
8468 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8469
8470 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
8471 debug messages.
8472 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
8473
8474 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8475
8476 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
8477 parameters.
8478
8479 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8480
8481 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
8482 if they were BSD-style.
8483
8484 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8485
8486 * grub-core/boot/i386/pc/lnxboot.S: Replace
8487 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
8488 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
8489
8490 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
8491
8492 Write embedding zone using Reed-Solomon.
8493
8494 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
8495 * grub-core/Makefile.am (rs_decoder.S): New target.
8496 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
8497 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
8498 (multiboot): Move to RS part.
8499 (post_reed_solomon): New label.
8500 (grub_boot_drive): Move to non-RS part since it's modified in memory
8501 on boot.
8502 Include rs_decoder.S.
8503 * grub-core/lib/reed_solomon.c: New file.
8504 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
8505 New definition.
8506 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
8507 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
8508 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
8509 * include/grub/partition.h (grub_partition_map): Change prototype of
8510 embed to allow returning additional sectors.
8511 * include/grub/reed_solomon.h: New file.
8512 * util/grub-setup.c (setup): Handle Reed-Solomon.
8513
8514 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
8515
8516 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8517 i386 and x86-64 definedness tests.
8518
8519 2010-09-27 Yves Blusseau <blusseau@zetam.org>
8520
8521 Fix generation of kernel_syms.lst
8522
8523 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
8524 ASM_PREFIX
8525
8526 2010-09-26 Robert Millan <rmh@gnu.org>
8527
8528 Support degraded ZFS arrays in "grub-probe -t device" resolution.
8529
8530 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
8531 the pool is an array of devices, iterate through it and return the
8532 first device that passes a stat() test (instead of blindly returning
8533 the first one).
8534
8535 2010-09-26 Robert Millan <rmh@gnu.org>
8536
8537 Build fixes for GNU/kFreeBSD.
8538
8539 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
8540 to programs that require ZFS conversion.
8541 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
8542 kernels that don't have FLOPPY_MAJOR.
8543
8544 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8545
8546 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
8547
8548 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
8549
8550 Fix grub-emu build.
8551
8552 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
8553 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
8554 mdraid09 and mdraid1x.
8555
8556 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
8557
8558 Re-enable grub-extras.
8559
8560 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
8561 avoid confusing Automake. Run autogen only twice, once for the top
8562 level and once for grub-core. Add Makefile.util.def and
8563 Makefile.core.def from extra modules to the appropriate autogen
8564 invocations. If Makefile.common exists in an extra module, include
8565 it in both Makefile.util.am and grub-core/Makefile.core.am;
8566 similarly, include any Makefile.util.common file in Makefile.util.am
8567 and any Makefile.core.common file in grub-core/Makefile.core.am.
8568 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
8569 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
8570 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
8571 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
8572
8573 * gentpl.py (gvar_add): Turn GVARS into a set.
8574 (global_variable_initializers): Sort global variables on output.
8575 (vars_init): New function.
8576 (first_time): Likewise.
8577 (library): Ensure that non-global variable initialisations are
8578 emitted before the first time we emit code for a library block.
8579 Append to variables rather than setting them. Only emit
8580 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
8581 each conditional path.
8582 (program): installdir() emits an Autogen macro, so must be passed to
8583 var_add rather than gvar_add.
8584 (data): Likewise.
8585 (script): Likewise.
8586 (rules): New function, centralising handling for different target
8587 types. Set up Guile association lists for first_time and vars_init,
8588 and send most output to a diversion so that variable initialisations
8589 can be emitted first.
8590 (module_rules): Use new rules function.
8591 (kernel_rules): Likewise.
8592 (image_rules): Likewise.
8593 (library_rules): Likewise.
8594 (program_rules): Likewise.
8595 (script_rules): Likewise.
8596 (data_rules): Likewise.
8597
8598 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
8599
8600 * .bzrignore: Add contrib and grub-core/contrib. Remove
8601 grub-core/Makefile.gcry.am.
8602
8603 2010-09-24 Yves Blusseau <blusseau@zetam.org>
8604
8605 * grub-core/lib/LzFind.c: Add missing include.
8606 * grub-core/lib/LzmaEnc.c: Likewise.
8607 * grub-core/script/lexer.c: Likewise.
8608 * grub-core/script/yylex.l: Likewise.
8609 * util/grub-macho2img.c: Likewise.
8610 * util/grub-menulst2cfg.c: Likewise.
8611 * util/grub-mklayout.c: Likewise.
8612 * util/grub-mkpasswd-pbkdf2.c
8613 * util/grub-mkrelpath.c: Likewise.
8614 * util/resolve.c: Likewise.
8615
8616 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
8617
8618 * Makefile.util.def (example_unit_test): Add
8619 grub-core/gnulib/libgnu.a.
8620
8621 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
8622
8623 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
8624
8625 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
8626
8627 Support xz compression on yeeloong.
8628
8629 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
8630 * configure.ac: Check for LZMA.
8631 * grub-core/Makefile.core.def (xz_decompress): New target.
8632 (none_decompress): Likewise.
8633 * grub-core/boot/decompressor/minilib.c: New file.
8634 * grub-core/boot/decompressor/none.c: Likewise.
8635 * grub-core/boot/decompressor/xz.c: Likewise.
8636 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
8637 * grub-core/kern/mips/cache_flush.S: Likewise.
8638 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
8639 * grub-core/kern/mips/startup.S: Move first stage to ...
8640 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
8641 nomacro.
8642 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
8643 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
8644 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
8645 Allocate statically.
8646 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
8647 Allocate statically or use scratch. Don't check CRC32.
8648 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
8649 Allocate statically. Don't check CRC32.
8650 * include/grub/decompressor.h: New file.
8651 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
8652 Removed.
8653 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
8654 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
8655 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
8656 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
8657 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
8658 * util/grub-mkimage.c (grub_compression_t): New type.
8659 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
8660 (image_target_desc): New field default_compression.
8661 (image_targets): Adjust yeeloong targets.
8662 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
8663 (compress_kernel): New parameter comp.
8664 (generate_image): Likewise. Handle new compression case.
8665 (options): New option --compression
8666 (help): Likewise.
8667 (main): Handle new option.
8668
8669 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
8670
8671 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
8672
8673 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
8674
8675 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
8676 typo in __i386__ conditional.
8677
8678 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8679
8680 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
8681 include.
8682
8683 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
8684
8685 Implement EFI and ACPI multiboot2 extensions.
8686
8687 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
8688 new tags as supported.
8689 (acpiv2_size): New function.
8690 (grub_multiboot_get_mbi_size): Take new tags into account.
8691 (grub_multiboot_make_mbi): Add new tags.
8692 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
8693
8694 2010-09-21 Aleš Nesrsta <starous@volny.cz>
8695
8696 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
8697 Added missing configuration of USB device.
8698
8699 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8700
8701 * grub-core/normal/menu_entry.c (run): Make sure we always return
8702 a value.
8703
8704 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8705
8706 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
8707 NumberOfPages is UINT64 according to the UEFI specification, not
8708 UINTN. Fix printf format.
8709
8710 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8711
8712 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
8713 `err' to grub_usb_err_t.
8714 Reported and tested by: KESHAV P.R.
8715
8716 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8717
8718 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
8719 tpart non-const, so that we can assign to it. (Since this is a
8720 typedef, the constness refers to the pointer rather than what it
8721 points to.)
8722
8723 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8724
8725 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
8726 $(top_srcdir)/grub-core/gnulib as well as
8727 $(top_builddir)/grub-core/gnulib.
8728 Reported by: KESHAV P.R.
8729
8730 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8731
8732 * util/grub-install.in: Fix the bootloader ID option to be
8733 consistently --bootloader-id, not --bootloader_id.
8734 Reported by: KESHAV P.R.
8735
8736 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8737
8738 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
8739 check hash checksum." consistently translatable.
8740
8741 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8742
8743 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
8744 $(top_builddir).
8745
8746 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8747
8748 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
8749 (GRUB_MOD_INIT): Register sha1sum command.
8750 (GRUB_MOD_FINI): Unregister sha1sum command.
8751
8752 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8753
8754 Keep boot and grub directory names in sync with utils scripts
8755
8756 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
8757 * config.h.in: Add previous macros.
8758 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
8759 * util/grub-install.in: Use $bootdir and $grubdir variables.
8760
8761 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8762
8763 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
8764 convert partition names to disk names if the new `convert' parameter
8765 is set.
8766 (grub_util_biosdisk_get_grub_dev): If opening the disk device
8767 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
8768 disk in its own right. This can happen with Xen disk images.
8769
8770 2010-09-21 Yves Blusseau <blusseau@zetam.org>
8771
8772 * util/grub-editenv.c: Update strings to avoid warnings when generating
8773 grub.pot file.
8774 * util/grub-setup.c: Likewise.
8775
8776 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8777
8778 * configure.ac: Change version to 1.99~beta0.
8779
8780 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
8781
8782 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8783 Add BADRAM.
8784 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
8785 Likewise.
8786 * include/multiboot.h: Resynced with specification.
8787 * include/multiboot2.h: Likewise.
8788
8789 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
8790
8791 Fix po directory handling.
8792
8793 * configure.ac: Create po/Makefile.in rather than po/Makefile.
8794 * grub-core/gnulib/Makefile.am: Import gettext module.
8795 * m4/gnulib-cache.m4: Likewise.
8796 * m4/gnulib-comp.m4: Likewise.
8797 * m4/gettext.m4: New file, from gnulib.
8798 * m4/glibc2.m4: Likewise.
8799 * m4/iconv.m4: Likewise.
8800 * m4/intdiv0.m4: Likewise.
8801 * m4/intl.m4: Likewise.
8802 * m4/intldir.m4: Likewise.
8803 * m4/intlmacosx.m4: Likewise.
8804 * m4/intmax.m4: Likewise.
8805 * m4/inttypes-pri.m4: Likewise.
8806 * m4/lcmessage.m4: Likewise.
8807 * m4/lib-ld.m4: Likewise.
8808 * m4/lib-link.m4: Likewise.
8809 * m4/lib-prefix.m4: Likewise.
8810 * m4/lock.m4: Likewise.
8811 * m4/nls.m4: Likewise.
8812 * m4/po.m4: Likewise.
8813 * m4/printf-posix.m4: Likewise.
8814 * m4/progtest.m4: Likewise.
8815 * m4/threadlib.m4: Likewise.
8816 * m4/uintmax_t.m4: Likewise.
8817 * m4/visibility.m4: Likewise.
8818 * po/Makefile.am: Remove.
8819 * po/Makefile.in.in: New file, from gettext.
8820 ($(DOMAIN).pot-update): Support POTFILES-shell.
8821 * po/Makevars: New file.
8822 * po/POTFILES-shell: Rename to ...
8823 * po/POTFILES-shell.in: ... this. Update.
8824 * po/POTFILES: Rename to ...
8825 * po/POTFILES.in: ... this. Update.
8826 * po/Rules-quot: New file, from gettext.
8827 * po/boldquot.sed: Likewise.
8828 * po/en@boldquot.header: Likewise.
8829 * po/en@quot.header: Likewise.
8830 * po/insert-header.sin: Likewise.
8831 * po/quot.sed: Likewise.
8832 * po/remove-potcdate.sin: Likewise.
8833
8834 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8835
8836 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
8837
8838 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8839
8840 * util/grub.d/20_linux_xen.in: Use submenus.
8841
8842 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8843
8844 Support submenus.
8845
8846 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
8847 parameter submenu. All users updated.
8848 * grub-core/normal/main.c (free_menu): Rename to ...
8849 (grub_normal_free_menu): ... this. Made global.
8850 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
8851 if requested.
8852 * grub-core/normal/menu_entry.c (screen): New field submenu.
8853 (make_screen): Set submenu.
8854 (run): Open new context if requested.
8855 * include/grub/menu.h (grub_menu_entry): New field submenu.
8856 * include/grub/normal.h (grub_normal_free_menu): New proto.
8857
8858 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8859
8860 Menu entries extractor.
8861
8862 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
8863 variants.
8864 (GRUB_MOD_INIT): Register new variants.
8865 (GRUB_MOD_FINI): Unregister new variants.
8866 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
8867 into grub_cmd_legacy_source.
8868 (grub_cmd_legacy_source): Implement extractor variants.
8869 (GRUB_MOD_INIT): Register new variants.
8870 (GRUB_MOD_FINI): Unregister new variants.
8871 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
8872 as an extractor.
8873 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
8874 search as an extractor.
8875 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
8876 test as an extractor.
8877 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
8878 as an extractor.
8879 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
8880 (grub_env_new_context): New function.
8881 (grub_env_context_open): Likewise.
8882 (grub_env_extractor_open): Likewise.
8883 (grub_env_extractor_close): Likewise.
8884 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
8885 grub_extractor_level.
8886 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
8887 * include/grub/env.h (grub_env_extractor_open): New proto.
8888 (grub_env_extractor_close): Likewise.
8889 * include/grub/normal.h (grub_extractor_level): New external variable.
8890
8891 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8892
8893 Make cutmem accept a region specification.
8894 Suggested by: Samuel Thibault
8895
8896 * grub-core/mmap/mmap.c (parsemem): New function.
8897 (grub_cmd_cutmem): Handle new arguments.
8898
8899 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8900
8901 New command cutmem.
8902
8903 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
8904 (GRUB_MOD_INIT): Register new command.
8905 (GRUB_MOD_FINI): Unregister new command.
8906
8907 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8908
8909 Support some annoying BSD and Minix subpartitions.
8910
8911 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
8912 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
8913 Properly handle concatenation.
8914 * grub-core/kern/device.c (grub_device_iterate): Likewise.
8915 * grub-core/normal/completion.c (iterate_partition): Likewise.
8916 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
8917 contain partition. All users updated.
8918 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
8919 struct.
8920 (grub_openbsdlabel_partition_map): Likewise.
8921 (bsdlabel_partition_map_iterate): Rename to ..
8922 (iterate_real): ... this. New arguments sector, freebsd and pmap.
8923 (bsdlabel_partition_map_iterate): New function.
8924 (netopenbsdlabel_partition_map_iterate): Likewise.
8925 (netbsdlabel_partition_map_iterate): Likewise.
8926 (openbsdlabel_partition_map_iterate): Likewise.
8927 (GRUB_MOD_INIT): Register new partmaps.
8928 (GRUB_MOD_FINI): Unregister new partmaps.
8929 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
8930 (grub_partition_msdos_iterate): ... this. All users updated.
8931 Don't support embedding other than in a minix partition.
8932 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
8933 proto.
8934 * include/grub/partition.h (grub_partition): New field msdostype.
8935 * util/grub-install.in: Handle openbsd and netbsd types being in
8936 part_bsd module.
8937
8938 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8939
8940 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
8941
8942 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
8943 * grub-core/Makefile.core.def (mdraid): Renamed to ...
8944 (mdraid09): ... this.
8945 (mdraid1x): New module.
8946 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
8947 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
8948
8949 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8950
8951 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
8952 vsprintf.
8953
8954 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8955
8956 * grub-core/commands/efi/lsefimmap.c: Correct header.
8957 * NEWS: Update.
8958
8959 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
8960
8961 * util/grub-editenv.c (argp_parser): Don't pass translated strings
8962 as printf format strings; the translations might contain '%' which
8963 could cause a crash.
8964 (main): Likewise.
8965 * util/grub-fstest.c (argp_parser): Likewise.
8966 * util/grub-setup.c (argp_parser): Likewise.
8967 (main): Likewise.
8968
8969 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8970
8971 Use argp in grub-fstest.
8972
8973 * util/grub-fstest.c: Don't include getopt.h.
8974 Include argp.h.
8975 (root): New variable.
8976 (args_count): Likewise.
8977 (nparm): Likewise.
8978 (num_disks): Likewise.
8979 (images): Likewise.
8980 (cmd): Likewise.
8981 (debug_str): Likewise.
8982 (args): Likewise.
8983 (options): Transformed to argp.
8984 (usage): Removed.
8985 (main): Split argument parsing into ...
8986 (argp_parser): ... this. Changed to argp format.
8987 (argp): New variable.
8988 (main): Use argp_parse.
8989
8990 2010-09-20 Tristan Gingold <gingold@free.fr>
8991 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
8992 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8993
8994 * grub-core/commands/efi/lsefimmap.c: New file.
8995 * grub-core/Makefile.core.def (lsefimmap): New module.
8996 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
8997
8998 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
8999
9000 Pause the execution (10s max) if any errors are displayed so the user
9001 has a chance to see them.
9002
9003 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
9004 (grub_print_error): Increment grub_err_printed_errors.
9005 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
9006 execution if any errors were displayed.
9007 (show_menu): Remove old code for pause.
9008 * grub-core/normal/menu_entry.c (run): Likewise.
9009 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
9010 users updated.
9011 (grub_normal_get_char_counter): Likewise.
9012 * include/grub/err.h (grub_err_printed_errors): New external variable.
9013 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
9014
9015 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9016
9017 Support multiboot VBE info.
9018
9019 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
9020 Take VBE info into account.
9021 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
9022 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
9023 Call fill_vbe_info when appropriate.
9024 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
9025 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
9026 as supported.
9027 (grub_multiboot_get_mbi_size): Take new tags into account.
9028 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
9029 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
9030 Call fill_vbe_tag when appropriate.
9031 (grub_multiboot_make_mbi): Properly align tags.
9032 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
9033 function.
9034 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
9035 proto.
9036 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
9037
9038 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9039
9040 Suport manual terminal geometry specification.
9041
9042 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
9043 Save state in grub_ofconsole_terminfo_output.
9044 (grub_ofconsole_term): Use grub_terminfo_getwh.
9045 (grub_ofconsole_getwh): Removed.
9046 * grub-core/term/serial.c (grub_serial_getwh): Removed.
9047 (grub_serial_term): Use grub_terminfo_getwh.
9048 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
9049 (options): New struct.
9050 (OPTION_*): New enum.
9051 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
9052 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
9053 width and height.
9054 (grub_terminfo_getwh): New proto.
9055 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
9056
9057 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9058
9059 Handle legacy "terminal" command.
9060
9061 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
9062 and FLAG_TERMINAL.
9063 (legacy_commands): Add terminal and title.
9064 (grub_legacy_parse): Handle terminal. Simplify title handling.
9065
9066 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9067
9068 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
9069 parameters overflow.
9070
9071 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9072
9073 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
9074 widthspec.h.
9075
9076 * docs/grub.texi (Shell-like scripting): Document `!'.
9077 (Network): Simplify using new i386-pc-pxe format. Mention
9078 grub-mknetdir.
9079
9080 * NEWS: Update.
9081
9082 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9083
9084 * Makefile.am (SUBDIRS): Restore "."; it's important to force
9085 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
9086 when needed.
9087
9088 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9089
9090 * grub-core/commands/efi/lsefisystab.c: Correct header.
9091 * grub-core/commands/efi/lssal.c: Likewise.
9092 * grub-core/commands/testload.c: Likewise.
9093
9094 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9095
9096 * util/grub-mkrescue.in: Add explicit root argument to --set to
9097 prevent the UUID being interpreted as an argument to --set (matches
9098 previous change to prepare_grub_to_access_device).
9099
9100 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
9101
9102 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
9103 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
9104 the verbosity of later #ifs.
9105 (find_partition_start): Define this function on FreeBSD too.
9106 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
9107 function.
9108 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
9109 on FreeBSD.
9110
9111 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9112
9113 * util/grub-editenv.c: Use argp instead of getopt.
9114
9115 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9116
9117 * util/grub-setup.c: Use argp instead of getopt.
9118
9119 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9120
9121 Use gnulib-tool to create gnulib source files.
9122
9123 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
9124 grub-core/gnulib directories
9125 * .bzignore: Add **/.deps and autogenerated gnulib files
9126 * configure.ac: Assign auxiliary directory to build-aux, add invocation
9127 of gnulib macros, add grub-core/gnulib/Makefile
9128 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
9129 include m4 directory to aclocal.
9130 * Makefile.util.def: Remove direct compilation of gnulib source files
9131 and use the new grub-core/gnulib/libgnu.a.
9132 * build-aux/config.rpath: move config.rpath from top directory to
9133 build-aux
9134 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
9135 in gnulib headers
9136 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
9137 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
9138 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
9139 header.
9140 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
9141 string.
9142
9143 2010-09-20 Yves Blusseau <blusseau@zetam.org>
9144
9145 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
9146 grub-core/genmod.sh and grub-core/gensyminfo.sh
9147
9148 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
9149
9150 Add a test for echo command options.
9151
9152 * tests/grub_cmd_echo.in: New test.
9153 * Makefile.util.def: Rules for new test.
9154
9155 2010-09-20 Szymon Janc <szymon@janc.net.pl>
9156
9157 Remove crc.mod and move crc command to hashsum.mod.
9158 Remove lib/crc.c - users updated to use gcrypt implementation.
9159
9160 * grub-core/commands/crc.c: Removed.
9161 * grub-core/Makefile.core.def (crc): Module removed.
9162 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
9163 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
9164 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
9165 * grub-core/lib/crc.c: Removed.
9166 * include/grub/lib/crc.h: Removed.
9167 * Makefile.util.def (crc): Remove lib/crc.c
9168 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
9169 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
9170 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
9171 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
9172 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
9173 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
9174
9175 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
9176
9177 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
9178
9179 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9180
9181 Split config.h for util and core.
9182
9183 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
9184 (ADDR32): Likewise.
9185 (DATA32): Likewise.
9186 (BSS_START_SYMBOL): Likewise.
9187 (END_SYMBOL): Likewise.
9188 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
9189 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
9190 * config.h.in: New file.
9191 * configure.ac: Use config-util.h as config define file.
9192 Rename MACHINE into GRUB_MACHINE. All users updated.
9193 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
9194 updated.
9195 (NESTED_FUNC_ATTR): Likewise.
9196 Substitue new variables.
9197 (COND_HAVE_ASM_USCORE): New conditional.
9198 * grub-core/Makefile.am (ASM_PREFIX): New variable.
9199 (kernel_syms.lst): Use ASM_PREFIX.
9200 * grub-core/kern/emu/console.c: Include config-util.h.
9201 * grub-core/kern/emu/misc.c: Likewise.
9202 * grub-core/kern/emu/mm.c: Likewise.
9203 * include/grub/emu/misc.h: Likewise.
9204 * include/grub/libgcc.h: Likewise.
9205
9206 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9207
9208 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
9209 constants usage.
9210 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
9211 Fix GRUB_TERM_KEY_* constants usage.
9212 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
9213
9214 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9215
9216 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
9217 print pointer.
9218 * grub-core/bus/usb/uhci.c: Remove empty define.
9219 (grub_uhci_check_transfer): Add missing cast.
9220 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
9221 print pointer.
9222 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
9223 PRIuGRUB_SIZE.
9224 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
9225
9226 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9227
9228 * grub-core/Makefile.core.def (legacycfg): Add
9229 lib/i386/pc/vesa_modes_table.c on emu.
9230
9231 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
9232
9233 Reduce number of temporary files generated by build system.
9234
9235 * grub-core/gencmdlist.sh: Removed.
9236 * grub-core/genfslist.sh: Removed.
9237 * grub-core/genhandlerlist.sh: Removed.
9238 * grub-core/genmodsrc.sh: Removed.
9239 * grub-core/genpartmaplist.sh: Removed.
9240 * grub-core/genparttoollist.sh: Removed.
9241 * grub-core/gentermiinallist.sh: Removed.
9242 * grub-core/genvideolist.sh: Removed.
9243
9244 * grub-core/genmod.sh.in: New file.
9245 * grub-core/gensyminfo.sh.in: New file.
9246
9247 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
9248 * conf/Makefile.extra-dist: Update with new files.
9249 * gentpl.py: Remove rules related to unnecessary temporary files.
9250 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
9251 and und-* files.
9252 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
9253 genmod.sh scripts.
9254 * grub-core/bus/usb/uhci.c: Remove empty #define.
9255 * grub-core/genmoddep.awk: Updated with new syminfo format.
9256 * util/bash-completion.d/Makefile.am: Add config.log to
9257 CLEANFILES.
9258
9259 2010-09-19 Yves Blusseau <blusseau@zetam.org>
9260
9261 * Makefile.util.def: Add forgotten $(LIBINTL) library.
9262
9263 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
9264
9265 * util/grub-mkconfig.in: Check the config script for syntax errors
9266 before saving.
9267
9268 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
9269 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9270
9271 * Makefile.util.def (grub-install): Use util/grub-install.in on all
9272 platforms.
9273 * util/grub-install.in: Add EFI and IEEE1275 support.
9274 * util/i386/efi/grub-install.in: Removed.
9275 * util/ieee1275/grub-install.in: Likewise.
9276
9277 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
9278
9279 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
9280 (grub_cmd_cmosclean): Likewise.
9281 (GRUB_MOD_INIT): Register command cmosclean.
9282 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
9283 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
9284
9285 2010-09-18 Carles Pina i Estany <carles@pina.cat>
9286 2010-09-18 Aleš Nesrsta <starous@volny.cz>
9287 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9288
9289 Add keyboard layouts support.
9290
9291 * Makefile.util.def (grub-mklayout): New file.
9292 (grub-kbdcomp): New script.
9293 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
9294 Add keyboard_layouts.h.
9295 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
9296 commands/boot.c on yeeloong.
9297 (keylayouts): New module.
9298 * grub-core/bus/usb/ohci.c
9299 * grub-core/bus/usb/uhci.c
9300 * grub-core/bus/usb/usbhub.c (rescan): New variable.
9301 (grub_usb_add_hub): Poll interrupt pipe for device handling.
9302 (attach_root_port): Likewise.
9303 (poll_nonroot_hub): Likewise.
9304 (grub_usb_poll_devices): Likewise.
9305 (detach_device): Close transfer.
9306 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
9307 function.
9308 (grub_usb_bulk_setup_readwrite): Likewise.
9309 (grub_usb_bulk_finish_readwrite): Likewise.
9310 * grub-core/commands/keylayouts.c: New file.
9311 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
9312 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
9313 aliases.
9314 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
9315 support scancode 2.
9316 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
9317 * include/grub/keyboard_layouts.h: New file.
9318 * util/grub-mklayout.c: New file.
9319 * util/grub-kbdcomp.in: Likewise.
9320
9321 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9322
9323 Unify memory types.
9324
9325 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
9326 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
9327 types.
9328 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
9329 (grub_upper_mem): Likewise.
9330 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
9331 * include/grub/memory.h (grub_memory_type_t): New enum.
9332 All users updated.
9333
9334 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9335
9336 * grub-core/Makefile.core.def (lsapm): New module.
9337 * grub-core/commands/i386/pc/lsapm.c: New file.
9338 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
9339 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
9340 Likewise.
9341 * include/grub/i386/pc/apm.h: New file.
9342 * include/multiboot.h (multiboot_apm_info): New struct.
9343
9344 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
9345
9346 GRUB-legacy configuration file support.
9347
9348 * Makefile.util.def (grub-menulst2cfg): New util.
9349 * docs/man/grub-menulst2cfg.h2m: New file.
9350 * grub-core/Makefile.core.def (legacycfg): New module.
9351 * grub-core/commands/legacycfg.c: New file.
9352 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
9353 (grub_normal_add_menu_entry): ... this.
9354 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
9355 (grub_normal_set_password): ...this.
9356 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
9357 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
9358 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
9359 * grub-core/lib/legacy_parse.c: New file.
9360 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
9361 * include/grub/i386/pc/vesa_modes_table.h: New file.
9362 * include/grub/legacy_parse.h: Likewise.
9363 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
9364 * util/grub-menulst2cfg.c: New file.
9365
9366 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9367
9368 * grub-core/kern/emu/hostdisk.c
9369 (convert_system_partition_to_system_disk): Initialise node.
9370
9371 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9372
9373 * grub-core/kern/emu/hostdisk.c
9374 (convert_system_partition_to_system_disk): Fix devmapper memory pool
9375 leak.
9376 Reported and based on patch by: Modestas Vainius.
9377
9378 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
9379
9380 Fix DM-RAID probing with recent versions of device-mapper udev
9381 rules.
9382
9383 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
9384 canonicalise device paths under /dev/mapper/.
9385 (convert_system_partition_to_system_disk): Compare the
9386 uncanonicalised path to /dev/mapper/ rather than the canonicalised
9387 path, since device nodes under /dev/mapper/ are often symlinks.
9388
9389 2010-09-17 Yves Blusseau <blusseau@zetam.org>
9390
9391 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
9392
9393 2010-09-16 Yves Blusseau <blusseau@zetam.org>
9394
9395 * configure.ac: Avoid some annoying error messages if freetype-config
9396 program is not found.
9397
9398 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9399
9400 Support RAID on virtio devices, and others.
9401
9402 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
9403 Rename to ...
9404 [__MINGW32__] (grub_find_device): ... this.
9405 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
9406 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
9407 reasonable default if dir is NULL.
9408 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
9409 ...
9410 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
9411 (grub_guess_root_device): Update callers.
9412 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
9413
9414 * util/raid.c (grub_util_getdiskname): Remove.
9415 (grub_util_raid_getmembers): Use grub_find_device rather than
9416 grub_util_getdiskname.
9417
9418 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9419
9420 * docs/grub.texi (serial): Remove obsolete comment about GRUB
9421 needing to be compiled with serial support.
9422 (ls): Indicate that multiple files are accepted.
9423 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
9424 indicate that multiple files are accepted.
9425
9426 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
9427
9428 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
9429 libgrub_a_init.c, and util/bash-completion.d/grub.
9430
9431 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9432
9433 * util/grub-setup.c (setup): Fix incorrect container semantics.
9434
9435 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9436
9437 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
9438 misusage.
9439 Reported by: J. Nick Terry
9440
9441 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9442
9443 Move embedding routines to partmap sources files.
9444
9445 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
9446 [GRUB_UTIL]: New variable.
9447 (gpt_partition_map_iterate): Set part.parent.
9448 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
9449 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
9450 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
9451 New function.
9452 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
9453 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
9454 (grub_partition_map) [GRUB_UTIL]: New field embed.
9455 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
9456 (setup): Use ->embed.
9457
9458 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9459
9460 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
9461 function.
9462 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
9463 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
9464
9465 2010-09-15 Yves Blusseau <blusseau@zetam.org>
9466
9467 Add function to get completions from usage.
9468
9469 * util/bash-completion.d/grub-completion.bash.in: Add function to get
9470 completions from usage. Use LC_ALL=C to get options properly.
9471
9472 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9473
9474 * grub-core/gnulib/basename-lgpl.c: Imported.
9475 * grub-core/gnulib/basename.c: Likewise.
9476 * grub-core/gnulib/dirname-lgpl.c: Likewise.
9477 * grub-core/gnulib/dirname.c: Likewise.
9478 * grub-core/gnulib/dirname.h: Likewise.
9479 * grub-core/gnulib/stripslash.c: Likewise.
9480
9481 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
9482
9483 * grub-core/gnulib/error.c: Resynced.
9484 * grub-core/gnulib/getopt.c: Likewise.
9485 * grub-core/gnulib/getopt_int.h: Likewise.
9486 * grub-core/gnulib/regex.h: Likewise.
9487 * grub-core/gnulib/regex_internal.c: Likewise.
9488 * grub-core/gnulib/regex_internal.h: Likewise.
9489
9490 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9491
9492 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
9493 CRC calculations and validity checks.
9494 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
9495 calculations.
9496
9497 2010-09-15 Szymon Janc <szymon@janc.net.pl>
9498
9499 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
9500
9501 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9502
9503 Fix incorrect echo options handling.
9504 Reported by: Yves Blusseau.
9505
9506 * include/grub/command.h (grub_command_flags_t): New flags
9507 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
9508 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
9509 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
9510
9511 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9512
9513 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
9514 users updated.
9515 (GRUB_COMMAND_FLAG_MENU): Likewise.
9516 (GRUB_COMMAND_FLAG_BOTH): Likewise.
9517 (GRUB_COMMAND_FLAG_TITLE): Removed.
9518 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
9519 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
9520 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
9521 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
9522 (grub_command_flags_t): New enum. All users updated.
9523
9524 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
9525
9526 Fix solaris compilation.
9527
9528 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
9529 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
9530 (grub-emu-list): Likewise.
9531
9532 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9533
9534 Remove deprecated root command.
9535
9536 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
9537 updated.
9538
9539 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9540
9541 * util/i386/pc/grub-setup.c: Merge this ...
9542 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
9543 * util/grub-setup.c: ... into this.
9544 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
9545 New struct.
9546
9547 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9548
9549 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
9550 possible.
9551
9552 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9553
9554 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
9555 allocate p.
9556
9557 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9558
9559 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
9560 explicit root argument to set to prevent UUID to be interpreted as
9561 argument to set.
9562
9563 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9564
9565 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
9566
9567 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9568
9569 Don't export grub_gate_a20.
9570
9571 * grub-core/kern/i386/pc/init.c: Remove leftovers.
9572 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
9573 to ...
9574 (grub_gate_a20): ... this. All users updated.
9575 * include/grub/i386/pc/init.h: Removed. All users updated.
9576
9577 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9578
9579 Create euro.pf2 which supports most European languages.
9580
9581 * Makefile.am (grubdata_DATA): Add euro.pf2.
9582 (euro.pf2): New target.
9583 (CLEANFILES): Add euro.pf2.
9584
9585 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
9586
9587 * configure.ac: Disable emu-usb by default to prevent inadvertent
9588 device takeover.
9589
9590 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9591
9592 Disable usbserial on grub-emu since our libusb code isn't good enough
9593 yet.
9594
9595 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
9596 (usbserial_pl2303): Likewise.
9597 (usbserial_ftdi): Likewise.
9598
9599 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9600
9601 * include/grub/disk.h (grub_disk): Remove has_partitions.
9602 All users updated.
9603 * disk/loopback.c (grub_loopback): Remove has_partitions.
9604 All users updated.
9605 (options): Remove partitions. All users updated.
9606 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
9607 * util/i386/pc/grub-setup.c (setup): copy partition table only when
9608 actual partition table is found.
9609
9610 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9611
9612 Remove readability checks (too many false negatives).
9613
9614 * util/grub-install.in: Remove readability checks.
9615 * util/grub-mkconfig.in: Likewise.
9616 * util/grub.d/10_hurd.in: Likewise.
9617 * util/grub.d/10_kfreebsd.in: Likewise.
9618 * util/grub.d/10_linux.in: Likewise.
9619 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
9620 way.
9621
9622 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9623
9624 Enable acpi shutdown on all ACPI platforms.
9625
9626 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
9627 on coreboo, multiboot and EFI.
9628 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
9629 (grub_acpi_halt): Likewise.
9630 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
9631 (grub_cmd_halt): Don't call grub_acpi_halt directly.
9632 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
9633 * grub-core/lib/i386/halt.c (grub_halt)
9634 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
9635
9636 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9637
9638 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
9639 context.
9640
9641 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9642
9643 * grub-core/video/efi_gop.c: Fix over-80-chars line.
9644 * grub-core/video/efi_uga.c: Likewise.
9645
9646 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9647
9648 Filter devaliases and never open same device twice.
9649
9650 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
9651 (last_ihandle): Likewise.
9652 (ofdisk_hash_ent): New member shortest.
9653 (ofdisk_hash_add): Add canonical path too.
9654 (scan): New function.
9655 (grub_ofdisk_iterate): Iterate over hashed entries.
9656 (compute_dev_path): Don't add :0.
9657 (grub_ofdisk_open): Don't really open the disk.
9658 (grub_ofdisk_close): Avoid closing unrelated disk.
9659 (grub_ofdisk_read): Implement reopen logic.
9660 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
9661 New function.
9662 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
9663 New proto.
9664
9665 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9666
9667 Fix sparc64.
9668
9669 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
9670 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
9671 right address. Add sparc64_ieee1275_ldflags.
9672 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
9673 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
9674 to grub_host_to_target_addr
9675 (load_image): Likewise.
9676
9677 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9678
9679 * grub-core/normal/completion.c (complete_file): Handle device
9680 containing slash.
9681 Fix based on patch by Doug Nazar.
9682
9683 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9684
9685 grub-mknetdir script.
9686
9687 * Makefile.util.def (grub-mknetdir): New module.
9688 * tests/util/grub-shell.in: Support boot=net
9689 * util/grub-mknetdir.in: New file.
9690
9691 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9692
9693 videoinfo on non-vbe.
9694
9695 * grub-core/Makefile.core.def (vbeinfo): Removed.
9696 (vbetest): Removed.
9697 (videoinfo): New module.
9698 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
9699 * grub-core/commands/i386/pc/vbetest.c: Removed.
9700 * grub-core/commands/videoinfo.c: New file.
9701 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
9702 specification.
9703 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
9704 as vbetest.
9705 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
9706 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
9707 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
9708 mode_number. New parameter mode. All users updated.
9709 (grub_video_gop_iterate): New function.
9710 (grub_video_efi_gop): New member iterate.
9711 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
9712 (grub_vbe_set_video_mode): Remove setting useless fields.
9713 (vbe2videoinfo): New function.
9714 (grub_video_vbe_iterate): Likewise.
9715 (grub_video_vbe_setup): Use vbe2videoinfo.
9716 (grub_video_vbe_print_adapter_specific_info): New function.
9717 (grub_video_vbe_adapter): New fields iterate and
9718 print_adapter_specific_info.
9719 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
9720 All users updated.
9721 (grub_video_mode_info): New field mode_number.
9722 (grub_video_adapter): New fields iterate and
9723 print_adapter_specific_info.
9724
9725 2010-09-13 Tristan Gingold <gingold@free.fr>
9726 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
9727 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9728
9729 * grub-core/commands/efi/lsefisystab.c: New file.
9730 * grub-core/commands/efi/lssal.c: Likewise.
9731 * grub-core/Makefile.core.def (lsacpi): New module.
9732 (lsefisystab): Likewise.
9733 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
9734 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
9735 (grub_efi_sal_system_table): New struct.
9736 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
9737 (grub_efi_sal_system_table_memory_descriptor): Likewise.
9738 (grub_efi_sal_system_table_platform_features): Likewise.
9739 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
9740 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
9741 (grub_efi_sal_system_table_ap_wakeup): Likewise.
9742 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
9743
9744 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9745
9746 Support explicit user claim that a device is BIOS-visible.
9747
9748 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
9749 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
9750 * grub-core/kern/emu/hostdisk.c
9751 (convert_system_partition_to_system_disk): Support mdX.
9752 (find_system_device): New parameter add. All users updated.
9753 (grub_util_biosdisk_is_present): New function.
9754 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
9755 proto.
9756
9757 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
9758
9759 Search hints support.
9760
9761 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
9762 All users updated.
9763
9764 2010-09-13 Yves Blusseau <blusseau@zetam.org>
9765
9766 Bash completion script for util commands
9767
9768 * Makefile.am: Add util/bash-completion.d directory
9769 * configure.ac: Likewise.
9770 * util/bash-completion.d/Makefile.am: New file.
9771 * util/bash-completion.d/grub-completion.bash.in: Likewise.
9772
9773 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9774
9775 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
9776 (print_backlog): set backlog_ucs4 and backlog_glyphs.
9777 Reported by: Yves Blusseau.
9778
9779 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9780
9781 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
9782 partition size and offset.
9783
9784 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9785
9786 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
9787
9788 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9789
9790 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
9791
9792 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9793
9794 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
9795 (grub_xvasprintf): Likewise.
9796
9797 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9798
9799 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
9800
9801 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9802
9803 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
9804 args ending with NULL.
9805
9806 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
9807
9808 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
9809 pointer.
9810
9811 2010-09-11 Szymon Janc <szymon@janc.net.pl>
9812
9813 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
9814
9815 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9816
9817 Shutdown using ACPI.
9818
9819 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
9820 * grub-core/commands/acpihalt.c: New file.
9821 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
9822 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
9823 (grub_acpi_halt): New proto.
9824 (GRUB_ACPI_SLP_EN): New const.
9825 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
9826 (GRUB_ACPI_OPCODE_*): New enum.
9827 (GRUB_ACPI_EXTOPCODE_*): Likewise.
9828
9829 2010-09-11 Tristan Gingold <gingold@free.fr>
9830 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
9831 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9832
9833 * commands/lsacpi.c: New file.
9834 * grub-core/Makefile.core.def (lsacpi): New module.
9835 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
9836 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
9837 (grub_acpi_madt_entry_header): New struct.
9838 (grub_acpi_madt): Likewise.
9839 (grub_acpi_madt_entry_interrupt_override): Likewise.
9840 (grub_acpi_madt_entry_sapic): Likewise.
9841 (grub_acpi_madt_entry_lsapic): Likewise.
9842 (grub_acpi_madt_entry_platform_int_source): Likewise.
9843 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
9844 (PRIuGRUB_UINT32_T): Likewise.
9845 (PRIxGRUB_UINT64_T): Likewise.
9846
9847 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9848
9849 Implement loading palette on ieee1275_fb.
9850
9851 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
9852 (have_setcolors): Likewise.
9853 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
9854 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
9855 (grub_video_ieee1275_set_palette): Implement.
9856
9857 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9858 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
9859
9860 * util/grub-install.in (grub_partition): New variable.
9861 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
9862 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
9863 Fixes a bug reported by Yves Blusseau.
9864
9865 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
9866
9867 Fix emu on mipsel.
9868
9869 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
9870 =grub_cpu_flush_cache on all mips and not only yeeloong.
9871 * configure.ac (COND_mips): New conditional.
9872 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
9873 platforms.
9874 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
9875 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
9876 [GRUB_LINKER_HAVE_INIT]: New function.
9877 (grub_emu_post_init): Likewise.
9878 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
9879 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
9880 * include/grub/cache.h (_mips): Include mips/cache.h.
9881 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
9882 LVM and RAID prototypes.
9883 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
9884 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
9885 function.
9886
9887 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9888
9889 * util/grub-install.in: Don't try to verify core.img until after
9890 running grub-mkimage to create it.
9891
9892 2010-09-10 Robert Millan <rmh@gnu.org>
9893
9894 * util/grub.d/10_hurd.in: Add misc readability checks.
9895 * util/grub.d/10_kfreebsd.in: Likewise.
9896 * util/grub.d/10_linux.in: Likewise.
9897
9898 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9899
9900 * util/grub-install.in: ${imgext} won't be defined here until the
9901 install branch is merged. For the meantime, only verify core.img on
9902 i386-pc and sparc64-ieee1275 platforms.
9903
9904 2010-09-10 Robert Millan <rmh@gnu.org>
9905
9906 Solaris support in grub_find_zpool_from_dir(). Thanks
9907 Seth Goldberg for referring to getextmntent() facility.
9908
9909 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
9910 `sys/mkdev.h'.
9911 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
9912 `<sys/mnttab.h>'.
9913 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
9914 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
9915 method for finding zpool name.
9916
9917 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
9918
9919 grub-fstest needs the host and hostfs modules while other utilities
9920 actively require those modules to be absent, so grub-fstest needs
9921 its own initialisation and finalisation code.
9922
9923 * Makefile.am (grub_fstest.pp): New target.
9924 (grub_fstest_init.lst): Likewise.
9925 (grub_fstest_init.c): Likewise.
9926 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
9927
9928 2010-09-10 Robert Millan <rmh@gnu.org>
9929
9930 * configure.ac: Check for `struct statfs.f_fstypename' and
9931 `struct statfs.f_mntfromname'.
9932
9933 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
9934 kFreeBSD-specific code.
9935
9936 2010-09-10 Robert Millan <rmh@gnu.org>
9937
9938 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
9939 on ZFS. Now non-main filesystems are supported as / too.
9940
9941 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
9942
9943 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
9944 and grub-core/disk/host.c to ...
9945 (grub-fstest): ... here. Having the host disk implementation
9946 present confuses grub-probe and other utility programs.
9947
9948 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
9949 when writing to a file, not when writing to stdout.
9950
9951 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
9952
9953 * tests/partmap_test.in: New test for partitions.
9954 * Makefile.util.def: Rules for new test.
9955
9956 2010-09-09 Robert Millan <rmh@gnu.org>
9957
9958 * util/grub-probe.c (probe): Fix a pair of unhandled error
9959 conditions.
9960
9961 2010-09-09 Robert Millan <rmh@gnu.org>
9962
9963 Basic Btrfs support (detection and UUID).
9964
9965 * grub-core/fs/btrfs.c: New file.
9966 * Makefile.util.def (library): Register btrfs.c.
9967 * grub-core/Makefile.core.def: Likewise.
9968
9969 2010-09-08 Robert Millan <rmh@gnu.org>
9970
9971 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
9972 with (optional) parameters to specify device and relative path.
9973 * util/grub-install.in: Use is_path_readable_by_grub() to
9974 verify readability of a few critical files.
9975 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
9976 verify readability of grub.cfg.new.
9977
9978 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
9979
9980 Split minix.mod into minix.mod and minix2.mod.
9981
9982 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
9983 * grub-core/Makefile.core.def (minix2): New module.
9984 * grub-core/fs/minix.c: Use definitions instead of runtime version
9985 checking.
9986 * grub-core/fs/minix2.c: New file.
9987
9988 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9989
9990 Add new --boot-directory option to replace --root-directory
9991
9992 * util/grub-install.in: Add new --boot-directory option
9993 * util/grub-reboot.in: Likewise.
9994 * util/grub-set-default.in: Likewise.
9995
9996 2010-09-08 Yves Blusseau <blusseau@zetam.org>
9997
9998 * util/grub-mkconfig.in: Use new variable.
9999
10000 2010-09-08 Yves Blusseau <blusseau@zetam.org>
10001
10002 * configure.ac: Define some useful variables.
10003
10004 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
10005
10006 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
10007 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
10008 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
10009 Use terminfo and don't use cursor-on/cursor-off unless it's known
10010 to work.
10011 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
10012 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
10013
10014 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
10015
10016 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
10017 starts with "(,", fill the drive containing the loaded image in
10018 between those two characters, but expect that a full partition
10019 specification including partition map names will follow.
10020
10021 2010-09-08 Robert Millan <rmh@gnu.org>
10022
10023 * configure.ac: Remove `--enable-grub-fstest' option.
10024 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
10025
10026 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
10027 `grub-fstest' instead of `grub-probe' for readability verification.
10028 * util/grub-probe.c (probe): Remove readability verification kludge.
10029
10030 2010-09-08 Robert Millan <rmh@gnu.org>
10031
10032 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
10033 initializing `GRUB_FS'.
10034
10035 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
10036
10037 Not command (!) support to GRUB script.
10038
10039 * tests/grub_script_not.in: New test.
10040 * Makefile.util.def: Rules for new test.
10041
10042 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
10043 ! command as a special case.
10044 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
10045
10046 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
10047
10048 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
10049 grub_free.
10050
10051 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
10052
10053 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
10054
10055 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
10056
10057 * docs/grub.texi (Shell-like scripting): Documentation for break,
10058 continue, shift and return commands.
10059
10060 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
10061
10062 Rename CD-ROM to cd on BIOS.
10063
10064 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
10065 "cd".
10066 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
10067
10068 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10069
10070 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
10071 * util/grub-probe.c (main): Likewise.
10072 * util/i386/pc/grub-setup.c (main): Likewise.
10073 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
10074 Reported and debugged by: alexxy
10075
10076 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10077
10078 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
10079 diagnostic info.
10080
10081 2010-09-05 Jo Shields <directhex@apebox.org>
10082
10083 * util/grub.d/30_os-prober.in: Add missing classes.
10084
10085 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10086
10087 * docs/grub.texi (Theme file format): Document new position format.
10088
10089 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10090
10091 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
10092 a table. Use @code instead of @verbatim.
10093
10094 2010-09-05 Colin D Bennett <colin@gibibit.com>
10095
10096 Gfxmenu documentation.
10097
10098 * docs/grub.texi (Theme file format): New chapter.
10099
10100 2010-09-05 Szymon Janc <szymon@janc.net.pl>
10101
10102 * grub-core/Makefile.core.def (xzio): New module.
10103 * grub-core/io/xzio.c: New file.
10104 * grub-core/lib/xzembed/xz.h: New file (from xembed).
10105 * grub-core/lib/xzembed/xz_config.h: Likewise.
10106 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
10107 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
10108 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
10109 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
10110 * grub-core/lib/xzembed/xz_private.h: Likewise.
10111 * grub-core/lib/xzembed/xz_stream.h: Likewise.
10112 * include/grub/file.h (grub_file_filter_id): New compression filter
10113 GRUB_FILE_FILTER_XZIO.
10114
10115 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10116
10117 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
10118 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
10119 size.
10120
10121 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10122
10123 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
10124 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
10125
10126 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10127
10128 Uncompressed checksum support.
10129
10130 * grub-core/commands/hashsum.c (options): Add option --uncompress.
10131 (check_list): New parameter uncompress.
10132 (grub_cmd_hashsum): Handle --uncompress.
10133
10134 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10135
10136 Reintroduce testload.
10137
10138 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
10139 from here ...
10140 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
10141 (GRUB_MOD_INIT): New function.
10142 (GRUB_MOD_FINI): Likewise.
10143 * grub-core/Makefile.core.def (testload): New module.
10144
10145 2010-09-05 Szymon Janc <szymon@janc.net.pl>
10146
10147 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
10148 (uint8_t): New type.
10149 (uint16_t): Likewise.
10150 (uint32_t): Likewise.
10151 (uint64_t): Likewise.
10152
10153 2010-09-05 Szymon Janc <szymon@janc.net.pl>
10154
10155 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
10156
10157 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
10158
10159 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
10160 Made static.
10161 (grub_gzfile_open): Removed. All users updated.
10162 (GRUB_MOD_INIT): New function.
10163 (GRUB_MOD_FINI): Likewise.
10164 * grub-core/kern/file.c (grub_file_filters_all): New variable.
10165 (grub_file_filters_enabled): Likewise.
10166 (grub_file_open): Handle filters.
10167 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
10168 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
10169 * include/grub/file.h (grub_file_filter_id_t): New type.
10170 (grub_file_filter_t): Likewise.
10171 (grub_file_filters_all): New extern variable.
10172 (grub_file_filters_enabled): Likewise.
10173 (grub_file_filter_register): New inline function.
10174 (grub_file_filter_unregister): Likewise.
10175 (grub_file_filter_disable): Likewise.
10176 (grub_file_filter_disable_compression): Likewise.
10177 * include/grub/gzio.h: Removed.
10178
10179 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10180
10181 Filename expansion support for wildcards in GRUB script.
10182
10183 * tests/grub_script_expansion.in: New test.
10184 * Makefile.util.def: Rule for new test.
10185
10186 * grub-core/commands/wildcard.c: New file, implements filename
10187 expansion support for GRUB script.
10188 * grub-core/Makefile.core.def: Rule update for regexp.mod.
10189 * grub-core/script/argv.c: Cosmetic changes.
10190 * grub-core/script/execute.c (grub_script_arglist_to_argv):
10191 Refactored to perform wildcard expansion on arguments.
10192 * include/grub/script_sh.h (grub_script_wildcard_translator): New
10193 struct.
10194
10195 * tests/util/grub-shell.in: Fix quoting for read input.
10196
10197 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10198
10199 Support for updating environment variables with matched substrings
10200 of regexp.
10201
10202 * tests/grub_cmd_regexp.in: New test.
10203 * Makefile.util.def: Rule for new test.
10204
10205 * grub-core/commands/regexp.c: New option -s to update environment
10206 variables with regexp matches.
10207
10208 2010-09-04 Szymon Janc <szymon@janc.net.pl>
10209
10210 * include/grub/file.h (grub_file): New member not_easly_seekable.
10211 (grub_file_seekable): New inline function.
10212 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
10213 easily seekable.
10214 (grub_gzio_open): Set not_easly_seekable.
10215 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
10216 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
10217
10218 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10219
10220 Support for options to appear multiple times on cmdline.
10221
10222 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
10223 * grub-core/commands/extcmd.c: Support for repeatable option.
10224 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
10225 repeatable option support.
10226
10227 Refactor menuentry into a regular command.
10228
10229 * grub-core/commands/menuentry.c: New file, menuentry command
10230 implementation.
10231 * grub-core/Makefile.core.def: Rule update for normal.mod.
10232 * grub-core/normal/main.c: Moved menuentry creation to
10233 grub-core/commands/menuentry.c.
10234 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
10235 (grub_menu_execute_entry_real): Removed.
10236 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
10237 function.
10238 (grub_script_execute_menuentry): Removed.
10239 * grub-core/script/parser.y (menuentry): Removed.
10240 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
10241 * grub-core/script/yylex.l (menuentry): Removed.
10242 * include/grub/menu.h (grub_menu_init): New prototype.
10243 (grub_menu_fini): New prototype.
10244 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
10245 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
10246 (grub_script_execute_sourcecode): New prototype.
10247
10248 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10249
10250 "return" command for GRUB script functions.
10251
10252 * tests/grub_script_return.in: New test.
10253 * Makefile.util.def: Rules for new test.
10254
10255 * grub-core/script/execute.c (grub_script_return): New function.
10256 * grub-core/script/main.c: Register/unregister return commaond.
10257 * include/grub/script_sh.h (grub_script_return): New prototype.
10258
10259 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10260
10261 "setparams" command to update positional parameters.
10262
10263 * tests/grub_script_setparams.in: New test.
10264 * Makefile.util.def: Rules for new test.
10265
10266 * grub-core/script/argv.c (grub_script_argv_make): New function.
10267 * grub-core/script/execute.c (replace_scope): New function.
10268 (grub_script_setparams): New function.
10269 * grub-core/script/lexer.c: Remove unused variables.
10270 * grub-core/script/main.c: Register/unregister setparams command.
10271 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
10272 (grub_script_setparams): New prototype.
10273
10274 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10275
10276 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
10277 grub_free order.
10278
10279 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10280
10281 Support for passing block of commands as an argument to extcmds.
10282
10283 * Makefile.util.def: Rules for new test.
10284 * tests/grub_script_blockarg.in: New test.
10285 * grub-core/tests/test_blockarg.c: New file, block argument
10286 command used in the test.
10287
10288 * include/grub/extcmd.h (grub_extcmd_context): New struct.
10289 (grub_register_extcmd_prio): New function prototype.
10290 (grub_extcmd_dispatcher): New function prototype.
10291 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
10292 type.
10293 * include/grub/script_sh.h (struct grub_script): New members
10294 `children', `next_siblings' and `refcnt' for block arguments and
10295 reference counting.
10296 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
10297 (grub_script_arg): New member `script' for block argument.
10298 (grub_script_argv): New member `script' for block argument.
10299 (grub_parser_param): New member `scripts' for block argument.
10300 (grub_script_mem_free): New extern function prototype.
10301 (grub_script_ref): New function prototype.
10302 (grub_script_unref): New function prototype.
10303
10304 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
10305 extcmd form to support block arguments.
10306 * grub-core/script/argv.c: Block arguments support.
10307 * grub-core/script/execute.c: Likewise.
10308 * grub-core/script/lexer.c: Likewise.
10309 * grub-core/script/main.c: Likewise.
10310 * grub-core/script/script.c: Likewise.
10311 * grub-core/script/parser.y: Likewise. New `block' and `block0'
10312 non-terminals.
10313
10314 * grub-core/commands/acpi.c: Update extcmd implementations with
10315 grub_extcmd_context_t.
10316 * grub-core/commands/cat.c: Likewise.
10317 * grub-core/commands/echo.c: Likewise.
10318 * grub-core/commands/extcmd.c: Likewise.
10319 * grub-core/commands/hashsum.c: Likewise.
10320 * grub-core/commands/hdparm.c: Likewise.
10321 * grub-core/commands/help.c: Likewise.
10322 * grub-core/commands/hexdump.c: Likewise.
10323 * grub-core/commands/i386/cpuid.c: Likewise.
10324 * grub-core/commands/i386/pc/drivemap.c: Likewise.
10325 * grub-core/commands/i386/pc/halt.c: Likewise.
10326 * grub-core/commands/i386/pc/sendkey.c: Likewise.
10327 * grub-core/commands/iorw.c: Likewise.
10328 * grub-core/commands/keystatus.c: Likewise.
10329 * grub-core/commands/loadenv.c: Likewise.
10330 * grub-core/commands/ls.c: Likewise.
10331 * grub-core/commands/lspci.c: Likewise.
10332 * grub-core/commands/memrw.c: Likewise.
10333 * grub-core/commands/probe.c: Likewise.
10334 * grub-core/commands/search_wrap.c: Likewise.
10335 * grub-core/commands/setpci.c: Likewise.
10336 * grub-core/commands/sleep.c: Likewise.
10337 * grub-core/disk/loopback.c: Likewise.
10338 * grub-core/hello/hello.c: Likewise.
10339 * grub-core/loader/i386/bsd.c: Likewise.
10340 * grub-core/loader/xnu.c: Likewise.
10341 * grub-core/term/gfxterm.c: Likewise.
10342 * grub-core/term/serial.c: Likewise.
10343 * grub-core/tests/lib/functional_test.c: Likewise.
10344
10345 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
10346
10347 Multi-line quoted strings support.
10348
10349 * grub-core/script/lexer.c (append_newline): Removed.
10350 (grub_script_lexer_yywrap): Refactored.
10351 (grub_script_lexer_init): Refactored.
10352 * grub-core/script/yylex.l (yywrap): New function.
10353 (grub_lexer_resplit): New function.
10354 (grub_lexer_unput): New function.
10355 * include/grub/script_sh.h (grub_lexer_param): New members, unput
10356 and resplit.
10357 * tests/grub_script_echo1.in: Added few more testcases.
10358
10359 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
10360
10361 * grub-core/kern/misc.c: Don't add abort alias in utils.
10362 Reported by: echoline.
10363
10364 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
10365
10366 Add missing files into "make dist" tarball for other platforms.
10367
10368 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
10369 * conf/Makefile.common (dist_noinst_DATA): New variable.
10370 * conf/Makefile.extra-dist: Added missing make dist files.
10371 * grub-core/Makefile.core.def: Likewise.
10372
10373 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10374
10375 Compress grub_prefix.
10376
10377 * grub-core/boot/i386/pc/lnxboot.S: Use
10378 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
10379 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
10380 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
10381 GRUB_MACHINE_PREFIX_END. All users updated.
10382 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
10383 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
10384 + 0x40.
10385 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10386 * util/grub-mkimage.c (image_target_desc): Change data_end to
10387 prefix_end. All users updated.
10388
10389 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
10390
10391 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
10392 value.
10393 (grub_openbsd_boot): Likewise.
10394 (grub_netbsd_boot): Likewise.
10395 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
10396 (grub_xnu_boot): Likewise.
10397
10398 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10399
10400 * configure.ac: Clean LIBS variable after tests.
10401
10402 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10403
10404 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
10405
10406 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10407
10408 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
10409 echo if libdevmapper will be used.
10410
10411 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
10412
10413 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
10414 constant for the same file.
10415
10416 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10417
10418 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
10419
10420 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10421
10422 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
10423 grub-core/*.pp.
10424
10425 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
10426
10427 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
10428 required by the boot protocol.
10429
10430 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
10431 ebp and edi members.
10432 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
10433 state.ebp and state.edi.
10434 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
10435 %ebp and %edi according to grub_relocator32_ebp and
10436 grub_relocator32_edi respectively.
10437 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
10438 and state.edi.
10439
10440 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10441
10442 Add i386-pc-pxe image target.
10443
10444 * util/grub-mkimage.c (image_target_desc): New enum value
10445 IMAGE_I386_PC_PXE.
10446 (image_targets): New target i386-pc-pxe.
10447 (generate_image): Handle i386-pc-pxe image.
10448
10449 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
10450
10451 Fix grub_pxe_scan.
10452
10453 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
10454 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
10455 All users updated.
10456 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
10457 (grub_pxe_pxenv): Correct type.
10458
10459 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10460
10461 * NEWS: Document most of the important changes since 1.98.
10462
10463 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10464
10465 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
10466 generated manual page) a little.
10467
10468 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
10469
10470 * docs/grub.texi: Add myself as an author.
10471
10472 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
10473
10474 * Makefile.util.def (libgrub.a): Add missing sunpc.
10475 Reported by: Seth Goldberg.
10476
10477 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10478
10479 Interrupt wrapping and code simplifications.
10480
10481 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
10482 x86_noieee1275 which are functionaly equivalent in this case.
10483 (grub-install): Make source on each platform explicit. Enable on
10484 all noemu.
10485 * gentpl.py (x86_efi_pc): Removed group.
10486 (x86_noefi): Likewise.
10487 (i386_noefi): Likewise.
10488 (x86_noieee1275): Likewise.
10489 (i386_noieee1275): Likewise.
10490 (i386_noefi_noieee1275): Likewise.
10491 (i386_pc_qemu_coreboot): Likewise.
10492 (i386_coreboot_multiboot): Likewise.
10493 (i386_pc_coreboot_multiboot_qemu): Likewise.
10494 (x86_noefi_mips): Likewise.
10495 (noieee1275): Likewise.
10496 (ieee1275_mips): Likewise.
10497 (noemu_noieee1275): Likewise.
10498 (cmos): New group.
10499 (usb): Likewise.
10500 (videoinkernel): Likewise.
10501 (videomodules): Likewise.
10502 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
10503 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
10504 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
10505 include/grub/loader.h, include/grub/msdos_partition.h,
10506 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
10507 include/grub/machine/console.h, include/grub/machine/vga.h,
10508 include/grub/machine/vbe.h, include/grub/machine/init.h,
10509 include/grub/machine/kernel.h, include/grub/cpu/time.h,
10510 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
10511 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
10512 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
10513 * grub-core/Makefile.core.def (kernel): Explicit the source for
10514 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
10515 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
10516 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
10517 Use videoinkernel tag.
10518 (usb): Enable on all usb.
10519 (usbserial_common): Likewise.
10520 (usbserial_pl2303): Likewise.
10521 (usbserial_ftdi): Likewise.
10522 (uhci): Enable on all x86.
10523 (ohci): Enable on all pci.
10524 (cmostest): Enable on all CMOS.
10525 (acpi): Include commands/acpi.c on all platforms.
10526 (halt): Add relevant lib/*/halt.c.
10527 (hdparm): Enable on all pci.
10528 (lspci): Likewise.
10529 (usbtest): Enable on all usb.
10530 (ata): Enable on all pci.
10531 (ata_pthru): Likewise.
10532 (usbms): Enable on all usb.
10533 (usb_keyboard): Likewise.
10534 (font): Use tag videomodules.
10535 (bufio): Likewise.
10536 (datetime): Use tag cmos. Enable on all noemu.
10537 (mmap): Use tags common and x86.
10538 (gfxterm): Use tag videomodules.
10539 (bitmap): Likewise.
10540 (bitmap_scale): Likewise.
10541 (video_fb): Likewise.
10542 (video): Likewise.
10543 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
10544 adjust padding accordingly. All users updated.
10545 (grub_ohci_transaction): Fix bad format specification.
10546 (GRUB_MOD_INIT): Add asserts for struct size.
10547 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
10548 (grub_alloc_td): Likewise.
10549 (grub_free_queue): Likewise.
10550 (grub_uhci_transfer): Likewise.
10551 (grub_uhci_transaction): Fix bad format specification.
10552 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
10553 (grub_usb_bulk_readwrite): Likewise.
10554 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
10555 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
10556 Made static.
10557 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
10558 Made static.
10559 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
10560 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
10561 Transformed into C.
10562 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
10563 Moved from here ...
10564 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
10565 ... here. Transformed into C. Made static.
10566 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
10567 Moved from here ...
10568 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
10569 ... here. Transformed into C. Made static.
10570 * grub-core/kern/i386/pc/startup.S
10571 (grub_biosdisk_check_int13_extensions): Moved from here ...
10572 * grub-core/disk/i386/pc/biosdisk.c
10573 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
10574 Made static.
10575 * grub-core/kern/i386/pc/startup.S
10576 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
10577 * grub-core/disk/i386/pc/biosdisk.c
10578 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
10579 Transformed into C. Made static.
10580 * grub-core/kern/i386/pc/startup.S
10581 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
10582 * grub-core/disk/i386/pc/biosdisk.c
10583 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
10584 Transformed into C. Made static.
10585 * grub-core/kern/i386/pc/startup.S
10586 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
10587 * grub-core/disk/i386/pc/biosdisk.c
10588 (grub_biosdisk_get_diskinfo_standard): ... here.
10589 Transformed into C. Made static.
10590 * grub-core/kern/i386/pc/startup.S
10591 (grub_biosdisk_get_num_floppies): Moved from here ...
10592 * grub-core/disk/i386/pc/biosdisk.c
10593 (grub_biosdisk_get_num_floppies): ... here.
10594 Transformed into C. Made static.
10595 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
10596 New function.
10597 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
10598 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
10599 Transformed into C. Made static.
10600 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
10601 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
10602 Transformed into C. Made static.
10603 * grub-core/kern/i386/ieee1275/init.c: Removed.
10604 * grub-core/kern/i386/misc.S: Likewise.
10605 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
10606 Splitted from here ...
10607 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
10608 Transformed into C. Made static. All users updated.
10609 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
10610 Transformed into C. Made static. All users updated.
10611 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
10612 Moved from here...
10613 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
10614 Transformed into C. Made static. All users updated.
10615 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
10616 Moved from here...
10617 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
10618 Transformed into C. Made static. All users updated.
10619 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
10620 Removed (replaced by C version).
10621 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
10622 Moved from here...
10623 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
10624 Transformed into C. Made static.
10625 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
10626 Moved from here...
10627 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
10628 ... here. Transformed into C.
10629 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
10630 Moved from here...
10631 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
10632 ... here. Transformed into C.
10633 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
10634 Moved from here...
10635 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
10636 ... here. Transformed into C. Made static.
10637 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
10638 Moved from here...
10639 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
10640 ... here. Transformed into C.
10641 * grub-core/kern/i386/pc/startup.S
10642 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
10643 * grub-core/video/i386/pc/vbe.c
10644 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
10645 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
10646 Moved from here...
10647 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
10648 ... here. Transformed into C.
10649 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
10650 Moved from here...
10651 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
10652 ... here. Transformed into C.
10653 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
10654 Moved from here...
10655 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
10656 ... here. Transformed into C.
10657 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
10658 Moved from here...
10659 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
10660 ... here. Transformed into C.
10661 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
10662 Moved from here...
10663 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
10664 ... here. Transformed into C. Made static.
10665 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
10666 Moved from here...
10667 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
10668 ... here. Transformed into C. Made static.
10669 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
10670 Moved from here...
10671 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
10672 ... here. Transformed into C. Made static.
10673 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
10674 pxe_rm_entry as third argument.
10675 (grub_bios_interrupt): New function.
10676 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
10677 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
10678 of calling grub_stop.
10679 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
10680 * grub-core/lib/efi/halt.c (grub_halt): ...here.
10681 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
10682 * grub-core/lib/emu/halt.c (grub_halt): ... here.
10683 * grub-core/lib/i386/halt.c: Moved from here ...
10684 * grub-core/lib/i386/halt.c: ... here.
10685 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
10686 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
10687 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
10688 grub_stop_floppy.
10689 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
10690 * include/grub/i386/coreboot/init.h: Removed.
10691 * include/grub/i386/multiboot/init.h: Likewise.
10692 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
10693 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
10694 * include/grub/i386/pc/int.h: New file.
10695 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
10696 (grub_pxe_scan): Removed.
10697 (grub_pxe_call): Update prototype.
10698 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
10699 prototypes.
10700 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
10701 * include/grub/i386/qemu/init.h: Removed.
10702 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
10703 noreturn.
10704 (grub_halt): Likewise.
10705 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
10706 (grub_reboot): Likewise.
10707 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
10708 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
10709 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
10710
10711 2010-08-30 Robert Millan <rmh@gnu.org>
10712
10713 * NEWS: Document addition of ZFS support in `grub-install' and
10714 `grub-mkconfig'.
10715
10716 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
10717
10718 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
10719 dprintf output.
10720
10721 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10722
10723 Remove leftover embedding of font objects.
10724
10725 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10726 * util/grub-install.in (font): Removed.
10727 * util/grub-mkimage.c (generate_image): Remove font support. All users
10728 updated.
10729
10730 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10731
10732 Remove leftover embedding of font objects.
10733
10734 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
10735 * util/grub-install.in (font): Removed.
10736 * util/grub-mkimage.c (generate_image): Remove font support. All users
10737 updated.
10738
10739 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10740
10741 * docs/grub.texi (Network): Fix reference to pxe_blksize.
10742 Reported by: Ian Turner
10743
10744 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10745
10746 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
10747 timeout to avoid indefinite boot stalling.
10748
10749 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10750
10751 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
10752 (grub_env_write_color_highlight): Likewise.
10753
10754 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10755
10756 * grub-core/normal/term.c (print_more): Return to normal and not
10757 to standard state after printing "---MORE---".
10758
10759 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
10760
10761 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
10762 Mask out the bit 0x80 since it has other meaning that specifiing color.
10763
10764 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
10765
10766 New relocator. Allows for more kernel support and more straightforward
10767 loader writing.
10768
10769 * Makefile.am (BOOTTARGET): New variable.
10770 (QEMU32): Likewise.
10771 (linux.init.x86_64): New target.
10772 (linux.init.i386): Likewise.
10773 (multiboot.elf): Likewise.
10774 (kfreebsd.elf): Likewise.
10775 (kfreebsd.aout): Likewise.
10776 (pc-chainloader.elf): Likewise.
10777 (pc-chainloader.bin): Likewise.
10778 (ntldr.elf): Likewise.
10779 (ntldr.bin): Likewise.
10780 (multiboot2.elf): Likewise.
10781 (kfreebsd.init.x86_64): Likewise.
10782 (kfreebsd.init.i386): Likewise.
10783 (knetbsd.init.i386): Likewise.
10784 (kopenbsd.init.i386): Likewise.
10785 (knetbsd.init.x86_64): Likewise.
10786 (kopenbsd.init.x86_64): Likewise.
10787 (linux-initramfs.i386): Likewise.
10788 (linux-initramfs.x86_64): Likewise.
10789 (kfreebsd-mfsroot.i386.img): Likewise.
10790 (knetbsd.image.i386): Likewise.
10791 (kopenbsd.image.i386): Likewise.
10792 (kopenbsd.image.x86_64): Likewise.
10793 (knetbsd.miniroot-image.i386.img): Likewise.
10794 (kfreebsd-mfsroot.x86_64.img): Likewise.
10795 (knetbsd.image.x86_64): Likewise.
10796 (knetbsd.miniroot-image.x86_64.img): Likewise.
10797 (kfreebsd-mfsroot.i386.gz): Likewise.
10798 (bootcheck-kfreebsd-i386): Likewise.
10799 (kfreebsd-mfsroot.x86_64.gz): Likewise.
10800 (bootcheck-kfreebsd-x86_64): Likewise.
10801 (knetbsd.miniroot-image.i386.gz): Likewise.
10802 (bootcheck-knetbsd-i386): Likewise.
10803 (bootcheck-kopenbsd-i386): Likewise.
10804 (bootcheck-kopenbsd-x86_64): Likewise.
10805 (knetbsd.miniroot-image.x86_64.gz): Likewise.
10806 (bootcheck-knetbsd-x86_64): Likewise.
10807 (bootcheck-linux-i386): Likewise.
10808 (bootcheck-linux-x86_64): Likewise.
10809 (bootcheck-linux16-i386): Likewise.
10810 (bootcheck-linux16-x86_64): Likewise.
10811 (bootcheck-multiboot): Likewise.
10812 (bootcheck-multiboot2): Likewise.
10813 (bootcheck-kfreebsd-aout): Likewise.
10814 (bootcheck-pc-chainloader): Likewise.
10815 (bootcheck-ntldr): Likewise.
10816 (CLEANFILES): Add new targets.
10817 (BOOTCHECKS): New variable.
10818 (.PHONY): Add bootchecks.
10819 (SUCCESSFUL_BOOT_STRING): New variable.
10820 (BOOTCHECK_TIMEOUT): Likewise.
10821 (bootcheck): New target
10822 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
10823 * configure.ac: Correct efiemu excuse.
10824 * docs/grub.texi (Supported kernels): New chapter.
10825 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
10826 include/grub/mm_private.h. Simplify inclusion of
10827 include/grub/boot.h, include/grub/loader.h
10828 and include/grub/msdos_partition.h
10829 (KERNEL_HEADER_FILES) [i386_coreboot]:
10830 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
10831 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
10832 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
10833 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
10834 include/grub/machine/loader.h.
10835 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
10836 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
10837 extra_dist.
10838 (pci.mod): Enable on i386-multiboot.
10839 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
10840 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
10841 i386-qemu.
10842 (relocator.mod): Rewritten.
10843 (aout.mod): Enable on all x86.
10844 (bsd.mod): Likewise.
10845 (ntldr.mod): New module.
10846 (linux.mod): Use loader/i386/linux.c on all x86.
10847 (xnu.mod): Enable on all x86.
10848 (vga_text.mod): disable on EFI and QEMU.
10849 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
10850 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
10851 * grub-core/efiemu/loadcore.c: Likewise.
10852 * grub-core/efiemu/main.c: Likewise.
10853 (grub_efiemu_exit_boot_services): Removed.
10854 (grub_efiemu_finish_boot_services): Likewise.
10855 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
10856 function.
10857 * grub-core/efiemu/i386/nocfgtables.c: New file.
10858 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
10859 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
10860 (grub_efi_finish_boot_services): Moved from here ...
10861 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
10862 Fille finish memory map and related data.
10863 (finish_mmap_buf): New variable.
10864 (grub_efi_uintn_t finish_mmap_size): Likewise.
10865 (grub_efi_uintn_t finish_key): Likewise.
10866 (grub_efi_uintn_t finish_desc_size): Likewise.
10867 (grub_efi_uint32_t finish_desc_version): Likewise.
10868 (grub_efi_is_finished): Likewise.
10869 (grub_efi_get_memory_map): Use saved memory map if EFI is already
10870 finished.
10871 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
10872 (grub_elf64_phdr_iterate): Likewise.
10873 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
10874 (grub_os_area_size): Likewise.
10875 (grub_machine_init): Don't reserve os area.
10876 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
10877 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10878 * grub-core/kern/i386/loader.S: Removed.
10879 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
10880 (grub_os_area_size): Likewise.
10881 (grub_machine_init): Don't reserve os area.
10882 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
10883 Don't call grub_dl_unload_all.
10884 Don't include loader.S.
10885 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
10886 Declare the memory after _end as available.
10887 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
10888 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
10889 (GRUB_MM_ALLOC_MAGIC): Moved from here...
10890 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
10891 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
10892 * include/grub/mm_private.h (grub_mm_header): ... here.
10893 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
10894 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
10895 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
10896 (grub_mm_region): ..here. Removed addr. Added pre_size.
10897 All users updated.
10898 * grub-core/kern/mm.c (base): Renamed to ...
10899 (grub_mm_base): ... this. Made global.
10900 (grub_real_malloc): Alloc from end of region.
10901 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
10902 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
10903 * grub-core/kern/powerpc/cache_flush.S: ... here.
10904 * grub-core/lib/efi/relocator.c: New file.
10905 * grub-core/lib/i386/relocator.c: Rewritten.
10906 * grub-core/lib/i386/relocator16.S: New file.
10907 * grub-core/lib/i386/relocator32.S: Likewise.
10908 * grub-core/lib/i386/relocator64.S: Likewise.
10909 * grub-core/lib/i386/relocator_asm.S: Rewritten.
10910 * grub-core/lib/i386/relocator_common.S: New file.
10911 * grub-core/lib/ieee1275/relocator.c: Likewise.
10912 * grub-core/lib/mips/relocator.c: Rewritten.
10913 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
10914 stylistic adjustments.
10915 * grub-core/lib/powerpc/relocator.c: New file.
10916 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
10917 * grub-core/lib/relocator.c: Rewritten.
10918 * grub-core/lib/x86_64/relocator_asm.S: New file.
10919 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
10920 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
10921 (bsd_tag): New struct.
10922 (tags): New variable.
10923 (tags_last): Likewise.
10924 (netbsd_module): New struct.
10925 (netbsd_mods): New variable.
10926 (netbsd_mods_last): Likewise.
10927 (openbsd_opts): New parameter "serial".
10928 (OPENBSD_SERIAL_ARG): New definition.
10929 (netbsd_opts): New parameter "serial".
10930 (NETBSD_SERIAL_ARG): New definition.
10931 (grub_freebsd_add_meta): Reorganised into ...
10932 (grub_bsd_add_meta): ...this. All users updated.
10933 (grub_freebsd_add_mmap): Reorganised into ...
10934 (generate_e820_mmap): ...this...
10935 (grub_bsd_add_mmap): ...and this. All users updated.
10936 (grub_freebsd_list_modules): Use tags.
10937 (grub_netbsd_add_meta_module): New function.
10938 (grub_netbsd_list_modules): Likewise.
10939 (grub_freebsd_boot): Use relocator and finish EFI.
10940 (grub_openbsd_boot): Likewise.
10941 (grub_netbsd_setup_video): New function.
10942 (grub_netbsd_add_modules): Likewise.
10943 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
10944 and finish EFI.
10945 (grub_bsd_unload): Unload tags.
10946 (grub_bsd_load_aout): Use relocator.
10947 (grub_bsd_elf32_size_hook): New function.
10948 (grub_bsd_elf32_hook): Use relocator.
10949 (grub_bsd_elf64_size_hook): New function.
10950 (grub_bsd_elf64_hook): Use relocator.
10951 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
10952 (grub_bsd_load): Zero-out openbsd_ramdisk.
10953 (grub_bsd_load): Use relocator.
10954 (grub_cmd_openbsd): Support serial.
10955 (grub_cmd_netbsd): Support modules.
10956 (grub_cmd_freebsd_module): Use relocator.
10957 (grub_netbsd_module_load): New function.
10958 (grub_cmd_netbsd_module): Likewise.
10959 (grub_cmd_openbsd_ramdisk): Likewise.
10960 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
10961 kopenbsd_ramdisk.
10962 (GRUB_MOD_FINI): Unregister new commands.
10963 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
10964 (grub_freebsd_load_elfmodule_obj): Use relocator.
10965 (grub_freebsd_load_elfmodule): Likewise.
10966 (grub_freebsd_load_elf_meta): Likewise.
10967 (grub_netbsd_load_elf_meta): New function.
10968 (grub_openbsd_find_ramdisk): Likewise.
10969 * grub-core/loader/i386/bsd_helper.S: Removed.
10970 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
10971 * grub-core/loader/i386/bsd_trampoline.S: Removed.
10972 * grub-core/loader/i386/efi/linux.c: Likewise.
10973 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
10974 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
10975 (DEFAULT_VIDEO_MODE): Likewise.
10976 (real_mode_target): New variable.
10977 (prot_mode_target): Likewise.
10978 (initrd_mem_target): Likewise.
10979 (relocator): Likewise.
10980 (efi_mmap_buf): Likewise.
10981 (efi_mmap_size): Likewise.
10982 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
10983 (free_pages): Use relocator.
10984 (allocate_pages): Account for efi_mmap and use relocator. Return error.
10985 (grub_linux_setup_video): Return error.
10986 (grub_linux_trampoline_start): Removed.
10987 (grub_linux_trampoline_end): Likewise.
10988 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
10989 andd video parameters depending on firmware.
10990 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
10991 [GRUB_MACHINE_EFI]: Pass EFI parameters.
10992 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
10993 (grub_cmd_initrd): Use relocator.
10994 * grub-core/loader/i386/linux_trampoline.S: Removed.
10995 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
10996 (elf_sec_entsize): Likewise.
10997 (elf_sec_shstrndx): Likewise.
10998 (elf_sections): Likewise.
10999 (grub_multiboot_load): Use relocator.
11000 (grub_multiboot_get_mbi_size): Account for sections.
11001 (grub_multiboot_make_mbi): Use relocator and support sections.
11002 (grub_multiboot_add_elfsyms): New function.
11003 (grub_multiboot_free_mbi): Free sections.
11004 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
11005 (grub_linux_real_target): Likewise.
11006 (grub_linux_real_chunk): Likewise.
11007 (grub_linux16_prot_size): Likewise.
11008 (grub_linux16_boot): Use relocator.
11009 (grub_linux_unload): Unload relocator.
11010 (grub_cmd_linux): Use relocator.
11011 (grub_cmd_initrd): Likewise.
11012 * grub-core/loader/i386/pc/ntldr.c: New file.
11013 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
11014 Don't try to guess CPU frequency.
11015 (grub_xnu_set_video): Stretch bitmap.
11016 (grub_xnu_boot): Use relocator.
11017 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
11018 (grub_linux_unload): Free relocator.
11019 (grub_linux_load32): Use relocator.
11020 (grub_linux_load64): Likewise.
11021 (grub_cmd_initrd): Likewise.
11022 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
11023 (grub_multiboot_unload): Unload relocator.
11024 (grub_cmd_multiboot): Use relocator.
11025 (grub_cmd_module): Likewise.
11026 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
11027 Use relocator and support sections.
11028 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
11029 (elf_sec_entsize): Likewise.
11030 (elf_sec_shstrndx): Likewise.
11031 (elf_sections): Likewise.
11032 (grub_multiboot_load): Use relocator.
11033 (grub_multiboot_get_mbi_size): Account for sections.
11034 (grub_multiboot_make_mbi): Use relocator and support sections.
11035 (grub_multiboot_add_elfsyms): New function.
11036 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
11037 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
11038 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
11039 Prototype changed. All users updated.
11040 (grub_xnu_align_heap): Simplified.
11041 (grub_xnu_writetree_toheap): Likewise.
11042 (grub_xnu_unload): Unload relocator.
11043 (grub_cmd_xnu_kernel): Use relocator.
11044 (grub_cmd_xnu_kernel64): Likewise.
11045 (grub_xnu_register_memory): Simplified.
11046 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
11047 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
11048 EFI is finished.
11049 (grub_console_checkkey): Likewise.
11050 (grub_console_getkey): Likewise.
11051 (grub_console_getwh): Likewise.
11052 (grub_console_getxy): Likewise.
11053 (grub_console_gotoxy): Likewise.
11054 (grub_console_cls): Likewise.
11055 (grub_console_setcolorstate): Likewise.
11056 (grub_console_setcursor): Likewise.
11057 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
11058 * grub-core/tests/boot/kbsd.init-i386.S: New file.
11059 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
11060 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
11061 * grub-core/tests/boot/kernel-8086.S: Likewise.
11062 * grub-core/tests/boot/kernel-i386.S: Likewise.
11063 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
11064 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
11065 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
11066 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
11067 * grub-core/tests/boot/knetbsd.cfg: Likewise.
11068 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
11069 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
11070 * grub-core/tests/boot/linux.cfg: Likewise.
11071 * grub-core/tests/boot/linux.init-i386.S: Likewise.
11072 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
11073 * grub-core/tests/boot/linux16.cfg: Likewise.
11074 * grub-core/tests/boot/multiboot.cfg: Likewise.
11075 * grub-core/tests/boot/multiboot2.cfg: Likewise.
11076 * grub-core/tests/boot/ntldr.cfg: Likewise.
11077 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
11078 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
11079 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
11080 New definition.
11081 * include/grub/dl.h (grub_dl_unload_all): Removed.
11082 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
11083 (grub_efi_finish_boot_services): Change prototype.
11084 (grub_efi_is_finished): New variable.
11085 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
11086 Changed prototype.
11087 (grub_efiemu_finish_boot_services): Removed.
11088 (grub_machine_efiemu_init_tables): New prototype.
11089 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
11090 (grub_elf64_phdr_iterate): Likewise.
11091 * include/grub/i386/bsd.h: Include relocator.h.
11092 (freebsd_tag_header): New struct.
11093 (grub_openbsd_bios_mmap): Removed.
11094 (grub_unix_real_boot): Removed.
11095 (grub_freebsd_load_elfmodule32): Changed prototype.
11096 (grub_freebsd_load_elfmodule_obj64): Likewise.
11097 (grub_freebsd_load_elf_meta32): Likewise.
11098 (grub_freebsd_load_elf_meta64): Likewise.
11099 (grub_freebsd_add_meta): Removed.
11100 (grub_netbsd_load_elf_meta32): New prototype.
11101 (grub_netbsd_load_elf_meta64): Likewise.
11102 (grub_bsd_add_meta): Likewise.
11103 (grub_openbsd_ramdisk_descriptor): New struct.
11104 (grub_openbsd_find_ramdisk32): New prototype.
11105 (grub_openbsd_find_ramdisk64): Likewise.
11106 * include/grub/i386/coreboot/loader.h: Removed.
11107 * include/grub/i386/efi/loader.h: Likewise.
11108 * include/grub/i386/ieee1275/loader.h: Likewise.
11109 * include/grub/i386/linux.h (linux_kernel_header): Change void *
11110 to grub_uint32_t.
11111 * include/grub/i386/loader.h: Removed.
11112 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
11113 value.
11114 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
11115 (grub_phys_addr_t): New type.
11116 (grub_vtop): New inline function.
11117 (grub_map_memory): Likewise.
11118 (grub_unmap_memory): Likewise.
11119 * include/grub/i386/multiboot/loader.h: Removed.
11120 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
11121 (NETBSD_BTINFO_CONSOLE): New definition.
11122 (NETBSD_BTINFO_SYMTAB): Likewise.
11123 (NETBSD_BTINFO_MODULES): Likewise.
11124 (NETBSD_BTINFO_FRAMEBUF): Likewise.
11125 (grub_netbsd_bootinfo): New struct.
11126 (grub_netbsd_btinfo_common): Use explicit bitsize.
11127 (grub_netbsd_btinfo_mmap_entry): Removed.
11128 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
11129 (grub_netbsd_btinfo_bootdisk): New struct.
11130 (grub_netbsd_btinfo_symtab): Likewise.
11131 (grub_netbsd_btinfo_serial): Likewise.
11132 (grub_netbsd_btinfo_modules): Likewise.
11133 (grub_netbsd_btinfo_framebuf): Likewise.
11134 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
11135 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
11136 Likewise.
11137 (grub_openbsd_bootargs): Use explicit bitsize.
11138 (grub_openbsd_bootarg_console): New struct.
11139 (GRUB_OPENBSD_COM_MAJOR): New definition.
11140 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
11141 * include/grub/i386/pc/efiemu.h: Removed.
11142 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
11143 * include/grub/i386/qemu/loader.h: Removed.
11144 * include/grub/i386/relocator.h: Rewritten.
11145 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
11146 * include/grub/mips/memory.h: New file.
11147 * include/grub/mips/multiboot.h: Rewritten.
11148 * include/grub/mips/relocator.h: Rewritten.
11149 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
11150 (grub_vtop): New function.
11151 (grub_map_memory): Likewise.
11152 (grub_unmap_memory): Likewise.
11153 * include/grub/misc.h (ALIGN_DOWN): New definition.
11154 * include/grub/mm.h (grub_mm_check_real): New proto.
11155 (GRUB_MM_CHECK): New definition.
11156 * include/grub/mm_private.h: New file.
11157 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
11158 (grub_multiboot_get_mbi_size): Removed.
11159 (grub_multiboot_make_mbi): Change prottype.
11160 (grub_multiboot_set_accepts_video): New proto.
11161 (grub_multiboot_add_elfsyms): Likewise.
11162 (grub_multiboot_payload_eip): New variable.
11163 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
11164 New prototype.
11165 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
11166 New definition.
11167 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
11168 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
11169 * include/grub/powerpc/ieee1275/loader.h: Removed.
11170 * include/grub/powerpc/memory.h: New file.
11171 * include/grub/powerpc/relocator.h: Likewise.
11172 * include/grub/relocator.h: Likewise.
11173 * include/grub/relocator_private.h: Likewise.
11174 * include/grub/sparc64/ieee1275/loader.h: Removed.
11175 * include/grub/x86_64/memory.h: New file.
11176 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
11177 (grub_xnu_heap_malloc): Likewise.
11178 (grub_xnu_heap_real_start): Removed.
11179 (grub_xnu_heap_start): Likewise.
11180 (grub_xnu_relocator): New variable.
11181 (grub_xnu_heap_target_start): Likewise.
11182 * tests/util/grub-shell.in: Support non-pc.
11183 * util/grub-mkimage.c (image_targets): Fix multiboot target.
11184
11185 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11186
11187 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
11188 on malloc error.
11189 (grub_bidi_logical_to_visual): Check that malloc succeded.
11190 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
11191 puts.
11192 (grub_xputs_normal): Likewise.
11193
11194 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11195
11196 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
11197 extra_dist.
11198
11199 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11200
11201 * grub-core/efiemu/runtime/efiemu.sh: Removed.
11202
11203 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11204
11205 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
11206
11207 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
11208
11209 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
11210 dprintf.
11211
11212 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
11213
11214 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
11215
11216 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11217
11218 * grub-core/normal/term.c (print_more): Fix a memory leak.
11219 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
11220 (grub_xputs_normal): Likewise.
11221
11222 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11223
11224 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
11225 the begining of the string
11226
11227 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11228
11229 * grub-core/script/script.c (grub_script_parse): Free parsed on
11230 failure.
11231
11232 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11233
11234 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
11235 on failure.
11236
11237 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11238
11239 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
11240 return.
11241
11242 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11243
11244 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
11245 (scroll_up): Fix a memory leak.
11246
11247 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
11248
11249 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
11250 errors.
11251
11252 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
11253
11254 Handle USB pendrives exposed as floppies.
11255
11256 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
11257 floppy.
11258 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
11259 Check for partitions on all devices.
11260
11261 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
11262
11263 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
11264 (readkey): Likewise.
11265
11266 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
11267
11268 Multiple variable names support to "export" command.
11269
11270 * normal/context.c (grub_cmd_export): "export" command supports
11271 multiple variable names.
11272
11273 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
11274
11275 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
11276 --target=drive output to Mach device name.
11277
11278 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
11279
11280 New Automake based build system for GRUB.
11281
11282 * ABOUT-NLS: New file.
11283 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
11284 in Makefile.util.def file.
11285 * Makefile.util.def: New file. Autogen build definitions file for
11286 GRUB host utils.
11287 * conf/Makefile.common: New file. Common variables for GRUB host
11288 utils and target modules.
11289 * conf/Makefile.extra-dist: New file. Extra files for make dist.
11290 * docs/Makefile.am: New file. Automake file for docs.
11291 * gentpl.py: New file. Python script to generate Autogen
11292 template.
11293 * grub-core/Makefile.am: New file. GRUB target modules' rules
11294 that doesn't fit in Makefile.core.def file.
11295 * grub-core/Makefile.core.def: New file. Autogen build
11296 definitions file for GRUB target modules.
11297 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
11298 specific setjmp.S file.
11299 * po/Makefile.am: New file.
11300
11301 * .bzrignore: New ignores.
11302 * INSTALL: New requirements, without Ruby.
11303 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
11304 * autogen.sh: Updated to invoke autogen as necessary.
11305 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
11306 and defines for Automake conditionals.
11307 * geninit.sh: Refactoring.
11308
11309 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
11310 necessary.
11311 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
11312 New prototype.
11313
11314 * include/grub/test.h: Fix functional test modules' naming.
11315 * grub-core/tests/example_functional_test.c: Fix test module name.
11316
11317 * util/misc.c: Hosted versions' of grub functions for libgrub.a
11318 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
11319 * util/grub-editenv.c: Likewise.
11320 * util/grub-fstest.c: Likewise.
11321 * util/grub-mkdevicemap.c: Likewise.
11322 * util/grub-mkfont.c: Likewise.
11323 * util/grub-mkimage.c: Likewise.
11324 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11325 * util/grub-probe.c: Likewise.
11326 * util/grub-script-check.c: Likewise.
11327 * util/i386/pc/grub-setup.c: Likewise.
11328 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11329
11330 * tests/util/grub-shell.in: Fix override directory path.
11331 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
11332 * util/import_gcry.py: Create Makefile.gcry.def file instead.
11333
11334 * util/lvm.c: Update #includes.
11335 * util/raid.c: Likewise.
11336 * util/resolve.c: Likewise.
11337 * grub-core/bus/emu/pci.c: Likewise.
11338 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
11339 * grub-core/lib/posix_wrap/string.h: Likewise.
11340 * grub-core/kern/emu/main.c: Likewise.
11341
11342 * grub-core/gensymlist.sh: New file. Script for generating kernel
11343 symbols file.
11344 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
11345
11346 * grub-core/gentrigtables.c: Fix unused variable warnings.
11347
11348 * Makefile.in: Removed.
11349 * conf/any-emu.rmk: Removed.
11350 * conf/common.rmk: Removed.
11351 * conf/i386-coreboot.rmk: Removed.
11352 * conf/i386-efi.rmk: Removed.
11353 * conf/i386-ieee1275.rmk: Removed.
11354 * conf/i386-multiboot.rmk: Removed.
11355 * conf/i386-pc.rmk: Removed.
11356 * conf/i386-qemu.rmk: Removed.
11357 * conf/i386.rmk: Removed.
11358 * conf/mips-yeeloong.rmk: Removed.
11359 * conf/mips.rmk: Removed.
11360 * conf/powerpc-ieee1275.rmk: Removed.
11361 * conf/sparc64-ieee1275.rmk: Removed.
11362 * conf/tests.rmk: Removed.
11363 * conf/x86-efi.rmk: Removed.
11364 * conf/x86_64-efi.rmk: Removed.
11365 * gendistlist.sh: Removed.
11366 * geninitheader.sh: Removed.
11367 * genkernsyms.sh.in: Removed.
11368 * genmk.rb: Removed.
11369 * gensymlist.sh.in: Removed.
11370 * mkinstalldirs: Removed.
11371 * boot: Moved ...
11372 * grub-core/boot: ... to here.
11373 * bus: Moved ...
11374 * grub-core/bus: ... to here.
11375 * commands: Moved ...
11376 * grub-core/commands: ... to here.
11377 * disk: Moved ...
11378 * grub-core/disk: ... to here.
11379 * efiemu: Moved ...
11380 * grub-core/efiemu: ... to here.
11381 * font: Moved ...
11382 * grub-core/font: ... to here.
11383 * fs: Moved ...
11384 * grub-core/fs: ... to here.
11385 * gencmdlist.sh: Moved ...
11386 * grub-core/gencmdlist.sh: ... to here.
11387 * genemuinit.sh: Moved ...
11388 * grub-core/genemuinit.sh: ... to here.
11389 * genemuinitheader.sh: Moved ...
11390 * grub-core/genemuinitheader.sh: ... to here.
11391 * genfslist.sh: Moved ...
11392 * grub-core/genfslist.sh: ... to here.
11393 * genhandlerlist.sh: Moved ...
11394 * grub-core/genhandlerlist.sh: ... to here.
11395 * genmoddep.awk: Moved ...
11396 * grub-core/genmoddep.awk: ... to here.
11397 * genmodsrc.sh: Moved ...
11398 * grub-core/genmodsrc.sh: ... to here.
11399 * genpartmaplist.sh: Moved ...
11400 * grub-core/genpartmaplist.sh: ... to here.
11401 * genparttoollist.sh: Moved ...
11402 * grub-core/genparttoollist.sh: ... to here.
11403 * genterminallist.sh: Moved ...
11404 * grub-core/genterminallist.sh: ... to here.
11405 * gentrigtables.c: Moved ...
11406 * grub-core/gentrigtables.c: ... to here.
11407 * genvideolist.sh: Moved ...
11408 * grub-core/genvideolist.sh: ... to here.
11409 * gettext: Moved ...
11410 * grub-core/gettext: ... to here.
11411 * gfxmenu: Moved ...
11412 * grub-core/gfxmenu: ... to here.
11413 * gnulib: Moved ...
11414 * grub-core/gnulib: ... to here.
11415 * hello: Moved ...
11416 * grub-core/hello: ... to here.
11417 * hook: Moved ...
11418 * grub-core/hook: ... to here.
11419 * io: Moved ...
11420 * grub-core/io: ... to here.
11421 * kern: Moved ...
11422 * grub-core/kern: ... to here.
11423 * lib: Moved ...
11424 * grub-core/lib: ... to here.
11425 * loader: Moved ...
11426 * grub-core/loader: ... to here.
11427 * mmap: Moved ...
11428 * grub-core/mmap: ... to here.
11429 * normal: Moved ...
11430 * grub-core/normal: ... to here.
11431 * partmap: Moved ...
11432 * grub-core/partmap: ... to here.
11433 * parttool: Moved ...
11434 * grub-core/parttool: ... to here.
11435 * script: Moved ...
11436 * grub-core/script: ... to here.
11437 * term: Moved ...
11438 * grub-core/term: ... to here
11439 * tests/example_functional_test.c: Moved ...
11440 * grub-core/tests/example_functional_test.c: ... to here.
11441 * tests/lib/functional_test.c: Moved ...
11442 * grub-core/tests/lib/functional_test.c: ... to here.
11443 * tests/lib/test.c: Moved ...
11444 * grub-core/tests/lib/test.c: ... to here.
11445 * video: Moved ...
11446 * grub-core/video: ... to here.
11447
11448 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
11449
11450 Replace --enable-grub-emu-modules with grub-emu-lite.
11451
11452 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
11453 cache.S.
11454
11455 * include/grub/emu/misc.h (grub_emu_init): New prototype.
11456 * kern/emu/full.c: New file. For grub-emu specific initialization.
11457 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
11458 * kern/emu/main.c: Call initialization function grub_emu_init.
11459
11460 * Makefile.in: Include grub-emu-lite in install.
11461 * commands/parttool.c: Use grub_no_autoload to differentiate
11462 between grub-emu and grub-emu-lite.
11463 * include/grub/misc.h: New variable grub_no_autoload.
11464
11465 * conf/any-emu.rmk: New rules for grub-emu-lite.
11466 * configure.ac: Remove --enable-grub-emu-modules.
11467 * genmk.rb: Cleanup unnecessary rules.
11468 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
11469
11470 * normal/main.c: Don't load list files on grub-emu-lite.
11471 * util/misc.c (grub_arch_sync_caches): Removed.
11472
11473 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
11474
11475 * kern/mips/startup.S (grub_prefix): Update comment to refer to
11476 grub-mkimage rather than grub-mkelfimage.
11477 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
11478
11479 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
11480
11481 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
11482 a key after CapsLock or NumLock. It's just a qemu bug.
11483
11484 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11485
11486 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
11487 needed by libusb wrapper.
11488
11489 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
11490
11491 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
11492
11493 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
11494
11495 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
11496 --nounzip is passed.
11497
11498 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
11499
11500 USB hotunplugging and USB serial support.
11501
11502 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
11503 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
11504 (grub_uhci_transfer): Respect timeout and set *actual.
11505 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
11506 non-standard length.
11507 (grub_usb_device_attach): Autoload modules.
11508 (GRUB_MOD_INIT): Set grub_term_poll_usb.
11509 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
11510 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
11511 users updated.
11512 (grub_usb_add_hub): Fill nports and children.
11513 (attach_root_port): Receive hub instead of controller.
11514 All users updated. Fill hub->devices.
11515 (grub_usb_root_hub): Allocate hub->devices.
11516 (detach_device): New function.
11517 (poll_nonroot_hub): Fill children and detach devices.
11518 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
11519 actual arguments. All users updated.
11520 (grub_usb_bulk_read_extended): New function.
11521 * bus/usb/serial/common.c: New file.
11522 * bus/usb/serial/ftdi.c: Likewise.
11523 * bus/usb/serial/pl2303.c: Likewise.
11524 * commands/terminal.c (handle_command): Support wildcard.
11525 * commands/usbtest.c: Output "Unknown" instead of empty string.
11526 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
11527 (usbserial_common_mod_SOURCES): New variable.
11528 (usbserial_common_mod_CFLAGS): Likewise.
11529 (usbserial_common_mod_LDFLAGS): Likewise.
11530 (pkglib_MODULES): Add usbserial_pl2303.mod.
11531 (usbserial_pl2303_mod_SOURCES): New variable.
11532 (usbserial_pl2303_mod_CFLAGS): Likewise.
11533 (usbserial_pl2303_mod_LDFLAGS): Likewise.
11534 (pkglib_MODULES): Add usbserial_ftdi.mod.
11535 (usbserial_ftdi_mod_SOURCES): New variable.
11536 (usbserial_ftdi_mod_CFLAGS): Likewise.
11537 (usbserial_ftdi_mod_LDFLAGS): Likewise.
11538 (pkglib_MODULES): Add serial.mod.
11539 (serial_mod_SOURCES): New variable.
11540 (serial_mod_CFLAGS): Likewise.
11541 (serial_mod_LDFLAGS): Likewise.
11542 * conf/i386-pc.rmk: Likewise.
11543 * conf/mips-yeeloong.rmk: Likewise.
11544 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
11545 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
11546 * disk/usbms.c (first_available_slot): New variable.
11547 (grub_usbms_attach): Don't reuse free slots due to potential cache
11548 problems.
11549 * include/grub/serial.h: Moved to ..
11550 * include/grub/ns8250.h: ...this.
11551 * include/grub/serial.h: New file.
11552 * include/grub/term.h (grub_term_poll_usb): New variable.
11553 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
11554 readkey. All users updated.
11555 (grub_terminfo_output_state): Pass term to put.
11556 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
11557 (grub_usb_controller_dev): Add timeout and actual arguments to
11558 transfer. All users updated.
11559 (grub_usb_interface): New field detach_data.
11560 (grub_usb_device): New fields children and nports.
11561 (grub_usb_ep_type_t): New type.
11562 (grub_usb_get_ep_type): New function.
11563 (grub_usb_bulk_read_extended): Likewise.
11564 * include/grub/usbdesc.h (grub_usb_desc): New type.
11565 * include/grub/usbserial.h: New file.
11566 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
11567 * kern/term.c (grub_term_poll_usb): New variable.
11568 (grub_getkey): Call grub_term_poll_usb if set.
11569 (grub_checkkey): Likewise.
11570 (grub_getkeystatus): Likewise.
11571 * term/serial.c: Moved controller-specific parts to ...
11572 * term/ns8250.c: ... here.
11573 * term/serial.c: Mostly rewritten.
11574 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
11575 according to spec.
11576
11577 2010-08-20 Robert Millan <rmh@gnu.org>
11578
11579 Make kFreeBSD code more generic to support ext2fs as root, ufs as
11580 a separate module and maybe other interesting combinations.
11581
11582 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
11583 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
11584 (kfreebsd_entry): Add generic filesystem module load routine.
11585 Map GRUB `ext2' to kFreeBSD `ext2fs'.
11586
11587 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11588
11589 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
11590 "numcenter" (I misunderstood the purpose of this entry).
11591 * docs/grub.texi (sendkey): Likewise.
11592
11593 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
11594
11595 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
11596 status flag options; simply omitting the option is equivalent and
11597 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
11598 (keysym_table): Rename "num5numlock" to "numlock".
11599 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
11600 can uniformly say that only the last of multiple `sendkey'
11601 invocations has any effect.
11602 * docs/grub.texi (sendkey): New section.
11603
11604 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
11605
11606 * commands/i386/pc/sendkey.c (options): Fix three typos.
11607
11608 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11609
11610 Implement sendkey support.
11611
11612 * commands/i386/pc/sendkey.c: New file.
11613 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
11614 (sendkey_mod_SOURCES): New variable.
11615 (sendkey_mod_CFLAGS): Likewise.
11616 (sendkey_mod_LDFLAGS): Likewise.
11617
11618 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11619
11620 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
11621 fix warnings from Autoconf.
11622
11623 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
11624
11625 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
11626 to avoid false positives with some assemblers that output things
11627 like "someprefix_func" as part of their output.
11628
11629 2010-08-15 Robert Millan <rmh@gnu.org>
11630
11631 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
11632 errors.
11633 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
11634 grub_get_libzfs_handle() errors.
11635
11636 2010-08-14 Robert Millan <rmh@gnu.org>
11637
11638 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
11639 filesystem is not ZFS.
11640
11641 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11642
11643 Fix for misspelled color names defaulting to black/black (bug
11644 reported by Doug Nazar)
11645
11646 * include/grub/normal.h (grub_parse_color_name_pair): Add return
11647 status to prototype.
11648 * normal/color.c (grub_parse_color_name_pair): Return failure
11649 status.
11650 (grub_env_write_color_normal): Ignore bad color names.
11651 (grub_env_write_color_highlight): Likewise.
11652 * normal/main.c (GRUB_MOD_INIT): Set default color names.
11653
11654 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11655
11656 "shift" command support to GRUB script.
11657
11658 * include/grub/script_sh.h (grub_script_shift): New prototype.
11659 * script/execute.c (grub_script_shift): New function.
11660 * script/main.c (grub_script_init): Register shift command.
11661 (grub_script_fini): Unregister shift command.
11662 * util/grub-script-check.c (grub_script_cmd_shift): New function.
11663
11664 * tests/grub_script_shift.in: New testcase.
11665 * conf/tests.rmk: Rules for new testcase.
11666
11667 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11668
11669 "continue" command support to GRUB script.
11670
11671 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
11672 (grub_script_break): Continue support.
11673 * script/main.c (grub_script_init): Register continue command.
11674 (grub_script_fini): Unregister continue command.
11675
11676 * tests/grub_script_continue.in: New testcase.
11677 * conf/tests.rmk: Rules for new testcase.
11678
11679 2010-08-12 BVK Chaitanya <bvk@dbook>
11680
11681 "break" command support to GRUB script.
11682
11683 * conf/common.rmk: Rule updates to grub-script-check.
11684 * include/grub/misc.h (grub_min): New function.
11685 * include/grub/script_sh.h (grub_script_init): New prototype.
11686 (grub_script_fini): New prototype.
11687 (grub_script_break): New prototype.
11688 * script/main.c (grub_script_init): New function.
11689 (grub_script_fini): New function.
11690 * script/execute.c (grub_script_break): New function.
11691 * normal/main.c: Calls to grub_script_{init,fini}.
11692 * util/grub-script-check.c (grub_script_break): New function.
11693
11694 * tests/grub_script_break.in: New testcase.
11695 * conf/tests.rmk: Rules for new test case.
11696
11697 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11698
11699 Function parameters support to GRUB script.
11700
11701 * script/yylex.l (VARIABLE): Regular expression update.
11702 * script/function.c (grub_script_function_call): Moved ...
11703 * script/execute.c (grub_script_function_call): ... to here.
11704 (grub_script_execute_arglist_to_argv): Removed.
11705 (grub_script_arglist_to_argv): New function.
11706 * script/argv.c: New file.
11707 (grub_script_argv_free): New function.
11708 (grub_script_argv_next): Likewise.
11709 (grub_script_argv_append): Likewise.
11710 (grub_script_argv_split_append): Likewise.
11711 * include/grub/script_sh.h (grub_script_argv): New struct.
11712 (grub_script_argv_free): New function.
11713 (grub_script_argv_next): Likewise.
11714 (grub_script_argv_append): Likewise.
11715 (grub_script_argv_split_append): Likewise.
11716
11717 * conf/common.rmk (normal.mod): New source script/argv.c.
11718
11719 * tests/grub_script_echo1.in: More tests.
11720 * tests/grub_script_vars1.in: Likewise.
11721 * tests/grub_script_functions.in: New test case.
11722 * conf/tests.rmk: Rules for new testcase.
11723
11724 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
11725
11726 Remove grub_script_cmdblock struct.
11727
11728 * include/grub/script_sh.h: Remove grub_script_cmdblock.
11729 * script/parser.y: Likewise.
11730 * script/execute.c: Rename cmdblock suffix to cmdlist.
11731 * script/script.c: Likewise.
11732 * util/grub-script-check.c: Likewise.
11733
11734 2010-08-11 Yves Blusseau <blusseau@zetam.org>
11735
11736 * .bzrignore: add grub-macho2img
11737
11738 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11739
11740 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
11741
11742 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
11743
11744 Remove the dump of sm712 initialisation sequence.
11745
11746 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
11747 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
11748 (GRUB_VGA_IO_MISC_WRITE): Likewise.
11749 (GRUB_VGA_CR_*): Added many registers.
11750 (GRUB_VGA_SR_*): Likewise.
11751 (GRUB_VGA_GR_*): Likewise.
11752 (grub_vga_write_arx): New function.
11753 (grub_video_hw_config): New struct.
11754 (grub_vga_set_geometry): New function.
11755 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
11756 GRUB_PCI_CLASS_SUBCLASS_VGA.
11757 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
11758 * video/sm712.c (grub_sm712_write_reg): New function
11759 (grub_sm712_read_reg): Likewise.
11760 (grub_sm712_sr_write): Likewise.
11761 (grub_sm712_gr_write): Likewise.
11762 (grub_sm712_cr_write): Likewise.
11763 (grub_sm712_write_arx): Likewise.
11764 (grub_sm712_cr_shadow_write): Likewise.
11765 (grub_sm712_write_dda_lookup): Likewise.
11766 (grub_video_sm712_setup): Initialise the video rather then
11767 blindly replay the dump.
11768 (main) [TEST]: Add a routine to be able to compile as standalone for
11769 tests.
11770 * video/sm712_init.c (sm712_init): Removed.
11771 (sm712_sr_seq1): New array.
11772 (sm712_sr_seq2): Likewise.
11773
11774 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11775
11776 * include/grub/vga.h: Add missing grub/pci.h include.
11777
11778 2010-08-10 Yves Blusseau <blusseau@zetam.org>
11779
11780 * util/grub-macho2img.c (main): fix typo
11781
11782 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
11783
11784 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
11785 (grub_vga_gr_read): Likewise.
11786 (grub_vga_cr_write): Likewise.
11787 (grub_vga_cr_read): Likewise.
11788 (grub_vga_sr_write): Likewise.
11789 (grub_vga_sr_read): Likewise.
11790 (grub_vga_palette_read): Likewise.
11791 (grub_vga_palette_write): Likewise.
11792 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
11793 (grub_sm712_sr_read): New function.
11794 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
11795 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
11796
11797 2010-08-09 Robert Millan <rmh@gnu.org>
11798
11799 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
11800 out unused variables on non-ZFS build.
11801
11802 2010-08-08 Robert Millan <rmh@gnu.org>
11803
11804 Fix path generation for sub-filesystems in ZFS.
11805
11806 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
11807 missing slash.
11808
11809 2010-08-08 Robert Millan <rmh@gnu.org>
11810
11811 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
11812
11813 2010-08-08 Robert Millan <rmh@gnu.org>
11814
11815 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
11816 exist, issue a proper error message (rely on `ls' for translated
11817 strings).
11818
11819 2010-08-08 Robert Millan <rmh@gnu.org>
11820
11821 Fix grub-probe invocation.
11822
11823 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
11824
11825 2010-08-04 Robert Millan <rmh@gnu.org>
11826
11827 * configure.ac: Remove checks for getfsstat() and getmntany().
11828 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
11829 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
11830 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
11831 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
11832 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
11833 function.
11834 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
11835 via find_mount_point_from_dir() and getfsstat() / getmntany().
11836
11837 2010-08-04 Robert Millan <rmh@gnu.org>
11838
11839 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11840 (grub_find_zpool_from_mount_point): Merge into ...
11841 (grub_find_zpool_from_dir): ... this.
11842 * kern/emu/misc.c: Likewise.
11843
11844 * kern/emu/misc.c
11845 (grub_make_system_path_relative_to_its_root): Replace
11846 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
11847 with grub_find_zpool_from_dir().
11848 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
11849
11850 2010-08-04 Robert Millan <rmh@gnu.org>
11851
11852 Support OpenSolaris in ZFS device resolution.
11853
11854 * configure.ac: Check for getmntany().
11855 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
11856 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
11857 support.
11858
11859 2010-08-03 Robert Millan <rmh@gnu.org>
11860
11861 Fix grub-emu build.
11862
11863 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
11864 * include/grub/emu/misc.h: ... here.
11865
11866 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
11867 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
11868
11869 * util/misc.c: Remove `<grub/util/libzfs.h>'.
11870 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
11871 (grub_get_libzfs_handle): Move to ...
11872 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
11873 (grub_get_libzfs_handle): ... here.
11874
11875 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
11876
11877 * script/execute.c (grub_script_execute_cmdline): Check for NULL
11878 as command name case.
11879
11880 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
11881
11882 * disk/raid.c (insert_array): Select unique numbers for named arrays
11883 as well, for use as keys in the disk cache.
11884
11885 2010-08-01 Robert Millan <rmh@gnu.org>
11886
11887 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
11888 kFreeBSD device name, except on ZFS where the filesystem label is
11889 used.
11890 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
11891 `/boot/zfs/zpool.cache'.
11892 Set mountfrom kernel variable using ${kfreebsd_device}.
11893
11894 2010-08-01 Robert Millan <rmh@gnu.org>
11895
11896 Make it even harder to use uninitialized `libzfs_handle' (and
11897 make the interface a bit simpler).
11898
11899 * include/grub/util/misc.h (grub_util_init_libzfs)
11900 (libzfs_handle): Remove.
11901 (grub_get_libzfs_handle): New prototype.
11902
11903 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
11904 attribute.
11905 (grub_util_init_libzfs): Remove.
11906 (grub_get_libzfs_handle): New function.
11907
11908 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
11909 grub_get_libzfs_handle() to obtain a libzfs handle instead of
11910 accessing `libzfs_handle' directly.
11911
11912 2010-08-01 Robert Millan <rmh@gnu.org>
11913
11914 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11915 (grub_find_zpool_from_mount_point): New function prototypes.
11916
11917 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11918 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11919
11920 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11921 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11922 `static' attribute.
11923
11924 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11925 finding zpool from mount point into ...
11926 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11927
11928 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11929 requested path is part of a ZFS pool, use
11930 grub_find_zpool_from_mount_point() to detect its filesystem name,
11931 and generate a path with `/fsname@path' syntax.
11932
11933 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11934
11935 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
11936 (void) rather than () so that this is a proper prototype.
11937
11938 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11939
11940 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
11941
11942 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11943
11944 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
11945 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
11946
11947 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11948
11949 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
11950
11951 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11952
11953 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
11954
11955 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11956
11957 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
11958 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
11959 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
11960 disable gfxpayload.
11961 (Shell-like scripting): Add real content.
11962 (Serial terminal): Suggest `terminal_input serial; terminal_output
11963 serial' rather than putting the two commands on separate lines,
11964 since console input will be inoperative after the first command.
11965 (menuentry): Document --class, --users, and --hotkey options.
11966 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
11967 Vladimir Serbinenko).
11968
11969 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
11970 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
11971
11972 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
11973
11974 2010-08-01 Robert Millan <rmh@gnu.org>
11975
11976 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
11977 (grub_find_zpool_from_mount_point): New function prototypes.
11978
11979 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
11980 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
11981
11982 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
11983 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
11984 `static' attribute.
11985
11986 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
11987 finding zpool from mount point into ...
11988 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
11989
11990 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
11991 requested path is part of a ZFS pool, use
11992 grub_find_zpool_from_mount_point() to detect its filesystem name,
11993 and generate a path with `/fsname@path' syntax.
11994
11995 2010-08-01 Robert Millan <rmh@gnu.org>
11996
11997 Prevent accidental use of uninitialized libzfs_handle.
11998
11999 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
12000 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
12001 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
12002
12003 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
12004
12005 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
12006 util/grub.d/10_linux.in). Fixes Debian bug #591093.
12007
12008 2010-08-01 Robert Millan <rmh@gnu.org>
12009
12010 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
12011
12012 2010-07-31 Robert Millan <rmh@gnu.org>
12013
12014 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
12015
12016 2010-07-31 Robert Millan <rmh@gnu.org>
12017
12018 * kern/emu/misc.c: Add missing license header.
12019
12020 2010-07-31 Robert Millan <rmh@gnu.org>
12021
12022 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
12023
12024 * include/grub/util/libnvpair.h: Include `<config.h>'.
12025 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
12026 declaring libnvpair prototypes ourselves.
12027 * include/grub/util/libzfs.h: Include `<config.h>'.
12028 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
12029 declaring libzfs prototypes ourselves.
12030
12031 (libzfs_handle): Moved to ...
12032 * include/grub/util/misc.h (libzfs_handle): ... here.
12033 Include `<grub/util/libzfs.h>'.
12034
12035 2010-07-30 Robert Millan <rmh@gnu.org>
12036
12037 * include/grub/emu/misc.h: Add missing license header.
12038
12039 2010-07-30 Robert Millan <rmh@gnu.org>
12040
12041 Enable `grub-probe -t device' resolution on ZFS.
12042
12043 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
12044 * include/grub/util/libnvpair.h: New file.
12045 * include/grub/util/libzfs.h: New file.
12046
12047 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
12048 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
12049 `<grub/util/libnvpair.h>'.
12050 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
12051
12052 (find_mount_point_from_dir): New static function.
12053 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
12054 function.
12055 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
12056 find_root_device_from_libzfs() before ressorting to find_root_device().
12057
12058 * include/grub/util/misc.h (grub_util_init_libzfs): New function
12059 prototype.
12060 * util/misc.c: Include `<grub/util/libzfs.h>'.
12061 (grub_util_init_libzfs): New function.
12062 [HAVE_LIBZFS] (libzfs_handle): New global variable.
12063 [HAVE_LIBZFS] (fini_libzfs): New static function.
12064 (grub_util_init_libzfs): New function.
12065 * util/grub-probe.c (main): Call grub_util_init_libzfs().
12066
12067 2010-07-30 Robert Millan <rmh@gnu.org>
12068
12069 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
12070 (xmalloc, xrealloc, xstrdup, xasprintf): Add
12071 `warn_unused_result' attribute.
12072 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
12073 (grub_xasprintf, grub_xvasprintf): Likewise.
12074 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
12075
12076 2010-07-29 Robert Millan <rmh@gnu.org>
12077
12078 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
12079 (probe): Handle `PRINT_FS_LABEL'.
12080 (main): Handle `-t fs_label'.
12081
12082 2010-07-29 Robert Millan <rmh@gnu.org>
12083
12084 * configure.ac: Remove grub-mkisofs checks.
12085
12086 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
12087
12088 * util/ieee1275/grub-install.in: Don't use empty grub_device.
12089 Reported by: Lennart Sorensen.
12090
12091 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12092
12093 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
12094 prior to terminal_input/terminal_output separation. It's been over 1.5
12095 years and those versions weren't widely deployed.
12096
12097 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
12098
12099 * disk/raid.c (insert_array): Don't count named arrays when looking
12100 for unused array numbers.
12101 Reported and tested by: Michael Guntsche.
12102
12103 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12104
12105 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
12106 implementation of this so that grub-emu links again, with a note
12107 that this should support hotplugging in the future.
12108
12109 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12110
12111 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
12112
12113 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12114
12115 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
12116 handle on failure.
12117 (grub_loopback_close): Remove empty function.
12118 (grub_loopback_dev): Remove close method.
12119
12120 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12121
12122 Disable EFI cursor when the EFI console becomes inactive.
12123
12124 * term/efi/console.c (grub_efi_console_init): New function.
12125 (grub_efi_console_fini): New function.
12126 (grub_console_term_output): Register init and fini methods.
12127
12128 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12129
12130 * tests/util/grub-shell-tester.in: Remove bashism and declare as
12131 sh script.
12132
12133 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12134
12135 * disk/loopback.c (grub_loopback): Replace filename with file.
12136 (delete_loopback): Handle new semantics.
12137 (grub_cmd_loopback): Likewise.
12138 (grub_loopback_iterate): Likewise.
12139 (grub_loopback_close): Likewise.
12140
12141 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12142
12143 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
12144 with -p "".
12145 Reported by: Tito Keitel.
12146
12147 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12148
12149 * docs/grub.texi (Naming convention): Document new naming convention.
12150
12151 2010-07-20 Vadim Solomin <vadic052@gmail.com>
12152 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12153
12154 Generate device.map in something closer to the old ordering.
12155
12156 * util/deviceiter.c (struct device): New declaration.
12157 (compare_file_names): Rename to ...
12158 (compare_devices): ... this. Sort by kernel name in preference to
12159 the stable by-id name, but keep the latter as a fallback comparison.
12160 Update header comment.
12161 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
12162 of `struct device' rather than of plain file names.
12163
12164 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
12165
12166 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
12167 on i386.
12168
12169 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
12170
12171 * commands/acpi.c (setup_common_tables): Use sizeof instead of
12172 hardcoding size.
12173 (setv1table): Likewise.
12174
12175 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12176
12177 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
12178 removing the homehost if present.
12179 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
12180 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
12181 removing the homehost if present.
12182 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
12183 if possible.
12184 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
12185
12186 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
12187 parameter. Set its pointer target to 0.
12188 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
12189 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
12190 `data_offset' value from the superblock for 1.x metadata.
12191 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
12192 data on the device.
12193 (insert_array): Record the start sector of data on the device.
12194 (grub_raid_register): Pass start_sector parameters to
12195 grub_raid_list->detect and insert_array.
12196 * include/grub/raid.h (struct grub_raid_array): Add start_sector
12197 member.
12198 (struct grub_raid): Add start_sector parameter to `detect'.
12199
12200 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
12201 __attribute__ ((packed)), leaving a comment.
12202 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
12203 (grub_mdraid_detect_09): ... here and ...
12204 (grub_mdraid_detect_1x): ... here.
12205
12206 2010-07-20 Peter Henn <peter.henn@web.de>
12207
12208 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
12209 chunk size and disk size, which are already given as sector counts
12210 as distinct from the 0.90 units. Fetch the correct device number
12211 from the role table instead of using the table index.
12212
12213 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
12214
12215 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
12216 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
12217 (WriteMostly1): New macro.
12218 Set array->name to NULL for metadata format 0.90. Add support for
12219 metadata 1.x. Fix some comments.
12220 * disk/raid.c (): Add support for name based RAID arrays. Fix a
12221 few comments.
12222 * util/getroot.c (grub_util_get_grub_dev): Add support for
12223 /dev/md/name style devices.
12224
12225 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
12226
12227 * .bzrignore: Ignore 20_linux_xen.
12228
12229 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
12230
12231 * util/import_unicode.py: Remove unnecessary imports.
12232
12233 2010-07-17 Aleš Nesrsta <starous@volny.cz>
12234
12235 Hotplugging and USB hub support.
12236
12237 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
12238 (grub_ohci): Likewise.
12239 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
12240 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
12241 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
12242 (GRUB_OHCI_CTRL_EDS): Likewise.
12243 (GRUB_OHCI_BULK_EDS): Likewise.
12244 (GRUB_OHCI_TDS): Likewise.
12245 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
12246 (grub_ohci_ed_phys2virt): New function.
12247 (grub_ohci_virt_to_phys): Likewise.
12248 (grub_ohci_td_phys2virt): Likewise.
12249 (grub_ohci_td_virt2phys): Likewise.
12250 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
12251 attachment.
12252 (grub_ohci_find_ed): New function.
12253 (grub_ohci_alloc_td): Likewise.
12254 (grub_ohci_free_td): Likewise.
12255 (grub_ohci_free_tds): Likewise.
12256 (grub_ohci_transfer): Use previously allocated memory.
12257 (grub_ohci_portstatus): Reset status changed bit.
12258 (grub_ohci_detect_dev): Supply status changed.
12259 (grub_ohci_fini_hw): Free memory.
12260 (grub_ohci_restore_hw): Reallocate memory.
12261 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
12262 Reset status change.
12263 (grub_uhci_detect_dev): Supply status_change.
12264 * bus/usb/usb.c (attach_hooks): New var.
12265 (grub_usb_device_attach): New function.
12266 (grub_usb_register_attach_hook_class): Likewise.
12267 (grub_usb_unregister_attach_hook_class): Likewise.
12268 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
12269 (grub_usb_add_hub): Reset connection changed bit.
12270 (attach_root_port): New function.
12271 (grub_usb_root_hub): Likewise.
12272 (poll_nonroot_hub): Likewise.
12273 (grub_usb_poll_devices): Likewise.
12274 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
12275 * disk/usbms.c (grub_usbms_open): Use device hooks.
12276 (grub_usbms_iterate) :Poll devices.
12277 (grub_usbms_finddevs): Split into ...
12278 (grub_usbms_attach): ... this ...
12279 (grub_usbms_attach): ... and this.
12280 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
12281 in detect_dev.
12282 (grub_usb_interface): New fields attached and detach_hook.
12283 (grub_usb_attach_hook_class): New type.
12284 (grub_usb_attach_desc): New struct.
12285 (grub_usb_register_attach_hook_class): New function.
12286 (grub_usb_unregister_attach_hook_class): Likewise.
12287 (grub_usb_poll_devices): Likewise.
12288 (grub_usb_device_attach): Likewise.
12289 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
12290 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
12291
12292 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
12293
12294 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
12295 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
12296 delta determination style. Works with most NetBSD partitions too.
12297
12298 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
12299
12300 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
12301 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
12302
12303 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
12304
12305 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
12306
12307 2010-07-14 Anton Blanchard <anton@samba.org>
12308
12309 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
12310 ET_DYN files.
12311
12312 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12313
12314 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
12315
12316 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
12317
12318 * kern/partition.c (grub_partition_check_containment): New function to
12319 check that a partition is physically contained in a parent. Since
12320 offsets are relative (and non-negative), this reduces to checking that
12321 the partition ends before its parent.
12322 (grub_partition_map_probe): Discard out-of-range sub-partitions.
12323 (grub_partition_iterate): Likewise.
12324 * include/grub/partition.h (grub_partition_map): Slightly more detailed
12325 comments.
12326 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
12327 partitions that start before their parent, and add debug printfs.
12328
12329 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
12330
12331 * Makefile.in (.SUFFIX): Spell correctly, as ...
12332 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
12333 bare module name without `.mod', e.g. `test') tried to invoke a
12334 Modula-2 compiler.
12335
12336 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
12337
12338 * README: Point to the Info manual.
12339
12340 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
12341
12342 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
12343 2nd superblock position from partition size.
12344
12345 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
12346
12347 * Makefile.in (MAINTAINER_CLEANFILES): Remove
12348 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
12349 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
12350 outputs.
12351
12352 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12353
12354 Restructure SCSI .id handling.
12355 Reported and tested by: Aleš Nesrsta.
12356
12357 * disk/ata.c (grub_atapi_close): Removed. All users updated.
12358 (grub_atapi_dev): Changed .name to "ata". New field .id.
12359 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
12360 (grub_usbms_dev): New field .id.
12361 * disk/scsi.c (grub_scsi_iterate): Generate name.
12362 (grub_scsi_open): Parse name.
12363 * include/grub/scsi.h (grub_make_scsi_id): New function.
12364 (grub_scsi_dev): Change iterate and open to number instead of naming
12365 busses. All users updated.
12366 (grub_scsi): Remove name. Add .bus.
12367
12368 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12369
12370 * commands/help.c (grub_cmd_help): Fix a typo.
12371
12372 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12373
12374 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
12375 Reported and tested by: Colin Watson.
12376
12377 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
12378
12379 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
12380 in this context.
12381
12382 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
12383
12384 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
12385
12386 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
12387
12388 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
12389 indentation.
12390
12391 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12392
12393 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
12394 and disk/raid6_recover.c.
12395 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
12396 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
12397
12398 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12399
12400 * term/gfxterm.c (repaint_schedulded): Rename to ...
12401 (repaint_scheduled): ... this. Update all callers.
12402 (repaint_was_schedulded): Rename to ...
12403 (repaint_was_scheduled): ... this. Update all callers.
12404
12405 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12406
12407 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
12408 which we expect to be handled by upper layers.
12409
12410 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
12411
12412 * bus/usb/usbhub.c: #include time.h header.
12413
12414 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12415
12416 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
12417 entry_name also for entries without stat blocks (e.g. ".."); fixes
12418 corruption of the first entry in a directory.
12419
12420 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
12421
12422 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
12423 after setting gfxterm as the active terminal. GRUB_BACKGROUND
12424 doesn't work otherwise.
12425
12426 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12427
12428 * docs/grub.texi (Features): Update list of supported file systems.
12429 (GNU/Linux): Update for GRUB 2.
12430 (Serial terminal): Remove mention of --disable-serial, which was a
12431 GRUB Legacy configure option. Update instructions to use
12432 `terminal_input' and `terminal_output' rather than `terminal'.
12433 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
12434 configuration' and `Installing GRUB using grub-install'.
12435 (Menu entry editor): Update for GRUB 2.
12436 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
12437 Document new -a, -u, and -v options.
12438 (initrd): New section.
12439 (initrd16): New section.
12440 (linux): New section.
12441 (linux16): New section.
12442 (search): The `var' argument to `--set' is optional.
12443 (GRUB only offers a rescue shell): Go into a little more detail on
12444 drive ordering.
12445
12446 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12447
12448 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
12449
12450 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12451
12452 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
12453 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
12454
12455 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
12456
12457 * util/i386/pc/grub-setup.c (setup): Rename prefix to
12458 install_prefix, in line with install_dos_part and install_bsd_part.
12459 Add new prefix variable, which is copied to install_prefix after
12460 comparing core.img in memory with the one read from disk in the
12461 no-embedding case, and use that rather than overwriting
12462 install_prefix immediately when installing to a partition.
12463 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
12464 Bicakci.
12465
12466 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12467
12468 * configure.ac: Avoid == in test command, it's not portable.
12469 * util/grub.d/30_os-prober.in: Likewise.
12470
12471 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
12472
12473 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
12474
12475 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
12476
12477 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
12478 multiple (top-level) partmaps.
12479
12480 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12481
12482 * util/i386/efi/grub-install.in: Don't use empty grub_device.
12483 Reported by: Tino Keitel.
12484
12485 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12486
12487 Bidi and diacritics support.
12488
12489 * Makefile.in (widthspec.bin): New target.
12490 (widthspec.h): Likewise.
12491 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
12492 * autogen.sh: Generate unidata.c.
12493 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
12494 * commands/ls.c (grub_ls_list_devices): Likewise.
12495 (grub_ls_list_files): Likewise.
12496 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
12497 (grub_mini_cmd_lsmod): Likewise.
12498 * commands/read.c: Likewise.
12499 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
12500 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
12501 * lib/arg.c (grub_arg_show_help): Likewise.
12502 * lib/crypto.c (grub_password_get): Likewise.
12503 * normal/auth.c (grub_username_get): Likewise.
12504 * normal/misc.c (grub_normal_print_device_info): Likewise.
12505 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
12506 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
12507 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
12508 (normal/charset.c_DEPENDENCIES): New variable.
12509 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
12510 (pkglib_MODULES): Remove charset.mod.
12511 (charset_mod_SOURCES): Removed.
12512 (charset_mod_CFLAGS): Likewise.
12513 (charset_mod_LDFLAGS): Likewise.
12514 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
12515 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
12516 and term/tparm.c.
12517 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12518 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
12519 (kernel_img_HEADERS): Add terminfo.h.
12520 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
12521 Fill ->font. Reverse ascii bitmaps.
12522 (grub_font_get_xheight): New function.
12523 * font/font.c (grub_font_get_string_width): Moved from here ...
12524 * gfxmenu/font.c (grub_font_get_string_width): ... here.
12525 * font/font.c (grub_font_draw_string): Moved from here ...
12526 * gfxmenu/font.c (grub_font_draw_string): ... here.
12527 * font/font.c (grub_font_dup_glyph): New function.
12528 (grub_font_blit_glyph): Likewise.
12529 (grub_font_blit_glyph_mirror): Likewise.
12530 (blit_comb): Likewise.
12531 (grub_font_construct_dry_run): Likewise.
12532 (grub_font_get_constructed_device_width): Likewise.
12533 (grub_font_construct_glyph): Likewise.
12534 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
12535 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
12536 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
12537 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
12538 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
12539 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
12540 (grub_font_get_xheight): New proto.
12541 (grub_font_get_constructed_device_width): Likewise.
12542 (grub_font_construct_glyph): Likewise.
12543 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
12544 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
12545 * include/grub/font.h (grub_font_draw_string): Moved from here ...
12546 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
12547 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
12548 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
12549 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
12550 (grub_console_getcharwidth): Likewise.
12551 * include/grub/misc.h (grub_xputs): New proto.
12552 (grub_puts): Inlined.
12553 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
12554 (grub_normal_get_line_counter): Removed.
12555 (grub_install_newline_hook): Likewise.
12556 (grub_normal_get_char_counter): New proto.
12557 (grub_normal_reset_more): Likewise.
12558 (grub_xputs_normal): Likewise.
12559 * include/grub/powerpc/ieee1275/console.h: Removed.
12560 * include/grub/sparc64/ieee1275/console.h: Likewise.
12561 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
12562 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
12563 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
12564 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
12565 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
12566 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
12567 (grub_term_input): Pass reference to self. All users updated.
12568 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
12569 Pass reference to self. New fields normal_color, highlight_color and
12570 data. All users updated.
12571 (grub_putchar): Removed.
12572 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
12573 (grub_unicode_estimate_width): New function.
12574 (grub_term_getcharwidth): Add defaults.
12575 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
12576 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
12577 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
12578 (grub_cls): Remove EXPORT_FUNC.
12579 (grub_setcolorstate): Inline.
12580 (grub_newline_hook): Removed.
12581 * include/grub/terminfo.h: Rewritten. All users updated.
12582 * include/grub/unicode.h: New file.
12583 * include/grub/video.h (grub_video_signed_rect): New type.
12584 * kern/emu/console.c (grub_console_highlight_color): Removed.
12585 (grub_console_normal_color): Likewise.
12586 (grub_console_standard_color): Made static.
12587 (grub_ncurses_putchar): Remove mapping.
12588 (grub_ncurses_getcharwidth): Removed.
12589 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12590 (grub_ncurses_setcolor): Removed.
12591 (grub_ncurses_getcolor): Likewise.
12592 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
12593 (grub_console_putchar): ... this.
12594 (grub_console_putchar): Handle argument difference.
12595 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
12596 console_init_early and console_init_lately.
12597 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
12598 * kern/misc.c (grub_puts): Removed.
12599 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
12600 (grub_vsnprintf_real): Remove str = NULL support.
12601 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
12602 * normal/charset.c (grub_utf8_to_ucs4): ... here.
12603 * kern/term.c (grub_putcode): Renamed to ...
12604 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
12605 (grub_putchar): Removed.
12606 (grub_xputs_dumb): New function.
12607 (grub_xputs): New variable.
12608 * lib/charset.c: Move from here ...
12609 * normal/charset.c: ... to here.
12610 (grub_ucs4_to_utf8): New function.
12611 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
12612 (join_types): New variable.
12613 (unpack_join): New function.
12614 (bidi_types): New variable.
12615 (unpack_bidi): New function.
12616 (get_bidi_type): Likewise.
12617 (get_join_type): Likewise.
12618 (is_mirrored): Likewise.
12619 (grub_unicode_get_comb_type): Likewise.
12620 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
12621 (is_type_after): Likewise.
12622 (grub_unicode_aglomerate_comb): Likewise.
12623 (bidi_line_wrap): Likewise.
12624 (grub_bidi_line_logical_to_visual): Likewise.
12625 (grub_bidi_logical_to_visual): Likewise.
12626 (grub_unicode_mirror_code): Likewise.
12627 (grub_unicode_shape_code): Likewise.
12628 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
12629 Don't use grub_putchar.
12630 * normal/main.c (grub_normal_init_page): Use grub_putcode.
12631 (grub_normal_reader_init): Likewise.
12632 (grub_xputs_saved): New variable.
12633 (GRUB_MOD_INIT): Set grub_xputs.
12634 (GRUB_MOD_FINI): Restore grub_xputs.
12635 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
12636 (menu_init): Avoid printing gfxmenu error.
12637 (show_menu): Use grub_normal_get_char_counter.
12638 * normal/menu_entry.c (update_screen): Fix out-of-array.
12639 (complete): Avoid NULL dereferencing.
12640 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
12641 * normal/menu_text.c (print_spaces): Removed.
12642 (grub_print_ucs4): Likewise.
12643 (grub_print_message_indented): Use grub_print_ucs4.
12644 (print_message): Use grub_putcode.
12645 (print_entry): Hanlde diacritics.
12646 * normal/term.c (term_state): New type.
12647 (grub_more_lines): Removed.
12648 (term_states): New variable.
12649 (grub_normal_line_counter): Renamed to ..
12650 (grub_normal_char_counter): ...this. All users updated.
12651 (grub_normal_get_line_counter): Renamed to ...
12652 (grub_normal_get_char_counter): ... this.
12653 (grub_normal_reset_more): New function.
12654 (process_newline): Removed.
12655 (print_more): New function.
12656 (grub_install_newline_hook): Removed.
12657 (map_code): New function.
12658 (grub_puts_terminal): Use grub_print_ucs4.
12659 (putglyph): New function.
12660 (putcode_real): Likewise.
12661 (grub_putcode): Use putcode_real.
12662 (get_maxwidth): New function.
12663 (get_startwidth): Likewise.
12664 (print_ucs4_terminal): Likewise.
12665 (find_term_state): Likewise.
12666 (put_glyphs_terminal): Likewise.
12667 (print_backlog): Likewise.
12668 (print_ucs4_real): Likewise.
12669 (grub_print_ucs4): Likewise.
12670 (grub_xputs_normal): Likewise.
12671 * term/efi/console.c (grub_console_putchar): Output diacritics.
12672 (grub_console_getcharwidth): Removed.
12673 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12674 * term/gfxterm.c (clear_char): Free chars.
12675 (scroll_up): Avoid leaking memory.
12676 (grub_gfxterm_putchar): Support diacritics.
12677 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
12678 * term/i386/pc/console.c (grub_console_term_output): Declare as
12679 GRUB_TERM_CODE_TYPE_VGA.
12680 * term/i386/pc/vga.c (grub_vga_term): Declare as
12681 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
12682 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
12683 GRUB_TERM_CODE_TYPE_VGA.
12684 * term/i386/vga_common.c (map_char): Removed.
12685 (grub_console_putchar): Likewise.
12686 (grub_console_getcharwidth): Likewise.
12687 * term/ieee1275/ofconsole.c: Simplify using terminfo.
12688 (colors): Reordered to match terminfo.
12689 (grub_ofconsole_normal_color): Removed.
12690 (grub_ofconsole_writeesc): Likewise.
12691 (grub_ofconsole_highlight_color): Likewise.
12692 (grub_ofconsole_getcharwidth): Likewise.
12693 (grub_ofconsole_setcolorstate): Likewise.
12694 (grub_ofconsole_setcolor): Likewise.
12695 (grub_ofconsole_getcolor): Likewise.
12696 (grub_ofconsole_readkey): Renamed to ...
12697 (readkey): ... this. Remove escape sequence handling. Return -1 on no
12698 key.
12699 (grub_ofconsole_checkkey): Removed.
12700 (grub_ofconsole_getkey): Likewise.
12701 (grub_ofconsole_getxy): Likewise.
12702 (grub_ofconsole_gotoxy): Likewise.
12703 (grub_ofconsole_cls): Likewise.
12704 (grub_ofconsole_refresh): Likewise.
12705 (grub_ofconsole_terminfo_input): New struct.
12706 (grub_ofconsole_terminfo_output): Likewise.
12707 (grub_ofconsole_term_input): Use terminfo.
12708 (grub_ofconsole_term_output): Likewise.
12709 (grub_console_init): Split into ...
12710 (grub_console_init_early): ...this and ...
12711 (grub_console_init_lately): ...this. Use terminfo.
12712 (grub_ofconsole_putchar): Renamed to ...
12713 (put): ... this. Remove mapping.
12714 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
12715 * term/serial.c: Simplify using terminfo.
12716 (xpos): Removed.
12717 (ypos): Likewise.
12718 (keep_track): Likewise.
12719 (registered): Likewise.
12720 (input_buf): Likewise.
12721 (npending): Likewise.
12722 (serial_translate_key_sequence): Likewise.
12723 (fill_input_buf): Likewise.
12724 (grub_serial_checkkey): Likewise.
12725 (grub_serial_getkey): Likewise.
12726 (grub_serial_getxy): Likewise.
12727 (grub_serial_gotoxy): Likewise.
12728 (grub_serial_putchar): Likewise.
12729 (grub_serial_cls): Likewise.
12730 (grub_serial_setcolorstate): Likewise.
12731 (grub_serial_setcursor): Likewise.
12732 (serial_hw_init): Use serial_hw_fetch.
12733 (grub_serial_terminfo_input): New variable.
12734 (grub_serial_terminfo_output): Likewise.
12735 (grub_serial_term_input): Use terminfo.
12736 (grub_serial_term_output): Likewise.
12737 * term/terminfo.c (putstr): Use put.
12738 (grub_terminfo_all_free): New function
12739 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
12740 (grub_terminfo_output_register): New function.
12741 (grub_terminfo_output_unregister): Likewise.
12742 (grub_terminfo_getxy): Likewise.
12743 (grub_terminfo_readkey): Likewise.
12744 (grub_terminfo_checkkey): Likewise.
12745 (grub_terminfo_getkey): Likewise.
12746 (grub_terminfo_input_init): Likewise.
12747 (print_terminfo): Likewise.
12748 (grub_cmd_terminfo): Handle encoding.
12749 (grub_terminfo_gotoxy): Track position.
12750 (grub_terminfo_cls): Likewise.
12751 (grub_terminfo_putchar): Likewise.
12752 (grub_terminfo_setcolorstate): Handle colors
12753 (grub_terminfo_cursor_on): This ...
12754 (grub_terminfo_cursor_off): ... and this merged into ...
12755 (grub_terminfo_setcursor): ... this.
12756 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
12757 * unicode/ArabicShaping.txt: New file (imported from Unicode).
12758 * unicode/BidiMirroring.txt: Likewise.
12759 * unicode/UnicodeData.txt: Likewise.
12760 * unicode/COPYING: Likewise.
12761 * util/grub-editenv.c (grub_putchar): Removed.
12762 (grub_xputs_real): New function.
12763 (grub_xputs): New variable.
12764 * util/grub-fstest.c (grub_putchar): Removed.
12765 (grub_xputs_real): New function.
12766 (grub_xputs): New variable.
12767 * util/grub-mkdevicemap.c (grub_putchar): Removed.
12768 (grub_xputs_real): New function.
12769 (grub_xputs): New variable.
12770 * util/grub-probe.c (grub_putchar): Removed.
12771 (grub_xputs_real): New function.
12772 (grub_xputs): New variable.
12773 * util/grub-script-check.c (grub_putchar): Removed.
12774 (grub_xputs_real): New function.
12775 (grub_xputs): New variable.
12776 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
12777 (grub_xputs_real): New function.
12778 (grub_xputs): New variable.
12779 * util/import_unicode.py: New file.
12780 * util/grub-mkfont.c (ft_errmsgs): New array.
12781 (grub_glyph_info): Make bitmap a pointer.
12782 (file_formats): New type WIDTH_SPEC.
12783 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
12784 (options): Add width-spec.
12785 (help): Likewise.
12786 (add_char): Renamed to ...
12787 (add_glyph): ... this.
12788 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
12789 (glyph_replace): New type.
12790 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
12791 (add_char): New function.
12792 (add_subst): Likewise.
12793 (process_cursive): Likewise.
12794 (add_font): Handle GSUB.
12795 (write_font_width_spec): New function.
12796 (main): Sort glyphs.
12797 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
12798 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
12799 * kern/term.c (grub_cls): Moved from here...
12800 * normal/term.c (grub_cls): ... here.
12801
12802 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12803
12804 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
12805 suitable for using within the format argument of printf when
12806 converting grub_size_t.
12807 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
12808 "x" to convert grub_size_t arguments.
12809
12810 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12811
12812 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
12813 too long captions.
12814 (list_get_minimal_size): Take selection box into account.
12815
12816 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12817
12818 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
12819 NULL font.
12820
12821 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12822
12823 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
12824 devices when iterating over /dev/disk/by-id; they will be handled
12825 later if appropriate, which they aren't always (e.g. LVM).
12826
12827 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12828
12829 * include/grub/misc.h (grub_reboot): Declare as noreturn.
12830 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
12831 fails.
12832 (grub_halt): Likewise.
12833 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
12834 reset-all fails.
12835 (grub_halt): Don't return, even if all of shut-down, power-off, and
12836 poweroff fail.
12837
12838 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12839
12840 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
12841 arguments, not three.
12842
12843 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12844
12845 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
12846 * util/grub.d/10_linux.in: Use it to check for LVM, so that
12847 LVM-on-RAID is handled correctly.
12848
12849 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12850
12851 * docs/grub.texi (Changes from GRUB Legacy): New section.
12852 (Future): Fix typo.
12853
12854 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
12855
12856 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
12857 grub.d/README accidentally ends up executable for one reason or
12858 another. Ignore it.
12859
12860 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12861
12862 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
12863 (gpt_partition_map_iterate): Support non-512B sectors.
12864
12865 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12866
12867 * kern/efi/init.c (grub_efi_init): Disable watchdog.
12868 Tested by: Seth Goldberg.
12869
12870 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
12871
12872 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
12873 Properly align mbi.
12874 Reported by: Seth Goldberg.
12875
12876 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12877
12878 * util/grub-mkrescue.in: Avoid module duplication.
12879
12880 2010-07-01 Sean Finney <seanius@seanius.net>
12881
12882 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
12883
12884 2010-07-01 Sean Finney <seanius@seanius.net>
12885
12886 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
12887
12888 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12889
12890 * disk/lvm.c (grub_lvm_checkvalue): New function.
12891 (grub_lvm_check_flag): Likewise.
12892
12893 2010-07-01 Robert Millan <rmh@gnu.org>
12894
12895 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
12896 Support 'p' as partition separator on kernel of FreeBSD (used
12897 with GPT labels).
12898 (grub_util_biosdisk_get_grub_dev): Likewise.
12899
12900 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
12901
12902 Yeeloong firmware port.
12903
12904 * boot/mips/yeeloong/fwstart.S: New file.
12905 * bus/cs5536.c (gpiodump): New const.
12906 (set_io_space): New function.
12907 (set_iod): Likewise.
12908 (set_p2d): Likewise.
12909 (grub_cs5536_init_geode): Likewise.
12910 * commands/mips/yeeloong/lsspd.c: New file.
12911 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
12912 (serial_mod_SOURCES): New variable.
12913 (serial_mod_CFLAGS): Likewise.
12914 (serial_mod_LDFLAGS): Likewise.
12915 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
12916 term/terminfo.c and term/tparm.c.
12917 (pkglib_IMAGES): Add fwstart.img.
12918 (fwstart_img_SOURCES): New variable.
12919 (fwstart_img_CFLAGS): Likewise.
12920 (fwstart_img_ASFLAGS): Likewise.
12921 (fwstart_img_LDFLAGS): Likewise.
12922 (fwstart_img_FORMAT): Likewise.
12923 (pkglib_MODULES): Add lsspd.mod.
12924 (lsspd_mod_SOURCES): New variable.
12925 (lsspd_mod_CFLAGS): Likewise.
12926 (lsspd_mod_LDFLAGS): Likewise.
12927 (pkglib_MODULES): Add halt.mod.
12928 (halt_mod_SOURCES): New variable.
12929 (halt_mod_CFLAGS): Likewise.
12930 (halt_mod_LDFLAGS): Likewise.
12931 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
12932 (serial_mod_SOURCES): Removed.
12933 (serial_mod_CFLAGS): Likewise.
12934 (serial_mod_LDFLAGS): Likewise.
12935 * disk/ata.c (check_device): New function.
12936 (grub_ata_device_initialize): Use check_device.
12937 (grub_ata_iterate): Recheck devices.
12938 (grub_ata_open): Likewise.
12939 (grub_atapi_iterate): Likewise.
12940 (grub_atapi_open): Likewise.
12941 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
12942 (GRUB_ATA_CH1_PORT1): Likewise.
12943 (GRUB_ATA_CH0_PORT2): Likewise.
12944 (GRUB_ATA_CH1_PORT2): Likewise.
12945 * include/grub/mips/loongson.h: New file.
12946 * include/grub/mips/yeeloong/ec.h: Likewise.
12947 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
12948 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
12949 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
12950 * include/grub/misc.h (grub_halt): Declare as noreturn.
12951 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
12952 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
12953 (UART_ENABLE_FIFO_TRIGGER1): New definition.
12954 (UART_ENABLE_DTRRTS): Likewise.
12955 (UART_ENABLE_MODEM): Removed.
12956 (UART_ENABLE_OUT2): New const.
12957 * include/grub/term.h (grub_term_register_input_active): New function.
12958 (grub_term_register_output_active): Likewise.
12959 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
12960 argument.
12961 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
12962 (init_pci): New function.
12963 (grub_machine_init): Execute platform init when firmware. Init serial.
12964 (grub_halt): Implement.
12965 (grub_exit): Likewise.
12966 (grub_reboot): Likewise.
12967 * term/serial.c (serial_hw_init): Update macros.
12968 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
12969 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
12970 (image_targets): New target mipsel-yeeloong-flash.
12971 (generate_image): Support IMAGE_YEELOONG_FLASH.
12972 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
12973 (grub_video_sm712_setup): Init card.
12974 (grub_video_sm712_set_palette): Removed.
12975 * video/sm712_init.c: New file.
12976
12977 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
12978
12979 * Makefile.in (install-local): Temporarily prepend $(builddir) to
12980 PATH when running help2man and then run it on the unadorned
12981 executable names, rather than passing $(builddir)/* paths to
12982 help2man. This avoids the build directory ending up in generated
12983 manual pages.
12984
12985 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
12986
12987 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
12988 to avoid accidents when debugging with 'sh -x'.
12989 * util/grub-mkrescue.in: Likewise.
12990 * util/grub.d/00_header.in: Likewise.
12991 * util/grub.d/10_hurd.in: Likewise.
12992 * util/grub.d/10_kfreebsd.in: Likewise.
12993 * util/grub.d/10_linux.in: Likewise.
12994 * util/grub.d/10_netbsd.in: Likewise.
12995 * util/grub.d/10_windows.in: Likewise.
12996 * util/grub.d/20_linux_xen.in: Likewise.
12997 * util/grub.d/30_os-prober.in: Likewise.
12998 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
12999
13000 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
13001
13002 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
13003 last character in the buffer.
13004 Reported by: Vladimir Serbinenko.
13005
13006 2010-06-29 Robert Millan <rmh@gnu.org>
13007
13008 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
13009 (Command-line and menu entry commands): Document `badram' command.
13010
13011 2010-06-28 Robert Millan <rmh@gnu.org>
13012
13013 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
13014 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
13015 command using ${GRUB_BADRAM} as parameter.
13016
13017 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13018
13019 * docs/grub.texi (Device map): New section.
13020 (Themes): New section (stub).
13021 * Makefile.in (docs/grub.info): The info documentation now builds
13022 without errors. Make sure it stays that way.
13023
13024 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
13025
13026 Use normal parser for menu entries.
13027 Reported by: Thomas Frauendorfer
13028
13029 * include/grub/parser.h (grub_parser_execute): Don't export.
13030 * normal/menu.c (grub_menu_execute_entry_real): New function.
13031 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
13032
13033 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13034
13035 * docs/grub.texi (Embedded configuration): New section (replacing
13036 old "Preset Menu" stub).
13037 (Images): New section.
13038 (configfile): Note that any menu entries defined in `file' are shown
13039 immediately.
13040
13041 2010-06-28 Josh Triplett <josh@joshtriplett.org>
13042
13043 * mmap/i386/pc/mmap_helper.S: Set CF on return.
13044
13045 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13046
13047 * util/grub-install.in: Add --debug-image= option.
13048
13049 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13050
13051 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
13052 possible on Linux.
13053
13054 * util/deviceiter.c (check_device): Rename to ...
13055 (check_device_readable_unique): ... this. Update all callers.
13056 Maintain and check a list of which devices (by canonicalized name)
13057 have already been seen.
13058 (clear_seen_devices): New function.
13059 (compare_file_names) [__linux__]: New function.
13060 (grub_util_iterate_devices): Clear the list of seen devices on exit
13061 and (just in case) on entry.
13062 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
13063 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
13064 seen-devices list, superseded by general code in check_device.
13065
13066 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
13067
13068 * commands/cat.c (options): New variable.
13069 (grub_cmd_cat): Parse options. If the --dos option is given, print
13070 DOS-style "\r\n" line endings as simple newlines (Debian bug
13071 #586358).
13072 (GRUB_MOD_INIT): Use extcmd.
13073 (GRUB_MOD_FINI): Likewise.
13074 * docs/grub.texi (cat): Document --dos.
13075
13076 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
13077
13078 XEN with Linux grub-mkconfig support.
13079
13080 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
13081 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
13082 GRUB_CMDLINE_XEN_DEFAULT.
13083 * util/grub.d/20_linux_xen.in: New file.
13084
13085 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
13086
13087 Initialise VGA video on qemu ourselves.
13088
13089 * boot/i386/qemu/boot.S: Don't call 0xc000.
13090 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
13091 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
13092 (kernel_img_HEADERS): Add pci.h.
13093 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
13094 * configure.ac: Force unifont on qemu and yeeloong.
13095 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
13096 (grub_vga_palette_write): Use correct register.
13097 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
13098 Call grub_qemu_init_cirrus.
13099 * kern/i386/qemu/init.c: New file.
13100 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
13101
13102 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
13103
13104 2010-06-26 Pavel Roskin <proski@gnu.org>
13105
13106 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
13107 13.
13108
13109 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
13110
13111 * docs/grub.texi (Simple configuration): Explain that
13112 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
13113 set to `true' to disable their respective recovery entries, not
13114 merely set.
13115
13116 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
13117
13118 Make the `source' command slightly faster.
13119
13120 * normal/main.c (grub_normal_execute): Don't re-read list files when
13121 nested.
13122
13123 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
13124
13125 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
13126 field position and mask size to red fields from mode_info, not
13127 green.
13128 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
13129 Remove redundant tag->common.framebuffer_type assignment.
13130 Reported by: Seth Goldberg.
13131
13132 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
13133
13134 Sync up other versions of the Linux loader with Robert Millan's
13135 change of 2010-01-09, "Make loader output a bit more user-friendly".
13136
13137 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
13138 grub_dprintf().
13139 (grub_cmd_linux): Likewise.
13140 (grub_cmd_initrd): Likewise.
13141 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
13142 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
13143
13144 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
13145
13146 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
13147 larger than MEMORY_MAP_SIZE.
13148
13149 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
13150
13151 Fix parallel build.
13152
13153 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
13154 dependency.
13155 * script/parser.y: #include grub_script.tab.h header.
13156
13157 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13158
13159 Support >3GiB and <16MiB RAM in i386-qemu.
13160
13161 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
13162 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
13163 (grub_lower_mem): Removed.
13164 (grub_upper_mem): Likewise.
13165 (mem_size): Made static.
13166 (above_4g): New variable.
13167 (grub_machine_mmap_init): Detect small mem_size and above_4g.
13168 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
13169 support.
13170
13171 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13172
13173 Cirrus 5446 and Bochs video cards support.
13174
13175 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
13176 video_bochs.mod
13177 (video_cirrus_mod_SOURCES): New variable.
13178 (video_cirrus_mod_CFLAGS): Likewise.
13179 (video_cirrus_mod_LDFLAGS): Likewise.
13180 (video_bochs_mod_SOURCES): Likewise.
13181 (video_bochs_mod_CFLAGS): Likewise.
13182 (video_bochs_mod_LDFLAGS): Likewise.
13183 * include/grub/vga.h: New file.
13184 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
13185 (grub_video_fb_set_page_t): New type.
13186 (grub_video_fb_setup): New prototype.
13187 (grub_video_fb_swap_buffers): Likewise.
13188 (grub_video_fb_get_info_and_fini): Likewise.
13189 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
13190 (CRTC_DATA_PORT): Likewise.
13191 (CRTC_CURSOR): Likewise.
13192 (CRTC_CURSOR_ADDR_HIGH): Likewise.
13193 (CRTC_CURSOR_ADDR_LOW): Likewise.
13194 (CRTC_CURSOR_DISABLE): Likewise.
13195 (update_cursor): Use grub_vga_cr_write.
13196 (grub_vga_text_setcursor): Likewise.
13197 * video/bochs.c: New file.
13198 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
13199 (palette): Likewise.
13200 (palette_size): Likewise.
13201 (framebuffer): New variable.
13202 (grub_video_fb_init): Use 'framebuffer'.
13203 (grub_video_fb_fini): Likewise.
13204 (grub_video_fb_get_info): Likewise.
13205 (grub_video_fb_get_palette): Likewise.
13206 (grub_video_fb_set_palette): Likewise.
13207 (grub_video_fb_set_viewport): Likewise.
13208 (grub_video_fb_get_viewport): Likewise.
13209 (grub_video_fb_map_color): Likewise.
13210 (grub_video_fb_map_rgb): Likewise.
13211 (grub_video_fb_map_rgba): Likewise.
13212 (grub_video_fb_unmap_color): Likewise.
13213 (grub_video_fb_unmap_color_int): Likewise.
13214 (grub_video_fb_fill_rect): Likewise.
13215 (grub_video_fb_blit_bitmap): Likewise.
13216 (grub_video_fb_blit_render_target): Likewise.
13217 (grub_video_fb_scroll): Likewise.
13218 (grub_video_fb_create_render_target): Likewise.
13219 (grub_video_fb_doublebuf_blit_init): Likewise.
13220 (grub_video_fb_set_active_render_target): Handle doublebuffering.
13221 (doublebuf_pageflipping_update_screen): New function.
13222 (doublebuf_pageflipping_init): Likewise.
13223 (grub_video_fb_setup): Likewise.
13224 (grub_video_fb_swap_buffers): Likewise.
13225 (grub_video_fb_get_info_and_fini): Likewise.
13226 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
13227 All users updated.
13228 (doublebuf_pageflipping_commit): Restructured into ...
13229 (doublebuf_pageflipping_set_page): ... this.
13230 (doublebuf_pageflipping_update_screen): Removed.
13231 (doublebuf_pageflipping_init): Likewise.
13232 (double_buffering_init): Likewise.
13233 (grub_video_vbe_setup): Use grub_video_fb_setup.
13234 (grub_video_vbe_swap_buffers): Removed.
13235 (grub_video_vbe_set_active_render_target): Likewise.
13236 (grub_video_vbe_get_active_render_target): Likewise.
13237 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
13238 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
13239 grub_video_fb_set_active_render_target and
13240 grub_video_fb_get_active_render_target.
13241 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
13242 (SEQUENCER_DATA_PORT): Likewise.
13243 (MAP_MASK_REGISTER): Likewise.
13244 (CRTC_ADDR_PORT): Likewise.
13245 (CRTC_DATA_PORT): Likewise.
13246 (START_ADDR_HIGH_REGISTER): Likewise.
13247 (START_ADDR_LOW_REGISTER): Likewise.
13248 (GRAPHICS_ADDR_PORT): Likewise.
13249 (GRAPHICS_DATA_PORT): Likewise.
13250 (READ_MAP_REGISTER): Likewise.
13251 (INPUT_STATUS1_REGISTER): Likewise.
13252 (INPUT_STATUS1_VERTR_BIT): Likewise.
13253 (get_map_mask): Use grub_vga_sr_read.
13254 (set_map_mask): Use grub_vga_sr_write.
13255 (set_read_map): Use grub_vga_gr_write.
13256 (set_start_address): Use grub_vga_cr_write.
13257 * video/sm712.c (framebuffer): Remove leftover fields.
13258
13259 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
13260
13261 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
13262 setting GRUB_VIDEO_BACKEND. Make it available as a user override
13263 instead. Replace the gfxterm backend check with a check that
13264 ${GRUB_PREFIX}/video.lst is non-empty.
13265 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
13266 again.
13267 (load_video): New generated function. Call it before loading
13268 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
13269 * util/grub.d/10_linux.in (linux_entry): Call load_video.
13270 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
13271 * docs/grub.texi (Simple configuration): Document
13272 GRUB_VIDEO_BACKEND.
13273
13274 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
13275
13276 Use video functions in linux and xnu loaders.
13277
13278 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
13279 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
13280 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
13281 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
13282 loader/i386/pc/linux.c.
13283 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
13284 (find_line_len): Removed.
13285 (find_framebuf): Likewise.
13286 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
13287 * loader/i386/efi/xnu.c: Removed.
13288 * loader/i386/pc/xnu.c: Moved from here...
13289 * loader/i386/xnu.c: ...here.
13290
13291 Enable priorities in video drivers.
13292
13293 * include/grub/video.h (grub_video_adapter_prio_t): New type.
13294 (grub_video_adapter): New field prio.
13295 (grub_video_register): Respect prio when inserting.
13296 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
13297 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
13298 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
13299 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
13300 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
13301 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
13302 * video/sm712.c (grub_video_sm712_adapter): Likewise.
13303
13304 Fix SDL driver ID.
13305
13306 * include/grub/video.h (grub_video_driver_id_t): New value
13307 GRUB_VIDEO_DRIVER_SDL.
13308 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
13309
13310 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13311
13312 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
13313 argument to printf.
13314 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13315
13316 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13317
13318 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
13319 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13320
13321 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13322
13323 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
13324 directly, and recommend grub-install instead.
13325 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
13326
13327 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
13328
13329 Fix i386-pc prefix handling with nested partitions (Debian bug
13330 #585068). Note that the case where the core image is booted using
13331 multiboot and relocated from its original location still requires
13332 more work.
13333
13334 * kern/i386/pc/init.c (make_install_device): If the prefix starts
13335 with "(,", fill the boot drive in between those two characters, but
13336 expect that a full partition specification including partition map
13337 names will follow.
13338 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
13339 specified, write a prefix without the drive name but including a
13340 full partition specification.
13341
13342 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
13343
13344 * util/grub-mkconfig.in: Ignore non-option arguments, for
13345 compatibility with older versions (before 2010-06-12) which did the
13346 same. In particular, this makes it easier to ship an update-grub
13347 wrapper which is compatible with that used with GRUB Legacy (Debian
13348 bug #586056).
13349
13350 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13351
13352 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
13353 for manual page generation.
13354
13355 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
13356
13357 * po/POTFILES: Remove leftover commands/handler.c.
13358
13359 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13360
13361 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
13362 left this script non-functional.
13363
13364 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
13365
13366 * docs/man/grub-emu.h2m: New file.
13367
13368 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
13369
13370 * docs/grub.texi (Commands): Document reduced command set in rescue
13371 mode.
13372 (cpuid): New section.
13373
13374 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
13375
13376 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
13377 new partition naming style.
13378 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
13379
13380 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
13381
13382 Add "-o grub.iso" like cmdline options support.
13383
13384 * util/grub-install.in: Improve cmdline option parsing.
13385 * util/grub-mkconfig.in: Likewise.
13386 * util/grub-mkrescue.in: Likewise.
13387 * util/grub-reboot.in: Likewise.
13388 * util/grub-set-default.in: Likewise.
13389 * util/i386/efi/grub-install.in: Likewise.
13390 * util/ieee1275/grub-install.in: Likewise.
13391 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13392
13393 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13394
13395 * .bzrignore: Ignore 41_custom.
13396
13397 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13398
13399 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
13400
13401 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13402
13403 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
13404 prototype declarations.
13405
13406 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
13407 generating fs, partmap, and video lists.
13408 * include/grub/fs.h (grub_fs_register): Omit prototype if
13409 GRUB_LST_GENERATOR is defined.
13410 * include/grub/partition.h (grub_partition_map_register): Likewise.
13411 * include/grub/video.h (grub_video_register): Likewise.
13412
13413 2010-06-12 Javier Martín <lordhabbit@gmail.com>
13414
13415 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
13416
13417 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
13418
13419 * util/grub-mkrescue.in: Support --xorriso argument.
13420
13421 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13422
13423 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
13424 Suggested by: Thomas Schmitt.
13425
13426 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13427
13428 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
13429 Suggested by: Thomas Schmitt.
13430
13431 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
13432
13433 custom.cfg support.
13434
13435 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
13436 * util/grub.d/41_custom.in: New file.
13437
13438 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
13439
13440 * util/grub-mkrescue.in (make_image): Remove sh module, which has
13441 been merged back into normal.
13442
13443 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13444
13445 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
13446 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
13447
13448 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
13449
13450 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
13451 when generating manual pages.
13452 * docs/man/grub-bin2h.h2m: New file.
13453 * docs/man/grub-editenv.h2m: New file.
13454 * docs/man/grub-fstest.h2m: New file.
13455 * docs/man/grub-install.h2m: New file.
13456 * docs/man/grub-macho2img.h2m: New file.
13457 * docs/man/grub-mkconfig.h2m: New file.
13458 * docs/man/grub-mkdevicemap.h2m: New file.
13459 * docs/man/grub-mkfont.h2m: New file.
13460 * docs/man/grub-mkimage.h2m: New file.
13461 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
13462 * docs/man/grub-mkrelpath.h2m: New file.
13463 * docs/man/grub-mkrescue.h2m: New file.
13464 * docs/man/grub-ofpathname.h2m: New file.
13465 * docs/man/grub-pe2elf.h2m: New file.
13466 * docs/man/grub-probe.h2m: New file.
13467 * docs/man/grub-reboot.h2m: New file.
13468 * docs/man/grub-script-check.h2m: New file.
13469 * docs/man/grub-set-default.h2m: New file.
13470 * docs/man/grub-setup.h2m: New file.
13471
13472 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
13473
13474 Use FOR_* macros instead of *_iterate whenever possible.
13475
13476 * commands/handler.c: Removed.
13477 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
13478 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
13479 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13480 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
13481 (grub_probe_SOURCES): Remove kern/parser.c.
13482 (util/grub-script-check.c_DEPENDENCIES): Removed.
13483 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
13484 and grub_script_check_init.c.
13485 (grub_script_check_init.lst): Removed.
13486 (grub_script_check_init.h): Likewise.
13487 (grub_script_check_init.c): Likewise.
13488 (pkglib_MODULES): Remove handler.mod and sh.mod.
13489 (handler_mod_SOURCES): Removed.
13490 (handler_mod_CFLAGS): Likewise.
13491 (handler_mod_LDFLAGS): Likewise.
13492 (normal_mod_SOURCES): Remove normal/handler.c.
13493 Add script/main.c, script/script.c, script/execute.c,
13494 script/function.c, script/lexer.c, grub_script.tab.c
13495 and grub_script.yy.c.
13496 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13497 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13498 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
13499 (grub_setup_SOURCES): Remove kern/parser.c.
13500 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13501 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
13502 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
13503 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13504 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
13505 (grub_setup_SOURCES): Remove kern/parser.c.
13506 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
13507 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
13508 * include/grub/command.h (grub_command_iterate): Removed.
13509 (FOR_COMMANDS): New macro.
13510 * include/grub/dl.h (grub_dl): New member next.
13511 (grub_dl_iterate): Removed.
13512 (grub_dl_head): New variable declaration.
13513 (FOR_DL_MODULES): New macro.
13514 * include/grub/fs.h: Include list.h.
13515 (grub_fs): Make next first element.
13516 (grub_fs_list): New variable declaration.
13517 (grub_fs_register): Make inline.
13518 (grub_fs_unregister): Likewise.
13519 (grub_fs_iterate): Removed.
13520 (FOR_FILESYSTEMS): New macro.
13521 * include/grub/handler.h: Removed.
13522 * include/grub/list.h (grub_list_hook_t): Removed.
13523 (grub_list_test_t): Likewise.
13524 (grub_list_pop): Likewise.
13525 (grub_list_iterate): Likewise.
13526 (grub_list_insert): Likewise.
13527 (FOR_LIST_ELEMENTS): New macro.
13528 * include/grub/parser.h (grub_parser_class): Removed.
13529 (grub_parser_register): Likewise.
13530 (grub_parser_unregister): Likewise.
13531 (grub_parser_get_current): Likewise.
13532 (grub_parser_set_current): Likewise.
13533 (grub_register_rescue_parser): Likewise.
13534 (grub_rescue_parse_line): New function.
13535 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
13536 * include/grub/script_sh.h (grub_script_function_list): New variable
13537 declaration.
13538 (FOR_SCRIPT_FUNCTIONS): New macro.
13539 (grub_script_function_iterate): Removed.
13540 (grub_normal_parse_line): New prototype.
13541 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
13542 (FOR_DISABLED_TERM_INPUTS): Likewise.
13543 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
13544 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
13545 * include/grub/video.h (grub_video_adapter): Move 'next' to first
13546 element.
13547 (grub_video_register): Inline.
13548 (grub_video_unregister): Likewise.
13549 (grub_video_adapter_list): New variable declaration.
13550 (grub_video_iterate): Removed.
13551 (FOR_VIDEO_ADAPTERS): New macro.
13552 * kern/dl.c (grub_dl_list): Removed. All users updated.
13553 (grub_dl_iterate): Removed.
13554 * kern/fs.c (grub_fs_list): Make global.
13555 (grub_fs_register): Removed.
13556 (grub_fs_unregister): Likewise.
13557 (grub_fs_iterate): Likewise.
13558 * kern/handler.c: Removed.
13559 * kern/list.c (grub_list_pop): Removed.
13560 (grub_list_iterate): Likewise.
13561 (grub_list_insert): Likewise.
13562 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
13563 (grub_prio_list_insert): Don't use grub_list_insert.
13564 * kern/main.c (grub_register_rescue_parser): Don't call
13565 grub_register_rescue_parser.
13566 * kern/parser.c (grub_parser_class): Removed.
13567 (grub_parser_execute): Use grub_rescue_parse_line.
13568 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
13569 (grub_rescue_parser): Removed.
13570 (grub_register_rescue_parser): Likewise.
13571 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
13572 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
13573 (grub_auth_check_authentication): Likewise.
13574 * normal/completion.c (iterate_command): Removed.
13575 (grub_normal_do_completion): Use FOR_COMMANDS.
13576 * normal/handler.c: Removed.
13577 * normal/main.c (read_config_file): Remove parser changing.
13578 (grub_normal_execute): Don't call read_handler_list.
13579 (grub_normal_read_line_real): Statically allocate prompt.
13580 (grub_cmdline_run): Use grub_normal_parse_line.
13581 (GRUB_MOD_FINI): Don't call free_handler_list.
13582 * normal/menu_entry.c (run): Likewise.
13583 * script/function.c (grub_script_function_list): Make global.
13584 (grub_script_function_iterate): Removed.
13585 * script/main.c (grub_normal_parse_line): Make global.
13586 (grub_sh_parser): Removed.
13587 (GRUB_MOD_INIT): Likewise.
13588 (GRUB_MOD_FINI): Likewise.
13589 * tests/lib/functional_test.c (grub_functional_test): Use
13590 FOR_LIST_ELEMENTS.
13591 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
13592 (grub_test_run): Use FOR_LIST_ELEMENTS.
13593 * tests/lib/unit_test.c (main): Likewise.
13594 * util/deviceiter.c (grub_util_iterate_devices): Don't use
13595 grub_list_pop.
13596 * util/grub-fstest.c (grub_term_input_class): Removed.
13597 (grub_term_output_class): Likewise.
13598 * util/grub-probe.c: Likewise.
13599 * util/i386/pc/grub-setup.c: Likewise.
13600 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13601 * util/grub-script-check.c (main): Don't call grub_init_all and
13602 grub_fini_all.
13603 * video/video.c (grub_video_adapter_list): Make global.
13604 (grub_video_register): Removed.
13605 (grub_video_unregister): Likewise.
13606 (grub_video_iterate): Likewise.
13607
13608 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
13609
13610 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
13611 reported by Henrique Ferreiro.
13612
13613 2010-06-09 Robert Millan <rmh@gnu.org>
13614
13615 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
13616 ones, when both are available.
13617
13618 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13619
13620 Make --version uniform and avoid hard-coded program name.
13621
13622 * util/grub-mkimage.c (main): Use `program_name' instead of
13623 hard-coded string.
13624 * util/i386/pc/grub-setup.c (main): Likewise.
13625 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
13626 * util/grub-install.in: Save the basename of $0 in $self, and use the
13627 latter in informational messages. Use the same format for --version
13628 as the binary programs.
13629 * util/grub-mkconfig.in: Likewise.
13630 * util/grub-mkrescue.in: Likewise.
13631 * util/grub-reboot.in: Likewise.
13632 * util/grub-set-default.in: Likewise.
13633 * util/i386/efi/grub-install.in: Likewise.
13634 * util/ieee1275/grub-install.in: Likewise.
13635 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
13636
13637 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13638
13639 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
13640 embedding area. Use <= instead of == when checking for non-emptiness.
13641
13642 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
13643
13644 * configure.ac: Add `.' to the directories searched for unifont.
13645
13646 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13647
13648 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
13649 grub_script.yy.h.
13650
13651 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13652
13653 * docs/grub.texi (History): Expand to cover GRUB 2.
13654 (Serial terminal): Refer to `terminal_input' and `terminal_output'
13655 commands, not `terminal'.
13656 (serial): Likewise.
13657 (terminal_input): New section.
13658 (terminal_output): New section.
13659 (uppermem): New section (stub).
13660 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
13661
13662 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
13663
13664 * docs/grub.texi (Security): Menu entries are unrestricted by
13665 default, not restricted to superusers as I had previously thought.
13666 Reword to account for this.
13667
13668 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13669
13670 * kern/emu/misc.c (device_mapper_null_log): New function.
13671 (grub_device_mapper_supported): New function.
13672 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
13673 prototype.
13674 * kern/emu/hostdisk.c (find_partition_start): Check whether
13675 device-mapper is supported before trying to use it.
13676 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
13677
13678 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13679
13680 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
13681 (File name syntax): Likewise.
13682 (help): --all is no longer supported in GRUB 2. Be more precise
13683 about pattern matching.
13684
13685 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13686
13687 * normal/completion.c (grub_normal_do_completion): When completing
13688 arguments to "set" and the current word contains an equals sign,
13689 skip to after the equals sign before starting completion.
13690
13691 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13692
13693 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
13694
13695 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13696
13697 * docs/grub.texi (Network): New section.
13698 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
13699 `(nd)' as in GRUB Legacy.
13700 (pxe_unload): New section.
13701
13702 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13703
13704 * docs/grub.texi (Troubleshooting): `echo' is not usually available
13705 in the rescue shell, so recommend using `set' instead. Thanks,
13706 Jordan Uggla.
13707
13708 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13709
13710 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
13711 (password): New section.
13712 (password_pbkdf2): New section.
13713 (search): New section.
13714 (Security): New section.
13715 (Troubleshooting): New section, currently very incomplete.
13716 (Invoking grub-mkpasswd-pbkdf2): New section.
13717 (Internals): New section, currently very incomplete.
13718
13719 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13720
13721 * util/grub.d/00_header.in: Add some more quoting (of
13722 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
13723 work again.
13724 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
13725
13726 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
13727
13728 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
13729 to `count', fixing variable shadowing that broke the -c option.
13730
13731 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
13732
13733 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
13734 in case they contain spaces.
13735
13736 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13737
13738 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
13739 "part_" to partmap module names, in line with grub-install.
13740 Reported by: Jindřich Makovička (Debian bug #584426).
13741
13742 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
13743
13744 * util/grub-mkimage.c: Make target-related error messages slightly
13745 more helpful; -O talks about "format". Explicitly point to the use
13746 of -O if no target is specified.
13747 Reported by: Didier Raboud (Debian bug #584415).
13748
13749 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
13750
13751 * INSTALL: Document several build requirements for optional features
13752 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
13753
13754 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
13755
13756 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
13757 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
13758 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
13759
13760 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13761
13762 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
13763 Thanks to Jordan Uggla for spotting this.
13764
13765 2010-06-02 Aleš Nesrsta <starous@volny.cz>
13766
13767 Finally make USB usable.
13768
13769 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
13770 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
13771 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
13772 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
13773 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
13774 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
13775 (GRUB_OHCI_FSMPS): Likewise.
13776 (GRUB_OHCI_PERIODIC_START): Likewise.
13777 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
13778 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
13779 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
13780 (GRUB_OHCI_SET_PORT_RESET): Likewise.
13781 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
13782 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
13783 (grub_ohci_transaction): Likewise.
13784 (grub_ohci_transfer): Improve condition detection algorithms.
13785 Handle toggle property. Program the transactions correctly.
13786 Improve error handling. Various important fixups.
13787 (grub_ohci_portstatus): Put register writes in right order.
13788 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
13789 (grub_uhci_transfer): Don't show "failed" message on success.
13790 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
13791 array.
13792 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
13793 determine its size.
13794 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
13795 before initialization is completed. Use IN direction for empty
13796 transfers. Use last_trans and compute toggle.
13797 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
13798 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
13799 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
13800 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
13801 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
13802 (grub_usb_device): Increase toggle to 256.
13803 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
13804 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
13805 GRUB_USBMS_SUBCLASS_SFF8070.
13806 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
13807 (grub_scsi_inquiry): New member page and alloc_length.
13808 (grub_scsi_request_sense): New structure.
13809 (grub_scsi_request_sense_data): Likewise.
13810 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
13811 control.
13812 * disk/scsi.c (grub_scsi_request_sense): New function.
13813 (grub_scsi_test_unit_ready): Likewise.
13814 (grub_scsi_inquiry): Fill new fields.
13815 (grub_scsi_read_capacity): Likewise.
13816 (grub_scsi_read10): Add request sense at the end.
13817 (grub_scsi_read12): Likewise.
13818 (grub_scsi_write10): Likewise.
13819 (grub_scsi_write12): Likewise.
13820 (grub_scsi_open): Add Test Unit Ready.
13821 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
13822 Support additional subclasses. Con't clear halt yet. Activate the
13823 proper config. Calculate LUNs correctly.
13824 (grub_usbms_transfer): Various important fixups.
13825
13826 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13827
13828 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
13829 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
13830 (grub_ohci_fini_hw): New function.
13831 (grub_ohci_restore_hw): Likewise.
13832 (GRUB_MOD_INIT(ohci)): Register preboot hook.
13833 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
13834 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
13835
13836 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13837
13838 Dedicated DMA allocations.
13839
13840 * bus/pci.c (grub_memalign_dma32): New function
13841 (grub_dma_free): Likewise.
13842 (grub_dma_get_virt): Likewise.
13843 (grub_dma_get_phys): Likewise.
13844 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
13845 (grub_ohci_pci_iter): Use dma32_alloc.
13846 (grub_ohci_transfer): Likewise.
13847 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
13848 (grub_usb_bulk_readwrite): Likewise.
13849 * include/grub/pci.h: Add declarations.
13850
13851 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
13852
13853 CS5536 support.
13854
13855 * bus/cs5536.c: New file.
13856 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
13857 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
13858 (cs5536_mod_SOURCES): New variable.
13859 (cs5536_mod_CFLAGS): Likewise.
13860 (cs5536_mod_LDFLAGS): Likewise.
13861 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
13862 machine/pci.h.
13863 (kernel_img_SOURCES): Add bus/cs5536.c.
13864 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
13865 usb_keyboard.mod.
13866 (usb_mod_SOURCES): New variable.
13867 (usb_mod_CFLAGS): New variable.
13868 (usb_mod_LDFLAGS): New variable.
13869 (usbtest_mod_SOURCES): New variable.
13870 (usbtest_mod_CFLAGS): New variable.
13871 (usbtest_mod_LDFLAGS): New variable.
13872 (ohci_mod_SOURCES): New variable.
13873 (ohci_mod_CFLAGS): New variable.
13874 (ohci_mod_LDFLAGS): New variable.
13875 (usbms_mod_SOURCES): New variable.
13876 (usbms_mod_CFLAGS): New variable.
13877 (usbms_mod_LDFLAGS): New variable.
13878 (usb_keyboard_mod_SOURCES): New variable.
13879 (usb_keyboard_mod_CFLAGS): New variable.
13880 (usb_keyboard_mod_LDFLAGS): New variable.
13881 * include/grub/smbus.h: New file.
13882 * include/grub/cs5536.h: New file.
13883
13884 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13885
13886 * util/grub.d/00_header.in: Add safety check to make sure that
13887 ${locale_dir} exists before trying to probe it.
13888
13889 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13890
13891 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
13892 per the GNU Coding Standards; this is now too obscure to be worth
13893 documenting.
13894 (QNX): Likewise.
13895 (chainloader): Remove cross-reference to `SCO UnixWare'.
13896
13897 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13898
13899 * docs/grub.texi (Chain-loading): New section.
13900 (DOS/Windows): New section, borrowed from GRUB Legacy with details
13901 adjusted for GRUB 2.
13902 (SCO UnixWare): Likewise.
13903 (QNX): Likewise.
13904 (chainloader): Add reference to `Block list syntax'.
13905 (drivemap): New section.
13906 (parttool): New section.
13907
13908 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13909
13910 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
13911 the grub shell'.
13912 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
13913 (Installing GRUB using grub-install): Remove reference to the grub
13914 shell; mention `grub-mkimage' and `grub-setup' instead.
13915 (Invoking grub-install): Likewise.
13916 (Interface): Add reference to `Menu entry editor'.
13917 (serial): Remove `--device' option.
13918
13919 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13920
13921 * docs/grub.texi (Configuration): New section, documenting
13922 configuration file generation using grub-mkconfig. I've left a slot
13923 for documenting the full shell scripting format but have not yet
13924 started on writing that up.
13925 (Invoking grub-mkconfig): New section.
13926
13927 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13928
13929 * docs/grub.texi (direntry): Remove grub-terminfo reference.
13930 (GNU GRUB manual): Likewise.
13931 (General commands): Update description of `terminfo' for GRUB 2.
13932
13933 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13934
13935 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
13936 (GRUB_MOD_INIT): Fix capitalisation.
13937 * docs/grub.texi (Command-line and menu entry commands): Document
13938 gettext and gptsync commands.
13939
13940 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
13941
13942 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
13943 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
13944
13945 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
13946
13947 Add btrfs probing support, currently only in the single-device case.
13948
13949 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
13950 function.
13951 (grub_guess_root_device): Call find_root_device_from_mountinfo
13952 before looking in /dev.
13953
13954 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13955
13956 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
13957 GRUB_DISK_SIZE_UNKNOWN.
13958 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
13959
13960 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
13961
13962 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
13963 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
13964 corrupted or not synced properly.
13965
13966 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13967
13968 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
13969 Reported by: Seth Goldberg.
13970
13971 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13972
13973 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
13974 addition of dest.
13975 Reported by: Seth Goldberg.
13976
13977 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13978
13979 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
13980 Reported by: Seth Goldberg.
13981
13982 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
13983
13984 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
13985 64-bit address as signed on MIPS.
13986
13987 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
13988
13989 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
13990 to the empty string.
13991
13992 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
13993
13994 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
13995
13996 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
13997 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
13998 * kern/misc.c (__enable_execute_stack): Disable on
13999 GRUB_MACHINE_EMU.
14000
14001 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
14002
14003 Make grub-probe work with symbolic links under /dev/mapper as well
14004 as with real block devices. The Linux world seems to be (at best)
14005 in transition here, and GRUB shouldn't get caught in the middle.
14006
14007 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
14008 /dev/mapper.
14009
14010 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
14011
14012 * util/grub-script-check.c (main): Ensure defined behaviour on empty
14013 input files (in which case exit zero).
14014
14015 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
14016
14017 * kern/emu/misc.c (canonicalize_file_name): realpath can still
14018 return NULL for various reasons even if it has a maximum-length
14019 buffer: for example, there might be a symlink loop, or the path
14020 might exceed PATH_MAX. If this happens, return NULL.
14021
14022 2010-05-27 Robert Millan <rmh@gnu.org>
14023
14024 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
14025 partmap module to handle cross-partmap setups.
14026 Reported by Orestes Mas. Gràcies!
14027
14028 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
14029
14030 * util/grub-mkrescue.in: Initialise override_dir rather than
14031 assuming that it's unset or empty in the environment.
14032
14033 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
14034
14035 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
14036 variable index into p_index to suppress a warning with -Wshadow.
14037
14038 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
14039
14040 * INSTALL: Added flex >= 2.5.35 requirement.
14041
14042 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14043
14044 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
14045
14046 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14047
14048 cmostest support.
14049
14050 * commands/i386/cmostest.c: New file.
14051 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
14052 (cmostest_mod_SOURCES): New variable.
14053 (cmostest_mod_CFLAGS): Likewise.
14054 (cmostest_mod_LDFLAGS): Likewise.
14055 * conf/i386-pc.rmk: Likewise.
14056 * docs/grub.texi (Vendor power-on keys): New section.
14057 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
14058 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
14059 and GRUB_BUTTON_CMOS_ADDRESS.
14060 * util/grub.d/00_header.in: Handle powering-on by separate button.
14061
14062 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14063
14064 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
14065 Removed drawing_scrollbar argument. All users updated
14066 Fixes #29792.
14067 Reported by Jo Shields
14068
14069 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14070
14071 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
14072 buffer since gfxterm handles double repaint.
14073
14074 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
14075
14076 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
14077 * term/gfxterm.c (real_scroll): Likewise.
14078
14079 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14080
14081 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
14082 before calling BIOS.
14083
14084 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14085
14086 * include/grub/i18n.h: Always enable grub_gettext.
14087
14088 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
14089
14090 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
14091 partition naming style.
14092
14093 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
14094
14095 * util/grub-mkconfig.in: Fix handling of -o so that it works when
14096 not the first option.
14097
14098 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
14099
14100 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
14101
14102 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
14103
14104 * util/misc.c: Move inclusion of <limits.h> to ...
14105 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
14106
14107 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
14108
14109 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
14110 Fix merge error in NetBSD code.
14111 (find_partition_start) [__NetBSD__]: Likewise.
14112
14113 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
14114
14115 Fix grub-mkrescue usage unit testing.
14116
14117 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
14118
14119 2010-05-18 Christian Franke <franke@computer.org>
14120
14121 * util/grub.d/10_windows.in: Use path names instead of
14122 drive letters to prevent warning from Cygwin 1.7.
14123 Add drivemap command to menuentry if needed.
14124
14125 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
14126
14127 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
14128 gnumach and gnumach.gz.
14129
14130 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14131
14132 * include/grub/i18n.h (gettext): Inline instead of using #define.
14133 (grub_gettext): Likewise.
14134 (_): Likewise.
14135
14136 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14137
14138 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
14139 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
14140 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
14141 (main): Add a slash after pkglibdirroot.
14142
14143 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14144
14145 * util/grub-install.in: Add missing "in" keyword.
14146
14147 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14148
14149 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
14150 Reported by: Seth Goldberg.
14151
14152 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
14153
14154 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
14155
14156 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
14157
14158 * configure.ac: Check for Linux device-mapper support.
14159
14160 * util/hostdisk.c (device_is_mapped): New function.
14161 (find_partition_start): New function, partly broken out from
14162 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
14163 device-mapper support added.
14164 (linux_find_partition): Use find_partition_start.
14165 (convert_system_partition_to_system_disk): Add `st' argument.
14166 Support Linux /dev/mapper/* devices if device-mapper support is
14167 available; only DM-RAID devices are understood at present.
14168 (find_system_device): Add `st' argument. Pass it to
14169 convert_system_partition_to_system_disk.
14170 (grub_util_biosdisk_get_grub_dev): Pass stat result to
14171 find_system_device and convert_system_partition_to_system_disk. Use
14172 find_partition_start.
14173
14174 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
14175 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
14176 * util/deviceiter.c [__linux__]: Define MINOR.
14177 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
14178 * util/mkdevicemap.c (grub_putchar): New function.
14179 (grub_getkey): New function.
14180 (grub_refresh): New function.
14181 (main): Set debug=all if -v -v is used.
14182
14183 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
14184
14185 Fix build with non-GNU libcs.
14186
14187 * util/misc.c (canonicalize_file_name): Move to ...
14188 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
14189 grub_make_system_path_relative_to_its_root.
14190
14191 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
14192
14193 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
14194 we handle finding grub-mkimage. Default to finding grub-mkimage in
14195 ${bindir} with program_transform_name applied, and provide a
14196 --grub-mkimage option to override this.
14197
14198 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14199
14200 Remove grub-mkisofs.
14201
14202 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
14203 (grub_mkisofs_SOURCES): Removed.
14204 (grub_mkisofs_CFLAGS): Removed.
14205 * util/mkisofs/defaults.h: Removed.
14206 * util/mkisofs/eltorito.c: Likewise.
14207 * util/mkisofs/exclude.h: Likewise.
14208 * util/mkisofs/hash.c: Likewise.
14209 * util/mkisofs/include/: Likewise.
14210 * util/mkisofs/include/fctldefs.h: Likewise.
14211 * util/mkisofs/include/mconfig.h: Likewise.
14212 * util/mkisofs/include/prototyp.h: Likewise.
14213 * util/mkisofs/include/statdefs.h: Likewise.
14214 * util/mkisofs/iso9660.h: Likewise.
14215 * util/mkisofs/joliet.c: Likewise.
14216 * util/mkisofs/match.c: Likewise.
14217 * util/mkisofs/match.h: Likewise.
14218 * util/mkisofs/mkisofs.c: Likewise.
14219 * util/mkisofs/mkisofs.h: Likewise.
14220 * util/mkisofs/msdos_partition.h: Likewise.
14221 * util/mkisofs/multi.c: Likewise.
14222 * util/mkisofs/name.c: Likewise.
14223 * util/mkisofs/rock.c: Likewise.
14224 * util/mkisofs/tree.c: Likewise.
14225 * util/mkisofs/write.c: Likewise.
14226
14227 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
14228
14229 Unify grub-mkimage accross platforms.
14230
14231 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
14232 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
14233 (grub_mkelfimage_SOURCES): Removed.
14234 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
14235 (util/grub-mkimage.c_DEPENDENCIES): .. this.
14236 (bin_UTILITIES): Add grub-mkimage.
14237 (grub_mkimage_SOURCES): New variable.
14238 (kernel_img_HEADERS): Remove machine/kernel.h.
14239 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
14240 (pkglib_PROGRAMS): Add kernel.img.
14241 (kernel_img_HEADERS): Add machine/kernel.h.
14242 (kernel_img_FORMAT): Removed.
14243 (bin_UTILITIES): Remove grub-mkimage.
14244 (grub_mkimage_SOURCES): Removed.
14245 (grub_mkimage_CFLAGS): Likewise.
14246 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14247 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
14248 (pkglib_PROGRAMS): Add kernel.img.
14249 (bin_UTILITIES): Remove grub-mkimage.
14250 (grub_mkimage_SOURCES): Removed.
14251 (grub_mkimage_CFLAGS): Likewise.
14252 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14253 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
14254 (pkglib_PROGRAMS): Add kernel.img.
14255 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
14256 (pkglib_PROGRAMS): Add kernel.img.
14257 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
14258 (grub_mkimage_SOURCES): Removed.
14259 (grub_mkimage_CFLAGS): Likewise.
14260 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14261 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
14262 (pkglib_PROGRAMS): Add kernel.img.
14263 (bin_UTILITIES): Remove grub-mkimage.
14264 (grub_mkimage_SOURCES): Removed.
14265 (grub_mkimage_CFLAGS): Likewise.
14266 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14267 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
14268 (grub_mkimage_SOURCES): Removed.
14269 (grub_mkimage_CFLAGS): Likewise.
14270 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
14271 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
14272 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
14273 (grub_pe32_optional_header): ... this.
14274 (grub_pe64_optional_header): ... and this. All users updated.
14275 (GRUB_PE32_PE32_MAGIC): Split into ..
14276 (GRUB_PE32_PE32_MAGIC): .. this.
14277 (GRUB_PE32_PE64_MAGIC): .. and this.
14278 (GRUB_PE32_SIGNATURE_SIZE): New definition.
14279 * include/grub/elf.h (PT_GNU_STACK): New definition.
14280 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
14281 * include/grub/i386/efi/kernel.h: Likewise.
14282 * include/grub/i386/kernel.h: Likewise.
14283 * include/grub/i386/pc/kernel.h: Likewise.
14284 * include/grub/i386/qemu/boot.h: Likewise.
14285 * include/grub/mips/kernel.h: Likewise.
14286 * include/grub/mips/qemu-mips/kernel.h: Likewise.
14287 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
14288 * include/grub/powerpc/kernel.h: Likewise.
14289 * include/grub/sparc64/ieee1275/boot.h: Likewise.
14290 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
14291 * include/grub/sparc64/kernel.h: Likewise.
14292 * include/grub/x86_64/efi/kernel.h: Likewise.
14293 * include/grub/x86_64/kernel.h: Likewise.
14294 * include/grub/offsets.h: New file.
14295 * include/grub/kernel.h (grub_module_info): Split into ...
14296 (grub_module_info32): ... this.
14297 (grub_module_info64): ... and this.
14298 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
14299 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
14300 (grub_boot_blocklist): Moved from here ...
14301 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
14302 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
14303 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
14304 * include/grub/types.h (grub_target_to_host16): Removed.
14305 (grub_target_to_host32): Likewise.
14306 (grub_target_to_host64): Likewise.
14307 (grub_host_to_target16): Likewise.
14308 (grub_host_to_target32): Likewise.
14309 (grub_host_to_target64): Likewise.
14310 (grub_host_to_target_addr): Likewise.
14311
14312 Support grub-mkrescue for efi, coreboot and qemu.
14313
14314 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
14315 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
14316 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
14317 * util/grub-mkrawimage.c: Moved from here ...
14318 * util/grub-mkimage.c: ... here. All users updated.
14319 (ALIGN_ADDR): Use image_target.
14320 (TARGET_NO_FIELD): New const.
14321 (image_target_desc): New type.
14322 (image_targets): New array.
14323 (grub_target_to_host64): Use image_target.
14324 (grub_target_to_host32): Likewise.
14325 (grub_target_to_host16): Likewise.
14326 (grub_host_to_target64): Likewise.
14327 (grub_host_to_target32): Likewise.
14328 (grub_host_to_target16): Likewise.
14329 (grub_host_to_target_addr): Likewise.
14330 (generate_image): Handle multiimage.
14331 (main): Require -O parameter. All users updated.
14332 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
14333 util/efi/grub-mkimage.c
14334 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
14335 New option --rom-directory.
14336 Use xorriso.
14337 * util/i386/efi/grub-mkimage.c: Removed.
14338 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
14339 (grub_target_to_host32): Likewise.
14340 (grub_target_to_host64): Likewise.
14341 (grub_host_to_target16): Likewise.
14342 (grub_host_to_target32): Likewise.
14343 (grub_host_to_target64): Likewise.
14344 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
14345 (grub_target_to_host32): Likewise.
14346 (grub_target_to_host64): Likewise.
14347 (grub_host_to_target16): Likewise.
14348 (grub_host_to_target32): Likewise.
14349 (grub_host_to_target64): Likewise.
14350
14351 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
14352
14353 Source tree is reorganized for emu build.
14354
14355 * include/grub/util/console.h: Move from here...
14356 * include/grub/emu/console.h: ...to here.
14357 * include/grub/util/getroot.h: Move from here...
14358 * include/grub/emu/getroot.h: ...to here.
14359 * include/grub/util/hostdisk.h: Move from here...
14360 * include/grub/emu/hostdisk.h: ...to here.
14361 * util/console.c: Move from here...
14362 * kern/emu/console.c: ...to here.
14363 * util/getroot.c: Move from here...
14364 * kern/emu/getroot.c: ...to here.
14365 * util/grub-emu.c: Move from here...
14366 * kern/emu/main.c: ...to here.
14367 * util/hostdisk.c: Move from here...
14368 * kern/emu/hostdisk.c: ...to here.
14369 * util/hostfs.c: Move from here...
14370 * kern/emu/hostfs.c: ...to here.
14371 * util/mm.c: Move from here...
14372 * kern/emu/mm.c: ...to here.
14373 * util/pci.c: Move from here...
14374 * bus/emu/pci.c: ...to here.
14375 * util/sdl.c: Move from here...
14376 * video/emu/sdl.c: ...to here.
14377 * util/time.c: Move from here...
14378 * kern/emu/time.c: ...to here.
14379 * util/usb.c: Move from here...
14380 * bus/usb/emu/usb.c: ...to here.
14381
14382 * include/grub/emu/misc.h: New header for grub-emu functions.
14383 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
14384
14385 * conf/any-emu.rmk: Rule updates for above renames.
14386 * conf/common.rmk: Likewise.
14387 * conf/i386-pc.rmk: Likewise.
14388 * conf/i386-qemu.rmk: Likewise.
14389 * conf/mips.rmk: Likewise.
14390 * conf/sparc64-ieee1275.rmk: Likewise.
14391 * conf/x86-efi.rmk: Likewise.
14392
14393 * disk/lvm.h: #include updates for above renames.
14394 * util/grub-mkrelpath.c: Likewise.
14395 * util/grub-probe.c: Likewise.
14396 * util/i386/pc/grub-setup.c: Likewise.
14397 * util/sparc64/ieee1275/grub-setup.c: Likewise.
14398 * kern/emu/console.c: Likewise.
14399 * kern/emu/getroot.c: Likewise.
14400 * kern/emu/hostdisk.c: Likewise.
14401 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
14402
14403 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
14404 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
14405 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
14406 * util/misc.c: Remove grub-emu functions.
14407
14408 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
14409
14410 Fix gfxmenu crash.
14411 Reported by: Thorsten Grützmacher.
14412
14413 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
14414 timeout hook.
14415 (circprog_set_property): Register and unregister timeout hook.
14416 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
14417 (label_destroy): Free template. and unregister hook.
14418 (label_set_state): New function.
14419 (label_set_property): Handle templates and hooks.
14420 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
14421 timeout hook.
14422 (progress_bar_set_property): Register and unregister timeout hook.
14423 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
14424 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
14425 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
14426 (update_timeout_visit): Removed.
14427 (update_timeouts): New function.
14428 (redraw_timeouts): Likewise.
14429 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
14430 (grub_gfxmenu_clear_timeout): Likewise.
14431 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
14432 (grub_gfxmenu_timeout_notify): Likewise.
14433 (grub_gfxmenu_timeout_notifications): New external variable.
14434 (grub_gfxmenu_timeout_register): New function.
14435 (grub_gfxmenu_timeout_unregister): Likewise.
14436
14437 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
14438
14439 Transform (broken) vga terminal into (working) vga video driver.
14440
14441 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
14442 video/i386/pc/vga.c.
14443 * include/grub/video.h (grub_video_driver_id):
14444 Add GRUB_VIDEO_DRIVER_VGA.
14445 * term/i386/pc/vga.c: Renamed to ...
14446 * video/i386/pc/vga.c: ...this
14447 (DEBUG_VGA): Removed.
14448 (CHAR_WIDTH): Likewise.
14449 (CHAR_HEIGHT): Likewise.
14450 (TEXT_WIDTH): Likewise.
14451 (TEXT_HEIGHT): Likewise.
14452 (DEFAULT_FG_COLOR): Likewise.
14453 (DEFAULT_BG_COLOR): Likewise.
14454 (colored_char): Likewise.
14455 (xpos): Likewise.
14456 (ypos): Likewise.
14457 (cursor_state): Likewise.
14458 (fg_color): Likewise.
14459 (bg_color): Likewise.
14460 (text_buf): Likewise.
14461 (page): Likewise.
14462 (font): Likewise.
14463 (framebuffer): New variable.
14464 (set_read_map): Disabled.
14465 (setup): New variable.
14466 (is_target): Likewise.
14467 (grub_vga_mod_init): Likewise.
14468 (grub_vga_mod_fini): Likewise.
14469 (check_vga_mem): Likewise.
14470 (write_char): Likewise.
14471 (write_cursor): Likewise.
14472 (scroll_up): Likewise.
14473 (grub_vga_putchar): Likewise.
14474 (grub_vga_getcharwidth): Likewise.
14475 (grub_vga_getwh): Likewise.
14476 (grub_vga_getxy): Likewise.
14477 (grub_vga_gotoxy): Likewise.
14478 (grub_vga_cls): Likewise.
14479 (grub_vga_setcolorstate): Likewise.
14480 (grub_vga_setcursor): Likewise.
14481 (grub_video_vga_init): New function.
14482 (grub_video_vga_setup): Likewise.
14483 (grub_video_vga_fini): Likewise.
14484 (update_target): Likewise.
14485 (grub_video_vga_blit_bitmap): Likewise.
14486 (grub_video_vga_blit_render_target): Likewise.
14487 (grub_video_vga_set_active_render_target): Likewise.
14488 (grub_video_vga_get_active_render_target): Likewise.
14489 (grub_video_vga_swap_buffers): Likewise.
14490 (grub_video_vga_set_palette): Likewise.
14491 (grub_video_vga_get_info_and_fini): Likewise.
14492 (grub_vga_term): Removed.
14493 (grub_video_vga_adapter): New variable.
14494 (GRUB_MOD_INIT): Register a video driver instead of terminal.
14495 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
14496
14497 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14498
14499 * video/readers/jpeg.c: Indented.
14500
14501 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14502
14503 Various jpeg cleanups.
14504
14505 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
14506 (grub_jpeg_decode_quan_table): Use sizeof.
14507 (grub_jpeg_decode_du): Use ARRAY_SIZE.
14508
14509 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
14510
14511 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
14512 tables. Ignore non-last ac bit.
14513 (grub_jpeg_decode_quan_table): Likewise.
14514
14515 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14516
14517 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
14518 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
14519 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14520 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
14521 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
14522 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
14523
14524 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14525
14526 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
14527 error.
14528
14529 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
14530
14531 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
14532
14533 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14534
14535 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
14536 condition.
14537
14538 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14539
14540 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
14541 part.
14542
14543 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14544
14545 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
14546 pointers.
14547
14548 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
14549
14550 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
14551
14552 2010-05-01 Christian Franke <franke@computer.org>
14553
14554 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
14555 Remove broken Cygwin path conversion.
14556 * util/misc.c: [__CYGWIN__] Add include and define.
14557 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
14558 for Cygwin 1.7.
14559 (make_system_path_relative_to_its_root): Simplify loop, replace early
14560 return by break.
14561 [__CYGWIN__] Add conversion to win32 path.
14562 Include "/" case in trailing slash removal.
14563
14564 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14565
14566 * kern/main.c (grub_load_config): Fix copy-pasted comment.
14567 Reported by: Seth Goldberg
14568
14569 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14570
14571 * commands/help.c (grub_cmd_help): Fix a typo.
14572 Reported by: Seth Goldberg
14573
14574 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14575
14576 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
14577 name and add N_.
14578 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
14579 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
14580 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
14581 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
14582 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
14583 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
14584 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
14585 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
14586 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
14587 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
14588 * normal/context.c (GRUB_MOD_INIT): Likewise.
14589 * normal/main.c (GRUB_MOD_INIT): Likewise.
14590 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
14591 * term/serial.c (GRUB_MOD_INIT): Likewise.
14592 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
14593
14594 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14595
14596 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
14597 extra == 0.
14598
14599 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14600
14601 * commands/iorw.c: New file.
14602 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
14603 (iorw_mod_SOURCES): New variable.
14604 (iorw_mod_CFLAGS): Likewise.
14605 (iorw_mod_LDFLAGS): Likewise.
14606
14607 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14608
14609 Hotkey support
14610
14611 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
14612 * normal/main.c (hotkey_aliases): New variable.
14613 (grub_normal_add_menu_entry): Parse "--hotkey".
14614 * normal/menu_text.c (run_menu): Handle hotkeys.
14615
14616 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14617
14618 * kern/i386/coreboot/init.c (grub_machine_init): Call
14619 grub_machine_mmap_init on qemu.
14620
14621 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14622
14623 * boot/i386/qemu/boot.S: Add a missing .code16.
14624
14625 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14626
14627 Use LBIO on coreboot.
14628
14629 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
14630 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
14631 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
14632 New declaration.
14633 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
14634 grub_machine_mmap_init on coreboot.
14635 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
14636 GRUB_LINUXBIOS_MEMBER_LINK.
14637 (grub_machine_mmap_iterate): Fix declaration.
14638 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
14639
14640 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14641
14642 Split coreboot and multiboot ports.
14643
14644 * conf/i386-multiboot.rmk: New file.
14645 * configure.ac: Add multiboot port.
14646 * include/grub/i386/multiboot/boot.h: New file.
14647 * include/grub/i386/multiboot/console.h: Likewise.
14648 * include/grub/i386/multiboot/init.h: Likewise.
14649 * include/grub/i386/multiboot/kernel.h: Likewise.
14650 * include/grub/i386/multiboot/loader.h: Likewise.
14651 * include/grub/i386/multiboot/memory.h: Likewise.
14652 * include/grub/i386/multiboot/serial.h: Likewise.
14653 * include/grub/i386/multiboot/time.h: Likewise.
14654 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
14655 * loader/multiboot.c: Likewise.
14656 * loader/multiboot_mbi2.c: Likewise.
14657 * util/grub-mkrescue.in: Generate multiboot rescue.
14658
14659 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14660
14661 * kern/parser.c (grub_parser_execute): Cope with read-only config.
14662
14663 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
14664
14665 Merge handling of input and output terminals. Fix a hang.
14666
14667 * commands/terminal.c (abstract_terminal): New struct.
14668 (handle_command): New function. Based on grub_cmd_terminal_input.
14669 (grub_cmd_terminal_input): Use handle_command.
14670 (grub_cmd_terminal_output): Use handle_command.
14671
14672 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
14673
14674 Fix comment handling.
14675
14676 * tests/grub_script_comments.in: New testcase.
14677 * conf/tests.rmk: Rules for new testcase.
14678 * script/yylex.l: Updated flex rules.
14679
14680 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
14681
14682 * docs/grub.texi (play): Document that zero pitches produce rests.
14683 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
14684 if argc is 1.
14685
14686 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
14687
14688 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
14689 autogen issues.
14690
14691 2010-04-26 Christian Franke <franke@computer.org>
14692
14693 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
14694 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
14695 (grub_get_prefix): Remove function.
14696 * util/grub-emu.c (main): Replace grub_get_prefix () call by
14697 make_system_path_relative_to_its_root ().
14698 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
14699
14700 2010-04-24 Christian Franke <franke@computer.org>
14701
14702 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
14703 (kernel_img_LDFLAGS): Remove -static-libgcc.
14704
14705 2010-04-24 Christian Franke <franke@computer.org>
14706
14707 * configure.ac: Do not CHECK_BSS_START_SYMBOL
14708 and CHECK_END_SYMBOL if grub-emu is built.
14709 Unset TARGET_OBJ2ELF if grub-emu is built
14710 without module support.
14711
14712 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
14713
14714 Nilfs2 support.
14715
14716 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
14717 (grub_fstest_SOURCES): Likewise.
14718 (pkglib_MODULES): Add nilfs2.mod.
14719 (nilfs2_mod_SOURCES): New variable.
14720 (nilfs2_mod_CFLAGS): Likewise.
14721 (nilfs2_mod_LDFLAGS): Likewise.
14722 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14723 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
14724 * fs/nilfs2.c: New file.
14725
14726 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
14727
14728 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
14729 is not supported.
14730
14731 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
14732
14733 Add grub-mkconfig support for NetBSD.
14734
14735 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
14736 * util/grub-mkconfig.in: export new NetBSD specific variables.
14737 * po/POTFILES-shell: added 10_netbsd.in.
14738 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
14739
14740 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
14741
14742 Fix emu build with grub-emu-pci and grub-emu-modules.
14743
14744 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
14745 functions.
14746 * include/grub/libpciaccess.h: New file.
14747 * conf/any-emu.rmk: Update kernel headers for emu build.
14748
14749 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14750
14751 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
14752
14753 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
14754
14755 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
14756
14757 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14758
14759 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
14760 Retrieve chosen/bootpath if bootpath isn't hardcoded.
14761 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
14762 util/ieee1275/ofpath.c.
14763 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
14764 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
14765 * include/grub/sparc64/ieee1275/boot.h
14766 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
14767 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
14768 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
14769 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
14770 const char *.
14771 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
14772 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
14773 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
14774 install.
14775
14776 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
14777
14778 * util/grub-mkconfig.in: Corrected two == equality tests.
14779 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
14780 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
14781 expect a number appended to it.
14782 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
14783 expects a number appended to it.
14784
14785 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14786
14787 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
14788
14789 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
14790
14791 * util/hostdisk.c (make_device_name): Change to new partition naming.
14792
14793 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
14794
14795 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
14796
14797 2010-04-17 Christian Franke <franke@computer.org>
14798
14799 * Makefile.in: Add missing localedir setting.
14800
14801 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
14802
14803 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
14804 mistake in r2156. Noticed by Anthony Fok.
14805
14806 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
14807 @localedir@.
14808 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
14809
14810 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
14811
14812 Fix a spurious, uninitialized variable warning.
14813
14814 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
14815 Initialize variable, shdr.
14816 (grub_freebsd_load_elfmodule): Likewise.
14817 (grub_freebsd_load_elf_meta): Likewise.
14818
14819 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
14820
14821 Fix for escaped dollar in double quoted strings.
14822
14823 * script/yylex.l: Updated flex rules.
14824 * conf/tests.rmk: Rule for new testcase.
14825 * tests/grub_script_dollar.in: New testcase.
14826
14827 2010-04-13 Carles Pina i Estany <carles@pina.cat>
14828 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
14829
14830 Enclose all translated strings in grub.cfg in single quotes, and
14831 escape them appropriately (Ubuntu bug #552921).
14832
14833 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
14834 * util/grub.d/10_hurd.in: Use it.
14835 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14836 * util/grub.d/10_linux.in (linux_entry): Likewise.
14837
14838 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14839
14840 Fix cygwin compilation.
14841
14842 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
14843 * include/grub/misc.h (__register_frame_info)
14844 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
14845 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14846 * kern/misc.c (__register_frame_info)
14847 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
14848 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
14849
14850 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14851
14852 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
14853
14854 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
14855
14856 Unify libgcc processing.
14857
14858 * Makefile.in (kernel_img_LDFLAGS): New variable.
14859 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
14860 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
14861 overwriting.
14862 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
14863 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
14864 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
14865 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
14866 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
14867 overwriting. Remove -lgcc and -static-libgcc
14868 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
14869 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14870 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
14871 (kernel_img_LDFLAGS): Append instead of overwriting.
14872 Remove -lgcc and -static-libgcc
14873 * conf/sparc64-ieee1275.rmk: Likewise.
14874 * include/grub/powerpc/libgcc.h: Move to ...
14875 * include/grub/libgcc.h: .. this.
14876 * include/grub/libgcc.h: Don't export most of the function on x86.
14877 (__bswapsi2): New export.
14878 (__bswapdi2): Likewise.
14879 * include/grub/mips/libgcc.h: Removed.
14880 * include/grub/sparc64/libgcc.h: Likewise.
14881
14882 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14883
14884 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
14885 disk_info_msg (conflicts with gettexting into languages with cases).
14886
14887 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
14888
14889 Add grub-probe support for NetBSD.
14890
14891 * util/getroot.c (find_root_device): Convert block device to
14892 character device on NetBSD.
14893 * util/probe.c (probe): Require character device on NetBSD.
14894 * util/hostdisk.c: NetBSD specific headers.
14895 (configure_device_driver): new function to tune device driver
14896 parameters (currently only for NetBSD floppy driver).
14897 (grub_util_biosdisk_open): NetBSD specific code (get disk size
14898 via disklabel ioctl).
14899 (open_device): call configure_device_driver on NetBSD.
14900 (convert_system_partition_to_system_disk): NetBSD specific code.
14901 (device_is_wholedisk): Likewise.
14902 (grub_util_biosdisk_get_grub_dev): Likewise.
14903 (make_device_name): Fixed a typo in bsd_part_str.
14904 * configure.ac: check for opendisk() and getrawpartition() on
14905 NetBSD and set LIBUTIL.
14906 * Makefile.in: add LIBUTIL to LIBS.
14907
14908 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14909
14910 Documentation fix.
14911
14912 * util/grub-script-check.c: Better help message.
14913
14914 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
14915
14916 Fix FreeBSD build.
14917
14918 * configure.ac: Flex version check.
14919 * conf/common.rmk: Add -Wno-error to sh.mod.
14920 * script/yylex.l: Remove all #pragma.
14921
14922 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14923
14924 * include/grub/util/misc.h (canonicalise_file_name): Add missing
14925 prototype.
14926 Reported by: Seth Goldberg.
14927
14928 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14929
14930 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
14931 Rename "module" to "module2".
14932 Reported by: Seth Goldberg.
14933
14934 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14935
14936 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
14937 EXPORT_FUNC.
14938 Reported by: Seth Goldberg.
14939
14940 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14941
14942 * lib/posix_wrap/locale.h: Add missing file.
14943 Reported by: Seth Goldberg.
14944
14945 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
14946
14947 grub-emu module load support.
14948
14949 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
14950 NO_DYNAMIC_MODULES switched to this.
14951 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
14952 (CFLAGS): Likewise.
14953 * conf/any-emu.rmk: Generate symlist.
14954 (kernel_img_HEADERS): Add util/datetime.h.
14955 (kernel_img_HEADERS) [sdl]: Add sdl.h.
14956 (kernel_img_HEADERS) [libusb]: Add libusb.h.
14957 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
14958 kern/$(target_cpu)/cache.S.
14959 * configure.ac (grub-emu-modules): New option.
14960 * genmk.rb: Handle multiple source lists.
14961 * include/grub/sdl.h: New file.
14962 * include/grub/libusb.h: Likewise.
14963 * util/grub-emu.c (main): Hanle (host) root.
14964 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
14965 GRUB_ERR_UNKNOWN_DEVICE.
14966 * util/misc.c: Move mm functions to ...
14967 * util/mm.c: ... here. All users updated.
14968
14969 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14970
14971 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
14972 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
14973 missing files.
14974 (maintainer-clean): Remove libgcrypt-grub.
14975
14976 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14977
14978 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
14979
14980 2010-04-09 EFI Coder <eficoder@hotmail.com>
14981
14982 * normal/menu_text.c (print_message): Clean up the message and show
14983 the Fn information when on EFI
14984 * term/efi/console.c (grub_console_checkkey): Add F4 support.
14985
14986 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14987
14988 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
14989 All users updated.
14990 * normal/crypto.c (read_crypto_list): Likewise.
14991 * normal/dyncmd.c (read_command_list): Likewise.
14992 * normal/term.c (read_terminal_list): Likewise.
14993 * normal/main.c (read_lists): Use explicit prefix.
14994 (read_lists_hook): Use read_lists.
14995 (grub_normal_execute): Likewise.
14996
14997 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
14998
14999 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
15000 Reported by: Thomas Schmitt.
15001 Add -no-emul-boot to grub-mkisofs parameters.
15002
15003 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15004
15005 * font/font.c: Indented.
15006
15007 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
15008
15009 Elif support to GRUB script (by Deepak Vankadaru).
15010
15011 * tests/grub_script_if.in: New testcase.
15012 * conf/tests.rmk: Rule for new testcase.
15013 * script/parser.y: Grammar rules for elif.
15014
15015 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
15016
15017 While and until loops support to GRUB script.
15018
15019 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
15020 (grub_script_create_cmdwhile): New function prototype.
15021 (grub_script_execute_cmdwhile): New function prototype.
15022 * script/execute.c (grub_script_execute_cmdwhile): New function.
15023 * script/parser.y (command): New commands.
15024 (whilecmd): New grammar rule.
15025 (untilcmd): New grammar rule.
15026 * script/script.c (grub_script_create_cmdwhile): New function.
15027 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
15028 function.
15029
15030 * tests/grub_script_while1.in: New testcase.
15031 * conf/tests.rmk: Rule for new testcase.
15032
15033 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15034
15035 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
15036 as *.jpg.
15037
15038 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
15039
15040 GRUB_BACKGROUND support.
15041
15042 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
15043 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
15044
15045 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15046
15047 Load fonts and modules for gfxmenu in grub-mkconfig.
15048 Idea by: Mario Vazquez
15049
15050 * util/grub.d/00_header.in: Load pf2 and image modules.
15051
15052 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15053
15054 grub-mkconfig multiple terminal support.
15055
15056 * util/grub-mkconfig.in: Handle multiple terminals correctly.
15057 * util/grub.d/00_header.in: Likewise.
15058
15059 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
15060
15061 * Makefile.in: Specify files explicitly instead of using $< and $@ since
15062 we use cd $(srcdir).
15063
15064 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
15065
15066 * util/grub.d/10_linux.in: Only use the first word of
15067 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
15068 spaces in GRUB_DISTRIBUTOR.
15069 * util/grub.d/10_kfreebsd.in: Likewise.
15070 * util/grub.d/10_hurd.in: Likewise.
15071
15072 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
15073
15074 Fix unit testing framework for Qemu 0.12.
15075
15076 * tests/util/grub-shell.in: Remove -serial stdio option.
15077
15078 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
15079
15080 POSIX header file wrappers.
15081
15082 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
15083 equivalents.
15084 * lib/posix_wrap/ctype.h: Likewise.
15085 * lib/posix_wrap/errno.h: Likewise.
15086 * lib/posix_wrap/langinfo.h: Likewise.
15087 * lib/posix_wrap/limits.h: Likewise.
15088 * lib/posix_wrap/localcharset.h: Likewise.
15089 * lib/posix_wrap/stdint.h: Likewise.
15090 * lib/posix_wrap/stdio.h: Likewise.
15091 * lib/posix_wrap/stdlib.h: Likewise.
15092 * lib/posix_wrap/string.h: Likewise.
15093 * lib/posix_wrap/sys/types.h: Likewise.
15094 * lib/posix_wrap/unistd.h: Likewise.
15095 * lib/posix_wrap/wchar.h: Likewise.
15096 * lib/posix_wrap/wctype.h: Likewise.
15097 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
15098 (grub_script.yy.h): Likewise.
15099 * script/yylex.l: Remove POSIX emulation #defines.
15100 * Makefile.in (POSIX_CFLAGS): New variable.
15101 (GNULIB_UTIL_CFLAGS): Likewise.
15102
15103 Regexp support.
15104
15105 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
15106 (regexp_mod_SOURCES): New variable.
15107 (regexp_mod_CFLAGS): Likewise.
15108 (regexp_mod_LDFLAGS): Likewise.
15109 * commands/regexp.c: New file.
15110 * gnulib/regcomp.c: New file. Imported from gnulib.
15111 * gnulib/regex.c: Likewise.
15112 * gnulib/regex_internal.c: Likewise.
15113 * gnulib/regex_internal.h: Likewise.
15114 * gnulib/regexec.c: Likewise.
15115 * gnulib/regex.h: Likewise.
15116
15117 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15118
15119 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
15120 unsupported video mode types.
15121
15122 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15123
15124 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
15125
15126 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15127
15128 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
15129 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
15130
15131 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
15132
15133 Remove unused grub_vga_get_font.
15134
15135 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
15136 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
15137
15138 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15139
15140 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
15141 * include/grub/misc.h: Likewise.
15142
15143 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15144
15145 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
15146 for which failure is fatal.
15147
15148 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15149
15150 * util/grub-install.in: Use mkdir -p to create grub directory.
15151 * util/i386/efi/grub-install.in: Likewise.
15152 * util/ieee1275/grub-install.in: Likewise.
15153
15154 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15155
15156 * Makefile.in (LEX): new variable.
15157
15158 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
15159
15160 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
15161 `=' and added double quotes on operands of this equality test.
15162
15163 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
15164
15165 * Makefile.in (uninstall): Remove a leftover debug echo.
15166 Reported by: Grégoire Sutre
15167
15168 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
15169
15170 MIPS multiboot2 support.
15171
15172 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
15173 (multiboot2_mod_SOURCES): New variable.
15174 (multiboot2_mod_CFLAGS): Likewise.
15175 (multiboot2_mod_LDFLAGS): Likewise.
15176 (multiboot2_mod_ASFLAGS): Likewise.
15177 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
15178 definition.
15179 (MULTIBOOT_ENTRY_REGISTER): Likewise.
15180 (MULTIBOOT_MBI_REGISTER): Likewise.
15181 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
15182 (MULTIBOOT_ELF32_MACHINE): Likewise.
15183 (MULTIBOOT_ELF64_MACHINE): Likewise.
15184 * include/grub/mips/multiboot.h: New file.
15185 * include/grub/video.h (grub_video_driver_id): New type
15186 GRUB_VIDEO_DRIVER_SM712.
15187 (grub_video_get_info_and_fini): Export.
15188 (grub_video_get_palette): Likewise.
15189 (grub_video_get_driver_id): Likewise.
15190 * include/multiboot2.h: Resynced with spec.
15191 * loader/i386/multiboot.c: Moved from here ...
15192 * loader/multiboot.c: ... here. All users updated.
15193 (grub_multiboot_boot): Use platform-specific macros.
15194 * loader/i386/multiboot_elfxx.c: Moved from here ...
15195 * loader/multiboot_elfxx.c: ... here. All users updated.
15196 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
15197 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
15198 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
15199
15200 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
15201
15202 Import gnulib argp module.
15203
15204 * gnulib/argp-ba.c: New file.
15205 * gnulib/argp-eexst.c: Likewise.
15206 * gnulib/argp-fmtstream.c: Likewise.
15207 * gnulib/argp-fmtstream.h: Likewise.
15208 * gnulib/argp-fs-xinl.c: Likewise.
15209 * gnulib/argp-help.c: Likewise.
15210 * gnulib/argp-namefrob.h: Likewise.
15211 * gnulib/argp-parse.c: Likewise.
15212 * gnulib/argp-pin.c: Likewise.
15213 * gnulib/argp-pv.c: Likewise.
15214 * gnulib/argp-pvh.c: Likewise.
15215 * gnulib/argp-version-etc.c: Likewise.
15216 * gnulib/argp-version-etc.h: Likewise.
15217 * gnulib/argp-xinl.c: Likewise.
15218 * gnulib/argp.h: Likewise.
15219
15220 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15221
15222 * kern/device.c (grub_device_iterate): Clear errors after failed
15223 opening device.
15224
15225 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
15226
15227 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
15228 returned by firmware.
15229
15230 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
15231
15232 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
15233 compilation on coreboot and qemu
15234
15235 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
15236
15237 * include/multiboot2.h: Resync with spec.
15238
15239 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
15240
15241 Multiboot2 tag support
15242
15243 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
15244 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
15245 Remove loader/multiboot_loader.c.
15246 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
15247 (grub_multiboot2_real_boot): Likewise.
15248 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
15249 (grub_get_multiboot_mmap_count): New proto.
15250 (grub_fill_multiboot_mmap): Likewise.
15251 (grub_multiboot_set_video_mode): Likewise.
15252 (grub_multiboot_set_console): Likewise.
15253 (grub_multiboot_load): Likewise.
15254 (grub_multiboot_load_elf): Likewise.
15255 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
15256 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
15257 * include/multiboot.h: Resynced with specification.
15258 * include/multiboot2.h: Resynced with specification.
15259 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
15260 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
15261 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
15262 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
15263 users updated.
15264 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
15265 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
15266 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
15267 Removed.
15268 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
15269 Moved from here...
15270 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
15271 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15272 Moved from here...
15273 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
15274 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
15275 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
15276 All users updated.
15277 * loader/i386/multiboot_mbi2.c: New file.
15278
15279 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
15280
15281 Resync with gnulib.
15282
15283 * Makefile.in (GNULIB_CFLAGS): New variable.
15284 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
15285 (grub_script_check_CFLAGS): New variable.
15286 * gnulib/alloca.h: Resync with gnulib.
15287 * gnulib/error.c: Likewise.
15288 * gnulib/error.h: Likewise.
15289 * gnulib/fnmatch.c: Likewise.
15290 * gnulib/fnmatch_loop.c: Likewise.
15291 * gnulib/getdelim.c: Likewise.
15292 * gnulib/getline.c: Likewise.
15293 * gnulib/getopt.c: Likewise.
15294 * gnulib/getopt1.c: Likewise.
15295 * gnulib/getopt_int.h: Likewise.
15296 * gnulib/gettext.h: Likewise.
15297 * gnulib/progname.c: Likewise.
15298 * gnulib/progname.h: Likewise.
15299
15300 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
15301
15302 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
15303 which is the case with --disabled-nls.
15304
15305 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
15306 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
15307 * util/misc.c: Likewise.
15308 * util/mkisofs/mkisofs.c: Likewise.
15309 * util/mkisofs/mkisofs.h: Likewise.
15310
15311 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
15312
15313 Simplify Apple CC support.
15314
15315 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
15316 Add 0 byte at the end not to have a symbol with empty target.
15317 * mmap/i386/pc/mmap_helper.S: Likewise.
15318 * genmk.rb: Ignore errors 2030 and 2050.
15319 * kern/i386/pc/startup.S: Use LOCAL when possible.
15320
15321 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
15322
15323 Testcase and the fix for final semicolon on cmdline.
15324
15325 * tests/grub_script_final_semicolon.in: New testcase.
15326 * conf/tests.rmk: Rules for the new testcase.
15327 * script/parser.y: Grammar fix.
15328
15329 2010-03-26 BVK Chaitanya <bvk@localhost>
15330
15331 Blank lines testcase for GRUB script.
15332
15333 * tests/grub_script_blanklines.in: New testcase.
15334 * conf/tests.rmk: Rules for the new testcase.
15335
15336 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15337
15338 Don't use __FILE__.
15339
15340 * genmk.rb: Add -DGRUB_FILE to all C targets.
15341 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
15342 * include/grub/list.h: Likewise.
15343 * include/grub/misc.h: Likewise.
15344 * include/grub/mm.h: Likewise.
15345 * include/grub/test.h: Likewise.
15346 * kern/mm.c: Likewise.
15347 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
15348
15349 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15350
15351 Sunpc partitions support.
15352
15353 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
15354 (grub_fstest_SOURCES): Likewise.
15355 (pkglib_MODULES): Add part_sunpc.mod.
15356 (part_sunpc_mod_SOURCES): New variable.
15357 (part_sunpc_mod_CFLAGS): Likewise.
15358 (part_sunpc_mod_LDFLAGS): Likewise.
15359 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
15360 * partmap/sunpc.c: New file.
15361
15362 2010-03-26 BVK Chaitanya <bvk@localhost>
15363
15364 For loop support to GRUB script.
15365
15366 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
15367 (grub_script_create_cmdfor): New function prototype.
15368 (grub_script_execute_cmdfor): New function prototype.
15369 * script/execute.c (grub_script_execute_cmdfor): New function.
15370 * script/parser.y (command): New for command.
15371 (forcmd): New grammar rule.
15372 * script/script.c (grub_script_create_cmdfor): New function.
15373 * util/grub-script-check.c (grub_script_execute_cmdfor): New
15374 function.
15375 * tests/grub_script_for1.in: New testcase.
15376 * conf/tests.rmk: Rules for new testcase.
15377
15378 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
15379
15380 Nested partitions
15381
15382 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
15383 'partition' is NULL, grub_partition_get_start already does that.
15384 * commands/loadenv.c (check_blocklists): Likewise.
15385 (write_blocklists): Likewise.
15386 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
15387 (grub_fstest_SOURCES): Likewise.
15388 (pkglib_MODULES): Add part_bsd.mod.
15389 (part_bsd_mod_SOURCES): New variable.
15390 (part_bsd_mod_CFLAGS): Likewise.
15391 (part_bsd_mod_LDFLAGS): Likewise.
15392 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
15393 (grub_emu_SOURCES): Likewise.
15394 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15395 * include/grub/bsdlabel.h: New file.
15396 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
15397 'get_name'.
15398 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
15399 (grub_partition_map_list): New variable.
15400 (grub_partition_map_register): Inline.
15401 (grub_partition_map_unregister): Likewise.
15402 (FOR_PARTITION_MAPS): New macro.
15403 (grub_partition_map_iterate): Removed.
15404 (grub_partition_get_start): Handle nested partitions.
15405 * include/grub/msdos_partition.h: Remove bsd-related entries.
15406 (grub_pc_partition): Remove.
15407 * kern/disk.c (grub_disk_close): Free partition data.
15408 (grub_disk_adjust_range): Handle nested partitions.
15409 * kern/partition.c (grub_partition_map_probe): New function.
15410 (grub_partition_probe): Parse name to number, handle subpartitions.
15411 (get_partmap): New function.
15412 (grub_partition_iterate): Handle subpartitions.
15413 (grub_partition_get_name): Likewise.
15414 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
15415 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
15416 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
15417 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
15418 Set 'number'.
15419 (acorn_partition_map_probe): Remove.
15420 (acorn_partition_map_get_name): Likewise.
15421 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
15422 Set 'number'.
15423 Set 'index' to 0 since there can be only one partition entry per sector.
15424 (amiga_partition_map_probe): Remove.
15425 (amiga_partition_map_get_name): Likewise.
15426 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
15427 Set 'number'.
15428 Set 'offset' and 'index' to real positions of partitions.
15429 (apple_partition_map_probe): Remove.
15430 (apple_partition_map_get_name): Likewise.
15431 * partmap/bsdlabel.c: New file.
15432 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
15433 Set 'number'.
15434 Allocate 'data' so it can be correctly freed.
15435 Set 'index' to offset inside sector.
15436 (gpt_partition_map_probe): Remove.
15437 (gpt_partition_map_get_name): Likewise.
15438 * partmap/msdos.c (grub_partition_parse): Remove.
15439 (pc_partition_map_iterate): Don't force raw access.
15440 Set 'number'.
15441 Make 'ext_offset' a local variable.
15442 (pc_partition_map_probe): Remove.
15443 (pc_partition_map_get_name): Remove.
15444 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
15445 Set 'number'.
15446 (sun_partition_map_probe): Remove.
15447 (sun_partition_map_get_name): Likewise.
15448 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
15449 (grub_pcpart_type): Likewise.
15450 * util/hostdisk.c (open_device): Handle new numbering scheme.
15451 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
15452 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
15453 * util/grub-probe.c (probe_partmap): Handle nested paritions.
15454 * util/grub-install.in: Insert all subpartition modules.
15455 * util/ieee1275/grub-install.in: Likewise.
15456
15457 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
15458
15459 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
15460 grammar.
15461
15462 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
15463
15464 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
15465
15466 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
15467
15468 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
15469 match where 'make install' puts them.
15470 * util/i386/efi/grub-install.in: Likewise.
15471
15472 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
15473
15474 * .bzrignore: Add gentrigtables, grub-script-check,
15475 grub_script_check_init.c, grub_script_check_init.h, and
15476 trigtables.c.
15477
15478 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
15479
15480 * kern/parser.c: Indented.
15481
15482 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15483
15484 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
15485
15486 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
15487
15488 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
15489 alpha_mask_size == 0 case.
15490
15491 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
15492
15493 GRUB shell lexer and parser improvements.
15494
15495 * conf/any-emu.rmk: Build rule updates.
15496 * conf/common.rmk: Likewise.
15497 * conf/i386-coreboot.rmk: Likewise.
15498 * conf/i386-efi.rmk: Likewise.
15499 * conf/i386-ieee1275.rmk: Likewise.
15500 * conf/i386-pc.rmk: Likewise.
15501 * conf/powerpc-ieee1275.rmk: Likewise.
15502 * conf/x86_64-efi.rmk: Likewise.
15503
15504 * configure.ac: Configure check for flex.
15505
15506 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
15507 types.
15508 (grub_lexer_param): Struct member updates.
15509 (grub_parser_param): Likewise.
15510 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
15511 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
15512 (grub_script_lexer_init): Prototype update.
15513 (grub_script_lexer_record_start): Likewise.
15514 (grub_script_lexer_record_stop): Likewise.
15515 (grub_script_lexer_yywrap): New function prototype.
15516 (grub_script_lexer_fini): Likewise.
15517 (grub_script_execute_argument_to_string): Removed by...
15518 (grub_script_execute_argument_to_argv): ...better version.
15519
15520 * script/execute.c (ROUND_UPTO): New macro.
15521 (grub_script_execute_cmdline): Out of memory fixes.
15522 (grub_script_execute_menuentry): Likewise.
15523 (grub_script_execute_argument_to_string): Removed. Update all
15524 users by...
15525 (grub_script_execute_argument_to_argv): ...better version.
15526 * script/function.c (grub_script_function_create): Use
15527 grub_script_execute_argument_to_argv instead of
15528 grub_script_execute_argument_to_string.
15529
15530 * script/lexer.c (check_varstate): Removed.
15531 (check_textstate): Removed.
15532 (grub_script_lexer_record_start): Likewise.
15533 (grub_script_lexer_record_stop): Likewise.
15534 (recordchar): Replaced with...
15535 (grub_script_lexer_record): ...new function.
15536 (nextchar): Removed.
15537 (grub_script_lexer_init): Rewritten.
15538 (grub_script_yylex): Rewritten.
15539 (append_newline): New function.
15540 (grub_script_lexer_yywrap): New function.
15541 (grub_script_lexer_fini): New function.
15542 (grub_script_yyerror): Sets error flag.
15543
15544 * script/yylex.l: New file.
15545 (grub_lexer_yyfree): Wrapper for flex yyffre.
15546 (grub_lexer_yyalloc): Likewise.
15547 (grub_lexer_yyrealloc): Likewise.
15548 * script/parser.y: Refactored.
15549
15550 * script/script.c (grub_script_arg_add): Out of memory fixes.
15551 (grub_script_add_arglist): Likewise.
15552 (grub_script_create_cmdline): Likewise.
15553 (grub_script_create_cmdmenu): Likewise.
15554 (grub_script_add_cmd): Likewise.
15555 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
15556 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
15557 unnecessary code.
15558
15559 * tests/grub_script_echo1.in: New testcase.
15560 * tests/grub_script_vars1.in: New testcase.
15561 * tests/grub_script_echo_keywords.in: New testcase.
15562
15563 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15564
15565 Remove some redundancy in build system.
15566
15567 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
15568 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
15569 (TARGET_LDFLAGS): Add -nostdlib.
15570 (TARGET_IMG_LDFLAGS): Likewise.
15571 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
15572 anything since mmap isn't available.
15573 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
15574 Add util/time.c.
15575 (pkglib_MODULES): Remove reboot.mod.
15576 (reboot_mod_SOURCES): Removed.
15577 (reboot_mod_CFLAGS): Likewise.
15578 (reboot_mod_LDFLAGS): Likewise.
15579 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
15580 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
15581 (DEFSYMFILES): Add kernel_syms.lst.
15582 (kernel_img_HEADERS): Add common headers.
15583 (symlist.c): New target.
15584 (kernel_syms.lst): Likewise.
15585 (pkglib_MODULES): Add memdisk.mod.
15586 (memdisk_mod_SOURCES): New variable.
15587 (memdisk_mod_CFLAGS): Likewise.
15588 (memdisk_mod_LDFLAGS): Likewise.
15589 (pkglib_MODULES): Add reboot.mod.
15590 (reboot_mod_SOURCES): New variable.
15591 (reboot_mod_CFLAGS): Likewise.
15592 (reboot_mod_LDFLAGS): Likewise.
15593 (pkglib_MODULES): Add date.mod.
15594 (date_mod_SOURCES): New variable.
15595 (date_mod_CFLAGS): Likewise.
15596 (date_mod_LDFLAGS): Likewise.
15597 (pkglib_MODULES): Add datehook.mod.
15598 (datehook_mod_SOURCES): New variable.
15599 (datehook_mod_CFLAGS): Likewise.
15600 (datehook_mod_LDFLAGS): Likewise.
15601 (pkglib_MODULES): Add lsmmap.mod.
15602 (lsmmap_mod_SOURCES): New variable.
15603 (lsmmap_mod_CFLAGS): Likewise.
15604 (lsmmap_mod_LDFLAGS): Likewise.
15605 (pkglib_MODULES): Add boot.mod.
15606 (boot_mod_SOURCES): New variable.
15607 (boot_mod_CFLAGS): Likewise.
15608 (boot_mod_LDFLAGS): Likewise.
15609 * conf/i386-coreboot.rmk: Removed redundant parts.
15610 * conf/i386-ieee1275.rmk: Likewise.
15611 * conf/i386-pc.rmk: Likewise.
15612 * conf/mips-yeeloong.rmk: Likewise.
15613 * conf/mips.rmk: Likewise.
15614 * conf/powerpc-ieee1275.rmk: Likewise.
15615 * conf/sparc64-ieee1275.rmk: Likewise.
15616 * conf/x86_64-efi.rmk: Likewise.
15617 * conf/i386-coreboot.rmk: Moved qemu parts ..
15618 * conf/i386-qemu.rmk: ... here
15619 * conf/i386-efi.rmk: Moved common parts to...
15620 * conf/x86-efi.rmk: ... here.
15621 * conf/i386.rmk: Added modules common to all x86 variants.
15622 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
15623 * disk/memdisk.c: Remove grub/machine/kernel.h.
15624 * gensymlist.sh.in: Include symbol.h.
15625 * hook/datehook.c: Correct module name.
15626 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
15627 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
15628 * include/grub/i386/efi/serial.h: New file.
15629 * include/grub/x86_64/efi/serial.h: Likewise.
15630 * util/time.c: Likewise.
15631 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
15632
15633 2010-03-14 Colin King <colin.king@ubuntu.com>
15634 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15635
15636 Shrink the pre-partition-table part of boot.img by eight bytes.
15637
15638 * boot/i386/pc/boot.S (ERR): New macro.
15639 (chs_mode): Use ERR.
15640 (geometry_error): Likewise.
15641 (hd_probe_error): Remove. This is only used once, so we wrwite
15642 it inline instead.
15643 (read_error): Instead of printing read_error_string, just set up
15644 %si and fall through to ...
15645 (error_message): ... this new function, also used by ERR.
15646
15647 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
15648
15649 Speed up consecutive hostdisk operations on the same device.
15650
15651 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
15652 (grub_util_biosdisk_open): Initialise disk->data.
15653 (struct linux_partition_cache): New structure.
15654 (linux_find_partition): Cache partition start positions; these are
15655 expensive to compute on every read and write.
15656 (open_device): Cache open file descriptor in disk->data, so that we
15657 don't have to reopen it and flush the buffer cache for consecutive
15658 operations on the same device.
15659 (grub_util_biosdisk_close): New function.
15660 (grub_util_biosdisk_dev): Set `close' member.
15661
15662 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
15663 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
15664 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15665 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
15666 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
15667
15668 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15669
15670 Compile parts of grub-emu as modules.
15671
15672 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
15673 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
15674 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
15675 (all-local): Add $(GRUB_EMU).
15676 (install-local): Install $(GRUB_EMU).
15677 (uninstall): Uninstall $(GRUB_EMU).
15678 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
15679 * kern/dl.c: Likewise.
15680 * commands/sleep.c: Not include machine/time.h.
15681 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
15682 (COMMON_CFLAGS): Likewise.
15683 (sbin_UTILITIES): Remove grub-emu.
15684 (grub_emu_SOURCES): Removed.
15685 (kernel_img_RELOCATABLE): New variable.
15686 (pkglib_PROGRAMS): Add kernel.img.
15687 (kernel_img_SOURCES): New variable
15688 (kernel_img_CFLAGS): Likewise.
15689 (kernel_img_LDFLAGS): Likewise.
15690 (TARGET_NO_STRIP): Likewise.
15691 (TARGET_NO_DYNAMIC_MODULES): Likewise.
15692 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
15693 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
15694 (grub-emu): New target.
15695 (GRUB_EMU): New variable.
15696 * configure.ac: Whitelist -emu as possible x86_64 architecture.
15697 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
15698 * loader/xnu.c: Likewise.
15699 * include/grub/pci.h: Likewise.
15700 * genemuinit.sh: New file.
15701 * genemuinitheader.sh: Likewise.
15702 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
15703 Support TARGET_NO_DYNAMIC_MODULES.
15704 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
15705 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
15706 * disk/loopback.c: Likewise.
15707 * font/font_cmd.c: Likewise.
15708 * partmap/acorn.c: Likewise.
15709 * partmap/amiga.c: Likewise.
15710 * partmap/apple.c: Likewise.
15711 * partmap/gpt.c: Likewise.
15712 * partmap/msdos.c: Likewise.
15713 * partmap/sun.c: Likewise.
15714 * parttool/msdospart.c: Likewise.
15715 * term/gfxterm.c: Likewise.
15716 * video/bitmap.c: Likewise.
15717 * video/readers/jpeg.c: Likewise.
15718 * video/readers/png.c: Likewise.
15719 * video/readers/tga.c: Likewise.
15720 * video/video.c: Likewise.
15721 * util/grub-emu.c (read_command_list): Removed.
15722 (main): Don't call util_init_nls.
15723 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
15724 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
15725
15726 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15727
15728 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
15729 date.mod, datehook.mod.
15730 (datetime_mod_SOURCES): New variable.
15731 (datetime_mod_CFLAGS): Likewise.
15732 (datetime_mod_LDFLAGS): Likewise.
15733 (date_mod_SOURCES): Likewise.
15734 (date_mod_CFLAGS): Likewise.
15735 (date_mod_LDFLAGS): Likewise.
15736 (datehook_mod_SOURCES): Likewise.
15737 (datehook_mod_CFLAGS): Likewise.
15738 (datehook_mod_LDFLAGS): Likewise.
15739 * conf/sparc64-ieee1275.rmk: Likewise.
15740 * lib/ieee1275/datetime.c: New file.
15741
15742 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15743
15744 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
15745 (ieee1275_fb_mod_SOURCES): New variable.
15746 (ieee1275_fb_mod_CFLAGS): Likewise.
15747 (ieee1275_fb_mod_LDFLAGS): Likewise.
15748 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
15749 New proto.
15750 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
15751 (HEAP_MAX_ADDR): Likewise.
15752 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
15753 type.
15754 Correct stop condition.
15755 (grub_ieee1275_devices_iterate): New function.
15756 * video/ieee1275.c: New file.
15757
15758 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
15759
15760 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
15761
15762 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
15763 as scratch.
15764 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
15765 SCRATCH_PAD_DISKBOOT as scratch.
15766 (bootit): Pass Openfirmware pointer in %o4.
15767 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
15768 of 0x200000.
15769 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
15770 with util/grub-mkrawimage.c.
15771 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
15772 * include/grub/aout.h (AOUT_MID_SUN): New definition.
15773 (grub_aout_get_type) [GRUB_UTIL]: Removed.
15774 (grub_aout_load) [GRUB_UTIL]: Likewise.
15775 * include/grub/kernel.h (grub_modules_get_end): New proto.
15776 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
15777 (SCRATCH_PAD_BOOT): New definition.
15778 (SCRATCH_PAD_DISKBOOT): Likewise.
15779 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
15780 * include/grub/sparc64/ieee1275/ieee1275.h
15781 (grub_ieee1275_original_stack): New variable
15782 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
15783 New definition
15784 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
15785 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
15786 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
15787 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
15788 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
15789 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
15790 (grub_platform_image_format_t): New type.
15791 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
15792 * kern/main.c (grub_modules_get_end)
15793 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
15794 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
15795 (codestart): Switch stacks.
15796 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
15797 variable.
15798 (grub_heap_init): Use grub_modules_get_end.
15799 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
15800 stack.
15801 * util/grub-mkrawimage.c (generate_image): Support sparc64.
15802 (main): Likewise.
15803 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
15804
15805 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
15806
15807 * util/grub-mkrescue.in: Base ISO UUID on UTC.
15808
15809 2010-03-08 Matt Kraai <kraai@ftbfs.org>
15810
15811 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
15812 bug #559005).
15813
15814 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
15815
15816 * genmoddep.awk: Output all missing symbols and not only first.
15817
15818 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15819
15820 * NEWS: Put the date of 1.98 release.
15821
15822 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15823
15824 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
15825 ft2build.h.
15826
15827 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15828
15829 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
15830 completition in the middle of string.
15831
15832 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15833
15834 * util/grub-mkrescue.in: Use mktemp with explicit template.
15835
15836 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15837
15838 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
15839
15840 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
15841
15842 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
15843 right pointer.
15844
15845 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15846
15847 Fix FreeBSD compilation.
15848
15849 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
15850 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
15851
15852 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
15853
15854 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
15855
15856 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15857
15858 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
15859
15860 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15861
15862 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
15863
15864 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
15865
15866 Support relative image path in theme file.
15867
15868 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
15869 (image_set_property): Handle theme_dir and relative path.
15870
15871 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15872
15873 * configure.ac: Alias amd64 to x86_64.
15874
15875 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15876
15877 * NEWS: mention multiboot on EFI.
15878
15879 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15880
15881 * kern/main.c (grub_load_modules): Handle errors from init functions of
15882 embeded modules.
15883
15884 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15885
15886 * normal/autofs.c (autoload_fs_module): Handle errors.
15887
15888 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15889
15890 Disable linux.mod on qemu-mips since it's not functional and leads
15891 to compilation failure.
15892
15893 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
15894 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
15895 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
15896 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
15897 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
15898 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
15899 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
15900 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
15901 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
15902 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
15903 Reported by: BVK Chaitanya
15904
15905 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
15906
15907 * INSTALL: Add gettext as a dependency and add qemu to a new section
15908 "Prerequisites for make-check".
15909
15910 2010-03-04 Christian Franke <franke@computer.org>
15911
15912 * util/grub-pe2elf.c: Add missing include "progname.h".
15913
15914 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15915
15916 * normal/crypto.c (read_crypto_list): Fix a typo.
15917 Reported by: Seth Goldberg.
15918
15919 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15920
15921 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
15922 Reported by: Seth Goldberg.
15923
15924 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15925
15926 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
15927 ascii.bitmaps.
15928
15929 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15930
15931 * genmk.rb: Remove terminal*.lst in make clean.
15932 Reported by: Seth Goldberg.
15933
15934 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
15935
15936 * util/i386/efi/grub-install.in: Copy gettext files.
15937
15938 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15939
15940 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
15941
15942 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15943
15944 Wait for user entry basing on presence of output rather than on errors.
15945
15946 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
15947 (grub_install_newline_hook): Likewise.
15948 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
15949 * normal/menu.c (show_menu): Check line_counter to determine presence
15950 of output.
15951 * normal/term.c (grub_normal_line_counter): New variable.
15952 (grub_normal_get_line_counter): New function.
15953 (grub_install_newline_hook): Likewise.
15954
15955 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15956
15957 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
15958
15959 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
15960
15961 * configure.ac: Update version to 1.98.
15962
15963 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
15964
15965 * util/grub.d/10_linux.in (linux_entry): Don't default to
15966 gfxpayload=keep if Linux doesn't support video handover.
15967
15968 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
15969
15970 Don't compile video modules on yeeloong since video subsystem is part
15971 of kernel.
15972
15973 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
15974 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
15975 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
15976 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
15977 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
15978 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
15979 * include/grub/bitmap_scale.h: Likewise.
15980 * include/grub/bufio.h: Likewise.
15981 * include/grub/font.h: Likewise.
15982 * include/grub/gfxterm.h: Likewise.
15983 * include/grub/video.h: Likewise.
15984 * include/grub/vbe.h: Don't include video_fb.h.
15985 * video/i386/pc/vbe.c: Include video_fb.h.
15986 * commands/i386/pc/vbetest.c: Include video.h.
15987
15988 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
15989
15990 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
15991 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
15992 default entry if GRUB_SAVEDEFAULT=true. This allows using
15993 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
15994 saving a new default on every boot.
15995
15996 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
15997
15998 * normal/crypto.c (read_crypto_list): Fix a memory leak.
15999 * normal/term.c (read_terminal_list): Likewise.
16000 * normal/main.c (grub_normal_init_page): Likewise.
16001 (grub_normal_read_line_real): Likewise.
16002
16003 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
16004
16005 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
16006 memory leak.
16007 Reported by: Seth Goldberg.
16008
16009 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
16010
16011 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
16012 duplicate declaration of `start'.
16013
16014 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
16015
16016 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
16017 filename.
16018 Reported by: Georgy Buranov
16019
16020 2010-02-20 Carles Pina i Estany <carles@pina.cat>
16021
16022 * util/grub-mkrawimage.c (usage): Change string formatting to
16023 improve gettext.
16024
16025 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
16026
16027 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
16028 backspace keys.
16029
16030 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
16031
16032 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
16033 Reported by: Michael Suchanek.
16034
16035 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
16036
16037 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
16038 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
16039
16040 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
16041
16042 Remove any reference to non-free fonts.
16043
16044 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
16045 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
16046 uses non-free components.
16047 * font/font.c (grub_font_get_name): Remove example name.
16048 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
16049 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
16050 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
16051 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
16052
16053 2010-02-16 Georgy Buranov <gburanov@gmail.com>
16054
16055 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
16056
16057 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
16058
16059 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
16060 Double divisor.
16061 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
16062 features.
16063 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
16064
16065 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
16066
16067 * gensymlist.sh.in: Use TARGET_CC instead of CC.
16068
16069 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16070
16071 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
16072 * docs/grub.texi (Command-line and menu entry commands): Document play
16073 command.
16074
16075 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16076
16077 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
16078 parse arguments as inline tempo and notes. Move code for playing notes
16079 to...
16080 (play): ... new function.
16081
16082 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
16083
16084 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
16085 grub_uint16_t instead of short.
16086 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
16087 disk from little endian to cpu endianness.
16088
16089 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
16090
16091 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
16092 GRUB_TICKS_PER_SECOND instead of 120.
16093
16094 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16095
16096 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
16097 escape sequence after \e.
16098
16099 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16100
16101 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
16102 non-ASCII characters.
16103
16104 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16105
16106 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
16107 set root in single quotes to prevent \, from being unescaped.
16108
16109 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16110
16111 Prevent unknown commands from stopping menuentry execution.
16112
16113 * script/execute.c (grub_script_execute_cmdline): Print error after
16114 unknown command.
16115
16116 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
16117
16118 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
16119 Reported by: Pavel Pisa.
16120
16121 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16122
16123 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
16124
16125 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16126
16127 Merge grub_ieee1275_map_physical into grub_map and rename to
16128 grub_ieee1275_map
16129
16130 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
16131 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
16132 Remove.
16133 * kern/ieee1275/openfw.c (grub_map): Rename to ...
16134 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
16135 necessary.
16136 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
16137
16138 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16139
16140 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
16141 opening and not after.
16142
16143 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16144
16145 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
16146 constants.
16147
16148 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16149
16150 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
16151 (alloc_phys): Use ALIGN_UP instead of align_addr.
16152
16153 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16154
16155 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
16156
16157 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16158
16159 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
16160
16161 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16162
16163 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
16164 verbose dprintf.
16165
16166 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16167
16168 Fix over-4GiB seek on sparc64.
16169
16170 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
16171 Replace pos_i and pos_lo with pos. All users updated.
16172 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
16173 New constant.
16174 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
16175 Likewise.
16176 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
16177 and pos_lo.
16178
16179 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16180
16181 * util/grub-mkrawimage.c (main): Call set_program_name.
16182
16183 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16184
16185 Properly align 64-bit targets.
16186
16187 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
16188 (generate_image): Use ALIGN_ADDR.
16189
16190 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16191
16192 Properly create cross-endian images.
16193
16194 * include/grub/types.h (grub_host_to_target_addr): New macro
16195 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
16196
16197 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
16198
16199 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
16200
16201 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
16202
16203 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
16204
16205 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
16206 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
16207 (grub_linux_boot): Divide by 64K when on VESA.
16208
16209 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
16210
16211 Support GRUB_GFXPAYLOAD_LINUX.
16212
16213 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
16214 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
16215
16216 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
16217
16218 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
16219 to show messages instead of discarding them.
16220 Process errors after executing command and not before. Keep old method
16221 too as precaution.
16222
16223 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
16224
16225 * configure.ac: Check for ft2build.h.
16226
16227 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16228
16229 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
16230
16231 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16232
16233 * genkernsyms.sh.in: Use TARGET_CC.
16234
16235 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
16236
16237 * NEWS: Update.
16238
16239 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16240
16241 * include/grub/multiboot2.h: Remove leftover file.
16242 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
16243 * include/grub/partition.h [GRUB_UTIL]: Likewise.
16244
16245 2010-02-07 Yves Blusseau <blusseau@zetam.org>
16246
16247 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
16248
16249 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16250
16251 Fix warnings in grub-emu when compiling with maximum warning options.
16252
16253 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
16254 (grub_arch_modules_addr): Return 0 and not NULL.
16255 * util/misc.c (ENABLE_RELOCATABLE): New definition.
16256 (xstrdup): Use newstr instead of dup.
16257 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
16258 of disk to dsk to avoid shadowing.
16259 (find_free_slot): Fix prototype.
16260 * util/getroot.c (grub_util_is_dmraid): Make static.
16261 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
16262 Add missing prototype.
16263 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
16264
16265 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16266
16267 * loader/i386/linux.c (grub_linux_setup_video): Handle error
16268 appropriately.
16269
16270 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16271
16272 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
16273 code out.
16274
16275 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16276
16277 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
16278 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
16279 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
16280 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
16281 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
16282 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
16283
16284 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16285
16286 * include/grub/err.h (grub_err_printf): Don't export.
16287
16288 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16289
16290 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
16291
16292 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
16293
16294 * include/grub/i18n.h (grub_gettext_dummy): Removed.
16295 * kern/misc.c (grub_gettext_dummy): Make static.
16296
16297 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16298
16299 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
16300 by non-valid ones.
16301 * kern/term.c (grub_putchar): Likewise.
16302
16303 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16304
16305 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
16306 buggy hook call and memory leak.
16307
16308 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16309
16310 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
16311
16312 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16313
16314 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
16315
16316 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16317
16318 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
16319 modevar.
16320 Return grub_errno on allocation error.
16321
16322 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16323
16324 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
16325
16326 2010-02-06 Yves Blusseau <blusseau@zetam.org>
16327
16328 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
16329 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
16330
16331 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16332
16333 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
16334 non-pxe disk.
16335 (grub_pxefs_open): Likewise.
16336
16337 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16338
16339 * util/grub.d/10_hurd.in: Add --class information to menuentries.
16340 * util/grub.d/10_kfreebsd.in: Likewise.
16341 * util/grub.d/10_linux.in: Likewise.
16342
16343 2010-02-06 Colin D Bennett <colin@gibibit.com>
16344
16345 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
16346 (gfxmenu_mod_SOURCES): New variable.
16347 (gfxmenu_mod_CFLAGS): Likewise.
16348 (gfxmenu_mod_LDFLAGS): Likewise.
16349 * include/grub/term.h (grub_term_set_current_output): Declare
16350 argument as const.
16351 * docs/gfxmenu-theme-example.txt: New file.
16352 * gfxmenu/gfxmenu.c: Likewise.
16353 * gfxmenu/gui_box.c: Likewise.
16354 * gfxmenu/gui_canvas.c: Likewise.
16355 * gfxmenu/gui_circular_progress.c: Likewise.
16356 * gfxmenu/gui_image.c: Likewise.
16357 * gfxmenu/gui_label.c: Likewise.
16358 * gfxmenu/gui_list.c: Likewise.
16359 * gfxmenu/gui_progress_bar.c: Likewise.
16360 * gfxmenu/gui_string_util.c: Likewise.
16361 * gfxmenu/gui_util.c: Likewise.
16362 * gfxmenu/icon_manager.c: Likewise.
16363 * gfxmenu/model.c: Likewise.
16364 * gfxmenu/named_colors.c: Likewise.
16365 * gfxmenu/theme_loader.c: Likewise.
16366 * gfxmenu/view.c: Likewise.
16367 * gfxmenu/widget-box.c: Likewise.
16368 * include/grub/gfxmenu_model.h: Likewise.
16369 * include/grub/gfxmenu_view.h: Likewise.
16370 * include/grub/gfxwidgets.h: Likewise.
16371 * include/grub/gui.h: Likewise.
16372 * include/grub/gui_string_util.h: Likewise.
16373 * include/grub/icon_manager.h: Likewise.
16374
16375 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16376
16377 Agglomerate scrolling in gfxterm.
16378
16379 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
16380 (grub_virtual_screen_setup): Initialise 'total_screen'.
16381 (write_char): Split to ...
16382 (paint_char): ... this ...
16383 (write_char): ... and this.
16384 (paint_char): Handle delayed scrolling.
16385 (draw_cursor): Likewise.
16386 (scroll_up): Split to ...
16387 (real_scroll): ... this ...
16388 (scroll_up): ... and this.
16389 (real_scroll): Handle multi-line scroll and draw below-the-bottom
16390 characters.
16391 (grub_gfxterm_refresh): Call real_scroll.
16392
16393 2010-02-06 Colin D Bennett <colin@gibibit.com>
16394
16395 * include/grub/misc.h (grub_iscntrl): New inline function.
16396 (grub_isalnum): Likewise.
16397 (grub_strtol): Likewise.
16398
16399 2010-02-06 Colin D Bennett <colin@gibibit.com>
16400
16401 * normal/menu_text.c (get_entry_number): Move from here ...
16402 * normal/menu.c (get_entry_number): ... moved here.
16403 * include/grub/menu.h (grub_menu_get_default_entry_index):
16404 New prototype.
16405 * normal/menu.c (grub_menu_get_default_entry_index): New function.
16406 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
16407 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
16408 (grub_menu_viewer_should_return): Likewise.
16409 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
16410 * normal/menu_text.c (run_menu): Enable menu switching.
16411 * normal/menu_viewer.c (should_return): New variable.
16412 (menu_viewer_changed): Likewise.
16413 (grub_menu_viewer_show_menu): Handle menu viewer changes.
16414 (grub_menu_viewer_should_return): New function.
16415 (menuviewer_write_hook): Likewise.
16416 (grub_menu_viewer_init): Likewise.
16417
16418 2010-02-06 Colin D Bennet <colin@gibibit.com>
16419 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16420
16421 Support for gfxterm in a window.
16422
16423 * include/grub/gfxterm.h: New file.
16424 * include/grub/video.h (struct grub_video_rect): New declaration.
16425 (grub_video_rect_t): Likewise.
16426 * term/gfxterm.c (struct grub_gfxterm_window): New type.
16427 (refcount): New variable.
16428 (render_target): Likewise.
16429 (window): Likewise.
16430 (repaint_callback): Likewise.
16431 (grub_virtual_screen_setup): Use 'render_target'.
16432 (init_window): New function.
16433 (grub_gfxterm_init_window): Likewise.
16434 (grub_gfxterm_init): Check reference counter.
16435 Use init_window.
16436 (destroy_window): New function.
16437 (grub_gfxterm_destroy_window): Likewise.
16438 (grub_gfxterm_fini): Check reference counter.
16439 Use destroy_window.
16440 (redraw_screen_rect): Restore viewport.
16441 Use 'render_target' and 'window'.
16442 Call 'repaint_callback'.
16443 (write_char): Use 'render_target'.
16444 (draw_cursor): Likewise.
16445 (scroll_up): Restore viewport.
16446 Use 'render_target' and 'window'.
16447 Call 'repaint_callback'.
16448 (grub_gfxterm_cls): Likewise.
16449 (grub_gfxterm_refresh): Use 'window'.
16450 (grub_gfxterm_set_repaint_callback): New function.
16451 (grub_gfxterm_background_image_cmd): Use 'window'.
16452 (grub_gfxterm_get_term): New function.
16453 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
16454
16455 2010-02-06 Colin D Bennett <colin@gibibit.com>
16456
16457 Bitmap scaling support.
16458
16459 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
16460 (bitmap_scale_mod_SOURCES): New variable.
16461 (bitmap_scale_mod_CFLAGS): Likewise.
16462 (bitmap_scale_mod_LDFLAGS): Likewise.
16463 * include/grub/bitmap_scale.h: New file.
16464 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
16465 (background_image_cmd_options): New variable.
16466 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
16467 (cmd): Rename and change type to ...
16468 (background_image_cmd_handle): ... this. All users updated.
16469 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
16470 * video/bitmap_scale.c: New file.
16471
16472 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16473
16474 SDL support.
16475
16476 * Makefile.in (LIBSDL): New variable.
16477 (enable_grub_emu_sdl): Likewise.
16478 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
16479 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
16480 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
16481 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
16482 * util/sdl.c: New file.
16483
16484 2010-02-06 Colin D Bennett <colin@gibibit.com>
16485 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16486
16487 Double buffering support.
16488
16489 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
16490 * include/grub/video.h: Update comment.
16491 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
16492 New type.
16493 (grub_video_fb_doublebuf_blit_init): New prototype.
16494 * term/gfxterm.c (scroll_up): Support double buffering.
16495 (grub_gfxterm_refresh): Likewise.
16496 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
16497 (grub_video_fb_doublebuf_blit_init): Likewise.
16498 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
16499 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
16500 'displayed_page', 'render_page' and 'update_screen'.
16501 (grub_video_vbe_fini): Free offscreen buffer.
16502 (doublebuf_pageflipping_commit): New function.
16503 (doublebuf_pageflipping_update_screen): Likewise.
16504 (doublebuf_pageflipping_init): Likewise.
16505 (double_buffering_init): Likewise.
16506 (grub_video_vbe_setup): Enable doublebuffering.
16507 (grub_video_vbe_swap_buffers): Implement.
16508 (grub_video_vbe_set_active_render_target): Handle double buffering.
16509 (grub_video_vbe_get_active_render_target): Likewise.
16510 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
16511 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
16512 (grub_video_vbe_enable_double_buffering): Likewise.
16513 (grub_video_vbe_swap_buffers): Use update_screen.
16514 (grub_video_set_mode): Use double buffering.
16515
16516 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16517
16518 * maintainance/gentrigtables.py: Remove.
16519 * lib/trig.c: Likewise.
16520
16521 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
16522
16523 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
16524 `trigtables.c'.
16525 (trigtables.c): New rule.
16526 (gentrigtables): Likewise.
16527 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
16528
16529 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
16530
16531 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
16532 integer constants.
16533
16534 2010-02-06 Colin D Bennet <colin@gibibit.com>
16535
16536 Trigonometry support.
16537
16538 * include/grub/trig.h: New file.
16539 * lib/trig.c: Likewise.
16540 * maintainance/gentrigtables.py: Likewise.
16541 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
16542 (trig_mod_SOURCES): New variable.
16543 (trig_mod_CFLAGS): Likewise.
16544 (trig_mod_LDFLAGS): Likewise.
16545
16546 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16547
16548 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
16549 disk devices.
16550
16551 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
16552
16553 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
16554 error.
16555
16556 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16557
16558 * util/hostdisk.c (open_device): Don't use partition device when reading
16559 before the partition.
16560 (grub_util_biosdisk_read): Don't read from partition and before the
16561 partition in single operation.
16562 (grub_util_biosdisk_write): Don't write to partition and before the
16563 partition in single operation.
16564
16565 2010-02-03 Torsten Landschoff <torsten@debian.org>
16566
16567 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16568 last sectors.
16569
16570 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
16571
16572 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
16573 CDROM reads.
16574 (grub_biosdisk_write): Refuse to write to CDROM.
16575
16576 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16577
16578 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
16579
16580 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
16581
16582 * font/font.c (find_glyph): Check that bmp_idx is available before
16583 using it.
16584 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
16585 with (font == NULL).
16586
16587 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
16588
16589 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
16590
16591 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
16592
16593 * include/grub/script_sh.h (sourcecode): Add const qualifier.
16594 * util/grub-script-check.c (getline): Fix empty lines case.
16595
16596 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
16597
16598 * Makefile.in (check): Exit with fail status when one of the tests
16599 fails.
16600 * tests/example_functional_test.c (example_test): Fix reversed assert.
16601 * tests/example_unit_test.c (example_test): Likewise.
16602
16603 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
16604
16605 * util/grub.d/10_linux.in: This script does not use any of the
16606 contents of gettext.sh, only the external command `gettext', so stop
16607 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
16608 the same prefix as GRUB.)
16609 * util/grub.d/10_kfreebsd.in: Likewise.
16610
16611 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16612
16613 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
16614 of the line.
16615
16616 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16617
16618 * kern/disk.c (grub_disk_read): Fix offset computation when reading
16619 last sectors.
16620
16621 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
16622
16623 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
16624 having a 4KiB and not 32KiB buffer size.
16625
16626 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16627
16628 * util/hostfs.c: Include `<errno.h>'.
16629 (grub_hostfs_read): Handle errors from fseeko() and fread().
16630
16631 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16632
16633 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
16634 loop when using read hooks on files whose size isn't sector-aligned.
16635
16636 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16637
16638 Remove unused parameter.
16639
16640 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
16641 (grub_iso9660_open): Remove initialization of `data->length'.
16642
16643 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
16644
16645 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
16646 memleak conditions.
16647
16648 2010-01-27 Carles Pina i Estany <carles@pina.cat>
16649
16650 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
16651 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
16652
16653 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16654
16655 * util/bin2h.c (usage): Fix warning (space after backslash).
16656
16657 2010-01-26 Carles Pina i Estany <carles@pina.cat>
16658
16659 * font/font.c: Include `grub/fontformat.h.
16660 Remove font file format constants.
16661 (grub_font_load): Use the new macros.
16662 * include/grub/fontformat.h: New file.
16663 * util/grub-mkfont.c: Include `grub/fontformat.c'.
16664 (write_font_pf2): Use the new macros.
16665
16666 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16667
16668 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
16669 does.
16670
16671 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
16672
16673 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
16674
16675 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
16676 (_start): Macroify `0x7F'.
16677
16678 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
16679 (make_install_device): Use "(pxe)" as fallback prefix when booting
16680 via PXE.
16681
16682 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
16683
16684 * configure.ac: Reset LIBS after check for libgcc symbols.
16685
16686 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
16687
16688 * util/hostdisk.c (open_device): Add trailing newline to debug
16689 message.
16690
16691 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
16692
16693 * configure.ac: Check for `limits.h'.
16694 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
16695
16696 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
16697
16698 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
16699 capitalize error strings.
16700
16701 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
16702
16703 * util/grub.d/10_hurd.in: Add a recovery mode.
16704
16705 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
16706
16707 * configure.ac: Check for libgcc symbols with -nostdlib.
16708
16709 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
16710
16711 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
16712
16713 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16714
16715 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
16716 stack since heap may be unavailable at that point.
16717 (grub_ofconsole_gotoxy): Likewise.
16718
16719 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16720
16721 * configure.ac: Check for _restgpr_14_x.
16722 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
16723 and _savegpr_* prototypes.
16724
16725 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
16726
16727 Use generic grub_reboot() for i386-efi.
16728
16729 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
16730 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
16731 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
16732
16733 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
16734
16735 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
16736 presence of "prefix" variable as it breaks when normal.mod is
16737 embedded.
16738
16739 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16740
16741 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
16742 stack since heap is unavailable at that point.
16743
16744 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16745
16746 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
16747 (grub_freebsd_bootinfo): Rewritten.
16748 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
16749
16750 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
16751
16752 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
16753
16754 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
16755
16756 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
16757 domain now.
16758
16759 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
16760
16761 * util/misc.c (make_system_path_relative_to_its_root): Change the work
16762 around for handling "/" to the correct fix. Fix a memory leak. Use
16763 xstrdup instead of strdup.
16764
16765 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16766
16767 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
16768
16769 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16770
16771 Optimise glyph lookup by Basic Multilingual Plane lookup array.
16772
16773 * font/font.c (struct grub_font): New member 'bmp_idx'.
16774 (font_init): Initialise 'bmp_idx'.
16775 (load_font_index): Fill 'bmp_idx'.
16776 (find_glyph): Make inline. Use bmp_idx for BMP characters.
16777
16778 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16779
16780 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
16781 unnecessary calls.
16782
16783 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16784
16785 Move context handling out of the kernel.
16786
16787 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
16788 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
16789 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
16790 * conf/i386-efi.rmk: Likewise.
16791 * conf/i386-ieee1275.rmk: Likewise.
16792 * conf/i386-pc.rmk: Likewise.
16793 * conf/powerpc-ieee1275.rmk: Likewise.
16794 * conf/sparc64-ieee1275.rmk: Likewise.
16795 * conf/x86_64-efi.rmk: Likewise.
16796 * include/grub/env.h: Include grub/menu.h.
16797 (grub_env_var_type): Removed.
16798 (grub_env_var): Replaced field 'type' with 'global'.
16799 (grub_env_find): New prototype.
16800 (grub_env_context_open): Remove EXPORT_FUNC.
16801 (grub_env_context_close): Likewise.
16802 (grub_env_export): Likewise.
16803 (grub_env_set_data_slot): Removed.
16804 (grub_env_get_data_slot): Likewise.
16805 (grub_env_unset_data_slot): Likewise.
16806 (grub_env_unset_menu): New prototype.
16807 (grub_env_set_menu): Likewise.
16808 (grub_env_get_menu): Likewise.
16809 * include/grub/env_private.h: New file.
16810 * include/grub/normal.h (grub_context_init): New prototype.
16811 (grub_context_fini): Likewise.
16812 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
16813 * normal/context.c (grub_cmd_export): ... to here.
16814 * kern/env.c: Include env_private.h.
16815 (HASHSZ): Moved to include/grub/env_private.h.
16816 (grub_env_context): Likewise.
16817 (grub_env_sorted_var): Likewise.
16818 (current_context): Renamed from this ...
16819 (grub_current_context): ...to this. 'static' removed. All users updated.
16820 (grub_env_find): Removed 'static'.
16821 (grub_env_context_open): Moved to normal/context.c.
16822 (grub_env_context_close): Likewise.
16823 (grub_env_export): Likewise.
16824 (mangle_data_slot_name): Removed.
16825 (grub_env_set_data_slot): Likewise.
16826 (grub_env_get_data_slot): Likewise.
16827 (grub_env_unset_data_slot): Likewise.
16828 * kern/main.c (grub_set_root_dev): Don't export root.
16829 It will be done later.
16830 (grub_main): Don't export prefix.
16831 It will be done later.
16832 * normal/context.c: New file.
16833 * normal/main.c (free_menu): Use grub_env_unset_menu.
16834 (grub_normal_add_menu_entry): Use grub_env_get_menu.
16835 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
16836 (GRUB_MOD_INIT(normal)): Call grub_context_init.
16837 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
16838
16839 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16840
16841 setpci support.
16842
16843 * commands/setpci.c: New file.
16844 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
16845 (setpci_mod_SOURCES): New variable.
16846 (setpci_mod_CFLAGS): Likewise.
16847 (setpci_mod_LDFLAGS): Likewise.
16848
16849 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16850
16851 Byte-addressable PCI configuration space.
16852
16853 * bus/pci.c (grub_pci_make_address): Use byte address instead of
16854 dword address.
16855 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
16856 GRUB_PCI_REG_CACHELINE.
16857 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
16858 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
16859 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
16860 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
16861 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
16862 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
16863 grub_pci_make_address.
16864 (lock_rom_area): Likewise.
16865 * commands/lspci.c (grub_lspci_iter): Use macroses
16866 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
16867 of grub_pci_make_address.
16868 * disk/ata.c (grub_ata_pciinit): Likewise.
16869 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
16870 (GRUB_PCI_REG_VENDOR): Likewise.
16871 (GRUB_PCI_REG_DEVICE): Likewise.
16872 (GRUB_PCI_REG_COMMAND): Likewise.
16873 (GRUB_PCI_REG_STATUS): Likewise.
16874 (GRUB_PCI_REG_REVISION): Likewise.
16875 (GRUB_PCI_REG_CLASS): Likewise.
16876 (GRUB_PCI_REG_CACHELINE): Likewise.
16877 (GRUB_PCI_REG_LAT_TIMER): Likewise.
16878 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
16879 (GRUB_PCI_REG_BIST): Likewise.
16880 (GRUB_PCI_REG_ADDRESSES): Likewise.
16881 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16882 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16883 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16884 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16885 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16886 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
16887 (GRUB_PCI_REG_CIS_POINTER): Likewise.
16888 (GRUB_PCI_REG_SUBVENDOR): Likewise.
16889 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
16890 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
16891 (GRUB_PCI_REG_CAP_POINTER): Likewise.
16892 (GRUB_PCI_REG_IRQ_LINE): Likewise.
16893 (GRUB_PCI_REG_IRQ_PIN): Likewise.
16894 (GRUB_PCI_REG_MIN_GNT): Likewise.
16895 (GRUB_PCI_REG_MAX_LAT): Likewise.
16896 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
16897 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
16898 * video/efi_uga.c (find_framebuf): Likewise.
16899 * video/sm712.c (grub_video_sm712_setup): Likewise.
16900 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
16901 space.
16902
16903 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16904
16905 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
16906 can be reliably determined to be supported.
16907
16908 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16909
16910 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
16911 that VESA is supported.
16912 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
16913 supported.
16914
16915 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16916
16917 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
16918
16919 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16920
16921 * util/misc.c (make_system_path_relative_to_its_root): Work around
16922 special-casing of "/", as previous incarnation of this routine did.
16923
16924 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16925
16926 Fix any-emu compilation.
16927
16928 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
16929 * grub_bin2h_SOURCES: New variable.
16930
16931 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16932
16933 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
16934
16935 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
16936
16937 * util/grub.d/00_header.in: Fix handling of locale_dir.
16938
16939 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16940
16941 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
16942 as possible unifont location (Gentoo).
16943 Reported by: Alexander Brüning
16944
16945 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16946
16947 Don't try to generate lists for kernel.img.
16948
16949 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
16950 (pkglib_MODULES): Remove kernel.img.
16951 (kernel_img_EXPORTS): Removed.
16952 (kernel_img_RELOCATABLE): New variable.
16953 * conf/x86_64-efi.rmk: Likewise.
16954 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
16955
16956 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16957
16958 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
16959 grub_xasprintf or grub_snprintf.
16960 (grub_vsprintf): Likewise.
16961 (grub_snprintf): New proto.
16962 (grub_vsnprintf): Likewise.
16963 (grub_xasprintf): Likewise.
16964 (grub_xvasprintf): Likewise.
16965 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
16966 (grub_sprintf): Removed.
16967 (grub_vsnprintf): New function.
16968 (grub_snprintf): Likewise.
16969 (grub_xvasprintf): Likewise.
16970 (grub_xasprintf): Likewise.
16971 (grub_vsprintf): Renamed to ...
16972 (grub_vsnprintf_real): ...this. New argument max_len.
16973
16974 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
16975
16976 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
16977 fix grub-script-check warning.
16978
16979 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16980
16981 * include/grub/font.h (grub_font_load): Fix prototype.
16982
16983 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16984
16985 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
16986
16987 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16988
16989 * include/grub/x86_64/at_keyboard.h: New file.
16990
16991 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
16992
16993 * loader/mips/linux.c: Include missing grub/i18n.h.
16994
16995 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
16996
16997 * normal/menu.c (notify_execution_failure): Clarify error message.
16998
16999 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
17000
17001 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
17002 return value (and revert all return statements). Update users.
17003
17004 2010-01-20 Dan Merillat <debian@dan.merillat.org>
17005
17006 * kern/device.c (grub_device_iterate): Allocate new part_ent
17007 structure based on sizeof (*p) rather than sizeof (p->next), to
17008 account for structure padding.
17009
17010 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
17011 disk is NULL, which might happen for LVM physical volumes with no
17012 LVM signature.
17013
17014 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
17015
17016 * loader/mips/linux.c (grub_cmd_initrd)
17017 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
17018
17019 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
17020
17021 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
17022 (grub_video_video_init, grub_video_bitmap_init)
17023 (grub_font_manager_init, grub_term_gfxterm_init)
17024 (grub_at_keyboard_init): New extern declarations.
17025 (grub_machine_init): Initialize gfxterm and at_keyboard.
17026
17027 * kern/main.c (grub_main): Revert grub_printf delay kludge.
17028
17029 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
17030 `gfxterm.mod' into core image.
17031
17032 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
17033 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
17034 (kernel_img_FORMAT): Copy to ...
17035
17036 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
17037 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
17038 (kernel_img_FORMAT): ... here, and ...
17039
17040 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
17041 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
17042 (kernel_img_FORMAT): ... here.
17043
17044 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
17045 and input (at_keyboard) terminals in kernel.
17046 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
17047
17048 (pkglib_MODULES): Remove `pci.mod'.
17049 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
17050 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
17051 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
17052 (at_keyboard_mod_LDFLAGS): Remove variables.
17053
17054 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
17055
17056 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
17057
17058 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
17059
17060 * include/grub/mips/libgcc.h: Only export symbols for functions
17061 that libgcc provides.
17062
17063 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
17064
17065 MIPS support.
17066
17067 * bus/bonito.c: New file.
17068 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
17069 GRUB_PCI_NUM_DEVICES.
17070 * term/i386/pc/serial.c: Move to ...
17071 * term/serial.c: ... here. All users updated.
17072 * util/i386/pc/grub-mkimage.c: Move to ...
17073 * util/grub-mkrawimage.c: ... here. All users updated.
17074 * term/i386/pc/at_keyboard.c: Move to ...
17075 * term/at_keyboard.c: ... here. All users updated.
17076 * conf/mips-qemu-mips.rmk: New file.
17077 * conf/mips-yeeloong.rmk: Likewise.
17078 * conf/mips.rmk: Likewise.
17079 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
17080 mipsel-qemu-mips.
17081 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
17082 to port addresses.
17083 (grub_ata_pciinit): Support CS5536.
17084 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
17085 * font/font_cmd.c (loadfont_command): Open file before passing it to
17086 grub_font_load.
17087 (pseudo_file_read): New function.
17088 (pseudo_file_close): Likewise.
17089 (pseudo_fs): New structure.
17090 (load_font_module): New function.
17091 (GRUB_MOD_INIT(font_manager)): Load embedded font.
17092 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
17093 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
17094 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
17095 * include/grub/i386/at_keyboard.h: Split into ...
17096 * include/grub/at_keyboard.h: ... this ...
17097 * include/grub/i386/at_keyboard.h: ... and this.
17098 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
17099 New prototype.
17100 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
17101 updated.
17102 (grub_elf64_size): Likewise.
17103 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
17104 filename.
17105 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
17106 * include/grub/i386/coreboot/serial.h: Rewritten.
17107 * include/grub/i386/ieee1275/serial.h: Include
17108 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
17109 * include/grub/i386/pc/serial.h: Moved from here ...
17110 * include/grub/serial.h: ... to here. All users updated.
17111 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
17112 (GRUB_PCI_NUM_BUS): Likewise.
17113 (GRUB_PCI_NUM_DEVICES): Likewise.
17114 (grub_pci_device_map_range): Add missing volatile keyword.
17115 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
17116 * include/grub/mips/at_keyboard.h: New file.
17117 * include/grub/mips/cache.h: Likewise.
17118 * include/grub/mips/io.h: Likewise.
17119 * include/grub/mips/kernel.h: Likewise.
17120 * include/grub/mips/libgcc.h: Likewise.
17121 * include/grub/mips/pci.h: Likewise.
17122 * include/grub/mips/qemu-mips/boot.h: Likewise.
17123 * include/grub/mips/qemu-mips/kernel.h: Likewise.
17124 * include/grub/mips/qemu-mips/loader.h: Likewise.
17125 * include/grub/mips/qemu-mips/memory.h: Likewise.
17126 * include/grub/mips/qemu-mips/serial.h: Likewise.
17127 * include/grub/mips/qemu-mips/time.h: Likewise.
17128 * include/grub/mips/relocator.h: Likewise.
17129 * include/grub/mips/time.h: Likewise.
17130 * include/grub/mips/types.h: Likewise.
17131 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
17132 * include/grub/mips/yeeloong/boot.h: Likewise.
17133 * include/grub/mips/yeeloong/kernel.h: Likewise.
17134 * include/grub/mips/yeeloong/loader.h: Likewise.
17135 * include/grub/mips/yeeloong/memory.h: Likewise.
17136 * include/grub/mips/yeeloong/pci.h: Likewise.
17137 * include/grub/mips/yeeloong/serial.h: Likewise.
17138 * include/grub/mips/yeeloong/time.h: Likewise.
17139 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
17140 * kern/elf.c (grub_elf32_size): New parameter. All users
17141 updated.
17142 (grub_elf64_size): Likewise.
17143 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
17144 Load modules before saying "Welcome to GRUB!".
17145 Call grub_refresh after saying "Welcome to GRUB!".
17146 * kern/mips/cache.S: New file.
17147 * kern/mips/cache_flush.S: Likewise.
17148 * kern/mips/dl.c: Likewise.
17149 * kern/mips/init.c: Likewise.
17150 * kern/mips/qemu-mips/init.c: Likewise.
17151 * kern/mips/startup.S: Likewise.
17152 * kern/mips/yeeloong/init.c: Likewise.
17153 * kern/term.c (grub_putcode): Handle NULL terminal.
17154 (grub_getcharwidth): Likewise.
17155 (grub_getkey): Likewise.
17156 (grub_checkkey): Likewise.
17157 (grub_getkeystatus): Likewise.
17158 (grub_getxy): Likewise.
17159 (grub_getwh): Likewise.
17160 (grub_gotoxy): Likewise.
17161 (grub_cls): Likewise.
17162 (grub_setcolorstate): Likewise.
17163 (grub_setcolor): Likewise.
17164 (grub_getcolor): Likewise.
17165 (grub_refresh): Likewise.
17166 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
17167 (write_jump): Add hatch nop.
17168 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
17169 * lib/mips/setjmp.S: New file.
17170 * loader/mips/linux.c: Likewise.
17171 * term/i386/pc/at_keyboard.c: Move from here ...
17172 * term/at_keyboard.c: ... to here.
17173 * term/i386/pc/serial.c: Moved from here ...
17174 * term/serial.c: ... to here. All users updated.
17175 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
17176 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
17177 (serial_translate_key_sequence): Avoid deadlock.
17178 (grub_serial_getkey): Handle backspace.
17179 (grub_serial_putchar): Fix newline handling.
17180 * util/i386/pc/grub-mkimage.c: Move from here ...
17181 * util/grub-mkrawimage.c: ... to here. All users updated.
17182 (generate_image): New parameters 'font_path' and 'format'.
17183 Support embedding font.
17184 Use grub_host_to_target* instead of grub_cpu_to_le*.
17185 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
17186 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
17187 (options): New option "--font".
17188 (usage): Likewise.
17189 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
17190 (main): Handle "--font".
17191 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
17192 (grub_virtual_screen_setup): Set bg_color_display.
17193 (redraw_screen_rect): Use bg_color_display instead of incorrect
17194 bg_color.
17195 (grub_gfxterm_cls): Likewise.
17196 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
17197 Support embedding config file.
17198 (add_segments): Likewise.
17199 (options): New option "--config".
17200 (main): Handle "--config".
17201 * video/sm712.c: New file.
17202
17203 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17204
17205 Fix parallel builds.
17206
17207 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
17208 font.c depend on ascii.h).
17209
17210 2010-01-12 Carles Pina i Estany <carles@pina.cat>
17211
17212 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
17213
17214 2010-01-11 Carles Pina i Estany <carles@pina.cat>
17215
17216 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
17217 By default: disabled.
17218 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
17219 parameter.
17220
17221 2010-01-10 Carles Pina i Estany <carles@pina.cat>
17222
17223 * font/font.c: Update copyright years.
17224 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
17225
17226 2010-01-10 Carles Pina i Estany <carles@pina.cat>
17227
17228 * font/font.c: Include `ascii.h'.
17229 (ASCII_BITMAP_SIZE): New macro.
17230 (ascii_font_glyph): Define.
17231 (ascii_glyph_lookup): New function.
17232 (grub_font_get_string_width): Change comment. If glyph not found, use
17233 ascii_glyph_lookup.
17234 (grub_font_get_glyph_with_fallback): If glyph not available returns
17235 ascii_glyph_lookup.
17236 * util/grub-mkfont.c (file_formats): New enum.
17237 (options): Add `ascii-bitmaps' new option.
17238 (usage): Add `asii-bitmaps' new option.
17239 (write_font_ascii_bitmap): New function.
17240 (write_font): Rename to ...
17241 (write_font_p2): ... this. Remove print_glyphs call.
17242 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
17243 used. Call print_glyphs.
17244 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
17245
17246 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
17247
17248 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
17249 (grub_bin2h_SOURCES): New variable.
17250 * util/bin2h.c: New file.
17251
17252 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
17253
17254 * include/multiboot.h: Resynced with spec.
17255 * include/multiboot2.h: Likewise.
17256 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
17257 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
17258
17259 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17260
17261 * include/grub/term.h (grub_term_register_input,
17262 grub_term_register_output): Check return of terminal init()
17263 routines, and abort if errors are raised.
17264
17265 * commands/terminal.c: Update copyright year.
17266
17267 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17268
17269 * commands/terminal.c (grub_cmd_terminal_input)
17270 (grub_cmd_terminal_output): Check return of terminal init()
17271 routines, and abort if errors are raised.
17272
17273 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
17274
17275 * include/grub/i386/bsd.h: Fix include pathes.
17276
17277 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
17278
17279 Add missing *BSD copyright headers.
17280
17281 * include/grub/aout.h: Add BSD licence.
17282 * include/grub/i386/bsd.h: Parts under different licences moved to ...
17283 * include/grub/i386/freebsd_linker.h: ... here,
17284 * include/grub/i386/freebsd_reboot.h: ... here,
17285 * include/grub/i386/netbsd_bootinfo.h: ... here,
17286 * include/grub/i386/netbsd_reboot.h: ... here,
17287 * include/grub/i386/openbsd_bootarg.h: ... here,
17288 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
17289 licence to each file.
17290
17291 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17292
17293 * acinclude.m4: Remove `nop' assembly instruction; it's not
17294 implemented by all architectures.
17295
17296 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17297
17298 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
17299 ELILO. This is no longer necessary.
17300
17301 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
17302
17303 Added new tool, grub-scrit-check to verify grub.cfg syntax.
17304
17305 * util/grub-script-check.c: grub-script-check tool.
17306 * conf/common.rmk: Make rules for grub-script-check.
17307
17308 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17309
17310 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
17311 spotting it back in 2008. Shame on me for forgetting he did.
17312
17313 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
17314
17315 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
17316
17317 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
17318 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
17319 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
17320 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
17321 (GRUB_VIDEO_TYPE_EFI): Rename to ...
17322 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
17323
17324 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
17325
17326 * include/grub/test.h: Add license header.
17327 * tests/example_functional_test.c: Likewise.
17328 * tests/example_unit_test.c: Likewise.
17329 * tests/lib/functional_test.c: Likewise.
17330 * tests/lib/test.c: Likewise.
17331 * tests/lib/unit_test.c: Likewise.
17332
17333 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
17334
17335 Use flag-based instead of hook-based video mode selection and "auto"
17336 keyword.
17337
17338 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
17339 (grub_video_set_mode): Changed prototype. All users updated.
17340 (grub_video_check_mode_flag): New inline function.
17341 * video/video.c (parse_modespec): New function.
17342 (grub_video_set_mode): Parse flags and keywords.
17343
17344 2010-01-17 Carles Pina i Estany <carles@pina.cat>
17345
17346 * util/misc.c (grub_util_info): Fix the order of the parameters in a
17347 fprintf call.
17348
17349 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
17350
17351 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
17352
17353 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17354
17355 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
17356 string.
17357 * util/grub-emu.c (usage): Likewise.
17358 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
17359 * util/i386/efi/grub-mkimage.c (usage): Likewise.
17360 * util/i386/pc/grub-mkimage.c (usage): Likewise.
17361 * util/i386/pc/grub-setup.c (usage): Likewise.
17362
17363 2010-01-16 Carles Pina i Estany <carles@pina.cat>
17364
17365 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
17366 the message.
17367 (grub_util_info): Likewise.
17368 (grub_util_error): Likewise.
17369 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
17370 and/or new lines in `grub_util_warna', `grub_util_info',
17371 `grub_util_error' calls.
17372 * util/getroot.c: Likewise.
17373 * util/grub-editenv.c: Likewise.
17374 * util/grub-emu.c: Likewise.
17375 * util/grub-fstest.c: Likewise.
17376 * util/grub-mkdevicemap.c: Likewise.
17377 * util/grub-mkfont.c: Likewise.
17378 * util/grub-mkpasswd-pbkdf2.c: Likewise.
17379 * util/grub-mkrelpath.c: Likewise.
17380 * util/grub-pe2elf.c: Likewise.
17381 * util/grub-probe.c: Likewise.
17382 * util/hostdisk.c: Likewise.
17383 * util/i386/efi/grub-mkimage.c: Likewise.
17384 * util/i386/pc/grub-mkimage.c: Likewise.
17385 * util/i386/pc/grub-setup.c: Likewise.
17386 * util/ieee1275/ofpath.c: Likewise.
17387 * util/mkisofs/eltorito.c: Likewise.
17388 * util/mkisofs/rock.c: Likewise.
17389 * util/mkisofs/write.c: Likewise.
17390 * util/raid.c: Likewise.
17391 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
17392 * util/sparc64/ieee1275/grub-setup.c: Likewise.
17393
17394 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17395
17396 Enable multiboot on non-pc.
17397
17398 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
17399 multiboot.mod and multiboot2.mod to ...
17400 * conf/i386.rmk (pkglib_MODULES): ... here.
17401 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
17402 Moved to ...
17403 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
17404 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
17405 Moved to ...
17406 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
17407 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
17408 Moved to ...
17409 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
17410 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
17411 Moved to ...
17412 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
17413 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
17414 relocator.mod.
17415 (ata_mod_SOURCES): Removed.
17416 (ata_mod_CFLAGS): Likewise.
17417 (ata_mod_LDFLAGS): Likewise.
17418 (relocator_mod_SOURCES): Removed.
17419 (relocator_mod_CFLAGS): Likewise.
17420 (relocator_mod_ASFLAGS): Likewise.
17421 (relocator_mod_LDFLAGS): Likewise.
17422 Include i386.mk.
17423 * include/grub/x86_64/multiboot.h: New file.
17424 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
17425 Terminate EFI.
17426
17427 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17428
17429 Video multiboot support.
17430
17431 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
17432 New prototype.
17433 * include/multiboot.h: Resynced with multiboot specification.
17434 * include/multiboot2.h: Likewise.
17435 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
17436 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
17437 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
17438 (HAS_VGA_TEXT): Likewise.
17439 (accepts_video): New variable.
17440 (grub_multiboot_set_accepts_video): New function.
17441 (grub_multiboot_get_mbi_size): Account for video structures.
17442 (set_video_mode): New function.
17443 (retrieve_video_parameters): Likewise.
17444 (grub_multiboot_make_mbi): Fill video fields.
17445
17446 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
17447
17448 Video driver ids.
17449
17450 * include/grub/video.h (grub_video_driver_id): New type.
17451 (grub_video_adapter): New member 'id'. All users updated.
17452 (grub_video_get_driver_id): New proto.
17453 * video/video.c (grub_video_get_driver_id): New function.
17454
17455 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17456
17457 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
17458 `var=val'.
17459
17460 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17461
17462 * normal/cmdline.c (print_completion): Gettextizze.
17463
17464 2001-01-14 Carles Pina i Estany <carles@pina.cat>
17465
17466 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
17467
17468 2010-01-14 Carles Pina i Estany <carles@pina.cat>
17469
17470 * gettext/gettext.c (grub_gettext_translate): Push and pop
17471 grub_errno.
17472 (grub_gettext_delete_list): Change comment style.
17473 * kern/err.c (grub_error): Gettextizze.
17474 (grub_fatal): Gettextizze.
17475
17476 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
17477
17478 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
17479 (grub_linux16_real_boot): ... this.
17480 * kern/i386/loader.S: Likewise.
17481 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
17482 (grub_linux16_boot): New function. Switches to text mode and calls
17483 grub_linux16_real_boot().
17484
17485 * loader/i386/bsd.c: Include `<grub/video.h>'.
17486 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
17487 text mode before calling grub_unix_real_boot().
17488
17489 * loader/i386/multiboot.c: Include `<grub/video.h>'.
17490 (grub_multiboot_boot): Switch to text mode before calling
17491 grub_relocator32_boot().
17492
17493 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
17494 (grub_chainloader_boot): Switch to text mode before calling
17495 grub_chainloader_real_boot().
17496
17497 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17498 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17499
17500 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
17501 non-empty value.
17502
17503 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17504 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17505
17506 * util/grub.d/00_header.in: Define a "savedefault" function for use
17507 in menu entries.
17508 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
17509
17510 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
17511 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
17512
17513 * util/grub-mkconfig_lib.in (save_default_entry): Only set
17514 saved_entry if boot_once is unset.
17515 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
17516 previous saved entry (i.e. grub-reboot).
17517
17518 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17519
17520 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
17521
17522 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17523
17524 * util/grub.d/00_header.in: Use `set var=val' rather than plain
17525 `var=val'.
17526 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
17527
17528 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17529
17530 * util/grub-reboot.in: Fix --version output.
17531 * util/grub-set-default.in: Likewise.
17532
17533 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17534
17535 * util/grub.d/00_header.in: Silently ignore zero-sized environment
17536 blocks.
17537
17538 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17539
17540 * util/grub.d/00_header.in: Quote the value assigned to `default',
17541 in case it contains spaces.
17542
17543 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
17544
17545 * util/grub.d/30_os-prober.in: Fix merge error that moved a
17546 `save_default_entry' call from the macosx case to the linux case.
17547
17548 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
17549 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
17550
17551 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
17552 in `chosen' environment variable.
17553 * normal/menu_text.c (get_entry_number): Check if the variable
17554 matches the title of a menu entry.
17555 (run_menu): Pass menu to get_entry_number.
17556
17557 * util/grub-reboot.in: New file.
17558 * util/grub-set-default.in: New file.
17559 * conf/common.rmk (grub-reboot): New utility.
17560 (grub-set-default): New utility.
17561
17562 * util/grub-mkconfig_lib.in (save_default_entry): New function.
17563 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
17564 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
17565 move it to `saved_entry' for the next boot. Load environment on
17566 initialisation.
17567 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
17568 * util/grub.d/10_hurd.in: Likewise.
17569 * util/grub.d/10_linux.in (linux_entry): Likewise.
17570 * util/grub.d/10_windows.in: Likewise.
17571 * util/grub.d/30_os-prober.in: Likewise.
17572
17573 * util/grub-install.in: Create environment block.
17574 * util/i386/efi/grub-install.in: Likewise.
17575 * util/ieee1275/grub-install.in: Likewise.
17576 * util/sparc64/ieee1275/grub-install.in: Likewise.
17577
17578 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
17579
17580 Unit testing framework for GRUB.
17581
17582 * Makefile.in: Test framework build rules for 'make check'.
17583 * conf/tests.rmk: Build rules for individual tests and framework.
17584
17585 * include/grub/test.h: Header file for whitebox tests.
17586 * tests/lib/functional_test.c: Framework support for whitebox
17587 functional tests.
17588 * tests/lib/test.c: Common whitebox testing code for unit and
17589 functional tests.
17590 * tests/lib/unit_test.c: Framework support for whitebox unit
17591 tests.
17592
17593 * tests/util/grub-shell-tester.in: Support utility for grub-script
17594 tests.
17595 * tests/util/grub-shell.in: Utility to execute grub-script
17596 commands in a Qemu instance.
17597
17598 * tests/example_functional_test.c: Example whitebox functional
17599 test.
17600 * tests/example_grub_script_test.in: Example grub-script test.
17601 * tests/example_scripted_test.in: Example scripted test.
17602 * tests/example_unit_test.c: Example whitebox unit test.
17603
17604 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
17605
17606 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
17607 Add loader/i386/multiboot_mbi.c.
17608 (multiboot2_mod_SOURCES): Likewise.
17609 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
17610 (multiboot2_mod_SOURCES): Likewise.
17611 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
17612 (grub_multiboot_make_mbi): Likewise.
17613 (grub_multiboot_free_mbi): Likewise.
17614 (grub_multiboot_init_mbi): Likewise.
17615 (grub_multiboot_add_module): Likewise.
17616 (grub_multiboot_set_bootdev): Likewise.
17617 * loader/i386/multiboot.c (mbi): Removed.
17618 (mbi_dest): Likewise.
17619 (alloc_mbi): New variable.
17620 (grub_multiboot_payload_size): Removed. All users updated.
17621 (grub_multiboot_pure_size): New variable.
17622 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
17623 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
17624 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
17625 (grub_fill_multiboot_mmap): Likewise.
17626 (grub_multiboot_get_bootdev): Likewise.
17627 (grub_multiboot): Use multiboot_mbi functions.
17628 * loader/i386/multiboot_mbi.c: New file.
17629
17630 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17631
17632 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
17633 it would result in module crash.
17634
17635 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
17636
17637 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
17638 (grub_ofconsole_getwh): Split to ...
17639 (grub_ofconsole_getwh): ... this.
17640 (grub_ofconsole_dimensions): ...and this.
17641 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
17642
17643 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
17644
17645 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
17646
17647 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17648
17649 * loader/i386/pc/multiboot2.c: Removed stalled file.
17650
17651 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
17652
17653 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
17654 Reported by: Grégoire Sutre
17655
17656 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
17657
17658 * util/misc.c (canonicalize_file_name): New function.
17659 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
17660 instead of realpath().
17661
17662 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
17663
17664 * util/grub-install.in (usage): Clarify meaning of --root-directory,
17665 and make it clearer that it's optional. Based on confusion
17666 witnessed on IRC.
17667
17668 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17669
17670 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
17671 in premature implicit newline.
17672
17673 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
17674
17675 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
17676 which resulted in garbled command line at the end of screen.
17677
17678 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17679
17680 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
17681 initialization with similar approach as with other Linux loaders.
17682
17683 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17684
17685 Fix i386-ieee1275 build.
17686
17687 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
17688 and grub_term_height() for video_{width,height} initialization.
17689
17690 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
17691
17692 Fix grub-emu build.
17693
17694 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
17695
17696 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17697 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17698
17699 Support for multiple terminals.
17700
17701 * Makefile.in (pkglib_DATA): terminal.lst.
17702 (terminal.lst): New target.
17703 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
17704 (GRUB_MOD_INIT(handler)): Likewise.
17705 (GRUB_MOD_FINI(handler)): Likewise.
17706 * commands/help.c (grub_cmd_help): Handle multiple terminals.
17707 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
17708 * commands/sleep.c (do_print): Use grub_term_restore_pos.
17709 (grub_cmd_sleep): Use grub_term_save_pos.
17710 * commands/terminal.c: New file.
17711 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
17712 commands/terminal.c and lib/charset.c.
17713 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
17714 (pkglib_MODULES): Add terminal.mod.
17715 (terminal_mod_SOURCES): New variable.
17716 (terminal_mod_CFLAGS): Likewise.
17717 (terminal_mod_LDFLAGS): Likewise.
17718 * genhandlerlist.sh: Don't handle terminals.
17719 * genmk.rb: Generate terminal-*.lst.
17720 * genterminallist.sh: New file.
17721 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
17722 (grub_is_valid_utf8): Likewise.
17723 (grub_utf8_to_ucs4_alloc): Likewise.
17724 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
17725 (grub_menu_register_viewer): Changed argument.
17726 (grub_menu_try_text): New proto.
17727 (grub_gfxmenu_try_hook): New declaration.
17728 * include/grub/normal.h (grub_normal_exit_level): New declaration.
17729 (grub_menu_init_page): Additional argument term.
17730 (grub_normal_init_page): Likewise.
17731 (grub_cmdline_get): Arguments simplified.
17732 (grub_utf8_to_ucs4_alloc): Removed.
17733 (grub_print_ucs4): Additional argument term.
17734 (grub_getstringwidth): Likewise.
17735 (grub_print_message_indented): Likewise.
17736 (grub_menu_text_register_instances): New proto.
17737 (grub_show_menu): Likewise.
17738 (read_terminal_list): Likewise.
17739 (grub_set_more): Likewise.
17740 * include/grub/parser.h: Include handler.h.
17741 * include/grub/reader.h: Rewritten.
17742 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
17743 (GRUB_TERM_WIDTH): Changed to function.
17744 (GRUB_TERM_HEIGHT): Likewise.
17745 (GRUB_TERM_BORDER_WIDTH): Likewise.
17746 (GRUB_TERM_BORDER_HEIGHT): Likewise.
17747 (GRUB_TERM_NUM_ENTRIES): Likewise.
17748 (GRUB_TERM_ENTRY_WIDTH): Likewise.
17749 (GRUB_TERM_CURSOR_X): Likewise.
17750 (grub_term_input_class): Likewise.
17751 (grub_term_output_class): Likewise.
17752 (grub_term_outputs_disabled): New declaration.
17753 (grub_term_inputs_disabled): Likewise.
17754 (grub_term_outputs): Likewise.
17755 (grub_term_inputs): Likewise.
17756 (grub_term_register_input): Rewritten.
17757 (grub_term_register_output): Likewise.
17758 (grub_term_unregister_input): Likewise.
17759 (grub_term_unregister_output): Likewise.
17760 (FOR_ACTIVE_TERM_INPUTS): New macro.
17761 (FOR_DISABLED_TERM_INPUTS): Likewise.
17762 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
17763 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
17764 * include/grub/terminfo.h: Add oterm argument to all protypes.
17765 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
17766 Use grub_rescue_run.
17767 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
17768 All users updated.
17769 * kern/reader.c: Removed. All users updated.
17770 * kern/rescue_reader.c (grub_rescue_init): Removed.
17771 (grub_rescue_reader): Likewise.
17772 (grub_register_rescue_reader): Likewise.
17773 (grub_rescue_run): New function based on kern/reader.c.
17774 * kern/term.c: Adapted for multiterm.
17775 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
17776 (grub_is_valid_utf8): Likewise.
17777 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
17778 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
17779 right terminal.
17780 * loader/i386/linux.c (grub_linux_boot): Likewise.
17781 * normal/auth.c (grub_username_get): New function.
17782 (grub_auth_check_authentication): Use grub_username_get.
17783 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
17784 * normal/color.c: Adapt for multiterm.
17785 * normal/main.c (read_config_file): Don't use grub_reader_loop.
17786 (grub_normal_init_page): Additional argument term.
17787 (read_lists): Call read_terminal_lists.
17788 (grub_enter_normal_mode): Call grub_cmdline_run.
17789 Handle grub_normal_exit_level.
17790 (grub_cmd_normal): Make reentrant.
17791 (grub_cmd_normal_exit): New function.
17792 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
17793 * normal/menu.c: Adapt for multiterm.
17794 * normal/menu_entry.c: Likewise.
17795 * normal/menu_text.c: Likewise.
17796 * normal/menu_viewer.c: Removed. All users updated.
17797 * normal/term.c: New file.
17798 * util/console.c: Change order of includes to workaround a bug in
17799 ncurses headers.
17800 * term/terminfo.c: New argument oterm on all exported functions.
17801 All users updated.
17802 * util/grub-editenv.c (grub_term_input_class): Removed.
17803 (grub_term_output_class): Likewise.
17804
17805 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
17806
17807 Make loader output a bit more user-friendly.
17808
17809 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
17810 is being loaded. Likewise for the Hurd.
17811
17812 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
17813 that kernel of FreeBSD ${version} is being loaded.
17814
17815 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
17816 grub_dprintf().
17817 (grub_cmd_initrd): Likewise.
17818 * util/grub.d/10_linux.in (linux_entry): Print message indicating
17819 that Linux ${version} is being loaded. Likewise for initrd.
17820
17821 2010-01-09 Carles Pina i Estany <carles@pina.cat>
17822
17823 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
17824
17825 2010-01-08 Carles Pina i Estany <carles@pina.cat>
17826
17827 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
17828 (GRUB_MOD_INIT): Gettextizze.
17829 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
17830 (GRUB_MOD_INIT): Gettextizze.
17831 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
17832 (grub_cmd_linux): Capitalise Linux.
17833 (GRUB_MOD_INIT): Gettextizze.
17834 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
17835 (grub_cmd_linux): Capitalise Linux.
17836 (GRUB_MOD_INIT): Gettextizze.
17837 * loader/i386/linux.c: Include `<grub/i18n.h>'.
17838 (grub_cmd_linux): Capitalise Linux.
17839 (GRUB_MOD_INIT): Gettextizze.
17840 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
17841 (GRUB_MOD_INIT): Gettextizze.
17842 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
17843 (grub_cmd_linux): Capitalise Linux.
17844 (GRUB_MOD_INIT): Gettextizze.
17845 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
17846 (grub_cpu_xnu_init): Gettextizze.
17847 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
17848 (GRUB_MOD_INIT): Gettextizze.
17849 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
17850 (GRUB_MOD_INIT): Gettextizze.
17851 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
17852 (grub_linux_load64): Capitalise Linux.
17853 (GRUB_MOD_INIT): Gettextizze.
17854 * loader/xnu.c: Include `<grub/i18n.h>'.
17855 (GRUB_MOD_INIT): Gettextizze.
17856 * po/POTFILES: Add `loader/efi/appleloader.c',
17857 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
17858 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
17859 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
17860 `loader/i386/xnu.c', `loader/multiboot_loader.c',
17861 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
17862 and `loader/xnu.c'.
17863
17864 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17865
17866 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
17867
17868 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
17869
17870 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
17871 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
17872 * util/mkisofs/mkisofs.c (main): Readjust --version output.
17873
17874 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17875
17876 Reset Multiboot 2 support. New loader implements the draft in
17877 /branches/multiboot2 and shares as much code as possible with the
17878 production Multiboot 1 implementation.
17879
17880 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
17881 * loader/multiboot2.c: Likewise.
17882 * loader/i386/multiboot_helper.S: Likewise.
17883 * include/multiboot2.h: Replace with latest version from the draft
17884 in /branches/multiboot2.
17885
17886 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
17887 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
17888 and `loader/multiboot2.c'.
17889 (pkglib_MODULES): Add `multiboot2.mod'.
17890 (multiboot2_mod_SOURCES): New variable.
17891 (multiboot2_mod_LDFLAGS): Likewise.
17892 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
17893
17894 * conf/i386-pc.rmk: Likewise.
17895
17896 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
17897 (multiboot_mod_SOURCES): Remove variable.
17898 (multiboot_mod_LDFLAGS): Likewise.
17899 (multiboot_mod_CFLAGS): Likewise.
17900
17901 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
17902 `<multiboot2.h>' instead of `<multiboot.h>'.
17903 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
17904 (MULTIBOOT_HEADER_MAGIC): New macros.
17905
17906 * loader/multiboot_loader.c (module_version_status): Remove variable.
17907 (find_multi_boot2_header): Remove function.
17908 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
17909 logic. Always check for the Multiboot version we're compiling for.
17910 (grub_cmd_module_loader): Likewise.
17911 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
17912 command instead of `multiboot'.
17913
17914 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17915
17916 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
17917 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
17918 all users.
17919
17920 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17921 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17922
17923 Fix breakage introduced with previous commit.
17924
17925 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
17926 commands.
17927 * normal/handler.c (read_handler_list): Revert part of previous commit
17928 affecting this file.
17929 * normal/main.c (read_lists): Move read_handler_list() call back to ...
17930 (grub_normal_execute): ... here.
17931
17932 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
17933
17934 Merge prefix-redefinition-fix branch.
17935
17936 * normal/autofs.c (read_fs_list): Make function capable of being
17937 run multiple times, gracefuly replacing the previous data
17938 structures.
17939 * normal/dyncmd.c (read_command_list): Likewise.
17940 * normal/handler.c (read_handler_list): Likewise.
17941 * normal/main.c (read_lists): New function. Calls all the
17942 list reading functions.
17943 (grub_normal_execute): Use read_lists() instead of calling all
17944 list reading functions explicitly. Register read_lists() as a
17945 variable hook attached to ${prefix}.
17946
17947 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
17948
17949 Merge crypto branch.
17950
17951 * Makefile.in (pkglib_DATA): Add crypto.lst.
17952 (crypto.lst): New target.
17953 * commands/hashsum.c: New file.
17954 * commands/password.c (check_password): Use grub_crypto_memcmp.
17955 * commands/password_pbkdf2.c: New file.
17956 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
17957 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
17958 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
17959 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
17960 -I$(srcdir)/lib/libgcrypt_wrap.
17961 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
17962 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
17963 password_pbkdf2.mod.
17964 (crypto_mod_SOURCES): New variable.
17965 (crypto_mod_CFLAGS): Likewise.
17966 (crypto_mod_LDFLAGS): Likewise.
17967 (hashsum_mod_SOURCES): New variable.
17968 (hashsum_mod_CFLAGS): Likewise.
17969 (hashsum_mod_LDFLAGS): Likewise.
17970 (pbkdf2_mod_SOURCES): New variable.
17971 (pbkdf2_mod_CFLAGS): Likewise.
17972 (pbkdf2_mod_LDFLAGS): Likewise.
17973 (password_pbkdf2_mod_SOURCES): New variable.
17974 (password_pbkdf2_mod_CFLAGS): Likewise.
17975 (password_pbkdf2_mod_LDFLAGS): Likewise.
17976 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
17977 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
17978 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
17979 Include conf/gcry.rmk.
17980 * include/grub/auth.h: Rewritten.
17981 * include/grub/crypto.h: New file.
17982 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
17983 * include/grub/normal.h (read_crypto_list): New prototype.
17984 * lib/crypto.c: New file.
17985 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
17986 * lib/pbkdf2.c: Likewise.
17987 * normal/auth.c (grub_auth_strcmp): Removed.
17988 (grub_iswordseparator): Likewise.
17989 (grub_auth_strword): Likewise.
17990 (is_authenticated): Use grub_strword.
17991 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
17992 and grub_strword. Pass entered password to authentication callback.
17993 * normal/crypto.c: New file.
17994 * normal/main.c: Call read_crypto_list.
17995 * util/grub-mkpasswd-pbkdf2.c: New file.
17996 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
17997
17998 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
17999
18000 Fix descent and ascent calculation.
18001
18002 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
18003 (options): New option "asce".
18004 (usage): Likewise.
18005 (add_char): Ignore invalid glyphs for descent calculation.
18006 Calculate ascent from actual content.
18007 (print_glyphs): Use 'asce'.
18008 (write_font): Likewise. Allow ascent override.
18009 (main): Handle "asce" option.
18010
18011 2010-01-06 Carles Pina i Estany <carles@pina.cat>
18012
18013 * kern/err.c: Include `<grub/i18n.h>'.
18014 (grub_print_error): Add full stop. Gettextizze.
18015 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
18016 (grub_bsd_load_elf): Capitalise ELF.
18017 (grub_cmd_freebsd_loadenv): Add `s' in error string.
18018 (grub_cmd_freebsd_module): Likewise.
18019 (grub_cmd_freebsd_module_elf): Likewise.
18020 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
18021
18022 2010-01-06 Carles Pina i Estany <carles@pina.cat>
18023
18024 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
18025 * commands/search_file.c (HELP_MESSAGE): New macro.
18026 * commands/search_label.c (HELP_MESSAGE): Likewise.
18027 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
18028 * po/POTFILES: Add `commands/search_file.c',
18029 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
18030 `commands/search.c'.
18031
18032 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
18033
18034 * config.rpath: Update from Gnulib.
18035
18036 2010-01-05 Yves Blusseau <blusseau@zetam.org>
18037
18038 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
18039
18040 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
18041
18042 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
18043
18044 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
18045
18046 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
18047 arguments to fread so that we get a return value in bytes, rather
18048 than something that will normally be rounded down to 0.
18049 Adjust error handling to avoid producing garbage when size_t is not
18050 the same size as long long.
18051
18052 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
18053
18054 * util/mkisofs/write.c (padblock_write): Check return value of
18055 fread.
18056
18057 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
18058
18059 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
18060 floppy images now.
18061
18062 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
18063
18064 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
18065
18066 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
18067 instead of manual alignment.
18068 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
18069 verbose). Avoid attempts to read past end of the device
18070 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
18071 but GRUB_DISK_CACHE_SIZE may exceed that).
18072
18073 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
18074
18075 * commands/crc.c (grub_cmd_crc): Abort on read errors.
18076 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
18077 it to upper layer.
18078
18079 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18080
18081 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
18082 New constant.
18083 (grub_efi_piwg_device_path): New structure
18084 (grub_efi_piwg_device_path_t): New type.
18085 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
18086 (devpath_1): Transform to a structure. All users updated.
18087 (devpath_2): Likewise.
18088 (devpath_3): Likewise.
18089 (devpath_4): Likewise.
18090 (devpath_5): Likewise.
18091
18092 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
18093
18094 * loader/efi/appleloader.c: Restored. Update all users.
18095
18096 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
18097
18098 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
18099
18100 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
18101 (struct boot_blocklist): Move from here ...
18102 * include/grub/i386/pc/boot.h [ASM_FILE]
18103 (struct grub_boot_blocklist): ... to here. Update all users.
18104 (setup): Only initialize `start' member of `first_block'
18105 structure. Add assert() calls to verify the other members.
18106
18107 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
18108 (generate_image): Fix broken blocklist length initialization.
18109 Add assert() call to verify blocklist `segment' field.
18110
18111 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
18112
18113 * loader/efi/appleloader.c: Remove. Update all users.
18114
18115 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
18116
18117 * boot/i386/pc/boot.S: Update copyright year.
18118 * boot/i386/pc/cdboot.S: Likewise.
18119 * boot/i386/pc/diskboot.S: Likewise.
18120 * boot/i386/pc/lnxboot.S: Likewise.
18121 * boot/i386/pc/pxeboot.S: Likewise.
18122 * bus/pci.c: Likewise.
18123 * commands/cmp.c: Likewise.
18124 * commands/help.c: Likewise.
18125 * commands/hexdump.c: Likewise.
18126 * commands/i386/pc/halt.c: Likewise.
18127 * commands/i386/pc/play.c: Likewise.
18128 * commands/i386/pc/vbeinfo.c: Likewise.
18129 * commands/ls.c: Likewise.
18130 * commands/test.c: Likewise.
18131 * disk/dmraid_nvidia.c: Likewise.
18132 * disk/i386/pc/biosdisk.c: Likewise.
18133 * disk/ieee1275/nand.c: Likewise.
18134 * disk/ieee1275/ofdisk.c: Likewise.
18135 * disk/lvm.c: Likewise.
18136 * disk/raid.c: Likewise.
18137 * disk/raid6_recover.c: Likewise.
18138 * disk/scsi.c: Likewise.
18139 * fs/affs.c: Likewise.
18140 * fs/cpio.c: Likewise.
18141 * fs/ext2.c: Likewise.
18142 * fs/hfs.c: Likewise.
18143 * fs/iso9660.c: Likewise.
18144 * fs/ntfs.c: Likewise.
18145 * fs/sfs.c: Likewise.
18146 * fs/udf.c: Likewise.
18147 * fs/ufs.c: Likewise.
18148 * fs/xfs.c: Likewise.
18149 * gencmdlist.sh: Likewise.
18150 * genmk.rb: Likewise.
18151 * include/grub/disk.h: Likewise.
18152 * include/grub/efi/api.h: Likewise.
18153 * include/grub/efi/efi.h: Likewise.
18154 * include/grub/efi/pe32.h: Likewise.
18155 * include/grub/elf.h: Likewise.
18156 * include/grub/fs.h: Likewise.
18157 * include/grub/i386/at_keyboard.h: Likewise.
18158 * include/grub/i386/pc/memory.h: Likewise.
18159 * include/grub/i386/pc/vbe.h: Likewise.
18160 * include/grub/i386/pci.h: Likewise.
18161 * include/grub/i386/tsc.h: Likewise.
18162 * include/grub/ieee1275/ieee1275.h: Likewise.
18163 * include/grub/ntfs.h: Likewise.
18164 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
18165 * include/grub/sparc64/libgcc.h: Likewise.
18166 * include/grub/symbol.h: Likewise.
18167 * include/grub/types.h: Likewise.
18168 * include/multiboot2.h: Likewise.
18169 * io/gzio.c: Likewise.
18170 * kern/device.c: Likewise.
18171 * kern/disk.c: Likewise.
18172 * kern/efi/efi.c: Likewise.
18173 * kern/efi/mm.c: Likewise.
18174 * kern/elf.c: Likewise.
18175 * kern/file.c: Likewise.
18176 * kern/i386/dl.c: Likewise.
18177 * kern/i386/pc/init.c: Likewise.
18178 * kern/i386/pc/startup.S: Likewise.
18179 * kern/ieee1275/ieee1275.c: Likewise.
18180 * kern/ieee1275/init.c: Likewise.
18181 * kern/main.c: Likewise.
18182 * kern/mm.c: Likewise.
18183 * kern/powerpc/dl.c: Likewise.
18184 * kern/sparc64/dl.c: Likewise.
18185 * kern/x86_64/dl.c: Likewise.
18186 * lib/hexdump.c: Likewise.
18187 * loader/efi/appleloader.c: Likewise.
18188 * loader/i386/ieee1275/linux.c: Likewise.
18189 * loader/i386/pc/chainloader.c: Likewise.
18190 * loader/i386/pc/linux.c: Likewise.
18191 * loader/i386/pc/multiboot2.c: Likewise.
18192 * loader/ieee1275/multiboot2.c: Likewise.
18193 * loader/multiboot2.c: Likewise.
18194 * loader/multiboot_loader.c: Likewise.
18195 * loader/powerpc/ieee1275/linux.c: Likewise.
18196 * normal/completion.c: Likewise.
18197 * normal/menu_entry.c: Likewise.
18198 * partmap/apple.c: Likewise.
18199 * util/grub.d/10_hurd.in: Likewise.
18200 * util/hostfs.c: Likewise.
18201 * video/readers/png.c: Likewise.
18202
18203 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
18204
18205 * include/grub/misc.h (GNUC_PREREQ): New macro.
18206 (ATTRIBUTE_ERROR): New macro.
18207 * include/grub/list.h (grub_bad_type_cast_real): Use
18208 ATTRIBUTE_ERROR.
18209
18210 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18211
18212 * normal/menu_text.c (print_message): Change messages.
18213
18214 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18215
18216 * normal/menu_entry.c (store_completion): Gettextizze.
18217
18218 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18219
18220 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
18221
18222 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18223
18224 * po/POTFILES: Sort correctly.
18225
18226 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18227
18228 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
18229 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
18230 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
18231 full stop.
18232 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
18233 summary. Gettextizze the strings.
18234 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
18235 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
18236 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
18237 full stop.
18238 (GRUB_MOD_INIT): Remove command name from summary.
18239 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
18240 summary.
18241 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
18242 * term/i386/pc/serial.c (options): Add full stops.
18243 (GRUB_MOD_INIT): Remove command name from the summary.
18244
18245 2010-01-03 Carles Pina i Estany <carles@pina.cat>
18246
18247 * commands/acpi.c: Gettextizze help strings and/or options. Include
18248 `grub/i18n.h' if needed.
18249 * commands/blocklist.c: Likewise.
18250 * commands/boot.c: Likewise.
18251 * commands/cat.c: Likewise.
18252 * commands/cmp.c: Likewise.
18253 * commands/configfile.c: Likewise.
18254 * commands/crc.c: Likewise.
18255 * commands/date.c: Likewise.
18256 * commands/echo.c: Likewise.
18257 * commands/efi/fixvideo.c: Likewise.
18258 * commands/efi/loadbios.c: Likewise.
18259 * commands/gptsync.c: Likewise.
18260 * commands/halt.c: Likewise.
18261 * commands/handler.c: Likewise.
18262 * commands/hdparm.c: Likewise.
18263 * commands/hexdump.c: Likewise.
18264 * commands/i386/cpuid.c: Likewise.
18265 * commands/i386/pc/drivemap.c: Likewise.
18266 * commands/i386/pc/halt.c: Likewise.
18267 * commands/i386/pc/pxecmd.c: Likewise.
18268 * commands/i386/pc/vbeinfo.c: Likewise.
18269 * commands/i386/pc/vbetest.c: Likewise.
18270 * commands/ieee1275/suspend.c: Likewise.
18271 * commands/keystatus.c: Likewise.
18272 * commands/loadenv.c: Likewise.
18273 * commands/ls.c: Likewise.
18274 * commands/lsmmap.c: Likewise.
18275 * commands/lspci.c: Likewise.
18276 * commands/memrw.c: Likewise.
18277 * commands/minicmd.c: Likewise.
18278 * commands/parttool.c: Likewise.
18279 * commands/password.c: Likewise.
18280 * commands/probe.c: Likewise.
18281 * commands/read.c: Likewise.
18282 * commands/reboot.c: Likewise.
18283 * commands/search.c: Likewise.
18284 * commands/sleep.c: Likewise.
18285 * commands/test.c: Likewise.
18286 * commands/true.c: Likewise.
18287 * commands/usbtest.c: Likewise.
18288 * commands/videotest.c: Likewise.
18289 * commands/xnu_uuid.c: Likewise.
18290 * disk/loopback.c: Likewise.
18291 * hello/hello.c: Likewise.
18292 * loader/i386/bsd.c: Likewise.
18293 * term/i386/pc/serial.c: Likewise.
18294 * po/POTFILES: Add new files.
18295
18296 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
18297
18298 * term/i386/pc/at_keyboard.c
18299 (keyboard_controller_wait_untill_ready): Rename to ...
18300 (keyboard_controller_wait_until_ready): ... this. Update all users.
18301
18302 2010-01-01 Carles Pina i Estany <carles@pina.cat>
18303
18304 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
18305 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
18306 string using string width.
18307 * normal/menu_text.c (grub_print_message_indented): Use
18308 grub_print_spaces and not print_spaces.
18309 (print_timeout): Likewise.
18310 (print_spaces): Move to...
18311 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
18312
18313 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
18314
18315 Import from Gnulib.
18316
18317 * gnulib/getdelim.c: New file.
18318 * gnulib/getline.c: Likewise.
18319
18320 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
18321
18322 * include/grub/list.h (grub_assert_fail): Removed.
18323 (grub_bad_type_cast_real): New function.
18324 (grub_bad_type_cast): New macro.
18325 (GRUB_AS_LIST): Use grub_bad_type_cast.
18326 (GRUB_AS_LIST_P): Likewise.
18327 (GRUB_AS_NAMED_LIST): Likewise.
18328 (GRUB_AS_NAMED_LIST_P): Likewise.
18329 (GRUB_AS_PRIO_LIST): Likewise.
18330 (GRUB_AS_PRIO_LIST_P): Likewise.
18331 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
18332
18333 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
18334
18335 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
18336 Fix syntax error.
18337
18338 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
18339
18340 * configure.ac: Check for TARGET_CFLAGS initialization before we
18341 initialize it ourselves (sigh).
18342 Move a few modifications to TARGET_CFLAGS to be unconditional
18343 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
18344 eh_frame)
18345
18346 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
18347 * term/i386/pc/at_keyboard.c
18348 (keyboard_controller_wait_untill_ready): Likewise.
18349 (keyboard_controller_led): Rename `led_status' paramter to avoid
18350 name conflict.
18351
18352 2009-12-28 Carles Pina i Estany <carles@pina.cat>
18353
18354 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
18355 quotes.
18356
18357 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18358
18359 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
18360
18361 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18362
18363 * normal/menu_text.c (grub_print_message_indented): Prevent
18364 past-the-end-of-array dereference.
18365
18366 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
18367
18368 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
18369 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
18370
18371 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18372
18373 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
18374 * normal/main.c (grub_normal_read_line): Remove a space from the
18375 default prompt.
18376
18377 2009-12-27 Carles Pina i Estany <carles@pina.cat>
18378
18379 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
18380 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18381 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18382 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18383 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18384 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18385 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18386
18387 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18388
18389 * video/readers/jpeg.c (cmd): Declare.
18390 (grub_cmd_jpegtest): Use `grub_command_t' type.
18391 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18392 Assign to `cmd'.
18393 (GRUB_MOD_FINI): Use `cmd' to unregister.
18394 * video/readers/png.c (cmd): Declare.
18395 (grub_cmd_pngtest): Use `grub_command_t' type.
18396 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18397 Assign to `cmd'.
18398 (GRUB_MOD_FINI): Use `cmd' to unregister.
18399 * video/readers/tga.c (cmd): Declare.
18400 (grub_cmd_tgatest): Use `grub_command_t' type.
18401 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
18402 Assign to `cmd'.
18403 (GRUB_MOD_FINI): Use `cmd' to unregister.
18404
18405 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18406
18407 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
18408 stops.
18409 * kern/corecmd.c (grub_register_core_commands): Likewise.
18410 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
18411 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18412 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
18413 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18414 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
18415 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
18416 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
18417 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
18418 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18419 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
18420 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18421 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18422 * normal/handler.c (insert_handler): Likewise.
18423 * normal/main.c (GRUB_MOD_INIT): Likewise.
18424 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
18425
18426 2009-12-26 Carles Pina i Estany <carles@pina.cat>
18427
18428 * commands/help.c (grub_cmd_help): Print the command name before the
18429 summary.
18430 (GRUB_MOD_INIT): Remove command name from the summary.
18431 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
18432 string as summary.
18433 * lib/arg.c (find_long): Print the command name before the summary.
18434 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
18435 summary.
18436 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
18437 * commands/cat.c (GRUB_MOD_INIT): Likewise.
18438 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
18439 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
18440 * commands/crc.c (GRUB_MOD_INIT): Likewise.
18441 * commands/date.c (GRUB_MOD_INIT): Likewise.
18442 * commands/echo.c (GRUB_MOD_INIT): Likewise.
18443 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
18444 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18445 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18446 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
18447 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
18448 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
18449 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
18450 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18451 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
18452 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
18453 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
18454 * commands/ls.c (GRUB_MOD_INIT): Likewise.
18455 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18456 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18457 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18458 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
18459 * commands/password.c (GRUB_MOD_INIT): Likewise.
18460 * commands/probe.c (GRUB_MOD_INIT): Likewise.
18461 * commands/read.c (GRUB_MOD_INIT): Likewise.
18462 * commands/search.c (GRUB_MOD_INIT): Likewise.
18463 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
18464 * commands/test.c (GRUB_MOD_INIT): Likewise.
18465 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
18466 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
18467 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
18468 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
18469 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
18470 * lib/arg.c (GRUB_MOD_INIT): Likewise.
18471 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
18472 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
18473 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
18474 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
18475 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
18476 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
18477 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
18478 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
18479
18480 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18481
18482 Use search command for preliminar UUID search.
18483
18484 * commands/search.c: Split into ...
18485 * commands/search_wrap.c: ...this
18486 * commands/search.c: ...and this.
18487 * commands/search_file.c: New file.
18488 * commands/search_label.c: New file.
18489 * commands/search_uuid.c: New file.
18490 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
18491 Add commands/search_wrap.c, commands/search_file.c,
18492 commands/search_label.c and commands/search_uuid.c.
18493 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
18494 (search_mod_SOURCES): Set to commands/search_wrap.c.
18495 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
18496 search_label.mod.
18497 (search_fs_file_mod_SOURCES): New variable.
18498 (search_fs_file_mod_CFLAGS): Likewise.
18499 (search_fs_file_mod_LDFLAGS): Likewise.
18500 (search_label_mod_SOURCES): Likewise.
18501 (search_label_mod_CFLAGS): Likewise.
18502 (search_label_mod_LDFLAGS): Likewise.
18503 (search_fs_uuid_mod_SOURCES): New variable.
18504 (search_fs_uuid_mod_CFLAGS): Likewise.
18505 (search_fs_uuid_mod_LDFLAGS): Likewise.
18506 (fs_file_mod_SOURCES): Removed.
18507 (fs_file_mod_CFLAGS): Likewise.
18508 (fs_file_mod_LDFLAGS): Likewise.
18509 (fs_uuid_mod_SOURCES): Removed.
18510 (fs_uuid_mod_CFLAGS): Likewise.
18511 (fs_uuid_mod_LDFLAGS): Likewise.
18512 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
18513 Set to util/grub-install.in.
18514 * disk/fs_file.c: Removed.
18515 * disk/fs_uuid.c: Likewise.
18516 * include/grub/search.h: New file.
18517 * util/grub-install.in: Handle sparc64.
18518 Create and use load.cfg.
18519 * util/sparc64/ieee1275/grub-install.in: Removed.
18520
18521 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18522
18523 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
18524 Ignore return status if CF is cleared.
18525 (grub_biosdisk_get_diskinfo_standard): Likewise.
18526
18527 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18528
18529 * term/i386/pc/at_keyboard.c
18530 (keyboard_controller_wait_untill_ready): New function.
18531 (grub_keyboard_controller_write, grub_keyboard_controller_read)
18532 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
18533 for keyboard polling, rather than duplicate the same loop. This
18534 saves a few bytes in code size.
18535
18536 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
18537
18538 Support for (pxe[:server[:gateway]]) syntax and
18539 use environment variable for PXE.
18540
18541 * commands/i386/pc/pxecmd.c (options): Removed.
18542 (print_ip): Removed.
18543 (grub_cmd_pxe): Removed
18544 (grub_cmd_pxe_unload): New function.
18545 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
18546 (grub_pxe_your_ip): Made static.
18547 (grub_pxe_default_server_ip): Likewise.
18548 (grub_pxe_default_gateway_ip): Likewise.
18549 (grub_pxe_blksize): Likewise.
18550 (parse_ip): New function.
18551 (grub_pxe_open): Support server and gateway specification.
18552 (grub_pxe_close): Free disk->data.
18553 (grub_pxefs_open): Use disk->data.
18554 (grub_pxefs_read): Likewise.
18555 (grub_env_write_readonly): New function.
18556 (set_mac_env): Likewise.
18557 (set_env_limn_ro): Likewise.
18558 (parse_dhcp_vendor): Likewise.
18559 (grub_pxe_detect): Set the environment variables.
18560 (set_ip_env): New function.
18561 (write_ip_env): Likewise.
18562 (grub_env_write_pxe_default_server): Likewise.
18563 (grub_env_write_pxe_default_gateway): Likewise.
18564 (grub_env_write_pxe_blocksize): Likewise.
18565 (GRUB_MOD_INIT(pxe)): Set environment variables.
18566 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
18567 (grub_pxe_mac_addr_t): ... this. All users updated.
18568 (grub_pxe_your_ip): Removed.
18569 (grub_pxe_server_ip): Likewise.
18570 (grub_pxe_gateway_ip): Likewise.
18571 (grub_pxe_blksize): Likewise.
18572
18573 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18574
18575 * commands/help.c: Include `<grub/i18n.h>'.
18576 (grub_cmd_help): Gettextizze.
18577 (GRUB_MOD_INIT): Likewise.
18578 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
18579 (GRUB_MOD_INIT): Gettextizze.
18580 * commands/search.c: Include `<grub/i18n.h>'.
18581 (options): Gettextizze.
18582 (GRUB_MOD_INIT): Gettextizze.
18583 * lib/arg.c: Include `<grub/i18n.h>'.
18584 (help_options): Gettextizze.
18585 (find_long): Likewise.
18586 (grub_arg_show_help): Likewise.
18587 * normal/dyncmd.c: Include `<grub/i18n.h>'.
18588 (read_command_list): Gettextizze.
18589 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
18590 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
18591
18592 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
18593
18594 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
18595 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
18596 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
18597 (led_status): New variable.
18598 (keyboard_controller_led): New function.
18599 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
18600 update led status for caps lock, num lock and scroll lock.
18601
18602 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
18603
18604 * util/hostdisk.c (open_device): Fix a comment.
18605
18606 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18607
18608 * util/grub-install.in (host_os): New variable.
18609 * util/i386/efi/grub-install.in (host_os): Likewise.
18610
18611 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18612
18613 * util/mkisofs/write.c (padblock_write): Abort when given an
18614 excedingly large embed image, instead of silently truncating it.
18615
18616 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18617
18618 * include/multiboot.h: Indentation fixes.
18619
18620 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18621
18622 * include/multiboot.h (struct multiboot_aout_symbol_table)
18623 (struct multiboot_elf_section_header_table): New structure
18624 declarations (stolen from GRUB Legacy).
18625 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
18626 table information.
18627
18628 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
18629 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
18630 type aliases.
18631
18632 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18633
18634 * include/multiboot.h: Make comments src2texi-friendly.
18635
18636 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18637
18638 For consistency with [multiboot]/docs/boot.S.
18639
18640 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
18641 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
18642 (MULTIBOOT_MAGIC2): Rename from this ...
18643 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
18644
18645 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
18646
18647 * include/multiboot.h: Remove `<grub/types.h>'.
18648 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
18649 types. Update all users.
18650
18651 2009-12-25 Carles Pina i Estany <carles@pina.cat>
18652
18653 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
18654 `couldn't' and `can not' by `cannot'.
18655 * commands/i386/pc/drivemap.c: Likewise.
18656 * disk/ata.c: Likewise.
18657 * disk/ieee1275/nand.c: Likewise.
18658 * fs/affs.c: Likewise.
18659 * fs/fat.c: Likewise.
18660 * fs/hfs.c: Likewise.
18661 * fs/hfsplus.c: Likewise.
18662 * fs/iso9660.c: Likewise.
18663 * fs/jfs.c: Likewise.
18664 * fs/minix.c: Likewise.
18665 * fs/reiserfs.c: Likewise.
18666 * fs/sfs.c: Likewise.
18667 * fs/udf.c: Likewise.
18668 * fs/ufs.c: Likewise.
18669 * fs/xfs.c: Likewise.
18670 * loader/powerpc/ieee1275/linux.c: Likewise.
18671 * loader/sparc64/ieee1275/linux.c: Likewise.
18672 * util/grub-probe.c: Likewise.
18673 * util/misc.c: Likewise.
18674
18675 2009-12-24 Carles Pina i Estany <carles@pina.cat>
18676
18677 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
18678 grub_errno calls.
18679 * commands/acpi.c: Likewise.
18680 * commands/blocklist.c: Likewise.
18681 * commands/efi/loadbios.c: Likewise.
18682 * commands/i386/pc/drivemap.c: Likewise.
18683 * commands/loadenv.c: Likewise.
18684 * commands/memrw.c: Likewise.
18685 * commands/password.c: Likewise.
18686 * commands/videotest.c: Likewise.
18687 * disk/ata.c: Likewise.
18688 * disk/ata_pthru.c: Likewise.
18689 * disk/dmraid_nvidia.c: Likewise.
18690 * disk/ieee1275/nand.c: Likewise.
18691 * disk/ieee1275/ofdisk.c: Likewise.
18692 * disk/loopback.c: Likewise.
18693 * disk/lvm.c: Likewise.
18694 * disk/mdraid_linux.c: Likewise.
18695 * disk/raid.c: Likewise.
18696 * disk/raid6_recover.c: Likewise.
18697 * disk/scsi.c: Likewise.
18698 * efiemu/main.c: Likewise.
18699 * efiemu/mm.c: Likewise.
18700 * efiemu/pnvram.c: Likewise.
18701 * efiemu/symbols.c: Likewise.
18702 * font/font.c: Likewise.
18703 * fs/cpio.c: Likewise.
18704 * fs/hfsplus.c: Likewise.
18705 * fs/iso9660.c: Likewise.
18706 * fs/jfs.c: Likewise.
18707 * fs/minix.c: Likewise.
18708 * fs/ntfs.c: Likewise.
18709 * fs/ntfscomp.c: Likewise.
18710 * fs/reiserfs.c: Likewise.
18711 * fs/ufs.c: Likewise.
18712 * fs/xfs.c: Likewise.
18713 * gettext/gettext.c: Likewise.
18714 * include/grub/auth.h: Likewise.
18715 * kern/elf.c: Likewise.
18716 * kern/file.c: Likewise.
18717 * kern/ieee1275/init.c: Likewise.
18718 * kern/ieee1275/mmap.c: Likewise.
18719 * kern/ieee1275/openfw.c: Likewise.
18720 * kern/powerpc/dl.c: Likewise.
18721 * kern/sparc64/dl.c: Likewise.
18722 * lib/arg.c: Likewise.
18723 * loader/i386/bsd.c: Likewise.
18724 * loader/i386/bsdXX.c: Likewise.
18725 * loader/i386/efi/linux.c: Likewise.
18726 * loader/i386/efi/xnu.c: Likewise.
18727 * loader/i386/ieee1275/linux.c: Likewise.
18728 * loader/i386/linux.c: Likewise.
18729 * loader/i386/multiboot.c: Likewise.
18730 * loader/i386/pc/linux.c: Likewise.
18731 * loader/i386/pc/multiboot2.c: Likewise.
18732 * loader/i386/xnu.c: Likewise.
18733 * loader/ieee1275/multiboot2.c: Likewise.
18734 * loader/macho.c: Likewise.
18735 * loader/machoXX.c: Likewise.
18736 * loader/multiboot2.c: Likewise.
18737 * loader/multiboot_loader.c: Likewise.
18738 * loader/powerpc/ieee1275/linux.c: Likewise.
18739 * loader/sparc64/ieee1275/linux.c: Likewise.
18740 * loader/xnu.c: Likewise.
18741 * loader/xnu_resume.c: Likewise.
18742 * mmap/i386/pc/mmap.c: Likewise.
18743 * normal/menu_viewer.c: Likewise.
18744 * partmap/acorn.c: Likewise.
18745 * partmap/amiga.c: Likewise.
18746 * partmap/apple.c: Likewise.
18747 * script/lexer.c: Likewise.
18748 * term/gfxterm.c: Likewise.
18749 * term/i386/pc/serial.c: Likewise.
18750 * term/i386/pc/vga.c: Likewise.
18751 * term/ieee1275/ofconsole.c: Likewise.
18752 * term/terminfo.c: Likewise.
18753 * video/bitmap.c: Likewise.
18754 * video/efi_gop.c: Likewise.
18755 * video/efi_uga.c: Likewise.
18756 * video/fb/video_fb.c: Likewise.
18757 * video/i386/pc/vbe.c: Likewise.
18758 * video/readers/tga.c: Likewise.
18759 * video/video.c: Likewise.
18760
18761 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
18762
18763 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
18764 * commands/lspci.c: Likewise.
18765 * commands/probe.c: Likewise.
18766 * commands/xnu_uuid.c: Likewise.
18767 * conf/i386-coreboot.rmk: Likewise.
18768 * conf/i386-efi.rmk: Likewise.
18769 * conf/i386-ieee1275.rmk: Likewise.
18770 * conf/i386-pc.rmk: Likewise.
18771 * conf/powerpc-ieee1275.rmk: Likewise.
18772 * conf/sparc64-ieee1275.rmk: Likewise.
18773 * conf/x86_64-efi.rmk: Likewise.
18774 * fs/i386/pc/pxe.c: Likewise.
18775 * gettext/gettext.c: Likewise.
18776 * include/grub/efi/graphics_output.h: Likewise.
18777 * include/grub/i386/pc/memory.h: Likewise.
18778 * kern/env.c: Likewise.
18779 * kern/i386/qemu/startup.S: Likewise.
18780 * lib/i386/pc/biosnum.c: Likewise.
18781 * lib/i386/relocator.c: Likewise.
18782 * lib/i386/relocator_asm.S: Likewise.
18783 * lib/relocator.c: Likewise.
18784 * loader/i386/bsd.c: Likewise.
18785 * loader/i386/multiboot.c: Likewise.
18786 * loader/i386/pc/chainloader.c: Likewise.
18787 * loader/i386/xnu.c: Likewise.
18788 * loader/xnu.c: Likewise.
18789 * normal/main.c: Likewise.
18790 * normal/menu_text.c: Likewise.
18791 * util/getroot.c: Likewise.
18792 * util/grub-mkconfig_lib.in: Likewise.
18793 * util/grub.d/00_header.in: Likewise.
18794 * util/i386/pc/grub-mkimage.c: Likewise.
18795 * util/mkisofs/eltorito.c: Likewise.
18796 * util/mkisofs/exclude.h: Likewise.
18797 * util/mkisofs/hash.c: Likewise.
18798 * util/mkisofs/iso9660.h: Likewise.
18799 * util/mkisofs/joliet.c: Likewise.
18800 * util/mkisofs/mkisofs.c: Likewise.
18801 * util/mkisofs/mkisofs.h: Likewise.
18802 * util/mkisofs/multi.c: Likewise.
18803 * util/mkisofs/name.c: Likewise.
18804 * util/mkisofs/rock.c: Likewise.
18805 * util/mkisofs/tree.c: Likewise.
18806 * util/mkisofs/write.c: Likewise.
18807 * video/efi_gop.c: Likewise.
18808
18809 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
18810
18811 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
18812 size counting.
18813
18814 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18815
18816 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
18817 * genmk.rb (class SCRIPT): Modify the target file instead of source.
18818
18819 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18820
18821 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
18822 (GRUB_MOD_INIT(memrw)): Update help line.
18823
18824 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18825
18826 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
18827 Use grub_extcmd_t. All users updated.
18828 (options): New variable.
18829 (grub_cmd_read): Restructure for readability. Support "-v" option.
18830 (grub_cmd_write): Restructure for readability.
18831
18832 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18833
18834 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
18835
18836 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18837
18838 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
18839 with the actual contents of the correspondending make variable.
18840 * util/grub-mkrescue.in (pkglib_DATA): New variable.
18841 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
18842 specifying `*.lst' and `efiemu??.o'
18843
18844 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18845
18846 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
18847 after function name.
18848 Noticed by Rene Engelhard <rene@debian.org>.
18849
18850 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18851
18852 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
18853 (options): New variable.
18854 (iospace): Likewise.
18855 (grub_lspci_iter): List IO spaces if "-i" was given.
18856 (grub_cmd_lspci): Parse options.
18857 (GRUB_MOD_INIT(lspci)): Use extcmd.
18858 (GRUB_MOD_FINI(lspci)): Likewise.
18859
18860 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
18861
18862 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
18863 `function' keyword.
18864 Patch by Tony Mancill <tmancill@debian.org>.
18865
18866 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
18867
18868 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
18869 (grub_uhci_portstatus): Likewise.
18870 (grub_uhci_portstatus): Add necessary delay.
18871 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
18872
18873 2009-12-21 Carles Pina i Estany <carles@pina.cat>
18874
18875 * commands/acpi.c (options): Fix capitalizations and/or full stops.
18876 (GRUB_MOD_INIT): Likewise.
18877 * commands/boot.c (GRUB_MOD_INIT): Likewise.
18878 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
18879 * commands/echo.c (options): Fix capitalizations and/or full stops.
18880 * commands/efi/loadbios.c (enable_rom_area): Likewise.
18881 (enable_rom_area): Likewise.
18882 (GRUB_MOD_INIT): Likewise.
18883 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
18884 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
18885 * commands/handler.c (GRUB_MOD_INIT): Likewise.
18886 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
18887 * commands/hexdump.c (options): Likewise.
18888 * commands/i386/cpuid.c (options): Likewise.
18889 (GRUB_MOD_INIT): Likewise.
18890 * commands/i386/pc/drivemap.c (options): Likewise.
18891 (GRUB_MOD_INIT): Likewise.
18892 * commands/i386/pc/halt (options): Likewise.
18893 (GRUB_MOD_INIT): Likewise.
18894 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
18895 * commands/i386/pc/pxecmd.c (options): Likewise.
18896 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
18897 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
18898 * commands/keystatus.c (options): Likewise.
18899 (GRUB_MOD_INIT): Likewise.
18900 * commands/loadenv.c (options): Likewise.
18901 * commands/ls.c (options): Likewise.
18902 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
18903 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
18904 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
18905 * commands/parttool.c (helpmsg): Likewise.
18906 * commands/probe.c (options): Likewise.
18907 * commands/read.c (GRUB_MOD_INIT): Likewise.
18908 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
18909 * commands/search.c (options): Likewise.
18910 * commands/sleep.c (options): Likewise.
18911 * commands/test.c (GRUB_MOD_INIT): Likewise.
18912 * commands/true.c (GRUB_MOD_INIT): Likewise.
18913 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
18914 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
18915 * lib/arg.c (help_options): Likewise.
18916 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
18917 `$(XGETTEXT)'.
18918 * po/POTFILES: Add `commands/loadenv.c'.
18919
18920 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
18921
18922 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
18923 instead of specifying them explicit.
18924
18925 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18926
18927 * NEWS: Add grub-probe support for GNU/Hurd.
18928
18929 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18930
18931 * NEWS: gettext was added after 1.97.
18932
18933 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18934
18935 * util/mkisofs/msdos_partition.h: New file (based on
18936 include/grub/msdos_partition.h).
18937 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
18938 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
18939 (ld_options, main): Recognize --protective-msdos-label.
18940 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
18941 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
18942 (padblock_write): If `use_protective_msdos_label' is set, patch a
18943 protective DOS-style label in the output image.
18944
18945 * util/grub-mkrescue.in: Use --protective-msdos-label.
18946
18947 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18948
18949 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
18950 boot.
18951
18952 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18953
18954 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
18955 variables.
18956 (ld_options, main): Recognize `--embedded-boot'.
18957 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
18958 declarations.
18959 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
18960 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
18961 (padblock_write): Likewise. Rewrite to support embedded boot image.
18962
18963 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
18964 for BIOS-based disk boot instead of only ElTorito.
18965
18966 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18967
18968 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
18969 build (not needed for bootstrap).
18970
18971 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18972
18973 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
18974 from i386-pc build (not needed for bootstrap).
18975 Rewrite a pair of strings.
18976
18977 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
18978
18979 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
18980
18981 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
18982
18983 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
18984
18985 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18986
18987 * kern/env.c (grub_env_context_open): Mark exported variable for
18988 reexport.
18989
18990 2009-12-21 Andreas Born <futur.andy@googlemail.com>
18991
18992 * kern/env.c (grub_env_export): Create nonexistent variables before
18993 exporting.
18994
18995 2009-12-20 Carles Pina i Estany <carles@pina.cat>
18996
18997 * include/grub/auth.h: Include `<grub/i18n.h>'.
18998 (GRUB_GET_PASSWORD): Gettextizze string.
18999 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
19000 menu_text.c.
19001 (grub_utf8_to_ucs4_alloc): Fix indentation.
19002 (grub_print_ucs4): Likewise.
19003 (grub_getstringwidth): Likewise.
19004 (print_message_indented): New declaration.
19005 * normal/auth.c: Include `<grub/i18n.h>'.
19006 (grub_auth_check_authentication): Gettexttize string.
19007 * normal/cmdline.c: Include `<grub/i18n.h>'.
19008 (grub_cmdline_get): Gettextizze.
19009 * normal/color.c: Include `<grub/i18n.h>'.
19010 (grub_parse_color_name_pair): Gettexttize strings.
19011 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
19012 string (use `print_message_indented').
19013 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
19014 `include/grub/normal.h'.
19015 (print_message_indented): Renamed to ...
19016 (grub_print_message_indented): ... this. Remove `static' qualifer (now
19017 used in normal/main.c).
19018 (print_message): Use `grub_print_message_indented' instead of
19019 `print_message_indented'.
19020 (print_timeout): Likewise.
19021 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
19022 (grub_normal_print_device_info): Gettexttize strings.
19023 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
19024
19025 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
19026
19027 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
19028 of arguments. Return number of tokens and not arguments. All users
19029 updated.
19030
19031 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
19032
19033 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
19034 non-MSDOS paritions.
19035
19036 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
19037
19038 * include/grub/types.h (UNUSED): Removed since it conflicts with
19039 NetBSD headers. All users changed to direct __attribute__ ((unused)).
19040 Reported by Grégoire Sutre.
19041
19042 2009-12-19 Carles Pina i Estany <carles@pina.cat>
19043
19044 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
19045 (grub_print_ucs4_alloc): Likewise.
19046 (grub_getstringwidth): Likewise.
19047 * normal/main.c (grub_normal_init_page): Gettextize version string.
19048 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
19049 (getstringwidth): Renamed to ...
19050 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
19051 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
19052 (grub_print_ucs4): Remove `static' qualifer (now used in
19053 normal/main.c).
19054 * po/POTFILES: Add normal/main.c.
19055
19056 2009-12-19 Carles Pina i Estany <carles@pina.cat>
19057
19058 * normal/menu_text.c (STANDARD_MARGIN): New macro.
19059 (print_message_indented): Add `margin_left' and `margin_right'
19060 parameters.
19061 (print_message): Update `print_message_indented' calls. Adds '\n' to the
19062 strings.
19063 (print_timeout): Use `print_message_indented' to print the message.
19064 Deletes `second_stage' parameter.
19065 (run_menu): Update `print_timeout' calls.
19066
19067 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19068
19069 Fix console palette on OpenFirmware.
19070
19071 * term/ieee1275/ofconsole.c (MAX): Removed.
19072 (colors): Redone based on VGA palette.
19073 (grub_ofconsole_setcolor): Discard brightness bit since only 8
19074 colors are supported.
19075 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
19076
19077 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19078
19079 Fix potential EfiEmu double prepare.
19080
19081 * efiemu/main.c (prepared): New variable
19082 (grub_efiemu_unload): Set prepare to '0'.
19083 (grub_efiemu_prepare): Return if already prepared. Set prepared.
19084
19085 set_virtual_address_map support.
19086
19087 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
19088 prototype.
19089 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
19090 prototype.
19091 (grub_efiemu_crc32): Likewise.
19092 (grub_efiemu_crc64): Likewise.
19093 (grub_efiemu_set_virtual_address_map): Likewise.
19094 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
19095 New definition.
19096 (grub_autoefi_set_virtual_address_map): Likewise.
19097 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
19098 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
19099 Restructure flow to accomodate it.
19100 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
19101 (grub_efiemu_crc): Recompute CRC32.
19102 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
19103 (efiemu_ptv_relocated): ... this. Made global. All users updated.
19104 * efiemu/symbols.c (relocated_handle): New variable.
19105 (grub_efiemu_free_syms): Free relocated_handle.
19106 (grub_efiemu_alloc_syms): Allocate relocated_handle.
19107 (grub_efiemu_write_sym_markers): New function.
19108 (grub_efiemu_set_virtual_address_map): Likewise.
19109
19110 Newer XNU parameters.
19111
19112 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
19113 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
19114 (grub_xnu_fill_devicetree): New prototype.
19115 (grub_xnu_heap_real_start): New variable.
19116 * loader/xnu.c (get_name_ptr): New function.
19117 (grub_xnu_load_driver): Fill namelen and name.
19118
19119 64-bit xnu support.
19120
19121 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
19122 and 'loader/macho64.c'.
19123 * conf/i386-pc.rmk: Likewise.
19124 * conf/x86_64-efi.rmk: Likewise.
19125 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
19126 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
19127 * include/grub/macho.h (grub_macho_segment64): New structure.
19128 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
19129 (grub_macho_size32): ... to this.
19130 (grub_macho32_get_entry_point): Renamed from ...
19131 (grub_macho_get_entry_point32): ... to this.
19132 (grub_macho_contains_macho64): New prototype.
19133 (grub_macho_size64): Likewise.
19134 (grub_macho_get_entry_point64): Likewise.
19135 (grub_macho32_load): Renamed from ...
19136 (grub_macho_load32): ... to this.
19137 (grub_macho32_filesize): Renamed from ...
19138 (grub_macho_filesize32): ... to this.
19139 (grub_macho32_readfile): Renamed from ...
19140 (grub_macho_readfile32): ... to this.
19141 (grub_macho_filesize64): New prototype.
19142 (grub_macho_readfile64): Likewise.
19143 (grub_macho_parse32): Likewise.
19144 (grub_macho_parse64): Likewise.
19145 * loader/macho.c: Split into ...
19146 * loader/machoXX.c: ... and this. Replace 32 with XX.
19147 * loader/macho32.c: New file.
19148 * loader/macho64.c: Likewise.
19149 * loader/xnu.c (grub_xnu_is_64bit): New variable.
19150 (grub_cmd_xnu_kernel): Make 32-bit only.
19151 (grub_cmd_xnu_kernel64): New function.
19152 (grub_xnu_load_driver): Support Mach-O 64.
19153 (grub_cmd_xnu_mkext): Likewise.
19154 * util/grub.d/30_os-prober.in (osx_entry): New function.
19155 Generate entries for 64-bit boot too.
19156
19157 Eliminate ad-hoc tree format in XNU and EfiEmu.
19158
19159 * efiemu/main.c (grub_efiemu_prepare): Update comment.
19160 * efiemu/pnvram.c: Rewritten to use environment variables.
19161 All users updated.
19162
19163 Inline utf16_to_utf8.
19164
19165 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
19166 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
19167 All users updated.
19168 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
19169
19170 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
19171 * commands/usbtest.c (grub_usb_get_string): ... move here.
19172 (usb_print_str): Fix error handling.
19173 * include/grub/usb.h (grub_usb_get_string): Remove.
19174
19175 UTF-8 to UTF-16 transformation.
19176
19177 * conf/common.rmk (pkglib_MODULES): Add charset.mod
19178 (charset_mod_SOURCES): New variable.
19179 (charset_mod_CFLAGS): Likewise.
19180 (charset_mod_LDFLAGS): Likewise.
19181 * include/grub/utf.h: New file.
19182 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
19183
19184 Support for device properties.
19185
19186 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
19187 (grub_xnu_devprop_device_header): Likewise.
19188 (grub_xnu_devprop_device_descriptor): Likewise.
19189 (grub_xnu_devprop_add_device): New prototype.
19190 (grub_xnu_devprop_remove_device): Likewise.
19191 (grub_xnu_devprop_remove_property): Likewise.
19192 (grub_xnu_devprop_add_property_utf8): Likewise.
19193 (grub_xnu_devprop_add_property_utf16): Likewise.
19194 (grub_cpu_xnu_init): Likewise.
19195 (grub_cpu_xnu_fini): Likewise.
19196 (grub_cpu_xnu_unload): Likewise.
19197 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
19198 (property_descriptor): Likewise.
19199 (devices): New variable.
19200 (grub_xnu_devprop_remove_property): New function.
19201 (grub_xnu_devprop_add_device): Likewise.
19202 (grub_xnu_devprop_remove_device): Likewise.
19203 (grub_xnu_devprop_add_property): Likewise.
19204 (grub_xnu_devprop_add_property_utf8): Likewise.
19205 (grub_xnu_devprop_add_property_utf16): Likewise.
19206 (hextoval): Likewise.
19207 (grub_cpu_xnu_fill_devprop): Likewise.
19208 (grub_cmd_devprop_load): Likewise.
19209 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
19210 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
19211 (cmd_devprop_load): New variable.
19212 (grub_cpu_xnu_init): New function.
19213 (grub_cpu_xnu_fini): Likewise.
19214 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
19215 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
19216 (grub_cmd_xnu_devtree): Likewise.
19217 (hextoval): New function.
19218 (unescape): Likewise.
19219 (grub_xnu_fill_devicetree): Likewise.
19220
19221 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
19222 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
19223
19224 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
19225
19226 Workaround for broken ATI VBE.
19227
19228 * video/i386/pc/vbe.c (last_set_mode): New variable.
19229 (grub_vbe_set_video_mode): Set 'last_set_mode'.
19230 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
19231 (grub_video_vbe_setup): Don't check for reserved flag.
19232
19233 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
19234
19235 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
19236 the `find' command.
19237
19238 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
19239
19240 UUID support for HFS.
19241
19242 * fs/hfs.c (grub_hfs_uuid): New function.
19243 (grub_hfs_fs): New value .uuid.
19244 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
19245
19246 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
19247
19248 Fix a segfault with parsing unknown long options.
19249
19250 * util/grub-mkrelpath.c (options): Zero terminate it.
19251
19252 2009-12-13 Carles Pina i Estany <carles@pina.cat>
19253
19254 * include/grub/misc.h (grub_puts): New declaration.
19255 (grub_puts_): Likewise.
19256 * kern/misc.c (grub_puts): New definition.
19257 (grub_puts_): Likewise.
19258
19259 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
19260
19261 * util/grub-probe.c (probe): Improve error message.
19262
19263 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
19264
19265 * loader/i386/multiboot_elfxx.c
19266 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
19267 initialization.
19268
19269 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
19270
19271 Relocator framework
19272
19273 * loader/i386/xnu_helper.S: Removed. All users updated.
19274 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
19275 (relocator_mod_SOURCES): New variable.
19276 (relocator_mod_CFLAGS): Likewise.
19277 (relocator_mod_LDFLAGS): Likewise.
19278 (relocator_mod_ASFLAGS): Likewise.
19279 * conf/x86_64.rmk: Likewise.
19280 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
19281 (grub_multiboot_payload_entry_offset): Likewise.
19282 (grub_multiboot_forward_relocator): Likewise.
19283 (grub_multiboot_forward_relocator_end): Likewise.
19284 (grub_multiboot_backward_relocator): Likewise.
19285 (grub_multiboot_backward_relocator_end): Likewise.
19286 (grub_multiboot_payload_eip): New variable.
19287 (grub_multiboot_payload_orig): Likewise.
19288 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
19289 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
19290 * include/grub/i386/memory.h
19291 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
19292 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
19293 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
19294 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
19295 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
19296 * include/grub/i386/relocator.h: New file.
19297 * include/grub/x86_64/relocator.h: Likewise.
19298 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
19299 (XNU_RELOCATOR): New macro.
19300 (grub_xnu_launcher_start): Remove.
19301 (grub_xnu_launcher_end): Likewise.
19302 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
19303 (grub_xnu_heap_real_start): Remove.
19304 (grub_xnu_heap_start): Change to void *. All users updated.
19305 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
19306 * lib/i386/relocator.c: New file.
19307 * lib/i386/relocator_asm.S: Likewise.
19308 * lib/i386/relocator_backward.S: Likewise.
19309 * lib/mips/relocator.c: Likewise.
19310 * lib/mips/relocator_asm.S: Likewise.
19311 * lib/relocator.c: Likewise.
19312 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
19313 (entry): Removed.
19314 (playground): Likewise.
19315 (grub_multiboot_payload_orig): New variable.
19316 (grub_multiboot_payload_dest): Likewise.
19317 (grub_multiboot_payload_size): Likewise.
19318 (grub_multiboot_payload_eip): Likewise.
19319 (grub_multiboot_payload_esp): Likewise.
19320 (grub_multiboot_boot): Use grub_relocator32_boot.
19321 (grub_multiboot_unload): Free relocators.
19322 (grub_multiboot): Setup stack. Use relocators.
19323 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
19324 (grub_multiboot_load_elfXX): Use relocators.
19325 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
19326 (grub_multiboot_payload_size): Likewise.
19327 (grub_multiboot_payload_dest): Likewise.
19328 (grub_multiboot_payload_entry_offset): Likewise.
19329 (grub_multiboot_forward_relocator): Likewise.
19330 (grub_multiboot_backward_relocator): Likewise.
19331 (grub_multiboot_real_boot): Likewise.
19332 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
19333 (grub_xnu_entry_point): Likewise.
19334 (grub_xnu_arg1): Likewise.
19335 (grub_xnu_stack): Likewise.
19336 (grub_xnu_launch): Removed.
19337 (grub_xnu_boot_resume): New function.
19338 (grub_xnu_boot): Use relocators.
19339 * loader/i386/xnu_helper.S: Removed.
19340 * loader/xnu.c (grub_xnu_heap_start): New variable.
19341 (grub_xnu_heap_size): Likewise.
19342 (grub_xnu_heap_malloc): Use relocators.
19343 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
19344
19345 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
19346
19347 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
19348 anything.
19349
19350 2009-12-13 Carles Pina i Estany <carles@pina.cat>
19351
19352 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
19353 GRUB_ERR_NONE before calling grub_env_set.
19354
19355 2009-12-12 Robert Millan <rmh@aybabtu.com>
19356
19357 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
19358 * genmk.rb (video): New variable.
19359 (CLEANFILES, VIDEOFILES): Add #{video}.
19360 (#{video}): New target rule.
19361 * genvideolist.sh: New file.
19362 * Makefile.in (pkglib_DATA): Add video.lst.
19363 (video.lst): New target rule.
19364 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
19365 `video.lst'.
19366 * util/grub.d/30_os-prober.in: Replace `vbe' with
19367 ${GRUB_VIDEO_BACKEND}.
19368
19369 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
19370
19371 * THANKS: Add David Miller.
19372
19373 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
19374
19375 libpciaccess support.
19376
19377 * Makefile.in (LIBPCIACCESS): New variable.
19378 (enable_grub_emu_pci): Likewise.
19379 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
19380 util/pci.c and commands/lspci.c.
19381 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
19382 * configure.ac (grub-emu-pci): New option.
19383 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
19384 (grub_pci_device_unmap_range): Likewise.
19385 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
19386 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
19387 (grub_pci_address_t) [!GRUB_UTIL]: New type.
19388 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
19389 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
19390 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
19391 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
19392 * include/grub/pciutils.h: New file.
19393 * util/pci.c: Likewise.
19394
19395 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
19396
19397 * util/misc.c: Don't include <errno.h> twice.
19398
19399 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
19400
19401 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
19402 name in an error message.
19403 (grub_biosdisk_rw): Likewise.
19404
19405 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19406
19407 Eliminate NTFS 4Gib barrier.
19408
19409 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
19410 (read_run_data): Likewise.
19411 (grub_ntfs_read_run_list): Likewise.
19412 (grub_ntfs_read_block): Likewise.
19413 (grub_ntfs_iterate_dir): Likewise.
19414 (read_mft): Likewise.
19415 (read_data): Likewise.
19416 Use COM_LOG_LEN.
19417 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
19418 to avoid 64-bit division
19419 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
19420 (grub_ntfs_rlst): Use grub_disk_addr_t.
19421
19422 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19423
19424 Eliminate grub-fstest 4Gib barrier.
19425
19426 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
19427 (read_file): Fix error reporting.
19428
19429 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19430
19431 Eliminate hexdump 4Gib barrier.
19432
19433 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
19434 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
19435
19436 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
19437
19438 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
19439 Fixes amarsh bug.
19440
19441 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
19442
19443 Remove miscellaneous files in distclean target.
19444
19445 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
19446
19447 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
19448
19449 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
19450 if they're already set. This resolves the conflict between my
19451 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
19452 fixing the --grub-probe option again.
19453 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
19454 change on 2009-10-06, so that we now once again source
19455 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
19456
19457 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
19458
19459 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
19460 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
19461 `util/devicemap.c'.
19462
19463 2009-12-08 Carles Pina i Estany <carles@pina.cat>
19464
19465 * include/grub/misc.h (grub_printf_): New declaration.
19466 * kern/misc.c (grub_printf_): New definition.
19467 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
19468 instead of `grub_printf' and `_'.
19469 * normal/menu_entry.c (store_completion): Likewise.
19470 (run): Likewise.
19471 (grub_menu_entry_run): Likewise.
19472 * normal/menu_text.c (grub_wait_after_message): Likewise.
19473 (notify_booting): Likewise.
19474 (notify_fallback): Likewise.
19475 (notify_execution_failure): Likewise.
19476
19477 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
19478
19479 * configure.ac: Check for vasprintf.
19480 * util/misc.c (asprintf): Move allocation from here ...
19481 (vasprintf): ... to here. New function.
19482 (xasprintf): New function.
19483 * include/grub/util/misc.h (vasprintf, xasprintf): Add
19484 prototypes.
19485 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19486 * util/grub-mkfont.c (write_font): Likewise.
19487 * util/grub-probe.c (probe): Likewise.
19488 * util/hostdisk.c (make_device_name): Likewise.
19489
19490 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
19491
19492 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
19493 anything even prefixed with 'cdrom' as a cdrom.
19494
19495 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
19496
19497 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
19498 mount points.
19499
19500 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19501
19502 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
19503 grub_gettext_msg_list.
19504 (grub_gettext_gettranslation_from_position): Return const char *
19505 and not char *.
19506 (grub_gettext_translate): Add the translated strings into a list,
19507 returns from the list if existing there.
19508 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
19509 (grub_gettext_delete_list): Delete the list.
19510 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
19511 lang environment variable is changed.
19512 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
19513
19514 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19515
19516 Rename kernel.mod to kernel.img.
19517
19518 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
19519 (kernel_mod_EXPORTS): Rename to ...
19520 (kernel_img_EXPORTS): ... this.
19521 (kernel_mod_SOURCES): Rename to ...
19522 (kernel_img_SOURCES): ... this.
19523 (kernel_mod_HEADERS): Rename to ...
19524 (kernel_img_HEADERS): ... this. All users updated.
19525 (kernel_mod_CFLAGS): Rename to ...
19526 (kernel_img_CFLAGS): ... this.
19527 (kernel_mod_ASFLAGS): Rename to ...
19528 (kernel_img_ASFLAGS): ... this.
19529 (kernel_mod_LDFLAGS): Rename to ...
19530 (kernel_img_LDFLAGS): ... this.
19531 * conf/x86_64-efi.rmk: Likewise.
19532 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
19533 (read_kernel_image): ... this. All users updated.
19534 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
19535
19536 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19537
19538 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
19539 (print_spaces): New function.
19540 (grub_print_ucs4): New function.
19541 (getstringwidth): New function.
19542 (print_message_indented): New function.
19543 (print_message): Gettexttize strings using print_message_indented.
19544 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
19545 width.
19546 (get_entry_number): Gettextize and uses dynamic terminal width.
19547 (notify_booting, notify_fallback, notify_execution_failure):
19548 Gettextize.
19549 * normal/menu_entry.c (store_completion): Cleanup the gettextized
19550 string.
19551 (run): Likewise.
19552 (grub_menu_entry_run): Likewise.
19553 * PO/POTFILES: Add normal/menu_entry.c.
19554
19555 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
19556
19557 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
19558
19559 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19560
19561 * util/grub-install.in: Install gettext .mo files.
19562 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
19563
19564 2009-12-05 Carles Pina i Estany <carles@pina.cat>
19565
19566 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
19567 grub_dprintf.
19568
19569 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
19570
19571 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
19572 non-firmware-dependant one in realmode.S takes precedence.
19573
19574 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
19575
19576 * commands/halt.c: Replace misc arch-specific headers with
19577 `<grub/misc.h>'.
19578 * commands/reboot.c: Likewise.
19579 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
19580 `<grub/misc.h>'.
19581 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
19582 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
19583 (kernel_img_SOURCES): ... to here.
19584
19585 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
19586 * include/grub/i386/pc/init.h: Likewise.
19587 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
19588 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
19589
19590 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
19591
19592 * include/grub/i386/halt.h: Remove.
19593 * include/grub/i386/reboot.h: Likewise.
19594
19595 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
19596
19597 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
19598
19599 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
19600 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
19601 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
19602 "progname.h"
19603 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19604 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19605 (usage): Add missing comma in printf.
19606
19607 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
19608
19609 Use the same reboot approach on i386 coreboot and qemu as we do on
19610 BIOS.
19611
19612 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
19613 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
19614 * kern/i386/reboot.c: Remove.
19615 * include/grub/i386/reboot.h (grub_reboot): Export function.
19616 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
19617 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
19618 0xf000:0xfff0 instead of 0xffff:0x0000.
19619 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
19620 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
19621
19622 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
19623
19624 Fix $srcdir != $objdir build.
19625
19626 * Makefile.in (po/%.po): Rewrite as ...
19627 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
19628
19629 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
19630
19631 Fix GNU/Hurd grub-install crash.
19632 * util/grub-probe.c (probe): Try to access `path' only when it is not
19633 NULL.
19634
19635 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19636
19637 Correct module naming.
19638
19639 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19640 (GRUB_MOD_INIT(efi_uga)): ... to this
19641 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19642 (GRUB_MOD_FINI(efi_uga)): ... to this
19643 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
19644 (GRUB_MOD_INIT(efi_gop)): ... to this
19645 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
19646 (GRUB_MOD_FINI(efi_gop)): ... to this
19647
19648 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
19649
19650 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
19651 translatable.
19652 (usage): Translate `arg' strings using gettext().
19653 Thanks to Jordi Mallach for the suggestion.
19654
19655 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19656
19657 GOP support. Based on patch from Bean
19658 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
19659
19660 * video/efi_gop.c: New file.
19661 * include/grub/efi/graphics_output.h: Likewise.
19662 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
19663 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
19664 variables.
19665 * conf/x86_64-efi.rmk: Likewise.
19666
19667 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
19668
19669 Rename efi_fb to efi_uga.
19670
19671 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19672 'efi_uga.mod'.
19673 (efi_fb_mod_SOURCES): Rename this ...
19674 (efi_uga_mod_SOURCES): ... to this.
19675 (efi_fb_mod_CFLAGS): Rename this ...
19676 (efi_uga_mod_CFLAGS): ... to this.
19677 (efi_fb_mod_LDFLAGS): Rename this ...
19678 (efi_uga_mod_LDFLAGS): ... to this.
19679 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
19680 'efi_uga.mod'.
19681 (efi_fb_mod_SOURCES): Rename this ...
19682 (efi_uga_mod_SOURCES): ... to this.
19683 (efi_fb_mod_CFLAGS): Rename this ...
19684 (efi_uga_mod_CFLAGS): ... to this.
19685 (efi_fb_mod_LDFLAGS): Rename this ...
19686 (efi_uga_mod_LDFLAGS): ... to this.
19687 * video/efi_fb.c: Move this ...
19688 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
19689
19690 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19691
19692 * po/README: New file. Explain our PO file workflow.
19693
19694 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19695
19696 * po/ChangeLog: Remove. Move relevant entries back to ...
19697 * ChangeLog: ... here.
19698 * po/ca.po: Remove (now handled by TLP).
19699 * po/id.po: Likewise.
19700 * po/zh_CN.po: Likewise.
19701 * Makefile.in (LINGUAS): Initialize in a way that supports
19702 empty set.
19703
19704 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
19705
19706 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
19707 reliing on po/LINGUAS.
19708 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
19709 (po/%.po): ... this.
19710
19711 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19712
19713 * util/i386/efi/grub-mkimage.c: Include "progname.h".
19714 (main): Use `program_name' instead of nonexistent `progname'.
19715
19716 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19717
19718 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19719 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
19720
19721 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19722
19723 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
19724 commit.
19725 * conf/i386-efi.rmk: Likewise.
19726 * conf/i386-ieee1275.rmk: Likewise.
19727 * conf/powerpc-ieee1275.rmk: Likewise.
19728 * conf/sparc64-ieee1275.rmk: Likewise.
19729 * conf/x86_64-efi.rmk: Likewise.
19730
19731 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19732
19733 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
19734
19735 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
19736
19737 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
19738
19739 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
19740
19741 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
19742 (grub_mkdevicemap_SOURCES): New variable.
19743 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
19744 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
19745 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
19746 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
19747 (grub_mkdevicemap_SOURCES): Remove.
19748 * conf/i386-efi.rmk: Likewise.
19749 * conf/i386-ieee1275.rmk: Likewise.
19750 * conf/i386-pc.rmk: Likewise.
19751 * conf/powerpc-ieee1275.rmk: Likewise.
19752 * conf/sparc64-ieee1275.rmk: Likewise.
19753 * conf/x86_64-efi.rmk: Likewise.
19754 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
19755 (usage): Fix strings to use `program_name'.
19756 (main): Initialize gettext.
19757 * util/grub-editenv.c: Likewise.
19758 * util/grub-emu.c: Likewise.
19759 * util/grub-fstest.c: Likewise.
19760 * util/grub-mkdevicemap.c: Likewise.
19761 * util/grub-mkfont.c: Likewise.
19762 * util/grub-mkrelpath.c: Likewise.
19763 * util/grub-pe2elf.c: Likewise.
19764 * util/grub-probe.c: Likewise.
19765 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
19766 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
19767 * util/sparc64/ieee1275/grub-setup.c: Likewise.
19768
19769 * util/misc.c: Include `"progname.h"'.
19770 (progname): Remove variable.
19771 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
19772
19773 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19774
19775 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
19776 printf and print a newline after the menuentry header line.
19777 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
19778
19779 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
19780
19781 autoconf >= 2.60 support $(localedir).
19782
19783 * INSTALL: Note that autoconf 2.60 is required.
19784 * configure.ac (AC_PREREQ): Bump to 2.60.
19785 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
19786 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
19787
19788 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
19789
19790 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
19791 aclocal is run.
19792
19793 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19794
19795 * normal/main.c (grub_normal_read_line): Fix off-by-one
19796 buffer overflow.
19797
19798 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
19799
19800 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
19801 "parser.grub" in grub_command_execute() call.
19802
19803 2009-11-24 Carles Pina i Estany <carles@pina.cat>
19804
19805 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
19806 * conf/i386-efi.rmk: Likewise.
19807 * conf/i386-ieee1275.rmk: Likewise.
19808 * conf/i386-pc.rmk: Likewise.
19809 * conf/powerpc-ieee1275.rmk: Likewise.
19810 * conf/sparc64-ieee1275.rmk: Likewise.
19811 * conf/x86_64-efi.rmk: Likewise.
19812 * gettext/gettex.c: Include <grub/i18n.h>.
19813 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
19814 here ...
19815 * include/grub/i18n.h: ... to here
19816 * include/grub/i18n.h: ... to here.
19817 * kern/misc.c: Include <grub/i18n.h>
19818 (grub_gettext_dummy): Move above user.
19819
19820 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19821
19822 * util/Makefile.in (install-local): Convert a `for' into a normal
19823 shell expansion.
19824
19825 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
19826
19827 * autogen.sh: Add automake call.
19828 * config.guess: Remove.
19829 * config.sub: Likewise.
19830 * install-sh: Likewise.
19831
19832 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19833
19834 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
19835
19836 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19837
19838 * util/Makefile.in (install-local): Convert a make `$(foreach)'
19839 function to a normal shell `for'.
19840
19841 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19842
19843 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
19844
19845 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19846
19847 * util/grub-mkrelpath.c: New file.
19848 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
19849 (grub_mkrelpath_SOURCES): New variable.
19850 * include/grub/util/misc.h: New function prototype.
19851 * util/misc.c (make_system_path_relative_to_its_root): New function.
19852
19853 * util/grub-mkconfig_lib.in (bindir): New variable.
19854 (grub_mkrelpath): Likewise.
19855 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
19856
19857 * util/probe.c (probe): Make the file path relative to its root.
19858 Change a info message to use the GRUB path. Enable again the
19859 check if we can read the file with GRUB facilities.
19860
19861 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
19862 to its root.
19863
19864 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19865
19866 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
19867 platform.
19868
19869 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19870
19871 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
19872 strncmp().
19873
19874 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
19875
19876 * util/getroot.c (grub_util_is_dmraid): New function.
19877 (grub_util_get_dev_abstraction): Treat dmraid and multipath
19878 devices as normal ones, not as LVM.
19879
19880 2009-11-23 Carles Pina i Estany <carles@pina.cat>
19881
19882 * conf/common.rmk: Add grub-gettext_lib target and updates
19883 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
19884 LDFLAGS.
19885 * gettext/gettext.c: New file. (Reads mo files).
19886 * include/grub/file.h (grub_file_pread): New prototype.
19887 * include/grub/i18n.h (_): New prototype.
19888 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
19889 prototypes.
19890 * kern/misc.c (grub_gettext_dummy): New function.
19891 * normal/menu_text.c: Include <grub/i18n.h>.
19892 * normal/menu_text.c (print_timeout): Gettexttize string.
19893 * normal/menu_text.c (print_message): Gettexttize string.
19894 * po/POTFILES: Add `normal/menu_text.c'.
19895 * po/ca.po: Add new translations.
19896 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
19897 gettext module and defines locale_dir and lang in grub.cfg.
19898 * NEWS: Add gettext support.
19899
19900 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19901
19902 * util/hostdisk.c: Include `<grub/i18n.h>'.
19903 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
19904 (make_device_name): Rewrite using asprintf.
19905 (convert_system_partition_to_system_disk): Replace 0 with NULL.
19906 (find_system_device): If a device is not found, generate one just
19907 by reusing the OS path name.
19908 (read_device_map): Make it permissible for device.map not to exist.
19909
19910 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19911
19912 * script/sh/execute.c: Move from here ...
19913 * script/execute.c: ... to here. Update all users.
19914 * script/sh/function.c: Move from here ...
19915 * script/function.c: ... to here. Update all users.
19916 * script/sh/lexer.c: Move from here ...
19917 * script/lexer.c: ... to here. Update all users.
19918 * script/sh/main.c: Move from here ...
19919 * script/main.c: ... to here. Update all users.
19920 * script/sh/parser.y: Move from here ...
19921 * script/parser.y: ... to here. Update all users.
19922 * script/sh/script.c: Move from here ...
19923 * script/script.c: ... to here. Update all users.
19924
19925 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19926
19927 * configure.ac: Detect all `emu' platforms. Define
19928 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
19929 --enable-grub-emu logic. Disable include/grub/machine
19930 symlink on `emu' platforms.
19931
19932 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
19933 * gensymlist.sh.in: Likewise.
19934
19935 * include/grub/i386/coreboot/machine.h: Remove file.
19936 * include/grub/i386/efi/machine.h: Likewise.
19937 * include/grub/i386/ieee1275/machine.h: Likewise.
19938 * include/grub/i386/pc/machine.h: Likewise.
19939 * include/grub/i386/qemu/machine.h: Likewise.
19940 * include/grub/powerpc/ieee1275/machine.h: Likewise.
19941 * include/grub/sparc64/ieee1275/machine.h: Likewise.
19942 * include/grub/x86_64/efi/machine.h: Likewise.
19943
19944 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
19945 * commands/halt.c: Likewise.
19946 * commands/reboot.c: Likewise.
19947 * include/grub/autoefi.h: Likewise.
19948 * include/grub/i386/at_keyboard.h: Likewise.
19949 * include/grub/i386/kernel.h: Likewise.
19950 * include/grub/i386/loader.h: Likewise.
19951 * include/grub/i386/pc/memory.h: Likewise.
19952 * kern/dl.c: Likewise.
19953 * kern/i386/coreboot/init.c: Likewise.
19954 * loader/i386/bsd.c: Likewise.
19955 * loader/i386/linux.c: Likewise.
19956 * loader/multiboot_loader.c: Likewise.
19957 * term/i386/pc/serial.c: Likewise.
19958 * term/usb_keyboard.c: Likewise.
19959
19960 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
19961 `<grub/machine/machine.h>'
19962 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
19963 * util/misc.c: Remove `<grub/machine/machine.h>' and
19964 `<grub/machine/time.h>'.
19965
19966 * Makefile.in (enable_grub_emu): Remove variable.
19967 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
19968
19969 * conf/any-emu.rmk: New file.
19970 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
19971 (grub_emu_init.c): Move from here ...
19972 * conf/any-emu.rmk: ... to here.
19973
19974 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
19975 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
19976 * conf/any-emu.rmk: ... to here.
19977
19978 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19979
19980 * include/grub/parser.h (grub_parser_register): Document need
19981 of `name' parameter.
19982 * normal/main.c (grub_normal_read_line): Simplify prompt string.
19983 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
19984 "sh" to "grub".
19985
19986 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19987
19988 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
19989 `$(XGETTEXT)'.
19990 * include/grub/i18n.h (N_): New macro.
19991 * util/mkisofs/mkisofs.h: Likewise.
19992 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
19993 around N_().
19994 (usage): Use gettext() to translate help strings when printing them.
19995
19996 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
19997
19998 Based on patch from Bean
19999 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
20000
20001 * video/efi_fb.c: New file.
20002 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
20003 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
20004 variables.
20005 * conf/x86_64-efi.rmk: Likewise.
20006
20007 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
20008
20009 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
20010 * util/i386/pc/grub-setup.c: Likewise.
20011
20012 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
20013
20014 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
20015 <hurd/fs.h>
20016 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
20017 file_get_storage_info to implement grub_guess_root_device.
20018
20019 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
20020
20021 * Makefile.in (target): Use make's builtin $(shell) function
20022 instead of calling directly $(SHELL) to create the locale directories,
20023 inside the $(foreach) function.
20024
20025 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
20026
20027 * util/grub-mkrescue.in: Print an error and usage if output option
20028 has not been given.
20029
20030 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
20031
20032 Patch from Loïc Minier <loic.minier@ubuntu.com>.
20033 * util/grub.d/30_os-prober.in: Cope with Linux entries where
20034 root and /boot are on different devices.
20035
20036 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
20037
20038 Fix build for srcdir != objdir.
20039
20040 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
20041 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
20042 $(srcdir).
20043 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
20044 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
20045 reference for input.
20046
20047 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
20048
20049 * util/grub-mkrescue.in: Use source directory direcly (without copiing
20050 or hardlinking it). Remove -J option, Joliet is not compatible with
20051 multiple source directories.
20052
20053 2009-11-21 Carles Pina i Estany <carles@pina.cat>
20054 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
20055
20056 * util/grub-mkrescue.in: Recognize `--override-directory' option.
20057 (process_input_dir): New function. Process an arbitrary input
20058 directory.
20059 Misc adjustments to support both "override mode" and system-wide mode.
20060
20061 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
20062
20063 * configure.ac (UNIFONT_BDF): Rename to ...
20064 (FONT_SOURCE): ... this. Update all users.
20065
20066 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
20067
20068 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
20069 to the list of unifont files to look for.
20070
20071 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
20072
20073 Patch from Joe Auricchio <jauricchio@gmail.com>
20074 * commands/minicmd.c (grub_mini_cmd_clear): New function.
20075 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
20076 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
20077
20078 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
20079
20080 * Makefile.in (install-local): Add a missing backslash.
20081
20082 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
20083
20084 * include/grub/x86_64/io.h: New file.
20085
20086 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
20087
20088 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
20089 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
20090 Include `"progname.h"'.
20091 (main): Initialize gettext.
20092 * util/i386/pc/grub-setup.c: Gettexttize.
20093 * util/i386/pc/grub-mkimage.c: Likewise.
20094
20095 * Makefile.in (po/*.po): Redefine as ...
20096 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
20097
20098 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
20099
20100 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
20101
20102 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
20103 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
20104 (program_name): Remove.
20105 (main): Initialize gettext support.
20106 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
20107 Include `<libintl.h>'.
20108 (_): New macro.
20109
20110 * util/mkisofs/eltorito.c: Gettexttize.
20111 * util/mkisofs/joliet.c: Likewise.
20112 * util/mkisofs/mkisofs.c: Likewise.
20113 * util/mkisofs/multi.c: Likewise.
20114 * util/mkisofs/rock.c: Likewise.
20115 * util/mkisofs/tree.c: Likewise.
20116 * util/mkisofs/write.c: Likewise.
20117
20118 * po/POTFILES: Update with new files.
20119
20120 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20121
20122 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
20123 * util/mkisofs/iso9660.h: Likewise.
20124 * util/mkisofs/joliet.c: Likewise.
20125 * util/mkisofs/mkisofs.c: Likewise.
20126 * util/mkisofs/mkisofs.h: Likewise.
20127 * util/mkisofs/rock.c: Likewise.
20128 * util/mkisofs/tree.c: Likewise.
20129 * util/mkisofs/write.c: Likewise.
20130
20131 * util/mkisofs/eltorito.c (rcsid): Remove.
20132 * util/mkisofs/hash.c: Likewise.
20133 * util/mkisofs/joliet.c: Likewise.
20134 * util/mkisofs/name.c: Likewise.
20135 * util/mkisofs/rock.c: Likewise.
20136 * util/mkisofs/tree.c: Likewise.
20137 * util/mkisofs/write.c: Likewise.
20138
20139 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20140
20141 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
20142 instead of static allocation.
20143 * util/mkisofs/match.h: Likewise.
20144
20145 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20146
20147 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
20148 and `util/grub.d/10_linux.in'.
20149 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
20150 translatable Shell files.
20151
20152 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
20153
20154 * Makefile.in ($(srcdir)/aclocal.m4): New target.
20155
20156 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20157
20158 * INSTALL: Document Automake is needed for bootstrap.
20159 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
20160 * util/grub.d/10_kfreebsd.in (bindir): New variable.
20161 Add gettext initialization.
20162 (kfreebsd_entry): Make menuentry output translatable.
20163
20164 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20165
20166 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
20167 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
20168 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
20169 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
20170 (LINGUAS): Auto-generate using `po/LINGUAS'.
20171 * po/LINGUAS: New file.
20172
20173 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20174
20175 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
20176 other things).
20177 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
20178 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
20179 bindtextdomain() calls for gettext initialization.
20180
20181 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20182
20183 * gnulib/progname.c: New file (imported from Gnulib).
20184 * gnulib/progname.h: Likewise.
20185 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
20186 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
20187 (usage): Replace `progname' with `program_name'.
20188 (main): Use set_program_name() for program name initialization.
20189
20190 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20191
20192 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
20193 from here ...
20194 * Makefile.in (CPPFLAGS): ... to here.
20195
20196 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20197
20198 * aclocal.m4: Move from here ...
20199 * acinclude.m4: ... to here.
20200 * autogen.sh: Add call to `aclocal'.
20201 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
20202
20203 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20204
20205 * Makefile.in (CLEANFILES): Add `po/*.mo'.
20206 (LINGUAS): New variable.
20207 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
20208 (install-local): Install MO files.
20209 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
20210 * include/grub/i18n.h: New file.
20211 * po/POTFILES: New file.
20212 * po/ca.po: New file.
20213 * util/grub.d/10_linux.in (bindir): New variable.
20214 Add gettext initialization.
20215 (linux_entry): Make menuentry output translatable.
20216 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
20217 (usage): Make --help output translatable.
20218 (main): Initialize gettext.
20219
20220 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20221
20222 * import_gcry.py: New file (written by Vladimir with minor
20223 adjustments).
20224 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
20225 ciphers.
20226 * INSTALL: Document that Python is required for bootstrap.
20227
20228 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
20229
20230 Import ciphers from libgcrypt 1.4.4.
20231
20232 * lib/libgcrypt/cipher/ChangeLog
20233 * lib/libgcrypt/cipher/ac.c
20234 * lib/libgcrypt/cipher/arcfour.c
20235 * lib/libgcrypt/cipher/bithelp.h
20236 * lib/libgcrypt/cipher/blowfish.c
20237 * lib/libgcrypt/cipher/camellia-glue.c
20238 * lib/libgcrypt/cipher/camellia.c
20239 * lib/libgcrypt/cipher/camellia.h
20240 * lib/libgcrypt/cipher/cast5.c
20241 * lib/libgcrypt/cipher/cipher.c
20242 * lib/libgcrypt/cipher/crc.c
20243 * lib/libgcrypt/cipher/des.c
20244 * lib/libgcrypt/cipher/dsa.c
20245 * lib/libgcrypt/cipher/ecc.c
20246 * lib/libgcrypt/cipher/elgamal.c
20247 * lib/libgcrypt/cipher/hash-common.c
20248 * lib/libgcrypt/cipher/hash-common.h
20249 * lib/libgcrypt/cipher/hmac-tests.c
20250 * lib/libgcrypt/cipher/md.c
20251 * lib/libgcrypt/cipher/md4.c
20252 * lib/libgcrypt/cipher/md5.c
20253 * lib/libgcrypt/cipher/primegen.c
20254 * lib/libgcrypt/cipher/pubkey.c
20255 * lib/libgcrypt/cipher/rfc2268.c
20256 * lib/libgcrypt/cipher/rijndael-tables.h
20257 * lib/libgcrypt/cipher/rijndael.c
20258 * lib/libgcrypt/cipher/rmd.h
20259 * lib/libgcrypt/cipher/rmd160.c
20260 * lib/libgcrypt/cipher/rsa.c
20261 * lib/libgcrypt/cipher/seed.c
20262 * lib/libgcrypt/cipher/serpent.c
20263 * lib/libgcrypt/cipher/sha1.c
20264 * lib/libgcrypt/cipher/sha256.c
20265 * lib/libgcrypt/cipher/sha512.c
20266 * lib/libgcrypt/cipher/tiger.c
20267 * lib/libgcrypt/cipher/twofish.c
20268 * lib/libgcrypt/cipher/whirlpool.c
20269
20270 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20271
20272 Fix build for systems without error().
20273
20274 * gnulib/error.c: New file (imported from Gnulib).
20275 * gnulib/error.h: Likewise.
20276 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
20277 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
20278 (this variable is now used by error()).
20279
20280 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
20281
20282 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
20283 instead of relying that char is signed.
20284
20285 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
20286
20287 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
20288 blocksize different from specified.
20289 (grub_pxefs_read): Likewise.
20290
20291 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
20292
20293 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
20294
20295 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
20296 (grub_ata_readwrite): Likewise. Update 2 format strings.
20297 (grub_atapi_read): Likewise.
20298
20299 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
20300 * conf/i386.rmk (pkglib_MODULES): ... to here ...
20301 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
20302 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
20303 (ata_mod_LDFLAGS): Move from here ...
20304 * conf/i386.rmk: ... to here ...
20305 * conf/x86_64-efi.rmk: ... and here.
20306 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
20307 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
20308
20309 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
20310
20311 Relicense multiboot.h, with RMS' blessing.
20312
20313 * include/multiboot.h: Change to X11 license.
20314
20315 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
20316
20317 Support --version in grub-mkisofs.
20318
20319 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
20320 (OPTION_VERSION): New macro.
20321 (ld_options): Recognize --version.
20322 (usage): Move `program_name' from here ...
20323 (program_name): ... to here. Add `static' qualifier.
20324 (main): Recognize `OPTION_VERSION'.
20325
20326 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
20327
20328 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
20329 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
20330
20331 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
20332
20333 Fix help2man generation for mkisofs.
20334
20335 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
20336 (usage): Send output to stdout (rather than stderr).
20337
20338 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
20339
20340 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
20341 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
20342 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
20343 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
20344 (bin_SCRIPTS): Add `grub-mkfloppy'.
20345 (grub_mkfloppy_SOURCES): New variable.
20346
20347 * util/grub-mkrescue.in: New file.
20348 * util/i386/pc/grub-mkfloppy.in: New file.
20349
20350 * util/i386/coreboot/grub-mkrescue.in: Remove.
20351 * util/i386/pc/grub-mkrescue.in: Remove.
20352
20353 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20354
20355 * include/grub/multiboot.h (struct grub_multiboot_header): Move
20356 from here ...
20357 * include/multiboot.h (struct multiboot_header): ... to here. Update
20358 all users.
20359 * include/grub/multiboot.h (struct grub_multiboot_info): Move
20360 from here ...
20361 * include/multiboot.h (struct multiboot_info): ... to here. Update
20362 all users.
20363 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
20364 from here ...
20365 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
20366 Update all users.
20367 * include/grub/multiboot.h (struct grub_mod_list): Move
20368 from here ...
20369 * include/multiboot.h (struct multiboot_mod_list): ... to here.
20370 Update all users.
20371
20372 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20373
20374 * include/multiboot2.h (multiboot_word): Rename from this ...
20375 (multiboot2_word): ... to this. Update all users.
20376 (multiboot_header): Rename from this ...
20377 (multiboot2_header): ... to this. Update all users.
20378 (multiboot_tag_header): Rename from this ...
20379 (multiboot2_tag_header): ... to this. Update all users.
20380 (multiboot_tag_start): Rename from this ...
20381 (multiboot2_tag_start): ... to this. Update all users.
20382 (multiboot_tag_name): Rename from this ...
20383 (multiboot2_tag_name): ... to this. Update all users.
20384 (multiboot_tag_module): Rename from this ...
20385 (multiboot2_tag_module): ... to this. Update all users.
20386 (multiboot_tag_memory): Rename from this ...
20387 (multiboot2_tag_memory): ... to this. Update all users.
20388 (multiboot_tag_unused): Rename from this ...
20389 (multiboot2_tag_unused): ... to this. Update all users.
20390 (multiboot_tag_end): Rename from this ...
20391 (multiboot2_tag_end): ... to this. Update all users.
20392
20393 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
20394
20395 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
20396 this platform we should support Multiboot1 first.
20397
20398 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
20399 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
20400 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
20401
20402 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20403
20404 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
20405 of write calls (converting them to fwrite() if they aren't already).
20406 (get_torito_desc): Likewise.
20407 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
20408
20409 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
20410
20411 * util/i386/pc/grub-install.in: Move from here ...
20412 * util/grub-install.in: ... to here. Update all users.
20413
20414 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
20415
20416 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
20417
20418 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20419
20420 Support for El Torito without floppy emulation.
20421
20422 * util/mkisofs/eltorito.c: Include `<errno.h>'.
20423 (init_boot_catalog): Improve error handling.
20424 (get_torito_desc): Don't use floppy emulation unless requested by
20425 user. Patch boot information table when requested via
20426 `-boot-info-table'.
20427 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
20428 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
20429 (use_boot_info_table): New variables.
20430 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
20431 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
20432 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
20433 `--eltorito-emul-floppy'.
20434 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
20435 and `OPTION_ELTORITO_EMUL_FLOPPY'.
20436 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
20437 (use_boot_info_table, get_731): New prototypes.
20438 * util/mkisofs/write.c (get_731): New function.
20439
20440 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
20441
20442 Fix the generation of the man page.
20443
20444 * util/pc/i386/grub-install.in: Source
20445 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
20446
20447 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
20448
20449 Large file support for grub-mkisofs.
20450
20451 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
20452 * util/mkisofs/mkisofs.c (next_extent, last_extent)
20453 (session_start): Upgrade type to `uint64_t'. Update all users.
20454 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
20455 (struct directory_entry): Upgrade type of `starting_block' and
20456 `size' to `uint64_t'. Update all users.
20457 (struct deferred): Remove unused structure.
20458 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
20459 Update all users.
20460 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
20461 file is larger than `UINT32_MAX'.
20462 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
20463 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
20464 return value.
20465 (struct deferred_write): Upgrade type of `extent' and `size' to
20466 `uint64_t'. Update all users.
20467 (last_extent_written): Upgrade type to `uint64_t'. Update all
20468 users.
20469 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
20470 Update all users. Upgrade type of `remain' to `int64_t' and
20471 `use' to `size_t'. Use error() to handle fread() errors.
20472 (write_files): Rely on write_one_file() rather than calling
20473 xfwrite() directly.
20474
20475 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
20476
20477 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
20478
20479 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20480
20481 * util/mkisofs/fnmatch.c: Remove.
20482 * util/mkisofs/getopt1.c: Likewise.
20483 * util/mkisofs/getopt.c: Likewise.
20484 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
20485 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
20486 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
20487 `gnulib/getopt1.c' and `gnulib/getopt.c'.
20488 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
20489
20490 * configure.ac: Detect `mingw32msvc' host_os.
20491 Check for lstat(), getuid() and getgid().
20492
20493 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
20494 instances of `u_char' with `uint8_t'.
20495
20496 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
20497 [!HAVE_GETUID] (getuid): New function (stub).
20498 [!HAVE_GETGID] (getgid): Likewise.
20499 [!HAVE_LSTAT] (lstat): Likewise.
20500 [!S_IROTH] (S_IROTH): New macro (dummy).
20501 [!S_IRGRP] (S_IRGRP): Likewise.
20502
20503 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20504
20505 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
20506 conditional expression).
20507
20508 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20509
20510 Import from Gnulib.
20511
20512 * gnulib/fnmatch.c: New file.
20513 * gnulib/fnmatch.h: Likewise.
20514 * gnulib/fnmatch_loop.c: Likewise.
20515 * gnulib/getopt.c: Likewise.
20516 * gnulib/getopt.h: Likewise.
20517 * gnulib/getopt1.c: Likewise.
20518 * gnulib/getopt_int.h: Likewise.
20519 * gnulib/gettext.h: Likewise.
20520
20521 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20522
20523 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
20524 * normal/handler.c (read_handler_list): Likewise.
20525
20526 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20527
20528 Misc cleanup.
20529
20530 * kern/command.c (grub_register_command_prio): Use
20531 grub_zalloc() instead of explicitly zeroing data.
20532 * kern/list.c: Include `<grub/mm.h>'.
20533 (grub_named_list_find): Replace `0' with `NULL'.
20534 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
20535 (fs_module_list): Change type to `grub_named_list_t'. Update all
20536 users.
20537 * normal/dyncmd.c (read_command_list): Add space between function
20538 call and parenthesis.
20539 * normal/handler.c (read_handler_list): Likewise.
20540
20541 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20542
20543 * normal/auth.c (punishment_delay): Moved from here ...
20544 (grub_auth_strcmp): ... to here (inside function).
20545
20546 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20547
20548 * include/grub/list.h (struct grub_named_list): Remove `const'
20549 qualifier from `name'.
20550 (struct grub_prio_list): Likewise.
20551
20552 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20553
20554 * normal/auth.c: Include `<grub/time.h>'.
20555 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
20556
20557 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20558
20559 * normal/auth.c (punishment_delay): New variable.
20560 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
20561 (grub_auth_check_authentication): Punish failed login attempts with
20562 an incremental (2^N) delay.
20563
20564 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20565
20566 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
20567 path with $(srcdir).
20568
20569 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20570
20571 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
20572
20573 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
20574
20575 * util/i386/coreboot/grub-mkrescue.in: New file.
20576 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
20577 variables.
20578
20579 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
20580 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
20581 * configure.ac: Add header and function checks to satisfy grub-mkisofs
20582 requirements.
20583 * util/mkisofs/defaults.h: New file.
20584 * util/mkisofs/eltorito.c: Likewise.
20585 * util/mkisofs/exclude.h: Likewise.
20586 * util/mkisofs/fnmatch.c: Likewise.
20587 * util/mkisofs/getopt.c: Likewise.
20588 * util/mkisofs/getopt1.c: Likewise.
20589 * util/mkisofs/hash.c: Likewise.
20590 * util/mkisofs/include/fctldefs.h: Likewise.
20591 * util/mkisofs/include/mconfig.h: Likewise.
20592 * util/mkisofs/include/prototyp.h: Likewise.
20593 * util/mkisofs/include/statdefs.h: Likewise.
20594 * util/mkisofs/iso9660.h: Likewise.
20595 * util/mkisofs/joliet.c: Likewise.
20596 * util/mkisofs/match.c: Likewise.
20597 * util/mkisofs/match.h: Likewise.
20598 * util/mkisofs/mkisofs.c: Likewise.
20599 * util/mkisofs/mkisofs.h: Likewise.
20600 * util/mkisofs/multi.c: Likewise.
20601 * util/mkisofs/name.c: Likewise.
20602 * util/mkisofs/rock.c: Likewise.
20603 * util/mkisofs/tree.c: Likewise.
20604 * util/mkisofs/write.c: Likewise.
20605
20606 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
20607
20608 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
20609 being insecure.
20610
20611 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20612
20613 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
20614 `grub-mkimage' (and use $0 when possible).
20615
20616 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20617
20618 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
20619 error message for excessively large memory map.
20620
20621 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20622
20623 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
20624 executable bit.
20625
20626 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
20627
20628 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
20629 message for coreboot users.
20630
20631 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
20632
20633 Fix build with GNU gold.
20634
20635 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
20636 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
20637 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
20638 link addresses.
20639 * aclocal.m4: Likewise.
20640
20641 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
20642
20643 * configure.ac (AC_PREREQ): Bump to 2.59d.
20644 * INSTALL: Make it more clear when Autoconf and Ruby are
20645 needed and when to run `./autogen.sh'.
20646
20647 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
20648
20649 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
20650 OSes.
20651
20652 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20653
20654 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
20655
20656 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20657
20658 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
20659 giving it to GNU Mach.
20660
20661 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20662
20663 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
20664 GNU partition number to get internal GRUB partition number.
20665
20666 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
20667
20668 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
20669 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
20670
20671 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
20672
20673 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
20674 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
20675 case.
20676
20677 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
20678
20679 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
20680
20681 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20682
20683 Fix build problem.
20684
20685 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
20686 `-isystem=$(srcdir)/include'.
20687
20688 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
20689
20690 * util/i386/pc/grub-install.in: Remove hint that device.map should be
20691 checked (grub-install doesn't currently rely on it).
20692
20693 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
20694
20695 Revert SVN r2660.
20696
20697 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
20698 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20699 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
20700 * conf/i386-ieee1275.rmk: Likewise.
20701 * conf/i386-pc.rmk: Likewise.
20702 * conf/powerpc-ieee1275.rmk: Likewise.
20703 * conf/sparc64-ieee1275.rmk: Likewise.
20704 * conf/x86_64-efi.rmk: Likewise.
20705
20706 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20707
20708 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
20709
20710 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20711
20712 * include/grub/misc.h: Stop checking for APPLE_CC.
20713
20714 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
20715
20716 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
20717 doesn't cause an infinite call loop.
20718
20719 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
20720
20721 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
20722 strings.
20723
20724 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20725
20726 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
20727 variable.
20728 * Makefile.in: Likewise.
20729
20730 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20731
20732 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
20733
20734 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20735
20736 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
20737
20738 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20739
20740 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
20741
20742 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20743
20744 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
20745 from here ...
20746 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
20747
20748 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20749
20750 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
20751 in $(MAKEINFO) invocation. This makes it clear in output that
20752 errors are being ignored.
20753
20754 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20755
20756 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
20757 from here ...
20758 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
20759 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
20760 * conf/i386-ieee1275.rmk: Likewise.
20761 * conf/i386-pc.rmk: Likewise.
20762 * conf/powerpc-ieee1275.rmk: Likewise.
20763 * conf/sparc64-ieee1275.rmk: Likewise.
20764 * conf/x86_64-efi.rmk: Likewise.
20765
20766 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20767
20768 * util/grub-editenv.c (main): If only a command is given, use
20769 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
20770 (usage): FILENAME is now optional and has a default.
20771
20772 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
20773
20774 Improve grub-mkconfig performance when there are several menu
20775 entries on a single filesystem.
20776
20777 * util/grub.d/10_linux.in (linux_entry): Cache the output of
20778 prepare_grub_to_access_device.
20779 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
20780 * util/grub.d/30_os-prober.in: Likewise.
20781
20782 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20783
20784 * util/grub.d/10_freebsd.in: Remove.
20785 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
20786 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
20787
20788 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
20789
20790 * docs/grub.cfg: Fix example usage of *BSD loaders.
20791
20792 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20793
20794 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
20795 grub_util_error() call.
20796
20797 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20798
20799 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
20800 `reserved_first_sector' member.
20801 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
20802 `reserved_first_sector' to 1.
20803 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
20804 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
20805 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
20806 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
20807 filesystems which begin at first sector.
20808 (options): New option --skip-fs-probe.
20809 (main): Handle --skip-fs-probe and pass it to setup().
20810
20811 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20812
20813 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
20814 (memset): Fix function prototype.
20815
20816 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20817 2009-10-25 Vasily Averin <vvs@parallels.com>
20818
20819 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
20820 `dirent.direntlen == 0'.
20821
20822 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20823
20824 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
20825 `cpio'.
20826 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
20827
20828 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20829
20830 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
20831 `__trampoline_setup' and `__ucmpdi2'.
20832 * include/grub/powerpc/libgcc.h: Only export symbols for functions
20833 that libgcc provides.
20834
20835 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20836
20837 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
20838 * include/grub/sparc64/libgcc.h (memset): Likewise.
20839 * include/grub/misc.h (memset, memcmp): New function prototypes.
20840
20841 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20842
20843 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
20844 `cpio'.
20845 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
20846
20847 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
20848
20849 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
20850 * docs/grub.cfg: Compensate for recent change in multiboot
20851 loader (since 2009-08-14 it won't pass filename to payload).
20852 * util/grub.d/10_hurd.in: Likewise.
20853
20854 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
20855
20856 * config.guess: Update to latest version from config git
20857 repository.
20858 * config.sub: Likewise.
20859
20860 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
20861
20862 Fix build on sparc64.
20863
20864 * configure.ac: Perform checks for libgcc symbols before
20865 adding `-nostdlib' to LDFLAGS.
20866
20867 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20868
20869 Let user specify OpenBSD root device.
20870
20871 * loader/i386/bsd.c (openbsd_root): New variable.
20872 (openbsd_opts): New option 'root'.
20873 (OPENBSD_ROOT_ARG): New macro.
20874 (grub_openbsd_boot): Use 'openbsd_root'.
20875 (grub_cmd_openbsd): Fill 'openbsd_root'.
20876
20877 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20878
20879 * NEWS: Misc adjustments.
20880
20881 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
20882
20883 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
20884
20885 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
20886
20887 * configure.ac: Bump version to 1.97.
20888
20889 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
20890
20891 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
20892 -mno-3dnow on x86 architectures. Some toolchains enable these
20893 features by default, but they rely on registers that aren't enabled
20894 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
20895
20896 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
20897
20898 Make entry text a bit more readable.
20899
20900 * util/grub.d/10_linux.in: Add `with' before `Linux'.
20901
20902 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20903
20904 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
20905
20906 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20907
20908 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
20909 operations.
20910
20911 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20912
20913 * configure.ac: Add missing dollar.
20914
20915 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
20916
20917 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
20918
20919 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
20920 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
20921 exports.
20922 * include/grub/sparc64/libgcc.h: Likewise. Use
20923 preprocessor conditionals.
20924
20925 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20926
20927 * conf/common.rmk (grub-dumpbios): Remove rule.
20928 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
20929 * util/grub-dumpbios.in: Remove file.
20930
20931 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
20932
20933 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
20934 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
20935
20936 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
20937 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
20938 users.
20939
20940 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
20941 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
20942 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
20943 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
20944 users.
20945
20946 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
20947
20948 * term/tparm.c: Switch to GPLv3.
20949
20950 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20951
20952 * include/grub/i386/cpuid.h: Add header protection.
20953
20954 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
20955
20956 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
20957
20958 * include/grub/i386/cpuid.h: New file.
20959 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
20960 (has_longmode): Rename to ...
20961 (grub_cpuid_has_longmode): ... this. Update all users. Remove
20962 `static' attribute.
20963 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
20964 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
20965 on a CPU that doesn't implement AMD64 instruction set.
20966
20967 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20968
20969 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
20970 that version.texi is rebuilt on version number changes.
20971
20972 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20973
20974 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
20975 Fixes bug #27602.
20976
20977 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
20978
20979 * util/i386/pc/grub-install.in: Source
20980 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
20981 that the --grub-probe option will work.
20982 * util/sparc64/ieee1275/grub-install.in: Likewise.
20983
20984 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
20985
20986 * configure.ac: Bump version to 1.97~beta4.
20987
20988 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
20989
20990 Resync grub-mkdevicemap in x86_64-efi.
20991
20992 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
20993 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
20994 `util/devicemap.c'.
20995
20996 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
20997
20998 * util/grub-editenv.c (create_envblk_file): Write new block with a
20999 .new suffix and then rename it into place, to ensure atomic
21000 creation.
21001
21002 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
21003
21004 Do not automatically install headers.
21005
21006 * Makefile.in (include_DATA): Remove. Update all users.
21007
21008 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
21009
21010 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
21011 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
21012
21013 * util/osdetect.lua: Remove.
21014 * script/lua/lauxlib.c: Likewise.
21015 * script/lua/ldebug.c: Likewise.
21016 * script/lua/grub_main.c: Likewise.
21017 * script/lua/lauxlib.h: Likewise.
21018 * script/lua/ldebug.h: Likewise.
21019 * script/lua/ltablib.c: Likewise.
21020 * script/lua/liolib.c: Likewise.
21021 * script/lua/lstrlib.c: Likewise.
21022 * script/lua/lualib.h: Likewise.
21023 * script/lua/ldo.c: Likewise.
21024 * script/lua/ldump.c: Likewise.
21025 * script/lua/ldo.h: Likewise.
21026 * script/lua/loslib.c: Likewise.
21027 * script/lua/lundump.c: Likewise.
21028 * script/lua/grub_lib.c: Likewise.
21029 * script/lua/ldblib.c: Likewise.
21030 * script/lua/lundump.h: Likewise.
21031 * script/lua/lmem.c: Likewise.
21032 * script/lua/grub_lib.h: Likewise.
21033 * script/lua/lmathlib.c: Likewise.
21034 * script/lua/lstate.c: Likewise.
21035 * script/lua/ltm.c: Likewise.
21036 * script/lua/lvm.c: Likewise.
21037 * script/lua/lmem.h: Likewise.
21038 * script/lua/lstate.h: Likewise.
21039 * script/lua/ltm.h: Likewise.
21040 * script/lua/ltable.c: Likewise.
21041 * script/lua/lvm.h: Likewise.
21042 * script/lua/llex.c: Likewise.
21043 * script/lua/lgc.c: Likewise.
21044 * script/lua/grub_lua.h: Likewise.
21045 * script/lua/loadlib.c: Likewise.
21046 * script/lua/lfunc.c: Likewise.
21047 * script/lua/lopcodes.c: Likewise.
21048 * script/lua/lparser.c: Likewise.
21049 * script/lua/ltable.h: Likewise.
21050 * script/lua/llex.h: Likewise.
21051 * script/lua/lgc.h: Likewise.
21052 * script/lua/lfunc.h: Likewise.
21053 * script/lua/lbaselib.c: Likewise.
21054 * script/lua/lopcodes.h: Likewise.
21055 * script/lua/lparser.h: Likewise.
21056 * script/lua/lzio.c: Likewise.
21057 * script/lua/linit.c: Likewise.
21058 * script/lua/lobject.c: Likewise.
21059 * script/lua/llimits.h: Likewise.
21060 * script/lua/lstring.c: Likewise.
21061 * script/lua/lzio.h: Likewise.
21062 * script/lua/lapi.c: Likewise.
21063 * script/lua/lcode.c: Likewise.
21064 * script/lua/lua.h: Likewise.
21065 * script/lua/lobject.h: Likewise.
21066 * script/lua/lstring.h: Likewise.
21067 * script/lua/lapi.h: Likewise.
21068 * script/lua/lcode.h: Likewise.
21069 * script/lua/luaconf.h: Likewise.
21070
21071 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
21072
21073 * docs/grub.texi (Command-line and menu entry commands): Document
21074 date and echo commands.
21075
21076 2009-09-24 Pavel Roskin <proski@gnu.org>
21077
21078 * include/grub/kernel.h (struct grub_module_header): Remove
21079 `grub_module_header_types'. Make `type' unsigned. Make `size'
21080 32-bit on all platforms.
21081 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
21082 8-bit field. Use grub_host_to_target32() for `size'.
21083 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
21084 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
21085 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
21086
21087 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
21088
21089 Fix "lost keypress" bug in at_keyboard.
21090
21091 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
21092 Checks for readyness of input buffer (without flushing it).
21093 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
21094 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
21095
21096 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
21097
21098 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
21099 size check within GRUB_MACHINE_PCBIOS section.
21100
21101 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
21102
21103 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
21104 return value.
21105 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
21106 KEYBOARD_ISREADY check.
21107 (grub_at_keyboard_checkkey): Rename to ...
21108 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
21109 Remove gratuitous cast.
21110
21111 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
21112
21113 * configure.ac: Call AC_PROG_MKDIR_P.
21114 * Makefile.in (docs/stamp-vti): Create docs directory. Create
21115 version.texi in $(builddir) rather than $(srcdir).
21116 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
21117 to makeinfo's @include search path.
21118
21119 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
21120
21121 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
21122
21123 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
21124
21125 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
21126 for `*.dpkg-new'.
21127
21128 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
21129
21130 Build info documentation. Some code borrowed from Automake.
21131
21132 * configure.ac: Check for makeinfo.
21133 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
21134 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
21135 docs/version.texi.
21136 (MOSTLYCLEANFILES): Add vti.tmp.
21137 (docs/version.texi, docs/stamp-vti): Update automatically.
21138 (docs/grub.info): Build info documentation. Use --force and ignore
21139 errors for now.
21140 (all-local): Add $(INFOS).
21141 (install-local): Install info files.
21142 (uninstall): Uninstall info files.
21143 * docs/version.texi: Remove from revision control. This file is
21144 automatically generated on build now.
21145 * gendistlist.sh: Add `*.info'.
21146
21147 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
21148
21149 * kern/term.c: Fix indentation.
21150
21151 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
21152
21153 * util/hostdisk.c: Fix a comment.
21154
21155 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
21156
21157 Fix regression introduced in r2539.
21158
21159 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
21160 to 0xA1.
21161
21162 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
21163
21164 * util/grub.d/30_os-prober.in: Don't throw away stderr from
21165 os-prober. Under normal operation, it does not print anything to
21166 stderr; if it does, we need to debug it, and throwing away stderr
21167 makes that excessively difficult.
21168
21169 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
21170
21171 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
21172
21173 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
21174
21175 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
21176 AC_LANG_PROGRAM from autoconf.
21177 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
21178 prototypes (fixes warning).
21179
21180 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
21181 `--disable-werror' was used.
21182
21183 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
21184
21185 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
21186 uninitialized `lastaddr'.
21187
21188 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
21189
21190 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
21191
21192 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
21193
21194 * commands/test.c (get_fileinfo): Return immediately if
21195 grub_fs_probe fails.
21196
21197 2009-09-14 José Martínez <xosemp@gmail.com>
21198
21199 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
21200
21201 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
21202
21203 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
21204 output.
21205
21206 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
21207
21208 * configure.ac: Remove --enable-grub-pe2elf. Only build
21209 grub-pe2elf when needed by the build system itself.
21210 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
21211
21212 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
21213
21214 * configure.ac: Bump version to 1.97~beta3.
21215 * docs/version.texi: Likewise.
21216
21217 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
21218
21219 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
21220 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
21221 from here ...
21222 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
21223 (grub_linux_setup_video): ... to here (with some adjustments).
21224
21225 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
21226
21227 Fix memory corruption issue (spotted by Colin Watson).
21228
21229 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
21230 causing returned size to be stored in an incorrect memory location.
21231 Fix use of uninitialized value when storing the returned size.
21232
21233 2009-09-12 Yves Blusseau <blusseau@zetam.org>
21234
21235 Change clean rules to properly remove files
21236
21237 * genmk.rb: add new clean rules
21238 * Makefile.in (clean): add the new targets
21239 (mostlyclean): likewise
21240
21241 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
21242
21243 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
21244 to grub_uint64_t.
21245 * fs/ntfs.c (init_file): Understand 64-bit sizes for
21246 non-resident files.
21247
21248 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
21249
21250 * configure.ac: Don't look for help2man when cross-compiling. Fixes
21251 part of bug #27349.
21252
21253 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
21254
21255 * util/grub-mkconfig.in: Make the created config mode 400 and
21256 print a warning if it fails.
21257
21258 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
21259
21260 * util/grub.d/40_custom.in: Ask user to type custom entries below
21261 comment, rather than below 'exec tail' line.
21262
21263 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
21264
21265 * util/grub.d/40_custom.in: Make sure that the explanatory text is
21266 visible in grub.cfg.
21267
21268 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
21269
21270 * util/grub.d/40_custom.in: Make it a little clearer how to use this
21271 file.
21272
21273 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
21274
21275 * docs/grub.cfg: Add an example menu entry for memtest86+.
21276
21277 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
21278
21279 * config.guess: Update to latest version from config git.
21280 * config.sub: Likewise.
21281
21282 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
21283
21284 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
21285 unknown-command case. Fixes bug #27320.
21286
21287 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
21288
21289 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
21290 `help' if the command exists.
21291
21292 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
21293
21294 * INSTALL: Require GCC 4.1.3 or later.
21295
21296 2009-09-06 Yves Blusseau <blusseau@zetam.org>
21297
21298 * Makefile.in (RMKFILES): add i386-qemu.rmk
21299 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
21300 $(srcdir)/stamp-h.in
21301
21302 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
21303
21304 * util/grub-probe.c (probe): Comment out buggy codepath, which
21305 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
21306 should be re-enabled after 1.97.
21307
21308 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
21309
21310 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
21311 find searches for.
21312
21313 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
21314
21315 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
21316 unnecessary calls to grub_error.
21317
21318 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
21319
21320 * NEWS: Mention `keystatus' and Unicode fonts.
21321
21322 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
21323
21324 * configure.ac: Bump version to 1.97~beta2.
21325 * docs/version.texi: Likewise.
21326
21327 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
21328
21329 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
21330 containing unwind information in some cases where it previously did
21331 not. Use -fno-dwarf2-cfi-asm if available to restore the old
21332 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
21333 discussion.
21334
21335 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
21336
21337 Embedding loadenv module into grub-emu
21338
21339 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
21340 commands/loadenv.c
21341 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
21342 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
21343 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
21344 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
21345 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
21346 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
21347
21348 2009-09-03 Magnus Granberg <zorry@ume.nu>
21349
21350 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
21351 include -fPIE in the default specs.
21352 * configure.ac: Check if pie_possible is yes and add -fno-PIE
21353 to TARGET_CFLAGS.
21354
21355 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
21356
21357 * INSTALL: Note that GNU Bison 2.3 or later is required.
21358
21359 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
21360
21361 * kern/i386/pc/startup.S: Fix typo.
21362
21363 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
21364
21365 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
21366 according to GCS.
21367
21368 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21369
21370 * docs/grub.texi (Naming convention): Describe one-based partition
21371 numbering.
21372 (Device syntax): Likewise.
21373 (File name syntax): Likewise.
21374 (Block list syntax): Likewise.
21375 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
21376 menu.lst.
21377 (File name syntax): Likewise.
21378 (Command-line and menu entry commands): Document acpi, blocklist,
21379 crc, export, insmod, keystatus, ls, set, and unset commands.
21380
21381 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21382
21383 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
21384 to avoid implying that only one of --shift, --ctrl, or --alt may be
21385 used.
21386
21387 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
21388
21389 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
21390 rather than comparing against S_IFREG, which will almost never work.
21391
21392 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
21393
21394 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
21395 (write_blocklists): Likewise.
21396
21397 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
21398
21399 * script/lua/grub_lua.h (fputs): Supply a format string as the first
21400 argument to grub_printf.
21401
21402 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
21403
21404 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
21405 non GNU test.
21406
21407 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21408
21409 * kern/file.c (grub_file_read): Spelling fix
21410
21411 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
21412
21413 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
21414 loading of headers in some cases.
21415
21416 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
21417
21418 * configure.ac: Bump version to 1.97~beta1.
21419 * docs/version.texi: Likewise.
21420
21421 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
21422
21423 * include/grub/i386/xnu.h: Add license header.
21424 include grub/err.h explicitly.
21425
21426 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21427
21428 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
21429 to `ufs' in the vfs.root.mountfrom kernel parameter.
21430
21431 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
21432
21433 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
21434
21435 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
21436 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
21437
21438 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
21439 `ARRAY_SIZE' macro.
21440
21441 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21442
21443 * kern/file.c (grub_file_read): Check offset.
21444 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
21445 * fs/jfs.c (grub_jfs_read_file): Likewise.
21446 * fs/ntfs.c (grub_ntfs_read): Likewise.
21447 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
21448 * fs/minix.c (grub_minix_read_file): Correct offset check.
21449 * fs/ufs.c (grub_ufs_read_file): Likewise.
21450
21451 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21452
21453 * term/i386/pc/console.c (bios_data_area): Cast
21454 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
21455
21456 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21457
21458 1-bit optimised blitters.
21459
21460 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
21461 prototype.
21462 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21463 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21464 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21465 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21466 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21467 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21468 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
21469 function.
21470 (grub_video_fbblit_replace_24bit_1bit): Likewise.
21471 (grub_video_fbblit_replace_16bit_1bit): Likewise.
21472 (grub_video_fbblit_replace_8bit_1bit): Likewise.
21473 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
21474 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
21475 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
21476 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
21477 when possible.
21478 * video/video.c (grub_video_get_blit_format): Return
21479 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
21480
21481 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21482
21483 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
21484 the first argument to grub_printf.
21485
21486 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
21487 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
21488
21489 Add `getkeystatus' terminal method. Add a new `keystatus' command
21490 to query it.
21491
21492 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
21493 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
21494 modifier key bitmasks.
21495 (struct grub_term_input): Add `getkeystatus' member.
21496 (grub_getkeystatus): Add prototype.
21497 * kern/term.c (grub_getkeystatus): New function.
21498
21499 * include/grub/i386/pc/memory.h
21500 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
21501 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
21502 Data Area layout.
21503 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
21504 (grub_console_term_input): Set `getkeystatus' member.
21505 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
21506 constants.
21507 (grub_usb_keyboard_getreport): Likewise.
21508 (grub_usb_keyboard_checkkey): Likewise.
21509 (grub_usb_keyboard_getkeystatus): New function.
21510 (grub_usb_keyboard_term): Set `getkeystatus' member.
21511
21512 * commands/keystatus.c: New file.
21513 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
21514 (keystatus_mod_SOURCES): New variable.
21515 (keystatus_mod_CFLAGS): Likewise.
21516 (keystatus_mod_LDFLAGS): Likewise.
21517 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
21518 commands/keystatus.c.
21519 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21520 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21521 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21522 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21523 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21524 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21525
21526 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
21527
21528 Split befs.mod and afs.mod into *_be.mod and *.mod
21529
21530 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
21531 (grub_fstest_SOURCES): Likewise.
21532 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
21533 (afs_be_mod_SOURCES): New variable.
21534 (afs_be_mod_CFLAGS): Likewise.
21535 (afs_be_mod_LDFLAGS): Likewise.
21536 (befs_be_mod_SOURCES): Likewise.
21537 (befs_be_mod_CFLAGS): Likewise.
21538 (befs_be_mod_LDFLAGS): Likewise.
21539 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
21540 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21541 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21542 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
21543 (grub_emu_SOURCES): Likewise.
21544 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21545 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21546 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21547 * fs/afs_be.c: New file.
21548 * fs/befs_be.c: New file.
21549 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
21550 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
21551 (U16): Replaced with ...
21552 (grub_afs_to_cpu16): ...this. All users updated.
21553 (U32): Replaced with ...
21554 (grub_afs_to_cpu32): ...this. All users updated.
21555 (U64): Replaced with ...
21556 (grub_afs_to_cpu64): ...this. All users updated.
21557 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
21558 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
21559 (grub_afs_validate_sblock): Check only one endianness.
21560 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21561 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21562 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21563 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21564 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
21565 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
21566 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
21567 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
21568
21569 2009-08-26 Bean <bean123ch@gmail.com>
21570
21571 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
21572 64-bit number.
21573 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
21574 (grub_xfs_inode_block): Change return type to grub_uint64_t.
21575 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
21576
21577 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21578
21579 NetBSD memory map support.
21580
21581 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
21582 (grub_netbsd_btinfo_mmap_header): New structure.
21583 (grub_netbsd_btinfo_mmap_entry): Likewise.
21584 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
21585
21586 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21587
21588 Enable bsd.mod on coreboot.
21589
21590 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
21591 (bsd_mod_SOURCES): New variable.
21592 (bsd_mod_CFLAGS): Likewise.
21593 (bsd_mod_LDFLAGS): Likewise.
21594 (bsd_mod_ASFLAGS): Likewise.
21595 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
21596 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
21597
21598 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21599
21600 Cleanup NetBSD root support.
21601
21602 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
21603 grub_bsd_get_device.
21604 Fix typo.
21605
21606 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
21607
21608 * util/grub.d/00_header.in: Move check for the video backend of
21609 gfxterm from here ...
21610 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
21611 a suitable video backend.
21612
21613 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21614
21615 Fix breakage in grub-setup.
21616
21617 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
21618 "msdos_partition_map".
21619
21620 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21621
21622 Fix breakage in normal/auth.c.
21623
21624 * normal/auth.c (grub_iswordseparator): New function.
21625
21626 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
21627
21628 Authentication support.
21629
21630 * commands/password.c: New file.
21631 * conf/common.rmk (pkglib_MODULES): Add password.mod.
21632 (password_mod_SOURCES): New variable.
21633 (password_mod_CFLAGS): Likewise.
21634 (password_mod_LDFLAGS): Likewise.
21635 (normal_mod_SOURCES): Add normal/auth.c.
21636 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
21637 normal/auth.c.
21638 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
21639 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21640 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21641 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21642 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21643 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
21644 * include/grub/auth.h: New file.
21645 * include/grub/err.h (grub_err_t): New enum value
21646 GRUB_ERR_ACCESS_DENIED.
21647 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
21648 'users'.
21649 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
21650 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
21651 users updated.
21652 * normal/auth.c: New file.
21653 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
21654 (grub_cmdline_run): Don't allow to go to command line without
21655 authentication.
21656 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
21657 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
21658 menuentry without superuser rights.
21659 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
21660 user isn't a superuser.
21661
21662 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21663
21664 Save space by inlining misc.c functions.
21665
21666 * kern/misc.c (grub_iswordseparator): Made static.
21667 * kern/misc.c (grub_strcat): Moved from here ...
21668 * include/grub/misc.h (grub_strcat): ... here. Inlined.
21669 * kern/misc.c (grub_strncat): Moved from here ...
21670 * include/grub/misc.h (grub_strncat): ... here. Inlined.
21671 * kern/misc.c (grub_strcasecmp): Moved from here ...
21672 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
21673 * kern/misc.c (grub_strncasecmp): Moved from here ...
21674 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
21675 * kern/misc.c (grub_isalpha): Moved from here ...
21676 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
21677 * kern/misc.c (grub_isdigit): Moved from here ...
21678 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
21679 * kern/misc.c (grub_isgraph): Moved from here ...
21680 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
21681 * kern/misc.c (grub_tolower): Moved from here ...
21682 * include/grub/misc.h (grub_tolower): ... here. Inlined.
21683
21684 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21685
21686 * script/sh/function.c (grub_script_function_find): Cut error message
21687 not to flood terminal.
21688 * script/sh/lexer.c (grub_script_yylex): Remove command line length
21689 limit.
21690 * script/sh/script.c (grub_script_arg_add): Duplicate string.
21691
21692 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
21693
21694 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
21695 `report' grub_uint8_t *.
21696 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
21697 Use a 50-millisecond timeout rather than just repeating
21698 grub_usb_keyboard_getreport 50 times.
21699 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
21700
21701 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21702
21703 Rename *_partition_map to part_*
21704
21705 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
21706 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
21707 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
21708 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
21709 All users updated.
21710 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
21711 All users updated.
21712 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
21713 * util/grub-probe.c (probe_partmap): Don't transform partition name
21714 to get module name.
21715
21716 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21717
21718 Fix OpenBSD and NetBSD support.
21719
21720 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
21721 memory address conflict.
21722 (OPENBSD_MMAP_ACPI): New definition.
21723 (OPENBSD_MMAP_NVS): Likewise.
21724 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
21725 and OPENBSD_MMAP_NVS.
21726 Add memory map terminator
21727 Explicit cast when calling grub_unix_real_boot.
21728 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
21729
21730 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21731
21732 Let user specify NetBSD root device.
21733
21734 * loader/i386/bsd.c (netbsd_root): New variable.
21735 (netbsd_opts): New option 'root'.
21736 (NETBSD_ROOT_ARG): New macro.
21737 (grub_netbsd_boot): Use 'netbsd_root'.
21738 (grub_bsd_unload): Free 'netbsd_root'.
21739 (grub_cmd_netbsd): Fill 'netbsd_root'.
21740
21741 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21742
21743 Support for 64-bit NetBSD.
21744
21745 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
21746 point when booting non-FreeBSD.
21747
21748 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
21749
21750 Support --no-smp and --no-acpi for NetBSD.
21751
21752 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
21753 (NETBSD_AB_NOACPI): Likewise.
21754 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
21755 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
21756
21757 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21758
21759 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
21760 errors.
21761 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
21762 errors. Call grub_error when needed.
21763
21764 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21765
21766 * commands/search.c (search_fs): Try searching without autoload first.
21767 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
21768 filesystem module explicitly for faster booting.
21769
21770 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21771
21772 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
21773
21774 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
21775
21776 * util/grub.d/30_os-prober.in: Disable os-prober if
21777 `GRUB_DISABLE_OS_PROBER' was set to true.
21778
21779 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
21780
21781 * partmap/pc.c: Rename to ...
21782 * partmap/msdos.c: ... this. Update all users.
21783 (grub_pc_partition_map): Rename to ...
21784 (grub_msdos_partition_map): ... this. Update all users.
21785
21786 * parttool/pcpart.c: Rename to ...
21787 * parttool/msdospart.c: ... this. Update all users.
21788
21789 * include/grub/pc_partition.h: Rename to ...
21790 * include/grub/msdos_partition.h: ... this. Update all users.
21791 (grub_pc_partition_bsd_entry): Rename to ...
21792 (grub_msdos_partition_bsd_entry): ... this. Update all users.
21793 (grub_pc_partition_disk_label): Rename to ...
21794 (grub_msdos_partition_disk_label): ... this. Update all users.
21795 (grub_pc_partition_entry): Rename to ...
21796 (grub_msdos_partition_entry): ... this. Update all users.
21797 (grub_pc_partition_mbr): Rename to ...
21798 (grub_msdos_partition_mbr): ... this. Update all users.
21799 (grub_pc_partition): Rename to ...
21800 (grub_msdos_partition): ... this. Update all users.
21801 (grub_pc_partition_is_empty): Rename to ...
21802 (grub_msdos_partition_is_empty): ... this. Update all users.
21803 (grub_pc_partition_is_extended): Rename to ...
21804 (grub_msdos_partition_is_extended): ... this. Update all users.
21805 (grub_pc_partition_is_bsd): Rename to ...
21806 (grub_msdos_partition_is_bsd): ... this. Update all users.
21807
21808 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
21809 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
21810 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
21811 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
21812 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
21813 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
21814 (gpt_mod_LDFLAGS): Rename to ...
21815 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
21816 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
21817 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
21818 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
21819 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
21820 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
21821 (part_gpt_mod_LDFLAGS): ... this.
21822 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
21823 `pcpart.mod' to `msdospart.mod'.
21824 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
21825 to ...
21826 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
21827 (msdospart_mod_LDFLAGS): ... this.
21828
21829 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
21830
21831 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
21832 (openbsd_opts): Likewise.
21833 (netbsd_opts): Likewise.
21834 (freebsd_flags): Added 0 terminator.
21835 (openbsd_flags): Likewise.
21836 (netbsd_flags): Likewise.
21837 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
21838 (grub_cmd_freebsd): Transformed into extended command.
21839 (grub_cmd_openbsd): Likewise.
21840 (grub_cmd_netbsd): Likewise.
21841 (cmd_freebsd): Changed type to grub_extcmd_t.
21842 (cmd_openbsd): Likewise.
21843 (cmd_netbsd): Likewise.
21844 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
21845 grub_cmd_openbsd as extended commands.
21846 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
21847 cmd_netbsd and cmd_openbsd
21848
21849 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
21850
21851 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
21852
21853 2009-08-21 Pavel Roskin <proski@gnu.org>
21854
21855 * Makefile.in (install-local): When checking if a file is in the
21856 build directory, use "test -e" to detect symlinks.
21857
21858 * Makefile.in (install-local): Remove all files in
21859 $(DESTDIR)$(pkglibdir) before installing new files there.
21860
21861 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21862
21863 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
21864 grub-mkelfimage.
21865
21866 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
21867
21868 * util/grub-mkconfig.in: Don't use gfxterm by default if not
21869 explicitly specified by the user.
21870
21871 2009-08-18 Pavel Roskin <proski@gnu.org>
21872
21873 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
21874 grub_uint8_t pointer for data.
21875 * include/grub/fbutil.h (struct grub_video_fbblit_info):
21876 Likewise.
21877 * video/fb/fbutil.c: Remove unnecessary casts.
21878
21879 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21880
21881 VBE cleanup.
21882
21883 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
21884 (grub_vbe_set_video_mode): Save active mode info
21885 only after setting the mode.
21886 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
21887 second argument.
21888
21889 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21890
21891 Rename variables for clarity.
21892
21893 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
21894 (active_vbe_mode_info): ... this. All users updated.
21895 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
21896 All users updated.
21897 (initial_mode): Rename to ...
21898 (initial_vbe_mode): ... this. All users updated.
21899 (mode_in_use): Rename to ..
21900 (vbe_mode_in_use): ... this. All users updated.
21901 (mode_list): Rename to ..
21902 (vbe_mode_list): ... this. All users updated.
21903 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
21904 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
21905 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
21906 'mode_list_size' to 'vbe_mode_list_size'.
21907 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
21908 'best_mode_info' to 'best_vbe_mode_info' and
21909 'best_mode' to 'best_vbe_mode'
21910
21911 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
21912
21913 Remove duplicate grub_video_fb_get_video_ptr.
21914
21915 * include/grub/fbutil.h (get_data_ptr): Rename to ...
21916 (grub_video_fb_get_video_ptr): ... this.
21917 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
21918 * video/fb/fbutil.c: Add comment about addressing.
21919 (get_data_ptr): Rename to ...
21920 (grub_video_fb_get_video_ptr): ... this. All users updated.
21921 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
21922
21923 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21924
21925 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
21926 grub_dprintf() that was just added.
21927
21928 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
21929
21930 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
21931 (DEFAULT_VIDEO_MODE): Remove macros.
21932 (grub_linux_boot): Remove assumption that Linux has FB support,
21933 and use "text" as default video mode.
21934
21935 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
21936
21937 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
21938 grub_dprintf.
21939 * fs/fat.c (grub_fat_read_data): Likewise.
21940
21941 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21942
21943 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
21944 payload.
21945 (grub_module): Likewise.
21946
21947 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21948
21949 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
21950 mbi->cmdline but free playground.
21951
21952 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21953
21954 Handle group offset on UFS1.
21955
21956 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
21957 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
21958
21959 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21960
21961 Split ufs.mod into ufs1.mod and ufs2.mod.
21962
21963 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
21964 (grub_fstest_SOURCES): Likewise.
21965 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
21966 (ufs_mod_SOURCES): Remove.
21967 (ufs_mod_CFLAGS): Likewise.
21968 (ufs_mod_LDFLAGS): Likewise.
21969 (ufs1_mod_SOURCES): New variable.
21970 (ufs1_mod_CFLAGS): Likewise.
21971 (ufs1_mod_LDFLAGS): Likewise.
21972 (ufs2_mod_SOURCES): New variable.
21973 (ufs2_mod_CFLAGS): Likewise.
21974 (ufs2_mod_LDFLAGS): Likewise.
21975 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
21976 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21977 Likewise.
21978 (grub_emu_SOURCES): Likewise.
21979 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21980 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
21981 (grub_setup_SOURCES): Likewise.
21982 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
21983 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
21984 (grub_setup_SOURCES): Likewise.
21985 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
21986 Likewise.
21987 * fs/ufs2.c: New file.
21988 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
21989
21990 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
21991
21992 Framebuffer split.
21993
21994 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
21995 subsystem at the end.
21996 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
21997 (video_fb_mod_SOURCES): New variable.
21998 (video_fb_mod_CFLAGS): Likewise.
21999 (video_fb_mod_LDFLAGS): Likewise.
22000 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
22001 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
22002 * video/i386/pc/vbeblit.c: Moved from here ...
22003 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
22004 * video/i386/pc/vbefill.c: Moved from here ...
22005 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
22006 * video/i386/pc/vbeutil.c: Moved from here ...
22007 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
22008 * include/grub/i386/pc/vbeblit.h: Moved from here ...
22009 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
22010 * include/grub/i386/pc/vbefill.h: Moved from here ...
22011 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
22012 * include/grub/i386/pc/vbeutil.h: Moved from here ...
22013 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
22014 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
22015 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
22016 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
22017 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
22018 (grub_video_adapter): Added 'get_info_and_fini'.
22019 (grub_video_get_info_and_fini): New prototype.
22020 (grub_video_set_mode): make modestring const char *.
22021 * loader/i386/linux.c (grub_linux_setup_video): Use
22022 grub_video_get_info_and_fini.
22023 (grub_linux_boot): Move modesetting just before booting.
22024 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
22025 grub_video_get_info_and_fini.
22026 * video/i386/pc/vbe.c: Moved framebuffer part ...
22027 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
22028 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
22029 grub_video_fbstd_colors and grub_video_fb_set_palette.
22030 (grub_video_vbe_init): Clear 'framebuffer' variable and use
22031 grub_video_fb_init.
22032 (grub_video_vbe_fini): Use grub_video_fb_fini.
22033 (grub_video_vbe_setup): Use framebuffer.render_target instead of
22034 render_target and use grub_video_fb_set_active_render_target and
22035 grub_video_fb_set_palette.
22036 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
22037 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
22038 (grub_video_vbe_adapter): Use framebuffer.
22039 * video/video.c (grub_video_get_info_and_fini): New function.
22040 (grub_video_set_mode): Make modestring const char *.
22041 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
22042 values are already initialised.
22043
22044 2009-08-14 Pavel Roskin <proski@gnu.org>
22045
22046 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
22047 ABS and APPLE_CC.
22048 * boot/i386/pc/diskboot.S: Likewise.
22049 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
22050 sectors allow compilation on MacOSX.
22051 * conf/i386-pc.rmk: Enable unconditional compilation of
22052 lnxboot.img.
22053
22054 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
22055
22056 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
22057 * util/grub.d/00_header.in: Enter interruptible sleep if
22058 GRUB_HIDDEN_TIMEOUT is set.
22059
22060 2009-08-13 Yves Blusseau <blusseau@zetam.org>
22061
22062 * include/grub/symbol.h: Add the LOCAL macro.
22063 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
22064 starting with "L_".
22065
22066 2009-08-13 Pavel Roskin <proski@gnu.org>
22067
22068 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
22069 any modern compilers we support.
22070
22071 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
22072 Use local labels starting with "L_" so that Apple assembler
22073 knows they are local.
22074
22075 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
22076
22077 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
22078 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
22079 (bsd_kernel_types): ... this enum.
22080
22081 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
22082 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
22083 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
22084
22085 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
22086 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
22087 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
22088 messages.
22089
22090 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
22091
22092 * util/grub-dumpdevtree: Moved from here ...
22093 * util/i386/efi/grub-dumpdevtree: ... to here.
22094 (hexify): New function. Converts a string to its hex version.
22095 Generate hex versions of "efi" and "device-properties" by calling
22096 hexify() on the ASCII strings rather than by hardcoding numbers.
22097
22098 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
22099
22100 * fs/jfs.c: Update copyright year.
22101
22102 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
22103
22104 * util/grub.d/00_header.in: Fix a comment.
22105 * util/grub.d/10_linux.in: Likewise.
22106 * util/grub.d/10_windows.in: Likewise.
22107 * util/grub.d/10_hurd.in: Likewise.
22108
22109 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
22110
22111 * util/grub-mkconfig.in: Allow the user to specify the used font
22112 with GRUB_FONT.
22113
22114 2009-08-08 Pavel Roskin <proski@gnu.org>
22115
22116 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
22117 available, xfs.mod needs it now.
22118
22119 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
22120 the "g" modifier in sed when the intention is to strip something
22121 once. This fixes comparison of kernels with multiple dashes.
22122
22123 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
22124 on it. Add missing space before closing bracket. Fix
22125 misleading formatting.
22126
22127 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22128
22129 * docs/grub.texi: Major overhaul. Remove all sections that are
22130 specific to GRUB Legacy, or mostly composed of Legacy-specific
22131 information.
22132
22133 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22134
22135 * docs/version.texi: New file. Provides version information for
22136 grub.texi.
22137
22138 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22139
22140 * docs/grub.texi: Update CVS information to SVN.
22141 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
22142
22143 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
22144
22145 * util/grub-mkconfig.in: Remove a wrong `fi'.
22146
22147 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
22148
22149 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
22150 (grub_jfs_uuid): New function.
22151 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
22152
22153 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
22154
22155 * util/grub-mkconfig_lib.in (font_path): Move the functionality
22156 of it to ...
22157 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
22158 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
22159
22160 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22161
22162 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
22163 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
22164 Update all users.
22165
22166 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
22167 not just "vmlinu[zx]".
22168 Moved from here ...
22169 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
22170 all users.
22171
22172 * util/grub.d/10_linux.in (find_latest): Moved from here ...
22173 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
22174 all users.
22175
22176 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
22177
22178 * util/grub.d/10_freebsd.in: Use an absolute device path for
22179 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
22180
22181 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
22182
22183 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
22184 handling of multiple abstraction modules.
22185
22186 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
22187
22188 Fix a bug resulting in black screen when loading Linux using a
22189 packed video mode.
22190
22191 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
22192 function.
22193
22194 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
22195 (grub_vbe_bios_getset_dac_palette_width): New function.
22196 (grub_vbe_bios_get_dac_palette_width)
22197 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
22198 grub_vbe_bios_getset_dac_palette_width()).
22199
22200 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
22201 check for return status.
22202 (grub_vbe_get_video_mode_info): When getting information for a packed
22203 mode (<= 8 bpp), obtain DAC palette width using
22204 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
22205 {red,green,blue}_mark_size.
22206
22207 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
22208
22209 * commands/search.c (options): Fix help output to match actual code.
22210
22211 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
22212
22213 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
22214 of homegrown code.
22215
22216 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22217
22218 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
22219 on XFS or ReiserFS.
22220
22221 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22222
22223 Support Apple partition map with sector size different from 512 bytes.
22224
22225 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
22226 (apple_partition_map_iterate): Respect 'aheader.blocksize'
22227 and 'apart.partmap_size'.
22228
22229 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
22230 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
22231
22232 Fix cpuid command.
22233
22234 * commands/i386/cpuid.c (options): New variable.
22235 (grub_cmd_cpuid): Return real error.
22236 (GRUB_MOD_INIT(cpuid)): Declare options.
22237
22238 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
22239
22240 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
22241 valid.
22242
22243 2009-07-31 Bean <bean123ch@gmail.com>
22244
22245 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
22246 log2_inode.
22247 (grub_fshelp_node): Move inode field to the end.
22248 (grub_xfs_data): Remove inode field.
22249 (grub_xfs_inode_block): Calculate inode size using sblock.
22250 (grub_xfs_inode_offset): Likewise.
22251 (grub_xfs_read_inode): Calculate inode size using sblock.
22252 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
22253 (grub_xfs_iterate_dir): Calculate inode size using sblock.
22254 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
22255 to match inode size.
22256 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
22257 not accessible when data is null.
22258 (grub_xfs_open): Likewise.
22259
22260 2009-07-31 Bean <bean123ch@gmail.com>
22261
22262 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
22263 Don't change pv->disk if it's already set.
22264
22265 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
22266 (grub_raid_register): ... here.
22267 (grub_raid_rescan): Removed.
22268
22269 * include/grub/raid.h (grub_raid_rescan): Removed.
22270
22271 * util/grub-fstest.c: Remove include file <grub/raid.h>.
22272 (fstest): Replace grub_raid_rescan with module fini function followed
22273 by init function.
22274
22275 * util/grub-probe.c: Add include file <grub/raid.h>.
22276 (probe_raid_level): New function.
22277 (probe): Detect abstraction by walking the disk device, support two
22278 level of abstraction (LVM on RAID) when detecting partition map.
22279
22280 2009-07-31 Pavel Roskin <proski@gnu.org>
22281
22282 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
22283 to grub_zalloc(), it was erroneous.
22284 Reported by Bean <bean123ch@gmail.com>
22285
22286 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
22287
22288 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
22289 embedding zone, not only the first one.
22290
22291 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
22292
22293 * term/gfxterm.c (clear_char): New function.
22294 (grub_virtual_screen_setup): Use clear_char.
22295 (scroll_up): Likewise.
22296 (grub_virtual_screen_cls): Likewise.
22297
22298 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
22299
22300 * util/deviceiter.c (get_acceleraid_disk_name): New static
22301 function.
22302 (grub_util_iterate_devices): Handle Accelraid devices.
22303 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
22304
22305 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
22306
22307 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
22308 separator for the suggested gfxpayload string (';' collides with the
22309 parser and needs escaping).
22310
22311 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
22312
22313 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
22314 Clear direction flag before jumping to OS.
22315 (grub_multiboot2_real_boot): Likewise.
22316
22317 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
22318
22319 * util/i386/pc/grub-install: Fix parsing of --disk-module
22320 option.
22321
22322 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
22323
22324 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
22325 when embedding.
22326
22327 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
22328
22329 * util/grub-mkconfig.in (package_version): New variable.
22330 Use it do display the version.
22331
22332 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
22333
22334 * kern/file.c (grub_file_open): Revert to previous check with
22335 grub_errno.
22336
22337 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
22338
22339 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
22340 from help line. It's out of sync with code.
22341
22342 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
22343
22344 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
22345 entries on failed boot.
22346
22347 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
22348
22349 * kern/file.c (grub_file_open): Fix an error check.
22350
22351 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
22352
22353 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
22354 partition map couldn't be identified.
22355
22356 2009-07-23 Pavel Roskin <proski@gnu.org>
22357
22358 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
22359 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
22360 case of little endian words becomes just an optimization.
22361 Respect const modifier.
22362 (md5_final): Use code that doesn't depend on endianness.
22363
22364 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
22365 to avoid loss of upper bits if align is unsigned and shorter
22366 than addr.
22367
22368 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22369
22370 UUID support for UFS
22371
22372 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
22373 (grub_ufs_uuid): New function.
22374 (grub_ufs_fs): add .uuid
22375
22376 2009-07-21 Pavel Roskin <proski@gnu.org>
22377
22378 * kern/dl.c (grub_dl_check_header): Make static.
22379
22380 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
22381
22382 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
22383 add drivemap for Vista. It breaks Windows 7.
22384
22385 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
22386
22387 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
22388 128 bytes
22389
22390 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22391
22392 Add BFS support
22393
22394 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
22395 (grub_fstest_SOURCES): Likewise.
22396 (pkglib_MODULES): Add befs.mod.
22397 (befs_mod_SOURCES): New variable.
22398 (befs_mod_CFLAGS): Likewise.
22399 (befs_mod_LDFLAGS): Likewise.
22400 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
22401 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22402 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22403 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
22404 (grub_setup_SOURCES): Likewise.
22405 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22406 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22407 (grub_setup_SOURCES): Likewise.
22408 * fs/befs.c: New file.
22409 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
22410 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
22411 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
22412 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
22413 (B_KEY_INDEX_ALIGN): New declaration.
22414 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
22415 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
22416 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
22417 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
22418 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
22419 (grub_afs_mount) [MODE_BFS]: Likewise.
22420 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
22421 (grub_afs_fs): Use GRUB_AFS_FSNAME
22422 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
22423 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
22424 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
22425 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
22426
22427 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
22428
22429 * util/getroot.c (find_root_device): Add support for MacOSX.
22430 * util/hostdisk.c: Likewise.
22431
22432 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22433
22434 * font/font.c (find_glyph): Check whether a font is present to avoid
22435 segmentation fault.
22436
22437 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
22438
22439 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
22440
22441 2009-07-20 Pavel Roskin <proski@gnu.org>
22442
22443 * configure.ac: Trim excessively wordy excuses.
22444
22445 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22446
22447 Add symlink, mtime and label support to AtheFS.
22448
22449 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
22450 (grub_afs_iterate_dir): Handle symlinks.
22451 (grub_afs_open): Use grub_afs_read_symlink.
22452 (grub_afs_dir): Likewise.
22453 Pass mtime.
22454 (grub_afs_label): New function.
22455 (grub_afs_fs): Add grub_afs_label.
22456 (grub_afs_read_symlink): New function.
22457
22458 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
22459
22460 Fix AtheFS support.
22461
22462 * fs/afs.c: Fix comments style.
22463 (grub_afs_blockrun): Declare as packed.
22464 (grub_afs_datastream): Likewise.
22465 (grub_afs_bnode): Likewise.
22466 (grub_afs_btree): Likewise.
22467 (grub_afs_sblock): Likewise.
22468 Declare `name' as char.
22469 (grub_afs_inode): Declare as packed.
22470 Change void *vnode to grub_uint32_t unused.
22471 (grub_afs_iterate_dir): Check that key_size is positive.
22472 (grub_afs_mount): Don't read superblock twice.
22473 (grub_afs_dir): Don't free node in case of error,
22474 grub_fshelp_find_file already handles this.
22475 (grub_afs_open): Likewise.
22476
22477 2009-07-19 Pavel Roskin <proski@gnu.org>
22478
22479 * Makefile.in: Remove LIBLZO and enable_lzo.
22480 * conf/i386-pc.rmk: Remove lzo support.
22481 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
22482 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
22483 support.
22484 * kern/i386/pc/lzo1x.S: Remove.
22485 * kern/i386/pc/startup.S: Remove lzo support.
22486 * util/i386/pc/grub-mkimage.c: Likewise.
22487
22488 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
22489
22490 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
22491 * fs/xfs.c (grub_xfs_dir): Likewise.
22492 * fs/afs.c (grub_afs_dir): Likewise.
22493 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
22494 (grub_iso9660_open): Likewise.
22495 * fs/jfs.c (grub_jfs_open): Likewise.
22496 * fs/ext2.c (grub_ext2_dir): Likewise.
22497 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
22498 * script/sh/lexer.c (grub_script_yylex): Likewise.
22499
22500 2009-07-16 Pavel Roskin <proski@gnu.org>
22501
22502 * configure.ac: Never add "-c" to CFLAGS.
22503
22504 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
22505
22506 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
22507 grub_cv_cc_efiemu should be used.
22508
22509 * configure.ac: Typo fixes.
22510
22511 * kern/mm.c (grub_zalloc): New function.
22512 (grub_debug_zalloc): Likewise.
22513 * include/grub/mm.h: Declare grub_zalloc() and
22514 grub_debug_zalloc().
22515 * util/misc.c (grub_zalloc): New function.
22516 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
22517 instead of grub_malloc(), remove unneeded initializations.
22518 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
22519 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
22520 * commands/parttool.c (grub_cmd_parttool): Likewise.
22521 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
22522 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
22523 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
22524 * disk/usbms.c (grub_usbms_finddevs): Likewise.
22525 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
22526 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
22527 (grub_cmd_efiemu_pnvram): Likewise.
22528 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
22529 * fs/iso9660.c (grub_iso9660_mount): Likewise.
22530 (grub_iso9660_iterate_dir): Likewise.
22531 * fs/jfs.c (grub_jfs_opendir): Likewise.
22532 * fs/ntfs.c (list_file): Likewise.
22533 (grub_ntfs_mount): Likewise.
22534 * kern/disk.c (grub_disk_open): Likewise.
22535 * kern/dl.c (grub_dl_load_core): Likewise.
22536 * kern/elf.c (grub_elf_file): Likewise.
22537 * kern/env.c (grub_env_context_open): Likewise.
22538 (grub_env_set): Likewise.
22539 (grub_env_set_data_slot): Likewise.
22540 * kern/file.c (grub_file_open): Likewise.
22541 * kern/fs.c (grub_fs_blocklist_open): Likewise.
22542 * loader/i386/multiboot.c (grub_module): Likewise.
22543 * loader/xnu.c (grub_xnu_create_key): Likewise.
22544 (grub_xnu_create_value): Likewise.
22545 * normal/main.c (grub_normal_add_menu_entry): Likewise.
22546 (read_config_file): Likewise.
22547 * normal/menu_entry.c (make_screen): Likewise.
22548 * partmap/sun.c (sun_partition_map_iterate): Likewise.
22549 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
22550 * script/sh/script.c (grub_script_parse): Likewise.
22551 * video/bitmap.c (grub_video_bitmap_create): Likewise.
22552 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
22553 * video/readers/png.c (grub_png_output_byte): Likewise.
22554 (grub_video_reader_png): Likewise.
22555
22556 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22557
22558 Enable all targets that can be built by default
22559
22560 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
22561 grub-mkfont and grub-fstest if they can be built
22562
22563 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22564
22565 Fix hang and segmentation fault in grub-emu-usb
22566
22567 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
22568 * util/usb.c (grub_libusb_devices): likewise
22569 (grub_libusb_init): rename to ...
22570 (GRUB_MOD_INIT (libusb)):...this
22571 (grub_libusb_fini): rename to ..
22572 (GRUB_MOD_FINI (libusb)):...this
22573 * disk/usbms.c (grub_usbms_transfer): fix retry logic
22574 * include/grub/disk.h (grub_raid_init): removed, it's useless
22575 (grub_raid_fini): likewise
22576 (grub_lvm_init): likewise
22577 (grub_lvm_fini): likewise
22578 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
22579 by grub_init_all
22580
22581 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22582
22583 Fix libusb
22584
22585 * Makefile.in (LIBUSB): new macro
22586 * genmk.rb (Utility/print_tail): new method
22587 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
22588 (top level): call util.print_tail at the end.
22589
22590 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22591
22592 Make FreeBSD accept zpool.cache
22593
22594 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
22595 type is /boot/zfs/zpool.cache
22596
22597 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
22598
22599 Fix 64-bit efiemu
22600
22601 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
22602 correct wrong typedef
22603 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
22604
22605 2009-07-15 Pavel Roskin <proski@gnu.org>
22606
22607 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
22608 * kern/disk.c (struct grub_disk_cache): Likewise.
22609
22610 * commands/probe.c (options): Typo fix.
22611
22612 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
22613 Increase to 0x5a to accommodate FAT32. Adjust other offsets
22614 accordingly.
22615 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
22616
22617 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
22618 the end of "Error" to make the message more readable.
22619
22620 * boot/i386/pc/boot.S (kernel_segment): Remove.
22621 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
22622 for destination.
22623
22624 * boot/i386/pc/boot.S (boot_version): Remove.
22625 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
22626 Remove.
22627
22628 * include/grub/i386/pc/boot.h: Sort all offsets.
22629 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
22630 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
22631 * boot/i386/pc/boot.S: Assert location of every offset listed in
22632 include/grub/i386/pc/boot.h.
22633
22634 2009-07-13 Pavel Roskin <proski@gnu.org>
22635
22636 * include/grub/i386/coreboot/machine.h: Rename
22637 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
22638 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
22639 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
22640
22641 * kern/dl.c: Force native word size to suppress warnings when
22642 compiling grub-emu.
22643
22644 * kern/device.c (grub_device_iterate): Change struct part_ent to
22645 hold the name, not a pointer to it. Use one grub_malloc() per
22646 partition, not two. Free partition_name if grub_malloc() fails.
22647 Set ents to NULL only before grub_partition_iterate() is called.
22648
22649 2009-07-11 Bean <bean123ch@gmail.com>
22650
22651 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
22652 childname.
22653
22654 2009-07-10 Bean <bean123ch@gmail.com>
22655 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
22656
22657 * kern/ieee1275/openfw.c (grub_children_iterate)
22658 (grub_devalias_iterate): Fix size evaluation for property or path
22659 strings, which was broken since r2132.
22660
22661 2009-07-07 Pavel Roskin <proski@gnu.org>
22662
22663 * commands/search.c (search_file): Merge into ...
22664 (search_fs): ... this. Accept search type as argument.
22665 (grub_cmd_search): Pass search type to search_fs().
22666
22667 * include/grub/util/console.h: New file.
22668 * util/console.c: Use it instead of grub/machine/console.h.
22669 * util/grub-emu.c: Likewise.
22670
22671 * lib/arg.c (find_long_option): Remove.
22672 (find_long): Add `len' argument, make `s' const char *.
22673 (grub_arg_parse): Parse long options in place, not in a
22674 temporary buffer.
22675
22676 2009-07-06 Pavel Roskin <proski@gnu.org>
22677
22678 * commands/search.c (search_fs): Fix potential NULL pointer
22679 dereference.
22680
22681 * commands/search.c (search_fs): Replace QUID macro with quid_fn
22682 function pointer.
22683
22684 2009-07-06 Daniel Mierswa <impulze@impulze.org>
22685
22686 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
22687 comparison.
22688
22689 2009-07-05 Pavel Roskin <proski@gnu.org>
22690
22691 * include/grub/i386/linux.h (struct linux_kernel_params):
22692 Restore padding3, it's still needed.
22693
22694 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
22695 FreeBSD.
22696 * util/osdetect.lua: Likewise.
22697
22698 2009-07-05 Bean <bean123ch@gmail.com>
22699
22700 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
22701
22702 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
22703 (grub_lua_getenv): Likewise.
22704 (grub_lua_setenv): Likewise.
22705 (save_errno): New function.
22706 (push_result): Likewise.
22707 (grub_lua_enum_device): Likewise.
22708 (grub_lua_enum_file): Likewise.
22709 (grub_lua_file_open): Likewise.
22710 (grub_lua_file_close): Likewise.
22711 (grub_lua_file_seek): Likewise.
22712 (grub_lua_file_read): Likewise.
22713 (grub_lua_file_getline): Likewise.
22714 (grub_lua_file_getsize): Likewise.
22715 (grub_lua_file_getpos): Likewise.
22716 (grub_lua_file_eof): Likewise.
22717 (grub_lua_file_exist): Likewise.
22718 (grub_lua_add_menu): Likewise.
22719
22720 * script/lua/grub_lua.h (isupper): New inline function.
22721 (islower): Likewise.
22722 (ispunct): Likewise.
22723 (isxdigit): Likewise.
22724 (strcspn): Change to normal function.
22725 (strpbkr): New function declaration.
22726 (memchr): Likewise.
22727
22728 * script/lua/grub_main.c (scan_str): New function.
22729 (strcspn): Likewise.
22730 (strpbrk): Likewise.
22731 (memchr): Likewise.
22732
22733 * script/lua/linit.c (lualibs): Enable the string library.
22734
22735 * util/osdetect.lua: New file.
22736
22737 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
22738
22739 * include/grub/i386/linux.h (struct linux_kernel_params): Add
22740 `capabilities' member.
22741
22742 2009-07-02 Pavel Roskin <proski@gnu.org>
22743
22744 * genparttoollist.sh: Add missing newline at the end.
22745
22746 2009-07-01 Pavel Roskin <proski@gnu.org>
22747
22748 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
22749
22750 * util/hostdisk.c (open_device): Remove `const' from
22751 `sysctl_size', as sysctlbyname() can change it (in this case it
22752 doesn't actually happen).
22753
22754 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
22755 using signed long int constants.
22756
22757 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
22758 constant to avoid a warning on FreeBSD.
22759
22760 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
22761 where it's needed.
22762
22763 * Makefile.in: Install include/grub/machine symlink.
22764
22765 * Makefile.in: When installing symlinks, use "cp -fR", which
22766 works on FreeBSD and MacOSX.
22767 From Yves Blusseau <cl7m42e02@sneakemail.com>
22768
22769 * kern/dl.c (grub_dl_resolve_symbol): Make static.
22770 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
22771
22772 * util/misc.c: Move grub_reboot() and grub_halt() ...
22773 * util/grub-emu.c: ... here. Make main_env static.
22774 * include/grub/util/misc.h: Remove main_env.
22775
22776 * kern/mm.c: Use correct format to print size_t.
22777
22778 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
22779 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
22780 * kern/powerpc/dl.c: Likewise.
22781 * kern/sparc64/dl.c: Likewise.
22782 * kern/x86_64/dl.c: Likewise.
22783
22784 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22785
22786 Fix grub-emu build on sparc64-ieee1275.
22787
22788 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
22789 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
22790
22791 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22792
22793 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
22794 (grub_reboot, grub_halt): New functions.
22795
22796 * util/i386/pc/misc.c: Delete. Update all users.
22797 * util/sparc64/ieee1275/misc.c: Likewise.
22798 * util/powerpc/ieee1275/misc.c: Likewise.
22799
22800 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22801
22802 * conf/i386.rmk (setjmp_mod_SOURCES)
22803 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
22804 * conf/common.rmk (setjmp_mod_SOURCES)
22805 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
22806 to use $(target_cpu).
22807 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
22808 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
22809 * conf/powerpc-ieee1275.rmk: Likewise.
22810 * conf/sparc64-ieee1275.rmk: Likewise.
22811
22812 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
22813 $(target_cpu) for kern/$(target_cpu)/dl.c.
22814 * conf/i386-efi.rmk: Likewise.
22815 * conf/i386-ieee1275.rmk: Likewise.
22816 * conf/x86_64-efi.rmk: Likewise.
22817 * conf/i386-coreboot.rmk: Likewise.
22818 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
22819 $(target_cpu) for kern/$(target_cpu)/dl.c and for
22820 kern/$(target_cpu)/cache.S.
22821 * conf/sparc64-ieee1275.rmk: Likewise.
22822
22823 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
22824
22825 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
22826 type to `grub_uint8_t', and adjust `padding9' accordingly.
22827
22828 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22829
22830 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
22831
22832 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
22833 assembly in final jump, using register constraints.
22834
22835 (grub_linux_boot): For text mode, initialize `have_vga' using
22836 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
22837
22838 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
22839 right before the final jump.
22840
22841 Set `video_mode' to 0x3.
22842
22843 Document initialization of `video_page', `video_mode' and
22844 `video_ega_bx'.
22845
22846 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22847
22848 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
22849 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
22850 and set GRUB_LINUX_FLAG_QUIET appropriately.
22851
22852 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
22853
22854 Fix build on Debian / sparc.
22855
22856 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
22857
22858 2009-06-28 Pavel Roskin <proski@gnu.org>
22859
22860 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
22861 fix a warning.
22862
22863 * util/grub.d/10_linux.in: Match SUSE style initrd names.
22864
22865 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22866
22867 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
22868 `err'.
22869
22870 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22871
22872 Revert r2338.
22873
22874 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
22875 file can't be opened. grub_file_open() is already supposed to set
22876 grub_errno / grub_errmsg appropriately.
22877 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
22878
22879 2009-06-27 Pavel Roskin <proski@gnu.org>
22880 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
22881
22882 * include/grub/dl.h: Include grub/elf.h.
22883 (struct grub_dl): Add symtab field.
22884 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
22885 GRUB_MODULES_MACHINE_READONLY.
22886 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
22887 of the header for read-only modules.
22888 (grub_dl_unload): Free mod->symtab for read-only modules.
22889 * kern/i386/dl.c: Use mod->symtab.
22890 * kern/powerpc/dl.c: Likewise.
22891 * kern/sparc64/dl.c: Likewise.
22892 * kern/x86_64/dl.c: Likewise.
22893
22894 * conf/i386-qemu.rmk: New file.
22895 * kern/i386/qemu/startup.S: Likewise.
22896 * kern/i386/qemu/mmap.c: Likewise.
22897 * boot/i386/qemu/boot.S: Likewise.
22898 * include/grub/i386/qemu/time.h: Likewise.
22899 * include/grub/i386/qemu/serial.h: Likewise.
22900 * include/grub/i386/qemu/kernel.h: Likewise.
22901 * include/grub/i386/qemu/console.h: Likewise.
22902 * include/grub/i386/qemu/boot.h: Likewise.
22903 * include/grub/i386/qemu/init.h: Likewise.
22904 * include/grub/i386/qemu/machine.h: Likewise.
22905 * include/grub/i386/qemu/loader.h: Likewise.
22906 * include/grub/i386/qemu/memory.h: Likewise.
22907
22908 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
22909 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
22910 [qemu] (pkglib_IMAGES): Add `boot.img'.
22911 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
22912 [qemu] (boot_img_FORMAT): New variables.
22913 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
22914 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
22915 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
22916 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
22917 [qemu] (kernel_img_FORMAT): New variables.
22918
22919 * configure.ac: Recognise `i386-qemu'.
22920
22921 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
22922 (for no compression).
22923 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
22924 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
22925 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
22926 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
22927 ifdefs).
22928
22929 2009-06-27 Pavel Roskin <proski@gnu.org>
22930
22931 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
22932 read.
22933 * efiemu/prepare32.c: Likewise.
22934 * efiemu/prepare64.c: Likewise.
22935
22936 2009-06-26 Pavel Roskin <proski@gnu.org>
22937
22938 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
22939 * include/grub/elf.h: Define symbols without "32" or "64" based
22940 on GRUB_TARGET_WORDSIZE.
22941 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
22942 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
22943 ELF definitions.
22944 * efiemu/loadcore64.c: Likewise.
22945 * loader/i386/bsd32.c: Likewise.
22946 * loader/i386/bsd64.c: Likewise.
22947 * kern/dl.c: Remove own ELF definitions.
22948 * util/i386/efi/grub-mkimage.c: Likewise.
22949
22950 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
22951
22952 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
22953 segment 0x0 unconditionally, because the reference generated by
22954 GAS is an absolute address.
22955
22956 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22957
22958 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
22959 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
22960
22961 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22962
22963 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
22964 indexes. Check for -f explicitly.
22965 (search_file): Improve error message.
22966 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
22967
22968 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22969
22970 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
22971 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
22972
22973 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22974
22975 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
22976 * conf/i386-ieee1275.rmk: Likewise.
22977 * conf/i386-coreboot.rmk: Likewise.
22978
22979 * kern/i386/pc/startup.S (grub_stop): Remove function.
22980 * kern/i386/ieee1275/startup.S: Likewise.
22981 * kern/i386/coreboot/startup.S: Likewise.
22982 * kern/i386/misc.S (grub_stop): New function.
22983
22984 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22985
22986 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
22987 * kern/i386/realmode.S (real_to_prot): ... to here.
22988
22989 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
22990
22991 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
22992 with `kernel.img'.
22993 (kernel_elf_SOURCES): Rename to ...
22994 (kernel_img_SOURCES): ... this.
22995 (kernel_elf_HEADERS): Rename to ...
22996 (kernel_img_HEADERS): ... this. Update all users.
22997 (kernel_elf_ASFLAGS): Rename to ...
22998 (kernel_img_ASFLAGS): ... this.
22999 (kernel_elf_CFLAGS): Rename to ...
23000 (kernel_img_CFLAGS): ... this.
23001 (kernel_elf_LDFLAGS): Rename to ...
23002 (kernel_img_LDFLAGS): ... this.
23003 * conf/i386-coreboot.rmk: Likewise.
23004 * conf/powerpc-ieee1275.rmk: Likewise.
23005
23006 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
23007 with "kernel.img".
23008
23009 2009-06-21 Pavel Roskin <proski@gnu.org>
23010
23011 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
23012 to match nested functions.
23013 * loader/sparc64/ieee1275/linux.c: Likewise.
23014
23015 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
23016
23017 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
23018
23019 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
23020 all i386 platforms.
23021
23022 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
23023
23024 Fix asm file handling on ELF, and remove workarounds.
23025
23026 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
23027 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
23028 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
23029 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
23030
23031 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
23032
23033 Load BSD ELF modules
23034
23035 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
23036 and loader/i386/bsd64.c
23037 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
23038 (FREEBSD_MODTYPE_ELF_MODULE): New definition
23039 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
23040 (grub_freebsd_load_elfmodule32): New declaration
23041 (grub_freebsd_load_elfmoduleobj64): Likewise
23042 (grub_freebsd_load_elf_meta32): Likewise
23043 (grub_freebsd_load_elf_meta64): Likewise
23044 (grub_freebsd_add_meta): Likewise
23045 (grub_freebsd_add_meta_module): Likewise
23046 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
23047 (grub_freebsd_add_meta_module): Likewise and move module-specific
23048 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
23049 (grub_cmd_freebsd): Add elf-kernel specific parts
23050 based on grub_freebsd_add_meta_module
23051 (grub_cmd_freebsd_module): Add type parsing moved from
23052 grub_freebsd_add_meta_module
23053 (grub_cmd_freebsd_module_elf): New function
23054 (cmd_freebsd_module_elf): New variable
23055 (GRUB_MOD_INIT): Register freebsd_module_elf
23056 * loader/i386/bsd32.c: New file
23057 * loader/i386/bsd64.c: Likewise
23058 * loader/i386/bsdXX.c: Likewise
23059 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
23060 (grub_elf64_load): Likewise
23061 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
23062 All users updated
23063 (grub_elf64_load_hook_t): Likewise
23064
23065 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
23066
23067 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
23068 variable.
23069 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
23070 don't write a menu entry for recovery mode.
23071
23072 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
23073
23074 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
23075 after it's no longer needed.
23076
23077 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
23078
23079 * include/grub/i386/loader.h (grub_linux_prot_size)
23080 (grub_linux_tmp_addr, grub_linux_real_addr)
23081 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
23082 GRUB_MACHINE_PCBIOS.
23083 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
23084 common grub_util_info() call to ...
23085 (generate_image): ... here.
23086 Fix use of uninitialized memory, comparison of signed with
23087 unsigned integers and memory leak.
23088 Remove bogus module address message.
23089
23090 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
23091
23092 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
23093 grub_raid_register
23094 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
23095
23096 2009-06-19 Pavel Roskin <proski@gnu.org>
23097
23098 * configure.ac: Remove stray AC_MSG_CHECKING.
23099
23100 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
23101
23102 * disk/scsi.c (grub_scsi_open): use continue instead of big if
23103
23104 2009-06-18 Pavel Roskin <proski@gnu.org>
23105
23106 * conf/common.rmk: Add fs_file.mod.
23107 * disk/fs_file.c: New file.
23108 * include/grub/disk.h (enum grub_disk_dev_id): Add
23109 GRUB_DISK_DEVICE_FILE_ID.
23110
23111 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
23112
23113 Fix build with Apple's toolchain. Part 2
23114
23115 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
23116 a fake start
23117
23118 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
23119
23120 Fix build with Apple's toolchain. Part 1
23121
23122 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
23123 for long calls
23124 * configure.ac: remove a leftover AC_MSG_RESULT
23125 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
23126 Apple's toolchain
23127
23128 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
23129
23130 Fix warnings
23131
23132 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
23133 (decomp_block): initialize ch
23134 use grub_memcpy instead of memcpy
23135
23136 2009-06-17 Pavel Roskin <proski@gnu.org>
23137
23138 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
23139 version, use declarations needed to use vga_text as the startup
23140 console.
23141
23142 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
23143 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
23144 the kernel.
23145 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
23146 and grub_at_keyboard_fini(), it's done on module load and
23147 unload.
23148
23149 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
23150
23151 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
23152 file can't be found.
23153 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
23154
23155 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
23156
23157 Fix newline handling
23158
23159 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
23160 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
23161 (grub_script_yylex): don't segfault on unterminated script
23162 newline terminates command and variable
23163
23164 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
23165
23166 avoid double grub_adjust_range call. Bug reported by David Simner
23167
23168 * kern/disk.c (grub_disk_write): change to raw disk access before
23169 calling disk_read
23170
23171 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
23172
23173 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
23174 spaces, for the benefit of help2man.
23175 * util/i386/efi/grub-mkimage.c (usage): Likewise.
23176
23177 2009-06-16 Pavel Roskin <proski@gnu.org>
23178
23179 * kern/i386/halt.c: Include grub/machine/init.h.
23180 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
23181
23182 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
23183
23184 * util/grub.d/30_os-prober.in: Use ${root} in the generated
23185 drivemap menuentry.
23186
23187 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
23188
23189 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
23190 `echo' command.
23191
23192 2009-06-16 Pavel Roskin <proski@gnu.org>
23193
23194 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
23195 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
23196 save %dx, we only need %dl and we never change it.
23197 * boot/i386/pc/cdboot.S: Don't set the root drive.
23198 * boot/i386/pc/pxeboot.S: Likewise.
23199 * include/grub/i386/pc/boot.h: Remove
23200 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
23201 GRUB_BOOT_MACHINE_DRIVE_CHECK.
23202 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
23203 * kern/i386/pc/init.c (make_install_device): Remove references
23204 to grub_root_drive.
23205 * kern/i386/pc/startup.S: Likewise.
23206 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
23207
23208 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
23209
23210 xnu_uuid command
23211
23212 * commands/xnu_uuid.c: new file
23213 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
23214 (xnu_uuid_mod_SOURCES): new variable
23215 (xnu_uuid_mod_CFLAGS): likewise
23216 (xnu_uuid_mod_LDFLAGS): likewise
23217 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
23218 * conf/i386-ieee1275.rmk: likewise
23219 * conf/i386-pc.rmk: likewise
23220 * conf/powerpc-ieee1275.rmk: likewise
23221 * conf/sparc64-ieee1275.rmk: likewise
23222 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
23223
23224 2009-06-16 Pavel Roskin <proski@gnu.org>
23225
23226 * configure.ac: Avoid '==' in test command, it's not portable.
23227
23228 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
23229
23230 Probe command
23231
23232 * commands/probe.c: new file
23233 * conf/common.rmk (pkglib_MODULES): add probe.mod
23234 (probe_mod_SOURCES): new variable
23235 (probe_mod_CFLAGS): likewise
23236 (probe_mod_LDFLAGS): likewise
23237 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
23238 * conf/i386-ieee1275.rmk: likewise
23239 * conf/i386-pc.rmk: likewise
23240 * conf/powerpc-ieee1275.rmk: likewise
23241 * conf/sparc64-ieee1275.rmk: likewise
23242
23243 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
23244
23245 Fix handling of string like \"hello\" and "a
23246 b"
23247
23248 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
23249 (grub_script_yylex): fix parsing of quoting, escaping and newline
23250
23251 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
23252
23253 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
23254 handling
23255
23256 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
23257
23258 * util/grub-mkconfig.in: Fix parsing of --output option.
23259
23260 2009-06-12 Pavel Roskin <proski@gnu.org>
23261
23262 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
23263 genmk.rb don't need to be generated or installed.
23264
23265 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
23266
23267 * commands/i386/pc/drivemap_int13h.S: add more comments
23268
23269 2009-06-11 Pavel Roskin <proski@gnu.org>
23270
23271 * Makefile.in (uninstall): Uninstall manuals.
23272
23273 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
23274 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
23275 and update-grub_lib in two places.
23276 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
23277
23278 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
23279 a compiler warning.
23280
23281 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
23282 `entry_lo' to fix variable shadowing.
23283
23284 2009-06-11 Christian Franke <franke@computer.org>
23285
23286 * kern/misc.c (__enable_execute_stack): Add missing return type
23287 to prevent gcc warning.
23288
23289 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
23290
23291 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
23292
23293 2009-06-11 Pavel Roskin <proski@gnu.org>
23294
23295 * Makefile.in: Don't rely on any scripts being executable.
23296 Always use $(SHELL) to run shell scripts.
23297
23298 * configure.ac: Always define ___main if using -nostdlib. This
23299 fixes tests on Cygwin.
23300
23301 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
23302
23303 UDF fix
23304
23305 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
23306 is in bytes and not in blocks
23307
23308 2009-06-11 Pavel Roskin <proski@gnu.org>
23309
23310 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
23311 warning.
23312
23313 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
23314
23315 * util/grub.d/30_os-prober.in: Fix a comment. Source
23316 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
23317 to set the root device. Place drivemap command in the generated
23318 chain entry.
23319
23320 2009-06-11 Pavel Roskin <proski@gnu.org>
23321
23322 * configure.ac: Remove host_m32. Issues with 64-bit utilities
23323 have long been resolved.
23324
23325 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
23326
23327 * util/grub.d/10_linux.in: Capitalise "Linux".
23328
23329 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
23330
23331 2009-06-11 Pavel Roskin <proski@gnu.org>
23332
23333 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
23334 fix a gcc warning and ensure that the function won't ever exit.
23335
23336 * kern/i386/ieee1275/init.c: Add missing prototype for
23337 grub_stop_floppy().
23338
23339 * loader/ieee1275/multiboot2.c [__i386__]: Include
23340 grub/cpu/multiboot.h.
23341
23342 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
23343 casts to short - they are not portable and cause warnings. Fix
23344 use of uninitialized values in input_buf. Use ARRAY_SIZE.
23345
23346 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
23347
23348 Drivemap fixes
23349
23350 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
23351 new function
23352 (grub_get_root_biosnumber_saved): new variable
23353 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
23354 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
23355 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
23356 %dx after the call if necessary
23357 * conf/common.rmk (pkglib_MODULES): remove boot.mod
23358 (boot_mod_SOURCES): remove
23359 (boot_mod_CFLAGS): remove
23360 (boot_mod_LDFLAGS): remove
23361 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
23362 (boot_mod_SOURCES): new variable
23363 (boot_mod_CFLAGS): likewise
23364 (boot_mod_LDFLAGS): likewise
23365 * conf/i386-efi.rmk: likewise
23366 * conf/i386-ieee1275.rmk: likewise
23367 * conf/i386-pc.rmk: likewise
23368 * conf/powerpc-ieee1275.rmk: likewise
23369 * conf/sparc64-ieee1275.rmk: likewise
23370 * conf/x86_64-efi.rmk: likewise
23371 * include/grub/i386/pc/biosnum.h: new file
23372 * lib/i386/pc/biosnum.c: likewise
23373 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
23374 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
23375 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
23376
23377 2009-06-10 Pavel Roskin <proski@gnu.org>
23378
23379 * io/gzio.c (test_header): Don't reuse one buffer for all data.
23380 Use separate variables. Read only the file size at the end, but
23381 not the checksum that we don't use.
23382
23383 * kern/file.c (grub_file_read): Use void pointer for the buffer.
23384 Adjust all callers.
23385
23386 * kern/ieee1275/openfw.c: Remove libc includes.
23387 * kern/ieee1275/cmain.c: Likewise.
23388 * include/grub/ieee1275/ieee1275.h: Likewise.
23389
23390 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
23391 compiler warnings.
23392
23393 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23394
23395 * Makefile.in: Remove all trailing whitespace.
23396 * conf/i386-pc.rmk: Likewise.
23397 * conf/powerpc-ieee1275.rmk: Likewise.
23398 * conf/sparc64-ieee1275.rmk: Likewise.
23399 * docs/grub.texi: Likewise.
23400 * docs/texinfo.tex: Likewise.
23401 * disk/fs_uuid.c: Likewise.
23402 * disk/lvm.c: Likewise.
23403 * disk/scsi.c: Likewise.
23404 * disk/ata.c: Likewise.
23405 * disk/ieee1275/ofdisk.c: Likewise.
23406 * disk/i386/pc/biosdisk.c: Likewise.
23407 * disk/host.c: Likewise.
23408 * disk/raid.c: Likewise.
23409 * disk/efi/efidisk.c: Likewise.
23410 * disk/usbms.c: Likewise.
23411 * disk/memdisk.c: Likewise.
23412 * disk/loopback.c: Likewise.
23413 * kern/powerpc/dl.c: Likewise.
23414 * kern/device.c: Likewise.
23415 * kern/dl.c: Likewise.
23416 * kern/sparc64/dl.c: Likewise.
23417 * kern/ieee1275/ieee1275.c: Likewise.
23418 * kern/term.c: Likewise.
23419 * kern/fs.c: Likewise.
23420 * kern/i386/dl.c: Likewise.
23421 * kern/i386/pc/startup.S: Likewise.
23422 * kern/i386/pc/init.c: Likewise.
23423 * kern/i386/pc/mmap.c: Likewise.
23424 * kern/i386/pc/lzo1x.S: Likewise.
23425 * kern/i386/ieee1275/init.c: Likewise.
23426 * kern/i386/realmode.S: Likewise.
23427 * kern/i386/tsc.c: Likewise.
23428 * kern/partition.c: Likewise.
23429 * kern/corecmd.c: Likewise.
23430 * kern/file.c: Likewise.
23431 * kern/efi/efi.c: Likewise.
23432 * kern/efi/init.c: Likewise.
23433 * kern/efi/mm.c: Likewise.
23434 * kern/main.c: Likewise.
23435 * kern/err.c: Likewise.
23436 * kern/env.c: Likewise.
23437 * kern/disk.c: Likewise.
23438 * kern/generic/millisleep.c: Likewise.
23439 * kern/generic/rtc_get_time_ms.c: Likewise.
23440 * kern/misc.c: Likewise.
23441 * kern/parser.c: Likewise.
23442 * genmk.rb: Likewise.
23443 * configure.ac: Likewise.
23444 * boot/i386/pc/diskboot.S: Likewise.
23445 * boot/i386/pc/pxeboot.S: Likewise.
23446 * boot/i386/pc/boot.S: Likewise.
23447 * boot/i386/pc/lnxboot.S: Likewise.
23448 * boot/i386/pc/cdboot.S: Likewise.
23449 * parttool/pcpart.c: Likewise.
23450 * video/readers/tga.c: Likewise.
23451 * video/video.c: Likewise.
23452 * video/bitmap.c: Likewise.
23453 * lib/envblk.c: Likewise.
23454 * lib/i386/setjmp.S: Likewise.
23455 * fs/xfs.c: Likewise.
23456 * fs/afs.c: Likewise.
23457 * fs/fat.c: Likewise.
23458 * fs/ntfs.c: Likewise.
23459 * fs/udf.c: Likewise.
23460 * fs/affs.c: Likewise.
23461 * fs/iso9660.c: Likewise.
23462 * fs/hfs.c: Likewise.
23463 * fs/fshelp.c: Likewise.
23464 * fs/ext2.c: Likewise.
23465 * fs/jfs.c: Likewise.
23466 * fs/reiserfs.c: Likewise.
23467 * fs/hfsplus.c: Likewise.
23468 * fs/minix.c: Likewise.
23469 * fs/cpio.c: Likewise.
23470 * fs/sfs.c: Likewise.
23471 * fs/ufs.c: Likewise.
23472 * efiemu/prepare.c: Likewise.
23473 * efiemu/loadcore_common.c: Likewise.
23474 * efiemu/runtime/efiemu.sh: Likewise.
23475 * efiemu/runtime/efiemu.S: Likewise.
23476 * efiemu/runtime/efiemu.c: Likewise.
23477 * efiemu/pnvram.c: Likewise.
23478 * efiemu/main.c: Likewise.
23479 * efiemu/i386/pc/cfgtables.c: Likewise.
23480 * efiemu/i386/loadcore64.c: Likewise.
23481 * efiemu/i386/loadcore32.c: Likewise.
23482 * efiemu/loadcore.c: Likewise.
23483 * efiemu/symbols.c: Likewise.
23484 * efiemu/mm.c: Likewise.
23485 * include/grub/autoefi.h: Likewise.
23486 * include/grub/datetime.h: Likewise.
23487 * include/grub/term.h: Likewise.
23488 * include/grub/hfs.h: Likewise.
23489 * include/grub/lvm.h: Likewise.
23490 * include/grub/i386/tsc.h: Likewise.
23491 * include/grub/i386/linux.h: Likewise.
23492 * include/grub/i386/xnu.h: Likewise.
23493 * include/grub/i386/efiemu.h: Likewise.
23494 * include/grub/i386/pc/biosdisk.h: Likewise.
23495 * include/grub/i386/pc/memory.h: Likewise.
23496 * include/grub/i386/pc/vbe.h: Likewise.
23497 * include/grub/parttool.h: Likewise.
23498 * include/grub/video.h: Likewise.
23499 * include/grub/memory.h: Likewise.
23500 * include/grub/fs.h: Likewise.
23501 * include/grub/partition.h: Likewise.
23502 * include/grub/xnu.h: Likewise.
23503 * include/grub/efi/api.h: Likewise.
23504 * include/grub/efi/pe32.h: Likewise.
23505 * include/grub/efi/memory.h: Likewise.
23506 * include/grub/multiboot.h: Likewise.
23507 * include/grub/usbdesc.h: Likewise.
23508 * include/grub/multiboot2.h: Likewise.
23509 * include/grub/acpi.h: Likewise.
23510 * include/grub/efiemu/efiemu.h: Likewise.
23511 * include/grub/disk.h: Likewise.
23512 * include/grub/ieee1275/ieee1275.h: Likewise.
23513 * include/grub/net.h: Likewise.
23514 * include/grub/machoload.h: Likewise.
23515 * include/grub/macho.h: Likewise.
23516 * include/multiboot.h: Likewise.
23517 * genmoddep.awk: Likewise.
23518 * normal/main.c: Likewise.
23519 * normal/menu_entry.c: Likewise.
23520 * normal/menu_viewer.c: Likewise.
23521 * normal/completion.c: Likewise.
23522 * normal/cmdline.c: Likewise.
23523 * normal/misc.c: Likewise.
23524 * normal/datetime.c: Likewise.
23525 * bus/usb/usbtrans.c: Likewise.
23526 * bus/usb/ohci.c: Likewise.
23527 * bus/usb/uhci.c: Likewise.
23528 * bus/usb/usb.c: Likewise.
23529 * mmap/efi/mmap.c: Likewise.
23530 * mmap/i386/pc/mmap_helper.S: Likewise.
23531 * mmap/i386/pc/mmap.c: Likewise.
23532 * mmap/i386/mmap.c: Likewise.
23533 * mmap/i386/uppermem.c: Likewise.
23534 * mmap/mmap.c: Likewise.
23535 * commands/acpi.c: Likewise.
23536 * commands/echo.c: Likewise.
23537 * commands/blocklist.c: Likewise.
23538 * commands/loadenv.c: Likewise.
23539 * commands/usbtest.c: Likewise.
23540 * commands/boot.c: Likewise.
23541 * commands/parttool.c: Likewise.
23542 * commands/search.c: Likewise.
23543 * commands/cat.c: Likewise.
23544 * commands/i386/pc/play.c: Likewise.
23545 * commands/i386/pc/drivemap.c: Likewise.
23546 * commands/i386/pc/vbeinfo.c: Likewise.
23547 * commands/i386/pc/acpi.c: Likewise.
23548 * commands/i386/pc/vbetest.c: Likewise.
23549 * commands/ls.c: Likewise.
23550 * commands/cmp.c: Likewise.
23551 * commands/test.c: Likewise.
23552 * commands/efi/acpi.c: Likewise.
23553 * commands/gptsync.c: Likewise.
23554 * commands/help.c: Likewise.
23555 * partmap/amiga.c: Likewise.
23556 * partmap/apple.c: Likewise.
23557 * partmap/acorn.c: Likewise.
23558 * partmap/pc.c: Likewise.
23559 * partmap/sun.c: Likewise.
23560 * partmap/gpt.c: Likewise.
23561 * script/sh/lexer.c: Likewise.
23562 * script/sh/function.c: Likewise.
23563 * font/font.c: Likewise.
23564 * font/font_cmd.c: Likewise.
23565 * loader/powerpc/ieee1275/linux.c: Likewise.
23566 * loader/efi/chainloader.c: Likewise.
23567 * loader/multiboot_loader.c: Likewise.
23568 * loader/macho.c: Likewise.
23569 * loader/i386/multiboot.c: Likewise.
23570 * loader/i386/linux.c: Likewise.
23571 * loader/i386/pc/linux.c: Likewise.
23572 * loader/i386/pc/multiboot2.c: Likewise.
23573 * loader/i386/pc/chainloader.c: Likewise.
23574 * loader/i386/pc/xnu.c: Likewise.
23575 * loader/i386/bsd_trampoline.S: Likewise.
23576 * loader/i386/efi/linux.c: Likewise.
23577 * loader/i386/multiboot_elfxx.c: Likewise.
23578 * loader/i386/bsd_helper.S: Likewise.
23579 * loader/i386/bsd.c: Likewise.
23580 * loader/i386/linux_trampoline.S: Likewise.
23581 * loader/i386/xnu_helper.S: Likewise.
23582 * loader/i386/xnu.c: Likewise.
23583 * loader/i386/bsd_pagetable.c: Likewise.
23584 * loader/i386/multiboot_helper.S: Likewise.
23585 * loader/xnu.c: Likewise.
23586 * loader/xnu_resume.c: Likewise.
23587 * io/gzio.c: Likewise.
23588 * term/efi/console.c: Likewise.
23589 * term/terminfo.c: Likewise.
23590 * term/ieee1275/ofconsole.c: Likewise.
23591 * term/i386/pc/serial.c: Likewise.
23592 * term/i386/pc/vesafb.c: Likewise.
23593 * term/i386/pc/vga.c: Likewise.
23594 * term/usb_keyboard.c: Likewise.
23595 * term/gfxterm.c: Likewise.
23596 * aclocal.m4: Likewise.
23597 * util/lvm.c: Likewise.
23598 * util/grub.d/30_os-prober.in: Likewise.
23599 * util/grub.d/10_hurd.in: Likewise.
23600 * util/console.c: Likewise.
23601 * util/grub-macho2img.c: Likewise.
23602 * util/grub-probe.c: Likewise.
23603 * util/hostfs.c: Likewise.
23604 * util/i386/pc/grub-mkimage.c: Likewise.
23605 * util/i386/pc/grub-setup.c: Likewise.
23606 * util/i386/efi/grub-mkimage.c: Likewise.
23607 * util/grub-mkconfig.in: Likewise.
23608 * util/raid.c: Likewise.
23609 * util/resolve.c: Likewise.
23610 * util/grub-mkdevicemap.c: Likewise.
23611 * util/grub-emu.c: Likewise.
23612 * util/getroot.c: Likewise.
23613 * util/hostdisk.c: Likewise.
23614 * util/usb.c: Likewise.
23615 * util/grub-editenv.c: Likewise.
23616 * util/misc.c: Likewise.
23617
23618 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
23619
23620 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
23621 `genparttoollist.sh'.
23622 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
23623 Add `*.sh' to the list find searches for and change `mdate.sh'
23624 to `mdate-sh'.
23625
23626 2009-06-10 Pavel Roskin <proski@gnu.org>
23627
23628 * include/grub/multiboot2.h: Provide compatibility defines for
23629 multiboot2.h.
23630 * include/multiboot2.h: Include stdint.h only if needed, using
23631 angle brackets.
23632 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
23633 grub/multiboot2.h.
23634 * loader/ieee1275/multiboot2.c: Likewise.
23635 * loader/multiboot2.c: Likewise.
23636 * loader/multiboot_loader.c: Likewise.
23637
23638 * configure.ac: Use -nostdlib when probing for the target. It
23639 should not be required to have libc for the target.
23640
23641 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
23642 they fail without libc headers for the target.
23643 * include/grub/powerpc/libgcc.h: Use weak attribute for all
23644 exports.
23645 * include/grub/sparc64/libgcc.h: Likewise. Don't use
23646 preprocessor conditionals.
23647
23648 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
23649 build system doesn't need to be aware of the tar.c internals.
23650
23651 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
23652
23653 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
23654
23655 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
23656
23657 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
23658 disk limit to 26 for IDE, Virtio, Xen and SCSI.
23659
23660 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
23661
23662 * util/i386/pc/grub-install.in: Change the error message if UUIDs
23663 aren't available if ata.mod gets used.
23664
23665 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
23666
23667 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
23668 initialising controller.
23669 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23670
23671 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23672
23673 * util/i386/pc/grub-install.in: Add a parameter --disk-module
23674 to choose between ata and biosdisk module on i386-pc.
23675
23676 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
23677
23678 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
23679 Subclass and Programming Interface fields in terms of the 3 byte
23680 Class Code register.
23681 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
23682
23683 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
23684 interface is OHCI. Add grub_dprintf for symmetry with
23685 bus/usb/uhci.c.
23686 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
23687 interface is UHCI. Add interf variable for programming
23688 interface. Print interface with class/subclass.
23689
23690 * bus/usb/ohci.c: Set interf with correct field.
23691
23692 * bus/usb/uhci.c: Remove unneeded doubled lines.
23693 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
23694 Remove whitespace inside comment.
23695
23696 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
23697
23698 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
23699 as fallback an equivalent option without depth.
23700
23701 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23702
23703 Not fail if unable to retrieve C/H/S on LBA disks
23704
23705 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
23706 if unable to retrieve C/H/S on LBA disks
23707
23708 2009-06-08 Pavel Roskin <proski@gnu.org>
23709
23710 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
23711 about aliasing.
23712
23713 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23714
23715 * Makefile.in (uninstall): Remove all $lib_DATA files.
23716
23717 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
23718
23719 Bugfix: install on partitionless device
23720
23721 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
23722 is a whole disk
23723
23724 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23725
23726 * Makefile.in (uninstall): Remove all $include_DATA files.
23727
23728 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
23729
23730 * commands/true.c: New file. Implement the true and false commands.
23731 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
23732 (true_mod_SOURCES): New variable.
23733 (true_mod_CFLAGS): Likewise.
23734 (true_mod_LDFLAGS): Likewise.
23735
23736 2009-06-05 Colin D Bennett <colin@gibibit.com>
23737
23738 Optimized font character lookup using binary search instead of linear
23739 search. Fonts now are required to have the character index ordered by
23740 code point.
23741
23742 * font/font.c (load_font_index): Verify that fonts have ordered
23743 character indices.
23744 (find_glyph): Use binary search instead of linear search to find a
23745 character in a font.
23746
23747 2009-06-05 Michael Scherer <misc@mandriva.org>
23748
23749 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
23750 uses case sensitive btree.
23751 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
23752 only for case insensitive filesystems.
23753
23754 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
23755
23756 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
23757 * conf/common.rmk (search_mod_CFLAGS): likewise
23758
23759 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23760
23761 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
23762 compensate a compiler bug
23763
23764 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23765
23766 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
23767 instead of '\b'
23768
23769 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23770
23771 Definitions for creating asm symbols with Apple's CC
23772
23773 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
23774 [APPLE_CC] (VARIABLE): likewise
23775
23776 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23777
23778 Disable lnxboot.img when compiled
23779 with Apple's CC
23780
23781 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
23782 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
23783 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
23784 [! APPLE_CC] (CODE_LENG): skip
23785 [! APPLE_CC] (setup_sects): likewise
23786 [! APPLE_CC]: skip filling
23787
23788 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23789
23790 Address in trampolines based on 32-bit registers when compiled
23791 with Apple's CC
23792
23793 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
23794 for addresses
23795 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
23796
23797 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23798
23799 Avoid aliases when compiling with Apple's CC for PCBIOS machine
23800
23801 * kern/misc.c [APPLE_CC] (memcpy): new function
23802 [APPLE_CC] (memmove): likewise
23803 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
23804 (memcpy): define alias conditionally on !APPLE_CC
23805 (memset): likewise
23806 (abort): likewise
23807 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
23808 APPLE_CC are defined
23809 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
23810 (grub_assert_fail): make prototype conditional
23811
23812 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23813
23814 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
23815
23816 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
23817 grub-macho2img
23818 (CLEANFILES): add grub-macho2img
23819 (grub_macho2img_SOURCES): new variable
23820 * kern/i386/pc/startup.S (bss_start): new variable
23821 (bss_end): likewise
23822 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
23823 * util/grub-macho2img.c: new file
23824
23825 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23826
23827 Use objconv when compiling with Apple's CC
23828
23829 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
23830 (efiemu64.o): likewise
23831 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
23832 when compiling with Apple's CC
23833 (efiemu64_s.o): likewise
23834 * configure.ac: check for objconv when compiling with Apple's CC
23835 * genmk.rb: use objconv for modules when compiled with Apple's CC
23836
23837 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23838
23839 Define segment as well as section when compiling with
23840 Apple's CC
23841
23842 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
23843 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
23844 (efiemu_convert_pointer): likewise
23845 (efiemu_set_virtual_address_map): likewise
23846 (efiemu_convert_pointer): likewise
23847 (efiemu_getcrc32): likewise
23848 (init_crc32_table): likewise
23849 (reflect): likewise
23850 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
23851 (GRUB_MOD_DEP): likewise
23852
23853 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23854
23855 Allow a compilation without -mcmodel=large
23856
23857 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
23858 when compiled without -mcmodel=large
23859 (filter_memory_map): remove memory post 4 GiB when compiled
23860 without -mcmodel=large
23861 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
23862 TARGET_CFLAGS when -mcmodel=large isn't supported
23863
23864 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23865
23866 Remove nested functions in efiemu core
23867
23868 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
23869
23870 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23871
23872 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
23873
23874 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
23875 temporary storage
23876 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
23877 using Apple's CC
23878 (grub_cpu_is_tsc_supported): likewise
23879 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
23880
23881 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23882
23883 Absolute addressing through constant with Apple's cc
23884
23885 * kern/i386/pc/startup.S: Define necessary constants
23886 and address through it when using ABS with Apple's CC
23887 * boot/i386/pc/diskboot.S: likewise
23888 * boot/i386/pc/boot.S: likewise
23889 * boot/i386/pc/lnxboot.S: likewise
23890 * boot/i386/pc/cdboot.S: likewise
23891 * mmap/i386/pc/mmap_helper.S: likewise
23892 * commands/i386/pc/drivemap_int13h.S: likewise
23893
23894 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23895
23896 Check if compiler is apple cc
23897
23898 * Makefile.in (ASFLAGS): new variable
23899 (TARGET_ASFLAGS): likewise
23900 (TARGET_MODULE_FORMAT): likewise
23901 (TARGET_APPLE_CC): likewise
23902 (OBJCONV): likewise
23903 (TARGET_IMG_CFLAGS): likewise
23904 (TARGET_CPPFLAGS): add includedir
23905 * configure.ac: call grub_apple_cc and grub_apple_target_cc
23906 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
23907 Check for linker script only if compiler isn't Apple's CC
23908 (TARGET_MODULE_FORMAT): set
23909 (TARGET_APPLE_CC): likewise
23910 (TARGET_ASFLAGS): likewise
23911 (ASFLAGS): likewise
23912 Check for objcopy only if compiler isn't Apple's CC
23913 Check for BSS symbol only if compiler isn't Apple's CC
23914 * genmk.rb: adapt nm options if we use Apple's utils
23915 * aclocal.m4 (grub_apple_cc): new test
23916 (grub_apple_target_cc): likewise
23917
23918 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23919
23920 Simplify sed expressions and improve awk
23921
23922 * Makefile.in (install-local): simplify sed expression
23923 * gencmdlist.sh: likewise
23924 * genmoddep.awk: avoid adding module as a dependency of itself
23925
23926 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23927
23928 Add missing start symbols
23929
23930 * boot/i386/pc/boot.S: add start
23931 * boot/i386/pc/pxeboot.S: likewise
23932
23933 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23934
23935 Fix wrong assumptions with grub-mkimage on EFI
23936
23937 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
23938 (relocate_addresses): consider both r_addend and value at offset
23939 (make_mods_section): zerofill modinfo and header
23940 (convert_elf): write prefix here
23941
23942 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23943
23944 Use .asciz instead of .string
23945
23946 * i386/pc/diskboot.S: use .asciz instead of .string
23947 * i386/pc/boot.S: likewise
23948 * include/grub/dl.h (GRUB_MOD_DEP): likewise
23949 (GRUB_MOD_NAME): likewise
23950
23951 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23952
23953 gfxpayload support
23954
23955 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
23956 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
23957 (grub_video_setup): remove
23958 (grub_video_set_mode): new prototype
23959 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
23960 (vid_mode): remove
23961 (linux_vesafb_res): compile only on PCBIOS
23962 (grub_linux_boot): support gfxpayload
23963 * loader/i386/pc/xnu.c (video_hook): new function
23964 (grub_xnu_set_video): support gfxpayload
23965 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
23966 (DEFAULT_VIDEO_HEIGHT): likewise
23967 (DEFAULT_VIDEO_FLAGS): likewise
23968 (DEFAULT_VIDEO_MODE): new definition
23969 (video_hook): new function
23970 (grub_gfxterm_init): use grub_video_set_mode
23971 * util/grub.d/30_os-prober.in: remove explicit modesetting before
23972 loading xnu
23973 * video/video.c (grub_video_setup): removed
23974 (grub_video_set_mode): new function based on grub_gfxterm_init and
23975 grub_video_setup
23976
23977 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23978
23979 Avoid calling biosdisk in drivemap
23980
23981 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
23982 (revparse_biosdisk): likewise
23983 (list_mappings): derive name from id directly
23984 (grub_cmd_drivemap): use tryparse_diskstring
23985
23986 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
23987
23988 Script fixes
23989
23990 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
23991 (grub_lexer_param): add tokenonhold
23992 (grub_script_create_cmdline): remove cmdline. All callers updated
23993 (grub_script_function_create): make functionname
23994 grub_script_arg. All callers updated
23995 (grub_script_execute_argument_to_string): new prototype
23996 * kern/parser.c (state_transitions): reorder
23997 (grub_parser_cmdline_state): fix a bug and make more compact
23998 * script/sh/execute.c (grub_script_execute_argument_to_string):
23999 make global
24000 (grub_script_execute_cmdline): use new format
24001 * script/sh/function.c (grub_script_function_create): make functionname
24002 grub_script_arg. All callers updated
24003 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
24004 (grub_script_yylex): remove
24005 (grub_script_yylex2): renamed to ...
24006 (grub_script_yylex): ...renamed
24007 parse the expressions like a${b}c
24008 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
24009 (GRUB_PARSER_TOKEN_VAR): remove
24010 (GRUB_PARSER_TOKEN_NAME): likewise
24011 ("if"): declare as typeless
24012 ("while"): likewise
24013 ("function"): likewise
24014 ("else"): likewise
24015 ("then"): likewise
24016 ("fi"): likewise
24017 (text): remove
24018 (argument): likewise
24019 (script): accept empty scripts and make exit on error
24020 (arguments): use GRUB_PARSER_TOKEN_ARG
24021 (function): likewise
24022 (command): move error handling to script
24023 (menuentry): move grub_script_lexer_ref before
24024 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
24025 argument. All callers updated
24026
24027 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
24028
24029 Prevent GRUB from probing floppies during boot.
24030
24031 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
24032 * commands/search.c (options): Add --no-floppy.
24033 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
24034 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
24035 --no-floppy when searching for UUIDs.
24036
24037 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
24038
24039 Simplify the code duplication in commands/search.c.
24040
24041 * commands/search.c (search_label, search_fs_uuid): Merge into ...
24042 (search_fs): ... this. Update all users.
24043
24044 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
24045
24046 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
24047
24048 2009-05-28 Pavel Roskin <proski@gnu.org>
24049
24050 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
24051 Remove the original symlink explicitly.
24052
24053 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
24054 just one slash. That's how grub_fshelp_find_file() does it.
24055
24056 2009-05-26 Pavel Roskin <proski@gnu.org>
24057
24058 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
24059 to `str'.
24060
24061 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
24062 possibly unused.
24063
24064 2009-05-25 Christian Franke <franke@computer.org>
24065
24066 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
24067 register.
24068 (grub_atapi_identify): Add wait after drive select.
24069 (grub_ata_identify): Do more strict status register check before
24070 calling grub_atapi_identify (). Suppress error message if status
24071 register is 0x00 after command failure. Add status register
24072 check after PIO read to avoid bogus identify due to stuck DRQ.
24073 Thanks to Pavel Roskin for testing.
24074 (grub_device_initialize): Remove unsafe status register check.
24075 Thanks to 'phcoder' for problem report and patch.
24076 Prevent sign extension in debug message.
24077
24078 2009-05-23 Colin D Bennett <colin@gibibit.com>
24079
24080 Cleaned up `include/grub/normal.h'. Grouped prototypes by
24081 definition file, and functions defined in `normal/menu.c' have had
24082 their prototypes moved to `include/grub/menu.h' for consistency.
24083
24084 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
24085 from normal.h.
24086 (grub_menu_get_entry): Likewise.
24087 (grub_menu_get_timeout): Likewise.
24088 (grub_menu_set_timeout): Likewise.
24089 (grub_menu_execute_entry): Likewise.
24090 (grub_menu_execute_with_fallback): Likewise.
24091 (grub_menu_entry_run): Likewise.
24092
24093 * include/grub/normal.h: Re-ordered and grouped function
24094 prototypes by file that the function is defined in.
24095 (grub_menu_execute_callback): Removed; moved to menu.h.
24096 (grub_menu_get_entry): Likewise.
24097 (grub_menu_get_timeout): Likewise.
24098 (grub_menu_set_timeout): Likewise.
24099 (grub_menu_execute_entry): Likewise.
24100 (grub_menu_execute_with_fallback): Likewise.
24101 (grub_menu_entry_run): Likewise.
24102 (grub_menu_addentry): Renamed from this ...
24103 (grub_normal_add_menu_entry): ... to this.
24104
24105 * normal/main.c (grub_menu_addentry): Renamed from this ...
24106 (grub_normal_add_menu_entry): ... to this.
24107
24108 * script/sh/execute.c (grub_script_execute_menuentry): Update
24109 reference to renamed grub_menu_addentry function.
24110
24111 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
24112
24113 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
24114
24115 2009-05-22 Pavel Roskin <proski@gnu.org>
24116
24117 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
24118 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
24119 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
24120 compiling for the i386 targets, but not for the utilities.
24121
24122 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
24123 to grub_uint8_t.
24124 (grub_root_drive): Likewise.
24125 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
24126 remove alignment.
24127 (grub_root_drive): Change size to byte.
24128 (grub_start_addr): Remove.
24129 (grub_end_addr): Likewise.
24130 (grub_apm_bios_info): Likewise.
24131
24132 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
24133
24134 * normal/i386: Remove.
24135 * normal/powerpc: Likewise.
24136 * normal/sparc64: Likewise.
24137 * normal/x86_64: Likewise.
24138
24139 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
24140
24141 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
24142 * loader/i386/linux_trampoline.S: Fix indentation
24143 * loader/i386/xnu_helper.S: Likewise
24144
24145 2009-05-18 Colin D Bennett <colin@gibibit.com>
24146
24147 Display error messages when parsing a Lua statement fails.
24148 Previously, executing a syntactically invalid statement like
24149 ")foo" or "bar;" would silently fail.
24150
24151 * script/lua/grub_main.c (handle_lua_error): New function.
24152 (grub_lua_parse_line): Improved reporting of Lua parser and
24153 execution errors.
24154
24155 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24156
24157 Remove -Werror which causes build to fail on some systems
24158
24159 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
24160 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
24161 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
24162
24163 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
24164
24165 trampoline for linux on 64-bit platform
24166
24167 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
24168 loader/i386/efi/linux_trampoline.S
24169 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
24170 declaration
24171 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
24172 here
24173 * loader/i386/linux_trampoline.S: moved here
24174 * loader/i386/efi/linux.c (allocate_pages): reserve space for
24175 trampoline
24176 (jumpvector): removed
24177 (grub_linux_trampoline_start): new declaration
24178 (grub_linux_trampoline_end): likewise
24179 (grub_linux_boot): use trampoline when on 64-bit platform
24180 * loader/i386/linux.c: likewise
24181
24182 2009-05-16 Pavel Roskin <proski@gnu.org>
24183
24184 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
24185 const to avoid a warning.
24186 (grub_lua_setenv): Likewise.
24187 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
24188 lmsg to fix a warning.
24189
24190 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
24191
24192 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
24193 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24194 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
24195 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24196 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
24197 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24198 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
24199 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
24200
24201 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
24202
24203 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
24204
24205 2009-05-16 Bean <bean123ch@gmail.com>
24206
24207 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
24208 (lua_mod_SOURCES): New variable.
24209 (lua_mod_CFLAGS): Likewise.
24210 (lua_mod_LDFLAGS): Likewise.
24211
24212 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
24213 (setjmp_mod_SOURCES): New variable.
24214 (setjmp_mod_CFLAGS): Likewise.
24215 (setjmp_LDFLAGS): Likewise.
24216
24217 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
24218 (setjmp_mod_SOURCES): New variable.
24219 (setjmp_mod_CFLAGS): Likewise.
24220 (setjmp_LDFLAGS): Likewise.
24221
24222 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
24223 (setjmp_mod_SOURCES): New variable.
24224 (setjmp_mod_CFLAGS): Likewise.
24225 (setjmp_LDFLAGS): Likewise.
24226
24227 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
24228 (setjmp_mod_SOURCES): New variable.
24229 (setjmp_mod_CFLAGS): Likewise.
24230 (setjmp_LDFLAGS): Likewise.
24231
24232 * normal/i386/setjmp.S: Moved from here ...
24233 * lib/i386/setjmp.S: ... Moved here
24234 * normal/x86_64/setjmp.S: Moved from here ...
24235 * lib/x86_64/setjmp.S: ... Moved here
24236 * normal/powerpc/setjmp.S: Moved from here ...
24237 * lib/powerpc/setjmp.S: ... Moved here
24238 * normal/sparc64/setjmp.S: Moved from here ...
24239 * lib/sparc64/setjmp.S: ... Moved here
24240
24241 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
24242 returns_twice in mingw.
24243
24244 * script/lua/grub_lib.c: New file.
24245 * script/lua/grub_lib.h: Likewise.
24246 * script/lua/grub_lua.h: Likewise.
24247 * script/lua/grub_main.c: Likewise.
24248 * script/lua/lapi.c: Likewise.
24249 * script/lua/lapi.h: Likewise.
24250 * script/lua/lauxlib.c: Likewise.
24251 * script/lua/lauxlib.h: Likewise.
24252 * script/lua/lbaselib.c: Likewise.
24253 * script/lua/lcode.c: Likewise.
24254 * script/lua/lcode.h: Likewise.
24255 * script/lua/ldblib.c: Likewise.
24256 * script/lua/ldebug.c: Likewise.
24257 * script/lua/ldebug.h: Likewise.
24258 * script/lua/ldo.c: Likewise.
24259 * script/lua/ldo.h: Likewise.
24260 * script/lua/ldump.c: Likewise.
24261 * script/lua/lfunc.c: Likewise.
24262 * script/lua/lfunc.h: Likewise.
24263 * script/lua/lgc.c: Likewise.
24264 * script/lua/lgc.h: Likewise.
24265 * script/lua/linit.c: Likewise.
24266 * script/lua/liolib.c: Likewise.
24267 * script/lua/llex.c: Likewise.
24268 * script/lua/llex.h: Likewise.
24269 * script/lua/llimits.h: Likewise.
24270 * script/lua/lmathlib.c: Likewise.
24271 * script/lua/lmem.c: Likewise.
24272 * script/lua/lmem.h: Likewise.
24273 * script/lua/loadlib.c: Likewise.
24274 * script/lua/lobject.c: Likewise.
24275 * script/lua/lobject.h: Likewise.
24276 * script/lua/lopcodes.c: Likewise.
24277 * script/lua/lopcodes.h: Likewise.
24278 * script/lua/loslib.c: Likewise.
24279 * script/lua/lparser.c: Likewise.
24280 * script/lua/lparser.h: Likewise.
24281 * script/lua/lstate.c: Likewise.
24282 * script/lua/lstate.h: Likewise.
24283 * script/lua/lstring.c: Likewise.
24284 * script/lua/lstring.h: Likewise.
24285 * script/lua/lstrlib.c: Likewise.
24286 * script/lua/ltable.c: Likewise.
24287 * script/lua/ltable.h: Likewise.
24288 * script/lua/ltablib.c: Likewise.
24289 * script/lua/ltm.c: Likewise.
24290 * script/lua/ltm.h: Likewise.
24291 * script/lua/lua.h: Likewise.
24292 * script/lua/luaconf.h: Likewise.
24293 * script/lua/lualib.h: Likewise.
24294 * script/lua/lundump.c: Likewise.
24295 * script/lua/lundump.h: Likewise.
24296 * script/lua/lvm.c: Likewise.
24297 * script/lua/lvm.h: Likewise.
24298 * script/lua/lzio.c: Likewise.
24299 * script/lua/lzio.h: Likewise.
24300
24301 2009-05-16 Bean <bean123ch@gmail.com>
24302
24303 * include/grub/kernel.h (grub_module_header_types): Add type
24304 OBJ_TYPE_CONFIG.
24305
24306 * kern/main.c (grub_load_config): New function.
24307 (grub_main): Call grub_load_config to read boot config.
24308
24309 * grub-mkimage (generate_image): New parameter config_path.
24310 (options): New option --config.
24311 (main): Parse --config option, and pass it to generate_image.
24312
24313 2009-05-14 Christian Franke <franke@computer.org>
24314
24315 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
24316 This fixes build on Cygwin.
24317
24318 2009-05-14 Pavel Roskin <proski@gnu.org>
24319
24320 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
24321 jump. This saves two bytes, so the typical case of 2 swapped
24322 drives would fit 32 bytes.
24323
24324 2009-05-13 Pavel Roskin <proski@gnu.org>
24325
24326 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
24327 grub_uint32_t to avoid a warning.
24328
24329 * loader/i386/linux.c (allocate_pages): When assigning
24330 real_mode_mem, cast through grub_size_t to fix a warning. The
24331 code already makes sure that the value would fit a pointer.
24332 (grub_linux_setup_video): Cast render_target->data to
24333 grub_size_t to fix a warning.
24334
24335 2009-05-13 Javier Martín <lordhabbit@gmail.com>
24336
24337 * commands/i386/pc/drivemap.c: New file - implement drivemap
24338 command.
24339 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
24340 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
24341
24342 2009-05-13 Pavel Roskin <proski@gnu.org>
24343
24344 * util/i386/pc/grub-setup.c (setup): Remove unused variable
24345 embedding_area_exists.
24346
24347 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
24348
24349 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
24350 it easier to understand / work with.
24351 Improve warning messages for cases where there's no embedding area,
24352 or when it is too small (or core.img too large).
24353
24354 2009-05-13 Pavel Roskin <proski@gnu.org>
24355
24356 * loader/i386/pc/multiboot2.c: Add necessary includes for
24357 grub_multiboot2_real_boot().
24358
24359 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
24360 PX record is always little-endian. We only need the lower 2
24361 bytes of the mode.
24362
24363 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
24364 facilitate code reuse.
24365 (grub_cpio_mount): Use "struct head", not a char buffer. This
24366 fixes a warning reported by gcc 4.4.
24367
24368 * kernel/disk.c (grub_disk_read): Use void pointer for the
24369 buffer.
24370 (grub_disk_write): Use const void pointer for the buffer.
24371 Adjust all callers. Remove unnecessary casts.
24372
24373 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
24374
24375 * util/i386/pc/grub-install.in: Update copyright year.
24376
24377 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24378
24379 gptsync
24380
24381 * commands/gptsync.c: new file
24382 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
24383 (gptsync_mod_SOURCES): new variable
24384 (gptsync_mod_CFLAGS): likewise
24385 (gptsync_mod_LDFLAGS): likewise
24386 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
24387 new definition
24388 (GRUB_PC_PARTITION_TYPE_HFS): likewise
24389 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
24390 * conf/i386-ieee1275.rmk: likewise
24391 * conf/i386-pc.rmk: likewise
24392 * conf/powerpc-ieee1275.rmk: likewise
24393
24394 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
24395
24396 Fixed grub-emu
24397
24398 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
24399 (grub_dl_ref): likewise
24400
24401 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
24402
24403 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
24404 split in two functions (one for msdos and one for gpt).
24405
24406 2009-05-08 Pavel Roskin <proski@gnu.org>
24407
24408 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
24409 not modified.
24410
24411 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
24412 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
24413 Initialize them with -1. Add sanity check for bad1. Eliminate
24414 nerr variable.
24415
24416 2009-05-08 David S. Miller <davem@davemloft.net>
24417
24418 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
24419
24420 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
24421
24422 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
24423 existence.
24424
24425 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
24426
24427 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
24428 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
24429
24430 2009-05-05 David S. Miller <davem@davemloft.net>
24431
24432 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
24433
24434 2009-05-05 Pavel Roskin <proski@gnu.org>
24435
24436 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
24437 of grub_dl_ref() and grub_dl_unref().
24438 * commands/parttool.c: Remove preprocessor conditionals around
24439 grub_dl_ref() and grub_dl_unref().
24440 * fs/affs.c: Likewise.
24441 * fs/afs.c: Likewise.
24442 * fs/cpio.c: Likewise.
24443 * fs/ext2.c: Likewise.
24444 * fs/fat.c: Likewise.
24445 * fs/hfs.c: Likewise.
24446 * fs/hfsplus.c: Likewise.
24447 * fs/iso9660.c: Likewise.
24448 * fs/jfs.c: Likewise.
24449 * fs/minix.c: Likewise.
24450 * fs/ntfs.c: Likewise.
24451 * fs/reiserfs.c: Likewise.
24452 * fs/sfs.c: Likewise.
24453 * fs/udf.c: Likewise.
24454 * fs/ufs.c: Likewise.
24455 * fs/xfs.c: Likewise.
24456 * include/grub/dl.h: Likewise.
24457 * loader/xnu.c: Likewise.
24458
24459 2009-05-04 Pavel Roskin <proski@gnu.org>
24460
24461 * commands/acpi.c: Remove unused variable my_mod.
24462 * partmap/amiga.c: Likewise.
24463 * partmap/apple.c: Likewise.
24464 * partmap/gpt.c: Likewise.
24465 * partmap/pc.c: Likewise.
24466 * partmap/sun.c: Likewise.
24467 * term/gfxterm.c: Likewise.
24468 * term/i386/pc/vesafb.c: Likewise.
24469 * term/i386/pc/vga.c: Likewise.
24470
24471 2009-05-04 David S. Miller <davem@davemloft.net>
24472
24473 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
24474 pointer args to grub_ieee1275_get_property().
24475
24476 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
24477
24478 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
24479 devices, and do not traverse down under controller nodes.
24480
24481 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
24482 (grub_ofdisk_open): Use it to un-escape "," characters.
24483 * kern/disk.c (find_part_sep): New.
24484 (grub_disk_open): Use it to find the first non-escaped ','
24485 character in the disk name.
24486 * util/ieee1275/devicemap.c (escape_of_path): New.
24487 (grub_util_emit_devicemap_entry): Use it.
24488 * util/sparc64/ieee1275/grub-install.in: Update script to
24489 strip partition specifiers properly by not triggering on
24490 '\' escaped ',' characters.
24491
24492 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24493
24494 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
24495 to 0x300.
24496 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
24497 resolutions.
24498 (linux_vesafb_modes): Add a lot of additional modes to the list (based
24499 on documentation from Wikipedia).
24500
24501 2009-05-04 Pavel Roskin <proski@gnu.org>
24502
24503 * disk/ata.c: Spelling fixes.
24504 * disk/raid.c: Likewise.
24505 * disk/usbms.c: Likewise.
24506 * disk/dmraid_nvidia.c: Likewise.
24507 * kern/ieee1275/openfw.c: Likewise.
24508 * kern/ieee1275/init.c: Likewise.
24509 * kern/ieee1275/cmain.c: Likewise.
24510 * boot/i386/pc/cdboot.S: Likewise.
24511 * video/readers/png.c: Likewise.
24512 * video/i386/pc/vbe.c: Likewise.
24513 * fs/udf.c: Likewise.
24514 * fs/hfs.c: Likewise.
24515 * fs/reiserfs.c: Likewise.
24516 * efiemu/runtime/efiemu.c: Likewise.
24517 * efiemu/main.c: Likewise.
24518 * efiemu/mm.c: Likewise.
24519 * include/grub/elf.h: Likewise.
24520 * include/grub/xnu.h: Likewise.
24521 * include/grub/usbdesc.h: Likewise.
24522 * include/grub/usb.h: Likewise.
24523 * include/grub/script_sh.h: Likewise.
24524 * include/grub/lib/LzmaEnc.h: Likewise.
24525 * include/grub/efiemu/efiemu.h: Likewise.
24526 * include/grub/command.h: Likewise.
24527 * normal/menu.c: Likewise.
24528 * normal/main.c: Likewise.
24529 * normal/datetime.c: Likewise.
24530 * bus/usb/uhci.c: Likewise.
24531 * mmap/i386/uppermem.c: Likewise.
24532 * mmap/mmap.c: Likewise.
24533 * commands/acpi.c: Likewise.
24534 * commands/test.c: Likewise.
24535 * partmap/apple.c: Likewise.
24536 * font/font.c: Likewise.
24537 * loader/sparc64/ieee1275/linux.c: Likewise.
24538 * loader/macho.c: Likewise.
24539 * loader/i386/bsd_trampoline.S: Likewise.
24540 * loader/i386/bsd.c: Likewise.
24541 * loader/xnu.c: Likewise.
24542 * term/i386/pc/vesafb.c: Likewise.
24543 * term/usb_keyboard.c: Likewise.
24544 * util/resolve.c: Likewise.
24545 * util/getroot.c: Likewise.
24546
24547 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24548
24549 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
24550
24551 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24552
24553 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
24554 build error.
24555
24556 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24557
24558 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
24559 parameter only available on BIOS.
24560
24561 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24562
24563 Removed wrong semicolon in declaration
24564
24565 * grub/misc.h (grub_dprintf): remove semicolon
24566
24567 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24568
24569 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
24570 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
24571 is done by grub_cmd_linux() now).
24572 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
24573 restore video to text mode.
24574 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
24575 indicates lack of "vga=" parameter. "vga=0" is mapped to
24576 `GRUB_LINUX_VID_MODE_NORMAL'.
24577
24578 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
24579
24580 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
24581 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
24582 and `normal/script.c'. Add `kern/rescue_reader.c',
24583 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
24584 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
24585 `grub_script.tab.c'.
24586
24587 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24588 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
24589 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24590 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
24591 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24592
24593 * Makefile.in: Remove duplicated 2008 in Copyright line.
24594
24595 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
24596
24597 * util/misc.c (grub_util_warn): New function. Emits a warning
24598 unconditionally.
24599 * include/grub/util/misc.h (grub_util_warn): New declaration.
24600
24601 * util/i386/pc/grub-install.in: Understand --force and pass it down
24602 to grub-setup.
24603
24604 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
24605 down to setup().
24606 (setup): Improve error messages and add warnings when requested to
24607 install in odd layouts. Refuse to install using blocklists unless
24608 --force was set.
24609
24610 2009-05-04 martin f. krafft <madduck@madduck.net>
24611
24612 * disk/raid.c (grub_raid_scan_device): Improve debug message.
24613
24614 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24615
24616 Updated copyright year
24617
24618 * fs/hfsplus.c: updated copyright year
24619
24620 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
24621
24622 HFS+ UUID
24623
24624 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
24625 in the space previously used by unused3
24626 (grub_hfsplus_uuid): new function
24627 (grub_hfsplus_fs): added uuid field
24628
24629 2009-05-03 Pavel Roskin <proski@gnu.org>
24630
24631 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
24632 suppress warnings. It's no longer needed.
24633 * disk/host.c: Likewise.
24634 * disk/ata_pthru.c: Likewise.
24635 * disk/loopback.c: Likewise.
24636 * hook/datehook.c: Likewise.
24637 * parttool/pcpart.c: Likewise.
24638 * fs/i386/pc/pxe.c: Likewise.
24639 * fs/ntfscomp.c: Likewise.
24640 * efiemu/main.c: Likewise.
24641 * mmap/mmap.c: Likewise.
24642 * commands/crc.c: Likewise.
24643 * commands/hexdump.c: Likewise.
24644 * commands/hdparm.c: Likewise.
24645 * commands/acpi.c: Likewise.
24646 * commands/echo.c: Likewise.
24647 * commands/minicmd.c: Likewise.
24648 * commands/blocklist.c: Likewise.
24649 * commands/memrw.c: Likewise.
24650 * commands/loadenv.c: Likewise.
24651 * commands/usbtest.c: Likewise.
24652 * commands/lsmmap.c: Likewise.
24653 * commands/boot.c: Likewise.
24654 * commands/parttool.c: Likewise.
24655 * commands/configfile.c: Likewise.
24656 * commands/search.c: Likewise.
24657 * commands/ieee1275/suspend.c: Likewise.
24658 * commands/cat.c: Likewise.
24659 * commands/i386/pc/pxecmd.c: Likewise.
24660 * commands/i386/pc/play.c: Likewise.
24661 * commands/i386/pc/halt.c: Likewise.
24662 * commands/i386/pc/vbeinfo.c: Likewise.
24663 * commands/i386/pc/vbetest.c: Likewise.
24664 * commands/lspci.c: Likewise.
24665 * commands/date.c: Likewise.
24666 * commands/handler.c: Likewise.
24667 * commands/ls.c: Likewise.
24668 * commands/test.c: Likewise.
24669 * commands/cmp.c: Likewise.
24670 * commands/efi/loadbios.c: Likewise.
24671 * commands/efi/fixvideo.c: Likewise.
24672 * commands/halt.c: Likewise.
24673 * commands/help.c: Likewise.
24674 * commands/reboot.c: Likewise.
24675 * hello/hello.c: Likewise.
24676 * script/sh/main.c: Likewise.
24677 * loader/xnu.c: Likewise.
24678 * term/terminfo.c: Likewise.
24679 * term/i386/pc/serial.c: Likewise.
24680 * term/usb_keyboard.c: Likewise.
24681
24682 2009-05-03 David S. Miller <davem@davemloft.net>
24683
24684 * normal/menu.c: Include grub/parser.h
24685
24686 2009-05-03 Pavel Roskin <proski@gnu.org>
24687
24688 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
24689 not char*.
24690 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
24691 Suggested by Javier Martín <lordhabbit@gmail.com>
24692
24693 * util/i386/pc/grub-mkrescue.in: Allow for the case when
24694 efiemu??.o doesn't exist.
24695 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
24696 copying.
24697
24698 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
24699
24700 FreeBSD 64-bit support
24701
24702 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
24703 and loader/i386/bsd_trampoline.S
24704 (bsd_mod_ASFLAGS): new variable
24705 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
24706 (FREEBSD_MODTYPE_KERNEL64): likewise
24707 (grub_bsd64_trampoline_start): likewise
24708 (grub_bsd64_trampoline_end): likewise
24709 (grub_bsd64_trampoline_selfjump): likewise
24710 (grub_bsd64_trampoline_gdt): likewise
24711 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
24712 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
24713 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
24714 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
24715 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
24716 of "attrib" member
24717 * loader/i386/bsd_pagetable.c: new file
24718 * loader/i386/bsd_trampoline.S: likewise
24719 * loader/i386/bsd.c (ALIGN_QWORD): new macro
24720 (ALIGN_VAR): likewise
24721 (entry_hi): new variable
24722 (kern_end_mdofs): likewise
24723 (is_64bit): likewise
24724 (grub_freebsd_add_meta): use ALIGN_VAR
24725 (grub_e820_mmap): new declaration
24726 (grub_freebsd_add_mmap): new function
24727 (grub_freebsd_add_meta_module): support 64 bit kernels
24728 (grub_freebsd_list_modules): use ALIGN_VAR
24729 (gdt_descriptor): new declaration
24730 (grub_freebsd_boot): support 64 bit kernels
24731 (grub_bsd_elf64_hook): new function
24732 (grub_bsd_load_elf): support elf64
24733
24734 2009-05-03 Bean <bean123ch@gmail.com>
24735
24736 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
24737 after we get the result of if statement.
24738
24739 2009-05-03 Bean <bean123ch@gmail.com>
24740
24741 * Makefile.in (enable_efiemu): New variable.
24742
24743 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
24744 set.
24745 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
24746 path.
24747 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
24748 path, add -mno-red-zone option.
24749 (efiemu64_s.o): Likewise.
24750 (efiemu64.o): Use macro $^ for source file.
24751
24752 * configure.ac (--enable-efiemu): New option.
24753
24754 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
24755
24756 xnu support
24757
24758 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
24759 (pkglib_MODULES): add xnu.mod
24760 (xnu_mod_SOURCES): new variable
24761 (xnu_mod_CFLAGS): likewise
24762 (xnu_mod_LDFLAGS): likewise
24763 (xnu_mod_ASFLAGS): likewise
24764 * conf/i386-pc.rmk: likewise
24765 * conf/x86_64-efi.rmk: likewise
24766 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
24767 new declaration
24768 * include/grub/i386/macho.h: new file
24769 * include/grub/i386/xnu.h: likewise
24770 * include/grub/macho.h: likewise
24771 * include/grub/machoload.h: likewise
24772 * include/grub/x86_64/macho.h: likewise
24773 * include/grub/x86_64/xnu.h: likewise
24774 * include/grub/xnu.h: likewise
24775 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
24776 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
24777 * loader/i386/efi/xnu.c: new file
24778 * loader/i386/pc/xnu.c: likewise
24779 * loader/i386/xnu.c: likewise
24780 * loader/i386/xnu_helper.S: likewise
24781 * loader/macho.c: likewise
24782 * loader/xnu.c: likewise
24783 * loader/xnu_resume.c: likewise
24784 * util/grub-dumpdevtree: likewise
24785 * include/grub/i386/pit.h: include grub/err.h
24786 (grub_pit_wait): export
24787 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
24788
24789 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24790
24791 Efiemu
24792
24793 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
24794 _linux_efi, linux_efi.
24795 new files in grub-emu
24796 new targets efiemu32.o and efiemu64.o
24797 * loader/linux_normal_efiemu.c: likewise
24798 * loader/i386/efi/linux.c: added preliminary efiemu support
24799 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
24800 files to copy
24801 * include/grub/autoefi.h: new file
24802 * include/grub/i386/efiemu.h: likewise
24803 * include/grub/i386/pc/efiemu.h: likewise
24804 * include/grub/efi/api.h: add LL suffix when necessary
24805 new definitions relating to tables
24806 * include/grub/efiemu/efiemu.h: new file
24807 * include/grub/efiemu/runtime.h: likewise
24808 * efiemu/prepare.c: likewise
24809 * efiemu/loadcore_common.c: likewise
24810 * efiemu/loadcore64.c: likewise
24811 * efiemu/runtime/efiemu.sh: likewise
24812 * efiemu/runtime/efiemu.S: likewise
24813 * efiemu/runtime/efiemu.c: likewise
24814 * efiemu/runtime/config.h: likewise
24815 * efiemu/prepare32.c: likewise
24816 * efiemu/main.c: likewise
24817 * efiemu/modules/pnvram.c: likewise
24818 * efiemu/modules/i386: likewise
24819 * efiemu/modules/i386/pc: likewise
24820 * efiemu/modules/acpi.c: likewise
24821 * efiemu/i386/pc/cfgtables.c: likewise
24822 * efiemu/i386/loadcore64.c: likewise
24823 * efiemu/i386/loadcore32.c: likewise
24824 * efiemu/prepare64.c: likewise
24825 * efiemu/loadcore.c: likewise
24826 * efiemu/symbols.c: likewise
24827 * efiemu/mm.c: likewise
24828 * efiemu/loadcore32.c: likewise
24829
24830 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24831
24832 ACPI spoofing
24833
24834 * commands/acpi.c: new file
24835 * commands/i386/pc/acpi.c: likewise
24836 * commands/efi/acpi.c: likewise
24837 * include/grub/acpi.h: likewise
24838 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
24839 (acpi_mod_SOURCES): new variable
24840 (acpi_mod_CFLAGS): likewise
24841 (acpi_mod_LDFLAGS): likewise
24842 * conf/i386-efi.rmk: likewise
24843 * conf/x86_64-efi.rmk: likewise
24844
24845 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24846
24847 Missing part from mmap patch
24848
24849 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
24850 (grub_mmap_unregister)
24851 (grub_mmap_free_and_unregister): use grub_mmap_register
24852
24853 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
24854
24855 Mmap services
24856
24857 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
24858 * loader/i386/linux.c (find_mmap_size): likewise
24859 (allocate_pages): likewise
24860 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
24861 (grub_fill_multiboot_mmap): likewise
24862 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
24863 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
24864 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
24865 (OPENBSD_MMAP_RESERVED): likewise
24866 * include/grub/i386/pc/memory.h: include grub/memory.h
24867 (grub_lower_mem): removed
24868 (grub_upper_mem): likewise
24869 (GRUB_MACHINE_MEMORY_ACPI): new definition
24870 (GRUB_MACHINE_MEMORY_NVS): likewise
24871 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
24872 (GRUB_MACHINE_MEMORY_HOLE): likewise
24873 (grub_machine_mmap_register): likewise
24874 (grub_machine_mmap_unregister): likewise
24875 (grub_machine_get_upper): likewise
24876 (grub_machine_get_lower): likewise
24877 (grub_machine_get_post64): likewise
24878 * include/grub/i386/efi/memory.h: new file
24879 * include/grub/x86_64/efi/memory.h: likewise
24880 * include/grub/efi/memory.h: likewise
24881 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
24882 (mmap_mod_SOURCES): new variable
24883 (mmap_mod_LDFLAGS): likewise
24884 (mmap_mod_ASFLAGS): likewise
24885 * conf/i386-coreboot.rmk: likewise
24886 * conf/i386-ieee1275.rmk: likewise
24887 * conf/i386-efi.rmk: likewise
24888 * conf/x86_64-efi.rmk: likewise
24889 * include/grub/types.h (UINT_TO_PTR): new macro
24890 (PTR_TO_UINT32): likewise
24891 (PTR_TO_UINT64): likewise
24892 * include/grub/memory.h: new file
24893 * mmap/i386/pc/mmap.c: likewise
24894 * mmap/i386/pc/mmap_helper.S: likewise
24895 * mmap/i386/uppermem.c: likewise
24896 * mmap/mmap.c: likewise
24897 * mmap/efi/mmap.c: likewise
24898 * kern/i386/coreboot/init.c (grub_machine_init): don't use
24899 grub_upper_mem
24900 * kern/i386/pc/init.c (grub_lower_mem): removed variable
24901 (grub_upper_mem): likewise
24902 (grub_machine_init): don't use grub_upper_mem,
24903 make grub_lower_mem local
24904 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
24905 grub_mmap_iterate and grub_mmap_get_upper
24906 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
24907
24908 2009-05-02 Bean <bean123ch@gmail.com>
24909
24910 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
24911 script/sh/parser.y.
24912 (pkglib_MODULES): Add normal.mod and sh.mod.
24913 (normal_SOURCES): New variable.
24914 (normal_mod_CFLAGS): Likewise.
24915 (normal_mod_LDFLAGS): Likewise.
24916 (sh_mod_SOURCES): Likewise.
24917 (sh_mod_CFLAGS): Likewise.
24918 (sh_mod_LDFLAGS): Likewise.
24919
24920 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
24921 script/sh/lexer.c_DEPENDENCIES.
24922 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
24923 kern/rescue_reader.c and kern/rescue_parser.c.
24924 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
24925 (grub_emu_SOURCES): Change source files.
24926 (pkglib_MODULES): Remove normal.mod.
24927 (normal_SOURCES): Removed.
24928 (normal_mod_CFLAGS): Likewise.
24929 (normal_mod_LDFLAGS): Likewise.
24930 * conf/i386-coreboot.rmk: Likewise.
24931 * conf/i386-efi.rmk: Likewise.
24932 * conf/i386-ieee1276.rmk: Likewise.
24933 * conf/powerpc-ieee1275.rmk: Likewise.
24934 * conf/sparc64-ieee1275.rmk: Likewise.
24935 * conf/x86_64-efi.rmk: Likewise.
24936
24937 * include/grub/command.h (grub_command_execute): New inline function.
24938
24939 * include/grub/menu.h (grub_menu_entry): Removed commands field.
24940
24941 * include/grub/normal.h: Remove <grub/setjmp.h>.
24942 (grub_fs_module_list): Moved to normal/autofs.c.
24943 (grub_exit_env): Removed.
24944 (grub_command_execute): Likewise.
24945 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
24946 parameter script.
24947 (read_command_list): New function declaration.
24948 (read_fs_list): Likewise.
24949
24950 * include/parser.h: Include <grub/reader.h>.
24951 (grub_parser_split_cmdline): Change type of getline parameter.
24952 (grub_parser): New structure.
24953 (grub_parser_class): New variable.
24954 (grub_parser_execute): New function declaration.
24955 (grub_register_rescue_parser): Likewise.
24956 (grub_parser_register): New inline function.
24957 (grub_parser_unregister): Likewise.
24958 (grub_parser_get_current): Likewise.
24959 (grub_parser_set_current): Likewise.
24960
24961 * include/grub/reader.h: New file.
24962 * kern/reader.c: Likewise.
24963 * kern/rescue_parser.c: Likewise.
24964 * kern/rescue_reader.c: Likewise.
24965 * normal/autofs.c: Likewise.
24966 * normal/dyncmd.c: Likewise.
24967
24968 * include/grub/rescue.h: Removed.
24969 * normal/command.h: Likewise.
24970
24971 * include/grub/script.h: Moved to ...
24972 * include/grub/script_sh.h: ... Moved here.
24973 * normal/execute.c: Moved to ...
24974 * script/sh/execute.c: ... Moved here.
24975 * normal/function.c: Moved to ...
24976 * script/sh/function.c: ... Moved here.
24977 * normal/lexer.c: Moved to ...
24978 * script/sh/lexer.c: ... Moved here.
24979 * normal/parser.y: Moved to ...
24980 * script/sh/parser.y: ... Moved here.
24981 * normal/script.c: Moved to ...
24982 * script/sh/script.c: ... Moved here.
24983
24984 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
24985 <grub/reader.h>.
24986 (grub_exit_env): Removed.
24987 (fs_module_list): Moved to normal/autofs.c.
24988 (grub_file_getline): Don't handle comment here.
24989 (free_menu): Skip removed field entry->commands.
24990 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
24991 script parameter.
24992 (read_config_file): Removed nested parameter, change getline function.
24993 (grub_enter_normal_mode): Removed.
24994 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
24995 (read_command_list): Likewise.
24996 (autoload_fs_module): Moved to normal/autofs.c.
24997 (read_fs_list): Likewise.
24998 (reader_nested): New variable.
24999 (grub_normal_execute): Run parser.sh to switch to sh parser.
25000 (grub_cmd_rescue): Removed.
25001 (cmd_normal): Removed.
25002 (grub_cmd_normal): Unregister itself at the beginning. Don't register
25003 rescue command.
25004 (grub_cmdline_run): New function.
25005 (grub_normal_reader_init): Likewise.
25006 (grub_normal_read_line): Likewise.
25007 (grub_env_write_pager): Likewise.
25008 (cmdline): New variable.
25009 (grub_normal_reader): Likewise.
25010 (GRUB_MOD_INIT): Register normal reader and set as current, register
25011 pager hook, register normal command with grub_register_command_prio,
25012 so that it won't show up in command.lst.
25013 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
25014 grub_fs_autoload_hook.
25015
25016 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
25017 (grub_menu_execute_entry): Replace grub_script_execute with
25018 grub_parser_execute, change parameter to grub_command_execute.
25019
25020 * normal/menu_text.c: Remove <grub/script.h>.
25021
25022 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
25023 and <grub/parser.h>.
25024 (run): Change editor_getline to use new parser interface. Change
25025 parameter to grub_command_execute.
25026
25027 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
25028 <grub/reader.h> and <grub/parser.h>.
25029 (grub_load_normal_mode): Execute normal command.
25030 (grub_main): Call grub_register_core_commands,
25031 grub_register_rescue_parser and grub_register_rescue_reader, use
25032 grub_reader_loop to enter input loop.
25033
25034 * kern/parser.c (grub_parser_split_cmdline): Change type of
25035 getline parameter.
25036 (grub_parser_class): New variable.
25037 (grub_parser_execute): New function.
25038
25039 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
25040 * loader/multiboot2.c: Likewise.
25041 * loader/sparc64/ieee1275/linux.c: Likewise.
25042
25043 * util/grub-emu.c (read_command_list): New dummy function.
25044
25045 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
25046
25047 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
25048 count to 16 for CCISS and IDA.
25049
25050 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
25051
25052 * normal/menu_text.c (grub_wait_after_message): Print a newline
25053 after waiting for user input.
25054
25055 * loader/i386/linux.c: Include `<grub/normal.h>'.
25056 (grub_cmd_linux): Improve the error message about `ask' mode, by
25057 waiting for user input so it's not missed (we can do this, since
25058 user requested interaction).
25059
25060 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
25061
25062 Added missing lst to grub-mkrescue
25063
25064 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
25065 and ${input_dir}/parttool.lst
25066
25067 2009-04-30 David S. Miller <davem@davemloft.net>
25068
25069 * util/hostdisk.c (device_is_wholedisk): New function.
25070 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
25071 zero only if device_is_wholedisk() returns true.
25072
25073 * util/hostdisk.c (convert_system_partition_to_system_disk):
25074 Handle virtual disk devices named /dev/vdiskX as found on sparc
25075 and powerpc.
25076
25077 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
25078 lettered partition specifier is found, convert to numbered.
25079
25080 2009-04-29 David S. Miller <davem@davemloft.net>
25081
25082 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
25083 * include/grub/sparc64/ieee1275/memory.h: Likewise.
25084
25085 * normal/command.c: Add missing newline at end of file.
25086
25087 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
25088 warnings.
25089 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
25090 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
25091 grub_ofdisk_read): Likewise, and deal similarly with the fact that
25092 ihandles have a 32-bit type but need to be stored in a "void *".
25093
25094 2009-04-28 Pavel Roskin <proski@gnu.org>
25095
25096 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
25097 not disk. Adjust all dependencies.
25098 (grub_fs_uuid_close): Use grub_device_close(), not
25099 grub_disk_close().
25100
25101 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
25102 parent's partition, don't copy it by reference, as it gets freed
25103 on close.
25104
25105 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25106
25107 Preboot hooks support
25108
25109 * commands/boot.c (struct grub_preboot_t): new declaration
25110 (preboots_head): new variable
25111 (preboots_tail): likewise
25112 (grub_loader_register_preboot_hook): new function
25113 (grub_loader_unregister_preboot_hook): likewise
25114 (grub_loader_set): launch preboot hooks
25115 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
25116 (grub_loader_register_preboot_hook): new declaration
25117 (grub_loader_unregister_preboot_hook): likewise
25118
25119 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
25120
25121 Warning fix
25122
25123 * disk/scsi.c (grub_scsi_open): added missing cast when
25124 calling grub_dprintf
25125
25126 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
25127
25128 Bug and warning fixes
25129
25130 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
25131 declaration
25132 * commands/test.c (test_parse): fixed bug with file tests and corrected
25133 declaration of find_file
25134
25135 2009-04-26 Pavel Roskin <proski@gnu.org>
25136
25137 * Makefile.in: Don't install empty manual pages if help2man is
25138 missing. Use help2man option for output, not shell redirection.
25139
25140 2009-04-26 David S. Miller <davem@davemloft.net>
25141
25142 * util/grub-mkdevicemap.c (make_device_map): Add missing
25143 NESTED_FUNC_ATTR to process_device().
25144
25145 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
25146
25147 Test command
25148
25149 * commands/test.c: rewritten to use bash-like test
25150
25151 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
25152
25153 Parttool autoloading and improvements
25154
25155 * Makefile.in (pkglib_DATA): add parttool.lst
25156 (parttool.lst): new target
25157 * genmk.rb: generate parttool-*
25158 (CLEANFILES): add #{parttool}
25159 (PARTTOOLFILES): new variable
25160 * genparttoollist.sh: new file
25161 * parttool/pcpart.c (grub_pcpart_boot): more feedback
25162 (grub_pcpart_type): likewise
25163 * commands/parttool.c (helpmsg): new variable
25164 (grub_cmd_parttool): output help if not enough arguments are supplied
25165 autoload modules
25166 (GRUB_MOD_INIT(parttool)): use helpmsg
25167
25168 2009-04-24 David S. Miller <davem@davemloft.net>
25169
25170 Avoiding opening same device multiple times in device iterator.
25171
25172 * kern/device.c: (grub_device_iterate): Define struct part_ent,
25173 and use it to build a list of partitions in iterate_disk() and
25174 iterate_partition().
25175
25176 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
25177 on disk->data.
25178
25179 * disk/ieee1275/nand.c (grub_nand_iterate): Return
25180 grub_devalias_iterate() result instead of unconditional 0.
25181 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
25182 Also, capture hook return value, either directly or via
25183 grub_children_iterate(), and propagate to caller.
25184 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
25185 grub_children_iterate): Return value is now 'int' instead of
25186 'grub_err_t'.
25187 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
25188 like a proper iterator, stopping when hooks return non-zero.
25189 (grub_devalias_iterate): Likewise.
25190
25191 2009-04-23 David S. Miller <davem@davemloft.net>
25192
25193 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
25194
25195 2009-04-22 David S. Miller <davem@davemloft.net>
25196
25197 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
25198 is larger than address_cells, use that value for address_cells too.
25199
25200 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
25201 IEEE1275_MAX_PATH_LEN): Define.
25202 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
25203 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
25204 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
25205 'devtype'. Explicitly NULL terminate devalias expansion.
25206
25207 * util/sparc64/ieee1275/misc.c: New file.
25208 * util/sparc64/ieee1275/grub-setup.c: New file.
25209 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
25210 * util/sparc64/ieee1275/grub-mkimage.c: New file.
25211 * util/sparc64/ieee1275/grub-install.in: New file.
25212 * util/ieee1275/ofpath.c: New file.
25213 * util/ieee1275/devicemap.c: New file.
25214 * util/devicemap.c: New file.
25215 * util/deviceiter.c: New file.
25216 * kern/sparc64/ieee1275/init.c: New file.
25217 * include/grub/util/ofpath.h: New file.
25218 * include/grub/util/deviceiter.h: New file.
25219 * util/grub-mkdevicemap.c: Include deviceiter.h.
25220 Implement using grub_util_emit_devicemap_entry and
25221 grub_util_iterate_devices.
25222 * conf/i386-corebook.rmk: Build util/deviceiter.c and
25223 util/devicemap.c into grub-mkdevicemap
25224 * conf/i386-efi.rmk: Likewise.
25225 * conf/i386-ieee1275.rmk: Likewise.
25226 * conf/i386-pc.rmk: Likewise.
25227 * conf/powerpc-ieee1275.rmk: Likewise.
25228 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
25229 images and installation utilities. Build kernel as image
25230 instead of as elf binary. Use common rules as much as possible.
25231
25232 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
25233
25234 Correct GPT definition
25235
25236 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
25237 of "attrib" member
25238
25239 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
25240
25241 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
25242
25243 2009-04-19 David S. Miller <davem@davemloft.net>
25244
25245 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
25246 (grub_rescue_cmd_linux): Rename to...
25247 (grub_cmd_linux): and fix prototype.
25248 (grub_rescue_cmd_initrd): Rename to...
25249 (grub_cmd_initrd): and fix prototype.
25250 (cmd_linux, cmd_initrd): New.
25251 (GRUB_MOD_INIT(linux)): Use grub_register_command().
25252 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
25253
25254 2009-04-17 Pavel Roskin <proski@gnu.org>
25255
25256 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
25257 format.
25258 (grub_ohci_transfer): Likewise.
25259
25260 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
25261
25262 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
25263 return without a value. Fix inconsistent indentation.
25264
25265 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
25266 match struct grub_fs.
25267
25268 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
25269 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
25270 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
25271 * commands/lspci.c (grub_lspci_iter): Likewise.
25272
25273 2009-04-16 Bean <bean123ch@gmail.com>
25274
25275 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
25276 value.
25277
25278 2009-04-15 Pavel Roskin <proski@gnu.org>
25279
25280 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
25281 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
25282 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
25283 definitions.
25284
25285 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
25286
25287 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
25288 that no multiple data or metadata areas are supported and `Unknown
25289 metadata header'.
25290
25291 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25292
25293 Move loader out of the kernel
25294
25295 * kern/loader.c: moved to ...
25296 * commands/boot.c: ... moved here
25297 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
25298 * commands/boot.c (grub_cmd_boot): moved here. All users updated
25299 * include/grub/kernel.h (grub_machine_fini): export
25300 * include/grub/loader.h (grub_loader_is_loaded): update declaration
25301 (grub_loader_set): likewise
25302 (grub_loader_unset): likewise
25303 (grub_loader_boot): likewise
25304 * conf/common.rmk: new module boot.mod
25305 (pkglib_MODULES): add boot.mod
25306 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
25307 (grub_emu_SOURCES): likewise
25308 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
25309 (grub_emu_SOURCES): likewise
25310 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
25311 (grub_emu_SOURCES): likewise
25312 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
25313 (grub_emu_SOURCES): likewise
25314 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
25315 (grub_emu_SOURCES): likewise
25316 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
25317 (grub_emu_SOURCES): likewise
25318 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
25319 (grub_emu_SOURCES): likewise
25320
25321 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25322
25323 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
25324
25325 * kern/misc.c (grub_itoa): Removed function
25326 (grub_ltoa): likewise
25327 (grub_vsprintf): use grub_lltoa
25328
25329 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
25330
25331 Restore grub-emu
25332
25333 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
25334 * conf/i386-coreboot.rmk: likewise
25335 * conf/i386-ieee1275.rmk: likewise
25336 * conf/powerpc-ieee1275.rmk: likewise
25337
25338 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
25339
25340 * INSTALL: Add that `./autogen.sh' needs to be run before
25341 `./configure.'.
25342
25343 2009-04-14 Bean <bean123ch@gmail.com>
25344
25345 * Makefile.in (pkglib_DATA): Add handler.lst.
25346 (handler.lst): New rule.
25347
25348 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
25349 * conf/i386-coreboot.rmk: Likewise.
25350 * conf/i386-ieee1275.rmk: Likewise.
25351 * conf/i386-efi.rmk: Likewise.
25352 * conf/x86_64-efi.rmk: Likewise.
25353 * conf/powerpc-ieee1275.rmk: Likewise.
25354 * conf/sparc64-ieee1275.rmk: Likewise.
25355
25356 * genhandlerlist.sh: New file.
25357
25358 * genmk.rb: Add rules to generate handler.lst.
25359
25360 * include/grub/normal.h (grub_file_getline): New function definition.
25361 (read_handler_list): Likewise.
25362 (free_handler_list): Likewise.
25363
25364 * include/grub/term.h (grub_term_register_input): Add name parameter
25365 for auto generation of handler.lst.
25366 (grub_term_register_output): Likewise.
25367
25368 * normal/handler.c: New file.
25369
25370 * normal/main.c (get_line): Renamed to grub_file_getline.
25371 (read_config_file): Use the newly renamed grub_file_getline.
25372 (read_command_list): Likewise.
25373 (read_fs_list): Likewise.
25374 (grub_normal_execute): Call read_handler_list to parse handler.lst.
25375 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
25376
25377 * term/efi/console.c (grub_console_init): Add name parameter for auto
25378 generation of handler.lst.
25379 * term/gfxterm.c: Likewise.
25380 * term/i386/pc/at_keyboard.c: Likewise.
25381 * term/i386/pc/console.c: Likewise.
25382 * term/i386/pc/serial.c: Likewise.
25383 * term/i386/pc/vesafb.c: Likewise.
25384 * term/i386/pc/vga.c: Likewise.
25385 * term/i386/pc/vga_text.c: Likewise.
25386 * term/ieee1275/ofconsole.c: Likewise.
25387 * term/usb_keyboard.c: Likewise.
25388
25389 2009-04-14 Bean <bean123ch@gmail.com>
25390
25391 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
25392 properly with null character.
25393
25394 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25395
25396 * configure: Remove.
25397 * config.h.in: Likewise.
25398 * stamp-h.in: Likewise.
25399 * DISTLIST: Likewise.
25400 * conf/common.mk: Likewise.
25401 * conf/i386-coreboot.mk: Likewise.
25402 * conf/i386-efi.mk: Likewise.
25403 * conf/i386-ieee1275.mk: Likewise.
25404 * conf/i386.mk: Likewise.
25405 * conf/i386-pc.mk: Likewise.
25406 * conf/powerpc-ieee1275.mk: Likewise.
25407 * conf/sparc64-ieee1275.mk: Likewise.
25408 * conf/x86_64-efi.mk: Likewise.
25409
25410 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
25411 develop on GRUB.
25412
25413 2009-04-14 John Stanley <jpsinthemix@verizon.net>
25414 David S. Miller <davem@davemloft.net>
25415
25416 * util/hostdisk.c (make_device_name): Fix buffer length
25417 calculations.
25418
25419 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
25420
25421 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
25422 <sys/param.h> and <sys/sysctl.h>.
25423 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
25424 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
25425 opening the device and reset them afterwards.
25426
25427 2009-04-13 Pavel Roskin <proski@gnu.org>
25428
25429 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
25430 Reported by John Stanley <jpsinthemix@verizon.net>
25431
25432 2009-04-13 Robert Millan <rmh@aybabtu.com>
25433
25434 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
25435 that name for menuentries when appropriate.
25436
25437 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25438
25439 * util/grub.d/10_freebsd.in: Add a missing `fi'.
25440
25441 2009-04-13 Robert Millan <rmh@aybabtu.com>
25442
25443 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
25444 to Linux, simply abort telling the user it's no longer supported.
25445
25446 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25447
25448 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
25449 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
25450 `freebsd_loadenv' only when devices.hints exist.
25451
25452 2009-04-13 Pavel Roskin <proski@gnu.org>
25453
25454 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
25455
25456 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
25457
25458 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
25459 partition number.
25460 (grub_drive): Likewise.
25461
25462 2009-04-13 David S. Miller <davem@davemloft.net>
25463
25464 * kern/sparc64/ieee1275/ieee1275.c: New file.
25465 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
25466 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
25467 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
25468 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
25469 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
25470 grub_ieee1275_alloc_physmem): Declare new exported functions.
25471
25472 * include/grub/sparc64/ieee1275/loader.h: New file.
25473 * include/grub/sparc64/ieee1275/memory.h: Likewise.
25474 * include/grub/sparc64/kernel.h: Likewise.
25475 * loader/sparc64/ieee1275/linux.c: Likewise.
25476
25477 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
25478 (grub_fstest_SOURCES): Likewise.
25479
25480 * util/hostdisk.c (make_device_name): Do not make any assumptions
25481 about the length of drive names.
25482
25483 * kern/dl.c (grub_dl_load_file): Close file immediately when
25484 we are done using it.
25485
25486 2009-04-12 David S. Miller <davem@davemloft.net>
25487
25488 * kern/misc.c (grub_ltoa): Fix cast when handling negative
25489 values. Noticed by Pavel Roskin.
25490
25491 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
25492 target compiler.
25493
25494 * genmk.rb: Add more flexible image type specification, also
25495 pass --strip-unneeded to objcopy.
25496 * conf/i386-pc.rmk: Use *_FORMAT.
25497 * conf/i386-pc.mk: Rebuilt.
25498
25499 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
25500 (OFDISK_HASH_SZ): Define.
25501 (ofdisk_hash): New hash table.
25502 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
25503 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
25504 instead of device phandle which is not unique.
25505
25506 * kern/sparc64/ieee1275/init.c: Delete, replace with...
25507 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
25508 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
25509 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
25510 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
25511 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
25512 GRUB_KERNEL_MACHINE_DATA_END): Define.
25513 (grub_kernel_image_size, grub_total_module_size): Declare.
25514
25515 2009-04-12 Pavel Roskin <proski@gnu.org>
25516
25517 * configure.ac: Change the logic when we check for target tools.
25518 Do it when the target is specified and it's different from the
25519 specified value of the host.
25520
25521 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
25522
25523 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
25524 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
25525 GNU/kFreeBSD. Check if a device is a character device. Use
25526 DIOCGMEDIASIZE to get the size.
25527 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
25528 support for GNU/kFreeBSD.
25529 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
25530 is a character device instead of a block device. Add support for
25531 FreeBSD device names.
25532
25533 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
25534 is a character device instead of a block device.
25535
25536 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
25537 is a character device instead of a block device.
25538
25539 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
25540
25541 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
25542 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
25543 FreeBSD. Check if a device is a character device. Use
25544 DIOCGMEDIASIZE to get the size.
25545 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
25546 support for FreeBSD.
25547 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
25548 is a character device instead of a block device. Add support for
25549 FreeBSD device names.
25550
25551 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
25552 a character device instead of a block device.
25553 (grub_util_check_char_device): New function.
25554
25555 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
25556 a character device instead of a block device.
25557
25558 * include/grub/util/getroot.h (grub_util_check_char_device): New
25559 prototype.
25560
25561 2009-04-11 David S. Miller <davem@davemloft.net>
25562
25563 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
25564 static libgcc.
25565 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
25566 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
25567 function, if present.
25568 (__bswapdi2): Likewise.
25569
25570 * include/grub/sparc64/ieee1275/boot.h: New file.
25571 * boot/sparc64/ieee1275/boot.S: Likewise.
25572 * boot/sparc64/ieee1275/diskboot.S: Likewise.
25573
25574 * kern/misc.c (grub_ltoa): New function.
25575 (grub_vsprintf): Use it to format 'long' integers.
25576
25577 2009-04-10 David S. Miller <davem@davemloft.net>
25578
25579 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
25580 slots are of type grub_ieee1275_cell_t.
25581 (grub_nand_read): Likewise.
25582 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
25583 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
25584 macros are used to compare values in arg/ret block of the call.
25585 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
25586 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
25587 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
25588 grub_ieee1275_instance_to_path, grub_ieee1275_write,
25589 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
25590 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
25591 grub_ieee1275_close, grub_ieee1275_set_property,
25592 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
25593 grub_ieee1275_cell_t.
25594 * kern/ieee1275/openfw.c (grub_map): Likewise.
25595 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
25596 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
25597
25598 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
25599 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
25600 (grub_devalias_iterate): Likewise.
25601
25602 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
25603
25604 UFS improvements
25605
25606 * fs/ufs.c (INODE_NBLOCKS): new definition
25607 (struct grub_ufs_dirent): added fields for non-BSD dirents
25608 (grub_ufs_get_file_block): fixed double indirect handling
25609 (grub_ufs_lookup_symlink): use more robust way to determine whether
25610 symlink is inline
25611 (grub_ufs_find_file): support for non-BSD dirents
25612 (grub_ufs_dir): support for non-BSD dirents
25613
25614 2009-04-10 Bean <bean123ch@gnail.com>
25615
25616 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
25617 attribute, otherwise the size would be wrong for i386 platform.
25618
25619 * include/grub/pci.h (grub_pci_read_word): New inline function.
25620 (grub_pci_read_byte): Likewise.
25621 (grub_pci_write): Likewise.
25622 (grub_pci_write_word): Likewise.
25623 (grub_pci_write_byte): Likewise.
25624
25625 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
25626
25627 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
25628 (find_framebuf): Scan pci to locate the frame buffer address.
25629
25630 * commands/efi/fixvideo.c: New file.
25631
25632 * commands/efi/loadbios.c: Likewise.
25633
25634 * commands/memrw.c: Likewise.
25635
25636 * util/grub-dumpbios.in: Likewise.
25637
25638 * conf/common.rmk (grub-dumpbios): New utility.
25639 (pkglib_MODULES): New module memrw.mod.
25640 (memrw_mod_SOURCE): New macro.
25641 (memrw_mod_CFLAGS): Likewise.
25642 (memrw_mod_LDFLAGS): Likewise.
25643
25644 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
25645 fixvideo.mod.
25646 (loadbios_mod_SOURCE): New macro.
25647 (loadbios_mod_CFLAGS): Likewise.
25648 (loadbios_mod_LDFLAGS): Likewise.
25649 (fixvideo_mod_SOURCE): Likewise.
25650 (fixvideo_mod_CFLAGS): Likewise.
25651 (fixvideo_mod_LDFLAGS): Likewise.
25652
25653 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
25654 fixvideo.mod.
25655 (loadbios_mod_SOURCE): New macro.
25656 (loadbios_mod_CFLAGS): Likewise.
25657 (loadbios_mod_LDFLAGS): Likewise.
25658 (fixvideo_mod_SOURCE): Likewise.
25659 (fixvideo_mod_CFLAGS): Likewise.
25660 (fixvideo_mod_LDFLAGS): Likewise.
25661
25662 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
25663
25664 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
25665
25666 2009-04-07 David S. Miller <davem@davemloft.net>
25667
25668 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
25669 support for R_SPARC_OLO10 relocations. Fix compile warning for
25670 R_SPARC_WDISP30 case.
25671 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
25672
25673 2009-04-06 Pavel Roskin <proski@gnu.org>
25674
25675 * include/grub/misc.h (ARRAY_SIZE): New macro.
25676 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
25677 New macro.
25678 * loader/i386/linux.c (allocate_pages): Use free_pages().
25679 (grub_linux_unload): Don't use free_pages().
25680 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
25681 wrong index. Treat all other modes as text modes.
25682 (grub_cmd_linux): Initialize vid_mode unconditionally to
25683 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
25684
25685 * commands/help.c (print_command_help): Use cmd->prio, not
25686 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
25687
25688 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
25689
25690 Parttool
25691
25692 * parttool/pcpart.c: new file
25693 * commands/parttool.c: likewise
25694 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
25695 (parttool_mod_SOURCES): new variable
25696 (parttool_mod_CFLAGS): likewise
25697 (parttool_mod_LDFLAGS): likewise
25698 (pcpart_mod_SOURCES): likewise
25699 (pcpart_mod_CFLAGS): likewise
25700 (pcpart_mod_LDFLAGS): likewise
25701 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
25702 and parttool/pcpart.c
25703 * conf/i386-efi.rmk: likewise
25704 * conf/i386-ieee1275.rmk: likewise
25705 * conf/i386-pc.rmk: likewise
25706 * conf/powerpc-ieee1275.rmk: likewise
25707 * conf/sparc64-ieee1275.rmk: likewise
25708 * conf/x86_64-ieee1275.rmk: likewise
25709
25710 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25711
25712 Support for mtime and further expandability of dir command
25713
25714 * include/grub/lib/datetime.h: moved to ...
25715 * include/grub/datetime.h: ... moved here and added
25716 declaration of grub_unixtime2datetime. All users updated
25717 * include/grub/fs.h: new syntax for dir and mtime functions in
25718 struct grub_fs
25719 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
25720 and GRUB_FSHELP_FLAGS_MASK
25721 * commands/ls.c (grub_ls_list_files): Write mtime in long format
25722 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
25723 (grub_ext2_mtime): new function
25724 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
25725 (grub_hfsplus_mtime): new function
25726 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
25727 (GRUB_UFS_ATTR_FILE): likewise
25728 (GRUB_UFS_ATTR_LNK): likewise
25729 (struct grub_ufs_sblock): new fields mtime
25730 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
25731 all users updated
25732 (grub_ufs_dir): mtime support
25733 (grub_ufs_mtime): new function
25734 * fs/affs.c (grub_affs_dir): use new dir syntax
25735 * fs/afs.c (grub_afs_dir): likewise
25736 * fs/cpio.c (grub_cpio_dir): likewise
25737 * fs/fat.c (grub_fat_find_dir): likewise
25738 * fs/hfs.c (grub_hfs_dir): likewise
25739 * fs/iso9660.c (grub_iso9660_dir): likewise
25740 * fs/jfs.c (grub_jfs_dir): likewise
25741 * fs/minix.c (grub_minix_dir): likewise
25742 * fs/ntfs.c (grub_ntfs_dir): likewise
25743 * fs/reiserfs.c (grub_reiserfs_dir): likewise
25744 * fs/sfs.c (grub_sfs_dir): likewise
25745 * fs/xfs.c (grub_xfs_dir): likewise
25746 * util/hostfs.c (grub_hostfs_dir): likewise
25747 * lib/datetime.c: moved to ...
25748 * normal/datetime.c: ... moved here
25749 (grub_unixtime2datetime): new function
25750 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
25751 * normal/completion.c (iterate_dir): use new dir syntax
25752 * normal/misc.c (grub_normal_print_device_info): tell the
25753 last modification time of a volume
25754 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
25755 * conf/common.rmk: added lib/datetime.c to ls.mod
25756 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
25757 (normal_mod_SOURCES): likewise
25758 (datetime_mod_SOURCES): Removed lib/datetime.c
25759 * conf/i386-efi.rmk: likewise
25760 * conf/i386-ieee1275.rmk: likewise
25761 * conf/i386-pc.rmk: likewise
25762 * conf/powerpc-ieee1275.rmk: likewise
25763 * conf/sparc64-ieee1275.rmk: likewise
25764 * conf/x86_64-efi.rmk: likewise
25765
25766 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
25767
25768 Trim trailing spaces in FAT label and support mtools-like labels
25769
25770 * fs/fat.c (grub_fat_iterate_dir): New function based
25771 on grub_fat_find_dir
25772 (grub_fat_find_dir): use grub_fat_iterate_dir
25773 (grub_fat_label): likewise
25774
25775 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
25776
25777 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
25778 and command.h
25779 remove extraneous kernel_elf_HEADERS
25780
25781 2009-04-04 Bean <bean123ch@gnail.com>
25782
25783 * include/grub/util/misc.h: Add dummy function fsync for mingw.
25784
25785 * util/misc.c: Likewise.
25786
25787 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
25788
25789 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
25790 instead of grub_printf.
25791
25792 2009-04-03 Robert Millan <rmh@aybabtu.com>
25793
25794 * loader/i386/linux.c (grub_linux_setup_video): Fill
25795 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
25796 values from `mode info' structure instead of hardcoded
25797 values.
25798
25799 2009-04-01 Pavel Roskin <proski@gnu.org>
25800
25801 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
25802 unused now.
25803 * genmk.rb: Likewise.
25804 * configure.ac: Likewise.
25805
25806 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
25807
25808 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
25809 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
25810
25811 2009-04-01 David S. Miller <davem@davemloft.net>
25812
25813 * normal/sparc64/setjmp.S: Fix setjmp implementation.
25814 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
25815 (grub_setjmp): Mark with 'returns_twice' attribute.
25816 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
25817 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
25818 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
25819
25820 2009-04-01 Robert Millan <rmh@aybabtu.com>
25821
25822 Reapply fix from 2008-07-28 which was accidentally reverted; also
25823 perform the same fix to a similar check in same function.
25824
25825 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
25826 with the same number are found, just use issue a warning with
25827 grub_dprintf(), as this error has been reported to be non-fatal.
25828
25829 2009-03-31 Pavel Roskin <proski@gnu.org>
25830
25831 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
25832 for cross-compilation.
25833
25834 2009-03-30 Robert Millan <rmh@aybabtu.com>
25835
25836 Fix i386-ieee1275 build.
25837
25838 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
25839 Remove declaration.
25840
25841 2009-03-30 Pavel Roskin <proski@gnu.org>
25842
25843 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
25844 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
25845 zero-terminated, rely only on the strlen value. Fix comparison
25846 of strings differing in length.
25847
25848 2009-03-30 Robert Millan <rmh@aybabtu.com>
25849
25850 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
25851 checking for abi version. Improve error messages on BIOS to notify
25852 user about `linux16' command.
25853
25854 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
25855
25856 Leak fixes
25857
25858 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
25859 in case of collision
25860 * disk/scsi.c (grub_scsi_open): free scsi in case of error
25861
25862 2009-03-29 Robert Millan <rmh@aybabtu.com>
25863
25864 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
25865 set `vid_mode' accordingly.
25866 (grub_linux_boot): Process `vid_mode' and set video mode.
25867
25868 2009-03-29 Robert Millan <rmh@aybabtu.com>
25869
25870 * util/grub.d/10_linux.in (linux_entry): New function.
25871 Factorize generation of Linux boot entries.
25872
25873 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
25874
25875 Make the format of Environment Block plain text. The boot loader
25876 part is not tested well yet.
25877
25878 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
25879 (buffer): Removed.
25880 (envblk): Likewise.
25881 (usage): Remove "info" and "clear". Add "unset". Update the
25882 description of "set", as this does not delete variables any
25883 longer.
25884 (create_envblk_file): Complete rewrite.
25885 (open_envblk_file): Likewise.
25886 (cmd_info): Removed.
25887 (cmd_list): Likewise.
25888 (cmd_set): Likewise.
25889 (cmd_clear): Likewise.
25890 (list_variables): New function.
25891 (write_envblk): Likewise.
25892 (set_variables): Likewise.
25893 (unset_variables): Likewise.
25894 (main): Complete rewrite.
25895
25896 * commands/loadenv.c (buffer): Removed.
25897 (envblk): Likewise.
25898 (open_envblk_file): New function.
25899 (read_envblk_file): Complete rewrite.
25900 (grub_cmd_load_env): Likewise.
25901 (grub_cmd_list_env): Likewise.
25902 (struct blocklist): New struct.
25903 (free_blocklists): New function.
25904 (check_blocklists): Likewise.
25905 (write_blocklists): Likewise.
25906 (grub_cmd_save_env): Complete rewrite.
25907
25908 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
25909 a plain text signature.
25910 (GRUB_ENVBLK_MAXLEN): Removed.
25911 (struct grub_envblk): Complete rewrite.
25912 (grub_envblk_find): Removed.
25913 (grub_envblk_insert): Likewise.
25914 (grub_envblk_open): New prototype.
25915 (grub_envblk_set): Likewise.
25916 (grub_envblk_delete): Put const to VALUE.
25917 (grub_envblk_iterate): Put const to NAME and VALUE.
25918 (grub_envblk_close): New prototype.
25919 (grub_envblk_buffer): New inline function.
25920 (grub_envblk_size): Likewise.
25921
25922 * lib/envblk.c: Include grub/mm.h.
25923 (grub_env_find): Removed.
25924 (grub_envblk_open): New function.
25925 (grub_envblk_close): Likewise.
25926 (escaped_value_len): Likewise.
25927 (find_next_line): Likewise.
25928 (grub_envblk_insert): Removed.
25929 (grub_envblk_set): New function.
25930 (grub_envblk_delete): Complete rewrite.
25931 (grub_envblk_iterate): Likewise.
25932
25933 2009-03-28 Robert Millan <rmh@aybabtu.com>
25934
25935 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
25936 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
25937 variables. Use 16-bit loader.
25938 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
25939 loader.
25940 * kern/i386/loader.S (grub_linux_boot): Rename to ...
25941 (grub_linux16_boot): ... this. Update all users.
25942 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
25943 (grub_linux_boot): ... this. Update all users.
25944
25945 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
25946 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
25947 commands to `linux16' and `initrd16'.
25948 (GRUB_MOD_FINI(linux)): Rename to ...
25949 (GRUB_MOD_FINI(linux16)): ... this.
25950
25951 2009-03-24 Pavel Roskin <proski@gnu.org>
25952
25953 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
25954 not just for compilation.
25955
25956 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
25957
25958 Move multiboot helper out of kernel
25959
25960 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
25961 `loader/i386/multiboot_helper.S'.
25962 * conf/i386-coreboot.rmk: Likewise
25963 * conf/i386-ieee1275.rmk: Likewise
25964
25965 * kern/i386/loader.S: Move multiboot helpers from here...
25966 * loader/i386/multiboot_helper.S: ...moved here
25967 * include/grub/i386/loader.h: Move declarations of multiboot
25968 helpers from here...
25969 * include/grub/i386/multiboot.h: ...moved here
25970 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
25971
25972 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25973
25974 * kern/env.c (grub_env_context_open): Added an argument to specify
25975 whether a new context inherits exported variables from current
25976 one. This is useful when making a sandbox to interpret a config
25977 file.
25978 All callers updated.
25979
25980 * include/grub/env.h (grub_env_context_open): Updated the prototype.
25981
25982 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25983
25984 * kern/env.c (grub_env_context_close): Fix memory leaks.
25985
25986 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
25987
25988 * normal/main.c (grub_normal_execute): Added an argument
25989 BATCH to specify if an interactive interface should be provided
25990 after reading a config file.
25991 All callers updated.
25992 (read_command_list): Prevent being executed twice.
25993 (read_fs_list): Likewise.
25994
25995 * include/grub/normal.h (grub_normal_execute): Updated the
25996 prototype.
25997
25998 2009-03-22 Pavel Roskin <proski@gno.org>
25999
26000 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
26001 _start.
26002 * kern/i386/pc/startup.S: Likewise.
26003 * kern/i386/efi/startup.S: Likewise.
26004 * kern/i386/ieee1275/startup.S: Likewise.
26005 * kern/i386/coreboot/startup.S: Likewise.
26006 * kern/x86_64/efi/startup.S: Likewise.
26007
26008 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
26009 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
26010 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
26011
26012 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
26013
26014 Bugfixes in multiboot for bugs uncovered by solaris kernel.
26015
26016 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
26017 limit detection.
26018 Use vaddr of correct segment for entry_point.
26019
26020 2009-03-21 Bean <bean123ch@gmail.com>
26021
26022 * commands/blocklist.c: Add include file <grub/command.h>, remove
26023 <grub/normal.h> and <grub/arg.h>.
26024 (grub_cmd_blocklist): Use the new command interface.
26025 (GRUB_MOD_INIT): Likewise.
26026 (GRUB_MOD_FINI): Likewise.
26027 * commands/boot.c: Likewise.
26028 * commands/cat.c: Likewise.
26029 * commands/cmp.c: Likewise.
26030 * commands/configfile.c: Likewise.
26031 * commands/crc.c: Likewise.
26032 * commands/echo.c: Likewise.
26033 * commands/halt.c: Likewise.
26034 * commands/handler.c: Likewise.
26035 * commands/hdparm.c: Likewise.
26036 * commands/help.c: Likewise.
26037 * commands/hexdump.c: Likewise.
26038 * commands/loadenv.c: Likewise.
26039 * commands/ls.c: Likewise.
26040 * commands/lsmmap.c: Likewise.
26041 * commands/lspci.c: Likewise.
26042 * commands/loadenv.c: Likewise.
26043 * commands/read.c: Likewise.
26044 * commands/reboot.c: Likewise.
26045 * commands/search.c: Likewise.
26046 * commands/sleep.c: Likewise.
26047 * commands/test.c: Likewise.
26048 * commands/usbtest.c: Likewise.
26049 * commands/videotest.c: Likewise.
26050 * commands/i386/cpuid.c: Likewise.
26051 * commands/i386/pc/halt.c: Likewise.
26052 * commands/i386/pc/play.c: Likewise.
26053 * commands/i386/pc/pxecmd.c: Likewise.
26054 * commands/i386/pc/vbeinfo.c: Likewise.
26055 * commands/i386/pc/vbetest.c: Likewise.
26056 * commands/ieee1275/suspend.c: Likewise.
26057 * disk/loopback.c: Likewise.
26058 * font/font_cmd.c: Likewise.
26059 * hello/hello.c: Likewise.
26060 * loader/efi/appleloader.c: Likewise.
26061 * loader/efi/chainloader.c: Likewise.
26062 * loader/i386/bsd.c: Likewise.
26063 * loader/i386/efi/linux.c: Likewise.
26064 * loader/i386/ieee1275/linux.c: Likewise.
26065 * loader/i386/linux.c: Likewise.
26066 * loader/i386/pc/chainloader.c: Likewise.
26067 * loader/i386/pc/linux.c: Likewise.
26068 * loader/powerpc/ieee1275/linux.c: Likewise.
26069 * loader/multiboot_loader.c: Likewise.
26070 * term/gfxterm.c: Likewise.
26071 * term/i386/pc/serial.c: Likewise.
26072 * term/terminfo.c: Likewise.
26073
26074 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
26075 * term/i386/pc/vga.c: Likewise.
26076 * video/readers/jpeg.c: Likewise.
26077 * video/readers/png.c: Likewise.
26078 * video/readers/tga.c: Likewise.
26079
26080 * util/grub-fstest (cmd_loopback): Removed.
26081 (cmd_blocklist): Likewise.
26082 (cmd_ls): Likewise.
26083 (grub_register_command): Likewise.
26084 (grub_unregister_command): Likewise.
26085 (execute_command): Use grub_command_find to locate command and execute
26086 it.
26087
26088 * include/grub/efi/chainloader.h: Removed.
26089 * loader/efi/chainloader_normal.c: Likewise.
26090 * loader/i386/bsd_normal.c: Likewise.
26091 * loader/i386/pc/chainloader_normal.c: Likewise.
26092 * loader/i386/pc/multiboot_normal.c: Likewise.
26093 * loader/linux_normal.c: Likewise.
26094 * loader/multiboot_loader_normal.c: Likewise.
26095 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
26096
26097 * gencmdlist.sh: Scan new registration command grub_register_extcmd
26098 and grub_register_command_p1.
26099
26100 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
26101 kern/command.c, lib/arg.c and commands/extcmd.c.
26102 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
26103 (minicmd_mod_SOURCES): New variable.
26104 (minicmd_mod_CFLAGS): Likewise.
26105 (minicmd_mod_LDFLAGS): Likewise.
26106 (extcmd_mod_SOURCES): Likewise.
26107 (extcmd_mod_CFLAGS): Likewise.
26108 (extcmd_mod_LDFLAGS): Likewise.
26109 (boot_mod_SOURCES): Removed.
26110 (boot_mod_CFLAGS): Likewise.
26111 (boot_mod_LDFLAGS): Likewise.
26112
26113 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
26114 kern/corecmd.c.
26115 (kernel_img_HEADERS): Add command.h.
26116 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
26117 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
26118 and lib/arg.c.
26119 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
26120 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
26121 remove the corresponding normal mode command.
26122 (normal_mod_SOURCES): Remove normal/arg.c.
26123 * conf/i386-coreboot.rmk: Likewise.
26124 * conf/i386-efi.rmk: Likewise.
26125 * conf/i386-ieee1275.rmk: Likewise.
26126 * conf/powerpc-ieee1275.rmk: Likewise.
26127 * conf/x86_64-efi.rmk: Likewise.
26128
26129 * include/grub/arg.h: Move from here ...
26130 * include/grub/lib/arg.h: ... to here.
26131
26132 * normal/arg.c: Move from here ...
26133 * lib/arg.c: ... to here.
26134
26135 * commands/extcmd.c: New file.
26136 * commands/minicmd.c: Likewise.
26137 * include/grub/command.h: Likewise.
26138 * include/grub/extcmd.h: Likewise.
26139 * kern/command.c: Likewise.
26140 * kern/corecmd.c: Likewise.
26141
26142 * kern/list.c (grub_list_iterate): Return int instead of void.
26143 (grub_list_insert): New function.
26144 (grub_prio_list_insert): Likewise.
26145
26146 * kern/rescue.c (grub_rescue_command): Removed.
26147 (grub_rescue_command_list): Likewise.
26148 (grub_rescue_register_command): Likewise.
26149 (grub_rescue_unregister_command): Likewise.
26150 (grub_rescue_cmd_boot): Move to minicmd.c
26151 (grub_rescue_cmd_help): Likewise.
26152 (grub_rescue_cmd_info): Likewise.
26153 (grub_rescue_cmd_boot): Likewise.
26154 (grub_rescue_cmd_testload): Likewise.
26155 (grub_rescue_cmd_dump): Likewise.
26156 (grub_rescue_cmd_rmmod): Likewise.
26157 (grub_rescue_cmd_lsmod): Likewise.
26158 (grub_rescue_cmd_exit): Likewise.
26159 (grub_rescue_print_devices): Moved to corecmd.c.
26160 (grub_rescue_print_files): Likewise.
26161 (grub_rescue_cmd_ls): Likewise.
26162 (grub_rescue_cmd_insmod): Likewise.
26163 (grub_rescue_cmd_set): Likewise.
26164 (grub_rescue_cmd_unset): Likewise.
26165 (attempt_normal_mode): Use grub_command_find to get normal module.
26166 (grub_enter_rescue_mode): Use grub_register_core_commands to register
26167 commands, remove grub_rescue_register_command calls.
26168
26169 * normal/command.c (grub_register_command): Removed.
26170 (grub_unregister_command): Likewise.
26171 (grub_command_find): Likewise.
26172 (grub_iterate_commands): Likewise.
26173 (rescue_command): Likewise.
26174 (export_command): Moved to corecmd.c.
26175 (set_command): Removed.
26176 (unset_command): Likewise.
26177 (insmod_command): Likewise.
26178 (rmmod_command): Likewise.
26179 (lsmod_command): Likewise.
26180 (grub_command_init): Likewise.
26181
26182 * normal/completion.c (iterate_command): Use cmd->prio to check for
26183 active command.
26184 (complete_arguments): Use grub_extcmd_t structure to find options.
26185 (grub_normal_do_completion): Change function grub_iterate_commands to
26186 grub_command_iterate.
26187
26188 * normal/execute.c (grub_script_execute_cmd): No need to parse
26189 argument here.
26190
26191 * normal/main.c (grub_dyncmd_dispatcher): New function.
26192 (read_command_list): Register unload commands as dyncmd.
26193 (grub_cmd_normal): Use new command interface, register rescue,
26194 unregister normal at entry, register normal, unregister rescue at exit.
26195
26196 * include/grub/list.h (grub_list_test_t): New type.
26197 (grub_list_iterate): Return int instead of void.
26198 (grub_list_insert): New function.
26199 (GRUB_AS_NAMED_LIST_P): New macro.
26200 (GRUB_AS_PRIO_LIST): Likewise.
26201 (GRUB_AS_PRIO_LIST_P): Likewise.
26202 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
26203 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
26204 (grub_prio_list): New structure.
26205 (grub_prio_list_insert): New function.
26206 (grub_prio_list_remove): New inline function.
26207
26208 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
26209 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
26210 (GRUB_COMMAND_FLAG_MENU): Likewise.
26211 (GRUB_COMMAND_FLAG_BOTH): Likewise.
26212 (GRUB_COMMAND_FLAG_TITLE): Likewise.
26213 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
26214 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
26215 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
26216 (grub_command): Likewise.
26217 (grub_register_command): Likewise.
26218 (grub_command_find): Likewise.
26219 (grub_iterate_commands): Likewise.
26220 (grub_command_init): Likewise.
26221 (grub_arg_parse): Likewise.
26222 (grub_arg_show_help): Likewise.
26223
26224 * include/grub/rescue.h (grub_rescue_register_command): Removed.
26225 (grub_rescue_unregister_command): Likewise.
26226
26227 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
26228 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
26229 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
26230
26231 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
26232 grub_rescue_cmd_initrd.
26233 * include/grub/i386/loader.h: Likewise.
26234 * include/grub/x86_64/loader.h: Likewise.
26235
26236 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
26237
26238 2009-03-21 Bean <bean123ch@gmail.com>
26239
26240 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
26241 instead of stat in mingw environment.
26242
26243 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
26244
26245 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
26246
26247 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
26248 AC_CONFIG_LINKS.
26249
26250 2009-03-21 Bean <bean123ch@gmail.com>
26251
26252 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
26253 out of range error.
26254
26255 2009-03-18 Michel Dänzer <michel@daenzer.net>
26256
26257 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
26258 checking inode flags for EXT4_EXTENTS_FLAG.
26259
26260 2009-03-18 Robert Millan <rmh@aybabtu.com>
26261
26262 * loader/i386/linux.c: Include `<grub/video.h>' and
26263 `<grub/i386/pc/vbe.h>'..
26264 (grub_linux_setup_video): New function. Loosely based on the EFI one.
26265 (grub_linux32_boot): Attempt to configure video settings with
26266 grub_linux_setup_video().
26267 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
26268 to avoid grub_console_fini() which would step out of graphical mode
26269 unconditionally.
26270
26271 2009-03-14 Robert Millan <rmh@aybabtu.com>
26272
26273 Fix build on powerpc.
26274 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
26275
26276 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
26277
26278 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
26279 background image command.
26280
26281 2009-03-12 Colin D Bennett <colin@gibibit.com>
26282
26283 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
26284 (grub_gfxterm_putchar): Extract pairs of identical calls to
26285 draw_cursor out of conditional blocks.
26286
26287 2009-03-11 Pavel Roskin <proski@gnu.org>
26288
26289 * fs/hfs.c (grub_hfs_strncasecmp): New function.
26290 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
26291
26292 2009-03-11 Robert Millan <rmh@aybabtu.com>
26293
26294 * loader/i386/multiboot_elfxx.c
26295 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
26296
26297 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
26298
26299 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
26300 `kern/handler.c'.
26301
26302 2009-03-11 Robert Millan <rmh@aybabtu.com>
26303
26304 * loader/i386/multiboot.c (code_size): New variable.
26305 (grub_multiboot): Define offsets by adding to `code_size' rather
26306 than subtracting from `grub_multiboot_payload_size'. Provide
26307 4-byte alignment to MBI and others by increasing
26308 `boot_loader_name_length' appropriately.
26309
26310 * loader/i386/multiboot_elfxx.c
26311 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
26312
26313 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
26314
26315 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
26316 `fs/ext2.c'.
26317
26318 2009-03-08 Robert Millan <rmh@aybabtu.com>
26319
26320 Make loader/i386/linux.c usable on i386-pc again.
26321
26322 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
26323 memory to heap.
26324 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
26325 `#error' stanza.
26326
26327 2009-03-07 Bean <bean123ch@gmail.com>
26328
26329 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
26330 allocation.
26331
26332 2009-03-06 Robert Millan <rmh@aybabtu.com>
26333
26334 Fix display issue on terminals with screen size other than 80x25
26335 (e.g. gfxterm with resolution higher than 640x480).
26336
26337 * normal/main.c (grub_normal_init_page): Display title text in a
26338 position relative to the center of the terminal instead of relying
26339 on a hardcoded offset.
26340
26341 2009-03-04 Robert Millan <rmh@aybabtu.com>
26342
26343 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
26344 installed.
26345
26346 * Makefile.in (host_kernel): New variable.
26347 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
26348 scripts instead of just the windows one.
26349 * configure.ac: Initialize and AC_SUBST `host_kernel'.
26350
26351 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26352
26353 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
26354 `kern/handler.c'.
26355 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26356 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26357 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26358 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26359 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26360 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26361
26362 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26363
26364 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
26365 or if there's no space for the disk label and print the partition number on a
26366 invalid magic.
26367
26368 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
26369
26370 * util/misc.c: Include <time.h>.
26371 (grub_millisleep): New function.
26372
26373 2009-03-04 Bean <bean123ch@gmail.com>
26374
26375 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
26376 another option -mno-red-zone.
26377
26378 * commands/handler.c: Change module description.
26379
26380 * kern/handler.c: Add missing space at the end of description line.
26381
26382 * kern/list.c: Likewise.
26383
26384 2009-03-03 Robert Millan <rmh@aybabtu.com>
26385
26386 Move more components to the relocation area, and fix mbi pointer
26387 handling to use the destination rather than the origin (thanks to
26388 Vladimir Serbinenko for spotting).
26389
26390 * loader/i386/multiboot.c (mbi_dest): New variable.
26391 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
26392 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
26393 relocation area.
26394
26395 2009-03-01 Bean <bean123ch@gmail.com>
26396
26397 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
26398 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
26399 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
26400 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
26401
26402 * loader/i386/efi/linux.c (acpi_guid): New variable.
26403 (acpi_guid): Likewise.
26404 (EBDA_SEG_ADDR): New constant.
26405 (LOW_MEM_ADDR): Likewise.
26406 (FAKE_EBDA_SEG): Likewise.
26407 (fake_bios_data): New function.
26408 (grub_linux_boot): Call fake_bios_data.
26409
26410 2009-03-01 Bean <bean123ch@gmail.com>
26411
26412 * commands/terminal.c: Removed.
26413
26414 * commands/handler.c: New file.
26415
26416 * include/grub/list.h: Likewise.
26417
26418 * include/grub/handler.h: Likewise.
26419
26420 * kern/list.c: Likewise.
26421
26422 * kern/handler.c: Likewise.
26423
26424 * kern/term.h: Include header file <grub/handler.h>.
26425 (grub_term_input): Move next field to the beginning.
26426 (grub_term_output): Likewise.
26427 (grub_term_input_class): New variable.
26428 (grub_term_output_class): Likewise.
26429 (grub_term_register_input): Changed to inline function.
26430 (grub_term_register_output): Likewise.
26431 (grub_term_unregister_input): Likewise.
26432 (grub_term_unregister_output): Likewise.
26433 (grub_term_set_current_input): Likewise.
26434 (grub_term_set_current_output): Likewise.
26435 (grub_term_get_current_input): Likewise.
26436 (grub_term_get_current_output): Likewise.
26437 (grub_term_iterate_input): Removed.
26438 (grub_term_iterate_output): Likewise.
26439
26440 * kern/term.c (grub_term_list_input): Removed.
26441 (grub_term_list_output): Likewise.
26442 (grub_term_input_class): New variable.
26443 (grub_term_output_class): Likewise.
26444 (grub_cur_term_input): Change variable as macro.
26445 (grub_cur_term_output): Likewise.
26446 (grub_term_register_input): Removed.
26447 (grub_term_register_output): Likewise.
26448 (grub_term_unregister_input): Likewise.
26449 (grub_term_unregister_output): Likewise.
26450 (grub_term_set_current_input): Likewise.
26451 (grub_term_set_current_output): Likewise.
26452 (grub_term_iterate_input): Likewise.
26453 (grub_term_iterate_output): Likewise.
26454 (grub_term_get_current_input): Likewise.
26455 (grub_term_get_current_output): Likewise.
26456
26457 * util/grub-editenv.c: Include header file <grub/handler.h>.
26458 (grub_term_get_current_input): Removed.
26459 (grub_term_get_current_output): Likewise.
26460 (grub_term_input_class): New variable.
26461 (grub_term_output_class): Likewise.
26462
26463 * util/grub-fstest.c (grub_term_get_current_input): Removed.
26464 (grub_term_get_current_output): Likewise.
26465 (grub_term_input_class): New variable.
26466 (grub_term_output_class): Likewise.
26467
26468 * util/grub-probe.c (grub_term_get_current_input): Removed.
26469 (grub_term_get_current_output): Likewise.
26470 (grub_term_input_class): New variable.
26471 (grub_term_output_class): Likewise.
26472
26473 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
26474 (grub_term_get_current_output): Likewise.
26475 (grub_term_input_class): New variable.
26476 (grub_term_output_class): Likewise.
26477
26478 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
26479 (terminal_mod_SOURCES): Likewise.
26480 (terminal_mod_CFLAGS): Likewise.
26481 (terminal_mod_LDFLAGS): Likewise.
26482
26483 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
26484 handler.c.
26485 (kernel_img_SOURCES): Add list.c and handler.c.
26486 (kernel_img_HEADERS): Add list.h and handler.h.
26487
26488 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26489 handler.c.
26490 (kernel_mod_SOURCES): Add list.c and handler.c.
26491 (kernel_mod_HEADERS): Add list.h and handler.h.
26492
26493 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
26494 handler.c.
26495 (kernel_elf_SOURCES): Add list.c and handler.c.
26496 (kernel_elf_HEADERS): Add list.h and handler.h.
26497
26498 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26499 handler.c.
26500 (kernel_elf_SOURCES): Add list.c and handler.c.
26501 (kernel_elf_HEADERS): Add list.h and handler.h.
26502
26503 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
26504 handler.c.
26505 (kernel_mod_SOURCES): Add list.c and handler.c.
26506 (kernel_mod_HEADERS): Add list.h and handler.h.
26507
26508 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
26509 handler.c.
26510 (kernel_elf_SOURCES): Add list.c and handler.c.
26511 (kernel_elf_HEADERS): Add list.h and handler.h.
26512
26513 2009-02-27 Robert Millan <rmh@aybabtu.com>
26514
26515 Factorize elf32 / elf64 code in Multiboot loader. This will
26516 prevent it from getting out of sync again.
26517
26518 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
26519 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
26520 grub_multiboot_load_elf64): Move from here ...
26521 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
26522 grub_multiboot_load_elf): ... to here (new file).
26523
26524 2009-02-27 Robert Millan <rmh@aybabtu.com>
26525
26526 * util/grub.d/10_linux.in: Rename "single-user mode" to
26527 "recovery mode".
26528
26529 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
26530
26531 Don't leak in SCSI code.
26532 * disk/scsi.c (grub_scsi_close): free `scsi'.
26533
26534 2009-02-27 Robert Millan <rmh@aybabtu.com>
26535
26536 * loader/i386/pc/multiboot.c: Move from here ...
26537 * loader/i386/multiboot.c: ... to here. Update all users.
26538
26539 2009-02-27 Robert Millan <rmh@aybabtu.com>
26540
26541 Patch from Alexandre Bique <bique.alexandre@gmail.com>
26542 * util/i386/pc/grub-setup.c (setup): Fix directory path.
26543
26544 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
26545
26546 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
26547 b-tree.
26548
26549 2009-02-27 Robert Millan <rmh@aybabtu.com>
26550
26551 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
26552 `0x' qualifier as 0 when base is specified as parameter).
26553
26554 2009-02-24 Bean <bean123ch@gmail.com>
26555
26556 * configure.ac: Check for -mcmodel=large in x86_64 target.
26557
26558 * include/grub/efi/api.h (efi_call_10): New macro.
26559 (efi_wrap_10): New function.
26560
26561 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
26562 (GRUB_PE32_REL_BASED_HIGH): Likewise.
26563 (GRUB_PE32_REL_BASED_LOW): Likewise.
26564 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
26565 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
26566 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
26567 (GRUB_PE32_REL_BASED_SECTION): Likewise.
26568 (GRUB_PE32_REL_BASED_REL): Likewise.
26569 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
26570 (GRUB_PE32_REL_BASED_DIR64): Likewise.
26571 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
26572
26573 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
26574 issue.
26575
26576 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
26577 (efi_wrap_10): New function.
26578
26579 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
26580
26581 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
26582 MB/MBP model (NV chipset).
26583 (devdata_devs): Add devpath_5 to the list.
26584
26585 * load/i386/efi/linux.c (video_base): Remove variable.
26586 (RGB_MASK): New macro.
26587 (RGB_MAGIC): Likewise.
26588 (LINE_MIN): Likewise.
26589 (LINE_MAX): Likewise.
26590 (FBTEST_STEP): Likewise.
26591 (FBTEST_COUNT): Likewise.
26592 (fb_list): New variable.
26593 (grub_find_video_card): Remove function.
26594 (find_framebuf): New function.
26595 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
26596 line length.
26597
26598 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
26599 problem for x86_64.
26600
26601 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
26602
26603 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
26604
26605 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
26606 coding tool name.
26607
26608 2009-02-22 Robert Millan <rmh@aybabtu.com>
26609
26610 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
26611 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
26612 in our relocation, instead of using it directly from heap. Also
26613 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
26614
26615 2009-02-21 Robert Millan <rmh@aybabtu.com>
26616
26617 Implement USB keyboard support (based on patch by Marco Gerards)
26618
26619 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
26620 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
26621 (usb_keyboard_mod_LDFLAGS): New variables.
26622
26623 * term/usb_keyboard.c: New file.
26624
26625 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
26626
26627 Corrected wrong declaration
26628
26629 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
26630
26631 2009-02-14 Christian Franke <franke@computer.org>
26632
26633 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
26634 (grub_lspci_iter): Print class code and programming interface byte.
26635
26636 2009-02-14 Christian Franke <franke@computer.org>
26637
26638 * gendistlist.sh: Ignore `.svn' directories.
26639
26640 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
26641
26642 * fs/fat.c: Add 2009 to Copyright line.
26643
26644 2009-02-14 Christian Franke <franke@computer.org>
26645
26646 * commands/hdparm.c: New file. Provides `hdparm' command
26647 which sends ATA commands via grub_disk_ata_pass_through ().
26648
26649 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
26650
26651 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
26652 and <grub/cpu/io.h> to include/grub/ata.h.
26653 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
26654 (GRUB_CDROM_SECTOR_SIZE): Remove.
26655 (GRUB_ATA_*): Move to include/grub/ata.h.
26656 (GRUB_ATAPI_*): Likewise.
26657 (enum grub_ata_commands): Likewise.
26658 (enum grub_ata_timeout_milliseconds): Likewise.
26659 (struct grub_ata_device): Likewise.
26660 (grub_ata_regset): Likewise.
26661 (grub_ata_regget): Likewise.
26662 (grub_ata_regset2): Likewise.
26663 (grub_ata_regget2): Likewise.
26664 (grub_ata_check_ready): Likewise.
26665 (grub_ata_wait_not_busy): Remove static, exported in
26666 include/grub/ata.h.
26667 (grub_ata_wait_drq): Likewise.
26668 (grub_ata_pio_read): Likewise.
26669
26670 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
26671 function for hdparm.mod.
26672
26673 * include/grub/ata.h: New file, contains declarations from
26674 disk/ata.c.
26675 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
26676
26677 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
26678 (grub_disk_ata_pass_through): New exported variable.
26679
26680 * kern/disk.c (grub_disk_ata_pass_through): New variable.
26681
26682 2009-02-13 Colin D Bennett <colin@gibibit.com>
26683
26684 Support multiple fallback entries, and provide an API to support
26685 executing default+fallback menu entries. Renamed the `terminal' menu
26686 viewer to `text'.
26687
26688 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
26689 variable declaration.
26690 (grub_menu_execute_callback): New structure declaration.
26691 (grub_menu_execute_callback_t): New typedef.
26692 (grub_menu_execute_with_fallback): New function declaration.
26693 (grub_menu_get_entry): Likewise.
26694 (grub_menu_get_timeout): Likewise.
26695 (grub_menu_set_timeout): Likewise.
26696
26697 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
26698
26699 * normal/menu.c (grub_wait_after_message): Moved to
26700 `normal/menu_text.c'.
26701 (draw_border): Likewise.
26702 (print_message): Likewise.
26703 (print_entry): Likewise.
26704 (print_entries): Likewise.
26705 (grub_menu_init_page): Likewise.
26706 (get_entry_number): Likewise.
26707 (print_timeout): Likewise.
26708 (run_menu): Likewise.
26709 (grub_menu_execute_entry): Likewise.
26710 (show_text_menu): Likewise.
26711 (get_and_remove_first_entry_number): New function.
26712 (grub_menu_execute_with_fallback): Likewise.
26713 (get_entry): Renamed to ...
26714 (grub_menu_get_entry): .. this and made it global.
26715 (get_timeout): Renamed to ...
26716 (grub_menu_get_timeout): ... this and made it global.
26717 (set_timeout): Renamed to ...
26718 (grub_menu_set_timeout): ... this and made it global.
26719 (grub_normal_terminal_menu_viewer): Renamed to ...
26720 (grub_normal_text_menu_viewer): ... this.
26721
26722 * normal/menu_text.c: New file. Extracted text-menu-specific code
26723 from normal/menu.c.
26724
26725 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
26726 (normal_mod_SOURCES): Likewise.
26727
26728 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26729 (normal_mod_SOURCES): Likewise.
26730
26731 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26732 (normal_mod_SOURCES): Likewise.
26733
26734 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
26735 (normal_mod_SOURCES): Likewise.
26736
26737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26738 (normal_mod_SOURCES): Likewise.
26739
26740 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26741 (normal_mod_SOURCES): Likewise.
26742
26743 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26744 (normal_mod_SOURCES): Likewise.
26745
26746 2009-02-11 Robert Millan <rmh@aybabtu.com>
26747
26748 * util/grub.d/00_header.in: Update old reference to `font' command.
26749
26750 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
26751
26752 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
26753
26754 Based on patch from Javier Martín.
26755
26756 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26757
26758 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
26759 to avoid false positives with FAT.
26760 (grub_fstest_SOURCES): Likewise.
26761 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
26762 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26763 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26764 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26766 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26767
26768 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
26769
26770 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
26771 bpb.version_specific.fat12_or_fat16.fstype and
26772 bpb.version_specific.fat32.fstype.
26773
26774 2009-02-08 Robert Millan <rmh@aybabtu.com>
26775
26776 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
26777
26778 2009-02-08 Robert Millan <rmh@aybabtu.com>
26779
26780 * Makefile.in (host_os, host_cpu): New variables.
26781 (target_os): Remove. Update all users.
26782
26783 2009-02-08 Marco Gerards <marco@gnu.org>
26784
26785 * Makefile.in (enable_grub_emu_usb): New variable.
26786 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
26787 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
26788 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
26789 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
26790 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
26791 `usbtest.mod' and `usbms.mod'.
26792 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
26793 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
26794 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
26795 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
26796 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
26797 variables.
26798
26799 * disk/usbms.c: New file.
26800
26801 * include/grub/usb.h: Likewise.
26802
26803 * include/grub/usbtrans.h: Likewise.
26804
26805 * include/grub/usbdesc.h: Likewise.
26806
26807 * bus/usb/usbtrans.c: Likewise.
26808
26809 * bus/usb/ohci.c: Likewise.
26810
26811 * bus/usb/uhci.c: Likewise.
26812
26813 * bus/usb/usbhub.c: Likewise.
26814
26815 * bus/usb/usb.c: Likewise.
26816
26817 * commands/usbtest.c: Likewise.
26818
26819 * util/usb.c: Likewise.
26820
26821 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
26822
26823 * configure.ac: Test for libusb presence.
26824
26825 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
26826
26827 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
26828
26829 * kern/mm.c: Add more comments.
26830
26831 2009-02-08 Robert Millan <rmh@aybabtu.com>
26832
26833 Patch from Javier Martín.
26834 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
26835 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
26836
26837 2009-02-08 Robert Millan <rmh@aybabtu.com>
26838
26839 * fs/cpio.c: Split tar functionality to ...
26840 * fs/tar.c: ... here (new file). Update all users.
26841
26842 2009-02-07 Robert Millan <rmh@aybabtu.com>
26843
26844 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
26845 backward-incompatible features.
26846
26847 Based on patch from Javier Martín, with some adjustments.
26848
26849 2009-02-07 Michael Scherer <misc@mandriva.org>
26850
26851 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
26852
26853 2009-02-07 Robert Millan <rmh@aybabtu.com>
26854
26855 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
26856 position of `disk/lvm.c' to ensure grub_init_all() always picks it
26857 after the RAID stuff.
26858
26859 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
26860
26861 Fixes problem when running vbetest command as reported by
26862 Vladimir Serbinenko <phcoder@gmail.com>.
26863
26864 * (grub_vbe_set_video_mode): Fixed problem with text modes.
26865
26866 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
26867
26868 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
26869 /dev/md/NpN style mdraid devices.
26870
26871 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26872
26873 * util/unifont2pff.rb: Remove.
26874
26875 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26876
26877 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
26878 `#'.
26879
26880 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
26881
26882 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
26883 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26884 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
26885 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
26886 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26887 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26888 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26889
26890 2009-02-02 Christian Franke <franke@computer.org>
26891
26892 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
26893
26894 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
26895
26896 * INSTALL: Note that we now require at least autoconf 2.59 and
26897 that LZO is optional.
26898
26899 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26900
26901 Base on patch on bug #24154 created by Tomas Tintera
26902 <trosos@seznam.cz>.
26903
26904 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
26905
26906 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
26907
26908 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
26909 <bero@arklinux.org>.
26910
26911 * normal/parser.y (script_init): Add missing semicolon.
26912
26913 2009-01-31 Colin D Bennett <colin@gibibit.com>
26914
26915 * normal/main.c: Add include to grub/menu_viewer.h.
26916 (free_menu_entry_classes): Added.
26917 (grub_normal_menu_addentry): Added class property handling.
26918 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
26919 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
26920
26921 * normal/menu_viewer.c: New file.
26922
26923 * normal/menu.c (run_menu_entry): Renamed to ...
26924 (grub_menu_execute_entry): ... this and made it as global.
26925 (grub_menu_run): Renamed to ...
26926 (show_text_menu): ... this and made it local.
26927 (show_text_menu): Adapt to new function names.
26928 (grub_normal_terminal_menu_viewer): New global variable.
26929
26930 * include/grub/menu.h: New file.
26931
26932 * include/grub/menu_viewer.h: New file.
26933
26934 * include/grub/normal.h: Added include to grub/menu.h.
26935 (grub_menu_entry): Moved to include/grub/menu.h.
26936 (grub_menu_entry_t): Likewise.
26937 (grub_menu): Likewise.
26938 (grub_menu_t): Likewise.
26939 (grub_normal_terminal_menu_viewer): Added.
26940 (grub_menu_execute_entry): Likewise.
26941 (grub_menu_run): Removed.
26942
26943 * DISTLIST: Added include/grub/menu.h.
26944 Added include/grub/menu_viewer.h.
26945 Added normal/menu_viewer.c.
26946
26947 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
26948
26949 * normal/execute.c (grub_script_execute_menuentry): Changed to use
26950 arglist for menutitle arguments.
26951
26952 * normal/main.c (grub_normal_menu_addentry): Likewise.
26953
26954 * normal/parser.y (menuentry): Likewise.
26955
26956 * normal/script.c (grub_script_create_cmdmenu): Likewise.
26957
26958 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
26959 (grub_script_create_cmdmenu): Likewise.
26960
26961 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
26962
26963 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
26964 changes.
26965
26966 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
26967
26968 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
26969
26970 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
26971
26972 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26973
26974 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26975
26976 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
26977
26978 2009-01-30 Christian Franke <franke@computer.org>
26979
26980 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
26981 in option help text.
26982
26983 2009-01-27 Pavel Roskin <proski@gnu.org>
26984
26985 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
26986
26987 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26988
26989 * commands/lsmmap.c: Add include to grub/machine/memory.h.
26990
26991 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
26992
26993 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
26994 unregister function.
26995
26996 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
26997
26998 * disk/scsi.c (grub_scsi_read): Fix sign problem.
26999
27000 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
27001
27002 * util/grub-mkfont.c (usage): Fix typo.
27003
27004 * util/elf/grub-mkimage.c (load_modules): Fix warning.
27005
27006 2009-01-26 Daniel Mierswa <impulze@impulze.org>
27007
27008 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
27009
27010 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
27011
27012 * kern/misc.c (grub_strcasecmp): New function.
27013 (grub_strcasecmp): Use grub_size_t instead of int for length.
27014 Fix return value.
27015 * include/grub/misc.h: Update function prototypes.
27016
27017 2009-01-26 Robert Millan <rmh@aybabtu.com>
27018
27019 * configure.ac: Fix cross-compilation check.
27020
27021 2009-01-22 Christian Franke <franke@computer.org>
27022
27023 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
27024 (precision) digit string. Allow `.format2' without `format1' (width).
27025 Limit input chars for `%s' output to `format2' if specified. This is
27026 compatible with standard printf ().
27027
27028 2009-01-22 Christian Franke <franke@computer.org>
27029
27030 * disk/ata.c (grub_ata_wait_status): Replace by ...
27031 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
27032 other status bits may be invalid while BSY is asserted.
27033 (grub_ata_check_ready): New function.
27034 (grub_ata_cmd): Removed.
27035 (grub_ata_wait_drq): New function.
27036 (grub_ata_strncpy): Remove inline.
27037 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
27038 and error check now done by grub_ata_wait_drq ().
27039 (grub_ata_pio_write): Likewise.
27040 (grub_atapi_identify): Set DEV before check for !BSY. Use
27041 grub_ata_wait_drq () to wait for data.
27042 (grub_ata_device_initialize): Add status register check to
27043 detect missing SATA slave devices. Add debug messages.
27044 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
27045 (grub_atapi_packet): Set DEV before check for !BSY. Replace
27046 transfer loop by grub_ata_pio_write ().
27047 (grub_ata_identify): Set DEV before check for !BSY. Use
27048 grub_ata_wait_drq () to wait for data.
27049 (grub_ata_setaddress): Set DEV before check for !BSY.
27050 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
27051 read/write in one loop. Fix invalid command on write. Fix incomplete
27052 command on (size % batch) == 0. Add missing error check after write of
27053 last block. Add debug messages.
27054 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
27055
27056 2009-01-19 Christian Franke <franke@computer.org>
27057
27058 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
27059 (GRUB_ATAPI_IREASON_*): Likewise.
27060 (grub_ata_pio_write): Fix timeout error return.
27061 (grub_atapi_identify): Add grub_ata_wait () after cmd.
27062 (grub_atapi_wait_drq): New function.
27063 (grub_atapi_packet): New parameter `size'.
27064 Use grub_atapi_wait_drq () and direct write instead of
27065 grub_ata_pio_write ().
27066 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
27067 reads the number of bytes requested by the device for each DRQ
27068 assertion.
27069 (grub_atapi_write): Remove old implementation, return not
27070 implemented instead.
27071
27072 2009-01-19 Christian Franke <franke@computer.org>
27073
27074 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
27075 of 512 to calculate data size.
27076 (grub_scsi_read12): Likewise.
27077 (grub_scsi_write10): Likewise.
27078 (grub_scsi_write12): Likewise.
27079 (grub_scsi_read): Adjust size according to blocksize.
27080 Add checks for invalid blocksize and unaligned transfer.
27081
27082 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
27083
27084 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
27085
27086 * term/gfxterm.c (write_char): Fix background rendering for wide
27087 width glyphs.
27088
27089 2009-01-19 Robert Millan <rmh@aybabtu.com>
27090
27091 * config.guess: Update to latest version from config git.
27092 * config.sub: Likewise.
27093
27094 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
27095
27096 * Makefile.in: Change font compilation to use new grub-mkfont instead
27097 of java version.
27098
27099 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
27100 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
27101 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27102 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27103 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
27104 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
27105 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
27106 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
27107 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
27108
27109 2009-01-16 Christian Franke <franke@computer.org>
27110
27111 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
27112 (enum grub_ata_timeout_milliseconds): New enum.
27113 (grub_ata_wait_status): Add parameter milliseconds.
27114 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
27115 recovery from timed-out commands.
27116 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
27117 return grub_errno instead of REG_ERROR.
27118 (grub_ata_pio_write): Add parameter milliseconds.
27119 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
27120 Pass milliseconds to grub_ata_wait_status () and
27121 grub_ata_pio_read ().
27122 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
27123 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
27124 grub_ata_wait_status (). Fix IDENTIFY timeout check.
27125 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
27126 It is not suitable for device detection, because DEV bit is ignored,
27127 the command may run too long, and not all devices set the signature
27128 properly.
27129 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
27130 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
27131 Fix device selection, DEV bit must be set first to address the registers
27132 of the correct device.
27133 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
27134 grub_ata_pio_read/write ().
27135 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
27136 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
27137
27138 2009-01-13 Carles Pina i Estany <carles@pina.cat>
27139
27140 * util/grub-editenv.c (main): Use fseeko(), not fseek().
27141
27142 2009-01-13 Bean <bean123ch@gmail.com>
27143
27144 * util/grub-mkfont.c (write_font): forget to remove some debug code.
27145
27146 2009-01-13 Bean <bean123ch@gmail.com>
27147
27148 * Makefile.in: (enable_grub_mkfont): New variable.
27149 (freetype_cflags): Likewise.
27150 (freetype_libs): Likewise.
27151
27152 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
27153 (grub_mkfont_SOURCES): New variable.
27154 (grub_mkfont_CFLAGS): Likewise.
27155 (grub_mkfont_LDFLAGS): Likewise.
27156
27157 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
27158 library if `--enable-grub-mkfont' is requested.
27159 (enable_grub_mkfont): New variable.
27160 (freetype_cflags): Likewise.
27161 (freetype_libs): Likewise.
27162
27163 * util/grub-mkfont.c: New file.
27164
27165 2009-01-12 Christian Franke <franke@computer.org>
27166
27167 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
27168 mode check. Fix setting of compat_use[].
27169
27170 2009-01-10 Robert Millan <rmh@aybabtu.com>
27171
27172 Update a few copyright years which we forgot to do in 2008 (only for
27173 files whose changes made in 2008 were copyright-significant)
27174
27175 * Makefile.in: Add 2008 to Copyright line.
27176 * disk/ieee1275/ofdisk.c: Likewise.
27177 * disk/efi/efidisk.c: Likewise.
27178 * kern/dl.c: Likewise.
27179 * kern/sparc64/ieee1275/init.c: Likewise.
27180 * kern/mm.c: Likewise.
27181 * kern/efi/mm.c: Likewise.
27182 * boot/i386/pc/boot.S: Likewise.
27183 * genfslist.sh: Likewise.
27184 * fs/iso9660.c: Likewise.
27185 * fs/hfs.c: Likewise.
27186 * fs/jfs.c: Likewise.
27187 * fs/minix.c: Likewise.
27188 * fs/ufs.c: Likewise.
27189 * gensymlist.sh.in: Likewise.
27190 * genkernsyms.sh.in: Likewise.
27191 * include/grub/misc.h: Likewise.
27192 * include/grub/types.h: Likewise.
27193 * include/grub/symbol.h: Likewise.
27194 * include/grub/elf.h: Likewise.
27195 * include/grub/kernel.h: Likewise.
27196 * include/grub/disk.h: Likewise.
27197 * include/grub/dl.h: Likewise.
27198 * include/grub/i386/linux.h: Likewise.
27199 * include/grub/i386/pc/biosdisk.h: Likewise.
27200 * include/grub/efi/api.h: Likewise.
27201 * include/grub/efi/pe32.h: Likewise.
27202 * include/grub/util/misc.h: Likewise.
27203 * normal/execute.c: Likewise.
27204 * normal/arg.c: Likewise.
27205 * normal/completion.c: Likewise.
27206 * normal/lexer.c: Likewise.
27207 * normal/parser.y: Likewise.
27208 * normal/misc.c: Likewise.
27209 * commands/i386/pc/vbeinfo.c: Likewise.
27210 * commands/hexdump.c: Likewise.
27211 * commands/terminal.c: Likewise.
27212 * commands/ls.c: Likewise.
27213 * commands/help.c: Likewise.
27214 * partmap/pc.c: Likewise.
27215 * loader/efi/chainloader.c: Likewise.
27216 * loader/multiboot_loader.c: Likewise.
27217 * loader/i386/pc/multiboot2.c: Likewise.
27218 * term/efi/console.c: Likewise.
27219 * term/i386/pc/serial.c: Likewise.
27220 * util/lvm.c: Likewise.
27221 * util/console.c: Likewise.
27222 * util/i386/efi/grub-mkimage.c: Likewise.
27223 * util/raid.c: Likewise.
27224
27225 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
27226
27227 * commands/videotest.c: Removed include to grub/machine/memory.h.
27228
27229 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
27230 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
27231 (video_mod_SOURCES): Removed.
27232 (video_mod_CFLAGS): Likewise.
27233 (video_mod_LDFLAGS): Likewise.
27234 (gfxterm_mod_SOURCES): Likewise.
27235 (gfxterm_mod_CFLAGS): Likewise.
27236 (gfxterm_mod_LDFLAGS): Likewise.
27237 (videotest_mod_SOURCES): Likewise.
27238 (videotest_mod_CFLAGS): Likewise.
27239 (videotest_mod_LDFLAGS): Likewise.
27240 (bitmap_mod_SOURCES): Likewise.
27241 (bitmap_mod_CFLAGS): Likewise.
27242 (bitmap_mod_LDFLAGS): Likewise.
27243 (tga_mod_SOURCES): Likewise.
27244 (tga_mod_CFLAGS): Likewise.
27245 (tga_mod_LDFLAGS): Likewise.
27246 (jpeg_mod_SOURCES): Likewise.
27247 (jpeg_mod_CFLAGS): Likewise.
27248 (jpeg_mod_LDFLAGS): Likewise.
27249 (png_mod_SOURCES): Likewise.
27250 (png_mod_CFLAGS): Likewise.
27251 (png_mod_LDFLAGS): Likewise.
27252
27253 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
27254 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
27255 (video_mod_SOURCES): Added.
27256 (video_mod_CFLAGS): Likewise.
27257 (video_mod_LDFLAGS): Likewise.
27258 (videotest_mod_SOURCES): Likewise.
27259 (videotest_mod_CFLAGS): Likewise.
27260 (videotest_mod_LDFLAGS): Likewise.
27261 (bitmap_mod_SOURCES): Likewise.
27262 (bitmap_mod_CFLAGS): Likewise.
27263 (bitmap_mod_LDFLAGS): Likewise.
27264 (tga_mod_SOURCES): Likewise.
27265 (tga_mod_CFLAGS): Likewise.
27266 (tga_mod_LDFLAGS): Likewise.
27267 (jpeg_mod_SOURCES): Likewise.
27268 (jpeg_mod_CFLAGS): Likewise.
27269 (jpeg_mod_LDFLAGS): Likewise.
27270 (png_mod_SOURCES): Likewise.
27271 (png_mod_CFLAGS): Likewise.
27272 (png_mod_LDFLAGS): Likewise.
27273 (gfxterm_mod_SOURCES): Likewise.
27274 (gfxterm_mod_CFLAGS): Likewise.
27275 (gfxterm_mod_LDFLAGS): Likewise.
27276
27277 * term/gfxterm.c: Removed include to grub/machine/memory.h,
27278 grub/machine/console.h.
27279
27280 2009-01-04 Jerone Young <jerone@gmail.com>
27281
27282 Make on screen instructions clearer
27283
27284 Based on patch created by Jidanni <jidanni@jidanni.org>
27285
27286 * normal/menu.c: print clearer instructions on the screen
27287
27288 2009-01-02 Colin D Bennett <colin@gibibit.com>
27289
27290 New font engine.
27291
27292 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
27293 build system and fixed gfxterm.c to work with different sized fonts.
27294
27295 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
27296
27297 * configure: Re-generated.
27298
27299 * DISTLIST: Removed font/manager.c.
27300 Added font/font.c.
27301 Added font/font_cmd.c.
27302
27303 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
27304 compilation.
27305
27306 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
27307
27308 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
27309
27310 * kern/term.c: Changed users of grub_utf8_to_ucs4.
27311
27312 * normal/menu.c: Likewise.
27313
27314 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
27315 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
27316
27317 * include/grub/font.h: Replaced with new file.
27318
27319 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
27320 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
27321 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
27322 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
27323 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
27324 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
27325 fg_red, fg_green, fg_blue, fg_alpha.
27326 (grub_video_adapter): Removed blit_glyph.
27327 (grub_video_blit_glyph): Removed.
27328
27329 * font/manager.c: Removed file.
27330
27331 * font/font.c: New file.
27332
27333 * font/font_cmd.c: Likewise.
27334
27335 * video/video.c (grub_video_blit_glyph): Removed.
27336
27337 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
27338 (grub_video_vbe_map_rgba): Likewise.
27339 (grub_video_vbe_unmap_color_int): Likewise.
27340 (grub_video_vbe_blit_glyph): Removed.
27341 (grub_video_vbe_adapter): Removed blit_glyph.
27342
27343 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
27344 (get_pixel): Likewise.
27345 (set_pixel): Likewise.
27346
27347 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
27348
27349 * term/gfxterm.c: Adapted to new font engine.
27350
27351 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
27352
27353 * term/i386/pc/vga.c: Likewise.
27354
27355 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
27356
27357 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
27358
27359 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27360
27361 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
27362
27363 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
27364
27365 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
27366
27367 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
27368
27369 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
27370
27371 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
27372
27373 * util/grub.d/00_header.in: Changed to use new loadfont command.
27374
27375 * util/grub-mkconfig_lib.in: Changed font extension.
27376
27377 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
27378
27379 * util/getroot.c (grub_util_get_grub_dev): Add support for
27380 /dev/md/dNNpNN style partitionable mdraid devices.
27381
27382 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
27383
27384 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
27385 at a time limit of the PXE TFTP API correctly.
27386 (grub_pxefs_close): Likewise.
27387
27388 2008-11-29 Robert Millan <rmh@aybabtu.com>
27389
27390 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
27391 grub_ata_device_initialize() calls.
27392
27393 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
27394
27395 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
27396 iteration failed.
27397 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
27398
27399 2008-11-28 Robert Millan <rmh@aybabtu.com>
27400
27401 Fix build on powerpc-ieee1275. Based on patch created by
27402 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
27403 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
27404 `kern/ieee1275/mmap.c'.
27405 * include/grub/powerpc/ieee1275/memory.h: New file.
27406
27407 Provide grub-install on coreboot.
27408 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
27409 (grub_install_SOURCES): New variable.
27410 * util/i386/pc/grub-install.in: Add a few condition checks to make it
27411 usable on coreboot.
27412
27413 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
27414
27415 * util/grub-fstest.c (grub_term_get_current_input): Change return type
27416 to `grub_term_input_t'.
27417 (grub_term_get_current_output): Change return type to
27418 `grub_term_output_t'.
27419
27420 2008-11-22 Robert Millan <rmh@aybabtu.com>
27421
27422 Fix breakage on coreboot due to declaration mismatch.
27423 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
27424 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
27425 grub_vga_text_cls().
27426
27427 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
27428 comments. Avoid copying one more byte than necessary (just in case).
27429
27430 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
27431 to 0x200000 (avoids trouble with some OFW implementations, and matches
27432 with the one in Yaboot).
27433 Reported by Manoel Abranches
27434
27435 2008-11-20 Robert Millan <rmh@aybabtu.com>
27436
27437 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
27438 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
27439
27440 * util/grub-mkconfig_lib.in (grub_warn): New function.
27441 (convert_system_path_to_grub_path): Use grub_warn() when issuing
27442 warnings, to obtain consistent formatting.
27443 * util/grub.d/00_header.in: Likewise.
27444 * util/update-grub_lib.in: Likewise.
27445
27446 * loader/i386/linux.c (allocate_pages): Fix a warning.
27447 Move comment text to `#error' stanza.
27448
27449 Harmonize ieee1275's grub_available_iterate() with the generic
27450 grub_machine_mmap_iterate() interface (fixes a recently-introduced
27451 build problem on i386-ieee1275):
27452 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
27453 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
27454 parameter `type'. Update all users of this function.
27455 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
27456 `kern/ieee1275/mmap.c'.
27457 * kern/ieee1275/init.c
27458 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
27459 with ...
27460 (grub_machine_mmap_iterate): ... this.
27461 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
27462 return type to `grub_err_t'. Update all implementations of this
27463 function prototype.
27464 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
27465 Likewise.
27466
27467 Add `lsmmap' command (lists firmware-provided memory map):
27468 * commands/lsmmap.c: New file.
27469 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
27470 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
27471 variables.
27472 * conf/powerpc-ieee1275.rmk: Likewise.
27473 * conf/i386-coreboot.rmk: Likewise.
27474 * conf/i386-ieee1275.rmk: Likewise.
27475
27476 2008-11-19 Robert Millan <rmh@aybabtu.com>
27477
27478 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
27479 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
27480 constraints to initrd allocation (based on code from
27481 loader/i386/pc/linux.c). Without them, initrd was allocated too high
27482 for Linux to find it.
27483
27484 2008-11-14 Robert Millan <rmh@aybabtu.com>
27485
27486 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
27487 order to cope with duplicate slashes.
27488
27489 2008-11-14 Robert Millan <rmh@aybabtu.com>
27490
27491 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
27492 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
27493 don't want to mess with lower memory, because it is used in the Linux
27494 loader.
27495
27496 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
27497 an appropriate place in lower memory, between 0x10000 and 0x90000,
27498 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
27499 is in our heap (probably as a result of it being corrupted during
27500 decompression). Add #error instance with comment to explain why this
27501 loader isn't currently usable on PC/BIOS.
27502
27503 2008-11-14 Robert Millan <rmh@aybabtu.com>
27504
27505 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
27506 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
27507
27508 2008-11-12 Robert Millan <rmh@aybabtu.com>
27509
27510 Make loader/i386/linux.c buildable on i386-pc (although disabled).
27511
27512 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
27513 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
27514 from here ...
27515 * include/grub/i386/pc/memory.h: ... to here.
27516
27517 2008-11-12 Robert Millan <rmh@aybabtu.com>
27518
27519 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
27520 split).
27521
27522 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
27523 (grub_console_cur_color, grub_console_real_putchar)
27524 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27525 (grub_console_setcolorstate, grub_console_setcolor)
27526 (grub_console_getcolor): Move from here ...
27527 * include/grub/i386/vga_common.h: ... to here (new file).
27528
27529 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
27530 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
27531 `<grub/i386/io.h>'.
27532 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
27533 `<grub/i386/vga_common.h>'.
27534
27535 2008-11-12 Robert Millan <rmh@aybabtu.com>
27536
27537 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
27538 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
27539 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
27540 variables.
27541 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27542 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
27543
27544 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
27545 grub_console_init() with call to grub_vga_text_init().
27546 (grub_machine_fini): Replace call to
27547 grub_console_fini() with call to grub_vga_text_fini() and
27548 grub_at_keyboard_fini().
27549
27550 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
27551 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
27552 (grub_console_setcolorstate, grub_console_setcolor)
27553 (grub_console_getcolor): New function prototypes.
27554
27555 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
27556 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
27557 (grub_vga_text_setcursor): Static-ize.
27558 (grub_vga_text_term): New structure.
27559 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
27560
27561 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
27562 (grub_console_cur_color, grub_console_standard_color)
27563 (grub_console_normal_color, grub_console_highlight_color)
27564 (map_char, grub_console_putchar, grub_console_getcharwidth)
27565 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
27566 (grub_console_getcolor): Move from here ...
27567 * term/i386/vga_common.c: ... to here (same function names).
27568
27569 2008-11-12 Robert Millan <rmh@aybabtu.com>
27570
27571 Use newly-added Multiboot support in coreboot.
27572
27573 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
27574 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
27575
27576 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
27577 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
27578 (codestart): Store the MBI in `startup_multiboot_info' when we're
27579 being loaded using Multiboot.
27580
27581 * kern/i386/coreboot/init.c (grub_machine_init): Move
27582 grub_at_keyboard_init() call to beginning of function (useful for
27583 debugging). Call grub_machine_mmap_init() before attempting to use
27584 grub_machine_mmap_iterate().
27585 (grub_lower_mem, grub_upper_mem): Move from here ...
27586 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
27587 here (new file).
27588
27589 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
27590 function prototype.
27591
27592 2008-11-12 Robert Millan <rmh@aybabtu.com>
27593
27594 Fix a regression introduced by the at_keyboard.mod split. Because
27595 some terminals are default on some platforms and non-default on
27596 others, the first terminal being registered determines which is
27597 going to be default.
27598
27599 * kern/term.c (grub_term_register_input): If this is the first
27600 terminal being registered, set it as the current one.
27601 (grub_term_register_output): Likewise.
27602
27603 * term/efi/console.c (grub_console_init): Do not call
27604 grub_term_set_current_output() or grub_term_set_current_input().
27605 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
27606 * term/i386/pc/console.c (grub_console_init): Likewise.
27607 (grub_console_fini): Do not call grub_term_set_current_input()
27608 (but leave grub_term_set_current_output() to restore text mode).
27609
27610 2008-11-10 Robert Millan <rmh@aybabtu.com>
27611
27612 * util/grub.d/00_header.in: Add backward compatibility check for
27613 versions of terminal.mod that don't understand `terminal_input' or
27614 `terminal_output'.
27615
27616 2008-11-09 Robert Millan <rmh@aybabtu.com>
27617
27618 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
27619 `terminal_input' / `terminal_output', not `terminal'.
27620
27621 2008-11-08 Robert Millan <rmh@aybabtu.com>
27622
27623 * Makefile.in (include_DATA): Fix srcdir=. assumption.
27624 (DISTCLEANFILES): Add `build_env.mk'.
27625
27626 2008-11-08 Robert Millan <rmh@aybabtu.com>
27627
27628 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
27629 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27630 members. Update all users.
27631 * util/console.c (grub_ncurses_term): Split in ...
27632 (grub_ncurses_term_input): ... this, and ...
27633 (grub_ncurses_term_output): ... this. Update all users.
27634 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
27635
27636 2008-11-08 Robert Millan <rmh@aybabtu.com>
27637
27638 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
27639 (PKGDATA): Add $(pkgdata_SRCDIR).
27640 (pkglib_BUILDDIR): New variable.
27641 (pkgdata_SRCDIR): New variable.
27642 (build_env.mk): New target.
27643 (include_DATA): New variable.
27644 (install-local): Install $(include_DATA) files in $(includedir).
27645
27646 2008-11-07 Pavel Roskin <proski@gnu.org>
27647
27648 * gendistlist.sh: Use C locale for sorting to ensure consistent
27649 output on all systems.
27650
27651 * util/grub.d/00_header.in: Remove incorrect space before
27652 "serial".
27653
27654 2008-11-07 Robert Millan <rmh@aybabtu.com>
27655
27656 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
27657 per specification.
27658 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
27659 * loader/multiboot_loader.c (find_multi_boot2_header): New function
27660 (based on find_multi_boot1_header).
27661 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
27662 using find_multi_boot2_header(), and abort if neither Multiboot or
27663 Multiboot headers were found.
27664
27665 2008-11-07 Robert Millan <rmh@aybabtu.com>
27666
27667 Modularize at_keyboard.mod:
27668
27669 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
27670 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
27671 (at_keyboard_mod_LDFLAGS): New variables.
27672
27673 Actual terminal split:
27674
27675 * include/grub/term.h (struct grub_term): Split in ...
27676 (struct grub_term_input): ... this, and ...
27677 (struct grub_term_output): ... this. Update all users.
27678 (grub_term_set_current): Split in ...
27679 (grub_term_set_current_input): ... this, and ...
27680 (grub_term_set_current_output): ... this.
27681 (grub_term_get_current): Split in ...
27682 (grub_term_get_current_input): ... this, and ...
27683 (grub_term_get_current_output): ... this.
27684 (grub_term_register): Split in ...
27685 (grub_term_register_input): ... this, and ...
27686 (grub_term_register_output): ... this.
27687 (grub_term_unregister): Split in ...
27688 (grub_term_unregister_input): ... this, and ...
27689 (grub_term_unregister_output): ... this.
27690 (grub_term_iterate): Split in ...
27691 (grub_term_iterate_input): ... this, and ...
27692 (grub_term_iterate_output): ... this.
27693
27694 * kern/term.c (grub_term_list): Split in ...
27695 (grub_term_list_input): ... this, and ...
27696 (grub_term_list_output): ... this. Update all users.
27697 (grub_cur_term): Split in ...
27698 (grub_cur_term_input): ... this, and ...
27699 (grub_cur_term_output): ... this. Update all users.
27700 (grub_term_set_current): Split in ...
27701 (grub_term_set_current_input): ... this, and ...
27702 (grub_term_set_current_output): ... this.
27703 (grub_term_get_current): Split in ...
27704 (grub_term_get_current_input): ... this, and ...
27705 (grub_term_get_current_output): ... this.
27706 (grub_term_register): Split in ...
27707 (grub_term_register_input): ... this, and ...
27708 (grub_term_register_output): ... this.
27709 (grub_term_unregister): Split in ...
27710 (grub_term_unregister_input): ... this, and ...
27711 (grub_term_unregister_output): ... this.
27712 (grub_term_iterate): Split in ...
27713 (grub_term_iterate_input): ... this, and ...
27714 (grub_term_iterate_output): ... this.
27715
27716 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
27717 a check for input and one for output (and only attempt to get keys
27718 from user when input works).
27719
27720 * util/grub-probe.c (grub_term_get_current): Split in ...
27721 (grub_term_get_current_input): ... this, and ...
27722 (grub_term_get_current_output): ... this.
27723 * util/grub-fstest.c: Likewise.
27724 * util/i386/pc/grub-setup.c: Likewise.
27725 * util/grub-editenv.c: Likewise.
27726
27727 Portability adjustments:
27728
27729 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
27730 `term/i386/pc/at_keyboard.c'.
27731 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
27732 grub_keyboard_controller_init() (now handled by terminal .init).
27733 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
27734 grub_at_keyboard_init().
27735 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
27736 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
27737 at_keyboard.mod via input terminal interface).
27738 * include/grub/i386/coreboot/console.h: Convert into a stub for
27739 `<grub/i386/pc/console.h>'.
27740
27741 Migrate full terminals to new API:
27742
27743 * term/efi/console.c (grub_console_term): Split into ...
27744 (grub_console_term_input): ... this, and ...
27745 (grub_console_term_output): ... this. Update all users.
27746 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
27747 (grub_ofconsole_init): Split into ...
27748 (grub_ofconsole_init_input): ... this, and ...
27749 (grub_ofconsole_init_output): ... this.
27750 (grub_ofconsole_term): Split into ...
27751 (grub_ofconsole_term_input): ... this, and ...
27752 (grub_ofconsole_term_output): ... this. Update all users.
27753 * term/i386/pc/serial.c (grub_serial_term): Split into ...
27754 (grub_serial_term_input): ... this, and ...
27755 (grub_serial_term_output): ... this. Update all users.
27756 * term/i386/pc/console.c (grub_console_term): Split into ...
27757 (grub_console_term_input): ... this, and ...
27758 (grub_console_term_output): ... this. Update all users.
27759 (grub_console_term_input): Only enable it on PC/BIOS platform.
27760 (grub_console_init): Remove grub_keyboard_controller_init() call.
27761
27762 Migrate input terminals to new API:
27763
27764 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
27765 `i386' and `i386/pc' to enable build on x86_64 (this driver is
27766 i386-specific anyway).
27767 (grub_console_checkkey): Rename to ...
27768 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
27769 users.
27770 (grub_keyboard_controller_orig): New variable.
27771 (grub_console_getkey): Rename to ...
27772 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
27773 users.
27774 (grub_keyboard_controller_init): Static-ize. Save original
27775 controller value so that it can be restored ...
27776 (grub_keyboard_controller_fini): ... here (new function).
27777 (grub_at_keyboard_term): New structure.
27778 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
27779 functions.
27780
27781 Migrate output terminals to new API:
27782
27783 * term/i386/pc/vga.c (grub_vga_term): Change type to
27784 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27785 members. Update all users.
27786 * term/gfxterm.c (grub_video_term): Change type to
27787 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
27788 members. Update all users.
27789 * include/grub/i386/pc/console.h (grub_console_checkkey)
27790 (grub_console_getkey): Do not export (no longer needed by gfxterm,
27791 etc).
27792
27793 Migrate `terminal' command and userland tools to new API:
27794
27795 * commands/terminal.c (grub_cmd_terminal): Split into ...
27796 (grub_cmd_terminal_input): ... this, and ...
27797 (grub_cmd_terminal_output): ... this.
27798 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
27799 `terminal_input' and `terminal_output'.
27800 * util/grub.d/00_header.in: Adjust `terminal' calls to new
27801 `terminal_input' / `terminal_output' API.
27802 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
27803 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
27804 provided ${GRUB_TERMINAL}, convert it).
27805
27806 2008-11-04 Robert Millan <rmh@aybabtu.com>
27807
27808 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
27809 for FreeBSD.
27810 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
27811
27812 2008-11-03 Bean <bean123ch@gmail.com>
27813
27814 * kern/elf.c (grub_elf32_load): Revert to previous code.
27815 (grub_elf64_load): Likewise.
27816
27817 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
27818
27819 2008-11-01 Robert Millan <rmh@aybabtu.com>
27820
27821 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
27822 (TARGET_CPPFLAGS): Likewise.
27823 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
27824
27825 2008-11-01 Carles Pina i Estany <carles@pina.cat>
27826
27827 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
27828
27829 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27830
27831 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
27832 addition of objects until the code is not going to be able to fail.
27833
27834 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
27835
27836 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
27837 (add a missing NULL check, and correct them by moving the pointer
27838 operations after the actual check).
27839
27840 2008-10-29 Robert Millan <rmh@aybabtu.com>
27841
27842 * util/i386/pc/grub-install.in: Handle empty string as output from
27843 make_system_path_relative_to_its_root().
27844
27845 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
27846
27847 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
27848 circular metadata worst case scenario. If the metadata is circular
27849 then copy the wrap in place.
27850 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
27851 project lib/format_text/layout.h
27852 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
27853
27854 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27855
27856 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
27857
27858 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
27859
27860 * util/update-grub_lib.in: Mention filename in warning message.
27861
27862 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27863
27864 * NEWS: Update for rename of update-grub to grub-mkconfig.
27865
27866 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
27867
27868 * util/update-grub_lib.in: Copy to ...
27869 * util/grub-mkconfig_lib.in: ... this. Update all users.
27870 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
27871 * util/update-grub.in: Rename to ...
27872 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
27873 option. Add `--output' option to allow users to specify the generated
27874 configuration file. Default to stdout.
27875 (update_grub_dir): Rename to ...
27876 (grub_mkconfig_dir): ... this.
27877 (grub_cfg): Default to an empty string.
27878 * conf/common.rmk (update-grub): Rename to ...
27879 (grub-mkconfig): ... this.
27880 (update-grub_lib): Copy to ...
27881 (grub-mkconfig_lib): ... this.
27882 (update-grub_SCRIPTS): Copy to ...
27883 (grub-mkconfig_SCRIPTS): ... this. Update all users.
27884 (update-grub_DATA): Rename to ...
27885 (grub-mkconfig_DATA): ... this.
27886
27887 2008-09-28 Robert Millan <rmh@aybabtu.com>
27888
27889 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
27890 to `modified'. Add the real `created' field.
27891 (grub_iso9660_uuid): Use `modified' rather than `created' for
27892 constructing the UUID.
27893
27894 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
27895
27896 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
27897 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
27898
27899 2008-09-28 Bean <bean123ch@gmail.com>
27900
27901 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
27902 Thanks to Christian Franke for finding this bug.
27903
27904 2008-09-25 Robert Millan <rmh@aybabtu.com>
27905
27906 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
27907 instances of grub_util_get_disk_name() (see previous commit).
27908
27909 2008-09-25 Robert Millan <rmh@aybabtu.com>
27910
27911 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
27912 `util/i386/get_disk_name.c'.
27913 * conf/i386-efi.rmk: Likewise.
27914 * conf/x86_64-efi.rmk: Likewise.
27915 * conf/i386-coreboot.rmk: Likewise.
27916 * conf/i386-ieee1275.rmk: Likewise.
27917 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
27918 `util/ieee1275/get_disk_name.c'.
27919 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
27920 * util/ieee1275/get_disk_name.c: Remove file.
27921 * util/i386/get_disk_name.c: Remove file.
27922 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
27923 "hd%d" for device.map entries, rather than using
27924 grub_util_get_disk_name().
27925
27926 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27927
27928 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
27929 warning.
27930 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
27931
27932 2008-09-24 Carles Pina i Estany <carles@pina.cat>
27933
27934 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
27935 Changed to 0x5100.
27936 (GRUB_TERM_PPAGE): Changed to 0x4900.
27937
27938 2008-09-24 Robert Millan <rmh@aybabtu.com>
27939
27940 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
27941 macros (they were i386-pc specific).
27942 * include/grub/sparc64/ieee1275/console.h: Likewise.
27943 * include/grub/efi/console.h: Likewise.
27944
27945 2008-09-22 Bean <bean123ch@gmail.com>
27946
27947 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
27948 resident and in attribute list.
27949
27950 * include/grub/ntfs.h (BMP_LEN): Removed.
27951
27952 2008-09-22 Bean <bean123ch@gmail.com>
27953
27954 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
27955 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
27956
27957 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
27958 error occurs, as grub_disk_open will call grub_disk_close, which will
27959 call p->close (scsi).
27960
27961 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27962
27963 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
27964 (AC_PREREQ): Bumped to 2.59.
27965 (AC_TRY_COMPILE): Replace obsolete macro with ...
27966 (AC_COMPILE_IFELSE): ... this.
27967 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
27968 (AC_LINK_IFELSE): ... this.
27969
27970 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
27971
27972 * autogen.sh: Add a call to `gendistlist.sh'.
27973
27974 2008-09-19 Christian Franke <franke@computer.org>
27975
27976 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
27977 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
27978 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
27979 Export __enable_execute_stack() to modules.
27980 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
27981 New function.
27982
27983 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27984
27985 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
27986 Sort the list.
27987
27988 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
27989
27990 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
27991 #include <grub/util/hostdisk.h>.
27992
27993 2008-09-08 Robert Millan <rmh@aybabtu.com>
27994
27995 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
27996 segments when their filesz is zero (grub_file_read() interprets
27997 zero-size as "read until EOF", which results in memory corruption).
27998 Use `lowest_segment' rather than 0 for calculating the current
27999 segment load address.
28000
28001 2008-09-08 Robert Millan <rmh@aybabtu.com>
28002
28003 * util/hostdisk.c (open_device): Replace a grub_util_info() call
28004 with grub_dprintf("hostdisk", ...), as it was so verbose that it
28005 clobbered useful information.
28006
28007 2008-09-08 Robert Millan <rmh@aybabtu.com>
28008
28009 * include/grub/util/biosdisk.h: Move to ...
28010 * include/grub/util/hostdisk.h: ... here. Update all users.
28011 * util/biosdisk.c: Move to ...
28012 * util/hostdisk.c: ... here. Update all users.
28013
28014 2008-09-07 Robert Millan <rmh@aybabtu.com>
28015
28016 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
28017 variables.
28018 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
28019 and length can be stored directly in the `mbi->mmap_addr' and
28020 `mbi->mmap_length' struct fields.
28021
28022 2008-09-07 Robert Millan <rmh@aybabtu.com>
28023
28024 * conf/i386.rmk: New file. Provides declaration for building
28025 `cpuid.mod'.
28026 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
28027 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
28028 variables.
28029 Include `conf/i386.mk'.
28030 * conf/i386-efi.rmk: Likewise.
28031 * conf/x86_64-efi.rmk: Likewise.
28032 * conf/i386-coreboot.rmk: Likewise.
28033 * conf/i386-ieee1275.rmk: Likewise.
28034
28035 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
28036
28037 Based on patch created by Colin D Bennett <colin@gibibit.com>.
28038 Adds optimization support for BGR based modes.
28039
28040 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
28041 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
28042 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
28043 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
28044 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
28045 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
28046 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
28047 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
28048 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
28049 (grub_video_i386_vbeblit_index_index): Likewise.
28050 (grub_video_i386_vbeblit_replace_directN): Added.
28051 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
28052 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
28053 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
28054 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
28055 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
28056 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
28057 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
28058 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
28059 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
28060 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
28061 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
28062 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
28063 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
28064
28065 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
28066 (grub_video_i386_vbefill_R8G8B8): Likewise.
28067 (grub_video_i386_vbefill_index): Likewise.
28068 (grub_video_i386_vbefill_direct32): Added.
28069 (grub_video_i386_vbefill_direct24): Likewise.
28070 (grub_video_i386_vbefill_direct16): Likewise.
28071 (grub_video_i386_vbefill_direct8): Likewise.
28072
28073 * include/grub/video.h (grub_video_blit_format): Removed
28074 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
28075 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
28076 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
28077 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
28078 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
28079
28080 * video/video.c (grub_video_get_blit_format): Updated to use new
28081 blit formats. Added handling for 16 bit color modes.
28082
28083 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
28084 fillers.
28085 (common_blitter): Updated to use new blitters.
28086
28087 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
28088 Removed.
28089 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
28090 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
28091 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
28092 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
28093 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
28094 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
28095 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
28096 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
28097 (grub_video_i386_vbeblit_index_index): Likewise.
28098 (grub_video_i386_vbeblit_replace_directN): Added.
28099 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
28100 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
28101 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
28102 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
28103 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
28104 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
28105 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
28106 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
28107 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
28108 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
28109 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
28110 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
28111 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
28112
28113 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
28114 (grub_video_i386_vbefill_R8G8B8): Likewise.
28115 (grub_video_i386_vbefill_index): Likewise.
28116 (grub_video_i386_vbefill_direct32): Added.
28117 (grub_video_i386_vbefill_direct24): Likewise.
28118 (grub_video_i386_vbefill_direct16): Likewise.
28119 (grub_video_i386_vbefill_direct8): Likewise.
28120
28121 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
28122 types.
28123
28124 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
28125 types.
28126
28127 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
28128 blitter types.
28129
28130 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
28131 types.
28132
28133 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
28134
28135 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
28136 RAID level 1.
28137
28138 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
28139
28140 * fs/iso9660.c (grub_iso9660_date): New structure.
28141 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
28142 (grub_iso9660_uuid): New function.
28143
28144 2008-09-05 Bean <bean123ch@gmail.com>
28145
28146 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
28147
28148 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
28149 insensitive bit for names in Win32 and Win32 & DOS namespace.
28150
28151 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
28152
28153 * include/grub/types.h (LONG_MAX): Likewise.
28154
28155 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
28156
28157 * util/getroot.c: Include <config.h>.
28158 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
28159 add support for /dev/md/N devices and handle LVM double dash escaping.
28160
28161 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
28162
28163 * config.guess: Update to latest version from config git.
28164 * config.sub: Likewise.
28165
28166 2008-09-03 Robert Millan <rmh@aybabtu.com>
28167
28168 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
28169 `disk->total_sectors'.
28170
28171 2008-09-01 Colin D Bennett <colin@gibibit.com>
28172
28173 * include/grub/normal.h: Fixed incorrect comment for
28174 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
28175
28176 2008-09-01 Colin D Bennett <colin@gibibit.com>
28177
28178 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
28179 values with defines.
28180
28181 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
28182 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
28183 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
28184 (GRUB_VBE_MODEATTR_COLOR): Likewise.
28185 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
28186 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
28187 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
28188 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
28189 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
28190 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
28191 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
28192 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
28193 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
28194 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
28195 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
28196 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
28197 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
28198 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
28199 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
28200
28201 2008-08-31 Robert Millan <rmh@aybabtu.com>
28202
28203 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
28204 declaration.
28205 (grub_multiboot): Fix a few warnings.
28206
28207 2008-08-31 Robert Millan <rmh@aybabtu.com>
28208
28209 * loader/i386/pc/multiboot.c: Update comment not to say that
28210 boot_device support is unimplemented.
28211
28212 2008-08-31 Robert Millan <rmh@aybabtu.com>
28213
28214 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
28215 or memory map support are unimplemented.
28216
28217 2008-08-31 Colin D Bennett <colin@gibibit.com>
28218
28219 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
28220
28221 2008-08-31 Colin D Bennett <colin@gibibit.com>
28222
28223 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
28224 total video memory in 'vbeinfo' output; show color format details for
28225 each video mode.
28226
28227 2008-08-30 Pavel Roskin <proski@gnu.org>
28228
28229 * util/genmoddep.c: Remove for real this time.
28230 * DISTLIST: Remove util/genmoddep.c.
28231
28232 2008-08-30 Robert Millan <rmh@aybabtu.com>
28233
28234 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
28235 as required by Multiboot spec (it was already 4-byte aligned, but
28236 only by chance).
28237
28238 2008-08-29 Pavel Roskin <proski@gnu.org>
28239
28240 * kern/powerpc/ieee1275/crt0.S: Rename to ...
28241 * kern/powerpc/ieee1275/startup.S: ... this.
28242 * conf/powerpc-ieee1275.rmk: Adjust for the above.
28243 * DISTLIST: Likewise.
28244
28245 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
28246 grub/cpu/kernel.h. Add start label for consistency with other
28247 platforms. Add grub_prefix immediately after start. Add jump
28248 to the code after grub_prefix.
28249 * include/grub/powerpc/kernel.h: Provide valid values for
28250 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
28251
28252 2008-08-29 Bean <bean123ch@gmail.com>
28253
28254 * configure.ac: Change host_os to cygwin for mingw.
28255 (asprintf): New check for function.
28256
28257 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
28258 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
28259
28260 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
28261 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
28262 sync, sleep and grub_util_get_disk_size for mingw.
28263
28264 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
28265 to get size in mingw.
28266 (open_device): Use flag O_BINARY if it's defined.
28267 (find_root_device): Add dummy code for mingw.
28268
28269 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
28270 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
28271 (get_scsi_disk_name): Return 0 for mingw.
28272
28273 * util/hostfs.c: #include <grub/util/misc.h>.
28274 (grub_hostfs_open): Use "rb" flag to open file, use
28275 grub_util_get_disk_size to get disk size for mingw.
28276
28277 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
28278 (asprintf): New function if HAVE_ASPRINTF is not set.
28279 (sync): New function for mingw.
28280 (sleep): Likewise.
28281 (grub_util_get_disk_size): Likewise.
28282
28283 2008-08-28 Pavel Roskin <proski@gnu.org>
28284
28285 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28286 kern/time.c.
28287
28288 2008-08-28 Robert Millan <rmh@aybabtu.com>
28289
28290 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
28291
28292 2008-08-28 Robert Millan <rmh@aybabtu.com>
28293
28294 Change find_grub_drive() syntax so it doesn't prevent it from
28295 detecting NULL names as errors.
28296
28297 * util/biosdisk.c (find_grub_drive): Move free slot search code
28298 from here ...
28299 (find_free_slot): ... to here.
28300 (read_device_map): Use find_free_slot() to search for free slots.
28301
28302 2008-08-27 Marco Gerards <marco@gnu.org>
28303
28304 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
28305 (scsi_mod_SOURCES): New variable.
28306 (scsi_mod_CFLAGS): Likewise
28307 (scsi_mod_LDFLAGS): Likewise.
28308
28309 * disk/scsi.c: New file.
28310
28311 * include/grub/scsi.h: Likewise.
28312
28313 * include/grub/scsicmd.h: Likewise.
28314
28315 * disk/ata.c: Include <grub/scsi.h>.
28316 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
28317 instead.
28318 (grub_ata_iterate): Skip ATAPI devices.
28319 (grub_ata_open): Only handle ATAPI devices.
28320 (struct grub_atapi_read): Removed.
28321 (grub_atapi_readsector): Likewise.
28322 (grub_ata_read): No longer handle ATAPI devices.
28323 (grub_ata_write): Likewise.
28324 (grub_atapi_iterate): New function.
28325 (grub_atapi_read): Likewise.
28326 (grub_atapi_write): Likewise.
28327 (grub_atapi_open): Likewise.
28328 (grub_atapi_close): Likewise.
28329 (grub_atapi_dev): New variable.
28330 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
28331 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
28332
28333 * include/grub/disk.h (enum grub_disk_dev_id): Add
28334 `GRUB_DISK_DEVICE_SCSI_ID'.
28335
28336 2008-08-26 Robert Millan <rmh@aybabtu.com>
28337
28338 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
28339 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
28340 descriptive.
28341
28342 2008-08-23 Bean <bean123ch@gmail.com>
28343
28344 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
28345 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
28346 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
28347 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
28348 dm_nv.mod.
28349 (raid5rec_mod_SOURCES): New macro.
28350 (raid5rec_mod_CFLAGS): Likewise.
28351 (raid5rec_mod_LDFLAGS): Likewise.
28352 (raid6rec_mod_SOURCES): Likewise.
28353 (raid6rec_mod_CFLAGS): Likewise.
28354 (raid6rec_mod_LDFLAGS): Likewise.
28355 (mdraid_mod_SOURCES): Likewise.
28356 (mdraid_mod_CFLAGS): Likewise.
28357 (mdraid_mod_LDFLAGS): Likewise.
28358 (dm_nv_mod_SOURCES): Likewise.
28359 (dm_nv_mod_CFLAGS): Likewise.
28360 (dm_nv_mod_LDFLAGS): Likewise.
28361
28362 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
28363 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
28364 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28365
28366 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
28367 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
28368
28369 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28370
28371 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28372
28373 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28374
28375 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28376
28377 * disk/raid5_recover.c: New file.
28378
28379 * disk/raid6_recover.c: Likewise.
28380
28381 * disk/mdraid_linux.c: Likewise.
28382
28383 * disk/dmraid_nvidia.c: Likewise.
28384
28385 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
28386 ULONG_MAX.
28387
28388 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
28389 calculate the size of raid device.
28390 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
28391 different layout of raid5.
28392 (grub_raid_scan_device): Remove code specific to mdraid.
28393 (grub_raid_list): New variable.
28394 (free_array): New function.
28395 (grub_raid_register): Likewise.
28396 (grub_raid_unregister): Likewise.
28397 (grub_raid_rescan): Likewise.
28398 (GRUB_MOD_INIT): Don't iterate device here.
28399 (GRUB_MOD_FINI): Use free_array to release resource.
28400
28401 * include/grub/raid.h: Remove macro and structure specific to mdraid.
28402 (grub_raid5_recover_func_t): New function variable type.
28403 (grub_raid6_recover_func_t): Likewise.
28404 (grub_raid5_recover_func): New variable.
28405 (grub_raid6_recover_func): Likewise.
28406 (grub_raid_register): New function.
28407 (grub_raid_unregister): Likewise.
28408 (grub_raid_rescan): Likewise.
28409 (grub_raid_block_xor): Likewise.
28410
28411 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
28412 (CMD_CRC): New macro.
28413 (part): Removed.
28414 (read_file): Handle device as well as file.
28415 (cmd_crc): New function.
28416 (fstest): Handle multiple disks.
28417 (options): Remove part, raw and long, add root and diskcount.
28418 (usage): Add crc, remove -p, -r, -l, add -r and -c.
28419 (main): Find the first non option entry and ignore subsequent options,
28420 add handling for the new options, support multiple disks.
28421
28422 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
28423
28424 2008-08-23 Bean <bean123ch@gmail.com>
28425
28426 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
28427
28428 * genfslist.sh: Ignore kernel.mod.
28429
28430 * genpartmaplist.sh: Likewise.
28431
28432 2008-08-23 Robert Millan <rmh@aybabtu.com>
28433
28434 * util/getroot.c (find_root_device): Skip anything that starts with
28435 a dot, not just directories. This avoids things like /dev/.tmp.md0.
28436
28437 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
28438
28439 * util/update-grub.in (GRUB_GFXMODE): Export variable.
28440 * util/grub.d/00_header.in: Allow the administrator to change default
28441 gfxmode via ${GRUB_GFXMODE}.
28442
28443 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
28444
28445 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
28446
28447 2008-08-21 Robert Millan <rmh@aybabtu.com>
28448
28449 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
28450 loader.
28451 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
28452 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
28453
28454 2008-08-20 Carles Pina i Estany <carles@pina.cat>
28455
28456 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
28457 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
28458
28459 2008-08-19 Robert Millan <rmh@aybabtu.com>
28460
28461 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
28462 (struct grub_virtual_screen): Remove `cursor_color'.
28463 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
28464 initialization.
28465 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
28466
28467 2008-08-18 Robert Millan <rmh@aybabtu.com>
28468
28469 Unify (identical) linux_normal.c files.
28470 * loader/i386/efi/linux_normal.c: Move from here ...
28471 * loader/linux_normal.c: ... to here. Update all users.
28472 * loader/i386/pc/linux_normal.c: Delete. Update all users.
28473 * loader/i386/ieee1275/linux_normal.c: Likewise.
28474
28475 2008-08-18 Robert Millan <rmh@aybabtu.com>
28476
28477 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
28478 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
28479 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
28480 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
28481 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
28482 New macros.
28483 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
28484 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
28485 (GRUB_LINUX_CL_END_OFFSET): ... to here.
28486 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
28487 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
28488 (GRUB_EFI_CL_END_OFFSET): Rename to ...
28489 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
28490 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
28491 Initialize `params->video_cursor_x' and `params->video_cursor_y'
28492 portably using grub_getxy().
28493 Replace `-EFI' with `-bzImage' in boot message.
28494
28495 2008-08-17 Robert Millan <rmh@aybabtu.com>
28496
28497 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
28498
28499 2008-08-17 Robert Millan <rmh@aybabtu.com>
28500
28501 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
28502
28503 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
28504 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
28505 (grub_machine_mmap_iterate): New function declaration.
28506 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
28507 structure.
28508 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
28509 macros.
28510
28511 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
28512 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
28513 Move e820 parsing from here ...
28514 * kern/i386/pc/mmap.c: New file.
28515 (grub_machine_mmap_iterate): ... to here.
28516
28517 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
28518 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
28519 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
28520 (grub_available_iterate): Redeclare to return `void', and redeclare
28521 its hook to use grub_uint64_t as addr and size parameters, and rename
28522 to ...
28523 (grub_machine_mmap_iterate): ... this. Update all users.
28524
28525 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
28526 to make it more readable. Rename to ...
28527 (grub_machine_mmap_iterate): ... this.
28528
28529 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
28530 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
28531 (grub_multiboot): Allocate an extra region after the payload, and fill
28532 it with a Multiboot memory map. Adjust a.out loader to calculate size
28533 with the extra space.
28534 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
28535 with the extra space.
28536
28537 2008-08-17 Carles Pina i Estany <carles@pina.cat>
28538
28539 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
28540
28541 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
28542
28543 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
28544 mdate-sh to the list `find' searches for.
28545 * DISTLIST: Regenerated.
28546
28547 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
28548
28549 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
28550 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
28551 genmoddep.awk, gensymlist.sh.in.
28552 (DISTDIRS): Add bus, docs, hook, lib.
28553 * DISTLIST: Regenerated.
28554 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
28555
28556 2008-08-16 Robert Millan <rmh@aybabtu.com>
28557
28558 * disk/raid.c (grub_raid_init): Handle/report errors set by
28559 grub_device_iterate().
28560 * disk/lvm.c (grub_lvm_init): Likewise.
28561
28562 2008-08-15 Bean <bean123ch@gmail.com>
28563
28564 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28565 and datehook.mod.
28566 (datetime_mod_SOURCES): New macro.
28567 (datetime_mod_CFLAGS): Likewise.
28568 (datetime_mod_LDFLAGS): Likewise.
28569 (date_mod_SOURCES): Likewise.
28570 (date_mod_CFLAGS): Likewise.
28571 (date_mod_LDFLAGS): Likewise.
28572 (datehook_mod_SOURCES): Likewise.
28573 (datehook_mod_CFLAGS): Likewise.
28574 (datehook_mod_LDFLAGS): Likewise.
28575
28576 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28577 and datehook.mod.
28578 (datetime_mod_SOURCES): New macro.
28579 (datetime_mod_CFLAGS): Likewise.
28580 (datetime_mod_LDFLAGS): Likewise.
28581 (date_mod_SOURCES): Likewise.
28582 (date_mod_CFLAGS): Likewise.
28583 (date_mod_LDFLAGS): Likewise.
28584 (datehook_mod_SOURCES): Likewise.
28585 (datehook_mod_CFLAGS): Likewise.
28586 (datehook_mod_LDFLAGS): Likewise.
28587
28588 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28589 and datehook.mod.
28590 (datetime_mod_SOURCES): New macro.
28591 (datetime_mod_CFLAGS): Likewise.
28592 (datetime_mod_LDFLAGS): Likewise.
28593 (date_mod_SOURCES): Likewise.
28594 (date_mod_CFLAGS): Likewise.
28595 (date_mod_LDFLAGS): Likewise.
28596 (datehook_mod_SOURCES): Likewise.
28597 (datehook_mod_CFLAGS): Likewise.
28598 (datehook_mod_LDFLAGS): Likewise.
28599
28600 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28601 and datehook.mod.
28602 (datetime_mod_SOURCES): New macro.
28603 (datetime_mod_CFLAGS): Likewise.
28604 (datetime_mod_LDFLAGS): Likewise.
28605 (date_mod_SOURCES): Likewise.
28606 (date_mod_CFLAGS): Likewise.
28607 (date_mod_LDFLAGS): Likewise.
28608 (datehook_mod_SOURCES): Likewise.
28609 (datehook_mod_CFLAGS): Likewise.
28610 (datehook_mod_LDFLAGS): Likewise.
28611
28612 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
28613 and datehook.mod.
28614 (datetime_mod_SOURCES): New macro.
28615 (datetime_mod_CFLAGS): Likewise.
28616 (datetime_mod_LDFLAGS): Likewise.
28617 (date_mod_SOURCES): Likewise.
28618 (date_mod_CFLAGS): Likewise.
28619 (date_mod_LDFLAGS): Likewise.
28620 (datehook_mod_SOURCES): Likewise.
28621 (datehook_mod_CFLAGS): Likewise.
28622 (datehook_mod_LDFLAGS): Likewise.
28623
28624 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
28625
28626 * commands/date.c: New file.
28627
28628 * hook/datehook.c: Likewise.
28629
28630 * include/grub/lib/datetime.h: Likewise.
28631
28632 * include/grub/i386/cmos.h: Likewise.
28633
28634 * lib/datetime.c: Likewise.
28635
28636 * lib/i386/datetime.c: Likewise.
28637
28638 * lib/efi/datetime.c: Likewise.
28639
28640 2008-08-14 Robert Millan <rmh@aybabtu.com>
28641
28642 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
28643 (grub_mkelfimage_SOURCES): New variable.
28644 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
28645
28646 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
28647 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
28648 * conf/powerpc-ieee1275.rmk: Likewise.
28649 * conf/i386-ieee1275.rmk: Likewise.
28650
28651 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
28652 * kern/i386/coreboot/init.c: Likewise.
28653
28654 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
28655 with `<grub/cpu/kernel.h>'.
28656 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
28657 to ...
28658 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
28659 * kern/i386/coreboot/startup.S: Likewise.
28660
28661 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
28662 (GRUB_MOD_GAP): Remove.
28663 * include/grub/powerpc/kernel.h: New file.
28664 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
28665 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28666 * include/grub/i386/kernel.h: New file.
28667 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
28668 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
28669 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
28670
28671 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
28672 `grub-mkelfimage'.
28673 Use --directory when invoking grub_mkimage.
28674
28675 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
28676 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
28677 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
28678 and GRUB_KERNEL_CPU_PREFIX.
28679
28680 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
28681
28682 * include/grub/err.h (grub_err_printf): New function prototype.
28683 * util/misc.c (grub_err_printf): New function.
28684 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
28685 grub_printf.
28686 * kern/err.c (grub_print_error): Use grub_err_printf.
28687
28688 2008-08-13 Robert Millan <rmh@aybabtu.com>
28689
28690 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
28691
28692 2008-08-13 Robert Millan <rmh@aybabtu.com>
28693
28694 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
28695 boot entry.
28696
28697 2008-08-12 Robert Millan <rmh@aybabtu.com>
28698
28699 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
28700 of the relocation code from here ...
28701 (grub_multiboot): ... to here.
28702 (forward_relocator, backward_relocator): Move from here ...
28703 * kern/i386/loader.S (grub_multiboot_forward_relocator)
28704 (grub_multiboot_backward_relocator): ... to here.
28705 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
28706 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
28707 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
28708 (grub_multiboot_forward_relocator_end)
28709 (grub_multiboot_backward_relocator)
28710 (grub_multiboot_backward_relocator_end): New variables.
28711
28712 2008-08-12 Bean <bean123ch@gmail.com>
28713
28714 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
28715
28716 2008-08-11 Robert Millan <rmh@aybabtu.com>
28717
28718 * kern/i386/linuxbios/startup.S: Move from here ...
28719 * kern/i386/coreboot/startup.S: ... to here.
28720
28721 * kern/i386/linuxbios/init.c: Move from here ...
28722 * kern/i386/coreboot/init.c: ... to here.
28723
28724 * kern/i386/linuxbios/table.c: Move from here ...
28725 * kern/i386/coreboot/mmap.c: ... to here.
28726
28727 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
28728
28729 2008-08-11 Robert Millan <rmh@aybabtu.com>
28730
28731 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
28732 errors. Leave it to the upper layer to handle them.
28733
28734 2008-08-09 Christian Franke <franke@computer.org>
28735
28736 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
28737 * conf/common.rmk: Install `grub-pe2elf' only if requested.
28738 Install `grub.d/10_windows' only on Cygwin.
28739 * configure.ac: Add subst of `target_os'.
28740 Check `target_os' also before setting TARGET_OBJ2ELF.
28741 Add `--enable-grub-pe2elf'.
28742
28743 2008-08-08 Robert Millan <rmh@aybabtu.com>
28744
28745 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28746 (grub_last_time): Change type to grub_uint64_t.
28747 (grub_disk_open): Migrate code from to using grub_get_time_ms().
28748 (grub_disk_close): Likewise.
28749
28750 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
28751 (run_menu): Migrate code from to using grub_get_time_ms().
28752
28753 * util/misc.c (grub_get_time_ms): New function.
28754
28755 2008-08-08 Marco Gerards <marco@gnu.org>
28756
28757 * disk/ata.c (grub_ata_regget): Change return type to
28758 `grub_uint8_t'.
28759 (grub_ata_regget2): Likewise.
28760 (grub_ata_wait_status): New function.
28761 (grub_ata_wait_busy): Removed function, updated all users to use
28762 `grub_ata_wait_status'.
28763 (grub_ata_wait_drq): Likewise.
28764 (grub_ata_cmd): New function.
28765 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
28766 error handling.
28767 (grub_ata_pio_write): Add error handling.
28768 (grub_atapi_identify): Likewise.
28769 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
28770 handling.
28771 (grub_ata_identify): Use `grub_ata_cmd' and improve error
28772 handling. Actually use the detected registers. Reorder the
28773 detection logic such that it is easier to read.
28774 (grub_ata_pciinit): Do not assign the same ID to each controller.
28775 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
28776 handling.
28777 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
28778
28779 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
28780
28781 2008-08-08 Marco Gerards <marco@gnu.org>
28782
28783 * NEWS: Update.
28784
28785 2008-08-07 Bean <bean123ch@gmail.com>
28786
28787 * include/grub/x86_64/pci.h: New file.
28788
28789 2008-08-07 Christian Franke <franke@computer.org>
28790
28791 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
28792 (TIMER2_GATE): Likewise.
28793 (grub_pit_wait): Add enable/disable of the timer2 gate
28794 bit of port 0x61. This fixes a possible infinite loop.
28795
28796 2008-08-07 Bean <bean123ch@gmail.com>
28797
28798 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
28799 kern/i386/tsc.c and kern/i386/pit.c.
28800
28801 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
28802 x86_64 platform.
28803
28804 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
28805 <grub/i386/tsc.h>.
28806
28807 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
28808
28809 2008-08-07 Bean <bean123ch@gmail.com>
28810
28811 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
28812
28813 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
28814
28815 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
28816 multiple inclusion. Add #include <grub/types.h>.
28817
28818 2008-08-06 Christian Franke <franke@computer.org>
28819
28820 * conf/common.rmk: Build and install `10_windows'.
28821 * util/grub.d/10_windows.in: New script.
28822
28823 2008-08-06 Pavel Roskin <proski@gnu.org>
28824
28825 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
28826
28827 2008-08-06 Robert Millan <rmh@aybabtu.com>
28828
28829 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
28830 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
28831
28832 2008-08-06 Bean <bean123ch@gmail.com>
28833
28834 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
28835 (grub_pxefs_fs_int): Remove dummy definition.
28836 (grub_pxefs_open): Use data->block_size to store the current block
28837 size setting.
28838 (grub_pxefs_read): Use block size stored in data->block_size. As the
28839 value of grub_pxe_blksize can be changed after the file is opened.
28840
28841 2008-08-06 Bean <bean123ch@gmail.com>
28842
28843 * fs/i386/pc/pxe.c (curr_file): new variable.
28844 (grub_pxefs_open): Simply the handling of pxe file system. Don't
28845 require the dummy internal file system anymore.
28846 (grub_pxefs_read): Removed.
28847 (grub_pxefs_close): Likewise.
28848 (grub_pxefs_fs_int): Likewise.
28849 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
28850 connection when we switch file.
28851 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
28852
28853 2008-08-06 Robert Millan <rmh@aybabtu.com>
28854
28855 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
28856 `halt.mod'.
28857 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
28858 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
28859
28860 * kern/i386/halt.c: New file.
28861 * kern/i386/reboot.c: Likewise.
28862 * include/grub/i386/reboot.h: Likewise.
28863 * include/grub/i386/halt.h: Likewise.
28864
28865 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
28866 Include `<grub/cpu/halt.h>'.
28867 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
28868 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
28869
28870 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
28871 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
28872 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
28873 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
28874 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
28875 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
28876 from here ...
28877 * include/grub/i386/at_keyboard.h: ... to here.
28878
28879 2008-08-05 Robert Millan <rmh@aybabtu.com>
28880
28881 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
28882 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
28883 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
28884 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28885 `kern/generic/millisleep.c'.
28886
28887 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
28888 instead of grub_get_rtc().
28889 (grub_tsc_init): Initialize `tsc_boot_time'.
28890
28891 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
28892 (grub_machine_init): Use grub_tsc_init() rather than
28893 installing an RTC-based handler via grub_install_get_time_ms().
28894
28895 * kern/i386/pit.c: New file.
28896 * include/grub/i386/pit.h: Likewise.
28897
28898 2008-08-05 Bean <bean123ch@gmail.com>
28899
28900 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
28901
28902 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
28903 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
28904 (pxe_mod_SOURCES): New macro.
28905 (pxe_mod_CFLAGS): Likewise.
28906 (pxe_mod_LDFLAGS): Likewise.
28907 (pxecmd_mod_SOURCES): Likewise.
28908 (pxecmd_mod_CFLAGS): Likewise.
28909 (pxecmd_mod_LDFLAGS): Likewise.
28910
28911 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
28912 (grub_pxe_call): Likewise.
28913
28914 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
28915
28916 * commands/i386/pc/pxecmd.c: New file.
28917
28918 * fs/i386/pc/pxe.c: Likewise.
28919
28920 * include/grub/i386/pc/pxe.h: Likewise.
28921
28922 2008-08-05 Bean <bean123ch@gmail.com>
28923
28924 * util/console.c (grub_console_cur_color): New variable.
28925 (grub_console_standard_color): Likewise.
28926 (grub_console_normal_color): Likewise.
28927 (grub_console_highlight_color): Likewise.
28928 (color_map): Likewise.
28929 (use_color): Likewise.
28930 (NUM_COLORS): New macro.
28931 (grub_ncurses_setcolorstate): Handle color properly.
28932 (grub_ncurses_setcolor): Don't change color here, just remember the
28933 settings, color will be set in grub_ncurses_setcolorstate.
28934 (grub_ncurses_getcolor): New function.
28935 (grub_ncurses_init): Initialize color pairs.
28936 (grub_ncurses_term): New member grub_ncurses_getcolor.
28937
28938 2008-08-05 Colin D Bennett <colin@gibibit.com>
28939
28940 High resolution timer support. Implemented for x86 CPUs using TSC.
28941 Extracted generic grub_millisleep() so it's linked in only as needed.
28942 This requires a Pentium compatible CPU; if the RDTSC instruction is
28943 not supported, then it falls back on the generic grub_get_time_ms()
28944 implementation that uses the machine's RTC.
28945
28946 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
28947 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
28948 `kern/generic/millisleep.c'.
28949
28950 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
28951 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
28952
28953 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
28954 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
28955
28956 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28957
28958 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
28959 `kern/generic/millisleep.c'.
28960
28961 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
28962
28963 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
28964
28965 * kern/generic/rtc_get_time_ms.c: New file.
28966
28967 * kern/generic/millisleep.c: New file.
28968
28969 * kern/misc.c: Don't include
28970 <kern/time.h> anymore.
28971 (grub_millisleep_generic): Removed.
28972
28973 * commands/sleep.c (grub_interruptible_millisleep): Uses
28974 grub_get_time_ms() instead of grub_get_rtc().
28975
28976 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
28977 function.
28978 (grub_cpu_is_cpuid_supported): New inline function.
28979 (grub_cpu_is_tsc_supported): New inline function.
28980 (grub_tsc_init): New function prototype.
28981 (grub_tsc_get_time_ms): New function prototype.
28982
28983 * kern/i386/tsc.c (grub_get_time_ms): New file.
28984
28985 * include/grub/time.h: Include <grub/types.h.
28986 (grub_millisleep_generic): Removed.
28987 (grub_get_time_ms): New prototype.
28988 (grub_install_get_time_ms): New prototype.
28989 (grub_rtc_get_time_ms): New prototype.
28990
28991 * kern/time.c (grub_get_time_ms): New function.
28992 (grub_install_get_time_ms): New function.
28993
28994 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
28995 <grub/time.h> anymore.
28996 (grub_millisleep): Removed.
28997 (grub_machine_init): Call grub_tsc_init.
28998
28999 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
29000 get_time_ms() implementation.
29001
29002 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
29003 (ieee1275_get_time_ms): New function.
29004 (grub_machine_init): Install get_time_ms() implementation.
29005
29006 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
29007 (grub_machine_init): Call grub_tsc_init().
29008 (grub_millisleep): Removed.
29009
29010 * kern/ieee1275/init.c (grub_millisleep): Removed.
29011 (grub_machine_init): Install ieee1275_get_time_ms()
29012 implementation.
29013 (ieee1275_get_time_ms): New function.
29014 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
29015 real work.
29016
29017 2008-08-05 Marco Gerards <marco@gnu.org>
29018
29019 * disk/ata.c: Include <grub/pci.h>.
29020 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
29021 (grub_ata_initialize): Rewritten.
29022 (grub_ata_device_initialize): New function.
29023
29024 2008-08-04 Pavel Roskin <proski@gnu.org>
29025
29026 * kern/main.c: Include grub/mm.h.
29027
29028 2008-08-04 Robert Millan <rmh@aybabtu.com>
29029
29030 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
29031 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
29032 corruption problem).
29033
29034 2008-08-04 Robert Millan <rmh@aybabtu.com>
29035
29036 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
29037 warnings introduced in my last commit.
29038
29039 2008-08-03 Robert Millan <rmh@aybabtu.com>
29040
29041 Make PCI available on all i386 architectures.
29042
29043 * include/grub/i386/pc/pci.h: Move from here ...
29044 * include/grub/i386/pci.h: ... to here.
29045
29046 * include/grub/i386/pc/pci.h: Remove.
29047 * include/grub/i386/efi/pci.h: Remove.
29048 * include/grub/x86_64/efi/pci.h: Remove.
29049
29050 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
29051 `<grub/cpu/pci.h>'.
29052
29053 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
29054 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
29055 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
29056
29057 * conf/i386-ieee1275.rmk: Likewise.
29058
29059 2008-08-03 Robert Millan <rmh@aybabtu.com>
29060
29061 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
29062 (grub_console_setcursor): Make it possible to set cursor off.
29063
29064 2008-08-03 Robert Millan <rmh@aybabtu.com>
29065
29066 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
29067 of modules instead of assuming which platform provides what.
29068 * util/update-grub.in: Likewise.
29069
29070 2008-08-03 Robert Millan <rmh@aybabtu.com>
29071
29072 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
29073 instead of `grub_install_dos_part' to determine whether a drive needs
29074 to be prepended to prefix (`grub_install_dos_part' is not reliable,
29075 because it can be overridden when loading GRUB via Multiboot).
29076
29077 2008-08-02 Robert Millan <rmh@aybabtu.com>
29078
29079 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
29080
29081 2008-08-02 Robert Millan <rmh@aybabtu.com>
29082
29083 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
29084 of informational grub_dprintf() calls.
29085
29086 2008-08-02 Robert Millan <rmh@aybabtu.com>
29087
29088 * disk/memdisk.c (memdisk_size): Don't initialize.
29089 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
29090
29091 * include/grub/i386/pc/kernel.h
29092 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
29093 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
29094 (grub_memdisk_image_size, grub_arch_memdisk_addr)
29095 (grub_arch_memdisk_size): Remove.
29096
29097 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
29098 field (was only used to transfer a constant). Add `type' field to
29099 support multiple module types.
29100 (grub_module_iterate): New function.
29101
29102 * kern/device.c (grub_device_open): Do not hide error messages
29103 when grub_disk_open() fails. Use grub_print_error() instead.
29104
29105 * kern/i386/pc/init.c (grub_arch_modules_addr)
29106 (grub_arch_memdisk_size): Remove functions.
29107 (grub_arch_modules_addr): Return the module address in high memory
29108 (now that it isn't copied anymore).
29109
29110 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
29111 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
29112 decompression routine (grub_total_module_size already includes that
29113 now). Don't copy modules back to low memory.
29114
29115 * kern/main.c: Include `<grub/mm.h>'.
29116 (grub_load_modules): Split out (and use) ...
29117 (grub_module_iterate): ... this function, which iterates through
29118 module objects and runs a hook.
29119 Comment out grub_mm_init_region() call, as it would cause non-ELF
29120 modules to be overwritten.
29121
29122 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
29123 the memdisk image in its own region, make it part of the module list.
29124 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
29125 (main): Parse --memdisk|-m option, and pass user-provided path as
29126 parameter to generate_image().
29127 (add_segments): Pass `memdisk_path' down to load_modules().
29128 (load_modules): Embed memdisk image in module section when requested.
29129 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
29130 `header.type' instead of `header.offset'.
29131
29132 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
29133 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
29134 (memdisk_mod_LDFLAGS): New variables.
29135 * conf/i386-coreboot.rmk: Likewise.
29136 * conf/i386-ieee1275.rmk: Likewise.
29137
29138 2008-08-02 Robert Millan <rmh@aybabtu.com>
29139
29140 * loader/i386/pc/multiboot.c (playground, forward_relocator)
29141 (backward_relocator): New variables. Used to allocate and relocate
29142 the payload, respectively.
29143 (grub_multiboot_load_elf32): Load into heap instead of requested
29144 address, install the appropriate relocator code in each bound of
29145 the payload, and set the entry point such that
29146 grub_multiboot_real_boot() will jump to one of them.
29147
29148 * kern/i386/loader.S (grub_multiboot_payload_size)
29149 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
29150 (grub_multiboot_payload_entry_offset): New variables.
29151 (grub_multiboot_real_boot): Set cpu context to what the relocator
29152 expects, and jump to the relocator instead of the payload.
29153
29154 * include/grub/i386/loader.h (grub_multiboot_payload_size)
29155 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
29156 (grub_multiboot_payload_entry_offset): Export.
29157
29158 2008-08-01 Bean <bean123ch@gmail.com>
29159
29160 * normal/menu_entry.c (editor_getline): Don't return the original
29161 string as result, as it will be released by lexer once it has done
29162 using it.
29163
29164 2008-08-01 Robert Millan <rmh@aybabtu.com>
29165
29166 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
29167 within menuentries, not before them.
29168 util/grub.d/10_hurd.in: Likewise.
29169
29170 2008-08-01 Bean <bean123ch@gmail.com>
29171
29172 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
29173 (bufio_mod_SOURCES): New macro.
29174 (bufio_mod_CFLAGS): Likewise.
29175 (bufio_mod_LDFLAGS): Likewise.
29176
29177 * include/grub/bufio.h: New file.
29178
29179 * io/bufio.c: Likewise.
29180
29181 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
29182 (grub_video_reader_png): Use grub_buffile_open to open file.
29183
29184 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
29185 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
29186
29187 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
29188 (grub_video_reader_tga): Use grub_buffile_open to open file.
29189
29190 * font/manager.c: Include <grub/bufio.h>.
29191 (add_font): Use grub_buffile_open to open file.
29192
29193 2008-07-31 Robert Millan <rmh@aybabtu.com>
29194
29195 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
29196 ELF segments, use a macro for arbitrarily accessing any of them instead
29197 of preparing a pointer that allows access to one at a time.
29198 (grub_multiboot_load_elf64): Likewise.
29199
29200 2008-07-31 Bean <bean123ch@gmail.com>
29201
29202 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
29203 GRUB_KERNEL_MACHINE_DATA_END.
29204
29205 2008-07-30 Robert Millan <rmh@aybabtu.com>
29206
29207 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
29208 Increase from 0x50 to 0x60.
29209 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
29210 use UUIDs to identify the root drive for them. If that's not
29211 possible, abort.
29212 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
29213 check, for cross-disk installs.
29214
29215 2008-07-30 Robert Millan <rmh@aybabtu.com>
29216
29217 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
29218 is non-empty, use it to set the `prefix' environment variable instead
29219 of the usual approach.
29220 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
29221 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
29222 environment variable instead of dummy make_install_device().
29223
29224 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
29225 (start): Insert a data section, with `grub_prefix' variable.
29226 * kern/i386/linuxbios/startup.S: Likewise.
29227
29228 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
29229 New variable reference.
29230 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
29231 New macro. Defines offset of `grub_prefix' within startup.S (relative
29232 to `start').
29233 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
29234 section within startup.S (relative to `start').
29235 * include/grub/i386/coreboot/kernel.h: Likewise.
29236
29237 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
29238 Overwrite grub_prefix with its contents, at the beginning of the
29239 first segment.
29240 (main): Understand -p|--prefix.
29241
29242 2008-07-30 Robert Millan <rmh@aybabtu.com>
29243
29244 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
29245
29246 2008-07-30 Robert Millan <rmh@aybabtu.com>
29247
29248 * term/i386/pc/vga_text.c (grub_console_cls): Use
29249 grub_console_gotoxy() to go back to beginning of the screen.
29250 Found by Patrick Georgi <patrick.georgi@coresystems.de>
29251
29252 2008-07-29 Christian Franke <franke@computer.org>
29253
29254 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
29255 Add conversion of emulated mount points on Cygwin.
29256
29257 2008-07-29 Christian Franke <franke@computer.org>
29258
29259 * util/update-grub.in: Add a check for admin
29260 group on Cygwin.
29261 Remove old `grub.cfg.new' before creation.
29262 Add `-f' to `mv' to handle the different filesystem
29263 semantics of Windows.
29264
29265 2008-07-29 Bean <bean123ch@gmail.com>
29266
29267 * normal/main.c (get_line): Fix buffer overflow bug.
29268
29269 2008-07-28 Robert Millan <rmh@aybabtu.com>
29270
29271 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
29272 (struct grub_apple_header): New struct. Describes the layout of
29273 the partmap header.
29274 (apple_partition_map_iterate): Check the header magic as well as the
29275 partition magic (which was already being checked).
29276
29277 2008-07-28 Pavel Roskin <proski@gnu.org>
29278
29279 * genmk.rb: Add a warning to the beginning of the output that
29280 it's a generated file and should not be edited.
29281
29282 2008-07-28 Robert Millan <rmh@aybabtu.com>
29283
29284 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
29285 with the same number are found, just use issue a warning with
29286 grub_dprintf(), as this error has been reported to be non-fatal.
29287
29288 2008-07-27 Robert Millan <rmh@aybabtu.com>
29289
29290 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
29291 information.
29292
29293 2008-07-27 Bean <bean123ch@gmail.com>
29294
29295 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
29296 (grub_fat_find_dir): Ignore case when comparing filename.
29297
29298 2008-07-27 Bean <bean123ch@gmail.com>
29299
29300 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
29301 smallino, as it's more descriptive, and i8count can be confused with
29302 the other field count.
29303 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
29304 inode type.
29305
29306 2008-07-27 Bean <bean123ch@gmail.com>
29307
29308 * commands/crc.c: New file.
29309
29310 * lib/crc.c: Likewise.
29311
29312 * include/grub/lib/crc.h: Likewise.
29313
29314 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
29315
29316 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
29317 (hexdump): Move this function to ...
29318
29319 * lib/hexdump.c: ... here.
29320
29321 * include/grub/hexdump.h: Renamed to ...
29322
29323 * include/grub/lib/hexdump.h: ... this.
29324
29325 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
29326
29327 * util/grub-editenv.c: Likewise.
29328
29329 * include/envblk.h: Renamed to ...
29330
29331 * include/lib/envblk.h: ... this.
29332
29333 * util/envblk.c: Renamed to ...
29334
29335 * lib/envblk.c: ... this.
29336
29337 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
29338 lib/hexdump.c.
29339 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
29340 (pkglib_MODULES): Add crc.mod.
29341 (hexdump_mod_SOURCES): Add lib/hexdump.c.
29342 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
29343 (crc_mod_SOURCES): New macro.
29344 (crc_mod_CFLAGS): Likewise.
29345 (crc_mod_LDFLAGS): Likewise.
29346
29347 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
29348
29349 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29350
29351 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29352
29353 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29354
29355 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
29356
29357 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
29358
29359 * commands/help.c: Include <grub/term.h>.
29360 (TERM_WIDTH): Removed. Updated all users.
29361
29362 2008-07-27 Pavel Roskin <proski@gnu.org>
29363
29364 * util/getroot.c (find_root_device): Rephrase a comment to avoid
29365 spurious warnings about a comment within a comment.
29366
29367 2008-07-25 Robert Millan <rmh@aybabtu.com>
29368
29369 * util/getroot.c (find_root_device): Skip devices that match
29370 /dev/dm-[0-9]. This lets the real device be found for any type of
29371 abstraction (LVM, EVMS, RAID..).
29372 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
29373 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
29374 device is found first, find_root_device() will now skip it.
29375
29376 2008-07-24 Pavel Roskin <proski@gnu.org>
29377
29378 * include/grub/types.h: Use __builtin_bswap32() and
29379 __builtin_bswap64() with gcc 4.3 and newer.
29380
29381 2008-07-24 Christian Franke <franke@computer.org>
29382
29383 * util/i386/pc/grub-install.in: If `--debug' is specified,
29384 pass `--verbose' to grub-setup.
29385 Abort script if make_system_path_relative_to_its_root() fails.
29386
29387 2008-07-24 Bean <bean123ch@gmail.com>
29388
29389 * configure.ac: Fixed a bug caused by the previous cygwin patch,
29390 variable `target_platform' should be `platform'.
29391
29392 2008-07-24 Bean <bean123ch@gmail.com>
29393
29394 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
29395 (grub_png_init_fixed_block): New function.
29396 (grub_png_decode_image_data): Handle fixed huffman code compression.
29397
29398 2008-07-24 Bean <bean123ch@gmail.com>
29399
29400 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
29401 (grub_pe2elf_SOURCES): New macro.
29402 (CLEANFILES): Add grub-pe2elf.
29403
29404 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
29405 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
29406 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
29407 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
29408 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
29409 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
29410 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
29411 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
29412 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
29413 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
29414 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
29415 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
29416 (GRUB_PE32_DT_FUNCTION): Likewise.
29417 (GRUB_PE32_REL_I386_DIR32): Likewise.
29418 (GRUB_PE32_REL_I386_REL32): Likewise.
29419 (grub_pe32_symbol): New structure.
29420 (grub_pe32_reloc): Likewise.
29421
29422 * util/grub-pe2elf.c: New file.
29423
29424 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
29425 start symbol in non pc platform.
29426
29427 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
29428
29429 The following patches are from Christian Franke.
29430
29431 * include/grub/dl.h: Remove .previous, gas supports this only
29432 for ELF format.
29433
29434 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
29435 Remove .type, gas supports this only for ELF format.
29436
29437 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
29438 nullbytes in symbol table. This fixes an infinite loop if table is
29439 zero filled.
29440
29441 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
29442 TARGET_IMG_LDFLAGS and EXEEXT.
29443
29444 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
29445 TARGET_IMG_LDFLAGS_AC.
29446 (grub_CHECK_STACK_ARG_PROBE): New function.
29447
29448 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
29449
29450 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
29451
29452 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
29453 to set TARGET_IMG_LD* accordingly.
29454 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
29455 Add call to grub_CHECK_STACK_ARG_PROBE.
29456 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
29457
29458 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
29459
29460 * genmk.rb: Add EXEEXT to CLEANFILES.
29461
29462 2008-07-23 Robert Millan <rmh@aybabtu.com>
29463
29464 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
29465 define the codes for arrows and lines used for the menu).
29466 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
29467 as well.
29468
29469 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
29470 fonts, because the latter are too slow.
29471
29472 2008-07-21 Bean <bean123ch@gmail.com>
29473
29474 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
29475 a20. Run keyboard test last, as it will cause macbook to halt.
29476
29477 2008-07-18 Pavel Roskin <proski@gnu.org>
29478
29479 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
29480 load foreign architecture modules correctly anyway. Keep
29481 support for loading host architecture modules, whether we
29482 compile them or not.
29483
29484 2008-07-17 Pavel Roskin <proski@gnu.org>
29485
29486 * configure.ac: Use -m32 or -m64 regardless of whether we had to
29487 change target_cpu. The compiler default can mismatch target_cpu
29488 in any case.
29489
29490 * disk/efi/efidisk.c: Fix format warnings on x86_64.
29491 * kern/efi/efi.c: Likewise.
29492
29493 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
29494 target compiler is functional.
29495 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
29496 are set up.
29497
29498 * configure.ac: Default to efi platform for x86_64-apple. Allow
29499 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
29500 adjustments from the rest, only do them if target is not
29501 explicitly given. Merge other adjustments with the final sanity
29502 check. Remove an extraneous check for supported CPU. Be
29503 specific which CPU and which platform is not supported.
29504
29505 * configure.ac: Default to pc platform for x86_64.
29506
29507 2008-07-17 Robert Millan <rmh@aybabtu.com>
29508
29509 Partial LinuxBIOS -> Coreboot rename.
29510
29511 * conf/i386-linuxbios.rmk: Renamed to ...
29512 * conf/i386-coreboot.rmk: ... this.
29513 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
29514 * configure.ac: Accept "coreboot" as input platform (but maintain
29515 compatibility with "linuxbios").
29516 * include/grub/i386/linuxbios: Renamed to ...
29517 * include/grub/i386/coreboot: ... this.
29518
29519 2008-07-17 Bean <bean123ch@gmail.com>
29520
29521 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
29522 (appleldr_mod_SOURCE): New variable.
29523 (appleldr_mod_CFLAGS): Likewise.
29524 (appleldr_mod_LDFLAGS): Likewise.
29525 (pci_mod_SOURCES): Likewise.
29526 (pci_mod_CFLAGS): Likewise.
29527 (pci_mod_LDFLAGS): Likewise.
29528 (lspci_mod_SOURCES): Likewise.
29529 (lspci_mod_CFLAGS): Likewise.
29530 (lspci_mod_LDFLAGS): Likewise.
29531
29532 * conf/x86_64-efi.rmk: New file.
29533
29534 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
29535 macro.
29536 (grub_efidisk_write): Likewise.
29537
29538 * include/efi/api.h (efi_call_0): New macro.
29539 (efi_call_1): Likewise.
29540 (efi_call_2): Likewise.
29541 (efi_call_3): Likewise.
29542 (efi_call_4): Likewise.
29543 (efi_call_5): Likewise.
29544 (efi_call_6): Likewise.
29545
29546 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
29547 grub_rescue_cmd_chainloader.
29548
29549 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
29550 (grub_pe32_optional_header): Change some fields based on i386 or
29551 x86_64 platform.
29552 (GRUB_PE32_PE32_MAGIC): Likewise.
29553
29554 * include/grub/efi/uga_draw.h: New file.
29555
29556 * include/grub/elf.h (STN_ABS): New constant.
29557 (R_X86_64_NONE): Relocation constant for x86_64.
29558 (R_X86_64_64): Likewise.
29559 (R_X86_64_PC32): Likewise.
29560 (R_X86_64_GOT32): Likewise.
29561 (R_X86_64_PLT32): Likewise.
29562 (R_X86_64_COPY): Likewise.
29563 (R_X86_64_GLOB_DAT): Likewise.
29564 (R_X86_64_JUMP_SLOT): Likewise.
29565 (R_X86_64_RELATIVE): Likewise.
29566 (R_X86_64_GOTPCREL): Likewise.
29567 (R_X86_64_32): Likewise.
29568 (R_X86_64_32S): Likewise.
29569 (R_X86_64_16): Likewise.
29570 (R_X86_64_PC16): Likewise.
29571 (R_X86_64_8): Likewise.
29572 (R_X86_64_PC8): Likewise.
29573
29574 * include/grub/i386/efi/pci.h: New file.
29575
29576 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
29577 Change it value based on platform.
29578 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
29579 (GRUB_E820_RAM): Likewise.
29580 (GRUB_E820_RESERVED): Likewise.
29581 (GRUB_E820_ACPI): Likewise.
29582 (GRUB_E820_NVS): Likewise.
29583 (GRUB_E820_EXEC_CODE): Likewise.
29584 (GRUB_E820_MAX_ENTRY): Likewise.
29585 (grub_e820_mmap): New structure.
29586 (linux_kernel_header): Change the efi field according to different
29587 kernel version, also field from linux_kernel_header.
29588
29589 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
29590
29591 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
29592 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
29593 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
29594 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
29595 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
29596 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
29597 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
29598 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
29599 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
29600 (GRUB_PCI_ADDR_IO_MASK): Likewise.
29601
29602 * include/grub/x86_64/efi/kernel.h: New file.
29603
29604 * include/grub/x86_64/efi/loader.h: Likewise.
29605
29606 * include/grub/x86_64/efi/machine.h: Likewise.
29607
29608 * include/grub/x86_64/efi/pci.h: Likewise.
29609
29610 * include/grub/x86_64/efi/time.h: Likewise.
29611
29612 * include/grub/x86_64/linux.h: Likewise.
29613
29614 * include/grub/x86_64/setjmp.h: Likewise.
29615
29616 * include/grub/x86_64/time.h: Likewise.
29617
29618 * include/grub/x86_64/types.h: Likewise.
29619
29620 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
29621 GRUB_TARGET_SIZEOF_VOID_P.
29622
29623 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
29624 (grub_efi_locate_handle): Likewise.
29625 (grub_efi_open_protocol): Likewise.
29626 (grub_efi_set_text_mode): Likewise.
29627 (grub_efi_stall): Likewise.
29628 (grub_exit): Likewise.
29629 (grub_reboot): Likewise.
29630 (grub_halt): Likewise.
29631 (grub_efi_exit_boot_services): Likewise.
29632 (grub_get_rtc): Likewise.
29633
29634 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
29635 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
29636 (grub_efi_allocate_pages): Wrap efi calls.
29637 (grub_efi_free_pages): Wrap efi calls.
29638 (grub_efi_get_memory_map): Wrap efi calls.
29639
29640 * kern/x86_64/dl.c: New file.
29641
29642 * kern/x86_64/efi/callwrap.S: Likewise.
29643
29644 * kern/x86_64/efi/startup.S: Likewise.
29645
29646 * loader/efi/appleloader.c: Likewise.
29647
29648 * loader/efi/chainloader.c (cmdline): New variable.
29649 (grub_chainloader_unload): Wrap efi calls.
29650 (grub_chainloader_boot): Likewise.
29651 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
29652 command line.
29653
29654 * loader/efi/chainloader_normal.c (chainloader_command):
29655 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
29656 command line.
29657
29658 * loader/i386/efi/linux.c (allocate_pages): Change allocation
29659 method.
29660 (grub_e820_add_region): New function.
29661 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
29662 booting.
29663 (grub_find_video_card): New function.
29664 (grub_linux_setup_video): New function.
29665 (grub_rescue_cmd_linux): Probe for video information.
29666
29667 * normal/x86_64/setjmp.S: New file.
29668
29669 * term/efi/console.c (map_char): New function.
29670 (grub_console_putchar): Map unicode char.
29671 (grub_console_checkkey): Wrap efi calls.
29672 (grub_console_getkey): Likewise.
29673 (grub_console_getwh): Likewise.
29674 (grub_console_gotoxy): Likewise.
29675 (grub_console_cls): Likewise.
29676 (grub_console_setcolorstate): Likewise.
29677 (grub_console_setcursor): Likewise.
29678
29679 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
29680
29681 2008-07-16 Pavel Roskin <proski@gnu.org>
29682
29683 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
29684 format strings.
29685
29686 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
29687 pointer, not an integer. This fixes a warning and prevents
29688 precision loss on 64-bit systems.
29689 (relocate_addresses): Remove unneeded cast.
29690
29691 2008-07-15 Pavel Roskin <proski@gnu.org>
29692
29693 * kern/i386/ieee1275/init.c: Include grub/cache.h.
29694
29695 * term/ieee1275/ofconsole.c: Disable code unused on i386.
29696
29697 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
29698 Fix comparison between signed and unsigned.
29699
29700 * include/grub/i386/ieee1275/console.h: Declare
29701 grub_console_init() and grub_console_fini().
29702
29703 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
29704 It's empty and unused.
29705
29706 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
29707 beginning to avoid warnings with some compilers.
29708
29709 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
29710 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
29711
29712 2008-07-14 Pavel Roskin <proski@gnu.org>
29713
29714 * kern/env.c (grub_register_variable_hook): Don't copy empty
29715 string, it leaks memory. Pass "" to grub_env_set(), it should
29716 handle constant strings.
29717
29718 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
29719 * commands/cmp.c (grub_cmd_cmp): Likewise.
29720 * kern/dl.c (grub_dl_flush_cache): Likewise.
29721 (grub_dl_load_core): Likewise.
29722 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
29723 (grub_elf64_load_phdrs): Likewise.
29724
29725 2008-07-13 Pavel Roskin <proski@gnu.org>
29726
29727 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
29728 between signed and unsigned.
29729 (LzmaEnc_Finish): Fix warning about an unused parameter.
29730
29731 2008-07-13 Bean <bean123ch@gmail.com>
29732
29733 * Makefile.in (enable_lzo): New rule.
29734
29735 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
29736
29737 * configure.ac (ENABLE_LZO): New option --enable-lzo.
29738
29739 * boot/i386/pc/lnxboot.S: #include <config.h>.
29740
29741 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
29742 its value according to the compression algorithm used, lzo or lzma.
29743
29744 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
29745 compression algorithm according to configure macro.
29746
29747 * kern/i386/pc/startup.S (codestart): Likewise.
29748
29749 * kern/i386/pc/lzma_decode.S: New file.
29750
29751 * include/grub/lib/LzFind.h: Likewise.
29752
29753 * include/grub/lib/LzHash.h: Likewise.
29754
29755 * include/grub/lib/LzmaDec.h: Likewise.
29756
29757 * include/grub/lib/LzmaEnc.h: Likewise.
29758
29759 * include/grub/lib/LzmaTypes.h: Likewise.
29760
29761 * lib/LzFind.c: Likewise.
29762
29763 * lib/LzmaDec.c: Likewise.
29764
29765 * lib/LzmaEnc.c: Likewise.
29766
29767 2008-07-13 Bean <bean123ch@gmail.com>
29768
29769 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
29770 (grub_ext4_extent_header): New structure.
29771 (grub_ext4_extent): Likewise.
29772 (grub_ext4_extent_idx): Likewise.
29773 (grub_ext4_find_leaf): New function.
29774 (grub_ext2_read_block): Handle extents.
29775
29776 2008-07-12 Robert Millan <rmh@aybabtu.com>
29777
29778 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
29779
29780 2008-07-11 Robert Millan <rmh@aybabtu.com>
29781
29782 * util/grub.d/40_custom.in: New file. Example on how to add custom
29783 entries to /etc/grub.d.
29784 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
29785 40_custom (implicitly, by merging all the grub.d rules).
29786
29787 2008-07-11 Pavel Roskin <proski@gnu.org>
29788
29789 * commands/read.c (grub_getline): Fix invalid memory access.
29790 Don't add newline to the variable value.
29791
29792 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
29793 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
29794 (serial_hw_get_port): Check validity of the port number.
29795 (grub_cmd_serial): Check return value of serial_hw_get_port().
29796
29797 2008-07-07 Pavel Roskin <proski@gnu.org>
29798
29799 * boot/i386/pc/diskboot.S (notification_string): Replace
29800 "Loading kernel" with just "loading". This is shorter, less
29801 confusing and saves a few bytes for possible future changes.
29802
29803 2008-07-05 Pavel Roskin <proski@gnu.org>
29804
29805 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
29806 size for ATAPI devices, they are undefined. Output sector
29807 number in decimal form.
29808
29809 * disk/ata.c: Use named constants for status bits.
29810
29811 2008-07-04 Pavel Roskin <proski@gnu.org>
29812
29813 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
29814 grub_addr_t before casting it to the void pointer to fix a
29815 warning. Non-addressable regions are discarded earlier.
29816 (grub_arch_modules_addr): Cast _end to grub_addr_t.
29817 * kern/i386/linuxbios/table.c: Include grub/misc.h.
29818 (check_signature): Don't shadow table_header.
29819 (grub_linuxbios_table_iterate): Cast numeric constants to
29820 grub_linuxbios_table_header_t.
29821 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
29822 grub_stop().
29823
29824 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
29825 prevent warnings.
29826
29827 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
29828 pointer, which can cause warnings. Support 64-bit addresses.
29829
29830 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
29831 of sizeof(long). This fixes PowerPC image generation on x86_64.
29832
29833 2008-07-04 Robert Millan <rmh@aybabtu.com>
29834
29835 This fixes a performance issue when pc & gpt partmap iterators
29836 didn't abort iteration even after our hook found what it was
29837 looking for (often causing expensive probes of non-existent drives).
29838
29839 Some callers relied on previous buggy behaviour, since they would
29840 raise an error when their own hooks caused early abortion of its
29841 iteration.
29842
29843 * kern/device.c (grub_device_open): Improve error message.
29844 * disk/lvm.c (grub_lvm_open): Likewise.
29845 * disk/raid.c (grub_raid_open): Likewise.
29846
29847 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
29848 when hook requests it, independently of grub_errno.
29849 (pc_partition_map_probe): Do not fail when find_func() caused
29850 early abortion of pc_partition_map_iterate().
29851
29852 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
29853 when hook requests it, independently of grub_errno.
29854 (gpt_partition_map_probe): Do not fail when find_func() caused
29855 early abortion of gpt_partition_map_iterate().
29856
29857 * kern/partition.c (grub_partition_iterate): Abort parent iteration
29858 when hook requests it, independently of grub_errno. Do not fail when
29859 part_map_iterate_hook() caused early abortion of p->iterate().
29860
29861 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
29862 when grub_partition_iterate() returned with non-zero.
29863
29864 2008-07-03 Pavel Roskin <proski@gnu.org>
29865
29866 * disk/ata.c (grub_ata_pio_write): Check status before writing,
29867 like we do in grub_ata_pio_read().
29868 (grub_ata_readwrite): Always write individual sectors. Fix the
29869 sector count for the remainder.
29870 (grub_ata_write): Enable writing to ATA devices. Correctly
29871 report error for ATAPI devices.
29872
29873 2008-07-02 Pavel Roskin <proski@gnu.org>
29874
29875 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
29876 warning.
29877
29878 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
29879 for every read sector, we already increment it for the whole
29880 batch. This fixes reading more than 256 sectors at once.
29881
29882 * util/grub-editenv.c (cmd_info): Cast argument to long
29883 explicitly. ptrdiff_t reduces to int on i386.
29884
29885 * util/grub-editenv.c (main): Be specific which parameter is
29886 missing.
29887
29888 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
29889 (memdisk): Make memdisk_orig_addr a pointer.
29890
29891 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
29892 for file offsets, use grub_off_t instead. Fix printf format
29893 warnings.
29894
29895 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
29896 there. Real unexpected warnings should not drown in the noise
29897 about known problems.
29898
29899 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
29900 grub_disk_addr_t for memory addresses.
29901
29902 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
29903 explicitly to fix a warning.
29904
29905 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
29906
29907 * Makefile.in (MODULE_LDFLAGS): New variable.
29908 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
29909 the linker accepts --build-id=none.
29910 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
29911 MODULE_LDFLAGS.
29912 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
29913
29914 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
29915 those in Linux XFS code. Provide a way to access 64-bit parent
29916 inode.
29917 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
29918 the end of struct grub_xfs_dir_header.
29919
29920 2008-07-02 Bean <bean123ch@gmail.com>
29921
29922 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
29923 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29924 and GRUB_IEEE1275_FLAG_NO_ANSI.
29925
29926 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
29927 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
29928 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
29929
29930 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
29931 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
29932
29933 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
29934 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
29935
29936 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
29937 esc sequence on non ANSI terminal.
29938 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
29939
29940 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
29941 beginning of file.
29942
29943 2008-07-02 Bean <bean123ch@gmail.com>
29944
29945 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
29946 (grub_editenv_SOURCES): New variable.
29947 (pkglib_MODULES): Add loadenv.mod.
29948 (loadenv_mod_SOURCES): New variable.
29949 (loadenv_mod_CFLAGS): Likewise.
29950 (loadenv_mod_LDFLAGS): Likewise.
29951
29952 * include/grub/envblk.h: New file.
29953
29954 * util/envblk.c: New file.
29955
29956 * util/grub-editenv.c: New file.
29957
29958 * commands/loadenv.c: New file.
29959
29960 2008-07-01 Pavel Roskin <proski@gnu.org>
29961
29962 * include/multiboot2.h (struct multiboot_tag_module): Use char,
29963 not unsigned char. This fixes warnings and is consistent with
29964 other tags.
29965
29966 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
29967
29968 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
29969
29970 * term/tparm.c (analyze): Always set *popcount.
29971
29972 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
29973 cast to fix a warning.
29974
29975 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
29976 cast to suppress a warning.
29977
29978 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
29979 grub_fshelp_read_file() expects.
29980
29981 * fs/fat.c: Fix UUID calculation on big-endian systems. We
29982 write uuid as a 32-bit value in CPU byte order, so declare and
29983 use it as such.
29984
29985 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
29986 long if the format specifier expects it.
29987 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
29988 * partmap/pc.c (pc_partition_map_iterate): Likewise.
29989 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
29990 long to fix a warning.
29991 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
29992 grub_dprintf() arguments to fix warnings.
29993
29994 2008-06-30 Pavel Roskin <proski@gnu.org>
29995
29996 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
29997 install_bsd_part immediately before core.img is embedded or
29998 modified on disk. This fixes core.img verification if core.img
29999 cannot be embedded.
30000
30001 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
30002 core_path to calculate the blocklist.
30003 Patch from Javier Martín <lordhabbit@gmail.com>
30004
30005 2008-06-29 Robert Millan <rmh@aybabtu.com>
30006
30007 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
30008 block to disk block.
30009 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
30010 Patch from Niels Böhm <bitbucket@arcor.de>
30011
30012 2008-06-29 Robert Millan <rmh@aybabtu.com>
30013
30014 * util/update-grub_lib.in (font_path): Search for fonts in
30015 /boot/grub first, which is more likely to be readable (we aren't
30016 deciding where fonts live, just looking for them).
30017
30018 2008-06-26 Pavel Roskin <proski@gnu.org>
30019
30020 * util/biosdisk.c (read_device_map): Don't leave dead map
30021 entries for devices failing stat() check.
30022
30023 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
30024 core_path_dev for the core.img path on the target device.
30025
30026 2008-06-26 Robert Millan <rmh@aybabtu.com>
30027
30028 * disk/fs_uuid.c: New file.
30029 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
30030 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
30031 (fs_uuid_mod_LDFLAGS): New variables.
30032 * include/grub/disk.h (grub_disk_dev_id): Add
30033 `GRUB_DISK_DEVICE_UUID_ID'.
30034 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
30035 implement iterate().
30036
30037 2008-06-26 Robert Millan <rmh@aybabtu.com>
30038
30039 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
30040 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
30041 Linux image includes no initrd.
30042
30043 2008-06-21 Javier Martín <lordhabbit@gmail.com>
30044
30045 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
30046 call to resolve the core image location that effectively appended the
30047 name twice.
30048
30049 2008-06-21 Robert Millan <rmh@aybabtu.com>
30050
30051 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
30052 call from here ...
30053
30054 * util/grub.d/10_hurd.in: ... to here ...
30055 * util/grub.d/10_linux.in: ... and here.
30056
30057 2008-06-19 Robert Millan <rmh@aybabtu.com>
30058
30059 * kern/main.c (grub_main): Export `prefix' variable immediately
30060 after it has been set by grub_machine_set_prefix().
30061
30062 2008-06-19 Robert Millan <rmh@aybabtu.com>
30063
30064 * commands/search.c (search_label, search_fs_uuid, search_file): Print
30065 search result when not saving to variable, not the other way around.
30066 When saving to variable, abort iteration as soon as a match is found.
30067
30068 2008-06-19 Robert Millan <rmh@aybabtu.com>
30069
30070 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
30071 check for partition that provides /boot/grub. Its logic is flawed,
30072 as it prevents prepare_grub_to_access_device() from being called
30073 multiple times.
30074
30075 2008-06-19 Robert Millan <rmh@aybabtu.com>
30076
30077 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
30078 "insmod" command directly when abstraction modules are needed,
30079 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
30080 since it had already been processed).
30081
30082 2008-06-19 Pavel Roskin <proski@gnu.org>
30083
30084 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
30085 changed. This is needed in case GRUB_LIBDIR changes.
30086 * conf/i386-ieee1275.rmk: Likewise.
30087 * conf/i386-linuxbios.rmk: Likewise.
30088 * conf/i386-pc.rmk: Likewise.
30089 * conf/powerpc-ieee1275.rmk: Likewise.
30090
30091 2008-06-18 Pavel Roskin <proski@gnu.org>
30092
30093 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
30094 kernel_elf_symlist.c to symlist.c for consistency with other
30095 architectures. Update all users.
30096 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
30097
30098 2008-06-18 Robert Millan <rmh@aybabtu.com>
30099
30100 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
30101 it in prefix.
30102
30103 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
30104 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
30105 a RAID device, run setup() for all members independently on whether
30106 LVM abstraction is being used.
30107 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
30108 If grub-mkimage has set `*install_dos_part == -2', don't override this
30109 value.
30110 Perform *install_dos_part adjustments independently on whether
30111 we're embedding or not.
30112 Clarify error message when image is too big for embedding.
30113 Remove duplicate *install_dos_part stanza.
30114
30115 2008-06-17 Robert Millan <rmh@aybabtu.com>
30116
30117 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
30118 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
30119 variables.
30120 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
30121 values in grub_ofconsole_normal_color and
30122 grub_ofconsole_highlight_color (they're not directly related to
30123 background and foreground).
30124 (grub_ofconsole_setcolorstate): Extract background and foreground
30125 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
30126
30127 2008-06-17 Robert Millan <rmh@aybabtu.com>
30128
30129 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
30130 /boot/grub for the check in last commit, not /boot (they could be
30131 different partitions).
30132
30133 2008-06-16 Robert Millan <rmh@aybabtu.com>
30134
30135 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
30136 asked to setup access for the same partition that provides /boot,
30137 don't bother using UUIDs since our root already has the value we
30138 want.
30139
30140 2008-06-16 Robert Millan <rmh@aybabtu.com>
30141
30142 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
30143 I2O devices.
30144 Patch from Sven Mueller <sven@debian.org>.
30145
30146 2008-06-16 Robert Millan <rmh@aybabtu.com>
30147
30148 * util/update-grub.in: Check for $EUID instead of $UID.
30149 Reported by Vincent Zweije.
30150
30151 2008-06-16 Bean <bean123ch@gmail.com>
30152
30153 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
30154 (grub_ext2_read_block): Likewise.
30155 (grub_ext2_read_inode): Likewise.
30156 (grub_ext2_mount): Likewise.
30157 (grub_ext2_close): Likewise.
30158 (grub_ext3_get_journal): Removed.
30159
30160 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
30161 (grub_reiserfs_read_symlink): Likewise.
30162 (grub_reiserfs_mount): Likewise.
30163 (grub_reiserfs_open): Likewise.
30164 (grub_reiserfs_read): Likewise.
30165 (grub_reiserfs_close): Likewise.
30166 (grub_reiserfs_get_journal): Removed.
30167
30168 * fs/fshelp.c (grub_fshelp_read): Removed.
30169 (grub_fshelp_map_block): Likewise.
30170
30171 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
30172 (grub_fshelp_journal): Likewise.
30173 (grub_fshelp_read): Likewise.
30174 (grub_fshelp_map_block): Likewise.
30175
30176 2008-06-16 Pavel Roskin <proski@gnu.org>
30177
30178 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
30179 floating point anymore.
30180 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
30181
30182 2008-06-15 Pavel Roskin <proski@gnu.org>
30183
30184 * commands/ls.c (grub_ls_list_files): Use integer calculations
30185 for human readable format, avoid floating point use.
30186 * kern/misc.c (grub_ftoa): Remove.
30187 (grub_vsprintf): Remove floating point support.
30188
30189 2008-06-15 Robert Millan <rmh@aybabtu.com>
30190
30191 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
30192 devices.
30193 Reported by Max Vozeler.
30194
30195 2008-06-15 Robert Millan <rmh@aybabtu.com>
30196
30197 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
30198 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
30199 skipped later.
30200 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
30201 the beginning of the prefix.
30202
30203 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
30204 It is assumed that if we have a memdisk, grub-mkimage has set
30205 grub_prefix to include the "(memdisk)" drive in it.
30206
30207 2008-06-15 Robert Millan <rmh@aybabtu.com>
30208
30209 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
30210 Initialize keyboard controller after registering the terminal, so that
30211 grub_printf() can be called from grub_keyboard_controller_init().
30212
30213 2008-06-15 Robert Millan <rmh@aybabtu.com>
30214
30215 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
30216 extent-btree which is written as big endian on disk.
30217 Reported by Alain Greppin <al@chilibi.org>.
30218
30219 2008-06-14 Robert Millan <rmh@aybabtu.com>
30220
30221 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
30222 * util/i386/pc/grub-install.in (modules): Likewise.
30223
30224 2008-06-13 Pavel Roskin <proski@gnu.org>
30225
30226 * commands/ls.c (grub_ls_list_files): Fix format warnings.
30227
30228 2008-06-13 Bean <bean123ch@gmail.com>
30229
30230 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
30231
30232 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
30233
30234 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
30235 to indicate sparse block.
30236
30237 2008-06-12 Pavel Roskin <proski@gnu.org>
30238
30239 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
30240 number, grub_fshelp_read() does it for us.
30241
30242 * fs/fshelp.c (grub_fshelp_read): New function. Implement
30243 linear disk read with journal translation.
30244 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
30245 * include/grub/fshelp.h: Declare grub_fshelp_read().
30246
30247 2008-06-09 Pavel Roskin <proski@gnu.org>
30248
30249 * fs/minix.c (grub_minix_mount): Handle error reading
30250 superblock.
30251
30252 2008-06-08 Robert Millan <rmh@aybabtu.com>
30253
30254 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
30255 don't append the RAID prefix afterwards.
30256 Reported by Clint Adams.
30257
30258 2008-06-08 Robert Millan <rmh@aybabtu.com>
30259
30260 Based on description from Pavel:
30261 * kern/disk.c (grub_disk_check_range): Rename to ...
30262 (grub_disk_adjust_range): ... this. Add a comment explaining the
30263 tasks performed by this function.
30264
30265 2008-06-08 Robert Millan <rmh@aybabtu.com>
30266
30267 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
30268 `num_serial' (for consistency with other variables).
30269 (struct grub_ntfs_data): Add `uuid' member.
30270 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
30271 (grub_ntfs_uuid): New function.
30272 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
30273
30274 2008-06-07 Pavel Roskin <proski@gnu.org>
30275
30276 * util/biosdisk.c (open_device): Revert last change to the
30277 function, it broke installation. The sector needs to be
30278 different dependent on which device is opened.
30279
30280 2008-06-06 Robert Millan <rmh@aybabtu.com>
30281
30282 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
30283 rest of GRUB, and breakage doesn't happen if its value were modified.
30284
30285 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
30286 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
30287 a constant (same value).
30288 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
30289 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
30290
30291 2008-06-06 Robert Millan <rmh@aybabtu.com>
30292
30293 * util/biosdisk.c (open_device): Do not modify sector offset when
30294 accessing a partition. kern/disk.c already handles this for us.
30295
30296 2008-06-06 Robert Millan <rmh@aybabtu.com>
30297
30298 * util/grub-emu.c (grub_machine_init): Move code in this function from
30299 here ...
30300 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
30301 segfault in case grub_printf() is called).
30302
30303 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
30304 grub_probe. Update all users not to explicitly add it again.
30305 (grub_device): New variable; contains corresponding device for grubdir.
30306 (fs_module, partmap_module, devabstraction_module): Pass
30307 `--device ${grub_device}' to grub_probe to avoid traversing /dev
30308 every time.
30309
30310 2008-06-05 Robert Millan <rmh@aybabtu.com>
30311
30312 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
30313 is found, print it (same layout as with labels).
30314
30315 2008-06-04 Robert Millan <rmh@aybabtu.com>
30316
30317 * util/biosdisk.c (get_drive): Rename to ...
30318 (find_grub_drive): ... this. Update all users.
30319
30320 (get_os_disk): Rename to ...
30321 (convert_system_partition_to_system_disk): ... this. Update all users.
30322
30323 (find_drive): Rename to ...
30324 (find_system_device): ... this. Update all users.
30325
30326 2008-06-04 Robert Millan <rmh@aybabtu.com>
30327
30328 * util/biosdisk.c (get_os_disk): Handle IDA devices.
30329 * util/grub-mkdevicemap.c (get_mmc_disk_name)
30330 (make_device_map): Likewise.
30331
30332 2008-06-01 Robert Millan <rmh@aybabtu.com>
30333
30334 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
30335 before dereferencing it.
30336
30337 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
30338 union with fat12/fat16-specific ones. Add some new fields, including
30339 `num_serial' for both versions.
30340 (struct grub_fat_data): Add `uuid' member.
30341 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
30342 names. Initialize `data->uuid' using `num_serial'.
30343 (grub_fat_uuid): New function.
30344 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
30345
30346 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
30347 (grub_reiserfs_uuid): New function.
30348 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
30349 member.
30350
30351 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
30352 (grub_xfs_uuid): New function.
30353 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
30354
30355 2008-06-01 Robert Millan <rmh@aybabtu.com>
30356
30357 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
30358 code that is backward compatible with pre-uuid search command.
30359
30360 2008-05-31 Robert Millan <rmh@aybabtu.com>
30361
30362 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
30363 floppies after everything else, to ensure floppy drive isn't accessed
30364 unnecessarily (patch from Bean).
30365
30366 2008-05-31 Robert Millan <rmh@aybabtu.com>
30367
30368 * commands/search.c (search_label, search_fs_uuid, search_file): Do
30369 not print device names when we were asked to set a variable.
30370
30371 2008-05-31 Robert Millan <rmh@aybabtu.com>
30372
30373 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
30374 using "cursor-on" and "cursor-off" commands (understood at least by
30375 the Open Firmware flavour on OLPC).
30376
30377 2008-05-31 Michael Gorven <michael@gorven.za.net>
30378
30379 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
30380 on and off sequences.
30381
30382 2008-05-31 Robert Millan <rmh@aybabtu.com>
30383
30384 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
30385 * util/update-grub.in: Likewise.
30386
30387 2008-05-30 Pavel Roskin <proski@gnu.org>
30388
30389 * util/biosdisk.c (linux_find_partition): Simplify logic and
30390 make the code more universal. Keep special processing for
30391 devfs, but use a simple rule for all other devices. If the
30392 device ends with a number, append 'p' and the partition number.
30393 Otherwise, append only the partition number.
30394
30395 2008-05-30 Robert Millan <rmh@aybabtu.com>
30396
30397 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
30398 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
30399 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
30400 the `root' parameter to Linux.
30401
30402 2008-05-30 Robert Millan <rmh@aybabtu.com>
30403
30404 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
30405 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
30406 --fs_uuid with --fs-uuid.
30407 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
30408 all filesystems support them).
30409
30410 2008-05-30 Robert Millan <rmh@aybabtu.com>
30411
30412 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
30413 grub_printf() flags, since we're printing in units of 2 bytes.
30414
30415 2008-05-30 Robert Millan <rmh@aybabtu.com>
30416
30417 * util/grub.d/00_header.in: Remove obsolete comment referencing
30418 convert_system_path_to_grub_path().
30419 * util/update-grub.in: Likewise.
30420 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
30421 (convert_system_path_to_grub_path): Add a warning message explaining
30422 that this function is deprecated. Rely on is_path_readable_by_grub()
30423 for the readability checks.
30424 (font_path): Use is_path_readable_by_grub() for the readability
30425 check rather than convert_system_path_to_grub_path().
30426
30427 2008-05-30 Robert Millan <rmh@aybabtu.com>
30428
30429 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
30430 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
30431 converting it first.
30432 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
30433 grub.cfg for access to font file, and afterwards call it again to set
30434 the root device.
30435
30436 2008-05-30 Robert Millan <rmh@aybabtu.com>
30437
30438 * commands/search.c (options): Add --fs_uuid option.
30439 (search_fs_uuid): New function.
30440 (grub_cmd_search): Fix --set argument passing.
30441 Use search_fs_uuid() when requested via --fs_uuid.
30442 (grub_search_init): Update help message.
30443 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
30444 and redeclare it as an array of 16-bit words.
30445 (grub_ext2_uuid): New function.
30446 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
30447 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
30448 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
30449 (GRUB_DEVICE_BOOT_UUID): New variables.
30450 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
30451 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
30452 whenever possible.
30453 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
30454 just assume `root' variable has the right value.
30455 * util/grub.d/10_linux.in: Likewise.
30456 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
30457 via PRINT_FS_UUID.
30458 (main): Recognise `-t fs_uuid' argument.
30459
30460 2008-05-30 Robert Millan <rmh@aybabtu.com>
30461
30462 * util/biosdisk.c (map): Redefine structure to hold information
30463 about GRUB drive name.
30464 (get_drive): Reimplement without assuming (and verifying) BIOS-like
30465 drive names.
30466 (call_hook): Remove.
30467 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
30468 member. Assume drive has partitions.
30469 (grub_util_biosdisk_open): Access device names via `.device' struct
30470 member.
30471 (open_device): Likewise.
30472 (find_drive): Likewise.
30473 (read_device_map): Adjust map[] usage to match the new struct
30474 definition. Don't check for duplicates (still possible, but not cheap
30475 anymore).
30476 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
30477 (make_device_name): Remove assumption of BIOS-like drive names.
30478
30479 2008-05-30 Pavel Roskin <proski@gnu.org>
30480
30481 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
30482 compiling execute.c doesn't need grub_script.tab.h anymore.
30483 (normal/command.c_DEPENDENCIES): Likewise.
30484 (normal/function.c_DEPENDENCIES): Likewise.
30485 * conf/i386-ieee1275.rmk: Likewise.
30486 * conf/i386-linuxbios.rmk: Likewise.
30487 * conf/i386-pc.rmk: Likewise.
30488 * conf/powerpc-ieee1275.rmk: Likewise.
30489 * conf/sparc64-ieee1275.rmk: Likewise.
30490
30491 2008-05-29 Pavel Roskin <proski@gnu.org>
30492
30493 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
30494 when scanning metadata for volume group name.
30495
30496 * include/grub/script.h: Don't include grub_script.tab.h. It's
30497 a generated file, which may only be included from the files with
30498 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
30499 use union YYSTYPE, as the later allows forward declaration.
30500 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
30501
30502 2008-05-29 Robert Millan <rmh@aybabtu.com>
30503
30504 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
30505 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
30506 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
30507 (grub_console_checkkey): Add grub_dprintf() call to report unknown
30508 scan codes.
30509
30510 2008-05-29 Robert Millan <rmh@aybabtu.com>
30511
30512 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
30513 control key combinations.
30514
30515 2008-05-29 Robert Millan <rmh@aybabtu.com>
30516
30517 * util/powerpc/ieee1275/grub-install.in: Move from here ...
30518 * util/ieee1275/grub-install.in: ... to here.
30519 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
30520 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
30521 (grub_install_SOURCES): Likewise.
30522
30523 2008-05-29 Robert Millan <rmh@aybabtu.com>
30524
30525 * fs/affs.c: Update copyright year.
30526 * fs/ext2.c: Likewise.
30527 * fs/fshelp.c: Likewise.
30528 * fs/hfsplus.c: Likewise.
30529 * fs/ntfs.c: Likewise.
30530 * fs/xfs.c: Likewise.
30531 * include/grub/fshelp.h: Likewise.
30532 * util/grub-mkdevicemap.c: Likewise.
30533
30534 2008-05-28 Robert Millan <rmh@aybabtu.com>
30535
30536 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
30537 might need to be fatfs to support some firmware implementations
30538 (e.g. OFW or EFI).
30539
30540 2008-05-28 Robert Millan <rmh@aybabtu.com>
30541
30542 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
30543 devices.
30544 * util/grub-mkdevicemap.c (get_mmc_disk_name)
30545 (make_device_map): Likewise.
30546
30547 2008-05-20 Bean <bean123ch@gmail.com>
30548
30549 * fs/fshelp.c (grub_fshelp_map_block): New function.
30550 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
30551 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
30552
30553 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
30554 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
30555 (grub_fshelp_journal): New structure.
30556 (grub_fshelp_map_block): New function prototype.
30557 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
30558 (grub_fshelp_map_block): Likewise.
30559
30560 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
30561 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
30562 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
30563 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
30564 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
30565 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
30566 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
30567 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
30568 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
30569 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
30570 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
30571 (grub_ext2_sblock): New members for journal support.
30572 (grub_ext3_journal_header): New structure.
30573 (grub_ext3_journal_revoke_header): Likewise.
30574 (grub_ext3_journal_block_tag): Likewise.
30575 (grub_ext3_journal_sblock): Likewise.
30576 (grub_fshelp_node): New members logfile and journal.
30577 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
30578 grub_fshelp_map_block to get real block number.
30579 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
30580 number.
30581 (grub_ext2_read_inode): Likewise.
30582 (grub_ext3_get_journal): New function.
30583 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
30584 (grub_ext2_close): Release memory used by journal.
30585
30586 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
30587 (REISERFS_MAGIC_DESC_BLOCK): New macro.
30588 (grub_reiserfs_transaction_header): Renamed to
30589 grub_reiserfs_description_block, replace field data with real_blocks.
30590 (grub_reiserfs_commit_block): New structure.
30591 (grub_reiserfs_data): New member journal.
30592 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
30593 number.
30594 (grub_reiserfs_read_symlink): Likewise.
30595 (grub_reiserfs_iterate_dir): Likewise.
30596 (grub_reiserfs_open): Likewise.
30597 (grub_reiserfs_read): Likewise.
30598 (grub_reiserfs_get_journal): New function.
30599 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
30600 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
30601 using grub_reiserfs_get_journal.
30602 (grub_reiserfs_close): Release memory used by journal.
30603
30604 * fs/affs.c (grub_affs_read_block): Change block type to
30605 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
30606
30607 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
30608
30609 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
30610
30611 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
30612
30613 * fs/udf.c (grub_udf_read_block): Change block type to
30614 grub_disk_addr_t. Use type cast to avoid warning.
30615
30616 * fs/xfs.c (grub_xfs_read_block): Likewise.
30617
30618 2008-05-16 Christian Franke <franke@computer.org>
30619
30620 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
30621 to ensure that break with ESC will always work.
30622 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
30623 Remove ESC from keyboard queue.
30624
30625 2008-05-16 Christian Franke <franke@computer.org>
30626
30627 * util/biosdisk.c: [__CYGWIN__] Add includes.
30628 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
30629 (get_os_disk): Move variable declarations to OS specific
30630 parts to avoid warning.
30631 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
30632 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
30633 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
30634 Cygwin.
30635 * util/getroot.c: [__CYGWIN__] Add includes.
30636 (strip_extra_slashes): Fix "/" case.
30637 [__CYGWIN__] (get_win32_path): New function.
30638 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
30639 [__CYGWIN__] (find_root_device): Disable.
30640 [__CYGWIN__] (get_bootsec_serial): New function.
30641 [__CYGWIN__] (find_cygwin_root_device): Likewise.
30642 [__linux__] (grub_guess_root_device): Add early returns to simplify
30643 structure.
30644 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
30645 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
30646 check for Linux only.
30647
30648 2008-05-15 Bean <bean123ch@gmail.com>
30649
30650 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
30651 keyboard hang problem in apple's intel mac.
30652
30653 2008-05-09 Robert Millan <rmh@aybabtu.com>
30654
30655 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
30656 devices.
30657 * util/grub-mkdevicemap.c (get_virtio_disk_name)
30658 (make_device_map): Likewise.
30659 Reported by Aurelien Jarno <aurel32@debian.org>
30660
30661 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
30662
30663 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
30664 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
30665 (make_device_map): Output entries for xvd type disks.
30666
30667 2008-05-07 Robert Millan <rmh@aybabtu.com>
30668
30669 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
30670 devices.
30671 * util/grub-mkdevicemap.c (get_cciss_disk_name)
30672 (make_device_map): Likewise.
30673 Reported by Roland Dreier <rdreier@cisco.com>
30674
30675 2008-05-07 Robert Millan <rmh@aybabtu.com>
30676
30677 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
30678 grub_strstr() call. Correct a few mistakes in failure path handling.
30679
30680 2008-05-06 Robert Millan <rmh@aybabtu.com>
30681
30682 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
30683 Do not print a trailing slash (therefore, the root directory is an
30684 empty string).
30685 (convert_system_path_to_grub_path): Do not remove trailing slash
30686 from make_system_path_relative_to_its_root() output.
30687
30688 * util/i386/pc/grub-install.in: Add trailing slash to output from
30689 make_system_path_relative_to_its_root().
30690
30691 2008-05-06 Robert Millan <rmh@aybabtu.com>
30692
30693 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
30694 ensures that output lines aren't intermangled with those sent to
30695 stderr (via grub_util_info()).
30696 * util/grub-probe.c (grub_refresh): Likewise.
30697 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
30698
30699 2008-05-05 Christian Franke <franke@computer.org>
30700
30701 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
30702 Add Cygwin device names.
30703 (get_ide_disk_name) [__CYGWIN__]: Likewise.
30704 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
30705 (check_device): Return error instead of success on empty name.
30706 (make_device_map): Move label inside linux specific code to
30707 prevent compiler warning.
30708
30709 2008-04-30 Robert Millan <rmh@aybabtu.com>
30710
30711 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
30712 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
30713 first boot option.
30714 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
30715
30716 2008-04-29 Robert Millan <rmh@aybabtu.com>
30717
30718 * docs/grub.cfg: New file (example GRUB configuration).
30719
30720 2008-04-26 Robert Millan <rmh@aybabtu.com>
30721
30722 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
30723 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
30724 and `disk/ieee1275/nand.c'.
30725
30726 2008-04-25 Bean <bean123ch@gmail.com>
30727
30728 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
30729 i386-linuxbios.
30730
30731 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
30732 change the buffer size to 4096 for cdrom device.
30733
30734 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
30735 and nand.mod.
30736 (_linux_mod_SOURCES): New variable.
30737 (_linux_mod_CFLAGS): Likewise.
30738 (_linux_mod_LDFLAGS): Likewise.
30739 (linux_mod_SOURCES): Likewise.
30740 (linux_mod_CFLAGS): Likewise.
30741 (linux_mod_LDFLAGS): Likewise.
30742 (nand_mod_SOURCES): Likewise.
30743 (nand_mod_CFLAGS): Likewise.
30744 (nand_mod_LDFLAGS): Likewise.
30745
30746 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
30747 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
30748 type property. (nand device in olpc don't have this property)
30749
30750 * include/grub/disk.h (grub_disk_dev_id): New macro
30751 GRUB_DISK_DEVICE_NAND_ID.
30752
30753 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
30754 function prototype.
30755 (grub_rescue_cmd_initrd): Likewise.
30756
30757 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
30758 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
30759 ofw_cif_handler and ofw_idt, adjust padding number.
30760
30761 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
30762 GRUB_MACHINE_IEEE1275 is defined.
30763
30764 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
30765 Use NESTED_FUNC_ATTR attribute on the hook parameter.
30766
30767 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
30768 on nested function heap_init.
30769 (grub_upper_mem): New variable for i386-ieee1275.
30770 (grub_get_extended_memory): New function for i386-ieee1275.
30771 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
30772
30773 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
30774 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
30775 property.
30776
30777 * loader/i386/ieee1275/linux.c: New file.
30778
30779 * loader/i386/ieee1275/linux_normal.c: New file.
30780
30781 * disk/ieee1275/nand.c: New file.
30782
30783 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
30784
30785 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
30786 value.
30787 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
30788
30789 2008-04-18 Robert Millan <rmh@aybabtu.com>
30790
30791 Restructures early code path on ieee1275 to unify grub_main() as
30792 the first C function that is executed in every platform.
30793
30794 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
30795 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
30796 cmain().
30797 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
30798 * kern/ieee1275/cmain.c (cmain): Rename to ...
30799 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
30800 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
30801 at the beginning.
30802
30803 2008-04-18 Robert Millan <rmh@aybabtu.com>
30804
30805 * util/update-grub.in: Fix syntax error when setting
30806 `GRUB_PRELOAD_MODULES'.
30807 Reported by Stephane Chazelas <stephane@artesyncp.com>
30808
30809 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
30810
30811 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
30812 section into account, newer toolchains generate unique build ids
30813 * configure.ac: remove the test for --build-id=none acceptance,
30814 we want build ids to be preserved
30815 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
30816 far from other sections don't cause the raw binary images grow
30817 size
30818
30819 2008-04-15 Robert Millan <rmh@aybabtu.com>
30820
30821 * disk/lvm.c: Update copyright year.
30822 * kern/misc.c: Likewise.
30823
30824 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30825
30826 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
30827 there is no memory left for physical volume name.
30828
30829 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
30830
30831 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
30832 volume name mapping to support bigger than 9 character names properly.
30833
30834 2008-04-13 Robert Millan <rmh@aybabtu.com>
30835
30836 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
30837 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
30838
30839 2008-04-13 Christian Franke <franke@computer.org>
30840
30841 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
30842 to create a floppy emulation boot CD when non emulation mode
30843 does not work.
30844 Enable Joliet CD filesystem extension.
30845
30846 2008-04-13 Robert Millan <rmh@aybabtu.com>
30847
30848 * kern/misc.c (grub_strncat): Fix off-by-one error.
30849 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
30850
30851 * kern/env.c (grub_env_context_close): Clear current context, not
30852 previous one.
30853 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
30854
30855 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
30856
30857 2008-04-13 Robert Millan <rmh@aybabtu.com>
30858
30859 Improve robustness when handling LVM.
30860
30861 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
30862 (and leave `*p' unmodified).
30863 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
30864 through it.
30865 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
30866 iterating through it.
30867 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
30868 through it.
30869 (grub_lvm_scan_device): Check the return value (and fail gracefully
30870 when due) on each grub_lvm_getvalue() or grub_strstr() call.
30871 Don't assume `vg->pvs != NULL' when iterating through it.
30872
30873 2008-04-13 Robert Millan <rmh@aybabtu.com>
30874
30875 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
30876 * genmk.rb (partmap): New variable.
30877 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
30878 (#{partmap}): New target rule.
30879 * genpartmaplist.sh: New file.
30880 * Makefile.in (pkglib_DATA): Add partmap.lst.
30881 (partmap.lst): New target rule.
30882 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
30883 modules (including all partition maps), instead of preloading them.
30884
30885 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
30886
30887 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
30888 `linux-boot-prober' (if installed) to detect other operating
30889 systems which are installed on the computer and add them to
30890 the boot menu.
30891 * conf/common.rmk: Build and install 30_os-prober.
30892
30893 2008-04-12 Robert Millan <rmh@aybabtu.com>
30894
30895 * kern/powerpc/ieee1275/init.c: Move from here ...
30896 * kern/ieee1275/init.c: ... to here. Update all users.
30897
30898 * kern/powerpc/ieee1275/cmain.c: Move from here ...
30899 * kern/ieee1275/cmain.c: ... to here. Update all users.
30900
30901 * kern/powerpc/ieee1275/openfw.c: Move from here ...
30902 * kern/ieee1275/openfw.c: ... to here. Update all users.
30903
30904 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
30905 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
30906
30907 2008-04-10 Pavel Roskin <proski@gnu.org>
30908
30909 * configure.ac: Always use "_cv_" in cache variables for
30910 compatibility with Autoconf 2.62.
30911
30912 2008-04-07 Robert Millan <rmh@aybabtu.com>
30913
30914 Revert grub/machine/init.h addition by Pavel (since it breaks on
30915 i386-ieee1275 and others):
30916 * util/i386/pc/misc.c: Remove grub/machine/init.h.
30917 * util/powerpc/ieee1275/misc.c: Likewise.
30918
30919 2008-04-07 Robert Millan <rmh@aybabtu.com>
30920
30921 * util/grub-probe.c (probe): Improve error message.
30922
30923 2008-04-07 Robert Millan <rmh@aybabtu.com>
30924
30925 * util/biosdisk.c (read_device_map): Skip devices that don't exist
30926 (this prevents the presence of a bogus entry from ruining the whole
30927 thing).
30928
30929 2008-04-06 Pavel Roskin <proski@gnu.org>
30930
30931 * util/biosdisk.c: Include grub/util/biosdisk.h.
30932 * util/grub-fstest.c (execute_command): Make static.
30933 * util/grub-mkdevicemap.c (check_device): Likewise.
30934 * util/i386/pc/misc.c: Include grub/machine/init.h.
30935 * util/powerpc/ieee1275/misc.c: Likewise.
30936 * util/lvm.c: Include grub/util/lvm.h.
30937 * util/misc.c: Include grub/kernel.h, grub/misc.h and
30938 grub/cache.h.
30939 * util/raid.c: Include grub/util/raid.h.
30940 (grub_util_getdiskname): Make static.
30941
30942 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
30943 grub_hostfs_fini(), as they are called from grub_init_all() and
30944 grub_fini_all() respectively. This fixes an infinite loop in
30945 grub-fstest due to double registration of hostfs.
30946 Reported by Christian Franke <Christian.Franke@t-online.de>
30947
30948 2008-04-05 Pavel Roskin <proski@gnu.org>
30949
30950 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
30951 all 8 functions. Otherwise, probe function 0 only.
30952
30953 2008-04-04 Pavel Roskin <proski@gnu.org>
30954
30955 * commands/lspci.c (grub_lspci_iter): Print the bus number
30956 correctly.
30957
30958 * commands/lspci.c (grub_pci_classes): Fix typos.
30959 (grub_lspci_iter): Don't print func twice. Print vendor ID
30960 before device ID, as it's normally done.
30961
30962 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
30963 Fix signedness warnings.
30964 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
30965 Likewise.
30966 * util/ieee1275/get_disk_name.c: Include config.h so that
30967 _GNU_SOURCE is defined and getline() is declared. Mark an
30968 unused argument as such. Fix a signedness warning.
30969
30970 2008-04-02 Pavel Roskin <proski@gnu.org>
30971
30972 * genkernsyms.sh.in: Use more robust assignments for CC and
30973 srcdir. Quote srcdir.
30974 * gensymlist.sh.in: Likewise. Assert at the compile time that
30975 the symbol table is not empty.
30976
30977 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
30978 * fs/cpio.c (grub_cpio_read): Likewise.
30979
30980 2008-04-01 Pavel Roskin <proski@gnu.org>
30981
30982 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
30983 * disk/host.c (grub_host_open): Likewise.
30984 * disk/loopback.c (grub_loopback_open): Likewise.
30985 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
30986 disk->id as in disk/host.c, not a multi-character constant.
30987
30988 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
30989 later is obsolete, potentially dangerous and sets a bad example.
30990 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
30991 * util/misc.c (grub_util_get_image_size): Likewise.
30992
30993 * disk/loopback.c (options): Improve help for "--partitions".
30994
30995 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
30996 options to align them with the short options, e.g. "echo -e".
30997
30998 2008-03-31 Bean <bean123ch@gmail.com>
30999
31000 * video/reader/png.c (grub_png_data): New member is_16bit and
31001 image_data.
31002 (grub_png_decode_image_header): Detect 16 bit png image.
31003 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
31004 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
31005 (grub_video_reader_png): Release memory occupied by image_data.
31006
31007 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
31008 4096 bytes.
31009 (grub_nfs_mount): Skip the test for sector per cluster.
31010
31011 * include/grub/ntfs.h (MAX_SPC): Removed.
31012
31013 2008-03-31 Bean <bean123ch@gmail.com>
31014
31015 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
31016 (grub_probe_SOURCES): Add fs/afs.c.
31017 (grub_fstest_SOURCES): Likewise.
31018 (afs_mod_SOURCES): New variable.
31019 (afs_mod_CFLAGS): Likewise.
31020 (afs_mod_LDFLAGS): Likewise.
31021
31022 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
31023 (grub_emu_SOURCES): Likewise.
31024
31025 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31026
31027 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31028
31029 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31030
31031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31032
31033 * fs/afs.c: New file.
31034
31035 2008-03-30 Pavel Roskin <proski@gnu.org>
31036
31037 * disk/host.c: Include grub/misc.h to fix a warning.
31038 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
31039 warnings about implicit declarations.
31040
31041 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
31042 variable.
31043 * include/grub/i386/loader.h: Change declaration of
31044 grub_linux_boot() to match what grub_loader_set() expects.
31045 * util/getroot.c (grub_guess_root_device): Return const char* to
31046 fix a warning.
31047 * util/grub-probe.c (probe): Fix a warning about uninitialized
31048 abstraction_name variable.
31049 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
31050 second argument as unused to fix a warning.
31051
31052 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
31053 missing grub_error() call.
31054
31055 * util/update-grub_lib.in: Define datarootdir, since Autoconf
31056 2.60 and newer uses it to define datadir.
31057
31058 * commands/sleep.c: Fix warning about implicit declaration.
31059 * disk/memdisk.c: Likewise.
31060 * loader/aout.c: Likewise.
31061 * loader/i386/bsd_normal.c: Likewise.
31062 * util/grub-probe.c: Likewise.
31063
31064 * commands/i386/cpuid.c (has_longmode): Make static.
31065 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
31066 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
31067
31068 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
31069 GDT. This is more robust, as %ds can change.
31070 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
31071 calling real_to_prot().
31072 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
31073
31074 2008-03-28 Pavel Roskin <proski@gnu.org>
31075
31076 * kern/i386/pc/startup.S: Assert that uncompressed functions
31077 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
31078 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
31079 code, as they push parts of the code (error handlers) beyond
31080 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
31081 code as correctness and size.
31082
31083 2008-03-28 Pavel Roskin <proski@gnu.org>
31084
31085 * kern/i386/pc/startup.S
31086 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
31087 data block address to the real mode, keep offset minimal. This
31088 works around a bug in AWARD BIOS on old Athlon systems, which
31089 makes CD detection hang.
31090
31091 2008-03-26 Pavel Roskin <proski@gnu.org>
31092
31093 * normal/color.c (grub_parse_color_name_pair): Make `name' a
31094 const.
31095 * include/grub/normal.h: Add grub_parse_color_name_pair()
31096 declaration.
31097
31098 2008-03-24 Bean <bean123ch@gmail.com>
31099
31100 * disk/i386/pc/biosdisk.c (cd_start): Removed.
31101 (cd_count): Removed.
31102 (cd_drive): New variable.
31103 (grub_biosdisk_get_drive): Don't check for (cdN) device.
31104 (grub_biosdisk_call_hook): Likewise.
31105 (grub_biosdisk_iterate): Change cdrom detection method.
31106 (grub_biosdisk_open): Replace cd_start with cd_drive.
31107 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
31108 detect cdrom device.
31109
31110 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
31111 Removed.
31112 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
31113 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
31114 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
31115 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
31116 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
31117 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
31118 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
31119 (grub_biosdisk_cdrp): New structure.
31120 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
31121
31122 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
31123
31124 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
31125 device.
31126
31127 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
31128 New function.
31129
31130 2008-03-20 Robert Millan <rmh@aybabtu.com>
31131
31132 Remove 2 TiB limit in ata.mod.
31133 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
31134 (grub_ata_dumpinfo): Print sector count with 0x%llx.
31135 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
31136 grub_uint64_t instead of grub_uint32_t.
31137
31138 2008-03-05 Bean <bean123ch@gmail.com>
31139
31140 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
31141 (grub_multiboot): Set boot device.
31142
31143 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
31144
31145 2008-03-02 Bean <bean123ch@gmail.com>
31146
31147 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
31148 symlink_buffer.
31149
31150 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
31151
31152 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
31153 texinfo.tex.
31154
31155 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
31156 modified.
31157
31158 * docs/fdl.texi: New file.
31159
31160 * docs/mdate-sh: New file. Copied from gnulib.
31161 * docs/texinfo.tex: Likewise.
31162
31163 * config.guess: Updated from gnulib.
31164 * install-sh: Likewise.
31165
31166 2008-02-28 Robert Millan <rmh@aybabtu.com>
31167
31168 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
31169 (aout_mod_SOURCES): New variable.
31170 (aout_mod_CFLAGS): Likewise.
31171 (aout_mod_LDFLAGS): Likewise.
31172
31173 * conf/i386-ieee1275.rmk: Likewise.
31174
31175 2008-02-28 Robert Millan <rmh@aybabtu.com>
31176
31177 * util/update-grub.in: Reorganise terminal validity check. Accept
31178 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
31179 Based on suggestion by Franklin PIAT.
31180
31181 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
31182
31183 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
31184 function.
31185 * util/getroot.c (grub_util_check_block_device): New function that
31186 returns the given argument if it is a block device and returns NULL else.
31187 * util/grub-probe.c (argument_is_device): New variable.
31188 (probe): Promote device_name from a variable to an argument. Receive
31189 device_name from grub_util_check_block_device() if path is NULL and from
31190 grub_guess_root_device() else. Do not free() device_name anymore.
31191 (options): Introduce new parameter '-d, --device'.
31192 (main): Add description of the new parameter to the help screen.
31193 Rename path variable to argument. Set argument_is_device if the '-d'
31194 option is given. Pass argument to probe() depending on
31195 argument_is_device.
31196
31197 2008-02-24 Bean <bean123ch@gmail.com>
31198
31199 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
31200 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
31201 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
31202 (GRUB_ISO9660_VOLDESC_PART): Likewise.
31203 (GRUB_ISO9660_VOLDESC_END): Likewise.
31204 (grub_iso9660_primary_voldesc): New member escape.
31205 (grub_iso9660_data): New member joliet.
31206 (grub_iso9660_convert_string): New function.
31207 (grub_iso9660_mount): Detect joliet extension.
31208 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
31209 (grub_iso9660_iso9660_label): Likewise.
31210
31211 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
31212 (grub_setup_SOURCES): Add fs/udf.c.
31213 (grub_fstest_SOURCES): Likewise.
31214 (udf_mod_SOURCES): New variable.
31215 (udf_mod_CFLAGS): Likewise.
31216 (udf_mod_LDFLAGS): Likewise.
31217
31218 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
31219 (grub_emu_SOURCES): Likewise.
31220
31221 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31222
31223 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31224
31225 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31226
31227 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31228
31229 * fs/udf.c: New file.
31230
31231 2008-02-24 Robert Millan <rmh@aybabtu.com>
31232
31233 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
31234 (normal/lexer.c_DEPENDENCIES): New variables.
31235 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
31236 (normal/lexer.c_DEPENDENCIES): Likewise.
31237 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
31238 (normal/lexer.c_DEPENDENCIES): Likewise.
31239 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
31240 (normal/lexer.c_DEPENDENCIES): Likewise.
31241 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
31242 (normal/lexer.c_DEPENDENCIES): Likewise.
31243 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
31244 (normal/lexer.c_DEPENDENCIES): Likewise.
31245
31246 2008-02-23 Robert Millan <rmh@aybabtu.com>
31247
31248 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
31249 since they were intended to be in hex. This didn't break previously
31250 because of a bug in gpt_partition_map_iterate() (see below).
31251
31252 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
31253 when checking the validity of GPT header.
31254 Remove `partno', since it always provides the same information as `i'.
31255
31256 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
31257
31258 * include/grub/efi/time.h: Fix a wrong comment.
31259
31260 2008-02-19 Pavel Roskin <proski@gnu.org>
31261
31262 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
31263 message.
31264
31265 2008-02-19 Bean <bean123ch@gmail.com>
31266
31267 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
31268 (aout_mod_SOURCES): New variable.
31269 (aout_mod_CFLAGS): Likewise.
31270 (aout_mod_LDFLAGS): Likewise.
31271 (_bsd_mod_SOURCES): New variable.
31272 (_bsd_mod_CFLAGS): Likewise.
31273 (_bsd_mod_LDFLAGS): Likewise.
31274 (bsd_mod_SOURCES): New variable.
31275 (bsd_mod_CFLAGS): Likewise.
31276 (bsd_mod_LDFLAGS): Likewise.
31277
31278 * include/grub/aout.h: New file.
31279
31280 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
31281
31282 * include/grub/i386/bsd.h: New file.
31283
31284 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
31285 to make it public.
31286
31287 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
31288 function is called, so that it's possible to change it inside the hook.
31289 (grub_elf64_load): Likewise.
31290 (grub_elf_file): Don't close the file if elf header is not found.
31291 (grub_elf_close): Close the file if grub_elf_file fails (The new
31292 grub_elf_file won't close it).
31293 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
31294 (grub_elf64_size): Likewise.
31295
31296 * kern/i386/loader.S (grub_unix_real_boot): New function.
31297
31298 * loader/aout.c: New file.
31299
31300 * loader/i386/bsd.c: New file.
31301
31302 * loader/i386/bsd_normal.c: New file.
31303
31304 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
31305
31306 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
31307 can test other formats.
31308
31309 2008-02-19 Robert Millan <rmh@aybabtu.com>
31310
31311 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
31312 (grub_gpt_partition_type_empty): Redefine with macro from
31313 `<grub/gpt_partition.h>'.
31314 (gpt_partition_map_iterate): Adjust partition type comparison.
31315
31316 Export `entry' as partmap-specific `part.data' struct.
31317 (grub_gpt_header, grub_gpt_partentry): Move from here ...
31318
31319 * include/grub/gpt_partition.h (grub_gpt_header)
31320 (grub_gpt_partentry): ... to here (new file).
31321
31322 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
31323
31324 (grub_gpt_partition_type_bios_boot): New const variable, defined
31325 with macro from `<grub/gpt_partition.h>'.
31326
31327 (setup): Replace `first_start' with `embed_region', which keeps
31328 track of the embed region (and is partmap-agnostic).
31329
31330 Replace find_first_partition_start() with find_usable_region(),
31331 which finds a usable region for embedding using partmap-specific
31332 knowledge (supports PC/MSDOS and GPT).
31333
31334 Fix all assumptions that the embed region start at sector 1, using
31335 `embed_region.start' from now on. Similarly, use `embed_region.end'
31336 rather than `first_start' to calculate available size.
31337
31338 In grub_util_info() message, replace "into after the MBR" with an
31339 indication of the specific sector our embed region starts at.
31340
31341 2008-02-19 Robert Millan <rmh@aybabtu.com>
31342
31343 * DISTLIST: Replace `commands/ieee1275/halt.c' and
31344 `commands/ieee1275/reboot.c' with `commands/halt.c' and
31345 `commands/reboot.c'.
31346 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
31347 (halt_mod_SOURCES): Likewise.
31348 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
31349 (halt_mod_SOURCES): Likewise.
31350
31351 2008-02-17 Christian Franke <franke@computer.org>
31352
31353 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
31354
31355 2008-02-17 Robert Millan <rmh@aybabtu.com>
31356
31357 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31358 set `first_start' to 0 for non-PC/MSDOS partition maps.
31359
31360 2008-02-16 Robert Millan <rmh@aybabtu.com>
31361
31362 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
31363 do not assume partition map is PC/MSDOS before performing checks that
31364 are specific to that layout.
31365
31366 2008-02-13 Robert Millan <rmh@aybabtu.com>
31367
31368 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
31369 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
31370 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
31371
31372 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
31373
31374 * configure.ac: Only a cosmetic change on the handling of
31375 -fno-stack-protector.
31376
31377 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
31378
31379 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
31380 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
31381 reboot.c.
31382 (grub_install_SOURCES): Add halt.mod and reboot.mod.
31383 (halt_mod_SOURCES): New variable.
31384 (halt_mod_CFLAGS): Likewise.
31385 (halt_mod_LDFLAGS): Likewise.
31386 (reboot_mod_SOURCES): Likewise.
31387 (reboot_mod_CFLAGS): Likewise.
31388 (reboot_mod_LDFLAGS): Likewise.
31389
31390 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
31391 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
31392 reboot.c.
31393 (halt_mod_SOURCES): Likewise.
31394 (reboot_mod_SOURCES): Likewise.
31395
31396 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
31397 commands/i386/pc/reboot.c by commands/reboot.c.
31398 (reboot_mod_SOURCES): Likewise.
31399
31400 * commands/i386/pc/reboot.c: merge this file ...
31401
31402 * commands/ieee1275/reboot.c: ... and this file ...
31403
31404 * commands/reboot.c: ... to this file.
31405 Add some precompiler directive to include the correct header for
31406 each machine.
31407
31408 * commands/ieee1275/halt.c: move this file ...
31409
31410 * commands/halt.c: ... to here.
31411 Add some precompiler directive to include the correct header for
31412 each machine.
31413
31414 * include/grub/efi/efi.h (grub_reboot): New function declaration.
31415 (grub_halt): Likewise.
31416
31417 * kern/efi/efi.c (grub_reboot): New function.
31418 (grub_halt): Likewise.
31419
31420 2008-02-12 Robert Millan <rmh@aybabtu.com>
31421
31422 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
31423 /dev (like it is done for /dev/mapper). This doesn't provide support
31424 for EVMS, but at least it is now easy to identify the problem when it
31425 arises.
31426
31427 2008-02-11 Robert Millan <rmh@aybabtu.com>
31428
31429 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
31430 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
31431 comparing it with -1, not 0.
31432
31433 2008-02-10 Robert Millan <rmh@aybabtu.com>
31434
31435 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
31436 `disk/lvm.c'.
31437 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31438 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
31439
31440 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
31441 `disk/lvm.c' to the end of the list.
31442 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31443 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31444
31445 2008-02-10 Robert Millan <rmh@aybabtu.com>
31446
31447 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
31448 grub_print_error() instead. This will let user know why we're entering
31449 rescue mode.
31450 Based on suggestions from Sam Morris.
31451
31452 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
31453
31454 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
31455 on remaining N args, instead of "--" arg N times.
31456
31457 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
31458
31459 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
31460 (fill_with_default_glyph): Changed to use unknown_glyph for fill
31461 pattern for unknown glyphs.
31462
31463 2008-02-09 Robert Millan <rmh@aybabtu.com>
31464
31465 * configure.ac: Probe for `help2man'.
31466 * Makefile.in (builddir): New variable.
31467 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
31468 or otherwise add a few flags/options to it.
31469 (install-local): For every executable utility or script that is
31470 installed, invoke $(HELP2MAN) to install a manpage based on --help
31471 output.
31472
31473 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
31474 that it doesn't prevent --help from working in build tree.
31475
31476 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
31477 with `bug-grub@gnu.org'.
31478 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
31479 * util/update-grub.in (usage): New function.
31480 Implement proper argument check, with support for --help and --version
31481 (as well as existing -y).
31482
31483 2008-02-09 Christian Franke <franke@computer.org>
31484
31485 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
31486 avoid overwriting previous output.
31487 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
31488
31489 2008-02-09 Robert Millan <rmh@aybabtu.com>
31490
31491 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
31492 drawing the menu.
31493
31494 2008-02-09 Robert Millan <rmh@aybabtu.com>
31495
31496 * commands/sleep.c: New file.
31497 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
31498 (sleep_mod_SOURCES): New variable.
31499 (sleep_mod_CFLAGS): Likewise.
31500 (sleep_mod_LDFLAGS): Likewise.
31501
31502 2008-02-09 Robert Millan <rmh@aybabtu.com>
31503
31504 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
31505 situations in which we can deduce the RAID size and the superblock
31506 doesn't match it.
31507
31508 2008-02-09 Robert Millan <rmh@aybabtu.com>
31509
31510 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
31511 and return a grub_diskmemberlist_t composed of LVM physical volumes.
31512 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
31513
31514 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
31515 and return a grub_diskmemberlist_t composed of physical array members.
31516 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
31517
31518 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
31519 prototype.
31520 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
31521 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
31522 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
31523
31524 * util/grub-probe.c (probe): Move partmap probing code from here ...
31525 (probe_partmap): ... to here.
31526 (probe): Use probe_partmap() once for the disk we're probing, and
31527 additionally, when such disk contains a memberlist() struct member,
31528 once for each disk that is contained in the structure returned by
31529 memberlist().
31530
31531 2008-02-09 Robert Millan <rmh@aybabtu.com>
31532
31533 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
31534 environment variable to 'all' in order to obtain debug output from
31535 non-util/ code.
31536 * util/i386/pc/grub-setup.c (main): Likewise.
31537
31538 2008-02-08 Robert Millan <rmh@aybabtu.com>
31539
31540 * disk/raid.c (grub_raid_scan_device): Check for
31541 `array->device[sb.this_disk.number]' rather than for
31542 `array->device[sb.this_disk.number]->name', since the latter is not
31543 guaranteed to be accessible.
31544
31545 2008-02-08 Robert Millan <rmh@aybabtu.com>
31546
31547 * disk/raid.c: Update copyright.
31548 * fs/cpio.c: Likewise.
31549 * include/grub/raid.h: Likewise.
31550 * loader/i386/pc/multiboot.c: Likewise.
31551 * util/hostfs.c: Likewise.
31552
31553 2008-02-08 Robert Millan <rmh@aybabtu.com>
31554
31555 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
31556 to a grub_disk_t array.
31557 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
31558 `device[x]'.
31559 (grub_raid_scan_device): Replace `device[x].name' accesses with
31560 `device[x]->name'. Simplify initialization of `array->device[x]'.
31561
31562 2008-02-08 Robert Millan <rmh@aybabtu.com>
31563
31564 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
31565 grub_dprintf() calls.
31566 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
31567 error message.
31568
31569 2008-02-07 Christian Franke <franke@computer.org>
31570
31571 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
31572 instead of fseek and ftell to support large files.
31573 (grub_hostfs_read): Likewise.
31574
31575 2008-02-07 Robert Millan <rmh@aybabtu.com>
31576
31577 Patch from Jeroen Dekkers.
31578 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
31579 failure, since successfully reading all array members might not be
31580 required.
31581
31582 2008-02-06 Robert Millan <rmh@aybabtu.com>
31583
31584 * util/grub-probe.c (probe): Simplify partmap probing (with the
31585 assumption that the first word up to the underscore equals to
31586 the module name).
31587
31588 2008-02-06 Christian Franke <franke@computer.org>
31589
31590 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
31591 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
31592 last block of a cpio or tar stream.
31593 Check for "TRAILER!!!" instead of any empty data
31594 block to detect last block of a cpio stream.
31595 (grub_cpio_dir): Fix constness of variable np.
31596 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
31597 cpio or tar trailer is detected. This fixes a crash
31598 on open of a non existing file.
31599
31600 2008-02-05 Bean <bean123ch@gmail.com>
31601
31602 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
31603 address of entry.
31604 (grub_multiboot_load_elf64): Likewise.
31605 (grub_multiboot): Initialize mbi structure.
31606
31607 * util/grub-fstest.c: Don't include unused header file script.h.
31608
31609 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
31610 of file.
31611 (grub_fstest_SOURCES): Likewise.
31612
31613 2008-02-05 Robert Millan <rmh@aybabtu.com>
31614
31615 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
31616 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
31617 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
31618 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
31619
31620 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
31621 (translation_table): Replace hardcoded values with macros
31622 provided by `<grub/term.h>'.
31623
31624 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
31625 (keyboard_map): Correct/add a few values, with macros provided
31626 by `<grub/term.h>'.
31627 (keyboard_map_shift): Zero values that don't differ from their
31628 `keyboard_map' equivalents.
31629 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
31630 Discard the second scan code that is always sent by Caps lock.
31631 Only use `keyboard_map_shift' when it provides a non-zero value,
31632 otherwise fallback to `keyboard_map'.
31633
31634 2008-02-04 Bean <bean123ch@gmail.com>
31635
31636 * Makefile.in (enable_grub_fstest): New variable.
31637
31638 * conf/common.rmk (grub_fstest_init.lst): New rule.
31639 (grub_fstest_init.h): Likewise.
31640 (grub_fstest_init.c): Likewise.
31641 (util/grub-fstest.c_DEPENDENCIES): New variable.
31642 (grub_fstest_SOURCES): Likewise.
31643
31644 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
31645
31646 * util/grub-fstest.c: New file.
31647
31648 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31649
31650 Make grub-setup handle a separate root device.
31651
31652 * util/i386/pc/grub-setup.c (setup): Always open the root device,
31653 so that the root device can be compared with the destination
31654 device.
31655 When embedding the core image, if the root and destination devices
31656 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
31657 0xFF.
31658 When not embedding, set ROOT_DRIVE to 0xFF.
31659
31660 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31661
31662 Add support for having a grub directory in a different drive. This
31663 is still only the data handling part.
31664
31665 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
31666 (codestart): Save %dh in GRUB_ROOT_DRIVE.
31667 (grub_root_drive): New variable.
31668
31669 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
31670 instead of GRUB_BOOT_DRIVE to construct a device name. Set
31671 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
31672 as it was.
31673
31674 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
31675
31676 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
31677 macro.
31678 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
31679
31680 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
31681 is bogus, because PXE booting does not specify any drive
31682 correctly.
31683
31684 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
31685 am not sure if this is really correct.
31686
31687 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
31688 is always identical to the boot drive when booting from a CD.
31689
31690 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
31691 longer.
31692 (root_drive): New variable.
31693 (real_start): Unconditionally set %dh to ROOT_DRIVE.
31694 (setup_sectors): Push %dx right after popping it, because %dh will
31695 be modified later.
31696 (copy_buffer): Restore %dx.
31697
31698 2008-02-03 Robert Millan <rmh@aybabtu.com>
31699
31700 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
31701 use `cdboot.img' for cdrom images.
31702
31703 2008-02-03 Robert Millan <rmh@aybabtu.com>
31704
31705 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
31706 only setup gfxterm when `font' command has succeeded.
31707
31708 2008-02-03 Robert Millan <rmh@aybabtu.com>
31709
31710 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
31711 (grub_rescue_cmd_multiboot_loader)
31712 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
31713
31714 2008-02-03 Pavel Roskin <proski@gnu.org>
31715
31716 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
31717 %edx and %esi from stack only after grub_gate_a20() is called.
31718 grub_gate_a20() clobbers %edx.
31719
31720 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
31721
31722 * configure.ac (AC_INIT): Bumped to 1.96.
31723
31724 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
31725 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
31726 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
31727 video/readers/png.c.
31728
31729 2008-02-03 Bean <bean123ch@gmail.com>
31730
31731 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
31732 (cdboot_img_SOURCES): New variable.
31733 (cdboot_img_ASFLAGS): New variable.
31734 (cdboot_img_LDFLAGS): New variable.
31735
31736 * boot/i386/pc/cdboot.S: New file.
31737
31738 * disk/i386/pc/biosdisk.c (cd_start): New variable.
31739 (cd_count): Likewise.
31740 (grub_biosdisk_get_drive): Add support for cd device.
31741 (grub_biosdisk_call_hook): Likewise.
31742 (grub_biosdisk_iterate): Likewise.
31743 (grub_biosdisk_open): Likewise.
31744 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
31745 (grub_biosdisk_rw): Support reading from cd device.
31746 (GRUB_MOD_INIT): Iterate cd devices.
31747
31748 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
31749 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
31750 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
31751
31752 * kern/i386/pc/init.c (make_install_device): Check for cd device.
31753
31754 2008-02-02 Robert Millan <rmh@aybabtu.com>
31755
31756 * commands/read.c: New file.
31757 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
31758 (read_mod_SOURCES): New variable.
31759 (read_mod_CFLAGS): Likewise.
31760 (read_mod_LDFLAGS): Likewise.
31761
31762 2008-02-02 Robert Millan <rmh@aybabtu.com>
31763
31764 * normal/main.c (grub_normal_execute): Check for `menu->size' when
31765 determining whether menu has to be displayed.
31766
31767 2008-02-02 Marco Gerards <marco@gnu.org>
31768
31769 * bus/pci.c: New file.
31770
31771 * include/grub/pci.h: Likewise.
31772
31773 * include/grub/i386/pc/pci.h: Likewise.
31774
31775 * commands/lspci.c: Likewise.
31776
31777 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
31778 `lspci.mod'.
31779 (pci_mod_SOURCES): New variable.
31780 (pci_mod_CFLAGS): Likewise.
31781 (pci_mod_LDFLAGS): Likewise.
31782 (lspci_mod_SOURCES): Likewise.
31783 (lspci_mod_CFLAGS): Likewise.
31784 (lspci_mod_LDFLAGS): Likewise.
31785
31786 2008-02-02 Bean <bean123ch@gmail.com>
31787
31788 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
31789 (grub_ufs_get_file_block): Fix indirect block calculation problem.
31790
31791 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
31792 (grub_xfs_btree_node): New structure.
31793 (grub_xfs_btree_root): New structure.
31794 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
31795 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
31796 (GRUB_XFS_EXTENT_BLOCK): Likewise.
31797 (GRUB_XFS_EXTENT_SIZE): Likewise.
31798 (grub_xfs_read_block): Support btree format type.
31799 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
31800 Use directory block as basic unit.
31801
31802 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
31803
31804 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
31805 __attribute__ ((__regparm__ (1))).
31806
31807 2008-02-01 Robert Millan <rmh@aybabtu.com>
31808
31809 Correct a mistake in previous commit.
31810
31811 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
31812 top.
31813 (normal/command.c_DEPENDENCIES): New variable.
31814
31815 2008-02-01 Robert Millan <rmh@aybabtu.com>
31816
31817 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
31818 top.
31819 (normal/command.c_DEPENDENCIES): New variable.
31820 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
31821 * conf/i386-ieee1275.rmk: Likewise.
31822 * conf/i386-linuxbios.rmk: Likewise.
31823 * conf/i386-pc.rmk: Likewise.
31824 * conf/sparc64-ieee1275.rmk: Likewise.
31825 * conf/powerpc-ieee1275.rmk: Likewise.
31826 (grub_emu_SOURCES): Add `fs/fshelp.c'.
31827
31828 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
31829
31830 2008-02-01 Robert Millan <rmh@aybabtu.com>
31831
31832 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
31833 call at beginning of function.
31834
31835 2008-01-31 Pavel Roskin <proski@gnu.org>
31836
31837 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
31838 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
31839 (grub_mkrescue_SOURCES): Likewise.
31840 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
31841
31842 2008-01-30 Robert Millan <rmh@aybabtu.com>
31843
31844 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
31845 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
31846 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
31847 (grub_probe_SOURCES): ... to here.
31848
31849 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
31850 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
31851 * conf/i386-ieee1275.rmk: Likewise.
31852 * conf/i386-linuxbios.rmk: Likewise.
31853 * conf/powerpc-ieee1275.rmk: Likewise.
31854
31855 2008-01-30 Tristan Gingold <gingold@free.fr>
31856
31857 * kern/rescue.c: Silently accept empty lines.
31858
31859 2008-01-29 Bean <bean123ch@gmail.com>
31860
31861 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
31862 (real_code_2): Code cleanup and change comment style.
31863 (move_memory): Avoid using 32-bit address mode.
31864
31865 2008-01-29 Bean <bean123ch@gmail.com>
31866
31867 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
31868 (png_mod_SOURCES): New variable.
31869 (png_mod_CFLAGS): Likewise.
31870 (png_mod_LDFLAGS): Likewise.
31871
31872 * video/readers/png.c: New file.
31873
31874 2008-01-28 Robert Millan <rmh@aybabtu.com>
31875
31876 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
31877 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
31878 `ifndef GRUB_MOD_GAP' hack.
31879 * util/elf/grub-mkimage.c (add_segments): Likewise.
31880
31881 2008-01-27 Robert Millan <rmh@aybabtu.com>
31882
31883 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
31884 `GRUB_MOD_GAP' for platforms in which it's not defined.
31885 * util/elf/grub-mkimage.c (add_segments): Likewise.
31886
31887 2008-01-27 Robert Millan <rmh@aybabtu.com>
31888
31889 Get grub-emu to build again (including parallel builds).
31890
31891 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
31892 Split into ...
31893 (util/grub-emu.c_DEPENDENCIES): ... this, ...
31894 (normal/execute.c_DEPENDENCIES): ... this, ...
31895 (grub-emu_DEPENDENCIES): ... and this.
31896
31897 * conf/i386-efi.rmk: Likewise.
31898 * conf/i386-linuxbios.rmk: Likewise.
31899 * conf/i386-ieee1275.rmk: Likewise.
31900 * conf/powerpc-ieee1275.rmk: Likewise.
31901 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
31902
31903 2008-01-27 Robert Millan <rmh@aybabtu.com>
31904
31905 * NEWS: Add a few items.
31906
31907 2008-01-27 Robert Millan <rmh@aybabtu.com>
31908
31909 Fix parallel builds with grub-emu. Based on earlier commit for
31910 grub-probe and grub-setup.
31911
31912 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31913 (util/grub-emu.c_DEPENDENCIES): ... this.
31914 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31915 (util/grub-emu.c_DEPENDENCIES): ... this.
31916 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31917 (util/grub-emu.c_DEPENDENCIES): ... this.
31918 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31919 (util/grub-emu.c_DEPENDENCIES): ... this.
31920 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
31921 (util/grub-emu.c_DEPENDENCIES): ... this.
31922
31923 2008-01-27 Pavel Roskin <proski@gnu.org>
31924
31925 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
31926 to create a gap between _end and the modules added to the image
31927 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
31928 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
31929 * util/elf/grub-mkimage.c (add_segments): Likewise.
31930
31931 2008-01-26 Pavel Roskin <proski@gnu.org>
31932
31933 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
31934 just return an error.
31935
31936 2008-01-26 Bean <bean123ch@gmail.com>
31937
31938 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
31939 (grub_reiserfs_get_item): Save offset of the next item.
31940 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
31941
31942 2008-01-25 Robert Millan <rmh@aybabtu.com>
31943
31944 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
31945 make all filesystem sources appear together (possibly fixing omissions
31946 while at it).
31947 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
31948 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31949 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
31950 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31951
31952 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
31953 add `kern/file.c'.
31954 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
31955 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31956 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
31957 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
31958
31959 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
31960 (probe): Add a sanity check to make sure of our ability to read
31961 requested files when probing for filesystem type.
31962
31963 * genmk.rb: Update copyright year (2007).
31964
31965 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
31966 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
31967 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
31968 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
31969 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
31970 : Remove function prototypes.
31971
31972 2008-01-25 Robert Millan <rmh@aybabtu.com>
31973
31974 Revert my previous commits (based on wrong assumption of how grub_errno
31975 works).
31976
31977 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
31978 * kern/file.c (grub_file_open): Likewise.
31979
31980 2008-01-24 Pavel Roskin <proski@gnu.org>
31981
31982 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
31983 that hang if GRUB tries to setup colors.
31984 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
31985 colors for firmwares that don't support it.
31986 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
31987 Recognize Open Hack'Ware, set flags to work around its
31988 limitations.
31989
31990 2008-01-24 Robert Millan <rmh@aybabtu.com>
31991
31992 * kern/file.c (grub_file_open): Do not account previous failures of
31993 unrelated functions when grub_errno is checked for.
31994 Reported by Oleg Strikov.
31995
31996 2008-01-24 Bean <bean123ch@gmail.com>
31997
31998 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
31999 (grub_ufs_sblock): New member volume name.
32000 (grub_ufs_find_file): Fix string copy bug.
32001 (grub_ufs_label): Implement this function properly.
32002
32003 * fs/hfs.c (grub_hfs_cnid_type): New enum.
32004 (grub_hfs_iterate_records): Use the correct file number for extents
32005 and catalog file. Fix problem in next index calculation.
32006 (grub_hfs_find_node): Replace recursive function call with loop.
32007 (grub_hfs_iterate_dir): Replace recursive function call with loop.
32008
32009 2008-01-23 Robert Millan <rmh@aybabtu.com>
32010
32011 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
32012 `<grub/symbol.h>' and `<grub/multiboot.h>'.
32013 (grub_multiboot2_real_boot): New function prototype.
32014
32015 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
32016 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
32017
32018 * kern/i386/ieee1275/init.c (grub_os_area_addr)
32019 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
32020
32021 2008-01-23 Robert Millan <rmh@aybabtu.com>
32022
32023 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
32024 #ifdef'ed out grub_printf().
32025
32026 2008-01-23 Robert Millan <rmh@aybabtu.com>
32027
32028 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
32029 grub_dprintf calls, since they make "debug=all" mode unusable.
32030 (grub_console_checkkey): Likewise.
32031
32032 2008-01-23 Robert Millan <rmh@aybabtu.com>
32033
32034 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
32035 `term/i386/pc/at_keyboard.c'.
32036 (pkglib_MODULES): Add `serial.mod'.
32037 (serial_mod_SOURCES): New variable.
32038 (serial_mod_CFLAGS): Likewise.
32039 (serial_mod_LDFLAGS): Likewise.
32040
32041 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
32042 `<grub/powerpc/ieee1275/console.h>'.
32043 (grub_keyboard_controller_init): New function prototype.
32044 (grub_console_checkkey): Likewise.
32045 (grub_console_getkey): Likewise.
32046
32047 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
32048 keyboard on i386.
32049
32050 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
32051 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
32052
32053 2008-01-23 Robert Millan <rmh@aybabtu.com>
32054
32055 * kern/i386/pc/init.c (make_install_device): When memdisk image is
32056 present, "(memdisk)/boot/grub" becomes the default prefix.
32057
32058 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
32059 a memdisk tarball with all the modules. Add --overlay=DIR option that
32060 allows users to overlay additional files into the image.
32061
32062 2008-01-23 Robert Millan <rmh@aybabtu.com>
32063
32064 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
32065 and `machine/memory.h'.
32066 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
32067 (_multiboot_mod_SOURCES): New variable.
32068 (_multiboot_mod_CFLAGS): Likewise.
32069 (_multiboot_mod_LDFLAGS): Likewise.
32070 (multiboot_mod_SOURCES): Likewise.
32071 (multiboot_mod_CFLAGS): Likewise.
32072 (multiboot_mod_LDFLAGS): Likewise.
32073
32074 * include/grub/i386/ieee1275/loader.h: New file.
32075
32076 * include/grub/i386/ieee1275/machine.h: Likewise.
32077
32078 * include/grub/i386/ieee1275/memory.h: Likewise.
32079
32080 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
32081 variable declaration.
32082 (grub_os_area_size): Likewise.
32083
32084 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
32085 (grub_lower_mem, grub_upper_mem): New variables.
32086 (grub_stop_floppy): New function (just to make
32087 grub_multiboot2_real_boot() happy).
32088
32089 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
32090 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
32091 (grub_stop): New function.
32092 Include `"../realmode.S"' and `"../loader.S"'.
32093
32094 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
32095 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
32096
32097 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
32098 rely on grub_multiboot2_real_boot() for final boot.
32099
32100 2008-01-22 Robert Millan <rmh@aybabtu.com>
32101
32102 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
32103 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
32104 device that doesn't look like an SD card.
32105 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
32106 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
32107 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
32108 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
32109 found.
32110
32111 2008-01-22 Robert Millan <rmh@aybabtu.com>
32112
32113 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
32114 avoid claiming over our own code.
32115
32116 2008-01-22 Bean <bean123ch@gmail.com>
32117
32118 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
32119 (jpeg_mod_SOURCES): New variable.
32120 (jpeg_mod_CFLAGS): Likewise.
32121 (jpeg_mod_LDFLAGS): Likewise.
32122
32123 * video/readers/jpeg.c : New file.
32124
32125 2008-01-22 Bean <bean123ch@gmail.com>
32126
32127 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
32128 there are no more items.
32129
32130 2008-01-21 Robert Millan <rmh@aybabtu.com>
32131
32132 * kern/mm.c (grub_mm_init_region): Improve debug message.
32133
32134 2008-01-21 Robert Millan <rmh@aybabtu.com>
32135
32136 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
32137 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
32138 address.
32139 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
32140 a C macro.
32141 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
32142 Indicates start of upper memory.
32143 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
32144 (generate_image): Abort when image size is big enough to corrupt
32145 upper memory.
32146
32147 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
32148 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
32149 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
32150 instead of hardcoding 0xA0000.
32151 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
32152 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
32153 instead of hardcoding 0xA0000.
32154
32155 2008-01-21 Robert Millan <rmh@aybabtu.com>
32156
32157 * disk/memdisk.c (memdisk_size): New variable.
32158 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
32159 `memdisk_size'.
32160 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
32161 image to dynamic memory.
32162 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
32163 `memdisk_size'. Free memdisk block.
32164
32165 2008-01-21 Robert Millan <rmh@aybabtu.com>
32166
32167 Fix detection of very small filesystems (like tar).
32168
32169 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
32170 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
32171 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
32172 a problem with this disk).
32173
32174 2008-01-21 Robert Millan <rmh@aybabtu.com>
32175
32176 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
32177 on grub_biosdisk_rw_standard() error.
32178
32179 2008-01-21 Robert Millan <rmh@aybabtu.com>
32180
32181 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
32182 recent changes.
32183 * kern/elf.c: Likewise.
32184 * kern/ieee1275/ieee1275.c: Likewise.
32185 * kern/powerpc/ieee1275/openfw.c: Likewise.
32186 * term/ieee1275/ofconsole.c: Likewise.
32187
32188 2008-01-21 Robert Millan <rmh@aybabtu.com>
32189
32190 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
32191
32192 * include/grub/kernel.h (grub_arch_memdisk_addr)
32193 (grub_arch_memdisk_size): Moved from here ...
32194
32195 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
32196 (grub_arch_memdisk_size): ... to here.
32197
32198 2008-01-21 Robert Millan <rmh@aybabtu.com>
32199
32200 Mostly based on bugfix from Bean.
32201
32202 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
32203 attribute with hook() parameter.
32204 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
32205 declaration.
32206 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
32207 attribute with hook() parameter.
32208 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
32209 declaration.
32210
32211 2008-01-21 Robert Millan <rmh@aybabtu.com>
32212
32213 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
32214 (pkglib_MODULES): Add `memdisk.mod'.
32215 (memdisk_mod_SOURCES): New variable.
32216 (memdisk_mod_CFLAGS): Likewise.
32217 (memdisk_mod_LDFLAGS): Likewise.
32218
32219 * disk/memdisk.c: New file.
32220
32221 * include/grub/disk.h (grub_disk_dev_id): Add
32222 `GRUB_DISK_DEVICE_MEMDISK_ID'.
32223
32224 * include/grub/i386/pc/kernel.h
32225 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
32226 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
32227 (grub_kernel_image_size): New variable declaration.
32228 (grub_total_module_size): Likewise.
32229 (grub_memdisk_image_size): Likewise.
32230
32231 * include/grub/i386/pc/memory.h
32232 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
32233
32234 * include/grub/kernel.h: Include `<grub/symbol.h>'.
32235 (grub_arch_memdisk_addr): New variable declaration.
32236 (grub_arch_memdisk_size): Likewise.
32237
32238 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
32239 (grub_arch_memdisk_size): Likewise.
32240
32241 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
32242 (codestart): Replace hardcoded `0x100000' with
32243 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
32244
32245 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
32246 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
32247 not NULL, append the contents of the file it refers to, at the end of
32248 the compressed kernel image. Initialize `grub_memdisk_image_size'
32249 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
32250 (options): Add "memdisk"|'m' option.
32251 (main): Parse --memdisk|-m option, and pass user-provided path as
32252 parameter to generate_image().
32253
32254 2008-01-20 Robert Millan <rmh@aybabtu.com>
32255
32256 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
32257 grub_dprintf() calls from here ...
32258 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
32259
32260 2008-01-20 Robert Millan <rmh@aybabtu.com>
32261
32262 Fix detection of "real mode" when /options/real-mode? doesn't exist.
32263
32264 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
32265 declaration.
32266 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
32267 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
32268 `GRUB_IEEE1275_FLAG_REAL_MODE'.
32269 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
32270 property).
32271 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
32272 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
32273
32274 2008-01-19 Robert Millan <rmh@aybabtu.com>
32275
32276 Get rid of confusing function (superseded by
32277 `grub_ieee1275_get_integer_property')
32278 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
32279 prototype.
32280 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
32281 function.
32282 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
32283 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
32284 in native endianness from grub_ieee1275_get_integer_property().
32285
32286 2008-01-19 Robert Millan <rmh@aybabtu.com>
32287
32288 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
32289 command after "shut-down", since implementations differ on which
32290 the command for halt is.
32291
32292 2008-01-19 Robert Millan <rmh@aybabtu.com>
32293
32294 * include/grub/i386/linuxbios/console.h: Add header protection.
32295 (grub_keyboard_controller_init): New function prototype.
32296 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
32297 (KEYBOARD_COMMAND_READ): Likewise.
32298 (KEYBOARD_COMMAND_WRITE): Likewise.
32299 (KEYBOARD_SCANCODE_SET1): Likewise.
32300 (grub_keyboard_controller_write): New function.
32301 (grub_keyboard_controller_read): Likewise.
32302 (grub_keyboard_controller_init): Likewise.
32303
32304 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
32305 (grub_console_init): On coreboot/LinuxBIOS, call
32306 grub_keyboard_controller_init().
32307
32308 2008-01-19 Robert Millan <rmh@aybabtu.com>
32309
32310 PowerPC changes provided by Pavel Roskin.
32311
32312 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
32313 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
32314 don't rely on cmain() doing it.
32315 * kern/i386/ieee1275/startup.S (_start): Store %eax in
32316 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
32317
32318 2008-01-16 Robert Millan <rmh@aybabtu.com>
32319
32320 * include/grub/i386/linuxbios/memory.h
32321 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
32322 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
32323 receive `table_header' as argument. Instead, probe for it in the
32324 known memory ranges where it can be present.
32325 (grub_available_iterate): Do not pass a fixed `table_header' address
32326 to grub_linuxbios_table_iterate().
32327
32328 2008-01-15 Robert Millan <rmh@aybabtu.com>
32329
32330 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
32331 * conf/i386-ieee1275.rmk: New file.
32332 * include/grub/i386/ieee1275/console.h: Likewise.
32333 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
32334 * include/grub/i386/ieee1275/kernel.h: Likewise.
32335 * include/grub/i386/ieee1275/time.h: Likewise.
32336 * kern/i386/ieee1275/init.c: Likewise.
32337 * kern/i386/ieee1275/startup.S: Likewise.
32338
32339 2008-01-15 Robert Millan <rmh@aybabtu.com>
32340
32341 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
32342 when pointers are 32-bit (but still do set it to one when they are
32343 64-bit).
32344
32345 2008-01-15 Robert Millan <rmh@aybabtu.com>
32346
32347 * include/grub/ieee1275/ieee1275.h
32348 (grub_ieee1275_get_integer_property): New function prototype.
32349
32350 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
32351 (grub_ieee1275_get_integer_property): New function. Wraps around
32352 grub_ieee1275_get_property() to handle endianness.
32353
32354 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
32355 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
32356 where appropriate.
32357 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
32358 (grub_map): Likewise.
32359 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
32360
32361 2008-01-15 Bean <bean123ch@gmail.com>
32362
32363 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
32364 (grub_script_execute_cmdline): Reset grub_errno.
32365
32366 * normal/main.c (read_config_file): Reset grub_errno.
32367
32368 * normal/parse.y (script_init): New.
32369 (script): Move function and menuentry here.
32370 (delimiter): New.
32371 (command): Add delimiter at the end of command.
32372 (commands): Adjust to match the new command.
32373 (commandblock): Remove grub_script_lexer_record_start.
32374 (menuentry): Add grub_script_lexer_record_start, use the new commands.
32375 (if): Use the new commands.
32376
32377 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
32378
32379 2008-01-15 Robert Millan <rmh@aybabtu.com>
32380
32381 * normal/menu.c (run_menu): Move timeout message from here ...
32382 (print_timeout): ... to here.
32383 (run_menu): Use print_timeout() once during initial draw to print
32384 the whole message, and again in every clock tick to update only
32385 the number of seconds.
32386
32387 2008-01-15 Robert Millan <rmh@aybabtu.com>
32388
32389 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
32390 actual size of `available' from grub_ieee1275_get_property(), and
32391 restrict parsing to that bound.
32392
32393 2008-01-15 Christian Franke <franke@computer.org>
32394
32395 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
32396 (argp_program_version): Remove variable.
32397 (argp_program_bug_address): Likewise.
32398 (options): Convert from struct argp_option to struct option.
32399 (struct arguments): Remove.
32400 (parse_opt): Remove.
32401 (usage): New function.
32402 (main): Replace struct args members by simple variables.
32403 Replace argp_parse() by getopt_long().
32404 Add switch to evaluate options.
32405 Add missing "(...)" around root_dev in prefix string.
32406
32407 2008-01-14 Robert Millan <rmh@aybabtu.com>
32408
32409 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
32410 for grub_ieee1275_exit(), in order to improve portability.
32411
32412 2008-01-14 Robert Millan <rmh@aybabtu.com>
32413
32414 * util/grub.d/10_linux.in (prefix): Define.
32415 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
32416
32417 2008-01-13 Pavel Roskin <proski@gnu.org>
32418
32419 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
32420 grub_errno if no errors have been detected.
32421
32422 2008-01-12 Robert Millan <rmh@aybabtu.com>
32423
32424 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
32425 (grub_util_get_dev_abstraction): New function prototype.
32426
32427 * util/getroot.c: Include `<grub/util/getroot.h>'
32428 (grub_util_get_grub_dev): Move detection of abstraction type to ...
32429 (grub_util_get_dev_abstraction): ... here (new function).
32430
32431 * util/grub-probe.c: Convert PRINT_* to an enum. Add
32432 `PRINT_ABSTRACTION'.
32433 (probe): Probe for abstraction type when requested.
32434 (main): Understand `--target=abstraction'.
32435
32436 * util/i386/efi/grub-install.in: Add abstraction module to core
32437 image when it is found to be necessary.
32438 * util/i386/pc/grub-install.in: Likewise.
32439 * util/powerpc/ieee1275/grub-install.in: Likewise.
32440
32441 * util/update-grub_lib.in (font_path): Return system path without
32442 converting to GRUB path.
32443 * util/update-grub.in: Convert system path returned by font_path()
32444 to a GRUB path. Use `grub-probe -t abstraction' to determine what
32445 abstraction module is needed for loading fonts (if any). Export
32446 that as `GRUB_PRELOAD_MODULES'.
32447 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
32448 insmod commands).
32449
32450 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
32451
32452 Remove some unused code from reiserfs.
32453
32454 * fs/reiserfs.c (struct grub_reiserfs_key)
32455 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
32456 (struct grub_reiserfs_node_body): Removed.
32457 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32458 Likewise.
32459 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32460 Likewise.
32461 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32462 Likewise.
32463 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
32464 Likewise.
32465 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
32466 Likewise.
32467 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
32468 Likewise.
32469 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32470 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32471 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
32472
32473 2008-01-10 Robert Millan <rmh@aybabtu.com>
32474
32475 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
32476 Determines if a file is garbage left by packaging systems, etc.
32477 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
32478 for processing /etc/grub.d scripts.
32479 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
32480 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
32481 as a condition for processing Linux images.
32482
32483 2008-01-10 Pavel Roskin <proski@gnu.org>
32484
32485 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
32486 to compile reiserfs.c on PowerPC.
32487
32488 2008-01-10 Robert Millan <rmh@aybabtu.com>
32489
32490 * kern/device.c (grub_device_iterate): Do not abort device iteration
32491 when one of the devices cannot be opened.
32492 * kern/disk.c (grub_disk_open): Do not account previous failures of
32493 unrelated functions when grub_errno is checked for.
32494
32495 2008-01-08 Robert Millan <rmh@aybabtu.com>
32496
32497 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
32498 `! grub_linux_is_bzimage', change order of address comparison to make
32499 it more intuitive, and improve "too big zImage" error message.
32500
32501 2008-01-08 Robert Millan <rmh@aybabtu.com>
32502
32503 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
32504 `$(update-grub_DATA)'.
32505 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
32506 targets.
32507
32508 2008-01-07 Robert Millan <rmh@aybabtu.com>
32509
32510 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
32511 which instruction is modified by grub-setup during installation
32512 (since it wasn't obvious by only looking at this file).
32513
32514 2008-01-07 Robert Millan <rmh@aybabtu.com>
32515
32516 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
32517 listing actual TODO items.
32518
32519 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32520
32521 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
32522 correctly.
32523 (grub_reiserfs_get_key_offset): Likewise.
32524 (grub_reiserfs_set_key_offset): Likewise.
32525 (grub_reiserfs_set_key_type): Likewise.
32526 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
32527
32528 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
32529 better to remove the bitfield version completely.
32530
32531 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32532
32533 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
32534 allocated from the heap, due to the fshelp implementation.
32535 (grub_reiserfs_dir): Free NODE, due to the same reason.
32536
32537 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
32538
32539 Mostly from Vincent Pelletier:
32540
32541 * fs/reiserfs.c: New file.
32542
32543 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
32544 (reiserfs_mod_SOURCES): New variable.
32545 (reiserfs_mod_CFLAGS): Likewise.
32546 (reiserfs_mod_LDFLAGS): Likewise.
32547
32548 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
32549 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
32550 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
32551 normal/color.c.
32552
32553 2008-01-06 Robert Millan <rmh@aybabtu.com>
32554
32555 * normal/color.c: Remove `<grub/env.h>'.
32556
32557 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
32558
32559 * include/grub/normal.h: Include <grub/env.h>.
32560
32561 2008-01-05 Robert Millan <rmh@aybabtu.com>
32562
32563 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
32564 usage example with `(hd0,1)'.
32565 Reported by Samuel Thibault.
32566
32567 2008-01-05 Robert Millan <rmh@aybabtu.com>
32568
32569 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
32570 (grub_linux_boot_zimage): Rename to ...
32571 (grub_linux_boot): ... this.
32572 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
32573 (grub_linux_boot_zimage): Conditionalize zImage copy.
32574
32575 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
32576 (grub_linux_boot_bzimage): Remove prototype.
32577 (grub_linux_boot_zimage): Rename to ...
32578 (grub_linux_boot): ... this.
32579
32580 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
32581 (grub_linux_boot): Remove function.
32582
32583 2008-01-05 Robert Millan <rmh@aybabtu.com>
32584
32585 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
32586 (grub_env_write_color_highlight): Likewise.
32587 (grub_wait_after_message): Likewise.
32588
32589 * normal/color.c: New file.
32590
32591 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32592 (normal_mod_DEPENDENCIES): Likewise.
32593
32594 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32595 (normal_mod_DEPENDENCIES): Likewise.
32596
32597 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32598 (normal_mod_DEPENDENCIES): Likewise.
32599
32600 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
32601 (normal_mod_DEPENDENCIES): Likewise.
32602
32603 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
32604 for waiting after a message is printed.
32605 * normal/main.c (read_config_file): Likewise.
32606 (grub_normal_init): Register grub_env_write_color_normal() and
32607 grub_env_write_color_highlight() hooks. Mark `color_normal' and
32608 `color_highlight' variables as global.
32609
32610 * normal/menu.c (grub_wait_after_message): New function.
32611 (grub_color_menu_normal): New variable. Replaces ...
32612 (GRUB_COLOR_MENU_NORMAL): ... this macro.
32613 (grub_color_menu_highlight): New variable. Replaces ...
32614 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
32615 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
32616 `GRUB_TERM_COLOR_STANDARD'.
32617 (print_message): Use `grub_setcolorstate' to reload colors. Rename
32618 `normal_code' and `highlight_code' to `old_color_normal' and
32619 `old_color_highlight', respectively.
32620 (grub_menu_init_page): Update colors when drawing the menu, based on
32621 `menu_color_normal' and `menu_color_highlight' variables.
32622 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
32623 a message is printed.
32624
32625 2008-01-05 Robert Millan <rmh@aybabtu.com>
32626
32627 * kern/env.c (grub_env_context_open): Propagate hooks for global
32628 variables to new context.
32629
32630 * kern/main.c (grub_set_root_dev): Export `root' variable.
32631
32632 2008-01-05 Robert Millan <rmh@aybabtu.com>
32633
32634 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
32635 discs unconditionally, since udev and others have options to provide
32636 them.
32637
32638 2008-01-05 Robert Millan <rmh@aybabtu.com>
32639
32640 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
32641
32642 2008-01-04 Christian Franke <franke@computer.org>
32643
32644 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
32645 of eisa_mmap.
32646
32647 2008-01-03 Pavel Roskin <proski@gnu.org>
32648
32649 * kern/i386/linuxbios/init.c: Put "void" to all function
32650 declarations with no arguments.
32651 * kern/powerpc/ieee1275/init.c: Likewise.
32652 * term/i386/pc/at_keyboard.c: Likewise.
32653 * term/i386/pc/vga_text.c: Likewise.
32654 * util/grub-mkdevicemap.c: Likewise.
32655
32656 2008-01-02 Robert Millan <rmh@aybabtu.com>
32657
32658 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
32659 message when loaded image is out of bounds.
32660 (grub_multiboot_load_elf64): Likewise.
32661
32662 2008-01-02 Pavel Roskin <proski@gnu.org>
32663
32664 * util/grub.d/10_linux.in: Try version without ".old" when
32665 looking for initrd. It's better to use initrd from the newer
32666 kernel of the same version than no initrd at all.
32667
32668 2008-01-01 Robert Millan <rmh@aybabtu.com>
32669
32670 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
32671
32672 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
32673
32674 * include/grub/video.h: Added grub_video_unmap_color and
32675 grub_video_get_active_render_target.
32676 (grub_video_adapter): Added unmap_color and get_active_render_target.
32677
32678 * video/video.c: Added grub_video_unmap_color and
32679 grub_video_get_active_render_target.
32680 (grub_video_get_info): Changed method to accept NULL pointer as an
32681 argument to allow detection of active video adapter.
32682
32683 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
32684 grub_video_vbe_unmap_color_int.
32685 Added grub_video_vbe_unmap_color and
32686 grub_video_vbe_get_active_render_target.
32687 (grub_video_vbe_adapter): Added unmap_color and
32688 get_active_render_target.
32689
32690 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
32691 with grub_video_vbe_unmap_color_int.
32692
32693 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
32694 (DEFAULT_NORMAL_COLOR): Likewise.
32695 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
32696 (DEFAULT_FG_COLOR): Removed.
32697 (DEFAULT_BG_COLOR): Likewise.
32698 (DEFAULT_CURSOR_COLOR): Changed value.
32699 (grub_virtual_screen): Added standard_color_setting,
32700 normal_color_setting, highlight_color_setting and term_color.
32701 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
32702 (bitmap_width): Added.
32703 (bitmap_height): Likewise.
32704 (bitmap): Likewise.
32705 (set_term_color): Likewise.
32706 (grub_virtual_screen_setup): Changed to use new terminal coloring
32707 settings.
32708 (grub_gfxterm_init): Added init for bitmap.
32709 (grub_gfxterm_fini): Added destroy for bitmap.
32710 (redraw_screen_rect): Updated to use background bitmap and new
32711 terminal coloring.
32712 (scroll_up): Added optimization for case when there is no bitmap.
32713 (grub_gfxterm_cls): Fixed to use correct background color.
32714 (grub_virtual_screen_setcolorstate): Changed to use new terminal
32715 coloring.
32716 (grub_virtual_screen_setcolor): Likewise.
32717 (grub_virtual_screen_getcolor): Added.
32718 (grub_gfxterm_background_image_cmd): Likewise.
32719 (grub_video_term): Added setcolor and getcolor.
32720 (MOD_INIT): Added registration of background_image command.
32721 (MOD_TERM): Added unregistration for background_image command.
32722
32723 2007-12-30 Pavel Roskin <proski@gnu.org>
32724
32725 * loader/multiboot_loader.c: Fix multiboot command
32726 unregistration. Fix all typos in the word "multiboot".
32727
32728 2007-12-29 Pavel Roskin <proski@gnu.org>
32729
32730 * util/grub.d/10_linux.in: Refactor search for initrd. Add
32731 support for initrd names used in Fedora.
32732
32733 2007-12-26 Bean <bean123ch@gmail.com>
32734
32735 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
32736 (cpio_mod_SOURCES): New variable.
32737 (cpio_mod_CFLAGS): Likewise.
32738 (cpio_mod_LDFLAGS): Likewise.
32739
32740 * fs/cpio.c: New file.
32741
32742 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
32743
32744 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
32745
32746 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
32747
32748 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32749
32750 2007-12-25 Robert Millan <rmh@aybabtu.com>
32751
32752 * include/grub/term.h (struct grub_term): Add `getcolor' function.
32753 (grub_getcolor): New function.
32754
32755 * kern/term.c (grub_getcolor): New function.
32756 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
32757 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
32758 (print_entry): Set normal and highlight colors to
32759 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
32760 respectively, before printing and restore them to old
32761 values afterwards.
32762 (grub_menu_init_page): Likewise. Fill an additional colored space
32763 that would otherwise be left blank.
32764
32765 * term/efi/console.c (grub_console_getcolor): New function.
32766 (struct grub_console_term.getcolor): New variable.
32767 * term/i386/pc/console.c (grub_console_getcolor): New function.
32768 (struct grub_console_term.getcolor): New variable.
32769 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
32770 (struct grub_console_term.getcolor): New variable.
32771
32772 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
32773 (struct grub_console_term.setcolor): Remove variable.
32774 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
32775 (struct grub_console_term.setcolor): Remove variable.
32776 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
32777 (struct grub_console_term.setcolor): Remove variable.
32778 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
32779 (struct grub_console_term.setcolor): Remove variable.
32780
32781 2007-12-25 Robert Millan <rmh@aybabtu.com>
32782
32783 * configure.ac: Search for possible unifont.hex locations, and
32784 define UNIFONT_HEX if found.
32785
32786 * Makefile.in (UNIFONT_HEX): Define variable.
32787 (DATA): Rename to ...
32788 (PKGLIB): ... this. Update all users.
32789 (PKGDATA): New variable.
32790 (pkgdata_IMAGES): Rename to ...
32791 (pkglib_IMAGES): ... this. Update all users.
32792 (pkgdata_MODULES): Rename to ...
32793 (pkglib_MODULES): ... this. Update all users.
32794 (pkgdata_PROGRAMS): Rename to ...
32795 (pkglib_PROGRAMS): ... this. Update all users.
32796 (pkgdata_DATA): Rename to ...
32797 (pkglib_DATA): ... this. Update all users.
32798 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
32799 (unicode.pff, ascii.pff): New rules.
32800 (all-local): Add `$(PKGDATA)' dependency.
32801 (install-local): Process `$(PKGDATA)'.
32802
32803 * util/update-grub_lib.in (font_path): Search for *.pff files in
32804 a few more locations, including `${pkgdata}'.
32805
32806 2007-12-23 Robert Millan <rmh@aybabtu.com>
32807
32808 Patch from Bean <bean123ch@gmail.com>:
32809 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
32810 `size'.
32811
32812 2007-12-21 Bean <bean123ch@gmail.com>
32813
32814 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
32815 (ntfscomp_mod_SOURCES): New variable.
32816 (ntfscomp_mod_CFLAGS): Likewise.
32817 (ntfscomp_mod_LDFLAGS): Likewise.
32818
32819 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
32820 (grub_probe_SOURCES): Likewise.
32821 (grub_emu_SOURCES): Likewise.
32822
32823 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32824 (grub_emu_SOURCES): Likewise.
32825
32826 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32827 (grub_emu_SOURCES): Likewise.
32828
32829 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
32830 (grub_emu_SOURCES): Likewise.
32831
32832 * fs/ntfs.c (grub_ntfscomp_func): New variable.
32833 (read_run_list): Renamed to grub_ntfs_read_run_list.
32834 (decomp_nextvcn): Moved to ntfscomp.c.
32835 (decomp_getch): Likewise.
32836 (decomp_get16): Likewise.
32837 (decomp_block): Likewise.
32838 (read_block): Likewise.
32839 (read_data): Partially moved to ntfscomp.c.
32840 (fixup): Change unsigned to grub_uint16_t.
32841 (read_mft): Change unsigned long to grub_uint32_t.
32842 (read_attr): Likewise.
32843 (read_data): Likewise.
32844 (read_run_data): Likewise.
32845 (read_run_list): Likewise.
32846 (read_mft): Likewise.
32847
32848 * fs/ntfscomp.c: New file.
32849
32850 * include/grub/ntfs.h: New file.
32851
32852 2007-12-16 Robert Millan <rmh@aybabtu.com>
32853
32854 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
32855 IDE disk check, since Linux is known to support 20 IDE disks.
32856 Reported by Colin Watson.
32857
32858 2007-12-15 Bean <bean123ch@gmail.com>
32859
32860 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
32861 (lnxboot_img_SOURCES): New variable.
32862 (lnxboot_img_ASFLAGS): Likewise.
32863 (lnxboot_img_LDFLAGS): Likewise.
32864
32865 * boot/i386/pc/lnxboot.S: New file.
32866
32867 2007-11-24 Pavel Roskin <proski@gnu.org>
32868
32869 * configure.ac: Test if '--build-id=none' is supported by the
32870 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
32871 objcopy to generate incorrect binary files (binutils
32872 2.17.50.0.18-1 as shipped by Fedora 8).
32873 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
32874 linking, so that build ID doesn't break the test.
32875
32876 2007-11-24 Pavel Roskin <proski@gnu.org>
32877
32878 * include/grub/i386/time.h: use "void" in the argument list
32879 of grub_cpu_idle().
32880 * include/grub/powerpc/time.h: Likewise.
32881 * include/grub/sparc64/time.h: Likewise.
32882
32883 2007-11-18 Christian Franke <franke@computer.org>
32884
32885 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
32886 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
32887 This fixes the problem that function keys did not work in grub-emu.
32888
32889 2007-11-18 Christian Franke <franke@computer.org>
32890
32891 * disk/host.c (grub_host_open): Remove attribute unused from
32892 name parameter. Add check for "host". This fixes the problem
32893 that grub-emu does not find partitions.
32894
32895 2007-11-18 Christian Franke <franke@computer.org>
32896
32897 * util/hostfs.c (is_dir): New function.
32898 (grub_hostfs_dir): Handle missing dirent.d_type case.
32899 (grub_hostfs_read): Add missing fseek().
32900 (grub_hostfs_label): Clear label pointer. This fixes a crash
32901 of grub-emu on "ls (host)".
32902
32903 2007-11-18 Christian Franke <franke@computer.org>
32904
32905 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
32906 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
32907 to 64 bit boundary by default.
32908
32909 2007-11-18 Bean <bean123ch@gmail.com>
32910
32911 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
32912 (hexdump_mod_SOURCES): New variable.
32913 (hexdump_mod_CFLAGS): Likewise.
32914 (hexdump_mod_LDFLAGS): Likewise.
32915
32916 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32917
32918 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32919
32920 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32921
32922 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
32923
32924 * include/grub/hexdump.h: New file.
32925
32926 * commands/hexdump.c: New file.
32927
32928 2007-11-10 Robert Millan <rmh@aybabtu.com>
32929
32930 * commands/i386/pc/play.c (beep_off): Switch order of arguments
32931 in grub_outb() calls.
32932 (beep_on): Likewise.
32933
32934 2007-11-10 Christian Franke <franke@computer.org>
32935
32936 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
32937 (grub_menu_run): Likewise.
32938
32939 2007-11-10 Robert Millan <rmh@aybabtu.com>
32940
32941 * include/grub/i386/efi/machine.h: New file.
32942 * include/grub/i386/linuxbios/machine.h: Likewise.
32943 * include/grub/i386/pc/machine.h: Likewise.
32944 * include/grub/powerpc/ieee1275/machine.h: Likewise.
32945 * include/grub/sparc64/ieee1275/machine.h: Likewise.
32946
32947 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
32948 (serial_hw_io_addr): New variable.
32949 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
32950 instead of `(unsigned short *) 0x400'.
32951
32952 2007-11-10 Bean <bean123ch@gmail.com>
32953
32954 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
32955
32956 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32957
32958 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
32959 (vga_mod_SOURCES): Added.
32960 (vga_mod_CFLAGS): Likewise.
32961 (vga_mod_LDFLAGS): Likewise.
32962
32963 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
32964 grub_outb() calls.
32965 (set_map_mask): Likewise.
32966 (set_read_map): Likewise.
32967 (set_read_address): Likewise.
32968 (vga_font): Removed variable.
32969 (get_vga_glyph): Removed function.
32970 (invalidate_char): Likewise.
32971 (write_char): Changed to use grub_font_get_glyph() for font
32972 information.
32973 (grub_vga_putchar): Likewise.
32974 (grub_vga_getcharwidth): Likewise.
32975
32976 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
32977
32978 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
32979 flags.
32980 (pxeboot_img_LDFLAGS): Likewise.
32981 (diskboot_img_LDFLAGS): Likewise.
32982 (kernel_img_LDFLAGS): Likewise.
32983
32984 2007-11-06 Robert Millan <rmh@aybabtu.com>
32985
32986 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
32987 in grub_outb() calls.
32988 (serial_hw_init): Likewise.
32989
32990 2007-11-05 Robert Millan <rmh@aybabtu.com>
32991
32992 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
32993 spaces. Skip non-regular files.
32994
32995 2007-11-05 Robert Millan <rmh@aybabtu.com>
32996
32997 * kern/disk.c (grub_disk_firmware_fini)
32998 (grub_disk_firmware_is_tainted): New variables.
32999
33000 * include/grub/disk.h (grub_disk_firmware_fini)
33001 (grub_disk_firmware_is_tainted): Likewise.
33002
33003 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
33004 (grub_disk_biosdisk_fini): ... to here.
33005 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
33006 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
33007 is set. Register grub_disk_biosdisk_fini() in
33008 `grub_disk_firmware_fini'.
33009
33010 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
33011 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
33012 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
33013 to finish existing firmware disk interface.
33014
33015 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
33016 (ata_mod_SOURCES): New variable.
33017 (ata_mod_CFLAGS): Likewise.
33018 (ata_mod_LDFLAGS): Likewise.
33019
33020 2007-11-05 Robert Millan <rmh@aybabtu.com>
33021
33022 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
33023 (grub_ata_wait): Reimplement using grub_millisleep().
33024
33025 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
33026 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
33027
33028 2007-11-03 Marco Gerards <marco@gnu.org>
33029
33030 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
33031 (CRTC_ADDR_PORT): New macro.
33032 (CRTC_DATA_PORT): Likewise.
33033 (CRTC_CURSOR): Likewise.
33034 (CRTC_CURSOR_ADDR_HIGH): Likewise.
33035 (CRTC_CURSOR_ADDR_LOW): Likewise.
33036 (update_cursor): New function.
33037 (grub_console_real_putchar): Call `update_cursor'.
33038 (grub_console_gotoxy): Likewise.
33039 (grub_console_cls): Set the default color when clearing the
33040 screen.
33041 (grub_console_setcursor): Implemented.
33042
33043 2007-11-03 Marco Gerards <marco@gnu.org>
33044
33045 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
33046 become activate.
33047 (grub_ata_pio_write): Likewise.
33048
33049 (grub_atapi_identify): Wait after issuing an ATA command.
33050 (grub_atapi_packet): Likewise.
33051 (grub_ata_identify): Likewise.
33052 (grub_ata_readwrite): Likewise.
33053
33054 2007-11-03 Marco Gerards <marco@gnu.org>
33055
33056 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
33057 (grub_ata_pio_write): Likewise.
33058 (grub_ata_readwrite): Use `grub_error', instead of
33059 returning `grub_errno'.
33060
33061 2007-11-03 Marco Gerards <marco@gnu.org>
33062
33063 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
33064 grub_ata_pio_write once for every single sector, instead of for
33065 multiple sectors.
33066
33067 2007-10-31 Robert Millan <rmh@aybabtu.com>
33068
33069 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
33070
33071 * conf/i386-linuxbios.rmk: New file.
33072
33073 * kern/i386/pc/hardware.c: Likewise.
33074 * term/i386/pc/at_keyboard.c: Likewise.
33075 * term/i386/pc/vga_text.c: Likewise.
33076
33077 * include/grub/i386/linuxbios/boot.h: Likewise.
33078 * include/grub/i386/linuxbios/console.h: Likewise.
33079 * include/grub/i386/linuxbios/init.h: Likewise.
33080 * include/grub/i386/linuxbios/kernel.h: Likewise.
33081 * include/grub/i386/linuxbios/loader.h: Likewise.
33082 * include/grub/i386/linuxbios/memory.h: Likewise.
33083 * include/grub/i386/linuxbios/serial.h: Likewise.
33084 * include/grub/i386/linuxbios/time.h: Likewise.
33085
33086 * kern/i386/linuxbios/init.c: Likewise.
33087 * kern/i386/linuxbios/startup.S: Likewise.
33088 * kern/i386/linuxbios/table.c: Likewise.
33089
33090 2007-10-31 Marco Gerards <marco@gnu.org>
33091
33092 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
33093 (ata_mod_SOURCES): New variable.
33094 (ata_mod_CFLAGS): Likewise.
33095 (ata_mod_LDFLAGS): Likewise.
33096
33097 * disk/ata.c: New file.
33098
33099 * include/grub/disk.h (grub_disk_dev_id): Add
33100 `GRUB_DISK_DEV_ATA_ID'.
33101
33102 2007-10-31 Robert Millan <rmh@aybabtu.com>
33103
33104 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
33105 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
33106
33107 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
33108 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
33109
33110 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
33111 `<grub/types.h>'.
33112
33113 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
33114
33115 2007-10-27 Robert Millan <rmh@aybabtu.com>
33116
33117 * include/grub/types.h (ULONG_MAX): Define macro.
33118
33119 2007-10-22 Robert Millan <rmh@aybabtu.com>
33120
33121 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
33122 `"../realmode.S"'.
33123 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
33124
33125 2007-10-22 Robert Millan <rmh@aybabtu.com>
33126
33127 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
33128 (pkgdata_MODULES): Add `biosdisk.mod'.
33129 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
33130 variables.
33131
33132 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
33133 (grub_biosdisk_init): Replace with ...
33134 (GRUB_MOD_INIT(biosdisk)): ... this.
33135 (grub_biosdisk_fini): Replace with ...
33136 (GRUB_MOD_FINI(biosdisk)): ... this.
33137
33138 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
33139 (grub_machine_init): Remove call to grub_biosdisk_init().
33140 (grub_machine_fini): Remove call to grub_machine_fini().
33141
33142 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
33143
33144 2007-10-22 Robert Millan <rmh@aybabtu.com>
33145
33146 * include/grub/time.h: New file.
33147 * include/grub/i386/time.h: Likewise.
33148 * include/grub/powerpc/time.h: Likewise.
33149 * include/grub/sparc64/time.h: Likewise.
33150
33151 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
33152 instances to ...
33153 (KERNEL_MACHINE_TIME_HEADER): ... this.
33154 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
33155 instances to ...
33156 (KERNEL_MACHINE_TIME_HEADER): ... this.
33157 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
33158 instances to ...
33159 (KERNEL_MACHINE_TIME_HEADER): ... this.
33160
33161 * kern/i386/efi/init.c: Include `<grub/time.h>'.
33162 (grub_millisleep): New function.
33163 * kern/i386/pc/init.c: Include `<grub/time.h>'.
33164 (grub_millisleep): New function.
33165 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
33166 Remove `grub/machine/time.h' include.
33167 (grub_millisleep): New function.
33168 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
33169 Remove `grub/machine/time.h' include.
33170 (grub_millisleep): New function.
33171
33172 * include/grub/misc.h (grub_div_roundup): New function.
33173
33174 * kern/misc.c: Include `<grub/time.h>'.
33175 (grub_millisleep_generic): New function.
33176
33177 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
33178 Add `time.h'.
33179 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
33180 Add `time.h'.
33181 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
33182 `machine/time.h'. Add `time.h'.
33183 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
33184
33185 2007-10-21 Robert Millan <rmh@aybabtu.com>
33186
33187 * include/grub/misc.h (grub_max): New function.
33188
33189 2007-10-21 Robert Millan <rmh@aybabtu.com>
33190
33191 * util/misc.c (grub_util_info): Call fflush() before returning.
33192
33193 2007-10-20 Robert Millan <rmh@aybabtu.com>
33194
33195 * genmk.rb (Image): Copy `extra_flags' from here ...
33196 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
33197
33198 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
33199 to `argc' and `args' arguments.
33200
33201 2007-10-17 Robert Millan <rmh@aybabtu.com>
33202
33203 * kern/i386/loader.S: New file.
33204
33205 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
33206 * kern/i386/loader.S (grub_linux_prot_size)... to here.
33207 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
33208 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
33209 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
33210 * kern/i386/loader.S (grub_linux_real_addr)... to here.
33211 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
33212 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
33213 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
33214 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
33215 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
33216 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
33217 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
33218 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
33219
33220 * kern/i386/realmode.S: New file.
33221
33222 * kern/i386/pc/startup.S (protstack): Moved from here ...
33223 * kern/i386/realmode.S (protstack)... to here.
33224 * kern/i386/pc/startup.S (gdt): Moved from here ...
33225 * kern/i386/realmode.S (gdt)... to here.
33226 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
33227 * kern/i386/realmode.S (prot_to_real)... to here.
33228
33229 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
33230 `kern/i386/realmode.S'.
33231
33232 2007-10-17 Robert Millan <rmh@aybabtu.com>
33233
33234 * include/grub/i386/loader.h: New file.
33235
33236 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
33237 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
33238 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
33239 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
33240 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
33241 * include/grub/i386/loader.h (grub_linux_prot_size)
33242 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
33243 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
33244 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
33245 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
33246
33247 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
33248
33249 2007-10-15 Robert Millan <rmh@aybabtu.com>
33250
33251 * normal/misc.c (grub_normal_print_device_info): Do not probe for
33252 filesystem when dev->disk is unset.
33253 Do probe for filesystem even when dev->disk->has_partitions is set.
33254 In case a filesystem is found, always report it.
33255 In case it isn't, if dev->disk->has_partitions is set, report that
33256 a partition table was found instead of reporting that no filesystem
33257 could be identified.
33258
33259 2007-10-12 Robert Millan <rmh@aybabtu.com>
33260
33261 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
33262 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
33263
33264 * include/grub/types.h (grub_host_to_target16): New macro.
33265 (grub_host_to_target32): Likewise.
33266 (grub_host_to_target64): Likewise.
33267 (grub_target_to_host16): Likewise.
33268 (grub_target_to_host32): Likewise.
33269 (grub_target_to_host64): Likewise.
33270
33271 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
33272 Renamed from to ...
33273 (GRUB_MOD_ALIGN): ...this. Update all users.
33274
33275 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
33276 grub_host_to_target32.
33277 Replace grub_be_to_cpu32 with grub_target_to_host32.
33278 (load_modules): Likewise.
33279 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
33280 Replace grub_be_to_cpu32 with grub_target_to_host32.
33281 Replace grub_cpu_to_be16 with grub_host_to_target16.
33282 Replace grub_cpu_to_be32 grub_host_to_target32.
33283
33284 2007-10-12 Robert Millan <rmh@aybabtu.com>
33285
33286 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
33287 * util/elf/grub-mkimage.c: ... here.
33288
33289 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
33290 `util/powerpc/ieee1275/grub-mkimage.c'.
33291
33292 2007-10-07 Robert Millan <rmh@aybabtu.com>
33293
33294 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
33295 and make it easier to figure out.
33296 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
33297 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
33298 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
33299 leave us with less than HEAP_MIN_SIZE total heap.
33300 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
33301
33302 2007-10-03 Robert Millan <rmh@aybabtu.com>
33303
33304 * include/grub/i386/io.h: New file.
33305 * commands/i386/pc/play.c (inb): Removed.
33306 (outb): Removed.
33307 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33308 with grub_outb().
33309 * term/i386/pc/serial.c (inb): Removed.
33310 (outb): Removed.
33311 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33312 with grub_outb().
33313 * term/i386/pc/vga.c (inb): Removed.
33314 (outb): Removed.
33315 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
33316 with grub_outb().
33317
33318 2007-10-02 Robert Millan <rmh@aybabtu.com>
33319
33320 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
33321 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33322 Reported by Marcin Kurek.
33323
33324 2007-09-07 Robert Millan <rmh@aybabtu.com>
33325
33326 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
33327 SmartFirmware version updates (as released by Sven Luther), and avoid
33328 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
33329 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
33330 known broken.
33331
33332 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33333
33334 From Hitoshi Ozeki:
33335 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
33336 when merging two regions.
33337
33338 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33339
33340 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
33341 * normal/completion.c (grub_normal_do_completion): Likewise.
33342 Reported by Hitoshi Ozeki.
33343
33344 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
33345
33346 Do not use devices at boot in chainloading.
33347
33348 * loader/i386/pc/chainloader.c (boot_drive): New variable.
33349 (boot_part_addr): Likewise.
33350 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
33351 with BOOT_DRIVE and BOOT_PART_ADDR.
33352 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
33353 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
33354
33355 2007-08-29 Robert Millan <rmh@aybabtu.com>
33356
33357 Patch from Simon Peter <dn.tlp@gmx.net>:
33358 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
33359 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
33360 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
33361 util/i386/pc/grub-setup.c_DEPENDENCIES.
33362 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
33363 util/grub-probe.c_DEPENDENCIES.
33364 * conf/powerpc-ieee1275.rmk: Likewise.
33365
33366 2007-08-28 Robert Millan <rmh@aybabtu.com>
33367
33368 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
33369 to tell grub-mkdevicemap how to name devices.
33370 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
33371 feature).
33372
33373 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
33374 util/i386/get_disk_name.c.
33375 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
33376 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
33377 util/ieee1275/get_disk_name.c.
33378
33379 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
33380
33381 * DISTLIST: Add util/i386/get_disk_name.c and
33382 util/ieee1275/get_disk_name.c.
33383
33384 * util/grub-mkdevicemap.c: Replace device naming logic with
33385 grub_util_get_disk_name() calls.
33386
33387 2007-08-20 Robert Millan <rmh@aybabtu.com>
33388
33389 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
33390 (so that it works for both plural and singular quantities).
33391
33392 2007-08-05 Robert Millan <rmh@aybabtu.com>
33393
33394 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
33395 so that [xz] isn't taken into account when determining order.
33396
33397 2007-08-02 Marco Gerards <marco@gnu.org>
33398
33399 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
33400 `include/multiboot2.h', `include/grub/elfload.h',
33401 `include/multiboot.h', `include/grub/multiboot.h',
33402 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
33403 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
33404 `kern/elf.c', `loader/multiboot_loader.c',
33405 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
33406 `loader/i386/pc/multiboot2.c',
33407 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
33408 `util/i386/pc/grub-mkrescue.in'. Remove
33409 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
33410 `include/grub/i386/pc/util/biosdisk.h' and
33411 `include/grub/powerpc/ieee1275/multiboot.h'.
33412
33413 2007-08-02 Bean <bean123ch@gmail.com>
33414
33415 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
33416 (ntfs_mod_SOURCES): New variable.
33417 (ntfs_mod_CFLAGS): Likewise.
33418 (ntfs_mod_LDFLAGS): Likewise.
33419
33420 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
33421 (grub_probe_SOURCES): Likewise.
33422 (grub_emu_SOURCES): Likewise.
33423
33424 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33425 (grub_emu_SOURCES): Likewise.
33426
33427 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
33428 (grub_emu_SOURCES): Likewise.
33429
33430 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
33431
33432 * fs/ntfs.c: New file.
33433
33434 2007-08-02 Bean <bean123ch@gmail.com>
33435
33436 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
33437
33438 * file.h (grub_file): Likewise.
33439
33440 * fshelp.h (grub_fshelp_read_file): Likewise.
33441
33442 * util/i386/pc/grub-setup.c (setup): Likewise.
33443 (save_first_sector): Likewise.
33444 (save_blocklists): Likewise.
33445
33446 * fs/affs.c (grub_affs_read_file): Likewise.
33447
33448 * fs/ext2.c (grub_ext2_read_file): Likewise.
33449
33450 * fs/fat.c (grub_fat_read_data): Likewise.
33451
33452 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
33453
33454 * fs/hfs.c (grub_hfs_read_file): Likewise.
33455
33456 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
33457
33458 * fs/jfs.c (grub_jfs_read_file): Likewise.
33459
33460 * fs/minix.c (grub_minix_read_file): Likewise.
33461
33462 * fs/sfs.c (grub_sfs_read_file): Likewise.
33463
33464 * fs/ufs.c (grub_ufs_read_file): Likewise.
33465
33466 * fs/xfs.c (grub_xfs_read_file): Likewise.
33467
33468 * command/blocklist.c (read_blocklist): Likewise.
33469 (print_blocklist): Likewise.
33470
33471 2007-08-02 Marco Gerards <marco@gnu.org>
33472
33473 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
33474 `util/hostfs.c'.
33475
33476 * disk/host.c: New file.
33477
33478 * util/hostfs.c: Likewise.
33479
33480 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
33481 return `GRUB_ERR_BAD_FS'.
33482 * fs/sfs.c (grub_sfs_mount): Likewise.
33483 * fs/xfs.c (grub_xfs_mount): Likewise.
33484
33485 * include/grub/disk.h (enum grub_disk_dev_id): Add
33486 `GRUB_DISK_DEVICE_HOST_ID'.
33487
33488 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
33489
33490 2007-07-24 Jerone Young <jerone@gmail.com>
33491
33492 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
33493 modules for compilation.
33494 * conf/powerpc-ieee1275.rmk: Likewise.
33495
33496 * include/multiboot.h: Move multiboot definitions to one file. Rename
33497 many definitions to not get grub specific.
33498 * include/multiboot2.h: Create header with multiboot 2 definitions.
33499 * include/grub/multiboot.h: Header for grub specific function
33500 prototypes and definitions.
33501 * include/grub/multiboot2.h: Likewise.
33502 * include/grub/multiboot_loader.h: Likewise.
33503 * include/grub/i386/pc/multiboot.h: Removed.
33504 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
33505
33506 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
33507 and 2 to allow for one multiboot and module commands.
33508 * loader/multiboot2.c: Add multiboot2 functionality.
33509 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
33510 and definition names.
33511 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
33512 2 functions.
33513 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
33514 ieee1275 specific multiboot2 code.
33515
33516 * kern/i386/pc/startup.S: Change headers and definition names for
33517 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
33518
33519 2007-07-22 Robert Millan <rmh@aybabtu.com>
33520
33521 * geninitheader.sh: Process file specified in first parameter rather
33522 than hardcoding grub_modules_init.lst.
33523 * geninit.sh: Likewise. Also, construct header name dynamically rather
33524 than hardcoding grub_modules_init.h.
33525
33526 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
33527 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
33528 grub_probe_init.[ch] and grub_setup_init.[ch].
33529
33530 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
33531 grub_modules_init.h with grub_emu_init.h.
33532 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
33533 grub_probe_init.[ch] files.
33534 * conf/i386-efi.rmk: Likewise.
33535 * conf/i386-pc.rmk: Likewise.
33536 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
33537 grub_setup_init.[ch] files.
33538
33539 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
33540 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
33541 to initialize modules rather than a list of hardcoded functions.
33542 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
33543 grub_init_all() to initialize modules rather than a list of hardcoded
33544 functions.
33545
33546 2007-07-22 Robert Millan <rmh@aybabtu.com>
33547
33548 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
33549 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
33550
33551 2007-07-22 Robert Millan <rmh@aybabtu.com>
33552
33553 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
33554 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
33555 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
33556 flag when running on SmartFirmware.
33557 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
33558 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
33559 was set.
33560
33561 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
33562 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
33563 rather than decreasing it.
33564
33565 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
33566 there's not enough space to do it, fail in the same way as when it
33567 can't be done because there are no partitions.
33568
33569 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
33570 when nvsetenv failed.
33571
33572 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33573
33574 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
33575 because this rule is automatically generated.
33576 (grub-mkrescue): Removed for the same reason as above.
33577
33578 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
33579
33580 Migrate to GNU General Public License Version 3.
33581
33582 * COPYING: Replaced with the plain text version of GPLv3.
33583
33584 * config.guess: Updated from gnulib.
33585 * config.sub: Likewise.
33586
33587 * geninit.sh: Output a GPLv3 copyright notice.
33588 * geninitheader.sh: Likewise.
33589 * genmodsrc.sh: Likewise.
33590 * gensymlist.sh.in: Likewise.
33591
33592 * boot/i386/pc/boot.S: Upgraded to GPLv3.
33593 * boot/i386/pc/diskboot.S: Likewise.
33594 * boot/i386/pc/pxeboot.S: Likewise.
33595 * commands/blocklist.c: Likewise.
33596 * commands/boot.c: Likewise.
33597 * commands/cat.c: Likewise.
33598 * commands/cmp.c: Likewise.
33599 * commands/configfile.c: Likewise.
33600 * commands/echo.c: Likewise.
33601 * commands/help.c: Likewise.
33602 * commands/ls.c: Likewise.
33603 * commands/search.c: Likewise.
33604 * commands/terminal.c: Likewise.
33605 * commands/test.c: Likewise.
33606 * commands/videotest.c: Likewise.
33607 * commands/i386/cpuid.c: Likewise.
33608 * commands/i386/pc/halt.c: Likewise.
33609 * commands/i386/pc/play.c: Likewise.
33610 * commands/i386/pc/reboot.c: Likewise.
33611 * commands/i386/pc/vbeinfo.c: Likewise.
33612 * commands/i386/pc/vbetest.c: Likewise.
33613 * commands/ieee1275/halt.c: Likewise.
33614 * commands/ieee1275/reboot.c: Likewise.
33615 * commands/ieee1275/suspend.c: Likewise.
33616 * disk/loopback.c: Likewise.
33617 * disk/lvm.c: Likewise.
33618 * disk/raid.c: Likewise.
33619 * disk/efi/efidisk.c: Likewise.
33620 * disk/i386/pc/biosdisk.c: Likewise.
33621 * disk/ieee1275/ofdisk.c: Likewise.
33622 * font/manager.c: Likewise.
33623 * fs/affs.c: Likewise.
33624 * fs/ext2.c: Likewise.
33625 * fs/fat.c: Likewise.
33626 * fs/fshelp.c: Likewise.
33627 * fs/hfs.c: Likewise.
33628 * fs/hfsplus.c: Likewise.
33629 * fs/iso9660.c: Likewise.
33630 * fs/jfs.c: Likewise.
33631 * fs/minix.c: Likewise.
33632 * fs/sfs.c: Likewise.
33633 * fs/ufs.c: Likewise.
33634 * fs/xfs.c: Likewise.
33635 * hello/hello.c: Likewise.
33636 * include/grub/acorn_filecore.h: Likewise.
33637 * include/grub/arg.h: Likewise.
33638 * include/grub/bitmap.h: Likewise.
33639 * include/grub/boot.h: Likewise.
33640 * include/grub/cache.h: Likewise.
33641 * include/grub/device.h: Likewise.
33642 * include/grub/disk.h: Likewise.
33643 * include/grub/dl.h: Likewise.
33644 * include/grub/elfload.h: Likewise.
33645 * include/grub/env.h: Likewise.
33646 * include/grub/err.h: Likewise.
33647 * include/grub/file.h: Likewise.
33648 * include/grub/font.h: Likewise.
33649 * include/grub/fs.h: Likewise.
33650 * include/grub/fshelp.h: Likewise.
33651 * include/grub/gzio.h: Likewise.
33652 * include/grub/hfs.h: Likewise.
33653 * include/grub/kernel.h: Likewise.
33654 * include/grub/loader.h: Likewise.
33655 * include/grub/lvm.h: Likewise.
33656 * include/grub/misc.h: Likewise.
33657 * include/grub/mm.h: Likewise.
33658 * include/grub/net.h: Likewise.
33659 * include/grub/normal.h: Likewise.
33660 * include/grub/parser.h: Likewise.
33661 * include/grub/partition.h: Likewise.
33662 * include/grub/pc_partition.h: Likewise.
33663 * include/grub/raid.h: Likewise.
33664 * include/grub/rescue.h: Likewise.
33665 * include/grub/script.h: Likewise.
33666 * include/grub/setjmp.h: Likewise.
33667 * include/grub/symbol.h: Likewise.
33668 * include/grub/term.h: Likewise.
33669 * include/grub/terminfo.h: Likewise.
33670 * include/grub/tparm.h: Likewise.
33671 * include/grub/types.h: Likewise.
33672 * include/grub/video.h: Likewise.
33673 * include/grub/efi/api.h: Likewise.
33674 * include/grub/efi/chainloader.h: Likewise.
33675 * include/grub/efi/console.h: Likewise.
33676 * include/grub/efi/console_control.h: Likewise.
33677 * include/grub/efi/disk.h: Likewise.
33678 * include/grub/efi/efi.h: Likewise.
33679 * include/grub/efi/pe32.h: Likewise.
33680 * include/grub/efi/time.h: Likewise.
33681 * include/grub/i386/linux.h: Likewise.
33682 * include/grub/i386/setjmp.h: Likewise.
33683 * include/grub/i386/types.h: Likewise.
33684 * include/grub/i386/efi/kernel.h: Likewise.
33685 * include/grub/i386/efi/loader.h: Likewise.
33686 * include/grub/i386/efi/time.h: Likewise.
33687 * include/grub/i386/pc/biosdisk.h: Likewise.
33688 * include/grub/i386/pc/boot.h: Likewise.
33689 * include/grub/i386/pc/chainloader.h: Likewise.
33690 * include/grub/i386/pc/console.h: Likewise.
33691 * include/grub/i386/pc/init.h: Likewise.
33692 * include/grub/i386/pc/kernel.h: Likewise.
33693 * include/grub/i386/pc/loader.h: Likewise.
33694 * include/grub/i386/pc/memory.h: Likewise.
33695 * include/grub/i386/pc/multiboot.h: Likewise.
33696 * include/grub/i386/pc/serial.h: Likewise.
33697 * include/grub/i386/pc/time.h: Likewise.
33698 * include/grub/i386/pc/vbe.h: Likewise.
33699 * include/grub/i386/pc/vbeblit.h: Likewise.
33700 * include/grub/i386/pc/vbefill.h: Likewise.
33701 * include/grub/i386/pc/vbeutil.h: Likewise.
33702 * include/grub/i386/pc/vga.h: Likewise.
33703 * include/grub/ieee1275/ieee1275.h: Likewise.
33704 * include/grub/ieee1275/ofdisk.h: Likewise.
33705 * include/grub/powerpc/libgcc.h: Likewise.
33706 * include/grub/powerpc/setjmp.h: Likewise.
33707 * include/grub/powerpc/types.h: Likewise.
33708 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
33709 * include/grub/powerpc/ieee1275/console.h: Likewise.
33710 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
33711 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
33712 * include/grub/powerpc/ieee1275/loader.h: Likewise.
33713 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
33714 * include/grub/powerpc/ieee1275/time.h: Likewise.
33715 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
33716 * include/grub/sparc64/libgcc.h: Likewise.
33717 * include/grub/sparc64/setjmp.h: Likewise.
33718 * include/grub/sparc64/types.h: Likewise.
33719 * include/grub/sparc64/ieee1275/console.h: Likewise.
33720 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
33721 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
33722 * include/grub/sparc64/ieee1275/time.h: Likewise.
33723 * include/grub/util/biosdisk.h: Likewise.
33724 * include/grub/util/getroot.h: Likewise.
33725 * include/grub/util/lvm.h: Likewise.
33726 * include/grub/util/misc.h: Likewise.
33727 * include/grub/util/raid.h: Likewise.
33728 * include/grub/util/resolve.h: Likewise.
33729 * io/gzio.c: Likewise.
33730 * kern/device.c: Likewise.
33731 * kern/disk.c: Likewise.
33732 * kern/dl.c: Likewise.
33733 * kern/elf.c: Likewise.
33734 * kern/env.c: Likewise.
33735 * kern/err.c: Likewise.
33736 * kern/file.c: Likewise.
33737 * kern/fs.c: Likewise.
33738 * kern/loader.c: Likewise.
33739 * kern/main.c: Likewise.
33740 * kern/misc.c: Likewise.
33741 * kern/mm.c: Likewise.
33742 * kern/parser.c: Likewise.
33743 * kern/partition.c: Likewise.
33744 * kern/rescue.c: Likewise.
33745 * kern/term.c: Likewise.
33746 * kern/efi/efi.c: Likewise.
33747 * kern/efi/init.c: Likewise.
33748 * kern/efi/mm.c: Likewise.
33749 * kern/i386/dl.c: Likewise.
33750 * kern/i386/efi/init.c: Likewise.
33751 * kern/i386/efi/startup.S: Likewise.
33752 * kern/i386/pc/init.c: Likewise.
33753 * kern/i386/pc/lzo1x.S: Likewise.
33754 * kern/i386/pc/startup.S: Likewise.
33755 * kern/ieee1275/ieee1275.c: Likewise.
33756 * kern/powerpc/cache.S: Likewise.
33757 * kern/powerpc/dl.c: Likewise.
33758 * kern/powerpc/ieee1275/cmain.c: Likewise.
33759 * kern/powerpc/ieee1275/crt0.S: Likewise.
33760 * kern/powerpc/ieee1275/init.c: Likewise.
33761 * kern/powerpc/ieee1275/openfw.c: Likewise.
33762 * kern/sparc64/cache.S: Likewise.
33763 * kern/sparc64/dl.c: Likewise.
33764 * kern/sparc64/ieee1275/init.c: Likewise.
33765 * kern/sparc64/ieee1275/openfw.c: Likewise.
33766 * loader/efi/chainloader.c: Likewise.
33767 * loader/efi/chainloader_normal.c: Likewise.
33768 * loader/i386/efi/linux.c: Likewise.
33769 * loader/i386/efi/linux_normal.c: Likewise.
33770 * loader/i386/pc/chainloader.c: Likewise.
33771 * loader/i386/pc/chainloader_normal.c: Likewise.
33772 * loader/i386/pc/linux.c: Likewise.
33773 * loader/i386/pc/linux_normal.c: Likewise.
33774 * loader/i386/pc/multiboot.c: Likewise.
33775 * loader/i386/pc/multiboot_normal.c: Likewise.
33776 * loader/powerpc/ieee1275/linux.c: Likewise.
33777 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33778 * normal/arg.c: Likewise.
33779 * normal/cmdline.c: Likewise.
33780 * normal/command.c: Likewise.
33781 * normal/completion.c: Likewise.
33782 * normal/execute.c: Likewise.
33783 * normal/function.c: Likewise.
33784 * normal/lexer.c: Likewise.
33785 * normal/main.c: Likewise.
33786 * normal/menu.c: Likewise.
33787 * normal/menu_entry.c: Likewise.
33788 * normal/misc.c: Likewise.
33789 * normal/parser.y: Likewise.
33790 * normal/script.c: Likewise.
33791 * normal/i386/setjmp.S: Likewise.
33792 * normal/powerpc/setjmp.S: Likewise.
33793 * normal/sparc64/setjmp.S: Likewise.
33794 * partmap/acorn.c: Likewise.
33795 * partmap/amiga.c: Likewise.
33796 * partmap/apple.c: Likewise.
33797 * partmap/gpt.c: Likewise.
33798 * partmap/pc.c: Likewise.
33799 * partmap/sun.c: Likewise.
33800 * term/gfxterm.c: Likewise.
33801 * term/terminfo.c: Likewise.
33802 * term/efi/console.c: Likewise.
33803 * term/i386/pc/console.c: Likewise.
33804 * term/i386/pc/serial.c: Likewise.
33805 * term/i386/pc/vesafb.c: Likewise.
33806 * term/i386/pc/vga.c: Likewise.
33807 * term/ieee1275/ofconsole.c: Likewise.
33808 * util/biosdisk.c: Likewise.
33809 * util/console.c: Likewise.
33810 * util/genmoddep.c: Likewise.
33811 * util/getroot.c: Likewise.
33812 * util/grub-emu.c: Likewise.
33813 * util/grub-mkdevicemap.c: Likewise.
33814 * util/grub-probe.c: Likewise.
33815 * util/lvm.c: Likewise.
33816 * util/misc.c: Likewise.
33817 * util/raid.c: Likewise.
33818 * util/resolve.c: Likewise.
33819 * util/update-grub.in: Likewise.
33820 * util/update-grub_lib.in: Likewise.
33821 * util/grub.d/00_header.in: Likewise.
33822 * util/grub.d/10_hurd.in: Likewise.
33823 * util/grub.d/10_linux.in: Likewise.
33824 * util/i386/efi/grub-install.in: Likewise.
33825 * util/i386/efi/grub-mkimage.c: Likewise.
33826 * util/i386/pc/grub-install.in: Likewise.
33827 * util/i386/pc/grub-mkimage.c: Likewise.
33828 * util/i386/pc/grub-mkrescue.in: Likewise.
33829 * util/i386/pc/grub-setup.c: Likewise.
33830 * util/i386/pc/misc.c: Likewise.
33831 * util/powerpc/ieee1275/grub-install.in: Likewise.
33832 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
33833 * util/powerpc/ieee1275/misc.c: Likewise.
33834 * video/bitmap.c: Likewise.
33835 * video/video.c: Likewise.
33836 * video/i386/pc/vbe.c: Likewise.
33837 * video/i386/pc/vbeblit.c: Likewise.
33838 * video/i386/pc/vbefill.c: Likewise.
33839 * video/i386/pc/vbeutil.c: Likewise.
33840 * video/readers/tga.c: Likewise.
33841
33842 2007-07-02 Robert Millan <rmh@aybabtu.com>
33843
33844 * conf/i386-efi.rmk: Replace obsolete reference to
33845 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
33846 with util/getroot.c.
33847 * conf/powerpc-ieee1275.rmk: Likewise.
33848 * conf/sparc64-ieee1275.rmk: Likewise.
33849
33850 * util/grub-emu.c (main): Fix unchecked pointer handling.
33851
33852 2007-07-02 Robert Millan <rmh@aybabtu.com>
33853
33854 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
33855 invocation to fail, in order to support partition-less media.
33856
33857 * util/i386/pc/grub-install.in: Likewise.
33858
33859 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
33860 which fs or partmap modules are needed (akin to its sister scripts).
33861
33862 Also use grub-probe to get rid of unportable /proc/mounts check.
33863
33864 Print the same informational message that the other scripts do, before
33865 exiting.
33866
33867 2007-06-23 Robert Millan <rmh@aybabtu.com>
33868
33869 * util/update-grub_lib.in (font_path): New function. Determine whether
33870 a font file can be found and, if so, echo the GRUB path to it.
33871
33872 * util/update-grub.in: Handle multiple terminals depending on user
33873 input, platform availability and font file presence. Propagate
33874 variables of our findings to /etc/grub.d/ children.
33875
33876 * util/grub.d/00_header.in: Handle multiple terminals, based on
33877 environment setup by update-grub.
33878
33879 2007-06-23 Robert Millan <rmh@aybabtu.com>
33880
33881 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
33882
33883 2007-06-21 Robert Millan <rmh@aybabtu.com>
33884
33885 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
33886 indicate end of data section in kernel image.
33887 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
33888 GRUB_KERNEL_MACHINE_DATA_END.
33889
33890 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
33891 space for it.
33892 * kern/i386/efi/startup.S: Likewise.
33893
33894 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
33895 during image generation. Implement --prefix option to override this
33896 patch.
33897 * util/i386/efi/grub-mkimage.c: Likewise.
33898
33899 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
33900 code to make path relative to its root into a separate function.
33901
33902 * util/i386/pc/grub-install.in: Use newly provided
33903 make_system_path_relative_to_its_root() to convert ${grubdir}, then
33904 pass the result to grub-install --prefix.
33905
33906 2007-06-13 Robert Millan <rmh@aybabtu.com>
33907
33908 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
33909 DEFAULT_DEVICE_MAP.
33910 * util/grub-emu.c: Use above definitions from misc.h instead of
33911 defining them.
33912 * util/grub-mkdevicemap.c: Likewise.
33913 * util/i386/pc/grub-setup.c: Likewise.
33914 * util/grub-probe.c: Likewise.
33915 (probe): Abort with grub_util_error() when either
33916 grub_guess_root_device or grub_util_get_grub_dev fails.
33917
33918 2007-06-12 Robert Millan <rmh@aybabtu.com>
33919
33920 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
33921 "pager" assignment.
33922 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
33923 "pcdata".
33924 * util/grub-probe.c (probe): Likewise for "drive_name".
33925
33926 2007-06-11 Robert Millan <rmh@aybabtu.com>
33927
33928 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
33929 not just the cdrom one.
33930
33931 2007-06-11 Robert Millan <rmh@aybabtu.com>
33932
33933 * util/i386/pc/grub-mkrescue.in: Add "set -e".
33934 Add --pkglibdir=DIR option to override pkglibdir.
33935 Mention --image-type=TYPE in help output.
33936 Fix --grub-mkimage (it was a no-op).
33937 Abort gracefully when no parameter is given.
33938
33939 2007-06-11 Robert Millan <rmh@aybabtu.com>
33940
33941 * util/i386/pc/grub-mkrescue.in: New file.
33942 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
33943 * Makefile.in: Handle bin_SCRIPTS.
33944
33945 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
33946
33947 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
33948 list of video modes.
33949
33950 2007-06-06 Robert Millan <rmh@aybabtu.com>
33951
33952 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
33953 file doesn't exist, or if it is in a filesystem grub can't read.
33954
33955 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
33956 not abort if GRUB_DRIVE could not be defined. Rearrange generated
33957 header comment to fit in 80 columns when the variables are resolved.
33958
33959 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
33960 could be identified by update-grub. Remove redundant check for
33961 unifont.pff existence (since convert_system_path_to_grub_path now
33962 handles that).
33963
33964 2007-06-04 Robert Millan <rmh@aybabtu.com>
33965
33966 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
33967
33968 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
33969
33970 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
33971
33972 2007-06-04 Robert Millan <rmh@aybabtu.com>
33973
33974 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
33975
33976 * include/grub/partition.h: Declare grub_apple_partition_map_init and
33977 grub_apple_partition_map_fini.
33978
33979 * util/biosdisk.c
33980 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
33981 to access >2 TiB disks).
33982
33983 Print disk->total_sectors with %llu instead of %lu, since this
33984 variable is always 64-bit (prevents wrong disk size from being displayed
33985 on either >2 TiB disk or big-endian CPU).
33986
33987 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
33988 into a generic case that supports all (sane) partition maps.
33989
33990 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
33991 breaks big-endian.
33992
33993 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
33994 and grub_apple_partition_map_fini() after that.
33995
33996 2007-06-01 Robert Millan <rmh@aybabtu.com>
33997
33998 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
33999
34000 * util/grub.d/00_header.in: Only enable gfxterm when
34001 convert_system_path_to_grub_path() succeeds.
34002
34003 2007-05-20 Robert Millan <rmh@aybabtu.com>
34004
34005 * util/update-grub_lib.in: New file.
34006 * DISTLIST: Add update-grub_lib.in.
34007 * conf/common.rmk: Generate update-grub_lib and install it in
34008 $(lib_DATA).
34009 * Makefile.in: Add install routine for $(lib_DATA).
34010
34011 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
34012 function provided by update-grub_lib to support arbitrary paths of
34013 unifont.pff.
34014 * util/update-grub.in: Use convert_system_path_to_grub_path() to
34015 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
34016
34017 2007-05-19 Robert Millan <rmh@aybabtu.com>
34018
34019 * commands/i386/cpuid.c: New module.
34020 * DISTLIST: Add it.
34021 * conf/i386-efi.rmk: Enable cpuid.mod.
34022 * conf/i386-pc.rmk: Likewise.
34023
34024 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
34025
34026 * kern/disk.c (grub_disk_read): Check return value of
34027 grub_realloc().
34028
34029 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
34030
34031 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
34032 arrays.
34033 * disk/raid.c (grub_raid_open): Likewise.
34034
34035 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
34036
34037 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
34038 stack instead of on the heap.
34039
34040 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
34041 before doing a read on it.
34042
34043 * configure.ac: Only use -fno-stack-protector for the target
34044 environment.
34045
34046 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
34047
34048 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
34049 __attribute_ ((unused)) to mode_type argument.
34050
34051 * util/getroot.c (grub_guess_root_device): Fix #endif.
34052
34053 * kern/misc.c (memcmp): Fix prototype.
34054
34055 * include/grub/partition.h [GRUB_UTIL]
34056 (grub_gpt_partition_map_init): Add prototype.
34057 (grub_gpt_partition_map_fini): Likewise.
34058
34059 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
34060 at the right place.
34061
34062 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
34063 (grub_fat_read_data): Likewise.
34064 (grub_fat_find_dir): Likewise.
34065
34066 * font/manager.c (find_glyph): Make table a const.
34067 (grub_font_get_glyph): Remove bitmap from if statement.
34068
34069 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
34070
34071 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
34072 code, first search for device in /dev/mapper, then in /dev.
34073 (grub_util_get_grub_dev): New function.
34074 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
34075 prototype.
34076 * util/grub-probe.c (probe): Remove check for RAID, call
34077 grub_util_get_grub_dev() instead of
34078 grub_util_biosdisk_get_grub_dev().
34079 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
34080 grub_util_biosdisk_get_grub_dev().
34081 * util/i386/pc/grub-setup.c (main): Likewise.
34082
34083 2007-05-16 Robert Millan <rmh@aybabtu.com>
34084
34085 * DISTLIST: Update for the latest changes.
34086 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
34087 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
34088 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
34089 grub/util/biosdisk.h.
34090 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
34091 grub/util/biosdisk.h.
34092
34093 2007-05-16 Robert Millan <rmh@aybabtu.com>
34094
34095 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
34096
34097 2007-05-16 Robert Millan <rmh@aybabtu.com>
34098
34099 * util/i386/efi/grub-install.in: New.
34100 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
34101 newly added grub-install.
34102 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
34103 include.
34104 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
34105 grub/util/biosdisk.h.
34106 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
34107 grub/util/biosdisk.h.
34108
34109 2007-05-16 Robert Millan <rmh@aybabtu.com>
34110
34111 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
34112 * include/grub/util/biosdisk.h: ... here.
34113 * util/i386/pc/biosdisk.c: Moved to ...
34114 * util/biosdisk.c: ... here.
34115 * util/i386/pc/getroot.c: Moved to ...
34116 * util/getroot.c: ... here.
34117 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
34118 * util/grub-mkdevicemap.c: ... here.
34119 * util/i386/pc/grub-probe.c: Moved to ...
34120 * util/grub-probe.c: ... here.
34121
34122 2007-05-15 Robert Millan <rmh@aybabtu.com>
34123
34124 * util/update-grub.in: Remove duplicated line in grub.cfg header
34125 message.
34126
34127 2007-05-13 Robert Millan <rmh@aybabtu.com>
34128
34129 * util/update-grub.in: Fix a few assumptions about the devices holding
34130 /, /boot and /boot/grub being the same.
34131 * util/grub.d/00_header.in: Likewise.
34132 * util/grub.d/10_hurd.in: Likewise.
34133 * util/grub.d/10_linux.in: Likewise.
34134
34135 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
34136 patterns. Use that to define the `.old' suffix as older than `'.
34137
34138 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
34139
34140 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
34141 the grub.cfg header message.
34142
34143 2007-05-11 Robert Millan <rmh@aybabtu.com>
34144
34145 * util/update-grub.in: Create device.map if it doesn't already exist,
34146 before attempting to run grub-probe.
34147 Check for grub-probe and grub-mkdevicemap with the same code
34148 grub-install is using.
34149 Remove test mode.
34150
34151 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
34152
34153 * Makefile.in: Add the datarootdir autoconf variable.
34154
34155 2007-05-09 Robert Millan <rmh@aybabtu.com>
34156
34157 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
34158 fail gracefully if dev->disk->partition == NULL.
34159
34160 2007-05-07 Robert Millan <rmh@aybabtu.com>
34161
34162 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
34163 determine partition map module.
34164 * util/i386/pc/grub-install.in: Use this feature to decide which
34165 partition module to load, instead of hardcoding pc and gpt.
34166
34167 2007-05-07 Robert Millan <rmh@aybabtu.com>
34168
34169 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
34170 source directory differs from build directory.
34171
34172 2007-05-05 Robert Millan <rmh@aybabtu.com>
34173
34174 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
34175 initialisation.
34176
34177 2007-05-05 Robert Millan <rmh@aybabtu.com>
34178
34179 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
34180
34181 2007-05-05 Robert Millan <rmh@aybabtu.com>
34182
34183 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
34184 command-line arguments via ${GRUB_CMDLINE_LINUX}.
34185
34186 2007-05-05 Robert Millan <rmh@aybabtu.com>
34187
34188 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
34189 (grub_probe_SOURCES): Likewise.
34190 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
34191 GPT and initialize dos_part and bsd_part accordingly.
34192 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
34193 install_bsd_part.
34194 (main): Activate gpt module for use during partition identification,
34195 and deactivate it afterwards.
34196 * util/i386/pc/grub-install.in: Add gpt module to core.img.
34197 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
34198 partition identification, and deactivate it afterwards.
34199
34200 2007-05-05 Robert Millan <rmh@aybabtu.com>
34201
34202 * term/i386/pc/console.c (grub_console_fini): Call
34203 grub_term_set_current() before grub_term_unregister().
34204
34205 2007-05-04 Robert Millan <rmh@aybabtu.com>
34206
34207 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
34208 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
34209 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
34210 and update-grub_DATA.
34211 * conf/common.rmk: Build and install update-grub components.
34212 * conf/common.mk: Regenerate.
34213 * util/update-grub.in: New. Core of update-grub.
34214 * util/grub.d/00_header.in: New. Generates grub.cfg header.
34215 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
34216 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
34217 * util/grub.d/README: New. Document grub.d directory layout.
34218
34219 2007-05-01 Robert Millan <rmh@aybabtu.com>
34220
34221 * util/grub-emu.c: Move initialization functions
34222 grub_util_biosdisk_init() and grub_init_all() before
34223 grub_util_biosdisk_get_grub_dev(), which relies on them.
34224
34225 2007-04-19 Robert Millan <rmh@aybabtu.com>
34226
34227 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
34228 it is used later.
34229
34230 2007-04-18 Jerone Young <jerone@gmail.com>
34231
34232 * kernel/elf.c: Add missing parenthesis for conditional statement
34233 stanza.
34234
34235 2007-04-10 Jerone Young <jerone@gmail.com>
34236
34237 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
34238 continue on and look for device node with real device name.
34239
34240 2007-04-10 Jerone Young <jerone@gmail.com>
34241
34242 * configure.ac: Add argument for autoconf to use transformation
34243 ability.
34244 * Makefile.in: Add autoconf package transformation code.
34245 * util/i386/pc/grub-install.in: Likewise.
34246 * util/powerpc/ieee1275/grub-install.in: Likewise.
34247
34248 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
34249
34250 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
34251 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
34252 (EXT2_REVISION): Likewise.
34253 (EXT2_INODE_SIZE): Likewise.
34254 (struct grub_ext2_block_group): Added a missing member
34255 "used_dirs".
34256 (grub_ext2_read_inode): Divide by the inode size in a superblock
34257 instead of 128 to obtain INODES_PER_BLOCK.
34258 Use the macro EXT2_INODE_SIZE instead of directly using
34259 SBLOCK->INODE_SIZE.
34260
34261 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
34262
34263 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
34264 superblock instead of the structure size to compute an
34265 offset. This fixes the problem that GRUB could not read a
34266 filesystem when inode size is different from 128-byte.
34267
34268 2007-03-05 Marco Gerards <marco@gnu.org>
34269
34270 * normal/main.c (read_config_file): When "menu" is not set, create
34271 an initial context.
34272
34273 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
34274
34275 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
34276 (HEAP_LIMIT): New macro.
34277 (grub_claim_heap): Claim memory up to `heaplimit'.
34278
34279 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
34280
34281 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
34282 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
34283 (_start): Likewise.
34284 (grub_arch_modules_addr): Return address after `_end'.
34285 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
34286 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
34287 (add_segments): Calculate `_end' from phdr size and location.
34288 (ALIGN_UP): Moved to ...
34289 * include/grub/misc.h: here.
34290 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
34291 New macro.
34292 (GRUB_IEEE1275_MODULE_BASE): Removed.
34293
34294 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34295
34296 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
34297 loop boundary.
34298
34299 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34300
34301 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
34302 All users updated.
34303 (grub_elf64_load_hook_t): Likewise.
34304 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
34305 debug output.
34306
34307 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
34308
34309 * kern/mm.c: Update copyright.
34310 (grub_mm_debug): Correct syntax error.
34311 (grub_mm_dump_free): New function.
34312 (grub_debug_free): Call `grub_free'.
34313 * include/grub/mm.h: Update copyright.
34314 (grub_mm_dump_free): Add declaration.
34315
34316 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
34317
34318 * include/grub/ieee1275/ieee1275.h: Update copyright.
34319 * kern/powerpc/ieee1275/init.c: Likewise.
34320 * kern/powerpc/ieee1275/openfw.c: Likewise.
34321
34322 * loader/powerpc/ieee1275/linux.c: Likewise.
34323 * include/grub/elfload.h: Likewise.
34324 * kern/elf.c: Likewise.
34325 (grub_elf32_load): Pass `base' and `size' parameters. Update all
34326 callers.
34327 (grub_elf64_load): Likewise.
34328 (grub_elf32_load_segment): Move to a nested function.
34329 (grub_elf64_load_segment): Likewise.
34330
34331 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
34332
34333 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
34334 prototype.
34335 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
34336 (grub_heap_len): Likewise.
34337 (HEAP_SIZE): New macro.
34338 (grub_claim_heap): New function.
34339 (grub_machine_init): Don't claim heap directly. Call
34340 `grub_claim_heap'.
34341 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
34342 (grub_available_iterate): New function.
34343
34344 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
34345
34346 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
34347 * configure.ac: Use it for testing the HOST and TARGET compilers.
34348
34349 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
34350
34351 * Makefile.in (enable_grub_emu): New variable.
34352 * configure.ac (--enable-grub-emu): New option.
34353 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
34354 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
34355 * conf/i386-pc.rmk: Likewise.
34356 * conf/powerpc-ieee1275.rmk: Likewise.
34357 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
34358
34359 2006-12-12 Marco Gerards <marco@gnu.org>
34360
34361 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
34362
34363 * kern/env.c (grub_env_unset): Don't free the member `value' when
34364 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
34365 pointer.
34366
34367 * normal/main.c (current_menu): Removed.
34368 (free_menu): Unset the `menu' environment variable.
34369 (grub_normal_menu_addentry): Make use of the environment variable
34370 `menu', instead of using the global `current_menu'. Allocate
34371 memory for the sourcecode of this entry.
34372 (read_config_file): New argument `nested', changed all callers.
34373 Only in the case of a new context, initialize a new menu. Set the
34374 `menu' environment variable.
34375 (grub_normal_execute): Don't set and unset the environment
34376 variable `menu' here anymore. Only free the menu when leaving the
34377 context.
34378
34379 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
34380 leak.
34381
34382 2006-12-11 Marco Gerards <marco@gnu.org>
34383
34384 * normal/menu_entry.c (run): Fix off by one bug so the last line
34385 is executed. Move the loader check to outside the loop.
34386
34387 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
34388
34389 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
34390
34391 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
34392
34393 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
34394 the number of sectors. Reported by Andrey Shuvikov
34395 <mr_hyro@yahoo.com>.
34396
34397 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
34398
34399 * kern/disk.c (grub_disk_read): When there is a read error, always
34400 try to read only the necessary data.
34401
34402 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
34403 disk/raid.c.
34404 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
34405 prototype.
34406 [GRUB_UTIL] (grub_raid_fini): Likewise.
34407 [GRUB_UTIL] (grub_lvm_init): Likewise.
34408 [GRUB_UTIL] (grub_lvm_fini): Likewise.
34409 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
34410 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
34411 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
34412 and grub_raid_fini().
34413
34414 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
34415
34416 * include/grub/types.h (__unused): Rename to UNUSED.
34417 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
34418 (grub_elf64_size): Likewise.
34419
34420 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34421
34422 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
34423 grub_error_push and grub_error_pop in the error-handling path.
34424 (grub_elf32_load_segment): Only call grub_file_read with non-zero
34425 length.
34426
34427 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
34428
34429 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
34430 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
34431 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34432 (kernel_elf_SOURCES): Likewise.
34433 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
34434 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
34435 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34436 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
34437 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
34438 (elf_mod_SOURCES): New variable.
34439 (elf_mod_CFLAGS): Likewise.
34440 (elf_mod_LDFLAGS): Likewise.
34441 * include/grub/types.h (__unused): New macro.
34442 * include/grub/elfload.h: New file.
34443 * kern/elf.c: Likewise.
34444 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
34445 (ELF32_LOADMASK): New macro.
34446 (ELF64_LOADMASK): Likewise.
34447 (vmlinux): Removed.
34448 (grub_linux_load32): New function.
34449 (grub_linux_load64): Likewise.
34450 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
34451 Use grub_elf_t instead of grub_file_t.
34452
34453 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
34454
34455 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
34456 `catch_result' to struct set_color_args.
34457
34458 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
34459
34460 * normal/menu.c: Include grub/script.h.
34461 * normal/menu_entry.c: Likewise.
34462 * include/grub/normal.h: Do not include grub/script.h.
34463
34464 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34465
34466 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
34467
34468 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34469
34470 * kern/disk.c (grub_disk_open): Print debug messages when opening a
34471 disk.
34472 (grub_disk_close): Print debug messages when closing a disk.
34473 (grub_disk_read): Print debug messages when disk read fails.
34474 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
34475 filesystem type.
34476 * kern/partition.c: Include misc.h.
34477 (grub_partition_iterate): Print debug messages when detecting
34478 partition type.
34479
34480 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
34481
34482 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
34483 is negative.
34484 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
34485
34486 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
34487
34488 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
34489 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
34490
34491 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
34492
34493 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
34494 instead of sizeof(lv). Patch by Michael Guntsche.
34495
34496 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
34497
34498 * disk/lvm.c: Rename VGS to VG_LIST.
34499 (grub_lvm_iterate): Change VGS->LV to VG-LV.
34500 (grub_lvm_open): Likewise.
34501 Thanks to Michael Guntsche for finding this bug.
34502
34503 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
34504
34505 * configure.ac (AC_INIT): Bumped to 1.95.
34506
34507 2006-10-14 Robert Millan <rmh@aybabtu.com>
34508
34509 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
34510 with "/dev/.static/dev/md".
34511
34512 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34513
34514 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
34515 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
34516 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
34517 DRIVE_NAME are always freed.
34518
34519 * util/i386/pc/biosdisk.c (make_device_name): Add one into
34520 DOS_PART, as a DOS partition is counted from one instead of zero
34521 now. Reported by Robert Millan.
34522
34523 2006-10-14 Robert Millan <rmh@aybabtu.com>
34524
34525 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
34526 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
34527 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
34528 string returned by grub_guess_root_device.
34529 * util/i386/pc/grub-setup.c: Likewise.
34530 * util/i386/pc/grub-probefs.c: Likewise.
34531
34532 * util/i386/pc/grub-probefs.c: Rename to ...
34533 * util/i386/pc/grub-probe.c: ... this.
34534 * DISTLIST: Remove grub-probefs, add grub-probe.
34535 * conf/i386-efi.rmk: Likewise.
34536 * conf/i386-pc.rmk: Likewise.
34537 * util/i386/pc/grub-install.in: Likewise.
34538
34539 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
34540 choose which information we want to print.
34541
34542 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
34543
34544 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
34545 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
34546 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
34547 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
34548 video/readers/tga.c and video/i386/pc/vbeutil.c.
34549
34550 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
34551
34552 Added support for RAID and LVM.
34553
34554 * disk/lvm.c: New file.
34555 * disk/raid.c: Likewise.
34556 * include/grub/lvm.h: Likewise.
34557 * include/grub/raid.h: Likewise.
34558 * include/grub/util/lvm.h: Likewise.
34559 * include/grub/util/raid.h: Likewise.
34560 * util/lvm.c: Likewise.
34561 * util/raid.c: Likewise.
34562
34563 * include/grub/disk.h (grub_disk_dev_id): Add
34564 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
34565 (grub_disk_get_size): New prototype.
34566 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
34567 returns a partition.
34568 (grub_disk_get_size): New function.
34569
34570 * kern/i386/pc/init.c (make_install_device): Copy the prefix
34571 verbatim if grub_install_dos_part is -2.
34572
34573 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
34574 and LVM devices.
34575
34576 * util/i386/pc/grub-setup.c (setup): New argument
34577 MUST_EMBED. Force embedding of GRUB when the argument is
34578 true. Close FILE before returning.
34579 (main): Add support for RAID and LVM.
34580
34581 * conf/common.rmk: Add RAID and LVM modules.
34582 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
34583 util/lvm.c.
34584 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
34585
34586 * kern/misc.c (grub_strstr): New function.
34587 * include/grub/misc.h (grub_strstr): New prototype.
34588
34589 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
34590
34591 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
34592
34593 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
34594
34595 * kern/misc.c (grub_strtoull): Guess the base only if not
34596 specified.
34597
34598 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34599
34600 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
34601 PowerMac support.
34602
34603 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34604
34605 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
34606
34607 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
34608 Remove `flags' argument. All callers changed.
34609 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
34610 (IEEE1275_IHANDLE_INVALID): New variable.
34611 (IEEE1275_CELL_INVALID): New variable.
34612 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
34613 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
34614 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
34615 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
34616 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
34617 codes from Open Firmware. All callers updated.
34618 (grub_ieee1275_next_property): Directly return Open Firmware return
34619 code.
34620 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
34621 Standardize error checking from `grub_ieee1275_get_property'.
34622 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
34623 `devalias' to `aliases'. Correct comments. Consolidate error paths.
34624
34625 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
34626
34627 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
34628 `instance_to_package_args' to `instance_to_path_args'.
34629
34630 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
34631 `grub_ieee1275_chosen'.
34632
34633 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
34634 `grub_ieee1275_interpret'.
34635
34636 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34637
34638 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
34639
34640 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
34641
34642 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
34643 (__cmpdi): Likewise.
34644
34645 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
34646 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
34647 `grub_ssize_t'.
34648
34649 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
34650
34651 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
34652 to type `grub_ssize_t'.
34653 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
34654
34655 2006-09-22 Marco Gerards <marco@gnu.org>
34656
34657 * normal/script.c (grub_script_create_cmdmenu): Skip leading
34658 newlines.
34659
34660 2006-09-22 Marco Gerards <marco@gnu.org>
34661
34662 * commands/echo.c: New file.
34663
34664 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
34665
34666 * conf/common.rmk (echo_mod_SOURCES): New variable.
34667 (echo_mod_CFLAGS): Likewise.
34668 (echo_mod_LDFLAGS): Likewise.
34669
34670 2006-09-22 Marco Gerards <marco@gnu.org>
34671
34672 * normal/main.c (get_line): Malloc memory instead of using
34673 preallocated memory. Removed the arguments `cmdline' and
34674 `max_len'. Updated all callers.
34675
34676 2006-09-22 Marco Gerards <marco@gnu.org>
34677
34678 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
34679 (normal_mod_DEPENDENCIES): Likewise.
34680
34681 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
34682 (normal_mod_DEPENDENCIES): Likewise.
34683
34684 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
34685
34686 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
34687
34688 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
34689 programs.
34690 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
34691 (normal_mod_DEPENDENCIES): Likewise.
34692 * conf/i386-pc.mk: Regenerate.
34693 * conf/i386-efi.mk: Likewise
34694 * conf/common.mk: Likewise.
34695 * conf/powerpc-ieee1275.mk: Likewise.
34696 * conf/sparc64-ieee1275.mk: Likewise.
34697
34698 2006-09-22 Robert Millan <rmh@aybabtu.com>
34699
34700 Sync with i386 version.
34701 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
34702 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
34703
34704 2006-09-21 Robert Millan <rmh@aybabtu.com>
34705
34706 Import from GRUB Legacy (lib/device.c):
34707 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
34708 (init_device_map) [__linux__]: Add support for I2O devices.
34709
34710 2006-09-14 Marco Gerards <marco@gnu.org>
34711
34712 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
34713 `-melf_i386'.
34714
34715 2006-09-14 Robert Millan <rmh@aybabtu.com>
34716
34717 * util/i386/pc/grub-install.in: Skip menu.lst when removing
34718 /boot/grub/*.lst.
34719
34720 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
34721
34722 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
34723 before adding it to device.map.
34724
34725 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
34726
34727 * genmk.rb: Let GCC generate dependencies the first time it
34728 compiles a file; using the -MD option.
34729 * conf/common.mk: Regenerate.
34730 * conf/i386-pc.mk: Likewise.
34731 * conf/i386-efi.mk: Likewise.
34732 * conf/powerpc-ieee1275.mk: Likewise.
34733 * conf/sparc64-ieee1275.mk: Likewise.
34734
34735 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
34736
34737 Move the prototypes of grub_setjmp and grub_longjmp to
34738 cpu/setjmp.h, so that each architecture may specify different
34739 attributes.
34740
34741 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
34742 (grub_longjmp): Likewise.
34743 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
34744 (grub_longjmp): Likewise.
34745 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
34746 (grub_longjmp): Likewise.
34747
34748 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
34749 [!GRUB_UTIL] (grub_longjmp): Removed.
34750
34751 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
34752
34753 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
34754 "color!" method does not return any value.
34755
34756 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34757
34758 * include/grub/bitmap.h: New file.
34759
34760 * include/grub/i386/pc/vbeutil.h: Likewise.
34761
34762 * video/bitmap.c: Likewise.
34763
34764 * video/readers/tga.c: Likewise.
34765
34766 * video/i386/pc/vbeutil.c: Likewise.
34767
34768 * commands/videotest.c: Code cleanup and updated to reflect to new
34769 video API.
34770
34771 * term/gfxterm.c: Likewise.
34772
34773 * video/video.c: Likewise.
34774
34775 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
34776 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
34777 (bitmap_mod_SOURCES): New entry.
34778 (bitmap_mod_CFLAGS): Likewise.
34779 (bitmap_mod_LDFLAGS): Likewise.
34780 (tga_mod_SOURCES): Likewise.
34781 (tga_mod_CFLAGS): Likewise.
34782 (tga_mod_LDFLAGS): Likewise.
34783
34784 * include/grub/video.h (grub_video_blit_operators): New enum type.
34785 (grub_video_render_target): Changed as forward declaration and moved
34786 actual definition to be video driver specific.
34787 (grub_video_adapter.blit_bitmap): Added blitting operator.
34788 (grub_video_adapter.blit_render_target): Likewise.
34789 (grub_video_blit_bitmap): Likewise.
34790 (grub_video_blit_render_target): Likewise.
34791
34792 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
34793 driver specific render target definition.
34794 (grub_video_vbe_map_rgba): Added driver internal helper.
34795 (grub_video_vbe_unmap_color): Updated to use
34796 grub_video_i386_vbeblit_info.
34797 (grub_video_vbe_get_video_ptr): Likewise.
34798
34799 * include/grub/i386/pc/vbeblit.h
34800 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
34801 grub_video_i386_vbeblit_info.
34802 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
34803 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
34804 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
34805 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
34806 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
34807 (grub_video_i386_vbeblit_index_index): Likewise.
34808 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
34809 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
34810 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
34811 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
34812 operator.
34813 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
34814 operator.
34815
34816 * video/i386/pc/vbeblit.c: Updated to reflect changes on
34817 include/grub/i386/pc/vbeblit.h.
34818
34819 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
34820 Updated to use grub_video_i386_vbeblit_info.
34821 (grub_video_i386_vbefill_R8G8B8): Likewise.
34822 (grub_video_i386_vbefill_index): Likewise.
34823 (grub_video_i386_vbefill): Added generic filler.
34824
34825 * video/i386/pc/vbefill.c: Updated to reflect changes on
34826 include/grub/i386/pc/vbefill.h.
34827
34828 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
34829 grub_video_i386_vbeblit_info.
34830 (grub_video_vbe_unmap_color): Likewise.
34831 (grub_video_vbe_blit_glyph): Likewise.
34832 (grub_video_vbe_scroll): Likewise.
34833 (grub_video_vbe_draw_pixel): Removed function.
34834 (grub_video_vbe_get_pixel): Likewise.
34835 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
34836 updated code to use it.
34837 (common_blitter): Added common blitter for render target and bitmap.
34838 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
34839 (grub_video_vbe_blit_render_target): Likewise.
34840
34841 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
34842
34843 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
34844 is in text mode if there is no console control protocol instance
34845 available.
34846
34847 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34848
34849 * include/grub/video.h: Code cleanup.
34850
34851 * include/grub/i386/pc/vbe.h: Likewise.
34852
34853 * video/i386/pc/vbe.c: Likewise.
34854
34855 * video/i386/pc/vbeblit.c: Likewise.
34856
34857 * video/i386/pc/vbefill.c: Likewise.
34858
34859 * video/video.c: Likewise. Also added more comments.
34860
34861 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
34862
34863 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
34864 (struct grub_biosdisk_dap): Likewise.
34865
34866 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
34867 linkage settings for all functions.
34868
34869 2006-07-12 Marco Gerards <marco@gnu.org>
34870
34871 * configure.ac (--enable-mm-debug): Fix typo.
34872
34873 * genkernsyms.sh.in: Use proper quoting for `CC'.
34874
34875 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
34876
34877 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
34878 (normal_mod_ASFLAGS): Remove "-m32".
34879
34880 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
34881
34882 * util/misc.c: Include config.h.
34883 [!HAVE_MEMALIGN]: Do not include malloc.h.
34884 (grub_memalign): Use posix_memalign, if present. Then, use
34885 memalign, if present. Otherwise, emit an error.
34886
34887 * util/grub-emu.c: Do not include malloc.h.
34888
34889 * include/grub/util/misc.h: Include unistd.h. This is required for
34890 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
34891 D. Eades III <hde@foobar-qux.org>.
34892
34893 * configure.ac (AC_GNU_SOURCE): Added.
34894 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
34895 type.
34896
34897 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
34898
34899 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
34900 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
34901
34902 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
34903
34904 * include/grub/types.h (grub_host_addr_t): Rename to
34905 grub_target_addr_t.
34906 (grub_host_off_t): Rename to grub_target_off_t.
34907 (grub_host_size_t): Rename to grub_target_size_t.
34908 (grub_host_ssize_t): Rename to grub_target_ssize_t.
34909 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
34910
34911 * include/grub/kernel.h (struct grub_module_header): Change type
34912 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
34913 (grub_module_info): Likewise.
34914
34915 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34916
34917 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
34918 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
34919 Velazquez <jesus.velazquez@gmail.com>.
34920
34921 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
34922
34923 Count partitions from 1 instead of 0 in the string representation
34924 of partitions. Still use 0-based internally.
34925
34926 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
34927 (sun_partition_map_iterate): Use grub_partition_t instead of
34928 struct grub_partition *. Cast DESC->START_CYLINDER to
34929 grub_uint64_t after converting the endian.
34930 (sun_partition_map_probe): Subtract 1 for PARTNUM.
34931 (sun_partition_map_get_name): Add 1 to P->INDEX.
34932
34933 * partmap/pc.c (grub_partition_parse): Subtract 1 for
34934 PCDATA->DOS_PART.
34935 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
34936
34937 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
34938 zero instead of one.
34939 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
34940 (gpt_partition_map_get_name): Add 1 into P->INDEX.
34941
34942 * partmap/apple.c (apple_partition_map_iterate): Change the type
34943 of POS to unsigned.
34944 (apple_partition_map_probe): Subtract 1 for PARTNUM.
34945 (apple_partition_map_get_name): Add 1 into P->INDEX.
34946
34947 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
34948 of POS to unsigned.
34949 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
34950 calculate the offset of a partition.
34951 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
34952 (amiga_partition_map_get_name): Add 1 into P->INDEX.
34953
34954 * partmap/acorn.c (acorn_partition_map_find): Change the type of
34955 SECTOR to grub_disk_addr_t.
34956 (acorn_partition_map_iterate): Likewise.
34957 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
34958 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
34959 top.
34960 (acorn_partition_map_get_name): Add 1 into P->INDEX.
34961
34962 * kern/i386/pc/init.c (make_install_device): Add 1 into
34963 GRUB_INSTALL_DOS_PART.
34964
34965 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
34966 conditional.
34967
34968 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
34969
34970 Clean up the code to support 64-bit addressing in disks and
34971 files. This change is not enough for filesystems yet.
34972
34973 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
34974 type of "start" to grub_uint64_t.
34975 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
34976 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
34977 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
34978 convert addresses.
34979
34980 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
34981 to grub_disk_addr_t.
34982
34983 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
34984 string.
34985
34986 * partmap/pc.c (pc_partition_map_iterate): Likewise.
34987
34988 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
34989 to char *.
34990
34991 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
34992
34993 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
34994
34995 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
34996
34997 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
34998 to grub_off_t, to detect an error from grub_file_seek.
34999 (grub_multiboot_load_elf32): Likewise.
35000
35001 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
35002 maximum unsigned long value when an overflow is detected.
35003 (grub_strtoull): New function.
35004 (grub_divmod64): Likewise.
35005 (grub_lltoa): use grub_divmod64.
35006
35007 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
35008 grub_disk_addr_t.
35009 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
35010 the pointer to next character. Use grub_strtoull instead of
35011 grub_strtoul.
35012 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
35013 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
35014 respectively.
35015
35016 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
35017 return value is signed.
35018 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
35019 test if OFFSET is less than zero, as OFFSET is unsigned now.
35020
35021 * kern/disk.c (struct grub_disk_cache): Change the type of
35022 "sector" to grub_disk_addr_t.
35023 (grub_disk_cache_get_index): Change the type of SECTOR to
35024 grub_disk_addr_t. Calculate the hash with SECTOR casted to
35025 unsigned after shifting.
35026 (grub_disk_cache_invalidate): Change the type of SECTOR to
35027 grub_disk_addr_t.
35028 (grub_disk_cache_unlock): Likewise.
35029 (grub_disk_cache_store): Likewise.
35030 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
35031 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
35032 grub_disk_addr_t and grub_uint64_t, respectively.
35033 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
35034 body, as the value of OFFSET is tweaked by
35035 grub_disk_check_range. Change the types of START_SECTOR, LEN and
35036 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
35037 respectively.
35038 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
35039 body, as the value of OFFSET is tweaked by
35040 grub_disk_check_range. Change the types of LEN and N to
35041 grub_size_t.
35042
35043 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
35044 and "saved_offset" to grub_off_t.
35045 (test_header): Cast BUF to char *.
35046 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
35047 to char *.
35048 (grub_gzio_read): Change the types of OFFSET and SIZE to
35049 grub_off_t and grub_size_t, respectively.
35050
35051 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
35052 Removed.
35053 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
35054 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
35055 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
35056 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
35057 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
35058
35059 * include/grub/types.h (grub_off_t): Unconditionally set to
35060 grub_uint64_t.
35061 (grub_disk_addr_t): Changed to grub_uint64_t.
35062
35063 * include/grub/partition.h (struct grub_partition): Change the
35064 types of "start", "len" and "offset" to grub_disk_addr_t,
35065 grub_uint64_t and grub_disk_addr_t, respectively.
35066 (grub_partition_get_start): Return grub_disk_addr_t.
35067 (grub_partition_get_len): Return grub_uint64_t.
35068
35069 * include/grub/misc.h (grub_strtoull): New prototype.
35070 (grub_divmod64): Likewise.
35071
35072 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
35073 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
35074 grub_off_t, respectively.
35075 All callers and references changed.
35076
35077 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
35078 grub_size_t in "read".
35079 All callers and references changed.
35080
35081 * include/grub/file.h (struct grub_file): Change the types of
35082 "offset" and "size" to grub_off_t and grub_off_t,
35083 respectively. Change the type of SECTOR to grub_disk_addr_t in
35084 "read_hook".
35085 (grub_file_read): Change the type of LEN to grub_size_t.
35086 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
35087 grub_off_t.
35088 (grub_file_size): Return grub_off_t.
35089 (grub_file_tell): Likewise.
35090 All callers and references changed.
35091
35092 * include/grub/disk.h (struct grub_disk_dev): Change the types of
35093 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
35094 "write".
35095 (struct grub_disk): Change the type of "total_sectors" to
35096 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
35097 "read_hook".
35098 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
35099 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
35100 (grub_disk_write): Likewise.
35101 All callers and references changed.
35102
35103 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
35104 char * for grub_strncmp to silence gcc.
35105 (grub_iso9660_mount): Likewise.
35106 (grub_iso9660_mount): Likewise.
35107 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
35108 return statement.
35109 (grub_iso9660_iterate_dir): Likewise.
35110 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
35111
35112 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
35113 LEN to grub_disk_addr_t and grub_size_t, respectively.
35114
35115 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
35116
35117 * fs/jfs.c (grub_jfs_read_file): Likewise.
35118
35119 * fs/minix.c (grub_jfs_read_file): Likewise.
35120
35121 * fs/sfs.c (grub_jfs_read_file): Likewise.
35122
35123 * fs/ufs.c (grub_jfs_read_file): Likewise.
35124
35125 * fs/xfs.c (grub_jfs_read_file): Likewise.
35126
35127 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
35128 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
35129 respectively.
35130
35131 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
35132 BLKNR to -1 instead of returning GRUB_ERRNO.
35133 (grub_ext2_read_file): Change the types of SECTOR and
35134 LEN to grub_disk_addr_t and grub_size_t, respectively.
35135
35136 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
35137 LEN to grub_disk_addr_t and grub_size_t, respectively.
35138
35139 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
35140 grub_file_read.
35141
35142 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
35143 string. Do not cast SECTOR explicitly.
35144
35145 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
35146 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
35147 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
35148 grub_disk_addr_t and grub_size_t, respectively. If the sector is
35149 over 2TB and LBA mode is not supported, raise an error.
35150 (get_safe_sectors): New function.
35151 (grub_biosdisk_read): Use get_safe_sectors.
35152 (grub_biosdisk_write): Likewise.
35153
35154 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
35155 (grub_efidisk_write): Likewise.
35156
35157 * disk/loopback.c (delete_loopback): Cosmetic changes.
35158 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
35159 correctly.
35160 (grub_loopback_open): Likewise.
35161 (grub_loopback_read): Likewise. Also, change the type of POS to
35162 grub_off_t, and fix the usage of grub_memset.
35163
35164 * commands/i386/pc/play.c: Include grub/machine/time.h.
35165
35166 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
35167 print FILE->SIZE.
35168
35169 * commands/configfile.c: Include grub/env.h.
35170
35171 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
35172 GRUB_ERRNO directly instead. Change the type of POS to
35173 grub_off_t. Follow the coding standard.
35174
35175 * commands/blocklist.c: Include grub/partition.h.
35176 (grub_cmd_blocklist): Return an error if the underlying device is
35177 not a disk. Take the starting sector of a partition into account,
35178 if a partition is used.
35179
35180 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
35181 a length field.
35182 (lba_mode): Support 64-bit addresses.
35183 (chs_mode): Likewise.
35184 (copy_buffer): Adapted to the new offsets of a length field and a
35185 segment field.
35186 (blocklist_default_start): Allocate 64-bit space.
35187
35188 * boot/i386/pc/boot.S (force_lba): Removed.
35189 (boot_drive): Moved to under KERNEL_SECTOR.
35190 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
35191 space.
35192 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
35193 is useless.
35194 (lba_mode): Refactored to support a 64-bit address. More size
35195 optimization.
35196 (setup_sectors): Likewise.
35197
35198 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
35199
35200 * DISTLIST: Added include/grub/i386/linux.h. Removed
35201 include/grub/i386/pc/linux.h
35202
35203 * configure.ac (AC_INIT): Bumped to 1.94.
35204
35205 * config.guess: Updated from gnulib.
35206 * config.sub: Likewise.
35207 * install-sh: Likewise.
35208 * mkinstalldirs: Likewise.
35209
35210 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
35211
35212 * conf/common.rmk (grub_modules_init.lst): Depended on
35213 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
35214 MODSRCFILES.
35215
35216 * genmk.rb (PModule::rule): Reverted the previous change.
35217
35218 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
35219
35220 * conf/common.rmk (grub_modules_init.lst): Depends on
35221 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
35222 that the target does not exist before producing.
35223 (grub_modules_init.h): Remove the target before generating.
35224 (grub_emu_init.c): Likewise.
35225
35226 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
35227
35228 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
35229
35230 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
35231 for the target-specific tests. Make sure that we also have the
35232 up-to-date target variables for those tests.
35233
35234 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
35235
35236 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
35237 (PModule::rule): Likewise.
35238
35239 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
35240
35241 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
35242 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
35243 target-specific flags should be prefixed.
35244 (PModule::rule): Likewise.
35245
35246 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
35247
35248 * configure.ac (CMP): Check if cmp is available explicitly.
35249
35250 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
35251
35252 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
35253 (target_cpu): New variable.
35254 (pkglibdir): Use target_cpu instead of host_cpu.
35255
35256 * util/i386/pc/grub-install.in (host_cpu): Removed.
35257 (target_cpu): New variable.
35258 (pkglibdir): Use target_cpu instead of host_cpu.
35259
35260 * util/genmoddep.c: Removed.
35261
35262 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
35263 instead of GRUB_HOST_SIZEOF_VOID_P.
35264 * kern/dl.c: Likewise.
35265
35266 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
35267 ...
35268 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
35269 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
35270 (GRUB_TARGET_SIZEOF_LONG): ... this.
35271 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
35272 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
35273 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
35274 to ...
35275 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
35276 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
35277 (GRUB_TARGET_SIZEOF_LONG): ... this.
35278 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
35279 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
35280 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
35281 to ...
35282 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
35283 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
35284 (GRUB_TARGET_SIZEOF_LONG): ... this.
35285 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
35286 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
35287
35288 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
35289 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
35290 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
35291 instead of GRUB_HOST_SIZEOF_LONG.
35292 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
35293 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
35294 GRUB_CPU_WORDS_BIGENDIAN.
35295 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
35296 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
35297 grub_host_ssize_t.
35298
35299 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
35300 (genmoddep_SOURCES): Likewise.
35301 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
35302 (genmoddep_SOURCES): Likewise.
35303 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
35304 (genmoddep_SOURCES): Likewise.
35305 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
35306 Likewise.
35307 (genmoddep_SOURCES): Likewise.
35308
35309 * genmoddep.awk: New file.
35310
35311 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
35312 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
35313 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
35314 (PModule::rule): Likewise.
35315 (Program::rule): Likewise.
35316 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
35317 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
35318 respectively.
35319
35320 * configure.ac: Rewritten intensively to use host and target
35321 instead of build and host, respectively.
35322
35323 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
35324 (host_cpu): Removed.
35325 (target_cpu): New variable.
35326 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
35327 (BUILD_CC): Removed.
35328 (BUILD_CFLAGS): Likewise.
35329 (BUILD_CPPFLAGS): Likewise.
35330 (TARGET_CC): New variable.
35331 (TARGET_CFLAGS): Likewise.
35332 (TARGET_CPPFLAGS): Likewise.
35333 (TARGET_LDFLAGS): Likewise.
35334 (AWK): Likewise.
35335 (include): Use target_cpu instead of host_cpu.
35336 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
35337
35338 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
35339
35340 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
35341
35342 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
35343 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
35344 field 'false' to 'exec_on_false'.
35345 (grub_script_create_cmdif): Renamed argument names to reflect above
35346 changes.
35347
35348 * normal/execute.c (grub_script_execute_cmdif): Likewise.
35349
35350 * normal/script.c (grub_script_create_cmdif): Likewise.
35351
35352 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
35353
35354 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
35355 top.
35356 (grub_hfsplus_btree_recptr): Likewise.
35357 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
35358 FILEBLOCK both to pass a block number and store next block
35359 number.
35360 (grub_hfsplus_read_block): Rewritten heavily to support an extent
35361 overflow file correctly. Specify errors appropriately, because
35362 fshelp expects that GRUB_ERRNO is set when fails. Reuse
35363 grub_hfsplus_btree_recptr to get the pointer to a found key.
35364 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
35365 is found.
35366
35367 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
35368 linux.mod.
35369 (_linux_mod_SOURCES): New variable.
35370 (_linux_mod_CFLAGS): Likewise.
35371 (_linux_mod_LDFLAGS): Likewise.
35372 (linux_mod_SOURCES): Likewise.
35373 (linux_mod_CFLAGS): Likewise.
35374 (linux_mod_LDFLAGS): Likewise.
35375
35376 * DISTLIST: Added loader/i386/efi/linux.c,
35377 loader/i386/efi/linux_normal.c and
35378 include/grub/i386/efi/loader.h.
35379
35380 * loader/i386/efi/linux.c: New file.
35381 * loader/i386/efi/linux_normal.c: Likewise.
35382 * include/grub/i386/efi/loader.h: Likewise.
35383
35384 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
35385
35386 * commands/blocklist.c: New file.
35387
35388 * DISTLIST: Added commands/blocklist.c.
35389
35390 * term/efi/console.c (grub_console_highlight_color): Use a lighter
35391 color for the background, and a darker color for the foreground.
35392 (grub_console_checkkey): Return READ_KEY.
35393 (grub_console_cls): Set the background to
35394 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
35395
35396 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
35397
35398 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
35399 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
35400
35401 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
35402 prototype.
35403
35404 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
35405 BG. The spec is wrong again.
35406
35407 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
35408 prototype.
35409 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
35410
35411 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
35412 commands/blocklist.c.
35413 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35414
35415 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
35416 (blocklist_mod_SOURCES): New variable.
35417 (blocklist_mod_CFLAGS): Likewise.
35418 (blocklist_mod_LDFLAGS): Likewise.
35419
35420 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
35421
35422 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
35423 duplication.
35424 (lba_mode): Use %eax more intensively to reduce the code size.
35425
35426 2006-05-20 Marco Gerards <marco@gnu.org>
35427
35428 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
35429
35430 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
35431 for `menuentry'.
35432 (script): Accept leading newlines.
35433 (newlines): New rule to describe 0 or more newlines.
35434 (commands): Accept `command' with trailing newline. Fixed the
35435 order in which arguments were passed to `grub_script_add_cmd'.
35436 Accept commands separated by newlines.
35437 (function): Changed to accept newlines.
35438 (menuentry) Rewritten.
35439
35440 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
35441 front of the list, instead of to the end.
35442
35443 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
35444
35445 * util/i386/pc/grub-install.in (bindir): New variable.
35446 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
35447 Shaver <lbgwjl@gmail.com>.
35448
35449 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
35450
35451 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
35452 grub/machine/linux.h
35453 * loader/i386/pc/linux.c: Likewise.
35454
35455 * include/grub/i386/pc/linux.h: Moved to ...
35456 * include/grub/i386/linux.h: ... here.
35457
35458 * include/grub/i386/linux.h (struct linux_kernel_params): New
35459 struct.
35460
35461 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
35462
35463 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
35464 checking.
35465 (grub_video_vbe_blit_glyph): Likewise.
35466 (grub_video_vbe_blit_bitmap): Likewise.
35467 (grub_video_vbe_blit_render_target): Likewise.
35468
35469 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
35470
35471 * configure.ac (--with-platform): Properly quote the square
35472 brackets.
35473
35474 2006-05-08 Marco Gerards <marco@gnu.org>
35475
35476 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
35477 this...
35478 (kernel_elf_HEADERS): ...to this. Updated all users.
35479 (grubof_symlist.c): Renamed from this...
35480 (kernel_elf_symlist.c): ...to this. Updated all users.
35481 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35482 (grubof_SOURCES): Renamed from this...
35483 (kernel_elf_SOURCES): ...to this.
35484 (grubof_HEADERS): Renamed from this...
35485 (kernel_elf_HEADERS): ...to this.
35486 (grubof_CFLAGS): Renamed from this...
35487 (kernel_elf_CFLAGS): ...to this.
35488 (grubof_ASFLAGS): Renamed from this...
35489 (kernel_elf_ASFLAGS): ...to this.
35490 (grubof_LDFLAGS): Renamed from this...
35491 (kernel_elf_LDFLAGS): ...to this.
35492
35493 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
35494 this...
35495 (kernel_elf_HEADERS): ...to this. Updated all users.
35496 (grubof_symlist.c): Renamed from this...
35497 (kernel_elf_symlist.c): ...to this. Updated all users.
35498 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
35499 (grubof_SOURCES): Renamed from this...
35500 (kernel_elf_SOURCES): ...to this.
35501 (grubof_HEADERS): Renamed from this...
35502 (kernel_elf_HEADERS): ...to this.
35503 (grubof_CFLAGS): Renamed from this...
35504 (kernel_elf_CFLAGS): ...to this.
35505 (grubof_ASFLAGS): Renamed from this...
35506 (kernel_elf_ASFLAGS): ...to this.
35507 (grubof_LDFLAGS): Renamed from this...
35508 (kernel_elf_LDFLAGS): ...to this.
35509
35510 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
35511 `kernel.elf' instead of `grubof'.
35512
35513 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
35514
35515 Add --with-platform to configure. Use pkglibdir instead of
35516 pkgdatadir. This is reported by Roger Leigh.
35517
35518 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
35519 (host_vendor): Likewise.
35520 (host_os): Likewise.
35521 (pkgdatadir): Likewise.
35522 (platform): New variable.
35523 (pkglibdir): Likewise.
35524 Use PKGLIBDIR instead of PKGDATADIR.
35525
35526 * util/i386/pc/grub-install.in (datadir): Removed.
35527 (host_vendor): Likewise.
35528 (host_os): Likewise.
35529 (pkgdatadir): Likewise.
35530 (platform): New variable.
35531 (pkglibdir): Likewise.
35532 Use PKGLIBDIR instead of PKGDATADIR.
35533
35534 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
35535 instead of GRUB_DATADIR.
35536 (main): Likewise.
35537 * util/i386/pc/grub-mkimage.c (usage): Likewise.
35538 (main): Likewise.
35539 * util/i386/efi/grub-mkimage.c (usage): Likewise.
35540 (main): Likewise.
35541
35542 * configure.ac (--with-platform): New option.
35543 Use PLATFORM instead of HOST_VENDOR to specify a platform.
35544
35545 * Makefile.in: Include a makefile based on PLATFORM instead of
35546 HOST_VENDOR.
35547 (pkgdatadir): Not appended by the machine type.
35548 (pkglibdir): Appended by the machine type.
35549 (host_vendor): Removed.
35550 (platform): New variable.
35551 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
35552 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
35553 (uninstall): Likewise.
35554
35555 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
35556
35557 Use the environment context in the menu. Remove the commands
35558 "default" and "timeout", and use variables instead.
35559
35560 * normal/menu.c: Include grub/env.h.
35561 (print_entry): Cast TITLE to silence gcc.
35562 (get_timeout): New function.
35563 (set_timeout): Likewise.
35564 (get_entry_number): Likewise.
35565 (run_menu): Use a default entry, a fallback entry and a timeout
35566 in the environment variables "default", "fallback" and
35567 "timeout". Also, tweak the default entry if it is not within the
35568 current menu entries.
35569 (grub_menu_run): Use a fallback entry in the environment variable
35570 "fallback".
35571
35572 * normal/main.c (read_config_file): Do not initialize
35573 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
35574 NEWMENU->TIMEOUT.
35575 (grub_normal_execute): Use a data slot to store the menu.
35576
35577 * include/grub/normal.h (struct grub_menu): Removed default_entry,
35578 fallback_entry and timeout.
35579 (struct grub_menu_list): Removed.
35580 (grub_menu_list_t): Likewise.
35581 (struct grub_context): Likewise.
35582 (grub_context_t): Likewise.
35583 (grub_context_get): Likewise.
35584 (grub_context_get_current_menu): Likewise.
35585 (grub_context_push_menu): Likewise.
35586 (grub_context_pop_menu): Likewise.
35587 (grub_default_init): Likewise.
35588 (grub_default_fini): Likewise.
35589 (grub_timeout_init): Likewise.
35590 (grub_timeout_fini): Likewise.
35591
35592 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
35593 and timeout.mod.
35594 (normal_mod_SOURCES): Removed normal/context.c.
35595
35596 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
35597 commands/default.c, commands/timeout.c and normal/context.c.
35598 (normal_mod_SOURCES): Removed normal/context.c.
35599
35600 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
35601 commands/timeout.c and normal/context.c.
35602 (normal_mod_SOURCES): Removed normal/context.c.
35603
35604 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
35605 commands/default.c, commands/timeout.c and normal/context.c.
35606 (normal_mod_SOURCES): Removed normal/context.c.
35607
35608 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
35609 timeout.mod.
35610 (default_mod_SOURCES): Removed.
35611 (default_mod_CFLAGS): Likewise.
35612 (default_mod_LDFLAGS): Likewise.
35613 (timeout_mod_SOURCES): Removed.
35614 (timeout_mod_CFLAGS): Likewise.
35615 (timeout_mod_LDFLAGS): Likewise.
35616
35617 * DISTLIST: Removed commands/default.c, commands/timeout.c and
35618 normal/context.c.
35619
35620 * commands/default.c: Removed.
35621 * commands/timeout.c: Likewise.
35622 * normal/context.c: Likewise.
35623
35624 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
35625
35626 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
35627
35628 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
35629
35630 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
35631 "next" to "prev" for readability.
35632 (struct grub_env_sorted_var): New struct.
35633 (grub_env_context): Renamed to ...
35634 (initial_context): ... this.
35635 (grub_env_var_context): Renamed to ...
35636 (current_context): ... this.
35637 (grub_env_find): Look only at CURRENT_CONTEXT.
35638 (grub_env_context_open): Rewritten to copy exported variables from
35639 previous context.
35640 (grub_env_context_close): Rewritten according to the new
35641 scheme. Also, add an assertion to prevent the initial context from
35642 removed.
35643 (grub_env_insert): Removed the code for the sorted list.
35644 (grub_env_remove): Likewise.
35645 (grub_env_export): Simply mark the variable with
35646 GRUB_ENV_VAR_GLOBAL.
35647 (grub_env_set): A cosmetic change for naming consistency.
35648 (grub_env_get): Likewise.
35649 (grub_env_unset): Likewise.
35650 (grub_env_iterate): Rewritten to sort variables within this
35651 function.
35652 (grub_register_variable_hook): Fixed for naming consistency. Call
35653 grub_env_find again, only if NAME is not found at the first time.
35654 (mangle_data_slot_name): New function.
35655 (grub_env_set_data_slot): Likewise.
35656 (grub_env_get_data_slot): Likewise.
35657 (grub_env_unset_data_slot): Likewise.
35658
35659 * include/grub/env.h (grub_env_var_type): New enum.
35660 (GRUB_ENV_VAR_LOCAL): New constant.
35661 (GRUB_ENV_VAR_GLOBAL): Likewise.
35662 (GRUB_ENV_VAR_DATA): Likewise.
35663 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
35664 "type".
35665 (grub_env_set): Replace VAR with NAME for consistency.
35666 (grub_register_variable_hook): Likewise.
35667 (grub_env_export): Specify the name of the argument.
35668 (grub_env_set_data_slot): New prototype.
35669 (grub_env_get_data_slot): Likewise.
35670 (grub_env_unset_data_slot): Likewise.
35671
35672 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35673
35674 Extend the loader so that GRUB can accept a loader which comes
35675 back to GRUB when a loaded image exits. Also, this change adds
35676 support for a chainloader on EFI.
35677
35678 * term/efi/console.c: Include grub/misc.h.
35679 (grub_console_checkkey): Display a scan code on the top for
35680 debugging. This will be removed once the EFI port gets stable.
35681 Correct the scan code mapping.
35682
35683 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
35684 allocate memory from larger regions, in order to reduce the number
35685 of allocated regions. Otherwise, the MacOSX loader panics.
35686 (filter_memory_map): Avoid less than 1MB for compatibility with
35687 other loaders.
35688 (add_memory_regions): Allocate from the tail of a region, if
35689 possible, to avoid allocating a region near to 1MB, for the MacOSX
35690 loader.
35691
35692 * kern/efi/init.c (grub_efi_set_prefix): Specify
35693 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
35694
35695 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
35696 argument IMAGE_HANDLE and specify it to get a loaded image.
35697 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
35698 grub_efi_get_loaded_image.
35699 (grub_efi_get_filename): Divide the length by the size of
35700 grub_efi_char16_t.
35701 (grub_efi_get_device_path): New function.
35702 (grub_efi_print_device_path): Print End Device Path nodes. Divide
35703 the length by the size of grub_efi_char16_t for a file path device
35704 path node.
35705
35706 * kern/loader.c (grub_loader_noreturn): New variable.
35707 (grub_loader_set): Accept a new argument NORETURN. Set
35708 GRUB_LOADER_NORETURN to NORETURN.
35709 All callers changed.
35710 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
35711 grub_machine_fini.
35712
35713 * include/grub/efi/efi.h (grub_efi_get_device_path): New
35714 prototype.
35715 (grub_efi_get_loaded_image): Take an argument to specify an image
35716 handle.
35717
35718 * include/grub/loader.h (grub_loader_set): Added one more argument
35719 NORETURN.
35720
35721 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
35722 instead of grub_efi_open_protocol.
35723 (grub_efidisk_get_device_name): Likewise.
35724 (grub_efidisk_close): Print a newline.
35725 (grub_efidisk_get_device_handle): Fixed to use
35726 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
35727 GRUB_EFI_DEVICE_PATH_TYPE.
35728
35729 * disk/efi/efidisk.c (device_path_guid): Moved to ...
35730 * kern/efi/efi.c (device_path_guid): ... here.
35731
35732 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
35733 chain.mod.
35734 (kernel_mod_HEADERS): Added efi/disk.h.
35735 (_chain_mod_SOURCES): New variable.
35736 (_chain_mod_CFLAGS): Likewise.
35737 (_chain_mod_LDFLAGS): Likewise.
35738 (chain_mod_SOURCES): Likewise.
35739 (chain_mod_CFLAGS): Likewise.
35740 (chain_mod_LDFLAGS): Likewise.
35741
35742 * DISTLIST: Added include/grub/efi/chainloader.h,
35743 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
35744
35745 * include/grub/efi/chainloader.h: New file.
35746 * loader/efi/chainloader.c: Likewise.
35747 * loader/efi/chainloader_normal.c: Likewise.
35748
35749 2006-04-30 Marco Gerards <marco@gnu.org>
35750
35751 * commands/configfile.c (grub_cmd_source): New function.
35752 (GRUB_MOD_INIT): Register the commands `source' and `.'.
35753 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
35754
35755 2006-04-30 Marco Gerards <marco@gnu.org>
35756
35757 * normal/execute.c (grub_script_execute_cmd): Change the return
35758 type to `grub_err_t'. Correctly return the error.
35759 (grub_script_execute_cmdline): In case a command line is not a
35760 command or a function, try to interpret it as an assignment.
35761
35762 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
35763
35764 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
35765 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
35766 skip a node whose name is obviously invalid as UTF-16,
35767 i.e. contains a NUL character. Stop the iteration when the last
35768 directory entry is found. Instead of using the return value of
35769 grub_hfsplus_btree_iterate_node, store the value in RET and use
35770 it, because the iterator can be stopped by the last directory
35771 entry.
35772
35773 2006-04-30 Marco Gerards <marco@gnu.org>
35774
35775 * include/grub/env.h (grub_env_export): New prototype. Reported
35776 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
35777
35778 2006-04-30 Marco Gerards <marco@gnu.org>
35779
35780 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
35781 size of the extents in a catalog file record.
35782
35783 2006-04-29 Marco Gerards <marco@gnu.org>
35784
35785 * commands/configfile.c (grub_cmd_configfile): Execute the
35786 configfile within its own context.
35787
35788 * include/grub/env.h (grub_env_context_open): New prototype.
35789 (grub_env_context_close): Likewise.
35790
35791 * kern/env.c (grub_env): Removed.
35792 (grub_env_sorted): Likewise.
35793 (grub_env_context): New variable.
35794 (grub_env_var_context): Likewise.
35795 (grub_env_find): Search both the active context and the global
35796 context.
35797 (grub_env_context_open): New function.
35798 (grub_env_context_close): Likewise.
35799 (grub_env_insert): Likewise.
35800 (grub_env_remove): Likewise.
35801 (grub_env_export): Likewise.
35802 (grub_env_set): Changed to use helper functions to avoid code
35803 duplication.
35804 (grub_env_iterate): Rewritten so both the current context and the
35805 global context are being used.
35806
35807 * normal/command.c (export_command): New function.
35808 (grub_command_init): Register the `export' function.
35809
35810 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
35811
35812 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
35813 explicitly to suppress gcc's warnings.
35814 * fs/fat.c (grub_fat_find_dir): Likewise.
35815 (grub_fat_label): Likewise.
35816 * fs/xfs.c (grub_xfs_read_inode): Likewise.
35817 (grub_xfs_mount): Likewise.
35818 (grub_xfs_label): Likewise.
35819 * fs/affs.c (grub_affs_mount): Likewise.
35820 (grub_affs_label): Likewise.
35821 (grub_affs_iterate_dir): Likewise.
35822 * fs/sfs.c (grub_sfs_mount): Likewise.
35823 (grub_sfs_iterate_dir): Likewise.
35824 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
35825 * fs/hfs.c (grub_hfs_mount): Likewise.
35826 (grub_hfs_cmp_catkeys): Likewise.
35827 (grub_hfs_find_dir): Likewise.
35828 (grub_hfs_dir): Likewise.
35829 (grub_hfs_label): Likewise.
35830 * fs/jfs.c (grub_jfs_mount): Likewise.
35831 (grub_jfs_opendir): Likewise.
35832 (grub_jfs_getent): Likewise.
35833 (grub_jfs_lookup_symlink): Likewise.
35834 (grub_jfs_label): Likewise.
35835 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
35836 (grub_hfsplus_iterate_dir): Likewise.
35837 (grub_hfsplus_btree_iterate_node): Made static.
35838
35839 * util/grub-emu.c (prefix): New variable.
35840 (grub_machine_set_prefix): New function.
35841 (main): Do not set the environment variable "prefix" here. Only
35842 set PREFIX, which is used later by grub_machine_set_prefix.
35843
35844 * include/grub/video.h: Do not include grub/symbol.h.
35845 (grub_video_register): Not exported. This symbol is not defined in
35846 the kernel.
35847 (grub_video_unregister): Likewise.
35848 (grub_video_iterate): Likewise.
35849 (grub_video_setup): Likewise.
35850 (grub_video_restore): Likewise.
35851 (grub_video_get_info): Likewise.
35852 (grub_video_get_blit_format): Likewise.
35853 (grub_video_set_palette): Likewise.
35854 (grub_video_get_palette): Likewise.
35855 (grub_video_set_viewport): Likewise.
35856 (grub_video_get_viewport): Likewise.
35857 (grub_video_map_color): Likewise.
35858 (grub_video_map_rgb): Likewise.
35859 (grub_video_map_rgba): Likewise.
35860 (grub_video_fill_rect): Likewise.
35861 (grub_video_blit_glyph): Likewise.
35862 (grub_video_blit_bitmap): Likewise.
35863 (grub_video_blit_render_target): Likewise.
35864 (grub_video_scroll): Likewise.
35865 (grub_video_swap_buffers): Likewise.
35866 (grub_video_create_render_target): Likewise.
35867 (grub_video_delete_render_target): Likewise.
35868 (grub_video_set_active_render_target): Likewise.
35869
35870 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
35871 Undefined.
35872 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
35873
35874 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
35875 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35876 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35877 instead of $(srcdir)/genkernsyms.sh.
35878
35879 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
35880 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35881 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35882 instead of $(srcdir)/genkernsyms.sh.
35883
35884 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
35885 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35886 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35887 instead of $(srcdir)/genkernsyms.sh.
35888
35889 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
35890 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
35891 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
35892 instead of $(srcdir)/genkernsyms.sh.
35893
35894 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
35895 genkernsyms.sh.
35896
35897 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
35898 genkernsyms.sh.
35899 (gensymlist.sh): New target.
35900 (genkernsyms.sh): Likewise.
35901
35902 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
35903 genkernsyms.sh.in and gensymlist.sh.in.
35904
35905 * genkernsyms.sh: Removed.
35906 * gensymlist.sh: Likewise.
35907
35908 * genkernsyms.sh.in: New file.
35909 * gensymlist.sh.in: Likewise.
35910
35911 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35912
35913 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
35914 clobber "prefix", since we may have already set it manually.
35915
35916 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
35917
35918 * kern/misc.c (abort): New alias for grub_abort.
35919
35920 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
35921
35922 A new machine-specific function "grub_machine_set_prefix" is
35923 defined. This is called after loading modules, so that a prefix
35924 initialization can use modules. Also, this change adds an
35925 intensive debugging feature for the memory manager via the
35926 configure option "--enable-mm-debug".
35927
35928 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
35929 PART.LEN.
35930
35931 * kern/sparc64/ieee1275/init.c (abort): Removed.
35932 (grub_stop): Likewise.
35933 (grub_exit): New function.
35934 (grub_set_prefix): Renamed to ...
35935 (grub_machine_set_prefix): ... this.
35936 (grub_machine_init): Do not call grub_set_prefix.
35937
35938 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
35939 (grub_machine_set_prefix): ... this.
35940 (grub_machine_init): Do not call grub_set_prefix.
35941
35942 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
35943 (grub_machine_init): Do not set the prefix here.
35944
35945 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
35946
35947 * kern/efi/init.c: Include grub/mm.h.
35948 (grub_efi_set_prefix): New function.
35949
35950 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
35951 (grub_efi_get_filename): New function.
35952 (grub_print_device_path): Renamed to ...
35953 (grub_efi_print_device_path): ... this.
35954
35955 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
35956 [MM_DEBUG] (grub_realloc): Likewise.
35957 [MM_DEBUG] (grub_free): Likewise.
35958 [MM_DEBUG] (grub_memalign): Likewise.
35959 [MM_DEBUG] (grub_mm_debug): New variable.
35960 [MM_DEBUG] (grub_debug_malloc): New function.
35961 [MM_DEBUG] (grub_debug_free): New function.
35962 [MM_DEBUG] (grub_debug_realloc): New function.
35963 [MM_DEBUG] (grub_debug_memalign): New function.
35964
35965 * kern/misc.c (grub_abort): Print a newline to distinguish
35966 the message.
35967
35968 * kern/main.c (grub_main): Call grub_machine_set_prefix and
35969 grub_set_root_dev after loading modules. This is necessary when
35970 setting a prefix depends on modules.
35971
35972 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
35973 (grub_efi_print_device_path): ... this.
35974 (grub_efi_get_filename): New prototype.
35975 (grub_efi_set_prefix): Likewise.
35976
35977 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
35978 and grub/disk.h.
35979 (grub_efidisk_get_device_handle): New prototype.
35980 (grub_efidisk_get_device_name): Likewise.
35981
35982 * include/grub/mm.h: Include config.h.
35983 (MM_DEBUG): Removed.
35984 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
35985 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
35986 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
35987 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
35988 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
35989 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
35990 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
35991 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
35992 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
35993
35994 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
35995
35996 * disk/efi/efidisk.c: Include grub/partition.h.
35997 (iterate_child_devices): New function.
35998 (add_device): First, compare only last device path nodes, so that
35999 devices are sorted by the types.
36000 (grub_efidisk_get_device_handle): New function.
36001 (grub_efidisk_get_device_name): Likewise.
36002
36003 * configure.ac (--enable-mm-debug): New option to enable the
36004 memory manager debugging feature. This makes the binary much
36005 bigger, so is disabled by default.
36006
36007 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
36008
36009 Use grub_abort instead of grub_stop, and grub_exit must be
36010 define in each architecture now. Also, this change adds support
36011 for EFI disks.
36012
36013 * util/i386/pc/grub-probefs.c: Include grub/term.h.
36014 (grub_getkey): New function.
36015 (grub_term_get_current): Likewise.
36016
36017 * util/i386/pc/grub-setup.c: Include grub/term.h.
36018 (grub_getkey): New function.
36019 (grub_term_get_current): Likewise.
36020
36021 * util/misc.c (grub_stop): Renamed to ...
36022 (grub_exit): ... this.
36023
36024 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
36025 (grub_exit): ... this.
36026 (grub_machine_init): Use grub_abort instead of abort.
36027 (grub_stop): Removed.
36028
36029 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
36030 abort.
36031
36032 * kern/i386/pc/startup.S (grub_exit): New function.
36033 (cold_reboot): New label.
36034
36035 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
36036 (grub_efi_init): Call grub_efidisk_init.
36037 (grub_efi_fini): Call grub_efidisk_fini.
36038
36039 * kern/efi/efi.c: Include grub/mm.h.
36040 (grub_efi_console_control_guid): Renamed to ...
36041 (console_control_guid): ... this.
36042 (grub_efi_loaded_image_guid): Renamed to ...
36043 (loaded_image_guid): ... this.
36044 (grub_efi_locate_handle): New function.
36045 (grub_efi_open_protocol): Likewise.
36046 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
36047 GRUB_EFI_CONSOLE_CONTROL_GUID.
36048 (grub_efi_exit): Removed.
36049 (grub_stop): Likewise.
36050 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
36051 (grub_exit): New function.
36052 (grub_print_device_path): Likewise.
36053
36054 * kern/rescue.c (grub_rescue_cmd_exit): New function.
36055 (grub_enter_rescue_mode): Register "exit".
36056
36057 * kern/misc.c (grub_real_dprintf): A cosmetic change.
36058 (grub_abort): New function.
36059
36060 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
36061
36062 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
36063
36064 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
36065
36066 * include/grub/efi/efi.h (grub_efi_exit): Removed.
36067 (grub_print_device_path): New prototype.
36068 (grub_efi_locate_handle): Likewise.
36069 (grub_efi_open_protocol): Likewise.
36070
36071 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
36072 * disk/efi/efidisk.c: Likewise.
36073
36074 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
36075
36076 * include/grub/efi/console_control.h
36077 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
36078
36079 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
36080 last 8 bytes as an array.
36081 (GRUB_EFI_DISK_IO_GUID): New macro.
36082 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
36083 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
36084 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
36085 grub_uint8_t.
36086 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
36087 (struct grub_efi_device_path): Rename the member "sub_type" to
36088 "subtype".
36089 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
36090 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
36091 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
36092 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
36093 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
36094 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
36095 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
36096 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
36097 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
36098 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
36099 (struct grub_efi_pci_device_path): New structure.
36100 (grub_efi_pci_device_path_t): New type.
36101 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
36102 (struct grub_efi_pccard_device_path): New structure.
36103 (grub_efi_pccard_device_path_t): New type.
36104 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
36105 (struct grub_efi_memory_mapped_device_path): New structure.
36106 (grub_efi_memory_mapped_device_path_t): New type.
36107 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
36108 (struct grub_efi_vendor_device_path): New structure.
36109 (grub_efi_vendor_device_path_t): New type.
36110 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
36111 (struct grub_efi_controller_device_path): New structure.
36112 (grub_efi_controller_device_path_t): New type.
36113 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
36114 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
36115 (struct grub_efi_acpi_device_path): New structure.
36116 (grub_efi_acpi_device_path_t): New type.
36117 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
36118 (struct grub_efi_expanded_acpi_device_path): New structure.
36119 (grub_efi_expanded_acpi_device_path_t): New type.
36120 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
36121 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
36122 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
36123 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
36124 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
36125 (struct grub_efi_atapi_device_path): New structure.
36126 (grub_efi_atapi_device_path_t): New type.
36127 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
36128 (struct grub_efi_fibre_channel_device_path): New structure.
36129 (grub_efi_fibre_channel_device_path_t): New type.
36130 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
36131 (struct grub_efi_1394_device_path): New structure.
36132 (grub_efi_1394_device_path_t): New type.
36133 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
36134 (struct grub_efi_usb_device_path): New structure.
36135 (grub_efi_usb_device_path_t): New type.
36136 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
36137 (struct grub_efi_usb_class_device_path): New structure.
36138 (grub_efi_usb_class_device_path_t): New type.
36139 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
36140 (struct grub_efi_i2o_device_path): New structure.
36141 (grub_efi_i2o_device_path_t): New type.
36142 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
36143 (struct grub_efi_mac_address_device_path): New structure.
36144 (grub_efi_mac_address_device_path_t): New type.
36145 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
36146 (struct grub_efi_ipv4_device_path): New structure.
36147 (grub_efi_ipv4_device_path_t): New type.
36148 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
36149 (struct grub_efi_ipv6_device_path): New structure.
36150 (grub_efi_ipv6_device_path_t): New type.
36151 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
36152 (struct grub_efi_infiniband_device_path): New structure.
36153 (grub_efi_infiniband_device_path_t): New type.
36154 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
36155 (struct grub_efi_uart_device_path): New structure.
36156 (grub_efi_uart_device_path_t): New type.
36157 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
36158 (struct grub_efi_vendor_messaging_device_path): New structure.
36159 (grub_efi_vendor_messaging_device_path_t): New type.
36160 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
36161 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
36162 (struct grub_efi_hard_drive_device_path): New structure.
36163 (grub_efi_hard_drive_device_path_t): New type.
36164 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
36165 (struct grub_efi_cdrom_device_path): New structure.
36166 (grub_efi_cdrom_device_path_t): New type.
36167 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
36168 (struct grub_efi_vendor_media_device_path): New structure.
36169 (grub_efi_vendor_media_device_path_t): New type.
36170 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
36171 (struct grub_efi_file_path_device_path): New structure.
36172 (grub_efi_file_path_device_path_t): New type.
36173 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
36174 (struct grub_efi_protocol_device_path): New structure.
36175 (grub_efi_protocol_device_path_t): New type.
36176 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
36177 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
36178 (struct grub_efi_bios_device_path): New structure.
36179 (grub_efi_bios_device_path_t): New type.
36180 (struct grub_efi_disk_io): New structure.
36181 (grub_efi_disk_io_t): New type.
36182 (struct grub_efi_block_io_media): New structure.
36183 (grub_efi_block_io_media_t): New type.
36184 (struct grub_efi_block_io): New structure.
36185 (grub_efi_block_io_t): New type.
36186
36187 * include/grub/misc.h (grub_stop): Removed.
36188 (grub_exit): New prototype.
36189 (grub_abort): Likewise.
36190
36191 * include/grub/disk.h (enum grub_disk_dev_id): Added
36192 GRUB_DISK_DEVICE_EFIDISK_ID.
36193
36194 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
36195 disk/efi/efidisk.c.
36196 (kernel_syms.lst): Remove the target if an error occurs.
36197
36198 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
36199
36200 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
36201 as it was simply too buggy.
36202
36203 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
36204
36205 * kern/misc.c (grub_lltoa): New function.
36206 (grub_vsprintf): Added support for the long long suffix,
36207 i.e. "ll".
36208
36209 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
36210
36211 * Makefile.in (LDFLAGS): Add variable.
36212 (LD): Remove variable.
36213 * configure.ac: Add -m32 to LDFLAGS.
36214 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
36215 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
36216 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
36217 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
36218 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
36219 variables.
36220 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
36221 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
36222 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
36223
36224 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
36225
36226 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
36227 length for unknown glyph.
36228
36229 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
36230
36231 Add support for pre-loaded modules into the EFI port.
36232
36233 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
36234 completely. Accept one more argument DIR. The caller has changed.
36235
36236 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
36237
36238 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
36239 (grub_efi_loaded_image_guid): New variable.
36240 (grub_efi_get_loaded_image): New function.
36241 (grub_arch_modules_addr): Likewise.
36242
36243 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
36244 prototype.
36245
36246 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
36247 (struct grub_efi_loaded_image): New structure.
36248 (grub_efi_loaded_image_t): New type.
36249
36250 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
36251
36252 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
36253 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
36254 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
36255
36256 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
36257
36258 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
36259
36260 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
36261
36262 * DISTLIST: Added include/grub/efi/console.h,
36263 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
36264 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
36265
36266 * include/grub/efi/console.h: New file.
36267 * include/grub/efi/time.h: Likewise.
36268 * include/grub/i386/efi/kernel.h: Likewise.
36269 * kern/efi/init.c: Likewise.
36270 * kern/efi/mm.c: Likewise.
36271 * term/efi/console.c: Likewise.
36272
36273 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
36274 (grub_stop): Removed.
36275 (grub_get_rtc): Likewise.
36276 (grub_machine_init): Simply call grub_efi_init.
36277 (grub_machine_fini): Call grub_efi_fini.
36278
36279 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
36280 (grub_efi_output_string): Removed.
36281 (grub_efi_stall): New function.
36282 (grub_stop): Likewise.
36283 (grub_get_rtc): Likewise.
36284
36285 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
36286 (grub_efi_stall): New prototype.
36287 (grub_efi_allocate_pages): Likewise.
36288 (grub_efi_free_pages): Likewise.
36289 (grub_efi_get_memory_map): Likewise.
36290 (grub_efi_mm_init): Likewise.
36291 (grub_efi_mm_fini): Likewise.
36292 (grub_efi_init): Likewise.
36293 (grub_efi_fini): Likewise.
36294
36295 * include/grub/i386/efi/time.h: Do not include
36296 grub/symbol.h. Include grub/efi/time.h.
36297 (GRUB_TICKS_PER_SECOND): Removed.
36298 (grub_get_rtc): Likewise.
36299
36300 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
36301 Added padding. The EFI spec is buggy.
36302 (GRUB_EFI_BLACK): New macro.
36303 (GRUB_EFI_BLUE): Likewise.
36304 (GRUB_EFI_GREEN): Likewise.
36305 (GRUB_EFI_CYAN): Likewise.
36306 (GRUB_EFI_RED): Likewise.
36307 (GRUB_EFI_MAGENTA): Likewise.
36308 (GRUB_EFI_BROWN): Likewise.
36309 (GRUB_EFI_LIGHTGRAY): Likewise.
36310 (GRUB_EFI_BRIGHT): Likewise.
36311 (GRUB_EFI_DARKGRAY): Likewise.
36312 (GRUB_EFI_LIGHTBLUE): Likewise.
36313 (GRUB_EFI_LIGHTGREEN): Likewise.
36314 (GRUB_EFI_LIGHTCYAN): Likewise.
36315 (GRUB_EFI_LIGHTRED): Likewise.
36316 (GRUB_EFI_LIGHTMAGENTA): Likewise.
36317 (GRUB_EFI_YELLOW): Likewise.
36318 (GRUB_EFI_WHITE): Likewise.
36319 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
36320 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
36321 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
36322 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
36323 (GRUB_EFI_BACKGROUND_RED): Likewise.
36324 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
36325 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
36326 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
36327 (GRUB_EFI_TEXT_ATTR): Likewise.
36328
36329 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
36330 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
36331 (kernel_mod_HEADERS): Added efi/time.h.
36332
36333 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
36334
36335 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
36336 include/grub/efi/api.h, include/grub/efi/console_control.h,
36337 include/grub/efi/efi.h, include/grub/efi/pe32.h,
36338 include/grub/i386/efi/time.h, kern/efi/efi.c,
36339 kern/i386/efi/init.c, kern/i386/efi/startup.S,
36340 and util/i386/efi/grub-mkimage.c.
36341
36342 * Makefile.in (RMKFILES): Added i386-efi.rmk.
36343
36344 * genmk.rb (PModule#rule): Do not export symbols if
36345 #{prefix}_EXPORTS is set to "no".
36346
36347 * conf/i386-efi.mk: New file.
36348 * conf/i386-efi.rmk: Likewise.
36349 * include/grub/efi/api.h: Likewise.
36350 * include/grub/efi/console_control.h: Likewise.
36351 * include/grub/efi/efi.h: Likewise.
36352 * include/grub/efi/pe32.h: Likewise.
36353 * include/grub/i386/efi/time.h: Likewise.
36354 * kern/efi/efi.c: Likewise.
36355 * kern/i386/efi/init.c: Likewise.
36356 * kern/i386/efi/startup.S: Likewise.
36357 * util/i386/efi/grub-mkimage.c: Likewise.
36358
36359 2006-04-17 Marco Gerards <marco@gnu.org>
36360
36361 * include/grub/script.h: Include <grub/parser.h> and
36362 "grub_script.tab.h".
36363 (struct grub_lexer_param): New struct.
36364 (struct grub_parser_param): Likewise.
36365 (grub_script_create_arglist): Pass the state in an argument.
36366 (grub_script_add_arglist): Likewise.
36367 (grub_script_create_cmdline): Likewise.
36368 (grub_script_create_cmdblock): Likewise.
36369 (grub_script_create_cmdif): Likewise.
36370 (grub_script_create_cmdmenu): Likewise.
36371 (grub_script_add_cmd): Likewise.
36372 (grub_script_arg_add): Likewise.
36373 (grub_script_lexer_ref): Likewise.
36374 (grub_script_lexer_deref): Likewise.
36375 (grub_script_lexer_record_start): Likewise.
36376 (grub_script_lexer_record_stop): Likewise.
36377 (grub_script_mem_record): Likewise.
36378 (grub_script_mem_record_stop): Likewise.
36379 (grub_script_malloc): Likewise.
36380 (grub_script_yylex): Likewise.
36381 (grub_script_yyparse): Likewise.
36382 (grub_script_yyerror): Likewise.
36383 (grub_script_yylex): Likewise.
36384 (grub_script_lexer_init): Return the state.
36385
36386 * normal/lexer.c (grub_script_lexer_state): Removed variable.
36387 (grub_script_lexer_done): Likewise.
36388 (grub_script_lexer_getline): Likewise.
36389 (grub_script_lexer_refs): Likewise.
36390 (script): Likewise.
36391 (newscript): Likewise.
36392 (record): Likewise.
36393 (recording): Likewise.
36394 (recordpos): Likewise.
36395 (recordlen): Likewise.
36396 (grub_script_lexer_init): Return the state instead of setting
36397 global variables.
36398 (grub_script_lexer_ref): Use the newly added argument for state
36399 instead of globals.
36400 (grub_script_lexer_deref): Likewise.
36401 (grub_script_lexer_record_start): Likewise.
36402 (grub_script_lexer_record_stop): Likewise.
36403 (recordchar): Likewise.
36404 (nextchar): Likewise.
36405 (grub_script_yylex2): Likewise.
36406 (grub_script_yylex): Likewise.
36407 (grub_script_yyerror): Likewise.
36408
36409 * normal/parser.y (func_mem): Removed variable.
36410 (menu_entry): Likewise.
36411 (err): Likewise.
36412 (%lex-param): New parser option.
36413 (%parse-param): Likewise.
36414 (script): Always return the AST.
36415 (argument): Pass the state around.
36416 (arguments): Likewise.
36417 (grubcmd): Likewise.
36418 (commands): Likewise.
36419 (function): Likewise.
36420 (menuentry): Likewise.
36421 (if_statement): Likewise.
36422 (if): Likewise.
36423
36424 * normal/script.c (grub_script_memused): Removed variable.
36425 (grub_script_parsed): Likewise.
36426 (grub_script_malloc): Added a state argument. Use that instead of
36427 global variables.
36428 (grub_script_mem_record): Likewise.
36429 (grub_script_mem_record_stop): Likewise.
36430 (grub_script_arg_add): Likewise.
36431 (grub_script_add_arglist): Likewise.
36432 (grub_script_create_cmdline): Likewise.
36433 (grub_script_create_cmdif): Likewise.
36434 (grub_script_create_cmdmenu): Likewise.
36435 (grub_script_add_cmd): Likewise.
36436 (grub_script_parse): Setup the state before calling the parser.
36437
36438 2006-04-16 Marco Gerards <marco@gnu.org>
36439
36440 * normal/command.c (grub_command_init): Remove the title command.
36441
36442 * normal/lexer.c (grub_script_yylex): Renamed from this...
36443 (grub_script_yylex2): ... to this.
36444 (grub_script_yylex): New function. Temporary
36445 introduced to filter some tokens.
36446 (grub_script_yyerror): Print a newline.
36447
36448 * normal/main.c (read_config_file): Output information about the
36449 lines that contain errors. Wait for a key after all lines have
36450 been processed. Don't return an empty menu.
36451
36452 * normal/parser.y (func_mem): Don't initialize.
36453 (menu_entry): Likewise.
36454 (err): New variable.
36455 (script): Don't return anything when an error was encountered.
36456 (ws, returns): Removed rules.
36457 (argument): Disabled concatenated variable support.
36458 (arguments): Remove explicit separators.
36459 (grubcmd): Likewise.
36460 (function): Likewise.
36461 (menuentry): Likewise.
36462 (if): Likewise.
36463 (commands): Likewise. Add error handling.
36464
36465 * normal/script.c (grub_script_create_cmdline): If
36466 `grub_script_parsed' is 0, assume the parser encountered an error.
36467
36468 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
36469
36470 * configure.ac: Add support for EFI. Fix the typo
36471 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
36472
36473 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36474
36475 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
36476 foreign multibyte characters should be shown correctly.
36477
36478 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
36479
36480 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
36481 calculation.
36482 (read_config_file): Made it to close file before returning.
36483
36484 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
36485
36486 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
36487 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
36488 video/i386/pc/vbefill.c.
36489
36490 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
36491 video/i386/pc/vbefill.c.
36492
36493 * include/grub/video.h (grub_video_blit_format): New enum.
36494 (grub_video_mode_info): Added new member blit_format.
36495 (grub_video_get_blit_format): New function prototype.
36496
36497 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
36498 function prototype.
36499 (grub_video_vbe_map_rgb): Likewise.
36500 (grub_video_vbe_unmap_color): Likewise.
36501
36502 * include/grub/i386/pc/vbeblit.h: New file.
36503
36504 * include/grub/i386/pc/vbefill.h: New file.
36505
36506 * video/video.c (grub_video_get_blit_format): New function.
36507 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
36508 (grub_video_vbe_map_rgb): Likewise.
36509 (grub_video_vbe_unmap_color): Likewise.
36510
36511 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
36512 optimized fills.
36513 (grub_video_vbe_blit_render_target): Changed to use more optimized
36514 blits.
36515 (grub_video_vbe_setup): Added detection for optimized settings.
36516 (grub_video_vbe_create_render_target): Likewise.
36517
36518 * video/i386/pc/vbeblit.c: New file.
36519
36520 * video/i386/pc/vbefill.c: New file.
36521
36522 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
36523
36524 * font/manager.c (grub_font_get_glyph): Removed font fixup from
36525 here...
36526
36527 * util/unifont2pff.rb: ... and moved it to here. Improved argument
36528 parsing to support both hex and dec ranges. If filename was missing
36529 show usage information.
36530
36531 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
36532
36533 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
36534 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
36535
36536 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
36537 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
36538 (video_mod_SOURCES): Added.
36539 (video_mod_CFLAGS): Likewise.
36540 (video_mod_LDFLAGS): Likewise.
36541 (gfxterm_mod_SOURCES): Likewise.
36542 (gfxterm_mod_CFLAGS): Likewise.
36543 (gfxterm_mod_LDFLAGS): Likewise.
36544 (videotest_mod_SOURCES): Likewise.
36545 (videotest_mod_CFLAGS): Likewise.
36546 (videotest_mod_LDFLAGS): Likewise.
36547 (vesafb_mod_SOURCES): Removed.
36548 (vesafb_mod_CFLAGS): Likewise.
36549 (vesafb_mod_LDFLAGS): Likewise.
36550 (vga_mod_SOURCES): Likewise.
36551 (vga_mod_CFLAGS): Likewise.
36552 (vga_mod_LDFLAGS): Likewise.
36553
36554 * commands/videotest.c: New file.
36555
36556 * font/manager.c (fill_with_default_glyph): Modified to use
36557 grub_font_glyph.
36558 (grub_font_get_glyph): Likewise.
36559 (fontmanager): Renamed from this...
36560 (font_manager): ... to this.
36561
36562 * include/grub/font.h (grub_font_glyph): Added new structure.
36563 (grub_font_get_glyph): Modified to use grub_font_glyph.
36564
36565 * include/grub/misc.h (grub_abs): Added as inline function.
36566
36567 * include/grub/video.h: New file.
36568
36569 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
36570 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
36571 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
36572 (grub_vbe_get_controller_info): Renamed from this...
36573 (grub_vbe_bios_get_controller_info): ... to this.
36574 (grub_vbe_get_mode_info): Renamed from this...
36575 (grub_vbe_bios_get_mode_info): ... to this.
36576 (grub_vbe_set_mode): Renamed from this...
36577 (grub_vbe_bios_set_mode): ... to this.
36578 (grub_vbe_get_mode): Renamed from this...
36579 (grub_vbe_bios_get_mode): ... to this.
36580 (grub_vbe_set_memory_window): Renamed from this...
36581 (grub_vbe_bios_set_memory_window): ... to this.
36582 (grub_vbe_get_memory_window): Renamed from this...
36583 (grub_vbe_bios_get_memory_window): ... to this.
36584 (grub_vbe_set_scanline_length): Renamed from this...
36585 (grub_vbe_set_scanline_length): ... to this.
36586 (grub_vbe_get_scanline_length): Renamed from this...
36587 (grub_vbe_bios_get_scanline_length): ... to this.
36588 (grub_vbe_set_display_start): Renamed from this...
36589 (grub_vbe_bios_set_display_start): ... to this.
36590 (grub_vbe_get_display_start): Renamed from this...
36591 (grub_vbe_bios_get_display_start): ... to this.
36592 (grub_vbe_set_palette_data): Renamed from this...
36593 (grub_vbe_bios_set_palette_data): ... to this.
36594 (grub_vbe_set_pixel_rgb): Removed.
36595 (grub_vbe_set_pixel_index): Likewise.
36596
36597 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
36598 from this...
36599 (grub_vbe_bios_get_controller_info): ... to this.
36600 (grub_vbe_get_mode_info): Renamed from this...
36601 (grub_vbe_bios_get_mode_info): ... to this.
36602 (grub_vbe_set_mode): Renamed from this...
36603 (grub_vbe_bios_set_mode): ... to this.
36604 (grub_vbe_get_mode): Renamed from this...
36605 (grub_vbe_bios_get_mode): ... to this.
36606 (grub_vbe_set_memory_window): Renamed from this...
36607 (grub_vbe_bios_set_memory_window): ... to this.
36608 (grub_vbe_get_memory_window): Renamed from this...
36609 (grub_vbe_bios_get_memory_window): ... to this.
36610 (grub_vbe_set_scanline_length): Renamed from this...
36611 (grub_vbe_set_scanline_length): ... to this.
36612 (grub_vbe_get_scanline_length): Renamed from this...
36613 (grub_vbe_bios_get_scanline_length): ... to this.
36614 (grub_vbe_set_display_start): Renamed from this...
36615 (grub_vbe_bios_set_display_start): ... to this.
36616 (grub_vbe_get_display_start): Renamed from this...
36617 (grub_vbe_bios_get_display_start): ... to this.
36618 (grub_vbe_set_palette_data): Renamed from this...
36619 (grub_vbe_bios_set_palette_data): ... to this.
36620 (grub_vbe_bios_get_controller_info): Fixed problem with registers
36621 getting corrupted after calling it. Added more pushes and pops.
36622 (grub_vbe_bios_set_mode): Likewise.
36623 (grub_vbe_bios_get_mode): Likewise.
36624 (grub_vbe_bios_get_memory_window): Likewise.
36625 (grub_vbe_bios_set_scanline_length): Likewise.
36626 (grub_vbe_bios_get_scanline_length): Likewise.
36627 (grub_vbe_bios_get_display_start): Likewise.
36628 (grub_vbe_bios_set_palette_data): Likewise.
36629
36630 * normal/cmdline.c (cl_set_pos): Refresh the screen.
36631 (cl_insert): Likewise.
36632 (cl_delete): Likewise.
36633
36634 * term/gfxterm.c: New file.
36635
36636 * term/i386/pc/vesafb.c: Removed file.
36637
36638 * video/video.c: New file.
36639
36640 * video/i386/pc/vbe.c (real2pm): Added new function.
36641 (grub_video_vbe_draw_pixel): Likewise.
36642 (grub_video_vbe_get_video_ptr): Likewise.
36643 (grub_video_vbe_get_pixel): Likewise
36644 (grub_video_vbe_init): Likewise.
36645 (grub_video_vbe_fini): Likewise.
36646 (grub_video_vbe_setup): Likewise.
36647 (grub_video_vbe_get_info): Likewise.
36648 (grub_video_vbe_set_palette): Likewise.
36649 (grub_video_vbe_get_palette): Likewise.
36650 (grub_video_vbe_set_viewport): Likewise.
36651 (grub_video_vbe_get_viewport): Likewise.
36652 (grub_video_vbe_map_color): Likewise.
36653 (grub_video_vbe_map_rgb): Likewise.
36654 (grub_video_vbe_map_rgba): Likewise.
36655 (grub_video_vbe_unmap_color): Likewise.
36656 (grub_video_vbe_fill_rect): Likewise.
36657 (grub_video_vbe_blit_glyph): Likewise.
36658 (grub_video_vbe_blit_bitmap): Likewise.
36659 (grub_video_vbe_blit_render_target): Likewise.
36660 (grub_video_vbe_scroll): Likewise.
36661 (grub_video_vbe_swap_buffers): Likewise.
36662 (grub_video_vbe_create_render_target): Likewise.
36663 (grub_video_vbe_delete_render_target): Likewise.
36664 (grub_video_vbe_set_active_render_target): Likewise.
36665 (grub_vbe_set_pixel_rgb): Remove function.
36666 (grub_vbe_set_pixel_index): Likewise.
36667 (index_color_mode): Remove static variable.
36668 (active_mode): Likewise.
36669 (framebuffer): Likewise.
36670 (bytes_per_scan_line): Likewise.
36671 (grub_video_vbe_adapter): Added new static variable.
36672 (framebuffer): Likewise.
36673 (render_target): Likewise.
36674 (initial_mode): Likewise.
36675 (mode_in_use): Likewise.
36676 (mode_list): Likewise.
36677
36678 2006-03-10 Marco Gerards <marco@gnu.org>
36679
36680 * configure.ac (AC_INIT): Bumped to 1.93.
36681
36682 * DISTLIST: Added `include/grub/hfs.h'.
36683
36684 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
36685
36686 * boot/i386/pc/boot.S (general_error): Before looping, try INT
36687 18H, which might help the BIOS falling back to next boot media.
36688
36689 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
36690
36691 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
36692 Poe Chen <poe.poechen@gmail.com>.
36693
36694 2006-01-17 Marco Gerards <marco@gnu.org>
36695
36696 * include/grub/normal.h: Include <grub/script.h>.
36697 (grub_command_list): Removed struct.
36698 (grub_command_list_t): Removed type.
36699 (grub_menu_entry): Remove members `num' and `command_list'. Add
36700 members `commands' and `sourcecode'.
36701 * include/grub/script.h: Add inclusion guards.
36702 (grub_script_cmd_menuentry): New struct.
36703 (grub_script_execute_menuentry): New prototype.
36704 (grub_script_lexer_record_start): Likewise.
36705 (grub_script_lexer_record_stop): Likewise.
36706 * normal/execute.c (grub_script_execute_menuentry): New function.
36707 * normal/lexer.c (record, recording, recordpos, recordlen): New
36708 variables.
36709 (grub_script_lexer_record_start): New function.
36710 (grub_script_lexer_record_stop): Likewise.
36711 (recordchar): Likewise.
36712 (nextchar): Likewise.
36713 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
36714 2048 as the buffer size. Add the tokens `menuentry' and `@'.
36715 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
36716 (current_menu): New variable.
36717 (free_menu): Mainly rewritten.
36718 (grub_normal_menu_addentry): New function.
36719 (read_config_file): Rewritten.
36720 * normal/menu.c (run_menu_entry): Mainly rewritten.
36721 * normal/menu_entry.c (make_screen): Rewritten the code to insert
36722 the menu entry.
36723 (run): Mainly rewritten.
36724 * normal/parser.y (menu_entry): New variable.
36725 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
36726 (menuentry): New rule.
36727 (command): Add `menuentry'.
36728 (if_statement): Allow additional returns before `fi'.
36729 * normal/script.c (grub_script_create_cmdmenu): New function.
36730
36731 2006-01-03 Marco Gerards <marco@gnu.org>
36732
36733 * INSTALL: GNU Bison is required.
36734 * configure.ac: Rewritten the test to detect Bison.
36735 * Makefile.in (YACC): New variable. Reported by Xun Sun
36736 <xun.sun.cn@gmail.com>.
36737
36738 2006-01-03 Marco Gerards <marco@gnu.org>
36739
36740 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
36741 the HFS+ filesystem to filesystem blocks.
36742 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
36743 GCC warning is silenced.
36744
36745 2006-01-03 Marco Gerards <marco@gnu.org>
36746
36747 * partmap/apple.c (apple_partition_map_iterate): Convert the data
36748 read from disk from big endian to host byte order.
36749
36750 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
36751
36752 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
36753 documentation.
36754 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
36755 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
36756 embedded HFS+ filesystem.
36757 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
36758 (grub_hfs_sblock): Move from here...
36759 * include/grub/hfs.h: To here... New file.
36760 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
36761 documentation.
36762 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
36763 New macros.
36764 (grub_hfsplus_volheader): Change type of member `magic' to
36765 `grub_uint16_t'.
36766 (grub_hfsplus_data): Add new member `embedded_offset'.
36767 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
36768 returned block.
36769 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
36770 Calculate the offset.
36771
36772 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36773
36774 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
36775 Removed.
36776 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
36777
36778 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36779
36780 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
36781 ENV->NAME is NULL after allocating ENV->VALUE.
36782
36783 2005-12-25 Marco Gerards <marco@gnu.org>
36784
36785 * kern/env.c (grub_env_set): Rewritten the error handling code.
36786
36787 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36788
36789 * geninit.sh: Made more robust, and more portable.
36790
36791 2005-12-25 Marco Gerards <marco@gnu.org>
36792
36793 Add support for Apple HFS+ filesystems.
36794
36795 * fs/hfsplus.c: New file.
36796
36797 * DISTLIST: Added `fs/hfsplus.c'.
36798
36799 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
36800 (hfsplus_mod_SOURCES): New variable.
36801 (hfsplus_mod_CFLAGS): Likewise.
36802 (hfsplus_mod_LDFLAGS): Likewise.
36803 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
36804 (grub_setup_SOURCES): Likewise.
36805 (grub_mkdevicemap_SOURCES): Likewise.
36806 (grub_emu_SOURCES): Likewise.
36807 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36808
36809 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
36810
36811 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
36812
36813 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
36814
36815 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
36816 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
36817 include/grub/parser.h, include/grub/script.h, kern/parser.c,
36818 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
36819 normal/lexer.c, normal/parser.y, normal/script.c, and
36820 partmap/gpt.c.
36821 Removed kern/sparc64/cache.c.
36822
36823 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
36824 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
36825 grub_emu_init.c.
36826
36827 * configure.ac (AC_INIT): Bumped to 1.92.
36828
36829 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
36830
36831 * kern/err.c (grub_error_push): Added new function to support error
36832 stacks.
36833 (grub_error_pop): Likewise.
36834 (grub_error_stack_items): New local variable to support error stacks.
36835 (grub_error_stack_pos): Likewise.
36836 (grub_error_stack_assert): Likewise.
36837 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
36838 stack depth.
36839 (grub_print_error): Added support to print errors from error stack.
36840
36841 * include/grub/err.h (grub_error_push): Added function prototype.
36842 (grub_error_pop): Likewise.
36843
36844 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
36845
36846 * configure.ac: Accept `powerpc64' as host_cpu.
36847 (amd64): Rename to `biarch32'.
36848
36849 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
36850 non-cacheline-aligned addresses.
36851
36852 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
36853 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
36854 if `size' is non-zero.
36855
36856 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
36857
36858 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
36859 and `cd' to make sure the filename is not prefixed with a
36860 directory name.
36861 (pkgdata_MODULES): Add `gpt.mod'.
36862 (gpt_mod_SOURCES): New variable.
36863 (gpt_mod_CFLAGS): Likewise.
36864 (gpt_mod_LDFLAGS): Likewise.
36865
36866 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
36867
36868 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
36869 New macro.
36870
36871 * partmap/gpt.c: New file.
36872
36873 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
36874 GPT partition map is detected.
36875
36876 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
36877
36878 * commands/i386/pc/play.c: New file.
36879 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
36880 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
36881 macros.
36882
36883 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
36884
36885 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
36886 ((unused))' to silence gcc warning.
36887
36888 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
36889
36890 * configure.ac: Correct `AC_PROG_YACC' test.
36891
36892 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36893
36894 * util/powerpc/ieee1275/grub-install.in: Run the mount point
36895 check before installing files.
36896
36897 2005-11-22 Mike Small <smallm@panix.com>
36898
36899 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
36900 number regex so multidigit numbers are recognized correctly.
36901
36902 2005-11-22 Mike Small <smallm@panix.com>
36903
36904 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
36905 debugging message before attempting to claim memory.
36906 (grub_rescue_cmd_initrd): Add a claim debugging message and try
36907 multiple addresses in case of failure.
36908
36909 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36910
36911 * term/tparm.c (get_space): Remove empty `if' statement.
36912
36913 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
36914
36915 * kern/parser.c (check_varstate): Rename `state' to 's'.
36916
36917 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36918
36919 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
36920 variable definitions to the beginning of each function. Sort stack
36921 variables by size.
36922 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
36923 `buf' argument to `char *'.
36924
36925 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
36926
36927 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
36928 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36929 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36930 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36931 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36932 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36933 configfile.mod, search.mod, gzio.mod and test.mod.
36934 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36935 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36936 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36937 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36938 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36939 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36940 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36941 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36942 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36943 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36944 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36945 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36946 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36947 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36948 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36949 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36950 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36951 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36952 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36953 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36954 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
36955 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
36956 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
36957
36958 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
36959 `grep --include'.
36960 (pkgdata_MODULES): Add test.mod.
36961
36962 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
36963
36964 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
36965 appending to variables with "+=".
36966 (PModule): Use full pathname to generate *.lst filenames.
36967
36968 * Makefile.in: Fixed list rules moved from genmk.rb.
36969 (.DELETE_ON_ERROR): New special target.
36970 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
36971
36972 * conf/i386-pc.rmk: Include conf/common.mk.
36973 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
36974 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
36975 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
36976 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
36977 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
36978 configfile.mod, search.mod, gzio.mod and test.mod.
36979 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
36980 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
36981 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
36982 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
36983 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
36984 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
36985 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
36986 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
36987 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
36988 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
36989 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
36990 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
36991 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
36992 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
36993 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
36994 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
36995 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
36996 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
36997 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
36998 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
36999 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
37000 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
37001 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
37002 here...
37003 * conf/common.rmk: ... to here. New file.
37004
37005 * conf/common.mk: New file.
37006
37007 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
37008
37009 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
37010 (grub_script.tab.c): ... here.
37011
37012 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
37013 (grub_script.tab.c): ... here.
37014
37015 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
37016 (grub_script.tab.c): ... here.
37017
37018 * normal/command.c (grub_command_find): Fixed a memory leak of
37019 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
37020
37021 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37022
37023 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
37024 "@" which marks the start of a comment on ARM.
37025 (VARIABLE): Likewise.
37026
37027 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37028
37029 Add support for Linux/ADFS partition tables.
37030
37031 * partmap/acorn.c: New file.
37032
37033 * include/grub/acorn_filecore.h: Likewise.
37034
37035 * DISTLIST: Added `partmap/acorn.c' and
37036 `include/grub/acorn_filecore.h'.
37037
37038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37039 `partmap/acorn.c'.
37040 (pkgdata_MODULES): Add `acorn.mod'.
37041 (acorn_mod_SOURCES): New variable.
37042 (acorn_mod_CFLAGS): Likewise.
37043
37044 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
37045 `partmap/acorn.c'.
37046 (pkgdata_MODULES): Add `acorn.mod'.
37047 (acorn_mod_SOURCES): New variable.
37048 (acorn_mod_CFLAGS): Likewise.
37049
37050 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
37051 (pkgdata_MODULES): Add `acorn.mod'.
37052 (acorn_mod_SOURCES): New variable.
37053 (acorn_mod_CFLAGS): Likewise.
37054 (acorn_mod_LDFLAGS): Likewise.
37055
37056 * include/types.h (grub_disk_addr_t): New typedef.
37057
37058 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
37059
37060 * geninit.sh: New file.
37061
37062 * geninitheader.sh: Likewise.
37063
37064 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
37065 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
37066 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
37067 * commands/configfile.c (grub_configfile_init)
37068 (grub_configfile_fini): Likewise.
37069 * commands/default.c (grub_default_init, grub_default_fini):
37070 Likewise.
37071 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
37072 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
37073 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
37074 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
37075 Likewise.
37076 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
37077 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
37078 Likewise.
37079 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
37080 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
37081 Likewise.
37082 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
37083 Likewise.
37084 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
37085 Likewise.
37086 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
37087 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
37088 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
37089 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
37090 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
37091 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
37092 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
37093 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
37094 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
37095 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
37096 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
37097 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
37098 * partmap/amiga.c (grub_amiga_partition_map_init)
37099 (grub_amiga_partition_map_fini): Likewise.
37100 * partmap/apple.c (grub_apple_partition_map_init)
37101 (grub_apple_partition_map_fini): Likewise.
37102 * partmap/pc.c (grub_pc_partition_map_init)
37103 (grub_pc_partition_map_fini): Likewise.
37104 * partmap/sun.c (grub_sun_partition_map_init,
37105 grub_sun_partition_map_fini): Likewise.
37106 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
37107 Likewise.
37108
37109 * util/grub-emu.c: Include <grub_modules_init.h>.
37110 (main): Don't initialize and de-initialize any modules directly,
37111 use `grub_init_all' and `grub_fini_all' instead.
37112
37113 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
37114 `grub_vesafb_mod_init'.
37115 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
37116 all users.
37117 * term/i386/pc/vga.c (grub_vga_init): Renamed to
37118 `grub_vga_mod_init'. Updated all users.
37119 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
37120
37121 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
37122 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
37123 rules.
37124
37125 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
37126 Generate a function to initialize the module in utilities.
37127 Updated all callers.
37128 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
37129 initialize the module in utilities. Updated all callers.
37130
37131 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
37132
37133 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
37134 escape sequence and a literal ^L to clear the screen.
37135
37136 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
37137 when returning from Open Firmware.
37138
37139 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
37140
37141 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
37142 (grub_ofconsole_height): Likewise.
37143 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
37144 manually insert a '\n'.
37145 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
37146 `grub_ofconsole_height'. Return early if these are already set.
37147
37148 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
37149
37150 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
37151 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
37152 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
37153 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
37154 and `normal/script.c'.
37155 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
37156 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37157 (test_mod_SOURCES): New variable.
37158 (test_mod_CFLAGS): Likewise.
37159 (test_mod_LDFLAGS): Likewise.
37160 (pkgdata_MODULES): Add `test.mod'.
37161 (grub_script.tab.c): New rule.
37162 (grub_script.tab.h): Likewise.
37163
37164 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
37165
37166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
37167 `commands/test.c', `normal/execute.c', `normal/lexer.c',
37168 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37169 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
37170 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37171 (test_mod_SOURCES): New variable.
37172 (test_mod_CFLAGS): Likewise.
37173 (pkgdata_MODULES): Add `test.mod'.
37174 (grub_script.tab.c): New rule.
37175 (grub_script.tab.h): Likewise.
37176
37177 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
37178
37179 Add initial scripting support.
37180
37181 * commands/test.c: New file.
37182 * include/grub/script.h: Likewise.
37183 * normal/execute.c: Likewise.
37184 * normal/function.c: Likewise.
37185 * normal/lexer.c: Likewise.
37186 * normal/parser.y: Likewise.
37187 * normal/script.c: Likewise.
37188
37189 * configure.ac: Add `AC_PROG_YACC' test.
37190
37191 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
37192 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
37193 `normal/function.c' and `normal/script.c'.
37194 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
37195 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
37196 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
37197 variables.
37198 (pkgdata_MODULES): Add `test.mod'.
37199 (grub_script.tab.c): New rule.
37200 (grub_script.tab.h): Likewise.
37201
37202 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
37203
37204 * include/grub/normal.h (grub_test_init): New prototype.
37205 (grub_test_fini): Likewise.
37206
37207 * normal/command.c: Include <grub/script.h>.
37208 (grub_command_execute): Rewritten.
37209
37210 * util/grub-emu.c (main): Call `grub_test_init' and
37211 `grub_test_fini'.
37212
37213 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
37214
37215 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
37216 to 0.
37217 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
37218 there are no pending characters.
37219
37220 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
37221
37222 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
37223 `grub_strndup' to drop device arguments. Replace unnecessary
37224 `grub_strndup' with `grub_strdup'.
37225
37226 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
37227
37228 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
37229 `debug' environment variable has been set.
37230
37231 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
37232
37233 * Makefile.in (install-local): Use $(DATA).
37234 (uninstall): Likewise.
37235 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
37236 (sbin_UTILITIES): ... to here.
37237 (sbin_SCRIPTS): New variable.
37238 (grub_install_SOURCES): New variable.
37239 * util/powerpc/ieee1275/grub-install.in: New file.
37240 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
37241 variable.
37242 (add_segments): Call `grub_util_get_path'.
37243
37244 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
37245
37246 From Timothy Baldwin:
37247 * commands/ls.c (grub_ls_list_files): Close FILE with
37248 grub_file_close.
37249 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
37250
37251 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
37252
37253 * include/grub/parser.h: New file.
37254
37255 * kern/parser.c: Likewise.
37256
37257 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
37258 (grub_setup_SOURCES): Likewise.
37259 (grub_probefs_SOURCES): Likewise.
37260 (grub_emu_SOURCES): Likewise.
37261 (kernel_img_HEADERS): Add `parser.h'.
37262
37263 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
37264 (grub_emu_SOURCES): Add `kern/parser.c'.
37265 (grubof_SOURCES): Likewise.
37266
37267 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
37268 (grubof_SOURCES): Add `kern/parser.c'.
37269
37270 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
37271
37272 * kern/misc.c (grub_split_cmdline): Removed function.
37273
37274 * kern/rescue.c: Include <grub/parser.h>.
37275 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
37276 of `grub_split_cmdline'.
37277
37278 * normal/command.c: Include <grub/parser.h>.
37279 (grub_command_execute): Use `grub_parser_split_cmdline' instead
37280 of `grub_split_cmdline'.
37281
37282 * normal/completion.c: Include <grub/parser.h>.
37283 (cmdline_state): New variable.
37284 (iterate_dir): End the filename with a quote depending on the
37285 command line state.
37286 (get_state): new function.
37287 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
37288 split the arguments and determine the current argument. When the
37289 argument string is not quoted, escape all spaces.
37290
37291 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
37292
37293 * normal/sparc64/setjmp.S: New file.
37294
37295 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
37296
37297 * include/grub/sparc64/libgcc.h: New file.
37298 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
37299 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
37300 normal/sparc64/setjmp.c.
37301
37302 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
37303
37304 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
37305 * kern/sparc64/cache.S: New file.
37306 * kern/sparc64/cache.c: Removed.
37307 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
37308 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
37309 -mtune=ultrasparc.
37310 (COMMON_LDFLAGS): Add -melf64_sparc.
37311 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
37312 (grubof_SOURCES): Use cache.S instead of cache.c.
37313 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
37314 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
37315 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
37316 commented though.
37317 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
37318 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
37319 (linux_mod_CFLAGS): Commented out.
37320 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
37321 out because module isn't built.
37322 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
37323 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
37324 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
37325 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
37326 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
37327 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
37328 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
37329 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
37330 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
37331 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
37332 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
37333 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
37334 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
37335 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
37336
37337 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
37338
37339 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
37340 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
37341 longer, because HFS should not be used on PC.
37342
37343 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
37344
37345 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
37346 consistently within the loop.
37347
37348 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
37349
37350 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
37351 directory can not be read.
37352
37353 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37354
37355 * configure.ac (AC_INIT): Increase the version number to 1.91.
37356
37357 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
37358 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
37359 term/i386/pc/serial.c.
37360
37361 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37362
37363 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
37364 file size must be permitted.
37365
37366 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
37367 between %ah and %al.
37368
37369 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
37370
37371 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
37372 grub_uint64_t.
37373 Call the hook with a NUL-terminated filename.
37374 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
37375 grub_cpu_to_be32.
37376
37377 * kern/term.c (cursor_state): New variable.
37378 (grub_term_set_current): Reset the cursor state on a new
37379 terminal.
37380 (grub_setcursor): Rewritten to use CURSOR_STATE.
37381 (grub_getcursor): New function.
37382
37383 * include/grub/term.h (grub_getcursor): New prototype.
37384
37385 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
37386 integers on ARM. Reported by Timothy Baldwin
37387 <T.E.Baldwin99@members.leeds.ac.uk>.
37388
37389 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
37390
37391 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
37392 allocated.
37393 (grub_sfs_dir): Likewise.
37394
37395 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
37396
37397 Add support for the SFS filesystem.
37398
37399 * fs/sfs.c: New file.
37400
37401 * DISTLIST: Added `fs/sfs.c'.
37402
37403 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
37404 (grub_probefs_SOURCES): Likewise.
37405 (grub_emu_SOURCES): Likewise.
37406 (pkgdata_MODULES): Add `sfs.mod'.
37407 (sfs_mod_SOURCES): New variable.
37408 (sfs_mod_CFLAGS): Likewise.
37409 (sfs_mod_LDFLAGS): Likewise.
37410
37411 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
37412 (pkgdata_MODULES): Add `sfs.mod'.
37413 (sfs_mod_SOURCES): New variable.
37414 (sfs_mod_CFLAGS): Likewise.
37415
37416 * util/grub-emu.c (main): Call `grub_sfs_init' and
37417 `grub_sfs_fini'.
37418
37419 * include/grub/fs.h (grub_sfs_init): New prototype.
37420 (grub_sfs_fini): Likewise.
37421
37422 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
37423
37424 Add support for the AFFS filesystem.
37425
37426 * fs/affs.c: New file.
37427
37428 * DISTLIST: Added `fs/affs.c'.
37429
37430 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
37431 (grub_probefs_SOURCES): Likewise.
37432 (grub_emu_SOURCES): Likewise.
37433 (pkgdata_MODULES): Add `affs.mod'.
37434 (affs_mod_SOURCES): New variable.
37435 (affs_mod_CFLAGS): Likewise.
37436 (affs_mod_LDFLAGS): Likewise.
37437
37438 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
37439 (pkgdata_MODULES): Add `affs.mod'.
37440 (affs_mod_SOURCES): New variable.
37441 (affs_mod_CFLAGS): Likewise.
37442
37443 * util/grub-emu.c (main): Call `grub_affs_init' and
37444 `grub_affs_fini'.
37445
37446 * include/grub/fs.h (grub_affs_init): New prototype.
37447 (grub_affs_fini): Likewise.
37448
37449 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37450
37451 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
37452
37453 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
37454
37455 * configure.ac: Accept `x86_64' as host_cpu. In that case add
37456 `-m32' to CFLAGS.
37457
37458 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
37459 linking.
37460
37461 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
37462 (COMMON_LDFLAGS): New variable.
37463 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
37464 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
37465 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
37466 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
37467 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
37468 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
37469 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
37470 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
37471 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
37472 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
37473 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
37474 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
37475 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
37476 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
37477 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
37478 variables.
37479 (normal_mod_ASFLAGS): Add `-m32'.
37480
37481 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
37482 (grub_host_size_t, grub_host_ssize_t): New types.
37483 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
37484 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
37485 `GRUB_HOST_SIZEOF_VOID_P'.
37486
37487 * include/grub/kernel.h (struct grub_module_header): Type of
37488 member offset changed to `grub_host_off_t'. Type of member size
37489 changed to `grub_host_size_t'.
37490 (struct grub_module_info): Type of member offset changed to
37491 `grub_host_off_t'. Type of member size changed to
37492 `grub_host_size_t'.
37493
37494 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
37495
37496 Make GRUB's kernel compliant to Multiboot Specification.
37497
37498 * kern/i386/pc/startup.S (multiboot_header): New label.
37499 (multiboot_entry): Likewise.
37500 (multiboot_trampoline): Likewise.
37501
37502 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37503 Increased to 0x4A0.
37504
37505 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
37506 put parentheses after a question mark.
37507 [!GRUB_UTIL] (my_mod): New variable.
37508
37509 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
37510
37511 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
37512
37513 Adds support for the XFS filesystem. Btrees are not supported
37514 yet.
37515
37516 * fs/xfs.c: New file.
37517
37518 * DISTLIST: Added `fs/xfs.c'.
37519
37520 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
37521 (grub_probefs_SOURCES): Likewise.
37522 (grub_emu_SOURCES): Likewise.
37523 (pkgdata_MODULES): Add `xfs.mod'.
37524 (xfs_mod_SOURCES): New variable.
37525 (xfs_mod_CFLAGS): Likewise.
37526
37527 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
37528 (pkgdata_MODULES): Add `xfs.mod'.
37529 (xfs_mod_SOURCES): New variable.
37530 (xfs_mod_CFLAGS): Likewise.
37531
37532 * util/grub-emu.c (main): Call `grub_xfs_init' and
37533 `grub_xfs_fini'.
37534
37535 * include/grub/fs.h (grub_xfs_init): New prototype.
37536 (grub_xfs_fini): Likewise.
37537
37538
37539 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
37540
37541 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
37542 color modes, allow greater than 16 colors to be configured as
37543 a default palette.
37544
37545 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
37546
37547 * normal/completion.c (complete_arguments): Add the qualifier
37548 const into OPTIONS.
37549
37550 From Omniflux <omniflux+lists@omniflux.com>:
37551 * include/grub/terminfo.h: New file.
37552 * include/grub/tparm.h: Likewise.
37553 * include/grub/i386/pc/serial.h: Likewise.
37554 * term/terminfo.c: Likewise.
37555 * term/tparm.c: Likewise.
37556 * term/i386/pc/serial.c: Likewise.
37557 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
37558 serial.mod.
37559 (terminfo_mod_SOURCES): New variable.
37560 (terminfo_mod_CFLAGS): Likewise.
37561 (serial_mod_SOURCES): Likewise.
37562 (serial_mod_CFLAGS): Likewise.
37563
37564 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
37565
37566 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
37567 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
37568 and kern/powerpc/ieee1275/cmain.c, respectively.
37569
37570 * boot/powerpc/ieee1275/crt0.S: Moved to ...
37571 * kern/powerpc/ieee1275/crt0.S: ... here.
37572
37573 * boot/powerpc/ieee1275/cmain.c: Moved to ...
37574 * kern/powerpc/ieee1275/cmain.c: ... here.
37575
37576 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
37577 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
37578 instead of boot/powerpc/ieee1275/crt0.S and
37579 boot/powerpc/ieee1275/cmain.c, respectively.
37580
37581 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
37582 sectors. It was not used anyway.
37583
37584 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37585
37586 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
37587 `unused parameter' warning.
37588
37589 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
37590
37591 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
37592 function.
37593 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
37594 getcharwidth.
37595
37596 2005-08-28 Marco Gerards <metgerards@student.han.nl>
37597
37598 * include/grub/normal.h (enum grub_completion_type): Added
37599 `GRUB_COMPLETION_TYPE_ARGUMENT'.
37600
37601 * normal/cmdline.c (print_completion): Handle
37602 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
37603 * normal/menu_entry.c (store_completion): Likewise.
37604
37605 * normal/completion.c (complete_arguments): New function.
37606 (grub_normal_do_completion): Call `complete_arguments' when the
37607 current words start with a dash.
37608
37609 2005-08-27 Marco Gerards <metgerards@student.han.nl>
37610
37611 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
37612 `gzio.mod' instead of `io.mod').
37613
37614 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
37615
37616 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
37617 (DISTDIRS): Added io and video.
37618 Rewrite the search routine to make an output consistently.
37619
37620 * DISTLIST: Added conf/sparc64-ieee1275.mk,
37621 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
37622 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
37623 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
37624 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
37625 util/powerpc/ieee1275/misc.c.
37626
37627 * include/grub/gzio.h: New file.
37628 * io/gzio.c: Likewise.
37629
37630 * kern/file.c (grub_file_close): Call grub_device_close only if
37631 FILE->DEVICE is not NULL.
37632
37633 * include/grub/mm.h [!NULL] (NULL): New macro.
37634
37635 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
37636
37637 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
37638 (pkgdata_MODULES): Added gzio.mod.
37639 (gzio_mod_SOURCES): New variable.
37640 (gzio_mod_CFLAGS): Likewise.
37641
37642 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
37643 (pkgdata_MODULES): Added gzio.mod.
37644 (gzio_mod_SOURCES): New variable.
37645 (gzio_mod_CFLAGS): Likewise.
37646
37647 * commands/cat.c: Include grub/gzio.h.
37648 (grub_cmd_cat): Use grub_gzfile_open instead of
37649 grub_file_open.
37650
37651 * commands/cmp.c: Include grub/gzio.h.
37652 (grub_cmd_cmp): Use grub_gzfile_open instead of
37653 grub_file_open.
37654
37655 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
37656 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
37657 grub_file_open.
37658 (grub_rescue_cmd_module): Likewise.
37659
37660 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37661
37662 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
37663 kern/sparc64/ieee1275/init.c because it contains _start.
37664 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
37665
37666 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
37667
37668 * configure.ac: Add support for sparc64 host with ieee1275
37669 firmware.
37670 * configure: Generated from configure.ac.
37671 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
37672 instead of int.
37673 (grub_ofdisk_read): Likewise.
37674 (grub_ofdisk_open): Use %p to print pointer values, and cast the
37675 pointers as (void *) to remove a warning.
37676 (grub_ofdisk_close): Likewise.
37677 (grub_ofdisk_read): Likewise.
37678 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
37679 returns, so make it return void to remove a warning.
37680 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
37681 Corresponding prototype change.
37682 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
37683 values, and cast the pointers as (void *) to remove a warning.
37684 (grub_mm_dump): Likewise.
37685 * conf/sparc64-ieee1275.mk: New file.
37686 * conf/sparc64-ieee1275.rmk: Likewise.
37687 * include/grub/sparc64/setjmp.h: Likewise.
37688 * include/grub/sparc64/types.h: Likewise.
37689 * include/grub/sparc64/ieee1275/console.h: Likewise.
37690 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
37691 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
37692 * include/grub/sparc64/ieee1275/time.h: Likewise.
37693 * kern/sparc64/cache.c: Likewise.
37694 * kern/sparc64/dl.c: Likewise.
37695 * kern/sparc64/ieee1275/init.c: Likewise.
37696 * kern/sparc64/ieee1275/openfw.c: Likewise.
37697
37698 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
37699
37700 * util/console.c (grub_ncurses_putchar): If C is greater than
37701 0x7f, set C to a question mark.
37702 (grub_ncurses_getcharwidth): New function.
37703 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
37704 getcharwidth.
37705
37706 * normal/menu.c (print_entry): Made aware of Unicode. First,
37707 convert TITLE to UCS-4, and predict the cursor position by
37708 grub_getcharwidth.
37709
37710 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
37711 const to SRC.
37712 * kern/misc.c (grub_utf16_to_utf8): Likewise.
37713
37714 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37715
37716 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
37717 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37718 grub_strcat.
37719
37720 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
37721 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
37722 grub_strcpy and grub_strlen. Take it into account that a space
37723 character is inserted as a delimiter.
37724
37725 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37726
37727 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
37728 invalid magic in the error.
37729
37730 * commands/search.c: New file.
37731
37732 * util/grub-emu.c (main): Call grub_search_init and
37733 grub_search_fini.
37734
37735 * kern/rescue.c (grub_rescue_print_disks): Removed.
37736 (grub_rescue_print_devices): New function.
37737 (grub_rescue_cmd_ls): Use grub_device_iterate with
37738 grub_rescue_print_devices instead of grub_disk_dev_iterate with
37739 grub_rescue_print_disks.
37740
37741 * kern/partition.c (grub_partition_iterate): Return the result of
37742 PARTMAP->ITERATE instead of GRUB_ERRNO.
37743
37744 * kern/device.c: Include grub/partition.h.
37745 (grub_device_iterate): New function.
37746
37747 * include/grub/partition.h (grub_partition_iterate): Return int
37748 instead of grub_err_t.
37749
37750 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
37751 prototype.
37752 [GRUB_UTIL] (grub_search_fini): Likewise.
37753
37754 * include/grub/device.h (grub_device_iterate): New prototype.
37755
37756 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
37757 commands/search.c.
37758 (pkgdata_MODULES): Added search.mod.
37759 (search_mod_SOURCES): New variable.
37760 (search_mod_CFLAGS): Likewise.
37761
37762 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
37763 (pkgdata_MODULES): Added search.mod.
37764 (search_mod_SOURCES): New variable.
37765 (search_mod_CFLAGS): Likewise.
37766
37767 * commands/ls.c (grub_ls_list_disks): Renamed to ...
37768 (grub_ls_list_devices): ... this, and use grub_device_iterate.
37769 All callers changed.
37770
37771 * DISTLIST: Added commands/search.c.
37772
37773 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
37774
37775 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
37776 conversion.
37777 (grub_getcharwidth): New function.
37778
37779 * kern/misc.c (grub_utf8_to_ucs4): New function.
37780
37781 * include/grub/term.h (struct grub_term): Added a new member
37782 "getcharwidth".
37783 (grub_getcharwidth): New prototype.
37784
37785 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
37786
37787 * term/i386/pc/console.c (map_char): New function. Segregated from
37788 grub_console_putchar.
37789 (grub_console_putchar): Use map_char.
37790 (grub_console_getcharwidth): New function.
37791 (grub_console_term): Specified grub_console_getcharwidth as
37792 getcharwidth.
37793
37794 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
37795 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
37796
37797 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
37798 GRUB_ERRNO.
37799 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
37800 on grub_strtoul completely.
37801 (write_char): Declare local variables in the beginning of the
37802 function.
37803 (grub_vesafb_getcharwidth): New function.
37804 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
37805 getcharwidth.
37806
37807 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
37808
37809 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
37810 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
37811 commands/i386/pc/vbetest.c.
37812
37813 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
37814 call grub_vbe_get_controller_info again, because the returned
37815 information is volatile.
37816 (grub_vbe_set_video_mode): Mostly rewritten.
37817 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
37818 grub_vbe_status_t correctly.
37819 (grub_vbe_get_video_mode_info): Likewise.
37820 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
37821 several if statements.
37822
37823 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
37824 * commands/i386/pc/vbeinfo.c: ... this.
37825
37826 * commands/i386/pc/vbe_test.c: Renamed to ...
37827 * commands/i386/pc/vbetest.c: ... this.
37828
37829 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
37830 ...
37831 (grub_cmd_vbeinfo): ... this. Save video modes before
37832 iterating. Skip a video mode, if it is not available, not enough
37833 information is given or it is monochrome. Show the memory
37834 model. Leave the interpretation of MODEVAR to grub_strtoul
37835 completely.
37836 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
37837 (GRUB_MOD_FINI): Likewise.
37838
37839 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
37840 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
37841 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
37842 duplicated grub_env_get. Leave the interpretation of MODEVAR to
37843 grub_strtoul completely.
37844 (real2pm): Removed.
37845 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
37846 (GRUB_MOD_FINI): Likewise.
37847
37848 * normal/misc.c: Include grub/mm.h.
37849
37850 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
37851 vbe_list_modes with vbetest.mod and vbeinfo.mod.
37852 (vbe_list_modes_mod_SOURCES): Removed.
37853 (vbe_list_modes_mod_CFLAGS): Likewise.
37854 (vbe_test_mod_SOURCES): Likewise.
37855 (vbe_test_mod_CFLAGS): Likewise.
37856 (vbeinfo_mod_SOURCES): New variable.
37857 (vbeinfo_mod_CFLAGS): Likewise.
37858 (vbetest_mod_SOURCES): Likewise.
37859 (vbetest_mod_CFLAGS): Likewise.
37860
37861 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
37862
37863 * normal/misc.c: New file.
37864
37865 * DISTLIST: Added normal/misc.c.
37866
37867 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
37868 DISK to HOOK. Call HOOK with DISK.
37869 * partmap/apple.c (apple_partition_map_iterate): Likewise.
37870 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37871 * partmap/sun.c (sun_partition_map_iterate): Likewise.
37872
37873 * normal/menu_entry.c (struct screen): Added a new member
37874 "completion_shown".
37875 (completion_buffer): New global variable.
37876 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
37877 (store_completion): New function.
37878 (complete): Likewise.
37879 (clear_completions): Likewise.
37880 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
37881 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
37882 a tab, call complete.
37883
37884 * normal/completion.c (disk_dev): Removed.
37885 (print_simple_completion): Likewise.
37886 (print_partition_completion): Likewise.
37887 (print_func): New global variable.
37888 (add_completion): Do not take the arguments WHAT or PRINT any
37889 longer. Added a new argument TYPE. Instead of printing directly,
37890 call PRINT_FUNC if not NULL.
37891 All callers changed.
37892 (complete_device): Use a local variable DEV instead of
37893 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
37894 (grub_normal_do_completion): Take a new argument HOOK. Do not
37895 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
37896 empty string, return NULL instead.
37897 All callers changed.
37898
37899 * normal/cmdline.c (print_completion): New function.
37900
37901 * kern/partition.c (grub_partition_iterate): Add an argument DISK
37902 to HOOK.
37903 All callers changed.
37904
37905 * kern/disk.c (grub_print_partinfo): Removed.
37906
37907 * include/grub/partition.h (struct grub_partition_map): Add a new
37908 argument DISK into HOOK of ITERATE.
37909 (grub_partition_iterate): Add a new argument DISK to HOOK.
37910
37911 * include/grub/normal.h (enum grub_completion_type): New enum.
37912 (grub_completion_type_t): New type.
37913 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
37914 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
37915 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
37916 (GRUB_COMPLETION_TYPE_FILE): Likewise.
37917 (grub_normal_do_completion): Added a new argument HOOK.
37918 (grub_normal_print_device_info): New prototype.
37919
37920 * include/grub/disk.h (grub_print_partinfo): Removed.
37921
37922 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
37923 (normal_mod_SOURCES): Likewise.
37924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
37925 (normal_mod_SOURCES): Likewise.
37926
37927 * commands/ls.c (grub_ls_list_disks): Use
37928 grub_normal_print_device_info instead of grub_print_partinfo. Free
37929 PNAME.
37930 (grub_ls_list_files): Use grub_normal_print_device_info instead of
37931 duplicating the code.
37932
37933 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37934
37935 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
37936 follow GCS more precisely.
37937 * commands/i386/pc/vbe_test.c: Likewise.
37938 * include/grub/i386/pc/vbe.h: Likewise.
37939 * term/i386/pc/vesafb.c: Likewise.
37940 * video/i386/pc/vbe.c: Likewise.
37941
37942 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
37943
37944 * DISTLIST: Added term/i386/pc/vesafb.c
37945 DISTLIST: Added video/i386/pc/vbe.c
37946 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
37947 DISTLIST: Added commands/i386/pc/vbe_test.c.
37948 * commands/i386/pc/vbe_list_modes.c: New file.
37949 * commands/i386/pc/vbe_test.c: Likewise.
37950 * term/i386/pc/vesafb.c: Likewise.
37951 * video/i386/pc/vbe.c: Likewise.
37952 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
37953 (grub_vbe_probe) Added prototype.
37954 (grub_vbe_set_video_mode) Likewise.
37955 (grub_vbe_get_video_mode) Likewise.
37956 (grub_vbe_get_video_mode_info) Likewise.
37957 (grub_vbe_set_pixel_rgb) Likewise.
37958 (grub_vbe_set_pixel_index) Likewise.
37959 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
37960 (pkgdata_MODULES): Added vesafb.mod.
37961 (pkgdata_MODULES): Added vbe_list_modes.mod.
37962 (pkgdata_MODULES): Added vbe_test.mod.
37963 (vbe_mod_SOURCES): Added.
37964 (vbe_mod_CFLAGS): Likewise.
37965 (vesafb_mod_SOURCES): Likewise.
37966 (vesafb_mod_CFLAGS): Likewise.
37967 (vbe_list_modes_mod_SOURCES): Likewise.
37968 (vbe_list_modes_mod_CFLAGS): Likewise.
37969 (vbe_test_mod_SOURCES): Likewise.
37970 (vbe_test_mod_CFLAGS): Likewise.
37971
37972 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
37973
37974 * normal/command.c (grub_command_execute): If INTERACTIVE is
37975 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
37976 CMDLINE. Disable the pager if INTERACTIVE is true.
37977 All callers are changed.
37978
37979 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
37980 before reading a config file.
37981 * normal/main.c (read_config_file): Even if a command is not
37982 found, register it if it is within an entry.
37983
37984 * util/grub-emu.c: Include sys/types.h and unistd.h.
37985 (options): Added --hold.
37986 (struct arguments): Added a new member "hold".
37987 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
37988 missing.
37989 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
37990 cleared by a debugger, if it is not zero.
37991
37992 * include/grub/normal.h (grub_command_execute): Add an argument
37993 INTERACTIVE.
37994
37995 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
37996
37997 * DISTLIST: Added include/grub/i386/pc/vbe.h.
37998
37999 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
38000
38001 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
38002 program with another one, because the old one didn't detect a bug
38003 in gcc-3.4. Always use regparm 2, because the new test is still
38004 not enough for gcc-4.0. Someone must investigate a simple test
38005 case which detects a bug in gcc-4.0.
38006
38007 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
38008
38009 * DISTLIST: Added normal/completion.c.
38010
38011 * normal/completion.c: New file.
38012
38013 * term/i386/pc/console.c (grub_console_getwh): New function.
38014 (grub_console_term): Assign grub_console_getwh to getwh.
38015
38016 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
38017 function is defined in normal/completion.c as
38018 grub_normal_do_completion.
38019 (grub_cmdline_get): Use grub_normal_do_completion instead of
38020 grub_tab_complete.
38021
38022 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
38023 returns non-zero, otherwise return 0.
38024 (grub_partition_iterate): First, probe the partition map. Then,
38025 call ITERATE only for this partition map.
38026
38027 * kern/misc.c (grub_strncmp): Rewritten.
38028
38029 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
38030 returns non-zero. Otherwise return 0.
38031
38032 * include/grub/partition.h (grub_partition_map_iterate): Return
38033 int instead of void.
38034
38035 * include/grub/normal.h (grub_normal_do_completion): New prototype.
38036
38037 * include/grub/misc.h (grub_strncmp): Change the type of N to
38038 grub_size_t.
38039
38040 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
38041 of void.
38042
38043 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
38044 unsigned explicitly before comparing it with I.
38045
38046 * kern/main.c (grub_env_write_root): Add the attribute unused into
38047 VAR.
38048
38049 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
38050 normal/completion.c.
38051 (normal_mod_SOURCES): Likewise.
38052 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38053 (normal_mod_SOURCES): Likewise.
38054
38055 * normal/command.c (grub_iterate_commands): If ITERATE returns
38056 non-zero, return one immediately.
38057
38058 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
38059
38060 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
38061 * kern/i386/pc/startup.S: Updated Global Descriptor table's
38062 descriptions.
38063 (grub_vbe_get_controller_info): New function.
38064 (grub_vbe_get_mode_info): Likewise.
38065 (grub_vbe_set_mode): Likewise.
38066 (grub_vbe_get_mode): Likewise.
38067 (grub_vbe_set_memory_window): Likewise.
38068 (grub_vbe_get_memory_window): Likewise.
38069 (grub_vbe_set_scanline_length): Likewise.
38070 (grub_vbe_get_scanline_length): Likewise.
38071 (grub_vbe_set_display_start): Likewise.
38072 (grub_vbe_get_display_start): Likewise.
38073 (grub_vbe_set_palette_data): Likewise.
38074 * include/grub/i386/pc/vbe.h: New file.
38075
38076 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
38077
38078 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
38079 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
38080 * DISTLIST: Likewise.
38081 * kern/ieee1275/of.c: Moved to ...
38082 * kern/ieee1275/ieee1275.c: ... here.
38083
38084 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
38085
38086 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
38087 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
38088 Pass 0 as `end' parameter to grub_strtoul().
38089
38090 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
38091
38092 * include/grub/powerpc/ieee1275/console.h: Do not include
38093 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
38094 ifdef.
38095 (grub_console_cur_color): Remove i386-specific prototype.
38096 (grub_console_real_putchar): Likewise.
38097 (grub_console_checkkey): Likewise.
38098 (grub_console_getkey): Likewise.
38099 (grub_console_getxy): Likewise.
38100 (grub_console_gotoxy): Likewise.
38101 (grub_console_cls): Likewise.
38102 (grub_console_setcursor): Likewise.
38103 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
38104 Include <grub/machine/console.h>.
38105 * term/ieee1275/ofconsole.c: Likewise.
38106
38107 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
38108
38109 * Makefile.in (LIBLZO): New variable.
38110
38111 * configure.ac: Check for LZO version 2.
38112
38113 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
38114 lzo/lzo1x.h instead of lzo1x.h.
38115
38116 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
38117 of -llzo.
38118
38119 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
38120 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
38121
38122 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
38123 copying the data from PARTITION to P.
38124
38125 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
38126
38127 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
38128 negative, unload the module.
38129
38130 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
38131 map is "pc_partition_map" but not "pc".
38132 (usage): Fix the description. The options are --boot-image and
38133 --core-image but not --boot-file or --core-file.
38134 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
38135 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
38136 DEFAULT_DIRECTORY.
38137
38138 * util/i386/pc/grub-install.in: Do not specify --boot-file or
38139 --core-file. Specify INSTALL_DEVICE as an argument.
38140
38141 * util/console.c: Include config.h.
38142 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
38143 [HAVE_NCURSES_H]: Include ncurses.h.
38144 [HAVE_CURSES_H]: Include curses.h.
38145 [!A_NORMAL] (A_NORMAL): Defined as zero.
38146 [!A_STANDOUT] (A_STANDOUT): Likewise.
38147
38148 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
38149 -lncurses.
38150 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
38151
38152 * configure.ac: Check for curses libraries and headers.
38153
38154 * Makefile.in (LIBCURSES): New variable.
38155
38156 * genmk.rb (Script::rule): Set the executable bits.
38157
38158 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
38159 name of the PC partition map is "pc_partition_map" but not "pc".
38160
38161 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
38162
38163 * util/i386/pc/grub-install.in (grub_probefs): New variable.
38164 (modules): Likewise.
38165 (usage): Added descriptions for --modules and --grub-probefs.
38166 Handle --modules and --grub-probefs. Save the arguments in MODULES
38167 and GRUB_PROBEFS, respectively.
38168 Auto-detect a filesystem module against GRUBDIR. If the result is
38169 empty and modules are not specified explicitly, abort the
38170 installation. Add the result to MODULES.
38171
38172 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
38173 disk/powerpc/ieee1275/ofdisk.c,
38174 include/grub/powerpc/ieee1275/init.h and
38175 term/powerpc/ieee1275/ofconsole.c.
38176 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
38177 term/ieee1275/ofconsole.c.
38178
38179 * include/grub/powerpc/ieee1275/console.h: Resurrected.
38180
38181 * COPYING: Upgraded to the latest version. Only the address of the
38182 FSF office has changed.
38183
38184 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
38185
38186 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
38187 kern/ieee1275.c with kern/ieee1275/of.c.
38188
38189 * kern/ieee1275.c: Moved to ...
38190 * kern/ieee1275/of.c: ... here.
38191
38192 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
38193
38194 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
38195 readability.
38196
38197 * config.guess: Updated to the latest version from gnulib.
38198 * config.sub: Likewise.
38199 * install.sh: Likewise.
38200 * mkinstalldirs: Likewise.
38201
38202 * include/grub/console.h: Removed. This file is arch-specific. Do
38203 not put this in include/grub.
38204
38205 * include/grub/i386/pc/console.h: Resurrected.
38206
38207 * util/console.c: Include grub/machine/console.h instead of
38208 grub/console.h.
38209 * util/grub-emu.c: Likewise.
38210
38211 2005-08-04 Marco Gerards <metgerards@student.han.nl>
38212
38213 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
38214 hardcoded value.
38215
38216 From Vincent Pelletier <subdino2004@yahoo.fr>
38217 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
38218 Redefined to use grub_getwh.
38219 (grub_term): New member named getwh.
38220 (grub_getwh): New prototype.
38221 * kern/term.c (grub_getwh): New function.
38222 * term/i386/pc/console.c (grub_console_getwh): New function.
38223 (grub_console_term): New member `getwh'.
38224 * term/i386/pc/vga.c (grub_vga_getwh): New function.
38225 (grub_vga_term): New member `getwh'.
38226 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
38227 grub_ssize_t.
38228 (grub_ofconsole_getw): New function.
38229 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
38230 (grub_ofconsole_term): New field named getwh and new initial
38231 value.
38232
38233 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
38234
38235 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
38236 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
38237 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
38238 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
38239 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
38240 of <grub/machine/ieee1275.h>.
38241 * commands/ieee1275/reboot.c: Likewise.
38242 * boot/powerpc/ieee1275/ieee1275.c: Move ...
38243 * kern/ieee1275.c: ... to here. All users updated. Change all
38244 parameter structs to use new type `grub_ieee1275_cell_t'.
38245 * term/powerpc/ieee1275/ofconsole.c: Move ...
38246 * term/ieee1275/ofconsole.c: ... to here. All users updated.
38247 * disk/powerpc/ieee1275/ofdisk.c: Move ...
38248 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
38249 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
38250 to return int.
38251 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
38252 Remove unused prototypes. All users updated.
38253 * include/grub/powerpc/ieee1275/console.h: Removed.
38254 * include/grub/powerpc/ieee1275/ieee1275.h: Define
38255 `grub_ieee1275_cell_t'.
38256 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
38257 Cast comparisons with -1 to the correct type.
38258 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
38259 type to match `grub_ieee1275_entry_fn'.
38260
38261 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
38262
38263 * DISTLIST: Added util/i386/pc/grub-probefs.c.
38264
38265 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
38266 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
38267 partmap/sun.c.
38268 (grub_probefs_SOURCES): New variable.
38269
38270 * util/i386/pc/grub-probefs.c: New file.
38271
38272 * util/i386/pc/grub-setup.c (main): Call
38273 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
38274 grub_hfs_init and grub_jfs_init to initialize the system. Call
38275 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
38276 grub_pc_partition_map_fini to finish the system.
38277
38278 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
38279
38280 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
38281 function.
38282 (grub_multiboot_load_elf32): Likewise.
38283 (grub_multiboot_is_elf64): Likewise.
38284 (grub_multiboot_load_elf64): Likewise.
38285 (grub_multiboot_load_elf): Likewise.
38286 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
38287 an ELF32 or ELF64 file.
38288 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
38289
38290 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
38291 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
38292 NULL before calling FS->LABEL.
38293 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
38294 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
38295 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
38296 before calling FS->LABEL.
38297
38298 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
38299
38300 * util/i386/pc/grub-install.in (datadir): New variable.
38301 (libdir): Removed.
38302 (pkgdatadir): New variable.
38303 (pkglibdir): Removed.
38304
38305 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
38306
38307 * DISTLIST: Added util/i386/pc/grub-install.in.
38308
38309 * util/i386/pc/grub-install.in: New file.
38310
38311 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
38312 (grub_install_SOURCES): Likewise.
38313
38314 * genmk.rb: Added support for scripts.
38315 (Script): New class.
38316 (scripts): New variable.
38317
38318 * Makefile.in (install-local): Install sbin_SCRIPTS by
38319 INSTALL_SCRIPT.
38320 (uninstall): Remove sbin_SCRIPTS.
38321
38322 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
38323 device, try to get a GRUB device by
38324 grub_util_biosdisk_get_grub_dev.
38325 Free DEST_DEV.
38326
38327 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
38328 description for --device-map.
38329
38330 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
38331
38332 Change the semantics of variable hooks. They now return strings
38333 instead of error values.
38334
38335 * util/i386/pc/grub-setup.c: Include grub/env.h.
38336 (setup): Use grub_device_set_root instead of grub_env_set.
38337
38338 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
38339 grub_env_get instead of grub_device_set_root and
38340 grub_device_get_root, respectively.
38341
38342 * kern/main.c (grub_env_write_root): New function.
38343 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
38344 grub_env_set instead of grub_device_set_root.
38345
38346 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
38347 many variables.
38348 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
38349 rather than calling ENV->WRITE_HOOK afterwards.
38350 (grub_env_get): Return the result of ENV->READ_HOOK rather than
38351 passing a pointer of a pointer.
38352 (grub_register_variable_hook): Change the types of "read_hook" and
38353 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
38354 respectively.
38355 Allocate the default empty string on the heap, because this string
38356 may be freed later.
38357
38358 * kern/device.c: Include grub/env.h.
38359 (grub_device_set_root): Removed.
38360 (grub_device_get_root): Likewise.
38361 (grub_device_open): Use grub_env_get instead of
38362 grub_device_get_root.
38363
38364 * include/grub/env.h (grub_env_read_hook_t): New type.
38365 (grub_env_write_hook_t): Likewise.
38366 (grub_env_var): Change the types of "read_hook" and "write_hook"
38367 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
38368 (grub_register_variable_hook): Likewise.
38369
38370 * include/grub/device.h (grub_device_set_root): Removed.
38371 (grub_device_set_root): Likewise.
38372
38373 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
38374 make sure that DIRNAME terminates with '/', so that
38375 grub_fat_find_dir will fail if PATH is not a directory.
38376
38377 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
38378 from DIRNAME.
38379 Use the qualifier auto for print_files and print_files_long.
38380 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
38381 as a regular file.
38382 Put a newline only if there is no error.
38383 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
38384 used.
38385
38386 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
38387
38388 * kern/partition.c (grub_partition_probe): Initialize PART to
38389 NULL. Otherwise, when no partition map is registered, this returns
38390 a garbage.
38391
38392 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
38393
38394 * partmap/apple.c (apple_partition_map_iterate): Check if POS
38395 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
38396 valid.
38397
38398 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
38399
38400 * commands/ls.c (grub_ls_list_disks): Print the filesystem
38401 information on each device, if it does not have partitions. Print
38402 "Device" instead of "Disk", because this function is not specific
38403 to disk devices.
38404
38405 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
38406 static to ensure that it is put on the memory rather than a
38407 register.
38408
38409 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38410
38411 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
38412 (grub_cat_init): Likewise.
38413 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
38414 (options): Likewise.
38415 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
38416 (grub_configfile_init): Likewise.
38417 * font/manager.c (GRUB_MOD_INIT): Likewise.
38418 * commands/help.c (GRUB_MOD_INIT): Likewise.
38419 (grub_help_init): Likewise.
38420 * normal/command.c (grub_command_init): Likewise.
38421 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
38422 * disk/loopback.c (grub_loop_init): Likewise.
38423 (GRUB_MOD_INIT): Likewise.
38424 * commands/ls.c (grub_ls_init): Likewise.
38425 (GRUB_MOD_INIT): Likewise.
38426 (options): Likewise.
38427 * commands/boot.c (grub_boot_init): Likewise.
38428 (GRUB_MOD_INIT): Likewise.
38429 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
38430 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
38431 (GRUB_MOD_INIT): Likewise.
38432 * commands/cmp.c (grub_cmp_init): Likewise.
38433 (GRUB_MOD_INIT): Likewise.
38434
38435 * normal/arg.c: Use <> instead of "" to include header files.
38436 (SHORT_ARG_HELP): New macro.
38437 (SHORT_ARG_USAGE): Likewise.
38438 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
38439 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
38440 descriptions.
38441 (find_short): Check if C is 'h' or 'u' explicitly.
38442 (grub_arg_show_help): Use space characters instead of tabs. Treat
38443 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
38444 are shown with --help and --usage only if they are not used for
38445 the command itself.
38446 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
38447 'h' and 'u'.
38448
38449 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
38450 const into "longarg". Change the type of "shortarg" to int.
38451
38452 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38453
38454 * boot/i386/pc/boot.S (boot_drive_check): New label.
38455
38456 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
38457 macro.
38458
38459 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
38460 which do not pass a boot drive correctly. Copied from GRUB Legacy.
38461
38462 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38463
38464 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
38465 When turning off Gate A20, skip the check and return immediately,
38466 because this is not fatal usually.
38467
38468 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
38469
38470 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
38471 be 0x7C00 instead of 0x8000.
38472
38473 * boot/i386/pc/pxeboot.S: Rewritten.
38474
38475 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
38476 EXT_C.
38477 (gate_a20_check_state): Read a byte from 0x108000. Invert the
38478 result.
38479
38480 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
38481
38482 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
38483 robustness. This routine now supports a BIOS call and System
38484 Control Port A to modify the gate A20.
38485
38486 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
38487 Increased to 0x440.
38488
38489 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
38490
38491 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
38492 device path and resulting ihandle.
38493 (grub_ofdisk_close): dprintf the ihandle being closed.
38494 (grub_ofdisk_read): dprintf function parameters.
38495 * kern/mm.c (grub_mm_init_region): Likewise.
38496 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
38497 (grub_linux_boot): dprintf the Linux entry point, initrd address and
38498 size, and boot arguments.
38499 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
38500 before loading into memory.
38501 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
38502 before loading into memory.
38503
38504 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
38505
38506 * kern/mm.c: Added much documentation.
38507 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
38508 8, set to 5 instead of 8.
38509
38510 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38511
38512 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
38513
38514 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
38515 (grub_mkdevicemap_SOURCES): New variable.
38516
38517 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
38518 lib/device.c of GRUB Legacy.
38519
38520 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
38521
38522 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
38523 instead of PATH is NULL.
38524
38525 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
38526
38527 * commands/cmp.c (BUFFER_SIZE): New macro.
38528 (grub_cmd_cmp): Close the right file at the right time. Compare
38529 only data just read. Don't report files of different size as
38530 identical. Dynamically allocate buffers. Move variable
38531 declarations at the beginning of function.
38532
38533 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
38534
38535 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
38536 reverse.
38537
38538 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
38539
38540 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
38541 when backspace is pressed at beginning of line.
38542
38543 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
38544
38545 * DISTLIST: Added genfslist.sh.
38546
38547 * normal/main.c (fs_module_list): New variable.
38548 (autoload_fs_module): New function.
38549 (read_fs_list): Likewise.
38550 (grub_normal_execute): Call read_fs_list.
38551
38552 * kern/fs.c (grub_fs_autoload_hook): New variable.
38553 (grub_fs_probe): Added support for auto-loading.
38554
38555 * include/grub/normal.h (struct grub_fs_module_list): New struct.
38556 (grub_fs_module_list_t): New type.
38557
38558 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
38559 (grub_fs_autoload_hook): New prototype.
38560
38561 * genfslist.sh: New file.
38562
38563 * genmk.rb: Added a rule to generate a filesystem list.
38564
38565 2005-06-30 Marco Gerards <metgerards@student.han.nl>
38566
38567 * configure.ac: Fix the test for cross-compiling.
38568
38569 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
38570 define GRUB_UTIL anymore.
38571
38572 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
38573 so this function works on other systems than just big endian.
38574 (load_modules): Likewise.
38575 (add_segments): Likewise.
38576
38577 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
38578
38579 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
38580 contains `l' modifier, get a long from va_arg().
38581
38582 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
38583
38584 * kern/mm.c (grub_free): If the next free block which is being
38585 merged is the first free block, set the first block to the block
38586 being freed.
38587 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
38588
38589 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38590
38591 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
38592 `grub_ieee1275_chosen'.
38593
38594 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
38595
38596 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
38597 (grub_ieee1275_chosen): New variable.
38598 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
38599 `chosen'.
38600 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
38601 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
38602 Rename first argument to `phandle' for consistency.
38603 (grub_ieee1275_get_property_length): Likewise.
38604 (grub_ieee1275_next_property): Likewise. Change type of first argument
38605 to grub_ieee1275_phandle_t.
38606 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
38607 Move export next to declaration.
38608 (grub_ieee1275_chosen): New variable.
38609 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
38610 Correct cosmetic typo.
38611 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
38612 `grub_ieee1275_chosen'.
38613 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
38614 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
38615 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
38616 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
38617 `grub_ieee1275_chosen'.
38618
38619 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
38620
38621 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
38622 /chosen/bootargs.
38623 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
38624 /chosen/bootargs as "variable=value" pairs.
38625
38626 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
38627
38628 * include/grub/misc.h (grub_dprintf): New macro.
38629 (grub_real_dprintf): New prototype.
38630 (grub_strword): Likewise.
38631 (grub_iswordseparator): Likewise.
38632 * kern/misc.c (grub_real_dprintf): New function.
38633 (grub_strword): Likewise.
38634 (grub_iswordseparator): Likewise.
38635
38636 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
38637
38638 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
38639 (roundup): Remove macro.
38640 (grub_ieee1275_flags): Make static.
38641 (grub_ieee1275_realmode): Remove.
38642 (grub_ieee1275_test_flag): New function.
38643 (grub_ieee1275_set_flag): Likewise.
38644 (find_options): Rename to `grub_ieee1275_find_options'; update
38645 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
38646 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
38647 (cmain): New prototype.
38648 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
38649 `grub_ieee1275_flags' directly.
38650 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
38651 machine/biosdisk.h.
38652 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
38653 Don't include grub/machine/init.h.
38654 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
38655 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
38656 Remove prototype.
38657 (grub_ieee1275_realmode): Likewise.
38658 (grub_ieee1275_flag): New enum.
38659 (grub_ieee1275_test_flag): New prototype.
38660 (grub_ieee1275_set_flag): New prototype.
38661 * include/grub/powerpc/ieee1275/init.h: Remove file.
38662 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
38663 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
38664 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
38665 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
38666 comment.
38667 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
38668 `grub_ieee1275_test_flag'.
38669 (grub_ieee1275_encode_devname): Likewise.
38670
38671 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
38672
38673 * include/grub/powerpc/ieee1275/ieee1275.h
38674 (grub_ieee1275_encode_devname): New prototype.
38675 (grub_ieee1275_get_filename): Likewise.
38676 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
38677 function.
38678 (grub_set_prefix): Likewise.
38679 (grub_machine_init): Call grub_set_prefix.
38680 * kern/powerpc/ieee1275/openfw.c: Fix typos.
38681 (grub_parse_type): New enum.
38682 (grub_ieee1275_get_devargs): New function.
38683 (grub_ieee1275_get_devname): Likewise.
38684 (grub_ieee1275_parse_args): Likewise.
38685 (grub_ieee1275_get_filename): Likewise.
38686 (grub_ieee1275_encode_devname): Likewise.
38687
38688 2005-03-30 Marco Gerards <metgerards@student.han.nl>
38689
38690 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
38691 `grub_loader_unset'.
38692
38693 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
38694
38695 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
38696 instead of grub_ieee1275_interpret.
38697 (grub_halt_init): New function.
38698 (grub_halt_fini): Likewise.
38699 (GRUB_MOD_INIT): Correct message grammar.
38700 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
38701 instead of grub_ieee1275_interpret.
38702 (grub_reboot_init): New function.
38703 (grub_reboot_fini): Likewise.
38704 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
38705 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
38706 util/i386/pc/misc.c with commands/ieee1275/halt.c,
38707 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
38708 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
38709 function.
38710 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
38711 Add prototype.
38712 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
38713 prototype.
38714 (grub_halt): Likewise.
38715 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
38716 (cmain): Remove __attribute__((unused)).
38717 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
38718 (grub_heap_len): Likewise.
38719 (grub_machine_fini): New function.
38720 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
38721 (grub_halt): Likewise.
38722 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
38723 function.
38724 * util/powerpc/ieee1275/misc.c: New file.
38725
38726 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
38727
38728 * DISTLIST: New file.
38729 * gendistlist.sh: Likewise.
38730
38731 * Makefile.in (COMMON_DISTFILES): Removed.
38732 (BOOT_DISTFILES): Likewise.
38733 (CONF_DISTFILES): Likewise.
38734 (DISK_DISTFILES): Likewise.
38735 (FS_DISTFILES): Likewise.
38736 (INCLUDE_DISTFILES): Likewise.
38737 (KERN_DISTFILES): Likewise.
38738 (LOADER_DISTFILES): Likewise.
38739 (TERM_DISTFILES): Likewise.
38740 (UTIL_DISTFILES): Likewise.
38741 (DISTFILES): Likewise.
38742 (uninstall): Uninstall files in $(pkgdata_DATA).
38743 (DISTLIST): New target.
38744 (distdir): Use the contents of the file DISTLIST to get a list of
38745 distributed files.
38746
38747 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
38748
38749 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
38750 descriptor. This is ported from GRUB Legacy.
38751
38752 * gencmdlist.sh: Added an extra semicolon to make it work with
38753 old sed versions. Reported by Robert Bihlmeyer
38754 <robbe@orcus.priv.at>.
38755
38756 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
38757
38758 Automatic loading of commands is supported.
38759
38760 * normal/main.c (read_command_list): New function.
38761 (grub_normal_execute): Call read_command_list.
38762
38763 * normal/command.c (grub_register_command): Return zero or CMD.
38764 Allocate CMD->NAME from the heap.
38765 Initialize CMD->MODULE_NAME to zero.
38766 Find the same name as well. If the same command is found and it is
38767 a dummy command, overwrite members. If it is not a dummy command,
38768 return zero.
38769 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
38770 (grub_command_find): If a dummy command is found, load a module
38771 and retry to find a command only once.
38772
38773 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
38774 make sure that each command is loaded.
38775
38776 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
38777 macro.
38778 (struct grub_command): Remove const from the member `name'.
38779 Add a new member `module_name'.
38780 (grub_register_command): Return grub_command_t.
38781
38782 * commands/help.c (grub_cmd_help): Call grub_command_find to make
38783 sure that each command is loaded.
38784
38785 * genmk.rb (PModule::rule): Specify a module name without the
38786 suffix ".mod" to gencmdlist.sh.
38787
38788 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38789
38790 * gencmdlist.sh: New file.
38791
38792 * genmk.rb (PModule::rule): Generate a rule for a command list.
38793 Clean command.lst.
38794 Generate command.lst from $(COMMANDFILES).
38795
38796 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
38797 (DATA): Added $(pkgdata_DATA).
38798 (install-local): Install files in $(pkgdata_DATA).
38799
38800 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
38801
38802 * term/i386/pc/vga.c (debug_command): Removed.
38803 (GRUB_MOD_INIT): Do not register the command "debug".
38804
38805 From Hollis Blanchard:
38806 * commands/configfile.c: New file.
38807 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38808 commands/configfile.c.
38809 (pkgdata_MODULES): Added configfile.mod.
38810 (configfile_mod_SOURCES): New variable.
38811 (configfile_mod_CFLAGS): Likewise.
38812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
38813 commands/configfile.c.
38814 (pkgdata_MODULES): Added configfile.mod.
38815 (configfile_mod_SOURCES): New variable.
38816 (configfile_mod_CFLAGS): Likewise.
38817 * util/grub-emu.c (main): Call grub_configfile_init and
38818 grub_configfile_fini.
38819 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
38820 prototype.
38821 [GRUB_UTIL] (grub_configfile_fini): Likewise.
38822
38823 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38824
38825 * normal/arg.c (grub_arg_show_help): Do not show the bug report
38826 address.
38827
38828 * commands/help.c (grub_cmd_help): Do not print newlines after
38829 the last command in print_command_help.
38830
38831 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
38832
38833 * commands/default.h: New file.
38834 * commands/timeout.h: Likewise.
38835 * normal/context.c: Likewise.
38836
38837 * util/misc.c: Do not include sys/times.h.
38838 Include sys/time.h and grub/machine/time.h.
38839 (grub_get_rtc): Rewritten with gettimeofday.
38840
38841 * util/grub-emu.c (main): Call grub_default_init and
38842 grub_timeout_init before grub_normal_init, and call
38843 grub_timeout_fini and grub_default_fini after grub_main.
38844
38845 * util/console.c (grub_ncurses_checkkey): Return the read
38846 character or -1.
38847
38848 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
38849 timeouts.
38850
38851 * normal/main.c (read_config_file): Push MENU. If this fails,
38852 print an error and wait for a user input.
38853 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
38854 If a menu is empty or an error occurs, pop MENU.
38855 (grub_normal_execute): Pop and free MENU after grub_menu_run
38856 returns.
38857
38858 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
38859
38860 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
38861 include time.h.
38862 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38863 without GRUB_UTIL.
38864 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
38865 time.h.
38866 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
38867 without GRUB_UTIL.
38868
38869 * include/grub/normal.h (struct grub_menu_list): New struct.
38870 (grub_menu_list_t): New type.
38871 (struct grub_context): New struct.
38872 (grub_context_t): New type.
38873 (grub_register_command): Got rid of EXPORT_FUNC.
38874 (grub_unregister_command): Likewise.
38875 (grub_context_get): New prototype.
38876 (grub_context_get_current_menu): Likewise.
38877 (grub_context_push_menu): Likewise.
38878 (grub_context_pop_menu): Likewise.
38879 [GRUB_UTIL] (grub_default_init): Likewise.
38880 [GRUB_UTIL] (grub_default_fini): Likewise.
38881 [GRUB_UTIL] (grub_timeout_init): Likewise.
38882 [GRUB_UTIL] (grub_timeout_fini): Likewise.
38883
38884 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
38885 commands/timeout.c and normal/context.c.
38886 (pkgdata_MODULES): Added default.mod and timeout.mod.
38887 (normal_mod_SOURCES): Added normal/context.c.
38888 (default_mod_SOURCES): New variable.
38889 (default_mod_CFLAGS): Likewise.
38890 (timeout_mod_SOURCES): Likewise.
38891 (timeout_mod_CFLAGS): Likewise.
38892 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
38893 conf/i386-pc.rmk.
38894 (pkgdata_MODULES): Added default.mod and timeout.mod.
38895 (normal_mod_SOURCES): Added normal/context.c.
38896 (default_mod_SOURCES): New variable.
38897 (default_mod_CFLAGS): Likewise.
38898 (timeout_mod_SOURCES): Likewise.
38899 (timeout_mod_CFLAGS): Likewise.
38900
38901 * Makefile.in (all-local): Added $(MKFILES).
38902
38903 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
38904
38905 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
38906 (grub_emu_SOURCES): Likewise.
38907 (pkgdata_MODULES): Add `sun.mod'.
38908 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38909 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
38910 `partmap/sun.c'.
38911 (pkgdata_MODULES): Add `sun.mod'.
38912 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
38913 * include/grub/partition.h (grub_sun_partition_map_init): New
38914 prototype.
38915 (grub_sun_partition_map_fini): Likewise.
38916 * partmap/sun.c: New file.
38917 * util/grub-emu.c (main): Initialize and de-initialize the sun
38918 partitionmap support.
38919
38920 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
38921
38922 This implements an Emacs-like menu entry editor.
38923
38924 * normal/menu_entry.c: New file.
38925
38926 * util/console.c (grub_ncurses_putchar): Translate some Unicode
38927 characters to ASCII.
38928 (saved_char): New variable.
38929 (grub_ncurses_checkkey): Rewritten completely.
38930 (grub_ncurses_getkey): Likewise.
38931 (grub_ncurses_init): Call raw instead of cbreak.
38932
38933 * normal/menu.c (print_entry): Do not put a space.
38934 (init_page): Renamed to ...
38935 (grub_menu_init_page): ... this. All callers changed.
38936 (edit_menu_entry): Removed.
38937 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
38938
38939 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
38940
38941 * kern/misc.c (grub_vprintf): Call grub_refresh.
38942
38943 * normal/menu.c (DISP_LEFT): Renamed to ...
38944 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
38945 * normal/menu.c (DISP_UP): Renamed to ...
38946 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
38947 * normal/menu.c (DISP_RIGHT): Renamed to ...
38948 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
38949 * normal/menu.c (DISP_DOWN): Renamed to ...
38950 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
38951 * normal/menu.c (DISP_HLINE): Renamed to ...
38952 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
38953 * normal/menu.c (DISP_VLINE): Renamed to ...
38954 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
38955 * normal/menu.c (DISP_UL): Renamed to ...
38956 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
38957 * normal/menu.c (DISP_UR): Renamed to ...
38958 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
38959 * normal/menu.c (DISP_LL): Renamed to ...
38960 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
38961 * normal/menu.c (DISP_LR): Renamed to ...
38962 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
38963 * normal/menu.c (TERM_WIDTH): Renamed to ...
38964 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
38965 * normal/menu.c (TERM_HEIGHT): Renamed to ...
38966 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
38967 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
38968 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
38969 * normal/menu.c (TERM_MARGIN): Renamed to ...
38970 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
38971 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
38972 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
38973 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
38974 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
38975 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
38976 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
38977 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
38978 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
38979 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
38980 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
38981 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
38982 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
38983 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
38984 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
38985 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
38986 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
38987 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
38988 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
38989 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
38990 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
38991 All callers changed.
38992
38993 * include/grub/normal.h: New prototype.
38994
38995 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
38996 normal/menu_entry.c.
38997 (normal_mod_SOURCES): Likewise.
38998 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38999 (normal_mod_SOURCES): Likewise.
39000
39001 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
39002
39003 * include/grub/normal.h (grub_halt_init): New prototype.
39004 (grub_halt_fini): Likewise.
39005 (grub_reboot_init): Likewise.
39006 (grub_reboot_fini): Likewise.
39007
39008 * util/grub-emu.c: Include signal.h.
39009 (main_env): New global variable.
39010 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
39011 catch C-c.
39012 (grub_machine_fini): New function.
39013 (main): Call grub_halt_init and grub_reboot_init before
39014 grub_main, and grub_reboot_fini and grub_halt_fini after it.
39015 Call setjmp with MAIN_ENV to go back afterwards.
39016 Call grub_machine_fini right before return.
39017
39018 * include/grub/util/misc.h: Include setjmp.h.
39019 (main_env): New prototype.
39020
39021 * include/grub/kernel.h (grub_machine_fini): New prototype.
39022 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
39023 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
39024
39025 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
39026 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
39027 * term/i386/pc/console.c (grub_console_fini): Likewise.
39028
39029 * util/i386/pc/misc.c: New file.
39030
39031 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
39032 util/i386/pc/misc.c, commands/i386/pc/halt.c and
39033 commands/i386/pc/reboot.c.
39034
39035 2005-02-14 Guillem Jover <guillem@hadrons.org>
39036
39037 * include/grub/dl.h (grub_dl_check_header): New prototype.
39038 (grub_arch_dl_check_header): Change return type to grub_err_t,
39039 remove size parameter and export function. Update all callers.
39040 * kern/dl.c (grub_dl_check_header): New function.
39041 (grub_dl_load_core): Use `grub_dl_check_header' instead of
39042 `grub_arch_dl_check_header'. Check ELF type. Check if sections
39043 are inside the core.
39044 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
39045 independent ELF header checks.
39046 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
39047 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
39048 `grub_dl_check_header' instead of explicit checks. Check for the
39049 ELF type.
39050 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
39051 `grub_dl_check_header' instead of explicit checks. Remove arch
39052 specific ELF header checks.
39053
39054 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
39055 argument SIZE.
39056
39057 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
39058
39059 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
39060 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
39061
39062 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
39063
39064 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
39065 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
39066 (part_map_iterate): Clear `grub_errno' and return 0 if
39067 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
39068 * partmap/amiga.c (amiga_partition_map_iterate): Return
39069 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
39070 * partmap/apple.c (apple_partition_map_iterate): Likewise.
39071
39072 2005-02-01 Guillem Jover <guillem@hadrons.org>
39073
39074 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
39075 help info.
39076
39077 2005-01-31 Marco Gerards <metgerards@student.han.nl>
39078
39079 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
39080 Removed prototype.
39081 (grub_rescue_cmd_linux): New prototype.
39082 (grub_rescue_cmd_initrd): Likewise.
39083 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
39084 `bi_rec'.
39085 (grub_linux_release_mem): Release the memory for the initrd.
39086 (grub_load_linux): Renamed from this...
39087 (grub_rescue_cmd_linux): ...To this. Changed all callers.
39088 Changed `entry' not to be static. Loop over memory regions to
39089 find another one when the default fails.
39090 (grub_rescue_cmd_initrd): New function.
39091 (grub_linux_init): Remove function.
39092 (grub_linux_fini): Likewise.
39093 (GRUB_MOD_INIT): Register `initrd'.
39094 (GRUB_MOD_FINI): Unregister `initrd'.
39095 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
39096 Function removed.
39097 (grub_linux_normal_fini): Likewise.
39098 (GRUB_MOD_INIT): Register `initrd'.
39099 (GRUB_MOD_FINI): Unregister `initrd'.
39100
39101 2005-01-31 Marco Gerards <metgerards@student.han.nl>
39102
39103 * commands/help.c: New file.
39104 * normal/arg.c (show_help): Renamed to...
39105 (grub_arg_show_help): ... this.
39106 * commands/i386/pc/halt.c: New file.
39107 * commands/i386/pc/reboot.c: Likewise.
39108 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
39109 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
39110 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
39111 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
39112 variables.
39113 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39114 `commands/help.c'.
39115 (pkgdata_MODULES): Add `help.mod'.
39116 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
39117 * grub/i386/pc/init.h (grub_reboot): New prototype.
39118 (grub_halt): Likewise.
39119 * include/grub/normal.h (grub_arg_show_help): New prototype.
39120 (grub_help_init): Likewise.
39121 (grub_help_fini): Likewise.
39122 * util/grub-emu.c (main): Initialize and deinitialize the help
39123 command.
39124
39125 * normal/cmdline.c (grub_cmdline_get): Doc fix.
39126
39127 * normal/command.c (grub_command_init): Fixed the description of
39128 the `set' and `unset' commands.
39129
39130 2005-01-31 Marco Gerards <metgerards@student.han.nl>
39131
39132 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
39133 function.
39134 * commands/ieee1275/halt.c: New file.
39135 * commands/ieee1275/reboot.c: Likewise.
39136 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
39137 `__attribute__ ((unused))'. Some GCS related fixed.
39138 (grub_suspend_init) [GRUB_UTIL]: Function removed.
39139 (grub_suspend_fini): Likewise.
39140 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
39141 and `halt.mod'.
39142 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
39143 (halt_mod_CFLAGS): New variables.
39144 * include/grub/powerpc/ieee1275/ieee1275.h
39145 (grub_ieee1275_interpret): New prototype.
39146
39147 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
39148
39149 * include/grub/misc.h (memmove): New prototype.
39150 (memcpy): Likewise.
39151
39152 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
39153
39154 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
39155 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
39156
39157 2005-01-22 Marco Gerards <metgerards@student.han.nl>
39158
39159 * kern/misc.c (grub_strndup): Function rewritten.
39160
39161 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
39162
39163 * normal/menu.c (TERM_WIDTH): Macro redefined.
39164 (TERM_TOP_BORDER_Y): Likewise.
39165 (draw_border): Replaced while-loop by a for-loop. Make the number
39166 of lines consistent with the number of lines displayed in
39167 print_entries. Added a margin below the rectangle.
39168 (print_entry): Make the entry fit in the rectangle.
39169 (print_entries): Display the scroll arrows next to the right
39170 border.
39171
39172 2005-01-21 Marco Gerards <metgerards@student.han.nl>
39173
39174 * fs/minix.c (grub_minix_find_file): Reserve more space for
39175 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
39176 `grub_strncpy' to copy `path' into it.
39177
39178 2005-01-21 Marco Gerards <metgerards@student.han.nl>
39179
39180 Add the loopback device, a device via which files can be accessed
39181 as devices.
39182
39183 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
39184 (pkgdata_MODULES): Add loopback.mod.
39185 (loopback_mod_SOURCES): New variable.
39186 (loopback_mod_CFLAGS): Likewise.
39187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
39188 `disk/loopback.c'.
39189 (pkgdata_MODULES): Add loopback.mod.
39190 (loopback_mod_SOURCES): New variable.
39191 (loopback_mod_CFLAGS): Likewise.
39192 * disk/loopback.c: new file.
39193 * include/grub/normal.h (grub_loop_init): New prototype.
39194 (grub_loop_fini): New prototype.
39195 * util/grub-emu.c (main): Initialize and de-initialize loopback
39196 support.
39197 * include/grub/disk.h (grub_disk_dev_id): Add
39198 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
39199
39200 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
39201
39202 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
39203 function.
39204 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
39205 (suspend_mod_SOURCES): New variable.
39206 (suspend_mod_CFLAGS): Likewise.
39207 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
39208 New prototype.
39209 * commands/ieee1275/suspend.c: New file.
39210
39211 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
39212
39213 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
39214 ((unused))' to `__attribute__ ((used))'.
39215 (GRUB_MOD_FINI): Likewise.
39216 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
39217 * genmk.rb (PModule): Assign space to common symbols when linking
39218 modules.
39219
39220 2005-01-20 Marco Gerards <metgerards@student.han.nl>
39221
39222 * include/grub/mm.h (grub_mm_init_region): Change the type of the
39223 `unsigned' arguments to `grub_size_t'.
39224 (grub_malloc): Likewise.
39225 (grub_realloc): Likewise.
39226 (grub_memalign): Likewise.
39227 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
39228 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
39229 * util/misc.c (grub_malloc): Likewise.
39230 (grub_realloc): Likewise.
39231 * kern/mm.c (get_header_from_pointer): Change the casts to
39232 `unsigned' into a cast to `grub_size_t'.
39233
39234 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
39235 point to `currnode' when `currnode' is changed.
39236
39237 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
39238 Schottelius <nico-linux@schottelius.org>.
39239
39240 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
39241
39242 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
39243 (note_path): Remove variable.
39244 (GRUB_IEEE1275_NOTE_NAME): New macro.
39245 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
39246 (grub_ieee1275_note_hdr): New structure.
39247 (grub_ieee1275_note_desc): Likewise.
39248 (grub_ieee1275_note): Likewise.
39249 (load_note): Remove `dir' argument. All callers updated. Remove
39250 `note_img' and `path'. Do not load a file from `note_path'.
39251 Initialize a struct grub_ieee1275_note and write that to `out'.
39252 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
39253
39254 2005-01-05 Marco Gerards <metgerards@student.han.nl>
39255
39256 * util/misc.c (grub_util_read_image): Revert last change. It
39257 called `grub_util_read_at', which seeks from the beginning of the
39258 file.
39259
39260 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
39261
39262 * TODO: Add note about endianness in grub-mkimage.
39263 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
39264 section.
39265 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
39266 (grub_mkimage_SOURCES): New target.
39267 * include/grub/kernel.h (grub_start_addr): Remove variable.
39268 (grub_end_addr): Likewise.
39269 (grub_total_module_size): Likewise.
39270 (grub_kernel_image_size): Likewise.
39271 (GRUB_MODULE_MAGIC): New constant.
39272 (grub_module_info): New structure.
39273 (grub_arch_modules_addr): New prototype.
39274 (grub_get_end_addr): Remove prototype.
39275 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
39276 * include/grub/powerpc/ieee1275/kernel.h: New file.
39277 * include/grub/util/misc.h (grub_util_get_fp_size): New
39278 prototype.
39279 (grub_util_read_at): Likewise.
39280 (grub_util_write_image_at): Likewise.
39281 * kern/main.c (grub_get_end_addr): Remove function.
39282 (grub_load_modules): Call grub_arch_modules_addr instead of using
39283 grub_end_addr. Look for a grub_module_info struct in memory. Use
39284 the grub_module_info fields instead of calling grub_get_end_addr
39285 as loop conditions. Move grub_add_unused_region code here.
39286 (grub_add_unused_region): Remove function.
39287 * kern/i386/pc/init.c: Include grub/cache.h.
39288 (grub_machine_init): Remove call to grub_get_end_addr. Remove
39289 one call to add_mem_region.
39290 (grub_arch_modules_addr): New function.
39291 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
39292 (grub_total_module_size): Likewise.
39293 Include grub/machine/kernel.h.
39294 (grub_arch_modules_addr): New function.
39295 * util/grub-emu.c (grub_end_addr): Remove variable.
39296 (grub_total_module_size): Likewise.
39297 (grub_arch_modules_addr): New function.
39298 * util/misc.c: Include unistd.h.
39299 (grub_util_get_fp_size): New function.
39300 (grub_util_read_at): Likewise.
39301 (grub_util_write_image_at): Likewise.
39302 (grub_util_read_image): Call grub_util_read_at.
39303 (grub_util_write_image): Call grub_util_write_image_at.
39304 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
39305 additional memory in kernel_img for a struct grub_module_info.
39306 Fill in that grub_module_info.
39307 * util/powerpc/ieee1275/grub-mkimage.c: New file.
39308
39309 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
39310
39311 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
39312 New function.
39313 * include/grub/powerpc/ieee1275/ieee1275.h
39314 (grub_ieee1275_milliseconds): New prototype.
39315 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
39316 Change to 1000.
39317 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
39318 grub_ieee1275_milliseconds.
39319
39320 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
39321
39322 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
39323 variable.
39324 (find_options): New function.
39325 (cmain): Call find_options.
39326 * include/grub/powerpc/ieee1275/ieee1275.h
39327 (grub_ieee1275_realmode): New extern variable.
39328 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
39329 grub_map if grub_ieee1275_realmode is false.
39330
39331 2004-12-29 Marco Gerards <metgerards@student.han.nl>
39332
39333 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
39334 lines are inserted and make it work like readline. Reported by
39335 Vincent Pelletier <subdino2004@yahoo.fr>.
39336
39337 2004-12-28 Marco Gerards <metgerards@student.han.nl>
39338
39339 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
39340
39341 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
39342 `kern/powerpc/cache.S'.
39343
39344 2004-12-27 Marco Gerards <metgerards@student.han.nl>
39345
39346 * genmk.rb: Handle the `Program' class in the main loop. Written
39347 by Johan Rydberg <jrydberg@gnu.org>.
39348 (Program): New class.
39349 (programs): New variable.
39350 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
39351 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
39352 instead of "grub/kernel.h". Include <grub/machine/init.h>.
39353 (help_arch): Function removed.
39354 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
39355 `powerpc/libgcc.h' and `loader.h'.
39356 (pkgdata_PROGRAMS): New variable.
39357 (sbin_UTILITIES): Variable removed.
39358 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
39359 (grubof_SOURCES): Variable re-defined so it only includes the
39360 core functionality.
39361 (grubof_CFLAGS): Remove `-DGRUBOF'.
39362 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
39363 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
39364 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
39365 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
39366 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
39367 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
39368 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
39369 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
39370 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
39371 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
39372 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
39373 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
39374 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
39375 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
39376 (pc_mod_CFLAGS): New variables.
39377 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
39378 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
39379 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
39380 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
39381 Moved from here...
39382 * include/grub/i386/pc/init.h (grub_os_area_addr)
39383 (rub_os_area_size): ... to here.
39384 * include/grub/powerpc/ieee1275/ieee1275.h
39385 (grub_ieee1275_entry_fn): Export symbol.
39386 * include/grub/powerpc/ieee1275/init.h: New file.
39387 * include/grub/powerpc/libgcc.h: Likewise.
39388 * include/grub/cache.h: Likewise.
39389 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
39390 <hollis@penguinppc.org>.
39391 * kern/dl.c: Include <grub/cache.h>.
39392 (grub_dl_flush_cache): New function.
39393 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
39394 for this module.
39395 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
39396 (grub_console_init): Removed prototypes.
39397 (grub_machine_init): Don't initialize the modules anymore.
39398 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
39399 static.
39400 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
39401 Macro undef removed.
39402 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
39403 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
39404 relocation `R_PPC_REL32'. Return an error when the relocation is
39405 unknown.
39406 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
39407 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
39408 * util/misc.c (grub_arch_sync_caches): Likewise.
39409
39410 2004-12-19 Marco Gerards <metgerards@student.han.nl>
39411
39412 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
39413 `symlist.c', add `grubof_symlist.c'.
39414 (symlist.c): Variable removed.
39415 (grubof_HEADERS): Variable added.
39416 (grubof_symlist.c): New target.
39417 (kernel_syms.lst): Use `grubof_HEADERS' instead of
39418 `kernel_img_HEADERS'.
39419 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
39420 * kern/powerpc/dl.c: New file.
39421 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
39422 Function removed.
39423 (grub_arch_dl_relocate_symbols): Likewise.
39424 (grub_register_exported_symbols): Likewise.
39425
39426 2004-12-13 Marco Gerards <metgerards@student.han.nl>
39427
39428 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
39429 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
39430 to fail instead. Reported by Vincent Pelletier
39431 <subdino2004@yahoo.fr>.
39432
39433 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
39434 it is not allocated. Reported by Vincent Pelletier
39435 <subdino2004@yahoo.fr>.
39436
39437 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
39438 output so the output looks better.
39439
39440 2004-12-04 Marco Gerards <metgerards@student.han.nl>
39441
39442 Modulize the partition map support and add support for the amiga
39443 partition map.
39444
39445 * commands/ls.c: Include <grub/partition.h> instead of
39446 <grub/machine/partition.h>.
39447 * kern/disk.c: Likewise.
39448 * kern/rescue.c: Likewise.
39449 * loader/i386/pc/chainloader.c: Likewise.
39450 * normal/cmdline.c: Likewise.
39451 * kern/powerpc/ieee1275/init.c: Likewise.
39452 (grub_machine_init): Call `grub_pc_partition_map_init',
39453 `grub_amiga_partition_map_init' and
39454 `grub_apple_partition_map_init'.
39455 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
39456 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
39457 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
39458 `partition.h' and `pc_partition.h'.
39459 (grub_setup_SOURCES): Remove
39460 `disk/i386/pc/partition.c'. Add `kern/partition.c',
39461 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39462 (grub_emu_SOURCES): Likewise.
39463 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
39464 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
39465 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
39466 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39467 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
39468 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
39469 (grubof_SOURCES): Likewise.
39470 * disk/i386/pc/partition.c: File removed.
39471 * disk/powerpc/ieee1275/partition.c: Likewise.
39472 * include/grub/powerpc/ieee1275/partition.h: Likewise.
39473 * include/grub/i386/pc/partition.h: Likewise.
39474 * kern/partition.c: New file.
39475 * partmap/amiga.c: Likewise.
39476 * partmap/apple.c: Likewise.
39477 * partmap/pc.c: Likewise.
39478 * include/grub/partition.h: Likewise..
39479 * include/grub/pc_partition.h: Likewise.
39480 * util/grub-emu.c: Include <grub/partition.h> instead of
39481 <grub/machine/partition.h>.
39482 (main): Call `grub_pc_partition_map_init',
39483 `grub_amiga_partition_map_init' and
39484 `grub_apple_partition_map_init' and deinitialize afterwards.
39485 * util/i386/pc/biosdisk.c: Include `#include
39486 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39487 `<grub/machine/partition.h>'.
39488 * util/i386/pc/grub-setup.c: Likewise.
39489 * util/i386/pc/biosdisk.c: Likewise.
39490 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
39491 partition information in case of a PC partition.
39492 * util/i386/pc/grub-setup.c: Include `#include
39493 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
39494 `<grub/machine/partition.h>'.
39495 (setup): Only access the PC specific partition information in case
39496 of a PC partition.
39497
39498 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
39499
39500 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
39501 (grub_longjmp): Likewise.
39502 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
39503 20.
39504 * normal/powerpc/setjmp.S: New file.
39505 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39506 `normal/powerpc/setjmp.S'.
39507 (grubof_CFLAGS): Add `-DGRUBOF'.
39508 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
39509 [GRUB_UTIL && !GRUBOF].
39510
39511 2004-11-16 Marco Gerards <metgerards@student.han.nl>
39512
39513 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
39514 property named `name'. Correctly handle the error returned by
39515 `grub_ieee1275_finddevice' if a device can not be opened.
39516
39517 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
39518
39519 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
39520 `actual' for negativity.
39521 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
39522 kern/fshelp.c.
39523
39524 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39525
39526 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
39527 (PAGE_OFFSET): New macro.
39528 (CRTC_ADDR_PORT): Likewise.
39529 (CRTC_DATA_PORT): Likewise.
39530 (START_ADDR_HIGH_REGISTER): Likewise.
39531 (START_ADDR_LOW_REGISTER): Likewise.
39532 (GRAPHICS_ADDR_PORT): Likewise.
39533 (GRAPHICS_DATA_PORT): Likewise.
39534 (READ_MAP_REGISTER): Likewise.
39535 (INPUT_STATUS1_REGISTER): Likewise.
39536 (INPUT_STATUS1_VERTR_BIT): Likewise.
39537 (page): New variable.
39538 (wait_vretrace): New function.
39539 (set_read_map): Likewise.
39540 (set_start_address): Likewise.
39541 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
39542 the right page.
39543 (check_vga_mem): Take the page into account.
39544 (write_char): Likewise.
39545 (write_cursor): Likewise.
39546 (scroll_up): Likewise. Copy the page to the page that is not
39547 shown and switch between both pages.
39548 (grub_vga_putchar): Fix off by one error.
39549 (grub_vga_cls): Wait for the vertical retrace. Take the page into
39550 account.
39551
39552 2004-11-01 Marco Gerards <metgerards@student.han.nl>
39553
39554 Add support for iso9660 (including rockridge).
39555
39556 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39557 (iso9660_mod_SOURCES): New variable.
39558 (iso9660_mod_CFLAGS): Likewise.
39559 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
39560 * include/grub/fs.h (grub_iso9660_init): New prototype.
39561 * util/grub-emu.c (main): Call `grub_iso9660_init'.
39562 * fs/iso9660.c: New file.
39563
39564 * include/grub/misc.h (grub_strncat): New prototype.
39565 * kern/misc.c (grub_strncat): New function.
39566
39567 * fs/hfs.c (grub_hfs_mount): Translate the error
39568 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
39569 * fs/jfs.c (grub_jfs_mount): Likewise.
39570 * fs/ufs.c (grub_ufs_mount): Likewise.
39571
39572 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
39573
39574 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
39575 which initialized BAT registers.
39576 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
39577 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39578 Move from here...
39579 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
39580 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
39581 ... to here.
39582 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
39583 (grub_mapclaim): Likewise.
39584 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
39585 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
39586 hand.
39587
39588 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
39589
39590 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
39591 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
39592 -ffreestanding and -msoft-float.
39593
39594 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
39595
39596 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
39597 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
39598 set in grub_ieee1275_flags.
39599
39600 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
39601
39602 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
39603 prototype.
39604 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
39605 grub_console_init first.
39606 Change the memory range used for grub_ieee1275_claim and
39607 grub_mm_init_region.
39608 Print an error message if the claim fails.
39609 Include <grub/misc.h>.
39610
39611 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
39612
39613 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
39614 Call grub_children_iterate for device nodes of type `scsi',
39615 `ide', or `ata'.
39616 (grub_ofdisk_open): Remove manual device alias resolution.
39617 Fix memory leak when device cannot be opened.
39618 * include/grub/powerpc/ieee1275/ieee1275.h
39619 (grub_children_iterate): New prototype.
39620 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
39621 New function.
39622 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39623 Return -1 if args.size was -1.
39624
39625 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39626
39627 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
39628 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
39629 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
39630 Open Firmware's memory for it; claim memory from _start to _end.
39631 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
39632 (_end): New extern.
39633 (_start): Zero BSS from __bss_start to _end.
39634 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
39635 New extern.
39636 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
39637
39638 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
39639
39640 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
39641 -1 if args.base was -1.
39642
39643 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
39644
39645 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
39646 escape sequence instead of a literal ^L. Also call
39647 grub_ofconsole_gotoxy.
39648
39649 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
39650
39651 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
39652 void * arguments to grub_addr_t. All callers updated. Also make
39653 the `result' argument optional.
39654 (grub_ieee1275_release): change void * arguments to grub_addr_t.
39655 All callers updated.
39656
39657 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
39658
39659 * commands/ls.c (grub_ls_list_files): Use the string following the
39660 initial ')', if present, as the filesystem path.
39661 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
39662
39663 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
39664
39665 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
39666
39667 Make the source code of the menu interface more readable.
39668
39669 * normal/menu.c: Include grub/mm.h.
39670 (TERM_WIDTH): New macro.
39671 (TERM_HEIGHT): Likewise.
39672 (TERM_INFO_HEIGHT): Likewise.
39673 (TERM_MARGIN): Likewise.
39674 (TERM_SCROLL_WIDTH): Likewise.
39675 (TERM_TOP_BORDER_Y): Likewise.
39676 (TERM_LEFT_BORDER_X): Likewise.
39677 (TERM_BORDER_WIDTH): Likewise.
39678 (TERM_MESSAGE_HEIGHT): Likewise.
39679 (TERM_BORDER_HEIGHT): Likewise.
39680 (TERM_NUM_ENTRIES): Likewise.
39681 (TERM_FIRST_ENTRY_Y): Likewise.
39682 (TERM_ENTRY_WIDTH): Likewise.
39683 (TERM_CURSOR_X): Likewise.
39684 (draw_border): Use macros instead of magic numbers.
39685 (print_entry): Likewise.
39686 (print_entries): Likewise.
39687 (run_menu): Likewise. Also, handle the key 'e'.
39688 (run_menu_entry): Ignore empty command lines.
39689 (print_message): Added a new argument EDIT. If EDIT is true,
39690 print a different message.
39691 (init_page): Likewise.
39692 (edit_menu_entry): New function. Not implemented yet.
39693
39694 2004-09-17 Marco Gerards <metgerards@student.han.nl>
39695
39696 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
39697 can be loaded from normal mode.
39698
39699 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
39700 `multiboot.mod'.
39701 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
39702 (multiboot_mod_CFLAGS): New variables.
39703 * loader/i386/pc/linux_normal.c: New file.
39704 * loader/i386/pc/multiboot_normal.c: Likewise.
39705
39706 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
39707 attribute `unused'.
39708
39709 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
39710 `fdiro' to read the mode information from instead of `diro'.
39711
39712 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
39713 looking up a symlink.
39714
39715 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
39716 macro.
39717 * normal/command.c (grub_command_execute): Don't parse the
39718 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
39719 flags of the command.
39720
39721 * normal/menu.c (grub_menu_run): Fix typo.
39722
39723 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
39724
39725 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
39726
39727 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
39728 `y + 1' instead of `y - 1'.
39729
39730 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
39731
39732 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
39733
39734 From Hollis Blanchard <hollis@penguinppc.org>:
39735 * kern/misc.c (memmove): New alias for grub_memmove.
39736 (memcmp): New alias for grub_memcmp.
39737 (memset): New alias for grub_memset.
39738 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
39739 Change "int handle" to "grub_ieee1275_phandle_t handle".
39740 * include/grub/powerpc/ieee1275/ieee1275.h
39741 (grub_ieee1275_get_property): Likewise.
39742
39743 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
39744
39745 Added normal mode command `chainloader' as module chain.mod, which
39746 depends on normal.mod and _chain.mod.
39747
39748 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
39749 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
39750 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
39751 Deleted prototype.
39752 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
39753 but arguments parsing moved to ...
39754 (grub_chainloader_cmd): ... here. New function.
39755 * include/grub/i386/pc/chainloader.h: New file.
39756 * loader/i386/pc/chainloader_normal.c: Likewise.
39757
39758 2004-09-11 Marco Gerards <metgerards@student.han.nl>
39759
39760 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
39761 (grub_mkimage_LDFLAGS): Likewise.
39762 (grub_emu_SOURCES): Likewise.
39763 (kernel_img_HEADERS): Added fshelp.h.
39764 * fs/ext2.c: Include <grub/fshelp.h>.
39765 (FILETYPE_REG): New macro.
39766 (FILETYPE_INO_REG): Likewise.
39767 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
39768 Changed all users.
39769 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
39770 all users.
39771 (grub_fshelp_node): New struct.
39772 (grub_ext2_data): Added member `diropen'. Changed member `inode'
39773 to a pointer.
39774 (grub_ext2_get_file_block): Removed function.
39775 (grub_ext2_read_block): New function.
39776 (grub_ext2_read_file): Replaced parameter `data' by `node'.
39777 This function was written.
39778 (grub_ext2_mount): Read the root inode. Create a diropen struct.
39779 (grub_ext2_find_file): Removed function.
39780 (grub_ext2_read_symlink): New function.
39781 (grub_ext2_iterate_dir): Likewise.
39782 (grub_ext2_open): Rewritten.
39783 (grub_ext2_dir): Rewritten.
39784 * include/grub/fshelp.h: New file.
39785 * fs/fshelp.c: Likewise.
39786
39787 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
39788
39789 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
39790 (print_message): Add a missing newline.
39791 (run_menu): Added timeout support.
39792 (run_menu_entry): New local function.
39793 (grub_menu_run): Added support for booting.
39794
39795 * kern/loader.c (grub_loader_is_loaded): New function.
39796
39797 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
39798 (grub_get_rtc): Exported.
39799
39800 * include/grub/i386/pc/time.h: Include grub/symbol.h.
39801 (grub_get_rtc): Exported.
39802
39803 * include/grub/normal.h (struct grub_command_list): Remove
39804 constant from the member `command'.
39805
39806 * include/grub/loader.h (grub_loader_is_loaded): Declared.
39807
39808 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
39809
39810 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
39811
39812 2004-08-28 Marco Gerards <metgerards@student.han.nl>
39813
39814 Add support for the JFS filesystem.
39815
39816 * fs/jfs.c: New file.
39817 * include/grub/fs.h (grub_jfs_init): New prototype.
39818 (grub_jfs_fini): New prototype.
39819 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
39820 (grub_emu_SOURCES): Likewise.
39821 (pkgdata_MODULES): Add jfs.mod.
39822 (jfs_mod_SOURCES): New variable.
39823 (jfs_mod_CFLAGS): Likewise.
39824 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
39825 (grubof_SOURCES): Likewise.
39826 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
39827
39828 * fs/fat.c (grub_fat_find_dir): Convert the filename little
39829 endian to the host endian.
39830 (grub_fat_utf16_to_utf8): Move function from there...
39831 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
39832 the endianness of the source string anymore.
39833 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
39834
39835 2004-08-24 Marco Gerards <metgerards@student.han.nl>
39836
39837 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
39838 (grub_boot_fini) [GRUB_UTIL]: Likewise.
39839 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
39840 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
39841
39842 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
39843 (grub_hfs_iterate_dir): Make the function static. Add prototypes
39844 for `node_found' and `it_dir'.
39845 (grub_hfs_dir): Add prototype for `dir_hook'.
39846
39847 * fs/minix.c (grub_minix_get_file_block): Add prototype for
39848 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
39849 and `indir32' to silence a gcc warning.
39850
39851 * include/grub/fs.h (grub_hfs_init): New prototype.
39852 (grub_hfs_fini): Likewise.
39853
39854
39855 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
39856
39857 Each disk device has its own id now. This is useful to make use
39858 of multiple disk devices.
39859
39860 * include/grub/disk.h (grub_disk_dev_id): New enum.
39861 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
39862 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
39863
39864 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
39865 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39866
39867 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
39868 GRUB_DISK_DEVICE_OFDISK_ID as an id.
39869
39870 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
39871 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
39872
39873 * include/grub/disk.h (struct grub_disk_dev): Added a new member
39874 "id" which is used by the cache manager.
39875
39876 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
39877 of just "GRUB".
39878
39879 2004-08-18 Marco Gerards <metgerards@student.han.nl>
39880
39881 * fs/hfs.c: New file.
39882 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
39883 (grub_emu_SOURCES): Likewise.
39884 (pkgdata_MODULES): Add hfs.mod.
39885 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
39886 (grubof_SOURCES): Likewise.
39887 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
39888
39889 * include/grub/misc.h (grub_strncasecmp): Add prototype.
39890 * kern/misc.c (grub_strncasecmp): Add function.
39891
39892 2004-08-14 Marco Gerards <metgerards@student.han.nl>
39893
39894 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
39895 with parentheses.
39896
39897 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
39898 (grub_ext2_dir): In case the directory entry type is unknown, read
39899 it from the inode.
39900
39901 2004-08-02 Peter Bruin <pjbruin@dds.nl>
39902
39903 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
39904 grub_load_linux instead of grub_rescue_cmd_linux as second
39905 argument of grub_rescue_register_command.
39906
39907 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
39908
39909 2004-07-27 Marco Gerards <metgerards@student.han.nl>
39910
39911 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
39912 function.
39913 * commands/boot.c: Remove the check for `GRUB_UTIL'.
39914 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
39915 `loader/powerpc/ieee1275/linux.c',
39916 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
39917 * include/grub/powerpc/ieee1275/ieee1275.h
39918 (grub_ieee1275_release): New prototype.
39919 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
39920 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
39921 normal, boot, linux and linux_normal.
39922 * loader/powerpc/ieee1275/linux.c: New file.
39923 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
39924
39925 2004-07-12 Marco Gerards <metgerards@student.han.nl>
39926
39927 * normal/arg.c (grub_arg_parse): Correct error handling after
39928 reallocating the argumentlist (check if `argl' is not null instead
39929 of checking if `args' is not null).
39930 * kern/mm.c (grub_realloc): Return the same pointer when using the
39931 same region, instead of returning the header address.
39932
39933 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39934
39935 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
39936 one block instead of two when looking for the initial partition.
39937 (grub_partition_probe): Initialize the local variable `p' with 0.
39938 Use base 10 for the grub_strtoul call.
39939 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
39940 need for one local variable.
39941 (grub_strtoul): Don't add the new value to `num', instead of that
39942 just assign it.
39943
39944 2004-07-11 Marco Gerards <metgerards@student.han.nl>
39945
39946 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
39947 (pxeboot_img_SOURCES): New variable.
39948 (pxeboot_img_ASFLAGS): Likewise.
39949 (pxeboot_img_LDFLAGS): Likewise.
39950 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
39951 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
39952 <lode_leroy@hotmail.com>.
39953
39954 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39955
39956 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
39957 there was no input.
39958
39959 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39960
39961 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
39962 the history buffer logic.
39963
39964 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
39965
39966 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
39967 (FILETYPE_INO_SYMLINK): New macros.
39968 (grub_ext2_find_file): Check if the node is a directory using the
39969 inode stat information instead of using the filetype in the
39970 dirent. Exclude the first character of an absolute symlink.
39971 (grub_ext2_dir): Mask out the filetype part of the mode member of
39972 the inode.
39973
39974 2004-05-24 Marco Gerards <metgerards@student.han.nl>
39975
39976 Add support for UFS version 1 and 2. Add support for the minix
39977 filesystem version 1 and 2, both the variants with 14 and 30 long
39978 filenames.
39979
39980 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
39981 fs/minix.c.
39982 (grub_emu_SOURCES): Likewise.
39983 (pkgdata_MODULES): Add ufs.mod and minix.mod.
39984 (ufs_mod_SOURCES): New variable.
39985 (ufs_mod_CFLAGS): Likewise.
39986 (minix_mod_SOURCES): Likewise.
39987 (minix_mod_CFLAGS): Likewise.
39988 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
39989 fs/minix.c.
39990 (grubof_SOURCES): Likewise.
39991 * fs/ufs.c: New file.
39992 * fs/minix.c: New file.
39993 * include/grub/fs.h (grub_ufs_init): New prototype.
39994 (grub_ufs_fini): Likewise.
39995 (grub_minix_init): Likewise.
39996 (grub_minix_fini): Likewise.
39997 * util/grub-emu.c (main): Initialize and deinitialize UFS and
39998 minix fs.
39999
40000 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
40001
40002 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
40003 commands/ls.c, commands/terminal.c, commands/boot.c,
40004 commands/cmp.c and commands/cat.c.
40005 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
40006
40007 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
40008 "env.h"
40009
40010 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40011
40012 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
40013 and grub_, respectively. Because the conversion is trivial and
40014 mechanical, I omit the details here. Please refer to the CVS
40015 if you need more information.
40016
40017 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
40018
40019 * include/pupa: Renamed to ...
40020 * include/grub: ... this.
40021 * util/i386/pc/pupa-mkimage.c: Renamed to ...
40022 * util/i386/pc/grub-mkimage.c: ... this.
40023 * util/i386/pc/pupa-setup.c: Renamed to ...
40024 * util/i386/pc/grub-setup.c: ... this.
40025 * util/pupa-emu.c: Renamed to ...
40026 * util/grub-emu.c: ... this.
40027
40028 2004-03-29 Marco Gerards <metgerards@student.han.nl>
40029
40030 Add support for the newworld apple macintosh (PPC). This has been
40031 tested on the powerbook 2000 only. It only adds support for
40032 generic ieee1275 functions, console and disk support. This should
40033 be easy to port to other architectures with support for Open
40034 Firmware.
40035
40036 * configure.ac: Accept the powerpc as host_cpu. In the case of
40037 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
40038 specific tests are only executed while building for the i386.
40039 Inverse test for crosscompile.
40040 * genmk.rb (Utility): Allow assembler files.
40041 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
40042 * conf/powerpc-ieee1275.rmk: New file.
40043 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
40044 * disk/powerpc/ieee1275/partition.c: Likewise.
40045 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
40046 * include/pupa/powerpc/ieee1275/console.h: Likewise.
40047 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
40048 * include/pupa/powerpc/ieee1275/time.h: Likewise.
40049 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
40050 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
40051 * include/pupa/powerpc/ieee1275/loader.h
40052 * include/pupa/powerpc/setjmp.h: Likewise.
40053 * include/pupa/powerpc/types.h: Likewise.
40054 * kern/powerpc/ieee1275/init.c: Likewise.
40055 * kern/powerpc/ieee1275/openfw.c: Likewise.
40056 * term/powerpc/ieee1275/ofconsole.c: Likewise.
40057
40058 These files were written by Johan Rydberg
40059 (jrydberg@night.trouble.net) and I only modified them slightly.
40060
40061 * boot/powerpc/ieee1275/cmain.c: New file.
40062 * boot/powerpc/ieee1275/crt0.S: Likewise.
40063 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
40064 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
40065
40066 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
40067
40068 * Makefile.in: Update copyright.
40069 * genmodsrc.sh: Likewise.
40070 * gensymlist.sh: Likewise.
40071 * term/i386/pc/vga.c: Indent correctly.
40072
40073 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
40074 bugreporting address.
40075 * util/i386/pc/pupa-setup.c (usage): Likewise,
40076 (main): Call pupa_ext2_init and pupa_ext2_fini.
40077
40078 * fs/fat.c (log2): Renamed to ...
40079 (fat_log2): ... this.
40080 All callers changed.
40081 * kern/misc.c (memcpy): Alias to pupa_memmove.
40082 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
40083 lvalue cast.
40084 * util/console.c (pupa_ncurses_fini): Return 0.
40085
40086 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
40087 Move fail label here.
40088 [__GNU__]: Don't warn when using stat.
40089 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
40090 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
40091 long int. Use strtol instead of strtoul.
40092
40093 2004-03-14 Marco Gerards <metgerards@student.han.nl>
40094
40095 * commands/boot.c: New file.
40096 * commands/cat.c: Likewise.
40097 * commands/cmp.c: Likewise.
40098 * commands/ls.c: Likewise.
40099 * commands/terminal.c: Likewise.
40100 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
40101 (pupa_register_command): Changed interface to match the new
40102 argument parser.
40103 (pupa_command_execute): Changed (almost rewritten) so it uses
40104 pupa_split_command. Added support for setting variables using the
40105 syntax `foo=bar'.
40106 (rescue_command): Changed to work with the new argument parser.
40107 (terminal_command): Moved from here to commands/terminal.c.
40108 (set_command): New function.
40109 (unset_command): New function.
40110 (insmod_command): New function.
40111 (rmmod_command): New function.
40112 (lsmod_command): New function.
40113 (pupa_command_init): Don't initialize the command terminal
40114 anymore. Initialize the commands set, unset, insmod, rmmod and
40115 lsmod.
40116 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
40117 (kernel_img_HEADERS): Add arg.h and env.h.
40118 (pupa_mkimage_LDFLAGS): Add kern/env.c.
40119 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
40120 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
40121 normal/arg.c.
40122 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
40123 terminal.mod.
40124 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
40125 (boot_mod_SOURCES): New variable.
40126 (terminal_mod_SOURCES): Likewise.
40127 (ls_mod_SOURCES): Likewise.
40128 (cmp_mod_SOURCES): Likewise.
40129 (cat_mod_SOURCES): Likewise.
40130
40131 * normal/arg.c: New file.
40132 * kern/env.c: Likewise.
40133 * include/pupa/arg.h: Likewise.
40134 * include/pupa/env.h: Likewise.
40135 * font/manager.c (font_command): Changed to match argument parsing
40136 interface changes.
40137 (PUPA_MOD_INIT): Likewise.
40138 * hello/hello.c (pupa_cmd_hello): Likewise.
40139 (PUPA_MOD_INIT): Likewise.
40140 * include/pupa/disk.h: Include <pupa/device.h>.
40141 (pupa_print_partinfo): New prototype.
40142 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
40143 (pupa_dl_get_prefix): Likewise.
40144 * include/pupa/misc.h: Include <pupa/err.h>.
40145 (pupa_isgraph): New prototype.
40146 (pupa_isdigit): Likewise.
40147 (pupa_split_cmdline): Likewise.
40148 * include/pupa/normal.h: Include <pupa/arg.h>.
40149 (pupa_command): Changed the prototype of the member `func' to
40150 match the argument parsing interface. Added member `options'.
40151 (pupa_register_command): Updated to match function.
40152 (pupa_arg_parse): New prototype.
40153 (pupa_hello_init) [PUPA_UTIL]: New prototype.
40154 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
40155 (pupa_ls_init) [PUPA_UTIL]: Likewise.
40156 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
40157 (pupa_cat_init) [PUPA_UTIL]: Likewise.
40158 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
40159 (pupa_boot_init) [PUPA_UTIL]: Likewise.
40160 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
40161 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
40162 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
40163 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
40164 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
40165 * kern/disk.c: Include <pupa/file.h>.
40166 (pupa_print_partinfo): New function.
40167 * kern/dl.c: Include <pupa/env.h>.
40168 (pupa_dl_dir): Variable removed.
40169 (pupa_dl_load): Use the environment variable `prefix' instead of
40170 the variable pupa_dl_dir.
40171 (pupa_dl_set_prefix): Function removed.
40172 (pupa_dl_get_prefix): Likewise.
40173 * kern/i386/pc/init.c: Include <pupa/env.h>.
40174 (pupa_machine_init): Use the environment variable `prefix' instead of
40175 using pupa_dl_set_prefix to set the prefix.
40176 * kern/main.c: Include <pupa/env.h>.
40177 (pupa_set_root_dev): Use the environment variable `prefix' instead of
40178 using pupa_dl_get_prefix to get the prefix.
40179 * kern/misc.c: Include <pupa/env.h>.
40180 (pupa_isdigit): New function.
40181 (pupa_isgraph): Likewise.
40182 (pupa_ftoa): Likewise.
40183 (pupa_vsprintf): Added support for printing values of the type
40184 `double'. Make it possible to format variable output when using
40185 formatting like `%1.2%f'.
40186 (pupa_split_cmdline): New function.
40187 * kern/rescue.c: Include <pupa/env.h>.
40188 (next_word): Removed function.
40189 (pupa_rescue_cmd_prefix): Likewise.
40190 (pupa_rescue_cmd_set): New function.
40191 (pupa_rescue_cmd_unset): New function.
40192 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
40193 split the command line instead of splitting it here. Added
40194 support for setting variables using the syntax `foo=bar'. Don't
40195 initialize the prefix command anymore. Initialized the set and
40196 unset commands.
40197 * normal/cmdline.c: Include <pupa/env.h>.
40198 (pupa_tab_complete): Added prototypes for print_simple_completion,
40199 print_partition_completion, add_completion, iterate_commands,
40200 iterate_dev, iterate_part and iterate_dir. Moved code to print
40201 partition information from here to kern/disk.c.
40202 (pupa_cmdline_run): Don't check if the function exists anymore.
40203 * normal/main.c: Include <pupa/env.h>.
40204 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
40205 instead of using pupa_dl_get_prefix to get the prefix.
40206 * term/i386/pc/vga.c: Include <pupa/arg.h>.
40207 (check_vga_mem): Cast pointers to `void *' to silence a gcc
40208 warning.
40209 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
40210 (pupa_vga_setcolor): Declare unused variables with `__attribute__
40211 ((unused))' to silence a gcc warning.
40212 (pupa_vga_setcolor): Likewise.
40213 (debug_command): Changed to match argument parsing
40214 interface changes.
40215 * util/pupa-emu.c: Include <pupa/env.h>.
40216 (options): Added 0's for unused fields to silence a gcc warning.
40217 (argp): Likewise.
40218 (main): Use the environment variable `prefix' instead of using
40219 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
40220 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
40221 and terminal.
40222
40223 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
40224 * util/misc.c: Include <malloc.h>.
40225 (pupa_malloc): Rewritten so errors are correctly reported.
40226 (pupa_realloc): Likewise.
40227 (pupa_memalign): Likewise.
40228 (pupa_mm_init_region): Declare unused variables with
40229 `__attribute__ ((unused))' to silence a gcc warning.
40230 * normal/i386/setjmp.S: Remove tab at the end of the file to
40231 silence a gcc warning.
40232 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
40233 variables with `__attribute__ ((unused))' to silence a gcc
40234 warning.
40235 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
40236 local variable i unsigned to silence a gcc warning.
40237
40238 * kern/term.c: Include <pupa/misc.h>.
40239 (pupa_more_lines): New variable.
40240 (pupa_more): Likewise.
40241 (pupa_putcode): When the pager is active pause at the end of every
40242 screen.
40243 (pupa_set_more): New function.
40244 * include/pupa/term.h (pupa_set_more): New prototype.
40245
40246
40247 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
40248
40249 Now this project is GRUB 2 rather than PUPA. The location of
40250 the CVS repository was moved to GRUB's.
40251
40252 * configure.ac: Use bug-grub as the reporting address.
40253 Use GRUB instead of PUPA.
40254 Change the version number to 1.90.
40255
40256 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
40257
40258 * genkernsyms.sh: Updated copyright information.
40259 * genmk.rb: Likewise.
40260 * genmodsrc.sh: Likewise.
40261 * gensymlist.sh: Likewise.
40262 * boot/i386/pc/boot.S: Likewise.
40263 * boot/i386/pc/diskboot.S: Likewise.
40264 * disk/i386/pc/biosdisk.c: Likewise.
40265 * disk/i386/pc/partition.c: Likewise.
40266 * font/manager.c: Likewise.
40267 * fs/ext2.c: Likewise.
40268 * fs/fat.c: Likewise.
40269 * include/pupa/boot.h: Likewise.
40270 * include/pupa/device.h: Likewise.
40271 * include/pupa/disk.h: Likewise.
40272 * include/pupa/dl.h: Likewise.
40273 * include/pupa/elf.h: Likewise.
40274 * include/pupa/err.h: Likewise.
40275 * include/pupa/file.h: Likewise.
40276 * include/pupa/font.h: Likewise.
40277 * include/pupa/fs.h: Likewise.
40278 * include/pupa/kernel.h: Likewise.
40279 * include/pupa/loader.h: Likewise.
40280 * include/pupa/misc.h: Likewise.
40281 * include/pupa/mm.h: Likewise.
40282 * include/pupa/net.h: Likewise.
40283 * include/pupa/normal.h: Likewise.
40284 * include/pupa/rescue.h: Likewise.
40285 * include/pupa/setjmp.h: Likewise.
40286 * include/pupa/symbol.h: Likewise.
40287 * include/pupa/term.h: Likewise.
40288 * include/pupa/types.h: Likewise.
40289 * include/pupa/i386/setjmp.h: Likewise.
40290 * include/pupa/i386/types.h: Likewise.
40291 * include/pupa/i386/pc/biosdisk.h: Likewise.
40292 * include/pupa/i386/pc/boot.h: Likewise.
40293 * include/pupa/i386/pc/console.h: Likewise.
40294 * include/pupa/i386/pc/init.h: Likewise.
40295 * include/pupa/i386/pc/kernel.h: Likewise.
40296 * include/pupa/i386/pc/linux.h: Likewise.
40297 * include/pupa/i386/pc/loader.h: Likewise.
40298 * include/pupa/i386/pc/memory.h: Likewise.
40299 * include/pupa/i386/pc/multiboot.h: Likewise.
40300 * include/pupa/i386/pc/partition.h: Likewise.
40301 * include/pupa/i386/pc/time.h: Likewise.
40302 * include/pupa/i386/pc/vga.h: Likewise.
40303 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
40304 * include/pupa/util/getroot.h: Likewise.
40305 * include/pupa/util/misc.h: Likewise.
40306 * include/pupa/util/resolve.h: Likewise.
40307 * kern/device.c: Likewise.
40308 * kern/disk.c: Likewise.
40309 * kern/dl.c: Likewise.
40310 * kern/err.c: Likewise.
40311 * kern/file.c: Likewise.
40312 * kern/fs.c: Likewise.
40313 * kern/loader.c: Likewise.
40314 * kern/main.c: Likewise.
40315 * kern/misc.c: Likewise.
40316 * kern/mm.c: Likewise.
40317 * kern/rescue.c: Likewise.
40318 * kern/term.c: Likewise.
40319 * kern/i386/dl.c: Likewise.
40320 * kern/i386/pc/init.c: Likewise.
40321 * kern/i386/pc/lzo1x.S: Likewise.
40322 * kern/i386/pc/startup.S: Likewise.
40323 * loader/i386/pc/chainloader.c: Likewise.
40324 * loader/i386/pc/linux.c: Likewise.
40325 * loader/i386/pc/multiboot.c: Likewise.
40326 * normal/cmdline.c: Likewise.
40327 * normal/command.c: Likewise.
40328 * normal/main.c: Likewise.
40329 * normal/menu.c: Likewise.
40330 * normal/i386/setjmp.S: Likewise.
40331 * term/i386/pc/console.c: Likewise.
40332 * term/i386/pc/vga.c: Likewise.
40333 * util/console.c: Likewise.
40334 * util/genmoddep.c: Likewise.
40335 * util/misc.c: Likewise.
40336 * util/pupa-emu.c: Likewise.
40337 * util/resolve.c: Likewise.
40338 * util/unifont2pff.rb: Likewise.
40339 * util/i386/pc/biosdisk.c: Likewise.
40340 * util/i386/pc/getroot.c: Likewise.
40341 * util/i386/pc/pupa-mkimage.c: Likewise.
40342 * util/i386/pc/pupa-setup.c: Likewise.
40343
40344 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
40345
40346 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
40347 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
40348 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
40349 reading and reset it after reading.
40350 (pupa_ext2_close): Return PUPA_ERR_NONE.
40351
40352 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
40353 Correct value.
40354 (struct linux_kernel_header): Add kernel_version and
40355 initrd_addr_max.
40356 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
40357 pupa_file_read succeeds.
40358 (pupa_rescue_cmd_initrd): Implement.
40359
40360 2003-12-03 Marco Gerards <metgerards@student.han.nl>
40361
40362 * fs/ext2.c (pupa_ext2_label): New function.
40363 (pupa_ext2_fs): Added label.
40364 * fs/fat.c (pupa_fat_label): New function.
40365 (pupa_fat_fs): Added label.
40366 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
40367
40368 * kern/misc.c (pupa_strndup): New function.
40369 * include/pupa/misc.h (pupa_strndup): New prototype.
40370
40371 * include/pupa/normal.h: Include <pupa/err.h>.
40372 (pupa_set_history): New prototype.
40373 (pupa_iterate_commands): New prototype.
40374 * normal/cmdline.c: Include <pupa/machine/partition.h>,
40375 <pupa/disk.h>, <pupa/file.h>.
40376 (hist_size): New variable.
40377 (hist_lines): Likewise.
40378 (hist_end): Likewise.
40379 (hist_used): Likewise.
40380 (pupa_set_history): New function.
40381 (pupa_history_get): Likewise.
40382 (pupa_history_add): Likewise.
40383 (pupa_history_replace): Likewise.
40384 (pupa_tab_complete): Likewise.
40385 (pupa_cmdline_run): Added tab completion and history buffer. Tab
40386 completion shows partitionnames while completing partitions, this
40387 feature was suggested by Jeff Bailey.
40388 * normal/command.c (pupa_iterate_commands): New function.
40389 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
40390 (pupa_normal_init): Initialize history buffer.
40391 (PUPA_MOD_INIT): Likewise.
40392 (pupa_normal_fini): Free the history buffer.
40393 (PUPA_MOD_FINI): Likewise.
40394
40395 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
40396 key.
40397
40398 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
40399 * configure.ac [i386]: Check for regparam bug.
40400 (NESTED_FUNC_ATTR) [! i386]: Defined.
40401
40402 2003-11-17 Marco Gerards <metgerards@student.han.nl>
40403
40404 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
40405 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
40406 (pupa_emu_SOURCES): New variable.
40407 (pupa_emu_LDFLAGS): Likewise.
40408 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
40409 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
40410 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
40411 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40412 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
40413 (pupa_jmp_buf): New typedef.
40414 (pupa_setjmp) [PUPA_UTIL]: New macro.
40415 (pupa_longjmp) [PUPA_UTIL]: Likewise.
40416 * include/pupa/term.h (struct pupa_term): New member `refresh'.
40417 (pupa_refresh): New prototype.
40418 * include/pupa/util/getroot.h: New file.
40419 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
40420 it.
40421 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
40422 (pupa_rescue_cmd_cat): Likewise.
40423 (pupa_rescue_cmd_ls): Likewise.
40424 (pupa_rescue_cmd_testload): Likewise.
40425 (pupa_rescue_cmd_lsmod): Likewise.
40426 * normal/cmdline.c (pupa_cmdline_get): Likewise.
40427 * normal/menu.c (run_menu): Likewise.
40428 * kern/term.c (pupa_cls): Likewise.
40429 (pupa_refresh): New function.
40430 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
40431 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
40432 * util/console.c: New file.
40433
40434 * util/i386/pc/getroot.c: New file.
40435 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
40436 (pupa_putchar): New function.
40437 (pupa_refresh): Likewise.
40438 (xgetcwd): Function moved to ...
40439 (strip_extra_slashes): Likewise.
40440 (get_prefix): Likewise.
40441 * util/i386/pc/getroot.c: ... here.
40442 (find_root_device): Function moved and renamed to...
40443 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
40444 Changed all callers.
40445 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
40446 and renamed to...
40447 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
40448 Changed all callers.
40449 * util/misc.c (pupa_memalign): New function.
40450 (pupa_mm_init_region): Likewise.
40451 (pupa_register_exported_symbols): Likewise.
40452 (pupa_putchar): Function removed.
40453 * util/pupa-emu.c: New file.
40454
40455 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
40456
40457 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
40458 (_multiboot_mod_SOURCES): New variable.
40459 (_multiboot_mod_CFLAGS): Likewise.
40460 * loader/i386/pc/multiboot.c: New file.
40461 * include/pupa/i386/pc/multiboot.h: Likewise.
40462 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
40463 (pupa_multiboot_real_boot): New function.
40464 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
40465 (pupa_multiboot_real_boot): New prototype.
40466 (pupa_rescue_cmd_multiboot): Likewise
40467 (pupa_rescue_cmd_module): Likewise.
40468
40469 * kern/loader.c (pupa_loader_set): Continue when
40470 pupa_loader_unload_func() fails.
40471 (pupa_loader_unset): New function.
40472 * include/pupa/loader.h (pupa_loader_unset): New prototype.
40473
40474 * kern/misc.c (pupa_stpcpy): New function.
40475 * include/pupa/misc.h (pupa_stpcpy): New prototype.
40476
40477 2003-11-12 Marco Gerards <metgerards@student.han.nl>
40478
40479 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
40480 for available extensions.
40481
40482 * include/pupa/i386/pc/time.h: New file.
40483 * kern/disk.c: Include <pupa/machine/time.h>.
40484 (PUPA_CACHE_TIMEOUT): New macro.
40485 (pupa_last_time): New variable.
40486 (pupa_disk_open): Flush the cache when there was a timeout.
40487 (pupa_disk_close): Reset the timer.
40488 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
40489 pupa_currticks.
40490 * util/misc.c: Include <sys/times.h>
40491 (pupa_get_rtc): New function.
40492
40493 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
40494
40495 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
40496 as blocks.
40497 (pupa_ext2_get_file_block): Use blocks member.
40498
40499 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
40500 first block. Return -1 instead of pupa_errno on error.
40501
40502 2003-10-27 Marco Gerards <metgerards@student.han.nl>
40503
40504 * README: In the pupa-mkimage example use _chain instead of chain
40505 and ext2 instead of fat.
40506 * TODO: Replace ext2fs with jfs as an example. Add an item for
40507 adding journal playback for ext2fs.
40508 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
40509 (pkgdata_MODULES): Added ext2.mod.
40510 (ext2_mod_SOURCES): New variable.
40511 (ext2_mod_CFLAGS): Likewise.
40512 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
40513 * include/pupa/misc.h (pupa_strncpy): New prototype.
40514 (pupa_strcat): Likewise.
40515 (pupa_strncmp): Likewise.
40516 * kern/misc.c (pupa_strcat): Enable function.
40517 (pupa_strncpy): New function.
40518 (pupa_strncmp): Likewise.
40519 * fs/ext2.c: New file.
40520
40521 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
40522 when the read failed before retrying.
40523 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
40524 (_FILE_OFFSET_BITS): Likewise.
40525 * configure.ac: Added AC_SYS_LARGEFILE.
40526
40527 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40528
40529 * genmk.rb (PModule#rule): Make sure to get only symbol names
40530 from the output of nm.
40531 Reported by Robert Millan <rmh.grub@aybabtu.com>.
40532
40533 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
40534
40535 I forgot to check in these changes for a long time. This adds
40536 incomplete support for VGA console, and this is still very
40537 buggy. Also, a lot of consideration is required for I18N,
40538 UNICODE, and VGA font issues. Therefore, assume that this is
40539 such that "better than nothing".
40540
40541 * font/manager.c: New file.
40542 * include/pupa/font.h: Likewise.
40543 * include/pupa/i386/pc/vga.h: Likewise.
40544 * term/i386/pc/vga.c: Likewise.
40545 * util/unifont2pff.rb: Likewise.
40546
40547 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
40548 (pkgdata_MODULES): Added vga.mod and font.mod.
40549 (vga_mod_SOURCES): New variables.
40550 (vga_mod_CFLAGS): Likewise.
40551 (font_mod_SOURCES): Likewise.
40552 (font_mod_CFLAGS): Likewise.
40553
40554 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
40555
40556 * include/pupa/term.h: Include pupa/err.h.
40557 (struct pupa_term): Added init and fini.
40558 Changed the argument of putchar to pupa_uint32_t.
40559
40560 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
40561 (pupa_console_real_putchar): New prototype.
40562 (pupa_console_putchar): Removed.
40563 (pupa_console_checkkey): Exported.
40564 (pupa_console_getkey): Likewise.
40565
40566 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
40567 characters.
40568
40569 * kern/term.c (pupa_term_set_current): Rewritten.
40570 (pupa_putchar): Likewise.
40571 (pupa_putcode): New function.
40572
40573 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
40574 (pupa_console_real_putchar): ... this.
40575 (pupa_vga_set_mode): New function.
40576 (pupa_vga_get_font): Likewise.
40577
40578 * normal/command.c: Include pupa/term.h.
40579 (terminal_command): New function.
40580 (pupa_command_init): Register the command "terminal".
40581
40582 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
40583 (DISP_UP): Likewise.
40584 (DISP_RIGHT): Likewise.
40585 (DISP_DOWN): Likewise.
40586 (DISP_HLINE): Likewise.
40587 (DISP_VLINE): Likewise.
40588 (DISP_UL): Likewise.
40589 (DISP_UR): Likewise.
40590 (DISP_LL): Likewise.
40591 (DISP_LR): Likewise.
40592
40593 * term/i386/pc/console.c (pupa_console_putchar): New function.
40594
40595 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
40596
40597 * util/resolve.c (pupa_util_resolve_dependencies): BUG
40598 FIX. Reverse the path_list.
40599
40600 * include/pupa/normal.h: Export pupa_register_command and
40601 pupa_unregister_command.
40602
40603 * hello/hello.c (pupa_cmd_hello): New module.
40604 * conf/i386-pc.rmk: Added hello.mod.
40605
40606 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
40607
40608 * kern/i386/pc/lzo1x.S: New file.
40609
40610 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
40611 (compress_kernel): New variable.
40612 (generate_image): Heavily modified to support compressing a
40613 large part of the core image.
40614
40615 * util/misc.c (pupa_util_read_image): Fix a file descriptor
40616 leak.
40617 (pupa_util_load_image): New function.
40618
40619 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
40620 (pupa_compressed_size): New variable.
40621 (codestart): Enable Gate A20 here.
40622 Decompress the compressed part of the core image.
40623 Rearrange the code to put functions and variables which are
40624 required for initialization in the non-compressed part.
40625 Include lzo1x.S.
40626
40627 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
40628 here.
40629
40630 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
40631
40632 * include/pupa/i386/pc/kernel.h
40633 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
40634 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
40635 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40636 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40637 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
40638
40639 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
40640
40641 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
40642 (Utility#rule): Likewise.
40643
40644 * configure.ac: Check if LZO is available.
40645
40646 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
40647
40648 * include/pupa/normal.h: New file.
40649 * include/pupa/setjmp.h: Likewise.
40650 * include/pupa/i386/setjmp.h: Likewise.
40651 * normal/cmdline.c: Likewise.
40652 * normal/command.c: Likewise.
40653 * normal/main.c: Likewise.
40654 * normal/menu.c: Likewise.
40655 * normal/i386/setjmp.S: Likewise.
40656
40657 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
40658 (pupa_rescue_cmd_initrd): Likewise.
40659
40660 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
40661 Likewise.
40662
40663 * kern/i386/pc/startup.S (translation_table): New variable.
40664 (translate_keycode): New function.
40665 (pupa_console_getkey): Call translate_keycode.
40666
40667 * kern/rescue.c (attempt_normal_mode): New function.
40668 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
40669 it failed, print a message.
40670
40671 * kern/mm.c (pupa_real_malloc): Print more information when a
40672 free magic is broken.
40673 (pupa_free): If the first free header is not free actually, set
40674 it to P.
40675
40676 * kern/main.c (pupa_load_normal_mode): Just load the module
40677 "normal".
40678 (pupa_main): Don't print the message
40679 "Entering into rescue mode..." here.
40680
40681 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
40682 Declared.
40683 (pupa_rescue_cmd_initrd): Likewise.
40684 (pupa_rescue_cmd_initrd): Likewise.
40685
40686 * include/pupa/symbol.h (FUNCTION): Specify the type.
40687 (VARIABLE): Likewise.
40688
40689 * include/pupa/err.h (pupa_err_t): Added
40690 PUPA_ERR_UNKNOWN_COMMAND.
40691
40692 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
40693 (pupa_dl_get_prefix): Likewise.
40694
40695 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
40696 Added _chain.mod and _linux.mod instead of chain.mod and
40697 linux.mod.
40698 (chain_mod_SOURCES): Renamed to ...
40699 (_chain_mod_SOURCES): ... this.
40700 (chain_mod_CFLAGS): Renamed to ...
40701 (_chain_mod_CFLAGS): ... this.
40702 (linux_mod_SOURCES): Renamed to ...
40703 (_linux_mod_SOURCES): ... this.
40704 (linux_mod_CFLAGS): Renamed to ...
40705 (_linux_mod_CFLAGS): ... this.
40706 (normal_mod_SOURCES): New variable.
40707 (normal_mod_CFLAGS): Likewise.
40708 (normal_mod_ASFLAGS): Likewise.
40709
40710 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
40711
40712 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
40713 possible.
40714
40715 * kern/dl.c (pupa_dl_ref): Refer depending modules
40716 recursively.
40717 (pupa_dl_unref): Unrefer depending modules recursively.
40718 Don't call pupa_dl_unload implicitly, because PUPA can crash if
40719 a module is unloaded before one depending on that module is
40720 unloaded.
40721 (pupa_dl_unload): Unload depending modules explicitly,
40722 if possible.
40723
40724 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
40725
40726 * include/pupa/i386/pc/linux.h: New file.
40727 * loader/i386/pc/linux.c: Likewise.
40728
40729 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
40730 Removed.
40731 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
40732 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
40733 of PUPA_CHAINLOADER_BOOT_SECTOR.
40734
40735 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
40736 (pupa_linux_prot_size): New variable.
40737 (pupa_linux_tmp_addr): Likewise.
40738 (pupa_linux_real_addr): Likewise.
40739 (pupa_linux_boot_zimage): New function.
40740 (pupa_linux_boot_bzimage): Likewise.
40741
40742 * kern/i386/pc/init.c (struct mem_region): New structure.
40743 (MAX_REGIONS): New macro.
40744 (mem_regions): New variable.
40745 (num_regions): Likewise.
40746 (pupa_os_area_addr): Likewise.
40747 (pupa_os_area_size): Likewise.
40748 (pupa_lower_mem): Likewise.
40749 (pupa_upper_mem): Likewise.
40750 (add_mem_region): New function.
40751 (compact_mem_regions): Likewise.
40752 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
40753 the size of the conventional memory and that of so-called upper
40754 memory (before the first memory hole).
40755 Instead of adding each found region to free memory, use
40756 add_mem_region and add them after removing overlaps.
40757 Also, add only 1/4 of the upper memory to free memory. The rest
40758 is used for loading OS images. Maybe this is ad hoc, but this
40759 makes it much easier to relocate OS images when booting.
40760
40761 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
40762 (pupa_enter_rescue_mode): Don't register initrd and module.
40763
40764 * kern/mm.c: Include pupa/dl.h.
40765
40766 * kern/main.c: Include pupa/file.h and pupa/device.h.
40767
40768 * kern/loader.c (pupa_loader_load_module_func): Removed.
40769 (pupa_loader_load_module): Likewise.
40770
40771 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
40772 ``.o''.
40773
40774 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
40775 (pupa_linux_tmp_addr): Likewise.
40776 (pupa_linux_real_addr): Likewise.
40777 (pupa_linux_boot_zimage): Likewise.
40778 (pupa_linux_boot_bzimage): Likewise.
40779
40780 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
40781 (pupa_upper_mem): Likewise.
40782 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
40783 module is too dangerous.
40784
40785 * include/pupa/loader.h (pupa_os_area_addr): Declared.
40786 (pupa_os_area_size): Likewise.
40787 (pupa_loader_set): Remove the first argument. Loader doesn't
40788 manage modules or initrd any longer.
40789 (pupa_loader_load_module): Removed.
40790
40791 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
40792 (linux_mod_SOURCES): New variable.
40793 (linux_mod_CFLAGS): Likewise.
40794
40795 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
40796
40797 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
40798 the length of a blocklist correctly.
40799
40800 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
40801 Use ioctl only if the OS file is a block device.
40802 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
40803 not very useful for normal files.
40804
40805 * kern/main.c (pupa_set_root_dev): New function.
40806 (pupa_load_normal_mode): Likewise.
40807 (pupa_main): Call those above.
40808
40809 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
40810 pupa_uint16_t.
40811
40812 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
40813
40814 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
40815
40816 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
40817 (setup): Configure the installed partition information and the
40818 dl prefix.
40819
40820 * loader/i386/pc/chainloader.c (my_mod): New variable.
40821 (pupa_chainloader_unload): New function.
40822 (pupa_rescue_cmd_chainloader): Refer itself.
40823 (PUPA_MOD_INIT): Save its own module in MY_MOD.
40824
40825 * kern/i386/pc/startup.S (install_partition): Removed.
40826 (version_string): Likewise.
40827 (config_file): Likewise.
40828 (pupa_install_dos_part): New variable.
40829 (pupa_install_bsd_part): Likewise.
40830 (pupa_prefix): Likewise.
40831 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
40832
40833 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
40834 and pupa/misc.h.
40835 (make_install_device): New function.
40836 (pupa_machine_init): Set the dl prefix.
40837
40838 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
40839 (buf): Renamed to ...
40840 (linebuf): ... this.
40841 (pupa_rescue_cmd_prefix): New function.
40842 (pupa_rescue_cmd_insmod): Likewise.
40843 (pupa_rescue_cmd_rmmod): Likewise.
40844 (pupa_rescue_cmd_lsmod): Likewise.
40845 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
40846 rmmod and lsmod.
40847
40848 * kern/mm.c (pupa_memalign): If failed even after invalidating
40849 disk caches, unload unneeded modules and retry.
40850
40851 * kern/misc.c (pupa_memmove): New function.
40852 (pupa_memcpy): Removed.
40853 (pupa_strcpy): New function.
40854 (pupa_itoa): Made static.
40855
40856 * kern/dl.c (pupa_dl_iterate): New function.
40857 (pupa_dl_ref): Likewise.
40858 (pupa_dl_unref): Likewise.
40859 (pupa_dl_unload): Return if succeeded or not.
40860 (pupa_dl_unload_unneeded): New function.
40861 (pupa_dl_unload_all): Likewise.
40862 (pupa_dl_init): Renamed to ...
40863 (pupa_dl_set_prefix): ... this.
40864 (pupa_dl_get_prefix): New function.
40865
40866 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
40867 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
40868 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
40869 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
40870 (pupa_install_dos_part): Declared.
40871 (pupa_install_bsd_part): Likewise.
40872 (pupa_prefix): Likewise.
40873 (pupa_boot_drive): Likewise.
40874
40875 * include/pupa/types.h: Fix a typo.
40876
40877 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
40878 pupa_memmove.
40879 (pupa_memmove): Declared.
40880 (pupa_strcpy): Likewise.
40881
40882 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
40883 pupa_mod_init takes one argument, its own module.
40884 (pupa_dl_unload_unneeded): Declared.
40885 (pupa_dl_unload_all): Likewise.
40886 (pupa_dl_ref): Likewise.
40887 (pupa_dl_unref): Likewise.
40888 (pupa_dl_iterate): Likewise.
40889 (pupa_dl_init): Renamed to ...
40890 (pupa_dl_set_prefix): ... this.
40891 (pupa_dl_get_prefix): Declared.
40892
40893 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
40894 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
40895 unloaded.
40896 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
40897 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
40898
40899 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
40900 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
40901
40902 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40903
40904 * util/i386/pc/pupa-setup.c (setup): Define the internal
40905 function find_first_partition_start at the top level, because GCC
40906 3.0.x cannot compile internal functions in deeper scopes
40907 correctly.
40908 (find_root_device): Use lstat instead of stat.
40909 Don't follow symbolic links.
40910 Fix the path-constructing code.
40911
40912 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
40913 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
40914 by a BLKGETSIZE ioctl first, because block devices don't fill
40915 the member st_mode of the structure stat on Linux.
40916 [__linux__] (linux_find_partition): Use a temporary buffer
40917 REAL_DEV for the working space. Copy it to DEV before returning.
40918 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
40919 buffer cache consistent.
40920 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
40921 strncmp. The previous value was merely wrong.
40922 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
40923
40924 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
40925 FAT size is 12. The previous value was merely wrong.
40926
40927 * kern/main.c (pupa_main): Don't split the starting message from
40928 newlines.
40929
40930 * kern/term.c (pupa_putchar): Put CR after LF instead of before
40931 LF, because BIOS goes crazy about character attributes in this
40932 case.
40933
40934 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
40935
40936 * include/i386/pc/util/biosdisk.h: New file.
40937 * util/i386/pc/biosdisk.c: Likewise.
40938 * util/i386/pc/pupa-setup.c: Likewise.
40939
40940 * Makefile.in (INCLUDE_DISTFILES): Added
40941 include/pupa/i386/pc/util/biosdisk.h.
40942 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
40943 directory util/i386/pc.
40944 (install-local): Added a rule for sbin_UTILITIES.
40945 (uninstall): Likewise.
40946
40947 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
40948
40949 * util/misc.c (xrealloc): New function.
40950 (pupa_malloc): Likewise.
40951 (pupa_free): Likewise.
40952 (pupa_realloc): Likewise.
40953 (pupa_stop): Likewise.
40954 (pupa_putchar): Likewise.
40955
40956 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
40957
40958 * include/pupa/util/misc.h (xrealloc): Declared.
40959
40960 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
40961 macro.
40962 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
40963 (PUPA_BOOT_MACHINE_BPB_END): ... this.
40964
40965 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
40966 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40967
40968 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
40969 way should be implemented.
40970 [PUPA_UTIL] (pupa_fat_fini): Likewise.
40971
40972 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
40973 the size of NAME for safety.
40974 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
40975 0x88.
40976
40977 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
40978 (pupa_setup_SOURCES): Likewise.
40979
40980 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
40981
40982 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40983
40984 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
40985 bunch of pushl's from pusha, because this destroys the return
40986 value.
40987
40988 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
40989
40990 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
40991 This means that any missing prototypes could be fatal. Also, you
40992 must take care when writing assembly code. See the comments at
40993 the beginning of startup.S, for more details.
40994
40995 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
40996 compilation mechanism.
40997 (pupa_chainloader_real_boot): Likewise.
40998 (pupa_biosdisk_rw_int13_extensions): Likewise.
40999 (pupa_biosdisk_rw_standard): Likewise.
41000 (pupa_biosdisk_check_int13_extensions): Likewise.
41001 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
41002 (pupa_biosdisk_get_diskinfo_standard): Likewise.
41003 (pupa_get_memsize): Likewise.
41004 (pupa_get_mmap_entry): Likewise.
41005 (pupa_console_putchar): Likewise.
41006 (pupa_console_setcursor): Likewise.
41007 (pupa_getrtsecs): Use pushl instead of push.
41008
41009 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
41010 memory instead of the stack for a mmap entry, because some
41011 BIOSes may ignore the maximum size and overflow.
41012
41013 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
41014
41015 * genmk.rb (PModule#rule): Compile automatically generated
41016 sources with module-specific CFLAGS as well as other sources.
41017
41018 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
41019
41020 * configure.ac: Check ld.
41021 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
41022 respectively, before checking endianness and sizes.
41023
41024 * Makefile.in (LD): New variable.
41025
41026 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
41027
41028 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
41029
41030 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
41031
41032 * Changelog: New file.
41033