1 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
3 Output errors if theme loading failed.
5 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
6 grub_gfxterm_fullscreen on error paths to ...
7 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
10 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
12 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13 space for older compilers.
14 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
16 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
18 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
19 and report them as not RAID members since they are useless for GRUB.
20 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
22 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
24 Increase LVM implementation robustness in order not to crash on
25 configurations like pvmove. Previously code assumed that in some places
26 only lvs or only pvs are used whereas it seems that they are used
29 * grub-core/disk/lvm.c (read_node): New function.
30 (read_lv): Use read_node.
31 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
32 Match volumes only at the end when all lvs are found. Take both
33 pvs (first) and lvs (second) into account.
34 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
35 mirror_* into node_*. All users updated.
36 (grub_lvm_stripe): Merge this ...
37 (grub_lvm_mirror): ... and this ...
38 (grub_lvm_node): ... into this. All users updated.
40 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
42 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
43 of function to allow further scanning for LVMs.
45 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
47 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
48 on failed seek as it breaks open fd reusage.
50 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
52 * util/grub-install.in: Add a recommendation to use --recheck before
55 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
57 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
60 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
62 GRUB developper manual based on existing Internals section and
63 contributions by the various authors with active copyright assignment.
65 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
66 * docs/font_char_metrics.png: New file.
67 * docs/font_char_metrics.txt: Likewise.
68 * docs/grub-dev.texi: Likewise.
69 * docs/grub.texi (Internals): Move from here ...
70 * docs/grub-dev.texi: ... here.
72 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
74 Store the loopback device as data on loopback grub_disk structures,
75 rather than the file it points to. This fixes use of freed memory
76 if an existing loopback device is replaced.
78 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
79 disk->data, not dev->file.
80 (grub_loopback_read): Adjust file assignment to match.
81 Fixes Ubuntu bug #742967.
83 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
85 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
86 when replacing an existing device.
88 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
90 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
93 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
95 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
96 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
97 (grub_jfs_read_inode): Likewise.
98 (grub_jfs_opendir): Likewise. Remove now useless casts.
99 (grub_jfs_getent): Likewise.
100 Make ino a grub_uint32_t rather than int.
101 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
102 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
103 division and module with bit operations.
104 (grub_jfs_find_file): Make ino a grub_uint32_t.
105 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
107 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
109 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
110 warning. (This was in fact always initialised before use, but GCC
111 wasn't smart enough to prove that.)
112 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
114 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
116 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
118 (efi_wrap_1): Likewise.
119 (efi_wrap_2): Likewise.
120 (efi_wrap_3): Likewise.
121 (efi_wrap_4): Likewise.
122 (efi_wrap_5): Likewise.
123 (efi_wrap_6): Likewise.
124 (efi_wrap_10): Likewise.
125 Based on information by: Red Hat/Peter Jones.
127 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
129 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
130 set-but-not-used variable.
132 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
134 * docs/grub.texi (Simple configuration): Be more explicit about
135 GRUB_DEFAULT, and add an example.
136 Reported by: Leslie Rhorer.
138 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
140 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
143 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
145 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
146 * util/grub.d/20_linux_xen.in: Likewise.
148 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
150 * util/grub.d/10_linux.in: Try alternative config filenames where
151 we parse config file.
152 * util/grub.d/20_linux_xen.in: Likewise.
154 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
156 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
157 * util/grub.d/20_linux_xen.in: Likewise.
159 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
161 * grub-core/disk/raid.c (insert_array): Add few potentially
162 useful grub_util_info.
163 (grub_raid_register): Likewise.
165 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
167 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
168 Preserve partition number in mdadm code path.
170 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
172 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
173 few potentially useful grub_util_info.
175 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
177 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
179 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
181 * docs/grub.texi (default): Use @example rather than nested
182 itemized lists to avoid breaking gendocs.
184 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
186 * docs/grub.texi (Future): Update.
188 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
190 * docs/grub.texi (Environment): New chapter.
191 (Changes from GRUB Legacy): Link to "Environment block" section for
192 details of limitations.
193 (Simple configuration): Likewise. Link to documentation of gfxmode
194 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
196 (Shell-like scripting): Note that normal variables are stored in the
198 (gettext): Link to documentation of lang and locale_dir.
199 (list_env): New section.
200 (load_env): New section.
201 (save_env): New section.
203 (Reporting bugs): Fix typo.
205 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
207 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
210 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
212 * grub-core/term/at_keyboard.c (set_scancodes)
213 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
215 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
217 * docs/grub.texi (Menu-specific commands): Remove some semantics
218 that were true in GRUB Legacy but not in GRUB 2.
219 (submenu): New section.
220 (false): New section.
224 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
226 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
228 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
230 * docs/grub.texi (Simple configuration): Explain some of the
231 current limitations of grub-mkconfig.
232 Reported by: Leslie Rhorer.
234 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
236 Old macs search for boot.efi rather than for bootia32.efi.
238 * util/grub-install.in: Copy bootia32.efi to boot.efi.
239 * util/grub-mkrescue.in: Likewise.
240 Suggested by: Peter Jones.
242 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
244 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
246 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
248 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
249 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
250 (grub_lvm_mirror): New struct.
251 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
252 (grub_lvm_iterate): Iterate only visible volumes.
253 (grub_lvm_read): Factor out to ..
254 (read_lv): ... this. Support mirrors.
255 (grub_lvm_read): New wrapper function.
256 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
257 stripped or mirrored.
259 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
261 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
263 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
265 * docs/grub.texi (loopback): New section.
267 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
269 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
272 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
274 * docs/grub.texi (BIOS installation): New section, partly based on
275 previous text in other sections.
276 (Installing GRUB using grub-install): Replace BIOS discussion with a
280 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
282 * grub-core/kern/emu/hostdisk.c (find_partition_start)
283 [HAVE_DIOCGDINFO]: Add safety checks.
285 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
287 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
288 per default compiled in kernel and prior to 8.0 isn't shipped at all.
290 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
292 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
293 real_sb->size is zero (e.g. RAID-0), get the disk size from
294 real_sb->data_size instead.
295 Fixes Ubuntu bug #743136.
297 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
299 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
300 printf clauses for printing size and start.
302 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
304 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
305 Reported and tested by: Timothy Nikkel.
307 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
309 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
310 (dirty_region_add_real): ... this.
311 (dirty_region_add): Don't discard margin refresh when performing
314 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
316 * grub-core/lib/relocator.c (allocate_regstart)
317 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
318 terminals are capabple of malloc-free operation.
319 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
320 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
322 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
324 * util/grub-setup.c: Copy the partition table zone if floppy support
325 is disabled, even if no partition table is found.
327 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
328 during POST if an invalid partition table is contained in the PBR
329 of the active partition when GRUB is installed to a partition.
331 2011-03-28 Colin Watson <cjwatson@debian.org>
333 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
336 2011-03-28 Colin Watson <cjwatson@debian.org>
338 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
339 to be specific about what kind of RAID device we're scanning for.
341 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
343 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
346 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
348 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
350 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
352 Use libgeom on FreeBSD to detect partitions.
354 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
355 (grub-mkrelpath): Likewise.
356 (grub-script-check): Likewise.
357 (grub-editenv): Likewise.
358 (grub-mkpasswd-pbkdf2): Likewise.
359 (grub-fstest): Likewise.
360 (grub-mkfont): Likewise.
361 (grub-mkdevicemap): Likewise.
362 (grub-probe): Likewise.
363 (grub-setup): Likewise.
364 (grub-ofpathname): Likewise.
365 (grub-mklayout): Likewise.
366 (example_unit_test): Likewise.
367 (grub-menulst2cfg): Likewise.
368 * grub-core/Makefile.core.def (grub-emu): Likewise.
369 (grub-emu-lite): Likewise.
370 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
371 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
372 define HAVE_DIOCGDINFO.
373 (follow_geom_up) [FreeBSD]: New function.
374 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
375 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
376 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
377 unconditionally of HAVE_DIOCGDINFO.
379 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
381 Fix FreeBSD compilation problem.
383 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
384 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
386 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
388 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
389 Switch back to page zero before loading a kernel, since some kernel
391 Thanks to: Felix Kuehling.
393 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
395 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
396 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
397 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
399 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
401 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
402 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
404 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
406 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
407 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
410 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
412 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
413 for modules headers when counting the needed allocation size.
415 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
417 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
418 if no ASCII character is found to prevent crash.
420 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
422 * grub-core/video/bitmap.c (match_extension): Ignore case.
424 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
426 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
428 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
430 * grub-core/script/parser.y: Declare "time" as valid argument.
432 2011-03-23 Peter Jones <pjones@redhat.com>
434 Fix incorrect assert failure reporting.
436 * grub-core/tests/example_functional_test.c (example_test): Add
438 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
439 (failure_start): ...this. Check that malloc succeeded.
440 Don't call xvasprintf. Return failure struct.
441 (failure_append_vtext): New function.
442 (failure_append_text): Likewise.
443 (add_failure): Likewise.
444 (grub_test_assert_helper): Likewise.
445 * include/grub/test.h (grub_test_assert_helper): New declaration.
446 (grub_test_assert): Macro rewritten.
448 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
450 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
452 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
454 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
456 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
458 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
461 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
463 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
464 error and not grub_errno.
465 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
467 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
469 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
470 GRUB_USB_SPEED_NONE in case of failure and not the error code.
472 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
474 * grub-core/efiemu/i386/pc/cfgtables.c
475 (grub_machine_efiemu_init_tables): Make declaration a prototype.
476 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
477 (grub_xnu_unlock): Likewise.
478 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
480 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
482 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
483 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
484 * grub-core/commands/hashsum.c (aliases): Likewise.
485 * grub-core/commands/setpci.c (pci_registers): Likewise.
486 * grub-core/disk/usbms.c (attach_hook): Likewise.
487 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
488 (zio_checksum_table): Likewise.
489 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
490 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
491 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
492 * grub-core/lib/relocator.c (leftovers): Likewise.
493 (extra_blocks): Likewise.
494 * grub-core/loader/i386/bsd.c (relocator): Likewise.
495 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
496 (modules_last): Likewise.
497 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
499 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
500 (modules_last): Likewise.
501 * grub-core/normal/auth.c (users): Likewise.
502 * grub-core/normal/context.c (initial_menu): Likewise.
503 (current_menu): Likewise.
504 * grub-core/normal/crypto.c (crypto_specs): Likewise.
505 * grub-core/term/serial.c (grub_serial_ports): Likewise.
506 (grub_serial_terminfo_input_template): Likewise.
507 (grub_serial_terminfo_output_template): Likewise.
508 (grub_serial_terminfo_input): Likewise.
509 (grub_serial_terminfo_output): Likewise.
510 (registered): Likewise.
511 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
513 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
515 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
516 grub_video_mode_type_t.
517 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
518 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
519 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
521 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
523 * util/grub-install.in: Correct the x86-64 name as x86_64.
525 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
527 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
528 initial chunk read from the kernel always includes GRUB's multiboot
529 header, which is now outside the first sector.
531 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
533 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
534 cached mmap_size, so that this works correctly when called multiple
536 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
538 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
540 * docs/grub.texi (Simple configuration): Tidy up formatting.
542 2011-03-07 Szymon Janc <szymon@janc.net.pl>
544 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
545 Set-but-not-used variable removed.
547 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
549 Workaround yet another IEEE1275 bug.
551 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
552 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
553 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
554 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
556 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
557 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
559 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
561 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
564 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
566 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
567 empty, since in that case we can only generate either nothing or a
568 syntactically invalid configuration file.
569 Reported by: Michal Suchanek. Fixes Debian bug #612898.
571 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
573 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
574 (Making a GRUB bootable CD-ROM): Likewise.
575 (Invoking grub-mkrescue): New section.
576 Reported by: Yann Dirson. Fixes Debian bug #612585.
578 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
580 * util/grub-install.in: Remove unnecessary brackets from tr
582 * util/grub.d/10_hurd.in: Likewise.
583 * util/grub.d/10_kfreebsd.in: Likewise.
584 * util/grub.d/10_linux.in: Likewise.
585 * util/grub.d/20_linux_xen.in: Likewise.
586 Reported by: Jamie Heilman. Fixes Debian bug #612564.
588 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
590 * include/grub/file.h (not_easly_seekable): Rename to ...
591 (not_easily_seekable): ... this. Update all users.
593 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
595 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
598 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
600 * util/grub-mkimage.c (generate_image): Refuse to create the images
601 bigger than the actual flash (512K) in Loongson machines. 512K is also
602 the biggest chip supported by them.
604 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
606 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
608 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
610 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
613 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
615 * util/grub-install.in: Ignore install device on platforms
616 where it doesn't make sense. Always use UUIDs except on pc, efi and
618 Reported by: Daniel Kahn Gillmor.
620 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
622 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
624 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
626 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
627 (iterate_real): Don't rely on partition being non-NULL.
629 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
631 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
632 supported platforms. Put a compile time assert for this rather than
633 generate a warning with 32-bit shift.
635 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
637 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
638 logical expression more readable.
640 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
642 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
643 even if some elements have a name.
644 Reported by: Alexander GQ Gerasiov.
646 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
648 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
649 path unreadable if `grub-probe -t abstraction' fails, for example if
650 memberlist fails on an LVM volume group.
651 Reported by: Darius Jahandarie.
653 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
655 * docs/grub.texi (Simple configuration): Document
656 GRUB_PRELOAD_MODULES.
658 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
660 * .bzrignore: Remove nonexistent grub-pbkdf2.
662 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
664 * configure.ac: Bump version to 1.99~rc1.
666 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
668 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
671 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
673 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
676 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
678 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
680 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
682 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
685 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
687 Fix compilation on cygwin.
689 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
690 -R .drectve on cygwin.
691 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
692 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
693 (COND_CYGWIN): New condition.
694 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
695 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
696 not @TARGET_OBJ2ELF@.
697 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
698 type to determine whether aux is to be used.
700 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
702 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
703 realpath'ed device string.
704 Handle floppy (somewhat).
705 Issue error in unknown case rather than garbage.
706 Reported by: Axel Beckert.
708 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
710 * util/grub.d/00_header.in (load_video): Handle the case when no video
712 Thanks to: Axel Beckert.
714 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
716 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
717 variable. Fixes problem on big endian platforms.
719 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
721 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
722 It doesn't work well there.
724 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
726 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
728 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
729 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
732 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
734 Use alias->path rather than buggy "canon".
736 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
737 (ofdisk_hash_add): New argument curcan. All users updated.
739 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
741 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
743 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
745 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
746 loadmask before doing any calculations. Use correct type for offset.
747 (grub_linux_load64): Likewise.
749 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
751 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
753 (console_grub_equivalences_unshift): Likewise.
754 Reported by: Daniel Dehennin.
756 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
758 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
759 (set_env_limn_ro): Likewise.
760 (GRUB_MOD_INIT): Likewise.
761 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
762 ARRAY_SIZE while on it.
763 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
764 * grub-core/normal/context.c (grub_env_export): Move from here ...
765 * grub-core/kern/env.c (grub_env_export): ... here.
766 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
768 * grub-core/kern/main.c (grub_main): Export root and prefix.
769 * include/grub/env.h (grub_env_export): Export.
770 Reported by: Seth Goldberg.
772 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
774 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
775 Take into account space used by ELF sections and multiboot palette.
776 Reported by: Grégoire Sutre.
778 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
782 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
784 Pass more appropriate video id to Linux.
786 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
787 grub_video_get_driver_id and variable gfxpayloadforcelfb to
789 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
790 shift params->lfb_size.
791 * include/grub/i386/linux.h: Make an enume out of have_vga values.
793 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
795 * util/grub-menulst2cfg.c: Add missing include of misc.h.
797 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
799 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
800 separator and pass bootpath/devid even if only one of them is available.
801 Reported by: Seth Goldberg.
803 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
805 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
806 implementations bug on them.
808 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
810 (filter_memory_map): Likewise.
812 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
814 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
815 Reported by: nebuchadnezzar.
817 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
819 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
820 Reported by: nebuchadnezzar.
822 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
824 Submenu default support.
826 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
827 auto_boot. All users updated.
829 Handle chosen and default with submenus.
830 (grub_menu_execute_with_fallback): Declared static.
831 Don't notify failure if autobooted. Upper level does it.
832 (menuentry_eq): New function.
833 (get_entry_number): Use menuentry_eq.
834 (show_menu): New parameter "autobooted". All users updated.
835 (grub_show_menu): Likewise.
836 * include/grub/normal.h (grub_show_menu): Likewise.
837 * include/grub/menu.h (grub_menu_execute_entry): Removed.
838 (grub_menu_execute_with_fallback): Likewise.
840 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
842 * util/grub-mklayout.c (usage): Update help text.
844 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
846 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
848 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
850 * util/grub-menulst2cfg.c (main): Trim the line.
852 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
854 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
855 (grub_machine_init): Don't check amount of low memory as reportedly
856 INT 12h can be broken and if low memory is too low we wouldn't have
857 gotten into grub_machine_init anyway.
859 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
861 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
862 (grub_machine_mmap_iterate): Take low memory into account
864 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
866 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
870 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
872 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
875 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
877 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
878 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
880 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
882 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
883 openbsd and netbsd types being in part_bsd module.
885 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
887 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
888 (_FILE_OFFSET_BITS): Likewise.
889 Reported by: Seth Goldberg.
891 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
893 * configure.ac: Check for libdevmapper header.
895 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
897 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
899 (fzap_lookup): Likewise.
900 (dnode_get): Likewise.
901 (make_mdn): Likewise.
902 (zfs_mount): Likewise.
903 (fzap_iterate): Use temporary pointer to avoid aliasing.
904 (grub_zfs_read): Likewise.
905 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
906 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
907 pointers to avoid aliasing.
908 (grub_cmd_xnu_kernel64): Likewise.
909 (grub_xnu_load_driver): Likewise.
911 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
913 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
915 (grub_cmd_terminal_output): Likewise.
916 Reported and tested by: Grégoire Sutre.
918 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
920 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
922 Reported and tested by: Grégoire Sutre.
924 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
926 * configure.ac: Do CPU substitution even if it's specified explicitly.
927 Reported and tested by: Alain Greppin.
929 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
931 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
932 Reported and tested by: Alain Greppin.
934 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
936 Satisfy some bison versions need for inttypes.h.
938 * grub-core/lib/posix_wrap/inttypes.h: New file.
939 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
943 Reported and tested by: Alain Greppin.
945 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
947 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
948 Silence spurious warning.
949 Reported and tested by: Alain Greppin.
951 2011-01-07 Szymon Janc <szymon@janc.net.pl>
953 * docs/grub.texi (Support automatic decompression): Update with xz
954 decompression support.
956 2011-01-07 Szymon Janc <szymon@janc.net.pl>
958 Improve loaders' kernel command line handling.
960 * grub-core/lib/cmdline.c: New file.
961 * include/grub/lib/cmdline.h: Likewise.
962 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
963 grub_create_loader_cmdline to create kernel command line.
964 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
965 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
966 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
967 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
968 (linux): Add lib/cmdline.c on common.
970 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
972 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
973 inopos might be unaligned.
975 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
977 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
978 endian transformations.
979 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
980 Based on report by: Doug Nazar.
982 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
984 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
985 array->members[i].start_sector.
986 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
988 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
990 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
991 Reported and tested by: Grégoire Sutre.
993 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
995 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
996 avoid causing test failures by clearing the screen.
998 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
1000 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
1001 Fix prefix check to handle the case where dir ends with a slash
1002 (most significantly, "/" itself).
1003 Reported by: Michael Vogt.
1005 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1007 Run terminfo_cls on initing terminfo output to clear the screen and
1008 move the cursor to (0,0).
1010 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
1011 Call grub_terminfo_output_init.
1012 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
1013 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
1014 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
1016 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1018 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
1021 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1023 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
1026 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1028 The E820 type 5 is BADRAM, not EXEC_CODE.
1030 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
1031 (GRUB_E820_BADRAM): New define.
1032 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
1033 into reserved. Propagate BADRAM.
1034 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
1035 (GRUB_E820_BADRAM): New define.
1037 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1039 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
1040 Ignore the memory post-4G.
1041 (grub_relocator_firmware_alloc_region): Additional debug statement.
1043 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1045 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
1047 Reported by: David Pravec.
1049 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1051 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
1054 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1056 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
1058 (grub_reed_solomon_recover): Likewise.
1060 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1062 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
1064 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
1066 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
1069 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
1071 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
1072 descriptions of extract_legacy_entries_source and
1073 extract_legacy_entries_configfile.
1074 Reported by: Seung Soo, Ha.
1076 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
1078 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
1079 on devices that do not implement function 0.
1081 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
1083 * grub-core/fs/hfsplus.c: Make parent unsigned.
1084 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
1086 (grub_hfsplus_cmp_extkey): Likewise
1088 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1090 * util/grub-install.in: Correctly use bootloader_id and not
1091 GRUB_DISTRIBUTOR on efibootmgr line.
1093 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1095 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
1097 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
1099 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
1100 Xen and reorder menu item wording to make it clearer that this entry
1101 will launch Xen. Print separate messages when loading Xen and
1104 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
1106 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
1107 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
1108 loop in case of incorrect amiga partmap.
1110 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
1112 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
1113 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
1116 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
1118 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
1120 Reported by: crocket
1122 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
1124 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
1126 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
1128 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
1130 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
1132 (grub_cmd_xnu_kextdir): Likewise.
1133 (grub_cmd_xnu_splash): Likewise.
1135 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
1137 Avoid using Reed-Solomon with 0 redundancy.
1139 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
1140 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
1142 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
1143 (grub_reed_solomon_recover): Likewise.
1145 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
1147 Don't use disk subsystem in freebsd_boot.
1149 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
1150 (freebsd_biosdev): Likewise.
1151 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
1152 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
1154 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
1156 Handling of files of unknown size is currently limited. They can't be
1157 used e.g. for initrd or modules. Moreover gzip handling of not
1158 easily seekable files is buggy. Disable unknown file size for now. May
1159 be inefficient but works.
1161 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
1162 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1164 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
1166 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
1169 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
1171 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
1173 2010-12-25 Shea Levy <shlevy>
1175 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
1177 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
1179 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
1180 Windows Server 2008.
1181 Reported by: Devin Giddings.
1183 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
1185 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
1186 writing an error message because of async power management.
1187 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
1188 (grub_reboot): Likewise.
1190 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
1192 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
1193 keep unit tests from failing when they shouldn't.
1195 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1197 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
1198 previous patch increased the size of the RS code by 20 bytes (at
1199 least with gcc-4.4), so increase this by 20 bytes to match.
1200 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
1202 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1204 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
1205 scratch area. Make sure to initialise chosen in standalone mode as
1206 well as non-standalone.
1207 Reported by: Robert Hooker and Andy Whitcroft.
1208 Tested by: Andy Whitcroft.
1210 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1212 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
1213 constructing a new unescaped string and passing it to grub_xputs in
1214 one go, rather than passing characters to grub_printf one at a time.
1216 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1218 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
1221 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
1223 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
1224 comment. Add an extra layer of quotation, requiring the output of
1225 this function to be used in a printf format string.
1226 (gettext_printf): New function.
1227 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
1228 Extract translatable strings from here-documents and use a temporary
1229 variable instead, so that xgettext can find them.
1230 * util/grub.d/10_kfreebsd.in: Likewise.
1231 * util/grub.d/10_linux.in: Likewise.
1232 * util/grub.d/20_linux_xen.in: Likewise.
1234 * po/grub.d.sed: New file.
1235 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
1236 arguments. Set c-format flags on all strings extracted from
1237 util/grub.d/ (xgettext refuses to include these itself for strings
1238 it extracted from a shell file, but these really are c-format).
1240 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
1242 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
1243 Avoid next pointing to nowhere.
1245 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
1247 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
1248 rather than assuming than rootblock is exactly in the middle.
1249 (grub_affs_label): Likewise.
1251 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
1253 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
1254 reserved_first_sector to 0.
1255 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
1256 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
1257 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
1259 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
1261 Fix handling of UTF-16 UDF labels.
1263 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
1264 (read_string): .. here.
1265 (grub_udf_label): Use read_string.
1267 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
1269 * grub-core/normal/menu_entry.c (run): Execute commands from menu
1270 editor under argument scope.
1271 Reported by: Jordan Uggla
1273 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1275 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
1277 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
1279 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
1280 line, and other keys scroll an entire page (previous handling was
1281 for \r and \n to scroll a page and other keys to scroll two lines).
1283 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
1285 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
1286 Set ptrdest to correct get_physical_target_address rather than
1287 incorrect get_virtual_current_address.
1289 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
1291 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
1292 correct cat to grub_uint8_t * rather than grub_uint32_t *.
1294 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
1296 * .bzrignore: Ignore grub-core/rs_decoder.S.
1298 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
1300 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
1301 .mo/.mo.gz opening sequence to ...
1302 (grub_mofile_open_lang): ... here.
1303 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
1304 * util/grub.d/00_header.in (grub_lang): Include country part of
1306 Reported by: Mario Limonciello.
1308 2010-12-09 Robert Millan <rmh@gnu.org>
1310 * NEWS: Document addition of ZFS support.
1312 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
1314 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
1315 rather than `/ 2', as the latter requires -Wa,--divide which would
1316 require bumping our minimum binutils version.
1318 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
1320 * util/grub-script-check.c (main): Print script line number on
1323 2010-12-01 Robert Millan <rmh@gnu.org>
1325 * grub-core/fs/zfs/zfs.c: New file.
1326 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
1327 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
1328 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
1329 * grub-core/fs/zfs/zfsinfo.c: Likewise.
1331 * include/grub/zfs/dmu.h: Likewise.
1332 * include/grub/zfs/dmu_objset.h: Likewise.
1333 * include/grub/zfs/dnode.h: Likewise.
1334 * include/grub/zfs/dsl_dataset.h: Likewise.
1335 * include/grub/zfs/dsl_dir.h: Likewise.
1336 * include/grub/zfs/sa_impl.h: Likewise.
1337 * include/grub/zfs/spa.h: Likewise.
1338 * include/grub/zfs/uberblock_impl.h: Likewise.
1339 * include/grub/zfs/vdev_impl.h: Likewise.
1340 * include/grub/zfs/zap_impl.h: Likewise.
1341 * include/grub/zfs/zap_leaf.h: Likewise.
1342 * include/grub/zfs/zfs.h: Likewise.
1343 * include/grub/zfs/zfs_acl.h: Likewise.
1344 * include/grub/zfs/zfs_znode.h: Likewise.
1345 * include/grub/zfs/zil.h: Likewise.
1346 * include/grub/zfs/zio.h: Likewise.
1347 * include/grub/zfs/zio_checksum.h: Likewise.
1349 * Makefile.util.def: Build ZFS into libgrubmods.
1350 * grub-core/Makefile.core.def: Build zfs.mod.
1352 2010-11-30 Szymon Janc <szymon@janc.net.pl>
1354 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
1356 * grub-core/commands/wildcard.c (match_files): Likewise.
1358 2010-11-30 Robert Millan <rmh@gnu.org>
1360 * grub-core/loader/i386/bsd.c
1361 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
1362 whether kernel is loaded using grub_loader_is_loaded(), rather
1363 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
1364 certain error conditions.
1366 2010-11-30 Robert Millan <rmh@gnu.org>
1368 * grub-core/commands/echo.c: Include `<grub/term.h>'.
1369 (grub_cmd_echo): Call grub_refresh() after printing a message.
1371 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1373 Avoid using tricks for initialising endian variables.
1375 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
1377 (GRUB_MOD_INIT): Don't byte-swap.
1378 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
1379 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
1380 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
1381 (grub_swap_bytes32_compile_time): Likewise.
1382 (grub_cpu_to_le32_compile_time): Likewise.
1383 (grub_cpu_to_le16_compile_time): Likewise.
1385 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
1387 * util/grub-setup.c (setup): Stop recommending --force. People who
1388 understand the dangers of blocklists are able to find this option
1389 anyway and the ones who don't shouldn't use it anyway.
1391 2010-11-26 Robert Millan <rmh@gnu.org>
1393 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
1396 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
1398 Fix LVM-on-RAID probing.
1400 * util/grub-probe.c (probe): Remember which disk was detected as
1401 RAID (perhaps an LVM physical volume). Use that disk's raidname
1402 rather than that of the top-level disk.
1404 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
1406 Fix cmdline argument quotes for setparams command of menuentry
1409 * grub-core/commands/menuentry.c (setparams_prefix): Use single
1410 quotes for arguments.
1411 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
1412 grub_strchrsub function instead.
1414 * include/grub/misc.h (grub_strchrsub): New function.
1416 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
1418 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
1419 effort by skipping "." and ".." entries up-front.
1420 Suggested by: Michael Lazarev.
1422 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
1424 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
1425 ldflags to ldadd, to fix link line ordering.
1426 (none_decompress): Likewise.
1428 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
1430 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
1432 (grub-emu-lite): Remove kern/emu/cache.S.
1434 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1436 * util/deviceiter.c (compare_devices): If the by-id link for a
1437 device couldn't be resolved, fall back to sorting by the by-id link
1438 rather than segfaulting.
1439 Reported and tested by: Daniel Mierswa.
1441 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1443 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
1444 ldflags, to fix link line ordering.
1446 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1448 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
1449 linkers are picky about this.
1451 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1453 * grub-core/Makefile.am (command.lst): Adjust sed expression
1454 ordering so that extended and priority commands aren't treated as
1457 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
1459 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
1460 Remove byte-swapping function calls, which are not valid in
1461 structure initialisers.
1462 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
1464 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
1465 grub_gpt_partition_type_bios_boot.
1467 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
1469 Fix test program build on GNU/kFreeBSD.
1471 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
1472 $(LIBNVPAIR)' library dependencies.
1474 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
1476 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
1478 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
1480 * util/grub-install.in: Remove excessive quoting that broke
1481 installations to RAID devices.
1483 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1485 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
1486 bootloader version instead of 0.
1488 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1490 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
1493 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
1495 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
1496 retrieve the metadat sector if size isn't known.
1497 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1499 2010-11-18 Robert Millan <rmh@gnu.org>
1501 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
1504 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
1506 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
1508 Reported by: Jordan Uggla.
1510 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1512 Make better UTF compliant.
1514 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
1515 sequences as incorrect.
1516 (grub_is_valid_utf8): Likewise.
1517 (grub_utf8_to_ucs4): Likewise.
1518 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
1519 (grub_ucs4_to_utf8_alloc): Likewise.
1520 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
1522 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
1524 Make legacy_source behave like source.
1526 * grub-core/commands/legacycfg.c (legacy_file): Don't call
1528 (grub_cmd_legacy_source): Call grub_show_menu if needed.
1530 2010-11-16 Colin Watson <cjwatson@debian.org>
1532 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
1533 (-Wunused implies -Wunused-parameter, but not vice versa).
1535 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
1537 * configure.ac: Make error messages less confusing by testing for
1538 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
1539 accepted, but produces a diagnostic if something else is wrong).
1541 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1543 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
1544 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
1546 (grub_keyboard_controller_init)
1547 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
1548 read the initial state since controller isn't inited yet.
1550 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
1552 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
1553 allocate_regbeg may need to create new chunk header.
1555 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1557 Fix quoting in legacy parser.
1559 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
1561 (grub_legacy_parse): Likewise.
1562 Reported by: Jordan Uggla.
1563 Tested by: Jordan Uggla.
1565 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1567 Don't add -lgcc on i386 and x86_64.
1569 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
1570 * conf/Makefile.common (LDADD_KERNEL): Likewise.
1571 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
1573 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1575 * configure.ac: Add -Wno-trampolines when supported.
1577 2010-11-14 Modestas Vainius <modax@debian.org>
1579 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
1582 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
1584 Add generic logical block size support for UDF.
1586 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
1587 (GRUB_UDF_BLKSZ): Removed.
1588 (struct grub_udf_data): New field "lbshift" to hold the logical block
1589 size of the file system in log2 format. All users updated.
1590 (sblocklist): Change type to unsigned.
1591 (grub_udf_mount): Change type of "sblklist" to unsigned.
1592 Move AVDP search before VRS recognition, because the latter requires
1593 knowledge of the logical block size, which is detected during the
1595 Detect and validate logical block size during AVDP search, adding
1596 support for block sizes 512, 1024 and 4096.
1597 Make VRS recognition independent of block size.
1599 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
1601 Properly handle deleted files on UDF.
1603 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
1604 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
1607 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
1609 Support reading files larger than 2 GiB.
1611 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
1612 "offset" to grub_off_t.
1613 (grub_udf_read_file): Likewise for parameter "pos".
1615 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1617 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
1619 (Simple configuration): Refer to Changes from GRUB Legacy about
1620 save_env availability.
1622 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1624 * util/grub-install.in: Ignore empty partition table detection
1625 instead of trying to include part_ module.
1627 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1629 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
1630 LVM on RAID support.
1632 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
1634 Properly define WORDS_BIGENDIAN in wrapped environments.
1636 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
1638 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
1640 Reported by: Manoel Rebelo Abranches.
1641 Tested by: Manoel Rebelo Abranches.
1643 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1645 * util/grub-mkconfig.in: Fix quoting.
1647 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1649 Support big ext2 files.
1651 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
1652 (grub_ext2_read_block): Support triple indirect blocks.
1653 (grub_ext2_read_file): Use 64-bit types and read size_high.
1654 (grub_ext2_open): Read size_high.
1655 Reported by: Ximin Luo.
1656 Tested by: Manoel Rebelo Abranches.
1658 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1660 * util/grub-install.in: Handle filenames containing spaces.
1661 Reported by: Jordan Uggla.
1662 Tested by: Jordan Uggla.
1664 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1666 * util/grub-mkconfig.in (grub_script_check): New variable.
1667 Use grub_script_check instead of grub-script-check.
1668 Reported by: Barry Jackson.
1670 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
1672 * docs/grub.texi (menu): Correct the order.
1673 Reported by: D. Hugh Redelmeier.
1675 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
1677 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
1680 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
1682 * include/grub/elfload.h (grub_elf32_size): New parameter.
1684 Return maximum segments alignment.
1685 (grub_elf64_size): Likewise.
1686 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
1687 Return maximum segments alignment.
1688 (grub_elf64_size): Likewise.
1689 * grub-core/loader/powerpc/ieee1275/linux.c:
1690 (grub_linux_claimmap_iterate): New function. Uses the
1691 "available" property in the "memory" node for memory allocation
1692 for kernel in the PowerPC loader.
1693 (grub_linux_load32): Correctly find linux entry point offset.
1694 (grub_linux_load64): Likewise.
1696 2010-11-07 Robert Millan <rmh@gnu.org>
1698 On mips-yeeloong, build with -march=loongson2f when this flag is
1699 available (GCC >= 4.4).
1700 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
1702 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
1703 or otherwise add -march=mips3.
1705 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
1707 Suppress shell expansion on echo '*' and echo "*" like cases.
1708 Reported by: Jordan Uggla.
1710 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1711 string arguments before shell expansion.
1712 * tests/grub_cmd_echo.in: New testcases.
1714 2010-11-07 Robert Millan <rmh@gnu.org>
1716 * conf/mips-qemu-mips.rmk: Remove stale file from previous
1719 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
1721 * grub-core/kern/emu/hostdisk.c
1722 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
1724 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1726 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
1727 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
1728 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
1730 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1732 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
1734 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1736 * util/grub-install.in: Replace useless recomendation to pass
1737 --modules with a recomendation to report a bug.
1739 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
1741 Properly register serial terminfo.
1742 Reported by: Jordan Uggla
1744 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
1746 (grub_serial_terminfo_output_template): Likewise.
1747 (grub_cmd_serial): Register "serial" with terminfo.
1748 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
1749 grub_serial_terminfo_output.
1751 2010-11-05 Robert Millan <rmh@gnu.org>
1753 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
1756 2010-11-05 Robert Millan <rmh@gnu.org>
1758 On Yeeloong, pass machine type information to Linux.
1760 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
1761 (LOONGSON_MACHTYPE): New macro, set to
1762 "machtype=lemote-yeeloong-2f-8.9inches".
1763 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
1764 additional argument to Linux.
1766 2010-11-04 Robert Millan <rmh@gnu.org>
1768 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
1769 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
1770 (its SATA disks are detected as slaveless IDE master drives on
1772 Reported by Carsten Aulbert.
1774 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
1776 * util/bin2h.c (main): Fix spelling error in generated output.
1778 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
1780 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
1782 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1784 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
1785 vga= option is supplied.
1787 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1789 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
1790 * util/grub.d/10_kfreebsd.in: Likewise.
1791 * util/grub.d/10_linux.in: Likewise.
1792 * util/grub.d/20_linux_xen.in: Likewise.
1794 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1796 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
1797 argument as an argument to no-argument option.
1799 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1801 * util/grub.d/10_linux.in: Add missing load_video with explicit
1802 GRUB_GFXPAYLOAD_LINUX.
1804 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1806 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
1808 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1810 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
1811 elements with invlid index.
1812 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
1813 * grub-core/disk/raid.c (insert_array): Automatically reallocate
1815 * include/grub/raid.h (grub_raid_member): New struct.
1816 (grub_raid_array): Transform devices and start_sector into usage of
1817 grub_raid_member. All users updated
1818 (allocated_devs): New member.
1820 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
1822 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
1825 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
1827 NetBSD build fix for getline function conflict from gnulib.
1829 * Makefile.util.def (libgrubkern.a): New library for grub kernel
1830 components that depend on gnulib headers.
1831 (libgrubmods.a): Renamed from earlier libgrub.a.
1832 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
1834 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1836 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
1837 install rather than creating a broken install.
1839 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1841 * util/grub-setup.c (argp): Remove misleading example of installing to
1844 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1846 * util/grub-setup.c (setup): Clarify the error message.
1848 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
1850 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
1852 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1854 * grub-core/kern/emu/misc.c
1855 (grub_make_system_path_relative_to_its_root)
1856 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
1858 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
1860 * grub-core/kern/emu/misc.c
1861 (grub_make_system_path_relative_to_its_root): Revert r2882.
1863 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
1865 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
1866 useless field head. All users updated.
1867 (free_subchunk): Correct handling of IN_REGION subchunk.
1869 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
1871 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
1872 (Supported kernels): Likewise.
1874 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
1876 Make mktemp invocations portable.
1878 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
1879 exit if mktemp fails.
1880 * tests/grub_script_blockarg.in: Likewise.
1881 * tests/partmap_test.in: Likewise.
1882 * tests/util/grub-shell-tester.in: Likewise.
1883 * tests/util/grub-shell.in: Likewise.
1884 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1885 * Makefile.am: Likewise, and chain shell commands with `&&'
1887 * util/grub-mkrescue.in: Use the same explicit template as above, and
1888 exit if mktemp fails.
1890 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
1892 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
1893 Linux kernel, reported by Dennis Schridde.
1895 2010-10-17 Szymon Janc <szymon@janc.net.pl>
1897 * grub-core/normal/auth.c (grub_auth_check_authentication):
1898 Set-but-not-used variable removed.
1900 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1902 * docs/grub.texi (GNU/Linux): Document APM unavailability with
1903 32-bit linux protocol.
1905 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1907 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
1908 cursor shape for sanity.
1910 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1912 * docs/grub.texi (Installation): Document buggy BIOS install.
1914 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1916 * docs/grub.texi (Installation): Indent.
1918 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1920 * util/grub-setup.c (setup): New parameter allow_floppy.
1921 (arguments): New member allow_floppy.
1922 (argp_parser): Handle --allow-floppy.
1923 (main): Pass allow_floppy.
1924 * util/grub-install.in: New option --allow-floppy passed though to
1927 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1929 * util/grub-install.in: Handle partitionless disks.
1931 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
1933 * util/grub-setup.c (setup): Don't clean blocklists before readability
1936 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1938 * docs/grub.texi (Installation): Document embedding zone. Remove
1939 obsolete grub-install example.
1941 2010-10-16 Szymon Janc <szymon@janc.net.pl>
1943 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
1944 Set-but-not-used variable ifdef'ed.
1945 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
1946 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
1948 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
1949 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
1950 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
1951 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
1952 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
1953 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
1954 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
1955 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
1956 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
1957 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
1958 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
1961 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1963 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
1964 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
1967 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1969 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
1970 synonym to _S5_. Needed for some DSDTs.
1972 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1974 Userspace ACPI parser debugging.
1976 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
1977 headers and add relevant defines. Don't include standard headers.
1978 (main) [GRUB_DSDT_TEST]: New function.
1979 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
1980 Don't declare functions.
1982 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1984 Remove dead grub_efi_mm_fini.
1986 * grub-core/kern/efi/mm.c (allocated_page): Removed.
1987 (ALLOCATED_PAGES_SIZE): Likewise.
1988 (MAX_ALLOCATED_PAGES): Likewise.
1989 (allocated_pages): Likewise.
1990 (grub_efi_allocate_pages): Don't record allocated pages.
1991 (grub_efi_free_pages): Likewise.
1992 (grub_efi_mm_init): Likewise.
1993 (grub_efi_mm_fini): Removed.
1995 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
1997 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
1998 (grub_efi_mm_init): Take into account the memory map size increase.
2000 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
2002 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
2003 (serial_hw_put): Wait based on real time rather than port reads. Don't
2005 * include/grub/serial.h (grub_serial_port): New field broken.
2007 2010-10-16 Robert Millan <rmh@gnu.org>
2009 * grub-core/kern/emu/misc.c
2010 (grub_make_system_path_relative_to_its_root): Fix premature return
2011 when processing non-root ZFS filesystems.
2012 Reported by Sergio Talens-Oliag.
2014 2010-10-15 Robert Millan <rmh@gnu.org>
2016 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
2017 guarantee compressed ones are processed first.
2019 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2021 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
2022 grub_efiemu_autocore.
2024 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
2026 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
2028 (grub_console_getkey): Use correct jae opcode rather than ja.
2030 2010-10-12 Robert Millan <rmh@gnu.org>
2032 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
2033 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
2034 variable. All references updated.
2036 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
2038 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
2040 Correctly distinguish mdraid flavours.
2042 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
2043 (insert_array): New argument raid.
2044 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
2045 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
2046 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
2048 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
2050 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
2051 handling of special keys.
2053 2010-10-02 Aleš Nesrsta <starous@volny.cz>
2055 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
2056 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
2058 2010-10-02 Aleš Nesrsta <starous@volny.cz>
2060 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
2061 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
2063 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
2064 Use right endpoint when querying descriptor.
2066 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
2068 Clear out 0x80 color bit on EFI.
2070 Reported by: decoder and meta tech.
2072 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
2073 (grub_console_setcolorstate): Clear out 0x80 bit.
2074 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
2075 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
2076 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
2078 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
2080 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
2083 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2085 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
2086 mo_file after freeing.
2088 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2090 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
2092 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2094 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
2097 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2099 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
2102 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
2104 Put terminfo into core on ieee1275 and yeeloong (needed for console).
2106 * gentpl.py: New groups terminfoinkernel and terminfomodule.
2107 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
2108 and terminfo.h when needed.
2109 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
2110 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
2111 (terminfo): Enable only on terminfokernel.
2113 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
2114 * include/grub/lib/arg.h: Likewise.
2115 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
2116 incorrect usage of ->.
2118 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2120 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
2121 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
2123 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2125 Fix coreboot compilation.
2127 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
2128 Take VBE info into account even if only text is supported.
2129 (fill_vbe_info): Take into account the case when only VGA text
2131 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
2132 on coreboot, multiboot and qemu.
2134 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2136 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
2138 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
2140 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2142 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
2145 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2147 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
2148 if they were BSD-style.
2150 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2152 * grub-core/boot/i386/pc/lnxboot.S: Replace
2153 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
2154 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
2156 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
2158 Write embedding zone using Reed-Solomon.
2160 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
2161 * grub-core/Makefile.am (rs_decoder.S): New target.
2162 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
2163 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
2164 (multiboot): Move to RS part.
2165 (post_reed_solomon): New label.
2166 (grub_boot_drive): Move to non-RS part since it's modified in memory
2168 Include rs_decoder.S.
2169 * grub-core/lib/reed_solomon.c: New file.
2170 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
2172 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
2173 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
2174 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
2175 * include/grub/partition.h (grub_partition_map): Change prototype of
2176 embed to allow returning additional sectors.
2177 * include/grub/reed_solomon.h: New file.
2178 * util/grub-setup.c (setup): Handle Reed-Solomon.
2180 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
2182 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
2183 i386 and x86-64 definedness tests.
2185 2010-09-27 Yves Blusseau <blusseau@zetam.org>
2187 Fix generation of kernel_syms.lst
2189 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
2192 2010-09-26 Robert Millan <rmh@gnu.org>
2194 Support degraded ZFS arrays in "grub-probe -t device" resolution.
2196 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
2197 the pool is an array of devices, iterate through it and return the
2198 first device that passes a stat() test (instead of blindly returning
2201 2010-09-26 Robert Millan <rmh@gnu.org>
2203 Build fixes for GNU/kFreeBSD.
2205 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
2206 to programs that require ZFS conversion.
2207 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
2208 kernels that don't have FLOPPY_MAJOR.
2210 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
2212 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
2214 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
2218 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
2219 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
2220 mdraid09 and mdraid1x.
2222 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
2224 Re-enable grub-extras.
2226 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
2227 avoid confusing Automake. Run autogen only twice, once for the top
2228 level and once for grub-core. Add Makefile.util.def and
2229 Makefile.core.def from extra modules to the appropriate autogen
2230 invocations. If Makefile.common exists in an extra module, include
2231 it in both Makefile.util.am and grub-core/Makefile.core.am;
2232 similarly, include any Makefile.util.common file in Makefile.util.am
2233 and any Makefile.core.common file in grub-core/Makefile.core.am.
2234 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
2235 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
2236 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
2237 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
2239 * gentpl.py (gvar_add): Turn GVARS into a set.
2240 (global_variable_initializers): Sort global variables on output.
2241 (vars_init): New function.
2242 (first_time): Likewise.
2243 (library): Ensure that non-global variable initialisations are
2244 emitted before the first time we emit code for a library block.
2245 Append to variables rather than setting them. Only emit
2246 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
2247 each conditional path.
2248 (program): installdir() emits an Autogen macro, so must be passed to
2249 var_add rather than gvar_add.
2252 (rules): New function, centralising handling for different target
2253 types. Set up Guile association lists for first_time and vars_init,
2254 and send most output to a diversion so that variable initialisations
2255 can be emitted first.
2256 (module_rules): Use new rules function.
2257 (kernel_rules): Likewise.
2258 (image_rules): Likewise.
2259 (library_rules): Likewise.
2260 (program_rules): Likewise.
2261 (script_rules): Likewise.
2262 (data_rules): Likewise.
2264 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
2266 * .bzrignore: Add contrib and grub-core/contrib. Remove
2267 grub-core/Makefile.gcry.am.
2269 2010-09-24 Yves Blusseau <blusseau@zetam.org>
2271 * grub-core/lib/LzFind.c: Add missing include.
2272 * grub-core/lib/LzmaEnc.c: Likewise.
2273 * grub-core/script/lexer.c: Likewise.
2274 * grub-core/script/yylex.l: Likewise.
2275 * util/grub-macho2img.c: Likewise.
2276 * util/grub-menulst2cfg.c: Likewise.
2277 * util/grub-mklayout.c: Likewise.
2278 * util/grub-mkpasswd-pbkdf2.c
2279 * util/grub-mkrelpath.c: Likewise.
2280 * util/resolve.c: Likewise.
2282 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
2284 * Makefile.util.def (example_unit_test): Add
2285 grub-core/gnulib/libgnu.a.
2287 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
2289 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
2291 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
2293 Support xz compression on yeeloong.
2295 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
2296 * configure.ac: Check for LZMA.
2297 * grub-core/Makefile.core.def (xz_decompress): New target.
2298 (none_decompress): Likewise.
2299 * grub-core/boot/decompressor/minilib.c: New file.
2300 * grub-core/boot/decompressor/none.c: Likewise.
2301 * grub-core/boot/decompressor/xz.c: Likewise.
2302 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
2303 * grub-core/kern/mips/cache_flush.S: Likewise.
2304 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
2305 * grub-core/kern/mips/startup.S: Move first stage to ...
2306 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
2308 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
2309 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
2310 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
2311 Allocate statically.
2312 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
2313 Allocate statically or use scratch. Don't check CRC32.
2314 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
2315 Allocate statically. Don't check CRC32.
2316 * include/grub/decompressor.h: New file.
2317 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
2319 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
2320 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
2321 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
2322 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
2323 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
2324 * util/grub-mkimage.c (grub_compression_t): New type.
2325 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
2326 (image_target_desc): New field default_compression.
2327 (image_targets): Adjust yeeloong targets.
2328 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
2329 (compress_kernel): New parameter comp.
2330 (generate_image): Likewise. Handle new compression case.
2331 (options): New option --compression
2333 (main): Handle new option.
2335 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
2337 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
2339 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
2341 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
2342 typo in __i386__ conditional.
2344 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2346 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
2349 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
2351 Implement EFI and ACPI multiboot2 extensions.
2353 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
2354 new tags as supported.
2355 (acpiv2_size): New function.
2356 (grub_multiboot_get_mbi_size): Take new tags into account.
2357 (grub_multiboot_make_mbi): Add new tags.
2358 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
2360 2010-09-21 Aleš Nesrsta <starous@volny.cz>
2362 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
2363 Added missing configuration of USB device.
2365 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2367 * grub-core/normal/menu_entry.c (run): Make sure we always return
2370 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2372 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
2373 NumberOfPages is UINT64 according to the UEFI specification, not
2374 UINTN. Fix printf format.
2376 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2378 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
2379 `err' to grub_usb_err_t.
2380 Reported and tested by: KESHAV P.R.
2382 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2384 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
2385 tpart non-const, so that we can assign to it. (Since this is a
2386 typedef, the constness refers to the pointer rather than what it
2389 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2391 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
2392 $(top_srcdir)/grub-core/gnulib as well as
2393 $(top_builddir)/grub-core/gnulib.
2394 Reported by: KESHAV P.R.
2396 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2398 * util/grub-install.in: Fix the bootloader ID option to be
2399 consistently --bootloader-id, not --bootloader_id.
2400 Reported by: KESHAV P.R.
2402 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2404 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
2405 check hash checksum." consistently translatable.
2407 2010-09-21 Yves Blusseau <blusseau@zetam.org>
2409 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
2412 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2414 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
2415 (GRUB_MOD_INIT): Register sha1sum command.
2416 (GRUB_MOD_FINI): Unregister sha1sum command.
2418 2010-09-21 Yves Blusseau <blusseau@zetam.org>
2420 Keep boot and grub directory names in sync with utils scripts
2422 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
2423 * config.h.in: Add previous macros.
2424 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
2425 * util/grub-install.in: Use $bootdir and $grubdir variables.
2427 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2429 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
2430 convert partition names to disk names if the new `convert' parameter
2432 (grub_util_biosdisk_get_grub_dev): If opening the disk device
2433 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
2434 disk in its own right. This can happen with Xen disk images.
2436 2010-09-21 Yves Blusseau <blusseau@zetam.org>
2438 * util/grub-editenv.c: Update strings to avoid warnings when generating
2440 * util/grub-setup.c: Likewise.
2442 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
2444 * configure.ac: Change version to 1.99~beta0.
2446 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
2448 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
2450 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
2452 * include/multiboot.h: Resynced with specification.
2453 * include/multiboot2.h: Likewise.
2455 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
2457 Fix po directory handling.
2459 * configure.ac: Create po/Makefile.in rather than po/Makefile.
2460 * grub-core/gnulib/Makefile.am: Import gettext module.
2461 * m4/gnulib-cache.m4: Likewise.
2462 * m4/gnulib-comp.m4: Likewise.
2463 * m4/gettext.m4: New file, from gnulib.
2464 * m4/glibc2.m4: Likewise.
2465 * m4/iconv.m4: Likewise.
2466 * m4/intdiv0.m4: Likewise.
2467 * m4/intl.m4: Likewise.
2468 * m4/intldir.m4: Likewise.
2469 * m4/intlmacosx.m4: Likewise.
2470 * m4/intmax.m4: Likewise.
2471 * m4/inttypes-pri.m4: Likewise.
2472 * m4/lcmessage.m4: Likewise.
2473 * m4/lib-ld.m4: Likewise.
2474 * m4/lib-link.m4: Likewise.
2475 * m4/lib-prefix.m4: Likewise.
2476 * m4/lock.m4: Likewise.
2477 * m4/nls.m4: Likewise.
2478 * m4/po.m4: Likewise.
2479 * m4/printf-posix.m4: Likewise.
2480 * m4/progtest.m4: Likewise.
2481 * m4/threadlib.m4: Likewise.
2482 * m4/uintmax_t.m4: Likewise.
2483 * m4/visibility.m4: Likewise.
2484 * po/Makefile.am: Remove.
2485 * po/Makefile.in.in: New file, from gettext.
2486 ($(DOMAIN).pot-update): Support POTFILES-shell.
2487 * po/Makevars: New file.
2488 * po/POTFILES-shell: Rename to ...
2489 * po/POTFILES-shell.in: ... this. Update.
2490 * po/POTFILES: Rename to ...
2491 * po/POTFILES.in: ... this. Update.
2492 * po/Rules-quot: New file, from gettext.
2493 * po/boldquot.sed: Likewise.
2494 * po/en@boldquot.header: Likewise.
2495 * po/en@quot.header: Likewise.
2496 * po/insert-header.sin: Likewise.
2497 * po/quot.sed: Likewise.
2498 * po/remove-potcdate.sin: Likewise.
2500 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2502 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
2504 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2506 * util/grub.d/20_linux_xen.in: Use submenus.
2508 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2512 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
2513 parameter submenu. All users updated.
2514 * grub-core/normal/main.c (free_menu): Rename to ...
2515 (grub_normal_free_menu): ... this. Made global.
2516 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
2518 * grub-core/normal/menu_entry.c (screen): New field submenu.
2519 (make_screen): Set submenu.
2520 (run): Open new context if requested.
2521 * include/grub/menu.h (grub_menu_entry): New field submenu.
2522 * include/grub/normal.h (grub_normal_free_menu): New proto.
2524 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2526 Menu entries extractor.
2528 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
2530 (GRUB_MOD_INIT): Register new variants.
2531 (GRUB_MOD_FINI): Unregister new variants.
2532 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
2533 into grub_cmd_legacy_source.
2534 (grub_cmd_legacy_source): Implement extractor variants.
2535 (GRUB_MOD_INIT): Register new variants.
2536 (GRUB_MOD_FINI): Unregister new variants.
2537 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
2539 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
2540 search as an extractor.
2541 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
2542 test as an extractor.
2543 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
2545 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
2546 (grub_env_new_context): New function.
2547 (grub_env_context_open): Likewise.
2548 (grub_env_extractor_open): Likewise.
2549 (grub_env_extractor_close): Likewise.
2550 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
2551 grub_extractor_level.
2552 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
2553 * include/grub/env.h (grub_env_extractor_open): New proto.
2554 (grub_env_extractor_close): Likewise.
2555 * include/grub/normal.h (grub_extractor_level): New external variable.
2557 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2559 Make cutmem accept a region specification.
2560 Suggested by: Samuel Thibault
2562 * grub-core/mmap/mmap.c (parsemem): New function.
2563 (grub_cmd_cutmem): Handle new arguments.
2565 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2569 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
2570 (GRUB_MOD_INIT): Register new command.
2571 (GRUB_MOD_FINI): Unregister new command.
2573 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2575 Support some annoying BSD and Minix subpartitions.
2577 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
2578 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
2579 Properly handle concatenation.
2580 * grub-core/kern/device.c (grub_device_iterate): Likewise.
2581 * grub-core/normal/completion.c (iterate_partition): Likewise.
2582 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
2583 contain partition. All users updated.
2584 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
2586 (grub_openbsdlabel_partition_map): Likewise.
2587 (bsdlabel_partition_map_iterate): Rename to ..
2588 (iterate_real): ... this. New arguments sector, freebsd and pmap.
2589 (bsdlabel_partition_map_iterate): New function.
2590 (netopenbsdlabel_partition_map_iterate): Likewise.
2591 (netbsdlabel_partition_map_iterate): Likewise.
2592 (openbsdlabel_partition_map_iterate): Likewise.
2593 (GRUB_MOD_INIT): Register new partmaps.
2594 (GRUB_MOD_FINI): Unregister new partmaps.
2595 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
2596 (grub_partition_msdos_iterate): ... this. All users updated.
2597 Don't support embedding other than in a minix partition.
2598 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
2600 * include/grub/partition.h (grub_partition): New field msdostype.
2601 * util/grub-install.in: Handle openbsd and netbsd types being in
2604 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2606 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
2608 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
2609 * grub-core/Makefile.core.def (mdraid): Renamed to ...
2610 (mdraid09): ... this.
2611 (mdraid1x): New module.
2612 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
2613 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
2615 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2617 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
2620 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2622 * grub-core/commands/efi/lsefimmap.c: Correct header.
2625 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2627 * util/grub-editenv.c (argp_parser): Don't pass translated strings
2628 as printf format strings; the translations might contain '%' which
2629 could cause a crash.
2631 * util/grub-fstest.c (argp_parser): Likewise.
2632 * util/grub-setup.c (argp_parser): Likewise.
2635 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2637 Use argp in grub-fstest.
2639 * util/grub-fstest.c: Don't include getopt.h.
2641 (root): New variable.
2642 (args_count): Likewise.
2644 (num_disks): Likewise.
2647 (debug_str): Likewise.
2649 (options): Transformed to argp.
2651 (main): Split argument parsing into ...
2652 (argp_parser): ... this. Changed to argp format.
2653 (argp): New variable.
2654 (main): Use argp_parse.
2656 2010-09-20 Tristan Gingold <gingold@free.fr>
2657 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
2658 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2660 * grub-core/commands/efi/lsefimmap.c: New file.
2661 * grub-core/Makefile.core.def (lsefimmap): New module.
2662 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
2664 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2666 Pause the execution (10s max) if any errors are displayed so the user
2667 has a chance to see them.
2669 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
2670 (grub_print_error): Increment grub_err_printed_errors.
2671 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
2672 execution if any errors were displayed.
2673 (show_menu): Remove old code for pause.
2674 * grub-core/normal/menu_entry.c (run): Likewise.
2675 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
2677 (grub_normal_get_char_counter): Likewise.
2678 * include/grub/err.h (grub_err_printed_errors): New external variable.
2679 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
2681 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2683 Support multiboot VBE info.
2685 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
2686 Take VBE info into account.
2687 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
2688 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
2689 Call fill_vbe_info when appropriate.
2690 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
2691 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
2693 (grub_multiboot_get_mbi_size): Take new tags into account.
2694 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
2695 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
2696 Call fill_vbe_tag when appropriate.
2697 (grub_multiboot_make_mbi): Properly align tags.
2698 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
2700 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
2702 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
2704 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2706 Suport manual terminal geometry specification.
2708 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
2709 Save state in grub_ofconsole_terminfo_output.
2710 (grub_ofconsole_term): Use grub_terminfo_getwh.
2711 (grub_ofconsole_getwh): Removed.
2712 * grub-core/term/serial.c (grub_serial_getwh): Removed.
2713 (grub_serial_term): Use grub_terminfo_getwh.
2714 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
2715 (options): New struct.
2716 (OPTION_*): New enum.
2717 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
2718 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
2720 (grub_terminfo_getwh): New proto.
2721 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
2723 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2725 Handle legacy "terminal" command.
2727 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
2729 (legacy_commands): Add terminal and title.
2730 (grub_legacy_parse): Handle terminal. Simplify title handling.
2732 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2734 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
2735 parameters overflow.
2737 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2739 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
2742 * docs/grub.texi (Shell-like scripting): Document `!'.
2743 (Network): Simplify using new i386-pc-pxe format. Mention
2748 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2750 * Makefile.am (SUBDIRS): Restore "."; it's important to force
2751 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
2754 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2756 * grub-core/commands/efi/lsefisystab.c: Correct header.
2757 * grub-core/commands/efi/lssal.c: Likewise.
2758 * grub-core/commands/testload.c: Likewise.
2760 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2762 * util/grub-mkrescue.in: Add explicit root argument to --set to
2763 prevent the UUID being interpreted as an argument to --set (matches
2764 previous change to prepare_grub_to_access_device).
2766 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
2768 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
2769 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
2770 the verbosity of later #ifs.
2771 (find_partition_start): Define this function on FreeBSD too.
2772 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
2774 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
2777 2010-09-20 Yves Blusseau <blusseau@zetam.org>
2779 * util/grub-editenv.c: Use argp instead of getopt.
2781 2010-09-20 Yves Blusseau <blusseau@zetam.org>
2783 * util/grub-setup.c: Use argp instead of getopt.
2785 2010-09-20 Yves Blusseau <blusseau@zetam.org>
2787 Use gnulib-tool to create gnulib source files.
2789 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
2790 grub-core/gnulib directories
2791 * .bzignore: Add **/.deps and autogenerated gnulib files
2792 * configure.ac: Assign auxiliary directory to build-aux, add invocation
2793 of gnulib macros, add grub-core/gnulib/Makefile
2794 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
2795 include m4 directory to aclocal.
2796 * Makefile.util.def: Remove direct compilation of gnulib source files
2797 and use the new grub-core/gnulib/libgnu.a.
2798 * build-aux/config.rpath: move config.rpath from top directory to
2800 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
2802 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
2803 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
2804 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
2806 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
2809 2010-09-20 Yves Blusseau <blusseau@zetam.org>
2811 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
2812 grub-core/genmod.sh and grub-core/gensyminfo.sh
2814 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
2816 Add a test for echo command options.
2818 * tests/grub_cmd_echo.in: New test.
2819 * Makefile.util.def: Rules for new test.
2821 2010-09-20 Szymon Janc <szymon@janc.net.pl>
2823 Remove crc.mod and move crc command to hashsum.mod.
2824 Remove lib/crc.c - users updated to use gcrypt implementation.
2826 * grub-core/commands/crc.c: Removed.
2827 * grub-core/Makefile.core.def (crc): Module removed.
2828 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
2829 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
2830 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
2831 * grub-core/lib/crc.c: Removed.
2832 * include/grub/lib/crc.h: Removed.
2833 * Makefile.util.def (crc): Remove lib/crc.c
2834 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
2835 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
2836 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
2837 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
2838 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
2839 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
2841 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
2843 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
2845 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2847 Split config.h for util and core.
2849 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
2852 (BSS_START_SYMBOL): Likewise.
2853 (END_SYMBOL): Likewise.
2854 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
2855 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
2856 * config.h.in: New file.
2857 * configure.ac: Use config-util.h as config define file.
2858 Rename MACHINE into GRUB_MACHINE. All users updated.
2859 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
2861 (NESTED_FUNC_ATTR): Likewise.
2862 Substitue new variables.
2863 (COND_HAVE_ASM_USCORE): New conditional.
2864 * grub-core/Makefile.am (ASM_PREFIX): New variable.
2865 (kernel_syms.lst): Use ASM_PREFIX.
2866 * grub-core/kern/emu/console.c: Include config-util.h.
2867 * grub-core/kern/emu/misc.c: Likewise.
2868 * grub-core/kern/emu/mm.c: Likewise.
2869 * include/grub/emu/misc.h: Likewise.
2870 * include/grub/libgcc.h: Likewise.
2872 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2874 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
2876 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
2877 Fix GRUB_TERM_KEY_* constants usage.
2878 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
2880 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2882 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
2884 * grub-core/bus/usb/uhci.c: Remove empty define.
2885 (grub_uhci_check_transfer): Add missing cast.
2886 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
2888 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
2890 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
2892 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2894 * grub-core/Makefile.core.def (legacycfg): Add
2895 lib/i386/pc/vesa_modes_table.c on emu.
2897 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
2899 Reduce number of temporary files generated by build system.
2901 * grub-core/gencmdlist.sh: Removed.
2902 * grub-core/genfslist.sh: Removed.
2903 * grub-core/genhandlerlist.sh: Removed.
2904 * grub-core/genmodsrc.sh: Removed.
2905 * grub-core/genpartmaplist.sh: Removed.
2906 * grub-core/genparttoollist.sh: Removed.
2907 * grub-core/gentermiinallist.sh: Removed.
2908 * grub-core/genvideolist.sh: Removed.
2910 * grub-core/genmod.sh.in: New file.
2911 * grub-core/gensyminfo.sh.in: New file.
2913 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
2914 * conf/Makefile.extra-dist: Update with new files.
2915 * gentpl.py: Remove rules related to unnecessary temporary files.
2916 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
2918 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
2920 * grub-core/bus/usb/uhci.c: Remove empty #define.
2921 * grub-core/genmoddep.awk: Updated with new syminfo format.
2922 * util/bash-completion.d/Makefile.am: Add config.log to
2925 2010-09-19 Yves Blusseau <blusseau@zetam.org>
2927 * Makefile.util.def: Add forgotten $(LIBINTL) library.
2929 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
2931 * util/grub-mkconfig.in: Check the config script for syntax errors
2934 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
2935 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2937 * Makefile.util.def (grub-install): Use util/grub-install.in on all
2939 * util/grub-install.in: Add EFI and IEEE1275 support.
2940 * util/i386/efi/grub-install.in: Removed.
2941 * util/ieee1275/grub-install.in: Likewise.
2943 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
2945 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
2946 (grub_cmd_cmosclean): Likewise.
2947 (GRUB_MOD_INIT): Register command cmosclean.
2948 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
2949 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
2951 2010-09-18 Carles Pina i Estany <carles@pina.cat>
2952 2010-09-18 Aleš Nesrsta <starous@volny.cz>
2953 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2955 Add keyboard layouts support.
2957 * Makefile.util.def (grub-mklayout): New file.
2958 (grub-kbdcomp): New script.
2959 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
2960 Add keyboard_layouts.h.
2961 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
2962 commands/boot.c on yeeloong.
2963 (keylayouts): New module.
2964 * grub-core/bus/usb/ohci.c
2965 * grub-core/bus/usb/uhci.c
2966 * grub-core/bus/usb/usbhub.c (rescan): New variable.
2967 (grub_usb_add_hub): Poll interrupt pipe for device handling.
2968 (attach_root_port): Likewise.
2969 (poll_nonroot_hub): Likewise.
2970 (grub_usb_poll_devices): Likewise.
2971 (detach_device): Close transfer.
2972 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
2974 (grub_usb_bulk_setup_readwrite): Likewise.
2975 (grub_usb_bulk_finish_readwrite): Likewise.
2976 * grub-core/commands/keylayouts.c: New file.
2977 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
2978 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
2980 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
2982 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
2983 * include/grub/keyboard_layouts.h: New file.
2984 * util/grub-mklayout.c: New file.
2985 * util/grub-kbdcomp.in: Likewise.
2987 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
2991 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
2992 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
2994 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
2995 (grub_upper_mem): Likewise.
2996 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
2997 * include/grub/memory.h (grub_memory_type_t): New enum.
3000 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3002 * grub-core/Makefile.core.def (lsapm): New module.
3003 * grub-core/commands/i386/pc/lsapm.c: New file.
3004 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
3005 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
3007 * include/grub/i386/pc/apm.h: New file.
3008 * include/multiboot.h (multiboot_apm_info): New struct.
3010 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
3012 GRUB-legacy configuration file support.
3014 * Makefile.util.def (grub-menulst2cfg): New util.
3015 * docs/man/grub-menulst2cfg.h2m: New file.
3016 * grub-core/Makefile.core.def (legacycfg): New module.
3017 * grub-core/commands/legacycfg.c: New file.
3018 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
3019 (grub_normal_add_menu_entry): ... this.
3020 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
3021 (grub_normal_set_password): ...this.
3022 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
3023 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
3024 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
3025 * grub-core/lib/legacy_parse.c: New file.
3026 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
3027 * include/grub/i386/pc/vesa_modes_table.h: New file.
3028 * include/grub/legacy_parse.h: Likewise.
3029 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
3030 * util/grub-menulst2cfg.c: New file.
3032 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
3034 * grub-core/kern/emu/hostdisk.c
3035 (convert_system_partition_to_system_disk): Initialise node.
3037 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
3039 * grub-core/kern/emu/hostdisk.c
3040 (convert_system_partition_to_system_disk): Fix devmapper memory pool
3042 Reported and based on patch by: Modestas Vainius.
3044 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
3046 Fix DM-RAID probing with recent versions of device-mapper udev
3049 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
3050 canonicalise device paths under /dev/mapper/.
3051 (convert_system_partition_to_system_disk): Compare the
3052 uncanonicalised path to /dev/mapper/ rather than the canonicalised
3053 path, since device nodes under /dev/mapper/ are often symlinks.
3055 2010-09-17 Yves Blusseau <blusseau@zetam.org>
3057 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
3059 2010-09-16 Yves Blusseau <blusseau@zetam.org>
3061 * configure.ac: Avoid some annoying error messages if freetype-config
3062 program is not found.
3064 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
3066 Support RAID on virtio devices, and others.
3068 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
3070 [__MINGW32__] (grub_find_device): ... this.
3071 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
3072 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
3073 reasonable default if dir is NULL.
3074 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
3076 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
3077 (grub_guess_root_device): Update callers.
3078 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
3080 * util/raid.c (grub_util_getdiskname): Remove.
3081 (grub_util_raid_getmembers): Use grub_find_device rather than
3082 grub_util_getdiskname.
3084 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
3086 * docs/grub.texi (serial): Remove obsolete comment about GRUB
3087 needing to be compiled with serial support.
3088 (ls): Indicate that multiple files are accepted.
3089 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
3090 indicate that multiple files are accepted.
3092 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
3094 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
3095 libgrub_a_init.c, and util/bash-completion.d/grub.
3097 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3099 * util/grub-setup.c (setup): Fix incorrect container semantics.
3101 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3103 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
3105 Reported by: J. Nick Terry
3107 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3109 Move embedding routines to partmap sources files.
3111 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
3112 [GRUB_UTIL]: New variable.
3113 (gpt_partition_map_iterate): Set part.parent.
3114 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
3115 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
3116 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
3118 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
3119 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
3120 (grub_partition_map) [GRUB_UTIL]: New field embed.
3121 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
3122 (setup): Use ->embed.
3124 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3126 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
3128 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
3129 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
3131 2010-09-15 Yves Blusseau <blusseau@zetam.org>
3133 Add function to get completions from usage.
3135 * util/bash-completion.d/grub-completion.bash.in: Add function to get
3136 completions from usage. Use LC_ALL=C to get options properly.
3138 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3140 * grub-core/gnulib/basename-lgpl.c: Imported.
3141 * grub-core/gnulib/basename.c: Likewise.
3142 * grub-core/gnulib/dirname-lgpl.c: Likewise.
3143 * grub-core/gnulib/dirname.c: Likewise.
3144 * grub-core/gnulib/dirname.h: Likewise.
3145 * grub-core/gnulib/stripslash.c: Likewise.
3147 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
3149 * grub-core/gnulib/error.c: Resynced.
3150 * grub-core/gnulib/getopt.c: Likewise.
3151 * grub-core/gnulib/getopt_int.h: Likewise.
3152 * grub-core/gnulib/regex.h: Likewise.
3153 * grub-core/gnulib/regex_internal.c: Likewise.
3154 * grub-core/gnulib/regex_internal.h: Likewise.
3156 2010-09-15 Szymon Janc <szymon@janc.net.pl>
3158 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
3159 CRC calculations and validity checks.
3160 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
3163 2010-09-15 Szymon Janc <szymon@janc.net.pl>
3165 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
3167 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3169 Fix incorrect echo options handling.
3170 Reported by: Yves Blusseau.
3172 * include/grub/command.h (grub_command_flags_t): New flags
3173 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
3174 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
3175 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
3177 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3179 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
3181 (GRUB_COMMAND_FLAG_MENU): Likewise.
3182 (GRUB_COMMAND_FLAG_BOTH): Likewise.
3183 (GRUB_COMMAND_FLAG_TITLE): Removed.
3184 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
3185 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
3186 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
3187 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
3188 (grub_command_flags_t): New enum. All users updated.
3190 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
3192 Fix solaris compilation.
3194 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
3195 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
3196 (grub-emu-list): Likewise.
3198 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3200 Remove deprecated root command.
3202 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
3205 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3207 * util/i386/pc/grub-setup.c: Merge this ...
3208 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
3209 * util/grub-setup.c: ... into this.
3210 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
3213 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3215 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
3218 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3220 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
3223 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3225 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
3226 explicit root argument to set to prevent UUID to be interpreted as
3229 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3231 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
3233 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3235 Don't export grub_gate_a20.
3237 * grub-core/kern/i386/pc/init.c: Remove leftovers.
3238 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
3240 (grub_gate_a20): ... this. All users updated.
3241 * include/grub/i386/pc/init.h: Removed. All users updated.
3243 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3245 Create euro.pf2 which supports most European languages.
3247 * Makefile.am (grubdata_DATA): Add euro.pf2.
3248 (euro.pf2): New target.
3249 (CLEANFILES): Add euro.pf2.
3251 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
3253 * configure.ac: Disable emu-usb by default to prevent inadvertent
3256 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3258 Disable usbserial on grub-emu since our libusb code isn't good enough
3261 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
3262 (usbserial_pl2303): Likewise.
3263 (usbserial_ftdi): Likewise.
3265 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3267 * include/grub/disk.h (grub_disk): Remove has_partitions.
3269 * disk/loopback.c (grub_loopback): Remove has_partitions.
3271 (options): Remove partitions. All users updated.
3272 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
3273 * util/i386/pc/grub-setup.c (setup): copy partition table only when
3274 actual partition table is found.
3276 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3278 Remove readability checks (too many false negatives).
3280 * util/grub-install.in: Remove readability checks.
3281 * util/grub-mkconfig.in: Likewise.
3282 * util/grub.d/10_hurd.in: Likewise.
3283 * util/grub.d/10_kfreebsd.in: Likewise.
3284 * util/grub.d/10_linux.in: Likewise.
3285 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
3288 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3290 Enable acpi shutdown on all ACPI platforms.
3292 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
3293 on coreboo, multiboot and EFI.
3294 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
3295 (grub_acpi_halt): Likewise.
3296 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
3297 (grub_cmd_halt): Don't call grub_acpi_halt directly.
3298 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
3299 * grub-core/lib/i386/halt.c (grub_halt)
3300 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
3302 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3304 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
3307 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3309 * grub-core/video/efi_gop.c: Fix over-80-chars line.
3310 * grub-core/video/efi_uga.c: Likewise.
3312 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3314 Filter devaliases and never open same device twice.
3316 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
3317 (last_ihandle): Likewise.
3318 (ofdisk_hash_ent): New member shortest.
3319 (ofdisk_hash_add): Add canonical path too.
3320 (scan): New function.
3321 (grub_ofdisk_iterate): Iterate over hashed entries.
3322 (compute_dev_path): Don't add :0.
3323 (grub_ofdisk_open): Don't really open the disk.
3324 (grub_ofdisk_close): Avoid closing unrelated disk.
3325 (grub_ofdisk_read): Implement reopen logic.
3326 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
3328 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
3331 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3335 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
3336 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
3337 right address. Add sparc64_ieee1275_ldflags.
3338 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
3339 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
3340 to grub_host_to_target_addr
3341 (load_image): Likewise.
3343 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3345 * grub-core/normal/completion.c (complete_file): Handle device
3347 Fix based on patch by Doug Nazar.
3349 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3351 grub-mknetdir script.
3353 * Makefile.util.def (grub-mknetdir): New module.
3354 * tests/util/grub-shell.in: Support boot=net
3355 * util/grub-mknetdir.in: New file.
3357 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3359 videoinfo on non-vbe.
3361 * grub-core/Makefile.core.def (vbeinfo): Removed.
3363 (videoinfo): New module.
3364 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
3365 * grub-core/commands/i386/pc/vbetest.c: Removed.
3366 * grub-core/commands/videoinfo.c: New file.
3367 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
3369 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
3371 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
3372 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
3373 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
3374 mode_number. New parameter mode. All users updated.
3375 (grub_video_gop_iterate): New function.
3376 (grub_video_efi_gop): New member iterate.
3377 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
3378 (grub_vbe_set_video_mode): Remove setting useless fields.
3379 (vbe2videoinfo): New function.
3380 (grub_video_vbe_iterate): Likewise.
3381 (grub_video_vbe_setup): Use vbe2videoinfo.
3382 (grub_video_vbe_print_adapter_specific_info): New function.
3383 (grub_video_vbe_adapter): New fields iterate and
3384 print_adapter_specific_info.
3385 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
3387 (grub_video_mode_info): New field mode_number.
3388 (grub_video_adapter): New fields iterate and
3389 print_adapter_specific_info.
3391 2010-09-13 Tristan Gingold <gingold@free.fr>
3392 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
3393 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3395 * grub-core/commands/efi/lsefisystab.c: New file.
3396 * grub-core/commands/efi/lssal.c: Likewise.
3397 * grub-core/Makefile.core.def (lsacpi): New module.
3398 (lsefisystab): Likewise.
3399 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
3400 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
3401 (grub_efi_sal_system_table): New struct.
3402 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
3403 (grub_efi_sal_system_table_memory_descriptor): Likewise.
3404 (grub_efi_sal_system_table_platform_features): Likewise.
3405 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
3406 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
3407 (grub_efi_sal_system_table_ap_wakeup): Likewise.
3408 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
3410 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3412 Support explicit user claim that a device is BIOS-visible.
3414 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
3415 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
3416 * grub-core/kern/emu/hostdisk.c
3417 (convert_system_partition_to_system_disk): Support mdX.
3418 (find_system_device): New parameter add. All users updated.
3419 (grub_util_biosdisk_is_present): New function.
3420 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
3423 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
3425 Search hints support.
3427 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
3430 2010-09-13 Yves Blusseau <blusseau@zetam.org>
3432 Bash completion script for util commands
3434 * Makefile.am: Add util/bash-completion.d directory
3435 * configure.ac: Likewise.
3436 * util/bash-completion.d/Makefile.am: New file.
3437 * util/bash-completion.d/grub-completion.bash.in: Likewise.
3439 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3441 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
3442 (print_backlog): set backlog_ucs4 and backlog_glyphs.
3443 Reported by: Yves Blusseau.
3445 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3447 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
3448 partition size and offset.
3450 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3452 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
3454 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3456 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
3458 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3460 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
3461 (grub_xvasprintf): Likewise.
3463 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3465 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
3467 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3469 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
3470 args ending with NULL.
3472 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
3474 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
3477 2010-09-11 Szymon Janc <szymon@janc.net.pl>
3479 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
3481 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3483 Shutdown using ACPI.
3485 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
3486 * grub-core/commands/acpihalt.c: New file.
3487 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
3488 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
3489 (grub_acpi_halt): New proto.
3490 (GRUB_ACPI_SLP_EN): New const.
3491 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
3492 (GRUB_ACPI_OPCODE_*): New enum.
3493 (GRUB_ACPI_EXTOPCODE_*): Likewise.
3495 2010-09-11 Tristan Gingold <gingold@free.fr>
3496 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
3497 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3499 * commands/lsacpi.c: New file.
3500 * grub-core/Makefile.core.def (lsacpi): New module.
3501 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
3502 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
3503 (grub_acpi_madt_entry_header): New struct.
3504 (grub_acpi_madt): Likewise.
3505 (grub_acpi_madt_entry_interrupt_override): Likewise.
3506 (grub_acpi_madt_entry_sapic): Likewise.
3507 (grub_acpi_madt_entry_lsapic): Likewise.
3508 (grub_acpi_madt_entry_platform_int_source): Likewise.
3509 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
3510 (PRIuGRUB_UINT32_T): Likewise.
3511 (PRIxGRUB_UINT64_T): Likewise.
3513 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3515 Implement loading palette on ieee1275_fb.
3517 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
3518 (have_setcolors): Likewise.
3519 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
3520 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
3521 (grub_video_ieee1275_set_palette): Implement.
3523 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3524 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
3526 * util/grub-install.in (grub_partition): New variable.
3527 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
3528 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
3529 Fixes a bug reported by Yves Blusseau.
3531 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
3535 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
3536 =grub_cpu_flush_cache on all mips and not only yeeloong.
3537 * configure.ac (COND_mips): New conditional.
3538 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
3540 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
3541 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
3542 [GRUB_LINKER_HAVE_INIT]: New function.
3543 (grub_emu_post_init): Likewise.
3544 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
3545 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
3546 * include/grub/cache.h (_mips): Include mips/cache.h.
3547 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
3548 LVM and RAID prototypes.
3549 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
3550 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
3553 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
3555 * util/grub-install.in: Don't try to verify core.img until after
3556 running grub-mkimage to create it.
3558 2010-09-10 Robert Millan <rmh@gnu.org>
3560 * util/grub.d/10_hurd.in: Add misc readability checks.
3561 * util/grub.d/10_kfreebsd.in: Likewise.
3562 * util/grub.d/10_linux.in: Likewise.
3564 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
3566 * util/grub-install.in: ${imgext} won't be defined here until the
3567 install branch is merged. For the meantime, only verify core.img on
3568 i386-pc and sparc64-ieee1275 platforms.
3570 2010-09-10 Robert Millan <rmh@gnu.org>
3572 Solaris support in grub_find_zpool_from_dir(). Thanks
3573 Seth Goldberg for referring to getextmntent() facility.
3575 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
3577 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
3579 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
3580 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
3581 method for finding zpool name.
3583 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
3585 grub-fstest needs the host and hostfs modules while other utilities
3586 actively require those modules to be absent, so grub-fstest needs
3587 its own initialisation and finalisation code.
3589 * Makefile.am (grub_fstest.pp): New target.
3590 (grub_fstest_init.lst): Likewise.
3591 (grub_fstest_init.c): Likewise.
3592 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
3594 2010-09-10 Robert Millan <rmh@gnu.org>
3596 * configure.ac: Check for `struct statfs.f_fstypename' and
3597 `struct statfs.f_mntfromname'.
3599 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
3600 kFreeBSD-specific code.
3602 2010-09-10 Robert Millan <rmh@gnu.org>
3604 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
3605 on ZFS. Now non-main filesystems are supported as / too.
3607 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
3609 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
3610 and grub-core/disk/host.c to ...
3611 (grub-fstest): ... here. Having the host disk implementation
3612 present confuses grub-probe and other utility programs.
3614 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
3615 when writing to a file, not when writing to stdout.
3617 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
3619 * tests/partmap_test.in: New test for partitions.
3620 * Makefile.util.def: Rules for new test.
3622 2010-09-09 Robert Millan <rmh@gnu.org>
3624 * util/grub-probe.c (probe): Fix a pair of unhandled error
3627 2010-09-09 Robert Millan <rmh@gnu.org>
3629 Basic Btrfs support (detection and UUID).
3631 * grub-core/fs/btrfs.c: New file.
3632 * Makefile.util.def (library): Register btrfs.c.
3633 * grub-core/Makefile.core.def: Likewise.
3635 2010-09-08 Robert Millan <rmh@gnu.org>
3637 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
3638 with (optional) parameters to specify device and relative path.
3639 * util/grub-install.in: Use is_path_readable_by_grub() to
3640 verify readability of a few critical files.
3641 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
3642 verify readability of grub.cfg.new.
3644 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
3646 Split minix.mod into minix.mod and minix2.mod.
3648 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
3649 * grub-core/Makefile.core.def (minix2): New module.
3650 * grub-core/fs/minix.c: Use definitions instead of runtime version
3652 * grub-core/fs/minix2.c: New file.
3654 2010-09-08 Yves Blusseau <blusseau@zetam.org>
3656 Add new --boot-directory option to replace --root-directory
3658 * util/grub-install.in: Add new --boot-directory option
3659 * util/grub-reboot.in: Likewise.
3660 * util/grub-set-default.in: Likewise.
3662 2010-09-08 Yves Blusseau <blusseau@zetam.org>
3664 * util/grub-mkconfig.in: Use new variable.
3666 2010-09-08 Yves Blusseau <blusseau@zetam.org>
3668 * configure.ac: Define some useful variables.
3670 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
3672 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3673 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
3674 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
3675 Use terminfo and don't use cursor-on/cursor-off unless it's known
3677 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
3678 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
3680 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
3682 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
3683 starts with "(,", fill the drive containing the loaded image in
3684 between those two characters, but expect that a full partition
3685 specification including partition map names will follow.
3687 2010-09-08 Robert Millan <rmh@gnu.org>
3689 * configure.ac: Remove `--enable-grub-fstest' option.
3690 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
3692 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
3693 `grub-fstest' instead of `grub-probe' for readability verification.
3694 * util/grub-probe.c (probe): Remove readability verification kludge.
3696 2010-09-08 Robert Millan <rmh@gnu.org>
3698 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
3699 initializing `GRUB_FS'.
3701 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
3703 Not command (!) support to GRUB script.
3705 * tests/grub_script_not.in: New test.
3706 * Makefile.util.def: Rules for new test.
3708 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
3709 ! command as a special case.
3710 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
3712 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
3714 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
3717 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
3719 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
3721 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
3723 * docs/grub.texi (Shell-like scripting): Documentation for break,
3724 continue, shift and return commands.
3726 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
3728 Rename CD-ROM to cd on BIOS.
3730 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
3732 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
3734 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3736 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
3737 * util/grub-probe.c (main): Likewise.
3738 * util/i386/pc/grub-setup.c (main): Likewise.
3739 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
3740 Reported and debugged by: alexxy
3742 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3744 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
3747 2010-09-05 Jo Shields <directhex@apebox.org>
3749 * util/grub.d/30_os-prober.in: Add missing classes.
3751 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3753 * docs/grub.texi (Theme file format): Document new position format.
3755 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3757 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
3758 a table. Use @code instead of @verbatim.
3760 2010-09-05 Colin D Bennett <colin@gibibit.com>
3762 Gfxmenu documentation.
3764 * docs/grub.texi (Theme file format): New chapter.
3766 2010-09-05 Szymon Janc <szymon@janc.net.pl>
3768 * grub-core/Makefile.core.def (xzio): New module.
3769 * grub-core/io/xzio.c: New file.
3770 * grub-core/lib/xzembed/xz.h: New file (from xembed).
3771 * grub-core/lib/xzembed/xz_config.h: Likewise.
3772 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
3773 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
3774 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
3775 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
3776 * grub-core/lib/xzembed/xz_private.h: Likewise.
3777 * grub-core/lib/xzembed/xz_stream.h: Likewise.
3778 * include/grub/file.h (grub_file_filter_id): New compression filter
3779 GRUB_FILE_FILTER_XZIO.
3781 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3783 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
3784 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
3787 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3789 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
3790 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
3792 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3794 Uncompressed checksum support.
3796 * grub-core/commands/hashsum.c (options): Add option --uncompress.
3797 (check_list): New parameter uncompress.
3798 (grub_cmd_hashsum): Handle --uncompress.
3800 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3802 Reintroduce testload.
3804 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
3806 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
3807 (GRUB_MOD_INIT): New function.
3808 (GRUB_MOD_FINI): Likewise.
3809 * grub-core/Makefile.core.def (testload): New module.
3811 2010-09-05 Szymon Janc <szymon@janc.net.pl>
3813 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
3814 (uint8_t): New type.
3815 (uint16_t): Likewise.
3816 (uint32_t): Likewise.
3817 (uint64_t): Likewise.
3819 2010-09-05 Szymon Janc <szymon@janc.net.pl>
3821 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
3823 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
3825 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
3827 (grub_gzfile_open): Removed. All users updated.
3828 (GRUB_MOD_INIT): New function.
3829 (GRUB_MOD_FINI): Likewise.
3830 * grub-core/kern/file.c (grub_file_filters_all): New variable.
3831 (grub_file_filters_enabled): Likewise.
3832 (grub_file_open): Handle filters.
3833 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
3834 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
3835 * include/grub/file.h (grub_file_filter_id_t): New type.
3836 (grub_file_filter_t): Likewise.
3837 (grub_file_filters_all): New extern variable.
3838 (grub_file_filters_enabled): Likewise.
3839 (grub_file_filter_register): New inline function.
3840 (grub_file_filter_unregister): Likewise.
3841 (grub_file_filter_disable): Likewise.
3842 (grub_file_filter_disable_compression): Likewise.
3843 * include/grub/gzio.h: Removed.
3845 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3847 Filename expansion support for wildcards in GRUB script.
3849 * tests/grub_script_expansion.in: New test.
3850 * Makefile.util.def: Rule for new test.
3852 * grub-core/commands/wildcard.c: New file, implements filename
3853 expansion support for GRUB script.
3854 * grub-core/Makefile.core.def: Rule update for regexp.mod.
3855 * grub-core/script/argv.c: Cosmetic changes.
3856 * grub-core/script/execute.c (grub_script_arglist_to_argv):
3857 Refactored to perform wildcard expansion on arguments.
3858 * include/grub/script_sh.h (grub_script_wildcard_translator): New
3861 * tests/util/grub-shell.in: Fix quoting for read input.
3863 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3865 Support for updating environment variables with matched substrings
3868 * tests/grub_cmd_regexp.in: New test.
3869 * Makefile.util.def: Rule for new test.
3871 * grub-core/commands/regexp.c: New option -s to update environment
3872 variables with regexp matches.
3874 2010-09-04 Szymon Janc <szymon@janc.net.pl>
3876 * include/grub/file.h (grub_file): New member not_easly_seekable.
3877 (grub_file_seekable): New inline function.
3878 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
3880 (grub_gzio_open): Set not_easly_seekable.
3881 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
3882 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
3884 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3886 Support for options to appear multiple times on cmdline.
3888 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
3889 * grub-core/commands/extcmd.c: Support for repeatable option.
3890 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
3891 repeatable option support.
3893 Refactor menuentry into a regular command.
3895 * grub-core/commands/menuentry.c: New file, menuentry command
3897 * grub-core/Makefile.core.def: Rule update for normal.mod.
3898 * grub-core/normal/main.c: Moved menuentry creation to
3899 grub-core/commands/menuentry.c.
3900 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
3901 (grub_menu_execute_entry_real): Removed.
3902 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
3904 (grub_script_execute_menuentry): Removed.
3905 * grub-core/script/parser.y (menuentry): Removed.
3906 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
3907 * grub-core/script/yylex.l (menuentry): Removed.
3908 * include/grub/menu.h (grub_menu_init): New prototype.
3909 (grub_menu_fini): New prototype.
3910 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
3911 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
3912 (grub_script_execute_sourcecode): New prototype.
3914 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3916 "return" command for GRUB script functions.
3918 * tests/grub_script_return.in: New test.
3919 * Makefile.util.def: Rules for new test.
3921 * grub-core/script/execute.c (grub_script_return): New function.
3922 * grub-core/script/main.c: Register/unregister return commaond.
3923 * include/grub/script_sh.h (grub_script_return): New prototype.
3925 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3927 "setparams" command to update positional parameters.
3929 * tests/grub_script_setparams.in: New test.
3930 * Makefile.util.def: Rules for new test.
3932 * grub-core/script/argv.c (grub_script_argv_make): New function.
3933 * grub-core/script/execute.c (replace_scope): New function.
3934 (grub_script_setparams): New function.
3935 * grub-core/script/lexer.c: Remove unused variables.
3936 * grub-core/script/main.c: Register/unregister setparams command.
3937 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
3938 (grub_script_setparams): New prototype.
3940 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3942 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
3945 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
3947 Support for passing block of commands as an argument to extcmds.
3949 * Makefile.util.def: Rules for new test.
3950 * tests/grub_script_blockarg.in: New test.
3951 * grub-core/tests/test_blockarg.c: New file, block argument
3952 command used in the test.
3954 * include/grub/extcmd.h (grub_extcmd_context): New struct.
3955 (grub_register_extcmd_prio): New function prototype.
3956 (grub_extcmd_dispatcher): New function prototype.
3957 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
3959 * include/grub/script_sh.h (struct grub_script): New members
3960 `children', `next_siblings' and `refcnt' for block arguments and
3962 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
3963 (grub_script_arg): New member `script' for block argument.
3964 (grub_script_argv): New member `script' for block argument.
3965 (grub_parser_param): New member `scripts' for block argument.
3966 (grub_script_mem_free): New extern function prototype.
3967 (grub_script_ref): New function prototype.
3968 (grub_script_unref): New function prototype.
3970 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
3971 extcmd form to support block arguments.
3972 * grub-core/script/argv.c: Block arguments support.
3973 * grub-core/script/execute.c: Likewise.
3974 * grub-core/script/lexer.c: Likewise.
3975 * grub-core/script/main.c: Likewise.
3976 * grub-core/script/script.c: Likewise.
3977 * grub-core/script/parser.y: Likewise. New `block' and `block0'
3980 * grub-core/commands/acpi.c: Update extcmd implementations with
3981 grub_extcmd_context_t.
3982 * grub-core/commands/cat.c: Likewise.
3983 * grub-core/commands/echo.c: Likewise.
3984 * grub-core/commands/extcmd.c: Likewise.
3985 * grub-core/commands/hashsum.c: Likewise.
3986 * grub-core/commands/hdparm.c: Likewise.
3987 * grub-core/commands/help.c: Likewise.
3988 * grub-core/commands/hexdump.c: Likewise.
3989 * grub-core/commands/i386/cpuid.c: Likewise.
3990 * grub-core/commands/i386/pc/drivemap.c: Likewise.
3991 * grub-core/commands/i386/pc/halt.c: Likewise.
3992 * grub-core/commands/i386/pc/sendkey.c: Likewise.
3993 * grub-core/commands/iorw.c: Likewise.
3994 * grub-core/commands/keystatus.c: Likewise.
3995 * grub-core/commands/loadenv.c: Likewise.
3996 * grub-core/commands/ls.c: Likewise.
3997 * grub-core/commands/lspci.c: Likewise.
3998 * grub-core/commands/memrw.c: Likewise.
3999 * grub-core/commands/probe.c: Likewise.
4000 * grub-core/commands/search_wrap.c: Likewise.
4001 * grub-core/commands/setpci.c: Likewise.
4002 * grub-core/commands/sleep.c: Likewise.
4003 * grub-core/disk/loopback.c: Likewise.
4004 * grub-core/hello/hello.c: Likewise.
4005 * grub-core/loader/i386/bsd.c: Likewise.
4006 * grub-core/loader/xnu.c: Likewise.
4007 * grub-core/term/gfxterm.c: Likewise.
4008 * grub-core/term/serial.c: Likewise.
4009 * grub-core/tests/lib/functional_test.c: Likewise.
4011 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
4013 Multi-line quoted strings support.
4015 * grub-core/script/lexer.c (append_newline): Removed.
4016 (grub_script_lexer_yywrap): Refactored.
4017 (grub_script_lexer_init): Refactored.
4018 * grub-core/script/yylex.l (yywrap): New function.
4019 (grub_lexer_resplit): New function.
4020 (grub_lexer_unput): New function.
4021 * include/grub/script_sh.h (grub_lexer_param): New members, unput
4023 * tests/grub_script_echo1.in: Added few more testcases.
4025 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
4027 * grub-core/kern/misc.c: Don't add abort alias in utils.
4028 Reported by: echoline.
4030 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
4032 Add missing files into "make dist" tarball for other platforms.
4034 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
4035 * conf/Makefile.common (dist_noinst_DATA): New variable.
4036 * conf/Makefile.extra-dist: Added missing make dist files.
4037 * grub-core/Makefile.core.def: Likewise.
4039 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
4041 Compress grub_prefix.
4043 * grub-core/boot/i386/pc/lnxboot.S: Use
4044 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
4045 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
4046 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
4047 GRUB_MACHINE_PREFIX_END. All users updated.
4048 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
4049 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
4051 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
4052 * util/grub-mkimage.c (image_target_desc): Change data_end to
4053 prefix_end. All users updated.
4055 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
4057 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
4059 (grub_openbsd_boot): Likewise.
4060 (grub_netbsd_boot): Likewise.
4061 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
4062 (grub_xnu_boot): Likewise.
4064 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4066 * configure.ac: Clean LIBS variable after tests.
4068 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
4070 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
4072 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4074 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
4075 echo if libdevmapper will be used.
4077 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
4079 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
4080 constant for the same file.
4082 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4084 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
4086 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
4088 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
4091 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
4093 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
4094 required by the boot protocol.
4096 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
4097 ebp and edi members.
4098 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
4099 state.ebp and state.edi.
4100 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
4101 %ebp and %edi according to grub_relocator32_ebp and
4102 grub_relocator32_edi respectively.
4103 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
4106 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4108 Add i386-pc-pxe image target.
4110 * util/grub-mkimage.c (image_target_desc): New enum value
4112 (image_targets): New target i386-pc-pxe.
4113 (generate_image): Handle i386-pc-pxe image.
4115 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
4119 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
4120 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
4122 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
4123 (grub_pxe_pxenv): Correct type.
4125 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
4127 * NEWS: Document most of the important changes since 1.98.
4129 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
4131 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
4132 generated manual page) a little.
4134 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
4136 * docs/grub.texi: Add myself as an author.
4138 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
4140 * Makefile.util.def (libgrub.a): Add missing sunpc.
4141 Reported by: Seth Goldberg.
4143 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4145 Interrupt wrapping and code simplifications.
4147 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
4148 x86_noieee1275 which are functionaly equivalent in this case.
4149 (grub-install): Make source on each platform explicit. Enable on
4151 * gentpl.py (x86_efi_pc): Removed group.
4152 (x86_noefi): Likewise.
4153 (i386_noefi): Likewise.
4154 (x86_noieee1275): Likewise.
4155 (i386_noieee1275): Likewise.
4156 (i386_noefi_noieee1275): Likewise.
4157 (i386_pc_qemu_coreboot): Likewise.
4158 (i386_coreboot_multiboot): Likewise.
4159 (i386_pc_coreboot_multiboot_qemu): Likewise.
4160 (x86_noefi_mips): Likewise.
4161 (noieee1275): Likewise.
4162 (ieee1275_mips): Likewise.
4163 (noemu_noieee1275): Likewise.
4166 (videoinkernel): Likewise.
4167 (videomodules): Likewise.
4168 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
4169 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
4170 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
4171 include/grub/loader.h, include/grub/msdos_partition.h,
4172 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
4173 include/grub/machine/console.h, include/grub/machine/vga.h,
4174 include/grub/machine/vbe.h, include/grub/machine/init.h,
4175 include/grub/machine/kernel.h, include/grub/cpu/time.h,
4176 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
4177 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
4178 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
4179 * grub-core/Makefile.core.def (kernel): Explicit the source for
4180 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
4181 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
4182 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
4183 Use videoinkernel tag.
4184 (usb): Enable on all usb.
4185 (usbserial_common): Likewise.
4186 (usbserial_pl2303): Likewise.
4187 (usbserial_ftdi): Likewise.
4188 (uhci): Enable on all x86.
4189 (ohci): Enable on all pci.
4190 (cmostest): Enable on all CMOS.
4191 (acpi): Include commands/acpi.c on all platforms.
4192 (halt): Add relevant lib/*/halt.c.
4193 (hdparm): Enable on all pci.
4195 (usbtest): Enable on all usb.
4196 (ata): Enable on all pci.
4197 (ata_pthru): Likewise.
4198 (usbms): Enable on all usb.
4199 (usb_keyboard): Likewise.
4200 (font): Use tag videomodules.
4202 (datetime): Use tag cmos. Enable on all noemu.
4203 (mmap): Use tags common and x86.
4204 (gfxterm): Use tag videomodules.
4206 (bitmap_scale): Likewise.
4207 (video_fb): Likewise.
4209 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
4210 adjust padding accordingly. All users updated.
4211 (grub_ohci_transaction): Fix bad format specification.
4212 (GRUB_MOD_INIT): Add asserts for struct size.
4213 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
4214 (grub_alloc_td): Likewise.
4215 (grub_free_queue): Likewise.
4216 (grub_uhci_transfer): Likewise.
4217 (grub_uhci_transaction): Fix bad format specification.
4218 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
4219 (grub_usb_bulk_readwrite): Likewise.
4220 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
4221 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
4223 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
4225 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
4226 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
4228 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
4230 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
4231 ... here. Transformed into C. Made static.
4232 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
4234 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
4235 ... here. Transformed into C. Made static.
4236 * grub-core/kern/i386/pc/startup.S
4237 (grub_biosdisk_check_int13_extensions): Moved from here ...
4238 * grub-core/disk/i386/pc/biosdisk.c
4239 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
4241 * grub-core/kern/i386/pc/startup.S
4242 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
4243 * grub-core/disk/i386/pc/biosdisk.c
4244 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
4245 Transformed into C. Made static.
4246 * grub-core/kern/i386/pc/startup.S
4247 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
4248 * grub-core/disk/i386/pc/biosdisk.c
4249 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
4250 Transformed into C. Made static.
4251 * grub-core/kern/i386/pc/startup.S
4252 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
4253 * grub-core/disk/i386/pc/biosdisk.c
4254 (grub_biosdisk_get_diskinfo_standard): ... here.
4255 Transformed into C. Made static.
4256 * grub-core/kern/i386/pc/startup.S
4257 (grub_biosdisk_get_num_floppies): Moved from here ...
4258 * grub-core/disk/i386/pc/biosdisk.c
4259 (grub_biosdisk_get_num_floppies): ... here.
4260 Transformed into C. Made static.
4261 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
4263 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
4264 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
4265 Transformed into C. Made static.
4266 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
4267 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
4268 Transformed into C. Made static.
4269 * grub-core/kern/i386/ieee1275/init.c: Removed.
4270 * grub-core/kern/i386/misc.S: Likewise.
4271 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
4272 Splitted from here ...
4273 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
4274 Transformed into C. Made static. All users updated.
4275 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
4276 Transformed into C. Made static. All users updated.
4277 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
4279 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
4280 Transformed into C. Made static. All users updated.
4281 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
4283 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
4284 Transformed into C. Made static. All users updated.
4285 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
4286 Removed (replaced by C version).
4287 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
4289 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
4290 Transformed into C. Made static.
4291 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
4293 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
4294 ... here. Transformed into C.
4295 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
4297 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
4298 ... here. Transformed into C.
4299 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
4301 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
4302 ... here. Transformed into C. Made static.
4303 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
4305 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
4306 ... here. Transformed into C.
4307 * grub-core/kern/i386/pc/startup.S
4308 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
4309 * grub-core/video/i386/pc/vbe.c
4310 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
4311 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
4313 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
4314 ... here. Transformed into C.
4315 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
4317 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
4318 ... here. Transformed into C.
4319 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
4321 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
4322 ... here. Transformed into C.
4323 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
4325 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
4326 ... here. Transformed into C.
4327 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
4329 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
4330 ... here. Transformed into C. Made static.
4331 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
4333 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
4334 ... here. Transformed into C. Made static.
4335 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
4337 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
4338 ... here. Transformed into C. Made static.
4339 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
4340 pxe_rm_entry as third argument.
4341 (grub_bios_interrupt): New function.
4342 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
4343 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
4344 of calling grub_stop.
4345 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
4346 * grub-core/lib/efi/halt.c (grub_halt): ...here.
4347 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
4348 * grub-core/lib/emu/halt.c (grub_halt): ... here.
4349 * grub-core/lib/i386/halt.c: Moved from here ...
4350 * grub-core/lib/i386/halt.c: ... here.
4351 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
4352 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
4353 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
4355 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
4356 * include/grub/i386/coreboot/init.h: Removed.
4357 * include/grub/i386/multiboot/init.h: Likewise.
4358 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
4359 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
4360 * include/grub/i386/pc/int.h: New file.
4361 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
4362 (grub_pxe_scan): Removed.
4363 (grub_pxe_call): Update prototype.
4364 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
4366 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
4367 * include/grub/i386/qemu/init.h: Removed.
4368 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
4370 (grub_halt): Likewise.
4371 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
4372 (grub_reboot): Likewise.
4373 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
4374 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
4375 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
4377 2010-08-30 Robert Millan <rmh@gnu.org>
4379 * NEWS: Document addition of ZFS support in `grub-install' and
4382 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
4384 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
4387 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4389 Remove leftover embedding of font objects.
4391 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
4392 * util/grub-install.in (font): Removed.
4393 * util/grub-mkimage.c (generate_image): Remove font support. All users
4396 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4398 Remove leftover embedding of font objects.
4400 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
4401 * util/grub-install.in (font): Removed.
4402 * util/grub-mkimage.c (generate_image): Remove font support. All users
4405 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4407 * docs/grub.texi (Network): Fix reference to pxe_blksize.
4408 Reported by: Ian Turner
4410 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4412 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
4413 timeout to avoid indefinite boot stalling.
4415 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4417 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
4418 (grub_env_write_color_highlight): Likewise.
4420 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4422 * grub-core/normal/term.c (print_more): Return to normal and not
4423 to standard state after printing "---MORE---".
4425 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
4427 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
4428 Mask out the bit 0x80 since it has other meaning that specifiing color.
4430 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4432 New relocator. Allows for more kernel support and more straightforward
4435 * Makefile.am (BOOTTARGET): New variable.
4437 (linux.init.x86_64): New target.
4438 (linux.init.i386): Likewise.
4439 (multiboot.elf): Likewise.
4440 (kfreebsd.elf): Likewise.
4441 (kfreebsd.aout): Likewise.
4442 (pc-chainloader.elf): Likewise.
4443 (pc-chainloader.bin): Likewise.
4444 (ntldr.elf): Likewise.
4445 (ntldr.bin): Likewise.
4446 (multiboot2.elf): Likewise.
4447 (kfreebsd.init.x86_64): Likewise.
4448 (kfreebsd.init.i386): Likewise.
4449 (knetbsd.init.i386): Likewise.
4450 (kopenbsd.init.i386): Likewise.
4451 (knetbsd.init.x86_64): Likewise.
4452 (kopenbsd.init.x86_64): Likewise.
4453 (linux-initramfs.i386): Likewise.
4454 (linux-initramfs.x86_64): Likewise.
4455 (kfreebsd-mfsroot.i386.img): Likewise.
4456 (knetbsd.image.i386): Likewise.
4457 (kopenbsd.image.i386): Likewise.
4458 (kopenbsd.image.x86_64): Likewise.
4459 (knetbsd.miniroot-image.i386.img): Likewise.
4460 (kfreebsd-mfsroot.x86_64.img): Likewise.
4461 (knetbsd.image.x86_64): Likewise.
4462 (knetbsd.miniroot-image.x86_64.img): Likewise.
4463 (kfreebsd-mfsroot.i386.gz): Likewise.
4464 (bootcheck-kfreebsd-i386): Likewise.
4465 (kfreebsd-mfsroot.x86_64.gz): Likewise.
4466 (bootcheck-kfreebsd-x86_64): Likewise.
4467 (knetbsd.miniroot-image.i386.gz): Likewise.
4468 (bootcheck-knetbsd-i386): Likewise.
4469 (bootcheck-kopenbsd-i386): Likewise.
4470 (bootcheck-kopenbsd-x86_64): Likewise.
4471 (knetbsd.miniroot-image.x86_64.gz): Likewise.
4472 (bootcheck-knetbsd-x86_64): Likewise.
4473 (bootcheck-linux-i386): Likewise.
4474 (bootcheck-linux-x86_64): Likewise.
4475 (bootcheck-linux16-i386): Likewise.
4476 (bootcheck-linux16-x86_64): Likewise.
4477 (bootcheck-multiboot): Likewise.
4478 (bootcheck-multiboot2): Likewise.
4479 (bootcheck-kfreebsd-aout): Likewise.
4480 (bootcheck-pc-chainloader): Likewise.
4481 (bootcheck-ntldr): Likewise.
4482 (CLEANFILES): Add new targets.
4483 (BOOTCHECKS): New variable.
4484 (.PHONY): Add bootchecks.
4485 (SUCCESSFUL_BOOT_STRING): New variable.
4486 (BOOTCHECK_TIMEOUT): Likewise.
4487 (bootcheck): New target
4488 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
4489 * configure.ac: Correct efiemu excuse.
4490 * docs/grub.texi (Supported kernels): New chapter.
4491 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
4492 include/grub/mm_private.h. Simplify inclusion of
4493 include/grub/boot.h, include/grub/loader.h
4494 and include/grub/msdos_partition.h
4495 (KERNEL_HEADER_FILES) [i386_coreboot]:
4496 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
4497 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
4498 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
4499 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
4500 include/grub/machine/loader.h.
4501 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
4502 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
4504 (pci.mod): Enable on i386-multiboot.
4505 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
4506 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
4508 (relocator.mod): Rewritten.
4509 (aout.mod): Enable on all x86.
4510 (bsd.mod): Likewise.
4511 (ntldr.mod): New module.
4512 (linux.mod): Use loader/i386/linux.c on all x86.
4513 (xnu.mod): Enable on all x86.
4514 (vga_text.mod): disable on EFI and QEMU.
4515 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
4516 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
4517 * grub-core/efiemu/loadcore.c: Likewise.
4518 * grub-core/efiemu/main.c: Likewise.
4519 (grub_efiemu_exit_boot_services): Removed.
4520 (grub_efiemu_finish_boot_services): Likewise.
4521 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
4523 * grub-core/efiemu/i386/nocfgtables.c: New file.
4524 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
4525 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
4526 (grub_efi_finish_boot_services): Moved from here ...
4527 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
4528 Fille finish memory map and related data.
4529 (finish_mmap_buf): New variable.
4530 (grub_efi_uintn_t finish_mmap_size): Likewise.
4531 (grub_efi_uintn_t finish_key): Likewise.
4532 (grub_efi_uintn_t finish_desc_size): Likewise.
4533 (grub_efi_uint32_t finish_desc_version): Likewise.
4534 (grub_efi_is_finished): Likewise.
4535 (grub_efi_get_memory_map): Use saved memory map if EFI is already
4537 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
4538 (grub_elf64_phdr_iterate): Likewise.
4539 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
4540 (grub_os_area_size): Likewise.
4541 (grub_machine_init): Don't reserve os area.
4542 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
4543 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
4544 * grub-core/kern/i386/loader.S: Removed.
4545 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
4546 (grub_os_area_size): Likewise.
4547 (grub_machine_init): Don't reserve os area.
4548 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
4549 Don't call grub_dl_unload_all.
4550 Don't include loader.S.
4551 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
4552 Declare the memory after _end as available.
4553 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
4554 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
4555 (GRUB_MM_ALLOC_MAGIC): Moved from here...
4556 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
4557 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
4558 * include/grub/mm_private.h (grub_mm_header): ... here.
4559 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
4560 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
4561 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
4562 (grub_mm_region): ..here. Removed addr. Added pre_size.
4564 * grub-core/kern/mm.c (base): Renamed to ...
4565 (grub_mm_base): ... this. Made global.
4566 (grub_real_malloc): Alloc from end of region.
4567 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
4568 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
4569 * grub-core/kern/powerpc/cache_flush.S: ... here.
4570 * grub-core/lib/efi/relocator.c: New file.
4571 * grub-core/lib/i386/relocator.c: Rewritten.
4572 * grub-core/lib/i386/relocator16.S: New file.
4573 * grub-core/lib/i386/relocator32.S: Likewise.
4574 * grub-core/lib/i386/relocator64.S: Likewise.
4575 * grub-core/lib/i386/relocator_asm.S: Rewritten.
4576 * grub-core/lib/i386/relocator_common.S: New file.
4577 * grub-core/lib/ieee1275/relocator.c: Likewise.
4578 * grub-core/lib/mips/relocator.c: Rewritten.
4579 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
4580 stylistic adjustments.
4581 * grub-core/lib/powerpc/relocator.c: New file.
4582 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
4583 * grub-core/lib/relocator.c: Rewritten.
4584 * grub-core/lib/x86_64/relocator_asm.S: New file.
4585 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
4586 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
4587 (bsd_tag): New struct.
4588 (tags): New variable.
4589 (tags_last): Likewise.
4590 (netbsd_module): New struct.
4591 (netbsd_mods): New variable.
4592 (netbsd_mods_last): Likewise.
4593 (openbsd_opts): New parameter "serial".
4594 (OPENBSD_SERIAL_ARG): New definition.
4595 (netbsd_opts): New parameter "serial".
4596 (NETBSD_SERIAL_ARG): New definition.
4597 (grub_freebsd_add_meta): Reorganised into ...
4598 (grub_bsd_add_meta): ...this. All users updated.
4599 (grub_freebsd_add_mmap): Reorganised into ...
4600 (generate_e820_mmap): ...this...
4601 (grub_bsd_add_mmap): ...and this. All users updated.
4602 (grub_freebsd_list_modules): Use tags.
4603 (grub_netbsd_add_meta_module): New function.
4604 (grub_netbsd_list_modules): Likewise.
4605 (grub_freebsd_boot): Use relocator and finish EFI.
4606 (grub_openbsd_boot): Likewise.
4607 (grub_netbsd_setup_video): New function.
4608 (grub_netbsd_add_modules): Likewise.
4609 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
4611 (grub_bsd_unload): Unload tags.
4612 (grub_bsd_load_aout): Use relocator.
4613 (grub_bsd_elf32_size_hook): New function.
4614 (grub_bsd_elf32_hook): Use relocator.
4615 (grub_bsd_elf64_size_hook): New function.
4616 (grub_bsd_elf64_hook): Use relocator.
4617 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
4618 (grub_bsd_load): Zero-out openbsd_ramdisk.
4619 (grub_bsd_load): Use relocator.
4620 (grub_cmd_openbsd): Support serial.
4621 (grub_cmd_netbsd): Support modules.
4622 (grub_cmd_freebsd_module): Use relocator.
4623 (grub_netbsd_module_load): New function.
4624 (grub_cmd_netbsd_module): Likewise.
4625 (grub_cmd_openbsd_ramdisk): Likewise.
4626 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
4628 (GRUB_MOD_FINI): Unregister new commands.
4629 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
4630 (grub_freebsd_load_elfmodule_obj): Use relocator.
4631 (grub_freebsd_load_elfmodule): Likewise.
4632 (grub_freebsd_load_elf_meta): Likewise.
4633 (grub_netbsd_load_elf_meta): New function.
4634 (grub_openbsd_find_ramdisk): Likewise.
4635 * grub-core/loader/i386/bsd_helper.S: Removed.
4636 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
4637 * grub-core/loader/i386/bsd_trampoline.S: Removed.
4638 * grub-core/loader/i386/efi/linux.c: Likewise.
4639 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
4640 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
4641 (DEFAULT_VIDEO_MODE): Likewise.
4642 (real_mode_target): New variable.
4643 (prot_mode_target): Likewise.
4644 (initrd_mem_target): Likewise.
4645 (relocator): Likewise.
4646 (efi_mmap_buf): Likewise.
4647 (efi_mmap_size): Likewise.
4648 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
4649 (free_pages): Use relocator.
4650 (allocate_pages): Account for efi_mmap and use relocator. Return error.
4651 (grub_linux_setup_video): Return error.
4652 (grub_linux_trampoline_start): Removed.
4653 (grub_linux_trampoline_end): Likewise.
4654 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
4655 andd video parameters depending on firmware.
4656 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
4657 [GRUB_MACHINE_EFI]: Pass EFI parameters.
4658 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
4659 (grub_cmd_initrd): Use relocator.
4660 * grub-core/loader/i386/linux_trampoline.S: Removed.
4661 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
4662 (elf_sec_entsize): Likewise.
4663 (elf_sec_shstrndx): Likewise.
4664 (elf_sections): Likewise.
4665 (grub_multiboot_load): Use relocator.
4666 (grub_multiboot_get_mbi_size): Account for sections.
4667 (grub_multiboot_make_mbi): Use relocator and support sections.
4668 (grub_multiboot_add_elfsyms): New function.
4669 (grub_multiboot_free_mbi): Free sections.
4670 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
4671 (grub_linux_real_target): Likewise.
4672 (grub_linux_real_chunk): Likewise.
4673 (grub_linux16_prot_size): Likewise.
4674 (grub_linux16_boot): Use relocator.
4675 (grub_linux_unload): Unload relocator.
4676 (grub_cmd_linux): Use relocator.
4677 (grub_cmd_initrd): Likewise.
4678 * grub-core/loader/i386/pc/ntldr.c: New file.
4679 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
4680 Don't try to guess CPU frequency.
4681 (grub_xnu_set_video): Stretch bitmap.
4682 (grub_xnu_boot): Use relocator.
4683 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
4684 (grub_linux_unload): Free relocator.
4685 (grub_linux_load32): Use relocator.
4686 (grub_linux_load64): Likewise.
4687 (grub_cmd_initrd): Likewise.
4688 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
4689 (grub_multiboot_unload): Unload relocator.
4690 (grub_cmd_multiboot): Use relocator.
4691 (grub_cmd_module): Likewise.
4692 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
4693 Use relocator and support sections.
4694 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
4695 (elf_sec_entsize): Likewise.
4696 (elf_sec_shstrndx): Likewise.
4697 (elf_sections): Likewise.
4698 (grub_multiboot_load): Use relocator.
4699 (grub_multiboot_get_mbi_size): Account for sections.
4700 (grub_multiboot_make_mbi): Use relocator and support sections.
4701 (grub_multiboot_add_elfsyms): New function.
4702 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
4703 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
4704 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
4705 Prototype changed. All users updated.
4706 (grub_xnu_align_heap): Simplified.
4707 (grub_xnu_writetree_toheap): Likewise.
4708 (grub_xnu_unload): Unload relocator.
4709 (grub_cmd_xnu_kernel): Use relocator.
4710 (grub_cmd_xnu_kernel64): Likewise.
4711 (grub_xnu_register_memory): Simplified.
4712 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
4713 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
4715 (grub_console_checkkey): Likewise.
4716 (grub_console_getkey): Likewise.
4717 (grub_console_getwh): Likewise.
4718 (grub_console_getxy): Likewise.
4719 (grub_console_gotoxy): Likewise.
4720 (grub_console_cls): Likewise.
4721 (grub_console_setcolorstate): Likewise.
4722 (grub_console_setcursor): Likewise.
4723 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
4724 * grub-core/tests/boot/kbsd.init-i386.S: New file.
4725 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
4726 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
4727 * grub-core/tests/boot/kernel-8086.S: Likewise.
4728 * grub-core/tests/boot/kernel-i386.S: Likewise.
4729 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
4730 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
4731 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
4732 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
4733 * grub-core/tests/boot/knetbsd.cfg: Likewise.
4734 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
4735 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
4736 * grub-core/tests/boot/linux.cfg: Likewise.
4737 * grub-core/tests/boot/linux.init-i386.S: Likewise.
4738 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
4739 * grub-core/tests/boot/linux16.cfg: Likewise.
4740 * grub-core/tests/boot/multiboot.cfg: Likewise.
4741 * grub-core/tests/boot/multiboot2.cfg: Likewise.
4742 * grub-core/tests/boot/ntldr.cfg: Likewise.
4743 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
4744 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
4745 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
4747 * include/grub/dl.h (grub_dl_unload_all): Removed.
4748 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
4749 (grub_efi_finish_boot_services): Change prototype.
4750 (grub_efi_is_finished): New variable.
4751 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
4753 (grub_efiemu_finish_boot_services): Removed.
4754 (grub_machine_efiemu_init_tables): New prototype.
4755 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
4756 (grub_elf64_phdr_iterate): Likewise.
4757 * include/grub/i386/bsd.h: Include relocator.h.
4758 (freebsd_tag_header): New struct.
4759 (grub_openbsd_bios_mmap): Removed.
4760 (grub_unix_real_boot): Removed.
4761 (grub_freebsd_load_elfmodule32): Changed prototype.
4762 (grub_freebsd_load_elfmodule_obj64): Likewise.
4763 (grub_freebsd_load_elf_meta32): Likewise.
4764 (grub_freebsd_load_elf_meta64): Likewise.
4765 (grub_freebsd_add_meta): Removed.
4766 (grub_netbsd_load_elf_meta32): New prototype.
4767 (grub_netbsd_load_elf_meta64): Likewise.
4768 (grub_bsd_add_meta): Likewise.
4769 (grub_openbsd_ramdisk_descriptor): New struct.
4770 (grub_openbsd_find_ramdisk32): New prototype.
4771 (grub_openbsd_find_ramdisk64): Likewise.
4772 * include/grub/i386/coreboot/loader.h: Removed.
4773 * include/grub/i386/efi/loader.h: Likewise.
4774 * include/grub/i386/ieee1275/loader.h: Likewise.
4775 * include/grub/i386/linux.h (linux_kernel_header): Change void *
4777 * include/grub/i386/loader.h: Removed.
4778 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
4780 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
4781 (grub_phys_addr_t): New type.
4782 (grub_vtop): New inline function.
4783 (grub_map_memory): Likewise.
4784 (grub_unmap_memory): Likewise.
4785 * include/grub/i386/multiboot/loader.h: Removed.
4786 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
4787 (NETBSD_BTINFO_CONSOLE): New definition.
4788 (NETBSD_BTINFO_SYMTAB): Likewise.
4789 (NETBSD_BTINFO_MODULES): Likewise.
4790 (NETBSD_BTINFO_FRAMEBUF): Likewise.
4791 (grub_netbsd_bootinfo): New struct.
4792 (grub_netbsd_btinfo_common): Use explicit bitsize.
4793 (grub_netbsd_btinfo_mmap_entry): Removed.
4794 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
4795 (grub_netbsd_btinfo_bootdisk): New struct.
4796 (grub_netbsd_btinfo_symtab): Likewise.
4797 (grub_netbsd_btinfo_serial): Likewise.
4798 (grub_netbsd_btinfo_modules): Likewise.
4799 (grub_netbsd_btinfo_framebuf): Likewise.
4800 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
4801 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
4803 (grub_openbsd_bootargs): Use explicit bitsize.
4804 (grub_openbsd_bootarg_console): New struct.
4805 (GRUB_OPENBSD_COM_MAJOR): New definition.
4806 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
4807 * include/grub/i386/pc/efiemu.h: Removed.
4808 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
4809 * include/grub/i386/qemu/loader.h: Removed.
4810 * include/grub/i386/relocator.h: Rewritten.
4811 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
4812 * include/grub/mips/memory.h: New file.
4813 * include/grub/mips/multiboot.h: Rewritten.
4814 * include/grub/mips/relocator.h: Rewritten.
4815 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
4816 (grub_vtop): New function.
4817 (grub_map_memory): Likewise.
4818 (grub_unmap_memory): Likewise.
4819 * include/grub/misc.h (ALIGN_DOWN): New definition.
4820 * include/grub/mm.h (grub_mm_check_real): New proto.
4821 (GRUB_MM_CHECK): New definition.
4822 * include/grub/mm_private.h: New file.
4823 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
4824 (grub_multiboot_get_mbi_size): Removed.
4825 (grub_multiboot_make_mbi): Change prottype.
4826 (grub_multiboot_set_accepts_video): New proto.
4827 (grub_multiboot_add_elfsyms): Likewise.
4828 (grub_multiboot_payload_eip): New variable.
4829 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
4831 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
4833 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
4834 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
4835 * include/grub/powerpc/ieee1275/loader.h: Removed.
4836 * include/grub/powerpc/memory.h: New file.
4837 * include/grub/powerpc/relocator.h: Likewise.
4838 * include/grub/relocator.h: Likewise.
4839 * include/grub/relocator_private.h: Likewise.
4840 * include/grub/sparc64/ieee1275/loader.h: Removed.
4841 * include/grub/x86_64/memory.h: New file.
4842 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
4843 (grub_xnu_heap_malloc): Likewise.
4844 (grub_xnu_heap_real_start): Removed.
4845 (grub_xnu_heap_start): Likewise.
4846 (grub_xnu_relocator): New variable.
4847 (grub_xnu_heap_target_start): Likewise.
4848 * tests/util/grub-shell.in: Support non-pc.
4849 * util/grub-mkimage.c (image_targets): Fix multiboot target.
4851 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4853 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
4855 (grub_bidi_logical_to_visual): Check that malloc succeded.
4856 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
4858 (grub_xputs_normal): Likewise.
4860 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4862 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
4865 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4867 * grub-core/efiemu/runtime/efiemu.sh: Removed.
4869 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4871 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
4873 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
4875 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
4878 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
4880 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
4882 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4884 * grub-core/normal/term.c (print_more): Fix a memory leak.
4885 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
4886 (grub_xputs_normal): Likewise.
4888 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4890 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
4891 the begining of the string
4893 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4895 * grub-core/script/script.c (grub_script_parse): Free parsed on
4898 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4900 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
4903 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4905 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
4908 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4910 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
4911 (scroll_up): Fix a memory leak.
4913 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
4915 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
4918 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
4920 Handle USB pendrives exposed as floppies.
4922 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
4924 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
4925 Check for partitions on all devices.
4927 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
4929 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
4930 (readkey): Likewise.
4932 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
4934 Multiple variable names support to "export" command.
4936 * normal/context.c (grub_cmd_export): "export" command supports
4937 multiple variable names.
4939 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
4941 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
4942 --target=drive output to Mach device name.
4944 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
4946 New Automake based build system for GRUB.
4948 * ABOUT-NLS: New file.
4949 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
4950 in Makefile.util.def file.
4951 * Makefile.util.def: New file. Autogen build definitions file for
4953 * conf/Makefile.common: New file. Common variables for GRUB host
4954 utils and target modules.
4955 * conf/Makefile.extra-dist: New file. Extra files for make dist.
4956 * docs/Makefile.am: New file. Automake file for docs.
4957 * gentpl.py: New file. Python script to generate Autogen
4959 * grub-core/Makefile.am: New file. GRUB target modules' rules
4960 that doesn't fit in Makefile.core.def file.
4961 * grub-core/Makefile.core.def: New file. Autogen build
4962 definitions file for GRUB target modules.
4963 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
4964 specific setjmp.S file.
4965 * po/Makefile.am: New file.
4967 * .bzrignore: New ignores.
4968 * INSTALL: New requirements, without Ruby.
4969 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
4970 * autogen.sh: Updated to invoke autogen as necessary.
4971 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
4972 and defines for Automake conditionals.
4973 * geninit.sh: Refactoring.
4975 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
4977 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
4980 * include/grub/test.h: Fix functional test modules' naming.
4981 * grub-core/tests/example_functional_test.c: Fix test module name.
4983 * util/misc.c: Hosted versions' of grub functions for libgrub.a
4984 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
4985 * util/grub-editenv.c: Likewise.
4986 * util/grub-fstest.c: Likewise.
4987 * util/grub-mkdevicemap.c: Likewise.
4988 * util/grub-mkfont.c: Likewise.
4989 * util/grub-mkimage.c: Likewise.
4990 * util/grub-mkpasswd-pbkdf2.c: Likewise.
4991 * util/grub-probe.c: Likewise.
4992 * util/grub-script-check.c: Likewise.
4993 * util/i386/pc/grub-setup.c: Likewise.
4994 * util/sparc64/ieee1275/grub-setup.c: Likewise.
4996 * tests/util/grub-shell.in: Fix override directory path.
4997 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
4998 * util/import_gcry.py: Create Makefile.gcry.def file instead.
5000 * util/lvm.c: Update #includes.
5001 * util/raid.c: Likewise.
5002 * util/resolve.c: Likewise.
5003 * grub-core/bus/emu/pci.c: Likewise.
5004 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
5005 * grub-core/lib/posix_wrap/string.h: Likewise.
5006 * grub-core/kern/emu/main.c: Likewise.
5008 * grub-core/gensymlist.sh: New file. Script for generating kernel
5010 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
5012 * grub-core/gentrigtables.c: Fix unused variable warnings.
5014 * Makefile.in: Removed.
5015 * conf/any-emu.rmk: Removed.
5016 * conf/common.rmk: Removed.
5017 * conf/i386-coreboot.rmk: Removed.
5018 * conf/i386-efi.rmk: Removed.
5019 * conf/i386-ieee1275.rmk: Removed.
5020 * conf/i386-multiboot.rmk: Removed.
5021 * conf/i386-pc.rmk: Removed.
5022 * conf/i386-qemu.rmk: Removed.
5023 * conf/i386.rmk: Removed.
5024 * conf/mips-yeeloong.rmk: Removed.
5025 * conf/mips.rmk: Removed.
5026 * conf/powerpc-ieee1275.rmk: Removed.
5027 * conf/sparc64-ieee1275.rmk: Removed.
5028 * conf/tests.rmk: Removed.
5029 * conf/x86-efi.rmk: Removed.
5030 * conf/x86_64-efi.rmk: Removed.
5031 * gendistlist.sh: Removed.
5032 * geninitheader.sh: Removed.
5033 * genkernsyms.sh.in: Removed.
5034 * genmk.rb: Removed.
5035 * gensymlist.sh.in: Removed.
5036 * mkinstalldirs: Removed.
5038 * grub-core/boot: ... to here.
5040 * grub-core/bus: ... to here.
5041 * commands: Moved ...
5042 * grub-core/commands: ... to here.
5044 * grub-core/disk: ... to here.
5046 * grub-core/efiemu: ... to here.
5048 * grub-core/font: ... to here.
5050 * grub-core/fs: ... to here.
5051 * gencmdlist.sh: Moved ...
5052 * grub-core/gencmdlist.sh: ... to here.
5053 * genemuinit.sh: Moved ...
5054 * grub-core/genemuinit.sh: ... to here.
5055 * genemuinitheader.sh: Moved ...
5056 * grub-core/genemuinitheader.sh: ... to here.
5057 * genfslist.sh: Moved ...
5058 * grub-core/genfslist.sh: ... to here.
5059 * genhandlerlist.sh: Moved ...
5060 * grub-core/genhandlerlist.sh: ... to here.
5061 * genmoddep.awk: Moved ...
5062 * grub-core/genmoddep.awk: ... to here.
5063 * genmodsrc.sh: Moved ...
5064 * grub-core/genmodsrc.sh: ... to here.
5065 * genpartmaplist.sh: Moved ...
5066 * grub-core/genpartmaplist.sh: ... to here.
5067 * genparttoollist.sh: Moved ...
5068 * grub-core/genparttoollist.sh: ... to here.
5069 * genterminallist.sh: Moved ...
5070 * grub-core/genterminallist.sh: ... to here.
5071 * gentrigtables.c: Moved ...
5072 * grub-core/gentrigtables.c: ... to here.
5073 * genvideolist.sh: Moved ...
5074 * grub-core/genvideolist.sh: ... to here.
5075 * gettext: Moved ...
5076 * grub-core/gettext: ... to here.
5077 * gfxmenu: Moved ...
5078 * grub-core/gfxmenu: ... to here.
5080 * grub-core/gnulib: ... to here.
5082 * grub-core/hello: ... to here.
5084 * grub-core/hook: ... to here.
5086 * grub-core/io: ... to here.
5088 * grub-core/kern: ... to here.
5090 * grub-core/lib: ... to here.
5092 * grub-core/loader: ... to here.
5094 * grub-core/mmap: ... to here.
5096 * grub-core/normal: ... to here.
5097 * partmap: Moved ...
5098 * grub-core/partmap: ... to here.
5099 * parttool: Moved ...
5100 * grub-core/parttool: ... to here.
5102 * grub-core/script: ... to here.
5104 * grub-core/term: ... to here
5105 * tests/example_functional_test.c: Moved ...
5106 * grub-core/tests/example_functional_test.c: ... to here.
5107 * tests/lib/functional_test.c: Moved ...
5108 * grub-core/tests/lib/functional_test.c: ... to here.
5109 * tests/lib/test.c: Moved ...
5110 * grub-core/tests/lib/test.c: ... to here.
5112 * grub-core/video: ... to here.
5114 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
5116 Replace --enable-grub-emu-modules with grub-emu-lite.
5118 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
5121 * include/grub/emu/misc.h (grub_emu_init): New prototype.
5122 * kern/emu/full.c: New file. For grub-emu specific initialization.
5123 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
5124 * kern/emu/main.c: Call initialization function grub_emu_init.
5126 * Makefile.in: Include grub-emu-lite in install.
5127 * commands/parttool.c: Use grub_no_autoload to differentiate
5128 between grub-emu and grub-emu-lite.
5129 * include/grub/misc.h: New variable grub_no_autoload.
5131 * conf/any-emu.rmk: New rules for grub-emu-lite.
5132 * configure.ac: Remove --enable-grub-emu-modules.
5133 * genmk.rb: Cleanup unnecessary rules.
5134 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
5136 * normal/main.c: Don't load list files on grub-emu-lite.
5137 * util/misc.c (grub_arch_sync_caches): Removed.
5139 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
5141 * kern/mips/startup.S (grub_prefix): Update comment to refer to
5142 grub-mkimage rather than grub-mkelfimage.
5143 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
5145 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
5147 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
5148 a key after CapsLock or NumLock. It's just a qemu bug.
5150 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5152 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
5153 needed by libusb wrapper.
5155 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
5157 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
5159 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
5161 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
5162 --nounzip is passed.
5164 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
5166 USB hotunplugging and USB serial support.
5168 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
5169 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
5170 (grub_uhci_transfer): Respect timeout and set *actual.
5171 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
5172 non-standard length.
5173 (grub_usb_device_attach): Autoload modules.
5174 (GRUB_MOD_INIT): Set grub_term_poll_usb.
5175 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
5176 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
5178 (grub_usb_add_hub): Fill nports and children.
5179 (attach_root_port): Receive hub instead of controller.
5180 All users updated. Fill hub->devices.
5181 (grub_usb_root_hub): Allocate hub->devices.
5182 (detach_device): New function.
5183 (poll_nonroot_hub): Fill children and detach devices.
5184 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
5185 actual arguments. All users updated.
5186 (grub_usb_bulk_read_extended): New function.
5187 * bus/usb/serial/common.c: New file.
5188 * bus/usb/serial/ftdi.c: Likewise.
5189 * bus/usb/serial/pl2303.c: Likewise.
5190 * commands/terminal.c (handle_command): Support wildcard.
5191 * commands/usbtest.c: Output "Unknown" instead of empty string.
5192 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
5193 (usbserial_common_mod_SOURCES): New variable.
5194 (usbserial_common_mod_CFLAGS): Likewise.
5195 (usbserial_common_mod_LDFLAGS): Likewise.
5196 (pkglib_MODULES): Add usbserial_pl2303.mod.
5197 (usbserial_pl2303_mod_SOURCES): New variable.
5198 (usbserial_pl2303_mod_CFLAGS): Likewise.
5199 (usbserial_pl2303_mod_LDFLAGS): Likewise.
5200 (pkglib_MODULES): Add usbserial_ftdi.mod.
5201 (usbserial_ftdi_mod_SOURCES): New variable.
5202 (usbserial_ftdi_mod_CFLAGS): Likewise.
5203 (usbserial_ftdi_mod_LDFLAGS): Likewise.
5204 (pkglib_MODULES): Add serial.mod.
5205 (serial_mod_SOURCES): New variable.
5206 (serial_mod_CFLAGS): Likewise.
5207 (serial_mod_LDFLAGS): Likewise.
5208 * conf/i386-pc.rmk: Likewise.
5209 * conf/mips-yeeloong.rmk: Likewise.
5210 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
5211 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
5212 * disk/usbms.c (first_available_slot): New variable.
5213 (grub_usbms_attach): Don't reuse free slots due to potential cache
5215 * include/grub/serial.h: Moved to ..
5216 * include/grub/ns8250.h: ...this.
5217 * include/grub/serial.h: New file.
5218 * include/grub/term.h (grub_term_poll_usb): New variable.
5219 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
5220 readkey. All users updated.
5221 (grub_terminfo_output_state): Pass term to put.
5222 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
5223 (grub_usb_controller_dev): Add timeout and actual arguments to
5224 transfer. All users updated.
5225 (grub_usb_interface): New field detach_data.
5226 (grub_usb_device): New fields children and nports.
5227 (grub_usb_ep_type_t): New type.
5228 (grub_usb_get_ep_type): New function.
5229 (grub_usb_bulk_read_extended): Likewise.
5230 * include/grub/usbdesc.h (grub_usb_desc): New type.
5231 * include/grub/usbserial.h: New file.
5232 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
5233 * kern/term.c (grub_term_poll_usb): New variable.
5234 (grub_getkey): Call grub_term_poll_usb if set.
5235 (grub_checkkey): Likewise.
5236 (grub_getkeystatus): Likewise.
5237 * term/serial.c: Moved controller-specific parts to ...
5238 * term/ns8250.c: ... here.
5239 * term/serial.c: Mostly rewritten.
5240 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
5243 2010-08-20 Robert Millan <rmh@gnu.org>
5245 Make kFreeBSD code more generic to support ext2fs as root, ufs as
5246 a separate module and maybe other interesting combinations.
5248 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
5249 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
5250 (kfreebsd_entry): Add generic filesystem module load routine.
5251 Map GRUB `ext2' to kFreeBSD `ext2fs'.
5253 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
5255 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
5256 "numcenter" (I misunderstood the purpose of this entry).
5257 * docs/grub.texi (sendkey): Likewise.
5259 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
5261 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
5262 status flag options; simply omitting the option is equivalent and
5263 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
5264 (keysym_table): Rename "num5numlock" to "numlock".
5265 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
5266 can uniformly say that only the last of multiple `sendkey'
5267 invocations has any effect.
5268 * docs/grub.texi (sendkey): New section.
5270 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
5272 * commands/i386/pc/sendkey.c (options): Fix three typos.
5274 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
5276 Implement sendkey support.
5278 * commands/i386/pc/sendkey.c: New file.
5279 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
5280 (sendkey_mod_SOURCES): New variable.
5281 (sendkey_mod_CFLAGS): Likewise.
5282 (sendkey_mod_LDFLAGS): Likewise.
5284 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
5286 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
5287 fix warnings from Autoconf.
5289 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
5291 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
5292 to avoid false positives with some assemblers that output things
5293 like "someprefix_func" as part of their output.
5295 2010-08-15 Robert Millan <rmh@gnu.org>
5297 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
5299 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
5300 grub_get_libzfs_handle() errors.
5302 2010-08-14 Robert Millan <rmh@gnu.org>
5304 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
5305 filesystem is not ZFS.
5307 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5309 Fix for misspelled color names defaulting to black/black (bug
5310 reported by Doug Nazar)
5312 * include/grub/normal.h (grub_parse_color_name_pair): Add return
5313 status to prototype.
5314 * normal/color.c (grub_parse_color_name_pair): Return failure
5316 (grub_env_write_color_normal): Ignore bad color names.
5317 (grub_env_write_color_highlight): Likewise.
5318 * normal/main.c (GRUB_MOD_INIT): Set default color names.
5320 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5322 "shift" command support to GRUB script.
5324 * include/grub/script_sh.h (grub_script_shift): New prototype.
5325 * script/execute.c (grub_script_shift): New function.
5326 * script/main.c (grub_script_init): Register shift command.
5327 (grub_script_fini): Unregister shift command.
5328 * util/grub-script-check.c (grub_script_cmd_shift): New function.
5330 * tests/grub_script_shift.in: New testcase.
5331 * conf/tests.rmk: Rules for new testcase.
5333 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5335 "continue" command support to GRUB script.
5337 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
5338 (grub_script_break): Continue support.
5339 * script/main.c (grub_script_init): Register continue command.
5340 (grub_script_fini): Unregister continue command.
5342 * tests/grub_script_continue.in: New testcase.
5343 * conf/tests.rmk: Rules for new testcase.
5345 2010-08-12 BVK Chaitanya <bvk@dbook>
5347 "break" command support to GRUB script.
5349 * conf/common.rmk: Rule updates to grub-script-check.
5350 * include/grub/misc.h (grub_min): New function.
5351 * include/grub/script_sh.h (grub_script_init): New prototype.
5352 (grub_script_fini): New prototype.
5353 (grub_script_break): New prototype.
5354 * script/main.c (grub_script_init): New function.
5355 (grub_script_fini): New function.
5356 * script/execute.c (grub_script_break): New function.
5357 * normal/main.c: Calls to grub_script_{init,fini}.
5358 * util/grub-script-check.c (grub_script_break): New function.
5360 * tests/grub_script_break.in: New testcase.
5361 * conf/tests.rmk: Rules for new test case.
5363 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5365 Function parameters support to GRUB script.
5367 * script/yylex.l (VARIABLE): Regular expression update.
5368 * script/function.c (grub_script_function_call): Moved ...
5369 * script/execute.c (grub_script_function_call): ... to here.
5370 (grub_script_execute_arglist_to_argv): Removed.
5371 (grub_script_arglist_to_argv): New function.
5372 * script/argv.c: New file.
5373 (grub_script_argv_free): New function.
5374 (grub_script_argv_next): Likewise.
5375 (grub_script_argv_append): Likewise.
5376 (grub_script_argv_split_append): Likewise.
5377 * include/grub/script_sh.h (grub_script_argv): New struct.
5378 (grub_script_argv_free): New function.
5379 (grub_script_argv_next): Likewise.
5380 (grub_script_argv_append): Likewise.
5381 (grub_script_argv_split_append): Likewise.
5383 * conf/common.rmk (normal.mod): New source script/argv.c.
5385 * tests/grub_script_echo1.in: More tests.
5386 * tests/grub_script_vars1.in: Likewise.
5387 * tests/grub_script_functions.in: New test case.
5388 * conf/tests.rmk: Rules for new testcase.
5390 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
5392 Remove grub_script_cmdblock struct.
5394 * include/grub/script_sh.h: Remove grub_script_cmdblock.
5395 * script/parser.y: Likewise.
5396 * script/execute.c: Rename cmdblock suffix to cmdlist.
5397 * script/script.c: Likewise.
5398 * util/grub-script-check.c: Likewise.
5400 2010-08-11 Yves Blusseau <blusseau@zetam.org>
5402 * .bzrignore: add grub-macho2img
5404 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
5406 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
5408 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
5410 Remove the dump of sm712 initialisation sequence.
5412 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
5413 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
5414 (GRUB_VGA_IO_MISC_WRITE): Likewise.
5415 (GRUB_VGA_CR_*): Added many registers.
5416 (GRUB_VGA_SR_*): Likewise.
5417 (GRUB_VGA_GR_*): Likewise.
5418 (grub_vga_write_arx): New function.
5419 (grub_video_hw_config): New struct.
5420 (grub_vga_set_geometry): New function.
5421 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
5422 GRUB_PCI_CLASS_SUBCLASS_VGA.
5423 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
5424 * video/sm712.c (grub_sm712_write_reg): New function
5425 (grub_sm712_read_reg): Likewise.
5426 (grub_sm712_sr_write): Likewise.
5427 (grub_sm712_gr_write): Likewise.
5428 (grub_sm712_cr_write): Likewise.
5429 (grub_sm712_write_arx): Likewise.
5430 (grub_sm712_cr_shadow_write): Likewise.
5431 (grub_sm712_write_dda_lookup): Likewise.
5432 (grub_video_sm712_setup): Initialise the video rather then
5433 blindly replay the dump.
5434 (main) [TEST]: Add a routine to be able to compile as standalone for
5436 * video/sm712_init.c (sm712_init): Removed.
5437 (sm712_sr_seq1): New array.
5438 (sm712_sr_seq2): Likewise.
5440 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
5442 * include/grub/vga.h: Add missing grub/pci.h include.
5444 2010-08-10 Yves Blusseau <blusseau@zetam.org>
5446 * util/grub-macho2img.c (main): fix typo
5448 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
5450 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
5451 (grub_vga_gr_read): Likewise.
5452 (grub_vga_cr_write): Likewise.
5453 (grub_vga_cr_read): Likewise.
5454 (grub_vga_sr_write): Likewise.
5455 (grub_vga_sr_read): Likewise.
5456 (grub_vga_palette_read): Likewise.
5457 (grub_vga_palette_write): Likewise.
5458 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
5459 (grub_sm712_sr_read): New function.
5460 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
5461 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
5463 2010-08-09 Robert Millan <rmh@gnu.org>
5465 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
5466 out unused variables on non-ZFS build.
5468 2010-08-08 Robert Millan <rmh@gnu.org>
5470 Fix path generation for sub-filesystems in ZFS.
5472 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
5475 2010-08-08 Robert Millan <rmh@gnu.org>
5477 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
5479 2010-08-08 Robert Millan <rmh@gnu.org>
5481 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
5482 exist, issue a proper error message (rely on `ls' for translated
5485 2010-08-08 Robert Millan <rmh@gnu.org>
5487 Fix grub-probe invocation.
5489 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
5491 2010-08-04 Robert Millan <rmh@gnu.org>
5493 * configure.ac: Remove checks for getfsstat() and getmntany().
5494 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
5495 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
5496 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
5497 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
5498 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
5500 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
5501 via find_mount_point_from_dir() and getfsstat() / getmntany().
5503 2010-08-04 Robert Millan <rmh@gnu.org>
5505 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
5506 (grub_find_zpool_from_mount_point): Merge into ...
5507 (grub_find_zpool_from_dir): ... this.
5508 * kern/emu/misc.c: Likewise.
5511 (grub_make_system_path_relative_to_its_root): Replace
5512 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
5513 with grub_find_zpool_from_dir().
5514 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
5516 2010-08-04 Robert Millan <rmh@gnu.org>
5518 Support OpenSolaris in ZFS device resolution.
5520 * configure.ac: Check for getmntany().
5521 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
5522 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
5525 2010-08-03 Robert Millan <rmh@gnu.org>
5529 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
5530 * include/grub/emu/misc.h: ... here.
5532 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
5533 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
5535 * util/misc.c: Remove `<grub/util/libzfs.h>'.
5536 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
5537 (grub_get_libzfs_handle): Move to ...
5538 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
5539 (grub_get_libzfs_handle): ... here.
5541 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
5543 * script/execute.c (grub_script_execute_cmdline): Check for NULL
5544 as command name case.
5546 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
5548 * disk/raid.c (insert_array): Select unique numbers for named arrays
5549 as well, for use as keys in the disk cache.
5551 2010-08-01 Robert Millan <rmh@gnu.org>
5553 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
5554 kFreeBSD device name, except on ZFS where the filesystem label is
5556 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
5557 `/boot/zfs/zpool.cache'.
5558 Set mountfrom kernel variable using ${kfreebsd_device}.
5560 2010-08-01 Robert Millan <rmh@gnu.org>
5562 Make it even harder to use uninitialized `libzfs_handle' (and
5563 make the interface a bit simpler).
5565 * include/grub/util/misc.h (grub_util_init_libzfs)
5566 (libzfs_handle): Remove.
5567 (grub_get_libzfs_handle): New prototype.
5569 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
5571 (grub_util_init_libzfs): Remove.
5572 (grub_get_libzfs_handle): New function.
5574 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
5575 grub_get_libzfs_handle() to obtain a libzfs handle instead of
5576 accessing `libzfs_handle' directly.
5578 2010-08-01 Robert Millan <rmh@gnu.org>
5580 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
5581 (grub_find_zpool_from_mount_point): New function prototypes.
5583 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
5584 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
5586 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
5587 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
5590 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
5591 finding zpool from mount point into ...
5592 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
5594 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
5595 requested path is part of a ZFS pool, use
5596 grub_find_zpool_from_mount_point() to detect its filesystem name,
5597 and generate a path with `/fsname@path' syntax.
5599 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5601 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
5602 (void) rather than () so that this is a proper prototype.
5604 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
5606 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
5608 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
5610 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
5611 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
5613 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5615 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
5617 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5619 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
5621 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5623 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
5624 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
5625 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
5627 (Shell-like scripting): Add real content.
5628 (Serial terminal): Suggest `terminal_input serial; terminal_output
5629 serial' rather than putting the two commands on separate lines,
5630 since console input will be inoperative after the first command.
5631 (menuentry): Document --class, --users, and --hotkey options.
5632 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
5633 Vladimir Serbinenko).
5635 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
5636 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5638 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
5640 2010-08-01 Robert Millan <rmh@gnu.org>
5642 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
5643 (grub_find_zpool_from_mount_point): New function prototypes.
5645 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
5646 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
5648 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
5649 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
5652 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
5653 finding zpool from mount point into ...
5654 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
5656 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
5657 requested path is part of a ZFS pool, use
5658 grub_find_zpool_from_mount_point() to detect its filesystem name,
5659 and generate a path with `/fsname@path' syntax.
5661 2010-08-01 Robert Millan <rmh@gnu.org>
5663 Prevent accidental use of uninitialized libzfs_handle.
5665 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
5666 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
5667 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
5669 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
5671 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
5672 util/grub.d/10_linux.in). Fixes Debian bug #591093.
5674 2010-08-01 Robert Millan <rmh@gnu.org>
5676 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
5678 2010-07-31 Robert Millan <rmh@gnu.org>
5680 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
5682 2010-07-31 Robert Millan <rmh@gnu.org>
5684 * kern/emu/misc.c: Add missing license header.
5686 2010-07-31 Robert Millan <rmh@gnu.org>
5688 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
5690 * include/grub/util/libnvpair.h: Include `<config.h>'.
5691 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
5692 declaring libnvpair prototypes ourselves.
5693 * include/grub/util/libzfs.h: Include `<config.h>'.
5694 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
5695 declaring libzfs prototypes ourselves.
5697 (libzfs_handle): Moved to ...
5698 * include/grub/util/misc.h (libzfs_handle): ... here.
5699 Include `<grub/util/libzfs.h>'.
5701 2010-07-30 Robert Millan <rmh@gnu.org>
5703 * include/grub/emu/misc.h: Add missing license header.
5705 2010-07-30 Robert Millan <rmh@gnu.org>
5707 Enable `grub-probe -t device' resolution on ZFS.
5709 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
5710 * include/grub/util/libnvpair.h: New file.
5711 * include/grub/util/libzfs.h: New file.
5713 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
5714 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
5715 `<grub/util/libnvpair.h>'.
5716 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
5718 (find_mount_point_from_dir): New static function.
5719 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
5721 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
5722 find_root_device_from_libzfs() before ressorting to find_root_device().
5724 * include/grub/util/misc.h (grub_util_init_libzfs): New function
5726 * util/misc.c: Include `<grub/util/libzfs.h>'.
5727 (grub_util_init_libzfs): New function.
5728 [HAVE_LIBZFS] (libzfs_handle): New global variable.
5729 [HAVE_LIBZFS] (fini_libzfs): New static function.
5730 (grub_util_init_libzfs): New function.
5731 * util/grub-probe.c (main): Call grub_util_init_libzfs().
5733 2010-07-30 Robert Millan <rmh@gnu.org>
5735 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
5736 (xmalloc, xrealloc, xstrdup, xasprintf): Add
5737 `warn_unused_result' attribute.
5738 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
5739 (grub_xasprintf, grub_xvasprintf): Likewise.
5740 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
5742 2010-07-29 Robert Millan <rmh@gnu.org>
5744 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
5745 (probe): Handle `PRINT_FS_LABEL'.
5746 (main): Handle `-t fs_label'.
5748 2010-07-29 Robert Millan <rmh@gnu.org>
5750 * configure.ac: Remove grub-mkisofs checks.
5752 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
5754 * util/ieee1275/grub-install.in: Don't use empty grub_device.
5755 Reported by: Lennart Sorensen.
5757 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5759 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
5760 prior to terminal_input/terminal_output separation. It's been over 1.5
5761 years and those versions weren't widely deployed.
5763 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
5765 * disk/raid.c (insert_array): Don't count named arrays when looking
5766 for unused array numbers.
5767 Reported and tested by: Michael Guntsche.
5769 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5771 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
5772 implementation of this so that grub-emu links again, with a note
5773 that this should support hotplugging in the future.
5775 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5777 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
5779 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5781 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
5783 (grub_loopback_close): Remove empty function.
5784 (grub_loopback_dev): Remove close method.
5786 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5788 Disable EFI cursor when the EFI console becomes inactive.
5790 * term/efi/console.c (grub_efi_console_init): New function.
5791 (grub_efi_console_fini): New function.
5792 (grub_console_term_output): Register init and fini methods.
5794 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5796 * tests/util/grub-shell-tester.in: Remove bashism and declare as
5799 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5801 * disk/loopback.c (grub_loopback): Replace filename with file.
5802 (delete_loopback): Handle new semantics.
5803 (grub_cmd_loopback): Likewise.
5804 (grub_loopback_iterate): Likewise.
5805 (grub_loopback_close): Likewise.
5807 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5809 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
5811 Reported by: Tito Keitel.
5813 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5815 * docs/grub.texi (Naming convention): Document new naming convention.
5817 2010-07-20 Vadim Solomin <vadic052@gmail.com>
5818 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5820 Generate device.map in something closer to the old ordering.
5822 * util/deviceiter.c (struct device): New declaration.
5823 (compare_file_names): Rename to ...
5824 (compare_devices): ... this. Sort by kernel name in preference to
5825 the stable by-id name, but keep the latter as a fallback comparison.
5826 Update header comment.
5827 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
5828 of `struct device' rather than of plain file names.
5830 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
5832 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
5835 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
5837 * commands/acpi.c (setup_common_tables): Use sizeof instead of
5839 (setv1table): Likewise.
5841 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5843 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
5844 removing the homehost if present.
5845 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
5846 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
5847 removing the homehost if present.
5848 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
5850 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
5852 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
5853 parameter. Set its pointer target to 0.
5854 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
5855 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
5856 `data_offset' value from the superblock for 1.x metadata.
5857 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
5859 (insert_array): Record the start sector of data on the device.
5860 (grub_raid_register): Pass start_sector parameters to
5861 grub_raid_list->detect and insert_array.
5862 * include/grub/raid.h (struct grub_raid_array): Add start_sector
5864 (struct grub_raid): Add start_sector parameter to `detect'.
5866 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
5867 __attribute__ ((packed)), leaving a comment.
5868 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
5869 (grub_mdraid_detect_09): ... here and ...
5870 (grub_mdraid_detect_1x): ... here.
5872 2010-07-20 Peter Henn <peter.henn@web.de>
5874 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
5875 chunk size and disk size, which are already given as sector counts
5876 as distinct from the 0.90 units. Fetch the correct device number
5877 from the role table instead of using the table index.
5879 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
5881 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
5882 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
5883 (WriteMostly1): New macro.
5884 Set array->name to NULL for metadata format 0.90. Add support for
5885 metadata 1.x. Fix some comments.
5886 * disk/raid.c (): Add support for name based RAID arrays. Fix a
5888 * util/getroot.c (grub_util_get_grub_dev): Add support for
5889 /dev/md/name style devices.
5891 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
5893 * .bzrignore: Ignore 20_linux_xen.
5895 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
5897 * util/import_unicode.py: Remove unnecessary imports.
5899 2010-07-17 Aleš Nesrsta <starous@volny.cz>
5901 Hotplugging and USB hub support.
5903 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
5904 (grub_ohci): Likewise.
5905 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
5906 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
5907 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
5908 (GRUB_OHCI_CTRL_EDS): Likewise.
5909 (GRUB_OHCI_BULK_EDS): Likewise.
5910 (GRUB_OHCI_TDS): Likewise.
5911 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
5912 (grub_ohci_ed_phys2virt): New function.
5913 (grub_ohci_virt_to_phys): Likewise.
5914 (grub_ohci_td_phys2virt): Likewise.
5915 (grub_ohci_td_virt2phys): Likewise.
5916 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
5918 (grub_ohci_find_ed): New function.
5919 (grub_ohci_alloc_td): Likewise.
5920 (grub_ohci_free_td): Likewise.
5921 (grub_ohci_free_tds): Likewise.
5922 (grub_ohci_transfer): Use previously allocated memory.
5923 (grub_ohci_portstatus): Reset status changed bit.
5924 (grub_ohci_detect_dev): Supply status changed.
5925 (grub_ohci_fini_hw): Free memory.
5926 (grub_ohci_restore_hw): Reallocate memory.
5927 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
5928 Reset status change.
5929 (grub_uhci_detect_dev): Supply status_change.
5930 * bus/usb/usb.c (attach_hooks): New var.
5931 (grub_usb_device_attach): New function.
5932 (grub_usb_register_attach_hook_class): Likewise.
5933 (grub_usb_unregister_attach_hook_class): Likewise.
5934 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
5935 (grub_usb_add_hub): Reset connection changed bit.
5936 (attach_root_port): New function.
5937 (grub_usb_root_hub): Likewise.
5938 (poll_nonroot_hub): Likewise.
5939 (grub_usb_poll_devices): Likewise.
5940 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
5941 * disk/usbms.c (grub_usbms_open): Use device hooks.
5942 (grub_usbms_iterate) :Poll devices.
5943 (grub_usbms_finddevs): Split into ...
5944 (grub_usbms_attach): ... this ...
5945 (grub_usbms_attach): ... and this.
5946 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
5948 (grub_usb_interface): New fields attached and detach_hook.
5949 (grub_usb_attach_hook_class): New type.
5950 (grub_usb_attach_desc): New struct.
5951 (grub_usb_register_attach_hook_class): New function.
5952 (grub_usb_unregister_attach_hook_class): Likewise.
5953 (grub_usb_poll_devices): Likewise.
5954 (grub_usb_device_attach): Likewise.
5955 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
5956 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
5958 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5960 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
5961 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
5962 delta determination style. Works with most NetBSD partitions too.
5964 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5966 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
5967 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
5969 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
5971 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
5973 2010-07-14 Anton Blanchard <anton@samba.org>
5975 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
5978 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5980 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
5982 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
5984 * kern/partition.c (grub_partition_check_containment): New function to
5985 check that a partition is physically contained in a parent. Since
5986 offsets are relative (and non-negative), this reduces to checking that
5987 the partition ends before its parent.
5988 (grub_partition_map_probe): Discard out-of-range sub-partitions.
5989 (grub_partition_iterate): Likewise.
5990 * include/grub/partition.h (grub_partition_map): Slightly more detailed
5992 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
5993 partitions that start before their parent, and add debug printfs.
5995 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
5997 * Makefile.in (.SUFFIX): Spell correctly, as ...
5998 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
5999 bare module name without `.mod', e.g. `test') tried to invoke a
6002 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
6004 * README: Point to the Info manual.
6006 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
6008 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
6009 2nd superblock position from partition size.
6011 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
6013 * Makefile.in (MAINTAINER_CLEANFILES): Remove
6014 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
6015 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
6018 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6020 Restructure SCSI .id handling.
6021 Reported and tested by: Aleš Nesrsta.
6023 * disk/ata.c (grub_atapi_close): Removed. All users updated.
6024 (grub_atapi_dev): Changed .name to "ata". New field .id.
6025 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
6026 (grub_usbms_dev): New field .id.
6027 * disk/scsi.c (grub_scsi_iterate): Generate name.
6028 (grub_scsi_open): Parse name.
6029 * include/grub/scsi.h (grub_make_scsi_id): New function.
6030 (grub_scsi_dev): Change iterate and open to number instead of naming
6031 busses. All users updated.
6032 (grub_scsi): Remove name. Add .bus.
6034 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6036 * commands/help.c (grub_cmd_help): Fix a typo.
6038 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6040 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
6041 Reported and tested by: Colin Watson.
6043 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
6045 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
6048 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
6050 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
6052 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
6054 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
6057 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6059 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
6060 and disk/raid6_recover.c.
6061 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
6062 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
6064 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6066 * term/gfxterm.c (repaint_schedulded): Rename to ...
6067 (repaint_scheduled): ... this. Update all callers.
6068 (repaint_was_schedulded): Rename to ...
6069 (repaint_was_scheduled): ... this. Update all callers.
6071 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6073 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
6074 which we expect to be handled by upper layers.
6076 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
6078 * bus/usb/usbhub.c: #include time.h header.
6080 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6082 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
6083 entry_name also for entries without stat blocks (e.g. ".."); fixes
6084 corruption of the first entry in a directory.
6086 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
6088 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
6089 after setting gfxterm as the active terminal. GRUB_BACKGROUND
6090 doesn't work otherwise.
6092 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
6094 * docs/grub.texi (Features): Update list of supported file systems.
6095 (GNU/Linux): Update for GRUB 2.
6096 (Serial terminal): Remove mention of --disable-serial, which was a
6097 GRUB Legacy configure option. Update instructions to use
6098 `terminal_input' and `terminal_output' rather than `terminal'.
6099 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
6100 configuration' and `Installing GRUB using grub-install'.
6101 (Menu entry editor): Update for GRUB 2.
6102 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
6103 Document new -a, -u, and -v options.
6104 (initrd): New section.
6105 (initrd16): New section.
6106 (linux): New section.
6107 (linux16): New section.
6108 (search): The `var' argument to `--set' is optional.
6109 (GRUB only offers a rescue shell): Go into a little more detail on
6112 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
6114 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
6116 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
6118 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
6119 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
6121 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
6123 * util/i386/pc/grub-setup.c (setup): Rename prefix to
6124 install_prefix, in line with install_dos_part and install_bsd_part.
6125 Add new prefix variable, which is copied to install_prefix after
6126 comparing core.img in memory with the one read from disk in the
6127 no-embedding case, and use that rather than overwriting
6128 install_prefix immediately when installing to a partition.
6129 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
6132 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
6134 * configure.ac: Avoid == in test command, it's not portable.
6135 * util/grub.d/30_os-prober.in: Likewise.
6137 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
6139 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
6141 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
6143 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
6144 multiple (top-level) partmaps.
6146 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6148 * util/i386/efi/grub-install.in: Don't use empty grub_device.
6149 Reported by: Tino Keitel.
6151 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6153 Bidi and diacritics support.
6155 * Makefile.in (widthspec.bin): New target.
6156 (widthspec.h): Likewise.
6157 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
6158 * autogen.sh: Generate unidata.c.
6159 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
6160 * commands/ls.c (grub_ls_list_devices): Likewise.
6161 (grub_ls_list_files): Likewise.
6162 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
6163 (grub_mini_cmd_lsmod): Likewise.
6164 * commands/read.c: Likewise.
6165 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
6166 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
6167 * lib/arg.c (grub_arg_show_help): Likewise.
6168 * lib/crypto.c (grub_password_get): Likewise.
6169 * normal/auth.c (grub_username_get): Likewise.
6170 * normal/misc.c (grub_normal_print_device_info): Likewise.
6171 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
6172 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
6173 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
6174 (normal/charset.c_DEPENDENCIES): New variable.
6175 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
6176 (pkglib_MODULES): Remove charset.mod.
6177 (charset_mod_SOURCES): Removed.
6178 (charset_mod_CFLAGS): Likewise.
6179 (charset_mod_LDFLAGS): Likewise.
6180 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
6181 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
6183 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6184 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
6185 (kernel_img_HEADERS): Add terminfo.h.
6186 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
6187 Fill ->font. Reverse ascii bitmaps.
6188 (grub_font_get_xheight): New function.
6189 * font/font.c (grub_font_get_string_width): Moved from here ...
6190 * gfxmenu/font.c (grub_font_get_string_width): ... here.
6191 * font/font.c (grub_font_draw_string): Moved from here ...
6192 * gfxmenu/font.c (grub_font_draw_string): ... here.
6193 * font/font.c (grub_font_dup_glyph): New function.
6194 (grub_font_blit_glyph): Likewise.
6195 (grub_font_blit_glyph_mirror): Likewise.
6196 (blit_comb): Likewise.
6197 (grub_font_construct_dry_run): Likewise.
6198 (grub_font_get_constructed_device_width): Likewise.
6199 (grub_font_construct_glyph): Likewise.
6200 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
6201 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
6202 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
6203 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
6204 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
6205 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
6206 (grub_font_get_xheight): New proto.
6207 (grub_font_get_constructed_device_width): Likewise.
6208 (grub_font_construct_glyph): Likewise.
6209 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
6210 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
6211 * include/grub/font.h (grub_font_draw_string): Moved from here ...
6212 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
6213 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
6214 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
6215 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
6216 (grub_console_getcharwidth): Likewise.
6217 * include/grub/misc.h (grub_xputs): New proto.
6218 (grub_puts): Inlined.
6219 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
6220 (grub_normal_get_line_counter): Removed.
6221 (grub_install_newline_hook): Likewise.
6222 (grub_normal_get_char_counter): New proto.
6223 (grub_normal_reset_more): Likewise.
6224 (grub_xputs_normal): Likewise.
6225 * include/grub/powerpc/ieee1275/console.h: Removed.
6226 * include/grub/sparc64/ieee1275/console.h: Likewise.
6227 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
6228 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
6229 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
6230 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
6231 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
6232 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
6233 (grub_term_input): Pass reference to self. All users updated.
6234 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
6235 Pass reference to self. New fields normal_color, highlight_color and
6236 data. All users updated.
6237 (grub_putchar): Removed.
6238 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
6239 (grub_unicode_estimate_width): New function.
6240 (grub_term_getcharwidth): Add defaults.
6241 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
6242 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
6243 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
6244 (grub_cls): Remove EXPORT_FUNC.
6245 (grub_setcolorstate): Inline.
6246 (grub_newline_hook): Removed.
6247 * include/grub/terminfo.h: Rewritten. All users updated.
6248 * include/grub/unicode.h: New file.
6249 * include/grub/video.h (grub_video_signed_rect): New type.
6250 * kern/emu/console.c (grub_console_highlight_color): Removed.
6251 (grub_console_normal_color): Likewise.
6252 (grub_console_standard_color): Made static.
6253 (grub_ncurses_putchar): Remove mapping.
6254 (grub_ncurses_getcharwidth): Removed.
6255 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
6256 (grub_ncurses_setcolor): Removed.
6257 (grub_ncurses_getcolor): Likewise.
6258 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
6259 (grub_console_putchar): ... this.
6260 (grub_console_putchar): Handle argument difference.
6261 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
6262 console_init_early and console_init_lately.
6263 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
6264 * kern/misc.c (grub_puts): Removed.
6265 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
6266 (grub_vsnprintf_real): Remove str = NULL support.
6267 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
6268 * normal/charset.c (grub_utf8_to_ucs4): ... here.
6269 * kern/term.c (grub_putcode): Renamed to ...
6270 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
6271 (grub_putchar): Removed.
6272 (grub_xputs_dumb): New function.
6273 (grub_xputs): New variable.
6274 * lib/charset.c: Move from here ...
6275 * normal/charset.c: ... to here.
6276 (grub_ucs4_to_utf8): New function.
6277 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
6278 (join_types): New variable.
6279 (unpack_join): New function.
6280 (bidi_types): New variable.
6281 (unpack_bidi): New function.
6282 (get_bidi_type): Likewise.
6283 (get_join_type): Likewise.
6284 (is_mirrored): Likewise.
6285 (grub_unicode_get_comb_type): Likewise.
6286 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
6287 (is_type_after): Likewise.
6288 (grub_unicode_aglomerate_comb): Likewise.
6289 (bidi_line_wrap): Likewise.
6290 (grub_bidi_line_logical_to_visual): Likewise.
6291 (grub_bidi_logical_to_visual): Likewise.
6292 (grub_unicode_mirror_code): Likewise.
6293 (grub_unicode_shape_code): Likewise.
6294 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
6295 Don't use grub_putchar.
6296 * normal/main.c (grub_normal_init_page): Use grub_putcode.
6297 (grub_normal_reader_init): Likewise.
6298 (grub_xputs_saved): New variable.
6299 (GRUB_MOD_INIT): Set grub_xputs.
6300 (GRUB_MOD_FINI): Restore grub_xputs.
6301 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
6302 (menu_init): Avoid printing gfxmenu error.
6303 (show_menu): Use grub_normal_get_char_counter.
6304 * normal/menu_entry.c (update_screen): Fix out-of-array.
6305 (complete): Avoid NULL dereferencing.
6306 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
6307 * normal/menu_text.c (print_spaces): Removed.
6308 (grub_print_ucs4): Likewise.
6309 (grub_print_message_indented): Use grub_print_ucs4.
6310 (print_message): Use grub_putcode.
6311 (print_entry): Hanlde diacritics.
6312 * normal/term.c (term_state): New type.
6313 (grub_more_lines): Removed.
6314 (term_states): New variable.
6315 (grub_normal_line_counter): Renamed to ..
6316 (grub_normal_char_counter): ...this. All users updated.
6317 (grub_normal_get_line_counter): Renamed to ...
6318 (grub_normal_get_char_counter): ... this.
6319 (grub_normal_reset_more): New function.
6320 (process_newline): Removed.
6321 (print_more): New function.
6322 (grub_install_newline_hook): Removed.
6323 (map_code): New function.
6324 (grub_puts_terminal): Use grub_print_ucs4.
6325 (putglyph): New function.
6326 (putcode_real): Likewise.
6327 (grub_putcode): Use putcode_real.
6328 (get_maxwidth): New function.
6329 (get_startwidth): Likewise.
6330 (print_ucs4_terminal): Likewise.
6331 (find_term_state): Likewise.
6332 (put_glyphs_terminal): Likewise.
6333 (print_backlog): Likewise.
6334 (print_ucs4_real): Likewise.
6335 (grub_print_ucs4): Likewise.
6336 (grub_xputs_normal): Likewise.
6337 * term/efi/console.c (grub_console_putchar): Output diacritics.
6338 (grub_console_getcharwidth): Removed.
6339 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
6340 * term/gfxterm.c (clear_char): Free chars.
6341 (scroll_up): Avoid leaking memory.
6342 (grub_gfxterm_putchar): Support diacritics.
6343 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
6344 * term/i386/pc/console.c (grub_console_term_output): Declare as
6345 GRUB_TERM_CODE_TYPE_VGA.
6346 * term/i386/pc/vga.c (grub_vga_term): Declare as
6347 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
6348 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
6349 GRUB_TERM_CODE_TYPE_VGA.
6350 * term/i386/vga_common.c (map_char): Removed.
6351 (grub_console_putchar): Likewise.
6352 (grub_console_getcharwidth): Likewise.
6353 * term/ieee1275/ofconsole.c: Simplify using terminfo.
6354 (colors): Reordered to match terminfo.
6355 (grub_ofconsole_normal_color): Removed.
6356 (grub_ofconsole_writeesc): Likewise.
6357 (grub_ofconsole_highlight_color): Likewise.
6358 (grub_ofconsole_getcharwidth): Likewise.
6359 (grub_ofconsole_setcolorstate): Likewise.
6360 (grub_ofconsole_setcolor): Likewise.
6361 (grub_ofconsole_getcolor): Likewise.
6362 (grub_ofconsole_readkey): Renamed to ...
6363 (readkey): ... this. Remove escape sequence handling. Return -1 on no
6365 (grub_ofconsole_checkkey): Removed.
6366 (grub_ofconsole_getkey): Likewise.
6367 (grub_ofconsole_getxy): Likewise.
6368 (grub_ofconsole_gotoxy): Likewise.
6369 (grub_ofconsole_cls): Likewise.
6370 (grub_ofconsole_refresh): Likewise.
6371 (grub_ofconsole_terminfo_input): New struct.
6372 (grub_ofconsole_terminfo_output): Likewise.
6373 (grub_ofconsole_term_input): Use terminfo.
6374 (grub_ofconsole_term_output): Likewise.
6375 (grub_console_init): Split into ...
6376 (grub_console_init_early): ...this and ...
6377 (grub_console_init_lately): ...this. Use terminfo.
6378 (grub_ofconsole_putchar): Renamed to ...
6379 (put): ... this. Remove mapping.
6380 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
6381 * term/serial.c: Simplify using terminfo.
6384 (keep_track): Likewise.
6385 (registered): Likewise.
6386 (input_buf): Likewise.
6387 (npending): Likewise.
6388 (serial_translate_key_sequence): Likewise.
6389 (fill_input_buf): Likewise.
6390 (grub_serial_checkkey): Likewise.
6391 (grub_serial_getkey): Likewise.
6392 (grub_serial_getxy): Likewise.
6393 (grub_serial_gotoxy): Likewise.
6394 (grub_serial_putchar): Likewise.
6395 (grub_serial_cls): Likewise.
6396 (grub_serial_setcolorstate): Likewise.
6397 (grub_serial_setcursor): Likewise.
6398 (serial_hw_init): Use serial_hw_fetch.
6399 (grub_serial_terminfo_input): New variable.
6400 (grub_serial_terminfo_output): Likewise.
6401 (grub_serial_term_input): Use terminfo.
6402 (grub_serial_term_output): Likewise.
6403 * term/terminfo.c (putstr): Use put.
6404 (grub_terminfo_all_free): New function
6405 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
6406 (grub_terminfo_output_register): New function.
6407 (grub_terminfo_output_unregister): Likewise.
6408 (grub_terminfo_getxy): Likewise.
6409 (grub_terminfo_readkey): Likewise.
6410 (grub_terminfo_checkkey): Likewise.
6411 (grub_terminfo_getkey): Likewise.
6412 (grub_terminfo_input_init): Likewise.
6413 (print_terminfo): Likewise.
6414 (grub_cmd_terminfo): Handle encoding.
6415 (grub_terminfo_gotoxy): Track position.
6416 (grub_terminfo_cls): Likewise.
6417 (grub_terminfo_putchar): Likewise.
6418 (grub_terminfo_setcolorstate): Handle colors
6419 (grub_terminfo_cursor_on): This ...
6420 (grub_terminfo_cursor_off): ... and this merged into ...
6421 (grub_terminfo_setcursor): ... this.
6422 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
6423 * unicode/ArabicShaping.txt: New file (imported from Unicode).
6424 * unicode/BidiMirroring.txt: Likewise.
6425 * unicode/UnicodeData.txt: Likewise.
6426 * unicode/COPYING: Likewise.
6427 * util/grub-editenv.c (grub_putchar): Removed.
6428 (grub_xputs_real): New function.
6429 (grub_xputs): New variable.
6430 * util/grub-fstest.c (grub_putchar): Removed.
6431 (grub_xputs_real): New function.
6432 (grub_xputs): New variable.
6433 * util/grub-mkdevicemap.c (grub_putchar): Removed.
6434 (grub_xputs_real): New function.
6435 (grub_xputs): New variable.
6436 * util/grub-probe.c (grub_putchar): Removed.
6437 (grub_xputs_real): New function.
6438 (grub_xputs): New variable.
6439 * util/grub-script-check.c (grub_putchar): Removed.
6440 (grub_xputs_real): New function.
6441 (grub_xputs): New variable.
6442 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
6443 (grub_xputs_real): New function.
6444 (grub_xputs): New variable.
6445 * util/import_unicode.py: New file.
6446 * util/grub-mkfont.c (ft_errmsgs): New array.
6447 (grub_glyph_info): Make bitmap a pointer.
6448 (file_formats): New type WIDTH_SPEC.
6449 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
6450 (options): Add width-spec.
6452 (add_char): Renamed to ...
6453 (add_glyph): ... this.
6454 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
6455 (glyph_replace): New type.
6456 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
6457 (add_char): New function.
6458 (add_subst): Likewise.
6459 (process_cursive): Likewise.
6460 (add_font): Handle GSUB.
6461 (write_font_width_spec): New function.
6462 (main): Sort glyphs.
6463 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
6464 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
6465 * kern/term.c (grub_cls): Moved from here...
6466 * normal/term.c (grub_cls): ... here.
6468 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6470 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
6471 suitable for using within the format argument of printf when
6472 converting grub_size_t.
6473 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
6474 "x" to convert grub_size_t arguments.
6476 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6478 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
6480 (list_get_minimal_size): Take selection box into account.
6482 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6484 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
6487 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6489 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
6490 devices when iterating over /dev/disk/by-id; they will be handled
6491 later if appropriate, which they aren't always (e.g. LVM).
6493 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6495 * include/grub/misc.h (grub_reboot): Declare as noreturn.
6496 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
6498 (grub_halt): Likewise.
6499 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
6501 (grub_halt): Don't return, even if all of shut-down, power-off, and
6504 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6506 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
6507 arguments, not three.
6509 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6511 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
6512 * util/grub.d/10_linux.in: Use it to check for LVM, so that
6513 LVM-on-RAID is handled correctly.
6515 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6517 * docs/grub.texi (Changes from GRUB Legacy): New section.
6520 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
6522 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
6523 grub.d/README accidentally ends up executable for one reason or
6526 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6528 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
6529 (gpt_partition_map_iterate): Support non-512B sectors.
6531 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6533 * kern/efi/init.c (grub_efi_init): Disable watchdog.
6534 Tested by: Seth Goldberg.
6536 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
6538 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
6540 Reported by: Seth Goldberg.
6542 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
6544 * util/grub-mkrescue.in: Avoid module duplication.
6546 2010-07-01 Sean Finney <seanius@seanius.net>
6548 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
6550 2010-07-01 Sean Finney <seanius@seanius.net>
6552 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
6554 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
6556 * disk/lvm.c (grub_lvm_checkvalue): New function.
6557 (grub_lvm_check_flag): Likewise.
6559 2010-07-01 Robert Millan <rmh@gnu.org>
6561 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
6562 Support 'p' as partition separator on kernel of FreeBSD (used
6564 (grub_util_biosdisk_get_grub_dev): Likewise.
6566 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
6568 Yeeloong firmware port.
6570 * boot/mips/yeeloong/fwstart.S: New file.
6571 * bus/cs5536.c (gpiodump): New const.
6572 (set_io_space): New function.
6573 (set_iod): Likewise.
6574 (set_p2d): Likewise.
6575 (grub_cs5536_init_geode): Likewise.
6576 * commands/mips/yeeloong/lsspd.c: New file.
6577 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
6578 (serial_mod_SOURCES): New variable.
6579 (serial_mod_CFLAGS): Likewise.
6580 (serial_mod_LDFLAGS): Likewise.
6581 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
6582 term/terminfo.c and term/tparm.c.
6583 (pkglib_IMAGES): Add fwstart.img.
6584 (fwstart_img_SOURCES): New variable.
6585 (fwstart_img_CFLAGS): Likewise.
6586 (fwstart_img_ASFLAGS): Likewise.
6587 (fwstart_img_LDFLAGS): Likewise.
6588 (fwstart_img_FORMAT): Likewise.
6589 (pkglib_MODULES): Add lsspd.mod.
6590 (lsspd_mod_SOURCES): New variable.
6591 (lsspd_mod_CFLAGS): Likewise.
6592 (lsspd_mod_LDFLAGS): Likewise.
6593 (pkglib_MODULES): Add halt.mod.
6594 (halt_mod_SOURCES): New variable.
6595 (halt_mod_CFLAGS): Likewise.
6596 (halt_mod_LDFLAGS): Likewise.
6597 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
6598 (serial_mod_SOURCES): Removed.
6599 (serial_mod_CFLAGS): Likewise.
6600 (serial_mod_LDFLAGS): Likewise.
6601 * disk/ata.c (check_device): New function.
6602 (grub_ata_device_initialize): Use check_device.
6603 (grub_ata_iterate): Recheck devices.
6604 (grub_ata_open): Likewise.
6605 (grub_atapi_iterate): Likewise.
6606 (grub_atapi_open): Likewise.
6607 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
6608 (GRUB_ATA_CH1_PORT1): Likewise.
6609 (GRUB_ATA_CH0_PORT2): Likewise.
6610 (GRUB_ATA_CH1_PORT2): Likewise.
6611 * include/grub/mips/loongson.h: New file.
6612 * include/grub/mips/yeeloong/ec.h: Likewise.
6613 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
6614 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
6615 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
6616 * include/grub/misc.h (grub_halt): Declare as noreturn.
6617 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
6618 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
6619 (UART_ENABLE_FIFO_TRIGGER1): New definition.
6620 (UART_ENABLE_DTRRTS): Likewise.
6621 (UART_ENABLE_MODEM): Removed.
6622 (UART_ENABLE_OUT2): New const.
6623 * include/grub/term.h (grub_term_register_input_active): New function.
6624 (grub_term_register_output_active): Likewise.
6625 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
6627 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
6628 (init_pci): New function.
6629 (grub_machine_init): Execute platform init when firmware. Init serial.
6630 (grub_halt): Implement.
6631 (grub_exit): Likewise.
6632 (grub_reboot): Likewise.
6633 * term/serial.c (serial_hw_init): Update macros.
6634 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
6635 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
6636 (image_targets): New target mipsel-yeeloong-flash.
6637 (generate_image): Support IMAGE_YEELOONG_FLASH.
6638 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
6639 (grub_video_sm712_setup): Init card.
6640 (grub_video_sm712_set_palette): Removed.
6641 * video/sm712_init.c: New file.
6643 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
6645 * Makefile.in (install-local): Temporarily prepend $(builddir) to
6646 PATH when running help2man and then run it on the unadorned
6647 executable names, rather than passing $(builddir)/* paths to
6648 help2man. This avoids the build directory ending up in generated
6651 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
6653 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
6654 to avoid accidents when debugging with 'sh -x'.
6655 * util/grub-mkrescue.in: Likewise.
6656 * util/grub.d/00_header.in: Likewise.
6657 * util/grub.d/10_hurd.in: Likewise.
6658 * util/grub.d/10_kfreebsd.in: Likewise.
6659 * util/grub.d/10_linux.in: Likewise.
6660 * util/grub.d/10_netbsd.in: Likewise.
6661 * util/grub.d/10_windows.in: Likewise.
6662 * util/grub.d/20_linux_xen.in: Likewise.
6663 * util/grub.d/30_os-prober.in: Likewise.
6664 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6666 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
6668 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
6669 last character in the buffer.
6670 Reported by: Vladimir Serbinenko.
6672 2010-06-29 Robert Millan <rmh@gnu.org>
6674 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
6675 (Command-line and menu entry commands): Document `badram' command.
6677 2010-06-28 Robert Millan <rmh@gnu.org>
6679 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
6680 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
6681 command using ${GRUB_BADRAM} as parameter.
6683 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6685 * docs/grub.texi (Device map): New section.
6686 (Themes): New section (stub).
6687 * Makefile.in (docs/grub.info): The info documentation now builds
6688 without errors. Make sure it stays that way.
6690 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
6692 Use normal parser for menu entries.
6693 Reported by: Thomas Frauendorfer
6695 * include/grub/parser.h (grub_parser_execute): Don't export.
6696 * normal/menu.c (grub_menu_execute_entry_real): New function.
6697 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
6699 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6701 * docs/grub.texi (Embedded configuration): New section (replacing
6702 old "Preset Menu" stub).
6703 (Images): New section.
6704 (configfile): Note that any menu entries defined in `file' are shown
6707 2010-06-28 Josh Triplett <josh@joshtriplett.org>
6709 * mmap/i386/pc/mmap_helper.S: Set CF on return.
6711 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6713 * util/grub-install.in: Add --debug-image= option.
6715 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6717 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
6720 * util/deviceiter.c (check_device): Rename to ...
6721 (check_device_readable_unique): ... this. Update all callers.
6722 Maintain and check a list of which devices (by canonicalized name)
6723 have already been seen.
6724 (clear_seen_devices): New function.
6725 (compare_file_names) [__linux__]: New function.
6726 (grub_util_iterate_devices): Clear the list of seen devices on exit
6727 and (just in case) on entry.
6728 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
6729 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
6730 seen-devices list, superseded by general code in check_device.
6732 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
6734 * commands/cat.c (options): New variable.
6735 (grub_cmd_cat): Parse options. If the --dos option is given, print
6736 DOS-style "\r\n" line endings as simple newlines (Debian bug
6738 (GRUB_MOD_INIT): Use extcmd.
6739 (GRUB_MOD_FINI): Likewise.
6740 * docs/grub.texi (cat): Document --dos.
6742 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
6744 XEN with Linux grub-mkconfig support.
6746 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
6747 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
6748 GRUB_CMDLINE_XEN_DEFAULT.
6749 * util/grub.d/20_linux_xen.in: New file.
6751 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
6753 Initialise VGA video on qemu ourselves.
6755 * boot/i386/qemu/boot.S: Don't call 0xc000.
6756 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
6757 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
6758 (kernel_img_HEADERS): Add pci.h.
6759 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
6760 * configure.ac: Force unifont on qemu and yeeloong.
6761 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
6762 (grub_vga_palette_write): Use correct register.
6763 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
6764 Call grub_qemu_init_cirrus.
6765 * kern/i386/qemu/init.c: New file.
6766 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
6768 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
6770 2010-06-26 Pavel Roskin <proski@gnu.org>
6772 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
6775 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
6777 * docs/grub.texi (Simple configuration): Explain that
6778 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
6779 set to `true' to disable their respective recovery entries, not
6782 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
6784 Make the `source' command slightly faster.
6786 * normal/main.c (grub_normal_execute): Don't re-read list files when
6789 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
6791 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
6792 field position and mask size to red fields from mode_info, not
6794 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
6795 Remove redundant tag->common.framebuffer_type assignment.
6796 Reported by: Seth Goldberg.
6798 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
6800 Sync up other versions of the Linux loader with Robert Millan's
6801 change of 2010-01-09, "Make loader output a bit more user-friendly".
6803 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
6805 (grub_cmd_linux): Likewise.
6806 (grub_cmd_initrd): Likewise.
6807 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
6808 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6810 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
6812 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
6813 larger than MEMORY_MAP_SIZE.
6815 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
6819 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
6821 * script/parser.y: #include grub_script.tab.h header.
6823 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6825 Support >3GiB and <16MiB RAM in i386-qemu.
6827 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
6828 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
6829 (grub_lower_mem): Removed.
6830 (grub_upper_mem): Likewise.
6831 (mem_size): Made static.
6832 (above_4g): New variable.
6833 (grub_machine_mmap_init): Detect small mem_size and above_4g.
6834 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
6837 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6839 Cirrus 5446 and Bochs video cards support.
6841 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
6843 (video_cirrus_mod_SOURCES): New variable.
6844 (video_cirrus_mod_CFLAGS): Likewise.
6845 (video_cirrus_mod_LDFLAGS): Likewise.
6846 (video_bochs_mod_SOURCES): Likewise.
6847 (video_bochs_mod_CFLAGS): Likewise.
6848 (video_bochs_mod_LDFLAGS): Likewise.
6849 * include/grub/vga.h: New file.
6850 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
6851 (grub_video_fb_set_page_t): New type.
6852 (grub_video_fb_setup): New prototype.
6853 (grub_video_fb_swap_buffers): Likewise.
6854 (grub_video_fb_get_info_and_fini): Likewise.
6855 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
6856 (CRTC_DATA_PORT): Likewise.
6857 (CRTC_CURSOR): Likewise.
6858 (CRTC_CURSOR_ADDR_HIGH): Likewise.
6859 (CRTC_CURSOR_ADDR_LOW): Likewise.
6860 (CRTC_CURSOR_DISABLE): Likewise.
6861 (update_cursor): Use grub_vga_cr_write.
6862 (grub_vga_text_setcursor): Likewise.
6863 * video/bochs.c: New file.
6864 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
6865 (palette): Likewise.
6866 (palette_size): Likewise.
6867 (framebuffer): New variable.
6868 (grub_video_fb_init): Use 'framebuffer'.
6869 (grub_video_fb_fini): Likewise.
6870 (grub_video_fb_get_info): Likewise.
6871 (grub_video_fb_get_palette): Likewise.
6872 (grub_video_fb_set_palette): Likewise.
6873 (grub_video_fb_set_viewport): Likewise.
6874 (grub_video_fb_get_viewport): Likewise.
6875 (grub_video_fb_map_color): Likewise.
6876 (grub_video_fb_map_rgb): Likewise.
6877 (grub_video_fb_map_rgba): Likewise.
6878 (grub_video_fb_unmap_color): Likewise.
6879 (grub_video_fb_unmap_color_int): Likewise.
6880 (grub_video_fb_fill_rect): Likewise.
6881 (grub_video_fb_blit_bitmap): Likewise.
6882 (grub_video_fb_blit_render_target): Likewise.
6883 (grub_video_fb_scroll): Likewise.
6884 (grub_video_fb_create_render_target): Likewise.
6885 (grub_video_fb_doublebuf_blit_init): Likewise.
6886 (grub_video_fb_set_active_render_target): Handle doublebuffering.
6887 (doublebuf_pageflipping_update_screen): New function.
6888 (doublebuf_pageflipping_init): Likewise.
6889 (grub_video_fb_setup): Likewise.
6890 (grub_video_fb_swap_buffers): Likewise.
6891 (grub_video_fb_get_info_and_fini): Likewise.
6892 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
6894 (doublebuf_pageflipping_commit): Restructured into ...
6895 (doublebuf_pageflipping_set_page): ... this.
6896 (doublebuf_pageflipping_update_screen): Removed.
6897 (doublebuf_pageflipping_init): Likewise.
6898 (double_buffering_init): Likewise.
6899 (grub_video_vbe_setup): Use grub_video_fb_setup.
6900 (grub_video_vbe_swap_buffers): Removed.
6901 (grub_video_vbe_set_active_render_target): Likewise.
6902 (grub_video_vbe_get_active_render_target): Likewise.
6903 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
6904 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
6905 grub_video_fb_set_active_render_target and
6906 grub_video_fb_get_active_render_target.
6907 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
6908 (SEQUENCER_DATA_PORT): Likewise.
6909 (MAP_MASK_REGISTER): Likewise.
6910 (CRTC_ADDR_PORT): Likewise.
6911 (CRTC_DATA_PORT): Likewise.
6912 (START_ADDR_HIGH_REGISTER): Likewise.
6913 (START_ADDR_LOW_REGISTER): Likewise.
6914 (GRAPHICS_ADDR_PORT): Likewise.
6915 (GRAPHICS_DATA_PORT): Likewise.
6916 (READ_MAP_REGISTER): Likewise.
6917 (INPUT_STATUS1_REGISTER): Likewise.
6918 (INPUT_STATUS1_VERTR_BIT): Likewise.
6919 (get_map_mask): Use grub_vga_sr_read.
6920 (set_map_mask): Use grub_vga_sr_write.
6921 (set_read_map): Use grub_vga_gr_write.
6922 (set_start_address): Use grub_vga_cr_write.
6923 * video/sm712.c (framebuffer): Remove leftover fields.
6925 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
6927 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
6928 setting GRUB_VIDEO_BACKEND. Make it available as a user override
6929 instead. Replace the gfxterm backend check with a check that
6930 ${GRUB_PREFIX}/video.lst is non-empty.
6931 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
6933 (load_video): New generated function. Call it before loading
6934 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
6935 * util/grub.d/10_linux.in (linux_entry): Call load_video.
6936 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
6937 * docs/grub.texi (Simple configuration): Document
6940 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
6942 Use video functions in linux and xnu loaders.
6944 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
6945 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
6946 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
6947 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
6948 loader/i386/pc/linux.c.
6949 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
6950 (find_line_len): Removed.
6951 (find_framebuf): Likewise.
6952 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
6953 * loader/i386/efi/xnu.c: Removed.
6954 * loader/i386/pc/xnu.c: Moved from here...
6955 * loader/i386/xnu.c: ...here.
6957 Enable priorities in video drivers.
6959 * include/grub/video.h (grub_video_adapter_prio_t): New type.
6960 (grub_video_adapter): New field prio.
6961 (grub_video_register): Respect prio when inserting.
6962 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
6963 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
6964 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
6965 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
6966 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
6967 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
6968 * video/sm712.c (grub_video_sm712_adapter): Likewise.
6972 * include/grub/video.h (grub_video_driver_id_t): New value
6973 GRUB_VIDEO_DRIVER_SDL.
6974 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
6976 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6978 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
6980 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6982 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6984 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
6985 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6987 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6989 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
6990 directly, and recommend grub-install instead.
6991 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
6993 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
6995 Fix i386-pc prefix handling with nested partitions (Debian bug
6996 #585068). Note that the case where the core image is booted using
6997 multiboot and relocated from its original location still requires
7000 * kern/i386/pc/init.c (make_install_device): If the prefix starts
7001 with "(,", fill the boot drive in between those two characters, but
7002 expect that a full partition specification including partition map
7004 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
7005 specified, write a prefix without the drive name but including a
7006 full partition specification.
7008 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
7010 * util/grub-mkconfig.in: Ignore non-option arguments, for
7011 compatibility with older versions (before 2010-06-12) which did the
7012 same. In particular, this makes it easier to ship an update-grub
7013 wrapper which is compatible with that used with GRUB Legacy (Debian
7016 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7018 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
7019 for manual page generation.
7021 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
7023 * po/POTFILES: Remove leftover commands/handler.c.
7025 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
7027 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
7028 left this script non-functional.
7030 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
7032 * docs/man/grub-emu.h2m: New file.
7034 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
7036 * docs/grub.texi (Commands): Document reduced command set in rescue
7038 (cpuid): New section.
7040 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
7042 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
7043 new partition naming style.
7044 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
7046 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
7048 Add "-o grub.iso" like cmdline options support.
7050 * util/grub-install.in: Improve cmdline option parsing.
7051 * util/grub-mkconfig.in: Likewise.
7052 * util/grub-mkrescue.in: Likewise.
7053 * util/grub-reboot.in: Likewise.
7054 * util/grub-set-default.in: Likewise.
7055 * util/i386/efi/grub-install.in: Likewise.
7056 * util/ieee1275/grub-install.in: Likewise.
7057 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7059 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
7061 * .bzrignore: Ignore 41_custom.
7063 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
7065 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
7067 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
7069 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
7070 prototype declarations.
7072 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
7073 generating fs, partmap, and video lists.
7074 * include/grub/fs.h (grub_fs_register): Omit prototype if
7075 GRUB_LST_GENERATOR is defined.
7076 * include/grub/partition.h (grub_partition_map_register): Likewise.
7077 * include/grub/video.h (grub_video_register): Likewise.
7079 2010-06-12 Javier Martín <lordhabbit@gmail.com>
7081 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
7083 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
7085 * util/grub-mkrescue.in: Support --xorriso argument.
7087 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
7089 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
7090 Suggested by: Thomas Schmitt.
7092 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
7094 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
7095 Suggested by: Thomas Schmitt.
7097 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
7101 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
7102 * util/grub.d/41_custom.in: New file.
7104 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
7106 * util/grub-mkrescue.in (make_image): Remove sh module, which has
7107 been merged back into normal.
7109 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
7111 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
7112 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
7114 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
7116 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
7117 when generating manual pages.
7118 * docs/man/grub-bin2h.h2m: New file.
7119 * docs/man/grub-editenv.h2m: New file.
7120 * docs/man/grub-fstest.h2m: New file.
7121 * docs/man/grub-install.h2m: New file.
7122 * docs/man/grub-macho2img.h2m: New file.
7123 * docs/man/grub-mkconfig.h2m: New file.
7124 * docs/man/grub-mkdevicemap.h2m: New file.
7125 * docs/man/grub-mkfont.h2m: New file.
7126 * docs/man/grub-mkimage.h2m: New file.
7127 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
7128 * docs/man/grub-mkrelpath.h2m: New file.
7129 * docs/man/grub-mkrescue.h2m: New file.
7130 * docs/man/grub-ofpathname.h2m: New file.
7131 * docs/man/grub-pe2elf.h2m: New file.
7132 * docs/man/grub-probe.h2m: New file.
7133 * docs/man/grub-reboot.h2m: New file.
7134 * docs/man/grub-script-check.h2m: New file.
7135 * docs/man/grub-set-default.h2m: New file.
7136 * docs/man/grub-setup.h2m: New file.
7138 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
7140 Use FOR_* macros instead of *_iterate whenever possible.
7142 * commands/handler.c: Removed.
7143 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
7144 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
7145 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
7146 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
7147 (grub_probe_SOURCES): Remove kern/parser.c.
7148 (util/grub-script-check.c_DEPENDENCIES): Removed.
7149 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
7150 and grub_script_check_init.c.
7151 (grub_script_check_init.lst): Removed.
7152 (grub_script_check_init.h): Likewise.
7153 (grub_script_check_init.c): Likewise.
7154 (pkglib_MODULES): Remove handler.mod and sh.mod.
7155 (handler_mod_SOURCES): Removed.
7156 (handler_mod_CFLAGS): Likewise.
7157 (handler_mod_LDFLAGS): Likewise.
7158 (normal_mod_SOURCES): Remove normal/handler.c.
7159 Add script/main.c, script/script.c, script/execute.c,
7160 script/function.c, script/lexer.c, grub_script.tab.c
7161 and grub_script.yy.c.
7162 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
7163 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7164 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
7165 (grub_setup_SOURCES): Remove kern/parser.c.
7166 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
7167 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
7168 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
7169 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7170 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
7171 (grub_setup_SOURCES): Remove kern/parser.c.
7172 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
7173 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
7174 * include/grub/command.h (grub_command_iterate): Removed.
7175 (FOR_COMMANDS): New macro.
7176 * include/grub/dl.h (grub_dl): New member next.
7177 (grub_dl_iterate): Removed.
7178 (grub_dl_head): New variable declaration.
7179 (FOR_DL_MODULES): New macro.
7180 * include/grub/fs.h: Include list.h.
7181 (grub_fs): Make next first element.
7182 (grub_fs_list): New variable declaration.
7183 (grub_fs_register): Make inline.
7184 (grub_fs_unregister): Likewise.
7185 (grub_fs_iterate): Removed.
7186 (FOR_FILESYSTEMS): New macro.
7187 * include/grub/handler.h: Removed.
7188 * include/grub/list.h (grub_list_hook_t): Removed.
7189 (grub_list_test_t): Likewise.
7190 (grub_list_pop): Likewise.
7191 (grub_list_iterate): Likewise.
7192 (grub_list_insert): Likewise.
7193 (FOR_LIST_ELEMENTS): New macro.
7194 * include/grub/parser.h (grub_parser_class): Removed.
7195 (grub_parser_register): Likewise.
7196 (grub_parser_unregister): Likewise.
7197 (grub_parser_get_current): Likewise.
7198 (grub_parser_set_current): Likewise.
7199 (grub_register_rescue_parser): Likewise.
7200 (grub_rescue_parse_line): New function.
7201 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
7202 * include/grub/script_sh.h (grub_script_function_list): New variable
7204 (FOR_SCRIPT_FUNCTIONS): New macro.
7205 (grub_script_function_iterate): Removed.
7206 (grub_normal_parse_line): New prototype.
7207 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
7208 (FOR_DISABLED_TERM_INPUTS): Likewise.
7209 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
7210 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
7211 * include/grub/video.h (grub_video_adapter): Move 'next' to first
7213 (grub_video_register): Inline.
7214 (grub_video_unregister): Likewise.
7215 (grub_video_adapter_list): New variable declaration.
7216 (grub_video_iterate): Removed.
7217 (FOR_VIDEO_ADAPTERS): New macro.
7218 * kern/dl.c (grub_dl_list): Removed. All users updated.
7219 (grub_dl_iterate): Removed.
7220 * kern/fs.c (grub_fs_list): Make global.
7221 (grub_fs_register): Removed.
7222 (grub_fs_unregister): Likewise.
7223 (grub_fs_iterate): Likewise.
7224 * kern/handler.c: Removed.
7225 * kern/list.c (grub_list_pop): Removed.
7226 (grub_list_iterate): Likewise.
7227 (grub_list_insert): Likewise.
7228 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
7229 (grub_prio_list_insert): Don't use grub_list_insert.
7230 * kern/main.c (grub_register_rescue_parser): Don't call
7231 grub_register_rescue_parser.
7232 * kern/parser.c (grub_parser_class): Removed.
7233 (grub_parser_execute): Use grub_rescue_parse_line.
7234 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
7235 (grub_rescue_parser): Removed.
7236 (grub_register_rescue_parser): Likewise.
7237 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
7238 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
7239 (grub_auth_check_authentication): Likewise.
7240 * normal/completion.c (iterate_command): Removed.
7241 (grub_normal_do_completion): Use FOR_COMMANDS.
7242 * normal/handler.c: Removed.
7243 * normal/main.c (read_config_file): Remove parser changing.
7244 (grub_normal_execute): Don't call read_handler_list.
7245 (grub_normal_read_line_real): Statically allocate prompt.
7246 (grub_cmdline_run): Use grub_normal_parse_line.
7247 (GRUB_MOD_FINI): Don't call free_handler_list.
7248 * normal/menu_entry.c (run): Likewise.
7249 * script/function.c (grub_script_function_list): Make global.
7250 (grub_script_function_iterate): Removed.
7251 * script/main.c (grub_normal_parse_line): Make global.
7252 (grub_sh_parser): Removed.
7253 (GRUB_MOD_INIT): Likewise.
7254 (GRUB_MOD_FINI): Likewise.
7255 * tests/lib/functional_test.c (grub_functional_test): Use
7257 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
7258 (grub_test_run): Use FOR_LIST_ELEMENTS.
7259 * tests/lib/unit_test.c (main): Likewise.
7260 * util/deviceiter.c (grub_util_iterate_devices): Don't use
7262 * util/grub-fstest.c (grub_term_input_class): Removed.
7263 (grub_term_output_class): Likewise.
7264 * util/grub-probe.c: Likewise.
7265 * util/i386/pc/grub-setup.c: Likewise.
7266 * util/sparc64/ieee1275/grub-setup.c: Likewise.
7267 * util/grub-script-check.c (main): Don't call grub_init_all and
7269 * video/video.c (grub_video_adapter_list): Make global.
7270 (grub_video_register): Removed.
7271 (grub_video_unregister): Likewise.
7272 (grub_video_iterate): Likewise.
7274 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
7276 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
7277 reported by Henrique Ferreiro.
7279 2010-06-09 Robert Millan <rmh@gnu.org>
7281 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
7282 ones, when both are available.
7284 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
7286 Make --version uniform and avoid hard-coded program name.
7288 * util/grub-mkimage.c (main): Use `program_name' instead of
7290 * util/i386/pc/grub-setup.c (main): Likewise.
7291 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
7292 * util/grub-install.in: Save the basename of $0 in $self, and use the
7293 latter in informational messages. Use the same format for --version
7294 as the binary programs.
7295 * util/grub-mkconfig.in: Likewise.
7296 * util/grub-mkrescue.in: Likewise.
7297 * util/grub-reboot.in: Likewise.
7298 * util/grub-set-default.in: Likewise.
7299 * util/i386/efi/grub-install.in: Likewise.
7300 * util/ieee1275/grub-install.in: Likewise.
7301 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
7303 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
7305 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
7306 embedding area. Use <= instead of == when checking for non-emptiness.
7308 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
7310 * configure.ac: Add `.' to the directories searched for unifont.
7312 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
7314 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
7317 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
7319 * docs/grub.texi (History): Expand to cover GRUB 2.
7320 (Serial terminal): Refer to `terminal_input' and `terminal_output'
7321 commands, not `terminal'.
7323 (terminal_input): New section.
7324 (terminal_output): New section.
7325 (uppermem): New section (stub).
7326 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
7328 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
7330 * docs/grub.texi (Security): Menu entries are unrestricted by
7331 default, not restricted to superusers as I had previously thought.
7332 Reword to account for this.
7334 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7336 * kern/emu/misc.c (device_mapper_null_log): New function.
7337 (grub_device_mapper_supported): New function.
7338 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
7340 * kern/emu/hostdisk.c (find_partition_start): Check whether
7341 device-mapper is supported before trying to use it.
7342 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
7344 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7346 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
7347 (File name syntax): Likewise.
7348 (help): --all is no longer supported in GRUB 2. Be more precise
7349 about pattern matching.
7351 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7353 * normal/completion.c (grub_normal_do_completion): When completing
7354 arguments to "set" and the current word contains an equals sign,
7355 skip to after the equals sign before starting completion.
7357 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7359 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
7361 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7363 * docs/grub.texi (Network): New section.
7364 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
7365 `(nd)' as in GRUB Legacy.
7366 (pxe_unload): New section.
7368 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7370 * docs/grub.texi (Troubleshooting): `echo' is not usually available
7371 in the rescue shell, so recommend using `set' instead. Thanks,
7374 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7376 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
7377 (password): New section.
7378 (password_pbkdf2): New section.
7379 (search): New section.
7380 (Security): New section.
7381 (Troubleshooting): New section, currently very incomplete.
7382 (Invoking grub-mkpasswd-pbkdf2): New section.
7383 (Internals): New section, currently very incomplete.
7385 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7387 * util/grub.d/00_header.in: Add some more quoting (of
7388 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
7390 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
7392 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
7394 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
7395 to `count', fixing variable shadowing that broke the -c option.
7397 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
7399 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
7400 in case they contain spaces.
7402 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
7404 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
7405 "part_" to partmap module names, in line with grub-install.
7406 Reported by: Jindřich Makovička (Debian bug #584426).
7408 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
7410 * util/grub-mkimage.c: Make target-related error messages slightly
7411 more helpful; -O talks about "format". Explicitly point to the use
7412 of -O if no target is specified.
7413 Reported by: Didier Raboud (Debian bug #584415).
7415 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
7417 * INSTALL: Document several build requirements for optional features
7418 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
7420 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
7422 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
7423 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
7424 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
7426 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7428 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
7429 Thanks to Jordan Uggla for spotting this.
7431 2010-06-02 Aleš Nesrsta <starous@volny.cz>
7433 Finally make USB usable.
7435 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
7436 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
7437 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
7438 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
7439 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
7440 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
7441 (GRUB_OHCI_FSMPS): Likewise.
7442 (GRUB_OHCI_PERIODIC_START): Likewise.
7443 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
7444 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
7445 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
7446 (GRUB_OHCI_SET_PORT_RESET): Likewise.
7447 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
7448 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
7449 (grub_ohci_transaction): Likewise.
7450 (grub_ohci_transfer): Improve condition detection algorithms.
7451 Handle toggle property. Program the transactions correctly.
7452 Improve error handling. Various important fixups.
7453 (grub_ohci_portstatus): Put register writes in right order.
7454 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
7455 (grub_uhci_transfer): Don't show "failed" message on success.
7456 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
7458 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
7460 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
7461 before initialization is completed. Use IN direction for empty
7462 transfers. Use last_trans and compute toggle.
7463 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
7464 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
7465 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
7466 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
7467 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
7468 (grub_usb_device): Increase toggle to 256.
7469 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
7470 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
7471 GRUB_USBMS_SUBCLASS_SFF8070.
7472 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
7473 (grub_scsi_inquiry): New member page and alloc_length.
7474 (grub_scsi_request_sense): New structure.
7475 (grub_scsi_request_sense_data): Likewise.
7476 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
7478 * disk/scsi.c (grub_scsi_request_sense): New function.
7479 (grub_scsi_test_unit_ready): Likewise.
7480 (grub_scsi_inquiry): Fill new fields.
7481 (grub_scsi_read_capacity): Likewise.
7482 (grub_scsi_read10): Add request sense at the end.
7483 (grub_scsi_read12): Likewise.
7484 (grub_scsi_write10): Likewise.
7485 (grub_scsi_write12): Likewise.
7486 (grub_scsi_open): Add Test Unit Ready.
7487 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
7488 Support additional subclasses. Con't clear halt yet. Activate the
7489 proper config. Calculate LUNs correctly.
7490 (grub_usbms_transfer): Various important fixups.
7492 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7494 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
7495 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
7496 (grub_ohci_fini_hw): New function.
7497 (grub_ohci_restore_hw): Likewise.
7498 (GRUB_MOD_INIT(ohci)): Register preboot hook.
7499 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
7500 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
7502 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7504 Dedicated DMA allocations.
7506 * bus/pci.c (grub_memalign_dma32): New function
7507 (grub_dma_free): Likewise.
7508 (grub_dma_get_virt): Likewise.
7509 (grub_dma_get_phys): Likewise.
7510 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
7511 (grub_ohci_pci_iter): Use dma32_alloc.
7512 (grub_ohci_transfer): Likewise.
7513 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
7514 (grub_usb_bulk_readwrite): Likewise.
7515 * include/grub/pci.h: Add declarations.
7517 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
7521 * bus/cs5536.c: New file.
7522 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
7523 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
7524 (cs5536_mod_SOURCES): New variable.
7525 (cs5536_mod_CFLAGS): Likewise.
7526 (cs5536_mod_LDFLAGS): Likewise.
7527 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
7529 (kernel_img_SOURCES): Add bus/cs5536.c.
7530 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
7532 (usb_mod_SOURCES): New variable.
7533 (usb_mod_CFLAGS): New variable.
7534 (usb_mod_LDFLAGS): New variable.
7535 (usbtest_mod_SOURCES): New variable.
7536 (usbtest_mod_CFLAGS): New variable.
7537 (usbtest_mod_LDFLAGS): New variable.
7538 (ohci_mod_SOURCES): New variable.
7539 (ohci_mod_CFLAGS): New variable.
7540 (ohci_mod_LDFLAGS): New variable.
7541 (usbms_mod_SOURCES): New variable.
7542 (usbms_mod_CFLAGS): New variable.
7543 (usbms_mod_LDFLAGS): New variable.
7544 (usb_keyboard_mod_SOURCES): New variable.
7545 (usb_keyboard_mod_CFLAGS): New variable.
7546 (usb_keyboard_mod_LDFLAGS): New variable.
7547 * include/grub/smbus.h: New file.
7548 * include/grub/cs5536.h: New file.
7550 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7552 * util/grub.d/00_header.in: Add safety check to make sure that
7553 ${locale_dir} exists before trying to probe it.
7555 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7557 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
7558 per the GNU Coding Standards; this is now too obscure to be worth
7561 (chainloader): Remove cross-reference to `SCO UnixWare'.
7563 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7565 * docs/grub.texi (Chain-loading): New section.
7566 (DOS/Windows): New section, borrowed from GRUB Legacy with details
7567 adjusted for GRUB 2.
7568 (SCO UnixWare): Likewise.
7570 (chainloader): Add reference to `Block list syntax'.
7571 (drivemap): New section.
7572 (parttool): New section.
7574 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7576 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
7578 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
7579 (Installing GRUB using grub-install): Remove reference to the grub
7580 shell; mention `grub-mkimage' and `grub-setup' instead.
7581 (Invoking grub-install): Likewise.
7582 (Interface): Add reference to `Menu entry editor'.
7583 (serial): Remove `--device' option.
7585 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7587 * docs/grub.texi (Configuration): New section, documenting
7588 configuration file generation using grub-mkconfig. I've left a slot
7589 for documenting the full shell scripting format but have not yet
7590 started on writing that up.
7591 (Invoking grub-mkconfig): New section.
7593 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7595 * docs/grub.texi (direntry): Remove grub-terminfo reference.
7596 (GNU GRUB manual): Likewise.
7597 (General commands): Update description of `terminfo' for GRUB 2.
7599 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7601 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
7602 (GRUB_MOD_INIT): Fix capitalisation.
7603 * docs/grub.texi (Command-line and menu entry commands): Document
7604 gettext and gptsync commands.
7606 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
7608 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
7609 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
7611 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
7613 Add btrfs probing support, currently only in the single-device case.
7615 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
7617 (grub_guess_root_device): Call find_root_device_from_mountinfo
7618 before looking in /dev.
7620 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7622 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
7623 GRUB_DISK_SIZE_UNKNOWN.
7624 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
7626 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
7628 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
7629 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
7630 corrupted or not synced properly.
7632 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7634 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
7635 Reported by: Seth Goldberg.
7637 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7639 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
7641 Reported by: Seth Goldberg.
7643 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7645 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
7646 Reported by: Seth Goldberg.
7648 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
7650 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
7651 64-bit address as signed on MIPS.
7653 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
7655 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
7656 to the empty string.
7658 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
7660 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
7662 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
7663 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
7664 * kern/misc.c (__enable_execute_stack): Disable on
7667 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
7669 Make grub-probe work with symbolic links under /dev/mapper as well
7670 as with real block devices. The Linux world seems to be (at best)
7671 in transition here, and GRUB shouldn't get caught in the middle.
7673 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
7676 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
7678 * util/grub-script-check.c (main): Ensure defined behaviour on empty
7679 input files (in which case exit zero).
7681 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
7683 * kern/emu/misc.c (canonicalize_file_name): realpath can still
7684 return NULL for various reasons even if it has a maximum-length
7685 buffer: for example, there might be a symlink loop, or the path
7686 might exceed PATH_MAX. If this happens, return NULL.
7688 2010-05-27 Robert Millan <rmh@gnu.org>
7690 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
7691 partmap module to handle cross-partmap setups.
7692 Reported by Orestes Mas. Gràcies!
7694 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
7696 * util/grub-mkrescue.in: Initialise override_dir rather than
7697 assuming that it's unset or empty in the environment.
7699 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
7701 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
7702 variable index into p_index to suppress a warning with -Wshadow.
7704 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
7706 * INSTALL: Added flex >= 2.5.35 requirement.
7708 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7710 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
7712 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7716 * commands/i386/cmostest.c: New file.
7717 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
7718 (cmostest_mod_SOURCES): New variable.
7719 (cmostest_mod_CFLAGS): Likewise.
7720 (cmostest_mod_LDFLAGS): Likewise.
7721 * conf/i386-pc.rmk: Likewise.
7722 * docs/grub.texi (Vendor power-on keys): New section.
7723 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
7724 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
7725 and GRUB_BUTTON_CMOS_ADDRESS.
7726 * util/grub.d/00_header.in: Handle powering-on by separate button.
7728 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7730 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
7731 Removed drawing_scrollbar argument. All users updated
7733 Reported by Jo Shields
7735 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7737 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
7738 buffer since gfxterm handles double repaint.
7740 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
7742 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
7743 * term/gfxterm.c (real_scroll): Likewise.
7745 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7747 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
7748 before calling BIOS.
7750 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7752 * include/grub/i18n.h: Always enable grub_gettext.
7754 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
7756 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
7757 partition naming style.
7759 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
7761 * util/grub-mkconfig.in: Fix handling of -o so that it works when
7762 not the first option.
7764 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
7766 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
7768 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
7770 * util/misc.c: Move inclusion of <limits.h> to ...
7771 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
7773 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
7775 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
7776 Fix merge error in NetBSD code.
7777 (find_partition_start) [__NetBSD__]: Likewise.
7779 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
7781 Fix grub-mkrescue usage unit testing.
7783 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
7785 2010-05-18 Christian Franke <franke@computer.org>
7787 * util/grub.d/10_windows.in: Use path names instead of
7788 drive letters to prevent warning from Cygwin 1.7.
7789 Add drivemap command to menuentry if needed.
7791 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
7793 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
7794 gnumach and gnumach.gz.
7796 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7798 * include/grub/i18n.h (gettext): Inline instead of using #define.
7799 (grub_gettext): Likewise.
7802 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7804 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
7805 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
7806 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
7807 (main): Add a slash after pkglibdirroot.
7809 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7811 * util/grub-install.in: Add missing "in" keyword.
7813 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7815 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
7816 Reported by: Seth Goldberg.
7818 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
7820 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
7822 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
7824 * configure.ac: Check for Linux device-mapper support.
7826 * util/hostdisk.c (device_is_mapped): New function.
7827 (find_partition_start): New function, partly broken out from
7828 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
7829 device-mapper support added.
7830 (linux_find_partition): Use find_partition_start.
7831 (convert_system_partition_to_system_disk): Add `st' argument.
7832 Support Linux /dev/mapper/* devices if device-mapper support is
7833 available; only DM-RAID devices are understood at present.
7834 (find_system_device): Add `st' argument. Pass it to
7835 convert_system_partition_to_system_disk.
7836 (grub_util_biosdisk_get_grub_dev): Pass stat result to
7837 find_system_device and convert_system_partition_to_system_disk. Use
7838 find_partition_start.
7840 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
7841 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
7842 * util/deviceiter.c [__linux__]: Define MINOR.
7843 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
7844 * util/mkdevicemap.c (grub_putchar): New function.
7845 (grub_getkey): New function.
7846 (grub_refresh): New function.
7847 (main): Set debug=all if -v -v is used.
7849 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
7851 Fix build with non-GNU libcs.
7853 * util/misc.c (canonicalize_file_name): Move to ...
7854 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
7855 grub_make_system_path_relative_to_its_root.
7857 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
7859 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
7860 we handle finding grub-mkimage. Default to finding grub-mkimage in
7861 ${bindir} with program_transform_name applied, and provide a
7862 --grub-mkimage option to override this.
7864 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7866 Remove grub-mkisofs.
7868 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
7869 (grub_mkisofs_SOURCES): Removed.
7870 (grub_mkisofs_CFLAGS): Removed.
7871 * util/mkisofs/defaults.h: Removed.
7872 * util/mkisofs/eltorito.c: Likewise.
7873 * util/mkisofs/exclude.h: Likewise.
7874 * util/mkisofs/hash.c: Likewise.
7875 * util/mkisofs/include/: Likewise.
7876 * util/mkisofs/include/fctldefs.h: Likewise.
7877 * util/mkisofs/include/mconfig.h: Likewise.
7878 * util/mkisofs/include/prototyp.h: Likewise.
7879 * util/mkisofs/include/statdefs.h: Likewise.
7880 * util/mkisofs/iso9660.h: Likewise.
7881 * util/mkisofs/joliet.c: Likewise.
7882 * util/mkisofs/match.c: Likewise.
7883 * util/mkisofs/match.h: Likewise.
7884 * util/mkisofs/mkisofs.c: Likewise.
7885 * util/mkisofs/mkisofs.h: Likewise.
7886 * util/mkisofs/msdos_partition.h: Likewise.
7887 * util/mkisofs/multi.c: Likewise.
7888 * util/mkisofs/name.c: Likewise.
7889 * util/mkisofs/rock.c: Likewise.
7890 * util/mkisofs/tree.c: Likewise.
7891 * util/mkisofs/write.c: Likewise.
7893 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
7895 Unify grub-mkimage accross platforms.
7897 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
7898 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
7899 (grub_mkelfimage_SOURCES): Removed.
7900 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
7901 (util/grub-mkimage.c_DEPENDENCIES): .. this.
7902 (bin_UTILITIES): Add grub-mkimage.
7903 (grub_mkimage_SOURCES): New variable.
7904 (kernel_img_HEADERS): Remove machine/kernel.h.
7905 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
7906 (pkglib_PROGRAMS): Add kernel.img.
7907 (kernel_img_HEADERS): Add machine/kernel.h.
7908 (kernel_img_FORMAT): Removed.
7909 (bin_UTILITIES): Remove grub-mkimage.
7910 (grub_mkimage_SOURCES): Removed.
7911 (grub_mkimage_CFLAGS): Likewise.
7912 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7913 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
7914 (pkglib_PROGRAMS): Add kernel.img.
7915 (bin_UTILITIES): Remove grub-mkimage.
7916 (grub_mkimage_SOURCES): Removed.
7917 (grub_mkimage_CFLAGS): Likewise.
7918 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7919 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
7920 (pkglib_PROGRAMS): Add kernel.img.
7921 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
7922 (pkglib_PROGRAMS): Add kernel.img.
7923 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
7924 (grub_mkimage_SOURCES): Removed.
7925 (grub_mkimage_CFLAGS): Likewise.
7926 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7927 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
7928 (pkglib_PROGRAMS): Add kernel.img.
7929 (bin_UTILITIES): Remove grub-mkimage.
7930 (grub_mkimage_SOURCES): Removed.
7931 (grub_mkimage_CFLAGS): Likewise.
7932 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7933 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
7934 (grub_mkimage_SOURCES): Removed.
7935 (grub_mkimage_CFLAGS): Likewise.
7936 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
7937 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
7938 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
7939 (grub_pe32_optional_header): ... this.
7940 (grub_pe64_optional_header): ... and this. All users updated.
7941 (GRUB_PE32_PE32_MAGIC): Split into ..
7942 (GRUB_PE32_PE32_MAGIC): .. this.
7943 (GRUB_PE32_PE64_MAGIC): .. and this.
7944 (GRUB_PE32_SIGNATURE_SIZE): New definition.
7945 * include/grub/elf.h (PT_GNU_STACK): New definition.
7946 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
7947 * include/grub/i386/efi/kernel.h: Likewise.
7948 * include/grub/i386/kernel.h: Likewise.
7949 * include/grub/i386/pc/kernel.h: Likewise.
7950 * include/grub/i386/qemu/boot.h: Likewise.
7951 * include/grub/mips/kernel.h: Likewise.
7952 * include/grub/mips/qemu-mips/kernel.h: Likewise.
7953 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
7954 * include/grub/powerpc/kernel.h: Likewise.
7955 * include/grub/sparc64/ieee1275/boot.h: Likewise.
7956 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
7957 * include/grub/sparc64/kernel.h: Likewise.
7958 * include/grub/x86_64/efi/kernel.h: Likewise.
7959 * include/grub/x86_64/kernel.h: Likewise.
7960 * include/grub/offsets.h: New file.
7961 * include/grub/kernel.h (grub_module_info): Split into ...
7962 (grub_module_info32): ... this.
7963 (grub_module_info64): ... and this.
7964 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
7965 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
7966 (grub_boot_blocklist): Moved from here ...
7967 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
7968 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
7969 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
7970 * include/grub/types.h (grub_target_to_host16): Removed.
7971 (grub_target_to_host32): Likewise.
7972 (grub_target_to_host64): Likewise.
7973 (grub_host_to_target16): Likewise.
7974 (grub_host_to_target32): Likewise.
7975 (grub_host_to_target64): Likewise.
7976 (grub_host_to_target_addr): Likewise.
7978 Support grub-mkrescue for efi, coreboot and qemu.
7980 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
7981 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
7982 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
7983 * util/grub-mkrawimage.c: Moved from here ...
7984 * util/grub-mkimage.c: ... here. All users updated.
7985 (ALIGN_ADDR): Use image_target.
7986 (TARGET_NO_FIELD): New const.
7987 (image_target_desc): New type.
7988 (image_targets): New array.
7989 (grub_target_to_host64): Use image_target.
7990 (grub_target_to_host32): Likewise.
7991 (grub_target_to_host16): Likewise.
7992 (grub_host_to_target64): Likewise.
7993 (grub_host_to_target32): Likewise.
7994 (grub_host_to_target16): Likewise.
7995 (grub_host_to_target_addr): Likewise.
7996 (generate_image): Handle multiimage.
7997 (main): Require -O parameter. All users updated.
7998 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
7999 util/efi/grub-mkimage.c
8000 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
8001 New option --rom-directory.
8003 * util/i386/efi/grub-mkimage.c: Removed.
8004 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
8005 (grub_target_to_host32): Likewise.
8006 (grub_target_to_host64): Likewise.
8007 (grub_host_to_target16): Likewise.
8008 (grub_host_to_target32): Likewise.
8009 (grub_host_to_target64): Likewise.
8010 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
8011 (grub_target_to_host32): Likewise.
8012 (grub_target_to_host64): Likewise.
8013 (grub_host_to_target16): Likewise.
8014 (grub_host_to_target32): Likewise.
8015 (grub_host_to_target64): Likewise.
8017 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
8019 Source tree is reorganized for emu build.
8021 * include/grub/util/console.h: Move from here...
8022 * include/grub/emu/console.h: ...to here.
8023 * include/grub/util/getroot.h: Move from here...
8024 * include/grub/emu/getroot.h: ...to here.
8025 * include/grub/util/hostdisk.h: Move from here...
8026 * include/grub/emu/hostdisk.h: ...to here.
8027 * util/console.c: Move from here...
8028 * kern/emu/console.c: ...to here.
8029 * util/getroot.c: Move from here...
8030 * kern/emu/getroot.c: ...to here.
8031 * util/grub-emu.c: Move from here...
8032 * kern/emu/main.c: ...to here.
8033 * util/hostdisk.c: Move from here...
8034 * kern/emu/hostdisk.c: ...to here.
8035 * util/hostfs.c: Move from here...
8036 * kern/emu/hostfs.c: ...to here.
8037 * util/mm.c: Move from here...
8038 * kern/emu/mm.c: ...to here.
8039 * util/pci.c: Move from here...
8040 * bus/emu/pci.c: ...to here.
8041 * util/sdl.c: Move from here...
8042 * video/emu/sdl.c: ...to here.
8043 * util/time.c: Move from here...
8044 * kern/emu/time.c: ...to here.
8045 * util/usb.c: Move from here...
8046 * bus/usb/emu/usb.c: ...to here.
8048 * include/grub/emu/misc.h: New header for grub-emu functions.
8049 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
8051 * conf/any-emu.rmk: Rule updates for above renames.
8052 * conf/common.rmk: Likewise.
8053 * conf/i386-pc.rmk: Likewise.
8054 * conf/i386-qemu.rmk: Likewise.
8055 * conf/mips.rmk: Likewise.
8056 * conf/sparc64-ieee1275.rmk: Likewise.
8057 * conf/x86-efi.rmk: Likewise.
8059 * disk/lvm.h: #include updates for above renames.
8060 * util/grub-mkrelpath.c: Likewise.
8061 * util/grub-probe.c: Likewise.
8062 * util/i386/pc/grub-setup.c: Likewise.
8063 * util/sparc64/ieee1275/grub-setup.c: Likewise.
8064 * kern/emu/console.c: Likewise.
8065 * kern/emu/getroot.c: Likewise.
8066 * kern/emu/hostdisk.c: Likewise.
8067 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
8069 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
8070 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
8071 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
8072 * util/misc.c: Remove grub-emu functions.
8074 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
8077 Reported by: Thorsten Grützmacher.
8079 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
8081 (circprog_set_property): Register and unregister timeout hook.
8082 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
8083 (label_destroy): Free template. and unregister hook.
8084 (label_set_state): New function.
8085 (label_set_property): Handle templates and hooks.
8086 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
8088 (progress_bar_set_property): Register and unregister timeout hook.
8089 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
8090 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
8091 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
8092 (update_timeout_visit): Removed.
8093 (update_timeouts): New function.
8094 (redraw_timeouts): Likewise.
8095 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
8096 (grub_gfxmenu_clear_timeout): Likewise.
8097 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
8098 (grub_gfxmenu_timeout_notify): Likewise.
8099 (grub_gfxmenu_timeout_notifications): New external variable.
8100 (grub_gfxmenu_timeout_register): New function.
8101 (grub_gfxmenu_timeout_unregister): Likewise.
8103 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
8105 Transform (broken) vga terminal into (working) vga video driver.
8107 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
8108 video/i386/pc/vga.c.
8109 * include/grub/video.h (grub_video_driver_id):
8110 Add GRUB_VIDEO_DRIVER_VGA.
8111 * term/i386/pc/vga.c: Renamed to ...
8112 * video/i386/pc/vga.c: ...this
8113 (DEBUG_VGA): Removed.
8114 (CHAR_WIDTH): Likewise.
8115 (CHAR_HEIGHT): Likewise.
8116 (TEXT_WIDTH): Likewise.
8117 (TEXT_HEIGHT): Likewise.
8118 (DEFAULT_FG_COLOR): Likewise.
8119 (DEFAULT_BG_COLOR): Likewise.
8120 (colored_char): Likewise.
8123 (cursor_state): Likewise.
8124 (fg_color): Likewise.
8125 (bg_color): Likewise.
8126 (text_buf): Likewise.
8129 (framebuffer): New variable.
8130 (set_read_map): Disabled.
8131 (setup): New variable.
8132 (is_target): Likewise.
8133 (grub_vga_mod_init): Likewise.
8134 (grub_vga_mod_fini): Likewise.
8135 (check_vga_mem): Likewise.
8136 (write_char): Likewise.
8137 (write_cursor): Likewise.
8138 (scroll_up): Likewise.
8139 (grub_vga_putchar): Likewise.
8140 (grub_vga_getcharwidth): Likewise.
8141 (grub_vga_getwh): Likewise.
8142 (grub_vga_getxy): Likewise.
8143 (grub_vga_gotoxy): Likewise.
8144 (grub_vga_cls): Likewise.
8145 (grub_vga_setcolorstate): Likewise.
8146 (grub_vga_setcursor): Likewise.
8147 (grub_video_vga_init): New function.
8148 (grub_video_vga_setup): Likewise.
8149 (grub_video_vga_fini): Likewise.
8150 (update_target): Likewise.
8151 (grub_video_vga_blit_bitmap): Likewise.
8152 (grub_video_vga_blit_render_target): Likewise.
8153 (grub_video_vga_set_active_render_target): Likewise.
8154 (grub_video_vga_get_active_render_target): Likewise.
8155 (grub_video_vga_swap_buffers): Likewise.
8156 (grub_video_vga_set_palette): Likewise.
8157 (grub_video_vga_get_info_and_fini): Likewise.
8158 (grub_vga_term): Removed.
8159 (grub_video_vga_adapter): New variable.
8160 (GRUB_MOD_INIT): Register a video driver instead of terminal.
8161 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
8163 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8165 * video/readers/jpeg.c: Indented.
8167 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8169 Various jpeg cleanups.
8171 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
8172 (grub_jpeg_decode_quan_table): Use sizeof.
8173 (grub_jpeg_decode_du): Use ARRAY_SIZE.
8175 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
8177 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
8178 tables. Ignore non-last ac bit.
8179 (grub_jpeg_decode_quan_table): Likewise.
8181 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8183 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
8184 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
8185 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
8186 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
8187 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
8188 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
8190 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8192 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
8195 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
8197 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
8199 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
8201 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
8204 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
8206 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
8209 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
8211 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
8214 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
8216 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
8218 2010-05-01 Christian Franke <franke@computer.org>
8220 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
8221 Remove broken Cygwin path conversion.
8222 * util/misc.c: [__CYGWIN__] Add include and define.
8223 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
8225 (make_system_path_relative_to_its_root): Simplify loop, replace early
8227 [__CYGWIN__] Add conversion to win32 path.
8228 Include "/" case in trailing slash removal.
8230 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8232 * kern/main.c (grub_load_config): Fix copy-pasted comment.
8233 Reported by: Seth Goldberg
8235 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8237 * commands/help.c (grub_cmd_help): Fix a typo.
8238 Reported by: Seth Goldberg
8240 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8242 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
8244 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
8245 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
8246 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
8247 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
8248 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
8249 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
8250 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
8251 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
8252 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
8253 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
8254 * normal/context.c (GRUB_MOD_INIT): Likewise.
8255 * normal/main.c (GRUB_MOD_INIT): Likewise.
8256 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
8257 * term/serial.c (GRUB_MOD_INIT): Likewise.
8258 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
8260 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8262 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
8265 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8267 * commands/iorw.c: New file.
8268 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
8269 (iorw_mod_SOURCES): New variable.
8270 (iorw_mod_CFLAGS): Likewise.
8271 (iorw_mod_LDFLAGS): Likewise.
8273 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8277 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
8278 * normal/main.c (hotkey_aliases): New variable.
8279 (grub_normal_add_menu_entry): Parse "--hotkey".
8280 * normal/menu_text.c (run_menu): Handle hotkeys.
8282 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8284 * kern/i386/coreboot/init.c (grub_machine_init): Call
8285 grub_machine_mmap_init on qemu.
8287 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8289 * boot/i386/qemu/boot.S: Add a missing .code16.
8291 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8293 Use LBIO on coreboot.
8295 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
8296 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
8297 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
8299 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
8300 grub_machine_mmap_init on coreboot.
8301 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
8302 GRUB_LINUXBIOS_MEMBER_LINK.
8303 (grub_machine_mmap_iterate): Fix declaration.
8304 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
8306 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8308 Split coreboot and multiboot ports.
8310 * conf/i386-multiboot.rmk: New file.
8311 * configure.ac: Add multiboot port.
8312 * include/grub/i386/multiboot/boot.h: New file.
8313 * include/grub/i386/multiboot/console.h: Likewise.
8314 * include/grub/i386/multiboot/init.h: Likewise.
8315 * include/grub/i386/multiboot/kernel.h: Likewise.
8316 * include/grub/i386/multiboot/loader.h: Likewise.
8317 * include/grub/i386/multiboot/memory.h: Likewise.
8318 * include/grub/i386/multiboot/serial.h: Likewise.
8319 * include/grub/i386/multiboot/time.h: Likewise.
8320 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
8321 * loader/multiboot.c: Likewise.
8322 * loader/multiboot_mbi2.c: Likewise.
8323 * util/grub-mkrescue.in: Generate multiboot rescue.
8325 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8327 * kern/parser.c (grub_parser_execute): Cope with read-only config.
8329 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
8331 Merge handling of input and output terminals. Fix a hang.
8333 * commands/terminal.c (abstract_terminal): New struct.
8334 (handle_command): New function. Based on grub_cmd_terminal_input.
8335 (grub_cmd_terminal_input): Use handle_command.
8336 (grub_cmd_terminal_output): Use handle_command.
8338 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
8340 Fix comment handling.
8342 * tests/grub_script_comments.in: New testcase.
8343 * conf/tests.rmk: Rules for new testcase.
8344 * script/yylex.l: Updated flex rules.
8346 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
8348 * docs/grub.texi (play): Document that zero pitches produce rests.
8349 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
8352 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
8354 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
8357 2010-04-26 Christian Franke <franke@computer.org>
8359 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
8360 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
8361 (grub_get_prefix): Remove function.
8362 * util/grub-emu.c (main): Replace grub_get_prefix () call by
8363 make_system_path_relative_to_its_root ().
8364 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
8366 2010-04-24 Christian Franke <franke@computer.org>
8368 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
8369 (kernel_img_LDFLAGS): Remove -static-libgcc.
8371 2010-04-24 Christian Franke <franke@computer.org>
8373 * configure.ac: Do not CHECK_BSS_START_SYMBOL
8374 and CHECK_END_SYMBOL if grub-emu is built.
8375 Unset TARGET_OBJ2ELF if grub-emu is built
8376 without module support.
8378 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
8382 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
8383 (grub_fstest_SOURCES): Likewise.
8384 (pkglib_MODULES): Add nilfs2.mod.
8385 (nilfs2_mod_SOURCES): New variable.
8386 (nilfs2_mod_CFLAGS): Likewise.
8387 (nilfs2_mod_LDFLAGS): Likewise.
8388 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
8389 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
8390 * fs/nilfs2.c: New file.
8392 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
8394 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
8397 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
8399 Add grub-mkconfig support for NetBSD.
8401 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
8402 * util/grub-mkconfig.in: export new NetBSD specific variables.
8403 * po/POTFILES-shell: added 10_netbsd.in.
8404 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
8406 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
8408 Fix emu build with grub-emu-pci and grub-emu-modules.
8410 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
8412 * include/grub/libpciaccess.h: New file.
8413 * conf/any-emu.rmk: Update kernel headers for emu build.
8415 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8417 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
8419 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
8421 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
8423 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8425 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
8426 Retrieve chosen/bootpath if bootpath isn't hardcoded.
8427 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
8428 util/ieee1275/ofpath.c.
8429 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
8430 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
8431 * include/grub/sparc64/ieee1275/boot.h
8432 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
8433 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
8434 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
8435 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
8437 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
8438 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
8439 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
8442 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
8444 * util/grub-mkconfig.in: Corrected two == equality tests.
8445 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
8446 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
8447 expect a number appended to it.
8448 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
8449 expects a number appended to it.
8451 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8453 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
8455 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
8457 * util/hostdisk.c (make_device_name): Change to new partition naming.
8459 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
8461 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
8463 2010-04-17 Christian Franke <franke@computer.org>
8465 * Makefile.in: Add missing localedir setting.
8467 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
8469 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
8470 mistake in r2156. Noticed by Anthony Fok.
8472 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
8474 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
8476 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
8478 Fix a spurious, uninitialized variable warning.
8480 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
8481 Initialize variable, shdr.
8482 (grub_freebsd_load_elfmodule): Likewise.
8483 (grub_freebsd_load_elf_meta): Likewise.
8485 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
8487 Fix for escaped dollar in double quoted strings.
8489 * script/yylex.l: Updated flex rules.
8490 * conf/tests.rmk: Rule for new testcase.
8491 * tests/grub_script_dollar.in: New testcase.
8493 2010-04-13 Carles Pina i Estany <carles@pina.cat>
8494 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
8496 Enclose all translated strings in grub.cfg in single quotes, and
8497 escape them appropriately (Ubuntu bug #552921).
8499 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
8500 * util/grub.d/10_hurd.in: Use it.
8501 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
8502 * util/grub.d/10_linux.in (linux_entry): Likewise.
8504 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8506 Fix cygwin compilation.
8508 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
8509 * include/grub/misc.h (__register_frame_info)
8510 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
8511 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
8512 * kern/misc.c (__register_frame_info)
8513 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
8514 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
8516 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8518 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
8520 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8522 Unify libgcc processing.
8524 * Makefile.in (kernel_img_LDFLAGS): New variable.
8525 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
8526 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
8528 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
8529 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
8530 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
8531 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
8532 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
8533 overwriting. Remove -lgcc and -static-libgcc
8534 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
8535 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
8536 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
8537 (kernel_img_LDFLAGS): Append instead of overwriting.
8538 Remove -lgcc and -static-libgcc
8539 * conf/sparc64-ieee1275.rmk: Likewise.
8540 * include/grub/powerpc/libgcc.h: Move to ...
8541 * include/grub/libgcc.h: .. this.
8542 * include/grub/libgcc.h: Don't export most of the function on x86.
8543 (__bswapsi2): New export.
8544 (__bswapdi2): Likewise.
8545 * include/grub/mips/libgcc.h: Removed.
8546 * include/grub/sparc64/libgcc.h: Likewise.
8548 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8550 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
8551 disk_info_msg (conflicts with gettexting into languages with cases).
8553 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
8555 Add grub-probe support for NetBSD.
8557 * util/getroot.c (find_root_device): Convert block device to
8558 character device on NetBSD.
8559 * util/probe.c (probe): Require character device on NetBSD.
8560 * util/hostdisk.c: NetBSD specific headers.
8561 (configure_device_driver): new function to tune device driver
8562 parameters (currently only for NetBSD floppy driver).
8563 (grub_util_biosdisk_open): NetBSD specific code (get disk size
8564 via disklabel ioctl).
8565 (open_device): call configure_device_driver on NetBSD.
8566 (convert_system_partition_to_system_disk): NetBSD specific code.
8567 (device_is_wholedisk): Likewise.
8568 (grub_util_biosdisk_get_grub_dev): Likewise.
8569 (make_device_name): Fixed a typo in bsd_part_str.
8570 * configure.ac: check for opendisk() and getrawpartition() on
8571 NetBSD and set LIBUTIL.
8572 * Makefile.in: add LIBUTIL to LIBS.
8574 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
8578 * util/grub-script-check.c: Better help message.
8580 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
8584 * configure.ac: Flex version check.
8585 * conf/common.rmk: Add -Wno-error to sh.mod.
8586 * script/yylex.l: Remove all #pragma.
8588 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8590 * include/grub/util/misc.h (canonicalise_file_name): Add missing
8592 Reported by: Seth Goldberg.
8594 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8596 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
8597 Rename "module" to "module2".
8598 Reported by: Seth Goldberg.
8600 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8602 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
8604 Reported by: Seth Goldberg.
8606 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8608 * lib/posix_wrap/locale.h: Add missing file.
8609 Reported by: Seth Goldberg.
8611 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
8613 grub-emu module load support.
8615 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
8616 NO_DYNAMIC_MODULES switched to this.
8617 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
8619 * conf/any-emu.rmk: Generate symlist.
8620 (kernel_img_HEADERS): Add util/datetime.h.
8621 (kernel_img_HEADERS) [sdl]: Add sdl.h.
8622 (kernel_img_HEADERS) [libusb]: Add libusb.h.
8623 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
8624 kern/$(target_cpu)/cache.S.
8625 * configure.ac (grub-emu-modules): New option.
8626 * genmk.rb: Handle multiple source lists.
8627 * include/grub/sdl.h: New file.
8628 * include/grub/libusb.h: Likewise.
8629 * util/grub-emu.c (main): Hanle (host) root.
8630 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
8631 GRUB_ERR_UNKNOWN_DEVICE.
8632 * util/misc.c: Move mm functions to ...
8633 * util/mm.c: ... here. All users updated.
8635 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8637 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
8638 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
8640 (maintainer-clean): Remove libgcrypt-grub.
8642 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8644 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
8646 2010-04-09 EFI Coder <eficoder@hotmail.com>
8648 * normal/menu_text.c (print_message): Clean up the message and show
8649 the Fn information when on EFI
8650 * term/efi/console.c (grub_console_checkkey): Add F4 support.
8652 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8654 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
8656 * normal/crypto.c (read_crypto_list): Likewise.
8657 * normal/dyncmd.c (read_command_list): Likewise.
8658 * normal/term.c (read_terminal_list): Likewise.
8659 * normal/main.c (read_lists): Use explicit prefix.
8660 (read_lists_hook): Use read_lists.
8661 (grub_normal_execute): Likewise.
8663 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8665 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
8666 Reported by: Thomas Schmitt.
8667 Add -no-emul-boot to grub-mkisofs parameters.
8669 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8671 * font/font.c: Indented.
8673 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
8675 Elif support to GRUB script (by Deepak Vankadaru).
8677 * tests/grub_script_if.in: New testcase.
8678 * conf/tests.rmk: Rule for new testcase.
8679 * script/parser.y: Grammar rules for elif.
8681 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
8683 While and until loops support to GRUB script.
8685 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
8686 (grub_script_create_cmdwhile): New function prototype.
8687 (grub_script_execute_cmdwhile): New function prototype.
8688 * script/execute.c (grub_script_execute_cmdwhile): New function.
8689 * script/parser.y (command): New commands.
8690 (whilecmd): New grammar rule.
8691 (untilcmd): New grammar rule.
8692 * script/script.c (grub_script_create_cmdwhile): New function.
8693 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
8696 * tests/grub_script_while1.in: New testcase.
8697 * conf/tests.rmk: Rule for new testcase.
8699 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8701 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
8704 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
8706 GRUB_BACKGROUND support.
8708 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
8709 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
8711 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8713 Load fonts and modules for gfxmenu in grub-mkconfig.
8714 Idea by: Mario Vazquez
8716 * util/grub.d/00_header.in: Load pf2 and image modules.
8718 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8720 grub-mkconfig multiple terminal support.
8722 * util/grub-mkconfig.in: Handle multiple terminals correctly.
8723 * util/grub.d/00_header.in: Likewise.
8725 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
8727 * Makefile.in: Specify files explicitly instead of using $< and $@ since
8728 we use cd $(srcdir).
8730 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
8732 * util/grub.d/10_linux.in: Only use the first word of
8733 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
8734 spaces in GRUB_DISTRIBUTOR.
8735 * util/grub.d/10_kfreebsd.in: Likewise.
8736 * util/grub.d/10_hurd.in: Likewise.
8738 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
8740 Fix unit testing framework for Qemu 0.12.
8742 * tests/util/grub-shell.in: Remove -serial stdio option.
8744 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
8746 POSIX header file wrappers.
8748 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
8750 * lib/posix_wrap/ctype.h: Likewise.
8751 * lib/posix_wrap/errno.h: Likewise.
8752 * lib/posix_wrap/langinfo.h: Likewise.
8753 * lib/posix_wrap/limits.h: Likewise.
8754 * lib/posix_wrap/localcharset.h: Likewise.
8755 * lib/posix_wrap/stdint.h: Likewise.
8756 * lib/posix_wrap/stdio.h: Likewise.
8757 * lib/posix_wrap/stdlib.h: Likewise.
8758 * lib/posix_wrap/string.h: Likewise.
8759 * lib/posix_wrap/sys/types.h: Likewise.
8760 * lib/posix_wrap/unistd.h: Likewise.
8761 * lib/posix_wrap/wchar.h: Likewise.
8762 * lib/posix_wrap/wctype.h: Likewise.
8763 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
8764 (grub_script.yy.h): Likewise.
8765 * script/yylex.l: Remove POSIX emulation #defines.
8766 * Makefile.in (POSIX_CFLAGS): New variable.
8767 (GNULIB_UTIL_CFLAGS): Likewise.
8771 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
8772 (regexp_mod_SOURCES): New variable.
8773 (regexp_mod_CFLAGS): Likewise.
8774 (regexp_mod_LDFLAGS): Likewise.
8775 * commands/regexp.c: New file.
8776 * gnulib/regcomp.c: New file. Imported from gnulib.
8777 * gnulib/regex.c: Likewise.
8778 * gnulib/regex_internal.c: Likewise.
8779 * gnulib/regex_internal.h: Likewise.
8780 * gnulib/regexec.c: Likewise.
8781 * gnulib/regex.h: Likewise.
8783 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
8785 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
8786 unsupported video mode types.
8788 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
8790 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
8792 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
8794 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
8795 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
8797 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
8799 Remove unused grub_vga_get_font.
8801 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
8802 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
8804 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8806 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
8807 * include/grub/misc.h: Likewise.
8809 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8811 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
8812 for which failure is fatal.
8814 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8816 * util/grub-install.in: Use mkdir -p to create grub directory.
8817 * util/i386/efi/grub-install.in: Likewise.
8818 * util/ieee1275/grub-install.in: Likewise.
8820 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8822 * Makefile.in (LEX): new variable.
8824 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
8826 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
8827 `=' and added double quotes on operands of this equality test.
8829 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
8831 * Makefile.in (uninstall): Remove a leftover debug echo.
8832 Reported by: Grégoire Sutre
8834 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
8836 MIPS multiboot2 support.
8838 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
8839 (multiboot2_mod_SOURCES): New variable.
8840 (multiboot2_mod_CFLAGS): Likewise.
8841 (multiboot2_mod_LDFLAGS): Likewise.
8842 (multiboot2_mod_ASFLAGS): Likewise.
8843 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
8845 (MULTIBOOT_ENTRY_REGISTER): Likewise.
8846 (MULTIBOOT_MBI_REGISTER): Likewise.
8847 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
8848 (MULTIBOOT_ELF32_MACHINE): Likewise.
8849 (MULTIBOOT_ELF64_MACHINE): Likewise.
8850 * include/grub/mips/multiboot.h: New file.
8851 * include/grub/video.h (grub_video_driver_id): New type
8852 GRUB_VIDEO_DRIVER_SM712.
8853 (grub_video_get_info_and_fini): Export.
8854 (grub_video_get_palette): Likewise.
8855 (grub_video_get_driver_id): Likewise.
8856 * include/multiboot2.h: Resynced with spec.
8857 * loader/i386/multiboot.c: Moved from here ...
8858 * loader/multiboot.c: ... here. All users updated.
8859 (grub_multiboot_boot): Use platform-specific macros.
8860 * loader/i386/multiboot_elfxx.c: Moved from here ...
8861 * loader/multiboot_elfxx.c: ... here. All users updated.
8862 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
8863 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
8864 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
8866 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
8868 Import gnulib argp module.
8870 * gnulib/argp-ba.c: New file.
8871 * gnulib/argp-eexst.c: Likewise.
8872 * gnulib/argp-fmtstream.c: Likewise.
8873 * gnulib/argp-fmtstream.h: Likewise.
8874 * gnulib/argp-fs-xinl.c: Likewise.
8875 * gnulib/argp-help.c: Likewise.
8876 * gnulib/argp-namefrob.h: Likewise.
8877 * gnulib/argp-parse.c: Likewise.
8878 * gnulib/argp-pin.c: Likewise.
8879 * gnulib/argp-pv.c: Likewise.
8880 * gnulib/argp-pvh.c: Likewise.
8881 * gnulib/argp-version-etc.c: Likewise.
8882 * gnulib/argp-version-etc.h: Likewise.
8883 * gnulib/argp-xinl.c: Likewise.
8884 * gnulib/argp.h: Likewise.
8886 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8888 * kern/device.c (grub_device_iterate): Clear errors after failed
8891 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
8893 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
8894 returned by firmware.
8896 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
8898 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
8899 compilation on coreboot and qemu
8901 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8903 * include/multiboot2.h: Resync with spec.
8905 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
8907 Multiboot2 tag support
8909 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
8910 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
8911 Remove loader/multiboot_loader.c.
8912 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
8913 (grub_multiboot2_real_boot): Likewise.
8914 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
8915 (grub_get_multiboot_mmap_count): New proto.
8916 (grub_fill_multiboot_mmap): Likewise.
8917 (grub_multiboot_set_video_mode): Likewise.
8918 (grub_multiboot_set_console): Likewise.
8919 (grub_multiboot_load): Likewise.
8920 (grub_multiboot_load_elf): Likewise.
8921 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
8922 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
8923 * include/multiboot.h: Resynced with specification.
8924 * include/multiboot2.h: Resynced with specification.
8925 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
8926 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
8927 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
8928 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
8930 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
8931 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
8932 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
8934 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
8936 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
8937 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
8939 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
8940 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
8941 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
8943 * loader/i386/multiboot_mbi2.c: New file.
8945 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8949 * Makefile.in (GNULIB_CFLAGS): New variable.
8950 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
8951 (grub_script_check_CFLAGS): New variable.
8952 * gnulib/alloca.h: Resync with gnulib.
8953 * gnulib/error.c: Likewise.
8954 * gnulib/error.h: Likewise.
8955 * gnulib/fnmatch.c: Likewise.
8956 * gnulib/fnmatch_loop.c: Likewise.
8957 * gnulib/getdelim.c: Likewise.
8958 * gnulib/getline.c: Likewise.
8959 * gnulib/getopt.c: Likewise.
8960 * gnulib/getopt1.c: Likewise.
8961 * gnulib/getopt_int.h: Likewise.
8962 * gnulib/gettext.h: Likewise.
8963 * gnulib/progname.c: Likewise.
8964 * gnulib/progname.h: Likewise.
8966 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
8968 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
8969 which is the case with --disabled-nls.
8971 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
8972 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
8973 * util/misc.c: Likewise.
8974 * util/mkisofs/mkisofs.c: Likewise.
8975 * util/mkisofs/mkisofs.h: Likewise.
8977 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
8979 Simplify Apple CC support.
8981 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
8982 Add 0 byte at the end not to have a symbol with empty target.
8983 * mmap/i386/pc/mmap_helper.S: Likewise.
8984 * genmk.rb: Ignore errors 2030 and 2050.
8985 * kern/i386/pc/startup.S: Use LOCAL when possible.
8987 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
8989 Testcase and the fix for final semicolon on cmdline.
8991 * tests/grub_script_final_semicolon.in: New testcase.
8992 * conf/tests.rmk: Rules for the new testcase.
8993 * script/parser.y: Grammar fix.
8995 2010-03-26 BVK Chaitanya <bvk@localhost>
8997 Blank lines testcase for GRUB script.
8999 * tests/grub_script_blanklines.in: New testcase.
9000 * conf/tests.rmk: Rules for the new testcase.
9002 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9006 * genmk.rb: Add -DGRUB_FILE to all C targets.
9007 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
9008 * include/grub/list.h: Likewise.
9009 * include/grub/misc.h: Likewise.
9010 * include/grub/mm.h: Likewise.
9011 * include/grub/test.h: Likewise.
9012 * kern/mm.c: Likewise.
9013 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
9015 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9017 Sunpc partitions support.
9019 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
9020 (grub_fstest_SOURCES): Likewise.
9021 (pkglib_MODULES): Add part_sunpc.mod.
9022 (part_sunpc_mod_SOURCES): New variable.
9023 (part_sunpc_mod_CFLAGS): Likewise.
9024 (part_sunpc_mod_LDFLAGS): Likewise.
9025 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
9026 * partmap/sunpc.c: New file.
9028 2010-03-26 BVK Chaitanya <bvk@localhost>
9030 For loop support to GRUB script.
9032 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
9033 (grub_script_create_cmdfor): New function prototype.
9034 (grub_script_execute_cmdfor): New function prototype.
9035 * script/execute.c (grub_script_execute_cmdfor): New function.
9036 * script/parser.y (command): New for command.
9037 (forcmd): New grammar rule.
9038 * script/script.c (grub_script_create_cmdfor): New function.
9039 * util/grub-script-check.c (grub_script_execute_cmdfor): New
9041 * tests/grub_script_for1.in: New testcase.
9042 * conf/tests.rmk: Rules for new testcase.
9044 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
9048 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
9049 'partition' is NULL, grub_partition_get_start already does that.
9050 * commands/loadenv.c (check_blocklists): Likewise.
9051 (write_blocklists): Likewise.
9052 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
9053 (grub_fstest_SOURCES): Likewise.
9054 (pkglib_MODULES): Add part_bsd.mod.
9055 (part_bsd_mod_SOURCES): New variable.
9056 (part_bsd_mod_CFLAGS): Likewise.
9057 (part_bsd_mod_LDFLAGS): Likewise.
9058 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
9059 (grub_emu_SOURCES): Likewise.
9060 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
9061 * include/grub/bsdlabel.h: New file.
9062 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
9064 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
9065 (grub_partition_map_list): New variable.
9066 (grub_partition_map_register): Inline.
9067 (grub_partition_map_unregister): Likewise.
9068 (FOR_PARTITION_MAPS): New macro.
9069 (grub_partition_map_iterate): Removed.
9070 (grub_partition_get_start): Handle nested partitions.
9071 * include/grub/msdos_partition.h: Remove bsd-related entries.
9072 (grub_pc_partition): Remove.
9073 * kern/disk.c (grub_disk_close): Free partition data.
9074 (grub_disk_adjust_range): Handle nested partitions.
9075 * kern/partition.c (grub_partition_map_probe): New function.
9076 (grub_partition_probe): Parse name to number, handle subpartitions.
9077 (get_partmap): New function.
9078 (grub_partition_iterate): Handle subpartitions.
9079 (grub_partition_get_name): Likewise.
9080 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
9081 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
9082 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
9083 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
9085 (acorn_partition_map_probe): Remove.
9086 (acorn_partition_map_get_name): Likewise.
9087 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
9089 Set 'index' to 0 since there can be only one partition entry per sector.
9090 (amiga_partition_map_probe): Remove.
9091 (amiga_partition_map_get_name): Likewise.
9092 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
9094 Set 'offset' and 'index' to real positions of partitions.
9095 (apple_partition_map_probe): Remove.
9096 (apple_partition_map_get_name): Likewise.
9097 * partmap/bsdlabel.c: New file.
9098 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
9100 Allocate 'data' so it can be correctly freed.
9101 Set 'index' to offset inside sector.
9102 (gpt_partition_map_probe): Remove.
9103 (gpt_partition_map_get_name): Likewise.
9104 * partmap/msdos.c (grub_partition_parse): Remove.
9105 (pc_partition_map_iterate): Don't force raw access.
9107 Make 'ext_offset' a local variable.
9108 (pc_partition_map_probe): Remove.
9109 (pc_partition_map_get_name): Remove.
9110 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
9112 (sun_partition_map_probe): Remove.
9113 (sun_partition_map_get_name): Likewise.
9114 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
9115 (grub_pcpart_type): Likewise.
9116 * util/hostdisk.c (open_device): Handle new numbering scheme.
9117 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
9118 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
9119 * util/grub-probe.c (probe_partmap): Handle nested paritions.
9120 * util/grub-install.in: Insert all subpartition modules.
9121 * util/ieee1275/grub-install.in: Likewise.
9123 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
9125 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
9128 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
9130 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
9132 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
9134 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
9135 match where 'make install' puts them.
9136 * util/i386/efi/grub-install.in: Likewise.
9138 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
9140 * .bzrignore: Add gentrigtables, grub-script-check,
9141 grub_script_check_init.c, grub_script_check_init.h, and
9144 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
9146 * kern/parser.c: Indented.
9148 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
9150 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
9152 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
9154 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
9155 alpha_mask_size == 0 case.
9157 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
9159 GRUB shell lexer and parser improvements.
9161 * conf/any-emu.rmk: Build rule updates.
9162 * conf/common.rmk: Likewise.
9163 * conf/i386-coreboot.rmk: Likewise.
9164 * conf/i386-efi.rmk: Likewise.
9165 * conf/i386-ieee1275.rmk: Likewise.
9166 * conf/i386-pc.rmk: Likewise.
9167 * conf/powerpc-ieee1275.rmk: Likewise.
9168 * conf/x86_64-efi.rmk: Likewise.
9170 * configure.ac: Configure check for flex.
9172 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
9174 (grub_lexer_param): Struct member updates.
9175 (grub_parser_param): Likewise.
9176 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
9177 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
9178 (grub_script_lexer_init): Prototype update.
9179 (grub_script_lexer_record_start): Likewise.
9180 (grub_script_lexer_record_stop): Likewise.
9181 (grub_script_lexer_yywrap): New function prototype.
9182 (grub_script_lexer_fini): Likewise.
9183 (grub_script_execute_argument_to_string): Removed by...
9184 (grub_script_execute_argument_to_argv): ...better version.
9186 * script/execute.c (ROUND_UPTO): New macro.
9187 (grub_script_execute_cmdline): Out of memory fixes.
9188 (grub_script_execute_menuentry): Likewise.
9189 (grub_script_execute_argument_to_string): Removed. Update all
9191 (grub_script_execute_argument_to_argv): ...better version.
9192 * script/function.c (grub_script_function_create): Use
9193 grub_script_execute_argument_to_argv instead of
9194 grub_script_execute_argument_to_string.
9196 * script/lexer.c (check_varstate): Removed.
9197 (check_textstate): Removed.
9198 (grub_script_lexer_record_start): Likewise.
9199 (grub_script_lexer_record_stop): Likewise.
9200 (recordchar): Replaced with...
9201 (grub_script_lexer_record): ...new function.
9202 (nextchar): Removed.
9203 (grub_script_lexer_init): Rewritten.
9204 (grub_script_yylex): Rewritten.
9205 (append_newline): New function.
9206 (grub_script_lexer_yywrap): New function.
9207 (grub_script_lexer_fini): New function.
9208 (grub_script_yyerror): Sets error flag.
9210 * script/yylex.l: New file.
9211 (grub_lexer_yyfree): Wrapper for flex yyffre.
9212 (grub_lexer_yyalloc): Likewise.
9213 (grub_lexer_yyrealloc): Likewise.
9214 * script/parser.y: Refactored.
9216 * script/script.c (grub_script_arg_add): Out of memory fixes.
9217 (grub_script_add_arglist): Likewise.
9218 (grub_script_create_cmdline): Likewise.
9219 (grub_script_create_cmdmenu): Likewise.
9220 (grub_script_add_cmd): Likewise.
9221 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
9222 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
9225 * tests/grub_script_echo1.in: New testcase.
9226 * tests/grub_script_vars1.in: New testcase.
9227 * tests/grub_script_echo_keywords.in: New testcase.
9229 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9231 Remove some redundancy in build system.
9233 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
9234 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
9235 (TARGET_LDFLAGS): Add -nostdlib.
9236 (TARGET_IMG_LDFLAGS): Likewise.
9237 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
9238 anything since mmap isn't available.
9239 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
9241 (pkglib_MODULES): Remove reboot.mod.
9242 (reboot_mod_SOURCES): Removed.
9243 (reboot_mod_CFLAGS): Likewise.
9244 (reboot_mod_LDFLAGS): Likewise.
9245 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
9246 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
9247 (DEFSYMFILES): Add kernel_syms.lst.
9248 (kernel_img_HEADERS): Add common headers.
9249 (symlist.c): New target.
9250 (kernel_syms.lst): Likewise.
9251 (pkglib_MODULES): Add memdisk.mod.
9252 (memdisk_mod_SOURCES): New variable.
9253 (memdisk_mod_CFLAGS): Likewise.
9254 (memdisk_mod_LDFLAGS): Likewise.
9255 (pkglib_MODULES): Add reboot.mod.
9256 (reboot_mod_SOURCES): New variable.
9257 (reboot_mod_CFLAGS): Likewise.
9258 (reboot_mod_LDFLAGS): Likewise.
9259 (pkglib_MODULES): Add date.mod.
9260 (date_mod_SOURCES): New variable.
9261 (date_mod_CFLAGS): Likewise.
9262 (date_mod_LDFLAGS): Likewise.
9263 (pkglib_MODULES): Add datehook.mod.
9264 (datehook_mod_SOURCES): New variable.
9265 (datehook_mod_CFLAGS): Likewise.
9266 (datehook_mod_LDFLAGS): Likewise.
9267 (pkglib_MODULES): Add lsmmap.mod.
9268 (lsmmap_mod_SOURCES): New variable.
9269 (lsmmap_mod_CFLAGS): Likewise.
9270 (lsmmap_mod_LDFLAGS): Likewise.
9271 (pkglib_MODULES): Add boot.mod.
9272 (boot_mod_SOURCES): New variable.
9273 (boot_mod_CFLAGS): Likewise.
9274 (boot_mod_LDFLAGS): Likewise.
9275 * conf/i386-coreboot.rmk: Removed redundant parts.
9276 * conf/i386-ieee1275.rmk: Likewise.
9277 * conf/i386-pc.rmk: Likewise.
9278 * conf/mips-yeeloong.rmk: Likewise.
9279 * conf/mips.rmk: Likewise.
9280 * conf/powerpc-ieee1275.rmk: Likewise.
9281 * conf/sparc64-ieee1275.rmk: Likewise.
9282 * conf/x86_64-efi.rmk: Likewise.
9283 * conf/i386-coreboot.rmk: Moved qemu parts ..
9284 * conf/i386-qemu.rmk: ... here
9285 * conf/i386-efi.rmk: Moved common parts to...
9286 * conf/x86-efi.rmk: ... here.
9287 * conf/i386.rmk: Added modules common to all x86 variants.
9288 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
9289 * disk/memdisk.c: Remove grub/machine/kernel.h.
9290 * gensymlist.sh.in: Include symbol.h.
9291 * hook/datehook.c: Correct module name.
9292 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
9293 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
9294 * include/grub/i386/efi/serial.h: New file.
9295 * include/grub/x86_64/efi/serial.h: Likewise.
9296 * util/time.c: Likewise.
9297 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
9299 2010-03-14 Colin King <colin.king@ubuntu.com>
9300 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
9302 Shrink the pre-partition-table part of boot.img by eight bytes.
9304 * boot/i386/pc/boot.S (ERR): New macro.
9305 (chs_mode): Use ERR.
9306 (geometry_error): Likewise.
9307 (hd_probe_error): Remove. This is only used once, so we wrwite
9309 (read_error): Instead of printing read_error_string, just set up
9310 %si and fall through to ...
9311 (error_message): ... this new function, also used by ERR.
9313 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
9315 Speed up consecutive hostdisk operations on the same device.
9317 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
9318 (grub_util_biosdisk_open): Initialise disk->data.
9319 (struct linux_partition_cache): New structure.
9320 (linux_find_partition): Cache partition start positions; these are
9321 expensive to compute on every read and write.
9322 (open_device): Cache open file descriptor in disk->data, so that we
9323 don't have to reopen it and flush the buffer cache for consecutive
9324 operations on the same device.
9325 (grub_util_biosdisk_close): New function.
9326 (grub_util_biosdisk_dev): Set `close' member.
9328 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
9329 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
9330 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
9331 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
9332 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
9334 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9336 Compile parts of grub-emu as modules.
9338 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
9339 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
9340 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
9341 (all-local): Add $(GRUB_EMU).
9342 (install-local): Install $(GRUB_EMU).
9343 (uninstall): Uninstall $(GRUB_EMU).
9344 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
9345 * kern/dl.c: Likewise.
9346 * commands/sleep.c: Not include machine/time.h.
9347 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
9348 (COMMON_CFLAGS): Likewise.
9349 (sbin_UTILITIES): Remove grub-emu.
9350 (grub_emu_SOURCES): Removed.
9351 (kernel_img_RELOCATABLE): New variable.
9352 (pkglib_PROGRAMS): Add kernel.img.
9353 (kernel_img_SOURCES): New variable
9354 (kernel_img_CFLAGS): Likewise.
9355 (kernel_img_LDFLAGS): Likewise.
9356 (TARGET_NO_STRIP): Likewise.
9357 (TARGET_NO_DYNAMIC_MODULES): Likewise.
9358 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
9359 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
9360 (grub-emu): New target.
9361 (GRUB_EMU): New variable.
9362 * configure.ac: Whitelist -emu as possible x86_64 architecture.
9363 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
9364 * loader/xnu.c: Likewise.
9365 * include/grub/pci.h: Likewise.
9366 * genemuinit.sh: New file.
9367 * genemuinitheader.sh: Likewise.
9368 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
9369 Support TARGET_NO_DYNAMIC_MODULES.
9370 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
9371 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
9372 * disk/loopback.c: Likewise.
9373 * font/font_cmd.c: Likewise.
9374 * partmap/acorn.c: Likewise.
9375 * partmap/amiga.c: Likewise.
9376 * partmap/apple.c: Likewise.
9377 * partmap/gpt.c: Likewise.
9378 * partmap/msdos.c: Likewise.
9379 * partmap/sun.c: Likewise.
9380 * parttool/msdospart.c: Likewise.
9381 * term/gfxterm.c: Likewise.
9382 * video/bitmap.c: Likewise.
9383 * video/readers/jpeg.c: Likewise.
9384 * video/readers/png.c: Likewise.
9385 * video/readers/tga.c: Likewise.
9386 * video/video.c: Likewise.
9387 * util/grub-emu.c (read_command_list): Removed.
9388 (main): Don't call util_init_nls.
9389 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
9390 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
9392 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9394 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
9395 date.mod, datehook.mod.
9396 (datetime_mod_SOURCES): New variable.
9397 (datetime_mod_CFLAGS): Likewise.
9398 (datetime_mod_LDFLAGS): Likewise.
9399 (date_mod_SOURCES): Likewise.
9400 (date_mod_CFLAGS): Likewise.
9401 (date_mod_LDFLAGS): Likewise.
9402 (datehook_mod_SOURCES): Likewise.
9403 (datehook_mod_CFLAGS): Likewise.
9404 (datehook_mod_LDFLAGS): Likewise.
9405 * conf/sparc64-ieee1275.rmk: Likewise.
9406 * lib/ieee1275/datetime.c: New file.
9408 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9410 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
9411 (ieee1275_fb_mod_SOURCES): New variable.
9412 (ieee1275_fb_mod_CFLAGS): Likewise.
9413 (ieee1275_fb_mod_LDFLAGS): Likewise.
9414 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
9416 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
9417 (HEAP_MAX_ADDR): Likewise.
9418 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
9420 Correct stop condition.
9421 (grub_ieee1275_devices_iterate): New function.
9422 * video/ieee1275.c: New file.
9424 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
9426 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
9428 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
9430 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
9431 SCRATCH_PAD_DISKBOOT as scratch.
9432 (bootit): Pass Openfirmware pointer in %o4.
9433 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
9435 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
9436 with util/grub-mkrawimage.c.
9437 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
9438 * include/grub/aout.h (AOUT_MID_SUN): New definition.
9439 (grub_aout_get_type) [GRUB_UTIL]: Removed.
9440 (grub_aout_load) [GRUB_UTIL]: Likewise.
9441 * include/grub/kernel.h (grub_modules_get_end): New proto.
9442 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
9443 (SCRATCH_PAD_BOOT): New definition.
9444 (SCRATCH_PAD_DISKBOOT): Likewise.
9445 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
9446 * include/grub/sparc64/ieee1275/ieee1275.h
9447 (grub_ieee1275_original_stack): New variable
9448 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
9450 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
9451 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
9452 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
9453 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
9454 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
9455 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
9456 (grub_platform_image_format_t): New type.
9457 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
9458 * kern/main.c (grub_modules_get_end)
9459 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
9460 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
9461 (codestart): Switch stacks.
9462 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
9464 (grub_heap_init): Use grub_modules_get_end.
9465 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
9467 * util/grub-mkrawimage.c (generate_image): Support sparc64.
9469 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
9471 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
9473 * util/grub-mkrescue.in: Base ISO UUID on UTC.
9475 2010-03-08 Matt Kraai <kraai@ftbfs.org>
9477 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
9480 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
9482 * genmoddep.awk: Output all missing symbols and not only first.
9484 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9486 * NEWS: Put the date of 1.98 release.
9488 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9490 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
9493 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9495 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
9496 completition in the middle of string.
9498 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9500 * util/grub-mkrescue.in: Use mktemp with explicit template.
9502 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9504 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
9506 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
9508 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
9511 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
9513 Fix FreeBSD compilation.
9515 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
9516 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
9518 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
9520 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
9522 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9524 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
9526 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9528 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
9530 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
9532 Support relative image path in theme file.
9534 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
9535 (image_set_property): Handle theme_dir and relative path.
9537 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9539 * configure.ac: Alias amd64 to x86_64.
9541 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9543 * NEWS: mention multiboot on EFI.
9545 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9547 * kern/main.c (grub_load_modules): Handle errors from init functions of
9550 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9552 * normal/autofs.c (autoload_fs_module): Handle errors.
9554 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9556 Disable linux.mod on qemu-mips since it's not functional and leads
9557 to compilation failure.
9559 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
9560 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
9561 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
9562 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
9563 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
9564 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
9565 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
9566 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
9567 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
9568 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
9569 Reported by: BVK Chaitanya
9571 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
9573 * INSTALL: Add gettext as a dependency and add qemu to a new section
9574 "Prerequisites for make-check".
9576 2010-03-04 Christian Franke <franke@computer.org>
9578 * util/grub-pe2elf.c: Add missing include "progname.h".
9580 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9582 * normal/crypto.c (read_crypto_list): Fix a typo.
9583 Reported by: Seth Goldberg.
9585 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9587 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
9588 Reported by: Seth Goldberg.
9590 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9592 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
9595 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9597 * genmk.rb: Remove terminal*.lst in make clean.
9598 Reported by: Seth Goldberg.
9600 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
9602 * util/i386/efi/grub-install.in: Copy gettext files.
9604 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
9606 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
9608 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
9610 Wait for user entry basing on presence of output rather than on errors.
9612 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
9613 (grub_install_newline_hook): Likewise.
9614 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
9615 * normal/menu.c (show_menu): Check line_counter to determine presence
9617 * normal/term.c (grub_normal_line_counter): New variable.
9618 (grub_normal_get_line_counter): New function.
9619 (grub_install_newline_hook): Likewise.
9621 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
9623 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
9625 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
9627 * configure.ac: Update version to 1.98.
9629 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
9631 * util/grub.d/10_linux.in (linux_entry): Don't default to
9632 gfxpayload=keep if Linux doesn't support video handover.
9634 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
9636 Don't compile video modules on yeeloong since video subsystem is part
9639 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
9640 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
9641 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
9642 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
9643 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
9644 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
9645 * include/grub/bitmap_scale.h: Likewise.
9646 * include/grub/bufio.h: Likewise.
9647 * include/grub/font.h: Likewise.
9648 * include/grub/gfxterm.h: Likewise.
9649 * include/grub/video.h: Likewise.
9650 * include/grub/vbe.h: Don't include video_fb.h.
9651 * video/i386/pc/vbe.c: Include video_fb.h.
9652 * commands/i386/pc/vbetest.c: Include video.h.
9654 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
9656 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
9657 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
9658 default entry if GRUB_SAVEDEFAULT=true. This allows using
9659 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
9660 saving a new default on every boot.
9662 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9664 * normal/crypto.c (read_crypto_list): Fix a memory leak.
9665 * normal/term.c (read_terminal_list): Likewise.
9666 * normal/main.c (grub_normal_init_page): Likewise.
9667 (grub_normal_read_line_real): Likewise.
9669 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
9671 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
9673 Reported by: Seth Goldberg.
9675 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
9677 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
9678 duplicate declaration of `start'.
9680 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
9682 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
9684 Reported by: Georgy Buranov
9686 2010-02-20 Carles Pina i Estany <carles@pina.cat>
9688 * util/grub-mkrawimage.c (usage): Change string formatting to
9691 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
9693 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
9696 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
9698 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
9699 Reported by: Michael Suchanek.
9701 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
9703 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
9704 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
9706 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
9708 Remove any reference to non-free fonts.
9710 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
9711 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
9712 uses non-free components.
9713 * font/font.c (grub_font_get_name): Remove example name.
9714 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
9715 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
9716 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
9717 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
9719 2010-02-16 Georgy Buranov <gburanov@gmail.com>
9721 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
9723 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
9725 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
9727 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
9729 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
9731 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
9733 * gensymlist.sh.in: Use TARGET_CC instead of CC.
9735 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9737 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
9738 * docs/grub.texi (Command-line and menu entry commands): Document play
9741 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9743 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
9744 parse arguments as inline tempo and notes. Move code for playing notes
9746 (play): ... new function.
9748 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
9750 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
9751 grub_uint16_t instead of short.
9752 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
9753 disk from little endian to cpu endianness.
9755 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
9757 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
9758 GRUB_TICKS_PER_SECOND instead of 120.
9760 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9762 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
9763 escape sequence after \e.
9765 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9767 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
9768 non-ASCII characters.
9770 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9772 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
9773 set root in single quotes to prevent \, from being unescaped.
9775 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9777 Prevent unknown commands from stopping menuentry execution.
9779 * script/execute.c (grub_script_execute_cmdline): Print error after
9782 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
9784 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
9785 Reported by: Pavel Pisa.
9787 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9789 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
9791 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9793 Merge grub_ieee1275_map_physical into grub_map and rename to
9796 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
9797 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
9799 * kern/ieee1275/openfw.c (grub_map): Rename to ...
9800 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
9802 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
9804 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9806 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
9807 opening and not after.
9809 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9811 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
9814 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9816 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
9817 (alloc_phys): Use ALIGN_UP instead of align_addr.
9819 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9821 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
9823 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9825 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
9827 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9829 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
9832 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9834 Fix over-4GiB seek on sparc64.
9836 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
9837 Replace pos_i and pos_lo with pos. All users updated.
9838 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
9840 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
9842 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
9845 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9847 * util/grub-mkrawimage.c (main): Call set_program_name.
9849 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9851 Properly align 64-bit targets.
9853 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
9854 (generate_image): Use ALIGN_ADDR.
9856 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9858 Properly create cross-endian images.
9860 * include/grub/types.h (grub_host_to_target_addr): New macro
9861 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
9863 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
9865 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
9867 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9869 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
9871 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
9872 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
9873 (grub_linux_boot): Divide by 64K when on VESA.
9875 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9877 Support GRUB_GFXPAYLOAD_LINUX.
9879 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
9880 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
9882 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
9884 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
9885 to show messages instead of discarding them.
9886 Process errors after executing command and not before. Keep old method
9889 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
9891 * configure.ac: Check for ft2build.h.
9893 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9895 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
9897 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9899 * genkernsyms.sh.in: Use TARGET_CC.
9901 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
9905 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9907 * include/grub/multiboot2.h: Remove leftover file.
9908 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
9909 * include/grub/partition.h [GRUB_UTIL]: Likewise.
9911 2010-02-07 Yves Blusseau <blusseau@zetam.org>
9913 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
9915 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9917 Fix warnings in grub-emu when compiling with maximum warning options.
9919 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
9920 (grub_arch_modules_addr): Return 0 and not NULL.
9921 * util/misc.c (ENABLE_RELOCATABLE): New definition.
9922 (xstrdup): Use newstr instead of dup.
9923 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
9924 of disk to dsk to avoid shadowing.
9925 (find_free_slot): Fix prototype.
9926 * util/getroot.c (grub_util_is_dmraid): Make static.
9927 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
9928 Add missing prototype.
9929 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
9931 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9933 * loader/i386/linux.c (grub_linux_setup_video): Handle error
9936 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9938 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
9941 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9943 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
9944 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
9945 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
9946 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
9947 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
9948 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
9950 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9952 * include/grub/err.h (grub_err_printf): Don't export.
9954 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9956 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
9958 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
9960 * include/grub/i18n.h (grub_gettext_dummy): Removed.
9961 * kern/misc.c (grub_gettext_dummy): Make static.
9963 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9965 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
9967 * kern/term.c (grub_putchar): Likewise.
9969 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9971 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
9972 buggy hook call and memory leak.
9974 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9976 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
9978 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9980 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
9982 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9984 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
9986 Return grub_errno on allocation error.
9988 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9990 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
9992 2010-02-06 Yves Blusseau <blusseau@zetam.org>
9994 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
9995 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
9997 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
9999 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
10001 (grub_pxefs_open): Likewise.
10003 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
10005 * util/grub.d/10_hurd.in: Add --class information to menuentries.
10006 * util/grub.d/10_kfreebsd.in: Likewise.
10007 * util/grub.d/10_linux.in: Likewise.
10009 2010-02-06 Colin D Bennett <colin@gibibit.com>
10011 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
10012 (gfxmenu_mod_SOURCES): New variable.
10013 (gfxmenu_mod_CFLAGS): Likewise.
10014 (gfxmenu_mod_LDFLAGS): Likewise.
10015 * include/grub/term.h (grub_term_set_current_output): Declare
10017 * docs/gfxmenu-theme-example.txt: New file.
10018 * gfxmenu/gfxmenu.c: Likewise.
10019 * gfxmenu/gui_box.c: Likewise.
10020 * gfxmenu/gui_canvas.c: Likewise.
10021 * gfxmenu/gui_circular_progress.c: Likewise.
10022 * gfxmenu/gui_image.c: Likewise.
10023 * gfxmenu/gui_label.c: Likewise.
10024 * gfxmenu/gui_list.c: Likewise.
10025 * gfxmenu/gui_progress_bar.c: Likewise.
10026 * gfxmenu/gui_string_util.c: Likewise.
10027 * gfxmenu/gui_util.c: Likewise.
10028 * gfxmenu/icon_manager.c: Likewise.
10029 * gfxmenu/model.c: Likewise.
10030 * gfxmenu/named_colors.c: Likewise.
10031 * gfxmenu/theme_loader.c: Likewise.
10032 * gfxmenu/view.c: Likewise.
10033 * gfxmenu/widget-box.c: Likewise.
10034 * include/grub/gfxmenu_model.h: Likewise.
10035 * include/grub/gfxmenu_view.h: Likewise.
10036 * include/grub/gfxwidgets.h: Likewise.
10037 * include/grub/gui.h: Likewise.
10038 * include/grub/gui_string_util.h: Likewise.
10039 * include/grub/icon_manager.h: Likewise.
10041 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10043 Agglomerate scrolling in gfxterm.
10045 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
10046 (grub_virtual_screen_setup): Initialise 'total_screen'.
10047 (write_char): Split to ...
10048 (paint_char): ... this ...
10049 (write_char): ... and this.
10050 (paint_char): Handle delayed scrolling.
10051 (draw_cursor): Likewise.
10052 (scroll_up): Split to ...
10053 (real_scroll): ... this ...
10054 (scroll_up): ... and this.
10055 (real_scroll): Handle multi-line scroll and draw below-the-bottom
10057 (grub_gfxterm_refresh): Call real_scroll.
10059 2010-02-06 Colin D Bennett <colin@gibibit.com>
10061 * include/grub/misc.h (grub_iscntrl): New inline function.
10062 (grub_isalnum): Likewise.
10063 (grub_strtol): Likewise.
10065 2010-02-06 Colin D Bennett <colin@gibibit.com>
10067 * normal/menu_text.c (get_entry_number): Move from here ...
10068 * normal/menu.c (get_entry_number): ... moved here.
10069 * include/grub/menu.h (grub_menu_get_default_entry_index):
10071 * normal/menu.c (grub_menu_get_default_entry_index): New function.
10072 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
10073 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
10074 (grub_menu_viewer_should_return): Likewise.
10075 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
10076 * normal/menu_text.c (run_menu): Enable menu switching.
10077 * normal/menu_viewer.c (should_return): New variable.
10078 (menu_viewer_changed): Likewise.
10079 (grub_menu_viewer_show_menu): Handle menu viewer changes.
10080 (grub_menu_viewer_should_return): New function.
10081 (menuviewer_write_hook): Likewise.
10082 (grub_menu_viewer_init): Likewise.
10084 2010-02-06 Colin D Bennet <colin@gibibit.com>
10085 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10087 Support for gfxterm in a window.
10089 * include/grub/gfxterm.h: New file.
10090 * include/grub/video.h (struct grub_video_rect): New declaration.
10091 (grub_video_rect_t): Likewise.
10092 * term/gfxterm.c (struct grub_gfxterm_window): New type.
10093 (refcount): New variable.
10094 (render_target): Likewise.
10095 (window): Likewise.
10096 (repaint_callback): Likewise.
10097 (grub_virtual_screen_setup): Use 'render_target'.
10098 (init_window): New function.
10099 (grub_gfxterm_init_window): Likewise.
10100 (grub_gfxterm_init): Check reference counter.
10102 (destroy_window): New function.
10103 (grub_gfxterm_destroy_window): Likewise.
10104 (grub_gfxterm_fini): Check reference counter.
10105 Use destroy_window.
10106 (redraw_screen_rect): Restore viewport.
10107 Use 'render_target' and 'window'.
10108 Call 'repaint_callback'.
10109 (write_char): Use 'render_target'.
10110 (draw_cursor): Likewise.
10111 (scroll_up): Restore viewport.
10112 Use 'render_target' and 'window'.
10113 Call 'repaint_callback'.
10114 (grub_gfxterm_cls): Likewise.
10115 (grub_gfxterm_refresh): Use 'window'.
10116 (grub_gfxterm_set_repaint_callback): New function.
10117 (grub_gfxterm_background_image_cmd): Use 'window'.
10118 (grub_gfxterm_get_term): New function.
10119 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
10121 2010-02-06 Colin D Bennett <colin@gibibit.com>
10123 Bitmap scaling support.
10125 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
10126 (bitmap_scale_mod_SOURCES): New variable.
10127 (bitmap_scale_mod_CFLAGS): Likewise.
10128 (bitmap_scale_mod_LDFLAGS): Likewise.
10129 * include/grub/bitmap_scale.h: New file.
10130 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
10131 (background_image_cmd_options): New variable.
10132 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
10133 (cmd): Rename and change type to ...
10134 (background_image_cmd_handle): ... this. All users updated.
10135 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
10136 * video/bitmap_scale.c: New file.
10138 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10142 * Makefile.in (LIBSDL): New variable.
10143 (enable_grub_emu_sdl): Likewise.
10144 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
10145 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
10146 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
10147 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
10148 * util/sdl.c: New file.
10150 2010-02-06 Colin D Bennett <colin@gibibit.com>
10151 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10153 Double buffering support.
10155 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
10156 * include/grub/video.h: Update comment.
10157 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
10159 (grub_video_fb_doublebuf_blit_init): New prototype.
10160 * term/gfxterm.c (scroll_up): Support double buffering.
10161 (grub_gfxterm_refresh): Likewise.
10162 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
10163 (grub_video_fb_doublebuf_blit_init): Likewise.
10164 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
10165 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
10166 'displayed_page', 'render_page' and 'update_screen'.
10167 (grub_video_vbe_fini): Free offscreen buffer.
10168 (doublebuf_pageflipping_commit): New function.
10169 (doublebuf_pageflipping_update_screen): Likewise.
10170 (doublebuf_pageflipping_init): Likewise.
10171 (double_buffering_init): Likewise.
10172 (grub_video_vbe_setup): Enable doublebuffering.
10173 (grub_video_vbe_swap_buffers): Implement.
10174 (grub_video_vbe_set_active_render_target): Handle double buffering.
10175 (grub_video_vbe_get_active_render_target): Likewise.
10176 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
10177 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
10178 (grub_video_vbe_enable_double_buffering): Likewise.
10179 (grub_video_vbe_swap_buffers): Use update_screen.
10180 (grub_video_set_mode): Use double buffering.
10182 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
10184 * maintainance/gentrigtables.py: Remove.
10185 * lib/trig.c: Likewise.
10187 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
10189 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
10191 (trigtables.c): New rule.
10192 (gentrigtables): Likewise.
10193 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
10195 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
10197 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
10200 2010-02-06 Colin D Bennet <colin@gibibit.com>
10202 Trigonometry support.
10204 * include/grub/trig.h: New file.
10205 * lib/trig.c: Likewise.
10206 * maintainance/gentrigtables.py: Likewise.
10207 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
10208 (trig_mod_SOURCES): New variable.
10209 (trig_mod_CFLAGS): Likewise.
10210 (trig_mod_LDFLAGS): Likewise.
10212 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10214 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
10217 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
10219 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
10222 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10224 * util/hostdisk.c (open_device): Don't use partition device when reading
10225 before the partition.
10226 (grub_util_biosdisk_read): Don't read from partition and before the
10227 partition in single operation.
10228 (grub_util_biosdisk_write): Don't write to partition and before the
10229 partition in single operation.
10231 2010-02-03 Torsten Landschoff <torsten@debian.org>
10233 * kern/disk.c (grub_disk_read): Fix offset computation when reading
10236 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
10238 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
10240 (grub_biosdisk_write): Refuse to write to CDROM.
10242 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10244 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
10246 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
10248 * font/font.c (find_glyph): Check that bmp_idx is available before
10250 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
10251 with (font == NULL).
10253 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
10255 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
10257 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
10259 * include/grub/script_sh.h (sourcecode): Add const qualifier.
10260 * util/grub-script-check.c (getline): Fix empty lines case.
10262 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
10264 * Makefile.in (check): Exit with fail status when one of the tests
10266 * tests/example_functional_test.c (example_test): Fix reversed assert.
10267 * tests/example_unit_test.c (example_test): Likewise.
10269 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
10271 * util/grub.d/10_linux.in: This script does not use any of the
10272 contents of gettext.sh, only the external command `gettext', so stop
10273 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
10274 the same prefix as GRUB.)
10275 * util/grub.d/10_kfreebsd.in: Likewise.
10277 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10279 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
10282 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10284 * kern/disk.c (grub_disk_read): Fix offset computation when reading
10287 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
10289 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
10290 having a 4KiB and not 32KiB buffer size.
10292 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
10294 * util/hostfs.c: Include `<errno.h>'.
10295 (grub_hostfs_read): Handle errors from fseeko() and fread().
10297 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
10299 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
10300 loop when using read hooks on files whose size isn't sector-aligned.
10302 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
10304 Remove unused parameter.
10306 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
10307 (grub_iso9660_open): Remove initialization of `data->length'.
10309 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
10311 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
10312 memleak conditions.
10314 2010-01-27 Carles Pina i Estany <carles@pina.cat>
10316 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
10317 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
10319 2010-01-26 Carles Pina i Estany <carles@pina.cat>
10321 * util/bin2h.c (usage): Fix warning (space after backslash).
10323 2010-01-26 Carles Pina i Estany <carles@pina.cat>
10325 * font/font.c: Include `grub/fontformat.h.
10326 Remove font file format constants.
10327 (grub_font_load): Use the new macros.
10328 * include/grub/fontformat.h: New file.
10329 * util/grub-mkfont.c: Include `grub/fontformat.c'.
10330 (write_font_pf2): Use the new macros.
10332 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
10334 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
10337 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
10339 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
10341 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
10342 (_start): Macroify `0x7F'.
10344 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
10345 (make_install_device): Use "(pxe)" as fallback prefix when booting
10348 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
10350 * configure.ac: Reset LIBS after check for libgcc symbols.
10352 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
10354 * util/hostdisk.c (open_device): Add trailing newline to debug
10357 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
10359 * configure.ac: Check for `limits.h'.
10360 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
10362 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
10364 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
10365 capitalize error strings.
10367 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
10369 * util/grub.d/10_hurd.in: Add a recovery mode.
10371 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
10373 * configure.ac: Check for libgcc symbols with -nostdlib.
10375 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
10377 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
10379 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10381 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
10382 stack since heap may be unavailable at that point.
10383 (grub_ofconsole_gotoxy): Likewise.
10385 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10387 * configure.ac: Check for _restgpr_14_x.
10388 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
10389 and _savegpr_* prototypes.
10391 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
10393 Use generic grub_reboot() for i386-efi.
10395 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
10396 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
10397 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
10399 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
10401 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
10402 presence of "prefix" variable as it breaks when normal.mod is
10405 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
10407 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
10408 stack since heap is unavailable at that point.
10410 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
10412 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
10413 (grub_freebsd_bootinfo): Rewritten.
10414 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
10416 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
10418 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
10420 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
10422 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
10425 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
10427 * util/misc.c (make_system_path_relative_to_its_root): Change the work
10428 around for handling "/" to the correct fix. Fix a memory leak. Use
10429 xstrdup instead of strdup.
10431 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10433 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
10435 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10437 Optimise glyph lookup by Basic Multilingual Plane lookup array.
10439 * font/font.c (struct grub_font): New member 'bmp_idx'.
10440 (font_init): Initialise 'bmp_idx'.
10441 (load_font_index): Fill 'bmp_idx'.
10442 (find_glyph): Make inline. Use bmp_idx for BMP characters.
10444 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10446 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
10449 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10451 Move context handling out of the kernel.
10453 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
10454 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
10455 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
10456 * conf/i386-efi.rmk: Likewise.
10457 * conf/i386-ieee1275.rmk: Likewise.
10458 * conf/i386-pc.rmk: Likewise.
10459 * conf/powerpc-ieee1275.rmk: Likewise.
10460 * conf/sparc64-ieee1275.rmk: Likewise.
10461 * conf/x86_64-efi.rmk: Likewise.
10462 * include/grub/env.h: Include grub/menu.h.
10463 (grub_env_var_type): Removed.
10464 (grub_env_var): Replaced field 'type' with 'global'.
10465 (grub_env_find): New prototype.
10466 (grub_env_context_open): Remove EXPORT_FUNC.
10467 (grub_env_context_close): Likewise.
10468 (grub_env_export): Likewise.
10469 (grub_env_set_data_slot): Removed.
10470 (grub_env_get_data_slot): Likewise.
10471 (grub_env_unset_data_slot): Likewise.
10472 (grub_env_unset_menu): New prototype.
10473 (grub_env_set_menu): Likewise.
10474 (grub_env_get_menu): Likewise.
10475 * include/grub/env_private.h: New file.
10476 * include/grub/normal.h (grub_context_init): New prototype.
10477 (grub_context_fini): Likewise.
10478 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
10479 * normal/context.c (grub_cmd_export): ... to here.
10480 * kern/env.c: Include env_private.h.
10481 (HASHSZ): Moved to include/grub/env_private.h.
10482 (grub_env_context): Likewise.
10483 (grub_env_sorted_var): Likewise.
10484 (current_context): Renamed from this ...
10485 (grub_current_context): ...to this. 'static' removed. All users updated.
10486 (grub_env_find): Removed 'static'.
10487 (grub_env_context_open): Moved to normal/context.c.
10488 (grub_env_context_close): Likewise.
10489 (grub_env_export): Likewise.
10490 (mangle_data_slot_name): Removed.
10491 (grub_env_set_data_slot): Likewise.
10492 (grub_env_get_data_slot): Likewise.
10493 (grub_env_unset_data_slot): Likewise.
10494 * kern/main.c (grub_set_root_dev): Don't export root.
10495 It will be done later.
10496 (grub_main): Don't export prefix.
10497 It will be done later.
10498 * normal/context.c: New file.
10499 * normal/main.c (free_menu): Use grub_env_unset_menu.
10500 (grub_normal_add_menu_entry): Use grub_env_get_menu.
10501 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
10502 (GRUB_MOD_INIT(normal)): Call grub_context_init.
10503 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
10505 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10509 * commands/setpci.c: New file.
10510 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
10511 (setpci_mod_SOURCES): New variable.
10512 (setpci_mod_CFLAGS): Likewise.
10513 (setpci_mod_LDFLAGS): Likewise.
10515 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10517 Byte-addressable PCI configuration space.
10519 * bus/pci.c (grub_pci_make_address): Use byte address instead of
10521 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
10522 GRUB_PCI_REG_CACHELINE.
10523 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
10524 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
10525 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
10526 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
10527 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
10528 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
10529 grub_pci_make_address.
10530 (lock_rom_area): Likewise.
10531 * commands/lspci.c (grub_lspci_iter): Use macroses
10532 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
10533 of grub_pci_make_address.
10534 * disk/ata.c (grub_ata_pciinit): Likewise.
10535 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
10536 (GRUB_PCI_REG_VENDOR): Likewise.
10537 (GRUB_PCI_REG_DEVICE): Likewise.
10538 (GRUB_PCI_REG_COMMAND): Likewise.
10539 (GRUB_PCI_REG_STATUS): Likewise.
10540 (GRUB_PCI_REG_REVISION): Likewise.
10541 (GRUB_PCI_REG_CLASS): Likewise.
10542 (GRUB_PCI_REG_CACHELINE): Likewise.
10543 (GRUB_PCI_REG_LAT_TIMER): Likewise.
10544 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
10545 (GRUB_PCI_REG_BIST): Likewise.
10546 (GRUB_PCI_REG_ADDRESSES): Likewise.
10547 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10548 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10549 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10550 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10551 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10552 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
10553 (GRUB_PCI_REG_CIS_POINTER): Likewise.
10554 (GRUB_PCI_REG_SUBVENDOR): Likewise.
10555 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
10556 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
10557 (GRUB_PCI_REG_CAP_POINTER): Likewise.
10558 (GRUB_PCI_REG_IRQ_LINE): Likewise.
10559 (GRUB_PCI_REG_IRQ_PIN): Likewise.
10560 (GRUB_PCI_REG_MIN_GNT): Likewise.
10561 (GRUB_PCI_REG_MAX_LAT): Likewise.
10562 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
10563 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
10564 * video/efi_uga.c (find_framebuf): Likewise.
10565 * video/sm712.c (grub_video_sm712_setup): Likewise.
10566 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
10569 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10571 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
10572 can be reliably determined to be supported.
10574 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10576 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
10577 that VESA is supported.
10578 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
10581 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10583 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
10585 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10587 * util/misc.c (make_system_path_relative_to_its_root): Work around
10588 special-casing of "/", as previous incarnation of this routine did.
10590 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10592 Fix any-emu compilation.
10594 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
10595 * grub_bin2h_SOURCES: New variable.
10597 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10599 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
10601 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
10603 * util/grub.d/00_header.in: Fix handling of locale_dir.
10605 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10607 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
10608 as possible unifont location (Gentoo).
10609 Reported by: Alexander Brüning
10611 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10613 Don't try to generate lists for kernel.img.
10615 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
10616 (pkglib_MODULES): Remove kernel.img.
10617 (kernel_img_EXPORTS): Removed.
10618 (kernel_img_RELOCATABLE): New variable.
10619 * conf/x86_64-efi.rmk: Likewise.
10620 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
10622 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10624 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
10625 grub_xasprintf or grub_snprintf.
10626 (grub_vsprintf): Likewise.
10627 (grub_snprintf): New proto.
10628 (grub_vsnprintf): Likewise.
10629 (grub_xasprintf): Likewise.
10630 (grub_xvasprintf): Likewise.
10631 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
10632 (grub_sprintf): Removed.
10633 (grub_vsnprintf): New function.
10634 (grub_snprintf): Likewise.
10635 (grub_xvasprintf): Likewise.
10636 (grub_xasprintf): Likewise.
10637 (grub_vsprintf): Renamed to ...
10638 (grub_vsnprintf_real): ...this. New argument max_len.
10640 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
10642 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
10643 fix grub-script-check warning.
10645 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10647 * include/grub/font.h (grub_font_load): Fix prototype.
10649 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10651 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
10653 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10655 * include/grub/x86_64/at_keyboard.h: New file.
10657 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10659 * loader/mips/linux.c: Include missing grub/i18n.h.
10661 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
10663 * normal/menu.c (notify_execution_failure): Clarify error message.
10665 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
10667 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
10668 return value (and revert all return statements). Update users.
10670 2010-01-20 Dan Merillat <debian@dan.merillat.org>
10672 * kern/device.c (grub_device_iterate): Allocate new part_ent
10673 structure based on sizeof (*p) rather than sizeof (p->next), to
10674 account for structure padding.
10676 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
10677 disk is NULL, which might happen for LVM physical volumes with no
10680 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
10682 * loader/mips/linux.c (grub_cmd_initrd)
10683 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
10685 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
10687 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
10688 (grub_video_video_init, grub_video_bitmap_init)
10689 (grub_font_manager_init, grub_term_gfxterm_init)
10690 (grub_at_keyboard_init): New extern declarations.
10691 (grub_machine_init): Initialize gfxterm and at_keyboard.
10693 * kern/main.c (grub_main): Revert grub_printf delay kludge.
10695 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
10696 `gfxterm.mod' into core image.
10698 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
10699 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10700 (kernel_img_FORMAT): Copy to ...
10702 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
10703 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10704 (kernel_img_FORMAT): ... here, and ...
10706 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
10707 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
10708 (kernel_img_FORMAT): ... here.
10710 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
10711 and input (at_keyboard) terminals in kernel.
10712 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
10714 (pkglib_MODULES): Remove `pci.mod'.
10715 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
10716 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
10717 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
10718 (at_keyboard_mod_LDFLAGS): Remove variables.
10720 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
10722 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
10724 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
10726 * include/grub/mips/libgcc.h: Only export symbols for functions
10727 that libgcc provides.
10729 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
10733 * bus/bonito.c: New file.
10734 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
10735 GRUB_PCI_NUM_DEVICES.
10736 * term/i386/pc/serial.c: Move to ...
10737 * term/serial.c: ... here. All users updated.
10738 * util/i386/pc/grub-mkimage.c: Move to ...
10739 * util/grub-mkrawimage.c: ... here. All users updated.
10740 * term/i386/pc/at_keyboard.c: Move to ...
10741 * term/at_keyboard.c: ... here. All users updated.
10742 * conf/mips-qemu-mips.rmk: New file.
10743 * conf/mips-yeeloong.rmk: Likewise.
10744 * conf/mips.rmk: Likewise.
10745 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
10747 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
10749 (grub_ata_pciinit): Support CS5536.
10750 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
10751 * font/font_cmd.c (loadfont_command): Open file before passing it to
10753 (pseudo_file_read): New function.
10754 (pseudo_file_close): Likewise.
10755 (pseudo_fs): New structure.
10756 (load_font_module): New function.
10757 (GRUB_MOD_INIT(font_manager)): Load embedded font.
10758 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
10759 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
10760 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
10761 * include/grub/i386/at_keyboard.h: Split into ...
10762 * include/grub/at_keyboard.h: ... this ...
10763 * include/grub/i386/at_keyboard.h: ... and this.
10764 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
10766 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
10768 (grub_elf64_size): Likewise.
10769 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
10771 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
10772 * include/grub/i386/coreboot/serial.h: Rewritten.
10773 * include/grub/i386/ieee1275/serial.h: Include
10774 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
10775 * include/grub/i386/pc/serial.h: Moved from here ...
10776 * include/grub/serial.h: ... to here. All users updated.
10777 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
10778 (GRUB_PCI_NUM_BUS): Likewise.
10779 (GRUB_PCI_NUM_DEVICES): Likewise.
10780 (grub_pci_device_map_range): Add missing volatile keyword.
10781 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
10782 * include/grub/mips/at_keyboard.h: New file.
10783 * include/grub/mips/cache.h: Likewise.
10784 * include/grub/mips/io.h: Likewise.
10785 * include/grub/mips/kernel.h: Likewise.
10786 * include/grub/mips/libgcc.h: Likewise.
10787 * include/grub/mips/pci.h: Likewise.
10788 * include/grub/mips/qemu-mips/boot.h: Likewise.
10789 * include/grub/mips/qemu-mips/kernel.h: Likewise.
10790 * include/grub/mips/qemu-mips/loader.h: Likewise.
10791 * include/grub/mips/qemu-mips/memory.h: Likewise.
10792 * include/grub/mips/qemu-mips/serial.h: Likewise.
10793 * include/grub/mips/qemu-mips/time.h: Likewise.
10794 * include/grub/mips/relocator.h: Likewise.
10795 * include/grub/mips/time.h: Likewise.
10796 * include/grub/mips/types.h: Likewise.
10797 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
10798 * include/grub/mips/yeeloong/boot.h: Likewise.
10799 * include/grub/mips/yeeloong/kernel.h: Likewise.
10800 * include/grub/mips/yeeloong/loader.h: Likewise.
10801 * include/grub/mips/yeeloong/memory.h: Likewise.
10802 * include/grub/mips/yeeloong/pci.h: Likewise.
10803 * include/grub/mips/yeeloong/serial.h: Likewise.
10804 * include/grub/mips/yeeloong/time.h: Likewise.
10805 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
10806 * kern/elf.c (grub_elf32_size): New parameter. All users
10808 (grub_elf64_size): Likewise.
10809 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
10810 Load modules before saying "Welcome to GRUB!".
10811 Call grub_refresh after saying "Welcome to GRUB!".
10812 * kern/mips/cache.S: New file.
10813 * kern/mips/cache_flush.S: Likewise.
10814 * kern/mips/dl.c: Likewise.
10815 * kern/mips/init.c: Likewise.
10816 * kern/mips/qemu-mips/init.c: Likewise.
10817 * kern/mips/startup.S: Likewise.
10818 * kern/mips/yeeloong/init.c: Likewise.
10819 * kern/term.c (grub_putcode): Handle NULL terminal.
10820 (grub_getcharwidth): Likewise.
10821 (grub_getkey): Likewise.
10822 (grub_checkkey): Likewise.
10823 (grub_getkeystatus): Likewise.
10824 (grub_getxy): Likewise.
10825 (grub_getwh): Likewise.
10826 (grub_gotoxy): Likewise.
10827 (grub_cls): Likewise.
10828 (grub_setcolorstate): Likewise.
10829 (grub_setcolor): Likewise.
10830 (grub_getcolor): Likewise.
10831 (grub_refresh): Likewise.
10832 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
10833 (write_jump): Add hatch nop.
10834 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
10835 * lib/mips/setjmp.S: New file.
10836 * loader/mips/linux.c: Likewise.
10837 * term/i386/pc/at_keyboard.c: Move from here ...
10838 * term/at_keyboard.c: ... to here.
10839 * term/i386/pc/serial.c: Moved from here ...
10840 * term/serial.c: ... to here. All users updated.
10841 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
10842 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
10843 (serial_translate_key_sequence): Avoid deadlock.
10844 (grub_serial_getkey): Handle backspace.
10845 (grub_serial_putchar): Fix newline handling.
10846 * util/i386/pc/grub-mkimage.c: Move from here ...
10847 * util/grub-mkrawimage.c: ... to here. All users updated.
10848 (generate_image): New parameters 'font_path' and 'format'.
10849 Support embedding font.
10850 Use grub_host_to_target* instead of grub_cpu_to_le*.
10851 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
10852 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
10853 (options): New option "--font".
10855 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
10856 (main): Handle "--font".
10857 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
10858 (grub_virtual_screen_setup): Set bg_color_display.
10859 (redraw_screen_rect): Use bg_color_display instead of incorrect
10861 (grub_gfxterm_cls): Likewise.
10862 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
10863 Support embedding config file.
10864 (add_segments): Likewise.
10865 (options): New option "--config".
10866 (main): Handle "--config".
10867 * video/sm712.c: New file.
10869 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10871 Fix parallel builds.
10873 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
10874 font.c depend on ascii.h).
10876 2010-01-12 Carles Pina i Estany <carles@pina.cat>
10878 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
10880 2010-01-11 Carles Pina i Estany <carles@pina.cat>
10882 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
10883 By default: disabled.
10884 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
10887 2010-01-10 Carles Pina i Estany <carles@pina.cat>
10889 * font/font.c: Update copyright years.
10890 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
10892 2010-01-10 Carles Pina i Estany <carles@pina.cat>
10894 * font/font.c: Include `ascii.h'.
10895 (ASCII_BITMAP_SIZE): New macro.
10896 (ascii_font_glyph): Define.
10897 (ascii_glyph_lookup): New function.
10898 (grub_font_get_string_width): Change comment. If glyph not found, use
10899 ascii_glyph_lookup.
10900 (grub_font_get_glyph_with_fallback): If glyph not available returns
10901 ascii_glyph_lookup.
10902 * util/grub-mkfont.c (file_formats): New enum.
10903 (options): Add `ascii-bitmaps' new option.
10904 (usage): Add `asii-bitmaps' new option.
10905 (write_font_ascii_bitmap): New function.
10906 (write_font): Rename to ...
10907 (write_font_p2): ... this. Remove print_glyphs call.
10908 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
10909 used. Call print_glyphs.
10910 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
10912 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
10914 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
10915 (grub_bin2h_SOURCES): New variable.
10916 * util/bin2h.c: New file.
10918 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
10920 * include/multiboot.h: Resynced with spec.
10921 * include/multiboot2.h: Likewise.
10922 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
10923 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
10925 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10927 * include/grub/term.h (grub_term_register_input,
10928 grub_term_register_output): Check return of terminal init()
10929 routines, and abort if errors are raised.
10931 * commands/terminal.c: Update copyright year.
10933 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10935 * commands/terminal.c (grub_cmd_terminal_input)
10936 (grub_cmd_terminal_output): Check return of terminal init()
10937 routines, and abort if errors are raised.
10939 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10941 * include/grub/i386/bsd.h: Fix include pathes.
10943 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
10945 Add missing *BSD copyright headers.
10947 * include/grub/aout.h: Add BSD licence.
10948 * include/grub/i386/bsd.h: Parts under different licences moved to ...
10949 * include/grub/i386/freebsd_linker.h: ... here,
10950 * include/grub/i386/freebsd_reboot.h: ... here,
10951 * include/grub/i386/netbsd_bootinfo.h: ... here,
10952 * include/grub/i386/netbsd_reboot.h: ... here,
10953 * include/grub/i386/openbsd_bootarg.h: ... here,
10954 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
10955 licence to each file.
10957 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10959 * acinclude.m4: Remove `nop' assembly instruction; it's not
10960 implemented by all architectures.
10962 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10964 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
10965 ELILO. This is no longer necessary.
10967 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
10969 Added new tool, grub-scrit-check to verify grub.cfg syntax.
10971 * util/grub-script-check.c: grub-script-check tool.
10972 * conf/common.rmk: Make rules for grub-script-check.
10974 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10976 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
10977 spotting it back in 2008. Shame on me for forgetting he did.
10979 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
10981 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
10983 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
10984 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
10985 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
10986 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
10987 (GRUB_VIDEO_TYPE_EFI): Rename to ...
10988 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
10990 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
10992 * include/grub/test.h: Add license header.
10993 * tests/example_functional_test.c: Likewise.
10994 * tests/example_unit_test.c: Likewise.
10995 * tests/lib/functional_test.c: Likewise.
10996 * tests/lib/test.c: Likewise.
10997 * tests/lib/unit_test.c: Likewise.
10999 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
11001 Use flag-based instead of hook-based video mode selection and "auto"
11004 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
11005 (grub_video_set_mode): Changed prototype. All users updated.
11006 (grub_video_check_mode_flag): New inline function.
11007 * video/video.c (parse_modespec): New function.
11008 (grub_video_set_mode): Parse flags and keywords.
11010 2010-01-17 Carles Pina i Estany <carles@pina.cat>
11012 * util/misc.c (grub_util_info): Fix the order of the parameters in a
11015 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
11017 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
11019 2010-01-16 Carles Pina i Estany <carles@pina.cat>
11021 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
11023 * util/grub-emu.c (usage): Likewise.
11024 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
11025 * util/i386/efi/grub-mkimage.c (usage): Likewise.
11026 * util/i386/pc/grub-mkimage.c (usage): Likewise.
11027 * util/i386/pc/grub-setup.c (usage): Likewise.
11029 2010-01-16 Carles Pina i Estany <carles@pina.cat>
11031 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
11033 (grub_util_info): Likewise.
11034 (grub_util_error): Likewise.
11035 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
11036 and/or new lines in `grub_util_warna', `grub_util_info',
11037 `grub_util_error' calls.
11038 * util/getroot.c: Likewise.
11039 * util/grub-editenv.c: Likewise.
11040 * util/grub-emu.c: Likewise.
11041 * util/grub-fstest.c: Likewise.
11042 * util/grub-mkdevicemap.c: Likewise.
11043 * util/grub-mkfont.c: Likewise.
11044 * util/grub-mkpasswd-pbkdf2.c: Likewise.
11045 * util/grub-mkrelpath.c: Likewise.
11046 * util/grub-pe2elf.c: Likewise.
11047 * util/grub-probe.c: Likewise.
11048 * util/hostdisk.c: Likewise.
11049 * util/i386/efi/grub-mkimage.c: Likewise.
11050 * util/i386/pc/grub-mkimage.c: Likewise.
11051 * util/i386/pc/grub-setup.c: Likewise.
11052 * util/ieee1275/ofpath.c: Likewise.
11053 * util/mkisofs/eltorito.c: Likewise.
11054 * util/mkisofs/rock.c: Likewise.
11055 * util/mkisofs/write.c: Likewise.
11056 * util/raid.c: Likewise.
11057 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
11058 * util/sparc64/ieee1275/grub-setup.c: Likewise.
11060 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
11062 Enable multiboot on non-pc.
11064 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
11065 multiboot.mod and multiboot2.mod to ...
11066 * conf/i386.rmk (pkglib_MODULES): ... here.
11067 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
11069 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
11070 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
11072 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
11073 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
11075 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
11076 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
11078 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
11079 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
11081 (ata_mod_SOURCES): Removed.
11082 (ata_mod_CFLAGS): Likewise.
11083 (ata_mod_LDFLAGS): Likewise.
11084 (relocator_mod_SOURCES): Removed.
11085 (relocator_mod_CFLAGS): Likewise.
11086 (relocator_mod_ASFLAGS): Likewise.
11087 (relocator_mod_LDFLAGS): Likewise.
11089 * include/grub/x86_64/multiboot.h: New file.
11090 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
11093 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
11095 Video multiboot support.
11097 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
11099 * include/multiboot.h: Resynced with multiboot specification.
11100 * include/multiboot2.h: Likewise.
11101 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
11102 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
11103 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
11104 (HAS_VGA_TEXT): Likewise.
11105 (accepts_video): New variable.
11106 (grub_multiboot_set_accepts_video): New function.
11107 (grub_multiboot_get_mbi_size): Account for video structures.
11108 (set_video_mode): New function.
11109 (retrieve_video_parameters): Likewise.
11110 (grub_multiboot_make_mbi): Fill video fields.
11112 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
11116 * include/grub/video.h (grub_video_driver_id): New type.
11117 (grub_video_adapter): New member 'id'. All users updated.
11118 (grub_video_get_driver_id): New proto.
11119 * video/video.c (grub_video_get_driver_id): New function.
11121 2010-01-14 Carles Pina i Estany <carles@pina.cat>
11123 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
11126 2010-01-14 Carles Pina i Estany <carles@pina.cat>
11128 * normal/cmdline.c (print_completion): Gettextizze.
11130 2001-01-14 Carles Pina i Estany <carles@pina.cat>
11132 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
11134 2010-01-14 Carles Pina i Estany <carles@pina.cat>
11136 * gettext/gettext.c (grub_gettext_translate): Push and pop
11138 (grub_gettext_delete_list): Change comment style.
11139 * kern/err.c (grub_error): Gettextizze.
11140 (grub_fatal): Gettextizze.
11142 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
11144 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
11145 (grub_linux16_real_boot): ... this.
11146 * kern/i386/loader.S: Likewise.
11147 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
11148 (grub_linux16_boot): New function. Switches to text mode and calls
11149 grub_linux16_real_boot().
11151 * loader/i386/bsd.c: Include `<grub/video.h>'.
11152 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
11153 text mode before calling grub_unix_real_boot().
11155 * loader/i386/multiboot.c: Include `<grub/video.h>'.
11156 (grub_multiboot_boot): Switch to text mode before calling
11157 grub_relocator32_boot().
11159 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
11160 (grub_chainloader_boot): Switch to text mode before calling
11161 grub_chainloader_real_boot().
11163 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
11164 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11166 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
11169 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
11170 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11172 * util/grub.d/00_header.in: Define a "savedefault" function for use
11174 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
11176 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
11177 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11179 * util/grub-mkconfig_lib.in (save_default_entry): Only set
11180 saved_entry if boot_once is unset.
11181 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
11182 previous saved entry (i.e. grub-reboot).
11184 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11186 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
11188 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11190 * util/grub.d/00_header.in: Use `set var=val' rather than plain
11192 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
11194 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11196 * util/grub-reboot.in: Fix --version output.
11197 * util/grub-set-default.in: Likewise.
11199 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11201 * util/grub.d/00_header.in: Silently ignore zero-sized environment
11204 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11206 * util/grub.d/00_header.in: Quote the value assigned to `default',
11207 in case it contains spaces.
11209 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
11211 * util/grub.d/30_os-prober.in: Fix merge error that moved a
11212 `save_default_entry' call from the macosx case to the linux case.
11214 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
11215 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
11217 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
11218 in `chosen' environment variable.
11219 * normal/menu_text.c (get_entry_number): Check if the variable
11220 matches the title of a menu entry.
11221 (run_menu): Pass menu to get_entry_number.
11223 * util/grub-reboot.in: New file.
11224 * util/grub-set-default.in: New file.
11225 * conf/common.rmk (grub-reboot): New utility.
11226 (grub-set-default): New utility.
11228 * util/grub-mkconfig_lib.in (save_default_entry): New function.
11229 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
11230 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
11231 move it to `saved_entry' for the next boot. Load environment on
11233 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
11234 * util/grub.d/10_hurd.in: Likewise.
11235 * util/grub.d/10_linux.in (linux_entry): Likewise.
11236 * util/grub.d/10_windows.in: Likewise.
11237 * util/grub.d/30_os-prober.in: Likewise.
11239 * util/grub-install.in: Create environment block.
11240 * util/i386/efi/grub-install.in: Likewise.
11241 * util/ieee1275/grub-install.in: Likewise.
11242 * util/sparc64/ieee1275/grub-install.in: Likewise.
11244 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
11246 Unit testing framework for GRUB.
11248 * Makefile.in: Test framework build rules for 'make check'.
11249 * conf/tests.rmk: Build rules for individual tests and framework.
11251 * include/grub/test.h: Header file for whitebox tests.
11252 * tests/lib/functional_test.c: Framework support for whitebox
11254 * tests/lib/test.c: Common whitebox testing code for unit and
11256 * tests/lib/unit_test.c: Framework support for whitebox unit
11259 * tests/util/grub-shell-tester.in: Support utility for grub-script
11261 * tests/util/grub-shell.in: Utility to execute grub-script
11262 commands in a Qemu instance.
11264 * tests/example_functional_test.c: Example whitebox functional
11266 * tests/example_grub_script_test.in: Example grub-script test.
11267 * tests/example_scripted_test.in: Example scripted test.
11268 * tests/example_unit_test.c: Example whitebox unit test.
11270 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
11272 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
11273 Add loader/i386/multiboot_mbi.c.
11274 (multiboot2_mod_SOURCES): Likewise.
11275 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
11276 (multiboot2_mod_SOURCES): Likewise.
11277 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
11278 (grub_multiboot_make_mbi): Likewise.
11279 (grub_multiboot_free_mbi): Likewise.
11280 (grub_multiboot_init_mbi): Likewise.
11281 (grub_multiboot_add_module): Likewise.
11282 (grub_multiboot_set_bootdev): Likewise.
11283 * loader/i386/multiboot.c (mbi): Removed.
11284 (mbi_dest): Likewise.
11285 (alloc_mbi): New variable.
11286 (grub_multiboot_payload_size): Removed. All users updated.
11287 (grub_multiboot_pure_size): New variable.
11288 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
11289 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
11290 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
11291 (grub_fill_multiboot_mmap): Likewise.
11292 (grub_multiboot_get_bootdev): Likewise.
11293 (grub_multiboot): Use multiboot_mbi functions.
11294 * loader/i386/multiboot_mbi.c: New file.
11296 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11298 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
11299 it would result in module crash.
11301 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
11303 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
11304 (grub_ofconsole_getwh): Split to ...
11305 (grub_ofconsole_getwh): ... this.
11306 (grub_ofconsole_dimensions): ...and this.
11307 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
11309 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
11311 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
11313 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11315 * loader/i386/pc/multiboot2.c: Removed stalled file.
11317 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
11319 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
11320 Reported by: Grégoire Sutre
11322 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
11324 * util/misc.c (canonicalize_file_name): New function.
11325 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
11326 instead of realpath().
11328 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
11330 * util/grub-install.in (usage): Clarify meaning of --root-directory,
11331 and make it clearer that it's optional. Based on confusion
11334 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
11336 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
11337 in premature implicit newline.
11339 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
11341 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
11342 which resulted in garbled command line at the end of screen.
11344 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
11346 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
11347 initialization with similar approach as with other Linux loaders.
11349 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
11351 Fix i386-ieee1275 build.
11353 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
11354 and grub_term_height() for video_{width,height} initialization.
11356 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
11358 Fix grub-emu build.
11360 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
11362 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
11363 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
11365 Support for multiple terminals.
11367 * Makefile.in (pkglib_DATA): terminal.lst.
11368 (terminal.lst): New target.
11369 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
11370 (GRUB_MOD_INIT(handler)): Likewise.
11371 (GRUB_MOD_FINI(handler)): Likewise.
11372 * commands/help.c (grub_cmd_help): Handle multiple terminals.
11373 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
11374 * commands/sleep.c (do_print): Use grub_term_restore_pos.
11375 (grub_cmd_sleep): Use grub_term_save_pos.
11376 * commands/terminal.c: New file.
11377 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
11378 commands/terminal.c and lib/charset.c.
11379 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
11380 (pkglib_MODULES): Add terminal.mod.
11381 (terminal_mod_SOURCES): New variable.
11382 (terminal_mod_CFLAGS): Likewise.
11383 (terminal_mod_LDFLAGS): Likewise.
11384 * genhandlerlist.sh: Don't handle terminals.
11385 * genmk.rb: Generate terminal-*.lst.
11386 * genterminallist.sh: New file.
11387 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
11388 (grub_is_valid_utf8): Likewise.
11389 (grub_utf8_to_ucs4_alloc): Likewise.
11390 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
11391 (grub_menu_register_viewer): Changed argument.
11392 (grub_menu_try_text): New proto.
11393 (grub_gfxmenu_try_hook): New declaration.
11394 * include/grub/normal.h (grub_normal_exit_level): New declaration.
11395 (grub_menu_init_page): Additional argument term.
11396 (grub_normal_init_page): Likewise.
11397 (grub_cmdline_get): Arguments simplified.
11398 (grub_utf8_to_ucs4_alloc): Removed.
11399 (grub_print_ucs4): Additional argument term.
11400 (grub_getstringwidth): Likewise.
11401 (grub_print_message_indented): Likewise.
11402 (grub_menu_text_register_instances): New proto.
11403 (grub_show_menu): Likewise.
11404 (read_terminal_list): Likewise.
11405 (grub_set_more): Likewise.
11406 * include/grub/parser.h: Include handler.h.
11407 * include/grub/reader.h: Rewritten.
11408 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
11409 (GRUB_TERM_WIDTH): Changed to function.
11410 (GRUB_TERM_HEIGHT): Likewise.
11411 (GRUB_TERM_BORDER_WIDTH): Likewise.
11412 (GRUB_TERM_BORDER_HEIGHT): Likewise.
11413 (GRUB_TERM_NUM_ENTRIES): Likewise.
11414 (GRUB_TERM_ENTRY_WIDTH): Likewise.
11415 (GRUB_TERM_CURSOR_X): Likewise.
11416 (grub_term_input_class): Likewise.
11417 (grub_term_output_class): Likewise.
11418 (grub_term_outputs_disabled): New declaration.
11419 (grub_term_inputs_disabled): Likewise.
11420 (grub_term_outputs): Likewise.
11421 (grub_term_inputs): Likewise.
11422 (grub_term_register_input): Rewritten.
11423 (grub_term_register_output): Likewise.
11424 (grub_term_unregister_input): Likewise.
11425 (grub_term_unregister_output): Likewise.
11426 (FOR_ACTIVE_TERM_INPUTS): New macro.
11427 (FOR_DISABLED_TERM_INPUTS): Likewise.
11428 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
11429 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
11430 * include/grub/terminfo.h: Add oterm argument to all protypes.
11431 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
11432 Use grub_rescue_run.
11433 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
11435 * kern/reader.c: Removed. All users updated.
11436 * kern/rescue_reader.c (grub_rescue_init): Removed.
11437 (grub_rescue_reader): Likewise.
11438 (grub_register_rescue_reader): Likewise.
11439 (grub_rescue_run): New function based on kern/reader.c.
11440 * kern/term.c: Adapted for multiterm.
11441 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
11442 (grub_is_valid_utf8): Likewise.
11443 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
11444 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
11446 * loader/i386/linux.c (grub_linux_boot): Likewise.
11447 * normal/auth.c (grub_username_get): New function.
11448 (grub_auth_check_authentication): Use grub_username_get.
11449 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
11450 * normal/color.c: Adapt for multiterm.
11451 * normal/main.c (read_config_file): Don't use grub_reader_loop.
11452 (grub_normal_init_page): Additional argument term.
11453 (read_lists): Call read_terminal_lists.
11454 (grub_enter_normal_mode): Call grub_cmdline_run.
11455 Handle grub_normal_exit_level.
11456 (grub_cmd_normal): Make reentrant.
11457 (grub_cmd_normal_exit): New function.
11458 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
11459 * normal/menu.c: Adapt for multiterm.
11460 * normal/menu_entry.c: Likewise.
11461 * normal/menu_text.c: Likewise.
11462 * normal/menu_viewer.c: Removed. All users updated.
11463 * normal/term.c: New file.
11464 * util/console.c: Change order of includes to workaround a bug in
11466 * term/terminfo.c: New argument oterm on all exported functions.
11468 * util/grub-editenv.c (grub_term_input_class): Removed.
11469 (grub_term_output_class): Likewise.
11471 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
11473 Make loader output a bit more user-friendly.
11475 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
11476 is being loaded. Likewise for the Hurd.
11478 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
11479 that kernel of FreeBSD ${version} is being loaded.
11481 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
11483 (grub_cmd_initrd): Likewise.
11484 * util/grub.d/10_linux.in (linux_entry): Print message indicating
11485 that Linux ${version} is being loaded. Likewise for initrd.
11487 2010-01-09 Carles Pina i Estany <carles@pina.cat>
11489 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
11491 2010-01-08 Carles Pina i Estany <carles@pina.cat>
11493 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
11494 (GRUB_MOD_INIT): Gettextizze.
11495 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
11496 (GRUB_MOD_INIT): Gettextizze.
11497 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
11498 (grub_cmd_linux): Capitalise Linux.
11499 (GRUB_MOD_INIT): Gettextizze.
11500 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
11501 (grub_cmd_linux): Capitalise Linux.
11502 (GRUB_MOD_INIT): Gettextizze.
11503 * loader/i386/linux.c: Include `<grub/i18n.h>'.
11504 (grub_cmd_linux): Capitalise Linux.
11505 (GRUB_MOD_INIT): Gettextizze.
11506 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
11507 (GRUB_MOD_INIT): Gettextizze.
11508 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
11509 (grub_cmd_linux): Capitalise Linux.
11510 (GRUB_MOD_INIT): Gettextizze.
11511 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
11512 (grub_cpu_xnu_init): Gettextizze.
11513 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
11514 (GRUB_MOD_INIT): Gettextizze.
11515 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
11516 (GRUB_MOD_INIT): Gettextizze.
11517 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
11518 (grub_linux_load64): Capitalise Linux.
11519 (GRUB_MOD_INIT): Gettextizze.
11520 * loader/xnu.c: Include `<grub/i18n.h>'.
11521 (GRUB_MOD_INIT): Gettextizze.
11522 * po/POTFILES: Add `loader/efi/appleloader.c',
11523 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
11524 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
11525 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
11526 `loader/i386/xnu.c', `loader/multiboot_loader.c',
11527 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
11528 and `loader/xnu.c'.
11530 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
11532 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
11534 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
11536 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
11537 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
11538 * util/mkisofs/mkisofs.c (main): Readjust --version output.
11540 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
11542 Reset Multiboot 2 support. New loader implements the draft in
11543 /branches/multiboot2 and shares as much code as possible with the
11544 production Multiboot 1 implementation.
11546 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
11547 * loader/multiboot2.c: Likewise.
11548 * loader/i386/multiboot_helper.S: Likewise.
11549 * include/multiboot2.h: Replace with latest version from the draft
11550 in /branches/multiboot2.
11552 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
11553 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
11554 and `loader/multiboot2.c'.
11555 (pkglib_MODULES): Add `multiboot2.mod'.
11556 (multiboot2_mod_SOURCES): New variable.
11557 (multiboot2_mod_LDFLAGS): Likewise.
11558 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
11560 * conf/i386-pc.rmk: Likewise.
11562 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
11563 (multiboot_mod_SOURCES): Remove variable.
11564 (multiboot_mod_LDFLAGS): Likewise.
11565 (multiboot_mod_CFLAGS): Likewise.
11567 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
11568 `<multiboot2.h>' instead of `<multiboot.h>'.
11569 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
11570 (MULTIBOOT_HEADER_MAGIC): New macros.
11572 * loader/multiboot_loader.c (module_version_status): Remove variable.
11573 (find_multi_boot2_header): Remove function.
11574 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
11575 logic. Always check for the Multiboot version we're compiling for.
11576 (grub_cmd_module_loader): Likewise.
11577 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
11578 command instead of `multiboot'.
11580 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
11582 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
11583 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
11586 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
11587 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
11589 Fix breakage introduced with previous commit.
11591 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
11593 * normal/handler.c (read_handler_list): Revert part of previous commit
11594 affecting this file.
11595 * normal/main.c (read_lists): Move read_handler_list() call back to ...
11596 (grub_normal_execute): ... here.
11598 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
11600 Merge prefix-redefinition-fix branch.
11602 * normal/autofs.c (read_fs_list): Make function capable of being
11603 run multiple times, gracefuly replacing the previous data
11605 * normal/dyncmd.c (read_command_list): Likewise.
11606 * normal/handler.c (read_handler_list): Likewise.
11607 * normal/main.c (read_lists): New function. Calls all the
11608 list reading functions.
11609 (grub_normal_execute): Use read_lists() instead of calling all
11610 list reading functions explicitly. Register read_lists() as a
11611 variable hook attached to ${prefix}.
11613 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
11615 Merge crypto branch.
11617 * Makefile.in (pkglib_DATA): Add crypto.lst.
11618 (crypto.lst): New target.
11619 * commands/hashsum.c: New file.
11620 * commands/password.c (check_password): Use grub_crypto_memcmp.
11621 * commands/password_pbkdf2.c: New file.
11622 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
11623 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
11624 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
11625 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
11626 -I$(srcdir)/lib/libgcrypt_wrap.
11627 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
11628 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
11629 password_pbkdf2.mod.
11630 (crypto_mod_SOURCES): New variable.
11631 (crypto_mod_CFLAGS): Likewise.
11632 (crypto_mod_LDFLAGS): Likewise.
11633 (hashsum_mod_SOURCES): New variable.
11634 (hashsum_mod_CFLAGS): Likewise.
11635 (hashsum_mod_LDFLAGS): Likewise.
11636 (pbkdf2_mod_SOURCES): New variable.
11637 (pbkdf2_mod_CFLAGS): Likewise.
11638 (pbkdf2_mod_LDFLAGS): Likewise.
11639 (password_pbkdf2_mod_SOURCES): New variable.
11640 (password_pbkdf2_mod_CFLAGS): Likewise.
11641 (password_pbkdf2_mod_LDFLAGS): Likewise.
11642 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
11643 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
11644 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
11645 Include conf/gcry.rmk.
11646 * include/grub/auth.h: Rewritten.
11647 * include/grub/crypto.h: New file.
11648 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
11649 * include/grub/normal.h (read_crypto_list): New prototype.
11650 * lib/crypto.c: New file.
11651 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
11652 * lib/pbkdf2.c: Likewise.
11653 * normal/auth.c (grub_auth_strcmp): Removed.
11654 (grub_iswordseparator): Likewise.
11655 (grub_auth_strword): Likewise.
11656 (is_authenticated): Use grub_strword.
11657 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
11658 and grub_strword. Pass entered password to authentication callback.
11659 * normal/crypto.c: New file.
11660 * normal/main.c: Call read_crypto_list.
11661 * util/grub-mkpasswd-pbkdf2.c: New file.
11662 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
11664 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
11666 Fix descent and ascent calculation.
11668 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
11669 (options): New option "asce".
11671 (add_char): Ignore invalid glyphs for descent calculation.
11672 Calculate ascent from actual content.
11673 (print_glyphs): Use 'asce'.
11674 (write_font): Likewise. Allow ascent override.
11675 (main): Handle "asce" option.
11677 2010-01-06 Carles Pina i Estany <carles@pina.cat>
11679 * kern/err.c: Include `<grub/i18n.h>'.
11680 (grub_print_error): Add full stop. Gettextizze.
11681 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
11682 (grub_bsd_load_elf): Capitalise ELF.
11683 (grub_cmd_freebsd_loadenv): Add `s' in error string.
11684 (grub_cmd_freebsd_module): Likewise.
11685 (grub_cmd_freebsd_module_elf): Likewise.
11686 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
11688 2010-01-06 Carles Pina i Estany <carles@pina.cat>
11690 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
11691 * commands/search_file.c (HELP_MESSAGE): New macro.
11692 * commands/search_label.c (HELP_MESSAGE): Likewise.
11693 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
11694 * po/POTFILES: Add `commands/search_file.c',
11695 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
11696 `commands/search.c'.
11698 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
11700 * config.rpath: Update from Gnulib.
11702 2010-01-05 Yves Blusseau <blusseau@zetam.org>
11704 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
11706 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
11708 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
11710 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11712 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
11713 arguments to fread so that we get a return value in bytes, rather
11714 than something that will normally be rounded down to 0.
11715 Adjust error handling to avoid producing garbage when size_t is not
11716 the same size as long long.
11718 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
11720 * util/mkisofs/write.c (padblock_write): Check return value of
11723 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
11725 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
11728 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
11730 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
11732 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
11733 instead of manual alignment.
11734 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
11735 verbose). Avoid attempts to read past end of the device
11736 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
11737 but GRUB_DISK_CACHE_SIZE may exceed that).
11739 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
11741 * commands/crc.c (grub_cmd_crc): Abort on read errors.
11742 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
11745 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
11747 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
11749 (grub_efi_piwg_device_path): New structure
11750 (grub_efi_piwg_device_path_t): New type.
11751 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
11752 (devpath_1): Transform to a structure. All users updated.
11753 (devpath_2): Likewise.
11754 (devpath_3): Likewise.
11755 (devpath_4): Likewise.
11756 (devpath_5): Likewise.
11758 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
11760 * loader/efi/appleloader.c: Restored. Update all users.
11762 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
11764 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
11766 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
11767 (struct boot_blocklist): Move from here ...
11768 * include/grub/i386/pc/boot.h [ASM_FILE]
11769 (struct grub_boot_blocklist): ... to here. Update all users.
11770 (setup): Only initialize `start' member of `first_block'
11771 structure. Add assert() calls to verify the other members.
11773 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
11774 (generate_image): Fix broken blocklist length initialization.
11775 Add assert() call to verify blocklist `segment' field.
11777 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
11779 * loader/efi/appleloader.c: Remove. Update all users.
11781 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
11783 * boot/i386/pc/boot.S: Update copyright year.
11784 * boot/i386/pc/cdboot.S: Likewise.
11785 * boot/i386/pc/diskboot.S: Likewise.
11786 * boot/i386/pc/lnxboot.S: Likewise.
11787 * boot/i386/pc/pxeboot.S: Likewise.
11788 * bus/pci.c: Likewise.
11789 * commands/cmp.c: Likewise.
11790 * commands/help.c: Likewise.
11791 * commands/hexdump.c: Likewise.
11792 * commands/i386/pc/halt.c: Likewise.
11793 * commands/i386/pc/play.c: Likewise.
11794 * commands/i386/pc/vbeinfo.c: Likewise.
11795 * commands/ls.c: Likewise.
11796 * commands/test.c: Likewise.
11797 * disk/dmraid_nvidia.c: Likewise.
11798 * disk/i386/pc/biosdisk.c: Likewise.
11799 * disk/ieee1275/nand.c: Likewise.
11800 * disk/ieee1275/ofdisk.c: Likewise.
11801 * disk/lvm.c: Likewise.
11802 * disk/raid.c: Likewise.
11803 * disk/raid6_recover.c: Likewise.
11804 * disk/scsi.c: Likewise.
11805 * fs/affs.c: Likewise.
11806 * fs/cpio.c: Likewise.
11807 * fs/ext2.c: Likewise.
11808 * fs/hfs.c: Likewise.
11809 * fs/iso9660.c: Likewise.
11810 * fs/ntfs.c: Likewise.
11811 * fs/sfs.c: Likewise.
11812 * fs/udf.c: Likewise.
11813 * fs/ufs.c: Likewise.
11814 * fs/xfs.c: Likewise.
11815 * gencmdlist.sh: Likewise.
11816 * genmk.rb: Likewise.
11817 * include/grub/disk.h: Likewise.
11818 * include/grub/efi/api.h: Likewise.
11819 * include/grub/efi/efi.h: Likewise.
11820 * include/grub/efi/pe32.h: Likewise.
11821 * include/grub/elf.h: Likewise.
11822 * include/grub/fs.h: Likewise.
11823 * include/grub/i386/at_keyboard.h: Likewise.
11824 * include/grub/i386/pc/memory.h: Likewise.
11825 * include/grub/i386/pc/vbe.h: Likewise.
11826 * include/grub/i386/pci.h: Likewise.
11827 * include/grub/i386/tsc.h: Likewise.
11828 * include/grub/ieee1275/ieee1275.h: Likewise.
11829 * include/grub/ntfs.h: Likewise.
11830 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
11831 * include/grub/sparc64/libgcc.h: Likewise.
11832 * include/grub/symbol.h: Likewise.
11833 * include/grub/types.h: Likewise.
11834 * include/multiboot2.h: Likewise.
11835 * io/gzio.c: Likewise.
11836 * kern/device.c: Likewise.
11837 * kern/disk.c: Likewise.
11838 * kern/efi/efi.c: Likewise.
11839 * kern/efi/mm.c: Likewise.
11840 * kern/elf.c: Likewise.
11841 * kern/file.c: Likewise.
11842 * kern/i386/dl.c: Likewise.
11843 * kern/i386/pc/init.c: Likewise.
11844 * kern/i386/pc/startup.S: Likewise.
11845 * kern/ieee1275/ieee1275.c: Likewise.
11846 * kern/ieee1275/init.c: Likewise.
11847 * kern/main.c: Likewise.
11848 * kern/mm.c: Likewise.
11849 * kern/powerpc/dl.c: Likewise.
11850 * kern/sparc64/dl.c: Likewise.
11851 * kern/x86_64/dl.c: Likewise.
11852 * lib/hexdump.c: Likewise.
11853 * loader/efi/appleloader.c: Likewise.
11854 * loader/i386/ieee1275/linux.c: Likewise.
11855 * loader/i386/pc/chainloader.c: Likewise.
11856 * loader/i386/pc/linux.c: Likewise.
11857 * loader/i386/pc/multiboot2.c: Likewise.
11858 * loader/ieee1275/multiboot2.c: Likewise.
11859 * loader/multiboot2.c: Likewise.
11860 * loader/multiboot_loader.c: Likewise.
11861 * loader/powerpc/ieee1275/linux.c: Likewise.
11862 * normal/completion.c: Likewise.
11863 * normal/menu_entry.c: Likewise.
11864 * partmap/apple.c: Likewise.
11865 * util/grub.d/10_hurd.in: Likewise.
11866 * util/hostfs.c: Likewise.
11867 * video/readers/png.c: Likewise.
11869 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
11871 * include/grub/misc.h (GNUC_PREREQ): New macro.
11872 (ATTRIBUTE_ERROR): New macro.
11873 * include/grub/list.h (grub_bad_type_cast_real): Use
11876 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11878 * normal/menu_text.c (print_message): Change messages.
11880 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11882 * normal/menu_entry.c (store_completion): Gettextizze.
11884 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11886 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
11888 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11890 * po/POTFILES: Sort correctly.
11892 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11894 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
11895 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
11896 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
11898 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
11899 summary. Gettextizze the strings.
11900 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
11901 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
11902 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
11904 (GRUB_MOD_INIT): Remove command name from summary.
11905 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
11907 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
11908 * term/i386/pc/serial.c (options): Add full stops.
11909 (GRUB_MOD_INIT): Remove command name from the summary.
11911 2010-01-03 Carles Pina i Estany <carles@pina.cat>
11913 * commands/acpi.c: Gettextizze help strings and/or options. Include
11914 `grub/i18n.h' if needed.
11915 * commands/blocklist.c: Likewise.
11916 * commands/boot.c: Likewise.
11917 * commands/cat.c: Likewise.
11918 * commands/cmp.c: Likewise.
11919 * commands/configfile.c: Likewise.
11920 * commands/crc.c: Likewise.
11921 * commands/date.c: Likewise.
11922 * commands/echo.c: Likewise.
11923 * commands/efi/fixvideo.c: Likewise.
11924 * commands/efi/loadbios.c: Likewise.
11925 * commands/gptsync.c: Likewise.
11926 * commands/halt.c: Likewise.
11927 * commands/handler.c: Likewise.
11928 * commands/hdparm.c: Likewise.
11929 * commands/hexdump.c: Likewise.
11930 * commands/i386/cpuid.c: Likewise.
11931 * commands/i386/pc/drivemap.c: Likewise.
11932 * commands/i386/pc/halt.c: Likewise.
11933 * commands/i386/pc/pxecmd.c: Likewise.
11934 * commands/i386/pc/vbeinfo.c: Likewise.
11935 * commands/i386/pc/vbetest.c: Likewise.
11936 * commands/ieee1275/suspend.c: Likewise.
11937 * commands/keystatus.c: Likewise.
11938 * commands/loadenv.c: Likewise.
11939 * commands/ls.c: Likewise.
11940 * commands/lsmmap.c: Likewise.
11941 * commands/lspci.c: Likewise.
11942 * commands/memrw.c: Likewise.
11943 * commands/minicmd.c: Likewise.
11944 * commands/parttool.c: Likewise.
11945 * commands/password.c: Likewise.
11946 * commands/probe.c: Likewise.
11947 * commands/read.c: Likewise.
11948 * commands/reboot.c: Likewise.
11949 * commands/search.c: Likewise.
11950 * commands/sleep.c: Likewise.
11951 * commands/test.c: Likewise.
11952 * commands/true.c: Likewise.
11953 * commands/usbtest.c: Likewise.
11954 * commands/videotest.c: Likewise.
11955 * commands/xnu_uuid.c: Likewise.
11956 * disk/loopback.c: Likewise.
11957 * hello/hello.c: Likewise.
11958 * loader/i386/bsd.c: Likewise.
11959 * term/i386/pc/serial.c: Likewise.
11960 * po/POTFILES: Add new files.
11962 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
11964 * term/i386/pc/at_keyboard.c
11965 (keyboard_controller_wait_untill_ready): Rename to ...
11966 (keyboard_controller_wait_until_ready): ... this. Update all users.
11968 2010-01-01 Carles Pina i Estany <carles@pina.cat>
11970 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
11971 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
11972 string using string width.
11973 * normal/menu_text.c (grub_print_message_indented): Use
11974 grub_print_spaces and not print_spaces.
11975 (print_timeout): Likewise.
11976 (print_spaces): Move to...
11977 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
11979 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
11981 Import from Gnulib.
11983 * gnulib/getdelim.c: New file.
11984 * gnulib/getline.c: Likewise.
11986 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
11988 * include/grub/list.h (grub_assert_fail): Removed.
11989 (grub_bad_type_cast_real): New function.
11990 (grub_bad_type_cast): New macro.
11991 (GRUB_AS_LIST): Use grub_bad_type_cast.
11992 (GRUB_AS_LIST_P): Likewise.
11993 (GRUB_AS_NAMED_LIST): Likewise.
11994 (GRUB_AS_NAMED_LIST_P): Likewise.
11995 (GRUB_AS_PRIO_LIST): Likewise.
11996 (GRUB_AS_PRIO_LIST_P): Likewise.
11997 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
11999 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
12001 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
12004 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
12006 * configure.ac: Check for TARGET_CFLAGS initialization before we
12007 initialize it ourselves (sigh).
12008 Move a few modifications to TARGET_CFLAGS to be unconditional
12009 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
12012 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
12013 * term/i386/pc/at_keyboard.c
12014 (keyboard_controller_wait_untill_ready): Likewise.
12015 (keyboard_controller_led): Rename `led_status' paramter to avoid
12018 2009-12-28 Carles Pina i Estany <carles@pina.cat>
12020 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
12023 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
12025 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
12027 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
12029 * normal/menu_text.c (grub_print_message_indented): Prevent
12030 past-the-end-of-array dereference.
12032 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
12034 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
12035 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
12037 2009-12-27 Carles Pina i Estany <carles@pina.cat>
12039 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
12040 * normal/main.c (grub_normal_read_line): Remove a space from the
12043 2009-12-27 Carles Pina i Estany <carles@pina.cat>
12045 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
12046 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12047 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
12048 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
12049 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12050 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12051 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
12053 2009-12-26 Carles Pina i Estany <carles@pina.cat>
12055 * video/readers/jpeg.c (cmd): Declare.
12056 (grub_cmd_jpegtest): Use `grub_command_t' type.
12057 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
12059 (GRUB_MOD_FINI): Use `cmd' to unregister.
12060 * video/readers/png.c (cmd): Declare.
12061 (grub_cmd_pngtest): Use `grub_command_t' type.
12062 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
12064 (GRUB_MOD_FINI): Use `cmd' to unregister.
12065 * video/readers/tga.c (cmd): Declare.
12066 (grub_cmd_tgatest): Use `grub_command_t' type.
12067 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
12069 (GRUB_MOD_FINI): Use `cmd' to unregister.
12071 2009-12-26 Carles Pina i Estany <carles@pina.cat>
12073 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
12075 * kern/corecmd.c (grub_register_core_commands): Likewise.
12076 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
12077 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
12078 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
12079 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12080 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
12081 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
12082 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
12083 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
12084 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12085 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
12086 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
12087 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
12088 * normal/handler.c (insert_handler): Likewise.
12089 * normal/main.c (GRUB_MOD_INIT): Likewise.
12090 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
12092 2009-12-26 Carles Pina i Estany <carles@pina.cat>
12094 * commands/help.c (grub_cmd_help): Print the command name before the
12096 (GRUB_MOD_INIT): Remove command name from the summary.
12097 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
12099 * lib/arg.c (find_long): Print the command name before the summary.
12100 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
12102 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
12103 * commands/cat.c (GRUB_MOD_INIT): Likewise.
12104 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
12105 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
12106 * commands/crc.c (GRUB_MOD_INIT): Likewise.
12107 * commands/date.c (GRUB_MOD_INIT): Likewise.
12108 * commands/echo.c (GRUB_MOD_INIT): Likewise.
12109 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
12110 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
12111 * commands/handler.c (GRUB_MOD_INIT): Likewise.
12112 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
12113 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
12114 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
12115 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
12116 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
12117 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
12118 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
12119 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
12120 * commands/ls.c (GRUB_MOD_INIT): Likewise.
12121 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
12122 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
12123 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
12124 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
12125 * commands/password.c (GRUB_MOD_INIT): Likewise.
12126 * commands/probe.c (GRUB_MOD_INIT): Likewise.
12127 * commands/read.c (GRUB_MOD_INIT): Likewise.
12128 * commands/search.c (GRUB_MOD_INIT): Likewise.
12129 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
12130 * commands/test.c (GRUB_MOD_INIT): Likewise.
12131 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
12132 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
12133 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
12134 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
12135 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
12136 * lib/arg.c (GRUB_MOD_INIT): Likewise.
12137 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
12138 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
12139 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
12140 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
12141 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
12142 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
12143 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
12144 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
12146 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12148 Use search command for preliminar UUID search.
12150 * commands/search.c: Split into ...
12151 * commands/search_wrap.c: ...this
12152 * commands/search.c: ...and this.
12153 * commands/search_file.c: New file.
12154 * commands/search_label.c: New file.
12155 * commands/search_uuid.c: New file.
12156 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
12157 Add commands/search_wrap.c, commands/search_file.c,
12158 commands/search_label.c and commands/search_uuid.c.
12159 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
12160 (search_mod_SOURCES): Set to commands/search_wrap.c.
12161 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
12163 (search_fs_file_mod_SOURCES): New variable.
12164 (search_fs_file_mod_CFLAGS): Likewise.
12165 (search_fs_file_mod_LDFLAGS): Likewise.
12166 (search_label_mod_SOURCES): Likewise.
12167 (search_label_mod_CFLAGS): Likewise.
12168 (search_label_mod_LDFLAGS): Likewise.
12169 (search_fs_uuid_mod_SOURCES): New variable.
12170 (search_fs_uuid_mod_CFLAGS): Likewise.
12171 (search_fs_uuid_mod_LDFLAGS): Likewise.
12172 (fs_file_mod_SOURCES): Removed.
12173 (fs_file_mod_CFLAGS): Likewise.
12174 (fs_file_mod_LDFLAGS): Likewise.
12175 (fs_uuid_mod_SOURCES): Removed.
12176 (fs_uuid_mod_CFLAGS): Likewise.
12177 (fs_uuid_mod_LDFLAGS): Likewise.
12178 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
12179 Set to util/grub-install.in.
12180 * disk/fs_file.c: Removed.
12181 * disk/fs_uuid.c: Likewise.
12182 * include/grub/search.h: New file.
12183 * util/grub-install.in: Handle sparc64.
12184 Create and use load.cfg.
12185 * util/sparc64/ieee1275/grub-install.in: Removed.
12187 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12189 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
12190 Ignore return status if CF is cleared.
12191 (grub_biosdisk_get_diskinfo_standard): Likewise.
12193 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
12195 * term/i386/pc/at_keyboard.c
12196 (keyboard_controller_wait_untill_ready): New function.
12197 (grub_keyboard_controller_write, grub_keyboard_controller_read)
12198 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
12199 for keyboard polling, rather than duplicate the same loop. This
12200 saves a few bytes in code size.
12202 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
12204 Support for (pxe[:server[:gateway]]) syntax and
12205 use environment variable for PXE.
12207 * commands/i386/pc/pxecmd.c (options): Removed.
12208 (print_ip): Removed.
12209 (grub_cmd_pxe): Removed
12210 (grub_cmd_pxe_unload): New function.
12211 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
12212 (grub_pxe_your_ip): Made static.
12213 (grub_pxe_default_server_ip): Likewise.
12214 (grub_pxe_default_gateway_ip): Likewise.
12215 (grub_pxe_blksize): Likewise.
12216 (parse_ip): New function.
12217 (grub_pxe_open): Support server and gateway specification.
12218 (grub_pxe_close): Free disk->data.
12219 (grub_pxefs_open): Use disk->data.
12220 (grub_pxefs_read): Likewise.
12221 (grub_env_write_readonly): New function.
12222 (set_mac_env): Likewise.
12223 (set_env_limn_ro): Likewise.
12224 (parse_dhcp_vendor): Likewise.
12225 (grub_pxe_detect): Set the environment variables.
12226 (set_ip_env): New function.
12227 (write_ip_env): Likewise.
12228 (grub_env_write_pxe_default_server): Likewise.
12229 (grub_env_write_pxe_default_gateway): Likewise.
12230 (grub_env_write_pxe_blocksize): Likewise.
12231 (GRUB_MOD_INIT(pxe)): Set environment variables.
12232 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
12233 (grub_pxe_mac_addr_t): ... this. All users updated.
12234 (grub_pxe_your_ip): Removed.
12235 (grub_pxe_server_ip): Likewise.
12236 (grub_pxe_gateway_ip): Likewise.
12237 (grub_pxe_blksize): Likewise.
12239 2009-12-25 Carles Pina i Estany <carles@pina.cat>
12241 * commands/help.c: Include `<grub/i18n.h>'.
12242 (grub_cmd_help): Gettextizze.
12243 (GRUB_MOD_INIT): Likewise.
12244 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
12245 (GRUB_MOD_INIT): Gettextizze.
12246 * commands/search.c: Include `<grub/i18n.h>'.
12247 (options): Gettextizze.
12248 (GRUB_MOD_INIT): Gettextizze.
12249 * lib/arg.c: Include `<grub/i18n.h>'.
12250 (help_options): Gettextizze.
12251 (find_long): Likewise.
12252 (grub_arg_show_help): Likewise.
12253 * normal/dyncmd.c: Include `<grub/i18n.h>'.
12254 (read_command_list): Gettextizze.
12255 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
12256 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
12258 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
12260 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
12261 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
12262 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
12263 (led_status): New variable.
12264 (keyboard_controller_led): New function.
12265 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
12266 update led status for caps lock, num lock and scroll lock.
12268 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
12270 * util/hostdisk.c (open_device): Fix a comment.
12272 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12274 * util/grub-install.in (host_os): New variable.
12275 * util/i386/efi/grub-install.in (host_os): Likewise.
12277 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12279 * util/mkisofs/write.c (padblock_write): Abort when given an
12280 excedingly large embed image, instead of silently truncating it.
12282 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12284 * include/multiboot.h: Indentation fixes.
12286 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12288 * include/multiboot.h (struct multiboot_aout_symbol_table)
12289 (struct multiboot_elf_section_header_table): New structure
12290 declarations (stolen from GRUB Legacy).
12291 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
12294 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
12295 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
12298 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12300 * include/multiboot.h: Make comments src2texi-friendly.
12302 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12304 For consistency with [multiboot]/docs/boot.S.
12306 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
12307 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
12308 (MULTIBOOT_MAGIC2): Rename from this ...
12309 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
12311 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
12313 * include/multiboot.h: Remove `<grub/types.h>'.
12314 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
12315 types. Update all users.
12317 2009-12-25 Carles Pina i Estany <carles@pina.cat>
12319 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
12320 `couldn't' and `can not' by `cannot'.
12321 * commands/i386/pc/drivemap.c: Likewise.
12322 * disk/ata.c: Likewise.
12323 * disk/ieee1275/nand.c: Likewise.
12324 * fs/affs.c: Likewise.
12325 * fs/fat.c: Likewise.
12326 * fs/hfs.c: Likewise.
12327 * fs/hfsplus.c: Likewise.
12328 * fs/iso9660.c: Likewise.
12329 * fs/jfs.c: Likewise.
12330 * fs/minix.c: Likewise.
12331 * fs/reiserfs.c: Likewise.
12332 * fs/sfs.c: Likewise.
12333 * fs/udf.c: Likewise.
12334 * fs/ufs.c: Likewise.
12335 * fs/xfs.c: Likewise.
12336 * loader/powerpc/ieee1275/linux.c: Likewise.
12337 * loader/sparc64/ieee1275/linux.c: Likewise.
12338 * util/grub-probe.c: Likewise.
12339 * util/misc.c: Likewise.
12341 2009-12-24 Carles Pina i Estany <carles@pina.cat>
12343 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
12345 * commands/acpi.c: Likewise.
12346 * commands/blocklist.c: Likewise.
12347 * commands/efi/loadbios.c: Likewise.
12348 * commands/i386/pc/drivemap.c: Likewise.
12349 * commands/loadenv.c: Likewise.
12350 * commands/memrw.c: Likewise.
12351 * commands/password.c: Likewise.
12352 * commands/videotest.c: Likewise.
12353 * disk/ata.c: Likewise.
12354 * disk/ata_pthru.c: Likewise.
12355 * disk/dmraid_nvidia.c: Likewise.
12356 * disk/ieee1275/nand.c: Likewise.
12357 * disk/ieee1275/ofdisk.c: Likewise.
12358 * disk/loopback.c: Likewise.
12359 * disk/lvm.c: Likewise.
12360 * disk/mdraid_linux.c: Likewise.
12361 * disk/raid.c: Likewise.
12362 * disk/raid6_recover.c: Likewise.
12363 * disk/scsi.c: Likewise.
12364 * efiemu/main.c: Likewise.
12365 * efiemu/mm.c: Likewise.
12366 * efiemu/pnvram.c: Likewise.
12367 * efiemu/symbols.c: Likewise.
12368 * font/font.c: Likewise.
12369 * fs/cpio.c: Likewise.
12370 * fs/hfsplus.c: Likewise.
12371 * fs/iso9660.c: Likewise.
12372 * fs/jfs.c: Likewise.
12373 * fs/minix.c: Likewise.
12374 * fs/ntfs.c: Likewise.
12375 * fs/ntfscomp.c: Likewise.
12376 * fs/reiserfs.c: Likewise.
12377 * fs/ufs.c: Likewise.
12378 * fs/xfs.c: Likewise.
12379 * gettext/gettext.c: Likewise.
12380 * include/grub/auth.h: Likewise.
12381 * kern/elf.c: Likewise.
12382 * kern/file.c: Likewise.
12383 * kern/ieee1275/init.c: Likewise.
12384 * kern/ieee1275/mmap.c: Likewise.
12385 * kern/ieee1275/openfw.c: Likewise.
12386 * kern/powerpc/dl.c: Likewise.
12387 * kern/sparc64/dl.c: Likewise.
12388 * lib/arg.c: Likewise.
12389 * loader/i386/bsd.c: Likewise.
12390 * loader/i386/bsdXX.c: Likewise.
12391 * loader/i386/efi/linux.c: Likewise.
12392 * loader/i386/efi/xnu.c: Likewise.
12393 * loader/i386/ieee1275/linux.c: Likewise.
12394 * loader/i386/linux.c: Likewise.
12395 * loader/i386/multiboot.c: Likewise.
12396 * loader/i386/pc/linux.c: Likewise.
12397 * loader/i386/pc/multiboot2.c: Likewise.
12398 * loader/i386/xnu.c: Likewise.
12399 * loader/ieee1275/multiboot2.c: Likewise.
12400 * loader/macho.c: Likewise.
12401 * loader/machoXX.c: Likewise.
12402 * loader/multiboot2.c: Likewise.
12403 * loader/multiboot_loader.c: Likewise.
12404 * loader/powerpc/ieee1275/linux.c: Likewise.
12405 * loader/sparc64/ieee1275/linux.c: Likewise.
12406 * loader/xnu.c: Likewise.
12407 * loader/xnu_resume.c: Likewise.
12408 * mmap/i386/pc/mmap.c: Likewise.
12409 * normal/menu_viewer.c: Likewise.
12410 * partmap/acorn.c: Likewise.
12411 * partmap/amiga.c: Likewise.
12412 * partmap/apple.c: Likewise.
12413 * script/lexer.c: Likewise.
12414 * term/gfxterm.c: Likewise.
12415 * term/i386/pc/serial.c: Likewise.
12416 * term/i386/pc/vga.c: Likewise.
12417 * term/ieee1275/ofconsole.c: Likewise.
12418 * term/terminfo.c: Likewise.
12419 * video/bitmap.c: Likewise.
12420 * video/efi_gop.c: Likewise.
12421 * video/efi_uga.c: Likewise.
12422 * video/fb/video_fb.c: Likewise.
12423 * video/i386/pc/vbe.c: Likewise.
12424 * video/readers/tga.c: Likewise.
12425 * video/video.c: Likewise.
12427 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
12429 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
12430 * commands/lspci.c: Likewise.
12431 * commands/probe.c: Likewise.
12432 * commands/xnu_uuid.c: Likewise.
12433 * conf/i386-coreboot.rmk: Likewise.
12434 * conf/i386-efi.rmk: Likewise.
12435 * conf/i386-ieee1275.rmk: Likewise.
12436 * conf/i386-pc.rmk: Likewise.
12437 * conf/powerpc-ieee1275.rmk: Likewise.
12438 * conf/sparc64-ieee1275.rmk: Likewise.
12439 * conf/x86_64-efi.rmk: Likewise.
12440 * fs/i386/pc/pxe.c: Likewise.
12441 * gettext/gettext.c: Likewise.
12442 * include/grub/efi/graphics_output.h: Likewise.
12443 * include/grub/i386/pc/memory.h: Likewise.
12444 * kern/env.c: Likewise.
12445 * kern/i386/qemu/startup.S: Likewise.
12446 * lib/i386/pc/biosnum.c: Likewise.
12447 * lib/i386/relocator.c: Likewise.
12448 * lib/i386/relocator_asm.S: Likewise.
12449 * lib/relocator.c: Likewise.
12450 * loader/i386/bsd.c: Likewise.
12451 * loader/i386/multiboot.c: Likewise.
12452 * loader/i386/pc/chainloader.c: Likewise.
12453 * loader/i386/xnu.c: Likewise.
12454 * loader/xnu.c: Likewise.
12455 * normal/main.c: Likewise.
12456 * normal/menu_text.c: Likewise.
12457 * util/getroot.c: Likewise.
12458 * util/grub-mkconfig_lib.in: Likewise.
12459 * util/grub.d/00_header.in: Likewise.
12460 * util/i386/pc/grub-mkimage.c: Likewise.
12461 * util/mkisofs/eltorito.c: Likewise.
12462 * util/mkisofs/exclude.h: Likewise.
12463 * util/mkisofs/hash.c: Likewise.
12464 * util/mkisofs/iso9660.h: Likewise.
12465 * util/mkisofs/joliet.c: Likewise.
12466 * util/mkisofs/mkisofs.c: Likewise.
12467 * util/mkisofs/mkisofs.h: Likewise.
12468 * util/mkisofs/multi.c: Likewise.
12469 * util/mkisofs/name.c: Likewise.
12470 * util/mkisofs/rock.c: Likewise.
12471 * util/mkisofs/tree.c: Likewise.
12472 * util/mkisofs/write.c: Likewise.
12473 * video/efi_gop.c: Likewise.
12475 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
12477 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
12480 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12482 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
12483 * genmk.rb (class SCRIPT): Modify the target file instead of source.
12485 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12487 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
12488 (GRUB_MOD_INIT(memrw)): Update help line.
12490 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12492 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
12493 Use grub_extcmd_t. All users updated.
12494 (options): New variable.
12495 (grub_cmd_read): Restructure for readability. Support "-v" option.
12496 (grub_cmd_write): Restructure for readability.
12498 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12500 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
12502 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12504 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
12505 with the actual contents of the correspondending make variable.
12506 * util/grub-mkrescue.in (pkglib_DATA): New variable.
12507 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
12508 specifying `*.lst' and `efiemu??.o'
12510 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12512 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
12513 after function name.
12514 Noticed by Rene Engelhard <rene@debian.org>.
12516 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12518 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
12519 (options): New variable.
12520 (iospace): Likewise.
12521 (grub_lspci_iter): List IO spaces if "-i" was given.
12522 (grub_cmd_lspci): Parse options.
12523 (GRUB_MOD_INIT(lspci)): Use extcmd.
12524 (GRUB_MOD_FINI(lspci)): Likewise.
12526 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
12528 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
12529 `function' keyword.
12530 Patch by Tony Mancill <tmancill@debian.org>.
12532 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
12534 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
12535 (grub_uhci_portstatus): Likewise.
12536 (grub_uhci_portstatus): Add necessary delay.
12537 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
12539 2009-12-21 Carles Pina i Estany <carles@pina.cat>
12541 * commands/acpi.c (options): Fix capitalizations and/or full stops.
12542 (GRUB_MOD_INIT): Likewise.
12543 * commands/boot.c (GRUB_MOD_INIT): Likewise.
12544 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
12545 * commands/echo.c (options): Fix capitalizations and/or full stops.
12546 * commands/efi/loadbios.c (enable_rom_area): Likewise.
12547 (enable_rom_area): Likewise.
12548 (GRUB_MOD_INIT): Likewise.
12549 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
12550 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
12551 * commands/handler.c (GRUB_MOD_INIT): Likewise.
12552 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
12553 * commands/hexdump.c (options): Likewise.
12554 * commands/i386/cpuid.c (options): Likewise.
12555 (GRUB_MOD_INIT): Likewise.
12556 * commands/i386/pc/drivemap.c (options): Likewise.
12557 (GRUB_MOD_INIT): Likewise.
12558 * commands/i386/pc/halt (options): Likewise.
12559 (GRUB_MOD_INIT): Likewise.
12560 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
12561 * commands/i386/pc/pxecmd.c (options): Likewise.
12562 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
12563 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
12564 * commands/keystatus.c (options): Likewise.
12565 (GRUB_MOD_INIT): Likewise.
12566 * commands/loadenv.c (options): Likewise.
12567 * commands/ls.c (options): Likewise.
12568 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
12569 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
12570 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
12571 * commands/parttool.c (helpmsg): Likewise.
12572 * commands/probe.c (options): Likewise.
12573 * commands/read.c (GRUB_MOD_INIT): Likewise.
12574 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
12575 * commands/search.c (options): Likewise.
12576 * commands/sleep.c (options): Likewise.
12577 * commands/test.c (GRUB_MOD_INIT): Likewise.
12578 * commands/true.c (GRUB_MOD_INIT): Likewise.
12579 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
12580 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
12581 * lib/arg.c (help_options): Likewise.
12582 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
12584 * po/POTFILES: Add `commands/loadenv.c'.
12586 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
12588 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
12589 instead of specifying them explicit.
12591 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12593 * NEWS: Add grub-probe support for GNU/Hurd.
12595 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12597 * NEWS: gettext was added after 1.97.
12599 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12601 * util/mkisofs/msdos_partition.h: New file (based on
12602 include/grub/msdos_partition.h).
12603 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
12604 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
12605 (ld_options, main): Recognize --protective-msdos-label.
12606 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
12607 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
12608 (padblock_write): If `use_protective_msdos_label' is set, patch a
12609 protective DOS-style label in the output image.
12611 * util/grub-mkrescue.in: Use --protective-msdos-label.
12613 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12615 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
12618 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12620 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
12622 (ld_options, main): Recognize `--embedded-boot'.
12623 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
12625 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
12626 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
12627 (padblock_write): Likewise. Rewrite to support embedded boot image.
12629 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
12630 for BIOS-based disk boot instead of only ElTorito.
12632 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12634 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
12635 build (not needed for bootstrap).
12637 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12639 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
12640 from i386-pc build (not needed for bootstrap).
12641 Rewrite a pair of strings.
12643 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
12645 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
12647 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
12649 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
12651 2009-12-21 Andreas Born <futur.andy@googlemail.com>
12653 * kern/env.c (grub_env_context_open): Mark exported variable for
12656 2009-12-21 Andreas Born <futur.andy@googlemail.com>
12658 * kern/env.c (grub_env_export): Create nonexistent variables before
12661 2009-12-20 Carles Pina i Estany <carles@pina.cat>
12663 * include/grub/auth.h: Include `<grub/i18n.h>'.
12664 (GRUB_GET_PASSWORD): Gettextizze string.
12665 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
12667 (grub_utf8_to_ucs4_alloc): Fix indentation.
12668 (grub_print_ucs4): Likewise.
12669 (grub_getstringwidth): Likewise.
12670 (print_message_indented): New declaration.
12671 * normal/auth.c: Include `<grub/i18n.h>'.
12672 (grub_auth_check_authentication): Gettexttize string.
12673 * normal/cmdline.c: Include `<grub/i18n.h>'.
12674 (grub_cmdline_get): Gettextizze.
12675 * normal/color.c: Include `<grub/i18n.h>'.
12676 (grub_parse_color_name_pair): Gettexttize strings.
12677 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
12678 string (use `print_message_indented').
12679 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
12680 `include/grub/normal.h'.
12681 (print_message_indented): Renamed to ...
12682 (grub_print_message_indented): ... this. Remove `static' qualifer (now
12683 used in normal/main.c).
12684 (print_message): Use `grub_print_message_indented' instead of
12685 `print_message_indented'.
12686 (print_timeout): Likewise.
12687 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
12688 (grub_normal_print_device_info): Gettexttize strings.
12689 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
12691 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
12693 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
12694 of arguments. Return number of tokens and not arguments. All users
12697 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
12699 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
12700 non-MSDOS paritions.
12702 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
12704 * include/grub/types.h (UNUSED): Removed since it conflicts with
12705 NetBSD headers. All users changed to direct __attribute__ ((unused)).
12706 Reported by Grégoire Sutre.
12708 2009-12-19 Carles Pina i Estany <carles@pina.cat>
12710 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
12711 (grub_print_ucs4_alloc): Likewise.
12712 (grub_getstringwidth): Likewise.
12713 * normal/main.c (grub_normal_init_page): Gettextize version string.
12714 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
12715 (getstringwidth): Renamed to ...
12716 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
12717 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
12718 (grub_print_ucs4): Remove `static' qualifer (now used in
12720 * po/POTFILES: Add normal/main.c.
12722 2009-12-19 Carles Pina i Estany <carles@pina.cat>
12724 * normal/menu_text.c (STANDARD_MARGIN): New macro.
12725 (print_message_indented): Add `margin_left' and `margin_right'
12727 (print_message): Update `print_message_indented' calls. Adds '\n' to the
12729 (print_timeout): Use `print_message_indented' to print the message.
12730 Deletes `second_stage' parameter.
12731 (run_menu): Update `print_timeout' calls.
12733 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
12735 Fix console palette on OpenFirmware.
12737 * term/ieee1275/ofconsole.c (MAX): Removed.
12738 (colors): Redone based on VGA palette.
12739 (grub_ofconsole_setcolor): Discard brightness bit since only 8
12740 colors are supported.
12741 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
12743 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
12745 Fix potential EfiEmu double prepare.
12747 * efiemu/main.c (prepared): New variable
12748 (grub_efiemu_unload): Set prepare to '0'.
12749 (grub_efiemu_prepare): Return if already prepared. Set prepared.
12751 set_virtual_address_map support.
12753 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
12755 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
12757 (grub_efiemu_crc32): Likewise.
12758 (grub_efiemu_crc64): Likewise.
12759 (grub_efiemu_set_virtual_address_map): Likewise.
12760 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
12762 (grub_autoefi_set_virtual_address_map): Likewise.
12763 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
12764 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
12765 Restructure flow to accomodate it.
12766 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
12767 (grub_efiemu_crc): Recompute CRC32.
12768 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
12769 (efiemu_ptv_relocated): ... this. Made global. All users updated.
12770 * efiemu/symbols.c (relocated_handle): New variable.
12771 (grub_efiemu_free_syms): Free relocated_handle.
12772 (grub_efiemu_alloc_syms): Allocate relocated_handle.
12773 (grub_efiemu_write_sym_markers): New function.
12774 (grub_efiemu_set_virtual_address_map): Likewise.
12776 Newer XNU parameters.
12778 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
12779 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
12780 (grub_xnu_fill_devicetree): New prototype.
12781 (grub_xnu_heap_real_start): New variable.
12782 * loader/xnu.c (get_name_ptr): New function.
12783 (grub_xnu_load_driver): Fill namelen and name.
12785 64-bit xnu support.
12787 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
12788 and 'loader/macho64.c'.
12789 * conf/i386-pc.rmk: Likewise.
12790 * conf/x86_64-efi.rmk: Likewise.
12791 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
12792 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
12793 * include/grub/macho.h (grub_macho_segment64): New structure.
12794 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
12795 (grub_macho_size32): ... to this.
12796 (grub_macho32_get_entry_point): Renamed from ...
12797 (grub_macho_get_entry_point32): ... to this.
12798 (grub_macho_contains_macho64): New prototype.
12799 (grub_macho_size64): Likewise.
12800 (grub_macho_get_entry_point64): Likewise.
12801 (grub_macho32_load): Renamed from ...
12802 (grub_macho_load32): ... to this.
12803 (grub_macho32_filesize): Renamed from ...
12804 (grub_macho_filesize32): ... to this.
12805 (grub_macho32_readfile): Renamed from ...
12806 (grub_macho_readfile32): ... to this.
12807 (grub_macho_filesize64): New prototype.
12808 (grub_macho_readfile64): Likewise.
12809 (grub_macho_parse32): Likewise.
12810 (grub_macho_parse64): Likewise.
12811 * loader/macho.c: Split into ...
12812 * loader/machoXX.c: ... and this. Replace 32 with XX.
12813 * loader/macho32.c: New file.
12814 * loader/macho64.c: Likewise.
12815 * loader/xnu.c (grub_xnu_is_64bit): New variable.
12816 (grub_cmd_xnu_kernel): Make 32-bit only.
12817 (grub_cmd_xnu_kernel64): New function.
12818 (grub_xnu_load_driver): Support Mach-O 64.
12819 (grub_cmd_xnu_mkext): Likewise.
12820 * util/grub.d/30_os-prober.in (osx_entry): New function.
12821 Generate entries for 64-bit boot too.
12823 Eliminate ad-hoc tree format in XNU and EfiEmu.
12825 * efiemu/main.c (grub_efiemu_prepare): Update comment.
12826 * efiemu/pnvram.c: Rewritten to use environment variables.
12829 Inline utf16_to_utf8.
12831 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
12832 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
12834 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
12836 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
12837 * commands/usbtest.c (grub_usb_get_string): ... move here.
12838 (usb_print_str): Fix error handling.
12839 * include/grub/usb.h (grub_usb_get_string): Remove.
12841 UTF-8 to UTF-16 transformation.
12843 * conf/common.rmk (pkglib_MODULES): Add charset.mod
12844 (charset_mod_SOURCES): New variable.
12845 (charset_mod_CFLAGS): Likewise.
12846 (charset_mod_LDFLAGS): Likewise.
12847 * include/grub/utf.h: New file.
12848 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
12850 Support for device properties.
12852 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
12853 (grub_xnu_devprop_device_header): Likewise.
12854 (grub_xnu_devprop_device_descriptor): Likewise.
12855 (grub_xnu_devprop_add_device): New prototype.
12856 (grub_xnu_devprop_remove_device): Likewise.
12857 (grub_xnu_devprop_remove_property): Likewise.
12858 (grub_xnu_devprop_add_property_utf8): Likewise.
12859 (grub_xnu_devprop_add_property_utf16): Likewise.
12860 (grub_cpu_xnu_init): Likewise.
12861 (grub_cpu_xnu_fini): Likewise.
12862 (grub_cpu_xnu_unload): Likewise.
12863 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
12864 (property_descriptor): Likewise.
12865 (devices): New variable.
12866 (grub_xnu_devprop_remove_property): New function.
12867 (grub_xnu_devprop_add_device): Likewise.
12868 (grub_xnu_devprop_remove_device): Likewise.
12869 (grub_xnu_devprop_add_property): Likewise.
12870 (grub_xnu_devprop_add_property_utf8): Likewise.
12871 (grub_xnu_devprop_add_property_utf16): Likewise.
12872 (hextoval): Likewise.
12873 (grub_cpu_xnu_fill_devprop): Likewise.
12874 (grub_cmd_devprop_load): Likewise.
12875 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
12876 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
12877 (cmd_devprop_load): New variable.
12878 (grub_cpu_xnu_init): New function.
12879 (grub_cpu_xnu_fini): Likewise.
12880 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
12881 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
12882 (grub_cmd_xnu_devtree): Likewise.
12883 (hextoval): New function.
12884 (unescape): Likewise.
12885 (grub_xnu_fill_devicetree): Likewise.
12887 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
12888 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
12890 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
12892 Workaround for broken ATI VBE.
12894 * video/i386/pc/vbe.c (last_set_mode): New variable.
12895 (grub_vbe_set_video_mode): Set 'last_set_mode'.
12896 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
12897 (grub_video_vbe_setup): Don't check for reserved flag.
12899 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
12901 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
12902 the `find' command.
12904 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
12906 UUID support for HFS.
12908 * fs/hfs.c (grub_hfs_uuid): New function.
12909 (grub_hfs_fs): New value .uuid.
12910 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
12912 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
12914 Fix a segfault with parsing unknown long options.
12916 * util/grub-mkrelpath.c (options): Zero terminate it.
12918 2009-12-13 Carles Pina i Estany <carles@pina.cat>
12920 * include/grub/misc.h (grub_puts): New declaration.
12921 (grub_puts_): Likewise.
12922 * kern/misc.c (grub_puts): New definition.
12923 (grub_puts_): Likewise.
12925 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
12927 * util/grub-probe.c (probe): Improve error message.
12929 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
12931 * loader/i386/multiboot_elfxx.c
12932 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
12935 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
12937 Relocator framework
12939 * loader/i386/xnu_helper.S: Removed. All users updated.
12940 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
12941 (relocator_mod_SOURCES): New variable.
12942 (relocator_mod_CFLAGS): Likewise.
12943 (relocator_mod_LDFLAGS): Likewise.
12944 (relocator_mod_ASFLAGS): Likewise.
12945 * conf/x86_64.rmk: Likewise.
12946 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
12947 (grub_multiboot_payload_entry_offset): Likewise.
12948 (grub_multiboot_forward_relocator): Likewise.
12949 (grub_multiboot_forward_relocator_end): Likewise.
12950 (grub_multiboot_backward_relocator): Likewise.
12951 (grub_multiboot_backward_relocator_end): Likewise.
12952 (grub_multiboot_payload_eip): New variable.
12953 (grub_multiboot_payload_orig): Likewise.
12954 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
12955 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
12956 * include/grub/i386/memory.h
12957 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
12958 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
12959 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
12960 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
12961 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
12962 * include/grub/i386/relocator.h: New file.
12963 * include/grub/x86_64/relocator.h: Likewise.
12964 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
12965 (XNU_RELOCATOR): New macro.
12966 (grub_xnu_launcher_start): Remove.
12967 (grub_xnu_launcher_end): Likewise.
12968 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
12969 (grub_xnu_heap_real_start): Remove.
12970 (grub_xnu_heap_start): Change to void *. All users updated.
12971 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
12972 * lib/i386/relocator.c: New file.
12973 * lib/i386/relocator_asm.S: Likewise.
12974 * lib/i386/relocator_backward.S: Likewise.
12975 * lib/mips/relocator.c: Likewise.
12976 * lib/mips/relocator_asm.S: Likewise.
12977 * lib/relocator.c: Likewise.
12978 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
12980 (playground): Likewise.
12981 (grub_multiboot_payload_orig): New variable.
12982 (grub_multiboot_payload_dest): Likewise.
12983 (grub_multiboot_payload_size): Likewise.
12984 (grub_multiboot_payload_eip): Likewise.
12985 (grub_multiboot_payload_esp): Likewise.
12986 (grub_multiboot_boot): Use grub_relocator32_boot.
12987 (grub_multiboot_unload): Free relocators.
12988 (grub_multiboot): Setup stack. Use relocators.
12989 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
12990 (grub_multiboot_load_elfXX): Use relocators.
12991 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
12992 (grub_multiboot_payload_size): Likewise.
12993 (grub_multiboot_payload_dest): Likewise.
12994 (grub_multiboot_payload_entry_offset): Likewise.
12995 (grub_multiboot_forward_relocator): Likewise.
12996 (grub_multiboot_backward_relocator): Likewise.
12997 (grub_multiboot_real_boot): Likewise.
12998 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
12999 (grub_xnu_entry_point): Likewise.
13000 (grub_xnu_arg1): Likewise.
13001 (grub_xnu_stack): Likewise.
13002 (grub_xnu_launch): Removed.
13003 (grub_xnu_boot_resume): New function.
13004 (grub_xnu_boot): Use relocators.
13005 * loader/i386/xnu_helper.S: Removed.
13006 * loader/xnu.c (grub_xnu_heap_start): New variable.
13007 (grub_xnu_heap_size): Likewise.
13008 (grub_xnu_heap_malloc): Use relocators.
13009 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
13011 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
13013 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
13016 2009-12-13 Carles Pina i Estany <carles@pina.cat>
13018 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
13019 GRUB_ERR_NONE before calling grub_env_set.
13021 2009-12-12 Robert Millan <rmh@aybabtu.com>
13023 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
13024 * genmk.rb (video): New variable.
13025 (CLEANFILES, VIDEOFILES): Add #{video}.
13026 (#{video}): New target rule.
13027 * genvideolist.sh: New file.
13028 * Makefile.in (pkglib_DATA): Add video.lst.
13029 (video.lst): New target rule.
13030 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
13032 * util/grub.d/30_os-prober.in: Replace `vbe' with
13033 ${GRUB_VIDEO_BACKEND}.
13035 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
13037 * THANKS: Add David Miller.
13039 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
13041 libpciaccess support.
13043 * Makefile.in (LIBPCIACCESS): New variable.
13044 (enable_grub_emu_pci): Likewise.
13045 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
13046 util/pci.c and commands/lspci.c.
13047 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
13048 * configure.ac (grub-emu-pci): New option.
13049 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
13050 (grub_pci_device_unmap_range): Likewise.
13051 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
13052 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
13053 (grub_pci_address_t) [!GRUB_UTIL]: New type.
13054 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
13055 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
13056 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
13057 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
13058 * include/grub/pciutils.h: New file.
13059 * util/pci.c: Likewise.
13061 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
13063 * util/misc.c: Don't include <errno.h> twice.
13065 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
13067 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
13068 name in an error message.
13069 (grub_biosdisk_rw): Likewise.
13071 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
13073 Eliminate NTFS 4Gib barrier.
13075 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
13076 (read_run_data): Likewise.
13077 (grub_ntfs_read_run_list): Likewise.
13078 (grub_ntfs_read_block): Likewise.
13079 (grub_ntfs_iterate_dir): Likewise.
13080 (read_mft): Likewise.
13081 (read_data): Likewise.
13083 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
13084 to avoid 64-bit division
13085 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
13086 (grub_ntfs_rlst): Use grub_disk_addr_t.
13088 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
13090 Eliminate grub-fstest 4Gib barrier.
13092 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
13093 (read_file): Fix error reporting.
13095 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
13097 Eliminate hexdump 4Gib barrier.
13099 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
13100 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
13102 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
13104 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
13107 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
13109 Remove miscellaneous files in distclean target.
13111 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
13113 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
13115 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
13116 if they're already set. This resolves the conflict between my
13117 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
13118 fixing the --grub-probe option again.
13119 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
13120 change on 2009-10-06, so that we now once again source
13121 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
13123 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
13125 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
13126 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
13127 `util/devicemap.c'.
13129 2009-12-08 Carles Pina i Estany <carles@pina.cat>
13131 * include/grub/misc.h (grub_printf_): New declaration.
13132 * kern/misc.c (grub_printf_): New definition.
13133 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
13134 instead of `grub_printf' and `_'.
13135 * normal/menu_entry.c (store_completion): Likewise.
13137 (grub_menu_entry_run): Likewise.
13138 * normal/menu_text.c (grub_wait_after_message): Likewise.
13139 (notify_booting): Likewise.
13140 (notify_fallback): Likewise.
13141 (notify_execution_failure): Likewise.
13143 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
13145 * configure.ac: Check for vasprintf.
13146 * util/misc.c (asprintf): Move allocation from here ...
13147 (vasprintf): ... to here. New function.
13148 (xasprintf): New function.
13149 * include/grub/util/misc.h (vasprintf, xasprintf): Add
13151 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
13152 * util/grub-mkfont.c (write_font): Likewise.
13153 * util/grub-probe.c (probe): Likewise.
13154 * util/hostdisk.c (make_device_name): Likewise.
13156 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
13158 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
13159 anything even prefixed with 'cdrom' as a cdrom.
13161 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
13163 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
13166 2009-12-05 Carles Pina i Estany <carles@pina.cat>
13168 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
13169 grub_gettext_msg_list.
13170 (grub_gettext_gettranslation_from_position): Return const char *
13172 (grub_gettext_translate): Add the translated strings into a list,
13173 returns from the list if existing there.
13174 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
13175 (grub_gettext_delete_list): Delete the list.
13176 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
13177 lang environment variable is changed.
13178 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
13180 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
13182 Rename kernel.mod to kernel.img.
13184 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
13185 (kernel_mod_EXPORTS): Rename to ...
13186 (kernel_img_EXPORTS): ... this.
13187 (kernel_mod_SOURCES): Rename to ...
13188 (kernel_img_SOURCES): ... this.
13189 (kernel_mod_HEADERS): Rename to ...
13190 (kernel_img_HEADERS): ... this. All users updated.
13191 (kernel_mod_CFLAGS): Rename to ...
13192 (kernel_img_CFLAGS): ... this.
13193 (kernel_mod_ASFLAGS): Rename to ...
13194 (kernel_img_ASFLAGS): ... this.
13195 (kernel_mod_LDFLAGS): Rename to ...
13196 (kernel_img_LDFLAGS): ... this.
13197 * conf/x86_64-efi.rmk: Likewise.
13198 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
13199 (read_kernel_image): ... this. All users updated.
13200 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
13202 2009-12-05 Carles Pina i Estany <carles@pina.cat>
13204 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
13205 (print_spaces): New function.
13206 (grub_print_ucs4): New function.
13207 (getstringwidth): New function.
13208 (print_message_indented): New function.
13209 (print_message): Gettexttize strings using print_message_indented.
13210 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
13212 (get_entry_number): Gettextize and uses dynamic terminal width.
13213 (notify_booting, notify_fallback, notify_execution_failure):
13215 * normal/menu_entry.c (store_completion): Cleanup the gettextized
13218 (grub_menu_entry_run): Likewise.
13219 * PO/POTFILES: Add normal/menu_entry.c.
13221 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
13223 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
13225 2009-12-05 Carles Pina i Estany <carles@pina.cat>
13227 * util/grub-install.in: Install gettext .mo files.
13228 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
13230 2009-12-05 Carles Pina i Estany <carles@pina.cat>
13232 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
13235 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
13237 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
13238 non-firmware-dependant one in realmode.S takes precedence.
13240 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
13242 * commands/halt.c: Replace misc arch-specific headers with
13244 * commands/reboot.c: Likewise.
13245 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
13247 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
13248 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
13249 (kernel_img_SOURCES): ... to here.
13251 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
13252 * include/grub/i386/pc/init.h: Likewise.
13253 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
13254 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
13256 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
13258 * include/grub/i386/halt.h: Remove.
13259 * include/grub/i386/reboot.h: Likewise.
13261 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
13263 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
13265 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
13266 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
13267 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
13269 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
13270 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13271 (usage): Add missing comma in printf.
13273 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
13275 Use the same reboot approach on i386 coreboot and qemu as we do on
13278 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
13279 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
13280 * kern/i386/reboot.c: Remove.
13281 * include/grub/i386/reboot.h (grub_reboot): Export function.
13282 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
13283 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
13284 0xf000:0xfff0 instead of 0xffff:0x0000.
13285 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
13286 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
13288 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
13290 Fix $srcdir != $objdir build.
13292 * Makefile.in (po/%.po): Rewrite as ...
13293 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
13295 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
13297 Fix GNU/Hurd grub-install crash.
13298 * util/grub-probe.c (probe): Try to access `path' only when it is not
13301 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
13303 Correct module naming.
13305 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
13306 (GRUB_MOD_INIT(efi_uga)): ... to this
13307 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
13308 (GRUB_MOD_FINI(efi_uga)): ... to this
13309 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
13310 (GRUB_MOD_INIT(efi_gop)): ... to this
13311 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
13312 (GRUB_MOD_FINI(efi_gop)): ... to this
13314 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
13316 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
13318 (usage): Translate `arg' strings using gettext().
13319 Thanks to Jordi Mallach for the suggestion.
13321 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
13323 GOP support. Based on patch from Bean
13324 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
13326 * video/efi_gop.c: New file.
13327 * include/grub/efi/graphics_output.h: Likewise.
13328 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
13329 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
13331 * conf/x86_64-efi.rmk: Likewise.
13333 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
13335 Rename efi_fb to efi_uga.
13337 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
13339 (efi_fb_mod_SOURCES): Rename this ...
13340 (efi_uga_mod_SOURCES): ... to this.
13341 (efi_fb_mod_CFLAGS): Rename this ...
13342 (efi_uga_mod_CFLAGS): ... to this.
13343 (efi_fb_mod_LDFLAGS): Rename this ...
13344 (efi_uga_mod_LDFLAGS): ... to this.
13345 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
13347 (efi_fb_mod_SOURCES): Rename this ...
13348 (efi_uga_mod_SOURCES): ... to this.
13349 (efi_fb_mod_CFLAGS): Rename this ...
13350 (efi_uga_mod_CFLAGS): ... to this.
13351 (efi_fb_mod_LDFLAGS): Rename this ...
13352 (efi_uga_mod_LDFLAGS): ... to this.
13353 * video/efi_fb.c: Move this ...
13354 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
13356 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
13358 * po/README: New file. Explain our PO file workflow.
13360 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
13362 * po/ChangeLog: Remove. Move relevant entries back to ...
13363 * ChangeLog: ... here.
13364 * po/ca.po: Remove (now handled by TLP).
13365 * po/id.po: Likewise.
13366 * po/zh_CN.po: Likewise.
13367 * Makefile.in (LINGUAS): Initialize in a way that supports
13370 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
13372 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
13373 reliing on po/LINGUAS.
13374 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
13375 (po/%.po): ... this.
13377 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
13379 * util/i386/efi/grub-mkimage.c: Include "progname.h".
13380 (main): Use `program_name' instead of nonexistent `progname'.
13382 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
13384 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
13385 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
13387 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
13389 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
13391 * conf/i386-efi.rmk: Likewise.
13392 * conf/i386-ieee1275.rmk: Likewise.
13393 * conf/powerpc-ieee1275.rmk: Likewise.
13394 * conf/sparc64-ieee1275.rmk: Likewise.
13395 * conf/x86_64-efi.rmk: Likewise.
13397 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
13399 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
13401 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
13403 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
13405 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
13407 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
13408 (grub_mkdevicemap_SOURCES): New variable.
13409 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
13410 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
13411 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
13412 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
13413 (grub_mkdevicemap_SOURCES): Remove.
13414 * conf/i386-efi.rmk: Likewise.
13415 * conf/i386-ieee1275.rmk: Likewise.
13416 * conf/i386-pc.rmk: Likewise.
13417 * conf/powerpc-ieee1275.rmk: Likewise.
13418 * conf/sparc64-ieee1275.rmk: Likewise.
13419 * conf/x86_64-efi.rmk: Likewise.
13420 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
13421 (usage): Fix strings to use `program_name'.
13422 (main): Initialize gettext.
13423 * util/grub-editenv.c: Likewise.
13424 * util/grub-emu.c: Likewise.
13425 * util/grub-fstest.c: Likewise.
13426 * util/grub-mkdevicemap.c: Likewise.
13427 * util/grub-mkfont.c: Likewise.
13428 * util/grub-mkrelpath.c: Likewise.
13429 * util/grub-pe2elf.c: Likewise.
13430 * util/grub-probe.c: Likewise.
13431 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
13432 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
13433 * util/sparc64/ieee1275/grub-setup.c: Likewise.
13435 * util/misc.c: Include `"progname.h"'.
13436 (progname): Remove variable.
13437 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
13439 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
13441 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
13442 printf and print a newline after the menuentry header line.
13443 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
13445 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
13447 autoconf >= 2.60 support $(localedir).
13449 * INSTALL: Note that autoconf 2.60 is required.
13450 * configure.ac (AC_PREREQ): Bump to 2.60.
13451 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
13452 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
13454 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
13456 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
13459 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
13461 * normal/main.c (grub_normal_read_line): Fix off-by-one
13464 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
13466 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
13467 "parser.grub" in grub_command_execute() call.
13469 2009-11-24 Carles Pina i Estany <carles@pina.cat>
13471 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
13472 * conf/i386-efi.rmk: Likewise.
13473 * conf/i386-ieee1275.rmk: Likewise.
13474 * conf/i386-pc.rmk: Likewise.
13475 * conf/powerpc-ieee1275.rmk: Likewise.
13476 * conf/sparc64-ieee1275.rmk: Likewise.
13477 * conf/x86_64-efi.rmk: Likewise.
13478 * gettext/gettex.c: Include <grub/i18n.h>.
13479 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
13481 * include/grub/i18n.h: ... to here
13482 * include/grub/i18n.h: ... to here.
13483 * kern/misc.c: Include <grub/i18n.h>
13484 (grub_gettext_dummy): Move above user.
13486 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13488 * util/Makefile.in (install-local): Convert a `for' into a normal
13491 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
13493 * autogen.sh: Add automake call.
13494 * config.guess: Remove.
13495 * config.sub: Likewise.
13496 * install-sh: Likewise.
13498 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13500 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
13502 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13504 * util/Makefile.in (install-local): Convert a make `$(foreach)'
13505 function to a normal shell `for'.
13507 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13509 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
13511 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13513 * util/grub-mkrelpath.c: New file.
13514 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
13515 (grub_mkrelpath_SOURCES): New variable.
13516 * include/grub/util/misc.h: New function prototype.
13517 * util/misc.c (make_system_path_relative_to_its_root): New function.
13519 * util/grub-mkconfig_lib.in (bindir): New variable.
13520 (grub_mkrelpath): Likewise.
13521 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
13523 * util/probe.c (probe): Make the file path relative to its root.
13524 Change a info message to use the GRUB path. Enable again the
13525 check if we can read the file with GRUB facilities.
13527 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
13530 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13532 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
13535 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13537 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
13540 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
13542 * util/getroot.c (grub_util_is_dmraid): New function.
13543 (grub_util_get_dev_abstraction): Treat dmraid and multipath
13544 devices as normal ones, not as LVM.
13546 2009-11-23 Carles Pina i Estany <carles@pina.cat>
13548 * conf/common.rmk: Add grub-gettext_lib target and updates
13549 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
13551 * gettext/gettext.c: New file. (Reads mo files).
13552 * include/grub/file.h (grub_file_pread): New prototype.
13553 * include/grub/i18n.h (_): New prototype.
13554 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
13556 * kern/misc.c (grub_gettext_dummy): New function.
13557 * normal/menu_text.c: Include <grub/i18n.h>.
13558 * normal/menu_text.c (print_timeout): Gettexttize string.
13559 * normal/menu_text.c (print_message): Gettexttize string.
13560 * po/POTFILES: Add `normal/menu_text.c'.
13561 * po/ca.po: Add new translations.
13562 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
13563 gettext module and defines locale_dir and lang in grub.cfg.
13564 * NEWS: Add gettext support.
13566 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13568 * util/hostdisk.c: Include `<grub/i18n.h>'.
13569 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
13570 (make_device_name): Rewrite using asprintf.
13571 (convert_system_partition_to_system_disk): Replace 0 with NULL.
13572 (find_system_device): If a device is not found, generate one just
13573 by reusing the OS path name.
13574 (read_device_map): Make it permissible for device.map not to exist.
13576 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13578 * script/sh/execute.c: Move from here ...
13579 * script/execute.c: ... to here. Update all users.
13580 * script/sh/function.c: Move from here ...
13581 * script/function.c: ... to here. Update all users.
13582 * script/sh/lexer.c: Move from here ...
13583 * script/lexer.c: ... to here. Update all users.
13584 * script/sh/main.c: Move from here ...
13585 * script/main.c: ... to here. Update all users.
13586 * script/sh/parser.y: Move from here ...
13587 * script/parser.y: ... to here. Update all users.
13588 * script/sh/script.c: Move from here ...
13589 * script/script.c: ... to here. Update all users.
13591 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13593 * configure.ac: Detect all `emu' platforms. Define
13594 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
13595 --enable-grub-emu logic. Disable include/grub/machine
13596 symlink on `emu' platforms.
13598 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
13599 * gensymlist.sh.in: Likewise.
13601 * include/grub/i386/coreboot/machine.h: Remove file.
13602 * include/grub/i386/efi/machine.h: Likewise.
13603 * include/grub/i386/ieee1275/machine.h: Likewise.
13604 * include/grub/i386/pc/machine.h: Likewise.
13605 * include/grub/i386/qemu/machine.h: Likewise.
13606 * include/grub/powerpc/ieee1275/machine.h: Likewise.
13607 * include/grub/sparc64/ieee1275/machine.h: Likewise.
13608 * include/grub/x86_64/efi/machine.h: Likewise.
13610 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
13611 * commands/halt.c: Likewise.
13612 * commands/reboot.c: Likewise.
13613 * include/grub/autoefi.h: Likewise.
13614 * include/grub/i386/at_keyboard.h: Likewise.
13615 * include/grub/i386/kernel.h: Likewise.
13616 * include/grub/i386/loader.h: Likewise.
13617 * include/grub/i386/pc/memory.h: Likewise.
13618 * kern/dl.c: Likewise.
13619 * kern/i386/coreboot/init.c: Likewise.
13620 * loader/i386/bsd.c: Likewise.
13621 * loader/i386/linux.c: Likewise.
13622 * loader/multiboot_loader.c: Likewise.
13623 * term/i386/pc/serial.c: Likewise.
13624 * term/usb_keyboard.c: Likewise.
13626 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
13627 `<grub/machine/machine.h>'
13628 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
13629 * util/misc.c: Remove `<grub/machine/machine.h>' and
13630 `<grub/machine/time.h>'.
13632 * Makefile.in (enable_grub_emu): Remove variable.
13633 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
13635 * conf/any-emu.rmk: New file.
13636 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
13637 (grub_emu_init.c): Move from here ...
13638 * conf/any-emu.rmk: ... to here.
13640 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
13641 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
13642 * conf/any-emu.rmk: ... to here.
13644 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13646 * include/grub/parser.h (grub_parser_register): Document need
13647 of `name' parameter.
13648 * normal/main.c (grub_normal_read_line): Simplify prompt string.
13649 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
13652 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13654 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
13656 * include/grub/i18n.h (N_): New macro.
13657 * util/mkisofs/mkisofs.h: Likewise.
13658 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
13660 (usage): Use gettext() to translate help strings when printing them.
13662 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
13664 Based on patch from Bean
13665 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
13667 * video/efi_fb.c: New file.
13668 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
13669 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
13671 * conf/x86_64-efi.rmk: Likewise.
13673 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
13675 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
13676 * util/i386/pc/grub-setup.c: Likewise.
13678 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
13680 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
13682 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
13683 file_get_storage_info to implement grub_guess_root_device.
13685 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
13687 * Makefile.in (target): Use make's builtin $(shell) function
13688 instead of calling directly $(SHELL) to create the locale directories,
13689 inside the $(foreach) function.
13691 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
13693 * util/grub-mkrescue.in: Print an error and usage if output option
13694 has not been given.
13696 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
13698 Patch from Loïc Minier <loic.minier@ubuntu.com>.
13699 * util/grub.d/30_os-prober.in: Cope with Linux entries where
13700 root and /boot are on different devices.
13702 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
13704 Fix build for srcdir != objdir.
13706 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
13707 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
13709 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
13710 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
13711 reference for input.
13713 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
13715 * util/grub-mkrescue.in: Use source directory direcly (without copiing
13716 or hardlinking it). Remove -J option, Joliet is not compatible with
13717 multiple source directories.
13719 2009-11-21 Carles Pina i Estany <carles@pina.cat>
13720 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
13722 * util/grub-mkrescue.in: Recognize `--override-directory' option.
13723 (process_input_dir): New function. Process an arbitrary input
13725 Misc adjustments to support both "override mode" and system-wide mode.
13727 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
13729 * configure.ac (UNIFONT_BDF): Rename to ...
13730 (FONT_SOURCE): ... this. Update all users.
13732 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
13734 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
13735 to the list of unifont files to look for.
13737 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
13739 Patch from Joe Auricchio <jauricchio@gmail.com>
13740 * commands/minicmd.c (grub_mini_cmd_clear): New function.
13741 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
13742 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
13744 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
13746 * Makefile.in (install-local): Add a missing backslash.
13748 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
13750 * include/grub/x86_64/io.h: New file.
13752 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
13754 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
13755 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
13756 Include `"progname.h"'.
13757 (main): Initialize gettext.
13758 * util/i386/pc/grub-setup.c: Gettexttize.
13759 * util/i386/pc/grub-mkimage.c: Likewise.
13761 * Makefile.in (po/*.po): Redefine as ...
13762 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
13764 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
13766 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
13768 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
13769 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
13770 (program_name): Remove.
13771 (main): Initialize gettext support.
13772 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
13773 Include `<libintl.h>'.
13776 * util/mkisofs/eltorito.c: Gettexttize.
13777 * util/mkisofs/joliet.c: Likewise.
13778 * util/mkisofs/mkisofs.c: Likewise.
13779 * util/mkisofs/multi.c: Likewise.
13780 * util/mkisofs/rock.c: Likewise.
13781 * util/mkisofs/tree.c: Likewise.
13782 * util/mkisofs/write.c: Likewise.
13784 * po/POTFILES: Update with new files.
13786 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
13788 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
13789 * util/mkisofs/iso9660.h: Likewise.
13790 * util/mkisofs/joliet.c: Likewise.
13791 * util/mkisofs/mkisofs.c: Likewise.
13792 * util/mkisofs/mkisofs.h: Likewise.
13793 * util/mkisofs/rock.c: Likewise.
13794 * util/mkisofs/tree.c: Likewise.
13795 * util/mkisofs/write.c: Likewise.
13797 * util/mkisofs/eltorito.c (rcsid): Remove.
13798 * util/mkisofs/hash.c: Likewise.
13799 * util/mkisofs/joliet.c: Likewise.
13800 * util/mkisofs/name.c: Likewise.
13801 * util/mkisofs/rock.c: Likewise.
13802 * util/mkisofs/tree.c: Likewise.
13803 * util/mkisofs/write.c: Likewise.
13805 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
13807 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
13808 instead of static allocation.
13809 * util/mkisofs/match.h: Likewise.
13811 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
13813 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
13814 and `util/grub.d/10_linux.in'.
13815 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
13816 translatable Shell files.
13818 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
13820 * Makefile.in ($(srcdir)/aclocal.m4): New target.
13822 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13824 * INSTALL: Document Automake is needed for bootstrap.
13825 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
13826 * util/grub.d/10_kfreebsd.in (bindir): New variable.
13827 Add gettext initialization.
13828 (kfreebsd_entry): Make menuentry output translatable.
13830 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13832 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
13833 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
13834 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
13835 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
13836 (LINGUAS): Auto-generate using `po/LINGUAS'.
13837 * po/LINGUAS: New file.
13839 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13841 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
13843 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
13844 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
13845 bindtextdomain() calls for gettext initialization.
13847 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13849 * gnulib/progname.c: New file (imported from Gnulib).
13850 * gnulib/progname.h: Likewise.
13851 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
13852 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
13853 (usage): Replace `progname' with `program_name'.
13854 (main): Use set_program_name() for program name initialization.
13856 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13858 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
13860 * Makefile.in (CPPFLAGS): ... to here.
13862 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13864 * aclocal.m4: Move from here ...
13865 * acinclude.m4: ... to here.
13866 * autogen.sh: Add call to `aclocal'.
13867 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
13869 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13871 * Makefile.in (CLEANFILES): Add `po/*.mo'.
13872 (LINGUAS): New variable.
13873 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
13874 (install-local): Install MO files.
13875 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
13876 * include/grub/i18n.h: New file.
13877 * po/POTFILES: New file.
13878 * po/ca.po: New file.
13879 * util/grub.d/10_linux.in (bindir): New variable.
13880 Add gettext initialization.
13881 (linux_entry): Make menuentry output translatable.
13882 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
13883 (usage): Make --help output translatable.
13884 (main): Initialize gettext.
13886 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13888 * import_gcry.py: New file (written by Vladimir with minor
13890 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
13892 * INSTALL: Document that Python is required for bootstrap.
13894 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
13896 Import ciphers from libgcrypt 1.4.4.
13898 * lib/libgcrypt/cipher/ChangeLog
13899 * lib/libgcrypt/cipher/ac.c
13900 * lib/libgcrypt/cipher/arcfour.c
13901 * lib/libgcrypt/cipher/bithelp.h
13902 * lib/libgcrypt/cipher/blowfish.c
13903 * lib/libgcrypt/cipher/camellia-glue.c
13904 * lib/libgcrypt/cipher/camellia.c
13905 * lib/libgcrypt/cipher/camellia.h
13906 * lib/libgcrypt/cipher/cast5.c
13907 * lib/libgcrypt/cipher/cipher.c
13908 * lib/libgcrypt/cipher/crc.c
13909 * lib/libgcrypt/cipher/des.c
13910 * lib/libgcrypt/cipher/dsa.c
13911 * lib/libgcrypt/cipher/ecc.c
13912 * lib/libgcrypt/cipher/elgamal.c
13913 * lib/libgcrypt/cipher/hash-common.c
13914 * lib/libgcrypt/cipher/hash-common.h
13915 * lib/libgcrypt/cipher/hmac-tests.c
13916 * lib/libgcrypt/cipher/md.c
13917 * lib/libgcrypt/cipher/md4.c
13918 * lib/libgcrypt/cipher/md5.c
13919 * lib/libgcrypt/cipher/primegen.c
13920 * lib/libgcrypt/cipher/pubkey.c
13921 * lib/libgcrypt/cipher/rfc2268.c
13922 * lib/libgcrypt/cipher/rijndael-tables.h
13923 * lib/libgcrypt/cipher/rijndael.c
13924 * lib/libgcrypt/cipher/rmd.h
13925 * lib/libgcrypt/cipher/rmd160.c
13926 * lib/libgcrypt/cipher/rsa.c
13927 * lib/libgcrypt/cipher/seed.c
13928 * lib/libgcrypt/cipher/serpent.c
13929 * lib/libgcrypt/cipher/sha1.c
13930 * lib/libgcrypt/cipher/sha256.c
13931 * lib/libgcrypt/cipher/sha512.c
13932 * lib/libgcrypt/cipher/tiger.c
13933 * lib/libgcrypt/cipher/twofish.c
13934 * lib/libgcrypt/cipher/whirlpool.c
13936 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13938 Fix build for systems without error().
13940 * gnulib/error.c: New file (imported from Gnulib).
13941 * gnulib/error.h: Likewise.
13942 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
13943 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
13944 (this variable is now used by error()).
13946 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
13948 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
13949 instead of relying that char is signed.
13951 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
13953 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
13954 blocksize different from specified.
13955 (grub_pxefs_read): Likewise.
13957 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
13959 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
13961 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
13962 (grub_ata_readwrite): Likewise. Update 2 format strings.
13963 (grub_atapi_read): Likewise.
13965 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
13966 * conf/i386.rmk (pkglib_MODULES): ... to here ...
13967 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
13968 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
13969 (ata_mod_LDFLAGS): Move from here ...
13970 * conf/i386.rmk: ... to here ...
13971 * conf/x86_64-efi.rmk: ... and here.
13972 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
13973 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
13975 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
13977 Relicense multiboot.h, with RMS' blessing.
13979 * include/multiboot.h: Change to X11 license.
13981 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
13983 Support --version in grub-mkisofs.
13985 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
13986 (OPTION_VERSION): New macro.
13987 (ld_options): Recognize --version.
13988 (usage): Move `program_name' from here ...
13989 (program_name): ... to here. Add `static' qualifier.
13990 (main): Recognize `OPTION_VERSION'.
13992 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
13994 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
13995 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
13997 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
13999 Fix help2man generation for mkisofs.
14001 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
14002 (usage): Send output to stdout (rather than stderr).
14004 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
14006 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
14007 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
14008 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
14009 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
14010 (bin_SCRIPTS): Add `grub-mkfloppy'.
14011 (grub_mkfloppy_SOURCES): New variable.
14013 * util/grub-mkrescue.in: New file.
14014 * util/i386/pc/grub-mkfloppy.in: New file.
14016 * util/i386/coreboot/grub-mkrescue.in: Remove.
14017 * util/i386/pc/grub-mkrescue.in: Remove.
14019 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
14021 * include/grub/multiboot.h (struct grub_multiboot_header): Move
14023 * include/multiboot.h (struct multiboot_header): ... to here. Update
14025 * include/grub/multiboot.h (struct grub_multiboot_info): Move
14027 * include/multiboot.h (struct multiboot_info): ... to here. Update
14029 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
14031 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
14033 * include/grub/multiboot.h (struct grub_mod_list): Move
14035 * include/multiboot.h (struct multiboot_mod_list): ... to here.
14038 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
14040 * include/multiboot2.h (multiboot_word): Rename from this ...
14041 (multiboot2_word): ... to this. Update all users.
14042 (multiboot_header): Rename from this ...
14043 (multiboot2_header): ... to this. Update all users.
14044 (multiboot_tag_header): Rename from this ...
14045 (multiboot2_tag_header): ... to this. Update all users.
14046 (multiboot_tag_start): Rename from this ...
14047 (multiboot2_tag_start): ... to this. Update all users.
14048 (multiboot_tag_name): Rename from this ...
14049 (multiboot2_tag_name): ... to this. Update all users.
14050 (multiboot_tag_module): Rename from this ...
14051 (multiboot2_tag_module): ... to this. Update all users.
14052 (multiboot_tag_memory): Rename from this ...
14053 (multiboot2_tag_memory): ... to this. Update all users.
14054 (multiboot_tag_unused): Rename from this ...
14055 (multiboot2_tag_unused): ... to this. Update all users.
14056 (multiboot_tag_end): Rename from this ...
14057 (multiboot2_tag_end): ... to this. Update all users.
14059 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
14061 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
14062 this platform we should support Multiboot1 first.
14064 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
14065 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
14066 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
14068 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
14070 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
14071 of write calls (converting them to fwrite() if they aren't already).
14072 (get_torito_desc): Likewise.
14073 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
14075 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
14077 * util/i386/pc/grub-install.in: Move from here ...
14078 * util/grub-install.in: ... to here. Update all users.
14080 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
14082 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
14084 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
14086 Support for El Torito without floppy emulation.
14088 * util/mkisofs/eltorito.c: Include `<errno.h>'.
14089 (init_boot_catalog): Improve error handling.
14090 (get_torito_desc): Don't use floppy emulation unless requested by
14091 user. Patch boot information table when requested via
14092 `-boot-info-table'.
14093 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
14094 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
14095 (use_boot_info_table): New variables.
14096 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
14097 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
14098 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
14099 `--eltorito-emul-floppy'.
14100 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
14101 and `OPTION_ELTORITO_EMUL_FLOPPY'.
14102 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
14103 (use_boot_info_table, get_731): New prototypes.
14104 * util/mkisofs/write.c (get_731): New function.
14106 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
14108 Fix the generation of the man page.
14110 * util/pc/i386/grub-install.in: Source
14111 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
14113 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
14115 Large file support for grub-mkisofs.
14117 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
14118 * util/mkisofs/mkisofs.c (next_extent, last_extent)
14119 (session_start): Upgrade type to `uint64_t'. Update all users.
14120 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
14121 (struct directory_entry): Upgrade type of `starting_block' and
14122 `size' to `uint64_t'. Update all users.
14123 (struct deferred): Remove unused structure.
14124 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
14126 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
14127 file is larger than `UINT32_MAX'.
14128 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
14129 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
14131 (struct deferred_write): Upgrade type of `extent' and `size' to
14132 `uint64_t'. Update all users.
14133 (last_extent_written): Upgrade type to `uint64_t'. Update all
14135 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
14136 Update all users. Upgrade type of `remain' to `int64_t' and
14137 `use' to `size_t'. Use error() to handle fread() errors.
14138 (write_files): Rely on write_one_file() rather than calling
14139 xfwrite() directly.
14141 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
14143 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
14145 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14147 * util/mkisofs/fnmatch.c: Remove.
14148 * util/mkisofs/getopt1.c: Likewise.
14149 * util/mkisofs/getopt.c: Likewise.
14150 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
14151 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
14152 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
14153 `gnulib/getopt1.c' and `gnulib/getopt.c'.
14154 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
14156 * configure.ac: Detect `mingw32msvc' host_os.
14157 Check for lstat(), getuid() and getgid().
14159 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
14160 instances of `u_char' with `uint8_t'.
14162 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
14163 [!HAVE_GETUID] (getuid): New function (stub).
14164 [!HAVE_GETGID] (getgid): Likewise.
14165 [!HAVE_LSTAT] (lstat): Likewise.
14166 [!S_IROTH] (S_IROTH): New macro (dummy).
14167 [!S_IRGRP] (S_IRGRP): Likewise.
14169 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14171 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
14172 conditional expression).
14174 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14176 Import from Gnulib.
14178 * gnulib/fnmatch.c: New file.
14179 * gnulib/fnmatch.h: Likewise.
14180 * gnulib/fnmatch_loop.c: Likewise.
14181 * gnulib/getopt.c: Likewise.
14182 * gnulib/getopt.h: Likewise.
14183 * gnulib/getopt1.c: Likewise.
14184 * gnulib/getopt_int.h: Likewise.
14185 * gnulib/gettext.h: Likewise.
14187 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14189 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
14190 * normal/handler.c (read_handler_list): Likewise.
14192 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14196 * kern/command.c (grub_register_command_prio): Use
14197 grub_zalloc() instead of explicitly zeroing data.
14198 * kern/list.c: Include `<grub/mm.h>'.
14199 (grub_named_list_find): Replace `0' with `NULL'.
14200 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
14201 (fs_module_list): Change type to `grub_named_list_t'. Update all
14203 * normal/dyncmd.c (read_command_list): Add space between function
14204 call and parenthesis.
14205 * normal/handler.c (read_handler_list): Likewise.
14207 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14209 * normal/auth.c (punishment_delay): Moved from here ...
14210 (grub_auth_strcmp): ... to here (inside function).
14212 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14214 * include/grub/list.h (struct grub_named_list): Remove `const'
14215 qualifier from `name'.
14216 (struct grub_prio_list): Likewise.
14218 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14220 * normal/auth.c: Include `<grub/time.h>'.
14221 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
14223 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14225 * normal/auth.c (punishment_delay): New variable.
14226 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
14227 (grub_auth_check_authentication): Punish failed login attempts with
14228 an incremental (2^N) delay.
14230 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14232 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
14233 path with $(srcdir).
14235 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
14237 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
14239 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
14241 * util/i386/coreboot/grub-mkrescue.in: New file.
14242 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
14245 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
14246 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
14247 * configure.ac: Add header and function checks to satisfy grub-mkisofs
14249 * util/mkisofs/defaults.h: New file.
14250 * util/mkisofs/eltorito.c: Likewise.
14251 * util/mkisofs/exclude.h: Likewise.
14252 * util/mkisofs/fnmatch.c: Likewise.
14253 * util/mkisofs/getopt.c: Likewise.
14254 * util/mkisofs/getopt1.c: Likewise.
14255 * util/mkisofs/hash.c: Likewise.
14256 * util/mkisofs/include/fctldefs.h: Likewise.
14257 * util/mkisofs/include/mconfig.h: Likewise.
14258 * util/mkisofs/include/prototyp.h: Likewise.
14259 * util/mkisofs/include/statdefs.h: Likewise.
14260 * util/mkisofs/iso9660.h: Likewise.
14261 * util/mkisofs/joliet.c: Likewise.
14262 * util/mkisofs/match.c: Likewise.
14263 * util/mkisofs/match.h: Likewise.
14264 * util/mkisofs/mkisofs.c: Likewise.
14265 * util/mkisofs/mkisofs.h: Likewise.
14266 * util/mkisofs/multi.c: Likewise.
14267 * util/mkisofs/name.c: Likewise.
14268 * util/mkisofs/rock.c: Likewise.
14269 * util/mkisofs/tree.c: Likewise.
14270 * util/mkisofs/write.c: Likewise.
14272 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
14274 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
14277 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
14279 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
14280 `grub-mkimage' (and use $0 when possible).
14282 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
14284 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
14285 error message for excessively large memory map.
14287 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
14289 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
14292 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
14294 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
14295 message for coreboot users.
14297 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
14299 Fix build with GNU gold.
14301 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
14302 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
14303 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
14305 * aclocal.m4: Likewise.
14307 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
14309 * configure.ac (AC_PREREQ): Bump to 2.59d.
14310 * INSTALL: Make it more clear when Autoconf and Ruby are
14311 needed and when to run `./autogen.sh'.
14313 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
14315 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
14318 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14320 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
14322 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14324 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
14325 giving it to GNU Mach.
14327 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14329 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
14330 GNU partition number to get internal GRUB partition number.
14332 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
14334 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
14335 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
14337 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
14339 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
14340 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
14343 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
14345 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
14347 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
14351 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
14352 `-isystem=$(srcdir)/include'.
14354 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
14356 * util/i386/pc/grub-install.in: Remove hint that device.map should be
14357 checked (grub-install doesn't currently rely on it).
14359 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
14363 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
14364 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
14365 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
14366 * conf/i386-ieee1275.rmk: Likewise.
14367 * conf/i386-pc.rmk: Likewise.
14368 * conf/powerpc-ieee1275.rmk: Likewise.
14369 * conf/sparc64-ieee1275.rmk: Likewise.
14370 * conf/x86_64-efi.rmk: Likewise.
14372 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
14374 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
14376 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
14378 * include/grub/misc.h: Stop checking for APPLE_CC.
14380 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
14382 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
14383 doesn't cause an infinite call loop.
14385 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
14387 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
14390 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14392 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
14394 * Makefile.in: Likewise.
14396 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14398 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
14400 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14402 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
14404 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14406 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
14408 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14410 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
14412 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
14414 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14416 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
14417 in $(MAKEINFO) invocation. This makes it clear in output that
14418 errors are being ignored.
14420 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14422 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
14424 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
14425 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
14426 * conf/i386-ieee1275.rmk: Likewise.
14427 * conf/i386-pc.rmk: Likewise.
14428 * conf/powerpc-ieee1275.rmk: Likewise.
14429 * conf/sparc64-ieee1275.rmk: Likewise.
14430 * conf/x86_64-efi.rmk: Likewise.
14432 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
14434 * util/grub-editenv.c (main): If only a command is given, use
14435 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
14436 (usage): FILENAME is now optional and has a default.
14438 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
14440 Improve grub-mkconfig performance when there are several menu
14441 entries on a single filesystem.
14443 * util/grub.d/10_linux.in (linux_entry): Cache the output of
14444 prepare_grub_to_access_device.
14445 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
14446 * util/grub.d/30_os-prober.in: Likewise.
14448 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14450 * util/grub.d/10_freebsd.in: Remove.
14451 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
14452 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
14454 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
14456 * docs/grub.cfg: Fix example usage of *BSD loaders.
14458 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14460 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
14461 grub_util_error() call.
14463 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14465 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
14466 `reserved_first_sector' member.
14467 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
14468 `reserved_first_sector' to 1.
14469 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
14470 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
14471 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
14472 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
14473 filesystems which begin at first sector.
14474 (options): New option --skip-fs-probe.
14475 (main): Handle --skip-fs-probe and pass it to setup().
14477 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14479 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
14480 (memset): Fix function prototype.
14482 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14483 2009-10-25 Vasily Averin <vvs@parallels.com>
14485 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
14486 `dirent.direntlen == 0'.
14488 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14490 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
14492 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
14494 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14496 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
14497 `__trampoline_setup' and `__ucmpdi2'.
14498 * include/grub/powerpc/libgcc.h: Only export symbols for functions
14499 that libgcc provides.
14501 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14503 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
14504 * include/grub/sparc64/libgcc.h (memset): Likewise.
14505 * include/grub/misc.h (memset, memcmp): New function prototypes.
14507 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14509 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
14511 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
14513 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
14515 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
14516 * docs/grub.cfg: Compensate for recent change in multiboot
14517 loader (since 2009-08-14 it won't pass filename to payload).
14518 * util/grub.d/10_hurd.in: Likewise.
14520 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
14522 * config.guess: Update to latest version from config git
14524 * config.sub: Likewise.
14526 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
14528 Fix build on sparc64.
14530 * configure.ac: Perform checks for libgcc symbols before
14531 adding `-nostdlib' to LDFLAGS.
14533 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14535 Let user specify OpenBSD root device.
14537 * loader/i386/bsd.c (openbsd_root): New variable.
14538 (openbsd_opts): New option 'root'.
14539 (OPENBSD_ROOT_ARG): New macro.
14540 (grub_openbsd_boot): Use 'openbsd_root'.
14541 (grub_cmd_openbsd): Fill 'openbsd_root'.
14543 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
14545 * NEWS: Misc adjustments.
14547 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
14549 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
14551 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
14553 * configure.ac: Bump version to 1.97.
14555 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
14557 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
14558 -mno-3dnow on x86 architectures. Some toolchains enable these
14559 features by default, but they rely on registers that aren't enabled
14560 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
14562 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
14564 Make entry text a bit more readable.
14566 * util/grub.d/10_linux.in: Add `with' before `Linux'.
14568 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
14570 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
14572 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
14574 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
14577 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
14579 * configure.ac: Add missing dollar.
14581 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
14583 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
14585 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
14586 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
14588 * include/grub/sparc64/libgcc.h: Likewise. Use
14589 preprocessor conditionals.
14591 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
14593 * conf/common.rmk (grub-dumpbios): Remove rule.
14594 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
14595 * util/grub-dumpbios.in: Remove file.
14597 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
14599 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
14600 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
14602 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
14603 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
14606 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
14607 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
14608 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
14609 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
14612 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
14614 * term/tparm.c: Switch to GPLv3.
14616 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
14618 * include/grub/i386/cpuid.h: Add header protection.
14620 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
14622 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
14624 * include/grub/i386/cpuid.h: New file.
14625 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
14626 (has_longmode): Rename to ...
14627 (grub_cpuid_has_longmode): ... this. Update all users. Remove
14628 `static' attribute.
14629 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
14630 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
14631 on a CPU that doesn't implement AMD64 instruction set.
14633 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
14635 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
14636 that version.texi is rebuilt on version number changes.
14638 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
14640 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
14643 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
14645 * util/i386/pc/grub-install.in: Source
14646 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
14647 that the --grub-probe option will work.
14648 * util/sparc64/ieee1275/grub-install.in: Likewise.
14650 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
14652 * configure.ac: Bump version to 1.97~beta4.
14654 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
14656 Resync grub-mkdevicemap in x86_64-efi.
14658 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
14659 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
14660 `util/devicemap.c'.
14662 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
14664 * util/grub-editenv.c (create_envblk_file): Write new block with a
14665 .new suffix and then rename it into place, to ensure atomic
14668 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
14670 Do not automatically install headers.
14672 * Makefile.in (include_DATA): Remove. Update all users.
14674 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
14676 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
14677 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
14679 * util/osdetect.lua: Remove.
14680 * script/lua/lauxlib.c: Likewise.
14681 * script/lua/ldebug.c: Likewise.
14682 * script/lua/grub_main.c: Likewise.
14683 * script/lua/lauxlib.h: Likewise.
14684 * script/lua/ldebug.h: Likewise.
14685 * script/lua/ltablib.c: Likewise.
14686 * script/lua/liolib.c: Likewise.
14687 * script/lua/lstrlib.c: Likewise.
14688 * script/lua/lualib.h: Likewise.
14689 * script/lua/ldo.c: Likewise.
14690 * script/lua/ldump.c: Likewise.
14691 * script/lua/ldo.h: Likewise.
14692 * script/lua/loslib.c: Likewise.
14693 * script/lua/lundump.c: Likewise.
14694 * script/lua/grub_lib.c: Likewise.
14695 * script/lua/ldblib.c: Likewise.
14696 * script/lua/lundump.h: Likewise.
14697 * script/lua/lmem.c: Likewise.
14698 * script/lua/grub_lib.h: Likewise.
14699 * script/lua/lmathlib.c: Likewise.
14700 * script/lua/lstate.c: Likewise.
14701 * script/lua/ltm.c: Likewise.
14702 * script/lua/lvm.c: Likewise.
14703 * script/lua/lmem.h: Likewise.
14704 * script/lua/lstate.h: Likewise.
14705 * script/lua/ltm.h: Likewise.
14706 * script/lua/ltable.c: Likewise.
14707 * script/lua/lvm.h: Likewise.
14708 * script/lua/llex.c: Likewise.
14709 * script/lua/lgc.c: Likewise.
14710 * script/lua/grub_lua.h: Likewise.
14711 * script/lua/loadlib.c: Likewise.
14712 * script/lua/lfunc.c: Likewise.
14713 * script/lua/lopcodes.c: Likewise.
14714 * script/lua/lparser.c: Likewise.
14715 * script/lua/ltable.h: Likewise.
14716 * script/lua/llex.h: Likewise.
14717 * script/lua/lgc.h: Likewise.
14718 * script/lua/lfunc.h: Likewise.
14719 * script/lua/lbaselib.c: Likewise.
14720 * script/lua/lopcodes.h: Likewise.
14721 * script/lua/lparser.h: Likewise.
14722 * script/lua/lzio.c: Likewise.
14723 * script/lua/linit.c: Likewise.
14724 * script/lua/lobject.c: Likewise.
14725 * script/lua/llimits.h: Likewise.
14726 * script/lua/lstring.c: Likewise.
14727 * script/lua/lzio.h: Likewise.
14728 * script/lua/lapi.c: Likewise.
14729 * script/lua/lcode.c: Likewise.
14730 * script/lua/lua.h: Likewise.
14731 * script/lua/lobject.h: Likewise.
14732 * script/lua/lstring.h: Likewise.
14733 * script/lua/lapi.h: Likewise.
14734 * script/lua/lcode.h: Likewise.
14735 * script/lua/luaconf.h: Likewise.
14737 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
14739 * docs/grub.texi (Command-line and menu entry commands): Document
14740 date and echo commands.
14742 2009-09-24 Pavel Roskin <proski@gnu.org>
14744 * include/grub/kernel.h (struct grub_module_header): Remove
14745 `grub_module_header_types'. Make `type' unsigned. Make `size'
14746 32-bit on all platforms.
14747 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
14748 8-bit field. Use grub_host_to_target32() for `size'.
14749 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
14750 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
14751 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
14753 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
14755 Fix "lost keypress" bug in at_keyboard.
14757 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
14758 Checks for readyness of input buffer (without flushing it).
14759 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
14760 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
14762 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
14764 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
14765 size check within GRUB_MACHINE_PCBIOS section.
14767 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
14769 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
14771 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
14772 KEYBOARD_ISREADY check.
14773 (grub_at_keyboard_checkkey): Rename to ...
14774 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
14775 Remove gratuitous cast.
14777 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
14779 * configure.ac: Call AC_PROG_MKDIR_P.
14780 * Makefile.in (docs/stamp-vti): Create docs directory. Create
14781 version.texi in $(builddir) rather than $(srcdir).
14782 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
14783 to makeinfo's @include search path.
14785 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
14787 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
14789 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
14791 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
14794 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
14796 Build info documentation. Some code borrowed from Automake.
14798 * configure.ac: Check for makeinfo.
14799 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
14800 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
14802 (MOSTLYCLEANFILES): Add vti.tmp.
14803 (docs/version.texi, docs/stamp-vti): Update automatically.
14804 (docs/grub.info): Build info documentation. Use --force and ignore
14806 (all-local): Add $(INFOS).
14807 (install-local): Install info files.
14808 (uninstall): Uninstall info files.
14809 * docs/version.texi: Remove from revision control. This file is
14810 automatically generated on build now.
14811 * gendistlist.sh: Add `*.info'.
14813 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
14815 * kern/term.c: Fix indentation.
14817 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
14819 * util/hostdisk.c: Fix a comment.
14821 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
14823 Fix regression introduced in r2539.
14825 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
14828 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
14830 * util/grub.d/30_os-prober.in: Don't throw away stderr from
14831 os-prober. Under normal operation, it does not print anything to
14832 stderr; if it does, we need to debug it, and throwing away stderr
14833 makes that excessively difficult.
14835 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
14837 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
14839 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
14841 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
14842 AC_LANG_PROGRAM from autoconf.
14843 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
14844 prototypes (fixes warning).
14846 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
14847 `--disable-werror' was used.
14849 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
14851 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
14852 uninitialized `lastaddr'.
14854 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
14856 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
14858 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
14860 * commands/test.c (get_fileinfo): Return immediately if
14861 grub_fs_probe fails.
14863 2009-09-14 José Martínez <xosemp@gmail.com>
14865 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
14867 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
14869 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
14872 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
14874 * configure.ac: Remove --enable-grub-pe2elf. Only build
14875 grub-pe2elf when needed by the build system itself.
14876 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
14878 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
14880 * configure.ac: Bump version to 1.97~beta3.
14881 * docs/version.texi: Likewise.
14883 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
14885 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
14886 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
14888 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
14889 (grub_linux_setup_video): ... to here (with some adjustments).
14891 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
14893 Fix memory corruption issue (spotted by Colin Watson).
14895 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
14896 causing returned size to be stored in an incorrect memory location.
14897 Fix use of uninitialized value when storing the returned size.
14899 2009-09-12 Yves Blusseau <blusseau@zetam.org>
14901 Change clean rules to properly remove files
14903 * genmk.rb: add new clean rules
14904 * Makefile.in (clean): add the new targets
14905 (mostlyclean): likewise
14907 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
14909 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
14911 * fs/ntfs.c (init_file): Understand 64-bit sizes for
14912 non-resident files.
14914 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
14916 * configure.ac: Don't look for help2man when cross-compiling. Fixes
14917 part of bug #27349.
14919 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
14921 * util/grub-mkconfig.in: Make the created config mode 400 and
14922 print a warning if it fails.
14924 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
14926 * util/grub.d/40_custom.in: Ask user to type custom entries below
14927 comment, rather than below 'exec tail' line.
14929 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
14931 * util/grub.d/40_custom.in: Make sure that the explanatory text is
14932 visible in grub.cfg.
14934 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
14936 * util/grub.d/40_custom.in: Make it a little clearer how to use this
14939 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
14941 * docs/grub.cfg: Add an example menu entry for memtest86+.
14943 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
14945 * config.guess: Update to latest version from config git.
14946 * config.sub: Likewise.
14948 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
14950 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
14951 unknown-command case. Fixes bug #27320.
14953 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
14955 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
14956 `help' if the command exists.
14958 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
14960 * INSTALL: Require GCC 4.1.3 or later.
14962 2009-09-06 Yves Blusseau <blusseau@zetam.org>
14964 * Makefile.in (RMKFILES): add i386-qemu.rmk
14965 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
14966 $(srcdir)/stamp-h.in
14968 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
14970 * util/grub-probe.c (probe): Comment out buggy codepath, which
14971 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
14972 should be re-enabled after 1.97.
14974 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
14976 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
14979 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
14981 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
14982 unnecessary calls to grub_error.
14984 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
14986 * NEWS: Mention `keystatus' and Unicode fonts.
14988 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
14990 * configure.ac: Bump version to 1.97~beta2.
14991 * docs/version.texi: Likewise.
14993 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
14995 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
14996 containing unwind information in some cases where it previously did
14997 not. Use -fno-dwarf2-cfi-asm if available to restore the old
14998 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
15001 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
15003 Embedding loadenv module into grub-emu
15005 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
15007 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
15008 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
15009 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
15010 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
15011 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
15012 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
15014 2009-09-03 Magnus Granberg <zorry@ume.nu>
15016 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
15017 include -fPIE in the default specs.
15018 * configure.ac: Check if pie_possible is yes and add -fno-PIE
15021 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
15023 * INSTALL: Note that GNU Bison 2.3 or later is required.
15025 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
15027 * kern/i386/pc/startup.S: Fix typo.
15029 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
15031 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
15034 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
15036 * docs/grub.texi (Naming convention): Describe one-based partition
15038 (Device syntax): Likewise.
15039 (File name syntax): Likewise.
15040 (Block list syntax): Likewise.
15041 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
15043 (File name syntax): Likewise.
15044 (Command-line and menu entry commands): Document acpi, blocklist,
15045 crc, export, insmod, keystatus, ls, set, and unset commands.
15047 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
15049 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
15050 to avoid implying that only one of --shift, --ctrl, or --alt may be
15053 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
15055 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
15056 rather than comparing against S_IFREG, which will almost never work.
15058 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
15060 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
15061 (write_blocklists): Likewise.
15063 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
15065 * script/lua/grub_lua.h (fputs): Supply a format string as the first
15066 argument to grub_printf.
15068 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
15070 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
15073 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
15075 * kern/file.c (grub_file_read): Spelling fix
15077 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
15079 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
15080 loading of headers in some cases.
15082 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
15084 * configure.ac: Bump version to 1.97~beta1.
15085 * docs/version.texi: Likewise.
15087 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
15089 * include/grub/i386/xnu.h: Add license header.
15090 include grub/err.h explicitly.
15092 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
15094 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
15095 to `ufs' in the vfs.root.mountfrom kernel parameter.
15097 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
15099 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
15101 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
15102 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
15104 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
15105 `ARRAY_SIZE' macro.
15107 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
15109 * kern/file.c (grub_file_read): Check offset.
15110 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
15111 * fs/jfs.c (grub_jfs_read_file): Likewise.
15112 * fs/ntfs.c (grub_ntfs_read): Likewise.
15113 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
15114 * fs/minix.c (grub_minix_read_file): Correct offset check.
15115 * fs/ufs.c (grub_ufs_read_file): Likewise.
15117 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
15119 * term/i386/pc/console.c (bios_data_area): Cast
15120 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
15122 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
15124 1-bit optimised blitters.
15126 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
15128 (grub_video_fbblit_replace_24bit_1bit): Likewise.
15129 (grub_video_fbblit_replace_16bit_1bit): Likewise.
15130 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15131 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15132 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
15133 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
15134 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
15136 (grub_video_fbblit_replace_24bit_1bit): Likewise.
15137 (grub_video_fbblit_replace_16bit_1bit): Likewise.
15138 (grub_video_fbblit_replace_8bit_1bit): Likewise.
15139 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
15140 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
15141 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
15142 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
15144 * video/video.c (grub_video_get_blit_format): Return
15145 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
15147 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
15149 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
15150 the first argument to grub_printf.
15152 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
15153 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
15155 Add `getkeystatus' terminal method. Add a new `keystatus' command
15158 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
15159 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
15160 modifier key bitmasks.
15161 (struct grub_term_input): Add `getkeystatus' member.
15162 (grub_getkeystatus): Add prototype.
15163 * kern/term.c (grub_getkeystatus): New function.
15165 * include/grub/i386/pc/memory.h
15166 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
15167 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
15169 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
15170 (grub_console_term_input): Set `getkeystatus' member.
15171 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
15173 (grub_usb_keyboard_getreport): Likewise.
15174 (grub_usb_keyboard_checkkey): Likewise.
15175 (grub_usb_keyboard_getkeystatus): New function.
15176 (grub_usb_keyboard_term): Set `getkeystatus' member.
15178 * commands/keystatus.c: New file.
15179 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
15180 (keystatus_mod_SOURCES): New variable.
15181 (keystatus_mod_CFLAGS): Likewise.
15182 (keystatus_mod_LDFLAGS): Likewise.
15183 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
15184 commands/keystatus.c.
15185 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15186 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15187 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15188 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15189 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15190 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15192 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
15194 Split befs.mod and afs.mod into *_be.mod and *.mod
15196 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
15197 (grub_fstest_SOURCES): Likewise.
15198 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
15199 (afs_be_mod_SOURCES): New variable.
15200 (afs_be_mod_CFLAGS): Likewise.
15201 (afs_be_mod_LDFLAGS): Likewise.
15202 (befs_be_mod_SOURCES): Likewise.
15203 (befs_be_mod_CFLAGS): Likewise.
15204 (befs_be_mod_LDFLAGS): Likewise.
15205 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
15206 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15207 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15208 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
15209 (grub_emu_SOURCES): Likewise.
15210 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15211 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15212 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15213 * fs/afs_be.c: New file.
15214 * fs/befs_be.c: New file.
15215 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
15216 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
15217 (U16): Replaced with ...
15218 (grub_afs_to_cpu16): ...this. All users updated.
15219 (U32): Replaced with ...
15220 (grub_afs_to_cpu32): ...this. All users updated.
15221 (U64): Replaced with ...
15222 (grub_afs_to_cpu64): ...this. All users updated.
15223 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
15224 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
15225 (grub_afs_validate_sblock): Check only one endianness.
15226 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
15227 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
15228 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
15229 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
15230 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
15231 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
15232 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
15233 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
15235 2009-08-26 Bean <bean123ch@gmail.com>
15237 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
15239 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
15240 (grub_xfs_inode_block): Change return type to grub_uint64_t.
15241 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
15243 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15245 NetBSD memory map support.
15247 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
15248 (grub_netbsd_btinfo_mmap_header): New structure.
15249 (grub_netbsd_btinfo_mmap_entry): Likewise.
15250 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
15252 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15254 Enable bsd.mod on coreboot.
15256 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
15257 (bsd_mod_SOURCES): New variable.
15258 (bsd_mod_CFLAGS): Likewise.
15259 (bsd_mod_LDFLAGS): Likewise.
15260 (bsd_mod_ASFLAGS): Likewise.
15261 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
15262 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
15264 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15266 Cleanup NetBSD root support.
15268 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
15269 grub_bsd_get_device.
15272 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
15274 * util/grub.d/00_header.in: Move check for the video backend of
15275 gfxterm from here ...
15276 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
15277 a suitable video backend.
15279 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15281 Fix breakage in grub-setup.
15283 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
15284 "msdos_partition_map".
15286 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15288 Fix breakage in normal/auth.c.
15290 * normal/auth.c (grub_iswordseparator): New function.
15292 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
15294 Authentication support.
15296 * commands/password.c: New file.
15297 * conf/common.rmk (pkglib_MODULES): Add password.mod.
15298 (password_mod_SOURCES): New variable.
15299 (password_mod_CFLAGS): Likewise.
15300 (password_mod_LDFLAGS): Likewise.
15301 (normal_mod_SOURCES): Add normal/auth.c.
15302 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
15304 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
15305 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15306 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15307 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15308 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15309 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
15310 * include/grub/auth.h: New file.
15311 * include/grub/err.h (grub_err_t): New enum value
15312 GRUB_ERR_ACCESS_DENIED.
15313 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
15315 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
15316 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
15318 * normal/auth.c: New file.
15319 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
15320 (grub_cmdline_run): Don't allow to go to command line without
15322 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
15323 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
15324 menuentry without superuser rights.
15325 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
15326 user isn't a superuser.
15328 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15330 Save space by inlining misc.c functions.
15332 * kern/misc.c (grub_iswordseparator): Made static.
15333 * kern/misc.c (grub_strcat): Moved from here ...
15334 * include/grub/misc.h (grub_strcat): ... here. Inlined.
15335 * kern/misc.c (grub_strncat): Moved from here ...
15336 * include/grub/misc.h (grub_strncat): ... here. Inlined.
15337 * kern/misc.c (grub_strcasecmp): Moved from here ...
15338 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
15339 * kern/misc.c (grub_strncasecmp): Moved from here ...
15340 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
15341 * kern/misc.c (grub_isalpha): Moved from here ...
15342 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
15343 * kern/misc.c (grub_isdigit): Moved from here ...
15344 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
15345 * kern/misc.c (grub_isgraph): Moved from here ...
15346 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
15347 * kern/misc.c (grub_tolower): Moved from here ...
15348 * include/grub/misc.h (grub_tolower): ... here. Inlined.
15350 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15352 * script/sh/function.c (grub_script_function_find): Cut error message
15353 not to flood terminal.
15354 * script/sh/lexer.c (grub_script_yylex): Remove command line length
15356 * script/sh/script.c (grub_script_arg_add): Duplicate string.
15358 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
15360 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
15361 `report' grub_uint8_t *.
15362 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
15363 Use a 50-millisecond timeout rather than just repeating
15364 grub_usb_keyboard_getreport 50 times.
15365 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
15367 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15369 Rename *_partition_map to part_*
15371 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
15372 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
15373 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
15374 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
15376 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
15378 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
15379 * util/grub-probe.c (probe_partmap): Don't transform partition name
15380 to get module name.
15382 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15384 Fix OpenBSD and NetBSD support.
15386 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
15387 memory address conflict.
15388 (OPENBSD_MMAP_ACPI): New definition.
15389 (OPENBSD_MMAP_NVS): Likewise.
15390 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
15391 and OPENBSD_MMAP_NVS.
15392 Add memory map terminator
15393 Explicit cast when calling grub_unix_real_boot.
15394 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
15396 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15398 Let user specify NetBSD root device.
15400 * loader/i386/bsd.c (netbsd_root): New variable.
15401 (netbsd_opts): New option 'root'.
15402 (NETBSD_ROOT_ARG): New macro.
15403 (grub_netbsd_boot): Use 'netbsd_root'.
15404 (grub_bsd_unload): Free 'netbsd_root'.
15405 (grub_cmd_netbsd): Fill 'netbsd_root'.
15407 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15409 Support for 64-bit NetBSD.
15411 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
15412 point when booting non-FreeBSD.
15414 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
15416 Support --no-smp and --no-acpi for NetBSD.
15418 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
15419 (NETBSD_AB_NOACPI): Likewise.
15420 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
15421 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
15423 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15425 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
15427 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
15428 errors. Call grub_error when needed.
15430 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15432 * commands/search.c (search_fs): Try searching without autoload first.
15433 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
15434 filesystem module explicitly for faster booting.
15436 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
15438 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
15440 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
15442 * util/grub.d/30_os-prober.in: Disable os-prober if
15443 `GRUB_DISABLE_OS_PROBER' was set to true.
15445 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
15447 * partmap/pc.c: Rename to ...
15448 * partmap/msdos.c: ... this. Update all users.
15449 (grub_pc_partition_map): Rename to ...
15450 (grub_msdos_partition_map): ... this. Update all users.
15452 * parttool/pcpart.c: Rename to ...
15453 * parttool/msdospart.c: ... this. Update all users.
15455 * include/grub/pc_partition.h: Rename to ...
15456 * include/grub/msdos_partition.h: ... this. Update all users.
15457 (grub_pc_partition_bsd_entry): Rename to ...
15458 (grub_msdos_partition_bsd_entry): ... this. Update all users.
15459 (grub_pc_partition_disk_label): Rename to ...
15460 (grub_msdos_partition_disk_label): ... this. Update all users.
15461 (grub_pc_partition_entry): Rename to ...
15462 (grub_msdos_partition_entry): ... this. Update all users.
15463 (grub_pc_partition_mbr): Rename to ...
15464 (grub_msdos_partition_mbr): ... this. Update all users.
15465 (grub_pc_partition): Rename to ...
15466 (grub_msdos_partition): ... this. Update all users.
15467 (grub_pc_partition_is_empty): Rename to ...
15468 (grub_msdos_partition_is_empty): ... this. Update all users.
15469 (grub_pc_partition_is_extended): Rename to ...
15470 (grub_msdos_partition_is_extended): ... this. Update all users.
15471 (grub_pc_partition_is_bsd): Rename to ...
15472 (grub_msdos_partition_is_bsd): ... this. Update all users.
15474 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
15475 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
15476 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
15477 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
15478 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
15479 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
15480 (gpt_mod_LDFLAGS): Rename to ...
15481 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
15482 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
15483 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
15484 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
15485 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
15486 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
15487 (part_gpt_mod_LDFLAGS): ... this.
15488 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
15489 `pcpart.mod' to `msdospart.mod'.
15490 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
15492 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
15493 (msdospart_mod_LDFLAGS): ... this.
15495 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
15497 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
15498 (openbsd_opts): Likewise.
15499 (netbsd_opts): Likewise.
15500 (freebsd_flags): Added 0 terminator.
15501 (openbsd_flags): Likewise.
15502 (netbsd_flags): Likewise.
15503 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
15504 (grub_cmd_freebsd): Transformed into extended command.
15505 (grub_cmd_openbsd): Likewise.
15506 (grub_cmd_netbsd): Likewise.
15507 (cmd_freebsd): Changed type to grub_extcmd_t.
15508 (cmd_openbsd): Likewise.
15509 (cmd_netbsd): Likewise.
15510 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
15511 grub_cmd_openbsd as extended commands.
15512 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
15513 cmd_netbsd and cmd_openbsd
15515 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
15517 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
15519 2009-08-21 Pavel Roskin <proski@gnu.org>
15521 * Makefile.in (install-local): When checking if a file is in the
15522 build directory, use "test -e" to detect symlinks.
15524 * Makefile.in (install-local): Remove all files in
15525 $(DESTDIR)$(pkglibdir) before installing new files there.
15527 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
15529 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
15532 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
15534 * util/grub-mkconfig.in: Don't use gfxterm by default if not
15535 explicitly specified by the user.
15537 2009-08-18 Pavel Roskin <proski@gnu.org>
15539 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
15540 grub_uint8_t pointer for data.
15541 * include/grub/fbutil.h (struct grub_video_fbblit_info):
15543 * video/fb/fbutil.c: Remove unnecessary casts.
15545 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
15549 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
15550 (grub_vbe_set_video_mode): Save active mode info
15551 only after setting the mode.
15552 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
15555 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
15557 Rename variables for clarity.
15559 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
15560 (active_vbe_mode_info): ... this. All users updated.
15561 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
15563 (initial_mode): Rename to ...
15564 (initial_vbe_mode): ... this. All users updated.
15565 (mode_in_use): Rename to ..
15566 (vbe_mode_in_use): ... this. All users updated.
15567 (mode_list): Rename to ..
15568 (vbe_mode_list): ... this. All users updated.
15569 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
15570 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
15571 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
15572 'mode_list_size' to 'vbe_mode_list_size'.
15573 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
15574 'best_mode_info' to 'best_vbe_mode_info' and
15575 'best_mode' to 'best_vbe_mode'
15577 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
15579 Remove duplicate grub_video_fb_get_video_ptr.
15581 * include/grub/fbutil.h (get_data_ptr): Rename to ...
15582 (grub_video_fb_get_video_ptr): ... this.
15583 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
15584 * video/fb/fbutil.c: Add comment about addressing.
15585 (get_data_ptr): Rename to ...
15586 (grub_video_fb_get_video_ptr): ... this. All users updated.
15587 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
15589 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
15591 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
15592 grub_dprintf() that was just added.
15594 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
15596 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
15597 (DEFAULT_VIDEO_MODE): Remove macros.
15598 (grub_linux_boot): Remove assumption that Linux has FB support,
15599 and use "text" as default video mode.
15601 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
15603 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
15605 * fs/fat.c (grub_fat_read_data): Likewise.
15607 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15609 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
15611 (grub_module): Likewise.
15613 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15615 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
15616 mbi->cmdline but free playground.
15618 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15620 Handle group offset on UFS1.
15622 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
15623 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
15625 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15627 Split ufs.mod into ufs1.mod and ufs2.mod.
15629 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
15630 (grub_fstest_SOURCES): Likewise.
15631 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
15632 (ufs_mod_SOURCES): Remove.
15633 (ufs_mod_CFLAGS): Likewise.
15634 (ufs_mod_LDFLAGS): Likewise.
15635 (ufs1_mod_SOURCES): New variable.
15636 (ufs1_mod_CFLAGS): Likewise.
15637 (ufs1_mod_LDFLAGS): Likewise.
15638 (ufs2_mod_SOURCES): New variable.
15639 (ufs2_mod_CFLAGS): Likewise.
15640 (ufs2_mod_LDFLAGS): Likewise.
15641 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
15642 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
15644 (grub_emu_SOURCES): Likewise.
15645 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15646 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
15647 (grub_setup_SOURCES): Likewise.
15648 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
15649 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
15650 (grub_setup_SOURCES): Likewise.
15651 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
15653 * fs/ufs2.c: New file.
15654 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
15656 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
15660 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
15661 subsystem at the end.
15662 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
15663 (video_fb_mod_SOURCES): New variable.
15664 (video_fb_mod_CFLAGS): Likewise.
15665 (video_fb_mod_LDFLAGS): Likewise.
15666 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
15667 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
15668 * video/i386/pc/vbeblit.c: Moved from here ...
15669 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
15670 * video/i386/pc/vbefill.c: Moved from here ...
15671 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
15672 * video/i386/pc/vbeutil.c: Moved from here ...
15673 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
15674 * include/grub/i386/pc/vbeblit.h: Moved from here ...
15675 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
15676 * include/grub/i386/pc/vbefill.h: Moved from here ...
15677 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
15678 * include/grub/i386/pc/vbeutil.h: Moved from here ...
15679 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
15680 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
15681 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
15682 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
15683 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
15684 (grub_video_adapter): Added 'get_info_and_fini'.
15685 (grub_video_get_info_and_fini): New prototype.
15686 (grub_video_set_mode): make modestring const char *.
15687 * loader/i386/linux.c (grub_linux_setup_video): Use
15688 grub_video_get_info_and_fini.
15689 (grub_linux_boot): Move modesetting just before booting.
15690 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
15691 grub_video_get_info_and_fini.
15692 * video/i386/pc/vbe.c: Moved framebuffer part ...
15693 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
15694 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
15695 grub_video_fbstd_colors and grub_video_fb_set_palette.
15696 (grub_video_vbe_init): Clear 'framebuffer' variable and use
15697 grub_video_fb_init.
15698 (grub_video_vbe_fini): Use grub_video_fb_fini.
15699 (grub_video_vbe_setup): Use framebuffer.render_target instead of
15700 render_target and use grub_video_fb_set_active_render_target and
15701 grub_video_fb_set_palette.
15702 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
15703 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
15704 (grub_video_vbe_adapter): Use framebuffer.
15705 * video/video.c (grub_video_get_info_and_fini): New function.
15706 (grub_video_set_mode): Make modestring const char *.
15707 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
15708 values are already initialised.
15710 2009-08-14 Pavel Roskin <proski@gnu.org>
15712 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
15714 * boot/i386/pc/diskboot.S: Likewise.
15715 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
15716 sectors allow compilation on MacOSX.
15717 * conf/i386-pc.rmk: Enable unconditional compilation of
15720 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
15722 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
15723 * util/grub.d/00_header.in: Enter interruptible sleep if
15724 GRUB_HIDDEN_TIMEOUT is set.
15726 2009-08-13 Yves Blusseau <blusseau@zetam.org>
15728 * include/grub/symbol.h: Add the LOCAL macro.
15729 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
15730 starting with "L_".
15732 2009-08-13 Pavel Roskin <proski@gnu.org>
15734 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
15735 any modern compilers we support.
15737 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
15738 Use local labels starting with "L_" so that Apple assembler
15739 knows they are local.
15741 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
15743 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
15744 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
15745 (bsd_kernel_types): ... this enum.
15747 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
15748 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
15749 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
15751 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
15752 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
15753 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
15756 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
15758 * util/grub-dumpdevtree: Moved from here ...
15759 * util/i386/efi/grub-dumpdevtree: ... to here.
15760 (hexify): New function. Converts a string to its hex version.
15761 Generate hex versions of "efi" and "device-properties" by calling
15762 hexify() on the ASCII strings rather than by hardcoding numbers.
15764 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
15766 * fs/jfs.c: Update copyright year.
15768 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
15770 * util/grub.d/00_header.in: Fix a comment.
15771 * util/grub.d/10_linux.in: Likewise.
15772 * util/grub.d/10_windows.in: Likewise.
15773 * util/grub.d/10_hurd.in: Likewise.
15775 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
15777 * util/grub-mkconfig.in: Allow the user to specify the used font
15780 2009-08-08 Pavel Roskin <proski@gnu.org>
15782 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
15783 available, xfs.mod needs it now.
15785 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
15786 the "g" modifier in sed when the intention is to strip something
15787 once. This fixes comparison of kernels with multiple dashes.
15789 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
15790 on it. Add missing space before closing bracket. Fix
15791 misleading formatting.
15793 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15795 * docs/grub.texi: Major overhaul. Remove all sections that are
15796 specific to GRUB Legacy, or mostly composed of Legacy-specific
15799 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15801 * docs/version.texi: New file. Provides version information for
15804 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15806 * docs/grub.texi: Update CVS information to SVN.
15807 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
15809 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
15811 * util/grub-mkconfig.in: Remove a wrong `fi'.
15813 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
15815 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
15816 (grub_jfs_uuid): New function.
15817 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
15819 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
15821 * util/grub-mkconfig_lib.in (font_path): Move the functionality
15823 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
15824 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
15826 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15828 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
15829 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
15832 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
15833 not just "vmlinu[zx]".
15834 Moved from here ...
15835 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
15838 * util/grub.d/10_linux.in (find_latest): Moved from here ...
15839 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
15842 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
15844 * util/grub.d/10_freebsd.in: Use an absolute device path for
15845 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
15847 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
15849 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
15850 handling of multiple abstraction modules.
15852 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
15854 Fix a bug resulting in black screen when loading Linux using a
15857 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
15860 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
15861 (grub_vbe_bios_getset_dac_palette_width): New function.
15862 (grub_vbe_bios_get_dac_palette_width)
15863 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
15864 grub_vbe_bios_getset_dac_palette_width()).
15866 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
15867 check for return status.
15868 (grub_vbe_get_video_mode_info): When getting information for a packed
15869 mode (<= 8 bpp), obtain DAC palette width using
15870 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
15871 {red,green,blue}_mark_size.
15873 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
15875 * commands/search.c (options): Fix help output to match actual code.
15877 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
15879 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
15882 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
15884 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
15885 on XFS or ReiserFS.
15887 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
15889 Support Apple partition map with sector size different from 512 bytes.
15891 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
15892 (apple_partition_map_iterate): Respect 'aheader.blocksize'
15893 and 'apart.partmap_size'.
15895 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
15896 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
15900 * commands/i386/cpuid.c (options): New variable.
15901 (grub_cmd_cpuid): Return real error.
15902 (GRUB_MOD_INIT(cpuid)): Declare options.
15904 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
15906 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
15909 2009-07-31 Bean <bean123ch@gmail.com>
15911 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
15913 (grub_fshelp_node): Move inode field to the end.
15914 (grub_xfs_data): Remove inode field.
15915 (grub_xfs_inode_block): Calculate inode size using sblock.
15916 (grub_xfs_inode_offset): Likewise.
15917 (grub_xfs_read_inode): Calculate inode size using sblock.
15918 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
15919 (grub_xfs_iterate_dir): Calculate inode size using sblock.
15920 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
15921 to match inode size.
15922 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
15923 not accessible when data is null.
15924 (grub_xfs_open): Likewise.
15926 2009-07-31 Bean <bean123ch@gmail.com>
15928 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
15929 Don't change pv->disk if it's already set.
15931 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
15932 (grub_raid_register): ... here.
15933 (grub_raid_rescan): Removed.
15935 * include/grub/raid.h (grub_raid_rescan): Removed.
15937 * util/grub-fstest.c: Remove include file <grub/raid.h>.
15938 (fstest): Replace grub_raid_rescan with module fini function followed
15941 * util/grub-probe.c: Add include file <grub/raid.h>.
15942 (probe_raid_level): New function.
15943 (probe): Detect abstraction by walking the disk device, support two
15944 level of abstraction (LVM on RAID) when detecting partition map.
15946 2009-07-31 Pavel Roskin <proski@gnu.org>
15948 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
15949 to grub_zalloc(), it was erroneous.
15950 Reported by Bean <bean123ch@gmail.com>
15952 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
15954 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
15955 embedding zone, not only the first one.
15957 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
15959 * term/gfxterm.c (clear_char): New function.
15960 (grub_virtual_screen_setup): Use clear_char.
15961 (scroll_up): Likewise.
15962 (grub_virtual_screen_cls): Likewise.
15964 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
15966 * util/deviceiter.c (get_acceleraid_disk_name): New static
15968 (grub_util_iterate_devices): Handle Accelraid devices.
15969 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
15971 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
15973 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
15974 separator for the suggested gfxpayload string (';' collides with the
15975 parser and needs escaping).
15977 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
15979 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
15980 Clear direction flag before jumping to OS.
15981 (grub_multiboot2_real_boot): Likewise.
15983 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
15985 * util/i386/pc/grub-install: Fix parsing of --disk-module
15988 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
15990 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
15993 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
15995 * util/grub-mkconfig.in (package_version): New variable.
15996 Use it do display the version.
15998 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
16000 * kern/file.c (grub_file_open): Revert to previous check with
16003 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16005 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
16006 from help line. It's out of sync with code.
16008 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
16010 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
16011 entries on failed boot.
16013 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
16015 * kern/file.c (grub_file_open): Fix an error check.
16017 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
16019 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
16020 partition map couldn't be identified.
16022 2009-07-23 Pavel Roskin <proski@gnu.org>
16024 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
16025 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
16026 case of little endian words becomes just an optimization.
16027 Respect const modifier.
16028 (md5_final): Use code that doesn't depend on endianness.
16030 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
16031 to avoid loss of upper bits if align is unsigned and shorter
16034 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
16036 UUID support for UFS
16038 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
16039 (grub_ufs_uuid): New function.
16040 (grub_ufs_fs): add .uuid
16042 2009-07-21 Pavel Roskin <proski@gnu.org>
16044 * kern/dl.c (grub_dl_check_header): Make static.
16046 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
16048 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
16049 add drivemap for Vista. It breaks Windows 7.
16051 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
16053 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
16056 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
16060 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
16061 (grub_fstest_SOURCES): Likewise.
16062 (pkglib_MODULES): Add befs.mod.
16063 (befs_mod_SOURCES): New variable.
16064 (befs_mod_CFLAGS): Likewise.
16065 (befs_mod_LDFLAGS): Likewise.
16066 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
16067 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
16068 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16069 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
16070 (grub_setup_SOURCES): Likewise.
16071 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16072 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
16073 (grub_setup_SOURCES): Likewise.
16074 * fs/befs.c: New file.
16075 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
16076 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
16077 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
16078 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
16079 (B_KEY_INDEX_ALIGN): New declaration.
16080 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
16081 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
16082 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
16083 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
16084 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
16085 (grub_afs_mount) [MODE_BFS]: Likewise.
16086 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
16087 (grub_afs_fs): Use GRUB_AFS_FSNAME
16088 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
16089 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
16090 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
16091 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
16093 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
16095 * util/getroot.c (find_root_device): Add support for MacOSX.
16096 * util/hostdisk.c: Likewise.
16098 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
16100 * font/font.c (find_glyph): Check whether a font is present to avoid
16101 segmentation fault.
16103 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
16105 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
16107 2009-07-20 Pavel Roskin <proski@gnu.org>
16109 * configure.ac: Trim excessively wordy excuses.
16111 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
16113 Add symlink, mtime and label support to AtheFS.
16115 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
16116 (grub_afs_iterate_dir): Handle symlinks.
16117 (grub_afs_open): Use grub_afs_read_symlink.
16118 (grub_afs_dir): Likewise.
16120 (grub_afs_label): New function.
16121 (grub_afs_fs): Add grub_afs_label.
16122 (grub_afs_read_symlink): New function.
16124 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
16126 Fix AtheFS support.
16128 * fs/afs.c: Fix comments style.
16129 (grub_afs_blockrun): Declare as packed.
16130 (grub_afs_datastream): Likewise.
16131 (grub_afs_bnode): Likewise.
16132 (grub_afs_btree): Likewise.
16133 (grub_afs_sblock): Likewise.
16134 Declare `name' as char.
16135 (grub_afs_inode): Declare as packed.
16136 Change void *vnode to grub_uint32_t unused.
16137 (grub_afs_iterate_dir): Check that key_size is positive.
16138 (grub_afs_mount): Don't read superblock twice.
16139 (grub_afs_dir): Don't free node in case of error,
16140 grub_fshelp_find_file already handles this.
16141 (grub_afs_open): Likewise.
16143 2009-07-19 Pavel Roskin <proski@gnu.org>
16145 * Makefile.in: Remove LIBLZO and enable_lzo.
16146 * conf/i386-pc.rmk: Remove lzo support.
16147 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
16148 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
16150 * kern/i386/pc/lzo1x.S: Remove.
16151 * kern/i386/pc/startup.S: Remove lzo support.
16152 * util/i386/pc/grub-mkimage.c: Likewise.
16154 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
16156 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
16157 * fs/xfs.c (grub_xfs_dir): Likewise.
16158 * fs/afs.c (grub_afs_dir): Likewise.
16159 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
16160 (grub_iso9660_open): Likewise.
16161 * fs/jfs.c (grub_jfs_open): Likewise.
16162 * fs/ext2.c (grub_ext2_dir): Likewise.
16163 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
16164 * script/sh/lexer.c (grub_script_yylex): Likewise.
16166 2009-07-16 Pavel Roskin <proski@gnu.org>
16168 * configure.ac: Never add "-c" to CFLAGS.
16170 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
16172 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
16173 grub_cv_cc_efiemu should be used.
16175 * configure.ac: Typo fixes.
16177 * kern/mm.c (grub_zalloc): New function.
16178 (grub_debug_zalloc): Likewise.
16179 * include/grub/mm.h: Declare grub_zalloc() and
16180 grub_debug_zalloc().
16181 * util/misc.c (grub_zalloc): New function.
16182 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
16183 instead of grub_malloc(), remove unneeded initializations.
16184 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
16185 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
16186 * commands/parttool.c (grub_cmd_parttool): Likewise.
16187 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
16188 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
16189 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
16190 * disk/usbms.c (grub_usbms_finddevs): Likewise.
16191 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
16192 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
16193 (grub_cmd_efiemu_pnvram): Likewise.
16194 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
16195 * fs/iso9660.c (grub_iso9660_mount): Likewise.
16196 (grub_iso9660_iterate_dir): Likewise.
16197 * fs/jfs.c (grub_jfs_opendir): Likewise.
16198 * fs/ntfs.c (list_file): Likewise.
16199 (grub_ntfs_mount): Likewise.
16200 * kern/disk.c (grub_disk_open): Likewise.
16201 * kern/dl.c (grub_dl_load_core): Likewise.
16202 * kern/elf.c (grub_elf_file): Likewise.
16203 * kern/env.c (grub_env_context_open): Likewise.
16204 (grub_env_set): Likewise.
16205 (grub_env_set_data_slot): Likewise.
16206 * kern/file.c (grub_file_open): Likewise.
16207 * kern/fs.c (grub_fs_blocklist_open): Likewise.
16208 * loader/i386/multiboot.c (grub_module): Likewise.
16209 * loader/xnu.c (grub_xnu_create_key): Likewise.
16210 (grub_xnu_create_value): Likewise.
16211 * normal/main.c (grub_normal_add_menu_entry): Likewise.
16212 (read_config_file): Likewise.
16213 * normal/menu_entry.c (make_screen): Likewise.
16214 * partmap/sun.c (sun_partition_map_iterate): Likewise.
16215 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
16216 * script/sh/script.c (grub_script_parse): Likewise.
16217 * video/bitmap.c (grub_video_bitmap_create): Likewise.
16218 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
16219 * video/readers/png.c (grub_png_output_byte): Likewise.
16220 (grub_video_reader_png): Likewise.
16222 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16224 Enable all targets that can be built by default
16226 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
16227 grub-mkfont and grub-fstest if they can be built
16229 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16231 Fix hang and segmentation fault in grub-emu-usb
16233 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
16234 * util/usb.c (grub_libusb_devices): likewise
16235 (grub_libusb_init): rename to ...
16236 (GRUB_MOD_INIT (libusb)):...this
16237 (grub_libusb_fini): rename to ..
16238 (GRUB_MOD_FINI (libusb)):...this
16239 * disk/usbms.c (grub_usbms_transfer): fix retry logic
16240 * include/grub/disk.h (grub_raid_init): removed, it's useless
16241 (grub_raid_fini): likewise
16242 (grub_lvm_init): likewise
16243 (grub_lvm_fini): likewise
16244 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
16247 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16251 * Makefile.in (LIBUSB): new macro
16252 * genmk.rb (Utility/print_tail): new method
16253 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
16254 (top level): call util.print_tail at the end.
16256 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16258 Make FreeBSD accept zpool.cache
16260 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
16261 type is /boot/zfs/zpool.cache
16263 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
16267 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
16268 correct wrong typedef
16269 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
16271 2009-07-15 Pavel Roskin <proski@gnu.org>
16273 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
16274 * kern/disk.c (struct grub_disk_cache): Likewise.
16276 * commands/probe.c (options): Typo fix.
16278 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
16279 Increase to 0x5a to accommodate FAT32. Adjust other offsets
16281 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
16283 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
16284 the end of "Error" to make the message more readable.
16286 * boot/i386/pc/boot.S (kernel_segment): Remove.
16287 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
16290 * boot/i386/pc/boot.S (boot_version): Remove.
16291 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
16294 * include/grub/i386/pc/boot.h: Sort all offsets.
16295 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
16296 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
16297 * boot/i386/pc/boot.S: Assert location of every offset listed in
16298 include/grub/i386/pc/boot.h.
16300 2009-07-13 Pavel Roskin <proski@gnu.org>
16302 * include/grub/i386/coreboot/machine.h: Rename
16303 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
16304 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
16305 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
16307 * kern/dl.c: Force native word size to suppress warnings when
16308 compiling grub-emu.
16310 * kern/device.c (grub_device_iterate): Change struct part_ent to
16311 hold the name, not a pointer to it. Use one grub_malloc() per
16312 partition, not two. Free partition_name if grub_malloc() fails.
16313 Set ents to NULL only before grub_partition_iterate() is called.
16315 2009-07-11 Bean <bean123ch@gmail.com>
16317 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
16320 2009-07-10 Bean <bean123ch@gmail.com>
16321 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
16323 * kern/ieee1275/openfw.c (grub_children_iterate)
16324 (grub_devalias_iterate): Fix size evaluation for property or path
16325 strings, which was broken since r2132.
16327 2009-07-07 Pavel Roskin <proski@gnu.org>
16329 * commands/search.c (search_file): Merge into ...
16330 (search_fs): ... this. Accept search type as argument.
16331 (grub_cmd_search): Pass search type to search_fs().
16333 * include/grub/util/console.h: New file.
16334 * util/console.c: Use it instead of grub/machine/console.h.
16335 * util/grub-emu.c: Likewise.
16337 * lib/arg.c (find_long_option): Remove.
16338 (find_long): Add `len' argument, make `s' const char *.
16339 (grub_arg_parse): Parse long options in place, not in a
16342 2009-07-06 Pavel Roskin <proski@gnu.org>
16344 * commands/search.c (search_fs): Fix potential NULL pointer
16347 * commands/search.c (search_fs): Replace QUID macro with quid_fn
16350 2009-07-06 Daniel Mierswa <impulze@impulze.org>
16352 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
16355 2009-07-05 Pavel Roskin <proski@gnu.org>
16357 * include/grub/i386/linux.h (struct linux_kernel_params):
16358 Restore padding3, it's still needed.
16360 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
16362 * util/osdetect.lua: Likewise.
16364 2009-07-05 Bean <bean123ch@gmail.com>
16366 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
16368 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
16369 (grub_lua_getenv): Likewise.
16370 (grub_lua_setenv): Likewise.
16371 (save_errno): New function.
16372 (push_result): Likewise.
16373 (grub_lua_enum_device): Likewise.
16374 (grub_lua_enum_file): Likewise.
16375 (grub_lua_file_open): Likewise.
16376 (grub_lua_file_close): Likewise.
16377 (grub_lua_file_seek): Likewise.
16378 (grub_lua_file_read): Likewise.
16379 (grub_lua_file_getline): Likewise.
16380 (grub_lua_file_getsize): Likewise.
16381 (grub_lua_file_getpos): Likewise.
16382 (grub_lua_file_eof): Likewise.
16383 (grub_lua_file_exist): Likewise.
16384 (grub_lua_add_menu): Likewise.
16386 * script/lua/grub_lua.h (isupper): New inline function.
16387 (islower): Likewise.
16388 (ispunct): Likewise.
16389 (isxdigit): Likewise.
16390 (strcspn): Change to normal function.
16391 (strpbkr): New function declaration.
16392 (memchr): Likewise.
16394 * script/lua/grub_main.c (scan_str): New function.
16395 (strcspn): Likewise.
16396 (strpbrk): Likewise.
16397 (memchr): Likewise.
16399 * script/lua/linit.c (lualibs): Enable the string library.
16401 * util/osdetect.lua: New file.
16403 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
16405 * include/grub/i386/linux.h (struct linux_kernel_params): Add
16406 `capabilities' member.
16408 2009-07-02 Pavel Roskin <proski@gnu.org>
16410 * genparttoollist.sh: Add missing newline at the end.
16412 2009-07-01 Pavel Roskin <proski@gnu.org>
16414 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
16416 * util/hostdisk.c (open_device): Remove `const' from
16417 `sysctl_size', as sysctlbyname() can change it (in this case it
16418 doesn't actually happen).
16420 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
16421 using signed long int constants.
16423 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
16424 constant to avoid a warning on FreeBSD.
16426 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
16429 * Makefile.in: Install include/grub/machine symlink.
16431 * Makefile.in: When installing symlinks, use "cp -fR", which
16432 works on FreeBSD and MacOSX.
16433 From Yves Blusseau <cl7m42e02@sneakemail.com>
16435 * kern/dl.c (grub_dl_resolve_symbol): Make static.
16436 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
16438 * util/misc.c: Move grub_reboot() and grub_halt() ...
16439 * util/grub-emu.c: ... here. Make main_env static.
16440 * include/grub/util/misc.h: Remove main_env.
16442 * kern/mm.c: Use correct format to print size_t.
16444 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
16445 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
16446 * kern/powerpc/dl.c: Likewise.
16447 * kern/sparc64/dl.c: Likewise.
16448 * kern/x86_64/dl.c: Likewise.
16450 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
16452 Fix grub-emu build on sparc64-ieee1275.
16454 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
16455 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
16457 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
16459 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
16460 (grub_reboot, grub_halt): New functions.
16462 * util/i386/pc/misc.c: Delete. Update all users.
16463 * util/sparc64/ieee1275/misc.c: Likewise.
16464 * util/powerpc/ieee1275/misc.c: Likewise.
16466 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
16468 * conf/i386.rmk (setjmp_mod_SOURCES)
16469 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
16470 * conf/common.rmk (setjmp_mod_SOURCES)
16471 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
16472 to use $(target_cpu).
16473 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
16474 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
16475 * conf/powerpc-ieee1275.rmk: Likewise.
16476 * conf/sparc64-ieee1275.rmk: Likewise.
16478 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
16479 $(target_cpu) for kern/$(target_cpu)/dl.c.
16480 * conf/i386-efi.rmk: Likewise.
16481 * conf/i386-ieee1275.rmk: Likewise.
16482 * conf/x86_64-efi.rmk: Likewise.
16483 * conf/i386-coreboot.rmk: Likewise.
16484 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
16485 $(target_cpu) for kern/$(target_cpu)/dl.c and for
16486 kern/$(target_cpu)/cache.S.
16487 * conf/sparc64-ieee1275.rmk: Likewise.
16489 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
16491 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
16492 type to `grub_uint8_t', and adjust `padding9' accordingly.
16494 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
16496 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
16498 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
16499 assembly in final jump, using register constraints.
16501 (grub_linux_boot): For text mode, initialize `have_vga' using
16502 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
16504 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
16505 right before the final jump.
16507 Set `video_mode' to 0x3.
16509 Document initialization of `video_page', `video_mode' and
16512 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
16514 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
16515 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
16516 and set GRUB_LINUX_FLAG_QUIET appropriately.
16518 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
16520 Fix build on Debian / sparc.
16522 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
16524 2009-06-28 Pavel Roskin <proski@gnu.org>
16526 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
16529 * util/grub.d/10_linux.in: Match SUSE style initrd names.
16531 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
16533 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
16536 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
16540 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
16541 file can't be opened. grub_file_open() is already supposed to set
16542 grub_errno / grub_errmsg appropriately.
16543 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16545 2009-06-27 Pavel Roskin <proski@gnu.org>
16546 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
16548 * include/grub/dl.h: Include grub/elf.h.
16549 (struct grub_dl): Add symtab field.
16550 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
16551 GRUB_MODULES_MACHINE_READONLY.
16552 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
16553 of the header for read-only modules.
16554 (grub_dl_unload): Free mod->symtab for read-only modules.
16555 * kern/i386/dl.c: Use mod->symtab.
16556 * kern/powerpc/dl.c: Likewise.
16557 * kern/sparc64/dl.c: Likewise.
16558 * kern/x86_64/dl.c: Likewise.
16560 * conf/i386-qemu.rmk: New file.
16561 * kern/i386/qemu/startup.S: Likewise.
16562 * kern/i386/qemu/mmap.c: Likewise.
16563 * boot/i386/qemu/boot.S: Likewise.
16564 * include/grub/i386/qemu/time.h: Likewise.
16565 * include/grub/i386/qemu/serial.h: Likewise.
16566 * include/grub/i386/qemu/kernel.h: Likewise.
16567 * include/grub/i386/qemu/console.h: Likewise.
16568 * include/grub/i386/qemu/boot.h: Likewise.
16569 * include/grub/i386/qemu/init.h: Likewise.
16570 * include/grub/i386/qemu/machine.h: Likewise.
16571 * include/grub/i386/qemu/loader.h: Likewise.
16572 * include/grub/i386/qemu/memory.h: Likewise.
16574 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
16575 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
16576 [qemu] (pkglib_IMAGES): Add `boot.img'.
16577 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
16578 [qemu] (boot_img_FORMAT): New variables.
16579 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
16580 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
16581 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
16582 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
16583 [qemu] (kernel_img_FORMAT): New variables.
16585 * configure.ac: Recognise `i386-qemu'.
16587 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
16588 (for no compression).
16589 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
16590 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
16591 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
16592 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
16595 2009-06-27 Pavel Roskin <proski@gnu.org>
16597 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
16599 * efiemu/prepare32.c: Likewise.
16600 * efiemu/prepare64.c: Likewise.
16602 2009-06-26 Pavel Roskin <proski@gnu.org>
16604 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
16605 * include/grub/elf.h: Define symbols without "32" or "64" based
16606 on GRUB_TARGET_WORDSIZE.
16607 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
16608 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
16610 * efiemu/loadcore64.c: Likewise.
16611 * loader/i386/bsd32.c: Likewise.
16612 * loader/i386/bsd64.c: Likewise.
16613 * kern/dl.c: Remove own ELF definitions.
16614 * util/i386/efi/grub-mkimage.c: Likewise.
16616 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
16618 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
16619 segment 0x0 unconditionally, because the reference generated by
16620 GAS is an absolute address.
16622 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16624 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
16625 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
16627 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16629 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
16630 indexes. Check for -f explicitly.
16631 (search_file): Improve error message.
16632 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
16634 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16636 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
16637 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
16639 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16641 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
16642 * conf/i386-ieee1275.rmk: Likewise.
16643 * conf/i386-coreboot.rmk: Likewise.
16645 * kern/i386/pc/startup.S (grub_stop): Remove function.
16646 * kern/i386/ieee1275/startup.S: Likewise.
16647 * kern/i386/coreboot/startup.S: Likewise.
16648 * kern/i386/misc.S (grub_stop): New function.
16650 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16652 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
16653 * kern/i386/realmode.S (real_to_prot): ... to here.
16655 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
16657 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
16659 (kernel_elf_SOURCES): Rename to ...
16660 (kernel_img_SOURCES): ... this.
16661 (kernel_elf_HEADERS): Rename to ...
16662 (kernel_img_HEADERS): ... this. Update all users.
16663 (kernel_elf_ASFLAGS): Rename to ...
16664 (kernel_img_ASFLAGS): ... this.
16665 (kernel_elf_CFLAGS): Rename to ...
16666 (kernel_img_CFLAGS): ... this.
16667 (kernel_elf_LDFLAGS): Rename to ...
16668 (kernel_img_LDFLAGS): ... this.
16669 * conf/i386-coreboot.rmk: Likewise.
16670 * conf/powerpc-ieee1275.rmk: Likewise.
16672 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
16675 2009-06-21 Pavel Roskin <proski@gnu.org>
16677 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
16678 to match nested functions.
16679 * loader/sparc64/ieee1275/linux.c: Likewise.
16681 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
16683 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
16685 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
16686 all i386 platforms.
16688 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
16690 Fix asm file handling on ELF, and remove workarounds.
16692 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
16693 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
16694 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
16695 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
16697 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
16699 Load BSD ELF modules
16701 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
16702 and loader/i386/bsd64.c
16703 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
16704 (FREEBSD_MODTYPE_ELF_MODULE): New definition
16705 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
16706 (grub_freebsd_load_elfmodule32): New declaration
16707 (grub_freebsd_load_elfmoduleobj64): Likewise
16708 (grub_freebsd_load_elf_meta32): Likewise
16709 (grub_freebsd_load_elf_meta64): Likewise
16710 (grub_freebsd_add_meta): Likewise
16711 (grub_freebsd_add_meta_module): Likewise
16712 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
16713 (grub_freebsd_add_meta_module): Likewise and move module-specific
16714 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
16715 (grub_cmd_freebsd): Add elf-kernel specific parts
16716 based on grub_freebsd_add_meta_module
16717 (grub_cmd_freebsd_module): Add type parsing moved from
16718 grub_freebsd_add_meta_module
16719 (grub_cmd_freebsd_module_elf): New function
16720 (cmd_freebsd_module_elf): New variable
16721 (GRUB_MOD_INIT): Register freebsd_module_elf
16722 * loader/i386/bsd32.c: New file
16723 * loader/i386/bsd64.c: Likewise
16724 * loader/i386/bsdXX.c: Likewise
16725 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
16726 (grub_elf64_load): Likewise
16727 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
16729 (grub_elf64_load_hook_t): Likewise
16731 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
16733 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
16735 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
16736 don't write a menu entry for recovery mode.
16738 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
16740 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
16741 after it's no longer needed.
16743 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
16745 * include/grub/i386/loader.h (grub_linux_prot_size)
16746 (grub_linux_tmp_addr, grub_linux_real_addr)
16747 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
16748 GRUB_MACHINE_PCBIOS.
16749 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
16750 common grub_util_info() call to ...
16751 (generate_image): ... here.
16752 Fix use of uninitialized memory, comparison of signed with
16753 unsigned integers and memory leak.
16754 Remove bogus module address message.
16756 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
16758 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
16760 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
16762 2009-06-19 Pavel Roskin <proski@gnu.org>
16764 * configure.ac: Remove stray AC_MSG_CHECKING.
16766 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
16768 * disk/scsi.c (grub_scsi_open): use continue instead of big if
16770 2009-06-18 Pavel Roskin <proski@gnu.org>
16772 * conf/common.rmk: Add fs_file.mod.
16773 * disk/fs_file.c: New file.
16774 * include/grub/disk.h (enum grub_disk_dev_id): Add
16775 GRUB_DISK_DEVICE_FILE_ID.
16777 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
16779 Fix build with Apple's toolchain. Part 2
16781 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
16784 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
16786 Fix build with Apple's toolchain. Part 1
16788 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
16790 * configure.ac: remove a leftover AC_MSG_RESULT
16791 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
16794 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
16798 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
16799 (decomp_block): initialize ch
16800 use grub_memcpy instead of memcpy
16802 2009-06-17 Pavel Roskin <proski@gnu.org>
16804 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
16805 version, use declarations needed to use vga_text as the startup
16808 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
16809 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
16811 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
16812 and grub_at_keyboard_fini(), it's done on module load and
16815 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
16817 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
16818 file can't be found.
16819 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
16821 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
16823 Fix newline handling
16825 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
16826 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
16827 (grub_script_yylex): don't segfault on unterminated script
16828 newline terminates command and variable
16830 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
16832 avoid double grub_adjust_range call. Bug reported by David Simner
16834 * kern/disk.c (grub_disk_write): change to raw disk access before
16837 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
16839 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
16840 spaces, for the benefit of help2man.
16841 * util/i386/efi/grub-mkimage.c (usage): Likewise.
16843 2009-06-16 Pavel Roskin <proski@gnu.org>
16845 * kern/i386/halt.c: Include grub/machine/init.h.
16846 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
16848 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
16850 * util/grub.d/30_os-prober.in: Use ${root} in the generated
16851 drivemap menuentry.
16853 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
16855 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
16858 2009-06-16 Pavel Roskin <proski@gnu.org>
16860 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
16861 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
16862 save %dx, we only need %dl and we never change it.
16863 * boot/i386/pc/cdboot.S: Don't set the root drive.
16864 * boot/i386/pc/pxeboot.S: Likewise.
16865 * include/grub/i386/pc/boot.h: Remove
16866 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
16867 GRUB_BOOT_MACHINE_DRIVE_CHECK.
16868 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
16869 * kern/i386/pc/init.c (make_install_device): Remove references
16870 to grub_root_drive.
16871 * kern/i386/pc/startup.S: Likewise.
16872 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
16874 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
16878 * commands/xnu_uuid.c: new file
16879 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
16880 (xnu_uuid_mod_SOURCES): new variable
16881 (xnu_uuid_mod_CFLAGS): likewise
16882 (xnu_uuid_mod_LDFLAGS): likewise
16883 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
16884 * conf/i386-ieee1275.rmk: likewise
16885 * conf/i386-pc.rmk: likewise
16886 * conf/powerpc-ieee1275.rmk: likewise
16887 * conf/sparc64-ieee1275.rmk: likewise
16888 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
16890 2009-06-16 Pavel Roskin <proski@gnu.org>
16892 * configure.ac: Avoid '==' in test command, it's not portable.
16894 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
16898 * commands/probe.c: new file
16899 * conf/common.rmk (pkglib_MODULES): add probe.mod
16900 (probe_mod_SOURCES): new variable
16901 (probe_mod_CFLAGS): likewise
16902 (probe_mod_LDFLAGS): likewise
16903 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
16904 * conf/i386-ieee1275.rmk: likewise
16905 * conf/i386-pc.rmk: likewise
16906 * conf/powerpc-ieee1275.rmk: likewise
16907 * conf/sparc64-ieee1275.rmk: likewise
16909 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
16911 Fix handling of string like \"hello\" and "a
16914 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
16915 (grub_script_yylex): fix parsing of quoting, escaping and newline
16917 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
16919 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
16922 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
16924 * util/grub-mkconfig.in: Fix parsing of --output option.
16926 2009-06-12 Pavel Roskin <proski@gnu.org>
16928 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
16929 genmk.rb don't need to be generated or installed.
16931 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
16933 * commands/i386/pc/drivemap_int13h.S: add more comments
16935 2009-06-11 Pavel Roskin <proski@gnu.org>
16937 * Makefile.in (uninstall): Uninstall manuals.
16939 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
16940 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
16941 and update-grub_lib in two places.
16942 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
16944 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
16945 a compiler warning.
16947 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
16948 `entry_lo' to fix variable shadowing.
16950 2009-06-11 Christian Franke <franke@computer.org>
16952 * kern/misc.c (__enable_execute_stack): Add missing return type
16953 to prevent gcc warning.
16955 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
16957 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
16959 2009-06-11 Pavel Roskin <proski@gnu.org>
16961 * Makefile.in: Don't rely on any scripts being executable.
16962 Always use $(SHELL) to run shell scripts.
16964 * configure.ac: Always define ___main if using -nostdlib. This
16965 fixes tests on Cygwin.
16967 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
16971 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
16972 is in bytes and not in blocks
16974 2009-06-11 Pavel Roskin <proski@gnu.org>
16976 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
16979 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
16981 * util/grub.d/30_os-prober.in: Fix a comment. Source
16982 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
16983 to set the root device. Place drivemap command in the generated
16986 2009-06-11 Pavel Roskin <proski@gnu.org>
16988 * configure.ac: Remove host_m32. Issues with 64-bit utilities
16989 have long been resolved.
16991 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
16993 * util/grub.d/10_linux.in: Capitalise "Linux".
16995 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
16997 2009-06-11 Pavel Roskin <proski@gnu.org>
16999 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
17000 fix a gcc warning and ensure that the function won't ever exit.
17002 * kern/i386/ieee1275/init.c: Add missing prototype for
17003 grub_stop_floppy().
17005 * loader/ieee1275/multiboot2.c [__i386__]: Include
17006 grub/cpu/multiboot.h.
17008 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
17009 casts to short - they are not portable and cause warnings. Fix
17010 use of uninitialized values in input_buf. Use ARRAY_SIZE.
17012 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
17016 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
17018 (grub_get_root_biosnumber_saved): new variable
17019 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
17020 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
17021 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
17022 %dx after the call if necessary
17023 * conf/common.rmk (pkglib_MODULES): remove boot.mod
17024 (boot_mod_SOURCES): remove
17025 (boot_mod_CFLAGS): remove
17026 (boot_mod_LDFLAGS): remove
17027 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
17028 (boot_mod_SOURCES): new variable
17029 (boot_mod_CFLAGS): likewise
17030 (boot_mod_LDFLAGS): likewise
17031 * conf/i386-efi.rmk: likewise
17032 * conf/i386-ieee1275.rmk: likewise
17033 * conf/i386-pc.rmk: likewise
17034 * conf/powerpc-ieee1275.rmk: likewise
17035 * conf/sparc64-ieee1275.rmk: likewise
17036 * conf/x86_64-efi.rmk: likewise
17037 * include/grub/i386/pc/biosnum.h: new file
17038 * lib/i386/pc/biosnum.c: likewise
17039 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
17040 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
17041 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
17043 2009-06-10 Pavel Roskin <proski@gnu.org>
17045 * io/gzio.c (test_header): Don't reuse one buffer for all data.
17046 Use separate variables. Read only the file size at the end, but
17047 not the checksum that we don't use.
17049 * kern/file.c (grub_file_read): Use void pointer for the buffer.
17050 Adjust all callers.
17052 * kern/ieee1275/openfw.c: Remove libc includes.
17053 * kern/ieee1275/cmain.c: Likewise.
17054 * include/grub/ieee1275/ieee1275.h: Likewise.
17056 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
17059 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
17061 * Makefile.in: Remove all trailing whitespace.
17062 * conf/i386-pc.rmk: Likewise.
17063 * conf/powerpc-ieee1275.rmk: Likewise.
17064 * conf/sparc64-ieee1275.rmk: Likewise.
17065 * docs/grub.texi: Likewise.
17066 * docs/texinfo.tex: Likewise.
17067 * disk/fs_uuid.c: Likewise.
17068 * disk/lvm.c: Likewise.
17069 * disk/scsi.c: Likewise.
17070 * disk/ata.c: Likewise.
17071 * disk/ieee1275/ofdisk.c: Likewise.
17072 * disk/i386/pc/biosdisk.c: Likewise.
17073 * disk/host.c: Likewise.
17074 * disk/raid.c: Likewise.
17075 * disk/efi/efidisk.c: Likewise.
17076 * disk/usbms.c: Likewise.
17077 * disk/memdisk.c: Likewise.
17078 * disk/loopback.c: Likewise.
17079 * kern/powerpc/dl.c: Likewise.
17080 * kern/device.c: Likewise.
17081 * kern/dl.c: Likewise.
17082 * kern/sparc64/dl.c: Likewise.
17083 * kern/ieee1275/ieee1275.c: Likewise.
17084 * kern/term.c: Likewise.
17085 * kern/fs.c: Likewise.
17086 * kern/i386/dl.c: Likewise.
17087 * kern/i386/pc/startup.S: Likewise.
17088 * kern/i386/pc/init.c: Likewise.
17089 * kern/i386/pc/mmap.c: Likewise.
17090 * kern/i386/pc/lzo1x.S: Likewise.
17091 * kern/i386/ieee1275/init.c: Likewise.
17092 * kern/i386/realmode.S: Likewise.
17093 * kern/i386/tsc.c: Likewise.
17094 * kern/partition.c: Likewise.
17095 * kern/corecmd.c: Likewise.
17096 * kern/file.c: Likewise.
17097 * kern/efi/efi.c: Likewise.
17098 * kern/efi/init.c: Likewise.
17099 * kern/efi/mm.c: Likewise.
17100 * kern/main.c: Likewise.
17101 * kern/err.c: Likewise.
17102 * kern/env.c: Likewise.
17103 * kern/disk.c: Likewise.
17104 * kern/generic/millisleep.c: Likewise.
17105 * kern/generic/rtc_get_time_ms.c: Likewise.
17106 * kern/misc.c: Likewise.
17107 * kern/parser.c: Likewise.
17108 * genmk.rb: Likewise.
17109 * configure.ac: Likewise.
17110 * boot/i386/pc/diskboot.S: Likewise.
17111 * boot/i386/pc/pxeboot.S: Likewise.
17112 * boot/i386/pc/boot.S: Likewise.
17113 * boot/i386/pc/lnxboot.S: Likewise.
17114 * boot/i386/pc/cdboot.S: Likewise.
17115 * parttool/pcpart.c: Likewise.
17116 * video/readers/tga.c: Likewise.
17117 * video/video.c: Likewise.
17118 * video/bitmap.c: Likewise.
17119 * lib/envblk.c: Likewise.
17120 * lib/i386/setjmp.S: Likewise.
17121 * fs/xfs.c: Likewise.
17122 * fs/afs.c: Likewise.
17123 * fs/fat.c: Likewise.
17124 * fs/ntfs.c: Likewise.
17125 * fs/udf.c: Likewise.
17126 * fs/affs.c: Likewise.
17127 * fs/iso9660.c: Likewise.
17128 * fs/hfs.c: Likewise.
17129 * fs/fshelp.c: Likewise.
17130 * fs/ext2.c: Likewise.
17131 * fs/jfs.c: Likewise.
17132 * fs/reiserfs.c: Likewise.
17133 * fs/hfsplus.c: Likewise.
17134 * fs/minix.c: Likewise.
17135 * fs/cpio.c: Likewise.
17136 * fs/sfs.c: Likewise.
17137 * fs/ufs.c: Likewise.
17138 * efiemu/prepare.c: Likewise.
17139 * efiemu/loadcore_common.c: Likewise.
17140 * efiemu/runtime/efiemu.sh: Likewise.
17141 * efiemu/runtime/efiemu.S: Likewise.
17142 * efiemu/runtime/efiemu.c: Likewise.
17143 * efiemu/pnvram.c: Likewise.
17144 * efiemu/main.c: Likewise.
17145 * efiemu/i386/pc/cfgtables.c: Likewise.
17146 * efiemu/i386/loadcore64.c: Likewise.
17147 * efiemu/i386/loadcore32.c: Likewise.
17148 * efiemu/loadcore.c: Likewise.
17149 * efiemu/symbols.c: Likewise.
17150 * efiemu/mm.c: Likewise.
17151 * include/grub/autoefi.h: Likewise.
17152 * include/grub/datetime.h: Likewise.
17153 * include/grub/term.h: Likewise.
17154 * include/grub/hfs.h: Likewise.
17155 * include/grub/lvm.h: Likewise.
17156 * include/grub/i386/tsc.h: Likewise.
17157 * include/grub/i386/linux.h: Likewise.
17158 * include/grub/i386/xnu.h: Likewise.
17159 * include/grub/i386/efiemu.h: Likewise.
17160 * include/grub/i386/pc/biosdisk.h: Likewise.
17161 * include/grub/i386/pc/memory.h: Likewise.
17162 * include/grub/i386/pc/vbe.h: Likewise.
17163 * include/grub/parttool.h: Likewise.
17164 * include/grub/video.h: Likewise.
17165 * include/grub/memory.h: Likewise.
17166 * include/grub/fs.h: Likewise.
17167 * include/grub/partition.h: Likewise.
17168 * include/grub/xnu.h: Likewise.
17169 * include/grub/efi/api.h: Likewise.
17170 * include/grub/efi/pe32.h: Likewise.
17171 * include/grub/efi/memory.h: Likewise.
17172 * include/grub/multiboot.h: Likewise.
17173 * include/grub/usbdesc.h: Likewise.
17174 * include/grub/multiboot2.h: Likewise.
17175 * include/grub/acpi.h: Likewise.
17176 * include/grub/efiemu/efiemu.h: Likewise.
17177 * include/grub/disk.h: Likewise.
17178 * include/grub/ieee1275/ieee1275.h: Likewise.
17179 * include/grub/net.h: Likewise.
17180 * include/grub/machoload.h: Likewise.
17181 * include/grub/macho.h: Likewise.
17182 * include/multiboot.h: Likewise.
17183 * genmoddep.awk: Likewise.
17184 * normal/main.c: Likewise.
17185 * normal/menu_entry.c: Likewise.
17186 * normal/menu_viewer.c: Likewise.
17187 * normal/completion.c: Likewise.
17188 * normal/cmdline.c: Likewise.
17189 * normal/misc.c: Likewise.
17190 * normal/datetime.c: Likewise.
17191 * bus/usb/usbtrans.c: Likewise.
17192 * bus/usb/ohci.c: Likewise.
17193 * bus/usb/uhci.c: Likewise.
17194 * bus/usb/usb.c: Likewise.
17195 * mmap/efi/mmap.c: Likewise.
17196 * mmap/i386/pc/mmap_helper.S: Likewise.
17197 * mmap/i386/pc/mmap.c: Likewise.
17198 * mmap/i386/mmap.c: Likewise.
17199 * mmap/i386/uppermem.c: Likewise.
17200 * mmap/mmap.c: Likewise.
17201 * commands/acpi.c: Likewise.
17202 * commands/echo.c: Likewise.
17203 * commands/blocklist.c: Likewise.
17204 * commands/loadenv.c: Likewise.
17205 * commands/usbtest.c: Likewise.
17206 * commands/boot.c: Likewise.
17207 * commands/parttool.c: Likewise.
17208 * commands/search.c: Likewise.
17209 * commands/cat.c: Likewise.
17210 * commands/i386/pc/play.c: Likewise.
17211 * commands/i386/pc/drivemap.c: Likewise.
17212 * commands/i386/pc/vbeinfo.c: Likewise.
17213 * commands/i386/pc/acpi.c: Likewise.
17214 * commands/i386/pc/vbetest.c: Likewise.
17215 * commands/ls.c: Likewise.
17216 * commands/cmp.c: Likewise.
17217 * commands/test.c: Likewise.
17218 * commands/efi/acpi.c: Likewise.
17219 * commands/gptsync.c: Likewise.
17220 * commands/help.c: Likewise.
17221 * partmap/amiga.c: Likewise.
17222 * partmap/apple.c: Likewise.
17223 * partmap/acorn.c: Likewise.
17224 * partmap/pc.c: Likewise.
17225 * partmap/sun.c: Likewise.
17226 * partmap/gpt.c: Likewise.
17227 * script/sh/lexer.c: Likewise.
17228 * script/sh/function.c: Likewise.
17229 * font/font.c: Likewise.
17230 * font/font_cmd.c: Likewise.
17231 * loader/powerpc/ieee1275/linux.c: Likewise.
17232 * loader/efi/chainloader.c: Likewise.
17233 * loader/multiboot_loader.c: Likewise.
17234 * loader/macho.c: Likewise.
17235 * loader/i386/multiboot.c: Likewise.
17236 * loader/i386/linux.c: Likewise.
17237 * loader/i386/pc/linux.c: Likewise.
17238 * loader/i386/pc/multiboot2.c: Likewise.
17239 * loader/i386/pc/chainloader.c: Likewise.
17240 * loader/i386/pc/xnu.c: Likewise.
17241 * loader/i386/bsd_trampoline.S: Likewise.
17242 * loader/i386/efi/linux.c: Likewise.
17243 * loader/i386/multiboot_elfxx.c: Likewise.
17244 * loader/i386/bsd_helper.S: Likewise.
17245 * loader/i386/bsd.c: Likewise.
17246 * loader/i386/linux_trampoline.S: Likewise.
17247 * loader/i386/xnu_helper.S: Likewise.
17248 * loader/i386/xnu.c: Likewise.
17249 * loader/i386/bsd_pagetable.c: Likewise.
17250 * loader/i386/multiboot_helper.S: Likewise.
17251 * loader/xnu.c: Likewise.
17252 * loader/xnu_resume.c: Likewise.
17253 * io/gzio.c: Likewise.
17254 * term/efi/console.c: Likewise.
17255 * term/terminfo.c: Likewise.
17256 * term/ieee1275/ofconsole.c: Likewise.
17257 * term/i386/pc/serial.c: Likewise.
17258 * term/i386/pc/vesafb.c: Likewise.
17259 * term/i386/pc/vga.c: Likewise.
17260 * term/usb_keyboard.c: Likewise.
17261 * term/gfxterm.c: Likewise.
17262 * aclocal.m4: Likewise.
17263 * util/lvm.c: Likewise.
17264 * util/grub.d/30_os-prober.in: Likewise.
17265 * util/grub.d/10_hurd.in: Likewise.
17266 * util/console.c: Likewise.
17267 * util/grub-macho2img.c: Likewise.
17268 * util/grub-probe.c: Likewise.
17269 * util/hostfs.c: Likewise.
17270 * util/i386/pc/grub-mkimage.c: Likewise.
17271 * util/i386/pc/grub-setup.c: Likewise.
17272 * util/i386/efi/grub-mkimage.c: Likewise.
17273 * util/grub-mkconfig.in: Likewise.
17274 * util/raid.c: Likewise.
17275 * util/resolve.c: Likewise.
17276 * util/grub-mkdevicemap.c: Likewise.
17277 * util/grub-emu.c: Likewise.
17278 * util/getroot.c: Likewise.
17279 * util/hostdisk.c: Likewise.
17280 * util/usb.c: Likewise.
17281 * util/grub-editenv.c: Likewise.
17282 * util/misc.c: Likewise.
17284 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
17286 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
17287 `genparttoollist.sh'.
17288 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
17289 Add `*.sh' to the list find searches for and change `mdate.sh'
17292 2009-06-10 Pavel Roskin <proski@gnu.org>
17294 * include/grub/multiboot2.h: Provide compatibility defines for
17296 * include/multiboot2.h: Include stdint.h only if needed, using
17298 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
17300 * loader/ieee1275/multiboot2.c: Likewise.
17301 * loader/multiboot2.c: Likewise.
17302 * loader/multiboot_loader.c: Likewise.
17304 * configure.ac: Use -nostdlib when probing for the target. It
17305 should not be required to have libc for the target.
17307 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
17308 they fail without libc headers for the target.
17309 * include/grub/powerpc/libgcc.h: Use weak attribute for all
17311 * include/grub/sparc64/libgcc.h: Likewise. Don't use
17312 preprocessor conditionals.
17314 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
17315 build system doesn't need to be aware of the tar.c internals.
17317 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
17319 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
17321 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
17323 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
17324 disk limit to 26 for IDE, Virtio, Xen and SCSI.
17326 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
17328 * util/i386/pc/grub-install.in: Change the error message if UUIDs
17329 aren't available if ata.mod gets used.
17331 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
17333 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
17334 initialising controller.
17335 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
17337 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
17339 * util/i386/pc/grub-install.in: Add a parameter --disk-module
17340 to choose between ata and biosdisk module on i386-pc.
17342 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
17344 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
17345 Subclass and Programming Interface fields in terms of the 3 byte
17346 Class Code register.
17347 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
17349 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
17350 interface is OHCI. Add grub_dprintf for symmetry with
17352 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
17353 interface is UHCI. Add interf variable for programming
17354 interface. Print interface with class/subclass.
17356 * bus/usb/ohci.c: Set interf with correct field.
17358 * bus/usb/uhci.c: Remove unneeded doubled lines.
17359 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
17360 Remove whitespace inside comment.
17362 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
17364 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
17365 as fallback an equivalent option without depth.
17367 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
17369 Not fail if unable to retrieve C/H/S on LBA disks
17371 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
17372 if unable to retrieve C/H/S on LBA disks
17374 2009-06-08 Pavel Roskin <proski@gnu.org>
17376 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
17379 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
17381 * Makefile.in (uninstall): Remove all $lib_DATA files.
17383 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
17385 Bugfix: install on partitionless device
17387 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
17390 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
17392 * Makefile.in (uninstall): Remove all $include_DATA files.
17394 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
17396 * commands/true.c: New file. Implement the true and false commands.
17397 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
17398 (true_mod_SOURCES): New variable.
17399 (true_mod_CFLAGS): Likewise.
17400 (true_mod_LDFLAGS): Likewise.
17402 2009-06-05 Colin D Bennett <colin@gibibit.com>
17404 Optimized font character lookup using binary search instead of linear
17405 search. Fonts now are required to have the character index ordered by
17408 * font/font.c (load_font_index): Verify that fonts have ordered
17410 (find_glyph): Use binary search instead of linear search to find a
17411 character in a font.
17413 2009-06-05 Michael Scherer <misc@mandriva.org>
17415 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
17416 uses case sensitive btree.
17417 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
17418 only for case insensitive filesystems.
17420 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
17422 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
17423 * conf/common.rmk (search_mod_CFLAGS): likewise
17425 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17427 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
17428 compensate a compiler bug
17430 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17432 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
17435 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17437 Definitions for creating asm symbols with Apple's CC
17439 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
17440 [APPLE_CC] (VARIABLE): likewise
17442 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17444 Disable lnxboot.img when compiled
17447 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
17448 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
17449 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
17450 [! APPLE_CC] (CODE_LENG): skip
17451 [! APPLE_CC] (setup_sects): likewise
17452 [! APPLE_CC]: skip filling
17454 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17456 Address in trampolines based on 32-bit registers when compiled
17459 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
17461 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
17463 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17465 Avoid aliases when compiling with Apple's CC for PCBIOS machine
17467 * kern/misc.c [APPLE_CC] (memcpy): new function
17468 [APPLE_CC] (memmove): likewise
17469 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
17470 (memcpy): define alias conditionally on !APPLE_CC
17473 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
17474 APPLE_CC are defined
17475 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
17476 (grub_assert_fail): make prototype conditional
17478 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17480 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
17482 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
17484 (CLEANFILES): add grub-macho2img
17485 (grub_macho2img_SOURCES): new variable
17486 * kern/i386/pc/startup.S (bss_start): new variable
17487 (bss_end): likewise
17488 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
17489 * util/grub-macho2img.c: new file
17491 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17493 Use objconv when compiling with Apple's CC
17495 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
17496 (efiemu64.o): likewise
17497 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
17498 when compiling with Apple's CC
17499 (efiemu64_s.o): likewise
17500 * configure.ac: check for objconv when compiling with Apple's CC
17501 * genmk.rb: use objconv for modules when compiled with Apple's CC
17503 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17505 Define segment as well as section when compiling with
17508 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
17509 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
17510 (efiemu_convert_pointer): likewise
17511 (efiemu_set_virtual_address_map): likewise
17512 (efiemu_convert_pointer): likewise
17513 (efiemu_getcrc32): likewise
17514 (init_crc32_table): likewise
17515 (reflect): likewise
17516 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
17517 (GRUB_MOD_DEP): likewise
17519 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17521 Allow a compilation without -mcmodel=large
17523 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
17524 when compiled without -mcmodel=large
17525 (filter_memory_map): remove memory post 4 GiB when compiled
17526 without -mcmodel=large
17527 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
17528 TARGET_CFLAGS when -mcmodel=large isn't supported
17530 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17532 Remove nested functions in efiemu core
17534 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
17536 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17538 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
17540 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
17542 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
17544 (grub_cpu_is_tsc_supported): likewise
17545 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
17547 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17549 Absolute addressing through constant with Apple's cc
17551 * kern/i386/pc/startup.S: Define necessary constants
17552 and address through it when using ABS with Apple's CC
17553 * boot/i386/pc/diskboot.S: likewise
17554 * boot/i386/pc/boot.S: likewise
17555 * boot/i386/pc/lnxboot.S: likewise
17556 * boot/i386/pc/cdboot.S: likewise
17557 * mmap/i386/pc/mmap_helper.S: likewise
17558 * commands/i386/pc/drivemap_int13h.S: likewise
17560 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17562 Check if compiler is apple cc
17564 * Makefile.in (ASFLAGS): new variable
17565 (TARGET_ASFLAGS): likewise
17566 (TARGET_MODULE_FORMAT): likewise
17567 (TARGET_APPLE_CC): likewise
17568 (OBJCONV): likewise
17569 (TARGET_IMG_CFLAGS): likewise
17570 (TARGET_CPPFLAGS): add includedir
17571 * configure.ac: call grub_apple_cc and grub_apple_target_cc
17572 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
17573 Check for linker script only if compiler isn't Apple's CC
17574 (TARGET_MODULE_FORMAT): set
17575 (TARGET_APPLE_CC): likewise
17576 (TARGET_ASFLAGS): likewise
17577 (ASFLAGS): likewise
17578 Check for objcopy only if compiler isn't Apple's CC
17579 Check for BSS symbol only if compiler isn't Apple's CC
17580 * genmk.rb: adapt nm options if we use Apple's utils
17581 * aclocal.m4 (grub_apple_cc): new test
17582 (grub_apple_target_cc): likewise
17584 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17586 Simplify sed expressions and improve awk
17588 * Makefile.in (install-local): simplify sed expression
17589 * gencmdlist.sh: likewise
17590 * genmoddep.awk: avoid adding module as a dependency of itself
17592 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17594 Add missing start symbols
17596 * boot/i386/pc/boot.S: add start
17597 * boot/i386/pc/pxeboot.S: likewise
17599 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17601 Fix wrong assumptions with grub-mkimage on EFI
17603 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
17604 (relocate_addresses): consider both r_addend and value at offset
17605 (make_mods_section): zerofill modinfo and header
17606 (convert_elf): write prefix here
17608 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17610 Use .asciz instead of .string
17612 * i386/pc/diskboot.S: use .asciz instead of .string
17613 * i386/pc/boot.S: likewise
17614 * include/grub/dl.h (GRUB_MOD_DEP): likewise
17615 (GRUB_MOD_NAME): likewise
17617 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17621 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
17622 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
17623 (grub_video_setup): remove
17624 (grub_video_set_mode): new prototype
17625 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
17627 (linux_vesafb_res): compile only on PCBIOS
17628 (grub_linux_boot): support gfxpayload
17629 * loader/i386/pc/xnu.c (video_hook): new function
17630 (grub_xnu_set_video): support gfxpayload
17631 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
17632 (DEFAULT_VIDEO_HEIGHT): likewise
17633 (DEFAULT_VIDEO_FLAGS): likewise
17634 (DEFAULT_VIDEO_MODE): new definition
17635 (video_hook): new function
17636 (grub_gfxterm_init): use grub_video_set_mode
17637 * util/grub.d/30_os-prober.in: remove explicit modesetting before
17639 * video/video.c (grub_video_setup): removed
17640 (grub_video_set_mode): new function based on grub_gfxterm_init and
17643 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17645 Avoid calling biosdisk in drivemap
17647 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
17648 (revparse_biosdisk): likewise
17649 (list_mappings): derive name from id directly
17650 (grub_cmd_drivemap): use tryparse_diskstring
17652 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
17656 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
17657 (grub_lexer_param): add tokenonhold
17658 (grub_script_create_cmdline): remove cmdline. All callers updated
17659 (grub_script_function_create): make functionname
17660 grub_script_arg. All callers updated
17661 (grub_script_execute_argument_to_string): new prototype
17662 * kern/parser.c (state_transitions): reorder
17663 (grub_parser_cmdline_state): fix a bug and make more compact
17664 * script/sh/execute.c (grub_script_execute_argument_to_string):
17666 (grub_script_execute_cmdline): use new format
17667 * script/sh/function.c (grub_script_function_create): make functionname
17668 grub_script_arg. All callers updated
17669 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
17670 (grub_script_yylex): remove
17671 (grub_script_yylex2): renamed to ...
17672 (grub_script_yylex): ...renamed
17673 parse the expressions like a${b}c
17674 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
17675 (GRUB_PARSER_TOKEN_VAR): remove
17676 (GRUB_PARSER_TOKEN_NAME): likewise
17677 ("if"): declare as typeless
17678 ("while"): likewise
17679 ("function"): likewise
17684 (argument): likewise
17685 (script): accept empty scripts and make exit on error
17686 (arguments): use GRUB_PARSER_TOKEN_ARG
17687 (function): likewise
17688 (command): move error handling to script
17689 (menuentry): move grub_script_lexer_ref before
17690 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
17691 argument. All callers updated
17693 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
17695 Prevent GRUB from probing floppies during boot.
17697 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
17698 * commands/search.c (options): Add --no-floppy.
17699 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
17700 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
17701 --no-floppy when searching for UUIDs.
17703 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
17705 Simplify the code duplication in commands/search.c.
17707 * commands/search.c (search_label, search_fs_uuid): Merge into ...
17708 (search_fs): ... this. Update all users.
17710 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
17712 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
17714 2009-05-28 Pavel Roskin <proski@gnu.org>
17716 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
17717 Remove the original symlink explicitly.
17719 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
17720 just one slash. That's how grub_fshelp_find_file() does it.
17722 2009-05-26 Pavel Roskin <proski@gnu.org>
17724 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
17727 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
17730 2009-05-25 Christian Franke <franke@computer.org>
17732 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
17734 (grub_atapi_identify): Add wait after drive select.
17735 (grub_ata_identify): Do more strict status register check before
17736 calling grub_atapi_identify (). Suppress error message if status
17737 register is 0x00 after command failure. Add status register
17738 check after PIO read to avoid bogus identify due to stuck DRQ.
17739 Thanks to Pavel Roskin for testing.
17740 (grub_device_initialize): Remove unsafe status register check.
17741 Thanks to 'phcoder' for problem report and patch.
17742 Prevent sign extension in debug message.
17744 2009-05-23 Colin D Bennett <colin@gibibit.com>
17746 Cleaned up `include/grub/normal.h'. Grouped prototypes by
17747 definition file, and functions defined in `normal/menu.c' have had
17748 their prototypes moved to `include/grub/menu.h' for consistency.
17750 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
17752 (grub_menu_get_entry): Likewise.
17753 (grub_menu_get_timeout): Likewise.
17754 (grub_menu_set_timeout): Likewise.
17755 (grub_menu_execute_entry): Likewise.
17756 (grub_menu_execute_with_fallback): Likewise.
17757 (grub_menu_entry_run): Likewise.
17759 * include/grub/normal.h: Re-ordered and grouped function
17760 prototypes by file that the function is defined in.
17761 (grub_menu_execute_callback): Removed; moved to menu.h.
17762 (grub_menu_get_entry): Likewise.
17763 (grub_menu_get_timeout): Likewise.
17764 (grub_menu_set_timeout): Likewise.
17765 (grub_menu_execute_entry): Likewise.
17766 (grub_menu_execute_with_fallback): Likewise.
17767 (grub_menu_entry_run): Likewise.
17768 (grub_menu_addentry): Renamed from this ...
17769 (grub_normal_add_menu_entry): ... to this.
17771 * normal/main.c (grub_menu_addentry): Renamed from this ...
17772 (grub_normal_add_menu_entry): ... to this.
17774 * script/sh/execute.c (grub_script_execute_menuentry): Update
17775 reference to renamed grub_menu_addentry function.
17777 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
17779 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
17781 2009-05-22 Pavel Roskin <proski@gnu.org>
17783 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
17784 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
17785 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
17786 compiling for the i386 targets, but not for the utilities.
17788 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
17790 (grub_root_drive): Likewise.
17791 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
17793 (grub_root_drive): Change size to byte.
17794 (grub_start_addr): Remove.
17795 (grub_end_addr): Likewise.
17796 (grub_apm_bios_info): Likewise.
17798 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
17800 * normal/i386: Remove.
17801 * normal/powerpc: Likewise.
17802 * normal/sparc64: Likewise.
17803 * normal/x86_64: Likewise.
17805 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
17807 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
17808 * loader/i386/linux_trampoline.S: Fix indentation
17809 * loader/i386/xnu_helper.S: Likewise
17811 2009-05-18 Colin D Bennett <colin@gibibit.com>
17813 Display error messages when parsing a Lua statement fails.
17814 Previously, executing a syntactically invalid statement like
17815 ")foo" or "bar;" would silently fail.
17817 * script/lua/grub_main.c (handle_lua_error): New function.
17818 (grub_lua_parse_line): Improved reporting of Lua parser and
17821 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17823 Remove -Werror which causes build to fail on some systems
17825 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
17826 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
17827 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
17829 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
17831 trampoline for linux on 64-bit platform
17833 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
17834 loader/i386/efi/linux_trampoline.S
17835 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
17837 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
17839 * loader/i386/linux_trampoline.S: moved here
17840 * loader/i386/efi/linux.c (allocate_pages): reserve space for
17842 (jumpvector): removed
17843 (grub_linux_trampoline_start): new declaration
17844 (grub_linux_trampoline_end): likewise
17845 (grub_linux_boot): use trampoline when on 64-bit platform
17846 * loader/i386/linux.c: likewise
17848 2009-05-16 Pavel Roskin <proski@gnu.org>
17850 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
17851 const to avoid a warning.
17852 (grub_lua_setenv): Likewise.
17853 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
17854 lmsg to fix a warning.
17856 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
17858 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
17859 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
17860 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
17861 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
17862 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
17863 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
17864 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
17865 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
17867 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
17869 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
17871 2009-05-16 Bean <bean123ch@gmail.com>
17873 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
17874 (lua_mod_SOURCES): New variable.
17875 (lua_mod_CFLAGS): Likewise.
17876 (lua_mod_LDFLAGS): Likewise.
17878 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
17879 (setjmp_mod_SOURCES): New variable.
17880 (setjmp_mod_CFLAGS): Likewise.
17881 (setjmp_LDFLAGS): Likewise.
17883 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
17884 (setjmp_mod_SOURCES): New variable.
17885 (setjmp_mod_CFLAGS): Likewise.
17886 (setjmp_LDFLAGS): Likewise.
17888 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
17889 (setjmp_mod_SOURCES): New variable.
17890 (setjmp_mod_CFLAGS): Likewise.
17891 (setjmp_LDFLAGS): Likewise.
17893 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
17894 (setjmp_mod_SOURCES): New variable.
17895 (setjmp_mod_CFLAGS): Likewise.
17896 (setjmp_LDFLAGS): Likewise.
17898 * normal/i386/setjmp.S: Moved from here ...
17899 * lib/i386/setjmp.S: ... Moved here
17900 * normal/x86_64/setjmp.S: Moved from here ...
17901 * lib/x86_64/setjmp.S: ... Moved here
17902 * normal/powerpc/setjmp.S: Moved from here ...
17903 * lib/powerpc/setjmp.S: ... Moved here
17904 * normal/sparc64/setjmp.S: Moved from here ...
17905 * lib/sparc64/setjmp.S: ... Moved here
17907 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
17908 returns_twice in mingw.
17910 * script/lua/grub_lib.c: New file.
17911 * script/lua/grub_lib.h: Likewise.
17912 * script/lua/grub_lua.h: Likewise.
17913 * script/lua/grub_main.c: Likewise.
17914 * script/lua/lapi.c: Likewise.
17915 * script/lua/lapi.h: Likewise.
17916 * script/lua/lauxlib.c: Likewise.
17917 * script/lua/lauxlib.h: Likewise.
17918 * script/lua/lbaselib.c: Likewise.
17919 * script/lua/lcode.c: Likewise.
17920 * script/lua/lcode.h: Likewise.
17921 * script/lua/ldblib.c: Likewise.
17922 * script/lua/ldebug.c: Likewise.
17923 * script/lua/ldebug.h: Likewise.
17924 * script/lua/ldo.c: Likewise.
17925 * script/lua/ldo.h: Likewise.
17926 * script/lua/ldump.c: Likewise.
17927 * script/lua/lfunc.c: Likewise.
17928 * script/lua/lfunc.h: Likewise.
17929 * script/lua/lgc.c: Likewise.
17930 * script/lua/lgc.h: Likewise.
17931 * script/lua/linit.c: Likewise.
17932 * script/lua/liolib.c: Likewise.
17933 * script/lua/llex.c: Likewise.
17934 * script/lua/llex.h: Likewise.
17935 * script/lua/llimits.h: Likewise.
17936 * script/lua/lmathlib.c: Likewise.
17937 * script/lua/lmem.c: Likewise.
17938 * script/lua/lmem.h: Likewise.
17939 * script/lua/loadlib.c: Likewise.
17940 * script/lua/lobject.c: Likewise.
17941 * script/lua/lobject.h: Likewise.
17942 * script/lua/lopcodes.c: Likewise.
17943 * script/lua/lopcodes.h: Likewise.
17944 * script/lua/loslib.c: Likewise.
17945 * script/lua/lparser.c: Likewise.
17946 * script/lua/lparser.h: Likewise.
17947 * script/lua/lstate.c: Likewise.
17948 * script/lua/lstate.h: Likewise.
17949 * script/lua/lstring.c: Likewise.
17950 * script/lua/lstring.h: Likewise.
17951 * script/lua/lstrlib.c: Likewise.
17952 * script/lua/ltable.c: Likewise.
17953 * script/lua/ltable.h: Likewise.
17954 * script/lua/ltablib.c: Likewise.
17955 * script/lua/ltm.c: Likewise.
17956 * script/lua/ltm.h: Likewise.
17957 * script/lua/lua.h: Likewise.
17958 * script/lua/luaconf.h: Likewise.
17959 * script/lua/lualib.h: Likewise.
17960 * script/lua/lundump.c: Likewise.
17961 * script/lua/lundump.h: Likewise.
17962 * script/lua/lvm.c: Likewise.
17963 * script/lua/lvm.h: Likewise.
17964 * script/lua/lzio.c: Likewise.
17965 * script/lua/lzio.h: Likewise.
17967 2009-05-16 Bean <bean123ch@gmail.com>
17969 * include/grub/kernel.h (grub_module_header_types): Add type
17972 * kern/main.c (grub_load_config): New function.
17973 (grub_main): Call grub_load_config to read boot config.
17975 * grub-mkimage (generate_image): New parameter config_path.
17976 (options): New option --config.
17977 (main): Parse --config option, and pass it to generate_image.
17979 2009-05-14 Christian Franke <franke@computer.org>
17981 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
17982 This fixes build on Cygwin.
17984 2009-05-14 Pavel Roskin <proski@gnu.org>
17986 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
17987 jump. This saves two bytes, so the typical case of 2 swapped
17988 drives would fit 32 bytes.
17990 2009-05-13 Pavel Roskin <proski@gnu.org>
17992 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
17993 grub_uint32_t to avoid a warning.
17995 * loader/i386/linux.c (allocate_pages): When assigning
17996 real_mode_mem, cast through grub_size_t to fix a warning. The
17997 code already makes sure that the value would fit a pointer.
17998 (grub_linux_setup_video): Cast render_target->data to
17999 grub_size_t to fix a warning.
18001 2009-05-13 Javier Martín <lordhabbit@gmail.com>
18003 * commands/i386/pc/drivemap.c: New file - implement drivemap
18005 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
18006 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
18008 2009-05-13 Pavel Roskin <proski@gnu.org>
18010 * util/i386/pc/grub-setup.c (setup): Remove unused variable
18011 embedding_area_exists.
18013 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
18015 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
18016 it easier to understand / work with.
18017 Improve warning messages for cases where there's no embedding area,
18018 or when it is too small (or core.img too large).
18020 2009-05-13 Pavel Roskin <proski@gnu.org>
18022 * loader/i386/pc/multiboot2.c: Add necessary includes for
18023 grub_multiboot2_real_boot().
18025 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
18026 PX record is always little-endian. We only need the lower 2
18029 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
18030 facilitate code reuse.
18031 (grub_cpio_mount): Use "struct head", not a char buffer. This
18032 fixes a warning reported by gcc 4.4.
18034 * kernel/disk.c (grub_disk_read): Use void pointer for the
18036 (grub_disk_write): Use const void pointer for the buffer.
18037 Adjust all callers. Remove unnecessary casts.
18039 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
18041 * util/i386/pc/grub-install.in: Update copyright year.
18043 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18047 * commands/gptsync.c: new file
18048 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
18049 (gptsync_mod_SOURCES): new variable
18050 (gptsync_mod_CFLAGS): likewise
18051 (gptsync_mod_LDFLAGS): likewise
18052 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
18054 (GRUB_PC_PARTITION_TYPE_HFS): likewise
18055 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
18056 * conf/i386-ieee1275.rmk: likewise
18057 * conf/i386-pc.rmk: likewise
18058 * conf/powerpc-ieee1275.rmk: likewise
18060 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
18064 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
18065 (grub_dl_ref): likewise
18067 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
18069 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
18070 split in two functions (one for msdos and one for gpt).
18072 2009-05-08 Pavel Roskin <proski@gnu.org>
18074 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
18077 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
18078 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
18079 Initialize them with -1. Add sanity check for bad1. Eliminate
18082 2009-05-08 David S. Miller <davem@davemloft.net>
18084 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
18086 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
18088 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
18091 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
18093 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
18094 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
18096 2009-05-05 David S. Miller <davem@davemloft.net>
18098 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
18100 2009-05-05 Pavel Roskin <proski@gnu.org>
18102 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
18103 of grub_dl_ref() and grub_dl_unref().
18104 * commands/parttool.c: Remove preprocessor conditionals around
18105 grub_dl_ref() and grub_dl_unref().
18106 * fs/affs.c: Likewise.
18107 * fs/afs.c: Likewise.
18108 * fs/cpio.c: Likewise.
18109 * fs/ext2.c: Likewise.
18110 * fs/fat.c: Likewise.
18111 * fs/hfs.c: Likewise.
18112 * fs/hfsplus.c: Likewise.
18113 * fs/iso9660.c: Likewise.
18114 * fs/jfs.c: Likewise.
18115 * fs/minix.c: Likewise.
18116 * fs/ntfs.c: Likewise.
18117 * fs/reiserfs.c: Likewise.
18118 * fs/sfs.c: Likewise.
18119 * fs/udf.c: Likewise.
18120 * fs/ufs.c: Likewise.
18121 * fs/xfs.c: Likewise.
18122 * include/grub/dl.h: Likewise.
18123 * loader/xnu.c: Likewise.
18125 2009-05-04 Pavel Roskin <proski@gnu.org>
18127 * commands/acpi.c: Remove unused variable my_mod.
18128 * partmap/amiga.c: Likewise.
18129 * partmap/apple.c: Likewise.
18130 * partmap/gpt.c: Likewise.
18131 * partmap/pc.c: Likewise.
18132 * partmap/sun.c: Likewise.
18133 * term/gfxterm.c: Likewise.
18134 * term/i386/pc/vesafb.c: Likewise.
18135 * term/i386/pc/vga.c: Likewise.
18137 2009-05-04 David S. Miller <davem@davemloft.net>
18139 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
18140 pointer args to grub_ieee1275_get_property().
18142 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
18144 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
18145 devices, and do not traverse down under controller nodes.
18147 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
18148 (grub_ofdisk_open): Use it to un-escape "," characters.
18149 * kern/disk.c (find_part_sep): New.
18150 (grub_disk_open): Use it to find the first non-escaped ','
18151 character in the disk name.
18152 * util/ieee1275/devicemap.c (escape_of_path): New.
18153 (grub_util_emit_devicemap_entry): Use it.
18154 * util/sparc64/ieee1275/grub-install.in: Update script to
18155 strip partition specifiers properly by not triggering on
18156 '\' escaped ',' characters.
18158 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18160 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
18162 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
18164 (linux_vesafb_modes): Add a lot of additional modes to the list (based
18165 on documentation from Wikipedia).
18167 2009-05-04 Pavel Roskin <proski@gnu.org>
18169 * disk/ata.c: Spelling fixes.
18170 * disk/raid.c: Likewise.
18171 * disk/usbms.c: Likewise.
18172 * disk/dmraid_nvidia.c: Likewise.
18173 * kern/ieee1275/openfw.c: Likewise.
18174 * kern/ieee1275/init.c: Likewise.
18175 * kern/ieee1275/cmain.c: Likewise.
18176 * boot/i386/pc/cdboot.S: Likewise.
18177 * video/readers/png.c: Likewise.
18178 * video/i386/pc/vbe.c: Likewise.
18179 * fs/udf.c: Likewise.
18180 * fs/hfs.c: Likewise.
18181 * fs/reiserfs.c: Likewise.
18182 * efiemu/runtime/efiemu.c: Likewise.
18183 * efiemu/main.c: Likewise.
18184 * efiemu/mm.c: Likewise.
18185 * include/grub/elf.h: Likewise.
18186 * include/grub/xnu.h: Likewise.
18187 * include/grub/usbdesc.h: Likewise.
18188 * include/grub/usb.h: Likewise.
18189 * include/grub/script_sh.h: Likewise.
18190 * include/grub/lib/LzmaEnc.h: Likewise.
18191 * include/grub/efiemu/efiemu.h: Likewise.
18192 * include/grub/command.h: Likewise.
18193 * normal/menu.c: Likewise.
18194 * normal/main.c: Likewise.
18195 * normal/datetime.c: Likewise.
18196 * bus/usb/uhci.c: Likewise.
18197 * mmap/i386/uppermem.c: Likewise.
18198 * mmap/mmap.c: Likewise.
18199 * commands/acpi.c: Likewise.
18200 * commands/test.c: Likewise.
18201 * partmap/apple.c: Likewise.
18202 * font/font.c: Likewise.
18203 * loader/sparc64/ieee1275/linux.c: Likewise.
18204 * loader/macho.c: Likewise.
18205 * loader/i386/bsd_trampoline.S: Likewise.
18206 * loader/i386/bsd.c: Likewise.
18207 * loader/xnu.c: Likewise.
18208 * term/i386/pc/vesafb.c: Likewise.
18209 * term/usb_keyboard.c: Likewise.
18210 * util/resolve.c: Likewise.
18211 * util/getroot.c: Likewise.
18213 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
18215 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
18217 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18219 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
18222 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18224 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
18225 parameter only available on BIOS.
18227 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
18229 Removed wrong semicolon in declaration
18231 * grub/misc.h (grub_dprintf): remove semicolon
18233 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18235 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
18236 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
18237 is done by grub_cmd_linux() now).
18238 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
18239 restore video to text mode.
18240 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
18241 indicates lack of "vga=" parameter. "vga=0" is mapped to
18242 `GRUB_LINUX_VID_MODE_NORMAL'.
18244 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
18246 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
18247 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
18248 and `normal/script.c'. Add `kern/rescue_reader.c',
18249 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
18250 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
18251 `grub_script.tab.c'.
18253 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18254 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
18255 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18256 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
18257 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
18259 * Makefile.in: Remove duplicated 2008 in Copyright line.
18261 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
18263 * util/misc.c (grub_util_warn): New function. Emits a warning
18265 * include/grub/util/misc.h (grub_util_warn): New declaration.
18267 * util/i386/pc/grub-install.in: Understand --force and pass it down
18270 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
18272 (setup): Improve error messages and add warnings when requested to
18273 install in odd layouts. Refuse to install using blocklists unless
18276 2009-05-04 martin f. krafft <madduck@madduck.net>
18278 * disk/raid.c (grub_raid_scan_device): Improve debug message.
18280 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
18282 Updated copyright year
18284 * fs/hfsplus.c: updated copyright year
18286 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
18290 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
18291 in the space previously used by unused3
18292 (grub_hfsplus_uuid): new function
18293 (grub_hfsplus_fs): added uuid field
18295 2009-05-03 Pavel Roskin <proski@gnu.org>
18297 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
18298 suppress warnings. It's no longer needed.
18299 * disk/host.c: Likewise.
18300 * disk/ata_pthru.c: Likewise.
18301 * disk/loopback.c: Likewise.
18302 * hook/datehook.c: Likewise.
18303 * parttool/pcpart.c: Likewise.
18304 * fs/i386/pc/pxe.c: Likewise.
18305 * fs/ntfscomp.c: Likewise.
18306 * efiemu/main.c: Likewise.
18307 * mmap/mmap.c: Likewise.
18308 * commands/crc.c: Likewise.
18309 * commands/hexdump.c: Likewise.
18310 * commands/hdparm.c: Likewise.
18311 * commands/acpi.c: Likewise.
18312 * commands/echo.c: Likewise.
18313 * commands/minicmd.c: Likewise.
18314 * commands/blocklist.c: Likewise.
18315 * commands/memrw.c: Likewise.
18316 * commands/loadenv.c: Likewise.
18317 * commands/usbtest.c: Likewise.
18318 * commands/lsmmap.c: Likewise.
18319 * commands/boot.c: Likewise.
18320 * commands/parttool.c: Likewise.
18321 * commands/configfile.c: Likewise.
18322 * commands/search.c: Likewise.
18323 * commands/ieee1275/suspend.c: Likewise.
18324 * commands/cat.c: Likewise.
18325 * commands/i386/pc/pxecmd.c: Likewise.
18326 * commands/i386/pc/play.c: Likewise.
18327 * commands/i386/pc/halt.c: Likewise.
18328 * commands/i386/pc/vbeinfo.c: Likewise.
18329 * commands/i386/pc/vbetest.c: Likewise.
18330 * commands/lspci.c: Likewise.
18331 * commands/date.c: Likewise.
18332 * commands/handler.c: Likewise.
18333 * commands/ls.c: Likewise.
18334 * commands/test.c: Likewise.
18335 * commands/cmp.c: Likewise.
18336 * commands/efi/loadbios.c: Likewise.
18337 * commands/efi/fixvideo.c: Likewise.
18338 * commands/halt.c: Likewise.
18339 * commands/help.c: Likewise.
18340 * commands/reboot.c: Likewise.
18341 * hello/hello.c: Likewise.
18342 * script/sh/main.c: Likewise.
18343 * loader/xnu.c: Likewise.
18344 * term/terminfo.c: Likewise.
18345 * term/i386/pc/serial.c: Likewise.
18346 * term/usb_keyboard.c: Likewise.
18348 2009-05-03 David S. Miller <davem@davemloft.net>
18350 * normal/menu.c: Include grub/parser.h
18352 2009-05-03 Pavel Roskin <proski@gnu.org>
18354 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
18356 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
18357 Suggested by Javier Martín <lordhabbit@gmail.com>
18359 * util/i386/pc/grub-mkrescue.in: Allow for the case when
18360 efiemu??.o doesn't exist.
18361 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
18364 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
18366 FreeBSD 64-bit support
18368 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
18369 and loader/i386/bsd_trampoline.S
18370 (bsd_mod_ASFLAGS): new variable
18371 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
18372 (FREEBSD_MODTYPE_KERNEL64): likewise
18373 (grub_bsd64_trampoline_start): likewise
18374 (grub_bsd64_trampoline_end): likewise
18375 (grub_bsd64_trampoline_selfjump): likewise
18376 (grub_bsd64_trampoline_gdt): likewise
18377 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
18378 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
18379 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
18380 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
18381 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
18383 * loader/i386/bsd_pagetable.c: new file
18384 * loader/i386/bsd_trampoline.S: likewise
18385 * loader/i386/bsd.c (ALIGN_QWORD): new macro
18386 (ALIGN_VAR): likewise
18387 (entry_hi): new variable
18388 (kern_end_mdofs): likewise
18389 (is_64bit): likewise
18390 (grub_freebsd_add_meta): use ALIGN_VAR
18391 (grub_e820_mmap): new declaration
18392 (grub_freebsd_add_mmap): new function
18393 (grub_freebsd_add_meta_module): support 64 bit kernels
18394 (grub_freebsd_list_modules): use ALIGN_VAR
18395 (gdt_descriptor): new declaration
18396 (grub_freebsd_boot): support 64 bit kernels
18397 (grub_bsd_elf64_hook): new function
18398 (grub_bsd_load_elf): support elf64
18400 2009-05-03 Bean <bean123ch@gmail.com>
18402 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
18403 after we get the result of if statement.
18405 2009-05-03 Bean <bean123ch@gmail.com>
18407 * Makefile.in (enable_efiemu): New variable.
18409 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
18411 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
18413 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
18414 path, add -mno-red-zone option.
18415 (efiemu64_s.o): Likewise.
18416 (efiemu64.o): Use macro $^ for source file.
18418 * configure.ac (--enable-efiemu): New option.
18420 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
18424 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
18425 (pkglib_MODULES): add xnu.mod
18426 (xnu_mod_SOURCES): new variable
18427 (xnu_mod_CFLAGS): likewise
18428 (xnu_mod_LDFLAGS): likewise
18429 (xnu_mod_ASFLAGS): likewise
18430 * conf/i386-pc.rmk: likewise
18431 * conf/x86_64-efi.rmk: likewise
18432 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
18434 * include/grub/i386/macho.h: new file
18435 * include/grub/i386/xnu.h: likewise
18436 * include/grub/macho.h: likewise
18437 * include/grub/machoload.h: likewise
18438 * include/grub/x86_64/macho.h: likewise
18439 * include/grub/x86_64/xnu.h: likewise
18440 * include/grub/xnu.h: likewise
18441 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
18442 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
18443 * loader/i386/efi/xnu.c: new file
18444 * loader/i386/pc/xnu.c: likewise
18445 * loader/i386/xnu.c: likewise
18446 * loader/i386/xnu_helper.S: likewise
18447 * loader/macho.c: likewise
18448 * loader/xnu.c: likewise
18449 * loader/xnu_resume.c: likewise
18450 * util/grub-dumpdevtree: likewise
18451 * include/grub/i386/pit.h: include grub/err.h
18452 (grub_pit_wait): export
18453 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
18455 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18459 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
18460 _linux_efi, linux_efi.
18461 new files in grub-emu
18462 new targets efiemu32.o and efiemu64.o
18463 * loader/linux_normal_efiemu.c: likewise
18464 * loader/i386/efi/linux.c: added preliminary efiemu support
18465 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
18467 * include/grub/autoefi.h: new file
18468 * include/grub/i386/efiemu.h: likewise
18469 * include/grub/i386/pc/efiemu.h: likewise
18470 * include/grub/efi/api.h: add LL suffix when necessary
18471 new definitions relating to tables
18472 * include/grub/efiemu/efiemu.h: new file
18473 * include/grub/efiemu/runtime.h: likewise
18474 * efiemu/prepare.c: likewise
18475 * efiemu/loadcore_common.c: likewise
18476 * efiemu/loadcore64.c: likewise
18477 * efiemu/runtime/efiemu.sh: likewise
18478 * efiemu/runtime/efiemu.S: likewise
18479 * efiemu/runtime/efiemu.c: likewise
18480 * efiemu/runtime/config.h: likewise
18481 * efiemu/prepare32.c: likewise
18482 * efiemu/main.c: likewise
18483 * efiemu/modules/pnvram.c: likewise
18484 * efiemu/modules/i386: likewise
18485 * efiemu/modules/i386/pc: likewise
18486 * efiemu/modules/acpi.c: likewise
18487 * efiemu/i386/pc/cfgtables.c: likewise
18488 * efiemu/i386/loadcore64.c: likewise
18489 * efiemu/i386/loadcore32.c: likewise
18490 * efiemu/prepare64.c: likewise
18491 * efiemu/loadcore.c: likewise
18492 * efiemu/symbols.c: likewise
18493 * efiemu/mm.c: likewise
18494 * efiemu/loadcore32.c: likewise
18496 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18500 * commands/acpi.c: new file
18501 * commands/i386/pc/acpi.c: likewise
18502 * commands/efi/acpi.c: likewise
18503 * include/grub/acpi.h: likewise
18504 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
18505 (acpi_mod_SOURCES): new variable
18506 (acpi_mod_CFLAGS): likewise
18507 (acpi_mod_LDFLAGS): likewise
18508 * conf/i386-efi.rmk: likewise
18509 * conf/x86_64-efi.rmk: likewise
18511 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18513 Missing part from mmap patch
18515 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
18516 (grub_mmap_unregister)
18517 (grub_mmap_free_and_unregister): use grub_mmap_register
18519 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18523 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
18524 * loader/i386/linux.c (find_mmap_size): likewise
18525 (allocate_pages): likewise
18526 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
18527 (grub_fill_multiboot_mmap): likewise
18528 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
18529 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
18530 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
18531 (OPENBSD_MMAP_RESERVED): likewise
18532 * include/grub/i386/pc/memory.h: include grub/memory.h
18533 (grub_lower_mem): removed
18534 (grub_upper_mem): likewise
18535 (GRUB_MACHINE_MEMORY_ACPI): new definition
18536 (GRUB_MACHINE_MEMORY_NVS): likewise
18537 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
18538 (GRUB_MACHINE_MEMORY_HOLE): likewise
18539 (grub_machine_mmap_register): likewise
18540 (grub_machine_mmap_unregister): likewise
18541 (grub_machine_get_upper): likewise
18542 (grub_machine_get_lower): likewise
18543 (grub_machine_get_post64): likewise
18544 * include/grub/i386/efi/memory.h: new file
18545 * include/grub/x86_64/efi/memory.h: likewise
18546 * include/grub/efi/memory.h: likewise
18547 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
18548 (mmap_mod_SOURCES): new variable
18549 (mmap_mod_LDFLAGS): likewise
18550 (mmap_mod_ASFLAGS): likewise
18551 * conf/i386-coreboot.rmk: likewise
18552 * conf/i386-ieee1275.rmk: likewise
18553 * conf/i386-efi.rmk: likewise
18554 * conf/x86_64-efi.rmk: likewise
18555 * include/grub/types.h (UINT_TO_PTR): new macro
18556 (PTR_TO_UINT32): likewise
18557 (PTR_TO_UINT64): likewise
18558 * include/grub/memory.h: new file
18559 * mmap/i386/pc/mmap.c: likewise
18560 * mmap/i386/pc/mmap_helper.S: likewise
18561 * mmap/i386/uppermem.c: likewise
18562 * mmap/mmap.c: likewise
18563 * mmap/efi/mmap.c: likewise
18564 * kern/i386/coreboot/init.c (grub_machine_init): don't use
18566 * kern/i386/pc/init.c (grub_lower_mem): removed variable
18567 (grub_upper_mem): likewise
18568 (grub_machine_init): don't use grub_upper_mem,
18569 make grub_lower_mem local
18570 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
18571 grub_mmap_iterate and grub_mmap_get_upper
18572 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
18574 2009-05-02 Bean <bean123ch@gmail.com>
18576 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
18577 script/sh/parser.y.
18578 (pkglib_MODULES): Add normal.mod and sh.mod.
18579 (normal_SOURCES): New variable.
18580 (normal_mod_CFLAGS): Likewise.
18581 (normal_mod_LDFLAGS): Likewise.
18582 (sh_mod_SOURCES): Likewise.
18583 (sh_mod_CFLAGS): Likewise.
18584 (sh_mod_LDFLAGS): Likewise.
18586 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
18587 script/sh/lexer.c_DEPENDENCIES.
18588 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
18589 kern/rescue_reader.c and kern/rescue_parser.c.
18590 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
18591 (grub_emu_SOURCES): Change source files.
18592 (pkglib_MODULES): Remove normal.mod.
18593 (normal_SOURCES): Removed.
18594 (normal_mod_CFLAGS): Likewise.
18595 (normal_mod_LDFLAGS): Likewise.
18596 * conf/i386-coreboot.rmk: Likewise.
18597 * conf/i386-efi.rmk: Likewise.
18598 * conf/i386-ieee1276.rmk: Likewise.
18599 * conf/powerpc-ieee1275.rmk: Likewise.
18600 * conf/sparc64-ieee1275.rmk: Likewise.
18601 * conf/x86_64-efi.rmk: Likewise.
18603 * include/grub/command.h (grub_command_execute): New inline function.
18605 * include/grub/menu.h (grub_menu_entry): Removed commands field.
18607 * include/grub/normal.h: Remove <grub/setjmp.h>.
18608 (grub_fs_module_list): Moved to normal/autofs.c.
18609 (grub_exit_env): Removed.
18610 (grub_command_execute): Likewise.
18611 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
18613 (read_command_list): New function declaration.
18614 (read_fs_list): Likewise.
18616 * include/parser.h: Include <grub/reader.h>.
18617 (grub_parser_split_cmdline): Change type of getline parameter.
18618 (grub_parser): New structure.
18619 (grub_parser_class): New variable.
18620 (grub_parser_execute): New function declaration.
18621 (grub_register_rescue_parser): Likewise.
18622 (grub_parser_register): New inline function.
18623 (grub_parser_unregister): Likewise.
18624 (grub_parser_get_current): Likewise.
18625 (grub_parser_set_current): Likewise.
18627 * include/grub/reader.h: New file.
18628 * kern/reader.c: Likewise.
18629 * kern/rescue_parser.c: Likewise.
18630 * kern/rescue_reader.c: Likewise.
18631 * normal/autofs.c: Likewise.
18632 * normal/dyncmd.c: Likewise.
18634 * include/grub/rescue.h: Removed.
18635 * normal/command.h: Likewise.
18637 * include/grub/script.h: Moved to ...
18638 * include/grub/script_sh.h: ... Moved here.
18639 * normal/execute.c: Moved to ...
18640 * script/sh/execute.c: ... Moved here.
18641 * normal/function.c: Moved to ...
18642 * script/sh/function.c: ... Moved here.
18643 * normal/lexer.c: Moved to ...
18644 * script/sh/lexer.c: ... Moved here.
18645 * normal/parser.y: Moved to ...
18646 * script/sh/parser.y: ... Moved here.
18647 * normal/script.c: Moved to ...
18648 * script/sh/script.c: ... Moved here.
18650 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
18652 (grub_exit_env): Removed.
18653 (fs_module_list): Moved to normal/autofs.c.
18654 (grub_file_getline): Don't handle comment here.
18655 (free_menu): Skip removed field entry->commands.
18656 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
18658 (read_config_file): Removed nested parameter, change getline function.
18659 (grub_enter_normal_mode): Removed.
18660 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
18661 (read_command_list): Likewise.
18662 (autoload_fs_module): Moved to normal/autofs.c.
18663 (read_fs_list): Likewise.
18664 (reader_nested): New variable.
18665 (grub_normal_execute): Run parser.sh to switch to sh parser.
18666 (grub_cmd_rescue): Removed.
18667 (cmd_normal): Removed.
18668 (grub_cmd_normal): Unregister itself at the beginning. Don't register
18670 (grub_cmdline_run): New function.
18671 (grub_normal_reader_init): Likewise.
18672 (grub_normal_read_line): Likewise.
18673 (grub_env_write_pager): Likewise.
18674 (cmdline): New variable.
18675 (grub_normal_reader): Likewise.
18676 (GRUB_MOD_INIT): Register normal reader and set as current, register
18677 pager hook, register normal command with grub_register_command_prio,
18678 so that it won't show up in command.lst.
18679 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
18680 grub_fs_autoload_hook.
18682 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
18683 (grub_menu_execute_entry): Replace grub_script_execute with
18684 grub_parser_execute, change parameter to grub_command_execute.
18686 * normal/menu_text.c: Remove <grub/script.h>.
18688 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
18689 and <grub/parser.h>.
18690 (run): Change editor_getline to use new parser interface. Change
18691 parameter to grub_command_execute.
18693 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
18694 <grub/reader.h> and <grub/parser.h>.
18695 (grub_load_normal_mode): Execute normal command.
18696 (grub_main): Call grub_register_core_commands,
18697 grub_register_rescue_parser and grub_register_rescue_reader, use
18698 grub_reader_loop to enter input loop.
18700 * kern/parser.c (grub_parser_split_cmdline): Change type of
18702 (grub_parser_class): New variable.
18703 (grub_parser_execute): New function.
18705 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
18706 * loader/multiboot2.c: Likewise.
18707 * loader/sparc64/ieee1275/linux.c: Likewise.
18709 * util/grub-emu.c (read_command_list): New dummy function.
18711 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
18713 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
18714 count to 16 for CCISS and IDA.
18716 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
18718 * normal/menu_text.c (grub_wait_after_message): Print a newline
18719 after waiting for user input.
18721 * loader/i386/linux.c: Include `<grub/normal.h>'.
18722 (grub_cmd_linux): Improve the error message about `ask' mode, by
18723 waiting for user input so it's not missed (we can do this, since
18724 user requested interaction).
18726 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
18728 Added missing lst to grub-mkrescue
18730 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
18731 and ${input_dir}/parttool.lst
18733 2009-04-30 David S. Miller <davem@davemloft.net>
18735 * util/hostdisk.c (device_is_wholedisk): New function.
18736 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
18737 zero only if device_is_wholedisk() returns true.
18739 * util/hostdisk.c (convert_system_partition_to_system_disk):
18740 Handle virtual disk devices named /dev/vdiskX as found on sparc
18743 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
18744 lettered partition specifier is found, convert to numbered.
18746 2009-04-29 David S. Miller <davem@davemloft.net>
18748 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
18749 * include/grub/sparc64/ieee1275/memory.h: Likewise.
18751 * normal/command.c: Add missing newline at end of file.
18753 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
18755 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
18756 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
18757 grub_ofdisk_read): Likewise, and deal similarly with the fact that
18758 ihandles have a 32-bit type but need to be stored in a "void *".
18760 2009-04-28 Pavel Roskin <proski@gnu.org>
18762 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
18763 not disk. Adjust all dependencies.
18764 (grub_fs_uuid_close): Use grub_device_close(), not
18767 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
18768 parent's partition, don't copy it by reference, as it gets freed
18771 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
18773 Preboot hooks support
18775 * commands/boot.c (struct grub_preboot_t): new declaration
18776 (preboots_head): new variable
18777 (preboots_tail): likewise
18778 (grub_loader_register_preboot_hook): new function
18779 (grub_loader_unregister_preboot_hook): likewise
18780 (grub_loader_set): launch preboot hooks
18781 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
18782 (grub_loader_register_preboot_hook): new declaration
18783 (grub_loader_unregister_preboot_hook): likewise
18785 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
18789 * disk/scsi.c (grub_scsi_open): added missing cast when
18790 calling grub_dprintf
18792 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
18794 Bug and warning fixes
18796 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
18798 * commands/test.c (test_parse): fixed bug with file tests and corrected
18799 declaration of find_file
18801 2009-04-26 Pavel Roskin <proski@gnu.org>
18803 * Makefile.in: Don't install empty manual pages if help2man is
18804 missing. Use help2man option for output, not shell redirection.
18806 2009-04-26 David S. Miller <davem@davemloft.net>
18808 * util/grub-mkdevicemap.c (make_device_map): Add missing
18809 NESTED_FUNC_ATTR to process_device().
18811 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18815 * commands/test.c: rewritten to use bash-like test
18817 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
18819 Parttool autoloading and improvements
18821 * Makefile.in (pkglib_DATA): add parttool.lst
18822 (parttool.lst): new target
18823 * genmk.rb: generate parttool-*
18824 (CLEANFILES): add #{parttool}
18825 (PARTTOOLFILES): new variable
18826 * genparttoollist.sh: new file
18827 * parttool/pcpart.c (grub_pcpart_boot): more feedback
18828 (grub_pcpart_type): likewise
18829 * commands/parttool.c (helpmsg): new variable
18830 (grub_cmd_parttool): output help if not enough arguments are supplied
18832 (GRUB_MOD_INIT(parttool)): use helpmsg
18834 2009-04-24 David S. Miller <davem@davemloft.net>
18836 Avoiding opening same device multiple times in device iterator.
18838 * kern/device.c: (grub_device_iterate): Define struct part_ent,
18839 and use it to build a list of partitions in iterate_disk() and
18840 iterate_partition().
18842 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
18845 * disk/ieee1275/nand.c (grub_nand_iterate): Return
18846 grub_devalias_iterate() result instead of unconditional 0.
18847 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
18848 Also, capture hook return value, either directly or via
18849 grub_children_iterate(), and propagate to caller.
18850 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
18851 grub_children_iterate): Return value is now 'int' instead of
18853 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
18854 like a proper iterator, stopping when hooks return non-zero.
18855 (grub_devalias_iterate): Likewise.
18857 2009-04-23 David S. Miller <davem@davemloft.net>
18859 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
18861 2009-04-22 David S. Miller <davem@davemloft.net>
18863 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
18864 is larger than address_cells, use that value for address_cells too.
18866 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
18867 IEEE1275_MAX_PATH_LEN): Define.
18868 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
18869 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
18870 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
18871 'devtype'. Explicitly NULL terminate devalias expansion.
18873 * util/sparc64/ieee1275/misc.c: New file.
18874 * util/sparc64/ieee1275/grub-setup.c: New file.
18875 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
18876 * util/sparc64/ieee1275/grub-mkimage.c: New file.
18877 * util/sparc64/ieee1275/grub-install.in: New file.
18878 * util/ieee1275/ofpath.c: New file.
18879 * util/ieee1275/devicemap.c: New file.
18880 * util/devicemap.c: New file.
18881 * util/deviceiter.c: New file.
18882 * kern/sparc64/ieee1275/init.c: New file.
18883 * include/grub/util/ofpath.h: New file.
18884 * include/grub/util/deviceiter.h: New file.
18885 * util/grub-mkdevicemap.c: Include deviceiter.h.
18886 Implement using grub_util_emit_devicemap_entry and
18887 grub_util_iterate_devices.
18888 * conf/i386-corebook.rmk: Build util/deviceiter.c and
18889 util/devicemap.c into grub-mkdevicemap
18890 * conf/i386-efi.rmk: Likewise.
18891 * conf/i386-ieee1275.rmk: Likewise.
18892 * conf/i386-pc.rmk: Likewise.
18893 * conf/powerpc-ieee1275.rmk: Likewise.
18894 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
18895 images and installation utilities. Build kernel as image
18896 instead of as elf binary. Use common rules as much as possible.
18898 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
18900 Correct GPT definition
18902 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
18905 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
18907 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
18909 2009-04-19 David S. Miller <davem@davemloft.net>
18911 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
18912 (grub_rescue_cmd_linux): Rename to...
18913 (grub_cmd_linux): and fix prototype.
18914 (grub_rescue_cmd_initrd): Rename to...
18915 (grub_cmd_initrd): and fix prototype.
18916 (cmd_linux, cmd_initrd): New.
18917 (GRUB_MOD_INIT(linux)): Use grub_register_command().
18918 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
18920 2009-04-17 Pavel Roskin <proski@gnu.org>
18922 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
18924 (grub_ohci_transfer): Likewise.
18926 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
18928 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
18929 return without a value. Fix inconsistent indentation.
18931 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
18932 match struct grub_fs.
18934 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
18935 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
18936 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
18937 * commands/lspci.c (grub_lspci_iter): Likewise.
18939 2009-04-16 Bean <bean123ch@gmail.com>
18941 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
18944 2009-04-15 Pavel Roskin <proski@gnu.org>
18946 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
18947 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
18948 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
18951 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
18953 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
18954 that no multiple data or metadata areas are supported and `Unknown
18957 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
18959 Move loader out of the kernel
18961 * kern/loader.c: moved to ...
18962 * commands/boot.c: ... moved here
18963 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
18964 * commands/boot.c (grub_cmd_boot): moved here. All users updated
18965 * include/grub/kernel.h (grub_machine_fini): export
18966 * include/grub/loader.h (grub_loader_is_loaded): update declaration
18967 (grub_loader_set): likewise
18968 (grub_loader_unset): likewise
18969 (grub_loader_boot): likewise
18970 * conf/common.rmk: new module boot.mod
18971 (pkglib_MODULES): add boot.mod
18972 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
18973 (grub_emu_SOURCES): likewise
18974 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
18975 (grub_emu_SOURCES): likewise
18976 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
18977 (grub_emu_SOURCES): likewise
18978 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
18979 (grub_emu_SOURCES): likewise
18980 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
18981 (grub_emu_SOURCES): likewise
18982 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
18983 (grub_emu_SOURCES): likewise
18984 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
18985 (grub_emu_SOURCES): likewise
18987 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
18989 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
18991 * kern/misc.c (grub_itoa): Removed function
18992 (grub_ltoa): likewise
18993 (grub_vsprintf): use grub_lltoa
18995 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
18999 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
19000 * conf/i386-coreboot.rmk: likewise
19001 * conf/i386-ieee1275.rmk: likewise
19002 * conf/powerpc-ieee1275.rmk: likewise
19004 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
19006 * INSTALL: Add that `./autogen.sh' needs to be run before
19009 2009-04-14 Bean <bean123ch@gmail.com>
19011 * Makefile.in (pkglib_DATA): Add handler.lst.
19012 (handler.lst): New rule.
19014 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
19015 * conf/i386-coreboot.rmk: Likewise.
19016 * conf/i386-ieee1275.rmk: Likewise.
19017 * conf/i386-efi.rmk: Likewise.
19018 * conf/x86_64-efi.rmk: Likewise.
19019 * conf/powerpc-ieee1275.rmk: Likewise.
19020 * conf/sparc64-ieee1275.rmk: Likewise.
19022 * genhandlerlist.sh: New file.
19024 * genmk.rb: Add rules to generate handler.lst.
19026 * include/grub/normal.h (grub_file_getline): New function definition.
19027 (read_handler_list): Likewise.
19028 (free_handler_list): Likewise.
19030 * include/grub/term.h (grub_term_register_input): Add name parameter
19031 for auto generation of handler.lst.
19032 (grub_term_register_output): Likewise.
19034 * normal/handler.c: New file.
19036 * normal/main.c (get_line): Renamed to grub_file_getline.
19037 (read_config_file): Use the newly renamed grub_file_getline.
19038 (read_command_list): Likewise.
19039 (read_fs_list): Likewise.
19040 (grub_normal_execute): Call read_handler_list to parse handler.lst.
19041 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
19043 * term/efi/console.c (grub_console_init): Add name parameter for auto
19044 generation of handler.lst.
19045 * term/gfxterm.c: Likewise.
19046 * term/i386/pc/at_keyboard.c: Likewise.
19047 * term/i386/pc/console.c: Likewise.
19048 * term/i386/pc/serial.c: Likewise.
19049 * term/i386/pc/vesafb.c: Likewise.
19050 * term/i386/pc/vga.c: Likewise.
19051 * term/i386/pc/vga_text.c: Likewise.
19052 * term/ieee1275/ofconsole.c: Likewise.
19053 * term/usb_keyboard.c: Likewise.
19055 2009-04-14 Bean <bean123ch@gmail.com>
19057 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
19058 properly with null character.
19060 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
19062 * configure: Remove.
19063 * config.h.in: Likewise.
19064 * stamp-h.in: Likewise.
19065 * DISTLIST: Likewise.
19066 * conf/common.mk: Likewise.
19067 * conf/i386-coreboot.mk: Likewise.
19068 * conf/i386-efi.mk: Likewise.
19069 * conf/i386-ieee1275.mk: Likewise.
19070 * conf/i386.mk: Likewise.
19071 * conf/i386-pc.mk: Likewise.
19072 * conf/powerpc-ieee1275.mk: Likewise.
19073 * conf/sparc64-ieee1275.mk: Likewise.
19074 * conf/x86_64-efi.mk: Likewise.
19076 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
19079 2009-04-14 John Stanley <jpsinthemix@verizon.net>
19080 David S. Miller <davem@davemloft.net>
19082 * util/hostdisk.c (make_device_name): Fix buffer length
19085 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
19087 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
19088 <sys/param.h> and <sys/sysctl.h>.
19089 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
19090 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
19091 opening the device and reset them afterwards.
19093 2009-04-13 Pavel Roskin <proski@gnu.org>
19095 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
19096 Reported by John Stanley <jpsinthemix@verizon.net>
19098 2009-04-13 Robert Millan <rmh@aybabtu.com>
19100 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
19101 that name for menuentries when appropriate.
19103 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
19105 * util/grub.d/10_freebsd.in: Add a missing `fi'.
19107 2009-04-13 Robert Millan <rmh@aybabtu.com>
19109 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
19110 to Linux, simply abort telling the user it's no longer supported.
19112 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
19114 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
19115 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
19116 `freebsd_loadenv' only when devices.hints exist.
19118 2009-04-13 Pavel Roskin <proski@gnu.org>
19120 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
19122 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
19124 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
19126 (grub_drive): Likewise.
19128 2009-04-13 David S. Miller <davem@davemloft.net>
19130 * kern/sparc64/ieee1275/ieee1275.c: New file.
19131 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
19132 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
19133 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
19134 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
19135 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
19136 grub_ieee1275_alloc_physmem): Declare new exported functions.
19138 * include/grub/sparc64/ieee1275/loader.h: New file.
19139 * include/grub/sparc64/ieee1275/memory.h: Likewise.
19140 * include/grub/sparc64/kernel.h: Likewise.
19141 * loader/sparc64/ieee1275/linux.c: Likewise.
19143 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
19144 (grub_fstest_SOURCES): Likewise.
19146 * util/hostdisk.c (make_device_name): Do not make any assumptions
19147 about the length of drive names.
19149 * kern/dl.c (grub_dl_load_file): Close file immediately when
19150 we are done using it.
19152 2009-04-12 David S. Miller <davem@davemloft.net>
19154 * kern/misc.c (grub_ltoa): Fix cast when handling negative
19155 values. Noticed by Pavel Roskin.
19157 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
19160 * genmk.rb: Add more flexible image type specification, also
19161 pass --strip-unneeded to objcopy.
19162 * conf/i386-pc.rmk: Use *_FORMAT.
19163 * conf/i386-pc.mk: Rebuilt.
19165 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
19166 (OFDISK_HASH_SZ): Define.
19167 (ofdisk_hash): New hash table.
19168 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
19169 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
19170 instead of device phandle which is not unique.
19172 * kern/sparc64/ieee1275/init.c: Delete, replace with...
19173 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
19174 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
19175 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
19176 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
19177 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
19178 GRUB_KERNEL_MACHINE_DATA_END): Define.
19179 (grub_kernel_image_size, grub_total_module_size): Declare.
19181 2009-04-12 Pavel Roskin <proski@gnu.org>
19183 * configure.ac: Change the logic when we check for target tools.
19184 Do it when the target is specified and it's different from the
19185 specified value of the host.
19187 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
19189 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
19190 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
19191 GNU/kFreeBSD. Check if a device is a character device. Use
19192 DIOCGMEDIASIZE to get the size.
19193 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
19194 support for GNU/kFreeBSD.
19195 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
19196 is a character device instead of a block device. Add support for
19197 FreeBSD device names.
19199 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
19200 is a character device instead of a block device.
19202 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
19203 is a character device instead of a block device.
19205 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
19207 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
19208 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
19209 FreeBSD. Check if a device is a character device. Use
19210 DIOCGMEDIASIZE to get the size.
19211 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
19212 support for FreeBSD.
19213 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
19214 is a character device instead of a block device. Add support for
19215 FreeBSD device names.
19217 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
19218 a character device instead of a block device.
19219 (grub_util_check_char_device): New function.
19221 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
19222 a character device instead of a block device.
19224 * include/grub/util/getroot.h (grub_util_check_char_device): New
19227 2009-04-11 David S. Miller <davem@davemloft.net>
19229 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
19231 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
19232 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
19233 function, if present.
19234 (__bswapdi2): Likewise.
19236 * include/grub/sparc64/ieee1275/boot.h: New file.
19237 * boot/sparc64/ieee1275/boot.S: Likewise.
19238 * boot/sparc64/ieee1275/diskboot.S: Likewise.
19240 * kern/misc.c (grub_ltoa): New function.
19241 (grub_vsprintf): Use it to format 'long' integers.
19243 2009-04-10 David S. Miller <davem@davemloft.net>
19245 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
19246 slots are of type grub_ieee1275_cell_t.
19247 (grub_nand_read): Likewise.
19248 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
19249 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
19250 macros are used to compare values in arg/ret block of the call.
19251 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
19252 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
19253 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
19254 grub_ieee1275_instance_to_path, grub_ieee1275_write,
19255 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
19256 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
19257 grub_ieee1275_close, grub_ieee1275_set_property,
19258 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
19259 grub_ieee1275_cell_t.
19260 * kern/ieee1275/openfw.c (grub_map): Likewise.
19261 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
19262 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
19264 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
19265 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
19266 (grub_devalias_iterate): Likewise.
19268 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
19272 * fs/ufs.c (INODE_NBLOCKS): new definition
19273 (struct grub_ufs_dirent): added fields for non-BSD dirents
19274 (grub_ufs_get_file_block): fixed double indirect handling
19275 (grub_ufs_lookup_symlink): use more robust way to determine whether
19277 (grub_ufs_find_file): support for non-BSD dirents
19278 (grub_ufs_dir): support for non-BSD dirents
19280 2009-04-10 Bean <bean123ch@gnail.com>
19282 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
19283 attribute, otherwise the size would be wrong for i386 platform.
19285 * include/grub/pci.h (grub_pci_read_word): New inline function.
19286 (grub_pci_read_byte): Likewise.
19287 (grub_pci_write): Likewise.
19288 (grub_pci_write_word): Likewise.
19289 (grub_pci_write_byte): Likewise.
19291 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
19293 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
19294 (find_framebuf): Scan pci to locate the frame buffer address.
19296 * commands/efi/fixvideo.c: New file.
19298 * commands/efi/loadbios.c: Likewise.
19300 * commands/memrw.c: Likewise.
19302 * util/grub-dumpbios.in: Likewise.
19304 * conf/common.rmk (grub-dumpbios): New utility.
19305 (pkglib_MODULES): New module memrw.mod.
19306 (memrw_mod_SOURCE): New macro.
19307 (memrw_mod_CFLAGS): Likewise.
19308 (memrw_mod_LDFLAGS): Likewise.
19310 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
19312 (loadbios_mod_SOURCE): New macro.
19313 (loadbios_mod_CFLAGS): Likewise.
19314 (loadbios_mod_LDFLAGS): Likewise.
19315 (fixvideo_mod_SOURCE): Likewise.
19316 (fixvideo_mod_CFLAGS): Likewise.
19317 (fixvideo_mod_LDFLAGS): Likewise.
19319 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
19321 (loadbios_mod_SOURCE): New macro.
19322 (loadbios_mod_CFLAGS): Likewise.
19323 (loadbios_mod_LDFLAGS): Likewise.
19324 (fixvideo_mod_SOURCE): Likewise.
19325 (fixvideo_mod_CFLAGS): Likewise.
19326 (fixvideo_mod_LDFLAGS): Likewise.
19328 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
19330 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
19332 2009-04-07 David S. Miller <davem@davemloft.net>
19334 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
19335 support for R_SPARC_OLO10 relocations. Fix compile warning for
19336 R_SPARC_WDISP30 case.
19337 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
19339 2009-04-06 Pavel Roskin <proski@gnu.org>
19341 * include/grub/misc.h (ARRAY_SIZE): New macro.
19342 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
19344 * loader/i386/linux.c (allocate_pages): Use free_pages().
19345 (grub_linux_unload): Don't use free_pages().
19346 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
19347 wrong index. Treat all other modes as text modes.
19348 (grub_cmd_linux): Initialize vid_mode unconditionally to
19349 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
19351 * commands/help.c (print_command_help): Use cmd->prio, not
19352 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
19354 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
19358 * parttool/pcpart.c: new file
19359 * commands/parttool.c: likewise
19360 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
19361 (parttool_mod_SOURCES): new variable
19362 (parttool_mod_CFLAGS): likewise
19363 (parttool_mod_LDFLAGS): likewise
19364 (pcpart_mod_SOURCES): likewise
19365 (pcpart_mod_CFLAGS): likewise
19366 (pcpart_mod_LDFLAGS): likewise
19367 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
19368 and parttool/pcpart.c
19369 * conf/i386-efi.rmk: likewise
19370 * conf/i386-ieee1275.rmk: likewise
19371 * conf/i386-pc.rmk: likewise
19372 * conf/powerpc-ieee1275.rmk: likewise
19373 * conf/sparc64-ieee1275.rmk: likewise
19374 * conf/x86_64-ieee1275.rmk: likewise
19376 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
19378 Support for mtime and further expandability of dir command
19380 * include/grub/lib/datetime.h: moved to ...
19381 * include/grub/datetime.h: ... moved here and added
19382 declaration of grub_unixtime2datetime. All users updated
19383 * include/grub/fs.h: new syntax for dir and mtime functions in
19385 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
19386 and GRUB_FSHELP_FLAGS_MASK
19387 * commands/ls.c (grub_ls_list_files): Write mtime in long format
19388 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
19389 (grub_ext2_mtime): new function
19390 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
19391 (grub_hfsplus_mtime): new function
19392 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
19393 (GRUB_UFS_ATTR_FILE): likewise
19394 (GRUB_UFS_ATTR_LNK): likewise
19395 (struct grub_ufs_sblock): new fields mtime
19396 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
19398 (grub_ufs_dir): mtime support
19399 (grub_ufs_mtime): new function
19400 * fs/affs.c (grub_affs_dir): use new dir syntax
19401 * fs/afs.c (grub_afs_dir): likewise
19402 * fs/cpio.c (grub_cpio_dir): likewise
19403 * fs/fat.c (grub_fat_find_dir): likewise
19404 * fs/hfs.c (grub_hfs_dir): likewise
19405 * fs/iso9660.c (grub_iso9660_dir): likewise
19406 * fs/jfs.c (grub_jfs_dir): likewise
19407 * fs/minix.c (grub_minix_dir): likewise
19408 * fs/ntfs.c (grub_ntfs_dir): likewise
19409 * fs/reiserfs.c (grub_reiserfs_dir): likewise
19410 * fs/sfs.c (grub_sfs_dir): likewise
19411 * fs/xfs.c (grub_xfs_dir): likewise
19412 * util/hostfs.c (grub_hostfs_dir): likewise
19413 * lib/datetime.c: moved to ...
19414 * normal/datetime.c: ... moved here
19415 (grub_unixtime2datetime): new function
19416 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
19417 * normal/completion.c (iterate_dir): use new dir syntax
19418 * normal/misc.c (grub_normal_print_device_info): tell the
19419 last modification time of a volume
19420 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
19421 * conf/common.rmk: added lib/datetime.c to ls.mod
19422 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
19423 (normal_mod_SOURCES): likewise
19424 (datetime_mod_SOURCES): Removed lib/datetime.c
19425 * conf/i386-efi.rmk: likewise
19426 * conf/i386-ieee1275.rmk: likewise
19427 * conf/i386-pc.rmk: likewise
19428 * conf/powerpc-ieee1275.rmk: likewise
19429 * conf/sparc64-ieee1275.rmk: likewise
19430 * conf/x86_64-efi.rmk: likewise
19432 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
19434 Trim trailing spaces in FAT label and support mtools-like labels
19436 * fs/fat.c (grub_fat_iterate_dir): New function based
19437 on grub_fat_find_dir
19438 (grub_fat_find_dir): use grub_fat_iterate_dir
19439 (grub_fat_label): likewise
19441 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
19443 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
19445 remove extraneous kernel_elf_HEADERS
19447 2009-04-04 Bean <bean123ch@gnail.com>
19449 * include/grub/util/misc.h: Add dummy function fsync for mingw.
19451 * util/misc.c: Likewise.
19453 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
19455 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
19456 instead of grub_printf.
19458 2009-04-03 Robert Millan <rmh@aybabtu.com>
19460 * loader/i386/linux.c (grub_linux_setup_video): Fill
19461 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
19462 values from `mode info' structure instead of hardcoded
19465 2009-04-01 Pavel Roskin <proski@gnu.org>
19467 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
19469 * genmk.rb: Likewise.
19470 * configure.ac: Likewise.
19472 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
19474 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
19475 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
19477 2009-04-01 David S. Miller <davem@davemloft.net>
19479 * normal/sparc64/setjmp.S: Fix setjmp implementation.
19480 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
19481 (grub_setjmp): Mark with 'returns_twice' attribute.
19482 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
19483 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
19484 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
19486 2009-04-01 Robert Millan <rmh@aybabtu.com>
19488 Reapply fix from 2008-07-28 which was accidentally reverted; also
19489 perform the same fix to a similar check in same function.
19491 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
19492 with the same number are found, just use issue a warning with
19493 grub_dprintf(), as this error has been reported to be non-fatal.
19495 2009-03-31 Pavel Roskin <proski@gnu.org>
19497 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
19498 for cross-compilation.
19500 2009-03-30 Robert Millan <rmh@aybabtu.com>
19502 Fix i386-ieee1275 build.
19504 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
19505 Remove declaration.
19507 2009-03-30 Pavel Roskin <proski@gnu.org>
19509 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
19510 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
19511 zero-terminated, rely only on the strlen value. Fix comparison
19512 of strings differing in length.
19514 2009-03-30 Robert Millan <rmh@aybabtu.com>
19516 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
19517 checking for abi version. Improve error messages on BIOS to notify
19518 user about `linux16' command.
19520 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
19524 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
19525 in case of collision
19526 * disk/scsi.c (grub_scsi_open): free scsi in case of error
19528 2009-03-29 Robert Millan <rmh@aybabtu.com>
19530 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
19531 set `vid_mode' accordingly.
19532 (grub_linux_boot): Process `vid_mode' and set video mode.
19534 2009-03-29 Robert Millan <rmh@aybabtu.com>
19536 * util/grub.d/10_linux.in (linux_entry): New function.
19537 Factorize generation of Linux boot entries.
19539 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
19541 Make the format of Environment Block plain text. The boot loader
19542 part is not tested well yet.
19544 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
19546 (envblk): Likewise.
19547 (usage): Remove "info" and "clear". Add "unset". Update the
19548 description of "set", as this does not delete variables any
19550 (create_envblk_file): Complete rewrite.
19551 (open_envblk_file): Likewise.
19552 (cmd_info): Removed.
19553 (cmd_list): Likewise.
19554 (cmd_set): Likewise.
19555 (cmd_clear): Likewise.
19556 (list_variables): New function.
19557 (write_envblk): Likewise.
19558 (set_variables): Likewise.
19559 (unset_variables): Likewise.
19560 (main): Complete rewrite.
19562 * commands/loadenv.c (buffer): Removed.
19563 (envblk): Likewise.
19564 (open_envblk_file): New function.
19565 (read_envblk_file): Complete rewrite.
19566 (grub_cmd_load_env): Likewise.
19567 (grub_cmd_list_env): Likewise.
19568 (struct blocklist): New struct.
19569 (free_blocklists): New function.
19570 (check_blocklists): Likewise.
19571 (write_blocklists): Likewise.
19572 (grub_cmd_save_env): Complete rewrite.
19574 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
19575 a plain text signature.
19576 (GRUB_ENVBLK_MAXLEN): Removed.
19577 (struct grub_envblk): Complete rewrite.
19578 (grub_envblk_find): Removed.
19579 (grub_envblk_insert): Likewise.
19580 (grub_envblk_open): New prototype.
19581 (grub_envblk_set): Likewise.
19582 (grub_envblk_delete): Put const to VALUE.
19583 (grub_envblk_iterate): Put const to NAME and VALUE.
19584 (grub_envblk_close): New prototype.
19585 (grub_envblk_buffer): New inline function.
19586 (grub_envblk_size): Likewise.
19588 * lib/envblk.c: Include grub/mm.h.
19589 (grub_env_find): Removed.
19590 (grub_envblk_open): New function.
19591 (grub_envblk_close): Likewise.
19592 (escaped_value_len): Likewise.
19593 (find_next_line): Likewise.
19594 (grub_envblk_insert): Removed.
19595 (grub_envblk_set): New function.
19596 (grub_envblk_delete): Complete rewrite.
19597 (grub_envblk_iterate): Likewise.
19599 2009-03-28 Robert Millan <rmh@aybabtu.com>
19601 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
19602 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
19603 variables. Use 16-bit loader.
19604 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
19606 * kern/i386/loader.S (grub_linux_boot): Rename to ...
19607 (grub_linux16_boot): ... this. Update all users.
19608 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
19609 (grub_linux_boot): ... this. Update all users.
19611 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
19612 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
19613 commands to `linux16' and `initrd16'.
19614 (GRUB_MOD_FINI(linux)): Rename to ...
19615 (GRUB_MOD_FINI(linux16)): ... this.
19617 2009-03-24 Pavel Roskin <proski@gnu.org>
19619 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
19620 not just for compilation.
19622 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
19624 Move multiboot helper out of kernel
19626 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
19627 `loader/i386/multiboot_helper.S'.
19628 * conf/i386-coreboot.rmk: Likewise
19629 * conf/i386-ieee1275.rmk: Likewise
19631 * kern/i386/loader.S: Move multiboot helpers from here...
19632 * loader/i386/multiboot_helper.S: ...moved here
19633 * include/grub/i386/loader.h: Move declarations of multiboot
19634 helpers from here...
19635 * include/grub/i386/multiboot.h: ...moved here
19636 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
19638 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
19640 * kern/env.c (grub_env_context_open): Added an argument to specify
19641 whether a new context inherits exported variables from current
19642 one. This is useful when making a sandbox to interpret a config
19644 All callers updated.
19646 * include/grub/env.h (grub_env_context_open): Updated the prototype.
19648 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
19650 * kern/env.c (grub_env_context_close): Fix memory leaks.
19652 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
19654 * normal/main.c (grub_normal_execute): Added an argument
19655 BATCH to specify if an interactive interface should be provided
19656 after reading a config file.
19657 All callers updated.
19658 (read_command_list): Prevent being executed twice.
19659 (read_fs_list): Likewise.
19661 * include/grub/normal.h (grub_normal_execute): Updated the
19664 2009-03-22 Pavel Roskin <proski@gno.org>
19666 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
19668 * kern/i386/pc/startup.S: Likewise.
19669 * kern/i386/efi/startup.S: Likewise.
19670 * kern/i386/ieee1275/startup.S: Likewise.
19671 * kern/i386/coreboot/startup.S: Likewise.
19672 * kern/x86_64/efi/startup.S: Likewise.
19674 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
19675 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
19676 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
19678 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
19680 Bugfixes in multiboot for bugs uncovered by solaris kernel.
19682 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
19684 Use vaddr of correct segment for entry_point.
19686 2009-03-21 Bean <bean123ch@gmail.com>
19688 * commands/blocklist.c: Add include file <grub/command.h>, remove
19689 <grub/normal.h> and <grub/arg.h>.
19690 (grub_cmd_blocklist): Use the new command interface.
19691 (GRUB_MOD_INIT): Likewise.
19692 (GRUB_MOD_FINI): Likewise.
19693 * commands/boot.c: Likewise.
19694 * commands/cat.c: Likewise.
19695 * commands/cmp.c: Likewise.
19696 * commands/configfile.c: Likewise.
19697 * commands/crc.c: Likewise.
19698 * commands/echo.c: Likewise.
19699 * commands/halt.c: Likewise.
19700 * commands/handler.c: Likewise.
19701 * commands/hdparm.c: Likewise.
19702 * commands/help.c: Likewise.
19703 * commands/hexdump.c: Likewise.
19704 * commands/loadenv.c: Likewise.
19705 * commands/ls.c: Likewise.
19706 * commands/lsmmap.c: Likewise.
19707 * commands/lspci.c: Likewise.
19708 * commands/loadenv.c: Likewise.
19709 * commands/read.c: Likewise.
19710 * commands/reboot.c: Likewise.
19711 * commands/search.c: Likewise.
19712 * commands/sleep.c: Likewise.
19713 * commands/test.c: Likewise.
19714 * commands/usbtest.c: Likewise.
19715 * commands/videotest.c: Likewise.
19716 * commands/i386/cpuid.c: Likewise.
19717 * commands/i386/pc/halt.c: Likewise.
19718 * commands/i386/pc/play.c: Likewise.
19719 * commands/i386/pc/pxecmd.c: Likewise.
19720 * commands/i386/pc/vbeinfo.c: Likewise.
19721 * commands/i386/pc/vbetest.c: Likewise.
19722 * commands/ieee1275/suspend.c: Likewise.
19723 * disk/loopback.c: Likewise.
19724 * font/font_cmd.c: Likewise.
19725 * hello/hello.c: Likewise.
19726 * loader/efi/appleloader.c: Likewise.
19727 * loader/efi/chainloader.c: Likewise.
19728 * loader/i386/bsd.c: Likewise.
19729 * loader/i386/efi/linux.c: Likewise.
19730 * loader/i386/ieee1275/linux.c: Likewise.
19731 * loader/i386/linux.c: Likewise.
19732 * loader/i386/pc/chainloader.c: Likewise.
19733 * loader/i386/pc/linux.c: Likewise.
19734 * loader/powerpc/ieee1275/linux.c: Likewise.
19735 * loader/multiboot_loader.c: Likewise.
19736 * term/gfxterm.c: Likewise.
19737 * term/i386/pc/serial.c: Likewise.
19738 * term/terminfo.c: Likewise.
19740 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
19741 * term/i386/pc/vga.c: Likewise.
19742 * video/readers/jpeg.c: Likewise.
19743 * video/readers/png.c: Likewise.
19744 * video/readers/tga.c: Likewise.
19746 * util/grub-fstest (cmd_loopback): Removed.
19747 (cmd_blocklist): Likewise.
19748 (cmd_ls): Likewise.
19749 (grub_register_command): Likewise.
19750 (grub_unregister_command): Likewise.
19751 (execute_command): Use grub_command_find to locate command and execute
19754 * include/grub/efi/chainloader.h: Removed.
19755 * loader/efi/chainloader_normal.c: Likewise.
19756 * loader/i386/bsd_normal.c: Likewise.
19757 * loader/i386/pc/chainloader_normal.c: Likewise.
19758 * loader/i386/pc/multiboot_normal.c: Likewise.
19759 * loader/linux_normal.c: Likewise.
19760 * loader/multiboot_loader_normal.c: Likewise.
19761 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
19763 * gencmdlist.sh: Scan new registration command grub_register_extcmd
19764 and grub_register_command_p1.
19766 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
19767 kern/command.c, lib/arg.c and commands/extcmd.c.
19768 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
19769 (minicmd_mod_SOURCES): New variable.
19770 (minicmd_mod_CFLAGS): Likewise.
19771 (minicmd_mod_LDFLAGS): Likewise.
19772 (extcmd_mod_SOURCES): Likewise.
19773 (extcmd_mod_CFLAGS): Likewise.
19774 (extcmd_mod_LDFLAGS): Likewise.
19775 (boot_mod_SOURCES): Removed.
19776 (boot_mod_CFLAGS): Likewise.
19777 (boot_mod_LDFLAGS): Likewise.
19779 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
19781 (kernel_img_HEADERS): Add command.h.
19782 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
19783 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
19785 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
19786 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
19787 remove the corresponding normal mode command.
19788 (normal_mod_SOURCES): Remove normal/arg.c.
19789 * conf/i386-coreboot.rmk: Likewise.
19790 * conf/i386-efi.rmk: Likewise.
19791 * conf/i386-ieee1275.rmk: Likewise.
19792 * conf/powerpc-ieee1275.rmk: Likewise.
19793 * conf/x86_64-efi.rmk: Likewise.
19795 * include/grub/arg.h: Move from here ...
19796 * include/grub/lib/arg.h: ... to here.
19798 * normal/arg.c: Move from here ...
19799 * lib/arg.c: ... to here.
19801 * commands/extcmd.c: New file.
19802 * commands/minicmd.c: Likewise.
19803 * include/grub/command.h: Likewise.
19804 * include/grub/extcmd.h: Likewise.
19805 * kern/command.c: Likewise.
19806 * kern/corecmd.c: Likewise.
19808 * kern/list.c (grub_list_iterate): Return int instead of void.
19809 (grub_list_insert): New function.
19810 (grub_prio_list_insert): Likewise.
19812 * kern/rescue.c (grub_rescue_command): Removed.
19813 (grub_rescue_command_list): Likewise.
19814 (grub_rescue_register_command): Likewise.
19815 (grub_rescue_unregister_command): Likewise.
19816 (grub_rescue_cmd_boot): Move to minicmd.c
19817 (grub_rescue_cmd_help): Likewise.
19818 (grub_rescue_cmd_info): Likewise.
19819 (grub_rescue_cmd_boot): Likewise.
19820 (grub_rescue_cmd_testload): Likewise.
19821 (grub_rescue_cmd_dump): Likewise.
19822 (grub_rescue_cmd_rmmod): Likewise.
19823 (grub_rescue_cmd_lsmod): Likewise.
19824 (grub_rescue_cmd_exit): Likewise.
19825 (grub_rescue_print_devices): Moved to corecmd.c.
19826 (grub_rescue_print_files): Likewise.
19827 (grub_rescue_cmd_ls): Likewise.
19828 (grub_rescue_cmd_insmod): Likewise.
19829 (grub_rescue_cmd_set): Likewise.
19830 (grub_rescue_cmd_unset): Likewise.
19831 (attempt_normal_mode): Use grub_command_find to get normal module.
19832 (grub_enter_rescue_mode): Use grub_register_core_commands to register
19833 commands, remove grub_rescue_register_command calls.
19835 * normal/command.c (grub_register_command): Removed.
19836 (grub_unregister_command): Likewise.
19837 (grub_command_find): Likewise.
19838 (grub_iterate_commands): Likewise.
19839 (rescue_command): Likewise.
19840 (export_command): Moved to corecmd.c.
19841 (set_command): Removed.
19842 (unset_command): Likewise.
19843 (insmod_command): Likewise.
19844 (rmmod_command): Likewise.
19845 (lsmod_command): Likewise.
19846 (grub_command_init): Likewise.
19848 * normal/completion.c (iterate_command): Use cmd->prio to check for
19850 (complete_arguments): Use grub_extcmd_t structure to find options.
19851 (grub_normal_do_completion): Change function grub_iterate_commands to
19852 grub_command_iterate.
19854 * normal/execute.c (grub_script_execute_cmd): No need to parse
19857 * normal/main.c (grub_dyncmd_dispatcher): New function.
19858 (read_command_list): Register unload commands as dyncmd.
19859 (grub_cmd_normal): Use new command interface, register rescue,
19860 unregister normal at entry, register normal, unregister rescue at exit.
19862 * include/grub/list.h (grub_list_test_t): New type.
19863 (grub_list_iterate): Return int instead of void.
19864 (grub_list_insert): New function.
19865 (GRUB_AS_NAMED_LIST_P): New macro.
19866 (GRUB_AS_PRIO_LIST): Likewise.
19867 (GRUB_AS_PRIO_LIST_P): Likewise.
19868 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
19869 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
19870 (grub_prio_list): New structure.
19871 (grub_prio_list_insert): New function.
19872 (grub_prio_list_remove): New inline function.
19874 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
19875 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
19876 (GRUB_COMMAND_FLAG_MENU): Likewise.
19877 (GRUB_COMMAND_FLAG_BOTH): Likewise.
19878 (GRUB_COMMAND_FLAG_TITLE): Likewise.
19879 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
19880 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
19881 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
19882 (grub_command): Likewise.
19883 (grub_register_command): Likewise.
19884 (grub_command_find): Likewise.
19885 (grub_iterate_commands): Likewise.
19886 (grub_command_init): Likewise.
19887 (grub_arg_parse): Likewise.
19888 (grub_arg_show_help): Likewise.
19890 * include/grub/rescue.h (grub_rescue_register_command): Removed.
19891 (grub_rescue_unregister_command): Likewise.
19893 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
19894 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
19895 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
19897 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
19898 grub_rescue_cmd_initrd.
19899 * include/grub/i386/loader.h: Likewise.
19900 * include/grub/x86_64/loader.h: Likewise.
19902 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
19904 2009-03-21 Bean <bean123ch@gmail.com>
19906 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
19907 instead of stat in mingw environment.
19909 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
19911 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
19913 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
19916 2009-03-21 Bean <bean123ch@gmail.com>
19918 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
19919 out of range error.
19921 2009-03-18 Michel Dänzer <michel@daenzer.net>
19923 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
19924 checking inode flags for EXT4_EXTENTS_FLAG.
19926 2009-03-18 Robert Millan <rmh@aybabtu.com>
19928 * loader/i386/linux.c: Include `<grub/video.h>' and
19929 `<grub/i386/pc/vbe.h>'..
19930 (grub_linux_setup_video): New function. Loosely based on the EFI one.
19931 (grub_linux32_boot): Attempt to configure video settings with
19932 grub_linux_setup_video().
19933 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
19934 to avoid grub_console_fini() which would step out of graphical mode
19937 2009-03-14 Robert Millan <rmh@aybabtu.com>
19939 Fix build on powerpc.
19940 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
19942 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
19944 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
19945 background image command.
19947 2009-03-12 Colin D Bennett <colin@gibibit.com>
19949 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
19950 (grub_gfxterm_putchar): Extract pairs of identical calls to
19951 draw_cursor out of conditional blocks.
19953 2009-03-11 Pavel Roskin <proski@gnu.org>
19955 * fs/hfs.c (grub_hfs_strncasecmp): New function.
19956 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
19958 2009-03-11 Robert Millan <rmh@aybabtu.com>
19960 * loader/i386/multiboot_elfxx.c
19961 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
19963 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
19965 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
19968 2009-03-11 Robert Millan <rmh@aybabtu.com>
19970 * loader/i386/multiboot.c (code_size): New variable.
19971 (grub_multiboot): Define offsets by adding to `code_size' rather
19972 than subtracting from `grub_multiboot_payload_size'. Provide
19973 4-byte alignment to MBI and others by increasing
19974 `boot_loader_name_length' appropriately.
19976 * loader/i386/multiboot_elfxx.c
19977 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
19979 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
19981 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
19984 2009-03-08 Robert Millan <rmh@aybabtu.com>
19986 Make loader/i386/linux.c usable on i386-pc again.
19988 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
19990 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
19993 2009-03-07 Bean <bean123ch@gmail.com>
19995 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
19998 2009-03-06 Robert Millan <rmh@aybabtu.com>
20000 Fix display issue on terminals with screen size other than 80x25
20001 (e.g. gfxterm with resolution higher than 640x480).
20003 * normal/main.c (grub_normal_init_page): Display title text in a
20004 position relative to the center of the terminal instead of relying
20005 on a hardcoded offset.
20007 2009-03-04 Robert Millan <rmh@aybabtu.com>
20009 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
20012 * Makefile.in (host_kernel): New variable.
20013 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
20014 scripts instead of just the windows one.
20015 * configure.ac: Initialize and AC_SUBST `host_kernel'.
20017 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
20019 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
20021 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20022 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20023 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
20024 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20025 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20026 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20028 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
20030 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
20031 or if there's no space for the disk label and print the partition number on a
20034 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
20036 * util/misc.c: Include <time.h>.
20037 (grub_millisleep): New function.
20039 2009-03-04 Bean <bean123ch@gmail.com>
20041 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
20042 another option -mno-red-zone.
20044 * commands/handler.c: Change module description.
20046 * kern/handler.c: Add missing space at the end of description line.
20048 * kern/list.c: Likewise.
20050 2009-03-03 Robert Millan <rmh@aybabtu.com>
20052 Move more components to the relocation area, and fix mbi pointer
20053 handling to use the destination rather than the origin (thanks to
20054 Vladimir Serbinenko for spotting).
20056 * loader/i386/multiboot.c (mbi_dest): New variable.
20057 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
20058 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
20061 2009-03-01 Bean <bean123ch@gmail.com>
20063 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
20064 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
20065 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
20066 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
20068 * loader/i386/efi/linux.c (acpi_guid): New variable.
20069 (acpi_guid): Likewise.
20070 (EBDA_SEG_ADDR): New constant.
20071 (LOW_MEM_ADDR): Likewise.
20072 (FAKE_EBDA_SEG): Likewise.
20073 (fake_bios_data): New function.
20074 (grub_linux_boot): Call fake_bios_data.
20076 2009-03-01 Bean <bean123ch@gmail.com>
20078 * commands/terminal.c: Removed.
20080 * commands/handler.c: New file.
20082 * include/grub/list.h: Likewise.
20084 * include/grub/handler.h: Likewise.
20086 * kern/list.c: Likewise.
20088 * kern/handler.c: Likewise.
20090 * kern/term.h: Include header file <grub/handler.h>.
20091 (grub_term_input): Move next field to the beginning.
20092 (grub_term_output): Likewise.
20093 (grub_term_input_class): New variable.
20094 (grub_term_output_class): Likewise.
20095 (grub_term_register_input): Changed to inline function.
20096 (grub_term_register_output): Likewise.
20097 (grub_term_unregister_input): Likewise.
20098 (grub_term_unregister_output): Likewise.
20099 (grub_term_set_current_input): Likewise.
20100 (grub_term_set_current_output): Likewise.
20101 (grub_term_get_current_input): Likewise.
20102 (grub_term_get_current_output): Likewise.
20103 (grub_term_iterate_input): Removed.
20104 (grub_term_iterate_output): Likewise.
20106 * kern/term.c (grub_term_list_input): Removed.
20107 (grub_term_list_output): Likewise.
20108 (grub_term_input_class): New variable.
20109 (grub_term_output_class): Likewise.
20110 (grub_cur_term_input): Change variable as macro.
20111 (grub_cur_term_output): Likewise.
20112 (grub_term_register_input): Removed.
20113 (grub_term_register_output): Likewise.
20114 (grub_term_unregister_input): Likewise.
20115 (grub_term_unregister_output): Likewise.
20116 (grub_term_set_current_input): Likewise.
20117 (grub_term_set_current_output): Likewise.
20118 (grub_term_iterate_input): Likewise.
20119 (grub_term_iterate_output): Likewise.
20120 (grub_term_get_current_input): Likewise.
20121 (grub_term_get_current_output): Likewise.
20123 * util/grub-editenv.c: Include header file <grub/handler.h>.
20124 (grub_term_get_current_input): Removed.
20125 (grub_term_get_current_output): Likewise.
20126 (grub_term_input_class): New variable.
20127 (grub_term_output_class): Likewise.
20129 * util/grub-fstest.c (grub_term_get_current_input): Removed.
20130 (grub_term_get_current_output): Likewise.
20131 (grub_term_input_class): New variable.
20132 (grub_term_output_class): Likewise.
20134 * util/grub-probe.c (grub_term_get_current_input): Removed.
20135 (grub_term_get_current_output): Likewise.
20136 (grub_term_input_class): New variable.
20137 (grub_term_output_class): Likewise.
20139 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
20140 (grub_term_get_current_output): Likewise.
20141 (grub_term_input_class): New variable.
20142 (grub_term_output_class): Likewise.
20144 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
20145 (terminal_mod_SOURCES): Likewise.
20146 (terminal_mod_CFLAGS): Likewise.
20147 (terminal_mod_LDFLAGS): Likewise.
20149 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
20151 (kernel_img_SOURCES): Add list.c and handler.c.
20152 (kernel_img_HEADERS): Add list.h and handler.h.
20154 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
20156 (kernel_mod_SOURCES): Add list.c and handler.c.
20157 (kernel_mod_HEADERS): Add list.h and handler.h.
20159 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
20161 (kernel_elf_SOURCES): Add list.c and handler.c.
20162 (kernel_elf_HEADERS): Add list.h and handler.h.
20164 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
20166 (kernel_elf_SOURCES): Add list.c and handler.c.
20167 (kernel_elf_HEADERS): Add list.h and handler.h.
20169 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
20171 (kernel_mod_SOURCES): Add list.c and handler.c.
20172 (kernel_mod_HEADERS): Add list.h and handler.h.
20174 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
20176 (kernel_elf_SOURCES): Add list.c and handler.c.
20177 (kernel_elf_HEADERS): Add list.h and handler.h.
20179 2009-02-27 Robert Millan <rmh@aybabtu.com>
20181 Factorize elf32 / elf64 code in Multiboot loader. This will
20182 prevent it from getting out of sync again.
20184 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
20185 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
20186 grub_multiboot_load_elf64): Move from here ...
20187 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
20188 grub_multiboot_load_elf): ... to here (new file).
20190 2009-02-27 Robert Millan <rmh@aybabtu.com>
20192 * util/grub.d/10_linux.in: Rename "single-user mode" to
20195 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
20197 Don't leak in SCSI code.
20198 * disk/scsi.c (grub_scsi_close): free `scsi'.
20200 2009-02-27 Robert Millan <rmh@aybabtu.com>
20202 * loader/i386/pc/multiboot.c: Move from here ...
20203 * loader/i386/multiboot.c: ... to here. Update all users.
20205 2009-02-27 Robert Millan <rmh@aybabtu.com>
20207 Patch from Alexandre Bique <bique.alexandre@gmail.com>
20208 * util/i386/pc/grub-setup.c (setup): Fix directory path.
20210 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
20212 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
20215 2009-02-27 Robert Millan <rmh@aybabtu.com>
20217 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
20218 `0x' qualifier as 0 when base is specified as parameter).
20220 2009-02-24 Bean <bean123ch@gmail.com>
20222 * configure.ac: Check for -mcmodel=large in x86_64 target.
20224 * include/grub/efi/api.h (efi_call_10): New macro.
20225 (efi_wrap_10): New function.
20227 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
20228 (GRUB_PE32_REL_BASED_HIGH): Likewise.
20229 (GRUB_PE32_REL_BASED_LOW): Likewise.
20230 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
20231 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
20232 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
20233 (GRUB_PE32_REL_BASED_SECTION): Likewise.
20234 (GRUB_PE32_REL_BASED_REL): Likewise.
20235 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
20236 (GRUB_PE32_REL_BASED_DIR64): Likewise.
20237 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
20239 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
20242 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
20243 (efi_wrap_10): New function.
20245 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
20247 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
20248 MB/MBP model (NV chipset).
20249 (devdata_devs): Add devpath_5 to the list.
20251 * load/i386/efi/linux.c (video_base): Remove variable.
20252 (RGB_MASK): New macro.
20253 (RGB_MAGIC): Likewise.
20254 (LINE_MIN): Likewise.
20255 (LINE_MAX): Likewise.
20256 (FBTEST_STEP): Likewise.
20257 (FBTEST_COUNT): Likewise.
20258 (fb_list): New variable.
20259 (grub_find_video_card): Remove function.
20260 (find_framebuf): New function.
20261 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
20264 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
20265 problem for x86_64.
20267 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
20269 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
20271 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
20274 2009-02-22 Robert Millan <rmh@aybabtu.com>
20276 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
20277 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
20278 in our relocation, instead of using it directly from heap. Also
20279 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
20281 2009-02-21 Robert Millan <rmh@aybabtu.com>
20283 Implement USB keyboard support (based on patch by Marco Gerards)
20285 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
20286 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
20287 (usb_keyboard_mod_LDFLAGS): New variables.
20289 * term/usb_keyboard.c: New file.
20291 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
20293 Corrected wrong declaration
20295 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
20297 2009-02-14 Christian Franke <franke@computer.org>
20299 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
20300 (grub_lspci_iter): Print class code and programming interface byte.
20302 2009-02-14 Christian Franke <franke@computer.org>
20304 * gendistlist.sh: Ignore `.svn' directories.
20306 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
20308 * fs/fat.c: Add 2009 to Copyright line.
20310 2009-02-14 Christian Franke <franke@computer.org>
20312 * commands/hdparm.c: New file. Provides `hdparm' command
20313 which sends ATA commands via grub_disk_ata_pass_through ().
20315 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
20317 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
20318 and <grub/cpu/io.h> to include/grub/ata.h.
20319 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
20320 (GRUB_CDROM_SECTOR_SIZE): Remove.
20321 (GRUB_ATA_*): Move to include/grub/ata.h.
20322 (GRUB_ATAPI_*): Likewise.
20323 (enum grub_ata_commands): Likewise.
20324 (enum grub_ata_timeout_milliseconds): Likewise.
20325 (struct grub_ata_device): Likewise.
20326 (grub_ata_regset): Likewise.
20327 (grub_ata_regget): Likewise.
20328 (grub_ata_regset2): Likewise.
20329 (grub_ata_regget2): Likewise.
20330 (grub_ata_check_ready): Likewise.
20331 (grub_ata_wait_not_busy): Remove static, exported in
20332 include/grub/ata.h.
20333 (grub_ata_wait_drq): Likewise.
20334 (grub_ata_pio_read): Likewise.
20336 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
20337 function for hdparm.mod.
20339 * include/grub/ata.h: New file, contains declarations from
20341 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
20343 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
20344 (grub_disk_ata_pass_through): New exported variable.
20346 * kern/disk.c (grub_disk_ata_pass_through): New variable.
20348 2009-02-13 Colin D Bennett <colin@gibibit.com>
20350 Support multiple fallback entries, and provide an API to support
20351 executing default+fallback menu entries. Renamed the `terminal' menu
20354 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
20355 variable declaration.
20356 (grub_menu_execute_callback): New structure declaration.
20357 (grub_menu_execute_callback_t): New typedef.
20358 (grub_menu_execute_with_fallback): New function declaration.
20359 (grub_menu_get_entry): Likewise.
20360 (grub_menu_get_timeout): Likewise.
20361 (grub_menu_set_timeout): Likewise.
20363 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
20365 * normal/menu.c (grub_wait_after_message): Moved to
20366 `normal/menu_text.c'.
20367 (draw_border): Likewise.
20368 (print_message): Likewise.
20369 (print_entry): Likewise.
20370 (print_entries): Likewise.
20371 (grub_menu_init_page): Likewise.
20372 (get_entry_number): Likewise.
20373 (print_timeout): Likewise.
20374 (run_menu): Likewise.
20375 (grub_menu_execute_entry): Likewise.
20376 (show_text_menu): Likewise.
20377 (get_and_remove_first_entry_number): New function.
20378 (grub_menu_execute_with_fallback): Likewise.
20379 (get_entry): Renamed to ...
20380 (grub_menu_get_entry): .. this and made it global.
20381 (get_timeout): Renamed to ...
20382 (grub_menu_get_timeout): ... this and made it global.
20383 (set_timeout): Renamed to ...
20384 (grub_menu_set_timeout): ... this and made it global.
20385 (grub_normal_terminal_menu_viewer): Renamed to ...
20386 (grub_normal_text_menu_viewer): ... this.
20388 * normal/menu_text.c: New file. Extracted text-menu-specific code
20389 from normal/menu.c.
20391 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
20392 (normal_mod_SOURCES): Likewise.
20394 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20395 (normal_mod_SOURCES): Likewise.
20397 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20398 (normal_mod_SOURCES): Likewise.
20400 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
20401 (normal_mod_SOURCES): Likewise.
20403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20404 (normal_mod_SOURCES): Likewise.
20406 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20407 (normal_mod_SOURCES): Likewise.
20409 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20410 (normal_mod_SOURCES): Likewise.
20412 2009-02-11 Robert Millan <rmh@aybabtu.com>
20414 * util/grub.d/00_header.in: Update old reference to `font' command.
20416 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
20418 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
20420 Based on patch from Javier Martín.
20422 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
20424 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
20425 to avoid false positives with FAT.
20426 (grub_fstest_SOURCES): Likewise.
20427 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
20428 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20429 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20430 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
20431 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20432 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20434 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
20436 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
20437 bpb.version_specific.fat12_or_fat16.fstype and
20438 bpb.version_specific.fat32.fstype.
20440 2009-02-08 Robert Millan <rmh@aybabtu.com>
20442 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
20444 2009-02-08 Robert Millan <rmh@aybabtu.com>
20446 * Makefile.in (host_os, host_cpu): New variables.
20447 (target_os): Remove. Update all users.
20449 2009-02-08 Marco Gerards <marco@gnu.org>
20451 * Makefile.in (enable_grub_emu_usb): New variable.
20452 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
20453 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
20454 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
20455 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
20456 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
20457 `usbtest.mod' and `usbms.mod'.
20458 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
20459 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
20460 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
20461 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
20462 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
20465 * disk/usbms.c: New file.
20467 * include/grub/usb.h: Likewise.
20469 * include/grub/usbtrans.h: Likewise.
20471 * include/grub/usbdesc.h: Likewise.
20473 * bus/usb/usbtrans.c: Likewise.
20475 * bus/usb/ohci.c: Likewise.
20477 * bus/usb/uhci.c: Likewise.
20479 * bus/usb/usbhub.c: Likewise.
20481 * bus/usb/usb.c: Likewise.
20483 * commands/usbtest.c: Likewise.
20485 * util/usb.c: Likewise.
20487 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
20489 * configure.ac: Test for libusb presence.
20491 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
20493 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
20495 * kern/mm.c: Add more comments.
20497 2009-02-08 Robert Millan <rmh@aybabtu.com>
20499 Patch from Javier Martín.
20500 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
20501 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
20503 2009-02-08 Robert Millan <rmh@aybabtu.com>
20505 * fs/cpio.c: Split tar functionality to ...
20506 * fs/tar.c: ... here (new file). Update all users.
20508 2009-02-07 Robert Millan <rmh@aybabtu.com>
20510 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
20511 backward-incompatible features.
20513 Based on patch from Javier Martín, with some adjustments.
20515 2009-02-07 Michael Scherer <misc@mandriva.org>
20517 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
20519 2009-02-07 Robert Millan <rmh@aybabtu.com>
20521 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
20522 position of `disk/lvm.c' to ensure grub_init_all() always picks it
20523 after the RAID stuff.
20525 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
20527 Fixes problem when running vbetest command as reported by
20528 Vladimir Serbinenko <phcoder@gmail.com>.
20530 * (grub_vbe_set_video_mode): Fixed problem with text modes.
20532 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
20534 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
20535 /dev/md/NpN style mdraid devices.
20537 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
20539 * util/unifont2pff.rb: Remove.
20541 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
20543 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
20546 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
20548 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
20549 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
20550 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
20551 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
20552 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20553 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20554 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
20556 2009-02-02 Christian Franke <franke@computer.org>
20558 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
20560 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
20562 * INSTALL: Note that we now require at least autoconf 2.59 and
20563 that LZO is optional.
20565 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
20567 Base on patch on bug #24154 created by Tomas Tintera
20568 <trosos@seznam.cz>.
20570 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
20572 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
20574 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
20575 <bero@arklinux.org>.
20577 * normal/parser.y (script_init): Add missing semicolon.
20579 2009-01-31 Colin D Bennett <colin@gibibit.com>
20581 * normal/main.c: Add include to grub/menu_viewer.h.
20582 (free_menu_entry_classes): Added.
20583 (grub_normal_menu_addentry): Added class property handling.
20584 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
20585 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
20587 * normal/menu_viewer.c: New file.
20589 * normal/menu.c (run_menu_entry): Renamed to ...
20590 (grub_menu_execute_entry): ... this and made it as global.
20591 (grub_menu_run): Renamed to ...
20592 (show_text_menu): ... this and made it local.
20593 (show_text_menu): Adapt to new function names.
20594 (grub_normal_terminal_menu_viewer): New global variable.
20596 * include/grub/menu.h: New file.
20598 * include/grub/menu_viewer.h: New file.
20600 * include/grub/normal.h: Added include to grub/menu.h.
20601 (grub_menu_entry): Moved to include/grub/menu.h.
20602 (grub_menu_entry_t): Likewise.
20603 (grub_menu): Likewise.
20604 (grub_menu_t): Likewise.
20605 (grub_normal_terminal_menu_viewer): Added.
20606 (grub_menu_execute_entry): Likewise.
20607 (grub_menu_run): Removed.
20609 * DISTLIST: Added include/grub/menu.h.
20610 Added include/grub/menu_viewer.h.
20611 Added normal/menu_viewer.c.
20613 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
20615 * normal/execute.c (grub_script_execute_menuentry): Changed to use
20616 arglist for menutitle arguments.
20618 * normal/main.c (grub_normal_menu_addentry): Likewise.
20620 * normal/parser.y (menuentry): Likewise.
20622 * normal/script.c (grub_script_create_cmdmenu): Likewise.
20624 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
20625 (grub_script_create_cmdmenu): Likewise.
20627 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
20629 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
20632 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
20634 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
20636 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
20638 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
20640 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
20642 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
20644 2009-01-30 Christian Franke <franke@computer.org>
20646 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
20647 in option help text.
20649 2009-01-27 Pavel Roskin <proski@gnu.org>
20651 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
20653 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
20655 * commands/lsmmap.c: Add include to grub/machine/memory.h.
20657 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
20659 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
20660 unregister function.
20662 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
20664 * disk/scsi.c (grub_scsi_read): Fix sign problem.
20666 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
20668 * util/grub-mkfont.c (usage): Fix typo.
20670 * util/elf/grub-mkimage.c (load_modules): Fix warning.
20672 2009-01-26 Daniel Mierswa <impulze@impulze.org>
20674 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
20676 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
20678 * kern/misc.c (grub_strcasecmp): New function.
20679 (grub_strcasecmp): Use grub_size_t instead of int for length.
20681 * include/grub/misc.h: Update function prototypes.
20683 2009-01-26 Robert Millan <rmh@aybabtu.com>
20685 * configure.ac: Fix cross-compilation check.
20687 2009-01-22 Christian Franke <franke@computer.org>
20689 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
20690 (precision) digit string. Allow `.format2' without `format1' (width).
20691 Limit input chars for `%s' output to `format2' if specified. This is
20692 compatible with standard printf ().
20694 2009-01-22 Christian Franke <franke@computer.org>
20696 * disk/ata.c (grub_ata_wait_status): Replace by ...
20697 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
20698 other status bits may be invalid while BSY is asserted.
20699 (grub_ata_check_ready): New function.
20700 (grub_ata_cmd): Removed.
20701 (grub_ata_wait_drq): New function.
20702 (grub_ata_strncpy): Remove inline.
20703 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
20704 and error check now done by grub_ata_wait_drq ().
20705 (grub_ata_pio_write): Likewise.
20706 (grub_atapi_identify): Set DEV before check for !BSY. Use
20707 grub_ata_wait_drq () to wait for data.
20708 (grub_ata_device_initialize): Add status register check to
20709 detect missing SATA slave devices. Add debug messages.
20710 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
20711 (grub_atapi_packet): Set DEV before check for !BSY. Replace
20712 transfer loop by grub_ata_pio_write ().
20713 (grub_ata_identify): Set DEV before check for !BSY. Use
20714 grub_ata_wait_drq () to wait for data.
20715 (grub_ata_setaddress): Set DEV before check for !BSY.
20716 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
20717 read/write in one loop. Fix invalid command on write. Fix incomplete
20718 command on (size % batch) == 0. Add missing error check after write of
20719 last block. Add debug messages.
20720 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
20722 2009-01-19 Christian Franke <franke@computer.org>
20724 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
20725 (GRUB_ATAPI_IREASON_*): Likewise.
20726 (grub_ata_pio_write): Fix timeout error return.
20727 (grub_atapi_identify): Add grub_ata_wait () after cmd.
20728 (grub_atapi_wait_drq): New function.
20729 (grub_atapi_packet): New parameter `size'.
20730 Use grub_atapi_wait_drq () and direct write instead of
20731 grub_ata_pio_write ().
20732 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
20733 reads the number of bytes requested by the device for each DRQ
20735 (grub_atapi_write): Remove old implementation, return not
20736 implemented instead.
20738 2009-01-19 Christian Franke <franke@computer.org>
20740 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
20741 of 512 to calculate data size.
20742 (grub_scsi_read12): Likewise.
20743 (grub_scsi_write10): Likewise.
20744 (grub_scsi_write12): Likewise.
20745 (grub_scsi_read): Adjust size according to blocksize.
20746 Add checks for invalid blocksize and unaligned transfer.
20748 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
20750 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
20752 * term/gfxterm.c (write_char): Fix background rendering for wide
20755 2009-01-19 Robert Millan <rmh@aybabtu.com>
20757 * config.guess: Update to latest version from config git.
20758 * config.sub: Likewise.
20760 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
20762 * Makefile.in: Change font compilation to use new grub-mkfont instead
20765 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
20766 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
20767 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
20768 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
20769 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
20770 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
20771 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
20772 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
20773 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
20775 2009-01-16 Christian Franke <franke@computer.org>
20777 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
20778 (enum grub_ata_timeout_milliseconds): New enum.
20779 (grub_ata_wait_status): Add parameter milliseconds.
20780 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
20781 recovery from timed-out commands.
20782 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
20783 return grub_errno instead of REG_ERROR.
20784 (grub_ata_pio_write): Add parameter milliseconds.
20785 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
20786 Pass milliseconds to grub_ata_wait_status () and
20787 grub_ata_pio_read ().
20788 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
20789 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
20790 grub_ata_wait_status (). Fix IDENTIFY timeout check.
20791 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
20792 It is not suitable for device detection, because DEV bit is ignored,
20793 the command may run too long, and not all devices set the signature
20795 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
20796 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
20797 Fix device selection, DEV bit must be set first to address the registers
20798 of the correct device.
20799 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
20800 grub_ata_pio_read/write ().
20801 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
20802 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
20804 2009-01-13 Carles Pina i Estany <carles@pina.cat>
20806 * util/grub-editenv.c (main): Use fseeko(), not fseek().
20808 2009-01-13 Bean <bean123ch@gmail.com>
20810 * util/grub-mkfont.c (write_font): forget to remove some debug code.
20812 2009-01-13 Bean <bean123ch@gmail.com>
20814 * Makefile.in: (enable_grub_mkfont): New variable.
20815 (freetype_cflags): Likewise.
20816 (freetype_libs): Likewise.
20818 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
20819 (grub_mkfont_SOURCES): New variable.
20820 (grub_mkfont_CFLAGS): Likewise.
20821 (grub_mkfont_LDFLAGS): Likewise.
20823 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
20824 library if `--enable-grub-mkfont' is requested.
20825 (enable_grub_mkfont): New variable.
20826 (freetype_cflags): Likewise.
20827 (freetype_libs): Likewise.
20829 * util/grub-mkfont.c: New file.
20831 2009-01-12 Christian Franke <franke@computer.org>
20833 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
20834 mode check. Fix setting of compat_use[].
20836 2009-01-10 Robert Millan <rmh@aybabtu.com>
20838 Update a few copyright years which we forgot to do in 2008 (only for
20839 files whose changes made in 2008 were copyright-significant)
20841 * Makefile.in: Add 2008 to Copyright line.
20842 * disk/ieee1275/ofdisk.c: Likewise.
20843 * disk/efi/efidisk.c: Likewise.
20844 * kern/dl.c: Likewise.
20845 * kern/sparc64/ieee1275/init.c: Likewise.
20846 * kern/mm.c: Likewise.
20847 * kern/efi/mm.c: Likewise.
20848 * boot/i386/pc/boot.S: Likewise.
20849 * genfslist.sh: Likewise.
20850 * fs/iso9660.c: Likewise.
20851 * fs/hfs.c: Likewise.
20852 * fs/jfs.c: Likewise.
20853 * fs/minix.c: Likewise.
20854 * fs/ufs.c: Likewise.
20855 * gensymlist.sh.in: Likewise.
20856 * genkernsyms.sh.in: Likewise.
20857 * include/grub/misc.h: Likewise.
20858 * include/grub/types.h: Likewise.
20859 * include/grub/symbol.h: Likewise.
20860 * include/grub/elf.h: Likewise.
20861 * include/grub/kernel.h: Likewise.
20862 * include/grub/disk.h: Likewise.
20863 * include/grub/dl.h: Likewise.
20864 * include/grub/i386/linux.h: Likewise.
20865 * include/grub/i386/pc/biosdisk.h: Likewise.
20866 * include/grub/efi/api.h: Likewise.
20867 * include/grub/efi/pe32.h: Likewise.
20868 * include/grub/util/misc.h: Likewise.
20869 * normal/execute.c: Likewise.
20870 * normal/arg.c: Likewise.
20871 * normal/completion.c: Likewise.
20872 * normal/lexer.c: Likewise.
20873 * normal/parser.y: Likewise.
20874 * normal/misc.c: Likewise.
20875 * commands/i386/pc/vbeinfo.c: Likewise.
20876 * commands/hexdump.c: Likewise.
20877 * commands/terminal.c: Likewise.
20878 * commands/ls.c: Likewise.
20879 * commands/help.c: Likewise.
20880 * partmap/pc.c: Likewise.
20881 * loader/efi/chainloader.c: Likewise.
20882 * loader/multiboot_loader.c: Likewise.
20883 * loader/i386/pc/multiboot2.c: Likewise.
20884 * term/efi/console.c: Likewise.
20885 * term/i386/pc/serial.c: Likewise.
20886 * util/lvm.c: Likewise.
20887 * util/console.c: Likewise.
20888 * util/i386/efi/grub-mkimage.c: Likewise.
20889 * util/raid.c: Likewise.
20891 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
20893 * commands/videotest.c: Removed include to grub/machine/memory.h.
20895 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
20896 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
20897 (video_mod_SOURCES): Removed.
20898 (video_mod_CFLAGS): Likewise.
20899 (video_mod_LDFLAGS): Likewise.
20900 (gfxterm_mod_SOURCES): Likewise.
20901 (gfxterm_mod_CFLAGS): Likewise.
20902 (gfxterm_mod_LDFLAGS): Likewise.
20903 (videotest_mod_SOURCES): Likewise.
20904 (videotest_mod_CFLAGS): Likewise.
20905 (videotest_mod_LDFLAGS): Likewise.
20906 (bitmap_mod_SOURCES): Likewise.
20907 (bitmap_mod_CFLAGS): Likewise.
20908 (bitmap_mod_LDFLAGS): Likewise.
20909 (tga_mod_SOURCES): Likewise.
20910 (tga_mod_CFLAGS): Likewise.
20911 (tga_mod_LDFLAGS): Likewise.
20912 (jpeg_mod_SOURCES): Likewise.
20913 (jpeg_mod_CFLAGS): Likewise.
20914 (jpeg_mod_LDFLAGS): Likewise.
20915 (png_mod_SOURCES): Likewise.
20916 (png_mod_CFLAGS): Likewise.
20917 (png_mod_LDFLAGS): Likewise.
20919 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
20920 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
20921 (video_mod_SOURCES): Added.
20922 (video_mod_CFLAGS): Likewise.
20923 (video_mod_LDFLAGS): Likewise.
20924 (videotest_mod_SOURCES): Likewise.
20925 (videotest_mod_CFLAGS): Likewise.
20926 (videotest_mod_LDFLAGS): Likewise.
20927 (bitmap_mod_SOURCES): Likewise.
20928 (bitmap_mod_CFLAGS): Likewise.
20929 (bitmap_mod_LDFLAGS): Likewise.
20930 (tga_mod_SOURCES): Likewise.
20931 (tga_mod_CFLAGS): Likewise.
20932 (tga_mod_LDFLAGS): Likewise.
20933 (jpeg_mod_SOURCES): Likewise.
20934 (jpeg_mod_CFLAGS): Likewise.
20935 (jpeg_mod_LDFLAGS): Likewise.
20936 (png_mod_SOURCES): Likewise.
20937 (png_mod_CFLAGS): Likewise.
20938 (png_mod_LDFLAGS): Likewise.
20939 (gfxterm_mod_SOURCES): Likewise.
20940 (gfxterm_mod_CFLAGS): Likewise.
20941 (gfxterm_mod_LDFLAGS): Likewise.
20943 * term/gfxterm.c: Removed include to grub/machine/memory.h,
20944 grub/machine/console.h.
20946 2009-01-04 Jerone Young <jerone@gmail.com>
20948 Make on screen instructions clearer
20950 Based on patch created by Jidanni <jidanni@jidanni.org>
20952 * normal/menu.c: print clearer instructions on the screen
20954 2009-01-02 Colin D Bennett <colin@gibibit.com>
20958 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
20959 build system and fixed gfxterm.c to work with different sized fonts.
20961 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
20963 * configure: Re-generated.
20965 * DISTLIST: Removed font/manager.c.
20967 Added font/font_cmd.c.
20969 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
20972 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
20974 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
20976 * kern/term.c: Changed users of grub_utf8_to_ucs4.
20978 * normal/menu.c: Likewise.
20980 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
20981 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
20983 * include/grub/font.h: Replaced with new file.
20985 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
20986 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
20987 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
20988 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
20989 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
20990 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
20991 fg_red, fg_green, fg_blue, fg_alpha.
20992 (grub_video_adapter): Removed blit_glyph.
20993 (grub_video_blit_glyph): Removed.
20995 * font/manager.c: Removed file.
20997 * font/font.c: New file.
20999 * font/font_cmd.c: Likewise.
21001 * video/video.c (grub_video_blit_glyph): Removed.
21003 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
21004 (grub_video_vbe_map_rgba): Likewise.
21005 (grub_video_vbe_unmap_color_int): Likewise.
21006 (grub_video_vbe_blit_glyph): Removed.
21007 (grub_video_vbe_adapter): Removed blit_glyph.
21009 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
21010 (get_pixel): Likewise.
21011 (set_pixel): Likewise.
21013 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
21015 * term/gfxterm.c: Adapted to new font engine.
21017 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
21019 * term/i386/pc/vga.c: Likewise.
21021 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
21023 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
21025 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
21027 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
21029 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
21031 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
21033 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
21035 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
21037 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
21039 * util/grub.d/00_header.in: Changed to use new loadfont command.
21041 * util/grub-mkconfig_lib.in: Changed font extension.
21043 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
21045 * util/getroot.c (grub_util_get_grub_dev): Add support for
21046 /dev/md/dNNpNN style partitionable mdraid devices.
21048 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
21050 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
21051 at a time limit of the PXE TFTP API correctly.
21052 (grub_pxefs_close): Likewise.
21054 2008-11-29 Robert Millan <rmh@aybabtu.com>
21056 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
21057 grub_ata_device_initialize() calls.
21059 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
21061 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
21063 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
21065 2008-11-28 Robert Millan <rmh@aybabtu.com>
21067 Fix build on powerpc-ieee1275. Based on patch created by
21068 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
21069 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21070 `kern/ieee1275/mmap.c'.
21071 * include/grub/powerpc/ieee1275/memory.h: New file.
21073 Provide grub-install on coreboot.
21074 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
21075 (grub_install_SOURCES): New variable.
21076 * util/i386/pc/grub-install.in: Add a few condition checks to make it
21077 usable on coreboot.
21079 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
21081 * util/grub-fstest.c (grub_term_get_current_input): Change return type
21082 to `grub_term_input_t'.
21083 (grub_term_get_current_output): Change return type to
21084 `grub_term_output_t'.
21086 2008-11-22 Robert Millan <rmh@aybabtu.com>
21088 Fix breakage on coreboot due to declaration mismatch.
21089 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
21090 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
21091 grub_vga_text_cls().
21093 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
21094 comments. Avoid copying one more byte than necessary (just in case).
21096 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
21097 to 0x200000 (avoids trouble with some OFW implementations, and matches
21098 with the one in Yaboot).
21099 Reported by Manoel Abranches
21101 2008-11-20 Robert Millan <rmh@aybabtu.com>
21103 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
21104 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
21106 * util/grub-mkconfig_lib.in (grub_warn): New function.
21107 (convert_system_path_to_grub_path): Use grub_warn() when issuing
21108 warnings, to obtain consistent formatting.
21109 * util/grub.d/00_header.in: Likewise.
21110 * util/update-grub_lib.in: Likewise.
21112 * loader/i386/linux.c (allocate_pages): Fix a warning.
21113 Move comment text to `#error' stanza.
21115 Harmonize ieee1275's grub_available_iterate() with the generic
21116 grub_machine_mmap_iterate() interface (fixes a recently-introduced
21117 build problem on i386-ieee1275):
21118 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
21119 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
21120 parameter `type'. Update all users of this function.
21121 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
21122 `kern/ieee1275/mmap.c'.
21123 * kern/ieee1275/init.c
21124 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
21126 (grub_machine_mmap_iterate): ... this.
21127 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
21128 return type to `grub_err_t'. Update all implementations of this
21129 function prototype.
21130 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
21133 Add `lsmmap' command (lists firmware-provided memory map):
21134 * commands/lsmmap.c: New file.
21135 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
21136 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
21138 * conf/powerpc-ieee1275.rmk: Likewise.
21139 * conf/i386-coreboot.rmk: Likewise.
21140 * conf/i386-ieee1275.rmk: Likewise.
21142 2008-11-19 Robert Millan <rmh@aybabtu.com>
21144 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
21145 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
21146 constraints to initrd allocation (based on code from
21147 loader/i386/pc/linux.c). Without them, initrd was allocated too high
21148 for Linux to find it.
21150 2008-11-14 Robert Millan <rmh@aybabtu.com>
21152 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
21153 order to cope with duplicate slashes.
21155 2008-11-14 Robert Millan <rmh@aybabtu.com>
21157 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
21158 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
21159 don't want to mess with lower memory, because it is used in the Linux
21162 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
21163 an appropriate place in lower memory, between 0x10000 and 0x90000,
21164 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
21165 is in our heap (probably as a result of it being corrupted during
21166 decompression). Add #error instance with comment to explain why this
21167 loader isn't currently usable on PC/BIOS.
21169 2008-11-14 Robert Millan <rmh@aybabtu.com>
21171 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
21172 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
21174 2008-11-12 Robert Millan <rmh@aybabtu.com>
21176 Make loader/i386/linux.c buildable on i386-pc (although disabled).
21178 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
21179 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
21181 * include/grub/i386/pc/memory.h: ... to here.
21183 2008-11-12 Robert Millan <rmh@aybabtu.com>
21185 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
21188 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
21189 (grub_console_cur_color, grub_console_real_putchar)
21190 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
21191 (grub_console_setcolorstate, grub_console_setcolor)
21192 (grub_console_getcolor): Move from here ...
21193 * include/grub/i386/vga_common.h: ... to here (new file).
21195 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
21196 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
21197 `<grub/i386/io.h>'.
21198 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
21199 `<grub/i386/vga_common.h>'.
21201 2008-11-12 Robert Millan <rmh@aybabtu.com>
21203 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
21204 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
21205 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
21207 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
21208 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
21210 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
21211 grub_console_init() with call to grub_vga_text_init().
21212 (grub_machine_fini): Replace call to
21213 grub_console_fini() with call to grub_vga_text_fini() and
21214 grub_at_keyboard_fini().
21216 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
21217 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
21218 (grub_console_setcolorstate, grub_console_setcolor)
21219 (grub_console_getcolor): New function prototypes.
21221 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
21222 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
21223 (grub_vga_text_setcursor): Static-ize.
21224 (grub_vga_text_term): New structure.
21225 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
21227 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
21228 (grub_console_cur_color, grub_console_standard_color)
21229 (grub_console_normal_color, grub_console_highlight_color)
21230 (map_char, grub_console_putchar, grub_console_getcharwidth)
21231 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
21232 (grub_console_getcolor): Move from here ...
21233 * term/i386/vga_common.c: ... to here (same function names).
21235 2008-11-12 Robert Millan <rmh@aybabtu.com>
21237 Use newly-added Multiboot support in coreboot.
21239 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
21240 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
21242 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
21243 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
21244 (codestart): Store the MBI in `startup_multiboot_info' when we're
21245 being loaded using Multiboot.
21247 * kern/i386/coreboot/init.c (grub_machine_init): Move
21248 grub_at_keyboard_init() call to beginning of function (useful for
21249 debugging). Call grub_machine_mmap_init() before attempting to use
21250 grub_machine_mmap_iterate().
21251 (grub_lower_mem, grub_upper_mem): Move from here ...
21252 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
21255 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
21256 function prototype.
21258 2008-11-12 Robert Millan <rmh@aybabtu.com>
21260 Fix a regression introduced by the at_keyboard.mod split. Because
21261 some terminals are default on some platforms and non-default on
21262 others, the first terminal being registered determines which is
21263 going to be default.
21265 * kern/term.c (grub_term_register_input): If this is the first
21266 terminal being registered, set it as the current one.
21267 (grub_term_register_output): Likewise.
21269 * term/efi/console.c (grub_console_init): Do not call
21270 grub_term_set_current_output() or grub_term_set_current_input().
21271 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
21272 * term/i386/pc/console.c (grub_console_init): Likewise.
21273 (grub_console_fini): Do not call grub_term_set_current_input()
21274 (but leave grub_term_set_current_output() to restore text mode).
21276 2008-11-10 Robert Millan <rmh@aybabtu.com>
21278 * util/grub.d/00_header.in: Add backward compatibility check for
21279 versions of terminal.mod that don't understand `terminal_input' or
21282 2008-11-09 Robert Millan <rmh@aybabtu.com>
21284 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
21285 `terminal_input' / `terminal_output', not `terminal'.
21287 2008-11-08 Robert Millan <rmh@aybabtu.com>
21289 * Makefile.in (include_DATA): Fix srcdir=. assumption.
21290 (DISTCLEANFILES): Add `build_env.mk'.
21292 2008-11-08 Robert Millan <rmh@aybabtu.com>
21294 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
21295 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
21296 members. Update all users.
21297 * util/console.c (grub_ncurses_term): Split in ...
21298 (grub_ncurses_term_input): ... this, and ...
21299 (grub_ncurses_term_output): ... this. Update all users.
21300 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
21302 2008-11-08 Robert Millan <rmh@aybabtu.com>
21304 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
21305 (PKGDATA): Add $(pkgdata_SRCDIR).
21306 (pkglib_BUILDDIR): New variable.
21307 (pkgdata_SRCDIR): New variable.
21308 (build_env.mk): New target.
21309 (include_DATA): New variable.
21310 (install-local): Install $(include_DATA) files in $(includedir).
21312 2008-11-07 Pavel Roskin <proski@gnu.org>
21314 * gendistlist.sh: Use C locale for sorting to ensure consistent
21315 output on all systems.
21317 * util/grub.d/00_header.in: Remove incorrect space before
21320 2008-11-07 Robert Millan <rmh@aybabtu.com>
21322 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
21324 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
21325 * loader/multiboot_loader.c (find_multi_boot2_header): New function
21326 (based on find_multi_boot1_header).
21327 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
21328 using find_multi_boot2_header(), and abort if neither Multiboot or
21329 Multiboot headers were found.
21331 2008-11-07 Robert Millan <rmh@aybabtu.com>
21333 Modularize at_keyboard.mod:
21335 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
21336 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
21337 (at_keyboard_mod_LDFLAGS): New variables.
21339 Actual terminal split:
21341 * include/grub/term.h (struct grub_term): Split in ...
21342 (struct grub_term_input): ... this, and ...
21343 (struct grub_term_output): ... this. Update all users.
21344 (grub_term_set_current): Split in ...
21345 (grub_term_set_current_input): ... this, and ...
21346 (grub_term_set_current_output): ... this.
21347 (grub_term_get_current): Split in ...
21348 (grub_term_get_current_input): ... this, and ...
21349 (grub_term_get_current_output): ... this.
21350 (grub_term_register): Split in ...
21351 (grub_term_register_input): ... this, and ...
21352 (grub_term_register_output): ... this.
21353 (grub_term_unregister): Split in ...
21354 (grub_term_unregister_input): ... this, and ...
21355 (grub_term_unregister_output): ... this.
21356 (grub_term_iterate): Split in ...
21357 (grub_term_iterate_input): ... this, and ...
21358 (grub_term_iterate_output): ... this.
21360 * kern/term.c (grub_term_list): Split in ...
21361 (grub_term_list_input): ... this, and ...
21362 (grub_term_list_output): ... this. Update all users.
21363 (grub_cur_term): Split in ...
21364 (grub_cur_term_input): ... this, and ...
21365 (grub_cur_term_output): ... this. Update all users.
21366 (grub_term_set_current): Split in ...
21367 (grub_term_set_current_input): ... this, and ...
21368 (grub_term_set_current_output): ... this.
21369 (grub_term_get_current): Split in ...
21370 (grub_term_get_current_input): ... this, and ...
21371 (grub_term_get_current_output): ... this.
21372 (grub_term_register): Split in ...
21373 (grub_term_register_input): ... this, and ...
21374 (grub_term_register_output): ... this.
21375 (grub_term_unregister): Split in ...
21376 (grub_term_unregister_input): ... this, and ...
21377 (grub_term_unregister_output): ... this.
21378 (grub_term_iterate): Split in ...
21379 (grub_term_iterate_input): ... this, and ...
21380 (grub_term_iterate_output): ... this.
21382 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
21383 a check for input and one for output (and only attempt to get keys
21384 from user when input works).
21386 * util/grub-probe.c (grub_term_get_current): Split in ...
21387 (grub_term_get_current_input): ... this, and ...
21388 (grub_term_get_current_output): ... this.
21389 * util/grub-fstest.c: Likewise.
21390 * util/i386/pc/grub-setup.c: Likewise.
21391 * util/grub-editenv.c: Likewise.
21393 Portability adjustments:
21395 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
21396 `term/i386/pc/at_keyboard.c'.
21397 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
21398 grub_keyboard_controller_init() (now handled by terminal .init).
21399 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
21400 grub_at_keyboard_init().
21401 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
21402 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
21403 at_keyboard.mod via input terminal interface).
21404 * include/grub/i386/coreboot/console.h: Convert into a stub for
21405 `<grub/i386/pc/console.h>'.
21407 Migrate full terminals to new API:
21409 * term/efi/console.c (grub_console_term): Split into ...
21410 (grub_console_term_input): ... this, and ...
21411 (grub_console_term_output): ... this. Update all users.
21412 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
21413 (grub_ofconsole_init): Split into ...
21414 (grub_ofconsole_init_input): ... this, and ...
21415 (grub_ofconsole_init_output): ... this.
21416 (grub_ofconsole_term): Split into ...
21417 (grub_ofconsole_term_input): ... this, and ...
21418 (grub_ofconsole_term_output): ... this. Update all users.
21419 * term/i386/pc/serial.c (grub_serial_term): Split into ...
21420 (grub_serial_term_input): ... this, and ...
21421 (grub_serial_term_output): ... this. Update all users.
21422 * term/i386/pc/console.c (grub_console_term): Split into ...
21423 (grub_console_term_input): ... this, and ...
21424 (grub_console_term_output): ... this. Update all users.
21425 (grub_console_term_input): Only enable it on PC/BIOS platform.
21426 (grub_console_init): Remove grub_keyboard_controller_init() call.
21428 Migrate input terminals to new API:
21430 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
21431 `i386' and `i386/pc' to enable build on x86_64 (this driver is
21432 i386-specific anyway).
21433 (grub_console_checkkey): Rename to ...
21434 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
21436 (grub_keyboard_controller_orig): New variable.
21437 (grub_console_getkey): Rename to ...
21438 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
21440 (grub_keyboard_controller_init): Static-ize. Save original
21441 controller value so that it can be restored ...
21442 (grub_keyboard_controller_fini): ... here (new function).
21443 (grub_at_keyboard_term): New structure.
21444 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
21447 Migrate output terminals to new API:
21449 * term/i386/pc/vga.c (grub_vga_term): Change type to
21450 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
21451 members. Update all users.
21452 * term/gfxterm.c (grub_video_term): Change type to
21453 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
21454 members. Update all users.
21455 * include/grub/i386/pc/console.h (grub_console_checkkey)
21456 (grub_console_getkey): Do not export (no longer needed by gfxterm,
21459 Migrate `terminal' command and userland tools to new API:
21461 * commands/terminal.c (grub_cmd_terminal): Split into ...
21462 (grub_cmd_terminal_input): ... this, and ...
21463 (grub_cmd_terminal_output): ... this.
21464 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
21465 `terminal_input' and `terminal_output'.
21466 * util/grub.d/00_header.in: Adjust `terminal' calls to new
21467 `terminal_input' / `terminal_output' API.
21468 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
21469 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
21470 provided ${GRUB_TERMINAL}, convert it).
21472 2008-11-04 Robert Millan <rmh@aybabtu.com>
21474 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
21476 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
21478 2008-11-03 Bean <bean123ch@gmail.com>
21480 * kern/elf.c (grub_elf32_load): Revert to previous code.
21481 (grub_elf64_load): Likewise.
21483 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
21485 2008-11-01 Robert Millan <rmh@aybabtu.com>
21487 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
21488 (TARGET_CPPFLAGS): Likewise.
21489 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
21491 2008-11-01 Carles Pina i Estany <carles@pina.cat>
21493 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
21495 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
21497 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
21498 addition of objects until the code is not going to be able to fail.
21500 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
21502 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
21503 (add a missing NULL check, and correct them by moving the pointer
21504 operations after the actual check).
21506 2008-10-29 Robert Millan <rmh@aybabtu.com>
21508 * util/i386/pc/grub-install.in: Handle empty string as output from
21509 make_system_path_relative_to_its_root().
21511 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
21513 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
21514 circular metadata worst case scenario. If the metadata is circular
21515 then copy the wrap in place.
21516 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
21517 project lib/format_text/layout.h
21518 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
21520 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
21522 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
21524 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
21526 * util/update-grub_lib.in: Mention filename in warning message.
21528 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
21530 * NEWS: Update for rename of update-grub to grub-mkconfig.
21532 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
21534 * util/update-grub_lib.in: Copy to ...
21535 * util/grub-mkconfig_lib.in: ... this. Update all users.
21536 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
21537 * util/update-grub.in: Rename to ...
21538 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
21539 option. Add `--output' option to allow users to specify the generated
21540 configuration file. Default to stdout.
21541 (update_grub_dir): Rename to ...
21542 (grub_mkconfig_dir): ... this.
21543 (grub_cfg): Default to an empty string.
21544 * conf/common.rmk (update-grub): Rename to ...
21545 (grub-mkconfig): ... this.
21546 (update-grub_lib): Copy to ...
21547 (grub-mkconfig_lib): ... this.
21548 (update-grub_SCRIPTS): Copy to ...
21549 (grub-mkconfig_SCRIPTS): ... this. Update all users.
21550 (update-grub_DATA): Rename to ...
21551 (grub-mkconfig_DATA): ... this.
21553 2008-09-28 Robert Millan <rmh@aybabtu.com>
21555 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
21556 to `modified'. Add the real `created' field.
21557 (grub_iso9660_uuid): Use `modified' rather than `created' for
21558 constructing the UUID.
21560 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
21562 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
21563 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
21565 2008-09-28 Bean <bean123ch@gmail.com>
21567 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
21568 Thanks to Christian Franke for finding this bug.
21570 2008-09-25 Robert Millan <rmh@aybabtu.com>
21572 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
21573 instances of grub_util_get_disk_name() (see previous commit).
21575 2008-09-25 Robert Millan <rmh@aybabtu.com>
21577 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
21578 `util/i386/get_disk_name.c'.
21579 * conf/i386-efi.rmk: Likewise.
21580 * conf/x86_64-efi.rmk: Likewise.
21581 * conf/i386-coreboot.rmk: Likewise.
21582 * conf/i386-ieee1275.rmk: Likewise.
21583 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
21584 `util/ieee1275/get_disk_name.c'.
21585 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
21586 * util/ieee1275/get_disk_name.c: Remove file.
21587 * util/i386/get_disk_name.c: Remove file.
21588 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
21589 "hd%d" for device.map entries, rather than using
21590 grub_util_get_disk_name().
21592 2008-09-24 Carles Pina i Estany <carles@pina.cat>
21594 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
21596 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
21598 2008-09-24 Carles Pina i Estany <carles@pina.cat>
21600 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
21602 (GRUB_TERM_PPAGE): Changed to 0x4900.
21604 2008-09-24 Robert Millan <rmh@aybabtu.com>
21606 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
21607 macros (they were i386-pc specific).
21608 * include/grub/sparc64/ieee1275/console.h: Likewise.
21609 * include/grub/efi/console.h: Likewise.
21611 2008-09-22 Bean <bean123ch@gmail.com>
21613 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
21614 resident and in attribute list.
21616 * include/grub/ntfs.h (BMP_LEN): Removed.
21618 2008-09-22 Bean <bean123ch@gmail.com>
21620 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
21621 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
21623 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
21624 error occurs, as grub_disk_open will call grub_disk_close, which will
21625 call p->close (scsi).
21627 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
21629 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
21630 (AC_PREREQ): Bumped to 2.59.
21631 (AC_TRY_COMPILE): Replace obsolete macro with ...
21632 (AC_COMPILE_IFELSE): ... this.
21633 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
21634 (AC_LINK_IFELSE): ... this.
21636 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
21638 * autogen.sh: Add a call to `gendistlist.sh'.
21640 2008-09-19 Christian Franke <franke@computer.org>
21642 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
21643 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
21644 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
21645 Export __enable_execute_stack() to modules.
21646 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
21649 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
21651 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
21654 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
21656 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
21657 #include <grub/util/hostdisk.h>.
21659 2008-09-08 Robert Millan <rmh@aybabtu.com>
21661 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
21662 segments when their filesz is zero (grub_file_read() interprets
21663 zero-size as "read until EOF", which results in memory corruption).
21664 Use `lowest_segment' rather than 0 for calculating the current
21665 segment load address.
21667 2008-09-08 Robert Millan <rmh@aybabtu.com>
21669 * util/hostdisk.c (open_device): Replace a grub_util_info() call
21670 with grub_dprintf("hostdisk", ...), as it was so verbose that it
21671 clobbered useful information.
21673 2008-09-08 Robert Millan <rmh@aybabtu.com>
21675 * include/grub/util/biosdisk.h: Move to ...
21676 * include/grub/util/hostdisk.h: ... here. Update all users.
21677 * util/biosdisk.c: Move to ...
21678 * util/hostdisk.c: ... here. Update all users.
21680 2008-09-07 Robert Millan <rmh@aybabtu.com>
21682 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
21684 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
21685 and length can be stored directly in the `mbi->mmap_addr' and
21686 `mbi->mmap_length' struct fields.
21688 2008-09-07 Robert Millan <rmh@aybabtu.com>
21690 * conf/i386.rmk: New file. Provides declaration for building
21692 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
21693 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
21695 Include `conf/i386.mk'.
21696 * conf/i386-efi.rmk: Likewise.
21697 * conf/x86_64-efi.rmk: Likewise.
21698 * conf/i386-coreboot.rmk: Likewise.
21699 * conf/i386-ieee1275.rmk: Likewise.
21701 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
21703 Based on patch created by Colin D Bennett <colin@gibibit.com>.
21704 Adds optimization support for BGR based modes.
21706 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
21707 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
21708 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21709 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21710 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21711 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21712 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21713 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21714 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21715 (grub_video_i386_vbeblit_index_index): Likewise.
21716 (grub_video_i386_vbeblit_replace_directN): Added.
21717 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
21718 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
21719 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
21720 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
21721 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
21722 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
21723 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
21724 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
21725 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
21726 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
21727 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
21728 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
21729 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
21731 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
21732 (grub_video_i386_vbefill_R8G8B8): Likewise.
21733 (grub_video_i386_vbefill_index): Likewise.
21734 (grub_video_i386_vbefill_direct32): Added.
21735 (grub_video_i386_vbefill_direct24): Likewise.
21736 (grub_video_i386_vbefill_direct16): Likewise.
21737 (grub_video_i386_vbefill_direct8): Likewise.
21739 * include/grub/video.h (grub_video_blit_format): Removed
21740 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
21741 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
21742 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
21743 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
21744 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
21746 * video/video.c (grub_video_get_blit_format): Updated to use new
21747 blit formats. Added handling for 16 bit color modes.
21749 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
21751 (common_blitter): Updated to use new blitters.
21753 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
21755 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
21756 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
21757 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
21758 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
21759 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
21760 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
21761 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
21762 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
21763 (grub_video_i386_vbeblit_index_index): Likewise.
21764 (grub_video_i386_vbeblit_replace_directN): Added.
21765 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
21766 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
21767 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
21768 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
21769 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
21770 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
21771 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
21772 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
21773 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
21774 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
21775 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
21776 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
21777 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
21779 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
21780 (grub_video_i386_vbefill_R8G8B8): Likewise.
21781 (grub_video_i386_vbefill_index): Likewise.
21782 (grub_video_i386_vbefill_direct32): Added.
21783 (grub_video_i386_vbefill_direct24): Likewise.
21784 (grub_video_i386_vbefill_direct16): Likewise.
21785 (grub_video_i386_vbefill_direct8): Likewise.
21787 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
21790 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
21793 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
21796 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
21799 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
21801 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
21804 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
21806 * fs/iso9660.c (grub_iso9660_date): New structure.
21807 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
21808 (grub_iso9660_uuid): New function.
21810 2008-09-05 Bean <bean123ch@gmail.com>
21812 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
21814 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
21815 insensitive bit for names in Win32 and Win32 & DOS namespace.
21817 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
21819 * include/grub/types.h (LONG_MAX): Likewise.
21821 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
21823 * util/getroot.c: Include <config.h>.
21824 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
21825 add support for /dev/md/N devices and handle LVM double dash escaping.
21827 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
21829 * config.guess: Update to latest version from config git.
21830 * config.sub: Likewise.
21832 2008-09-03 Robert Millan <rmh@aybabtu.com>
21834 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
21835 `disk->total_sectors'.
21837 2008-09-01 Colin D Bennett <colin@gibibit.com>
21839 * include/grub/normal.h: Fixed incorrect comment for
21840 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
21842 2008-09-01 Colin D Bennett <colin@gibibit.com>
21844 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
21845 values with defines.
21847 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
21848 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
21849 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
21850 (GRUB_VBE_MODEATTR_COLOR): Likewise.
21851 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
21852 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
21853 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
21854 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
21855 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
21856 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
21857 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
21858 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
21859 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
21860 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
21861 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
21862 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
21863 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
21864 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
21865 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
21867 2008-08-31 Robert Millan <rmh@aybabtu.com>
21869 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
21871 (grub_multiboot): Fix a few warnings.
21873 2008-08-31 Robert Millan <rmh@aybabtu.com>
21875 * loader/i386/pc/multiboot.c: Update comment not to say that
21876 boot_device support is unimplemented.
21878 2008-08-31 Robert Millan <rmh@aybabtu.com>
21880 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
21881 or memory map support are unimplemented.
21883 2008-08-31 Colin D Bennett <colin@gibibit.com>
21885 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
21887 2008-08-31 Colin D Bennett <colin@gibibit.com>
21889 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
21890 total video memory in 'vbeinfo' output; show color format details for
21893 2008-08-30 Pavel Roskin <proski@gnu.org>
21895 * util/genmoddep.c: Remove for real this time.
21896 * DISTLIST: Remove util/genmoddep.c.
21898 2008-08-30 Robert Millan <rmh@aybabtu.com>
21900 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
21901 as required by Multiboot spec (it was already 4-byte aligned, but
21904 2008-08-29 Pavel Roskin <proski@gnu.org>
21906 * kern/powerpc/ieee1275/crt0.S: Rename to ...
21907 * kern/powerpc/ieee1275/startup.S: ... this.
21908 * conf/powerpc-ieee1275.rmk: Adjust for the above.
21909 * DISTLIST: Likewise.
21911 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
21912 grub/cpu/kernel.h. Add start label for consistency with other
21913 platforms. Add grub_prefix immediately after start. Add jump
21914 to the code after grub_prefix.
21915 * include/grub/powerpc/kernel.h: Provide valid values for
21916 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
21918 2008-08-29 Bean <bean123ch@gmail.com>
21920 * configure.ac: Change host_os to cygwin for mingw.
21921 (asprintf): New check for function.
21923 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
21924 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
21926 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
21927 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
21928 sync, sleep and grub_util_get_disk_size for mingw.
21930 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
21931 to get size in mingw.
21932 (open_device): Use flag O_BINARY if it's defined.
21933 (find_root_device): Add dummy code for mingw.
21935 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
21936 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
21937 (get_scsi_disk_name): Return 0 for mingw.
21939 * util/hostfs.c: #include <grub/util/misc.h>.
21940 (grub_hostfs_open): Use "rb" flag to open file, use
21941 grub_util_get_disk_size to get disk size for mingw.
21943 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
21944 (asprintf): New function if HAVE_ASPRINTF is not set.
21945 (sync): New function for mingw.
21947 (grub_util_get_disk_size): Likewise.
21949 2008-08-28 Pavel Roskin <proski@gnu.org>
21951 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
21954 2008-08-28 Robert Millan <rmh@aybabtu.com>
21956 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
21958 2008-08-28 Robert Millan <rmh@aybabtu.com>
21960 Change find_grub_drive() syntax so it doesn't prevent it from
21961 detecting NULL names as errors.
21963 * util/biosdisk.c (find_grub_drive): Move free slot search code
21965 (find_free_slot): ... to here.
21966 (read_device_map): Use find_free_slot() to search for free slots.
21968 2008-08-27 Marco Gerards <marco@gnu.org>
21970 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
21971 (scsi_mod_SOURCES): New variable.
21972 (scsi_mod_CFLAGS): Likewise
21973 (scsi_mod_LDFLAGS): Likewise.
21975 * disk/scsi.c: New file.
21977 * include/grub/scsi.h: Likewise.
21979 * include/grub/scsicmd.h: Likewise.
21981 * disk/ata.c: Include <grub/scsi.h>.
21982 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
21984 (grub_ata_iterate): Skip ATAPI devices.
21985 (grub_ata_open): Only handle ATAPI devices.
21986 (struct grub_atapi_read): Removed.
21987 (grub_atapi_readsector): Likewise.
21988 (grub_ata_read): No longer handle ATAPI devices.
21989 (grub_ata_write): Likewise.
21990 (grub_atapi_iterate): New function.
21991 (grub_atapi_read): Likewise.
21992 (grub_atapi_write): Likewise.
21993 (grub_atapi_open): Likewise.
21994 (grub_atapi_close): Likewise.
21995 (grub_atapi_dev): New variable.
21996 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
21997 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
21999 * include/grub/disk.h (enum grub_disk_dev_id): Add
22000 `GRUB_DISK_DEVICE_SCSI_ID'.
22002 2008-08-26 Robert Millan <rmh@aybabtu.com>
22004 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
22005 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
22008 2008-08-23 Bean <bean123ch@gmail.com>
22010 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
22011 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
22012 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
22013 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
22015 (raid5rec_mod_SOURCES): New macro.
22016 (raid5rec_mod_CFLAGS): Likewise.
22017 (raid5rec_mod_LDFLAGS): Likewise.
22018 (raid6rec_mod_SOURCES): Likewise.
22019 (raid6rec_mod_CFLAGS): Likewise.
22020 (raid6rec_mod_LDFLAGS): Likewise.
22021 (mdraid_mod_SOURCES): Likewise.
22022 (mdraid_mod_CFLAGS): Likewise.
22023 (mdraid_mod_LDFLAGS): Likewise.
22024 (dm_nv_mod_SOURCES): Likewise.
22025 (dm_nv_mod_CFLAGS): Likewise.
22026 (dm_nv_mod_LDFLAGS): Likewise.
22028 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
22029 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
22030 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
22032 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
22033 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
22035 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
22037 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
22039 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22041 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22043 * disk/raid5_recover.c: New file.
22045 * disk/raid6_recover.c: Likewise.
22047 * disk/mdraid_linux.c: Likewise.
22049 * disk/dmraid_nvidia.c: Likewise.
22051 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
22054 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
22055 calculate the size of raid device.
22056 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
22057 different layout of raid5.
22058 (grub_raid_scan_device): Remove code specific to mdraid.
22059 (grub_raid_list): New variable.
22060 (free_array): New function.
22061 (grub_raid_register): Likewise.
22062 (grub_raid_unregister): Likewise.
22063 (grub_raid_rescan): Likewise.
22064 (GRUB_MOD_INIT): Don't iterate device here.
22065 (GRUB_MOD_FINI): Use free_array to release resource.
22067 * include/grub/raid.h: Remove macro and structure specific to mdraid.
22068 (grub_raid5_recover_func_t): New function variable type.
22069 (grub_raid6_recover_func_t): Likewise.
22070 (grub_raid5_recover_func): New variable.
22071 (grub_raid6_recover_func): Likewise.
22072 (grub_raid_register): New function.
22073 (grub_raid_unregister): Likewise.
22074 (grub_raid_rescan): Likewise.
22075 (grub_raid_block_xor): Likewise.
22077 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
22078 (CMD_CRC): New macro.
22080 (read_file): Handle device as well as file.
22081 (cmd_crc): New function.
22082 (fstest): Handle multiple disks.
22083 (options): Remove part, raw and long, add root and diskcount.
22084 (usage): Add crc, remove -p, -r, -l, add -r and -c.
22085 (main): Find the first non option entry and ignore subsequent options,
22086 add handling for the new options, support multiple disks.
22088 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
22090 2008-08-23 Bean <bean123ch@gmail.com>
22092 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
22094 * genfslist.sh: Ignore kernel.mod.
22096 * genpartmaplist.sh: Likewise.
22098 2008-08-23 Robert Millan <rmh@aybabtu.com>
22100 * util/getroot.c (find_root_device): Skip anything that starts with
22101 a dot, not just directories. This avoids things like /dev/.tmp.md0.
22103 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
22105 * util/update-grub.in (GRUB_GFXMODE): Export variable.
22106 * util/grub.d/00_header.in: Allow the administrator to change default
22107 gfxmode via ${GRUB_GFXMODE}.
22109 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
22111 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
22113 2008-08-21 Robert Millan <rmh@aybabtu.com>
22115 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
22117 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
22118 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
22120 2008-08-20 Carles Pina i Estany <carles@pina.cat>
22122 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
22123 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
22125 2008-08-19 Robert Millan <rmh@aybabtu.com>
22127 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
22128 (struct grub_virtual_screen): Remove `cursor_color'.
22129 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
22131 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
22133 2008-08-18 Robert Millan <rmh@aybabtu.com>
22135 Unify (identical) linux_normal.c files.
22136 * loader/i386/efi/linux_normal.c: Move from here ...
22137 * loader/linux_normal.c: ... to here. Update all users.
22138 * loader/i386/pc/linux_normal.c: Delete. Update all users.
22139 * loader/i386/ieee1275/linux_normal.c: Likewise.
22141 2008-08-18 Robert Millan <rmh@aybabtu.com>
22143 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
22144 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
22145 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
22146 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
22147 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
22149 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
22150 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
22151 (GRUB_LINUX_CL_END_OFFSET): ... to here.
22152 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
22153 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
22154 (GRUB_EFI_CL_END_OFFSET): Rename to ...
22155 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
22156 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
22157 Initialize `params->video_cursor_x' and `params->video_cursor_y'
22158 portably using grub_getxy().
22159 Replace `-EFI' with `-bzImage' in boot message.
22161 2008-08-17 Robert Millan <rmh@aybabtu.com>
22163 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
22165 2008-08-17 Robert Millan <rmh@aybabtu.com>
22167 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
22169 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
22170 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
22171 (grub_machine_mmap_iterate): New function declaration.
22172 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
22174 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
22177 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
22178 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
22179 Move e820 parsing from here ...
22180 * kern/i386/pc/mmap.c: New file.
22181 (grub_machine_mmap_iterate): ... to here.
22183 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
22184 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
22185 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
22186 (grub_available_iterate): Redeclare to return `void', and redeclare
22187 its hook to use grub_uint64_t as addr and size parameters, and rename
22189 (grub_machine_mmap_iterate): ... this. Update all users.
22191 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
22192 to make it more readable. Rename to ...
22193 (grub_machine_mmap_iterate): ... this.
22195 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
22196 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
22197 (grub_multiboot): Allocate an extra region after the payload, and fill
22198 it with a Multiboot memory map. Adjust a.out loader to calculate size
22199 with the extra space.
22200 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
22201 with the extra space.
22203 2008-08-17 Carles Pina i Estany <carles@pina.cat>
22205 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
22207 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
22209 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
22210 mdate-sh to the list `find' searches for.
22211 * DISTLIST: Regenerated.
22213 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
22215 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
22216 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
22217 genmoddep.awk, gensymlist.sh.in.
22218 (DISTDIRS): Add bus, docs, hook, lib.
22219 * DISTLIST: Regenerated.
22220 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
22222 2008-08-16 Robert Millan <rmh@aybabtu.com>
22224 * disk/raid.c (grub_raid_init): Handle/report errors set by
22225 grub_device_iterate().
22226 * disk/lvm.c (grub_lvm_init): Likewise.
22228 2008-08-15 Bean <bean123ch@gmail.com>
22230 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22232 (datetime_mod_SOURCES): New macro.
22233 (datetime_mod_CFLAGS): Likewise.
22234 (datetime_mod_LDFLAGS): Likewise.
22235 (date_mod_SOURCES): Likewise.
22236 (date_mod_CFLAGS): Likewise.
22237 (date_mod_LDFLAGS): Likewise.
22238 (datehook_mod_SOURCES): Likewise.
22239 (datehook_mod_CFLAGS): Likewise.
22240 (datehook_mod_LDFLAGS): Likewise.
22242 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22244 (datetime_mod_SOURCES): New macro.
22245 (datetime_mod_CFLAGS): Likewise.
22246 (datetime_mod_LDFLAGS): Likewise.
22247 (date_mod_SOURCES): Likewise.
22248 (date_mod_CFLAGS): Likewise.
22249 (date_mod_LDFLAGS): Likewise.
22250 (datehook_mod_SOURCES): Likewise.
22251 (datehook_mod_CFLAGS): Likewise.
22252 (datehook_mod_LDFLAGS): Likewise.
22254 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22256 (datetime_mod_SOURCES): New macro.
22257 (datetime_mod_CFLAGS): Likewise.
22258 (datetime_mod_LDFLAGS): Likewise.
22259 (date_mod_SOURCES): Likewise.
22260 (date_mod_CFLAGS): Likewise.
22261 (date_mod_LDFLAGS): Likewise.
22262 (datehook_mod_SOURCES): Likewise.
22263 (datehook_mod_CFLAGS): Likewise.
22264 (datehook_mod_LDFLAGS): Likewise.
22266 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22268 (datetime_mod_SOURCES): New macro.
22269 (datetime_mod_CFLAGS): Likewise.
22270 (datetime_mod_LDFLAGS): Likewise.
22271 (date_mod_SOURCES): Likewise.
22272 (date_mod_CFLAGS): Likewise.
22273 (date_mod_LDFLAGS): Likewise.
22274 (datehook_mod_SOURCES): Likewise.
22275 (datehook_mod_CFLAGS): Likewise.
22276 (datehook_mod_LDFLAGS): Likewise.
22278 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
22280 (datetime_mod_SOURCES): New macro.
22281 (datetime_mod_CFLAGS): Likewise.
22282 (datetime_mod_LDFLAGS): Likewise.
22283 (date_mod_SOURCES): Likewise.
22284 (date_mod_CFLAGS): Likewise.
22285 (date_mod_LDFLAGS): Likewise.
22286 (datehook_mod_SOURCES): Likewise.
22287 (datehook_mod_CFLAGS): Likewise.
22288 (datehook_mod_LDFLAGS): Likewise.
22290 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
22292 * commands/date.c: New file.
22294 * hook/datehook.c: Likewise.
22296 * include/grub/lib/datetime.h: Likewise.
22298 * include/grub/i386/cmos.h: Likewise.
22300 * lib/datetime.c: Likewise.
22302 * lib/i386/datetime.c: Likewise.
22304 * lib/efi/datetime.c: Likewise.
22306 2008-08-14 Robert Millan <rmh@aybabtu.com>
22308 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
22309 (grub_mkelfimage_SOURCES): New variable.
22310 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
22312 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
22313 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
22314 * conf/powerpc-ieee1275.rmk: Likewise.
22315 * conf/i386-ieee1275.rmk: Likewise.
22317 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
22318 * kern/i386/coreboot/init.c: Likewise.
22320 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
22321 with `<grub/cpu/kernel.h>'.
22322 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
22324 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
22325 * kern/i386/coreboot/startup.S: Likewise.
22327 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
22328 (GRUB_MOD_GAP): Remove.
22329 * include/grub/powerpc/kernel.h: New file.
22330 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
22331 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
22332 * include/grub/i386/kernel.h: New file.
22333 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
22334 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
22335 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
22337 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
22339 Use --directory when invoking grub_mkimage.
22341 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
22342 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
22343 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
22344 and GRUB_KERNEL_CPU_PREFIX.
22346 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
22348 * include/grub/err.h (grub_err_printf): New function prototype.
22349 * util/misc.c (grub_err_printf): New function.
22350 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
22352 * kern/err.c (grub_print_error): Use grub_err_printf.
22354 2008-08-13 Robert Millan <rmh@aybabtu.com>
22356 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
22358 2008-08-13 Robert Millan <rmh@aybabtu.com>
22360 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
22363 2008-08-12 Robert Millan <rmh@aybabtu.com>
22365 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
22366 of the relocation code from here ...
22367 (grub_multiboot): ... to here.
22368 (forward_relocator, backward_relocator): Move from here ...
22369 * kern/i386/loader.S (grub_multiboot_forward_relocator)
22370 (grub_multiboot_backward_relocator): ... to here.
22371 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
22372 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
22373 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
22374 (grub_multiboot_forward_relocator_end)
22375 (grub_multiboot_backward_relocator)
22376 (grub_multiboot_backward_relocator_end): New variables.
22378 2008-08-12 Bean <bean123ch@gmail.com>
22380 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
22382 2008-08-11 Robert Millan <rmh@aybabtu.com>
22384 * kern/i386/linuxbios/startup.S: Move from here ...
22385 * kern/i386/coreboot/startup.S: ... to here.
22387 * kern/i386/linuxbios/init.c: Move from here ...
22388 * kern/i386/coreboot/init.c: ... to here.
22390 * kern/i386/linuxbios/table.c: Move from here ...
22391 * kern/i386/coreboot/mmap.c: ... to here.
22393 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
22395 2008-08-11 Robert Millan <rmh@aybabtu.com>
22397 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
22398 errors. Leave it to the upper layer to handle them.
22400 2008-08-09 Christian Franke <franke@computer.org>
22402 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
22403 * conf/common.rmk: Install `grub-pe2elf' only if requested.
22404 Install `grub.d/10_windows' only on Cygwin.
22405 * configure.ac: Add subst of `target_os'.
22406 Check `target_os' also before setting TARGET_OBJ2ELF.
22407 Add `--enable-grub-pe2elf'.
22409 2008-08-08 Robert Millan <rmh@aybabtu.com>
22411 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
22412 (grub_last_time): Change type to grub_uint64_t.
22413 (grub_disk_open): Migrate code from to using grub_get_time_ms().
22414 (grub_disk_close): Likewise.
22416 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
22417 (run_menu): Migrate code from to using grub_get_time_ms().
22419 * util/misc.c (grub_get_time_ms): New function.
22421 2008-08-08 Marco Gerards <marco@gnu.org>
22423 * disk/ata.c (grub_ata_regget): Change return type to
22425 (grub_ata_regget2): Likewise.
22426 (grub_ata_wait_status): New function.
22427 (grub_ata_wait_busy): Removed function, updated all users to use
22428 `grub_ata_wait_status'.
22429 (grub_ata_wait_drq): Likewise.
22430 (grub_ata_cmd): New function.
22431 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
22433 (grub_ata_pio_write): Add error handling.
22434 (grub_atapi_identify): Likewise.
22435 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
22437 (grub_ata_identify): Use `grub_ata_cmd' and improve error
22438 handling. Actually use the detected registers. Reorder the
22439 detection logic such that it is easier to read.
22440 (grub_ata_pciinit): Do not assign the same ID to each controller.
22441 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
22443 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
22445 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
22447 2008-08-08 Marco Gerards <marco@gnu.org>
22451 2008-08-07 Bean <bean123ch@gmail.com>
22453 * include/grub/x86_64/pci.h: New file.
22455 2008-08-07 Christian Franke <franke@computer.org>
22457 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
22458 (TIMER2_GATE): Likewise.
22459 (grub_pit_wait): Add enable/disable of the timer2 gate
22460 bit of port 0x61. This fixes a possible infinite loop.
22462 2008-08-07 Bean <bean123ch@gmail.com>
22464 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
22465 kern/i386/tsc.c and kern/i386/pit.c.
22467 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
22470 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
22473 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
22475 2008-08-07 Bean <bean123ch@gmail.com>
22477 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
22479 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
22481 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
22482 multiple inclusion. Add #include <grub/types.h>.
22484 2008-08-06 Christian Franke <franke@computer.org>
22486 * conf/common.rmk: Build and install `10_windows'.
22487 * util/grub.d/10_windows.in: New script.
22489 2008-08-06 Pavel Roskin <proski@gnu.org>
22491 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
22493 2008-08-06 Robert Millan <rmh@aybabtu.com>
22495 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
22496 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
22498 2008-08-06 Bean <bean123ch@gmail.com>
22500 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
22501 (grub_pxefs_fs_int): Remove dummy definition.
22502 (grub_pxefs_open): Use data->block_size to store the current block
22504 (grub_pxefs_read): Use block size stored in data->block_size. As the
22505 value of grub_pxe_blksize can be changed after the file is opened.
22507 2008-08-06 Bean <bean123ch@gmail.com>
22509 * fs/i386/pc/pxe.c (curr_file): new variable.
22510 (grub_pxefs_open): Simply the handling of pxe file system. Don't
22511 require the dummy internal file system anymore.
22512 (grub_pxefs_read): Removed.
22513 (grub_pxefs_close): Likewise.
22514 (grub_pxefs_fs_int): Likewise.
22515 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
22516 connection when we switch file.
22517 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
22519 2008-08-06 Robert Millan <rmh@aybabtu.com>
22521 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
22523 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
22524 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
22526 * kern/i386/halt.c: New file.
22527 * kern/i386/reboot.c: Likewise.
22528 * include/grub/i386/reboot.h: Likewise.
22529 * include/grub/i386/halt.h: Likewise.
22531 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
22532 Include `<grub/cpu/halt.h>'.
22533 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
22534 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
22536 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
22537 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
22538 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
22539 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
22540 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
22541 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
22543 * include/grub/i386/at_keyboard.h: ... to here.
22545 2008-08-05 Robert Millan <rmh@aybabtu.com>
22547 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
22548 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
22549 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
22550 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
22551 `kern/generic/millisleep.c'.
22553 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
22554 instead of grub_get_rtc().
22555 (grub_tsc_init): Initialize `tsc_boot_time'.
22557 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
22558 (grub_machine_init): Use grub_tsc_init() rather than
22559 installing an RTC-based handler via grub_install_get_time_ms().
22561 * kern/i386/pit.c: New file.
22562 * include/grub/i386/pit.h: Likewise.
22564 2008-08-05 Bean <bean123ch@gmail.com>
22566 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
22568 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
22569 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
22570 (pxe_mod_SOURCES): New macro.
22571 (pxe_mod_CFLAGS): Likewise.
22572 (pxe_mod_LDFLAGS): Likewise.
22573 (pxecmd_mod_SOURCES): Likewise.
22574 (pxecmd_mod_CFLAGS): Likewise.
22575 (pxecmd_mod_LDFLAGS): Likewise.
22577 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
22578 (grub_pxe_call): Likewise.
22580 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
22582 * commands/i386/pc/pxecmd.c: New file.
22584 * fs/i386/pc/pxe.c: Likewise.
22586 * include/grub/i386/pc/pxe.h: Likewise.
22588 2008-08-05 Bean <bean123ch@gmail.com>
22590 * util/console.c (grub_console_cur_color): New variable.
22591 (grub_console_standard_color): Likewise.
22592 (grub_console_normal_color): Likewise.
22593 (grub_console_highlight_color): Likewise.
22594 (color_map): Likewise.
22595 (use_color): Likewise.
22596 (NUM_COLORS): New macro.
22597 (grub_ncurses_setcolorstate): Handle color properly.
22598 (grub_ncurses_setcolor): Don't change color here, just remember the
22599 settings, color will be set in grub_ncurses_setcolorstate.
22600 (grub_ncurses_getcolor): New function.
22601 (grub_ncurses_init): Initialize color pairs.
22602 (grub_ncurses_term): New member grub_ncurses_getcolor.
22604 2008-08-05 Colin D Bennett <colin@gibibit.com>
22606 High resolution timer support. Implemented for x86 CPUs using TSC.
22607 Extracted generic grub_millisleep() so it's linked in only as needed.
22608 This requires a Pentium compatible CPU; if the RDTSC instruction is
22609 not supported, then it falls back on the generic grub_get_time_ms()
22610 implementation that uses the machine's RTC.
22612 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
22613 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
22614 `kern/generic/millisleep.c'.
22616 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
22617 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
22619 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
22620 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
22622 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
22624 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
22625 `kern/generic/millisleep.c'.
22627 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
22629 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
22631 * kern/generic/rtc_get_time_ms.c: New file.
22633 * kern/generic/millisleep.c: New file.
22635 * kern/misc.c: Don't include
22636 <kern/time.h> anymore.
22637 (grub_millisleep_generic): Removed.
22639 * commands/sleep.c (grub_interruptible_millisleep): Uses
22640 grub_get_time_ms() instead of grub_get_rtc().
22642 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
22644 (grub_cpu_is_cpuid_supported): New inline function.
22645 (grub_cpu_is_tsc_supported): New inline function.
22646 (grub_tsc_init): New function prototype.
22647 (grub_tsc_get_time_ms): New function prototype.
22649 * kern/i386/tsc.c (grub_get_time_ms): New file.
22651 * include/grub/time.h: Include <grub/types.h.
22652 (grub_millisleep_generic): Removed.
22653 (grub_get_time_ms): New prototype.
22654 (grub_install_get_time_ms): New prototype.
22655 (grub_rtc_get_time_ms): New prototype.
22657 * kern/time.c (grub_get_time_ms): New function.
22658 (grub_install_get_time_ms): New function.
22660 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
22661 <grub/time.h> anymore.
22662 (grub_millisleep): Removed.
22663 (grub_machine_init): Call grub_tsc_init.
22665 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
22666 get_time_ms() implementation.
22668 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
22669 (ieee1275_get_time_ms): New function.
22670 (grub_machine_init): Install get_time_ms() implementation.
22672 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
22673 (grub_machine_init): Call grub_tsc_init().
22674 (grub_millisleep): Removed.
22676 * kern/ieee1275/init.c (grub_millisleep): Removed.
22677 (grub_machine_init): Install ieee1275_get_time_ms()
22679 (ieee1275_get_time_ms): New function.
22680 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
22683 2008-08-05 Marco Gerards <marco@gnu.org>
22685 * disk/ata.c: Include <grub/pci.h>.
22686 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
22687 (grub_ata_initialize): Rewritten.
22688 (grub_ata_device_initialize): New function.
22690 2008-08-04 Pavel Roskin <proski@gnu.org>
22692 * kern/main.c: Include grub/mm.h.
22694 2008-08-04 Robert Millan <rmh@aybabtu.com>
22696 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
22697 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
22698 corruption problem).
22700 2008-08-04 Robert Millan <rmh@aybabtu.com>
22702 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
22703 warnings introduced in my last commit.
22705 2008-08-03 Robert Millan <rmh@aybabtu.com>
22707 Make PCI available on all i386 architectures.
22709 * include/grub/i386/pc/pci.h: Move from here ...
22710 * include/grub/i386/pci.h: ... to here.
22712 * include/grub/i386/pc/pci.h: Remove.
22713 * include/grub/i386/efi/pci.h: Remove.
22714 * include/grub/x86_64/efi/pci.h: Remove.
22716 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
22717 `<grub/cpu/pci.h>'.
22719 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
22720 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
22721 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
22723 * conf/i386-ieee1275.rmk: Likewise.
22725 2008-08-03 Robert Millan <rmh@aybabtu.com>
22727 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
22728 (grub_console_setcursor): Make it possible to set cursor off.
22730 2008-08-03 Robert Millan <rmh@aybabtu.com>
22732 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
22733 of modules instead of assuming which platform provides what.
22734 * util/update-grub.in: Likewise.
22736 2008-08-03 Robert Millan <rmh@aybabtu.com>
22738 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
22739 instead of `grub_install_dos_part' to determine whether a drive needs
22740 to be prepended to prefix (`grub_install_dos_part' is not reliable,
22741 because it can be overridden when loading GRUB via Multiboot).
22743 2008-08-02 Robert Millan <rmh@aybabtu.com>
22745 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
22747 2008-08-02 Robert Millan <rmh@aybabtu.com>
22749 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
22750 of informational grub_dprintf() calls.
22752 2008-08-02 Robert Millan <rmh@aybabtu.com>
22754 * disk/memdisk.c (memdisk_size): Don't initialize.
22755 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
22757 * include/grub/i386/pc/kernel.h
22758 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
22759 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
22760 (grub_memdisk_image_size, grub_arch_memdisk_addr)
22761 (grub_arch_memdisk_size): Remove.
22763 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
22764 field (was only used to transfer a constant). Add `type' field to
22765 support multiple module types.
22766 (grub_module_iterate): New function.
22768 * kern/device.c (grub_device_open): Do not hide error messages
22769 when grub_disk_open() fails. Use grub_print_error() instead.
22771 * kern/i386/pc/init.c (grub_arch_modules_addr)
22772 (grub_arch_memdisk_size): Remove functions.
22773 (grub_arch_modules_addr): Return the module address in high memory
22774 (now that it isn't copied anymore).
22776 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
22777 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
22778 decompression routine (grub_total_module_size already includes that
22779 now). Don't copy modules back to low memory.
22781 * kern/main.c: Include `<grub/mm.h>'.
22782 (grub_load_modules): Split out (and use) ...
22783 (grub_module_iterate): ... this function, which iterates through
22784 module objects and runs a hook.
22785 Comment out grub_mm_init_region() call, as it would cause non-ELF
22786 modules to be overwritten.
22788 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
22789 the memdisk image in its own region, make it part of the module list.
22790 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
22791 (main): Parse --memdisk|-m option, and pass user-provided path as
22792 parameter to generate_image().
22793 (add_segments): Pass `memdisk_path' down to load_modules().
22794 (load_modules): Embed memdisk image in module section when requested.
22795 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
22796 `header.type' instead of `header.offset'.
22798 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
22799 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
22800 (memdisk_mod_LDFLAGS): New variables.
22801 * conf/i386-coreboot.rmk: Likewise.
22802 * conf/i386-ieee1275.rmk: Likewise.
22804 2008-08-02 Robert Millan <rmh@aybabtu.com>
22806 * loader/i386/pc/multiboot.c (playground, forward_relocator)
22807 (backward_relocator): New variables. Used to allocate and relocate
22808 the payload, respectively.
22809 (grub_multiboot_load_elf32): Load into heap instead of requested
22810 address, install the appropriate relocator code in each bound of
22811 the payload, and set the entry point such that
22812 grub_multiboot_real_boot() will jump to one of them.
22814 * kern/i386/loader.S (grub_multiboot_payload_size)
22815 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
22816 (grub_multiboot_payload_entry_offset): New variables.
22817 (grub_multiboot_real_boot): Set cpu context to what the relocator
22818 expects, and jump to the relocator instead of the payload.
22820 * include/grub/i386/loader.h (grub_multiboot_payload_size)
22821 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
22822 (grub_multiboot_payload_entry_offset): Export.
22824 2008-08-01 Bean <bean123ch@gmail.com>
22826 * normal/menu_entry.c (editor_getline): Don't return the original
22827 string as result, as it will be released by lexer once it has done
22830 2008-08-01 Robert Millan <rmh@aybabtu.com>
22832 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
22833 within menuentries, not before them.
22834 util/grub.d/10_hurd.in: Likewise.
22836 2008-08-01 Bean <bean123ch@gmail.com>
22838 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
22839 (bufio_mod_SOURCES): New macro.
22840 (bufio_mod_CFLAGS): Likewise.
22841 (bufio_mod_LDFLAGS): Likewise.
22843 * include/grub/bufio.h: New file.
22845 * io/bufio.c: Likewise.
22847 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
22848 (grub_video_reader_png): Use grub_buffile_open to open file.
22850 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
22851 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
22853 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
22854 (grub_video_reader_tga): Use grub_buffile_open to open file.
22856 * font/manager.c: Include <grub/bufio.h>.
22857 (add_font): Use grub_buffile_open to open file.
22859 2008-07-31 Robert Millan <rmh@aybabtu.com>
22861 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
22862 ELF segments, use a macro for arbitrarily accessing any of them instead
22863 of preparing a pointer that allows access to one at a time.
22864 (grub_multiboot_load_elf64): Likewise.
22866 2008-07-31 Bean <bean123ch@gmail.com>
22868 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
22869 GRUB_KERNEL_MACHINE_DATA_END.
22871 2008-07-30 Robert Millan <rmh@aybabtu.com>
22873 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
22874 Increase from 0x50 to 0x60.
22875 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
22876 use UUIDs to identify the root drive for them. If that's not
22878 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
22879 check, for cross-disk installs.
22881 2008-07-30 Robert Millan <rmh@aybabtu.com>
22883 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
22884 is non-empty, use it to set the `prefix' environment variable instead
22885 of the usual approach.
22886 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
22887 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
22888 environment variable instead of dummy make_install_device().
22890 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
22891 (start): Insert a data section, with `grub_prefix' variable.
22892 * kern/i386/linuxbios/startup.S: Likewise.
22894 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
22895 New variable reference.
22896 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
22897 New macro. Defines offset of `grub_prefix' within startup.S (relative
22899 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
22900 section within startup.S (relative to `start').
22901 * include/grub/i386/coreboot/kernel.h: Likewise.
22903 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
22904 Overwrite grub_prefix with its contents, at the beginning of the
22906 (main): Understand -p|--prefix.
22908 2008-07-30 Robert Millan <rmh@aybabtu.com>
22910 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
22912 2008-07-30 Robert Millan <rmh@aybabtu.com>
22914 * term/i386/pc/vga_text.c (grub_console_cls): Use
22915 grub_console_gotoxy() to go back to beginning of the screen.
22916 Found by Patrick Georgi <patrick.georgi@coresystems.de>
22918 2008-07-29 Christian Franke <franke@computer.org>
22920 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
22921 Add conversion of emulated mount points on Cygwin.
22923 2008-07-29 Christian Franke <franke@computer.org>
22925 * util/update-grub.in: Add a check for admin
22927 Remove old `grub.cfg.new' before creation.
22928 Add `-f' to `mv' to handle the different filesystem
22929 semantics of Windows.
22931 2008-07-29 Bean <bean123ch@gmail.com>
22933 * normal/main.c (get_line): Fix buffer overflow bug.
22935 2008-07-28 Robert Millan <rmh@aybabtu.com>
22937 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
22938 (struct grub_apple_header): New struct. Describes the layout of
22939 the partmap header.
22940 (apple_partition_map_iterate): Check the header magic as well as the
22941 partition magic (which was already being checked).
22943 2008-07-28 Pavel Roskin <proski@gnu.org>
22945 * genmk.rb: Add a warning to the beginning of the output that
22946 it's a generated file and should not be edited.
22948 2008-07-28 Robert Millan <rmh@aybabtu.com>
22950 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
22951 with the same number are found, just use issue a warning with
22952 grub_dprintf(), as this error has been reported to be non-fatal.
22954 2008-07-27 Robert Millan <rmh@aybabtu.com>
22956 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
22959 2008-07-27 Bean <bean123ch@gmail.com>
22961 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
22962 (grub_fat_find_dir): Ignore case when comparing filename.
22964 2008-07-27 Bean <bean123ch@gmail.com>
22966 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
22967 smallino, as it's more descriptive, and i8count can be confused with
22968 the other field count.
22969 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
22972 2008-07-27 Bean <bean123ch@gmail.com>
22974 * commands/crc.c: New file.
22976 * lib/crc.c: Likewise.
22978 * include/grub/lib/crc.h: Likewise.
22980 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
22982 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
22983 (hexdump): Move this function to ...
22985 * lib/hexdump.c: ... here.
22987 * include/grub/hexdump.h: Renamed to ...
22989 * include/grub/lib/hexdump.h: ... this.
22991 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
22993 * util/grub-editenv.c: Likewise.
22995 * include/envblk.h: Renamed to ...
22997 * include/lib/envblk.h: ... this.
22999 * util/envblk.c: Renamed to ...
23001 * lib/envblk.c: ... this.
23003 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
23005 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
23006 (pkglib_MODULES): Add crc.mod.
23007 (hexdump_mod_SOURCES): Add lib/hexdump.c.
23008 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
23009 (crc_mod_SOURCES): New macro.
23010 (crc_mod_CFLAGS): Likewise.
23011 (crc_mod_LDFLAGS): Likewise.
23013 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
23015 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
23017 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
23019 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
23021 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
23023 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
23025 * commands/help.c: Include <grub/term.h>.
23026 (TERM_WIDTH): Removed. Updated all users.
23028 2008-07-27 Pavel Roskin <proski@gnu.org>
23030 * util/getroot.c (find_root_device): Rephrase a comment to avoid
23031 spurious warnings about a comment within a comment.
23033 2008-07-25 Robert Millan <rmh@aybabtu.com>
23035 * util/getroot.c (find_root_device): Skip devices that match
23036 /dev/dm-[0-9]. This lets the real device be found for any type of
23037 abstraction (LVM, EVMS, RAID..).
23038 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
23039 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
23040 device is found first, find_root_device() will now skip it.
23042 2008-07-24 Pavel Roskin <proski@gnu.org>
23044 * include/grub/types.h: Use __builtin_bswap32() and
23045 __builtin_bswap64() with gcc 4.3 and newer.
23047 2008-07-24 Christian Franke <franke@computer.org>
23049 * util/i386/pc/grub-install.in: If `--debug' is specified,
23050 pass `--verbose' to grub-setup.
23051 Abort script if make_system_path_relative_to_its_root() fails.
23053 2008-07-24 Bean <bean123ch@gmail.com>
23055 * configure.ac: Fixed a bug caused by the previous cygwin patch,
23056 variable `target_platform' should be `platform'.
23058 2008-07-24 Bean <bean123ch@gmail.com>
23060 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
23061 (grub_png_init_fixed_block): New function.
23062 (grub_png_decode_image_data): Handle fixed huffman code compression.
23064 2008-07-24 Bean <bean123ch@gmail.com>
23066 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
23067 (grub_pe2elf_SOURCES): New macro.
23068 (CLEANFILES): Add grub-pe2elf.
23070 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
23071 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
23072 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
23073 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
23074 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
23075 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
23076 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
23077 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
23078 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
23079 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
23080 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
23081 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
23082 (GRUB_PE32_DT_FUNCTION): Likewise.
23083 (GRUB_PE32_REL_I386_DIR32): Likewise.
23084 (GRUB_PE32_REL_I386_REL32): Likewise.
23085 (grub_pe32_symbol): New structure.
23086 (grub_pe32_reloc): Likewise.
23088 * util/grub-pe2elf.c: New file.
23090 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
23091 start symbol in non pc platform.
23093 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
23095 The following patches are from Christian Franke.
23097 * include/grub/dl.h: Remove .previous, gas supports this only
23100 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
23101 Remove .type, gas supports this only for ELF format.
23103 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
23104 nullbytes in symbol table. This fixes an infinite loop if table is
23107 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
23108 TARGET_IMG_LDFLAGS and EXEEXT.
23110 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
23111 TARGET_IMG_LDFLAGS_AC.
23112 (grub_CHECK_STACK_ARG_PROBE): New function.
23114 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
23116 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
23118 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
23119 to set TARGET_IMG_LD* accordingly.
23120 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
23121 Add call to grub_CHECK_STACK_ARG_PROBE.
23122 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
23124 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
23126 * genmk.rb: Add EXEEXT to CLEANFILES.
23128 2008-07-23 Robert Millan <rmh@aybabtu.com>
23130 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
23131 define the codes for arrows and lines used for the menu).
23132 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
23135 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
23136 fonts, because the latter are too slow.
23138 2008-07-21 Bean <bean123ch@gmail.com>
23140 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
23141 a20. Run keyboard test last, as it will cause macbook to halt.
23143 2008-07-18 Pavel Roskin <proski@gnu.org>
23145 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
23146 load foreign architecture modules correctly anyway. Keep
23147 support for loading host architecture modules, whether we
23148 compile them or not.
23150 2008-07-17 Pavel Roskin <proski@gnu.org>
23152 * configure.ac: Use -m32 or -m64 regardless of whether we had to
23153 change target_cpu. The compiler default can mismatch target_cpu
23156 * disk/efi/efidisk.c: Fix format warnings on x86_64.
23157 * kern/efi/efi.c: Likewise.
23159 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
23160 target compiler is functional.
23161 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
23164 * configure.ac: Default to efi platform for x86_64-apple. Allow
23165 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
23166 adjustments from the rest, only do them if target is not
23167 explicitly given. Merge other adjustments with the final sanity
23168 check. Remove an extraneous check for supported CPU. Be
23169 specific which CPU and which platform is not supported.
23171 * configure.ac: Default to pc platform for x86_64.
23173 2008-07-17 Robert Millan <rmh@aybabtu.com>
23175 Partial LinuxBIOS -> Coreboot rename.
23177 * conf/i386-linuxbios.rmk: Renamed to ...
23178 * conf/i386-coreboot.rmk: ... this.
23179 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
23180 * configure.ac: Accept "coreboot" as input platform (but maintain
23181 compatibility with "linuxbios").
23182 * include/grub/i386/linuxbios: Renamed to ...
23183 * include/grub/i386/coreboot: ... this.
23185 2008-07-17 Bean <bean123ch@gmail.com>
23187 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
23188 (appleldr_mod_SOURCE): New variable.
23189 (appleldr_mod_CFLAGS): Likewise.
23190 (appleldr_mod_LDFLAGS): Likewise.
23191 (pci_mod_SOURCES): Likewise.
23192 (pci_mod_CFLAGS): Likewise.
23193 (pci_mod_LDFLAGS): Likewise.
23194 (lspci_mod_SOURCES): Likewise.
23195 (lspci_mod_CFLAGS): Likewise.
23196 (lspci_mod_LDFLAGS): Likewise.
23198 * conf/x86_64-efi.rmk: New file.
23200 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
23202 (grub_efidisk_write): Likewise.
23204 * include/efi/api.h (efi_call_0): New macro.
23205 (efi_call_1): Likewise.
23206 (efi_call_2): Likewise.
23207 (efi_call_3): Likewise.
23208 (efi_call_4): Likewise.
23209 (efi_call_5): Likewise.
23210 (efi_call_6): Likewise.
23212 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
23213 grub_rescue_cmd_chainloader.
23215 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
23216 (grub_pe32_optional_header): Change some fields based on i386 or
23218 (GRUB_PE32_PE32_MAGIC): Likewise.
23220 * include/grub/efi/uga_draw.h: New file.
23222 * include/grub/elf.h (STN_ABS): New constant.
23223 (R_X86_64_NONE): Relocation constant for x86_64.
23224 (R_X86_64_64): Likewise.
23225 (R_X86_64_PC32): Likewise.
23226 (R_X86_64_GOT32): Likewise.
23227 (R_X86_64_PLT32): Likewise.
23228 (R_X86_64_COPY): Likewise.
23229 (R_X86_64_GLOB_DAT): Likewise.
23230 (R_X86_64_JUMP_SLOT): Likewise.
23231 (R_X86_64_RELATIVE): Likewise.
23232 (R_X86_64_GOTPCREL): Likewise.
23233 (R_X86_64_32): Likewise.
23234 (R_X86_64_32S): Likewise.
23235 (R_X86_64_16): Likewise.
23236 (R_X86_64_PC16): Likewise.
23237 (R_X86_64_8): Likewise.
23238 (R_X86_64_PC8): Likewise.
23240 * include/grub/i386/efi/pci.h: New file.
23242 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
23243 Change it value based on platform.
23244 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
23245 (GRUB_E820_RAM): Likewise.
23246 (GRUB_E820_RESERVED): Likewise.
23247 (GRUB_E820_ACPI): Likewise.
23248 (GRUB_E820_NVS): Likewise.
23249 (GRUB_E820_EXEC_CODE): Likewise.
23250 (GRUB_E820_MAX_ENTRY): Likewise.
23251 (grub_e820_mmap): New structure.
23252 (linux_kernel_header): Change the efi field according to different
23253 kernel version, also field from linux_kernel_header.
23255 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
23257 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
23258 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
23259 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
23260 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
23261 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
23262 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
23263 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
23264 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
23265 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
23266 (GRUB_PCI_ADDR_IO_MASK): Likewise.
23268 * include/grub/x86_64/efi/kernel.h: New file.
23270 * include/grub/x86_64/efi/loader.h: Likewise.
23272 * include/grub/x86_64/efi/machine.h: Likewise.
23274 * include/grub/x86_64/efi/pci.h: Likewise.
23276 * include/grub/x86_64/efi/time.h: Likewise.
23278 * include/grub/x86_64/linux.h: Likewise.
23280 * include/grub/x86_64/setjmp.h: Likewise.
23282 * include/grub/x86_64/time.h: Likewise.
23284 * include/grub/x86_64/types.h: Likewise.
23286 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
23287 GRUB_TARGET_SIZEOF_VOID_P.
23289 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
23290 (grub_efi_locate_handle): Likewise.
23291 (grub_efi_open_protocol): Likewise.
23292 (grub_efi_set_text_mode): Likewise.
23293 (grub_efi_stall): Likewise.
23294 (grub_exit): Likewise.
23295 (grub_reboot): Likewise.
23296 (grub_halt): Likewise.
23297 (grub_efi_exit_boot_services): Likewise.
23298 (grub_get_rtc): Likewise.
23300 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
23301 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
23302 (grub_efi_allocate_pages): Wrap efi calls.
23303 (grub_efi_free_pages): Wrap efi calls.
23304 (grub_efi_get_memory_map): Wrap efi calls.
23306 * kern/x86_64/dl.c: New file.
23308 * kern/x86_64/efi/callwrap.S: Likewise.
23310 * kern/x86_64/efi/startup.S: Likewise.
23312 * loader/efi/appleloader.c: Likewise.
23314 * loader/efi/chainloader.c (cmdline): New variable.
23315 (grub_chainloader_unload): Wrap efi calls.
23316 (grub_chainloader_boot): Likewise.
23317 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
23320 * loader/efi/chainloader_normal.c (chainloader_command):
23321 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
23324 * loader/i386/efi/linux.c (allocate_pages): Change allocation
23326 (grub_e820_add_region): New function.
23327 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
23329 (grub_find_video_card): New function.
23330 (grub_linux_setup_video): New function.
23331 (grub_rescue_cmd_linux): Probe for video information.
23333 * normal/x86_64/setjmp.S: New file.
23335 * term/efi/console.c (map_char): New function.
23336 (grub_console_putchar): Map unicode char.
23337 (grub_console_checkkey): Wrap efi calls.
23338 (grub_console_getkey): Likewise.
23339 (grub_console_getwh): Likewise.
23340 (grub_console_gotoxy): Likewise.
23341 (grub_console_cls): Likewise.
23342 (grub_console_setcolorstate): Likewise.
23343 (grub_console_setcursor): Likewise.
23345 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
23347 2008-07-16 Pavel Roskin <proski@gnu.org>
23349 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
23352 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
23353 pointer, not an integer. This fixes a warning and prevents
23354 precision loss on 64-bit systems.
23355 (relocate_addresses): Remove unneeded cast.
23357 2008-07-15 Pavel Roskin <proski@gnu.org>
23359 * kern/i386/ieee1275/init.c: Include grub/cache.h.
23361 * term/ieee1275/ofconsole.c: Disable code unused on i386.
23363 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
23364 Fix comparison between signed and unsigned.
23366 * include/grub/i386/ieee1275/console.h: Declare
23367 grub_console_init() and grub_console_fini().
23369 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
23370 It's empty and unused.
23372 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
23373 beginning to avoid warnings with some compilers.
23375 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
23376 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
23378 2008-07-14 Pavel Roskin <proski@gnu.org>
23380 * kern/env.c (grub_register_variable_hook): Don't copy empty
23381 string, it leaks memory. Pass "" to grub_env_set(), it should
23382 handle constant strings.
23384 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
23385 * commands/cmp.c (grub_cmd_cmp): Likewise.
23386 * kern/dl.c (grub_dl_flush_cache): Likewise.
23387 (grub_dl_load_core): Likewise.
23388 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
23389 (grub_elf64_load_phdrs): Likewise.
23391 2008-07-13 Pavel Roskin <proski@gnu.org>
23393 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
23394 between signed and unsigned.
23395 (LzmaEnc_Finish): Fix warning about an unused parameter.
23397 2008-07-13 Bean <bean123ch@gmail.com>
23399 * Makefile.in (enable_lzo): New rule.
23401 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
23403 * configure.ac (ENABLE_LZO): New option --enable-lzo.
23405 * boot/i386/pc/lnxboot.S: #include <config.h>.
23407 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
23408 its value according to the compression algorithm used, lzo or lzma.
23410 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
23411 compression algorithm according to configure macro.
23413 * kern/i386/pc/startup.S (codestart): Likewise.
23415 * kern/i386/pc/lzma_decode.S: New file.
23417 * include/grub/lib/LzFind.h: Likewise.
23419 * include/grub/lib/LzHash.h: Likewise.
23421 * include/grub/lib/LzmaDec.h: Likewise.
23423 * include/grub/lib/LzmaEnc.h: Likewise.
23425 * include/grub/lib/LzmaTypes.h: Likewise.
23427 * lib/LzFind.c: Likewise.
23429 * lib/LzmaDec.c: Likewise.
23431 * lib/LzmaEnc.c: Likewise.
23433 2008-07-13 Bean <bean123ch@gmail.com>
23435 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
23436 (grub_ext4_extent_header): New structure.
23437 (grub_ext4_extent): Likewise.
23438 (grub_ext4_extent_idx): Likewise.
23439 (grub_ext4_find_leaf): New function.
23440 (grub_ext2_read_block): Handle extents.
23442 2008-07-12 Robert Millan <rmh@aybabtu.com>
23444 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
23446 2008-07-11 Robert Millan <rmh@aybabtu.com>
23448 * util/grub.d/40_custom.in: New file. Example on how to add custom
23449 entries to /etc/grub.d.
23450 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
23451 40_custom (implicitly, by merging all the grub.d rules).
23453 2008-07-11 Pavel Roskin <proski@gnu.org>
23455 * commands/read.c (grub_getline): Fix invalid memory access.
23456 Don't add newline to the variable value.
23458 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
23459 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
23460 (serial_hw_get_port): Check validity of the port number.
23461 (grub_cmd_serial): Check return value of serial_hw_get_port().
23463 2008-07-07 Pavel Roskin <proski@gnu.org>
23465 * boot/i386/pc/diskboot.S (notification_string): Replace
23466 "Loading kernel" with just "loading". This is shorter, less
23467 confusing and saves a few bytes for possible future changes.
23469 2008-07-05 Pavel Roskin <proski@gnu.org>
23471 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
23472 size for ATAPI devices, they are undefined. Output sector
23473 number in decimal form.
23475 * disk/ata.c: Use named constants for status bits.
23477 2008-07-04 Pavel Roskin <proski@gnu.org>
23479 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
23480 grub_addr_t before casting it to the void pointer to fix a
23481 warning. Non-addressable regions are discarded earlier.
23482 (grub_arch_modules_addr): Cast _end to grub_addr_t.
23483 * kern/i386/linuxbios/table.c: Include grub/misc.h.
23484 (check_signature): Don't shadow table_header.
23485 (grub_linuxbios_table_iterate): Cast numeric constants to
23486 grub_linuxbios_table_header_t.
23487 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
23490 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
23493 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
23494 pointer, which can cause warnings. Support 64-bit addresses.
23496 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
23497 of sizeof(long). This fixes PowerPC image generation on x86_64.
23499 2008-07-04 Robert Millan <rmh@aybabtu.com>
23501 This fixes a performance issue when pc & gpt partmap iterators
23502 didn't abort iteration even after our hook found what it was
23503 looking for (often causing expensive probes of non-existent drives).
23505 Some callers relied on previous buggy behaviour, since they would
23506 raise an error when their own hooks caused early abortion of its
23509 * kern/device.c (grub_device_open): Improve error message.
23510 * disk/lvm.c (grub_lvm_open): Likewise.
23511 * disk/raid.c (grub_raid_open): Likewise.
23513 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
23514 when hook requests it, independently of grub_errno.
23515 (pc_partition_map_probe): Do not fail when find_func() caused
23516 early abortion of pc_partition_map_iterate().
23518 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
23519 when hook requests it, independently of grub_errno.
23520 (gpt_partition_map_probe): Do not fail when find_func() caused
23521 early abortion of gpt_partition_map_iterate().
23523 * kern/partition.c (grub_partition_iterate): Abort parent iteration
23524 when hook requests it, independently of grub_errno. Do not fail when
23525 part_map_iterate_hook() caused early abortion of p->iterate().
23527 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
23528 when grub_partition_iterate() returned with non-zero.
23530 2008-07-03 Pavel Roskin <proski@gnu.org>
23532 * disk/ata.c (grub_ata_pio_write): Check status before writing,
23533 like we do in grub_ata_pio_read().
23534 (grub_ata_readwrite): Always write individual sectors. Fix the
23535 sector count for the remainder.
23536 (grub_ata_write): Enable writing to ATA devices. Correctly
23537 report error for ATAPI devices.
23539 2008-07-02 Pavel Roskin <proski@gnu.org>
23541 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
23544 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
23545 for every read sector, we already increment it for the whole
23546 batch. This fixes reading more than 256 sectors at once.
23548 * util/grub-editenv.c (cmd_info): Cast argument to long
23549 explicitly. ptrdiff_t reduces to int on i386.
23551 * util/grub-editenv.c (main): Be specific which parameter is
23554 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
23555 (memdisk): Make memdisk_orig_addr a pointer.
23557 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
23558 for file offsets, use grub_off_t instead. Fix printf format
23561 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
23562 there. Real unexpected warnings should not drown in the noise
23563 about known problems.
23565 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
23566 grub_disk_addr_t for memory addresses.
23568 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
23569 explicitly to fix a warning.
23571 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
23573 * Makefile.in (MODULE_LDFLAGS): New variable.
23574 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
23575 the linker accepts --build-id=none.
23576 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
23578 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
23580 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
23581 those in Linux XFS code. Provide a way to access 64-bit parent
23583 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
23584 the end of struct grub_xfs_dir_header.
23586 2008-07-02 Bean <bean123ch@gmail.com>
23588 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
23589 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
23590 and GRUB_IEEE1275_FLAG_NO_ANSI.
23592 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
23593 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
23594 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
23596 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
23597 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
23599 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
23600 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
23602 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
23603 esc sequence on non ANSI terminal.
23604 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
23606 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
23609 2008-07-02 Bean <bean123ch@gmail.com>
23611 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
23612 (grub_editenv_SOURCES): New variable.
23613 (pkglib_MODULES): Add loadenv.mod.
23614 (loadenv_mod_SOURCES): New variable.
23615 (loadenv_mod_CFLAGS): Likewise.
23616 (loadenv_mod_LDFLAGS): Likewise.
23618 * include/grub/envblk.h: New file.
23620 * util/envblk.c: New file.
23622 * util/grub-editenv.c: New file.
23624 * commands/loadenv.c: New file.
23626 2008-07-01 Pavel Roskin <proski@gnu.org>
23628 * include/multiboot2.h (struct multiboot_tag_module): Use char,
23629 not unsigned char. This fixes warnings and is consistent with
23632 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
23634 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
23636 * term/tparm.c (analyze): Always set *popcount.
23638 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
23639 cast to fix a warning.
23641 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
23642 cast to suppress a warning.
23644 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
23645 grub_fshelp_read_file() expects.
23647 * fs/fat.c: Fix UUID calculation on big-endian systems. We
23648 write uuid as a 32-bit value in CPU byte order, so declare and
23651 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
23652 long if the format specifier expects it.
23653 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
23654 * partmap/pc.c (pc_partition_map_iterate): Likewise.
23655 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
23656 long to fix a warning.
23657 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
23658 grub_dprintf() arguments to fix warnings.
23660 2008-06-30 Pavel Roskin <proski@gnu.org>
23662 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
23663 install_bsd_part immediately before core.img is embedded or
23664 modified on disk. This fixes core.img verification if core.img
23665 cannot be embedded.
23667 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
23668 core_path to calculate the blocklist.
23669 Patch from Javier Martín <lordhabbit@gmail.com>
23671 2008-06-29 Robert Millan <rmh@aybabtu.com>
23673 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
23674 block to disk block.
23675 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
23676 Patch from Niels Böhm <bitbucket@arcor.de>
23678 2008-06-29 Robert Millan <rmh@aybabtu.com>
23680 * util/update-grub_lib.in (font_path): Search for fonts in
23681 /boot/grub first, which is more likely to be readable (we aren't
23682 deciding where fonts live, just looking for them).
23684 2008-06-26 Pavel Roskin <proski@gnu.org>
23686 * util/biosdisk.c (read_device_map): Don't leave dead map
23687 entries for devices failing stat() check.
23689 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
23690 core_path_dev for the core.img path on the target device.
23692 2008-06-26 Robert Millan <rmh@aybabtu.com>
23694 * disk/fs_uuid.c: New file.
23695 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
23696 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
23697 (fs_uuid_mod_LDFLAGS): New variables.
23698 * include/grub/disk.h (grub_disk_dev_id): Add
23699 `GRUB_DISK_DEVICE_UUID_ID'.
23700 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
23701 implement iterate().
23703 2008-06-26 Robert Millan <rmh@aybabtu.com>
23705 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
23706 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
23707 Linux image includes no initrd.
23709 2008-06-21 Javier Martín <lordhabbit@gmail.com>
23711 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
23712 call to resolve the core image location that effectively appended the
23715 2008-06-21 Robert Millan <rmh@aybabtu.com>
23717 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
23720 * util/grub.d/10_hurd.in: ... to here ...
23721 * util/grub.d/10_linux.in: ... and here.
23723 2008-06-19 Robert Millan <rmh@aybabtu.com>
23725 * kern/main.c (grub_main): Export `prefix' variable immediately
23726 after it has been set by grub_machine_set_prefix().
23728 2008-06-19 Robert Millan <rmh@aybabtu.com>
23730 * commands/search.c (search_label, search_fs_uuid, search_file): Print
23731 search result when not saving to variable, not the other way around.
23732 When saving to variable, abort iteration as soon as a match is found.
23734 2008-06-19 Robert Millan <rmh@aybabtu.com>
23736 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
23737 check for partition that provides /boot/grub. Its logic is flawed,
23738 as it prevents prepare_grub_to_access_device() from being called
23741 2008-06-19 Robert Millan <rmh@aybabtu.com>
23743 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
23744 "insmod" command directly when abstraction modules are needed,
23745 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
23746 since it had already been processed).
23748 2008-06-19 Pavel Roskin <proski@gnu.org>
23750 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
23751 changed. This is needed in case GRUB_LIBDIR changes.
23752 * conf/i386-ieee1275.rmk: Likewise.
23753 * conf/i386-linuxbios.rmk: Likewise.
23754 * conf/i386-pc.rmk: Likewise.
23755 * conf/powerpc-ieee1275.rmk: Likewise.
23757 2008-06-18 Pavel Roskin <proski@gnu.org>
23759 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
23760 kernel_elf_symlist.c to symlist.c for consistency with other
23761 architectures. Update all users.
23762 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
23764 2008-06-18 Robert Millan <rmh@aybabtu.com>
23766 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
23769 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
23770 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
23771 a RAID device, run setup() for all members independently on whether
23772 LVM abstraction is being used.
23773 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
23774 If grub-mkimage has set `*install_dos_part == -2', don't override this
23776 Perform *install_dos_part adjustments independently on whether
23777 we're embedding or not.
23778 Clarify error message when image is too big for embedding.
23779 Remove duplicate *install_dos_part stanza.
23781 2008-06-17 Robert Millan <rmh@aybabtu.com>
23783 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
23784 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
23786 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
23787 values in grub_ofconsole_normal_color and
23788 grub_ofconsole_highlight_color (they're not directly related to
23789 background and foreground).
23790 (grub_ofconsole_setcolorstate): Extract background and foreground
23791 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
23793 2008-06-17 Robert Millan <rmh@aybabtu.com>
23795 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
23796 /boot/grub for the check in last commit, not /boot (they could be
23797 different partitions).
23799 2008-06-16 Robert Millan <rmh@aybabtu.com>
23801 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
23802 asked to setup access for the same partition that provides /boot,
23803 don't bother using UUIDs since our root already has the value we
23806 2008-06-16 Robert Millan <rmh@aybabtu.com>
23808 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
23810 Patch from Sven Mueller <sven@debian.org>.
23812 2008-06-16 Robert Millan <rmh@aybabtu.com>
23814 * util/update-grub.in: Check for $EUID instead of $UID.
23815 Reported by Vincent Zweije.
23817 2008-06-16 Bean <bean123ch@gmail.com>
23819 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
23820 (grub_ext2_read_block): Likewise.
23821 (grub_ext2_read_inode): Likewise.
23822 (grub_ext2_mount): Likewise.
23823 (grub_ext2_close): Likewise.
23824 (grub_ext3_get_journal): Removed.
23826 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
23827 (grub_reiserfs_read_symlink): Likewise.
23828 (grub_reiserfs_mount): Likewise.
23829 (grub_reiserfs_open): Likewise.
23830 (grub_reiserfs_read): Likewise.
23831 (grub_reiserfs_close): Likewise.
23832 (grub_reiserfs_get_journal): Removed.
23834 * fs/fshelp.c (grub_fshelp_read): Removed.
23835 (grub_fshelp_map_block): Likewise.
23837 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
23838 (grub_fshelp_journal): Likewise.
23839 (grub_fshelp_read): Likewise.
23840 (grub_fshelp_map_block): Likewise.
23842 2008-06-16 Pavel Roskin <proski@gnu.org>
23844 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
23845 floating point anymore.
23846 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
23848 2008-06-15 Pavel Roskin <proski@gnu.org>
23850 * commands/ls.c (grub_ls_list_files): Use integer calculations
23851 for human readable format, avoid floating point use.
23852 * kern/misc.c (grub_ftoa): Remove.
23853 (grub_vsprintf): Remove floating point support.
23855 2008-06-15 Robert Millan <rmh@aybabtu.com>
23857 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
23859 Reported by Max Vozeler.
23861 2008-06-15 Robert Millan <rmh@aybabtu.com>
23863 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
23864 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
23866 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
23867 the beginning of the prefix.
23869 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
23870 It is assumed that if we have a memdisk, grub-mkimage has set
23871 grub_prefix to include the "(memdisk)" drive in it.
23873 2008-06-15 Robert Millan <rmh@aybabtu.com>
23875 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
23876 Initialize keyboard controller after registering the terminal, so that
23877 grub_printf() can be called from grub_keyboard_controller_init().
23879 2008-06-15 Robert Millan <rmh@aybabtu.com>
23881 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
23882 extent-btree which is written as big endian on disk.
23883 Reported by Alain Greppin <al@chilibi.org>.
23885 2008-06-14 Robert Millan <rmh@aybabtu.com>
23887 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
23888 * util/i386/pc/grub-install.in (modules): Likewise.
23890 2008-06-13 Pavel Roskin <proski@gnu.org>
23892 * commands/ls.c (grub_ls_list_files): Fix format warnings.
23894 2008-06-13 Bean <bean123ch@gmail.com>
23896 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
23898 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
23900 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
23901 to indicate sparse block.
23903 2008-06-12 Pavel Roskin <proski@gnu.org>
23905 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
23906 number, grub_fshelp_read() does it for us.
23908 * fs/fshelp.c (grub_fshelp_read): New function. Implement
23909 linear disk read with journal translation.
23910 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
23911 * include/grub/fshelp.h: Declare grub_fshelp_read().
23913 2008-06-09 Pavel Roskin <proski@gnu.org>
23915 * fs/minix.c (grub_minix_mount): Handle error reading
23918 2008-06-08 Robert Millan <rmh@aybabtu.com>
23920 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
23921 don't append the RAID prefix afterwards.
23922 Reported by Clint Adams.
23924 2008-06-08 Robert Millan <rmh@aybabtu.com>
23926 Based on description from Pavel:
23927 * kern/disk.c (grub_disk_check_range): Rename to ...
23928 (grub_disk_adjust_range): ... this. Add a comment explaining the
23929 tasks performed by this function.
23931 2008-06-08 Robert Millan <rmh@aybabtu.com>
23933 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
23934 `num_serial' (for consistency with other variables).
23935 (struct grub_ntfs_data): Add `uuid' member.
23936 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
23937 (grub_ntfs_uuid): New function.
23938 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
23940 2008-06-07 Pavel Roskin <proski@gnu.org>
23942 * util/biosdisk.c (open_device): Revert last change to the
23943 function, it broke installation. The sector needs to be
23944 different dependent on which device is opened.
23946 2008-06-06 Robert Millan <rmh@aybabtu.com>
23948 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
23949 rest of GRUB, and breakage doesn't happen if its value were modified.
23951 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23952 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
23953 a constant (same value).
23954 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
23955 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
23957 2008-06-06 Robert Millan <rmh@aybabtu.com>
23959 * util/biosdisk.c (open_device): Do not modify sector offset when
23960 accessing a partition. kern/disk.c already handles this for us.
23962 2008-06-06 Robert Millan <rmh@aybabtu.com>
23964 * util/grub-emu.c (grub_machine_init): Move code in this function from
23966 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
23967 segfault in case grub_printf() is called).
23969 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
23970 grub_probe. Update all users not to explicitly add it again.
23971 (grub_device): New variable; contains corresponding device for grubdir.
23972 (fs_module, partmap_module, devabstraction_module): Pass
23973 `--device ${grub_device}' to grub_probe to avoid traversing /dev
23976 2008-06-05 Robert Millan <rmh@aybabtu.com>
23978 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
23979 is found, print it (same layout as with labels).
23981 2008-06-04 Robert Millan <rmh@aybabtu.com>
23983 * util/biosdisk.c (get_drive): Rename to ...
23984 (find_grub_drive): ... this. Update all users.
23986 (get_os_disk): Rename to ...
23987 (convert_system_partition_to_system_disk): ... this. Update all users.
23989 (find_drive): Rename to ...
23990 (find_system_device): ... this. Update all users.
23992 2008-06-04 Robert Millan <rmh@aybabtu.com>
23994 * util/biosdisk.c (get_os_disk): Handle IDA devices.
23995 * util/grub-mkdevicemap.c (get_mmc_disk_name)
23996 (make_device_map): Likewise.
23998 2008-06-01 Robert Millan <rmh@aybabtu.com>
24000 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
24001 before dereferencing it.
24003 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
24004 union with fat12/fat16-specific ones. Add some new fields, including
24005 `num_serial' for both versions.
24006 (struct grub_fat_data): Add `uuid' member.
24007 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
24008 names. Initialize `data->uuid' using `num_serial'.
24009 (grub_fat_uuid): New function.
24010 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
24012 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
24013 (grub_reiserfs_uuid): New function.
24014 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
24017 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
24018 (grub_xfs_uuid): New function.
24019 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
24021 2008-06-01 Robert Millan <rmh@aybabtu.com>
24023 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
24024 code that is backward compatible with pre-uuid search command.
24026 2008-05-31 Robert Millan <rmh@aybabtu.com>
24028 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
24029 floppies after everything else, to ensure floppy drive isn't accessed
24030 unnecessarily (patch from Bean).
24032 2008-05-31 Robert Millan <rmh@aybabtu.com>
24034 * commands/search.c (search_label, search_fs_uuid, search_file): Do
24035 not print device names when we were asked to set a variable.
24037 2008-05-31 Robert Millan <rmh@aybabtu.com>
24039 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
24040 using "cursor-on" and "cursor-off" commands (understood at least by
24041 the Open Firmware flavour on OLPC).
24043 2008-05-31 Michael Gorven <michael@gorven.za.net>
24045 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
24046 on and off sequences.
24048 2008-05-31 Robert Millan <rmh@aybabtu.com>
24050 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
24051 * util/update-grub.in: Likewise.
24053 2008-05-30 Pavel Roskin <proski@gnu.org>
24055 * util/biosdisk.c (linux_find_partition): Simplify logic and
24056 make the code more universal. Keep special processing for
24057 devfs, but use a simple rule for all other devices. If the
24058 device ends with a number, append 'p' and the partition number.
24059 Otherwise, append only the partition number.
24061 2008-05-30 Robert Millan <rmh@aybabtu.com>
24063 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
24064 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
24065 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
24066 the `root' parameter to Linux.
24068 2008-05-30 Robert Millan <rmh@aybabtu.com>
24070 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
24071 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
24072 --fs_uuid with --fs-uuid.
24073 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
24074 all filesystems support them).
24076 2008-05-30 Robert Millan <rmh@aybabtu.com>
24078 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
24079 grub_printf() flags, since we're printing in units of 2 bytes.
24081 2008-05-30 Robert Millan <rmh@aybabtu.com>
24083 * util/grub.d/00_header.in: Remove obsolete comment referencing
24084 convert_system_path_to_grub_path().
24085 * util/update-grub.in: Likewise.
24086 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
24087 (convert_system_path_to_grub_path): Add a warning message explaining
24088 that this function is deprecated. Rely on is_path_readable_by_grub()
24089 for the readability checks.
24090 (font_path): Use is_path_readable_by_grub() for the readability
24091 check rather than convert_system_path_to_grub_path().
24093 2008-05-30 Robert Millan <rmh@aybabtu.com>
24095 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
24096 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
24097 converting it first.
24098 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
24099 grub.cfg for access to font file, and afterwards call it again to set
24102 2008-05-30 Robert Millan <rmh@aybabtu.com>
24104 * commands/search.c (options): Add --fs_uuid option.
24105 (search_fs_uuid): New function.
24106 (grub_cmd_search): Fix --set argument passing.
24107 Use search_fs_uuid() when requested via --fs_uuid.
24108 (grub_search_init): Update help message.
24109 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
24110 and redeclare it as an array of 16-bit words.
24111 (grub_ext2_uuid): New function.
24112 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
24113 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
24114 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
24115 (GRUB_DEVICE_BOOT_UUID): New variables.
24116 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
24117 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
24119 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
24120 just assume `root' variable has the right value.
24121 * util/grub.d/10_linux.in: Likewise.
24122 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
24124 (main): Recognise `-t fs_uuid' argument.
24126 2008-05-30 Robert Millan <rmh@aybabtu.com>
24128 * util/biosdisk.c (map): Redefine structure to hold information
24129 about GRUB drive name.
24130 (get_drive): Reimplement without assuming (and verifying) BIOS-like
24132 (call_hook): Remove.
24133 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
24134 member. Assume drive has partitions.
24135 (grub_util_biosdisk_open): Access device names via `.device' struct
24137 (open_device): Likewise.
24138 (find_drive): Likewise.
24139 (read_device_map): Adjust map[] usage to match the new struct
24140 definition. Don't check for duplicates (still possible, but not cheap
24142 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
24143 (make_device_name): Remove assumption of BIOS-like drive names.
24145 2008-05-30 Pavel Roskin <proski@gnu.org>
24147 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
24148 compiling execute.c doesn't need grub_script.tab.h anymore.
24149 (normal/command.c_DEPENDENCIES): Likewise.
24150 (normal/function.c_DEPENDENCIES): Likewise.
24151 * conf/i386-ieee1275.rmk: Likewise.
24152 * conf/i386-linuxbios.rmk: Likewise.
24153 * conf/i386-pc.rmk: Likewise.
24154 * conf/powerpc-ieee1275.rmk: Likewise.
24155 * conf/sparc64-ieee1275.rmk: Likewise.
24157 2008-05-29 Pavel Roskin <proski@gnu.org>
24159 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
24160 when scanning metadata for volume group name.
24162 * include/grub/script.h: Don't include grub_script.tab.h. It's
24163 a generated file, which may only be included from the files with
24164 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
24165 use union YYSTYPE, as the later allows forward declaration.
24166 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
24168 2008-05-29 Robert Millan <rmh@aybabtu.com>
24170 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
24171 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
24172 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
24173 (grub_console_checkkey): Add grub_dprintf() call to report unknown
24176 2008-05-29 Robert Millan <rmh@aybabtu.com>
24178 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
24179 control key combinations.
24181 2008-05-29 Robert Millan <rmh@aybabtu.com>
24183 * util/powerpc/ieee1275/grub-install.in: Move from here ...
24184 * util/ieee1275/grub-install.in: ... to here.
24185 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
24186 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
24187 (grub_install_SOURCES): Likewise.
24189 2008-05-29 Robert Millan <rmh@aybabtu.com>
24191 * fs/affs.c: Update copyright year.
24192 * fs/ext2.c: Likewise.
24193 * fs/fshelp.c: Likewise.
24194 * fs/hfsplus.c: Likewise.
24195 * fs/ntfs.c: Likewise.
24196 * fs/xfs.c: Likewise.
24197 * include/grub/fshelp.h: Likewise.
24198 * util/grub-mkdevicemap.c: Likewise.
24200 2008-05-28 Robert Millan <rmh@aybabtu.com>
24202 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
24203 might need to be fatfs to support some firmware implementations
24206 2008-05-28 Robert Millan <rmh@aybabtu.com>
24208 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
24210 * util/grub-mkdevicemap.c (get_mmc_disk_name)
24211 (make_device_map): Likewise.
24213 2008-05-20 Bean <bean123ch@gmail.com>
24215 * fs/fshelp.c (grub_fshelp_map_block): New function.
24216 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
24217 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
24219 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
24220 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
24221 (grub_fshelp_journal): New structure.
24222 (grub_fshelp_map_block): New function prototype.
24223 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
24224 (grub_fshelp_map_block): Likewise.
24226 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
24227 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
24228 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
24229 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
24230 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
24231 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
24232 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
24233 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
24234 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
24235 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
24236 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
24237 (grub_ext2_sblock): New members for journal support.
24238 (grub_ext3_journal_header): New structure.
24239 (grub_ext3_journal_revoke_header): Likewise.
24240 (grub_ext3_journal_block_tag): Likewise.
24241 (grub_ext3_journal_sblock): Likewise.
24242 (grub_fshelp_node): New members logfile and journal.
24243 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
24244 grub_fshelp_map_block to get real block number.
24245 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
24247 (grub_ext2_read_inode): Likewise.
24248 (grub_ext3_get_journal): New function.
24249 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
24250 (grub_ext2_close): Release memory used by journal.
24252 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
24253 (REISERFS_MAGIC_DESC_BLOCK): New macro.
24254 (grub_reiserfs_transaction_header): Renamed to
24255 grub_reiserfs_description_block, replace field data with real_blocks.
24256 (grub_reiserfs_commit_block): New structure.
24257 (grub_reiserfs_data): New member journal.
24258 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
24260 (grub_reiserfs_read_symlink): Likewise.
24261 (grub_reiserfs_iterate_dir): Likewise.
24262 (grub_reiserfs_open): Likewise.
24263 (grub_reiserfs_read): Likewise.
24264 (grub_reiserfs_get_journal): New function.
24265 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
24266 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
24267 using grub_reiserfs_get_journal.
24268 (grub_reiserfs_close): Release memory used by journal.
24270 * fs/affs.c (grub_affs_read_block): Change block type to
24271 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
24273 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
24275 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
24277 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
24279 * fs/udf.c (grub_udf_read_block): Change block type to
24280 grub_disk_addr_t. Use type cast to avoid warning.
24282 * fs/xfs.c (grub_xfs_read_block): Likewise.
24284 2008-05-16 Christian Franke <franke@computer.org>
24286 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
24287 to ensure that break with ESC will always work.
24288 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
24289 Remove ESC from keyboard queue.
24291 2008-05-16 Christian Franke <franke@computer.org>
24293 * util/biosdisk.c: [__CYGWIN__] Add includes.
24294 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
24295 (get_os_disk): Move variable declarations to OS specific
24296 parts to avoid warning.
24297 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
24298 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
24299 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
24301 * util/getroot.c: [__CYGWIN__] Add includes.
24302 (strip_extra_slashes): Fix "/" case.
24303 [__CYGWIN__] (get_win32_path): New function.
24304 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
24305 [__CYGWIN__] (find_root_device): Disable.
24306 [__CYGWIN__] (get_bootsec_serial): New function.
24307 [__CYGWIN__] (find_cygwin_root_device): Likewise.
24308 [__linux__] (grub_guess_root_device): Add early returns to simplify
24310 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
24311 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
24312 check for Linux only.
24314 2008-05-15 Bean <bean123ch@gmail.com>
24316 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
24317 keyboard hang problem in apple's intel mac.
24319 2008-05-09 Robert Millan <rmh@aybabtu.com>
24321 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
24323 * util/grub-mkdevicemap.c (get_virtio_disk_name)
24324 (make_device_map): Likewise.
24325 Reported by Aurelien Jarno <aurel32@debian.org>
24327 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
24329 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
24330 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
24331 (make_device_map): Output entries for xvd type disks.
24333 2008-05-07 Robert Millan <rmh@aybabtu.com>
24335 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
24337 * util/grub-mkdevicemap.c (get_cciss_disk_name)
24338 (make_device_map): Likewise.
24339 Reported by Roland Dreier <rdreier@cisco.com>
24341 2008-05-07 Robert Millan <rmh@aybabtu.com>
24343 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
24344 grub_strstr() call. Correct a few mistakes in failure path handling.
24346 2008-05-06 Robert Millan <rmh@aybabtu.com>
24348 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
24349 Do not print a trailing slash (therefore, the root directory is an
24351 (convert_system_path_to_grub_path): Do not remove trailing slash
24352 from make_system_path_relative_to_its_root() output.
24354 * util/i386/pc/grub-install.in: Add trailing slash to output from
24355 make_system_path_relative_to_its_root().
24357 2008-05-06 Robert Millan <rmh@aybabtu.com>
24359 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
24360 ensures that output lines aren't intermangled with those sent to
24361 stderr (via grub_util_info()).
24362 * util/grub-probe.c (grub_refresh): Likewise.
24363 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
24365 2008-05-05 Christian Franke <franke@computer.org>
24367 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
24368 Add Cygwin device names.
24369 (get_ide_disk_name) [__CYGWIN__]: Likewise.
24370 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
24371 (check_device): Return error instead of success on empty name.
24372 (make_device_map): Move label inside linux specific code to
24373 prevent compiler warning.
24375 2008-04-30 Robert Millan <rmh@aybabtu.com>
24377 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
24378 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
24380 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
24382 2008-04-29 Robert Millan <rmh@aybabtu.com>
24384 * docs/grub.cfg: New file (example GRUB configuration).
24386 2008-04-26 Robert Millan <rmh@aybabtu.com>
24388 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
24389 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
24390 and `disk/ieee1275/nand.c'.
24392 2008-04-25 Bean <bean123ch@gmail.com>
24394 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
24397 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
24398 change the buffer size to 4096 for cdrom device.
24400 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
24402 (_linux_mod_SOURCES): New variable.
24403 (_linux_mod_CFLAGS): Likewise.
24404 (_linux_mod_LDFLAGS): Likewise.
24405 (linux_mod_SOURCES): Likewise.
24406 (linux_mod_CFLAGS): Likewise.
24407 (linux_mod_LDFLAGS): Likewise.
24408 (nand_mod_SOURCES): Likewise.
24409 (nand_mod_CFLAGS): Likewise.
24410 (nand_mod_LDFLAGS): Likewise.
24412 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
24413 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
24414 type property. (nand device in olpc don't have this property)
24416 * include/grub/disk.h (grub_disk_dev_id): New macro
24417 GRUB_DISK_DEVICE_NAND_ID.
24419 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
24420 function prototype.
24421 (grub_rescue_cmd_initrd): Likewise.
24423 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
24424 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
24425 ofw_cif_handler and ofw_idt, adjust padding number.
24427 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
24428 GRUB_MACHINE_IEEE1275 is defined.
24430 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
24431 Use NESTED_FUNC_ATTR attribute on the hook parameter.
24433 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
24434 on nested function heap_init.
24435 (grub_upper_mem): New variable for i386-ieee1275.
24436 (grub_get_extended_memory): New function for i386-ieee1275.
24437 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
24439 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
24440 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
24443 * loader/i386/ieee1275/linux.c: New file.
24445 * loader/i386/ieee1275/linux_normal.c: New file.
24447 * disk/ieee1275/nand.c: New file.
24449 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
24451 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
24453 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
24455 2008-04-18 Robert Millan <rmh@aybabtu.com>
24457 Restructures early code path on ieee1275 to unify grub_main() as
24458 the first C function that is executed in every platform.
24460 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
24461 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
24463 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
24464 * kern/ieee1275/cmain.c (cmain): Rename to ...
24465 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
24466 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
24469 2008-04-18 Robert Millan <rmh@aybabtu.com>
24471 * util/update-grub.in: Fix syntax error when setting
24472 `GRUB_PRELOAD_MODULES'.
24473 Reported by Stephane Chazelas <stephane@artesyncp.com>
24475 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
24477 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
24478 section into account, newer toolchains generate unique build ids
24479 * configure.ac: remove the test for --build-id=none acceptance,
24480 we want build ids to be preserved
24481 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
24482 far from other sections don't cause the raw binary images grow
24485 2008-04-15 Robert Millan <rmh@aybabtu.com>
24487 * disk/lvm.c: Update copyright year.
24488 * kern/misc.c: Likewise.
24490 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
24492 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
24493 there is no memory left for physical volume name.
24495 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
24497 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
24498 volume name mapping to support bigger than 9 character names properly.
24500 2008-04-13 Robert Millan <rmh@aybabtu.com>
24502 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
24503 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
24505 2008-04-13 Christian Franke <franke@computer.org>
24507 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
24508 to create a floppy emulation boot CD when non emulation mode
24510 Enable Joliet CD filesystem extension.
24512 2008-04-13 Robert Millan <rmh@aybabtu.com>
24514 * kern/misc.c (grub_strncat): Fix off-by-one error.
24515 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
24517 * kern/env.c (grub_env_context_close): Clear current context, not
24519 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
24521 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
24523 2008-04-13 Robert Millan <rmh@aybabtu.com>
24525 Improve robustness when handling LVM.
24527 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
24528 (and leave `*p' unmodified).
24529 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
24531 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
24532 iterating through it.
24533 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
24535 (grub_lvm_scan_device): Check the return value (and fail gracefully
24536 when due) on each grub_lvm_getvalue() or grub_strstr() call.
24537 Don't assume `vg->pvs != NULL' when iterating through it.
24539 2008-04-13 Robert Millan <rmh@aybabtu.com>
24541 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
24542 * genmk.rb (partmap): New variable.
24543 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
24544 (#{partmap}): New target rule.
24545 * genpartmaplist.sh: New file.
24546 * Makefile.in (pkglib_DATA): Add partmap.lst.
24547 (partmap.lst): New target rule.
24548 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
24549 modules (including all partition maps), instead of preloading them.
24551 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
24553 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
24554 `linux-boot-prober' (if installed) to detect other operating
24555 systems which are installed on the computer and add them to
24557 * conf/common.rmk: Build and install 30_os-prober.
24559 2008-04-12 Robert Millan <rmh@aybabtu.com>
24561 * kern/powerpc/ieee1275/init.c: Move from here ...
24562 * kern/ieee1275/init.c: ... to here. Update all users.
24564 * kern/powerpc/ieee1275/cmain.c: Move from here ...
24565 * kern/ieee1275/cmain.c: ... to here. Update all users.
24567 * kern/powerpc/ieee1275/openfw.c: Move from here ...
24568 * kern/ieee1275/openfw.c: ... to here. Update all users.
24570 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
24571 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
24573 2008-04-10 Pavel Roskin <proski@gnu.org>
24575 * configure.ac: Always use "_cv_" in cache variables for
24576 compatibility with Autoconf 2.62.
24578 2008-04-07 Robert Millan <rmh@aybabtu.com>
24580 Revert grub/machine/init.h addition by Pavel (since it breaks on
24581 i386-ieee1275 and others):
24582 * util/i386/pc/misc.c: Remove grub/machine/init.h.
24583 * util/powerpc/ieee1275/misc.c: Likewise.
24585 2008-04-07 Robert Millan <rmh@aybabtu.com>
24587 * util/grub-probe.c (probe): Improve error message.
24589 2008-04-07 Robert Millan <rmh@aybabtu.com>
24591 * util/biosdisk.c (read_device_map): Skip devices that don't exist
24592 (this prevents the presence of a bogus entry from ruining the whole
24595 2008-04-06 Pavel Roskin <proski@gnu.org>
24597 * util/biosdisk.c: Include grub/util/biosdisk.h.
24598 * util/grub-fstest.c (execute_command): Make static.
24599 * util/grub-mkdevicemap.c (check_device): Likewise.
24600 * util/i386/pc/misc.c: Include grub/machine/init.h.
24601 * util/powerpc/ieee1275/misc.c: Likewise.
24602 * util/lvm.c: Include grub/util/lvm.h.
24603 * util/misc.c: Include grub/kernel.h, grub/misc.h and
24605 * util/raid.c: Include grub/util/raid.h.
24606 (grub_util_getdiskname): Make static.
24608 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
24609 grub_hostfs_fini(), as they are called from grub_init_all() and
24610 grub_fini_all() respectively. This fixes an infinite loop in
24611 grub-fstest due to double registration of hostfs.
24612 Reported by Christian Franke <Christian.Franke@t-online.de>
24614 2008-04-05 Pavel Roskin <proski@gnu.org>
24616 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
24617 all 8 functions. Otherwise, probe function 0 only.
24619 2008-04-04 Pavel Roskin <proski@gnu.org>
24621 * commands/lspci.c (grub_lspci_iter): Print the bus number
24624 * commands/lspci.c (grub_pci_classes): Fix typos.
24625 (grub_lspci_iter): Don't print func twice. Print vendor ID
24626 before device ID, as it's normally done.
24628 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
24629 Fix signedness warnings.
24630 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
24632 * util/ieee1275/get_disk_name.c: Include config.h so that
24633 _GNU_SOURCE is defined and getline() is declared. Mark an
24634 unused argument as such. Fix a signedness warning.
24636 2008-04-02 Pavel Roskin <proski@gnu.org>
24638 * genkernsyms.sh.in: Use more robust assignments for CC and
24639 srcdir. Quote srcdir.
24640 * gensymlist.sh.in: Likewise. Assert at the compile time that
24641 the symbol table is not empty.
24643 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
24644 * fs/cpio.c (grub_cpio_read): Likewise.
24646 2008-04-01 Pavel Roskin <proski@gnu.org>
24648 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
24649 * disk/host.c (grub_host_open): Likewise.
24650 * disk/loopback.c (grub_loopback_open): Likewise.
24651 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
24652 disk->id as in disk/host.c, not a multi-character constant.
24654 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
24655 later is obsolete, potentially dangerous and sets a bad example.
24656 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
24657 * util/misc.c (grub_util_get_image_size): Likewise.
24659 * disk/loopback.c (options): Improve help for "--partitions".
24661 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
24662 options to align them with the short options, e.g. "echo -e".
24664 2008-03-31 Bean <bean123ch@gmail.com>
24666 * video/reader/png.c (grub_png_data): New member is_16bit and
24668 (grub_png_decode_image_header): Detect 16 bit png image.
24669 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
24670 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
24671 (grub_video_reader_png): Release memory occupied by image_data.
24673 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
24675 (grub_nfs_mount): Skip the test for sector per cluster.
24677 * include/grub/ntfs.h (MAX_SPC): Removed.
24679 2008-03-31 Bean <bean123ch@gmail.com>
24681 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
24682 (grub_probe_SOURCES): Add fs/afs.c.
24683 (grub_fstest_SOURCES): Likewise.
24684 (afs_mod_SOURCES): New variable.
24685 (afs_mod_CFLAGS): Likewise.
24686 (afs_mod_LDFLAGS): Likewise.
24688 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
24689 (grub_emu_SOURCES): Likewise.
24691 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24693 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24695 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24697 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24699 * fs/afs.c: New file.
24701 2008-03-30 Pavel Roskin <proski@gnu.org>
24703 * disk/host.c: Include grub/misc.h to fix a warning.
24704 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
24705 warnings about implicit declarations.
24707 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
24709 * include/grub/i386/loader.h: Change declaration of
24710 grub_linux_boot() to match what grub_loader_set() expects.
24711 * util/getroot.c (grub_guess_root_device): Return const char* to
24713 * util/grub-probe.c (probe): Fix a warning about uninitialized
24714 abstraction_name variable.
24715 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
24716 second argument as unused to fix a warning.
24718 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
24719 missing grub_error() call.
24721 * util/update-grub_lib.in: Define datarootdir, since Autoconf
24722 2.60 and newer uses it to define datadir.
24724 * commands/sleep.c: Fix warning about implicit declaration.
24725 * disk/memdisk.c: Likewise.
24726 * loader/aout.c: Likewise.
24727 * loader/i386/bsd_normal.c: Likewise.
24728 * util/grub-probe.c: Likewise.
24730 * commands/i386/cpuid.c (has_longmode): Make static.
24731 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
24732 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
24734 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
24735 GDT. This is more robust, as %ds can change.
24736 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
24737 calling real_to_prot().
24738 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
24740 2008-03-28 Pavel Roskin <proski@gnu.org>
24742 * kern/i386/pc/startup.S: Assert that uncompressed functions
24743 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
24744 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
24745 code, as they push parts of the code (error handlers) beyond
24746 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
24747 code as correctness and size.
24749 2008-03-28 Pavel Roskin <proski@gnu.org>
24751 * kern/i386/pc/startup.S
24752 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
24753 data block address to the real mode, keep offset minimal. This
24754 works around a bug in AWARD BIOS on old Athlon systems, which
24755 makes CD detection hang.
24757 2008-03-26 Pavel Roskin <proski@gnu.org>
24759 * normal/color.c (grub_parse_color_name_pair): Make `name' a
24761 * include/grub/normal.h: Add grub_parse_color_name_pair()
24764 2008-03-24 Bean <bean123ch@gmail.com>
24766 * disk/i386/pc/biosdisk.c (cd_start): Removed.
24767 (cd_count): Removed.
24768 (cd_drive): New variable.
24769 (grub_biosdisk_get_drive): Don't check for (cdN) device.
24770 (grub_biosdisk_call_hook): Likewise.
24771 (grub_biosdisk_iterate): Change cdrom detection method.
24772 (grub_biosdisk_open): Replace cd_start with cd_drive.
24773 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
24774 detect cdrom device.
24776 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
24778 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
24779 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
24780 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
24781 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
24782 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
24783 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
24784 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
24785 (grub_biosdisk_cdrp): New structure.
24786 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
24788 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
24790 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
24793 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
24796 2008-03-20 Robert Millan <rmh@aybabtu.com>
24798 Remove 2 TiB limit in ata.mod.
24799 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
24800 (grub_ata_dumpinfo): Print sector count with 0x%llx.
24801 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
24802 grub_uint64_t instead of grub_uint32_t.
24804 2008-03-05 Bean <bean123ch@gmail.com>
24806 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
24807 (grub_multiboot): Set boot device.
24809 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
24811 2008-03-02 Bean <bean123ch@gmail.com>
24813 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
24816 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
24818 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
24821 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
24824 * docs/fdl.texi: New file.
24826 * docs/mdate-sh: New file. Copied from gnulib.
24827 * docs/texinfo.tex: Likewise.
24829 * config.guess: Updated from gnulib.
24830 * install-sh: Likewise.
24832 2008-02-28 Robert Millan <rmh@aybabtu.com>
24834 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
24835 (aout_mod_SOURCES): New variable.
24836 (aout_mod_CFLAGS): Likewise.
24837 (aout_mod_LDFLAGS): Likewise.
24839 * conf/i386-ieee1275.rmk: Likewise.
24841 2008-02-28 Robert Millan <rmh@aybabtu.com>
24843 * util/update-grub.in: Reorganise terminal validity check. Accept
24844 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
24845 Based on suggestion by Franklin PIAT.
24847 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
24849 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
24851 * util/getroot.c (grub_util_check_block_device): New function that
24852 returns the given argument if it is a block device and returns NULL else.
24853 * util/grub-probe.c (argument_is_device): New variable.
24854 (probe): Promote device_name from a variable to an argument. Receive
24855 device_name from grub_util_check_block_device() if path is NULL and from
24856 grub_guess_root_device() else. Do not free() device_name anymore.
24857 (options): Introduce new parameter '-d, --device'.
24858 (main): Add description of the new parameter to the help screen.
24859 Rename path variable to argument. Set argument_is_device if the '-d'
24860 option is given. Pass argument to probe() depending on
24861 argument_is_device.
24863 2008-02-24 Bean <bean123ch@gmail.com>
24865 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
24866 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
24867 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
24868 (GRUB_ISO9660_VOLDESC_PART): Likewise.
24869 (GRUB_ISO9660_VOLDESC_END): Likewise.
24870 (grub_iso9660_primary_voldesc): New member escape.
24871 (grub_iso9660_data): New member joliet.
24872 (grub_iso9660_convert_string): New function.
24873 (grub_iso9660_mount): Detect joliet extension.
24874 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
24875 (grub_iso9660_iso9660_label): Likewise.
24877 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
24878 (grub_setup_SOURCES): Add fs/udf.c.
24879 (grub_fstest_SOURCES): Likewise.
24880 (udf_mod_SOURCES): New variable.
24881 (udf_mod_CFLAGS): Likewise.
24882 (udf_mod_LDFLAGS): Likewise.
24884 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
24885 (grub_emu_SOURCES): Likewise.
24887 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
24889 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24891 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
24893 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
24895 * fs/udf.c: New file.
24897 2008-02-24 Robert Millan <rmh@aybabtu.com>
24899 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
24900 (normal/lexer.c_DEPENDENCIES): New variables.
24901 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
24902 (normal/lexer.c_DEPENDENCIES): Likewise.
24903 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
24904 (normal/lexer.c_DEPENDENCIES): Likewise.
24905 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
24906 (normal/lexer.c_DEPENDENCIES): Likewise.
24907 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
24908 (normal/lexer.c_DEPENDENCIES): Likewise.
24909 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
24910 (normal/lexer.c_DEPENDENCIES): Likewise.
24912 2008-02-23 Robert Millan <rmh@aybabtu.com>
24914 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
24915 since they were intended to be in hex. This didn't break previously
24916 because of a bug in gpt_partition_map_iterate() (see below).
24918 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
24919 when checking the validity of GPT header.
24920 Remove `partno', since it always provides the same information as `i'.
24922 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
24924 * include/grub/efi/time.h: Fix a wrong comment.
24926 2008-02-19 Pavel Roskin <proski@gnu.org>
24928 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
24931 2008-02-19 Bean <bean123ch@gmail.com>
24933 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
24934 (aout_mod_SOURCES): New variable.
24935 (aout_mod_CFLAGS): Likewise.
24936 (aout_mod_LDFLAGS): Likewise.
24937 (_bsd_mod_SOURCES): New variable.
24938 (_bsd_mod_CFLAGS): Likewise.
24939 (_bsd_mod_LDFLAGS): Likewise.
24940 (bsd_mod_SOURCES): New variable.
24941 (bsd_mod_CFLAGS): Likewise.
24942 (bsd_mod_LDFLAGS): Likewise.
24944 * include/grub/aout.h: New file.
24946 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
24948 * include/grub/i386/bsd.h: New file.
24950 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
24953 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
24954 function is called, so that it's possible to change it inside the hook.
24955 (grub_elf64_load): Likewise.
24956 (grub_elf_file): Don't close the file if elf header is not found.
24957 (grub_elf_close): Close the file if grub_elf_file fails (The new
24958 grub_elf_file won't close it).
24959 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
24960 (grub_elf64_size): Likewise.
24962 * kern/i386/loader.S (grub_unix_real_boot): New function.
24964 * loader/aout.c: New file.
24966 * loader/i386/bsd.c: New file.
24968 * loader/i386/bsd_normal.c: New file.
24970 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
24972 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
24973 can test other formats.
24975 2008-02-19 Robert Millan <rmh@aybabtu.com>
24977 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
24978 (grub_gpt_partition_type_empty): Redefine with macro from
24979 `<grub/gpt_partition.h>'.
24980 (gpt_partition_map_iterate): Adjust partition type comparison.
24982 Export `entry' as partmap-specific `part.data' struct.
24983 (grub_gpt_header, grub_gpt_partentry): Move from here ...
24985 * include/grub/gpt_partition.h (grub_gpt_header)
24986 (grub_gpt_partentry): ... to here (new file).
24988 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
24990 (grub_gpt_partition_type_bios_boot): New const variable, defined
24991 with macro from `<grub/gpt_partition.h>'.
24993 (setup): Replace `first_start' with `embed_region', which keeps
24994 track of the embed region (and is partmap-agnostic).
24996 Replace find_first_partition_start() with find_usable_region(),
24997 which finds a usable region for embedding using partmap-specific
24998 knowledge (supports PC/MSDOS and GPT).
25000 Fix all assumptions that the embed region start at sector 1, using
25001 `embed_region.start' from now on. Similarly, use `embed_region.end'
25002 rather than `first_start' to calculate available size.
25004 In grub_util_info() message, replace "into after the MBR" with an
25005 indication of the specific sector our embed region starts at.
25007 2008-02-19 Robert Millan <rmh@aybabtu.com>
25009 * DISTLIST: Replace `commands/ieee1275/halt.c' and
25010 `commands/ieee1275/reboot.c' with `commands/halt.c' and
25011 `commands/reboot.c'.
25012 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
25013 (halt_mod_SOURCES): Likewise.
25014 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
25015 (halt_mod_SOURCES): Likewise.
25017 2008-02-17 Christian Franke <franke@computer.org>
25019 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
25021 2008-02-17 Robert Millan <rmh@aybabtu.com>
25023 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
25024 set `first_start' to 0 for non-PC/MSDOS partition maps.
25026 2008-02-16 Robert Millan <rmh@aybabtu.com>
25028 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
25029 do not assume partition map is PC/MSDOS before performing checks that
25030 are specific to that layout.
25032 2008-02-13 Robert Millan <rmh@aybabtu.com>
25034 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
25035 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
25036 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
25038 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
25040 * configure.ac: Only a cosmetic change on the handling of
25041 -fno-stack-protector.
25043 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
25045 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
25046 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
25048 (grub_install_SOURCES): Add halt.mod and reboot.mod.
25049 (halt_mod_SOURCES): New variable.
25050 (halt_mod_CFLAGS): Likewise.
25051 (halt_mod_LDFLAGS): Likewise.
25052 (reboot_mod_SOURCES): Likewise.
25053 (reboot_mod_CFLAGS): Likewise.
25054 (reboot_mod_LDFLAGS): Likewise.
25056 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
25057 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
25059 (halt_mod_SOURCES): Likewise.
25060 (reboot_mod_SOURCES): Likewise.
25062 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
25063 commands/i386/pc/reboot.c by commands/reboot.c.
25064 (reboot_mod_SOURCES): Likewise.
25066 * commands/i386/pc/reboot.c: merge this file ...
25068 * commands/ieee1275/reboot.c: ... and this file ...
25070 * commands/reboot.c: ... to this file.
25071 Add some precompiler directive to include the correct header for
25074 * commands/ieee1275/halt.c: move this file ...
25076 * commands/halt.c: ... to here.
25077 Add some precompiler directive to include the correct header for
25080 * include/grub/efi/efi.h (grub_reboot): New function declaration.
25081 (grub_halt): Likewise.
25083 * kern/efi/efi.c (grub_reboot): New function.
25084 (grub_halt): Likewise.
25086 2008-02-12 Robert Millan <rmh@aybabtu.com>
25088 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
25089 /dev (like it is done for /dev/mapper). This doesn't provide support
25090 for EVMS, but at least it is now easy to identify the problem when it
25093 2008-02-11 Robert Millan <rmh@aybabtu.com>
25095 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
25096 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
25097 comparing it with -1, not 0.
25099 2008-02-10 Robert Millan <rmh@aybabtu.com>
25101 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
25103 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25104 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
25106 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
25107 `disk/lvm.c' to the end of the list.
25108 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
25109 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
25111 2008-02-10 Robert Millan <rmh@aybabtu.com>
25113 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
25114 grub_print_error() instead. This will let user know why we're entering
25116 Based on suggestions from Sam Morris.
25118 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
25120 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
25121 on remaining N args, instead of "--" arg N times.
25123 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
25125 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
25126 (fill_with_default_glyph): Changed to use unknown_glyph for fill
25127 pattern for unknown glyphs.
25129 2008-02-09 Robert Millan <rmh@aybabtu.com>
25131 * configure.ac: Probe for `help2man'.
25132 * Makefile.in (builddir): New variable.
25133 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
25134 or otherwise add a few flags/options to it.
25135 (install-local): For every executable utility or script that is
25136 installed, invoke $(HELP2MAN) to install a manpage based on --help
25139 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
25140 that it doesn't prevent --help from working in build tree.
25142 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
25143 with `bug-grub@gnu.org'.
25144 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
25145 * util/update-grub.in (usage): New function.
25146 Implement proper argument check, with support for --help and --version
25147 (as well as existing -y).
25149 2008-02-09 Christian Franke <franke@computer.org>
25151 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
25152 avoid overwriting previous output.
25153 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
25155 2008-02-09 Robert Millan <rmh@aybabtu.com>
25157 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
25160 2008-02-09 Robert Millan <rmh@aybabtu.com>
25162 * commands/sleep.c: New file.
25163 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
25164 (sleep_mod_SOURCES): New variable.
25165 (sleep_mod_CFLAGS): Likewise.
25166 (sleep_mod_LDFLAGS): Likewise.
25168 2008-02-09 Robert Millan <rmh@aybabtu.com>
25170 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
25171 situations in which we can deduce the RAID size and the superblock
25174 2008-02-09 Robert Millan <rmh@aybabtu.com>
25176 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
25177 and return a grub_diskmemberlist_t composed of LVM physical volumes.
25178 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
25180 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
25181 and return a grub_diskmemberlist_t composed of physical array members.
25182 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
25184 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
25186 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
25187 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
25188 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
25190 * util/grub-probe.c (probe): Move partmap probing code from here ...
25191 (probe_partmap): ... to here.
25192 (probe): Use probe_partmap() once for the disk we're probing, and
25193 additionally, when such disk contains a memberlist() struct member,
25194 once for each disk that is contained in the structure returned by
25197 2008-02-09 Robert Millan <rmh@aybabtu.com>
25199 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
25200 environment variable to 'all' in order to obtain debug output from
25202 * util/i386/pc/grub-setup.c (main): Likewise.
25204 2008-02-08 Robert Millan <rmh@aybabtu.com>
25206 * disk/raid.c (grub_raid_scan_device): Check for
25207 `array->device[sb.this_disk.number]' rather than for
25208 `array->device[sb.this_disk.number]->name', since the latter is not
25209 guaranteed to be accessible.
25211 2008-02-08 Robert Millan <rmh@aybabtu.com>
25213 * disk/raid.c: Update copyright.
25214 * fs/cpio.c: Likewise.
25215 * include/grub/raid.h: Likewise.
25216 * loader/i386/pc/multiboot.c: Likewise.
25217 * util/hostfs.c: Likewise.
25219 2008-02-08 Robert Millan <rmh@aybabtu.com>
25221 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
25222 to a grub_disk_t array.
25223 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
25225 (grub_raid_scan_device): Replace `device[x].name' accesses with
25226 `device[x]->name'. Simplify initialization of `array->device[x]'.
25228 2008-02-08 Robert Millan <rmh@aybabtu.com>
25230 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
25231 grub_dprintf() calls.
25232 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
25235 2008-02-07 Christian Franke <franke@computer.org>
25237 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
25238 instead of fseek and ftell to support large files.
25239 (grub_hostfs_read): Likewise.
25241 2008-02-07 Robert Millan <rmh@aybabtu.com>
25243 Patch from Jeroen Dekkers.
25244 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
25245 failure, since successfully reading all array members might not be
25248 2008-02-06 Robert Millan <rmh@aybabtu.com>
25250 * util/grub-probe.c (probe): Simplify partmap probing (with the
25251 assumption that the first word up to the underscore equals to
25254 2008-02-06 Christian Franke <franke@computer.org>
25256 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
25257 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
25258 last block of a cpio or tar stream.
25259 Check for "TRAILER!!!" instead of any empty data
25260 block to detect last block of a cpio stream.
25261 (grub_cpio_dir): Fix constness of variable np.
25262 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
25263 cpio or tar trailer is detected. This fixes a crash
25264 on open of a non existing file.
25266 2008-02-05 Bean <bean123ch@gmail.com>
25268 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
25270 (grub_multiboot_load_elf64): Likewise.
25271 (grub_multiboot): Initialize mbi structure.
25273 * util/grub-fstest.c: Don't include unused header file script.h.
25275 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
25277 (grub_fstest_SOURCES): Likewise.
25279 2008-02-05 Robert Millan <rmh@aybabtu.com>
25281 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
25282 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
25283 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
25284 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
25286 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
25287 (translation_table): Replace hardcoded values with macros
25288 provided by `<grub/term.h>'.
25290 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
25291 (keyboard_map): Correct/add a few values, with macros provided
25292 by `<grub/term.h>'.
25293 (keyboard_map_shift): Zero values that don't differ from their
25294 `keyboard_map' equivalents.
25295 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
25296 Discard the second scan code that is always sent by Caps lock.
25297 Only use `keyboard_map_shift' when it provides a non-zero value,
25298 otherwise fallback to `keyboard_map'.
25300 2008-02-04 Bean <bean123ch@gmail.com>
25302 * Makefile.in (enable_grub_fstest): New variable.
25304 * conf/common.rmk (grub_fstest_init.lst): New rule.
25305 (grub_fstest_init.h): Likewise.
25306 (grub_fstest_init.c): Likewise.
25307 (util/grub-fstest.c_DEPENDENCIES): New variable.
25308 (grub_fstest_SOURCES): Likewise.
25310 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
25312 * util/grub-fstest.c: New file.
25314 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
25316 Make grub-setup handle a separate root device.
25318 * util/i386/pc/grub-setup.c (setup): Always open the root device,
25319 so that the root device can be compared with the destination
25321 When embedding the core image, if the root and destination devices
25322 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
25324 When not embedding, set ROOT_DRIVE to 0xFF.
25326 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
25328 Add support for having a grub directory in a different drive. This
25329 is still only the data handling part.
25331 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
25332 (codestart): Save %dh in GRUB_ROOT_DRIVE.
25333 (grub_root_drive): New variable.
25335 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
25336 instead of GRUB_BOOT_DRIVE to construct a device name. Set
25337 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
25340 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
25342 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
25344 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
25346 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
25347 is bogus, because PXE booting does not specify any drive
25350 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
25351 am not sure if this is really correct.
25353 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
25354 is always identical to the boot drive when booting from a CD.
25356 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
25358 (root_drive): New variable.
25359 (real_start): Unconditionally set %dh to ROOT_DRIVE.
25360 (setup_sectors): Push %dx right after popping it, because %dh will
25362 (copy_buffer): Restore %dx.
25364 2008-02-03 Robert Millan <rmh@aybabtu.com>
25366 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
25367 use `cdboot.img' for cdrom images.
25369 2008-02-03 Robert Millan <rmh@aybabtu.com>
25371 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
25372 only setup gfxterm when `font' command has succeeded.
25374 2008-02-03 Robert Millan <rmh@aybabtu.com>
25376 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
25377 (grub_rescue_cmd_multiboot_loader)
25378 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
25380 2008-02-03 Pavel Roskin <proski@gnu.org>
25382 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
25383 %edx and %esi from stack only after grub_gate_a20() is called.
25384 grub_gate_a20() clobbers %edx.
25386 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
25388 * configure.ac (AC_INIT): Bumped to 1.96.
25390 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
25391 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
25392 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
25393 video/readers/png.c.
25395 2008-02-03 Bean <bean123ch@gmail.com>
25397 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
25398 (cdboot_img_SOURCES): New variable.
25399 (cdboot_img_ASFLAGS): New variable.
25400 (cdboot_img_LDFLAGS): New variable.
25402 * boot/i386/pc/cdboot.S: New file.
25404 * disk/i386/pc/biosdisk.c (cd_start): New variable.
25405 (cd_count): Likewise.
25406 (grub_biosdisk_get_drive): Add support for cd device.
25407 (grub_biosdisk_call_hook): Likewise.
25408 (grub_biosdisk_iterate): Likewise.
25409 (grub_biosdisk_open): Likewise.
25410 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
25411 (grub_biosdisk_rw): Support reading from cd device.
25412 (GRUB_MOD_INIT): Iterate cd devices.
25414 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
25415 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
25416 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
25418 * kern/i386/pc/init.c (make_install_device): Check for cd device.
25420 2008-02-02 Robert Millan <rmh@aybabtu.com>
25422 * commands/read.c: New file.
25423 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
25424 (read_mod_SOURCES): New variable.
25425 (read_mod_CFLAGS): Likewise.
25426 (read_mod_LDFLAGS): Likewise.
25428 2008-02-02 Robert Millan <rmh@aybabtu.com>
25430 * normal/main.c (grub_normal_execute): Check for `menu->size' when
25431 determining whether menu has to be displayed.
25433 2008-02-02 Marco Gerards <marco@gnu.org>
25435 * bus/pci.c: New file.
25437 * include/grub/pci.h: Likewise.
25439 * include/grub/i386/pc/pci.h: Likewise.
25441 * commands/lspci.c: Likewise.
25443 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
25445 (pci_mod_SOURCES): New variable.
25446 (pci_mod_CFLAGS): Likewise.
25447 (pci_mod_LDFLAGS): Likewise.
25448 (lspci_mod_SOURCES): Likewise.
25449 (lspci_mod_CFLAGS): Likewise.
25450 (lspci_mod_LDFLAGS): Likewise.
25452 2008-02-02 Bean <bean123ch@gmail.com>
25454 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
25455 (grub_ufs_get_file_block): Fix indirect block calculation problem.
25457 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
25458 (grub_xfs_btree_node): New structure.
25459 (grub_xfs_btree_root): New structure.
25460 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
25461 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
25462 (GRUB_XFS_EXTENT_BLOCK): Likewise.
25463 (GRUB_XFS_EXTENT_SIZE): Likewise.
25464 (grub_xfs_read_block): Support btree format type.
25465 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
25466 Use directory block as basic unit.
25468 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
25470 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
25471 __attribute__ ((__regparm__ (1))).
25473 2008-02-01 Robert Millan <rmh@aybabtu.com>
25475 Correct a mistake in previous commit.
25477 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
25479 (normal/command.c_DEPENDENCIES): New variable.
25481 2008-02-01 Robert Millan <rmh@aybabtu.com>
25483 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
25485 (normal/command.c_DEPENDENCIES): New variable.
25486 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
25487 * conf/i386-ieee1275.rmk: Likewise.
25488 * conf/i386-linuxbios.rmk: Likewise.
25489 * conf/i386-pc.rmk: Likewise.
25490 * conf/sparc64-ieee1275.rmk: Likewise.
25491 * conf/powerpc-ieee1275.rmk: Likewise.
25492 (grub_emu_SOURCES): Add `fs/fshelp.c'.
25494 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
25496 2008-02-01 Robert Millan <rmh@aybabtu.com>
25498 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
25499 call at beginning of function.
25501 2008-01-31 Pavel Roskin <proski@gnu.org>
25503 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
25504 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
25505 (grub_mkrescue_SOURCES): Likewise.
25506 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
25508 2008-01-30 Robert Millan <rmh@aybabtu.com>
25510 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
25511 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
25512 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
25513 (grub_probe_SOURCES): ... to here.
25515 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
25516 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
25517 * conf/i386-ieee1275.rmk: Likewise.
25518 * conf/i386-linuxbios.rmk: Likewise.
25519 * conf/powerpc-ieee1275.rmk: Likewise.
25521 2008-01-30 Tristan Gingold <gingold@free.fr>
25523 * kern/rescue.c: Silently accept empty lines.
25525 2008-01-29 Bean <bean123ch@gmail.com>
25527 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
25528 (real_code_2): Code cleanup and change comment style.
25529 (move_memory): Avoid using 32-bit address mode.
25531 2008-01-29 Bean <bean123ch@gmail.com>
25533 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
25534 (png_mod_SOURCES): New variable.
25535 (png_mod_CFLAGS): Likewise.
25536 (png_mod_LDFLAGS): Likewise.
25538 * video/readers/png.c: New file.
25540 2008-01-28 Robert Millan <rmh@aybabtu.com>
25542 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
25543 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
25544 `ifndef GRUB_MOD_GAP' hack.
25545 * util/elf/grub-mkimage.c (add_segments): Likewise.
25547 2008-01-27 Robert Millan <rmh@aybabtu.com>
25549 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
25550 `GRUB_MOD_GAP' for platforms in which it's not defined.
25551 * util/elf/grub-mkimage.c (add_segments): Likewise.
25553 2008-01-27 Robert Millan <rmh@aybabtu.com>
25555 Get grub-emu to build again (including parallel builds).
25557 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
25559 (util/grub-emu.c_DEPENDENCIES): ... this, ...
25560 (normal/execute.c_DEPENDENCIES): ... this, ...
25561 (grub-emu_DEPENDENCIES): ... and this.
25563 * conf/i386-efi.rmk: Likewise.
25564 * conf/i386-linuxbios.rmk: Likewise.
25565 * conf/i386-ieee1275.rmk: Likewise.
25566 * conf/powerpc-ieee1275.rmk: Likewise.
25567 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
25569 2008-01-27 Robert Millan <rmh@aybabtu.com>
25571 * NEWS: Add a few items.
25573 2008-01-27 Robert Millan <rmh@aybabtu.com>
25575 Fix parallel builds with grub-emu. Based on earlier commit for
25576 grub-probe and grub-setup.
25578 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25579 (util/grub-emu.c_DEPENDENCIES): ... this.
25580 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25581 (util/grub-emu.c_DEPENDENCIES): ... this.
25582 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25583 (util/grub-emu.c_DEPENDENCIES): ... this.
25584 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25585 (util/grub-emu.c_DEPENDENCIES): ... this.
25586 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
25587 (util/grub-emu.c_DEPENDENCIES): ... this.
25589 2008-01-27 Pavel Roskin <proski@gnu.org>
25591 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
25592 to create a gap between _end and the modules added to the image
25593 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
25594 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
25595 * util/elf/grub-mkimage.c (add_segments): Likewise.
25597 2008-01-26 Pavel Roskin <proski@gnu.org>
25599 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
25600 just return an error.
25602 2008-01-26 Bean <bean123ch@gmail.com>
25604 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
25605 (grub_reiserfs_get_item): Save offset of the next item.
25606 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
25608 2008-01-25 Robert Millan <rmh@aybabtu.com>
25610 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
25611 make all filesystem sources appear together (possibly fixing omissions
25613 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
25614 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25615 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
25616 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
25618 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
25620 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
25621 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
25622 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
25623 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
25625 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
25626 (probe): Add a sanity check to make sure of our ability to read
25627 requested files when probing for filesystem type.
25629 * genmk.rb: Update copyright year (2007).
25631 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
25632 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
25633 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
25634 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
25635 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
25636 : Remove function prototypes.
25638 2008-01-25 Robert Millan <rmh@aybabtu.com>
25640 Revert my previous commits (based on wrong assumption of how grub_errno
25643 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
25644 * kern/file.c (grub_file_open): Likewise.
25646 2008-01-24 Pavel Roskin <proski@gnu.org>
25648 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
25649 that hang if GRUB tries to setup colors.
25650 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
25651 colors for firmwares that don't support it.
25652 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
25653 Recognize Open Hack'Ware, set flags to work around its
25656 2008-01-24 Robert Millan <rmh@aybabtu.com>
25658 * kern/file.c (grub_file_open): Do not account previous failures of
25659 unrelated functions when grub_errno is checked for.
25660 Reported by Oleg Strikov.
25662 2008-01-24 Bean <bean123ch@gmail.com>
25664 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
25665 (grub_ufs_sblock): New member volume name.
25666 (grub_ufs_find_file): Fix string copy bug.
25667 (grub_ufs_label): Implement this function properly.
25669 * fs/hfs.c (grub_hfs_cnid_type): New enum.
25670 (grub_hfs_iterate_records): Use the correct file number for extents
25671 and catalog file. Fix problem in next index calculation.
25672 (grub_hfs_find_node): Replace recursive function call with loop.
25673 (grub_hfs_iterate_dir): Replace recursive function call with loop.
25675 2008-01-23 Robert Millan <rmh@aybabtu.com>
25677 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
25678 `<grub/symbol.h>' and `<grub/multiboot.h>'.
25679 (grub_multiboot2_real_boot): New function prototype.
25681 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
25682 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
25684 * kern/i386/ieee1275/init.c (grub_os_area_addr)
25685 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
25687 2008-01-23 Robert Millan <rmh@aybabtu.com>
25689 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
25690 #ifdef'ed out grub_printf().
25692 2008-01-23 Robert Millan <rmh@aybabtu.com>
25694 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
25695 grub_dprintf calls, since they make "debug=all" mode unusable.
25696 (grub_console_checkkey): Likewise.
25698 2008-01-23 Robert Millan <rmh@aybabtu.com>
25700 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
25701 `term/i386/pc/at_keyboard.c'.
25702 (pkglib_MODULES): Add `serial.mod'.
25703 (serial_mod_SOURCES): New variable.
25704 (serial_mod_CFLAGS): Likewise.
25705 (serial_mod_LDFLAGS): Likewise.
25707 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
25708 `<grub/powerpc/ieee1275/console.h>'.
25709 (grub_keyboard_controller_init): New function prototype.
25710 (grub_console_checkkey): Likewise.
25711 (grub_console_getkey): Likewise.
25713 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
25716 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
25717 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
25719 2008-01-23 Robert Millan <rmh@aybabtu.com>
25721 * kern/i386/pc/init.c (make_install_device): When memdisk image is
25722 present, "(memdisk)/boot/grub" becomes the default prefix.
25724 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
25725 a memdisk tarball with all the modules. Add --overlay=DIR option that
25726 allows users to overlay additional files into the image.
25728 2008-01-23 Robert Millan <rmh@aybabtu.com>
25730 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
25731 and `machine/memory.h'.
25732 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
25733 (_multiboot_mod_SOURCES): New variable.
25734 (_multiboot_mod_CFLAGS): Likewise.
25735 (_multiboot_mod_LDFLAGS): Likewise.
25736 (multiboot_mod_SOURCES): Likewise.
25737 (multiboot_mod_CFLAGS): Likewise.
25738 (multiboot_mod_LDFLAGS): Likewise.
25740 * include/grub/i386/ieee1275/loader.h: New file.
25742 * include/grub/i386/ieee1275/machine.h: Likewise.
25744 * include/grub/i386/ieee1275/memory.h: Likewise.
25746 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
25747 variable declaration.
25748 (grub_os_area_size): Likewise.
25750 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
25751 (grub_lower_mem, grub_upper_mem): New variables.
25752 (grub_stop_floppy): New function (just to make
25753 grub_multiboot2_real_boot() happy).
25755 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
25756 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
25757 (grub_stop): New function.
25758 Include `"../realmode.S"' and `"../loader.S"'.
25760 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
25761 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
25763 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
25764 rely on grub_multiboot2_real_boot() for final boot.
25766 2008-01-22 Robert Millan <rmh@aybabtu.com>
25768 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
25769 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
25770 device that doesn't look like an SD card.
25771 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
25772 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
25773 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
25774 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
25777 2008-01-22 Robert Millan <rmh@aybabtu.com>
25779 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
25780 avoid claiming over our own code.
25782 2008-01-22 Bean <bean123ch@gmail.com>
25784 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
25785 (jpeg_mod_SOURCES): New variable.
25786 (jpeg_mod_CFLAGS): Likewise.
25787 (jpeg_mod_LDFLAGS): Likewise.
25789 * video/readers/jpeg.c : New file.
25791 2008-01-22 Bean <bean123ch@gmail.com>
25793 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
25794 there are no more items.
25796 2008-01-21 Robert Millan <rmh@aybabtu.com>
25798 * kern/mm.c (grub_mm_init_region): Improve debug message.
25800 2008-01-21 Robert Millan <rmh@aybabtu.com>
25802 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
25803 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
25805 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
25807 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
25808 Indicates start of upper memory.
25809 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
25810 (generate_image): Abort when image size is big enough to corrupt
25813 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
25814 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
25815 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
25816 instead of hardcoding 0xA0000.
25817 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
25818 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
25819 instead of hardcoding 0xA0000.
25821 2008-01-21 Robert Millan <rmh@aybabtu.com>
25823 * disk/memdisk.c (memdisk_size): New variable.
25824 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
25826 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
25827 image to dynamic memory.
25828 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
25829 `memdisk_size'. Free memdisk block.
25831 2008-01-21 Robert Millan <rmh@aybabtu.com>
25833 Fix detection of very small filesystems (like tar).
25835 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
25836 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
25837 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
25838 a problem with this disk).
25840 2008-01-21 Robert Millan <rmh@aybabtu.com>
25842 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
25843 on grub_biosdisk_rw_standard() error.
25845 2008-01-21 Robert Millan <rmh@aybabtu.com>
25847 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
25849 * kern/elf.c: Likewise.
25850 * kern/ieee1275/ieee1275.c: Likewise.
25851 * kern/powerpc/ieee1275/openfw.c: Likewise.
25852 * term/ieee1275/ofconsole.c: Likewise.
25854 2008-01-21 Robert Millan <rmh@aybabtu.com>
25856 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
25858 * include/grub/kernel.h (grub_arch_memdisk_addr)
25859 (grub_arch_memdisk_size): Moved from here ...
25861 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
25862 (grub_arch_memdisk_size): ... to here.
25864 2008-01-21 Robert Millan <rmh@aybabtu.com>
25866 Mostly based on bugfix from Bean.
25868 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
25869 attribute with hook() parameter.
25870 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
25872 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
25873 attribute with hook() parameter.
25874 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
25877 2008-01-21 Robert Millan <rmh@aybabtu.com>
25879 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
25880 (pkglib_MODULES): Add `memdisk.mod'.
25881 (memdisk_mod_SOURCES): New variable.
25882 (memdisk_mod_CFLAGS): Likewise.
25883 (memdisk_mod_LDFLAGS): Likewise.
25885 * disk/memdisk.c: New file.
25887 * include/grub/disk.h (grub_disk_dev_id): Add
25888 `GRUB_DISK_DEVICE_MEMDISK_ID'.
25890 * include/grub/i386/pc/kernel.h
25891 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
25892 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
25893 (grub_kernel_image_size): New variable declaration.
25894 (grub_total_module_size): Likewise.
25895 (grub_memdisk_image_size): Likewise.
25897 * include/grub/i386/pc/memory.h
25898 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
25900 * include/grub/kernel.h: Include `<grub/symbol.h>'.
25901 (grub_arch_memdisk_addr): New variable declaration.
25902 (grub_arch_memdisk_size): Likewise.
25904 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
25905 (grub_arch_memdisk_size): Likewise.
25907 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
25908 (codestart): Replace hardcoded `0x100000' with
25909 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
25911 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
25912 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
25913 not NULL, append the contents of the file it refers to, at the end of
25914 the compressed kernel image. Initialize `grub_memdisk_image_size'
25915 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
25916 (options): Add "memdisk"|'m' option.
25917 (main): Parse --memdisk|-m option, and pass user-provided path as
25918 parameter to generate_image().
25920 2008-01-20 Robert Millan <rmh@aybabtu.com>
25922 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
25923 grub_dprintf() calls from here ...
25924 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
25926 2008-01-20 Robert Millan <rmh@aybabtu.com>
25928 Fix detection of "real mode" when /options/real-mode? doesn't exist.
25930 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
25932 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
25933 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
25934 `GRUB_IEEE1275_FLAG_REAL_MODE'.
25935 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
25937 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
25938 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
25940 2008-01-19 Robert Millan <rmh@aybabtu.com>
25942 Get rid of confusing function (superseded by
25943 `grub_ieee1275_get_integer_property')
25944 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
25946 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
25948 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
25949 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
25950 in native endianness from grub_ieee1275_get_integer_property().
25952 2008-01-19 Robert Millan <rmh@aybabtu.com>
25954 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
25955 command after "shut-down", since implementations differ on which
25956 the command for halt is.
25958 2008-01-19 Robert Millan <rmh@aybabtu.com>
25960 * include/grub/i386/linuxbios/console.h: Add header protection.
25961 (grub_keyboard_controller_init): New function prototype.
25962 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
25963 (KEYBOARD_COMMAND_READ): Likewise.
25964 (KEYBOARD_COMMAND_WRITE): Likewise.
25965 (KEYBOARD_SCANCODE_SET1): Likewise.
25966 (grub_keyboard_controller_write): New function.
25967 (grub_keyboard_controller_read): Likewise.
25968 (grub_keyboard_controller_init): Likewise.
25970 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
25971 (grub_console_init): On coreboot/LinuxBIOS, call
25972 grub_keyboard_controller_init().
25974 2008-01-19 Robert Millan <rmh@aybabtu.com>
25976 PowerPC changes provided by Pavel Roskin.
25978 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
25979 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
25980 don't rely on cmain() doing it.
25981 * kern/i386/ieee1275/startup.S (_start): Store %eax in
25982 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
25984 2008-01-16 Robert Millan <rmh@aybabtu.com>
25986 * include/grub/i386/linuxbios/memory.h
25987 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
25988 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
25989 receive `table_header' as argument. Instead, probe for it in the
25990 known memory ranges where it can be present.
25991 (grub_available_iterate): Do not pass a fixed `table_header' address
25992 to grub_linuxbios_table_iterate().
25994 2008-01-15 Robert Millan <rmh@aybabtu.com>
25996 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
25997 * conf/i386-ieee1275.rmk: New file.
25998 * include/grub/i386/ieee1275/console.h: Likewise.
25999 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
26000 * include/grub/i386/ieee1275/kernel.h: Likewise.
26001 * include/grub/i386/ieee1275/time.h: Likewise.
26002 * kern/i386/ieee1275/init.c: Likewise.
26003 * kern/i386/ieee1275/startup.S: Likewise.
26005 2008-01-15 Robert Millan <rmh@aybabtu.com>
26007 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
26008 when pointers are 32-bit (but still do set it to one when they are
26011 2008-01-15 Robert Millan <rmh@aybabtu.com>
26013 * include/grub/ieee1275/ieee1275.h
26014 (grub_ieee1275_get_integer_property): New function prototype.
26016 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
26017 (grub_ieee1275_get_integer_property): New function. Wraps around
26018 grub_ieee1275_get_property() to handle endianness.
26020 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
26021 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
26023 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
26024 (grub_map): Likewise.
26025 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
26027 2008-01-15 Bean <bean123ch@gmail.com>
26029 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
26030 (grub_script_execute_cmdline): Reset grub_errno.
26032 * normal/main.c (read_config_file): Reset grub_errno.
26034 * normal/parse.y (script_init): New.
26035 (script): Move function and menuentry here.
26037 (command): Add delimiter at the end of command.
26038 (commands): Adjust to match the new command.
26039 (commandblock): Remove grub_script_lexer_record_start.
26040 (menuentry): Add grub_script_lexer_record_start, use the new commands.
26041 (if): Use the new commands.
26043 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
26045 2008-01-15 Robert Millan <rmh@aybabtu.com>
26047 * normal/menu.c (run_menu): Move timeout message from here ...
26048 (print_timeout): ... to here.
26049 (run_menu): Use print_timeout() once during initial draw to print
26050 the whole message, and again in every clock tick to update only
26051 the number of seconds.
26053 2008-01-15 Robert Millan <rmh@aybabtu.com>
26055 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
26056 actual size of `available' from grub_ieee1275_get_property(), and
26057 restrict parsing to that bound.
26059 2008-01-15 Christian Franke <franke@computer.org>
26061 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
26062 (argp_program_version): Remove variable.
26063 (argp_program_bug_address): Likewise.
26064 (options): Convert from struct argp_option to struct option.
26065 (struct arguments): Remove.
26066 (parse_opt): Remove.
26067 (usage): New function.
26068 (main): Replace struct args members by simple variables.
26069 Replace argp_parse() by getopt_long().
26070 Add switch to evaluate options.
26071 Add missing "(...)" around root_dev in prefix string.
26073 2008-01-14 Robert Millan <rmh@aybabtu.com>
26075 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
26076 for grub_ieee1275_exit(), in order to improve portability.
26078 2008-01-14 Robert Millan <rmh@aybabtu.com>
26080 * util/grub.d/10_linux.in (prefix): Define.
26081 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
26083 2008-01-13 Pavel Roskin <proski@gnu.org>
26085 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
26086 grub_errno if no errors have been detected.
26088 2008-01-12 Robert Millan <rmh@aybabtu.com>
26090 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
26091 (grub_util_get_dev_abstraction): New function prototype.
26093 * util/getroot.c: Include `<grub/util/getroot.h>'
26094 (grub_util_get_grub_dev): Move detection of abstraction type to ...
26095 (grub_util_get_dev_abstraction): ... here (new function).
26097 * util/grub-probe.c: Convert PRINT_* to an enum. Add
26098 `PRINT_ABSTRACTION'.
26099 (probe): Probe for abstraction type when requested.
26100 (main): Understand `--target=abstraction'.
26102 * util/i386/efi/grub-install.in: Add abstraction module to core
26103 image when it is found to be necessary.
26104 * util/i386/pc/grub-install.in: Likewise.
26105 * util/powerpc/ieee1275/grub-install.in: Likewise.
26107 * util/update-grub_lib.in (font_path): Return system path without
26108 converting to GRUB path.
26109 * util/update-grub.in: Convert system path returned by font_path()
26110 to a GRUB path. Use `grub-probe -t abstraction' to determine what
26111 abstraction module is needed for loading fonts (if any). Export
26112 that as `GRUB_PRELOAD_MODULES'.
26113 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
26116 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
26118 Remove some unused code from reiserfs.
26120 * fs/reiserfs.c (struct grub_reiserfs_key)
26121 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
26122 (struct grub_reiserfs_node_body): Removed.
26123 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
26125 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
26127 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
26129 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
26131 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
26133 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
26135 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
26136 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
26137 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
26139 2008-01-10 Robert Millan <rmh@aybabtu.com>
26141 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
26142 Determines if a file is garbage left by packaging systems, etc.
26143 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
26144 for processing /etc/grub.d scripts.
26145 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
26146 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
26147 as a condition for processing Linux images.
26149 2008-01-10 Pavel Roskin <proski@gnu.org>
26151 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
26152 to compile reiserfs.c on PowerPC.
26154 2008-01-10 Robert Millan <rmh@aybabtu.com>
26156 * kern/device.c (grub_device_iterate): Do not abort device iteration
26157 when one of the devices cannot be opened.
26158 * kern/disk.c (grub_disk_open): Do not account previous failures of
26159 unrelated functions when grub_errno is checked for.
26161 2008-01-08 Robert Millan <rmh@aybabtu.com>
26163 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
26164 `! grub_linux_is_bzimage', change order of address comparison to make
26165 it more intuitive, and improve "too big zImage" error message.
26167 2008-01-08 Robert Millan <rmh@aybabtu.com>
26169 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
26170 `$(update-grub_DATA)'.
26171 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
26174 2008-01-07 Robert Millan <rmh@aybabtu.com>
26176 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
26177 which instruction is modified by grub-setup during installation
26178 (since it wasn't obvious by only looking at this file).
26180 2008-01-07 Robert Millan <rmh@aybabtu.com>
26182 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
26183 listing actual TODO items.
26185 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
26187 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
26189 (grub_reiserfs_get_key_offset): Likewise.
26190 (grub_reiserfs_set_key_offset): Likewise.
26191 (grub_reiserfs_set_key_type): Likewise.
26192 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
26194 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
26195 better to remove the bitfield version completely.
26197 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
26199 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
26200 allocated from the heap, due to the fshelp implementation.
26201 (grub_reiserfs_dir): Free NODE, due to the same reason.
26203 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
26205 Mostly from Vincent Pelletier:
26207 * fs/reiserfs.c: New file.
26209 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
26210 (reiserfs_mod_SOURCES): New variable.
26211 (reiserfs_mod_CFLAGS): Likewise.
26212 (reiserfs_mod_LDFLAGS): Likewise.
26214 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
26215 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
26216 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
26219 2008-01-06 Robert Millan <rmh@aybabtu.com>
26221 * normal/color.c: Remove `<grub/env.h>'.
26223 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
26225 * include/grub/normal.h: Include <grub/env.h>.
26227 2008-01-05 Robert Millan <rmh@aybabtu.com>
26229 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
26230 usage example with `(hd0,1)'.
26231 Reported by Samuel Thibault.
26233 2008-01-05 Robert Millan <rmh@aybabtu.com>
26235 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
26236 (grub_linux_boot_zimage): Rename to ...
26237 (grub_linux_boot): ... this.
26238 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
26239 (grub_linux_boot_zimage): Conditionalize zImage copy.
26241 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
26242 (grub_linux_boot_bzimage): Remove prototype.
26243 (grub_linux_boot_zimage): Rename to ...
26244 (grub_linux_boot): ... this.
26246 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
26247 (grub_linux_boot): Remove function.
26249 2008-01-05 Robert Millan <rmh@aybabtu.com>
26251 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
26252 (grub_env_write_color_highlight): Likewise.
26253 (grub_wait_after_message): Likewise.
26255 * normal/color.c: New file.
26257 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
26258 (normal_mod_DEPENDENCIES): Likewise.
26260 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
26261 (normal_mod_DEPENDENCIES): Likewise.
26263 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
26264 (normal_mod_DEPENDENCIES): Likewise.
26266 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
26267 (normal_mod_DEPENDENCIES): Likewise.
26269 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
26270 for waiting after a message is printed.
26271 * normal/main.c (read_config_file): Likewise.
26272 (grub_normal_init): Register grub_env_write_color_normal() and
26273 grub_env_write_color_highlight() hooks. Mark `color_normal' and
26274 `color_highlight' variables as global.
26276 * normal/menu.c (grub_wait_after_message): New function.
26277 (grub_color_menu_normal): New variable. Replaces ...
26278 (GRUB_COLOR_MENU_NORMAL): ... this macro.
26279 (grub_color_menu_highlight): New variable. Replaces ...
26280 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
26281 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
26282 `GRUB_TERM_COLOR_STANDARD'.
26283 (print_message): Use `grub_setcolorstate' to reload colors. Rename
26284 `normal_code' and `highlight_code' to `old_color_normal' and
26285 `old_color_highlight', respectively.
26286 (grub_menu_init_page): Update colors when drawing the menu, based on
26287 `menu_color_normal' and `menu_color_highlight' variables.
26288 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
26289 a message is printed.
26291 2008-01-05 Robert Millan <rmh@aybabtu.com>
26293 * kern/env.c (grub_env_context_open): Propagate hooks for global
26294 variables to new context.
26296 * kern/main.c (grub_set_root_dev): Export `root' variable.
26298 2008-01-05 Robert Millan <rmh@aybabtu.com>
26300 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
26301 discs unconditionally, since udev and others have options to provide
26304 2008-01-05 Robert Millan <rmh@aybabtu.com>
26306 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
26308 2008-01-04 Christian Franke <franke@computer.org>
26310 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
26313 2008-01-03 Pavel Roskin <proski@gnu.org>
26315 * kern/i386/linuxbios/init.c: Put "void" to all function
26316 declarations with no arguments.
26317 * kern/powerpc/ieee1275/init.c: Likewise.
26318 * term/i386/pc/at_keyboard.c: Likewise.
26319 * term/i386/pc/vga_text.c: Likewise.
26320 * util/grub-mkdevicemap.c: Likewise.
26322 2008-01-02 Robert Millan <rmh@aybabtu.com>
26324 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
26325 message when loaded image is out of bounds.
26326 (grub_multiboot_load_elf64): Likewise.
26328 2008-01-02 Pavel Roskin <proski@gnu.org>
26330 * util/grub.d/10_linux.in: Try version without ".old" when
26331 looking for initrd. It's better to use initrd from the newer
26332 kernel of the same version than no initrd at all.
26334 2008-01-01 Robert Millan <rmh@aybabtu.com>
26336 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
26338 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
26340 * include/grub/video.h: Added grub_video_unmap_color and
26341 grub_video_get_active_render_target.
26342 (grub_video_adapter): Added unmap_color and get_active_render_target.
26344 * video/video.c: Added grub_video_unmap_color and
26345 grub_video_get_active_render_target.
26346 (grub_video_get_info): Changed method to accept NULL pointer as an
26347 argument to allow detection of active video adapter.
26349 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
26350 grub_video_vbe_unmap_color_int.
26351 Added grub_video_vbe_unmap_color and
26352 grub_video_vbe_get_active_render_target.
26353 (grub_video_vbe_adapter): Added unmap_color and
26354 get_active_render_target.
26356 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
26357 with grub_video_vbe_unmap_color_int.
26359 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
26360 (DEFAULT_NORMAL_COLOR): Likewise.
26361 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
26362 (DEFAULT_FG_COLOR): Removed.
26363 (DEFAULT_BG_COLOR): Likewise.
26364 (DEFAULT_CURSOR_COLOR): Changed value.
26365 (grub_virtual_screen): Added standard_color_setting,
26366 normal_color_setting, highlight_color_setting and term_color.
26367 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
26368 (bitmap_width): Added.
26369 (bitmap_height): Likewise.
26370 (bitmap): Likewise.
26371 (set_term_color): Likewise.
26372 (grub_virtual_screen_setup): Changed to use new terminal coloring
26374 (grub_gfxterm_init): Added init for bitmap.
26375 (grub_gfxterm_fini): Added destroy for bitmap.
26376 (redraw_screen_rect): Updated to use background bitmap and new
26378 (scroll_up): Added optimization for case when there is no bitmap.
26379 (grub_gfxterm_cls): Fixed to use correct background color.
26380 (grub_virtual_screen_setcolorstate): Changed to use new terminal
26382 (grub_virtual_screen_setcolor): Likewise.
26383 (grub_virtual_screen_getcolor): Added.
26384 (grub_gfxterm_background_image_cmd): Likewise.
26385 (grub_video_term): Added setcolor and getcolor.
26386 (MOD_INIT): Added registration of background_image command.
26387 (MOD_TERM): Added unregistration for background_image command.
26389 2007-12-30 Pavel Roskin <proski@gnu.org>
26391 * loader/multiboot_loader.c: Fix multiboot command
26392 unregistration. Fix all typos in the word "multiboot".
26394 2007-12-29 Pavel Roskin <proski@gnu.org>
26396 * util/grub.d/10_linux.in: Refactor search for initrd. Add
26397 support for initrd names used in Fedora.
26399 2007-12-26 Bean <bean123ch@gmail.com>
26401 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
26402 (cpio_mod_SOURCES): New variable.
26403 (cpio_mod_CFLAGS): Likewise.
26404 (cpio_mod_LDFLAGS): Likewise.
26406 * fs/cpio.c: New file.
26408 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
26410 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
26412 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
26414 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26416 2007-12-25 Robert Millan <rmh@aybabtu.com>
26418 * include/grub/term.h (struct grub_term): Add `getcolor' function.
26419 (grub_getcolor): New function.
26421 * kern/term.c (grub_getcolor): New function.
26422 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
26423 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
26424 (print_entry): Set normal and highlight colors to
26425 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
26426 respectively, before printing and restore them to old
26428 (grub_menu_init_page): Likewise. Fill an additional colored space
26429 that would otherwise be left blank.
26431 * term/efi/console.c (grub_console_getcolor): New function.
26432 (struct grub_console_term.getcolor): New variable.
26433 * term/i386/pc/console.c (grub_console_getcolor): New function.
26434 (struct grub_console_term.getcolor): New variable.
26435 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
26436 (struct grub_console_term.getcolor): New variable.
26438 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
26439 (struct grub_console_term.setcolor): Remove variable.
26440 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
26441 (struct grub_console_term.setcolor): Remove variable.
26442 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
26443 (struct grub_console_term.setcolor): Remove variable.
26444 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
26445 (struct grub_console_term.setcolor): Remove variable.
26447 2007-12-25 Robert Millan <rmh@aybabtu.com>
26449 * configure.ac: Search for possible unifont.hex locations, and
26450 define UNIFONT_HEX if found.
26452 * Makefile.in (UNIFONT_HEX): Define variable.
26453 (DATA): Rename to ...
26454 (PKGLIB): ... this. Update all users.
26455 (PKGDATA): New variable.
26456 (pkgdata_IMAGES): Rename to ...
26457 (pkglib_IMAGES): ... this. Update all users.
26458 (pkgdata_MODULES): Rename to ...
26459 (pkglib_MODULES): ... this. Update all users.
26460 (pkgdata_PROGRAMS): Rename to ...
26461 (pkglib_PROGRAMS): ... this. Update all users.
26462 (pkgdata_DATA): Rename to ...
26463 (pkglib_DATA): ... this. Update all users.
26464 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
26465 (unicode.pff, ascii.pff): New rules.
26466 (all-local): Add `$(PKGDATA)' dependency.
26467 (install-local): Process `$(PKGDATA)'.
26469 * util/update-grub_lib.in (font_path): Search for *.pff files in
26470 a few more locations, including `${pkgdata}'.
26472 2007-12-23 Robert Millan <rmh@aybabtu.com>
26474 Patch from Bean <bean123ch@gmail.com>:
26475 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
26478 2007-12-21 Bean <bean123ch@gmail.com>
26480 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
26481 (ntfscomp_mod_SOURCES): New variable.
26482 (ntfscomp_mod_CFLAGS): Likewise.
26483 (ntfscomp_mod_LDFLAGS): Likewise.
26485 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
26486 (grub_probe_SOURCES): Likewise.
26487 (grub_emu_SOURCES): Likewise.
26489 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
26490 (grub_emu_SOURCES): Likewise.
26492 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
26493 (grub_emu_SOURCES): Likewise.
26495 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
26496 (grub_emu_SOURCES): Likewise.
26498 * fs/ntfs.c (grub_ntfscomp_func): New variable.
26499 (read_run_list): Renamed to grub_ntfs_read_run_list.
26500 (decomp_nextvcn): Moved to ntfscomp.c.
26501 (decomp_getch): Likewise.
26502 (decomp_get16): Likewise.
26503 (decomp_block): Likewise.
26504 (read_block): Likewise.
26505 (read_data): Partially moved to ntfscomp.c.
26506 (fixup): Change unsigned to grub_uint16_t.
26507 (read_mft): Change unsigned long to grub_uint32_t.
26508 (read_attr): Likewise.
26509 (read_data): Likewise.
26510 (read_run_data): Likewise.
26511 (read_run_list): Likewise.
26512 (read_mft): Likewise.
26514 * fs/ntfscomp.c: New file.
26516 * include/grub/ntfs.h: New file.
26518 2007-12-16 Robert Millan <rmh@aybabtu.com>
26520 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
26521 IDE disk check, since Linux is known to support 20 IDE disks.
26522 Reported by Colin Watson.
26524 2007-12-15 Bean <bean123ch@gmail.com>
26526 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
26527 (lnxboot_img_SOURCES): New variable.
26528 (lnxboot_img_ASFLAGS): Likewise.
26529 (lnxboot_img_LDFLAGS): Likewise.
26531 * boot/i386/pc/lnxboot.S: New file.
26533 2007-11-24 Pavel Roskin <proski@gnu.org>
26535 * configure.ac: Test if '--build-id=none' is supported by the
26536 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
26537 objcopy to generate incorrect binary files (binutils
26538 2.17.50.0.18-1 as shipped by Fedora 8).
26539 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
26540 linking, so that build ID doesn't break the test.
26542 2007-11-24 Pavel Roskin <proski@gnu.org>
26544 * include/grub/i386/time.h: use "void" in the argument list
26545 of grub_cpu_idle().
26546 * include/grub/powerpc/time.h: Likewise.
26547 * include/grub/sparc64/time.h: Likewise.
26549 2007-11-18 Christian Franke <franke@computer.org>
26551 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
26552 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
26553 This fixes the problem that function keys did not work in grub-emu.
26555 2007-11-18 Christian Franke <franke@computer.org>
26557 * disk/host.c (grub_host_open): Remove attribute unused from
26558 name parameter. Add check for "host". This fixes the problem
26559 that grub-emu does not find partitions.
26561 2007-11-18 Christian Franke <franke@computer.org>
26563 * util/hostfs.c (is_dir): New function.
26564 (grub_hostfs_dir): Handle missing dirent.d_type case.
26565 (grub_hostfs_read): Add missing fseek().
26566 (grub_hostfs_label): Clear label pointer. This fixes a crash
26567 of grub-emu on "ls (host)".
26569 2007-11-18 Christian Franke <franke@computer.org>
26571 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
26572 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
26573 to 64 bit boundary by default.
26575 2007-11-18 Bean <bean123ch@gmail.com>
26577 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
26578 (hexdump_mod_SOURCES): New variable.
26579 (hexdump_mod_CFLAGS): Likewise.
26580 (hexdump_mod_LDFLAGS): Likewise.
26582 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
26584 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
26586 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
26588 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
26590 * include/grub/hexdump.h: New file.
26592 * commands/hexdump.c: New file.
26594 2007-11-10 Robert Millan <rmh@aybabtu.com>
26596 * commands/i386/pc/play.c (beep_off): Switch order of arguments
26597 in grub_outb() calls.
26598 (beep_on): Likewise.
26600 2007-11-10 Christian Franke <franke@computer.org>
26602 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
26603 (grub_menu_run): Likewise.
26605 2007-11-10 Robert Millan <rmh@aybabtu.com>
26607 * include/grub/i386/efi/machine.h: New file.
26608 * include/grub/i386/linuxbios/machine.h: Likewise.
26609 * include/grub/i386/pc/machine.h: Likewise.
26610 * include/grub/powerpc/ieee1275/machine.h: Likewise.
26611 * include/grub/sparc64/ieee1275/machine.h: Likewise.
26613 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
26614 (serial_hw_io_addr): New variable.
26615 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
26616 instead of `(unsigned short *) 0x400'.
26618 2007-11-10 Bean <bean123ch@gmail.com>
26620 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
26622 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
26624 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
26625 (vga_mod_SOURCES): Added.
26626 (vga_mod_CFLAGS): Likewise.
26627 (vga_mod_LDFLAGS): Likewise.
26629 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
26631 (set_map_mask): Likewise.
26632 (set_read_map): Likewise.
26633 (set_read_address): Likewise.
26634 (vga_font): Removed variable.
26635 (get_vga_glyph): Removed function.
26636 (invalidate_char): Likewise.
26637 (write_char): Changed to use grub_font_get_glyph() for font
26639 (grub_vga_putchar): Likewise.
26640 (grub_vga_getcharwidth): Likewise.
26642 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
26644 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
26646 (pxeboot_img_LDFLAGS): Likewise.
26647 (diskboot_img_LDFLAGS): Likewise.
26648 (kernel_img_LDFLAGS): Likewise.
26650 2007-11-06 Robert Millan <rmh@aybabtu.com>
26652 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
26653 in grub_outb() calls.
26654 (serial_hw_init): Likewise.
26656 2007-11-05 Robert Millan <rmh@aybabtu.com>
26658 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
26659 spaces. Skip non-regular files.
26661 2007-11-05 Robert Millan <rmh@aybabtu.com>
26663 * kern/disk.c (grub_disk_firmware_fini)
26664 (grub_disk_firmware_is_tainted): New variables.
26666 * include/grub/disk.h (grub_disk_firmware_fini)
26667 (grub_disk_firmware_is_tainted): Likewise.
26669 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
26670 (grub_disk_biosdisk_fini): ... to here.
26671 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
26672 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
26673 is set. Register grub_disk_biosdisk_fini() in
26674 `grub_disk_firmware_fini'.
26676 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
26677 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
26678 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
26679 to finish existing firmware disk interface.
26681 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
26682 (ata_mod_SOURCES): New variable.
26683 (ata_mod_CFLAGS): Likewise.
26684 (ata_mod_LDFLAGS): Likewise.
26686 2007-11-05 Robert Millan <rmh@aybabtu.com>
26688 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
26689 (grub_ata_wait): Reimplement using grub_millisleep().
26691 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
26692 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
26694 2007-11-03 Marco Gerards <marco@gnu.org>
26696 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
26697 (CRTC_ADDR_PORT): New macro.
26698 (CRTC_DATA_PORT): Likewise.
26699 (CRTC_CURSOR): Likewise.
26700 (CRTC_CURSOR_ADDR_HIGH): Likewise.
26701 (CRTC_CURSOR_ADDR_LOW): Likewise.
26702 (update_cursor): New function.
26703 (grub_console_real_putchar): Call `update_cursor'.
26704 (grub_console_gotoxy): Likewise.
26705 (grub_console_cls): Set the default color when clearing the
26707 (grub_console_setcursor): Implemented.
26709 2007-11-03 Marco Gerards <marco@gnu.org>
26711 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
26713 (grub_ata_pio_write): Likewise.
26715 (grub_atapi_identify): Wait after issuing an ATA command.
26716 (grub_atapi_packet): Likewise.
26717 (grub_ata_identify): Likewise.
26718 (grub_ata_readwrite): Likewise.
26720 2007-11-03 Marco Gerards <marco@gnu.org>
26722 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
26723 (grub_ata_pio_write): Likewise.
26724 (grub_ata_readwrite): Use `grub_error', instead of
26725 returning `grub_errno'.
26727 2007-11-03 Marco Gerards <marco@gnu.org>
26729 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
26730 grub_ata_pio_write once for every single sector, instead of for
26733 2007-10-31 Robert Millan <rmh@aybabtu.com>
26735 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
26737 * conf/i386-linuxbios.rmk: New file.
26739 * kern/i386/pc/hardware.c: Likewise.
26740 * term/i386/pc/at_keyboard.c: Likewise.
26741 * term/i386/pc/vga_text.c: Likewise.
26743 * include/grub/i386/linuxbios/boot.h: Likewise.
26744 * include/grub/i386/linuxbios/console.h: Likewise.
26745 * include/grub/i386/linuxbios/init.h: Likewise.
26746 * include/grub/i386/linuxbios/kernel.h: Likewise.
26747 * include/grub/i386/linuxbios/loader.h: Likewise.
26748 * include/grub/i386/linuxbios/memory.h: Likewise.
26749 * include/grub/i386/linuxbios/serial.h: Likewise.
26750 * include/grub/i386/linuxbios/time.h: Likewise.
26752 * kern/i386/linuxbios/init.c: Likewise.
26753 * kern/i386/linuxbios/startup.S: Likewise.
26754 * kern/i386/linuxbios/table.c: Likewise.
26756 2007-10-31 Marco Gerards <marco@gnu.org>
26758 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
26759 (ata_mod_SOURCES): New variable.
26760 (ata_mod_CFLAGS): Likewise.
26761 (ata_mod_LDFLAGS): Likewise.
26763 * disk/ata.c: New file.
26765 * include/grub/disk.h (grub_disk_dev_id): Add
26766 `GRUB_DISK_DEV_ATA_ID'.
26768 2007-10-31 Robert Millan <rmh@aybabtu.com>
26770 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
26771 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
26773 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
26774 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
26776 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
26779 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
26781 2007-10-27 Robert Millan <rmh@aybabtu.com>
26783 * include/grub/types.h (ULONG_MAX): Define macro.
26785 2007-10-22 Robert Millan <rmh@aybabtu.com>
26787 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
26789 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
26791 2007-10-22 Robert Millan <rmh@aybabtu.com>
26793 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
26794 (pkgdata_MODULES): Add `biosdisk.mod'.
26795 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
26798 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
26799 (grub_biosdisk_init): Replace with ...
26800 (GRUB_MOD_INIT(biosdisk)): ... this.
26801 (grub_biosdisk_fini): Replace with ...
26802 (GRUB_MOD_FINI(biosdisk)): ... this.
26804 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
26805 (grub_machine_init): Remove call to grub_biosdisk_init().
26806 (grub_machine_fini): Remove call to grub_machine_fini().
26808 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
26810 2007-10-22 Robert Millan <rmh@aybabtu.com>
26812 * include/grub/time.h: New file.
26813 * include/grub/i386/time.h: Likewise.
26814 * include/grub/powerpc/time.h: Likewise.
26815 * include/grub/sparc64/time.h: Likewise.
26817 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
26819 (KERNEL_MACHINE_TIME_HEADER): ... this.
26820 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
26822 (KERNEL_MACHINE_TIME_HEADER): ... this.
26823 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
26825 (KERNEL_MACHINE_TIME_HEADER): ... this.
26827 * kern/i386/efi/init.c: Include `<grub/time.h>'.
26828 (grub_millisleep): New function.
26829 * kern/i386/pc/init.c: Include `<grub/time.h>'.
26830 (grub_millisleep): New function.
26831 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
26832 Remove `grub/machine/time.h' include.
26833 (grub_millisleep): New function.
26834 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
26835 Remove `grub/machine/time.h' include.
26836 (grub_millisleep): New function.
26838 * include/grub/misc.h (grub_div_roundup): New function.
26840 * kern/misc.c: Include `<grub/time.h>'.
26841 (grub_millisleep_generic): New function.
26843 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
26845 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
26847 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
26848 `machine/time.h'. Add `time.h'.
26849 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
26851 2007-10-21 Robert Millan <rmh@aybabtu.com>
26853 * include/grub/misc.h (grub_max): New function.
26855 2007-10-21 Robert Millan <rmh@aybabtu.com>
26857 * util/misc.c (grub_util_info): Call fflush() before returning.
26859 2007-10-20 Robert Millan <rmh@aybabtu.com>
26861 * genmk.rb (Image): Copy `extra_flags' from here ...
26862 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
26864 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
26865 to `argc' and `args' arguments.
26867 2007-10-17 Robert Millan <rmh@aybabtu.com>
26869 * kern/i386/loader.S: New file.
26871 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
26872 * kern/i386/loader.S (grub_linux_prot_size)... to here.
26873 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
26874 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
26875 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
26876 * kern/i386/loader.S (grub_linux_real_addr)... to here.
26877 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
26878 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
26879 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
26880 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
26881 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
26882 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
26883 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
26884 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
26886 * kern/i386/realmode.S: New file.
26888 * kern/i386/pc/startup.S (protstack): Moved from here ...
26889 * kern/i386/realmode.S (protstack)... to here.
26890 * kern/i386/pc/startup.S (gdt): Moved from here ...
26891 * kern/i386/realmode.S (gdt)... to here.
26892 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
26893 * kern/i386/realmode.S (prot_to_real)... to here.
26895 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
26896 `kern/i386/realmode.S'.
26898 2007-10-17 Robert Millan <rmh@aybabtu.com>
26900 * include/grub/i386/loader.h: New file.
26902 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
26903 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
26904 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
26905 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
26906 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
26907 * include/grub/i386/loader.h (grub_linux_prot_size)
26908 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
26909 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
26910 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
26911 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
26913 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
26915 2007-10-15 Robert Millan <rmh@aybabtu.com>
26917 * normal/misc.c (grub_normal_print_device_info): Do not probe for
26918 filesystem when dev->disk is unset.
26919 Do probe for filesystem even when dev->disk->has_partitions is set.
26920 In case a filesystem is found, always report it.
26921 In case it isn't, if dev->disk->has_partitions is set, report that
26922 a partition table was found instead of reporting that no filesystem
26923 could be identified.
26925 2007-10-12 Robert Millan <rmh@aybabtu.com>
26927 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
26928 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
26930 * include/grub/types.h (grub_host_to_target16): New macro.
26931 (grub_host_to_target32): Likewise.
26932 (grub_host_to_target64): Likewise.
26933 (grub_target_to_host16): Likewise.
26934 (grub_target_to_host32): Likewise.
26935 (grub_target_to_host64): Likewise.
26937 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
26938 Renamed from to ...
26939 (GRUB_MOD_ALIGN): ...this. Update all users.
26941 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
26942 grub_host_to_target32.
26943 Replace grub_be_to_cpu32 with grub_target_to_host32.
26944 (load_modules): Likewise.
26945 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
26946 Replace grub_be_to_cpu32 with grub_target_to_host32.
26947 Replace grub_cpu_to_be16 with grub_host_to_target16.
26948 Replace grub_cpu_to_be32 grub_host_to_target32.
26950 2007-10-12 Robert Millan <rmh@aybabtu.com>
26952 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
26953 * util/elf/grub-mkimage.c: ... here.
26955 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
26956 `util/powerpc/ieee1275/grub-mkimage.c'.
26958 2007-10-07 Robert Millan <rmh@aybabtu.com>
26960 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
26961 and make it easier to figure out.
26962 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
26963 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
26964 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
26965 leave us with less than HEAP_MIN_SIZE total heap.
26966 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
26968 2007-10-03 Robert Millan <rmh@aybabtu.com>
26970 * include/grub/i386/io.h: New file.
26971 * commands/i386/pc/play.c (inb): Removed.
26973 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26975 * term/i386/pc/serial.c (inb): Removed.
26977 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26979 * term/i386/pc/vga.c (inb): Removed.
26981 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
26984 2007-10-02 Robert Millan <rmh@aybabtu.com>
26986 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
26987 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
26988 Reported by Marcin Kurek.
26990 2007-09-07 Robert Millan <rmh@aybabtu.com>
26992 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
26993 SmartFirmware version updates (as released by Sven Luther), and avoid
26994 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
26995 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
26998 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
27000 From Hitoshi Ozeki:
27001 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
27002 when merging two regions.
27004 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
27006 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
27007 * normal/completion.c (grub_normal_do_completion): Likewise.
27008 Reported by Hitoshi Ozeki.
27010 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
27012 Do not use devices at boot in chainloading.
27014 * loader/i386/pc/chainloader.c (boot_drive): New variable.
27015 (boot_part_addr): Likewise.
27016 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
27017 with BOOT_DRIVE and BOOT_PART_ADDR.
27018 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
27019 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
27021 2007-08-29 Robert Millan <rmh@aybabtu.com>
27023 Patch from Simon Peter <dn.tlp@gmx.net>:
27024 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
27025 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
27026 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
27027 util/i386/pc/grub-setup.c_DEPENDENCIES.
27028 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
27029 util/grub-probe.c_DEPENDENCIES.
27030 * conf/powerpc-ieee1275.rmk: Likewise.
27032 2007-08-28 Robert Millan <rmh@aybabtu.com>
27034 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
27035 to tell grub-mkdevicemap how to name devices.
27036 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
27039 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
27040 util/i386/get_disk_name.c.
27041 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
27042 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
27043 util/ieee1275/get_disk_name.c.
27045 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
27047 * DISTLIST: Add util/i386/get_disk_name.c and
27048 util/ieee1275/get_disk_name.c.
27050 * util/grub-mkdevicemap.c: Replace device naming logic with
27051 grub_util_get_disk_name() calls.
27053 2007-08-20 Robert Millan <rmh@aybabtu.com>
27055 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
27056 (so that it works for both plural and singular quantities).
27058 2007-08-05 Robert Millan <rmh@aybabtu.com>
27060 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
27061 so that [xz] isn't taken into account when determining order.
27063 2007-08-02 Marco Gerards <marco@gnu.org>
27065 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
27066 `include/multiboot2.h', `include/grub/elfload.h',
27067 `include/multiboot.h', `include/grub/multiboot.h',
27068 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
27069 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
27070 `kern/elf.c', `loader/multiboot_loader.c',
27071 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
27072 `loader/i386/pc/multiboot2.c',
27073 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
27074 `util/i386/pc/grub-mkrescue.in'. Remove
27075 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
27076 `include/grub/i386/pc/util/biosdisk.h' and
27077 `include/grub/powerpc/ieee1275/multiboot.h'.
27079 2007-08-02 Bean <bean123ch@gmail.com>
27081 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
27082 (ntfs_mod_SOURCES): New variable.
27083 (ntfs_mod_CFLAGS): Likewise.
27084 (ntfs_mod_LDFLAGS): Likewise.
27086 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
27087 (grub_probe_SOURCES): Likewise.
27088 (grub_emu_SOURCES): Likewise.
27090 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
27091 (grub_emu_SOURCES): Likewise.
27093 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
27094 (grub_emu_SOURCES): Likewise.
27096 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
27098 * fs/ntfs.c: New file.
27100 2007-08-02 Bean <bean123ch@gmail.com>
27102 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
27104 * file.h (grub_file): Likewise.
27106 * fshelp.h (grub_fshelp_read_file): Likewise.
27108 * util/i386/pc/grub-setup.c (setup): Likewise.
27109 (save_first_sector): Likewise.
27110 (save_blocklists): Likewise.
27112 * fs/affs.c (grub_affs_read_file): Likewise.
27114 * fs/ext2.c (grub_ext2_read_file): Likewise.
27116 * fs/fat.c (grub_fat_read_data): Likewise.
27118 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
27120 * fs/hfs.c (grub_hfs_read_file): Likewise.
27122 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
27124 * fs/jfs.c (grub_jfs_read_file): Likewise.
27126 * fs/minix.c (grub_minix_read_file): Likewise.
27128 * fs/sfs.c (grub_sfs_read_file): Likewise.
27130 * fs/ufs.c (grub_ufs_read_file): Likewise.
27132 * fs/xfs.c (grub_xfs_read_file): Likewise.
27134 * command/blocklist.c (read_blocklist): Likewise.
27135 (print_blocklist): Likewise.
27137 2007-08-02 Marco Gerards <marco@gnu.org>
27139 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
27142 * disk/host.c: New file.
27144 * util/hostfs.c: Likewise.
27146 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
27147 return `GRUB_ERR_BAD_FS'.
27148 * fs/sfs.c (grub_sfs_mount): Likewise.
27149 * fs/xfs.c (grub_xfs_mount): Likewise.
27151 * include/grub/disk.h (enum grub_disk_dev_id): Add
27152 `GRUB_DISK_DEVICE_HOST_ID'.
27154 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
27156 2007-07-24 Jerone Young <jerone@gmail.com>
27158 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
27159 modules for compilation.
27160 * conf/powerpc-ieee1275.rmk: Likewise.
27162 * include/multiboot.h: Move multiboot definitions to one file. Rename
27163 many definitions to not get grub specific.
27164 * include/multiboot2.h: Create header with multiboot 2 definitions.
27165 * include/grub/multiboot.h: Header for grub specific function
27166 prototypes and definitions.
27167 * include/grub/multiboot2.h: Likewise.
27168 * include/grub/multiboot_loader.h: Likewise.
27169 * include/grub/i386/pc/multiboot.h: Removed.
27170 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
27172 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
27173 and 2 to allow for one multiboot and module commands.
27174 * loader/multiboot2.c: Add multiboot2 functionality.
27175 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
27176 and definition names.
27177 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
27179 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
27180 ieee1275 specific multiboot2 code.
27182 * kern/i386/pc/startup.S: Change headers and definition names for
27183 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
27185 2007-07-22 Robert Millan <rmh@aybabtu.com>
27187 * geninitheader.sh: Process file specified in first parameter rather
27188 than hardcoding grub_modules_init.lst.
27189 * geninit.sh: Likewise. Also, construct header name dynamically rather
27190 than hardcoding grub_modules_init.h.
27192 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
27193 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
27194 grub_probe_init.[ch] and grub_setup_init.[ch].
27196 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
27197 grub_modules_init.h with grub_emu_init.h.
27198 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
27199 grub_probe_init.[ch] files.
27200 * conf/i386-efi.rmk: Likewise.
27201 * conf/i386-pc.rmk: Likewise.
27202 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
27203 grub_setup_init.[ch] files.
27205 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
27206 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
27207 to initialize modules rather than a list of hardcoded functions.
27208 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
27209 grub_init_all() to initialize modules rather than a list of hardcoded
27212 2007-07-22 Robert Millan <rmh@aybabtu.com>
27214 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
27215 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
27217 2007-07-22 Robert Millan <rmh@aybabtu.com>
27219 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
27220 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
27221 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
27222 flag when running on SmartFirmware.
27223 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
27224 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
27227 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
27228 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
27229 rather than decreasing it.
27231 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
27232 there's not enough space to do it, fail in the same way as when it
27233 can't be done because there are no partitions.
27235 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
27236 when nvsetenv failed.
27238 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
27240 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
27241 because this rule is automatically generated.
27242 (grub-mkrescue): Removed for the same reason as above.
27244 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
27246 Migrate to GNU General Public License Version 3.
27248 * COPYING: Replaced with the plain text version of GPLv3.
27250 * config.guess: Updated from gnulib.
27251 * config.sub: Likewise.
27253 * geninit.sh: Output a GPLv3 copyright notice.
27254 * geninitheader.sh: Likewise.
27255 * genmodsrc.sh: Likewise.
27256 * gensymlist.sh.in: Likewise.
27258 * boot/i386/pc/boot.S: Upgraded to GPLv3.
27259 * boot/i386/pc/diskboot.S: Likewise.
27260 * boot/i386/pc/pxeboot.S: Likewise.
27261 * commands/blocklist.c: Likewise.
27262 * commands/boot.c: Likewise.
27263 * commands/cat.c: Likewise.
27264 * commands/cmp.c: Likewise.
27265 * commands/configfile.c: Likewise.
27266 * commands/echo.c: Likewise.
27267 * commands/help.c: Likewise.
27268 * commands/ls.c: Likewise.
27269 * commands/search.c: Likewise.
27270 * commands/terminal.c: Likewise.
27271 * commands/test.c: Likewise.
27272 * commands/videotest.c: Likewise.
27273 * commands/i386/cpuid.c: Likewise.
27274 * commands/i386/pc/halt.c: Likewise.
27275 * commands/i386/pc/play.c: Likewise.
27276 * commands/i386/pc/reboot.c: Likewise.
27277 * commands/i386/pc/vbeinfo.c: Likewise.
27278 * commands/i386/pc/vbetest.c: Likewise.
27279 * commands/ieee1275/halt.c: Likewise.
27280 * commands/ieee1275/reboot.c: Likewise.
27281 * commands/ieee1275/suspend.c: Likewise.
27282 * disk/loopback.c: Likewise.
27283 * disk/lvm.c: Likewise.
27284 * disk/raid.c: Likewise.
27285 * disk/efi/efidisk.c: Likewise.
27286 * disk/i386/pc/biosdisk.c: Likewise.
27287 * disk/ieee1275/ofdisk.c: Likewise.
27288 * font/manager.c: Likewise.
27289 * fs/affs.c: Likewise.
27290 * fs/ext2.c: Likewise.
27291 * fs/fat.c: Likewise.
27292 * fs/fshelp.c: Likewise.
27293 * fs/hfs.c: Likewise.
27294 * fs/hfsplus.c: Likewise.
27295 * fs/iso9660.c: Likewise.
27296 * fs/jfs.c: Likewise.
27297 * fs/minix.c: Likewise.
27298 * fs/sfs.c: Likewise.
27299 * fs/ufs.c: Likewise.
27300 * fs/xfs.c: Likewise.
27301 * hello/hello.c: Likewise.
27302 * include/grub/acorn_filecore.h: Likewise.
27303 * include/grub/arg.h: Likewise.
27304 * include/grub/bitmap.h: Likewise.
27305 * include/grub/boot.h: Likewise.
27306 * include/grub/cache.h: Likewise.
27307 * include/grub/device.h: Likewise.
27308 * include/grub/disk.h: Likewise.
27309 * include/grub/dl.h: Likewise.
27310 * include/grub/elfload.h: Likewise.
27311 * include/grub/env.h: Likewise.
27312 * include/grub/err.h: Likewise.
27313 * include/grub/file.h: Likewise.
27314 * include/grub/font.h: Likewise.
27315 * include/grub/fs.h: Likewise.
27316 * include/grub/fshelp.h: Likewise.
27317 * include/grub/gzio.h: Likewise.
27318 * include/grub/hfs.h: Likewise.
27319 * include/grub/kernel.h: Likewise.
27320 * include/grub/loader.h: Likewise.
27321 * include/grub/lvm.h: Likewise.
27322 * include/grub/misc.h: Likewise.
27323 * include/grub/mm.h: Likewise.
27324 * include/grub/net.h: Likewise.
27325 * include/grub/normal.h: Likewise.
27326 * include/grub/parser.h: Likewise.
27327 * include/grub/partition.h: Likewise.
27328 * include/grub/pc_partition.h: Likewise.
27329 * include/grub/raid.h: Likewise.
27330 * include/grub/rescue.h: Likewise.
27331 * include/grub/script.h: Likewise.
27332 * include/grub/setjmp.h: Likewise.
27333 * include/grub/symbol.h: Likewise.
27334 * include/grub/term.h: Likewise.
27335 * include/grub/terminfo.h: Likewise.
27336 * include/grub/tparm.h: Likewise.
27337 * include/grub/types.h: Likewise.
27338 * include/grub/video.h: Likewise.
27339 * include/grub/efi/api.h: Likewise.
27340 * include/grub/efi/chainloader.h: Likewise.
27341 * include/grub/efi/console.h: Likewise.
27342 * include/grub/efi/console_control.h: Likewise.
27343 * include/grub/efi/disk.h: Likewise.
27344 * include/grub/efi/efi.h: Likewise.
27345 * include/grub/efi/pe32.h: Likewise.
27346 * include/grub/efi/time.h: Likewise.
27347 * include/grub/i386/linux.h: Likewise.
27348 * include/grub/i386/setjmp.h: Likewise.
27349 * include/grub/i386/types.h: Likewise.
27350 * include/grub/i386/efi/kernel.h: Likewise.
27351 * include/grub/i386/efi/loader.h: Likewise.
27352 * include/grub/i386/efi/time.h: Likewise.
27353 * include/grub/i386/pc/biosdisk.h: Likewise.
27354 * include/grub/i386/pc/boot.h: Likewise.
27355 * include/grub/i386/pc/chainloader.h: Likewise.
27356 * include/grub/i386/pc/console.h: Likewise.
27357 * include/grub/i386/pc/init.h: Likewise.
27358 * include/grub/i386/pc/kernel.h: Likewise.
27359 * include/grub/i386/pc/loader.h: Likewise.
27360 * include/grub/i386/pc/memory.h: Likewise.
27361 * include/grub/i386/pc/multiboot.h: Likewise.
27362 * include/grub/i386/pc/serial.h: Likewise.
27363 * include/grub/i386/pc/time.h: Likewise.
27364 * include/grub/i386/pc/vbe.h: Likewise.
27365 * include/grub/i386/pc/vbeblit.h: Likewise.
27366 * include/grub/i386/pc/vbefill.h: Likewise.
27367 * include/grub/i386/pc/vbeutil.h: Likewise.
27368 * include/grub/i386/pc/vga.h: Likewise.
27369 * include/grub/ieee1275/ieee1275.h: Likewise.
27370 * include/grub/ieee1275/ofdisk.h: Likewise.
27371 * include/grub/powerpc/libgcc.h: Likewise.
27372 * include/grub/powerpc/setjmp.h: Likewise.
27373 * include/grub/powerpc/types.h: Likewise.
27374 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
27375 * include/grub/powerpc/ieee1275/console.h: Likewise.
27376 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
27377 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
27378 * include/grub/powerpc/ieee1275/loader.h: Likewise.
27379 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
27380 * include/grub/powerpc/ieee1275/time.h: Likewise.
27381 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
27382 * include/grub/sparc64/libgcc.h: Likewise.
27383 * include/grub/sparc64/setjmp.h: Likewise.
27384 * include/grub/sparc64/types.h: Likewise.
27385 * include/grub/sparc64/ieee1275/console.h: Likewise.
27386 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
27387 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
27388 * include/grub/sparc64/ieee1275/time.h: Likewise.
27389 * include/grub/util/biosdisk.h: Likewise.
27390 * include/grub/util/getroot.h: Likewise.
27391 * include/grub/util/lvm.h: Likewise.
27392 * include/grub/util/misc.h: Likewise.
27393 * include/grub/util/raid.h: Likewise.
27394 * include/grub/util/resolve.h: Likewise.
27395 * io/gzio.c: Likewise.
27396 * kern/device.c: Likewise.
27397 * kern/disk.c: Likewise.
27398 * kern/dl.c: Likewise.
27399 * kern/elf.c: Likewise.
27400 * kern/env.c: Likewise.
27401 * kern/err.c: Likewise.
27402 * kern/file.c: Likewise.
27403 * kern/fs.c: Likewise.
27404 * kern/loader.c: Likewise.
27405 * kern/main.c: Likewise.
27406 * kern/misc.c: Likewise.
27407 * kern/mm.c: Likewise.
27408 * kern/parser.c: Likewise.
27409 * kern/partition.c: Likewise.
27410 * kern/rescue.c: Likewise.
27411 * kern/term.c: Likewise.
27412 * kern/efi/efi.c: Likewise.
27413 * kern/efi/init.c: Likewise.
27414 * kern/efi/mm.c: Likewise.
27415 * kern/i386/dl.c: Likewise.
27416 * kern/i386/efi/init.c: Likewise.
27417 * kern/i386/efi/startup.S: Likewise.
27418 * kern/i386/pc/init.c: Likewise.
27419 * kern/i386/pc/lzo1x.S: Likewise.
27420 * kern/i386/pc/startup.S: Likewise.
27421 * kern/ieee1275/ieee1275.c: Likewise.
27422 * kern/powerpc/cache.S: Likewise.
27423 * kern/powerpc/dl.c: Likewise.
27424 * kern/powerpc/ieee1275/cmain.c: Likewise.
27425 * kern/powerpc/ieee1275/crt0.S: Likewise.
27426 * kern/powerpc/ieee1275/init.c: Likewise.
27427 * kern/powerpc/ieee1275/openfw.c: Likewise.
27428 * kern/sparc64/cache.S: Likewise.
27429 * kern/sparc64/dl.c: Likewise.
27430 * kern/sparc64/ieee1275/init.c: Likewise.
27431 * kern/sparc64/ieee1275/openfw.c: Likewise.
27432 * loader/efi/chainloader.c: Likewise.
27433 * loader/efi/chainloader_normal.c: Likewise.
27434 * loader/i386/efi/linux.c: Likewise.
27435 * loader/i386/efi/linux_normal.c: Likewise.
27436 * loader/i386/pc/chainloader.c: Likewise.
27437 * loader/i386/pc/chainloader_normal.c: Likewise.
27438 * loader/i386/pc/linux.c: Likewise.
27439 * loader/i386/pc/linux_normal.c: Likewise.
27440 * loader/i386/pc/multiboot.c: Likewise.
27441 * loader/i386/pc/multiboot_normal.c: Likewise.
27442 * loader/powerpc/ieee1275/linux.c: Likewise.
27443 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
27444 * normal/arg.c: Likewise.
27445 * normal/cmdline.c: Likewise.
27446 * normal/command.c: Likewise.
27447 * normal/completion.c: Likewise.
27448 * normal/execute.c: Likewise.
27449 * normal/function.c: Likewise.
27450 * normal/lexer.c: Likewise.
27451 * normal/main.c: Likewise.
27452 * normal/menu.c: Likewise.
27453 * normal/menu_entry.c: Likewise.
27454 * normal/misc.c: Likewise.
27455 * normal/parser.y: Likewise.
27456 * normal/script.c: Likewise.
27457 * normal/i386/setjmp.S: Likewise.
27458 * normal/powerpc/setjmp.S: Likewise.
27459 * normal/sparc64/setjmp.S: Likewise.
27460 * partmap/acorn.c: Likewise.
27461 * partmap/amiga.c: Likewise.
27462 * partmap/apple.c: Likewise.
27463 * partmap/gpt.c: Likewise.
27464 * partmap/pc.c: Likewise.
27465 * partmap/sun.c: Likewise.
27466 * term/gfxterm.c: Likewise.
27467 * term/terminfo.c: Likewise.
27468 * term/efi/console.c: Likewise.
27469 * term/i386/pc/console.c: Likewise.
27470 * term/i386/pc/serial.c: Likewise.
27471 * term/i386/pc/vesafb.c: Likewise.
27472 * term/i386/pc/vga.c: Likewise.
27473 * term/ieee1275/ofconsole.c: Likewise.
27474 * util/biosdisk.c: Likewise.
27475 * util/console.c: Likewise.
27476 * util/genmoddep.c: Likewise.
27477 * util/getroot.c: Likewise.
27478 * util/grub-emu.c: Likewise.
27479 * util/grub-mkdevicemap.c: Likewise.
27480 * util/grub-probe.c: Likewise.
27481 * util/lvm.c: Likewise.
27482 * util/misc.c: Likewise.
27483 * util/raid.c: Likewise.
27484 * util/resolve.c: Likewise.
27485 * util/update-grub.in: Likewise.
27486 * util/update-grub_lib.in: Likewise.
27487 * util/grub.d/00_header.in: Likewise.
27488 * util/grub.d/10_hurd.in: Likewise.
27489 * util/grub.d/10_linux.in: Likewise.
27490 * util/i386/efi/grub-install.in: Likewise.
27491 * util/i386/efi/grub-mkimage.c: Likewise.
27492 * util/i386/pc/grub-install.in: Likewise.
27493 * util/i386/pc/grub-mkimage.c: Likewise.
27494 * util/i386/pc/grub-mkrescue.in: Likewise.
27495 * util/i386/pc/grub-setup.c: Likewise.
27496 * util/i386/pc/misc.c: Likewise.
27497 * util/powerpc/ieee1275/grub-install.in: Likewise.
27498 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
27499 * util/powerpc/ieee1275/misc.c: Likewise.
27500 * video/bitmap.c: Likewise.
27501 * video/video.c: Likewise.
27502 * video/i386/pc/vbe.c: Likewise.
27503 * video/i386/pc/vbeblit.c: Likewise.
27504 * video/i386/pc/vbefill.c: Likewise.
27505 * video/i386/pc/vbeutil.c: Likewise.
27506 * video/readers/tga.c: Likewise.
27508 2007-07-02 Robert Millan <rmh@aybabtu.com>
27510 * conf/i386-efi.rmk: Replace obsolete reference to
27511 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
27512 with util/getroot.c.
27513 * conf/powerpc-ieee1275.rmk: Likewise.
27514 * conf/sparc64-ieee1275.rmk: Likewise.
27516 * util/grub-emu.c (main): Fix unchecked pointer handling.
27518 2007-07-02 Robert Millan <rmh@aybabtu.com>
27520 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
27521 invocation to fail, in order to support partition-less media.
27523 * util/i386/pc/grub-install.in: Likewise.
27525 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
27526 which fs or partmap modules are needed (akin to its sister scripts).
27528 Also use grub-probe to get rid of unportable /proc/mounts check.
27530 Print the same informational message that the other scripts do, before
27533 2007-06-23 Robert Millan <rmh@aybabtu.com>
27535 * util/update-grub_lib.in (font_path): New function. Determine whether
27536 a font file can be found and, if so, echo the GRUB path to it.
27538 * util/update-grub.in: Handle multiple terminals depending on user
27539 input, platform availability and font file presence. Propagate
27540 variables of our findings to /etc/grub.d/ children.
27542 * util/grub.d/00_header.in: Handle multiple terminals, based on
27543 environment setup by update-grub.
27545 2007-06-23 Robert Millan <rmh@aybabtu.com>
27547 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
27549 2007-06-21 Robert Millan <rmh@aybabtu.com>
27551 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
27552 indicate end of data section in kernel image.
27553 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
27554 GRUB_KERNEL_MACHINE_DATA_END.
27556 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
27558 * kern/i386/efi/startup.S: Likewise.
27560 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
27561 during image generation. Implement --prefix option to override this
27563 * util/i386/efi/grub-mkimage.c: Likewise.
27565 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
27566 code to make path relative to its root into a separate function.
27568 * util/i386/pc/grub-install.in: Use newly provided
27569 make_system_path_relative_to_its_root() to convert ${grubdir}, then
27570 pass the result to grub-install --prefix.
27572 2007-06-13 Robert Millan <rmh@aybabtu.com>
27574 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
27575 DEFAULT_DEVICE_MAP.
27576 * util/grub-emu.c: Use above definitions from misc.h instead of
27578 * util/grub-mkdevicemap.c: Likewise.
27579 * util/i386/pc/grub-setup.c: Likewise.
27580 * util/grub-probe.c: Likewise.
27581 (probe): Abort with grub_util_error() when either
27582 grub_guess_root_device or grub_util_get_grub_dev fails.
27584 2007-06-12 Robert Millan <rmh@aybabtu.com>
27586 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
27587 "pager" assignment.
27588 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
27590 * util/grub-probe.c (probe): Likewise for "drive_name".
27592 2007-06-11 Robert Millan <rmh@aybabtu.com>
27594 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
27595 not just the cdrom one.
27597 2007-06-11 Robert Millan <rmh@aybabtu.com>
27599 * util/i386/pc/grub-mkrescue.in: Add "set -e".
27600 Add --pkglibdir=DIR option to override pkglibdir.
27601 Mention --image-type=TYPE in help output.
27602 Fix --grub-mkimage (it was a no-op).
27603 Abort gracefully when no parameter is given.
27605 2007-06-11 Robert Millan <rmh@aybabtu.com>
27607 * util/i386/pc/grub-mkrescue.in: New file.
27608 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
27609 * Makefile.in: Handle bin_SCRIPTS.
27611 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
27613 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
27614 list of video modes.
27616 2007-06-06 Robert Millan <rmh@aybabtu.com>
27618 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
27619 file doesn't exist, or if it is in a filesystem grub can't read.
27621 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
27622 not abort if GRUB_DRIVE could not be defined. Rearrange generated
27623 header comment to fit in 80 columns when the variables are resolved.
27625 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
27626 could be identified by update-grub. Remove redundant check for
27627 unifont.pff existence (since convert_system_path_to_grub_path now
27630 2007-06-04 Robert Millan <rmh@aybabtu.com>
27632 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
27634 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
27636 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
27638 2007-06-04 Robert Millan <rmh@aybabtu.com>
27640 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
27642 * include/grub/partition.h: Declare grub_apple_partition_map_init and
27643 grub_apple_partition_map_fini.
27646 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
27647 to access >2 TiB disks).
27649 Print disk->total_sectors with %llu instead of %lu, since this
27650 variable is always 64-bit (prevents wrong disk size from being displayed
27651 on either >2 TiB disk or big-endian CPU).
27653 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
27654 into a generic case that supports all (sane) partition maps.
27656 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
27659 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
27660 and grub_apple_partition_map_fini() after that.
27662 2007-06-01 Robert Millan <rmh@aybabtu.com>
27664 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
27666 * util/grub.d/00_header.in: Only enable gfxterm when
27667 convert_system_path_to_grub_path() succeeds.
27669 2007-05-20 Robert Millan <rmh@aybabtu.com>
27671 * util/update-grub_lib.in: New file.
27672 * DISTLIST: Add update-grub_lib.in.
27673 * conf/common.rmk: Generate update-grub_lib and install it in
27675 * Makefile.in: Add install routine for $(lib_DATA).
27677 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
27678 function provided by update-grub_lib to support arbitrary paths of
27680 * util/update-grub.in: Use convert_system_path_to_grub_path() to
27681 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
27683 2007-05-19 Robert Millan <rmh@aybabtu.com>
27685 * commands/i386/cpuid.c: New module.
27686 * DISTLIST: Add it.
27687 * conf/i386-efi.rmk: Enable cpuid.mod.
27688 * conf/i386-pc.rmk: Likewise.
27690 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
27692 * kern/disk.c (grub_disk_read): Check return value of
27695 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
27697 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
27699 * disk/raid.c (grub_raid_open): Likewise.
27701 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
27703 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
27704 stack instead of on the heap.
27706 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
27707 before doing a read on it.
27709 * configure.ac: Only use -fno-stack-protector for the target
27712 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
27714 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
27715 __attribute_ ((unused)) to mode_type argument.
27717 * util/getroot.c (grub_guess_root_device): Fix #endif.
27719 * kern/misc.c (memcmp): Fix prototype.
27721 * include/grub/partition.h [GRUB_UTIL]
27722 (grub_gpt_partition_map_init): Add prototype.
27723 (grub_gpt_partition_map_fini): Likewise.
27725 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
27726 at the right place.
27728 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
27729 (grub_fat_read_data): Likewise.
27730 (grub_fat_find_dir): Likewise.
27732 * font/manager.c (find_glyph): Make table a const.
27733 (grub_font_get_glyph): Remove bitmap from if statement.
27735 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
27737 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
27738 code, first search for device in /dev/mapper, then in /dev.
27739 (grub_util_get_grub_dev): New function.
27740 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
27742 * util/grub-probe.c (probe): Remove check for RAID, call
27743 grub_util_get_grub_dev() instead of
27744 grub_util_biosdisk_get_grub_dev().
27745 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
27746 grub_util_biosdisk_get_grub_dev().
27747 * util/i386/pc/grub-setup.c (main): Likewise.
27749 2007-05-16 Robert Millan <rmh@aybabtu.com>
27751 * DISTLIST: Update for the latest changes.
27752 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
27753 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
27754 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
27755 grub/util/biosdisk.h.
27756 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
27757 grub/util/biosdisk.h.
27759 2007-05-16 Robert Millan <rmh@aybabtu.com>
27761 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
27763 2007-05-16 Robert Millan <rmh@aybabtu.com>
27765 * util/i386/efi/grub-install.in: New.
27766 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
27767 newly added grub-install.
27768 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
27770 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
27771 grub/util/biosdisk.h.
27772 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
27773 grub/util/biosdisk.h.
27775 2007-05-16 Robert Millan <rmh@aybabtu.com>
27777 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
27778 * include/grub/util/biosdisk.h: ... here.
27779 * util/i386/pc/biosdisk.c: Moved to ...
27780 * util/biosdisk.c: ... here.
27781 * util/i386/pc/getroot.c: Moved to ...
27782 * util/getroot.c: ... here.
27783 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
27784 * util/grub-mkdevicemap.c: ... here.
27785 * util/i386/pc/grub-probe.c: Moved to ...
27786 * util/grub-probe.c: ... here.
27788 2007-05-15 Robert Millan <rmh@aybabtu.com>
27790 * util/update-grub.in: Remove duplicated line in grub.cfg header
27793 2007-05-13 Robert Millan <rmh@aybabtu.com>
27795 * util/update-grub.in: Fix a few assumptions about the devices holding
27796 /, /boot and /boot/grub being the same.
27797 * util/grub.d/00_header.in: Likewise.
27798 * util/grub.d/10_hurd.in: Likewise.
27799 * util/grub.d/10_linux.in: Likewise.
27801 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
27802 patterns. Use that to define the `.old' suffix as older than `'.
27804 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
27806 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
27807 the grub.cfg header message.
27809 2007-05-11 Robert Millan <rmh@aybabtu.com>
27811 * util/update-grub.in: Create device.map if it doesn't already exist,
27812 before attempting to run grub-probe.
27813 Check for grub-probe and grub-mkdevicemap with the same code
27814 grub-install is using.
27817 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
27819 * Makefile.in: Add the datarootdir autoconf variable.
27821 2007-05-09 Robert Millan <rmh@aybabtu.com>
27823 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
27824 fail gracefully if dev->disk->partition == NULL.
27826 2007-05-07 Robert Millan <rmh@aybabtu.com>
27828 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
27829 determine partition map module.
27830 * util/i386/pc/grub-install.in: Use this feature to decide which
27831 partition module to load, instead of hardcoding pc and gpt.
27833 2007-05-07 Robert Millan <rmh@aybabtu.com>
27835 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
27836 source directory differs from build directory.
27838 2007-05-05 Robert Millan <rmh@aybabtu.com>
27840 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
27843 2007-05-05 Robert Millan <rmh@aybabtu.com>
27845 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
27847 2007-05-05 Robert Millan <rmh@aybabtu.com>
27849 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
27850 command-line arguments via ${GRUB_CMDLINE_LINUX}.
27852 2007-05-05 Robert Millan <rmh@aybabtu.com>
27854 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
27855 (grub_probe_SOURCES): Likewise.
27856 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
27857 GPT and initialize dos_part and bsd_part accordingly.
27858 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
27860 (main): Activate gpt module for use during partition identification,
27861 and deactivate it afterwards.
27862 * util/i386/pc/grub-install.in: Add gpt module to core.img.
27863 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
27864 partition identification, and deactivate it afterwards.
27866 2007-05-05 Robert Millan <rmh@aybabtu.com>
27868 * term/i386/pc/console.c (grub_console_fini): Call
27869 grub_term_set_current() before grub_term_unregister().
27871 2007-05-04 Robert Millan <rmh@aybabtu.com>
27873 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
27874 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
27875 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
27876 and update-grub_DATA.
27877 * conf/common.rmk: Build and install update-grub components.
27878 * conf/common.mk: Regenerate.
27879 * util/update-grub.in: New. Core of update-grub.
27880 * util/grub.d/00_header.in: New. Generates grub.cfg header.
27881 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
27882 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
27883 * util/grub.d/README: New. Document grub.d directory layout.
27885 2007-05-01 Robert Millan <rmh@aybabtu.com>
27887 * util/grub-emu.c: Move initialization functions
27888 grub_util_biosdisk_init() and grub_init_all() before
27889 grub_util_biosdisk_get_grub_dev(), which relies on them.
27891 2007-04-19 Robert Millan <rmh@aybabtu.com>
27893 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
27896 2007-04-18 Jerone Young <jerone@gmail.com>
27898 * kernel/elf.c: Add missing parenthesis for conditional statement
27901 2007-04-10 Jerone Young <jerone@gmail.com>
27903 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
27904 continue on and look for device node with real device name.
27906 2007-04-10 Jerone Young <jerone@gmail.com>
27908 * configure.ac: Add argument for autoconf to use transformation
27910 * Makefile.in: Add autoconf package transformation code.
27911 * util/i386/pc/grub-install.in: Likewise.
27912 * util/powerpc/ieee1275/grub-install.in: Likewise.
27914 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
27916 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
27917 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
27918 (EXT2_REVISION): Likewise.
27919 (EXT2_INODE_SIZE): Likewise.
27920 (struct grub_ext2_block_group): Added a missing member
27922 (grub_ext2_read_inode): Divide by the inode size in a superblock
27923 instead of 128 to obtain INODES_PER_BLOCK.
27924 Use the macro EXT2_INODE_SIZE instead of directly using
27925 SBLOCK->INODE_SIZE.
27927 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
27929 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
27930 superblock instead of the structure size to compute an
27931 offset. This fixes the problem that GRUB could not read a
27932 filesystem when inode size is different from 128-byte.
27934 2007-03-05 Marco Gerards <marco@gnu.org>
27936 * normal/main.c (read_config_file): When "menu" is not set, create
27937 an initial context.
27939 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
27941 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
27942 (HEAP_LIMIT): New macro.
27943 (grub_claim_heap): Claim memory up to `heaplimit'.
27945 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
27947 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
27948 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
27949 (_start): Likewise.
27950 (grub_arch_modules_addr): Return address after `_end'.
27951 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
27952 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
27953 (add_segments): Calculate `_end' from phdr size and location.
27954 (ALIGN_UP): Moved to ...
27955 * include/grub/misc.h: here.
27956 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
27958 (GRUB_IEEE1275_MODULE_BASE): Removed.
27960 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27962 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
27965 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27967 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
27969 (grub_elf64_load_hook_t): Likewise.
27970 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
27973 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
27975 * kern/mm.c: Update copyright.
27976 (grub_mm_debug): Correct syntax error.
27977 (grub_mm_dump_free): New function.
27978 (grub_debug_free): Call `grub_free'.
27979 * include/grub/mm.h: Update copyright.
27980 (grub_mm_dump_free): Add declaration.
27982 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
27984 * include/grub/ieee1275/ieee1275.h: Update copyright.
27985 * kern/powerpc/ieee1275/init.c: Likewise.
27986 * kern/powerpc/ieee1275/openfw.c: Likewise.
27988 * loader/powerpc/ieee1275/linux.c: Likewise.
27989 * include/grub/elfload.h: Likewise.
27990 * kern/elf.c: Likewise.
27991 (grub_elf32_load): Pass `base' and `size' parameters. Update all
27993 (grub_elf64_load): Likewise.
27994 (grub_elf32_load_segment): Move to a nested function.
27995 (grub_elf64_load_segment): Likewise.
27997 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
27999 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
28001 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
28002 (grub_heap_len): Likewise.
28003 (HEAP_SIZE): New macro.
28004 (grub_claim_heap): New function.
28005 (grub_machine_init): Don't claim heap directly. Call
28007 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
28008 (grub_available_iterate): New function.
28010 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
28012 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
28013 * configure.ac: Use it for testing the HOST and TARGET compilers.
28015 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
28017 * Makefile.in (enable_grub_emu): New variable.
28018 * configure.ac (--enable-grub-emu): New option.
28019 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
28020 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
28021 * conf/i386-pc.rmk: Likewise.
28022 * conf/powerpc-ieee1275.rmk: Likewise.
28023 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
28025 2006-12-12 Marco Gerards <marco@gnu.org>
28027 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
28029 * kern/env.c (grub_env_unset): Don't free the member `value' when
28030 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
28033 * normal/main.c (current_menu): Removed.
28034 (free_menu): Unset the `menu' environment variable.
28035 (grub_normal_menu_addentry): Make use of the environment variable
28036 `menu', instead of using the global `current_menu'. Allocate
28037 memory for the sourcecode of this entry.
28038 (read_config_file): New argument `nested', changed all callers.
28039 Only in the case of a new context, initialize a new menu. Set the
28040 `menu' environment variable.
28041 (grub_normal_execute): Don't set and unset the environment
28042 variable `menu' here anymore. Only free the menu when leaving the
28045 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
28048 2006-12-11 Marco Gerards <marco@gnu.org>
28050 * normal/menu_entry.c (run): Fix off by one bug so the last line
28051 is executed. Move the loader check to outside the loop.
28053 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
28055 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
28057 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
28059 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
28060 the number of sectors. Reported by Andrey Shuvikov
28061 <mr_hyro@yahoo.com>.
28063 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
28065 * kern/disk.c (grub_disk_read): When there is a read error, always
28066 try to read only the necessary data.
28068 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
28070 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
28072 [GRUB_UTIL] (grub_raid_fini): Likewise.
28073 [GRUB_UTIL] (grub_lvm_init): Likewise.
28074 [GRUB_UTIL] (grub_lvm_fini): Likewise.
28075 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
28076 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
28077 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
28078 and grub_raid_fini().
28080 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
28082 * include/grub/types.h (__unused): Rename to UNUSED.
28083 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
28084 (grub_elf64_size): Likewise.
28086 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
28088 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
28089 grub_error_push and grub_error_pop in the error-handling path.
28090 (grub_elf32_load_segment): Only call grub_file_read with non-zero
28093 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
28095 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
28096 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28097 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28098 (kernel_elf_SOURCES): Likewise.
28099 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
28100 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
28101 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
28102 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
28103 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
28104 (elf_mod_SOURCES): New variable.
28105 (elf_mod_CFLAGS): Likewise.
28106 (elf_mod_LDFLAGS): Likewise.
28107 * include/grub/types.h (__unused): New macro.
28108 * include/grub/elfload.h: New file.
28109 * kern/elf.c: Likewise.
28110 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
28111 (ELF32_LOADMASK): New macro.
28112 (ELF64_LOADMASK): Likewise.
28113 (vmlinux): Removed.
28114 (grub_linux_load32): New function.
28115 (grub_linux_load64): Likewise.
28116 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
28117 Use grub_elf_t instead of grub_file_t.
28119 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
28121 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
28122 `catch_result' to struct set_color_args.
28124 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
28126 * normal/menu.c: Include grub/script.h.
28127 * normal/menu_entry.c: Likewise.
28128 * include/grub/normal.h: Do not include grub/script.h.
28130 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
28132 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
28134 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
28136 * kern/disk.c (grub_disk_open): Print debug messages when opening a
28138 (grub_disk_close): Print debug messages when closing a disk.
28139 (grub_disk_read): Print debug messages when disk read fails.
28140 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
28142 * kern/partition.c: Include misc.h.
28143 (grub_partition_iterate): Print debug messages when detecting
28146 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
28148 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
28150 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
28152 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
28154 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
28155 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
28157 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
28159 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
28160 instead of sizeof(lv). Patch by Michael Guntsche.
28162 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
28164 * disk/lvm.c: Rename VGS to VG_LIST.
28165 (grub_lvm_iterate): Change VGS->LV to VG-LV.
28166 (grub_lvm_open): Likewise.
28167 Thanks to Michael Guntsche for finding this bug.
28169 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
28171 * configure.ac (AC_INIT): Bumped to 1.95.
28173 2006-10-14 Robert Millan <rmh@aybabtu.com>
28175 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
28176 with "/dev/.static/dev/md".
28178 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
28180 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
28181 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
28182 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
28183 DRIVE_NAME are always freed.
28185 * util/i386/pc/biosdisk.c (make_device_name): Add one into
28186 DOS_PART, as a DOS partition is counted from one instead of zero
28187 now. Reported by Robert Millan.
28189 2006-10-14 Robert Millan <rmh@aybabtu.com>
28191 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
28192 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
28193 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
28194 string returned by grub_guess_root_device.
28195 * util/i386/pc/grub-setup.c: Likewise.
28196 * util/i386/pc/grub-probefs.c: Likewise.
28198 * util/i386/pc/grub-probefs.c: Rename to ...
28199 * util/i386/pc/grub-probe.c: ... this.
28200 * DISTLIST: Remove grub-probefs, add grub-probe.
28201 * conf/i386-efi.rmk: Likewise.
28202 * conf/i386-pc.rmk: Likewise.
28203 * util/i386/pc/grub-install.in: Likewise.
28205 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
28206 choose which information we want to print.
28208 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
28210 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
28211 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
28212 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
28213 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
28214 video/readers/tga.c and video/i386/pc/vbeutil.c.
28216 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
28218 Added support for RAID and LVM.
28220 * disk/lvm.c: New file.
28221 * disk/raid.c: Likewise.
28222 * include/grub/lvm.h: Likewise.
28223 * include/grub/raid.h: Likewise.
28224 * include/grub/util/lvm.h: Likewise.
28225 * include/grub/util/raid.h: Likewise.
28226 * util/lvm.c: Likewise.
28227 * util/raid.c: Likewise.
28229 * include/grub/disk.h (grub_disk_dev_id): Add
28230 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
28231 (grub_disk_get_size): New prototype.
28232 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
28233 returns a partition.
28234 (grub_disk_get_size): New function.
28236 * kern/i386/pc/init.c (make_install_device): Copy the prefix
28237 verbatim if grub_install_dos_part is -2.
28239 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
28242 * util/i386/pc/grub-setup.c (setup): New argument
28243 MUST_EMBED. Force embedding of GRUB when the argument is
28244 true. Close FILE before returning.
28245 (main): Add support for RAID and LVM.
28247 * conf/common.rmk: Add RAID and LVM modules.
28248 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
28250 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
28252 * kern/misc.c (grub_strstr): New function.
28253 * include/grub/misc.h (grub_strstr): New prototype.
28255 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
28257 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
28259 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
28261 * kern/misc.c (grub_strtoull): Guess the base only if not
28264 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
28266 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
28269 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
28271 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
28273 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
28274 Remove `flags' argument. All callers changed.
28275 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
28276 (IEEE1275_IHANDLE_INVALID): New variable.
28277 (IEEE1275_CELL_INVALID): New variable.
28278 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
28279 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
28280 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
28281 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
28282 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
28283 codes from Open Firmware. All callers updated.
28284 (grub_ieee1275_next_property): Directly return Open Firmware return
28286 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
28287 Standardize error checking from `grub_ieee1275_get_property'.
28288 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
28289 `devalias' to `aliases'. Correct comments. Consolidate error paths.
28291 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
28293 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
28294 `instance_to_package_args' to `instance_to_path_args'.
28296 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
28297 `grub_ieee1275_chosen'.
28299 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
28300 `grub_ieee1275_interpret'.
28302 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
28304 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
28306 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
28308 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
28309 (__cmpdi): Likewise.
28311 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
28312 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
28315 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
28317 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
28318 to type `grub_ssize_t'.
28319 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
28321 2006-09-22 Marco Gerards <marco@gnu.org>
28323 * normal/script.c (grub_script_create_cmdmenu): Skip leading
28326 2006-09-22 Marco Gerards <marco@gnu.org>
28328 * commands/echo.c: New file.
28330 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
28332 * conf/common.rmk (echo_mod_SOURCES): New variable.
28333 (echo_mod_CFLAGS): Likewise.
28334 (echo_mod_LDFLAGS): Likewise.
28336 2006-09-22 Marco Gerards <marco@gnu.org>
28338 * normal/main.c (get_line): Malloc memory instead of using
28339 preallocated memory. Removed the arguments `cmdline' and
28340 `max_len'. Updated all callers.
28342 2006-09-22 Marco Gerards <marco@gnu.org>
28344 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
28345 (normal_mod_DEPENDENCIES): Likewise.
28347 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
28348 (normal_mod_DEPENDENCIES): Likewise.
28350 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
28352 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
28354 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
28356 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
28357 (normal_mod_DEPENDENCIES): Likewise.
28358 * conf/i386-pc.mk: Regenerate.
28359 * conf/i386-efi.mk: Likewise
28360 * conf/common.mk: Likewise.
28361 * conf/powerpc-ieee1275.mk: Likewise.
28362 * conf/sparc64-ieee1275.mk: Likewise.
28364 2006-09-22 Robert Millan <rmh@aybabtu.com>
28366 Sync with i386 version.
28367 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
28368 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
28370 2006-09-21 Robert Millan <rmh@aybabtu.com>
28372 Import from GRUB Legacy (lib/device.c):
28373 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
28374 (init_device_map) [__linux__]: Add support for I2O devices.
28376 2006-09-14 Marco Gerards <marco@gnu.org>
28378 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
28381 2006-09-14 Robert Millan <rmh@aybabtu.com>
28383 * util/i386/pc/grub-install.in: Skip menu.lst when removing
28386 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
28388 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
28389 before adding it to device.map.
28391 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
28393 * genmk.rb: Let GCC generate dependencies the first time it
28394 compiles a file; using the -MD option.
28395 * conf/common.mk: Regenerate.
28396 * conf/i386-pc.mk: Likewise.
28397 * conf/i386-efi.mk: Likewise.
28398 * conf/powerpc-ieee1275.mk: Likewise.
28399 * conf/sparc64-ieee1275.mk: Likewise.
28401 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
28403 Move the prototypes of grub_setjmp and grub_longjmp to
28404 cpu/setjmp.h, so that each architecture may specify different
28407 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
28408 (grub_longjmp): Likewise.
28409 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
28410 (grub_longjmp): Likewise.
28411 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
28412 (grub_longjmp): Likewise.
28414 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
28415 [!GRUB_UTIL] (grub_longjmp): Removed.
28417 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
28419 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
28420 "color!" method does not return any value.
28422 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
28424 * include/grub/bitmap.h: New file.
28426 * include/grub/i386/pc/vbeutil.h: Likewise.
28428 * video/bitmap.c: Likewise.
28430 * video/readers/tga.c: Likewise.
28432 * video/i386/pc/vbeutil.c: Likewise.
28434 * commands/videotest.c: Code cleanup and updated to reflect to new
28437 * term/gfxterm.c: Likewise.
28439 * video/video.c: Likewise.
28441 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
28442 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
28443 (bitmap_mod_SOURCES): New entry.
28444 (bitmap_mod_CFLAGS): Likewise.
28445 (bitmap_mod_LDFLAGS): Likewise.
28446 (tga_mod_SOURCES): Likewise.
28447 (tga_mod_CFLAGS): Likewise.
28448 (tga_mod_LDFLAGS): Likewise.
28450 * include/grub/video.h (grub_video_blit_operators): New enum type.
28451 (grub_video_render_target): Changed as forward declaration and moved
28452 actual definition to be video driver specific.
28453 (grub_video_adapter.blit_bitmap): Added blitting operator.
28454 (grub_video_adapter.blit_render_target): Likewise.
28455 (grub_video_blit_bitmap): Likewise.
28456 (grub_video_blit_render_target): Likewise.
28458 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
28459 driver specific render target definition.
28460 (grub_video_vbe_map_rgba): Added driver internal helper.
28461 (grub_video_vbe_unmap_color): Updated to use
28462 grub_video_i386_vbeblit_info.
28463 (grub_video_vbe_get_video_ptr): Likewise.
28465 * include/grub/i386/pc/vbeblit.h
28466 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
28467 grub_video_i386_vbeblit_info.
28468 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
28469 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
28470 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
28471 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
28472 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
28473 (grub_video_i386_vbeblit_index_index): Likewise.
28474 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
28475 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
28476 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
28477 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
28479 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
28482 * video/i386/pc/vbeblit.c: Updated to reflect changes on
28483 include/grub/i386/pc/vbeblit.h.
28485 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
28486 Updated to use grub_video_i386_vbeblit_info.
28487 (grub_video_i386_vbefill_R8G8B8): Likewise.
28488 (grub_video_i386_vbefill_index): Likewise.
28489 (grub_video_i386_vbefill): Added generic filler.
28491 * video/i386/pc/vbefill.c: Updated to reflect changes on
28492 include/grub/i386/pc/vbefill.h.
28494 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
28495 grub_video_i386_vbeblit_info.
28496 (grub_video_vbe_unmap_color): Likewise.
28497 (grub_video_vbe_blit_glyph): Likewise.
28498 (grub_video_vbe_scroll): Likewise.
28499 (grub_video_vbe_draw_pixel): Removed function.
28500 (grub_video_vbe_get_pixel): Likewise.
28501 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
28502 updated code to use it.
28503 (common_blitter): Added common blitter for render target and bitmap.
28504 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
28505 (grub_video_vbe_blit_render_target): Likewise.
28507 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
28509 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
28510 is in text mode if there is no console control protocol instance
28513 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
28515 * include/grub/video.h: Code cleanup.
28517 * include/grub/i386/pc/vbe.h: Likewise.
28519 * video/i386/pc/vbe.c: Likewise.
28521 * video/i386/pc/vbeblit.c: Likewise.
28523 * video/i386/pc/vbefill.c: Likewise.
28525 * video/video.c: Likewise. Also added more comments.
28527 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
28529 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
28530 (struct grub_biosdisk_dap): Likewise.
28532 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
28533 linkage settings for all functions.
28535 2006-07-12 Marco Gerards <marco@gnu.org>
28537 * configure.ac (--enable-mm-debug): Fix typo.
28539 * genkernsyms.sh.in: Use proper quoting for `CC'.
28541 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
28543 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
28544 (normal_mod_ASFLAGS): Remove "-m32".
28546 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
28548 * util/misc.c: Include config.h.
28549 [!HAVE_MEMALIGN]: Do not include malloc.h.
28550 (grub_memalign): Use posix_memalign, if present. Then, use
28551 memalign, if present. Otherwise, emit an error.
28553 * util/grub-emu.c: Do not include malloc.h.
28555 * include/grub/util/misc.h: Include unistd.h. This is required for
28556 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
28557 D. Eades III <hde@foobar-qux.org>.
28559 * configure.ac (AC_GNU_SOURCE): Added.
28560 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
28563 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
28565 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
28566 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
28568 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
28570 * include/grub/types.h (grub_host_addr_t): Rename to
28571 grub_target_addr_t.
28572 (grub_host_off_t): Rename to grub_target_off_t.
28573 (grub_host_size_t): Rename to grub_target_size_t.
28574 (grub_host_ssize_t): Rename to grub_target_ssize_t.
28575 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
28577 * include/grub/kernel.h (struct grub_module_header): Change type
28578 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
28579 (grub_module_info): Likewise.
28581 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
28583 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
28584 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
28585 Velazquez <jesus.velazquez@gmail.com>.
28587 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
28589 Count partitions from 1 instead of 0 in the string representation
28590 of partitions. Still use 0-based internally.
28592 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
28593 (sun_partition_map_iterate): Use grub_partition_t instead of
28594 struct grub_partition *. Cast DESC->START_CYLINDER to
28595 grub_uint64_t after converting the endian.
28596 (sun_partition_map_probe): Subtract 1 for PARTNUM.
28597 (sun_partition_map_get_name): Add 1 to P->INDEX.
28599 * partmap/pc.c (grub_partition_parse): Subtract 1 for
28601 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
28603 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
28604 zero instead of one.
28605 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
28606 (gpt_partition_map_get_name): Add 1 into P->INDEX.
28608 * partmap/apple.c (apple_partition_map_iterate): Change the type
28609 of POS to unsigned.
28610 (apple_partition_map_probe): Subtract 1 for PARTNUM.
28611 (apple_partition_map_get_name): Add 1 into P->INDEX.
28613 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
28614 of POS to unsigned.
28615 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
28616 calculate the offset of a partition.
28617 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
28618 (amiga_partition_map_get_name): Add 1 into P->INDEX.
28620 * partmap/acorn.c (acorn_partition_map_find): Change the type of
28621 SECTOR to grub_disk_addr_t.
28622 (acorn_partition_map_iterate): Likewise.
28623 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
28624 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
28626 (acorn_partition_map_get_name): Add 1 into P->INDEX.
28628 * kern/i386/pc/init.c (make_install_device): Add 1 into
28629 GRUB_INSTALL_DOS_PART.
28631 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
28634 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
28636 Clean up the code to support 64-bit addressing in disks and
28637 files. This change is not enough for filesystems yet.
28639 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
28640 type of "start" to grub_uint64_t.
28641 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
28642 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
28643 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
28646 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
28647 to grub_disk_addr_t.
28649 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
28652 * partmap/pc.c (pc_partition_map_iterate): Likewise.
28654 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
28657 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
28659 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
28661 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
28663 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
28664 to grub_off_t, to detect an error from grub_file_seek.
28665 (grub_multiboot_load_elf32): Likewise.
28667 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
28668 maximum unsigned long value when an overflow is detected.
28669 (grub_strtoull): New function.
28670 (grub_divmod64): Likewise.
28671 (grub_lltoa): use grub_divmod64.
28673 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
28675 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
28676 the pointer to next character. Use grub_strtoull instead of
28678 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
28679 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
28682 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
28683 return value is signed.
28684 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
28685 test if OFFSET is less than zero, as OFFSET is unsigned now.
28687 * kern/disk.c (struct grub_disk_cache): Change the type of
28688 "sector" to grub_disk_addr_t.
28689 (grub_disk_cache_get_index): Change the type of SECTOR to
28690 grub_disk_addr_t. Calculate the hash with SECTOR casted to
28691 unsigned after shifting.
28692 (grub_disk_cache_invalidate): Change the type of SECTOR to
28694 (grub_disk_cache_unlock): Likewise.
28695 (grub_disk_cache_store): Likewise.
28696 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
28697 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
28698 grub_disk_addr_t and grub_uint64_t, respectively.
28699 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
28700 body, as the value of OFFSET is tweaked by
28701 grub_disk_check_range. Change the types of START_SECTOR, LEN and
28702 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
28704 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
28705 body, as the value of OFFSET is tweaked by
28706 grub_disk_check_range. Change the types of LEN and N to
28709 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
28710 and "saved_offset" to grub_off_t.
28711 (test_header): Cast BUF to char *.
28712 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
28714 (grub_gzio_read): Change the types of OFFSET and SIZE to
28715 grub_off_t and grub_size_t, respectively.
28717 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
28719 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
28720 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
28721 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
28722 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
28723 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
28725 * include/grub/types.h (grub_off_t): Unconditionally set to
28727 (grub_disk_addr_t): Changed to grub_uint64_t.
28729 * include/grub/partition.h (struct grub_partition): Change the
28730 types of "start", "len" and "offset" to grub_disk_addr_t,
28731 grub_uint64_t and grub_disk_addr_t, respectively.
28732 (grub_partition_get_start): Return grub_disk_addr_t.
28733 (grub_partition_get_len): Return grub_uint64_t.
28735 * include/grub/misc.h (grub_strtoull): New prototype.
28736 (grub_divmod64): Likewise.
28738 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
28739 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
28740 grub_off_t, respectively.
28741 All callers and references changed.
28743 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
28744 grub_size_t in "read".
28745 All callers and references changed.
28747 * include/grub/file.h (struct grub_file): Change the types of
28748 "offset" and "size" to grub_off_t and grub_off_t,
28749 respectively. Change the type of SECTOR to grub_disk_addr_t in
28751 (grub_file_read): Change the type of LEN to grub_size_t.
28752 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
28754 (grub_file_size): Return grub_off_t.
28755 (grub_file_tell): Likewise.
28756 All callers and references changed.
28758 * include/grub/disk.h (struct grub_disk_dev): Change the types of
28759 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
28761 (struct grub_disk): Change the type of "total_sectors" to
28762 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
28764 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
28765 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
28766 (grub_disk_write): Likewise.
28767 All callers and references changed.
28769 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
28770 char * for grub_strncmp to silence gcc.
28771 (grub_iso9660_mount): Likewise.
28772 (grub_iso9660_mount): Likewise.
28773 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
28775 (grub_iso9660_iterate_dir): Likewise.
28776 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
28778 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
28779 LEN to grub_disk_addr_t and grub_size_t, respectively.
28781 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
28783 * fs/jfs.c (grub_jfs_read_file): Likewise.
28785 * fs/minix.c (grub_jfs_read_file): Likewise.
28787 * fs/sfs.c (grub_jfs_read_file): Likewise.
28789 * fs/ufs.c (grub_jfs_read_file): Likewise.
28791 * fs/xfs.c (grub_jfs_read_file): Likewise.
28793 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
28794 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
28797 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
28798 BLKNR to -1 instead of returning GRUB_ERRNO.
28799 (grub_ext2_read_file): Change the types of SECTOR and
28800 LEN to grub_disk_addr_t and grub_size_t, respectively.
28802 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
28803 LEN to grub_disk_addr_t and grub_size_t, respectively.
28805 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
28808 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
28809 string. Do not cast SECTOR explicitly.
28811 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
28812 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
28813 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
28814 grub_disk_addr_t and grub_size_t, respectively. If the sector is
28815 over 2TB and LBA mode is not supported, raise an error.
28816 (get_safe_sectors): New function.
28817 (grub_biosdisk_read): Use get_safe_sectors.
28818 (grub_biosdisk_write): Likewise.
28820 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
28821 (grub_efidisk_write): Likewise.
28823 * disk/loopback.c (delete_loopback): Cosmetic changes.
28824 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
28826 (grub_loopback_open): Likewise.
28827 (grub_loopback_read): Likewise. Also, change the type of POS to
28828 grub_off_t, and fix the usage of grub_memset.
28830 * commands/i386/pc/play.c: Include grub/machine/time.h.
28832 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
28835 * commands/configfile.c: Include grub/env.h.
28837 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
28838 GRUB_ERRNO directly instead. Change the type of POS to
28839 grub_off_t. Follow the coding standard.
28841 * commands/blocklist.c: Include grub/partition.h.
28842 (grub_cmd_blocklist): Return an error if the underlying device is
28843 not a disk. Take the starting sector of a partition into account,
28844 if a partition is used.
28846 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
28848 (lba_mode): Support 64-bit addresses.
28849 (chs_mode): Likewise.
28850 (copy_buffer): Adapted to the new offsets of a length field and a
28852 (blocklist_default_start): Allocate 64-bit space.
28854 * boot/i386/pc/boot.S (force_lba): Removed.
28855 (boot_drive): Moved to under KERNEL_SECTOR.
28856 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
28858 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
28860 (lba_mode): Refactored to support a 64-bit address. More size
28862 (setup_sectors): Likewise.
28864 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
28866 * DISTLIST: Added include/grub/i386/linux.h. Removed
28867 include/grub/i386/pc/linux.h
28869 * configure.ac (AC_INIT): Bumped to 1.94.
28871 * config.guess: Updated from gnulib.
28872 * config.sub: Likewise.
28873 * install-sh: Likewise.
28874 * mkinstalldirs: Likewise.
28876 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
28878 * conf/common.rmk (grub_modules_init.lst): Depended on
28879 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
28882 * genmk.rb (PModule::rule): Reverted the previous change.
28884 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
28886 * conf/common.rmk (grub_modules_init.lst): Depends on
28887 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
28888 that the target does not exist before producing.
28889 (grub_modules_init.h): Remove the target before generating.
28890 (grub_emu_init.c): Likewise.
28892 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
28894 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
28896 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
28897 for the target-specific tests. Make sure that we also have the
28898 up-to-date target variables for those tests.
28900 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
28902 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
28903 (PModule::rule): Likewise.
28905 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
28907 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
28908 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
28909 target-specific flags should be prefixed.
28910 (PModule::rule): Likewise.
28912 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
28914 * configure.ac (CMP): Check if cmp is available explicitly.
28916 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
28918 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
28919 (target_cpu): New variable.
28920 (pkglibdir): Use target_cpu instead of host_cpu.
28922 * util/i386/pc/grub-install.in (host_cpu): Removed.
28923 (target_cpu): New variable.
28924 (pkglibdir): Use target_cpu instead of host_cpu.
28926 * util/genmoddep.c: Removed.
28928 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
28929 instead of GRUB_HOST_SIZEOF_VOID_P.
28930 * kern/dl.c: Likewise.
28932 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
28934 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
28935 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28936 (GRUB_TARGET_SIZEOF_LONG): ... this.
28937 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28938 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28939 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
28941 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
28942 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28943 (GRUB_TARGET_SIZEOF_LONG): ... this.
28944 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28945 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28946 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
28948 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
28949 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
28950 (GRUB_TARGET_SIZEOF_LONG): ... this.
28951 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
28952 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
28954 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
28955 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
28956 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
28957 instead of GRUB_HOST_SIZEOF_LONG.
28958 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
28959 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
28960 GRUB_CPU_WORDS_BIGENDIAN.
28961 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
28962 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
28965 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
28966 (genmoddep_SOURCES): Likewise.
28967 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
28968 (genmoddep_SOURCES): Likewise.
28969 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
28970 (genmoddep_SOURCES): Likewise.
28971 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
28973 (genmoddep_SOURCES): Likewise.
28975 * genmoddep.awk: New file.
28977 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
28978 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
28979 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
28980 (PModule::rule): Likewise.
28981 (Program::rule): Likewise.
28982 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
28983 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
28986 * configure.ac: Rewritten intensively to use host and target
28987 instead of build and host, respectively.
28989 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
28990 (host_cpu): Removed.
28991 (target_cpu): New variable.
28992 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
28993 (BUILD_CC): Removed.
28994 (BUILD_CFLAGS): Likewise.
28995 (BUILD_CPPFLAGS): Likewise.
28996 (TARGET_CC): New variable.
28997 (TARGET_CFLAGS): Likewise.
28998 (TARGET_CPPFLAGS): Likewise.
28999 (TARGET_LDFLAGS): Likewise.
29001 (include): Use target_cpu instead of host_cpu.
29002 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
29004 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
29006 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
29008 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
29009 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
29010 field 'false' to 'exec_on_false'.
29011 (grub_script_create_cmdif): Renamed argument names to reflect above
29014 * normal/execute.c (grub_script_execute_cmdif): Likewise.
29016 * normal/script.c (grub_script_create_cmdif): Likewise.
29018 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
29020 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
29022 (grub_hfsplus_btree_recptr): Likewise.
29023 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
29024 FILEBLOCK both to pass a block number and store next block
29026 (grub_hfsplus_read_block): Rewritten heavily to support an extent
29027 overflow file correctly. Specify errors appropriately, because
29028 fshelp expects that GRUB_ERRNO is set when fails. Reuse
29029 grub_hfsplus_btree_recptr to get the pointer to a found key.
29030 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
29033 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
29035 (_linux_mod_SOURCES): New variable.
29036 (_linux_mod_CFLAGS): Likewise.
29037 (_linux_mod_LDFLAGS): Likewise.
29038 (linux_mod_SOURCES): Likewise.
29039 (linux_mod_CFLAGS): Likewise.
29040 (linux_mod_LDFLAGS): Likewise.
29042 * DISTLIST: Added loader/i386/efi/linux.c,
29043 loader/i386/efi/linux_normal.c and
29044 include/grub/i386/efi/loader.h.
29046 * loader/i386/efi/linux.c: New file.
29047 * loader/i386/efi/linux_normal.c: Likewise.
29048 * include/grub/i386/efi/loader.h: Likewise.
29050 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
29052 * commands/blocklist.c: New file.
29054 * DISTLIST: Added commands/blocklist.c.
29056 * term/efi/console.c (grub_console_highlight_color): Use a lighter
29057 color for the background, and a darker color for the foreground.
29058 (grub_console_checkkey): Return READ_KEY.
29059 (grub_console_cls): Set the background to
29060 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
29062 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
29064 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
29065 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
29067 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
29070 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
29071 BG. The spec is wrong again.
29073 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
29075 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
29077 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
29078 commands/blocklist.c.
29079 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29081 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
29082 (blocklist_mod_SOURCES): New variable.
29083 (blocklist_mod_CFLAGS): Likewise.
29084 (blocklist_mod_LDFLAGS): Likewise.
29086 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
29088 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
29090 (lba_mode): Use %eax more intensively to reduce the code size.
29092 2006-05-20 Marco Gerards <marco@gnu.org>
29094 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
29096 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
29098 (script): Accept leading newlines.
29099 (newlines): New rule to describe 0 or more newlines.
29100 (commands): Accept `command' with trailing newline. Fixed the
29101 order in which arguments were passed to `grub_script_add_cmd'.
29102 Accept commands separated by newlines.
29103 (function): Changed to accept newlines.
29104 (menuentry) Rewritten.
29106 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
29107 front of the list, instead of to the end.
29109 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
29111 * util/i386/pc/grub-install.in (bindir): New variable.
29112 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
29113 Shaver <lbgwjl@gmail.com>.
29115 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
29117 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
29118 grub/machine/linux.h
29119 * loader/i386/pc/linux.c: Likewise.
29121 * include/grub/i386/pc/linux.h: Moved to ...
29122 * include/grub/i386/linux.h: ... here.
29124 * include/grub/i386/linux.h (struct linux_kernel_params): New
29127 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
29129 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
29131 (grub_video_vbe_blit_glyph): Likewise.
29132 (grub_video_vbe_blit_bitmap): Likewise.
29133 (grub_video_vbe_blit_render_target): Likewise.
29135 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
29137 * configure.ac (--with-platform): Properly quote the square
29140 2006-05-08 Marco Gerards <marco@gnu.org>
29142 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
29144 (kernel_elf_HEADERS): ...to this. Updated all users.
29145 (grubof_symlist.c): Renamed from this...
29146 (kernel_elf_symlist.c): ...to this. Updated all users.
29147 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
29148 (grubof_SOURCES): Renamed from this...
29149 (kernel_elf_SOURCES): ...to this.
29150 (grubof_HEADERS): Renamed from this...
29151 (kernel_elf_HEADERS): ...to this.
29152 (grubof_CFLAGS): Renamed from this...
29153 (kernel_elf_CFLAGS): ...to this.
29154 (grubof_ASFLAGS): Renamed from this...
29155 (kernel_elf_ASFLAGS): ...to this.
29156 (grubof_LDFLAGS): Renamed from this...
29157 (kernel_elf_LDFLAGS): ...to this.
29159 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
29161 (kernel_elf_HEADERS): ...to this. Updated all users.
29162 (grubof_symlist.c): Renamed from this...
29163 (kernel_elf_symlist.c): ...to this. Updated all users.
29164 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
29165 (grubof_SOURCES): Renamed from this...
29166 (kernel_elf_SOURCES): ...to this.
29167 (grubof_HEADERS): Renamed from this...
29168 (kernel_elf_HEADERS): ...to this.
29169 (grubof_CFLAGS): Renamed from this...
29170 (kernel_elf_CFLAGS): ...to this.
29171 (grubof_ASFLAGS): Renamed from this...
29172 (kernel_elf_ASFLAGS): ...to this.
29173 (grubof_LDFLAGS): Renamed from this...
29174 (kernel_elf_LDFLAGS): ...to this.
29176 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
29177 `kernel.elf' instead of `grubof'.
29179 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
29181 Add --with-platform to configure. Use pkglibdir instead of
29182 pkgdatadir. This is reported by Roger Leigh.
29184 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
29185 (host_vendor): Likewise.
29186 (host_os): Likewise.
29187 (pkgdatadir): Likewise.
29188 (platform): New variable.
29189 (pkglibdir): Likewise.
29190 Use PKGLIBDIR instead of PKGDATADIR.
29192 * util/i386/pc/grub-install.in (datadir): Removed.
29193 (host_vendor): Likewise.
29194 (host_os): Likewise.
29195 (pkgdatadir): Likewise.
29196 (platform): New variable.
29197 (pkglibdir): Likewise.
29198 Use PKGLIBDIR instead of PKGDATADIR.
29200 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
29201 instead of GRUB_DATADIR.
29203 * util/i386/pc/grub-mkimage.c (usage): Likewise.
29205 * util/i386/efi/grub-mkimage.c (usage): Likewise.
29208 * configure.ac (--with-platform): New option.
29209 Use PLATFORM instead of HOST_VENDOR to specify a platform.
29211 * Makefile.in: Include a makefile based on PLATFORM instead of
29213 (pkgdatadir): Not appended by the machine type.
29214 (pkglibdir): Appended by the machine type.
29215 (host_vendor): Removed.
29216 (platform): New variable.
29217 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
29218 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
29219 (uninstall): Likewise.
29221 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
29223 Use the environment context in the menu. Remove the commands
29224 "default" and "timeout", and use variables instead.
29226 * normal/menu.c: Include grub/env.h.
29227 (print_entry): Cast TITLE to silence gcc.
29228 (get_timeout): New function.
29229 (set_timeout): Likewise.
29230 (get_entry_number): Likewise.
29231 (run_menu): Use a default entry, a fallback entry and a timeout
29232 in the environment variables "default", "fallback" and
29233 "timeout". Also, tweak the default entry if it is not within the
29234 current menu entries.
29235 (grub_menu_run): Use a fallback entry in the environment variable
29238 * normal/main.c (read_config_file): Do not initialize
29239 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
29241 (grub_normal_execute): Use a data slot to store the menu.
29243 * include/grub/normal.h (struct grub_menu): Removed default_entry,
29244 fallback_entry and timeout.
29245 (struct grub_menu_list): Removed.
29246 (grub_menu_list_t): Likewise.
29247 (struct grub_context): Likewise.
29248 (grub_context_t): Likewise.
29249 (grub_context_get): Likewise.
29250 (grub_context_get_current_menu): Likewise.
29251 (grub_context_push_menu): Likewise.
29252 (grub_context_pop_menu): Likewise.
29253 (grub_default_init): Likewise.
29254 (grub_default_fini): Likewise.
29255 (grub_timeout_init): Likewise.
29256 (grub_timeout_fini): Likewise.
29258 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
29260 (normal_mod_SOURCES): Removed normal/context.c.
29262 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
29263 commands/default.c, commands/timeout.c and normal/context.c.
29264 (normal_mod_SOURCES): Removed normal/context.c.
29266 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
29267 commands/timeout.c and normal/context.c.
29268 (normal_mod_SOURCES): Removed normal/context.c.
29270 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
29271 commands/default.c, commands/timeout.c and normal/context.c.
29272 (normal_mod_SOURCES): Removed normal/context.c.
29274 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
29276 (default_mod_SOURCES): Removed.
29277 (default_mod_CFLAGS): Likewise.
29278 (default_mod_LDFLAGS): Likewise.
29279 (timeout_mod_SOURCES): Removed.
29280 (timeout_mod_CFLAGS): Likewise.
29281 (timeout_mod_LDFLAGS): Likewise.
29283 * DISTLIST: Removed commands/default.c, commands/timeout.c and
29286 * commands/default.c: Removed.
29287 * commands/timeout.c: Likewise.
29288 * normal/context.c: Likewise.
29290 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
29292 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
29294 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
29296 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
29297 "next" to "prev" for readability.
29298 (struct grub_env_sorted_var): New struct.
29299 (grub_env_context): Renamed to ...
29300 (initial_context): ... this.
29301 (grub_env_var_context): Renamed to ...
29302 (current_context): ... this.
29303 (grub_env_find): Look only at CURRENT_CONTEXT.
29304 (grub_env_context_open): Rewritten to copy exported variables from
29306 (grub_env_context_close): Rewritten according to the new
29307 scheme. Also, add an assertion to prevent the initial context from
29309 (grub_env_insert): Removed the code for the sorted list.
29310 (grub_env_remove): Likewise.
29311 (grub_env_export): Simply mark the variable with
29312 GRUB_ENV_VAR_GLOBAL.
29313 (grub_env_set): A cosmetic change for naming consistency.
29314 (grub_env_get): Likewise.
29315 (grub_env_unset): Likewise.
29316 (grub_env_iterate): Rewritten to sort variables within this
29318 (grub_register_variable_hook): Fixed for naming consistency. Call
29319 grub_env_find again, only if NAME is not found at the first time.
29320 (mangle_data_slot_name): New function.
29321 (grub_env_set_data_slot): Likewise.
29322 (grub_env_get_data_slot): Likewise.
29323 (grub_env_unset_data_slot): Likewise.
29325 * include/grub/env.h (grub_env_var_type): New enum.
29326 (GRUB_ENV_VAR_LOCAL): New constant.
29327 (GRUB_ENV_VAR_GLOBAL): Likewise.
29328 (GRUB_ENV_VAR_DATA): Likewise.
29329 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
29331 (grub_env_set): Replace VAR with NAME for consistency.
29332 (grub_register_variable_hook): Likewise.
29333 (grub_env_export): Specify the name of the argument.
29334 (grub_env_set_data_slot): New prototype.
29335 (grub_env_get_data_slot): Likewise.
29336 (grub_env_unset_data_slot): Likewise.
29338 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
29340 Extend the loader so that GRUB can accept a loader which comes
29341 back to GRUB when a loaded image exits. Also, this change adds
29342 support for a chainloader on EFI.
29344 * term/efi/console.c: Include grub/misc.h.
29345 (grub_console_checkkey): Display a scan code on the top for
29346 debugging. This will be removed once the EFI port gets stable.
29347 Correct the scan code mapping.
29349 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
29350 allocate memory from larger regions, in order to reduce the number
29351 of allocated regions. Otherwise, the MacOSX loader panics.
29352 (filter_memory_map): Avoid less than 1MB for compatibility with
29354 (add_memory_regions): Allocate from the tail of a region, if
29355 possible, to avoid allocating a region near to 1MB, for the MacOSX
29358 * kern/efi/init.c (grub_efi_set_prefix): Specify
29359 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
29361 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
29362 argument IMAGE_HANDLE and specify it to get a loaded image.
29363 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
29364 grub_efi_get_loaded_image.
29365 (grub_efi_get_filename): Divide the length by the size of
29367 (grub_efi_get_device_path): New function.
29368 (grub_efi_print_device_path): Print End Device Path nodes. Divide
29369 the length by the size of grub_efi_char16_t for a file path device
29372 * kern/loader.c (grub_loader_noreturn): New variable.
29373 (grub_loader_set): Accept a new argument NORETURN. Set
29374 GRUB_LOADER_NORETURN to NORETURN.
29375 All callers changed.
29376 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
29379 * include/grub/efi/efi.h (grub_efi_get_device_path): New
29381 (grub_efi_get_loaded_image): Take an argument to specify an image
29384 * include/grub/loader.h (grub_loader_set): Added one more argument
29387 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
29388 instead of grub_efi_open_protocol.
29389 (grub_efidisk_get_device_name): Likewise.
29390 (grub_efidisk_close): Print a newline.
29391 (grub_efidisk_get_device_handle): Fixed to use
29392 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
29393 GRUB_EFI_DEVICE_PATH_TYPE.
29395 * disk/efi/efidisk.c (device_path_guid): Moved to ...
29396 * kern/efi/efi.c (device_path_guid): ... here.
29398 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
29400 (kernel_mod_HEADERS): Added efi/disk.h.
29401 (_chain_mod_SOURCES): New variable.
29402 (_chain_mod_CFLAGS): Likewise.
29403 (_chain_mod_LDFLAGS): Likewise.
29404 (chain_mod_SOURCES): Likewise.
29405 (chain_mod_CFLAGS): Likewise.
29406 (chain_mod_LDFLAGS): Likewise.
29408 * DISTLIST: Added include/grub/efi/chainloader.h,
29409 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
29411 * include/grub/efi/chainloader.h: New file.
29412 * loader/efi/chainloader.c: Likewise.
29413 * loader/efi/chainloader_normal.c: Likewise.
29415 2006-04-30 Marco Gerards <marco@gnu.org>
29417 * commands/configfile.c (grub_cmd_source): New function.
29418 (GRUB_MOD_INIT): Register the commands `source' and `.'.
29419 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
29421 2006-04-30 Marco Gerards <marco@gnu.org>
29423 * normal/execute.c (grub_script_execute_cmd): Change the return
29424 type to `grub_err_t'. Correctly return the error.
29425 (grub_script_execute_cmdline): In case a command line is not a
29426 command or a function, try to interpret it as an assignment.
29428 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
29430 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
29431 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
29432 skip a node whose name is obviously invalid as UTF-16,
29433 i.e. contains a NUL character. Stop the iteration when the last
29434 directory entry is found. Instead of using the return value of
29435 grub_hfsplus_btree_iterate_node, store the value in RET and use
29436 it, because the iterator can be stopped by the last directory
29439 2006-04-30 Marco Gerards <marco@gnu.org>
29441 * include/grub/env.h (grub_env_export): New prototype. Reported
29442 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
29444 2006-04-30 Marco Gerards <marco@gnu.org>
29446 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
29447 size of the extents in a catalog file record.
29449 2006-04-29 Marco Gerards <marco@gnu.org>
29451 * commands/configfile.c (grub_cmd_configfile): Execute the
29452 configfile within its own context.
29454 * include/grub/env.h (grub_env_context_open): New prototype.
29455 (grub_env_context_close): Likewise.
29457 * kern/env.c (grub_env): Removed.
29458 (grub_env_sorted): Likewise.
29459 (grub_env_context): New variable.
29460 (grub_env_var_context): Likewise.
29461 (grub_env_find): Search both the active context and the global
29463 (grub_env_context_open): New function.
29464 (grub_env_context_close): Likewise.
29465 (grub_env_insert): Likewise.
29466 (grub_env_remove): Likewise.
29467 (grub_env_export): Likewise.
29468 (grub_env_set): Changed to use helper functions to avoid code
29470 (grub_env_iterate): Rewritten so both the current context and the
29471 global context are being used.
29473 * normal/command.c (export_command): New function.
29474 (grub_command_init): Register the `export' function.
29476 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
29478 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
29479 explicitly to suppress gcc's warnings.
29480 * fs/fat.c (grub_fat_find_dir): Likewise.
29481 (grub_fat_label): Likewise.
29482 * fs/xfs.c (grub_xfs_read_inode): Likewise.
29483 (grub_xfs_mount): Likewise.
29484 (grub_xfs_label): Likewise.
29485 * fs/affs.c (grub_affs_mount): Likewise.
29486 (grub_affs_label): Likewise.
29487 (grub_affs_iterate_dir): Likewise.
29488 * fs/sfs.c (grub_sfs_mount): Likewise.
29489 (grub_sfs_iterate_dir): Likewise.
29490 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
29491 * fs/hfs.c (grub_hfs_mount): Likewise.
29492 (grub_hfs_cmp_catkeys): Likewise.
29493 (grub_hfs_find_dir): Likewise.
29494 (grub_hfs_dir): Likewise.
29495 (grub_hfs_label): Likewise.
29496 * fs/jfs.c (grub_jfs_mount): Likewise.
29497 (grub_jfs_opendir): Likewise.
29498 (grub_jfs_getent): Likewise.
29499 (grub_jfs_lookup_symlink): Likewise.
29500 (grub_jfs_label): Likewise.
29501 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
29502 (grub_hfsplus_iterate_dir): Likewise.
29503 (grub_hfsplus_btree_iterate_node): Made static.
29505 * util/grub-emu.c (prefix): New variable.
29506 (grub_machine_set_prefix): New function.
29507 (main): Do not set the environment variable "prefix" here. Only
29508 set PREFIX, which is used later by grub_machine_set_prefix.
29510 * include/grub/video.h: Do not include grub/symbol.h.
29511 (grub_video_register): Not exported. This symbol is not defined in
29513 (grub_video_unregister): Likewise.
29514 (grub_video_iterate): Likewise.
29515 (grub_video_setup): Likewise.
29516 (grub_video_restore): Likewise.
29517 (grub_video_get_info): Likewise.
29518 (grub_video_get_blit_format): Likewise.
29519 (grub_video_set_palette): Likewise.
29520 (grub_video_get_palette): Likewise.
29521 (grub_video_set_viewport): Likewise.
29522 (grub_video_get_viewport): Likewise.
29523 (grub_video_map_color): Likewise.
29524 (grub_video_map_rgb): Likewise.
29525 (grub_video_map_rgba): Likewise.
29526 (grub_video_fill_rect): Likewise.
29527 (grub_video_blit_glyph): Likewise.
29528 (grub_video_blit_bitmap): Likewise.
29529 (grub_video_blit_render_target): Likewise.
29530 (grub_video_scroll): Likewise.
29531 (grub_video_swap_buffers): Likewise.
29532 (grub_video_create_render_target): Likewise.
29533 (grub_video_delete_render_target): Likewise.
29534 (grub_video_set_active_render_target): Likewise.
29536 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
29538 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
29540 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
29541 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
29542 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
29543 instead of $(srcdir)/genkernsyms.sh.
29545 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
29546 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
29547 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
29548 instead of $(srcdir)/genkernsyms.sh.
29550 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
29551 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
29552 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
29553 instead of $(srcdir)/genkernsyms.sh.
29555 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
29556 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
29557 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
29558 instead of $(srcdir)/genkernsyms.sh.
29560 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
29563 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
29565 (gensymlist.sh): New target.
29566 (genkernsyms.sh): Likewise.
29568 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
29569 genkernsyms.sh.in and gensymlist.sh.in.
29571 * genkernsyms.sh: Removed.
29572 * gensymlist.sh: Likewise.
29574 * genkernsyms.sh.in: New file.
29575 * gensymlist.sh.in: Likewise.
29577 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
29579 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
29580 clobber "prefix", since we may have already set it manually.
29582 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
29584 * kern/misc.c (abort): New alias for grub_abort.
29586 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
29588 A new machine-specific function "grub_machine_set_prefix" is
29589 defined. This is called after loading modules, so that a prefix
29590 initialization can use modules. Also, this change adds an
29591 intensive debugging feature for the memory manager via the
29592 configure option "--enable-mm-debug".
29594 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
29597 * kern/sparc64/ieee1275/init.c (abort): Removed.
29598 (grub_stop): Likewise.
29599 (grub_exit): New function.
29600 (grub_set_prefix): Renamed to ...
29601 (grub_machine_set_prefix): ... this.
29602 (grub_machine_init): Do not call grub_set_prefix.
29604 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
29605 (grub_machine_set_prefix): ... this.
29606 (grub_machine_init): Do not call grub_set_prefix.
29608 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
29609 (grub_machine_init): Do not set the prefix here.
29611 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
29613 * kern/efi/init.c: Include grub/mm.h.
29614 (grub_efi_set_prefix): New function.
29616 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
29617 (grub_efi_get_filename): New function.
29618 (grub_print_device_path): Renamed to ...
29619 (grub_efi_print_device_path): ... this.
29621 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
29622 [MM_DEBUG] (grub_realloc): Likewise.
29623 [MM_DEBUG] (grub_free): Likewise.
29624 [MM_DEBUG] (grub_memalign): Likewise.
29625 [MM_DEBUG] (grub_mm_debug): New variable.
29626 [MM_DEBUG] (grub_debug_malloc): New function.
29627 [MM_DEBUG] (grub_debug_free): New function.
29628 [MM_DEBUG] (grub_debug_realloc): New function.
29629 [MM_DEBUG] (grub_debug_memalign): New function.
29631 * kern/misc.c (grub_abort): Print a newline to distinguish
29634 * kern/main.c (grub_main): Call grub_machine_set_prefix and
29635 grub_set_root_dev after loading modules. This is necessary when
29636 setting a prefix depends on modules.
29638 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
29639 (grub_efi_print_device_path): ... this.
29640 (grub_efi_get_filename): New prototype.
29641 (grub_efi_set_prefix): Likewise.
29643 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
29645 (grub_efidisk_get_device_handle): New prototype.
29646 (grub_efidisk_get_device_name): Likewise.
29648 * include/grub/mm.h: Include config.h.
29649 (MM_DEBUG): Removed.
29650 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
29651 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
29652 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
29653 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
29654 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
29655 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
29656 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
29657 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
29658 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
29660 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
29662 * disk/efi/efidisk.c: Include grub/partition.h.
29663 (iterate_child_devices): New function.
29664 (add_device): First, compare only last device path nodes, so that
29665 devices are sorted by the types.
29666 (grub_efidisk_get_device_handle): New function.
29667 (grub_efidisk_get_device_name): Likewise.
29669 * configure.ac (--enable-mm-debug): New option to enable the
29670 memory manager debugging feature. This makes the binary much
29671 bigger, so is disabled by default.
29673 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
29675 Use grub_abort instead of grub_stop, and grub_exit must be
29676 define in each architecture now. Also, this change adds support
29679 * util/i386/pc/grub-probefs.c: Include grub/term.h.
29680 (grub_getkey): New function.
29681 (grub_term_get_current): Likewise.
29683 * util/i386/pc/grub-setup.c: Include grub/term.h.
29684 (grub_getkey): New function.
29685 (grub_term_get_current): Likewise.
29687 * util/misc.c (grub_stop): Renamed to ...
29688 (grub_exit): ... this.
29690 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
29691 (grub_exit): ... this.
29692 (grub_machine_init): Use grub_abort instead of abort.
29693 (grub_stop): Removed.
29695 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
29698 * kern/i386/pc/startup.S (grub_exit): New function.
29699 (cold_reboot): New label.
29701 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
29702 (grub_efi_init): Call grub_efidisk_init.
29703 (grub_efi_fini): Call grub_efidisk_fini.
29705 * kern/efi/efi.c: Include grub/mm.h.
29706 (grub_efi_console_control_guid): Renamed to ...
29707 (console_control_guid): ... this.
29708 (grub_efi_loaded_image_guid): Renamed to ...
29709 (loaded_image_guid): ... this.
29710 (grub_efi_locate_handle): New function.
29711 (grub_efi_open_protocol): Likewise.
29712 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
29713 GRUB_EFI_CONSOLE_CONTROL_GUID.
29714 (grub_efi_exit): Removed.
29715 (grub_stop): Likewise.
29716 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
29717 (grub_exit): New function.
29718 (grub_print_device_path): Likewise.
29720 * kern/rescue.c (grub_rescue_cmd_exit): New function.
29721 (grub_enter_rescue_mode): Register "exit".
29723 * kern/misc.c (grub_real_dprintf): A cosmetic change.
29724 (grub_abort): New function.
29726 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
29728 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
29730 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
29732 * include/grub/efi/efi.h (grub_efi_exit): Removed.
29733 (grub_print_device_path): New prototype.
29734 (grub_efi_locate_handle): Likewise.
29735 (grub_efi_open_protocol): Likewise.
29737 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
29738 * disk/efi/efidisk.c: Likewise.
29740 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
29742 * include/grub/efi/console_control.h
29743 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
29745 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
29746 last 8 bytes as an array.
29747 (GRUB_EFI_DISK_IO_GUID): New macro.
29748 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
29749 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
29750 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
29752 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
29753 (struct grub_efi_device_path): Rename the member "sub_type" to
29755 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
29756 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
29757 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
29758 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
29759 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
29760 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
29761 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
29762 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
29763 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
29764 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
29765 (struct grub_efi_pci_device_path): New structure.
29766 (grub_efi_pci_device_path_t): New type.
29767 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
29768 (struct grub_efi_pccard_device_path): New structure.
29769 (grub_efi_pccard_device_path_t): New type.
29770 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
29771 (struct grub_efi_memory_mapped_device_path): New structure.
29772 (grub_efi_memory_mapped_device_path_t): New type.
29773 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
29774 (struct grub_efi_vendor_device_path): New structure.
29775 (grub_efi_vendor_device_path_t): New type.
29776 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
29777 (struct grub_efi_controller_device_path): New structure.
29778 (grub_efi_controller_device_path_t): New type.
29779 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
29780 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
29781 (struct grub_efi_acpi_device_path): New structure.
29782 (grub_efi_acpi_device_path_t): New type.
29783 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
29784 (struct grub_efi_expanded_acpi_device_path): New structure.
29785 (grub_efi_expanded_acpi_device_path_t): New type.
29786 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
29787 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
29788 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
29789 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
29790 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
29791 (struct grub_efi_atapi_device_path): New structure.
29792 (grub_efi_atapi_device_path_t): New type.
29793 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
29794 (struct grub_efi_fibre_channel_device_path): New structure.
29795 (grub_efi_fibre_channel_device_path_t): New type.
29796 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
29797 (struct grub_efi_1394_device_path): New structure.
29798 (grub_efi_1394_device_path_t): New type.
29799 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
29800 (struct grub_efi_usb_device_path): New structure.
29801 (grub_efi_usb_device_path_t): New type.
29802 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
29803 (struct grub_efi_usb_class_device_path): New structure.
29804 (grub_efi_usb_class_device_path_t): New type.
29805 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
29806 (struct grub_efi_i2o_device_path): New structure.
29807 (grub_efi_i2o_device_path_t): New type.
29808 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
29809 (struct grub_efi_mac_address_device_path): New structure.
29810 (grub_efi_mac_address_device_path_t): New type.
29811 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
29812 (struct grub_efi_ipv4_device_path): New structure.
29813 (grub_efi_ipv4_device_path_t): New type.
29814 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
29815 (struct grub_efi_ipv6_device_path): New structure.
29816 (grub_efi_ipv6_device_path_t): New type.
29817 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
29818 (struct grub_efi_infiniband_device_path): New structure.
29819 (grub_efi_infiniband_device_path_t): New type.
29820 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
29821 (struct grub_efi_uart_device_path): New structure.
29822 (grub_efi_uart_device_path_t): New type.
29823 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
29824 (struct grub_efi_vendor_messaging_device_path): New structure.
29825 (grub_efi_vendor_messaging_device_path_t): New type.
29826 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
29827 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
29828 (struct grub_efi_hard_drive_device_path): New structure.
29829 (grub_efi_hard_drive_device_path_t): New type.
29830 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
29831 (struct grub_efi_cdrom_device_path): New structure.
29832 (grub_efi_cdrom_device_path_t): New type.
29833 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
29834 (struct grub_efi_vendor_media_device_path): New structure.
29835 (grub_efi_vendor_media_device_path_t): New type.
29836 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
29837 (struct grub_efi_file_path_device_path): New structure.
29838 (grub_efi_file_path_device_path_t): New type.
29839 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
29840 (struct grub_efi_protocol_device_path): New structure.
29841 (grub_efi_protocol_device_path_t): New type.
29842 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
29843 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
29844 (struct grub_efi_bios_device_path): New structure.
29845 (grub_efi_bios_device_path_t): New type.
29846 (struct grub_efi_disk_io): New structure.
29847 (grub_efi_disk_io_t): New type.
29848 (struct grub_efi_block_io_media): New structure.
29849 (grub_efi_block_io_media_t): New type.
29850 (struct grub_efi_block_io): New structure.
29851 (grub_efi_block_io_t): New type.
29853 * include/grub/misc.h (grub_stop): Removed.
29854 (grub_exit): New prototype.
29855 (grub_abort): Likewise.
29857 * include/grub/disk.h (enum grub_disk_dev_id): Added
29858 GRUB_DISK_DEVICE_EFIDISK_ID.
29860 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
29861 disk/efi/efidisk.c.
29862 (kernel_syms.lst): Remove the target if an error occurs.
29864 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
29866 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
29867 as it was simply too buggy.
29869 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
29871 * kern/misc.c (grub_lltoa): New function.
29872 (grub_vsprintf): Added support for the long long suffix,
29875 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
29877 * Makefile.in (LDFLAGS): Add variable.
29878 (LD): Remove variable.
29879 * configure.ac: Add -m32 to LDFLAGS.
29880 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
29881 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
29882 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
29883 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
29884 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
29886 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
29887 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
29888 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
29890 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
29892 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
29893 length for unknown glyph.
29895 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
29897 Add support for pre-loaded modules into the EFI port.
29899 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
29900 completely. Accept one more argument DIR. The caller has changed.
29902 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
29904 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
29905 (grub_efi_loaded_image_guid): New variable.
29906 (grub_efi_get_loaded_image): New function.
29907 (grub_arch_modules_addr): Likewise.
29909 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
29912 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
29913 (struct grub_efi_loaded_image): New structure.
29914 (grub_efi_loaded_image_t): New type.
29916 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
29918 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
29919 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
29920 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
29922 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
29924 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
29926 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
29928 * DISTLIST: Added include/grub/efi/console.h,
29929 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
29930 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
29932 * include/grub/efi/console.h: New file.
29933 * include/grub/efi/time.h: Likewise.
29934 * include/grub/i386/efi/kernel.h: Likewise.
29935 * kern/efi/init.c: Likewise.
29936 * kern/efi/mm.c: Likewise.
29937 * term/efi/console.c: Likewise.
29939 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
29940 (grub_stop): Removed.
29941 (grub_get_rtc): Likewise.
29942 (grub_machine_init): Simply call grub_efi_init.
29943 (grub_machine_fini): Call grub_efi_fini.
29945 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
29946 (grub_efi_output_string): Removed.
29947 (grub_efi_stall): New function.
29948 (grub_stop): Likewise.
29949 (grub_get_rtc): Likewise.
29951 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
29952 (grub_efi_stall): New prototype.
29953 (grub_efi_allocate_pages): Likewise.
29954 (grub_efi_free_pages): Likewise.
29955 (grub_efi_get_memory_map): Likewise.
29956 (grub_efi_mm_init): Likewise.
29957 (grub_efi_mm_fini): Likewise.
29958 (grub_efi_init): Likewise.
29959 (grub_efi_fini): Likewise.
29961 * include/grub/i386/efi/time.h: Do not include
29962 grub/symbol.h. Include grub/efi/time.h.
29963 (GRUB_TICKS_PER_SECOND): Removed.
29964 (grub_get_rtc): Likewise.
29966 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
29967 Added padding. The EFI spec is buggy.
29968 (GRUB_EFI_BLACK): New macro.
29969 (GRUB_EFI_BLUE): Likewise.
29970 (GRUB_EFI_GREEN): Likewise.
29971 (GRUB_EFI_CYAN): Likewise.
29972 (GRUB_EFI_RED): Likewise.
29973 (GRUB_EFI_MAGENTA): Likewise.
29974 (GRUB_EFI_BROWN): Likewise.
29975 (GRUB_EFI_LIGHTGRAY): Likewise.
29976 (GRUB_EFI_BRIGHT): Likewise.
29977 (GRUB_EFI_DARKGRAY): Likewise.
29978 (GRUB_EFI_LIGHTBLUE): Likewise.
29979 (GRUB_EFI_LIGHTGREEN): Likewise.
29980 (GRUB_EFI_LIGHTCYAN): Likewise.
29981 (GRUB_EFI_LIGHTRED): Likewise.
29982 (GRUB_EFI_LIGHTMAGENTA): Likewise.
29983 (GRUB_EFI_YELLOW): Likewise.
29984 (GRUB_EFI_WHITE): Likewise.
29985 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
29986 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
29987 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
29988 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
29989 (GRUB_EFI_BACKGROUND_RED): Likewise.
29990 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
29991 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
29992 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
29993 (GRUB_EFI_TEXT_ATTR): Likewise.
29995 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
29996 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
29997 (kernel_mod_HEADERS): Added efi/time.h.
29999 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
30001 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
30002 include/grub/efi/api.h, include/grub/efi/console_control.h,
30003 include/grub/efi/efi.h, include/grub/efi/pe32.h,
30004 include/grub/i386/efi/time.h, kern/efi/efi.c,
30005 kern/i386/efi/init.c, kern/i386/efi/startup.S,
30006 and util/i386/efi/grub-mkimage.c.
30008 * Makefile.in (RMKFILES): Added i386-efi.rmk.
30010 * genmk.rb (PModule#rule): Do not export symbols if
30011 #{prefix}_EXPORTS is set to "no".
30013 * conf/i386-efi.mk: New file.
30014 * conf/i386-efi.rmk: Likewise.
30015 * include/grub/efi/api.h: Likewise.
30016 * include/grub/efi/console_control.h: Likewise.
30017 * include/grub/efi/efi.h: Likewise.
30018 * include/grub/efi/pe32.h: Likewise.
30019 * include/grub/i386/efi/time.h: Likewise.
30020 * kern/efi/efi.c: Likewise.
30021 * kern/i386/efi/init.c: Likewise.
30022 * kern/i386/efi/startup.S: Likewise.
30023 * util/i386/efi/grub-mkimage.c: Likewise.
30025 2006-04-17 Marco Gerards <marco@gnu.org>
30027 * include/grub/script.h: Include <grub/parser.h> and
30028 "grub_script.tab.h".
30029 (struct grub_lexer_param): New struct.
30030 (struct grub_parser_param): Likewise.
30031 (grub_script_create_arglist): Pass the state in an argument.
30032 (grub_script_add_arglist): Likewise.
30033 (grub_script_create_cmdline): Likewise.
30034 (grub_script_create_cmdblock): Likewise.
30035 (grub_script_create_cmdif): Likewise.
30036 (grub_script_create_cmdmenu): Likewise.
30037 (grub_script_add_cmd): Likewise.
30038 (grub_script_arg_add): Likewise.
30039 (grub_script_lexer_ref): Likewise.
30040 (grub_script_lexer_deref): Likewise.
30041 (grub_script_lexer_record_start): Likewise.
30042 (grub_script_lexer_record_stop): Likewise.
30043 (grub_script_mem_record): Likewise.
30044 (grub_script_mem_record_stop): Likewise.
30045 (grub_script_malloc): Likewise.
30046 (grub_script_yylex): Likewise.
30047 (grub_script_yyparse): Likewise.
30048 (grub_script_yyerror): Likewise.
30049 (grub_script_yylex): Likewise.
30050 (grub_script_lexer_init): Return the state.
30052 * normal/lexer.c (grub_script_lexer_state): Removed variable.
30053 (grub_script_lexer_done): Likewise.
30054 (grub_script_lexer_getline): Likewise.
30055 (grub_script_lexer_refs): Likewise.
30056 (script): Likewise.
30057 (newscript): Likewise.
30058 (record): Likewise.
30059 (recording): Likewise.
30060 (recordpos): Likewise.
30061 (recordlen): Likewise.
30062 (grub_script_lexer_init): Return the state instead of setting
30064 (grub_script_lexer_ref): Use the newly added argument for state
30065 instead of globals.
30066 (grub_script_lexer_deref): Likewise.
30067 (grub_script_lexer_record_start): Likewise.
30068 (grub_script_lexer_record_stop): Likewise.
30069 (recordchar): Likewise.
30070 (nextchar): Likewise.
30071 (grub_script_yylex2): Likewise.
30072 (grub_script_yylex): Likewise.
30073 (grub_script_yyerror): Likewise.
30075 * normal/parser.y (func_mem): Removed variable.
30076 (menu_entry): Likewise.
30078 (%lex-param): New parser option.
30079 (%parse-param): Likewise.
30080 (script): Always return the AST.
30081 (argument): Pass the state around.
30082 (arguments): Likewise.
30083 (grubcmd): Likewise.
30084 (commands): Likewise.
30085 (function): Likewise.
30086 (menuentry): Likewise.
30087 (if_statement): Likewise.
30090 * normal/script.c (grub_script_memused): Removed variable.
30091 (grub_script_parsed): Likewise.
30092 (grub_script_malloc): Added a state argument. Use that instead of
30094 (grub_script_mem_record): Likewise.
30095 (grub_script_mem_record_stop): Likewise.
30096 (grub_script_arg_add): Likewise.
30097 (grub_script_add_arglist): Likewise.
30098 (grub_script_create_cmdline): Likewise.
30099 (grub_script_create_cmdif): Likewise.
30100 (grub_script_create_cmdmenu): Likewise.
30101 (grub_script_add_cmd): Likewise.
30102 (grub_script_parse): Setup the state before calling the parser.
30104 2006-04-16 Marco Gerards <marco@gnu.org>
30106 * normal/command.c (grub_command_init): Remove the title command.
30108 * normal/lexer.c (grub_script_yylex): Renamed from this...
30109 (grub_script_yylex2): ... to this.
30110 (grub_script_yylex): New function. Temporary
30111 introduced to filter some tokens.
30112 (grub_script_yyerror): Print a newline.
30114 * normal/main.c (read_config_file): Output information about the
30115 lines that contain errors. Wait for a key after all lines have
30116 been processed. Don't return an empty menu.
30118 * normal/parser.y (func_mem): Don't initialize.
30119 (menu_entry): Likewise.
30120 (err): New variable.
30121 (script): Don't return anything when an error was encountered.
30122 (ws, returns): Removed rules.
30123 (argument): Disabled concatenated variable support.
30124 (arguments): Remove explicit separators.
30125 (grubcmd): Likewise.
30126 (function): Likewise.
30127 (menuentry): Likewise.
30129 (commands): Likewise. Add error handling.
30131 * normal/script.c (grub_script_create_cmdline): If
30132 `grub_script_parsed' is 0, assume the parser encountered an error.
30134 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
30136 * configure.ac: Add support for EFI. Fix the typo
30137 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
30139 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
30141 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
30142 foreign multibyte characters should be shown correctly.
30144 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
30146 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
30148 (read_config_file): Made it to close file before returning.
30150 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
30152 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
30153 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
30154 video/i386/pc/vbefill.c.
30156 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
30157 video/i386/pc/vbefill.c.
30159 * include/grub/video.h (grub_video_blit_format): New enum.
30160 (grub_video_mode_info): Added new member blit_format.
30161 (grub_video_get_blit_format): New function prototype.
30163 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
30164 function prototype.
30165 (grub_video_vbe_map_rgb): Likewise.
30166 (grub_video_vbe_unmap_color): Likewise.
30168 * include/grub/i386/pc/vbeblit.h: New file.
30170 * include/grub/i386/pc/vbefill.h: New file.
30172 * video/video.c (grub_video_get_blit_format): New function.
30173 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
30174 (grub_video_vbe_map_rgb): Likewise.
30175 (grub_video_vbe_unmap_color): Likewise.
30177 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
30179 (grub_video_vbe_blit_render_target): Changed to use more optimized
30181 (grub_video_vbe_setup): Added detection for optimized settings.
30182 (grub_video_vbe_create_render_target): Likewise.
30184 * video/i386/pc/vbeblit.c: New file.
30186 * video/i386/pc/vbefill.c: New file.
30188 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
30190 * font/manager.c (grub_font_get_glyph): Removed font fixup from
30193 * util/unifont2pff.rb: ... and moved it to here. Improved argument
30194 parsing to support both hex and dec ranges. If filename was missing
30195 show usage information.
30197 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
30199 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
30200 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
30202 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
30203 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
30204 (video_mod_SOURCES): Added.
30205 (video_mod_CFLAGS): Likewise.
30206 (video_mod_LDFLAGS): Likewise.
30207 (gfxterm_mod_SOURCES): Likewise.
30208 (gfxterm_mod_CFLAGS): Likewise.
30209 (gfxterm_mod_LDFLAGS): Likewise.
30210 (videotest_mod_SOURCES): Likewise.
30211 (videotest_mod_CFLAGS): Likewise.
30212 (videotest_mod_LDFLAGS): Likewise.
30213 (vesafb_mod_SOURCES): Removed.
30214 (vesafb_mod_CFLAGS): Likewise.
30215 (vesafb_mod_LDFLAGS): Likewise.
30216 (vga_mod_SOURCES): Likewise.
30217 (vga_mod_CFLAGS): Likewise.
30218 (vga_mod_LDFLAGS): Likewise.
30220 * commands/videotest.c: New file.
30222 * font/manager.c (fill_with_default_glyph): Modified to use
30224 (grub_font_get_glyph): Likewise.
30225 (fontmanager): Renamed from this...
30226 (font_manager): ... to this.
30228 * include/grub/font.h (grub_font_glyph): Added new structure.
30229 (grub_font_get_glyph): Modified to use grub_font_glyph.
30231 * include/grub/misc.h (grub_abs): Added as inline function.
30233 * include/grub/video.h: New file.
30235 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
30236 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
30237 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
30238 (grub_vbe_get_controller_info): Renamed from this...
30239 (grub_vbe_bios_get_controller_info): ... to this.
30240 (grub_vbe_get_mode_info): Renamed from this...
30241 (grub_vbe_bios_get_mode_info): ... to this.
30242 (grub_vbe_set_mode): Renamed from this...
30243 (grub_vbe_bios_set_mode): ... to this.
30244 (grub_vbe_get_mode): Renamed from this...
30245 (grub_vbe_bios_get_mode): ... to this.
30246 (grub_vbe_set_memory_window): Renamed from this...
30247 (grub_vbe_bios_set_memory_window): ... to this.
30248 (grub_vbe_get_memory_window): Renamed from this...
30249 (grub_vbe_bios_get_memory_window): ... to this.
30250 (grub_vbe_set_scanline_length): Renamed from this...
30251 (grub_vbe_set_scanline_length): ... to this.
30252 (grub_vbe_get_scanline_length): Renamed from this...
30253 (grub_vbe_bios_get_scanline_length): ... to this.
30254 (grub_vbe_set_display_start): Renamed from this...
30255 (grub_vbe_bios_set_display_start): ... to this.
30256 (grub_vbe_get_display_start): Renamed from this...
30257 (grub_vbe_bios_get_display_start): ... to this.
30258 (grub_vbe_set_palette_data): Renamed from this...
30259 (grub_vbe_bios_set_palette_data): ... to this.
30260 (grub_vbe_set_pixel_rgb): Removed.
30261 (grub_vbe_set_pixel_index): Likewise.
30263 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
30265 (grub_vbe_bios_get_controller_info): ... to this.
30266 (grub_vbe_get_mode_info): Renamed from this...
30267 (grub_vbe_bios_get_mode_info): ... to this.
30268 (grub_vbe_set_mode): Renamed from this...
30269 (grub_vbe_bios_set_mode): ... to this.
30270 (grub_vbe_get_mode): Renamed from this...
30271 (grub_vbe_bios_get_mode): ... to this.
30272 (grub_vbe_set_memory_window): Renamed from this...
30273 (grub_vbe_bios_set_memory_window): ... to this.
30274 (grub_vbe_get_memory_window): Renamed from this...
30275 (grub_vbe_bios_get_memory_window): ... to this.
30276 (grub_vbe_set_scanline_length): Renamed from this...
30277 (grub_vbe_set_scanline_length): ... to this.
30278 (grub_vbe_get_scanline_length): Renamed from this...
30279 (grub_vbe_bios_get_scanline_length): ... to this.
30280 (grub_vbe_set_display_start): Renamed from this...
30281 (grub_vbe_bios_set_display_start): ... to this.
30282 (grub_vbe_get_display_start): Renamed from this...
30283 (grub_vbe_bios_get_display_start): ... to this.
30284 (grub_vbe_set_palette_data): Renamed from this...
30285 (grub_vbe_bios_set_palette_data): ... to this.
30286 (grub_vbe_bios_get_controller_info): Fixed problem with registers
30287 getting corrupted after calling it. Added more pushes and pops.
30288 (grub_vbe_bios_set_mode): Likewise.
30289 (grub_vbe_bios_get_mode): Likewise.
30290 (grub_vbe_bios_get_memory_window): Likewise.
30291 (grub_vbe_bios_set_scanline_length): Likewise.
30292 (grub_vbe_bios_get_scanline_length): Likewise.
30293 (grub_vbe_bios_get_display_start): Likewise.
30294 (grub_vbe_bios_set_palette_data): Likewise.
30296 * normal/cmdline.c (cl_set_pos): Refresh the screen.
30297 (cl_insert): Likewise.
30298 (cl_delete): Likewise.
30300 * term/gfxterm.c: New file.
30302 * term/i386/pc/vesafb.c: Removed file.
30304 * video/video.c: New file.
30306 * video/i386/pc/vbe.c (real2pm): Added new function.
30307 (grub_video_vbe_draw_pixel): Likewise.
30308 (grub_video_vbe_get_video_ptr): Likewise.
30309 (grub_video_vbe_get_pixel): Likewise
30310 (grub_video_vbe_init): Likewise.
30311 (grub_video_vbe_fini): Likewise.
30312 (grub_video_vbe_setup): Likewise.
30313 (grub_video_vbe_get_info): Likewise.
30314 (grub_video_vbe_set_palette): Likewise.
30315 (grub_video_vbe_get_palette): Likewise.
30316 (grub_video_vbe_set_viewport): Likewise.
30317 (grub_video_vbe_get_viewport): Likewise.
30318 (grub_video_vbe_map_color): Likewise.
30319 (grub_video_vbe_map_rgb): Likewise.
30320 (grub_video_vbe_map_rgba): Likewise.
30321 (grub_video_vbe_unmap_color): Likewise.
30322 (grub_video_vbe_fill_rect): Likewise.
30323 (grub_video_vbe_blit_glyph): Likewise.
30324 (grub_video_vbe_blit_bitmap): Likewise.
30325 (grub_video_vbe_blit_render_target): Likewise.
30326 (grub_video_vbe_scroll): Likewise.
30327 (grub_video_vbe_swap_buffers): Likewise.
30328 (grub_video_vbe_create_render_target): Likewise.
30329 (grub_video_vbe_delete_render_target): Likewise.
30330 (grub_video_vbe_set_active_render_target): Likewise.
30331 (grub_vbe_set_pixel_rgb): Remove function.
30332 (grub_vbe_set_pixel_index): Likewise.
30333 (index_color_mode): Remove static variable.
30334 (active_mode): Likewise.
30335 (framebuffer): Likewise.
30336 (bytes_per_scan_line): Likewise.
30337 (grub_video_vbe_adapter): Added new static variable.
30338 (framebuffer): Likewise.
30339 (render_target): Likewise.
30340 (initial_mode): Likewise.
30341 (mode_in_use): Likewise.
30342 (mode_list): Likewise.
30344 2006-03-10 Marco Gerards <marco@gnu.org>
30346 * configure.ac (AC_INIT): Bumped to 1.93.
30348 * DISTLIST: Added `include/grub/hfs.h'.
30350 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
30352 * boot/i386/pc/boot.S (general_error): Before looping, try INT
30353 18H, which might help the BIOS falling back to next boot media.
30355 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
30357 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
30358 Poe Chen <poe.poechen@gmail.com>.
30360 2006-01-17 Marco Gerards <marco@gnu.org>
30362 * include/grub/normal.h: Include <grub/script.h>.
30363 (grub_command_list): Removed struct.
30364 (grub_command_list_t): Removed type.
30365 (grub_menu_entry): Remove members `num' and `command_list'. Add
30366 members `commands' and `sourcecode'.
30367 * include/grub/script.h: Add inclusion guards.
30368 (grub_script_cmd_menuentry): New struct.
30369 (grub_script_execute_menuentry): New prototype.
30370 (grub_script_lexer_record_start): Likewise.
30371 (grub_script_lexer_record_stop): Likewise.
30372 * normal/execute.c (grub_script_execute_menuentry): New function.
30373 * normal/lexer.c (record, recording, recordpos, recordlen): New
30375 (grub_script_lexer_record_start): New function.
30376 (grub_script_lexer_record_stop): Likewise.
30377 (recordchar): Likewise.
30378 (nextchar): Likewise.
30379 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
30380 2048 as the buffer size. Add the tokens `menuentry' and `@'.
30381 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
30382 (current_menu): New variable.
30383 (free_menu): Mainly rewritten.
30384 (grub_normal_menu_addentry): New function.
30385 (read_config_file): Rewritten.
30386 * normal/menu.c (run_menu_entry): Mainly rewritten.
30387 * normal/menu_entry.c (make_screen): Rewritten the code to insert
30389 (run): Mainly rewritten.
30390 * normal/parser.y (menu_entry): New variable.
30391 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
30392 (menuentry): New rule.
30393 (command): Add `menuentry'.
30394 (if_statement): Allow additional returns before `fi'.
30395 * normal/script.c (grub_script_create_cmdmenu): New function.
30397 2006-01-03 Marco Gerards <marco@gnu.org>
30399 * INSTALL: GNU Bison is required.
30400 * configure.ac: Rewritten the test to detect Bison.
30401 * Makefile.in (YACC): New variable. Reported by Xun Sun
30402 <xun.sun.cn@gmail.com>.
30404 2006-01-03 Marco Gerards <marco@gnu.org>
30406 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
30407 the HFS+ filesystem to filesystem blocks.
30408 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
30409 GCC warning is silenced.
30411 2006-01-03 Marco Gerards <marco@gnu.org>
30413 * partmap/apple.c (apple_partition_map_iterate): Convert the data
30414 read from disk from big endian to host byte order.
30416 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
30418 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
30420 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
30421 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
30422 embedded HFS+ filesystem.
30423 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
30424 (grub_hfs_sblock): Move from here...
30425 * include/grub/hfs.h: To here... New file.
30426 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
30428 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
30430 (grub_hfsplus_volheader): Change type of member `magic' to
30432 (grub_hfsplus_data): Add new member `embedded_offset'.
30433 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
30435 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
30436 Calculate the offset.
30438 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
30440 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
30442 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
30444 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
30446 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
30447 ENV->NAME is NULL after allocating ENV->VALUE.
30449 2005-12-25 Marco Gerards <marco@gnu.org>
30451 * kern/env.c (grub_env_set): Rewritten the error handling code.
30453 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
30455 * geninit.sh: Made more robust, and more portable.
30457 2005-12-25 Marco Gerards <marco@gnu.org>
30459 Add support for Apple HFS+ filesystems.
30461 * fs/hfsplus.c: New file.
30463 * DISTLIST: Added `fs/hfsplus.c'.
30465 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
30466 (hfsplus_mod_SOURCES): New variable.
30467 (hfsplus_mod_CFLAGS): Likewise.
30468 (hfsplus_mod_LDFLAGS): Likewise.
30469 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
30470 (grub_setup_SOURCES): Likewise.
30471 (grub_mkdevicemap_SOURCES): Likewise.
30472 (grub_emu_SOURCES): Likewise.
30473 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
30475 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
30477 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
30479 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
30481 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
30482 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
30483 include/grub/parser.h, include/grub/script.h, kern/parser.c,
30484 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
30485 normal/lexer.c, normal/parser.y, normal/script.c, and
30487 Removed kern/sparc64/cache.c.
30489 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
30490 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
30493 * configure.ac (AC_INIT): Bumped to 1.92.
30495 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
30497 * kern/err.c (grub_error_push): Added new function to support error
30499 (grub_error_pop): Likewise.
30500 (grub_error_stack_items): New local variable to support error stacks.
30501 (grub_error_stack_pos): Likewise.
30502 (grub_error_stack_assert): Likewise.
30503 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
30505 (grub_print_error): Added support to print errors from error stack.
30507 * include/grub/err.h (grub_error_push): Added function prototype.
30508 (grub_error_pop): Likewise.
30510 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
30512 * configure.ac: Accept `powerpc64' as host_cpu.
30513 (amd64): Rename to `biarch32'.
30515 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
30516 non-cacheline-aligned addresses.
30518 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
30519 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
30520 if `size' is non-zero.
30522 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
30524 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
30525 and `cd' to make sure the filename is not prefixed with a
30527 (pkgdata_MODULES): Add `gpt.mod'.
30528 (gpt_mod_SOURCES): New variable.
30529 (gpt_mod_CFLAGS): Likewise.
30530 (gpt_mod_LDFLAGS): Likewise.
30532 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
30534 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
30537 * partmap/gpt.c: New file.
30539 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
30540 GPT partition map is detected.
30542 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
30544 * commands/i386/pc/play.c: New file.
30545 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
30546 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
30549 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
30551 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
30552 ((unused))' to silence gcc warning.
30554 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
30556 * configure.ac: Correct `AC_PROG_YACC' test.
30558 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
30560 * util/powerpc/ieee1275/grub-install.in: Run the mount point
30561 check before installing files.
30563 2005-11-22 Mike Small <smallm@panix.com>
30565 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
30566 number regex so multidigit numbers are recognized correctly.
30568 2005-11-22 Mike Small <smallm@panix.com>
30570 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
30571 debugging message before attempting to claim memory.
30572 (grub_rescue_cmd_initrd): Add a claim debugging message and try
30573 multiple addresses in case of failure.
30575 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
30577 * term/tparm.c (get_space): Remove empty `if' statement.
30579 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
30581 * kern/parser.c (check_varstate): Rename `state' to 's'.
30583 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
30585 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
30586 variable definitions to the beginning of each function. Sort stack
30588 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
30589 `buf' argument to `char *'.
30591 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
30593 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
30594 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
30595 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
30596 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
30597 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
30598 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
30599 configfile.mod, search.mod, gzio.mod and test.mod.
30600 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
30601 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
30602 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
30603 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
30604 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
30605 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
30606 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
30607 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
30608 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
30609 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
30610 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
30611 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
30612 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
30613 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
30614 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
30615 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
30616 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
30617 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
30618 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
30619 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
30620 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
30621 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
30622 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
30624 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
30626 (pkgdata_MODULES): Add test.mod.
30628 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30630 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
30631 appending to variables with "+=".
30632 (PModule): Use full pathname to generate *.lst filenames.
30634 * Makefile.in: Fixed list rules moved from genmk.rb.
30635 (.DELETE_ON_ERROR): New special target.
30636 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
30638 * conf/i386-pc.rmk: Include conf/common.mk.
30639 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
30640 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
30641 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
30642 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
30643 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
30644 configfile.mod, search.mod, gzio.mod and test.mod.
30645 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
30646 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
30647 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
30648 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
30649 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
30650 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
30651 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
30652 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
30653 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
30654 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
30655 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
30656 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
30657 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
30658 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
30659 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
30660 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
30661 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
30662 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
30663 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
30664 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
30665 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
30666 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
30667 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
30669 * conf/common.rmk: ... to here. New file.
30671 * conf/common.mk: New file.
30673 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
30675 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
30676 (grub_script.tab.c): ... here.
30678 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
30679 (grub_script.tab.c): ... here.
30681 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
30682 (grub_script.tab.c): ... here.
30684 * normal/command.c (grub_command_find): Fixed a memory leak of
30685 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
30687 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30689 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
30690 "@" which marks the start of a comment on ARM.
30691 (VARIABLE): Likewise.
30693 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
30695 Add support for Linux/ADFS partition tables.
30697 * partmap/acorn.c: New file.
30699 * include/grub/acorn_filecore.h: Likewise.
30701 * DISTLIST: Added `partmap/acorn.c' and
30702 `include/grub/acorn_filecore.h'.
30704 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30706 (pkgdata_MODULES): Add `acorn.mod'.
30707 (acorn_mod_SOURCES): New variable.
30708 (acorn_mod_CFLAGS): Likewise.
30710 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
30712 (pkgdata_MODULES): Add `acorn.mod'.
30713 (acorn_mod_SOURCES): New variable.
30714 (acorn_mod_CFLAGS): Likewise.
30716 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
30717 (pkgdata_MODULES): Add `acorn.mod'.
30718 (acorn_mod_SOURCES): New variable.
30719 (acorn_mod_CFLAGS): Likewise.
30720 (acorn_mod_LDFLAGS): Likewise.
30722 * include/types.h (grub_disk_addr_t): New typedef.
30724 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
30726 * geninit.sh: New file.
30728 * geninitheader.sh: Likewise.
30730 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
30731 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
30732 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
30733 * commands/configfile.c (grub_configfile_init)
30734 (grub_configfile_fini): Likewise.
30735 * commands/default.c (grub_default_init, grub_default_fini):
30737 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
30738 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
30739 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
30740 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
30742 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
30743 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
30745 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
30746 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
30748 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
30750 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
30752 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
30753 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
30754 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
30755 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
30756 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
30757 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
30758 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
30759 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
30760 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
30761 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
30762 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
30763 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
30764 * partmap/amiga.c (grub_amiga_partition_map_init)
30765 (grub_amiga_partition_map_fini): Likewise.
30766 * partmap/apple.c (grub_apple_partition_map_init)
30767 (grub_apple_partition_map_fini): Likewise.
30768 * partmap/pc.c (grub_pc_partition_map_init)
30769 (grub_pc_partition_map_fini): Likewise.
30770 * partmap/sun.c (grub_sun_partition_map_init,
30771 grub_sun_partition_map_fini): Likewise.
30772 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
30775 * util/grub-emu.c: Include <grub_modules_init.h>.
30776 (main): Don't initialize and de-initialize any modules directly,
30777 use `grub_init_all' and `grub_fini_all' instead.
30779 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
30780 `grub_vesafb_mod_init'.
30781 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
30783 * term/i386/pc/vga.c (grub_vga_init): Renamed to
30784 `grub_vga_mod_init'. Updated all users.
30785 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
30787 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
30788 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
30791 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
30792 Generate a function to initialize the module in utilities.
30793 Updated all callers.
30794 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
30795 initialize the module in utilities. Updated all callers.
30797 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
30799 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
30800 escape sequence and a literal ^L to clear the screen.
30802 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
30803 when returning from Open Firmware.
30805 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
30807 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
30808 (grub_ofconsole_height): Likewise.
30809 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
30810 manually insert a '\n'.
30811 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
30812 `grub_ofconsole_height'. Return early if these are already set.
30814 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
30816 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
30817 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
30818 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
30819 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
30820 and `normal/script.c'.
30821 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
30822 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
30823 (test_mod_SOURCES): New variable.
30824 (test_mod_CFLAGS): Likewise.
30825 (test_mod_LDFLAGS): Likewise.
30826 (pkgdata_MODULES): Add `test.mod'.
30827 (grub_script.tab.c): New rule.
30828 (grub_script.tab.h): Likewise.
30830 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
30832 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
30833 `commands/test.c', `normal/execute.c', `normal/lexer.c',
30834 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
30835 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
30836 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
30837 (test_mod_SOURCES): New variable.
30838 (test_mod_CFLAGS): Likewise.
30839 (pkgdata_MODULES): Add `test.mod'.
30840 (grub_script.tab.c): New rule.
30841 (grub_script.tab.h): Likewise.
30843 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
30845 Add initial scripting support.
30847 * commands/test.c: New file.
30848 * include/grub/script.h: Likewise.
30849 * normal/execute.c: Likewise.
30850 * normal/function.c: Likewise.
30851 * normal/lexer.c: Likewise.
30852 * normal/parser.y: Likewise.
30853 * normal/script.c: Likewise.
30855 * configure.ac: Add `AC_PROG_YACC' test.
30857 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
30858 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
30859 `normal/function.c' and `normal/script.c'.
30860 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
30861 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
30862 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
30864 (pkgdata_MODULES): Add `test.mod'.
30865 (grub_script.tab.c): New rule.
30866 (grub_script.tab.h): Likewise.
30868 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
30870 * include/grub/normal.h (grub_test_init): New prototype.
30871 (grub_test_fini): Likewise.
30873 * normal/command.c: Include <grub/script.h>.
30874 (grub_command_execute): Rewritten.
30876 * util/grub-emu.c (main): Call `grub_test_init' and
30879 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
30881 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
30883 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
30884 there are no pending characters.
30886 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
30888 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
30889 `grub_strndup' to drop device arguments. Replace unnecessary
30890 `grub_strndup' with `grub_strdup'.
30892 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
30894 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
30895 `debug' environment variable has been set.
30897 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
30899 * Makefile.in (install-local): Use $(DATA).
30900 (uninstall): Likewise.
30901 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
30902 (sbin_UTILITIES): ... to here.
30903 (sbin_SCRIPTS): New variable.
30904 (grub_install_SOURCES): New variable.
30905 * util/powerpc/ieee1275/grub-install.in: New file.
30906 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
30908 (add_segments): Call `grub_util_get_path'.
30910 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
30912 From Timothy Baldwin:
30913 * commands/ls.c (grub_ls_list_files): Close FILE with
30915 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
30917 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
30919 * include/grub/parser.h: New file.
30921 * kern/parser.c: Likewise.
30923 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
30924 (grub_setup_SOURCES): Likewise.
30925 (grub_probefs_SOURCES): Likewise.
30926 (grub_emu_SOURCES): Likewise.
30927 (kernel_img_HEADERS): Add `parser.h'.
30929 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
30930 (grub_emu_SOURCES): Add `kern/parser.c'.
30931 (grubof_SOURCES): Likewise.
30933 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
30934 (grubof_SOURCES): Add `kern/parser.c'.
30936 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
30938 * kern/misc.c (grub_split_cmdline): Removed function.
30940 * kern/rescue.c: Include <grub/parser.h>.
30941 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
30942 of `grub_split_cmdline'.
30944 * normal/command.c: Include <grub/parser.h>.
30945 (grub_command_execute): Use `grub_parser_split_cmdline' instead
30946 of `grub_split_cmdline'.
30948 * normal/completion.c: Include <grub/parser.h>.
30949 (cmdline_state): New variable.
30950 (iterate_dir): End the filename with a quote depending on the
30951 command line state.
30952 (get_state): new function.
30953 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
30954 split the arguments and determine the current argument. When the
30955 argument string is not quoted, escape all spaces.
30957 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30959 * normal/sparc64/setjmp.S: New file.
30961 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30963 * include/grub/sparc64/libgcc.h: New file.
30964 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
30965 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
30966 normal/sparc64/setjmp.c.
30968 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
30970 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
30971 * kern/sparc64/cache.S: New file.
30972 * kern/sparc64/cache.c: Removed.
30973 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
30974 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
30976 (COMMON_LDFLAGS): Add -melf64_sparc.
30977 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
30978 (grubof_SOURCES): Use cache.S instead of cache.c.
30979 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
30980 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
30981 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
30983 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
30984 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
30985 (linux_mod_CFLAGS): Commented out.
30986 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
30987 out because module isn't built.
30988 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
30989 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
30990 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
30991 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
30992 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
30993 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
30994 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
30995 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
30996 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
30997 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
30998 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
30999 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
31000 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
31001 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
31003 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
31005 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
31006 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
31007 longer, because HFS should not be used on PC.
31009 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
31011 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
31012 consistently within the loop.
31014 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
31016 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
31017 directory can not be read.
31019 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
31021 * configure.ac (AC_INIT): Increase the version number to 1.91.
31023 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
31024 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
31025 term/i386/pc/serial.c.
31027 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
31029 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
31030 file size must be permitted.
31032 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
31033 between %ah and %al.
31035 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
31037 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
31039 Call the hook with a NUL-terminated filename.
31040 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
31043 * kern/term.c (cursor_state): New variable.
31044 (grub_term_set_current): Reset the cursor state on a new
31046 (grub_setcursor): Rewritten to use CURSOR_STATE.
31047 (grub_getcursor): New function.
31049 * include/grub/term.h (grub_getcursor): New prototype.
31051 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
31052 integers on ARM. Reported by Timothy Baldwin
31053 <T.E.Baldwin99@members.leeds.ac.uk>.
31055 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
31057 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
31059 (grub_sfs_dir): Likewise.
31061 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
31063 Add support for the SFS filesystem.
31065 * fs/sfs.c: New file.
31067 * DISTLIST: Added `fs/sfs.c'.
31069 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
31070 (grub_probefs_SOURCES): Likewise.
31071 (grub_emu_SOURCES): Likewise.
31072 (pkgdata_MODULES): Add `sfs.mod'.
31073 (sfs_mod_SOURCES): New variable.
31074 (sfs_mod_CFLAGS): Likewise.
31075 (sfs_mod_LDFLAGS): Likewise.
31077 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
31078 (pkgdata_MODULES): Add `sfs.mod'.
31079 (sfs_mod_SOURCES): New variable.
31080 (sfs_mod_CFLAGS): Likewise.
31082 * util/grub-emu.c (main): Call `grub_sfs_init' and
31085 * include/grub/fs.h (grub_sfs_init): New prototype.
31086 (grub_sfs_fini): Likewise.
31088 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
31090 Add support for the AFFS filesystem.
31092 * fs/affs.c: New file.
31094 * DISTLIST: Added `fs/affs.c'.
31096 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
31097 (grub_probefs_SOURCES): Likewise.
31098 (grub_emu_SOURCES): Likewise.
31099 (pkgdata_MODULES): Add `affs.mod'.
31100 (affs_mod_SOURCES): New variable.
31101 (affs_mod_CFLAGS): Likewise.
31102 (affs_mod_LDFLAGS): Likewise.
31104 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
31105 (pkgdata_MODULES): Add `affs.mod'.
31106 (affs_mod_SOURCES): New variable.
31107 (affs_mod_CFLAGS): Likewise.
31109 * util/grub-emu.c (main): Call `grub_affs_init' and
31112 * include/grub/fs.h (grub_affs_init): New prototype.
31113 (grub_affs_fini): Likewise.
31115 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
31117 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
31119 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
31121 * configure.ac: Accept `x86_64' as host_cpu. In that case add
31124 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
31127 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
31128 (COMMON_LDFLAGS): New variable.
31129 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
31130 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
31131 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
31132 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
31133 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
31134 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
31135 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
31136 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
31137 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
31138 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
31139 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
31140 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
31141 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
31142 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
31143 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
31145 (normal_mod_ASFLAGS): Add `-m32'.
31147 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
31148 (grub_host_size_t, grub_host_ssize_t): New types.
31149 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
31150 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
31151 `GRUB_HOST_SIZEOF_VOID_P'.
31153 * include/grub/kernel.h (struct grub_module_header): Type of
31154 member offset changed to `grub_host_off_t'. Type of member size
31155 changed to `grub_host_size_t'.
31156 (struct grub_module_info): Type of member offset changed to
31157 `grub_host_off_t'. Type of member size changed to
31158 `grub_host_size_t'.
31160 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
31162 Make GRUB's kernel compliant to Multiboot Specification.
31164 * kern/i386/pc/startup.S (multiboot_header): New label.
31165 (multiboot_entry): Likewise.
31166 (multiboot_trampoline): Likewise.
31168 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
31169 Increased to 0x4A0.
31171 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
31172 put parentheses after a question mark.
31173 [!GRUB_UTIL] (my_mod): New variable.
31175 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
31177 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
31179 Adds support for the XFS filesystem. Btrees are not supported
31182 * fs/xfs.c: New file.
31184 * DISTLIST: Added `fs/xfs.c'.
31186 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
31187 (grub_probefs_SOURCES): Likewise.
31188 (grub_emu_SOURCES): Likewise.
31189 (pkgdata_MODULES): Add `xfs.mod'.
31190 (xfs_mod_SOURCES): New variable.
31191 (xfs_mod_CFLAGS): Likewise.
31193 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
31194 (pkgdata_MODULES): Add `xfs.mod'.
31195 (xfs_mod_SOURCES): New variable.
31196 (xfs_mod_CFLAGS): Likewise.
31198 * util/grub-emu.c (main): Call `grub_xfs_init' and
31201 * include/grub/fs.h (grub_xfs_init): New prototype.
31202 (grub_xfs_fini): Likewise.
31205 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
31207 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
31208 color modes, allow greater than 16 colors to be configured as
31211 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
31213 * normal/completion.c (complete_arguments): Add the qualifier
31214 const into OPTIONS.
31216 From Omniflux <omniflux+lists@omniflux.com>:
31217 * include/grub/terminfo.h: New file.
31218 * include/grub/tparm.h: Likewise.
31219 * include/grub/i386/pc/serial.h: Likewise.
31220 * term/terminfo.c: Likewise.
31221 * term/tparm.c: Likewise.
31222 * term/i386/pc/serial.c: Likewise.
31223 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
31225 (terminfo_mod_SOURCES): New variable.
31226 (terminfo_mod_CFLAGS): Likewise.
31227 (serial_mod_SOURCES): Likewise.
31228 (serial_mod_CFLAGS): Likewise.
31230 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
31232 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
31233 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
31234 and kern/powerpc/ieee1275/cmain.c, respectively.
31236 * boot/powerpc/ieee1275/crt0.S: Moved to ...
31237 * kern/powerpc/ieee1275/crt0.S: ... here.
31239 * boot/powerpc/ieee1275/cmain.c: Moved to ...
31240 * kern/powerpc/ieee1275/cmain.c: ... here.
31242 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
31243 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
31244 instead of boot/powerpc/ieee1275/crt0.S and
31245 boot/powerpc/ieee1275/cmain.c, respectively.
31247 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
31248 sectors. It was not used anyway.
31250 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
31252 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
31253 `unused parameter' warning.
31255 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
31257 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
31259 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
31262 2005-08-28 Marco Gerards <metgerards@student.han.nl>
31264 * include/grub/normal.h (enum grub_completion_type): Added
31265 `GRUB_COMPLETION_TYPE_ARGUMENT'.
31267 * normal/cmdline.c (print_completion): Handle
31268 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
31269 * normal/menu_entry.c (store_completion): Likewise.
31271 * normal/completion.c (complete_arguments): New function.
31272 (grub_normal_do_completion): Call `complete_arguments' when the
31273 current words start with a dash.
31275 2005-08-27 Marco Gerards <metgerards@student.han.nl>
31277 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
31278 `gzio.mod' instead of `io.mod').
31280 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
31282 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
31283 (DISTDIRS): Added io and video.
31284 Rewrite the search routine to make an output consistently.
31286 * DISTLIST: Added conf/sparc64-ieee1275.mk,
31287 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
31288 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
31289 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
31290 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
31291 util/powerpc/ieee1275/misc.c.
31293 * include/grub/gzio.h: New file.
31294 * io/gzio.c: Likewise.
31296 * kern/file.c (grub_file_close): Call grub_device_close only if
31297 FILE->DEVICE is not NULL.
31299 * include/grub/mm.h [!NULL] (NULL): New macro.
31301 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
31303 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
31304 (pkgdata_MODULES): Added gzio.mod.
31305 (gzio_mod_SOURCES): New variable.
31306 (gzio_mod_CFLAGS): Likewise.
31308 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
31309 (pkgdata_MODULES): Added gzio.mod.
31310 (gzio_mod_SOURCES): New variable.
31311 (gzio_mod_CFLAGS): Likewise.
31313 * commands/cat.c: Include grub/gzio.h.
31314 (grub_cmd_cat): Use grub_gzfile_open instead of
31317 * commands/cmp.c: Include grub/gzio.h.
31318 (grub_cmd_cmp): Use grub_gzfile_open instead of
31321 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
31322 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
31324 (grub_rescue_cmd_module): Likewise.
31326 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
31328 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
31329 kern/sparc64/ieee1275/init.c because it contains _start.
31330 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
31332 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
31334 * configure.ac: Add support for sparc64 host with ieee1275
31336 * configure: Generated from configure.ac.
31337 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
31339 (grub_ofdisk_read): Likewise.
31340 (grub_ofdisk_open): Use %p to print pointer values, and cast the
31341 pointers as (void *) to remove a warning.
31342 (grub_ofdisk_close): Likewise.
31343 (grub_ofdisk_read): Likewise.
31344 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
31345 returns, so make it return void to remove a warning.
31346 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
31347 Corresponding prototype change.
31348 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
31349 values, and cast the pointers as (void *) to remove a warning.
31350 (grub_mm_dump): Likewise.
31351 * conf/sparc64-ieee1275.mk: New file.
31352 * conf/sparc64-ieee1275.rmk: Likewise.
31353 * include/grub/sparc64/setjmp.h: Likewise.
31354 * include/grub/sparc64/types.h: Likewise.
31355 * include/grub/sparc64/ieee1275/console.h: Likewise.
31356 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
31357 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
31358 * include/grub/sparc64/ieee1275/time.h: Likewise.
31359 * kern/sparc64/cache.c: Likewise.
31360 * kern/sparc64/dl.c: Likewise.
31361 * kern/sparc64/ieee1275/init.c: Likewise.
31362 * kern/sparc64/ieee1275/openfw.c: Likewise.
31364 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
31366 * util/console.c (grub_ncurses_putchar): If C is greater than
31367 0x7f, set C to a question mark.
31368 (grub_ncurses_getcharwidth): New function.
31369 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
31372 * normal/menu.c (print_entry): Made aware of Unicode. First,
31373 convert TITLE to UCS-4, and predict the cursor position by
31376 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
31378 * kern/misc.c (grub_utf16_to_utf8): Likewise.
31380 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
31382 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
31383 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
31386 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
31387 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
31388 grub_strcpy and grub_strlen. Take it into account that a space
31389 character is inserted as a delimiter.
31391 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
31393 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
31394 invalid magic in the error.
31396 * commands/search.c: New file.
31398 * util/grub-emu.c (main): Call grub_search_init and
31401 * kern/rescue.c (grub_rescue_print_disks): Removed.
31402 (grub_rescue_print_devices): New function.
31403 (grub_rescue_cmd_ls): Use grub_device_iterate with
31404 grub_rescue_print_devices instead of grub_disk_dev_iterate with
31405 grub_rescue_print_disks.
31407 * kern/partition.c (grub_partition_iterate): Return the result of
31408 PARTMAP->ITERATE instead of GRUB_ERRNO.
31410 * kern/device.c: Include grub/partition.h.
31411 (grub_device_iterate): New function.
31413 * include/grub/partition.h (grub_partition_iterate): Return int
31414 instead of grub_err_t.
31416 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
31418 [GRUB_UTIL] (grub_search_fini): Likewise.
31420 * include/grub/device.h (grub_device_iterate): New prototype.
31422 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
31424 (pkgdata_MODULES): Added search.mod.
31425 (search_mod_SOURCES): New variable.
31426 (search_mod_CFLAGS): Likewise.
31428 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
31429 (pkgdata_MODULES): Added search.mod.
31430 (search_mod_SOURCES): New variable.
31431 (search_mod_CFLAGS): Likewise.
31433 * commands/ls.c (grub_ls_list_disks): Renamed to ...
31434 (grub_ls_list_devices): ... this, and use grub_device_iterate.
31435 All callers changed.
31437 * DISTLIST: Added commands/search.c.
31439 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
31441 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
31443 (grub_getcharwidth): New function.
31445 * kern/misc.c (grub_utf8_to_ucs4): New function.
31447 * include/grub/term.h (struct grub_term): Added a new member
31449 (grub_getcharwidth): New prototype.
31451 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
31453 * term/i386/pc/console.c (map_char): New function. Segregated from
31454 grub_console_putchar.
31455 (grub_console_putchar): Use map_char.
31456 (grub_console_getcharwidth): New function.
31457 (grub_console_term): Specified grub_console_getcharwidth as
31460 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
31461 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
31463 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
31465 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
31466 on grub_strtoul completely.
31467 (write_char): Declare local variables in the beginning of the
31469 (grub_vesafb_getcharwidth): New function.
31470 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
31473 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
31475 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
31476 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
31477 commands/i386/pc/vbetest.c.
31479 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
31480 call grub_vbe_get_controller_info again, because the returned
31481 information is volatile.
31482 (grub_vbe_set_video_mode): Mostly rewritten.
31483 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
31484 grub_vbe_status_t correctly.
31485 (grub_vbe_get_video_mode_info): Likewise.
31486 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
31487 several if statements.
31489 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
31490 * commands/i386/pc/vbeinfo.c: ... this.
31492 * commands/i386/pc/vbe_test.c: Renamed to ...
31493 * commands/i386/pc/vbetest.c: ... this.
31495 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
31497 (grub_cmd_vbeinfo): ... this. Save video modes before
31498 iterating. Skip a video mode, if it is not available, not enough
31499 information is given or it is monochrome. Show the memory
31500 model. Leave the interpretation of MODEVAR to grub_strtoul
31502 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
31503 (GRUB_MOD_FINI): Likewise.
31505 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
31506 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
31507 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
31508 duplicated grub_env_get. Leave the interpretation of MODEVAR to
31509 grub_strtoul completely.
31510 (real2pm): Removed.
31511 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
31512 (GRUB_MOD_FINI): Likewise.
31514 * normal/misc.c: Include grub/mm.h.
31516 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
31517 vbe_list_modes with vbetest.mod and vbeinfo.mod.
31518 (vbe_list_modes_mod_SOURCES): Removed.
31519 (vbe_list_modes_mod_CFLAGS): Likewise.
31520 (vbe_test_mod_SOURCES): Likewise.
31521 (vbe_test_mod_CFLAGS): Likewise.
31522 (vbeinfo_mod_SOURCES): New variable.
31523 (vbeinfo_mod_CFLAGS): Likewise.
31524 (vbetest_mod_SOURCES): Likewise.
31525 (vbetest_mod_CFLAGS): Likewise.
31527 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
31529 * normal/misc.c: New file.
31531 * DISTLIST: Added normal/misc.c.
31533 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
31534 DISK to HOOK. Call HOOK with DISK.
31535 * partmap/apple.c (apple_partition_map_iterate): Likewise.
31536 * partmap/pc.c (pc_partition_map_iterate): Likewise.
31537 * partmap/sun.c (sun_partition_map_iterate): Likewise.
31539 * normal/menu_entry.c (struct screen): Added a new member
31540 "completion_shown".
31541 (completion_buffer): New global variable.
31542 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
31543 (store_completion): New function.
31544 (complete): Likewise.
31545 (clear_completions): Likewise.
31546 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
31547 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
31548 a tab, call complete.
31550 * normal/completion.c (disk_dev): Removed.
31551 (print_simple_completion): Likewise.
31552 (print_partition_completion): Likewise.
31553 (print_func): New global variable.
31554 (add_completion): Do not take the arguments WHAT or PRINT any
31555 longer. Added a new argument TYPE. Instead of printing directly,
31556 call PRINT_FUNC if not NULL.
31557 All callers changed.
31558 (complete_device): Use a local variable DEV instead of
31559 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
31560 (grub_normal_do_completion): Take a new argument HOOK. Do not
31561 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
31562 empty string, return NULL instead.
31563 All callers changed.
31565 * normal/cmdline.c (print_completion): New function.
31567 * kern/partition.c (grub_partition_iterate): Add an argument DISK
31569 All callers changed.
31571 * kern/disk.c (grub_print_partinfo): Removed.
31573 * include/grub/partition.h (struct grub_partition_map): Add a new
31574 argument DISK into HOOK of ITERATE.
31575 (grub_partition_iterate): Add a new argument DISK to HOOK.
31577 * include/grub/normal.h (enum grub_completion_type): New enum.
31578 (grub_completion_type_t): New type.
31579 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
31580 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
31581 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
31582 (GRUB_COMPLETION_TYPE_FILE): Likewise.
31583 (grub_normal_do_completion): Added a new argument HOOK.
31584 (grub_normal_print_device_info): New prototype.
31586 * include/grub/disk.h (grub_print_partinfo): Removed.
31588 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
31589 (normal_mod_SOURCES): Likewise.
31590 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31591 (normal_mod_SOURCES): Likewise.
31593 * commands/ls.c (grub_ls_list_disks): Use
31594 grub_normal_print_device_info instead of grub_print_partinfo. Free
31596 (grub_ls_list_files): Use grub_normal_print_device_info instead of
31597 duplicating the code.
31599 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
31601 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
31602 follow GCS more precisely.
31603 * commands/i386/pc/vbe_test.c: Likewise.
31604 * include/grub/i386/pc/vbe.h: Likewise.
31605 * term/i386/pc/vesafb.c: Likewise.
31606 * video/i386/pc/vbe.c: Likewise.
31608 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
31610 * DISTLIST: Added term/i386/pc/vesafb.c
31611 DISTLIST: Added video/i386/pc/vbe.c
31612 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
31613 DISTLIST: Added commands/i386/pc/vbe_test.c.
31614 * commands/i386/pc/vbe_list_modes.c: New file.
31615 * commands/i386/pc/vbe_test.c: Likewise.
31616 * term/i386/pc/vesafb.c: Likewise.
31617 * video/i386/pc/vbe.c: Likewise.
31618 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
31619 (grub_vbe_probe) Added prototype.
31620 (grub_vbe_set_video_mode) Likewise.
31621 (grub_vbe_get_video_mode) Likewise.
31622 (grub_vbe_get_video_mode_info) Likewise.
31623 (grub_vbe_set_pixel_rgb) Likewise.
31624 (grub_vbe_set_pixel_index) Likewise.
31625 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
31626 (pkgdata_MODULES): Added vesafb.mod.
31627 (pkgdata_MODULES): Added vbe_list_modes.mod.
31628 (pkgdata_MODULES): Added vbe_test.mod.
31629 (vbe_mod_SOURCES): Added.
31630 (vbe_mod_CFLAGS): Likewise.
31631 (vesafb_mod_SOURCES): Likewise.
31632 (vesafb_mod_CFLAGS): Likewise.
31633 (vbe_list_modes_mod_SOURCES): Likewise.
31634 (vbe_list_modes_mod_CFLAGS): Likewise.
31635 (vbe_test_mod_SOURCES): Likewise.
31636 (vbe_test_mod_CFLAGS): Likewise.
31638 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
31640 * normal/command.c (grub_command_execute): If INTERACTIVE is
31641 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
31642 CMDLINE. Disable the pager if INTERACTIVE is true.
31643 All callers are changed.
31645 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
31646 before reading a config file.
31647 * normal/main.c (read_config_file): Even if a command is not
31648 found, register it if it is within an entry.
31650 * util/grub-emu.c: Include sys/types.h and unistd.h.
31651 (options): Added --hold.
31652 (struct arguments): Added a new member "hold".
31653 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
31655 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
31656 cleared by a debugger, if it is not zero.
31658 * include/grub/normal.h (grub_command_execute): Add an argument
31661 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
31663 * DISTLIST: Added include/grub/i386/pc/vbe.h.
31665 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
31667 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
31668 program with another one, because the old one didn't detect a bug
31669 in gcc-3.4. Always use regparm 2, because the new test is still
31670 not enough for gcc-4.0. Someone must investigate a simple test
31671 case which detects a bug in gcc-4.0.
31673 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
31675 * DISTLIST: Added normal/completion.c.
31677 * normal/completion.c: New file.
31679 * term/i386/pc/console.c (grub_console_getwh): New function.
31680 (grub_console_term): Assign grub_console_getwh to getwh.
31682 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
31683 function is defined in normal/completion.c as
31684 grub_normal_do_completion.
31685 (grub_cmdline_get): Use grub_normal_do_completion instead of
31688 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
31689 returns non-zero, otherwise return 0.
31690 (grub_partition_iterate): First, probe the partition map. Then,
31691 call ITERATE only for this partition map.
31693 * kern/misc.c (grub_strncmp): Rewritten.
31695 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
31696 returns non-zero. Otherwise return 0.
31698 * include/grub/partition.h (grub_partition_map_iterate): Return
31699 int instead of void.
31701 * include/grub/normal.h (grub_normal_do_completion): New prototype.
31703 * include/grub/misc.h (grub_strncmp): Change the type of N to
31706 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
31709 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
31710 unsigned explicitly before comparing it with I.
31712 * kern/main.c (grub_env_write_root): Add the attribute unused into
31715 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
31716 normal/completion.c.
31717 (normal_mod_SOURCES): Likewise.
31718 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
31719 (normal_mod_SOURCES): Likewise.
31721 * normal/command.c (grub_iterate_commands): If ITERATE returns
31722 non-zero, return one immediately.
31724 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
31726 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
31727 * kern/i386/pc/startup.S: Updated Global Descriptor table's
31729 (grub_vbe_get_controller_info): New function.
31730 (grub_vbe_get_mode_info): Likewise.
31731 (grub_vbe_set_mode): Likewise.
31732 (grub_vbe_get_mode): Likewise.
31733 (grub_vbe_set_memory_window): Likewise.
31734 (grub_vbe_get_memory_window): Likewise.
31735 (grub_vbe_set_scanline_length): Likewise.
31736 (grub_vbe_get_scanline_length): Likewise.
31737 (grub_vbe_set_display_start): Likewise.
31738 (grub_vbe_get_display_start): Likewise.
31739 (grub_vbe_set_palette_data): Likewise.
31740 * include/grub/i386/pc/vbe.h: New file.
31742 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
31744 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
31745 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
31746 * DISTLIST: Likewise.
31747 * kern/ieee1275/of.c: Moved to ...
31748 * kern/ieee1275/ieee1275.c: ... here.
31750 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
31752 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
31753 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
31754 Pass 0 as `end' parameter to grub_strtoul().
31756 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
31758 * include/grub/powerpc/ieee1275/console.h: Do not include
31759 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
31761 (grub_console_cur_color): Remove i386-specific prototype.
31762 (grub_console_real_putchar): Likewise.
31763 (grub_console_checkkey): Likewise.
31764 (grub_console_getkey): Likewise.
31765 (grub_console_getxy): Likewise.
31766 (grub_console_gotoxy): Likewise.
31767 (grub_console_cls): Likewise.
31768 (grub_console_setcursor): Likewise.
31769 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
31770 Include <grub/machine/console.h>.
31771 * term/ieee1275/ofconsole.c: Likewise.
31773 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
31775 * Makefile.in (LIBLZO): New variable.
31777 * configure.ac: Check for LZO version 2.
31779 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
31780 lzo/lzo1x.h instead of lzo1x.h.
31782 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
31785 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
31786 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
31788 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
31789 copying the data from PARTITION to P.
31791 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
31793 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
31794 negative, unload the module.
31796 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
31797 map is "pc_partition_map" but not "pc".
31798 (usage): Fix the description. The options are --boot-image and
31799 --core-image but not --boot-file or --core-file.
31800 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
31801 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
31804 * util/i386/pc/grub-install.in: Do not specify --boot-file or
31805 --core-file. Specify INSTALL_DEVICE as an argument.
31807 * util/console.c: Include config.h.
31808 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
31809 [HAVE_NCURSES_H]: Include ncurses.h.
31810 [HAVE_CURSES_H]: Include curses.h.
31811 [!A_NORMAL] (A_NORMAL): Defined as zero.
31812 [!A_STANDOUT] (A_STANDOUT): Likewise.
31814 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
31816 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
31818 * configure.ac: Check for curses libraries and headers.
31820 * Makefile.in (LIBCURSES): New variable.
31822 * genmk.rb (Script::rule): Set the executable bits.
31824 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
31825 name of the PC partition map is "pc_partition_map" but not "pc".
31827 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
31829 * util/i386/pc/grub-install.in (grub_probefs): New variable.
31830 (modules): Likewise.
31831 (usage): Added descriptions for --modules and --grub-probefs.
31832 Handle --modules and --grub-probefs. Save the arguments in MODULES
31833 and GRUB_PROBEFS, respectively.
31834 Auto-detect a filesystem module against GRUBDIR. If the result is
31835 empty and modules are not specified explicitly, abort the
31836 installation. Add the result to MODULES.
31838 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
31839 disk/powerpc/ieee1275/ofdisk.c,
31840 include/grub/powerpc/ieee1275/init.h and
31841 term/powerpc/ieee1275/ofconsole.c.
31842 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
31843 term/ieee1275/ofconsole.c.
31845 * include/grub/powerpc/ieee1275/console.h: Resurrected.
31847 * COPYING: Upgraded to the latest version. Only the address of the
31848 FSF office has changed.
31850 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
31852 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
31853 kern/ieee1275.c with kern/ieee1275/of.c.
31855 * kern/ieee1275.c: Moved to ...
31856 * kern/ieee1275/of.c: ... here.
31858 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
31860 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
31863 * config.guess: Updated to the latest version from gnulib.
31864 * config.sub: Likewise.
31865 * install.sh: Likewise.
31866 * mkinstalldirs: Likewise.
31868 * include/grub/console.h: Removed. This file is arch-specific. Do
31869 not put this in include/grub.
31871 * include/grub/i386/pc/console.h: Resurrected.
31873 * util/console.c: Include grub/machine/console.h instead of
31875 * util/grub-emu.c: Likewise.
31877 2005-08-04 Marco Gerards <metgerards@student.han.nl>
31879 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
31882 From Vincent Pelletier <subdino2004@yahoo.fr>
31883 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
31884 Redefined to use grub_getwh.
31885 (grub_term): New member named getwh.
31886 (grub_getwh): New prototype.
31887 * kern/term.c (grub_getwh): New function.
31888 * term/i386/pc/console.c (grub_console_getwh): New function.
31889 (grub_console_term): New member `getwh'.
31890 * term/i386/pc/vga.c (grub_vga_getwh): New function.
31891 (grub_vga_term): New member `getwh'.
31892 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
31894 (grub_ofconsole_getw): New function.
31895 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
31896 (grub_ofconsole_term): New field named getwh and new initial
31899 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
31901 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
31902 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
31903 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
31904 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
31905 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
31906 of <grub/machine/ieee1275.h>.
31907 * commands/ieee1275/reboot.c: Likewise.
31908 * boot/powerpc/ieee1275/ieee1275.c: Move ...
31909 * kern/ieee1275.c: ... to here. All users updated. Change all
31910 parameter structs to use new type `grub_ieee1275_cell_t'.
31911 * term/powerpc/ieee1275/ofconsole.c: Move ...
31912 * term/ieee1275/ofconsole.c: ... to here. All users updated.
31913 * disk/powerpc/ieee1275/ofdisk.c: Move ...
31914 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
31915 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
31917 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
31918 Remove unused prototypes. All users updated.
31919 * include/grub/powerpc/ieee1275/console.h: Removed.
31920 * include/grub/powerpc/ieee1275/ieee1275.h: Define
31921 `grub_ieee1275_cell_t'.
31922 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
31923 Cast comparisons with -1 to the correct type.
31924 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
31925 type to match `grub_ieee1275_entry_fn'.
31927 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
31929 * DISTLIST: Added util/i386/pc/grub-probefs.c.
31931 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
31932 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
31934 (grub_probefs_SOURCES): New variable.
31936 * util/i386/pc/grub-probefs.c: New file.
31938 * util/i386/pc/grub-setup.c (main): Call
31939 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
31940 grub_hfs_init and grub_jfs_init to initialize the system. Call
31941 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
31942 grub_pc_partition_map_fini to finish the system.
31944 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
31946 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
31948 (grub_multiboot_load_elf32): Likewise.
31949 (grub_multiboot_is_elf64): Likewise.
31950 (grub_multiboot_load_elf64): Likewise.
31951 (grub_multiboot_load_elf): Likewise.
31952 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
31953 an ELF32 or ELF64 file.
31954 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
31956 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
31957 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
31958 NULL before calling FS->LABEL.
31959 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
31960 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
31961 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
31962 before calling FS->LABEL.
31964 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
31966 * util/i386/pc/grub-install.in (datadir): New variable.
31968 (pkgdatadir): New variable.
31969 (pkglibdir): Removed.
31971 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
31973 * DISTLIST: Added util/i386/pc/grub-install.in.
31975 * util/i386/pc/grub-install.in: New file.
31977 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
31978 (grub_install_SOURCES): Likewise.
31980 * genmk.rb: Added support for scripts.
31981 (Script): New class.
31982 (scripts): New variable.
31984 * Makefile.in (install-local): Install sbin_SCRIPTS by
31986 (uninstall): Remove sbin_SCRIPTS.
31988 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
31989 device, try to get a GRUB device by
31990 grub_util_biosdisk_get_grub_dev.
31993 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
31994 description for --device-map.
31996 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
31998 Change the semantics of variable hooks. They now return strings
31999 instead of error values.
32001 * util/i386/pc/grub-setup.c: Include grub/env.h.
32002 (setup): Use grub_device_set_root instead of grub_env_set.
32004 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
32005 grub_env_get instead of grub_device_set_root and
32006 grub_device_get_root, respectively.
32008 * kern/main.c (grub_env_write_root): New function.
32009 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
32010 grub_env_set instead of grub_device_set_root.
32012 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
32014 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
32015 rather than calling ENV->WRITE_HOOK afterwards.
32016 (grub_env_get): Return the result of ENV->READ_HOOK rather than
32017 passing a pointer of a pointer.
32018 (grub_register_variable_hook): Change the types of "read_hook" and
32019 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
32021 Allocate the default empty string on the heap, because this string
32022 may be freed later.
32024 * kern/device.c: Include grub/env.h.
32025 (grub_device_set_root): Removed.
32026 (grub_device_get_root): Likewise.
32027 (grub_device_open): Use grub_env_get instead of
32028 grub_device_get_root.
32030 * include/grub/env.h (grub_env_read_hook_t): New type.
32031 (grub_env_write_hook_t): Likewise.
32032 (grub_env_var): Change the types of "read_hook" and "write_hook"
32033 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
32034 (grub_register_variable_hook): Likewise.
32036 * include/grub/device.h (grub_device_set_root): Removed.
32037 (grub_device_set_root): Likewise.
32039 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
32040 make sure that DIRNAME terminates with '/', so that
32041 grub_fat_find_dir will fail if PATH is not a directory.
32043 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
32045 Use the qualifier auto for print_files and print_files_long.
32046 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
32048 Put a newline only if there is no error.
32049 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
32052 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
32054 * kern/partition.c (grub_partition_probe): Initialize PART to
32055 NULL. Otherwise, when no partition map is registered, this returns
32058 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
32060 * partmap/apple.c (apple_partition_map_iterate): Check if POS
32061 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
32064 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
32066 * commands/ls.c (grub_ls_list_disks): Print the filesystem
32067 information on each device, if it does not have partitions. Print
32068 "Device" instead of "Disk", because this function is not specific
32071 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
32072 static to ensure that it is put on the memory rather than a
32075 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
32077 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
32078 (grub_cat_init): Likewise.
32079 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
32080 (options): Likewise.
32081 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
32082 (grub_configfile_init): Likewise.
32083 * font/manager.c (GRUB_MOD_INIT): Likewise.
32084 * commands/help.c (GRUB_MOD_INIT): Likewise.
32085 (grub_help_init): Likewise.
32086 * normal/command.c (grub_command_init): Likewise.
32087 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
32088 * disk/loopback.c (grub_loop_init): Likewise.
32089 (GRUB_MOD_INIT): Likewise.
32090 * commands/ls.c (grub_ls_init): Likewise.
32091 (GRUB_MOD_INIT): Likewise.
32092 (options): Likewise.
32093 * commands/boot.c (grub_boot_init): Likewise.
32094 (GRUB_MOD_INIT): Likewise.
32095 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
32096 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
32097 (GRUB_MOD_INIT): Likewise.
32098 * commands/cmp.c (grub_cmp_init): Likewise.
32099 (GRUB_MOD_INIT): Likewise.
32101 * normal/arg.c: Use <> instead of "" to include header files.
32102 (SHORT_ARG_HELP): New macro.
32103 (SHORT_ARG_USAGE): Likewise.
32104 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
32105 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
32107 (find_short): Check if C is 'h' or 'u' explicitly.
32108 (grub_arg_show_help): Use space characters instead of tabs. Treat
32109 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
32110 are shown with --help and --usage only if they are not used for
32111 the command itself.
32112 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
32115 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
32116 const into "longarg". Change the type of "shortarg" to int.
32118 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
32120 * boot/i386/pc/boot.S (boot_drive_check): New label.
32122 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
32125 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
32126 which do not pass a boot drive correctly. Copied from GRUB Legacy.
32128 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
32130 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
32131 When turning off Gate A20, skip the check and return immediately,
32132 because this is not fatal usually.
32134 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
32136 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
32137 be 0x7C00 instead of 0x8000.
32139 * boot/i386/pc/pxeboot.S: Rewritten.
32141 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
32143 (gate_a20_check_state): Read a byte from 0x108000. Invert the
32146 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
32148 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
32149 robustness. This routine now supports a BIOS call and System
32150 Control Port A to modify the gate A20.
32152 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
32153 Increased to 0x440.
32155 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
32157 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
32158 device path and resulting ihandle.
32159 (grub_ofdisk_close): dprintf the ihandle being closed.
32160 (grub_ofdisk_read): dprintf function parameters.
32161 * kern/mm.c (grub_mm_init_region): Likewise.
32162 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
32163 (grub_linux_boot): dprintf the Linux entry point, initrd address and
32164 size, and boot arguments.
32165 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
32166 before loading into memory.
32167 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
32168 before loading into memory.
32170 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
32172 * kern/mm.c: Added much documentation.
32173 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
32174 8, set to 5 instead of 8.
32176 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
32178 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
32180 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
32181 (grub_mkdevicemap_SOURCES): New variable.
32183 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
32184 lib/device.c of GRUB Legacy.
32186 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
32188 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
32189 instead of PATH is NULL.
32191 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
32193 * commands/cmp.c (BUFFER_SIZE): New macro.
32194 (grub_cmd_cmp): Close the right file at the right time. Compare
32195 only data just read. Don't report files of different size as
32196 identical. Dynamically allocate buffers. Move variable
32197 declarations at the beginning of function.
32199 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
32201 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
32204 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
32206 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
32207 when backspace is pressed at beginning of line.
32209 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
32211 * DISTLIST: Added genfslist.sh.
32213 * normal/main.c (fs_module_list): New variable.
32214 (autoload_fs_module): New function.
32215 (read_fs_list): Likewise.
32216 (grub_normal_execute): Call read_fs_list.
32218 * kern/fs.c (grub_fs_autoload_hook): New variable.
32219 (grub_fs_probe): Added support for auto-loading.
32221 * include/grub/normal.h (struct grub_fs_module_list): New struct.
32222 (grub_fs_module_list_t): New type.
32224 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
32225 (grub_fs_autoload_hook): New prototype.
32227 * genfslist.sh: New file.
32229 * genmk.rb: Added a rule to generate a filesystem list.
32231 2005-06-30 Marco Gerards <metgerards@student.han.nl>
32233 * configure.ac: Fix the test for cross-compiling.
32235 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
32236 define GRUB_UTIL anymore.
32238 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
32239 so this function works on other systems than just big endian.
32240 (load_modules): Likewise.
32241 (add_segments): Likewise.
32243 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
32245 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
32246 contains `l' modifier, get a long from va_arg().
32248 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
32250 * kern/mm.c (grub_free): If the next free block which is being
32251 merged is the first free block, set the first block to the block
32253 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
32255 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
32257 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
32258 `grub_ieee1275_chosen'.
32260 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
32262 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
32263 (grub_ieee1275_chosen): New variable.
32264 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
32266 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
32267 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
32268 Rename first argument to `phandle' for consistency.
32269 (grub_ieee1275_get_property_length): Likewise.
32270 (grub_ieee1275_next_property): Likewise. Change type of first argument
32271 to grub_ieee1275_phandle_t.
32272 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
32273 Move export next to declaration.
32274 (grub_ieee1275_chosen): New variable.
32275 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
32276 Correct cosmetic typo.
32277 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
32278 `grub_ieee1275_chosen'.
32279 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
32280 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
32281 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
32282 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
32283 `grub_ieee1275_chosen'.
32285 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
32287 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
32289 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
32290 /chosen/bootargs as "variable=value" pairs.
32292 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
32294 * include/grub/misc.h (grub_dprintf): New macro.
32295 (grub_real_dprintf): New prototype.
32296 (grub_strword): Likewise.
32297 (grub_iswordseparator): Likewise.
32298 * kern/misc.c (grub_real_dprintf): New function.
32299 (grub_strword): Likewise.
32300 (grub_iswordseparator): Likewise.
32302 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
32304 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
32305 (roundup): Remove macro.
32306 (grub_ieee1275_flags): Make static.
32307 (grub_ieee1275_realmode): Remove.
32308 (grub_ieee1275_test_flag): New function.
32309 (grub_ieee1275_set_flag): Likewise.
32310 (find_options): Rename to `grub_ieee1275_find_options'; update
32311 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
32312 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
32313 (cmain): New prototype.
32314 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
32315 `grub_ieee1275_flags' directly.
32316 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
32317 machine/biosdisk.h.
32318 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
32319 Don't include grub/machine/init.h.
32320 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
32321 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
32323 (grub_ieee1275_realmode): Likewise.
32324 (grub_ieee1275_flag): New enum.
32325 (grub_ieee1275_test_flag): New prototype.
32326 (grub_ieee1275_set_flag): New prototype.
32327 * include/grub/powerpc/ieee1275/init.h: Remove file.
32328 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
32329 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
32330 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
32331 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
32333 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
32334 `grub_ieee1275_test_flag'.
32335 (grub_ieee1275_encode_devname): Likewise.
32337 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
32339 * include/grub/powerpc/ieee1275/ieee1275.h
32340 (grub_ieee1275_encode_devname): New prototype.
32341 (grub_ieee1275_get_filename): Likewise.
32342 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
32344 (grub_set_prefix): Likewise.
32345 (grub_machine_init): Call grub_set_prefix.
32346 * kern/powerpc/ieee1275/openfw.c: Fix typos.
32347 (grub_parse_type): New enum.
32348 (grub_ieee1275_get_devargs): New function.
32349 (grub_ieee1275_get_devname): Likewise.
32350 (grub_ieee1275_parse_args): Likewise.
32351 (grub_ieee1275_get_filename): Likewise.
32352 (grub_ieee1275_encode_devname): Likewise.
32354 2005-03-30 Marco Gerards <metgerards@student.han.nl>
32356 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
32357 `grub_loader_unset'.
32359 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
32361 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
32362 instead of grub_ieee1275_interpret.
32363 (grub_halt_init): New function.
32364 (grub_halt_fini): Likewise.
32365 (GRUB_MOD_INIT): Correct message grammar.
32366 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
32367 instead of grub_ieee1275_interpret.
32368 (grub_reboot_init): New function.
32369 (grub_reboot_fini): Likewise.
32370 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
32371 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
32372 util/i386/pc/misc.c with commands/ieee1275/halt.c,
32373 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
32374 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
32376 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
32378 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
32380 (grub_halt): Likewise.
32381 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
32382 (cmain): Remove __attribute__((unused)).
32383 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
32384 (grub_heap_len): Likewise.
32385 (grub_machine_fini): New function.
32386 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
32387 (grub_halt): Likewise.
32388 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
32390 * util/powerpc/ieee1275/misc.c: New file.
32392 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
32394 * DISTLIST: New file.
32395 * gendistlist.sh: Likewise.
32397 * Makefile.in (COMMON_DISTFILES): Removed.
32398 (BOOT_DISTFILES): Likewise.
32399 (CONF_DISTFILES): Likewise.
32400 (DISK_DISTFILES): Likewise.
32401 (FS_DISTFILES): Likewise.
32402 (INCLUDE_DISTFILES): Likewise.
32403 (KERN_DISTFILES): Likewise.
32404 (LOADER_DISTFILES): Likewise.
32405 (TERM_DISTFILES): Likewise.
32406 (UTIL_DISTFILES): Likewise.
32407 (DISTFILES): Likewise.
32408 (uninstall): Uninstall files in $(pkgdata_DATA).
32409 (DISTLIST): New target.
32410 (distdir): Use the contents of the file DISTLIST to get a list of
32413 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
32415 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
32416 descriptor. This is ported from GRUB Legacy.
32418 * gencmdlist.sh: Added an extra semicolon to make it work with
32419 old sed versions. Reported by Robert Bihlmeyer
32420 <robbe@orcus.priv.at>.
32422 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
32424 Automatic loading of commands is supported.
32426 * normal/main.c (read_command_list): New function.
32427 (grub_normal_execute): Call read_command_list.
32429 * normal/command.c (grub_register_command): Return zero or CMD.
32430 Allocate CMD->NAME from the heap.
32431 Initialize CMD->MODULE_NAME to zero.
32432 Find the same name as well. If the same command is found and it is
32433 a dummy command, overwrite members. If it is not a dummy command,
32435 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
32436 (grub_command_find): If a dummy command is found, load a module
32437 and retry to find a command only once.
32439 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
32440 make sure that each command is loaded.
32442 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
32444 (struct grub_command): Remove const from the member `name'.
32445 Add a new member `module_name'.
32446 (grub_register_command): Return grub_command_t.
32448 * commands/help.c (grub_cmd_help): Call grub_command_find to make
32449 sure that each command is loaded.
32451 * genmk.rb (PModule::rule): Specify a module name without the
32452 suffix ".mod" to gencmdlist.sh.
32454 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
32456 * gencmdlist.sh: New file.
32458 * genmk.rb (PModule::rule): Generate a rule for a command list.
32460 Generate command.lst from $(COMMANDFILES).
32462 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
32463 (DATA): Added $(pkgdata_DATA).
32464 (install-local): Install files in $(pkgdata_DATA).
32466 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
32468 * term/i386/pc/vga.c (debug_command): Removed.
32469 (GRUB_MOD_INIT): Do not register the command "debug".
32471 From Hollis Blanchard:
32472 * commands/configfile.c: New file.
32473 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
32474 commands/configfile.c.
32475 (pkgdata_MODULES): Added configfile.mod.
32476 (configfile_mod_SOURCES): New variable.
32477 (configfile_mod_CFLAGS): Likewise.
32478 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
32479 commands/configfile.c.
32480 (pkgdata_MODULES): Added configfile.mod.
32481 (configfile_mod_SOURCES): New variable.
32482 (configfile_mod_CFLAGS): Likewise.
32483 * util/grub-emu.c (main): Call grub_configfile_init and
32484 grub_configfile_fini.
32485 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
32487 [GRUB_UTIL] (grub_configfile_fini): Likewise.
32489 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
32491 * normal/arg.c (grub_arg_show_help): Do not show the bug report
32494 * commands/help.c (grub_cmd_help): Do not print newlines after
32495 the last command in print_command_help.
32497 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
32499 * commands/default.h: New file.
32500 * commands/timeout.h: Likewise.
32501 * normal/context.c: Likewise.
32503 * util/misc.c: Do not include sys/times.h.
32504 Include sys/time.h and grub/machine/time.h.
32505 (grub_get_rtc): Rewritten with gettimeofday.
32507 * util/grub-emu.c (main): Call grub_default_init and
32508 grub_timeout_init before grub_normal_init, and call
32509 grub_timeout_fini and grub_default_fini after grub_main.
32511 * util/console.c (grub_ncurses_checkkey): Return the read
32514 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
32517 * normal/main.c (read_config_file): Push MENU. If this fails,
32518 print an error and wait for a user input.
32519 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
32520 If a menu is empty or an error occurs, pop MENU.
32521 (grub_normal_execute): Pop and free MENU after grub_menu_run
32524 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
32526 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
32528 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
32530 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
32532 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
32535 * include/grub/normal.h (struct grub_menu_list): New struct.
32536 (grub_menu_list_t): New type.
32537 (struct grub_context): New struct.
32538 (grub_context_t): New type.
32539 (grub_register_command): Got rid of EXPORT_FUNC.
32540 (grub_unregister_command): Likewise.
32541 (grub_context_get): New prototype.
32542 (grub_context_get_current_menu): Likewise.
32543 (grub_context_push_menu): Likewise.
32544 (grub_context_pop_menu): Likewise.
32545 [GRUB_UTIL] (grub_default_init): Likewise.
32546 [GRUB_UTIL] (grub_default_fini): Likewise.
32547 [GRUB_UTIL] (grub_timeout_init): Likewise.
32548 [GRUB_UTIL] (grub_timeout_fini): Likewise.
32550 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
32551 commands/timeout.c and normal/context.c.
32552 (pkgdata_MODULES): Added default.mod and timeout.mod.
32553 (normal_mod_SOURCES): Added normal/context.c.
32554 (default_mod_SOURCES): New variable.
32555 (default_mod_CFLAGS): Likewise.
32556 (timeout_mod_SOURCES): Likewise.
32557 (timeout_mod_CFLAGS): Likewise.
32558 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
32560 (pkgdata_MODULES): Added default.mod and timeout.mod.
32561 (normal_mod_SOURCES): Added normal/context.c.
32562 (default_mod_SOURCES): New variable.
32563 (default_mod_CFLAGS): Likewise.
32564 (timeout_mod_SOURCES): Likewise.
32565 (timeout_mod_CFLAGS): Likewise.
32567 * Makefile.in (all-local): Added $(MKFILES).
32569 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
32571 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
32572 (grub_emu_SOURCES): Likewise.
32573 (pkgdata_MODULES): Add `sun.mod'.
32574 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
32575 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32577 (pkgdata_MODULES): Add `sun.mod'.
32578 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
32579 * include/grub/partition.h (grub_sun_partition_map_init): New
32581 (grub_sun_partition_map_fini): Likewise.
32582 * partmap/sun.c: New file.
32583 * util/grub-emu.c (main): Initialize and de-initialize the sun
32584 partitionmap support.
32586 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
32588 This implements an Emacs-like menu entry editor.
32590 * normal/menu_entry.c: New file.
32592 * util/console.c (grub_ncurses_putchar): Translate some Unicode
32593 characters to ASCII.
32594 (saved_char): New variable.
32595 (grub_ncurses_checkkey): Rewritten completely.
32596 (grub_ncurses_getkey): Likewise.
32597 (grub_ncurses_init): Call raw instead of cbreak.
32599 * normal/menu.c (print_entry): Do not put a space.
32600 (init_page): Renamed to ...
32601 (grub_menu_init_page): ... this. All callers changed.
32602 (edit_menu_entry): Removed.
32603 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
32605 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
32607 * kern/misc.c (grub_vprintf): Call grub_refresh.
32609 * normal/menu.c (DISP_LEFT): Renamed to ...
32610 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
32611 * normal/menu.c (DISP_UP): Renamed to ...
32612 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
32613 * normal/menu.c (DISP_RIGHT): Renamed to ...
32614 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
32615 * normal/menu.c (DISP_DOWN): Renamed to ...
32616 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
32617 * normal/menu.c (DISP_HLINE): Renamed to ...
32618 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
32619 * normal/menu.c (DISP_VLINE): Renamed to ...
32620 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
32621 * normal/menu.c (DISP_UL): Renamed to ...
32622 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
32623 * normal/menu.c (DISP_UR): Renamed to ...
32624 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
32625 * normal/menu.c (DISP_LL): Renamed to ...
32626 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
32627 * normal/menu.c (DISP_LR): Renamed to ...
32628 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
32629 * normal/menu.c (TERM_WIDTH): Renamed to ...
32630 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
32631 * normal/menu.c (TERM_HEIGHT): Renamed to ...
32632 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
32633 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
32634 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
32635 * normal/menu.c (TERM_MARGIN): Renamed to ...
32636 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
32637 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
32638 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
32639 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
32640 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
32641 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
32642 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
32643 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
32644 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
32645 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
32646 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
32647 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
32648 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
32649 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
32650 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
32651 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
32652 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
32653 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
32654 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
32655 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
32656 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
32657 All callers changed.
32659 * include/grub/normal.h: New prototype.
32661 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
32662 normal/menu_entry.c.
32663 (normal_mod_SOURCES): Likewise.
32664 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
32665 (normal_mod_SOURCES): Likewise.
32667 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
32669 * include/grub/normal.h (grub_halt_init): New prototype.
32670 (grub_halt_fini): Likewise.
32671 (grub_reboot_init): Likewise.
32672 (grub_reboot_fini): Likewise.
32674 * util/grub-emu.c: Include signal.h.
32675 (main_env): New global variable.
32676 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
32678 (grub_machine_fini): New function.
32679 (main): Call grub_halt_init and grub_reboot_init before
32680 grub_main, and grub_reboot_fini and grub_halt_fini after it.
32681 Call setjmp with MAIN_ENV to go back afterwards.
32682 Call grub_machine_fini right before return.
32684 * include/grub/util/misc.h: Include setjmp.h.
32685 (main_env): New prototype.
32687 * include/grub/kernel.h (grub_machine_fini): New prototype.
32688 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
32689 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
32691 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
32692 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
32693 * term/i386/pc/console.c (grub_console_fini): Likewise.
32695 * util/i386/pc/misc.c: New file.
32697 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
32698 util/i386/pc/misc.c, commands/i386/pc/halt.c and
32699 commands/i386/pc/reboot.c.
32701 2005-02-14 Guillem Jover <guillem@hadrons.org>
32703 * include/grub/dl.h (grub_dl_check_header): New prototype.
32704 (grub_arch_dl_check_header): Change return type to grub_err_t,
32705 remove size parameter and export function. Update all callers.
32706 * kern/dl.c (grub_dl_check_header): New function.
32707 (grub_dl_load_core): Use `grub_dl_check_header' instead of
32708 `grub_arch_dl_check_header'. Check ELF type. Check if sections
32709 are inside the core.
32710 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
32711 independent ELF header checks.
32712 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
32713 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
32714 `grub_dl_check_header' instead of explicit checks. Check for the
32716 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
32717 `grub_dl_check_header' instead of explicit checks. Remove arch
32718 specific ELF header checks.
32720 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
32723 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
32725 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
32726 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
32728 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
32730 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
32731 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
32732 (part_map_iterate): Clear `grub_errno' and return 0 if
32733 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
32734 * partmap/amiga.c (amiga_partition_map_iterate): Return
32735 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
32736 * partmap/apple.c (apple_partition_map_iterate): Likewise.
32738 2005-02-01 Guillem Jover <guillem@hadrons.org>
32740 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
32743 2005-01-31 Marco Gerards <metgerards@student.han.nl>
32745 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
32747 (grub_rescue_cmd_linux): New prototype.
32748 (grub_rescue_cmd_initrd): Likewise.
32749 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
32751 (grub_linux_release_mem): Release the memory for the initrd.
32752 (grub_load_linux): Renamed from this...
32753 (grub_rescue_cmd_linux): ...To this. Changed all callers.
32754 Changed `entry' not to be static. Loop over memory regions to
32755 find another one when the default fails.
32756 (grub_rescue_cmd_initrd): New function.
32757 (grub_linux_init): Remove function.
32758 (grub_linux_fini): Likewise.
32759 (GRUB_MOD_INIT): Register `initrd'.
32760 (GRUB_MOD_FINI): Unregister `initrd'.
32761 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
32763 (grub_linux_normal_fini): Likewise.
32764 (GRUB_MOD_INIT): Register `initrd'.
32765 (GRUB_MOD_FINI): Unregister `initrd'.
32767 2005-01-31 Marco Gerards <metgerards@student.han.nl>
32769 * commands/help.c: New file.
32770 * normal/arg.c (show_help): Renamed to...
32771 (grub_arg_show_help): ... this.
32772 * commands/i386/pc/halt.c: New file.
32773 * commands/i386/pc/reboot.c: Likewise.
32774 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
32775 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
32776 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
32777 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
32779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32781 (pkgdata_MODULES): Add `help.mod'.
32782 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
32783 * grub/i386/pc/init.h (grub_reboot): New prototype.
32784 (grub_halt): Likewise.
32785 * include/grub/normal.h (grub_arg_show_help): New prototype.
32786 (grub_help_init): Likewise.
32787 (grub_help_fini): Likewise.
32788 * util/grub-emu.c (main): Initialize and deinitialize the help
32791 * normal/cmdline.c (grub_cmdline_get): Doc fix.
32793 * normal/command.c (grub_command_init): Fixed the description of
32794 the `set' and `unset' commands.
32796 2005-01-31 Marco Gerards <metgerards@student.han.nl>
32798 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
32800 * commands/ieee1275/halt.c: New file.
32801 * commands/ieee1275/reboot.c: Likewise.
32802 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
32803 `__attribute__ ((unused))'. Some GCS related fixed.
32804 (grub_suspend_init) [GRUB_UTIL]: Function removed.
32805 (grub_suspend_fini): Likewise.
32806 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
32808 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
32809 (halt_mod_CFLAGS): New variables.
32810 * include/grub/powerpc/ieee1275/ieee1275.h
32811 (grub_ieee1275_interpret): New prototype.
32813 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
32815 * include/grub/misc.h (memmove): New prototype.
32816 (memcpy): Likewise.
32818 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
32820 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
32821 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
32823 2005-01-22 Marco Gerards <metgerards@student.han.nl>
32825 * kern/misc.c (grub_strndup): Function rewritten.
32827 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
32829 * normal/menu.c (TERM_WIDTH): Macro redefined.
32830 (TERM_TOP_BORDER_Y): Likewise.
32831 (draw_border): Replaced while-loop by a for-loop. Make the number
32832 of lines consistent with the number of lines displayed in
32833 print_entries. Added a margin below the rectangle.
32834 (print_entry): Make the entry fit in the rectangle.
32835 (print_entries): Display the scroll arrows next to the right
32838 2005-01-21 Marco Gerards <metgerards@student.han.nl>
32840 * fs/minix.c (grub_minix_find_file): Reserve more space for
32841 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
32842 `grub_strncpy' to copy `path' into it.
32844 2005-01-21 Marco Gerards <metgerards@student.han.nl>
32846 Add the loopback device, a device via which files can be accessed
32849 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
32850 (pkgdata_MODULES): Add loopback.mod.
32851 (loopback_mod_SOURCES): New variable.
32852 (loopback_mod_CFLAGS): Likewise.
32853 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
32855 (pkgdata_MODULES): Add loopback.mod.
32856 (loopback_mod_SOURCES): New variable.
32857 (loopback_mod_CFLAGS): Likewise.
32858 * disk/loopback.c: new file.
32859 * include/grub/normal.h (grub_loop_init): New prototype.
32860 (grub_loop_fini): New prototype.
32861 * util/grub-emu.c (main): Initialize and de-initialize loopback
32863 * include/grub/disk.h (grub_disk_dev_id): Add
32864 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
32866 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
32868 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
32870 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
32871 (suspend_mod_SOURCES): New variable.
32872 (suspend_mod_CFLAGS): Likewise.
32873 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
32875 * commands/ieee1275/suspend.c: New file.
32877 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
32879 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
32880 ((unused))' to `__attribute__ ((used))'.
32881 (GRUB_MOD_FINI): Likewise.
32882 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
32883 * genmk.rb (PModule): Assign space to common symbols when linking
32886 2005-01-20 Marco Gerards <metgerards@student.han.nl>
32888 * include/grub/mm.h (grub_mm_init_region): Change the type of the
32889 `unsigned' arguments to `grub_size_t'.
32890 (grub_malloc): Likewise.
32891 (grub_realloc): Likewise.
32892 (grub_memalign): Likewise.
32893 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
32894 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
32895 * util/misc.c (grub_malloc): Likewise.
32896 (grub_realloc): Likewise.
32897 * kern/mm.c (get_header_from_pointer): Change the casts to
32898 `unsigned' into a cast to `grub_size_t'.
32900 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
32901 point to `currnode' when `currnode' is changed.
32903 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
32904 Schottelius <nico-linux@schottelius.org>.
32906 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
32908 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
32909 (note_path): Remove variable.
32910 (GRUB_IEEE1275_NOTE_NAME): New macro.
32911 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
32912 (grub_ieee1275_note_hdr): New structure.
32913 (grub_ieee1275_note_desc): Likewise.
32914 (grub_ieee1275_note): Likewise.
32915 (load_note): Remove `dir' argument. All callers updated. Remove
32916 `note_img' and `path'. Do not load a file from `note_path'.
32917 Initialize a struct grub_ieee1275_note and write that to `out'.
32918 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
32920 2005-01-05 Marco Gerards <metgerards@student.han.nl>
32922 * util/misc.c (grub_util_read_image): Revert last change. It
32923 called `grub_util_read_at', which seeks from the beginning of the
32926 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
32928 * TODO: Add note about endianness in grub-mkimage.
32929 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
32931 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
32932 (grub_mkimage_SOURCES): New target.
32933 * include/grub/kernel.h (grub_start_addr): Remove variable.
32934 (grub_end_addr): Likewise.
32935 (grub_total_module_size): Likewise.
32936 (grub_kernel_image_size): Likewise.
32937 (GRUB_MODULE_MAGIC): New constant.
32938 (grub_module_info): New structure.
32939 (grub_arch_modules_addr): New prototype.
32940 (grub_get_end_addr): Remove prototype.
32941 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
32942 * include/grub/powerpc/ieee1275/kernel.h: New file.
32943 * include/grub/util/misc.h (grub_util_get_fp_size): New
32945 (grub_util_read_at): Likewise.
32946 (grub_util_write_image_at): Likewise.
32947 * kern/main.c (grub_get_end_addr): Remove function.
32948 (grub_load_modules): Call grub_arch_modules_addr instead of using
32949 grub_end_addr. Look for a grub_module_info struct in memory. Use
32950 the grub_module_info fields instead of calling grub_get_end_addr
32951 as loop conditions. Move grub_add_unused_region code here.
32952 (grub_add_unused_region): Remove function.
32953 * kern/i386/pc/init.c: Include grub/cache.h.
32954 (grub_machine_init): Remove call to grub_get_end_addr. Remove
32955 one call to add_mem_region.
32956 (grub_arch_modules_addr): New function.
32957 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
32958 (grub_total_module_size): Likewise.
32959 Include grub/machine/kernel.h.
32960 (grub_arch_modules_addr): New function.
32961 * util/grub-emu.c (grub_end_addr): Remove variable.
32962 (grub_total_module_size): Likewise.
32963 (grub_arch_modules_addr): New function.
32964 * util/misc.c: Include unistd.h.
32965 (grub_util_get_fp_size): New function.
32966 (grub_util_read_at): Likewise.
32967 (grub_util_write_image_at): Likewise.
32968 (grub_util_read_image): Call grub_util_read_at.
32969 (grub_util_write_image): Call grub_util_write_image_at.
32970 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
32971 additional memory in kernel_img for a struct grub_module_info.
32972 Fill in that grub_module_info.
32973 * util/powerpc/ieee1275/grub-mkimage.c: New file.
32975 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
32977 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
32979 * include/grub/powerpc/ieee1275/ieee1275.h
32980 (grub_ieee1275_milliseconds): New prototype.
32981 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
32983 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
32984 grub_ieee1275_milliseconds.
32986 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
32988 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
32990 (find_options): New function.
32991 (cmain): Call find_options.
32992 * include/grub/powerpc/ieee1275/ieee1275.h
32993 (grub_ieee1275_realmode): New extern variable.
32994 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
32995 grub_map if grub_ieee1275_realmode is false.
32997 2004-12-29 Marco Gerards <metgerards@student.han.nl>
32999 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
33000 lines are inserted and make it work like readline. Reported by
33001 Vincent Pelletier <subdino2004@yahoo.fr>.
33003 2004-12-28 Marco Gerards <metgerards@student.han.nl>
33005 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
33007 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
33008 `kern/powerpc/cache.S'.
33010 2004-12-27 Marco Gerards <metgerards@student.han.nl>
33012 * genmk.rb: Handle the `Program' class in the main loop. Written
33013 by Johan Rydberg <jrydberg@gnu.org>.
33014 (Program): New class.
33015 (programs): New variable.
33016 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
33017 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
33018 instead of "grub/kernel.h". Include <grub/machine/init.h>.
33019 (help_arch): Function removed.
33020 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
33021 `powerpc/libgcc.h' and `loader.h'.
33022 (pkgdata_PROGRAMS): New variable.
33023 (sbin_UTILITIES): Variable removed.
33024 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
33025 (grubof_SOURCES): Variable re-defined so it only includes the
33026 core functionality.
33027 (grubof_CFLAGS): Remove `-DGRUBOF'.
33028 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
33029 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
33030 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
33031 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
33032 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
33033 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
33034 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
33035 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
33036 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
33037 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
33038 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
33039 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
33040 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
33041 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
33042 (pc_mod_CFLAGS): New variables.
33043 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
33044 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
33045 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
33046 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
33048 * include/grub/i386/pc/init.h (grub_os_area_addr)
33049 (rub_os_area_size): ... to here.
33050 * include/grub/powerpc/ieee1275/ieee1275.h
33051 (grub_ieee1275_entry_fn): Export symbol.
33052 * include/grub/powerpc/ieee1275/init.h: New file.
33053 * include/grub/powerpc/libgcc.h: Likewise.
33054 * include/grub/cache.h: Likewise.
33055 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
33056 <hollis@penguinppc.org>.
33057 * kern/dl.c: Include <grub/cache.h>.
33058 (grub_dl_flush_cache): New function.
33059 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
33061 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
33062 (grub_console_init): Removed prototypes.
33063 (grub_machine_init): Don't initialize the modules anymore.
33064 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
33066 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
33067 Macro undef removed.
33068 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
33069 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
33070 relocation `R_PPC_REL32'. Return an error when the relocation is
33072 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
33073 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
33074 * util/misc.c (grub_arch_sync_caches): Likewise.
33076 2004-12-19 Marco Gerards <metgerards@student.han.nl>
33078 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
33079 `symlist.c', add `grubof_symlist.c'.
33080 (symlist.c): Variable removed.
33081 (grubof_HEADERS): Variable added.
33082 (grubof_symlist.c): New target.
33083 (kernel_syms.lst): Use `grubof_HEADERS' instead of
33084 `kernel_img_HEADERS'.
33085 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
33086 * kern/powerpc/dl.c: New file.
33087 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
33089 (grub_arch_dl_relocate_symbols): Likewise.
33090 (grub_register_exported_symbols): Likewise.
33092 2004-12-13 Marco Gerards <metgerards@student.han.nl>
33094 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
33095 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
33096 to fail instead. Reported by Vincent Pelletier
33097 <subdino2004@yahoo.fr>.
33099 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
33100 it is not allocated. Reported by Vincent Pelletier
33101 <subdino2004@yahoo.fr>.
33103 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
33104 output so the output looks better.
33106 2004-12-04 Marco Gerards <metgerards@student.han.nl>
33108 Modulize the partition map support and add support for the amiga
33111 * commands/ls.c: Include <grub/partition.h> instead of
33112 <grub/machine/partition.h>.
33113 * kern/disk.c: Likewise.
33114 * kern/rescue.c: Likewise.
33115 * loader/i386/pc/chainloader.c: Likewise.
33116 * normal/cmdline.c: Likewise.
33117 * kern/powerpc/ieee1275/init.c: Likewise.
33118 (grub_machine_init): Call `grub_pc_partition_map_init',
33119 `grub_amiga_partition_map_init' and
33120 `grub_apple_partition_map_init'.
33121 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
33122 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
33123 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
33124 `partition.h' and `pc_partition.h'.
33125 (grub_setup_SOURCES): Remove
33126 `disk/i386/pc/partition.c'. Add `kern/partition.c',
33127 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
33128 (grub_emu_SOURCES): Likewise.
33129 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
33130 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
33131 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
33132 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
33133 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
33134 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
33135 (grubof_SOURCES): Likewise.
33136 * disk/i386/pc/partition.c: File removed.
33137 * disk/powerpc/ieee1275/partition.c: Likewise.
33138 * include/grub/powerpc/ieee1275/partition.h: Likewise.
33139 * include/grub/i386/pc/partition.h: Likewise.
33140 * kern/partition.c: New file.
33141 * partmap/amiga.c: Likewise.
33142 * partmap/apple.c: Likewise.
33143 * partmap/pc.c: Likewise.
33144 * include/grub/partition.h: Likewise..
33145 * include/grub/pc_partition.h: Likewise.
33146 * util/grub-emu.c: Include <grub/partition.h> instead of
33147 <grub/machine/partition.h>.
33148 (main): Call `grub_pc_partition_map_init',
33149 `grub_amiga_partition_map_init' and
33150 `grub_apple_partition_map_init' and deinitialize afterwards.
33151 * util/i386/pc/biosdisk.c: Include `#include
33152 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
33153 `<grub/machine/partition.h>'.
33154 * util/i386/pc/grub-setup.c: Likewise.
33155 * util/i386/pc/biosdisk.c: Likewise.
33156 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
33157 partition information in case of a PC partition.
33158 * util/i386/pc/grub-setup.c: Include `#include
33159 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
33160 `<grub/machine/partition.h>'.
33161 (setup): Only access the PC specific partition information in case
33164 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
33166 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
33167 (grub_longjmp): Likewise.
33168 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
33170 * normal/powerpc/setjmp.S: New file.
33171 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
33172 `normal/powerpc/setjmp.S'.
33173 (grubof_CFLAGS): Add `-DGRUBOF'.
33174 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
33175 [GRUB_UTIL && !GRUBOF].
33177 2004-11-16 Marco Gerards <metgerards@student.han.nl>
33179 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
33180 property named `name'. Correctly handle the error returned by
33181 `grub_ieee1275_finddevice' if a device can not be opened.
33183 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
33185 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
33186 `actual' for negativity.
33187 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
33190 2004-11-01 Marco Gerards <metgerards@student.han.nl>
33192 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
33193 (PAGE_OFFSET): New macro.
33194 (CRTC_ADDR_PORT): Likewise.
33195 (CRTC_DATA_PORT): Likewise.
33196 (START_ADDR_HIGH_REGISTER): Likewise.
33197 (START_ADDR_LOW_REGISTER): Likewise.
33198 (GRAPHICS_ADDR_PORT): Likewise.
33199 (GRAPHICS_DATA_PORT): Likewise.
33200 (READ_MAP_REGISTER): Likewise.
33201 (INPUT_STATUS1_REGISTER): Likewise.
33202 (INPUT_STATUS1_VERTR_BIT): Likewise.
33203 (page): New variable.
33204 (wait_vretrace): New function.
33205 (set_read_map): Likewise.
33206 (set_start_address): Likewise.
33207 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
33209 (check_vga_mem): Take the page into account.
33210 (write_char): Likewise.
33211 (write_cursor): Likewise.
33212 (scroll_up): Likewise. Copy the page to the page that is not
33213 shown and switch between both pages.
33214 (grub_vga_putchar): Fix off by one error.
33215 (grub_vga_cls): Wait for the vertical retrace. Take the page into
33218 2004-11-01 Marco Gerards <metgerards@student.han.nl>
33220 Add support for iso9660 (including rockridge).
33222 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
33223 (iso9660_mod_SOURCES): New variable.
33224 (iso9660_mod_CFLAGS): Likewise.
33225 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
33226 * include/grub/fs.h (grub_iso9660_init): New prototype.
33227 * util/grub-emu.c (main): Call `grub_iso9660_init'.
33228 * fs/iso9660.c: New file.
33230 * include/grub/misc.h (grub_strncat): New prototype.
33231 * kern/misc.c (grub_strncat): New function.
33233 * fs/hfs.c (grub_hfs_mount): Translate the error
33234 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
33235 * fs/jfs.c (grub_jfs_mount): Likewise.
33236 * fs/ufs.c (grub_ufs_mount): Likewise.
33238 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
33240 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
33241 which initialized BAT registers.
33242 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
33243 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
33245 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
33246 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
33248 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
33249 (grub_mapclaim): Likewise.
33250 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
33251 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
33254 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
33256 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
33257 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
33258 -ffreestanding and -msoft-float.
33260 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
33262 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
33263 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
33264 set in grub_ieee1275_flags.
33266 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
33268 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
33270 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
33271 grub_console_init first.
33272 Change the memory range used for grub_ieee1275_claim and
33273 grub_mm_init_region.
33274 Print an error message if the claim fails.
33275 Include <grub/misc.h>.
33277 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
33279 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
33280 Call grub_children_iterate for device nodes of type `scsi',
33282 (grub_ofdisk_open): Remove manual device alias resolution.
33283 Fix memory leak when device cannot be opened.
33284 * include/grub/powerpc/ieee1275/ieee1275.h
33285 (grub_children_iterate): New prototype.
33286 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
33288 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
33289 Return -1 if args.size was -1.
33291 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
33293 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
33294 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
33295 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
33296 Open Firmware's memory for it; claim memory from _start to _end.
33297 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
33298 (_end): New extern.
33299 (_start): Zero BSS from __bss_start to _end.
33300 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
33302 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
33304 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
33306 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
33307 -1 if args.base was -1.
33309 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
33311 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
33312 escape sequence instead of a literal ^L. Also call
33313 grub_ofconsole_gotoxy.
33315 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
33317 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
33318 void * arguments to grub_addr_t. All callers updated. Also make
33319 the `result' argument optional.
33320 (grub_ieee1275_release): change void * arguments to grub_addr_t.
33321 All callers updated.
33323 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
33325 * commands/ls.c (grub_ls_list_files): Use the string following the
33326 initial ')', if present, as the filesystem path.
33327 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
33329 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
33331 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
33333 Make the source code of the menu interface more readable.
33335 * normal/menu.c: Include grub/mm.h.
33336 (TERM_WIDTH): New macro.
33337 (TERM_HEIGHT): Likewise.
33338 (TERM_INFO_HEIGHT): Likewise.
33339 (TERM_MARGIN): Likewise.
33340 (TERM_SCROLL_WIDTH): Likewise.
33341 (TERM_TOP_BORDER_Y): Likewise.
33342 (TERM_LEFT_BORDER_X): Likewise.
33343 (TERM_BORDER_WIDTH): Likewise.
33344 (TERM_MESSAGE_HEIGHT): Likewise.
33345 (TERM_BORDER_HEIGHT): Likewise.
33346 (TERM_NUM_ENTRIES): Likewise.
33347 (TERM_FIRST_ENTRY_Y): Likewise.
33348 (TERM_ENTRY_WIDTH): Likewise.
33349 (TERM_CURSOR_X): Likewise.
33350 (draw_border): Use macros instead of magic numbers.
33351 (print_entry): Likewise.
33352 (print_entries): Likewise.
33353 (run_menu): Likewise. Also, handle the key 'e'.
33354 (run_menu_entry): Ignore empty command lines.
33355 (print_message): Added a new argument EDIT. If EDIT is true,
33356 print a different message.
33357 (init_page): Likewise.
33358 (edit_menu_entry): New function. Not implemented yet.
33360 2004-09-17 Marco Gerards <metgerards@student.han.nl>
33362 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
33363 can be loaded from normal mode.
33365 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
33367 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
33368 (multiboot_mod_CFLAGS): New variables.
33369 * loader/i386/pc/linux_normal.c: New file.
33370 * loader/i386/pc/multiboot_normal.c: Likewise.
33372 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
33373 attribute `unused'.
33375 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
33376 `fdiro' to read the mode information from instead of `diro'.
33378 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
33379 looking up a symlink.
33381 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
33383 * normal/command.c (grub_command_execute): Don't parse the
33384 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
33385 flags of the command.
33387 * normal/menu.c (grub_menu_run): Fix typo.
33389 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
33391 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
33393 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
33394 `y + 1' instead of `y - 1'.
33396 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
33398 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
33400 From Hollis Blanchard <hollis@penguinppc.org>:
33401 * kern/misc.c (memmove): New alias for grub_memmove.
33402 (memcmp): New alias for grub_memcmp.
33403 (memset): New alias for grub_memset.
33404 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
33405 Change "int handle" to "grub_ieee1275_phandle_t handle".
33406 * include/grub/powerpc/ieee1275/ieee1275.h
33407 (grub_ieee1275_get_property): Likewise.
33409 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
33411 Added normal mode command `chainloader' as module chain.mod, which
33412 depends on normal.mod and _chain.mod.
33414 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
33415 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
33416 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
33418 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
33419 but arguments parsing moved to ...
33420 (grub_chainloader_cmd): ... here. New function.
33421 * include/grub/i386/pc/chainloader.h: New file.
33422 * loader/i386/pc/chainloader_normal.c: Likewise.
33424 2004-09-11 Marco Gerards <metgerards@student.han.nl>
33426 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
33427 (grub_mkimage_LDFLAGS): Likewise.
33428 (grub_emu_SOURCES): Likewise.
33429 (kernel_img_HEADERS): Added fshelp.h.
33430 * fs/ext2.c: Include <grub/fshelp.h>.
33431 (FILETYPE_REG): New macro.
33432 (FILETYPE_INO_REG): Likewise.
33433 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
33435 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
33437 (grub_fshelp_node): New struct.
33438 (grub_ext2_data): Added member `diropen'. Changed member `inode'
33440 (grub_ext2_get_file_block): Removed function.
33441 (grub_ext2_read_block): New function.
33442 (grub_ext2_read_file): Replaced parameter `data' by `node'.
33443 This function was written.
33444 (grub_ext2_mount): Read the root inode. Create a diropen struct.
33445 (grub_ext2_find_file): Removed function.
33446 (grub_ext2_read_symlink): New function.
33447 (grub_ext2_iterate_dir): Likewise.
33448 (grub_ext2_open): Rewritten.
33449 (grub_ext2_dir): Rewritten.
33450 * include/grub/fshelp.h: New file.
33451 * fs/fshelp.c: Likewise.
33453 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
33455 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
33456 (print_message): Add a missing newline.
33457 (run_menu): Added timeout support.
33458 (run_menu_entry): New local function.
33459 (grub_menu_run): Added support for booting.
33461 * kern/loader.c (grub_loader_is_loaded): New function.
33463 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
33464 (grub_get_rtc): Exported.
33466 * include/grub/i386/pc/time.h: Include grub/symbol.h.
33467 (grub_get_rtc): Exported.
33469 * include/grub/normal.h (struct grub_command_list): Remove
33470 constant from the member `command'.
33472 * include/grub/loader.h (grub_loader_is_loaded): Declared.
33474 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
33476 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
33478 2004-08-28 Marco Gerards <metgerards@student.han.nl>
33480 Add support for the JFS filesystem.
33482 * fs/jfs.c: New file.
33483 * include/grub/fs.h (grub_jfs_init): New prototype.
33484 (grub_jfs_fini): New prototype.
33485 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
33486 (grub_emu_SOURCES): Likewise.
33487 (pkgdata_MODULES): Add jfs.mod.
33488 (jfs_mod_SOURCES): New variable.
33489 (jfs_mod_CFLAGS): Likewise.
33490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
33491 (grubof_SOURCES): Likewise.
33492 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
33494 * fs/fat.c (grub_fat_find_dir): Convert the filename little
33495 endian to the host endian.
33496 (grub_fat_utf16_to_utf8): Move function from there...
33497 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
33498 the endianness of the source string anymore.
33499 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
33501 2004-08-24 Marco Gerards <metgerards@student.han.nl>
33503 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
33504 (grub_boot_fini) [GRUB_UTIL]: Likewise.
33505 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
33506 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
33508 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
33509 (grub_hfs_iterate_dir): Make the function static. Add prototypes
33510 for `node_found' and `it_dir'.
33511 (grub_hfs_dir): Add prototype for `dir_hook'.
33513 * fs/minix.c (grub_minix_get_file_block): Add prototype for
33514 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
33515 and `indir32' to silence a gcc warning.
33517 * include/grub/fs.h (grub_hfs_init): New prototype.
33518 (grub_hfs_fini): Likewise.
33521 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
33523 Each disk device has its own id now. This is useful to make use
33524 of multiple disk devices.
33526 * include/grub/disk.h (grub_disk_dev_id): New enum.
33527 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
33528 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
33530 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
33531 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
33533 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
33534 GRUB_DISK_DEVICE_OFDISK_ID as an id.
33536 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
33537 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
33539 * include/grub/disk.h (struct grub_disk_dev): Added a new member
33540 "id" which is used by the cache manager.
33542 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
33545 2004-08-18 Marco Gerards <metgerards@student.han.nl>
33547 * fs/hfs.c: New file.
33548 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
33549 (grub_emu_SOURCES): Likewise.
33550 (pkgdata_MODULES): Add hfs.mod.
33551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
33552 (grubof_SOURCES): Likewise.
33553 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
33555 * include/grub/misc.h (grub_strncasecmp): Add prototype.
33556 * kern/misc.c (grub_strncasecmp): Add function.
33558 2004-08-14 Marco Gerards <metgerards@student.han.nl>
33560 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
33563 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
33564 (grub_ext2_dir): In case the directory entry type is unknown, read
33567 2004-08-02 Peter Bruin <pjbruin@dds.nl>
33569 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
33570 grub_load_linux instead of grub_rescue_cmd_linux as second
33571 argument of grub_rescue_register_command.
33573 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
33575 2004-07-27 Marco Gerards <metgerards@student.han.nl>
33577 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
33579 * commands/boot.c: Remove the check for `GRUB_UTIL'.
33580 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
33581 `loader/powerpc/ieee1275/linux.c',
33582 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
33583 * include/grub/powerpc/ieee1275/ieee1275.h
33584 (grub_ieee1275_release): New prototype.
33585 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
33586 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
33587 normal, boot, linux and linux_normal.
33588 * loader/powerpc/ieee1275/linux.c: New file.
33589 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33591 2004-07-12 Marco Gerards <metgerards@student.han.nl>
33593 * normal/arg.c (grub_arg_parse): Correct error handling after
33594 reallocating the argumentlist (check if `argl' is not null instead
33595 of checking if `args' is not null).
33596 * kern/mm.c (grub_realloc): Return the same pointer when using the
33597 same region, instead of returning the header address.
33599 2004-07-11 Marco Gerards <metgerards@student.han.nl>
33601 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
33602 one block instead of two when looking for the initial partition.
33603 (grub_partition_probe): Initialize the local variable `p' with 0.
33604 Use base 10 for the grub_strtoul call.
33605 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
33606 need for one local variable.
33607 (grub_strtoul): Don't add the new value to `num', instead of that
33610 2004-07-11 Marco Gerards <metgerards@student.han.nl>
33612 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
33613 (pxeboot_img_SOURCES): New variable.
33614 (pxeboot_img_ASFLAGS): Likewise.
33615 (pxeboot_img_LDFLAGS): Likewise.
33616 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
33617 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
33618 <lode_leroy@hotmail.com>.
33620 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
33622 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
33623 there was no input.
33625 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
33627 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
33628 the history buffer logic.
33630 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
33632 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
33633 (FILETYPE_INO_SYMLINK): New macros.
33634 (grub_ext2_find_file): Check if the node is a directory using the
33635 inode stat information instead of using the filetype in the
33636 dirent. Exclude the first character of an absolute symlink.
33637 (grub_ext2_dir): Mask out the filetype part of the mode member of
33640 2004-05-24 Marco Gerards <metgerards@student.han.nl>
33642 Add support for UFS version 1 and 2. Add support for the minix
33643 filesystem version 1 and 2, both the variants with 14 and 30 long
33646 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
33648 (grub_emu_SOURCES): Likewise.
33649 (pkgdata_MODULES): Add ufs.mod and minix.mod.
33650 (ufs_mod_SOURCES): New variable.
33651 (ufs_mod_CFLAGS): Likewise.
33652 (minix_mod_SOURCES): Likewise.
33653 (minix_mod_CFLAGS): Likewise.
33654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
33656 (grubof_SOURCES): Likewise.
33657 * fs/ufs.c: New file.
33658 * fs/minix.c: New file.
33659 * include/grub/fs.h (grub_ufs_init): New prototype.
33660 (grub_ufs_fini): Likewise.
33661 (grub_minix_init): Likewise.
33662 (grub_minix_fini): Likewise.
33663 * util/grub-emu.c (main): Initialize and deinitialize UFS and
33666 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
33668 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
33669 commands/ls.c, commands/terminal.c, commands/boot.c,
33670 commands/cmp.c and commands/cat.c.
33671 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
33673 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
33676 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33678 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
33679 and grub_, respectively. Because the conversion is trivial and
33680 mechanical, I omit the details here. Please refer to the CVS
33681 if you need more information.
33683 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33685 * include/pupa: Renamed to ...
33686 * include/grub: ... this.
33687 * util/i386/pc/pupa-mkimage.c: Renamed to ...
33688 * util/i386/pc/grub-mkimage.c: ... this.
33689 * util/i386/pc/pupa-setup.c: Renamed to ...
33690 * util/i386/pc/grub-setup.c: ... this.
33691 * util/pupa-emu.c: Renamed to ...
33692 * util/grub-emu.c: ... this.
33694 2004-03-29 Marco Gerards <metgerards@student.han.nl>
33696 Add support for the newworld apple macintosh (PPC). This has been
33697 tested on the powerbook 2000 only. It only adds support for
33698 generic ieee1275 functions, console and disk support. This should
33699 be easy to port to other architectures with support for Open
33702 * configure.ac: Accept the powerpc as host_cpu. In the case of
33703 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
33704 specific tests are only executed while building for the i386.
33705 Inverse test for crosscompile.
33706 * genmk.rb (Utility): Allow assembler files.
33707 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
33708 * conf/powerpc-ieee1275.rmk: New file.
33709 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
33710 * disk/powerpc/ieee1275/partition.c: Likewise.
33711 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
33712 * include/pupa/powerpc/ieee1275/console.h: Likewise.
33713 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
33714 * include/pupa/powerpc/ieee1275/time.h: Likewise.
33715 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
33716 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
33717 * include/pupa/powerpc/ieee1275/loader.h
33718 * include/pupa/powerpc/setjmp.h: Likewise.
33719 * include/pupa/powerpc/types.h: Likewise.
33720 * kern/powerpc/ieee1275/init.c: Likewise.
33721 * kern/powerpc/ieee1275/openfw.c: Likewise.
33722 * term/powerpc/ieee1275/ofconsole.c: Likewise.
33724 These files were written by Johan Rydberg
33725 (jrydberg@night.trouble.net) and I only modified them slightly.
33727 * boot/powerpc/ieee1275/cmain.c: New file.
33728 * boot/powerpc/ieee1275/crt0.S: Likewise.
33729 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
33730 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
33732 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
33734 * Makefile.in: Update copyright.
33735 * genmodsrc.sh: Likewise.
33736 * gensymlist.sh: Likewise.
33737 * term/i386/pc/vga.c: Indent correctly.
33739 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
33740 bugreporting address.
33741 * util/i386/pc/pupa-setup.c (usage): Likewise,
33742 (main): Call pupa_ext2_init and pupa_ext2_fini.
33744 * fs/fat.c (log2): Renamed to ...
33745 (fat_log2): ... this.
33746 All callers changed.
33747 * kern/misc.c (memcpy): Alias to pupa_memmove.
33748 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
33750 * util/console.c (pupa_ncurses_fini): Return 0.
33752 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
33753 Move fail label here.
33754 [__GNU__]: Don't warn when using stat.
33755 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
33756 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
33757 long int. Use strtol instead of strtoul.
33759 2004-03-14 Marco Gerards <metgerards@student.han.nl>
33761 * commands/boot.c: New file.
33762 * commands/cat.c: Likewise.
33763 * commands/cmp.c: Likewise.
33764 * commands/ls.c: Likewise.
33765 * commands/terminal.c: Likewise.
33766 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
33767 (pupa_register_command): Changed interface to match the new
33769 (pupa_command_execute): Changed (almost rewritten) so it uses
33770 pupa_split_command. Added support for setting variables using the
33772 (rescue_command): Changed to work with the new argument parser.
33773 (terminal_command): Moved from here to commands/terminal.c.
33774 (set_command): New function.
33775 (unset_command): New function.
33776 (insmod_command): New function.
33777 (rmmod_command): New function.
33778 (lsmod_command): New function.
33779 (pupa_command_init): Don't initialize the command terminal
33780 anymore. Initialize the commands set, unset, insmod, rmmod and
33782 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
33783 (kernel_img_HEADERS): Add arg.h and env.h.
33784 (pupa_mkimage_LDFLAGS): Add kern/env.c.
33785 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
33786 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
33788 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
33790 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
33791 (boot_mod_SOURCES): New variable.
33792 (terminal_mod_SOURCES): Likewise.
33793 (ls_mod_SOURCES): Likewise.
33794 (cmp_mod_SOURCES): Likewise.
33795 (cat_mod_SOURCES): Likewise.
33797 * normal/arg.c: New file.
33798 * kern/env.c: Likewise.
33799 * include/pupa/arg.h: Likewise.
33800 * include/pupa/env.h: Likewise.
33801 * font/manager.c (font_command): Changed to match argument parsing
33803 (PUPA_MOD_INIT): Likewise.
33804 * hello/hello.c (pupa_cmd_hello): Likewise.
33805 (PUPA_MOD_INIT): Likewise.
33806 * include/pupa/disk.h: Include <pupa/device.h>.
33807 (pupa_print_partinfo): New prototype.
33808 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
33809 (pupa_dl_get_prefix): Likewise.
33810 * include/pupa/misc.h: Include <pupa/err.h>.
33811 (pupa_isgraph): New prototype.
33812 (pupa_isdigit): Likewise.
33813 (pupa_split_cmdline): Likewise.
33814 * include/pupa/normal.h: Include <pupa/arg.h>.
33815 (pupa_command): Changed the prototype of the member `func' to
33816 match the argument parsing interface. Added member `options'.
33817 (pupa_register_command): Updated to match function.
33818 (pupa_arg_parse): New prototype.
33819 (pupa_hello_init) [PUPA_UTIL]: New prototype.
33820 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
33821 (pupa_ls_init) [PUPA_UTIL]: Likewise.
33822 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
33823 (pupa_cat_init) [PUPA_UTIL]: Likewise.
33824 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
33825 (pupa_boot_init) [PUPA_UTIL]: Likewise.
33826 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
33827 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
33828 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
33829 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
33830 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
33831 * kern/disk.c: Include <pupa/file.h>.
33832 (pupa_print_partinfo): New function.
33833 * kern/dl.c: Include <pupa/env.h>.
33834 (pupa_dl_dir): Variable removed.
33835 (pupa_dl_load): Use the environment variable `prefix' instead of
33836 the variable pupa_dl_dir.
33837 (pupa_dl_set_prefix): Function removed.
33838 (pupa_dl_get_prefix): Likewise.
33839 * kern/i386/pc/init.c: Include <pupa/env.h>.
33840 (pupa_machine_init): Use the environment variable `prefix' instead of
33841 using pupa_dl_set_prefix to set the prefix.
33842 * kern/main.c: Include <pupa/env.h>.
33843 (pupa_set_root_dev): Use the environment variable `prefix' instead of
33844 using pupa_dl_get_prefix to get the prefix.
33845 * kern/misc.c: Include <pupa/env.h>.
33846 (pupa_isdigit): New function.
33847 (pupa_isgraph): Likewise.
33848 (pupa_ftoa): Likewise.
33849 (pupa_vsprintf): Added support for printing values of the type
33850 `double'. Make it possible to format variable output when using
33851 formatting like `%1.2%f'.
33852 (pupa_split_cmdline): New function.
33853 * kern/rescue.c: Include <pupa/env.h>.
33854 (next_word): Removed function.
33855 (pupa_rescue_cmd_prefix): Likewise.
33856 (pupa_rescue_cmd_set): New function.
33857 (pupa_rescue_cmd_unset): New function.
33858 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
33859 split the command line instead of splitting it here. Added
33860 support for setting variables using the syntax `foo=bar'. Don't
33861 initialize the prefix command anymore. Initialized the set and
33863 * normal/cmdline.c: Include <pupa/env.h>.
33864 (pupa_tab_complete): Added prototypes for print_simple_completion,
33865 print_partition_completion, add_completion, iterate_commands,
33866 iterate_dev, iterate_part and iterate_dir. Moved code to print
33867 partition information from here to kern/disk.c.
33868 (pupa_cmdline_run): Don't check if the function exists anymore.
33869 * normal/main.c: Include <pupa/env.h>.
33870 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
33871 instead of using pupa_dl_get_prefix to get the prefix.
33872 * term/i386/pc/vga.c: Include <pupa/arg.h>.
33873 (check_vga_mem): Cast pointers to `void *' to silence a gcc
33875 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
33876 (pupa_vga_setcolor): Declare unused variables with `__attribute__
33877 ((unused))' to silence a gcc warning.
33878 (pupa_vga_setcolor): Likewise.
33879 (debug_command): Changed to match argument parsing
33881 * util/pupa-emu.c: Include <pupa/env.h>.
33882 (options): Added 0's for unused fields to silence a gcc warning.
33884 (main): Use the environment variable `prefix' instead of using
33885 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
33886 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
33889 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
33890 * util/misc.c: Include <malloc.h>.
33891 (pupa_malloc): Rewritten so errors are correctly reported.
33892 (pupa_realloc): Likewise.
33893 (pupa_memalign): Likewise.
33894 (pupa_mm_init_region): Declare unused variables with
33895 `__attribute__ ((unused))' to silence a gcc warning.
33896 * normal/i386/setjmp.S: Remove tab at the end of the file to
33897 silence a gcc warning.
33898 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
33899 variables with `__attribute__ ((unused))' to silence a gcc
33901 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
33902 local variable i unsigned to silence a gcc warning.
33904 * kern/term.c: Include <pupa/misc.h>.
33905 (pupa_more_lines): New variable.
33906 (pupa_more): Likewise.
33907 (pupa_putcode): When the pager is active pause at the end of every
33909 (pupa_set_more): New function.
33910 * include/pupa/term.h (pupa_set_more): New prototype.
33913 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
33915 Now this project is GRUB 2 rather than PUPA. The location of
33916 the CVS repository was moved to GRUB's.
33918 * configure.ac: Use bug-grub as the reporting address.
33919 Use GRUB instead of PUPA.
33920 Change the version number to 1.90.
33922 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
33924 * genkernsyms.sh: Updated copyright information.
33925 * genmk.rb: Likewise.
33926 * genmodsrc.sh: Likewise.
33927 * gensymlist.sh: Likewise.
33928 * boot/i386/pc/boot.S: Likewise.
33929 * boot/i386/pc/diskboot.S: Likewise.
33930 * disk/i386/pc/biosdisk.c: Likewise.
33931 * disk/i386/pc/partition.c: Likewise.
33932 * font/manager.c: Likewise.
33933 * fs/ext2.c: Likewise.
33934 * fs/fat.c: Likewise.
33935 * include/pupa/boot.h: Likewise.
33936 * include/pupa/device.h: Likewise.
33937 * include/pupa/disk.h: Likewise.
33938 * include/pupa/dl.h: Likewise.
33939 * include/pupa/elf.h: Likewise.
33940 * include/pupa/err.h: Likewise.
33941 * include/pupa/file.h: Likewise.
33942 * include/pupa/font.h: Likewise.
33943 * include/pupa/fs.h: Likewise.
33944 * include/pupa/kernel.h: Likewise.
33945 * include/pupa/loader.h: Likewise.
33946 * include/pupa/misc.h: Likewise.
33947 * include/pupa/mm.h: Likewise.
33948 * include/pupa/net.h: Likewise.
33949 * include/pupa/normal.h: Likewise.
33950 * include/pupa/rescue.h: Likewise.
33951 * include/pupa/setjmp.h: Likewise.
33952 * include/pupa/symbol.h: Likewise.
33953 * include/pupa/term.h: Likewise.
33954 * include/pupa/types.h: Likewise.
33955 * include/pupa/i386/setjmp.h: Likewise.
33956 * include/pupa/i386/types.h: Likewise.
33957 * include/pupa/i386/pc/biosdisk.h: Likewise.
33958 * include/pupa/i386/pc/boot.h: Likewise.
33959 * include/pupa/i386/pc/console.h: Likewise.
33960 * include/pupa/i386/pc/init.h: Likewise.
33961 * include/pupa/i386/pc/kernel.h: Likewise.
33962 * include/pupa/i386/pc/linux.h: Likewise.
33963 * include/pupa/i386/pc/loader.h: Likewise.
33964 * include/pupa/i386/pc/memory.h: Likewise.
33965 * include/pupa/i386/pc/multiboot.h: Likewise.
33966 * include/pupa/i386/pc/partition.h: Likewise.
33967 * include/pupa/i386/pc/time.h: Likewise.
33968 * include/pupa/i386/pc/vga.h: Likewise.
33969 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
33970 * include/pupa/util/getroot.h: Likewise.
33971 * include/pupa/util/misc.h: Likewise.
33972 * include/pupa/util/resolve.h: Likewise.
33973 * kern/device.c: Likewise.
33974 * kern/disk.c: Likewise.
33975 * kern/dl.c: Likewise.
33976 * kern/err.c: Likewise.
33977 * kern/file.c: Likewise.
33978 * kern/fs.c: Likewise.
33979 * kern/loader.c: Likewise.
33980 * kern/main.c: Likewise.
33981 * kern/misc.c: Likewise.
33982 * kern/mm.c: Likewise.
33983 * kern/rescue.c: Likewise.
33984 * kern/term.c: Likewise.
33985 * kern/i386/dl.c: Likewise.
33986 * kern/i386/pc/init.c: Likewise.
33987 * kern/i386/pc/lzo1x.S: Likewise.
33988 * kern/i386/pc/startup.S: Likewise.
33989 * loader/i386/pc/chainloader.c: Likewise.
33990 * loader/i386/pc/linux.c: Likewise.
33991 * loader/i386/pc/multiboot.c: Likewise.
33992 * normal/cmdline.c: Likewise.
33993 * normal/command.c: Likewise.
33994 * normal/main.c: Likewise.
33995 * normal/menu.c: Likewise.
33996 * normal/i386/setjmp.S: Likewise.
33997 * term/i386/pc/console.c: Likewise.
33998 * term/i386/pc/vga.c: Likewise.
33999 * util/console.c: Likewise.
34000 * util/genmoddep.c: Likewise.
34001 * util/misc.c: Likewise.
34002 * util/pupa-emu.c: Likewise.
34003 * util/resolve.c: Likewise.
34004 * util/unifont2pff.rb: Likewise.
34005 * util/i386/pc/biosdisk.c: Likewise.
34006 * util/i386/pc/getroot.c: Likewise.
34007 * util/i386/pc/pupa-mkimage.c: Likewise.
34008 * util/i386/pc/pupa-setup.c: Likewise.
34010 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
34012 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
34013 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
34014 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
34015 reading and reset it after reading.
34016 (pupa_ext2_close): Return PUPA_ERR_NONE.
34018 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
34020 (struct linux_kernel_header): Add kernel_version and
34022 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
34023 pupa_file_read succeeds.
34024 (pupa_rescue_cmd_initrd): Implement.
34026 2003-12-03 Marco Gerards <metgerards@student.han.nl>
34028 * fs/ext2.c (pupa_ext2_label): New function.
34029 (pupa_ext2_fs): Added label.
34030 * fs/fat.c (pupa_fat_label): New function.
34031 (pupa_fat_fs): Added label.
34032 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
34034 * kern/misc.c (pupa_strndup): New function.
34035 * include/pupa/misc.h (pupa_strndup): New prototype.
34037 * include/pupa/normal.h: Include <pupa/err.h>.
34038 (pupa_set_history): New prototype.
34039 (pupa_iterate_commands): New prototype.
34040 * normal/cmdline.c: Include <pupa/machine/partition.h>,
34041 <pupa/disk.h>, <pupa/file.h>.
34042 (hist_size): New variable.
34043 (hist_lines): Likewise.
34044 (hist_end): Likewise.
34045 (hist_used): Likewise.
34046 (pupa_set_history): New function.
34047 (pupa_history_get): Likewise.
34048 (pupa_history_add): Likewise.
34049 (pupa_history_replace): Likewise.
34050 (pupa_tab_complete): Likewise.
34051 (pupa_cmdline_run): Added tab completion and history buffer. Tab
34052 completion shows partitionnames while completing partitions, this
34053 feature was suggested by Jeff Bailey.
34054 * normal/command.c (pupa_iterate_commands): New function.
34055 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
34056 (pupa_normal_init): Initialize history buffer.
34057 (PUPA_MOD_INIT): Likewise.
34058 (pupa_normal_fini): Free the history buffer.
34059 (PUPA_MOD_FINI): Likewise.
34061 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
34064 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
34065 * configure.ac [i386]: Check for regparam bug.
34066 (NESTED_FUNC_ATTR) [! i386]: Defined.
34068 2003-11-17 Marco Gerards <metgerards@student.han.nl>
34070 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
34071 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
34072 (pupa_emu_SOURCES): New variable.
34073 (pupa_emu_LDFLAGS): Likewise.
34074 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
34075 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
34076 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
34077 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
34078 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
34079 (pupa_jmp_buf): New typedef.
34080 (pupa_setjmp) [PUPA_UTIL]: New macro.
34081 (pupa_longjmp) [PUPA_UTIL]: Likewise.
34082 * include/pupa/term.h (struct pupa_term): New member `refresh'.
34083 (pupa_refresh): New prototype.
34084 * include/pupa/util/getroot.h: New file.
34085 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
34087 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
34088 (pupa_rescue_cmd_cat): Likewise.
34089 (pupa_rescue_cmd_ls): Likewise.
34090 (pupa_rescue_cmd_testload): Likewise.
34091 (pupa_rescue_cmd_lsmod): Likewise.
34092 * normal/cmdline.c (pupa_cmdline_get): Likewise.
34093 * normal/menu.c (run_menu): Likewise.
34094 * kern/term.c (pupa_cls): Likewise.
34095 (pupa_refresh): New function.
34096 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
34097 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
34098 * util/console.c: New file.
34100 * util/i386/pc/getroot.c: New file.
34101 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
34102 (pupa_putchar): New function.
34103 (pupa_refresh): Likewise.
34104 (xgetcwd): Function moved to ...
34105 (strip_extra_slashes): Likewise.
34106 (get_prefix): Likewise.
34107 * util/i386/pc/getroot.c: ... here.
34108 (find_root_device): Function moved and renamed to...
34109 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
34110 Changed all callers.
34111 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
34113 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
34114 Changed all callers.
34115 * util/misc.c (pupa_memalign): New function.
34116 (pupa_mm_init_region): Likewise.
34117 (pupa_register_exported_symbols): Likewise.
34118 (pupa_putchar): Function removed.
34119 * util/pupa-emu.c: New file.
34121 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
34123 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
34124 (_multiboot_mod_SOURCES): New variable.
34125 (_multiboot_mod_CFLAGS): Likewise.
34126 * loader/i386/pc/multiboot.c: New file.
34127 * include/pupa/i386/pc/multiboot.h: Likewise.
34128 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
34129 (pupa_multiboot_real_boot): New function.
34130 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
34131 (pupa_multiboot_real_boot): New prototype.
34132 (pupa_rescue_cmd_multiboot): Likewise
34133 (pupa_rescue_cmd_module): Likewise.
34135 * kern/loader.c (pupa_loader_set): Continue when
34136 pupa_loader_unload_func() fails.
34137 (pupa_loader_unset): New function.
34138 * include/pupa/loader.h (pupa_loader_unset): New prototype.
34140 * kern/misc.c (pupa_stpcpy): New function.
34141 * include/pupa/misc.h (pupa_stpcpy): New prototype.
34143 2003-11-12 Marco Gerards <metgerards@student.han.nl>
34145 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
34146 for available extensions.
34148 * include/pupa/i386/pc/time.h: New file.
34149 * kern/disk.c: Include <pupa/machine/time.h>.
34150 (PUPA_CACHE_TIMEOUT): New macro.
34151 (pupa_last_time): New variable.
34152 (pupa_disk_open): Flush the cache when there was a timeout.
34153 (pupa_disk_close): Reset the timer.
34154 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
34156 * util/misc.c: Include <sys/times.h>
34157 (pupa_get_rtc): New function.
34159 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
34161 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
34163 (pupa_ext2_get_file_block): Use blocks member.
34165 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
34166 first block. Return -1 instead of pupa_errno on error.
34168 2003-10-27 Marco Gerards <metgerards@student.han.nl>
34170 * README: In the pupa-mkimage example use _chain instead of chain
34171 and ext2 instead of fat.
34172 * TODO: Replace ext2fs with jfs as an example. Add an item for
34173 adding journal playback for ext2fs.
34174 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
34175 (pkgdata_MODULES): Added ext2.mod.
34176 (ext2_mod_SOURCES): New variable.
34177 (ext2_mod_CFLAGS): Likewise.
34178 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
34179 * include/pupa/misc.h (pupa_strncpy): New prototype.
34180 (pupa_strcat): Likewise.
34181 (pupa_strncmp): Likewise.
34182 * kern/misc.c (pupa_strcat): Enable function.
34183 (pupa_strncpy): New function.
34184 (pupa_strncmp): Likewise.
34185 * fs/ext2.c: New file.
34187 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
34188 when the read failed before retrying.
34189 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
34190 (_FILE_OFFSET_BITS): Likewise.
34191 * configure.ac: Added AC_SYS_LARGEFILE.
34193 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
34195 * genmk.rb (PModule#rule): Make sure to get only symbol names
34196 from the output of nm.
34197 Reported by Robert Millan <rmh.grub@aybabtu.com>.
34199 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
34201 I forgot to check in these changes for a long time. This adds
34202 incomplete support for VGA console, and this is still very
34203 buggy. Also, a lot of consideration is required for I18N,
34204 UNICODE, and VGA font issues. Therefore, assume that this is
34205 such that "better than nothing".
34207 * font/manager.c: New file.
34208 * include/pupa/font.h: Likewise.
34209 * include/pupa/i386/pc/vga.h: Likewise.
34210 * term/i386/pc/vga.c: Likewise.
34211 * util/unifont2pff.rb: Likewise.
34213 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
34214 (pkgdata_MODULES): Added vga.mod and font.mod.
34215 (vga_mod_SOURCES): New variables.
34216 (vga_mod_CFLAGS): Likewise.
34217 (font_mod_SOURCES): Likewise.
34218 (font_mod_CFLAGS): Likewise.
34220 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
34222 * include/pupa/term.h: Include pupa/err.h.
34223 (struct pupa_term): Added init and fini.
34224 Changed the argument of putchar to pupa_uint32_t.
34226 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
34227 (pupa_console_real_putchar): New prototype.
34228 (pupa_console_putchar): Removed.
34229 (pupa_console_checkkey): Exported.
34230 (pupa_console_getkey): Likewise.
34232 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
34235 * kern/term.c (pupa_term_set_current): Rewritten.
34236 (pupa_putchar): Likewise.
34237 (pupa_putcode): New function.
34239 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
34240 (pupa_console_real_putchar): ... this.
34241 (pupa_vga_set_mode): New function.
34242 (pupa_vga_get_font): Likewise.
34244 * normal/command.c: Include pupa/term.h.
34245 (terminal_command): New function.
34246 (pupa_command_init): Register the command "terminal".
34248 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
34249 (DISP_UP): Likewise.
34250 (DISP_RIGHT): Likewise.
34251 (DISP_DOWN): Likewise.
34252 (DISP_HLINE): Likewise.
34253 (DISP_VLINE): Likewise.
34254 (DISP_UL): Likewise.
34255 (DISP_UR): Likewise.
34256 (DISP_LL): Likewise.
34257 (DISP_LR): Likewise.
34259 * term/i386/pc/console.c (pupa_console_putchar): New function.
34261 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
34263 * util/resolve.c (pupa_util_resolve_dependencies): BUG
34264 FIX. Reverse the path_list.
34266 * include/pupa/normal.h: Export pupa_register_command and
34267 pupa_unregister_command.
34269 * hello/hello.c (pupa_cmd_hello): New module.
34270 * conf/i386-pc.rmk: Added hello.mod.
34272 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
34274 * kern/i386/pc/lzo1x.S: New file.
34276 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
34277 (compress_kernel): New variable.
34278 (generate_image): Heavily modified to support compressing a
34279 large part of the core image.
34281 * util/misc.c (pupa_util_read_image): Fix a file descriptor
34283 (pupa_util_load_image): New function.
34285 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
34286 (pupa_compressed_size): New variable.
34287 (codestart): Enable Gate A20 here.
34288 Decompress the compressed part of the core image.
34289 Rearrange the code to put functions and variables which are
34290 required for initialization in the non-compressed part.
34293 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
34296 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
34298 * include/pupa/i386/pc/kernel.h
34299 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
34300 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
34301 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
34302 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
34303 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
34305 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
34307 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
34308 (Utility#rule): Likewise.
34310 * configure.ac: Check if LZO is available.
34312 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
34314 * include/pupa/normal.h: New file.
34315 * include/pupa/setjmp.h: Likewise.
34316 * include/pupa/i386/setjmp.h: Likewise.
34317 * normal/cmdline.c: Likewise.
34318 * normal/command.c: Likewise.
34319 * normal/main.c: Likewise.
34320 * normal/menu.c: Likewise.
34321 * normal/i386/setjmp.S: Likewise.
34323 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
34324 (pupa_rescue_cmd_initrd): Likewise.
34326 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
34329 * kern/i386/pc/startup.S (translation_table): New variable.
34330 (translate_keycode): New function.
34331 (pupa_console_getkey): Call translate_keycode.
34333 * kern/rescue.c (attempt_normal_mode): New function.
34334 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
34335 it failed, print a message.
34337 * kern/mm.c (pupa_real_malloc): Print more information when a
34338 free magic is broken.
34339 (pupa_free): If the first free header is not free actually, set
34342 * kern/main.c (pupa_load_normal_mode): Just load the module
34344 (pupa_main): Don't print the message
34345 "Entering into rescue mode..." here.
34347 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
34349 (pupa_rescue_cmd_initrd): Likewise.
34350 (pupa_rescue_cmd_initrd): Likewise.
34352 * include/pupa/symbol.h (FUNCTION): Specify the type.
34353 (VARIABLE): Likewise.
34355 * include/pupa/err.h (pupa_err_t): Added
34356 PUPA_ERR_UNKNOWN_COMMAND.
34358 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
34359 (pupa_dl_get_prefix): Likewise.
34361 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
34362 Added _chain.mod and _linux.mod instead of chain.mod and
34364 (chain_mod_SOURCES): Renamed to ...
34365 (_chain_mod_SOURCES): ... this.
34366 (chain_mod_CFLAGS): Renamed to ...
34367 (_chain_mod_CFLAGS): ... this.
34368 (linux_mod_SOURCES): Renamed to ...
34369 (_linux_mod_SOURCES): ... this.
34370 (linux_mod_CFLAGS): Renamed to ...
34371 (_linux_mod_CFLAGS): ... this.
34372 (normal_mod_SOURCES): New variable.
34373 (normal_mod_CFLAGS): Likewise.
34374 (normal_mod_ASFLAGS): Likewise.
34376 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
34378 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
34381 * kern/dl.c (pupa_dl_ref): Refer depending modules
34383 (pupa_dl_unref): Unrefer depending modules recursively.
34384 Don't call pupa_dl_unload implicitly, because PUPA can crash if
34385 a module is unloaded before one depending on that module is
34387 (pupa_dl_unload): Unload depending modules explicitly,
34390 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
34392 * include/pupa/i386/pc/linux.h: New file.
34393 * loader/i386/pc/linux.c: Likewise.
34395 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
34397 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
34398 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
34399 of PUPA_CHAINLOADER_BOOT_SECTOR.
34401 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
34402 (pupa_linux_prot_size): New variable.
34403 (pupa_linux_tmp_addr): Likewise.
34404 (pupa_linux_real_addr): Likewise.
34405 (pupa_linux_boot_zimage): New function.
34406 (pupa_linux_boot_bzimage): Likewise.
34408 * kern/i386/pc/init.c (struct mem_region): New structure.
34409 (MAX_REGIONS): New macro.
34410 (mem_regions): New variable.
34411 (num_regions): Likewise.
34412 (pupa_os_area_addr): Likewise.
34413 (pupa_os_area_size): Likewise.
34414 (pupa_lower_mem): Likewise.
34415 (pupa_upper_mem): Likewise.
34416 (add_mem_region): New function.
34417 (compact_mem_regions): Likewise.
34418 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
34419 the size of the conventional memory and that of so-called upper
34420 memory (before the first memory hole).
34421 Instead of adding each found region to free memory, use
34422 add_mem_region and add them after removing overlaps.
34423 Also, add only 1/4 of the upper memory to free memory. The rest
34424 is used for loading OS images. Maybe this is ad hoc, but this
34425 makes it much easier to relocate OS images when booting.
34427 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
34428 (pupa_enter_rescue_mode): Don't register initrd and module.
34430 * kern/mm.c: Include pupa/dl.h.
34432 * kern/main.c: Include pupa/file.h and pupa/device.h.
34434 * kern/loader.c (pupa_loader_load_module_func): Removed.
34435 (pupa_loader_load_module): Likewise.
34437 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
34440 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
34441 (pupa_linux_tmp_addr): Likewise.
34442 (pupa_linux_real_addr): Likewise.
34443 (pupa_linux_boot_zimage): Likewise.
34444 (pupa_linux_boot_bzimage): Likewise.
34446 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
34447 (pupa_upper_mem): Likewise.
34448 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
34449 module is too dangerous.
34451 * include/pupa/loader.h (pupa_os_area_addr): Declared.
34452 (pupa_os_area_size): Likewise.
34453 (pupa_loader_set): Remove the first argument. Loader doesn't
34454 manage modules or initrd any longer.
34455 (pupa_loader_load_module): Removed.
34457 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
34458 (linux_mod_SOURCES): New variable.
34459 (linux_mod_CFLAGS): Likewise.
34461 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
34463 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
34464 the length of a blocklist correctly.
34466 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
34467 Use ioctl only if the OS file is a block device.
34468 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
34469 not very useful for normal files.
34471 * kern/main.c (pupa_set_root_dev): New function.
34472 (pupa_load_normal_mode): Likewise.
34473 (pupa_main): Call those above.
34475 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
34478 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
34480 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
34482 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
34483 (setup): Configure the installed partition information and the
34486 * loader/i386/pc/chainloader.c (my_mod): New variable.
34487 (pupa_chainloader_unload): New function.
34488 (pupa_rescue_cmd_chainloader): Refer itself.
34489 (PUPA_MOD_INIT): Save its own module in MY_MOD.
34491 * kern/i386/pc/startup.S (install_partition): Removed.
34492 (version_string): Likewise.
34493 (config_file): Likewise.
34494 (pupa_install_dos_part): New variable.
34495 (pupa_install_bsd_part): Likewise.
34496 (pupa_prefix): Likewise.
34497 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
34499 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
34501 (make_install_device): New function.
34502 (pupa_machine_init): Set the dl prefix.
34504 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
34505 (buf): Renamed to ...
34506 (linebuf): ... this.
34507 (pupa_rescue_cmd_prefix): New function.
34508 (pupa_rescue_cmd_insmod): Likewise.
34509 (pupa_rescue_cmd_rmmod): Likewise.
34510 (pupa_rescue_cmd_lsmod): Likewise.
34511 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
34514 * kern/mm.c (pupa_memalign): If failed even after invalidating
34515 disk caches, unload unneeded modules and retry.
34517 * kern/misc.c (pupa_memmove): New function.
34518 (pupa_memcpy): Removed.
34519 (pupa_strcpy): New function.
34520 (pupa_itoa): Made static.
34522 * kern/dl.c (pupa_dl_iterate): New function.
34523 (pupa_dl_ref): Likewise.
34524 (pupa_dl_unref): Likewise.
34525 (pupa_dl_unload): Return if succeeded or not.
34526 (pupa_dl_unload_unneeded): New function.
34527 (pupa_dl_unload_all): Likewise.
34528 (pupa_dl_init): Renamed to ...
34529 (pupa_dl_set_prefix): ... this.
34530 (pupa_dl_get_prefix): New function.
34532 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
34533 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
34534 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
34535 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
34536 (pupa_install_dos_part): Declared.
34537 (pupa_install_bsd_part): Likewise.
34538 (pupa_prefix): Likewise.
34539 (pupa_boot_drive): Likewise.
34541 * include/pupa/types.h: Fix a typo.
34543 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
34545 (pupa_memmove): Declared.
34546 (pupa_strcpy): Likewise.
34548 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
34549 pupa_mod_init takes one argument, its own module.
34550 (pupa_dl_unload_unneeded): Declared.
34551 (pupa_dl_unload_all): Likewise.
34552 (pupa_dl_ref): Likewise.
34553 (pupa_dl_unref): Likewise.
34554 (pupa_dl_iterate): Likewise.
34555 (pupa_dl_init): Renamed to ...
34556 (pupa_dl_set_prefix): ... this.
34557 (pupa_dl_get_prefix): Declared.
34559 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
34560 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
34562 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
34563 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
34565 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
34566 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
34568 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
34570 * util/i386/pc/pupa-setup.c (setup): Define the internal
34571 function find_first_partition_start at the top level, because GCC
34572 3.0.x cannot compile internal functions in deeper scopes
34574 (find_root_device): Use lstat instead of stat.
34575 Don't follow symbolic links.
34576 Fix the path-constructing code.
34578 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
34579 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
34580 by a BLKGETSIZE ioctl first, because block devices don't fill
34581 the member st_mode of the structure stat on Linux.
34582 [__linux__] (linux_find_partition): Use a temporary buffer
34583 REAL_DEV for the working space. Copy it to DEV before returning.
34584 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
34585 buffer cache consistent.
34586 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
34587 strncmp. The previous value was merely wrong.
34588 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
34590 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
34591 FAT size is 12. The previous value was merely wrong.
34593 * kern/main.c (pupa_main): Don't split the starting message from
34596 * kern/term.c (pupa_putchar): Put CR after LF instead of before
34597 LF, because BIOS goes crazy about character attributes in this
34600 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
34602 * include/i386/pc/util/biosdisk.h: New file.
34603 * util/i386/pc/biosdisk.c: Likewise.
34604 * util/i386/pc/pupa-setup.c: Likewise.
34606 * Makefile.in (INCLUDE_DISTFILES): Added
34607 include/pupa/i386/pc/util/biosdisk.h.
34608 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
34609 directory util/i386/pc.
34610 (install-local): Added a rule for sbin_UTILITIES.
34611 (uninstall): Likewise.
34613 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
34615 * util/misc.c (xrealloc): New function.
34616 (pupa_malloc): Likewise.
34617 (pupa_free): Likewise.
34618 (pupa_realloc): Likewise.
34619 (pupa_stop): Likewise.
34620 (pupa_putchar): Likewise.
34622 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
34624 * include/pupa/util/misc.h (xrealloc): Declared.
34626 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
34628 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
34629 (PUPA_BOOT_MACHINE_BPB_END): ... this.
34631 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
34632 [PUPA_UTIL] (pupa_fat_fini): Likewise.
34634 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
34635 way should be implemented.
34636 [PUPA_UTIL] (pupa_fat_fini): Likewise.
34638 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
34639 the size of NAME for safety.
34640 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
34643 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
34644 (pupa_setup_SOURCES): Likewise.
34646 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
34648 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
34650 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
34651 bunch of pushl's from pusha, because this destroys the return
34654 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
34656 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
34657 This means that any missing prototypes could be fatal. Also, you
34658 must take care when writing assembly code. See the comments at
34659 the beginning of startup.S, for more details.
34661 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
34662 compilation mechanism.
34663 (pupa_chainloader_real_boot): Likewise.
34664 (pupa_biosdisk_rw_int13_extensions): Likewise.
34665 (pupa_biosdisk_rw_standard): Likewise.
34666 (pupa_biosdisk_check_int13_extensions): Likewise.
34667 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
34668 (pupa_biosdisk_get_diskinfo_standard): Likewise.
34669 (pupa_get_memsize): Likewise.
34670 (pupa_get_mmap_entry): Likewise.
34671 (pupa_console_putchar): Likewise.
34672 (pupa_console_setcursor): Likewise.
34673 (pupa_getrtsecs): Use pushl instead of push.
34675 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
34676 memory instead of the stack for a mmap entry, because some
34677 BIOSes may ignore the maximum size and overflow.
34679 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
34681 * genmk.rb (PModule#rule): Compile automatically generated
34682 sources with module-specific CFLAGS as well as other sources.
34684 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
34686 * configure.ac: Check ld.
34687 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
34688 respectively, before checking endianness and sizes.
34690 * Makefile.in (LD): New variable.
34692 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
34694 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
34696 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
34698 * Changelog: New file.