1 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
3 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
5 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
7 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
9 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
11 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
13 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
15 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
17 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
19 * include/grub/bsdlabel.h: Use enums.
21 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
23 Move GRUB_CHAR_BIT to types.h.
25 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
27 * docs/grub.texi: Document more user commands.
29 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
31 * docs/grub.texi: Document menuentry --id option.
33 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
35 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
37 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
39 Unify file copying setup across different install scripts. Add
40 options for performing partial install.
42 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
43 2013-04-04 Peter Jones <pjones@redhat.com>
45 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
47 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
49 Use TSC as a possible time source on i386-ieee1275.
51 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
53 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
56 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
58 * util/grub-setup.c (setup): Handle some corner cases.
60 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
62 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
64 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
66 * grub-core/commands/verify.c: Save verified file to avoid it being
67 tampered with after verification was done.
69 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
71 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
72 reported width by one to compensate for curesor algorithm problem.
74 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
76 Fix screen corruption in menu entry editor and simplify the code
79 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
81 * util/grub-mount.c (fuse_init): Return error if fuse_main
84 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
86 * include/grub/elf.h: Add missing ARM relocation codes and fix
89 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
91 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
93 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
94 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
96 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
97 into account when calculating radius.
99 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
101 * grub-core/gfxmenu/view.c: Fix off-by-one error.
103 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
105 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
107 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
109 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
110 missing closing bracket.
112 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
114 * INSTALL: Mention xorriso requirement.
116 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
118 * grub-core/commands/verify.c: Fix hash algorithms values for
119 the first three hashes - they start with 1, not with 0.
121 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
123 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
124 Try terminating EFI services several times due to quirks in some
127 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
129 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
130 skipping Event, Device, Processor, PowerRes, ThermalZone, and
131 BankField extended opcodes.
132 (get_sleep_type): Add minimal scope handling (just enough to
133 handle setting the scope to the root path).
134 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
135 * include/grub/acpi.h: Add enumeration values for Event, Device,
136 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
138 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
140 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
143 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
145 * grub-core/disk/ahci.c: Give more time for AHCI request.
147 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
149 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
152 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
154 Replace the region at 0 from coreboot tables to available in BSD
157 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
159 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
162 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
164 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
167 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
169 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
170 handling of multi-device filesystems.
172 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
174 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
177 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
179 Add new 'proc' filesystem framework and put luks_script into it.
181 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
183 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
186 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
188 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
190 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
192 Add ability to generate newc additions on runtime.
194 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
196 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
199 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
201 * po/POTFILES.in: Regenerate.
203 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
205 * grub-core/commands/verify.c (hashes): Add several hashes
208 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
210 Slight improve in USB-related boot-time checkpoints.
212 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
214 * grub-core/commands/boottime.c: Fix copyright header.
216 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
218 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
219 coreboot tables content. Support for cbmemc.
221 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
223 Fix a conflict between ports structures with 2 controllers of
226 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
228 * include/grub/boottime.h: Add missing file.
230 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
232 Initialize USB ports in parallel to speed-up boot.
234 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
236 Fix USB devices not being detected when requested
237 due to delayed attach.
239 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
241 Implement boot time analysis framework.
243 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
245 Remove get_endpoint_descriptor and change all functions needing
246 descriptor to just receive it as argument rather than endpoint
249 2013-03-19 Aleš Nesrsta <starous@volny.cz>
251 Better estimate the maximum USB transfer size.
253 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
255 Resend a packet if we got the wrong buffer in status.
257 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
259 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
260 multiplication rather than division.
262 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
264 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
267 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
269 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
270 operations to have intended shifts and not divisions.
272 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
274 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
275 intended shifts rather than division.
277 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
279 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
280 computation for some years before epoch. Avode confusing division
283 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
285 * grub-core/video/i386/pc/vbe.c
286 (grub_video_vbe_print_adapter_specific_info): Replace division by
289 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
291 Adjust types in gdb module to have intended unsigned shifts rather than
294 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
296 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
297 maximum size is 4G - 1 on hfs
299 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
301 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
303 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
305 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
308 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
310 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
311 causing gcc error with gcc 4.7.1.
313 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
315 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
316 dereference null pointer. While the code is technically correct, gcc
317 may eliminate a null check if pointer is already dereferenced.
319 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
321 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
323 * grub-core/normal/term.c (read_terminal_list): Likewise.
325 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
327 Lift up core size limits on some platforms. Fix potential memory
328 corruption with big core on small memory systems. Document remaining
331 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
333 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
336 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
338 Remove all trampoline support. Add -Wtrampolines when
339 present. Remove symbols used for trampolines to make
340 link fail if trampolines are present.
342 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
344 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
345 append out of its parent.
347 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
349 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
352 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
354 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
355 all vars to a macro. All users updated.
357 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
359 * grub-core/disk/ieee1275/nand.c: Fix compilation on
362 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
364 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
366 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
368 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
370 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
372 Move to more hookless approach in IEEE1275 devices handling.
374 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
376 * grub-core/kern/term.c (grub_term_normal_color),
377 (grub_term_highlight_color): Add back lost defaults.
379 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
381 Make elfload not use hooks. Opt for flags and iterators instead.
383 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
385 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
386 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
388 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
390 * grub-core/script/execute.c (gettext_append): Remove nested functions.
392 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
394 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
395 hook pass-through parameter. All users updated and unnested.
397 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
399 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
402 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
404 * grub-core/fs/hfs.c: Remove nested functions.
406 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
408 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
410 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
412 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
414 * util/grub-editenv.c (list_variables): Move print_var out of its
417 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
419 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
422 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
424 * grub-core/gentrigtables.c: Make tables const.
426 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
428 Remove nested functions from videoinfo iterators.
430 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
432 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
433 for 64-bit platforms.
435 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
437 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
438 a FOR_CHILDREN macro.
440 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
442 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
443 platform from firmware path.
445 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
447 Enable linux16 on non-BIOS systems for i.a. memtest.
449 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
451 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
453 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
455 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
456 Fix end of table condition.
458 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
460 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
463 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
465 * grub-core/fs/jfs.c: Remove nested functions.
467 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
469 * grub-core/fs/minix.c: Remove nested functions.
471 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
473 * grub-core/fs/iso9660.c: Remove nested functions.
475 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
477 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
480 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
482 * util/grub-fstest.c: Remove nested functions.
484 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
486 * grub-core/loader/machoXX.c: Remove nested functions.
488 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
490 Remove nested functions from disk and file read hooks.
492 * include/grub/disk.h (grub_disk_read_hook_t): New type.
493 (struct grub_disk): Add read_hook_data member.
494 * include/grub/file.h (struct grub_file): Likewise.
495 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
500 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
502 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
503 Fix off by one error in enumerating extended partitions.
505 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
507 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
508 memory leak if device name is not found.
510 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
512 * grub-core/normal/menu_entry.c (update_screen): remove
513 unused variable `off' which caused scroll down arrow to be always shown.
515 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
517 * grub-core/normal/menu_entry.c (insert_string): fix off by one
518 access to unallocated memory.
520 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
522 * Makefile.util.def: Add partmap/msdos.c to common library.
523 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
524 * grub-core/disk/ldm.c: Check for existence of
525 GRUB_PC_PARTITION_TYPE_LDM.
527 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
529 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
530 sizes and display sector size.
532 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
534 Implement new command cmosdump.
536 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
538 Support Openfirmware disks with non-512B sectors.
540 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
542 * (grub_ofdisk_get_block_size): New function.
543 * (grub_ofdisk_prepare): Use the correct block size.
544 * (grub_ofdisk_read): Likewise.
545 * (grub_ofdisk_write): Likewise.
546 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
549 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
551 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
553 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
555 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
558 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
560 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
563 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
565 Implement USBDebug (full USB stack variant).
567 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
569 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
570 unless they have unexpected values.
572 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
574 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
577 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
579 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
580 zero-out of port structure.
582 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
584 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
585 of extended attributes.
587 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
589 * util/grub-install.in: change misleading comment about
592 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
594 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
595 when menu highlight color isn't set.
597 2013-01-27 C. Masloch <pushbx@38.de>
599 Improve FreeDOS direct loading support compatibility.
601 * include/grub/i386/relocator.h (grub_relocator16_state):
603 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
605 (grub_relocator16_boot): Handle %ebp.
606 * grub-core/lib/i386/relocator16.S: Likewise.
607 * grub-core/loader/i386/pc/freedos.c:
608 Load BPB to pass kernel which partition to load from.
609 Check that kernel file is not too large.
610 Set register dl to BIOS unit number as well.
612 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
614 * util/grub-reboot.in (usage): Document the need for
616 * util/grub-set-default.in (usage): Likewise.
617 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
619 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
621 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
622 than defining WORDS_BIGENDIAN manually.
624 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
626 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
629 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
631 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
633 (blit_comb: add_device_width): Likewise.
635 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
637 Remove nested functions from USB iterators.
639 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
640 (grub_usb_controller_iterate_hook_t): Likewise.
641 (grub_usb_iterate): Add hook_data argument.
642 (grub_usb_controller_iterate): Likewise.
643 (struct grub_usb_controller_dev.iterate): Likewise.
645 Update all implementations and callers.
647 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
649 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
650 margin when not needed.
652 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
654 Make color variables global instead of it being per-terminal.
656 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
658 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
661 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
663 Fix powerpc and sparc64 build failures caused by un-nesting memory
666 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
668 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
669 parameter declarations.
671 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
673 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
675 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
677 Improve spkmomdem reliability by adding a separator between bytes.
679 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
681 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
682 an Acer registration utility with several sightings in the wild.
683 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
685 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
687 Remove nested functions from filesystem directory iterators.
689 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
690 (struct grub_fs.dir): Add hook_data argument.
692 Update all implementations and callers.
694 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
696 * docs/grub.texi (Multi-boot manual config): Fix typo for
699 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
701 * util/grub-mkimage.c (main): Postpone freeing arguments.output
702 until after its use in generate_image.
704 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
706 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
707 initrd size to addr_min, since the initrd will be allocated after
710 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
712 * conf/Makefile.common: Fix autogen rules to pass definition
713 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
715 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
717 * include/grub/elf.h: Update ARM definitions based on binutils.
719 2013-01-20 Aleš Nesrsta <starous@volny.cz>
721 Split long USB transfers into short ones.
723 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
725 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
726 is interrupted by ESC.
728 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
730 * util/grub-script-check.c (main): Uniform the error message.
732 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
734 Remove nested functions from ELF iterators.
736 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
738 Remove nested functions from device iterators.
740 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
741 (grub_arc_iterate_devs): Add hook_data argument.
742 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
743 (struct grub_ata_dev.iterate): Add hook_data argument.
744 * include/grub/device.h (grub_device_iterate_hook_t): New type.
745 (grub_device_iterate): Add hook_data argument.
746 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
747 (struct grub_disk_dev.iterate): Add hook_data argument.
748 (grub_disk_dev_iterate): Likewise.
749 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
751 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
753 * include/grub/partition.h (grub_partition_iterate_hook_t): New
755 (struct grub_partition_map.iterate): Add hook_data argument.
756 (grub_partition_iterate): Likewise.
757 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
758 (struct grub_scsi_dev.iterate): Add hook_data argument.
762 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
764 Fix typos for "developer" and "development".
766 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
768 Add license header to spkmodem-recv.c.
770 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
772 Rewrite spkmodem to use PIT for timing. Double the speed.
774 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
776 Add new command pcidump.
778 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
780 New terminal outputs using serial: morse and spkmodem.
782 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
784 Improve bidi handling in entry editor.
786 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
788 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
789 argument to prevent name collision.
791 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
793 Remove nested functions from script reading and parsing.
795 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
796 getline_data argument, passed to getline.
797 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
798 getline_data argument, passed to grub_parser_split_cmdline.
799 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
800 lexerstate->getline_data to lexerstate->getline.
801 (grub_script_lexer_init): Add getline_data argument, saved in
802 lexerstate->getline_data.
803 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
804 argument, passed to grub_script_parse.
805 * grub-core/script/script.c (grub_script_parse): Add getline_data
806 argument, passed to grub_script_lexer_init.
807 * include/grub/parser.h (grub_parser_split_cmdline): Update
808 prototype. Update all callers to pass appropriate getline data.
809 (struct grub_parser.parse_line): Likewise.
810 (grub_rescue_parse_line): Likewise.
811 * include/grub/reader.h (grub_reader_getline_t): Add void *
813 * include/grub/script_sh.h (struct grub_lexer_param): Add
815 (grub_script_parse): Update prototype. Update all callers to pass
816 appropriate getline data.
817 (grub_script_lexer_init): Likewise.
818 (grub_normal_parse_line): Likewise.
820 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
822 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
823 static instead of nested. Rename to ...
824 (grub_parser_execute_getline): ... this.
825 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
827 * grub-core/normal/main.c (read_config_file: getline): Make static
828 instead of nested. Rename to ...
829 (read_config_file_getline): ... this.
830 (grub_normal_read_line): Add unused data argument.
831 * grub-core/script/execute.c (grub_script_execute_sourcecode:
832 getline): Make static instead of nested. Rename to ...
833 (grub_script_execute_sourcecode_getline): ... this.
834 * util/grub-script-check.c (main: get_config_line): Make static
837 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
839 Remove nested functions from memory map iterators.
841 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
842 argument, passed to hook.
843 * grub-core/kern/i386/coreboot/mmap.c
844 (grub_linuxbios_table_iterate): Likewise.
845 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
847 (grub_machine_mmap_iterate): Add hook_data argument.
848 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
849 Add hook_data argument, passed to hook.
850 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
852 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
854 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
856 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
858 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
860 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
862 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
863 (grub_machine_mmap_iterate): Likewise.
864 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
865 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
867 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
868 Remove NESTED_FUNC_ATTR from here and from all users.
869 (grub_mmap_iterate): Update prototype.
870 (grub_efi_mmap_iterate): Update prototype. Update all callers to
871 pass appropriate hook data.
872 (grub_machine_mmap_iterate): Likewise.
874 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
875 static instead of nested.
876 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
878 (lsmmap_hook): ... this.
879 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
881 (grub_efiemu_mmap_fill: fill_hook): Likewise.
882 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
883 heap_init): Likewise.
884 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
886 (mmap_iterate_hook): ... this.
887 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
889 * grub-core/lib/ieee1275/relocator.c
890 (grub_relocator_firmware_get_max_events: count): Likewise.
891 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
893 (grub_relocator_firmware_fill_events_iter): ... this.
894 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
895 hook): Likewise. Rename to ...
896 (grub_relocator_alloc_chunk_align_iter): ... this.
897 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
899 (generate_e820_mmap_iter): ... this.
900 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
902 (count_hook): ... this.
903 (grub_linux_boot: hook): Likewise. Rename to ...
904 (grub_linux_boot_mmap_find): ... this.
905 (grub_linux_boot: hook_fill): Likewise. Rename to ...
906 (grub_linux_boot_mmap_fill): ... this.
907 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
908 hook): Likewise. Rename to ...
909 (grub_fill_multiboot_mmap_iter): ... this.
910 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
911 hook): Likewise. Rename to ...
912 (count_hook): ... this.
913 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
914 hook): Likewise. Rename to ...
915 (grub_fill_multiboot_mmap_iter): ... this.
916 * grub-core/loader/powerpc/ieee1275/linux.c
917 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
918 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
919 Likewise. Rename to ...
920 (alloc_phys_choose): ... this.
921 (determine_phys_base: get_physbase): Likewise.
922 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
923 find_hook): Likewise.
924 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
925 (malloc_hook: count_hook): Likewise.
926 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
927 Likewise. Rename to ...
928 (lower_hook): ... this.
929 (grub_mmap_get_upper: hook): Likewise. Rename to ...
930 (upper_hook): ... this.
931 (grub_mmap_get_post64: hook): Likewise. Rename to ...
932 (post64_hook): ... this.
933 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
934 Likewise. Rename to ...
935 (lower_hook): ... this.
936 (grub_mmap_get_upper: hook): Likewise. Rename to ...
937 (upper_hook): ... this.
938 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
939 (grub_mmap_iterate: fill_hook): Likewise.
940 (fill_mask): Pass addr and mask within a single struct.
941 (grub_cmd_badram: hook): Make static instead of nested. Rename
943 (badram_iter): ... this.
944 (grub_cmd_cutmem: hook): Likewise. Rename to ...
945 (cutmem_iter): ... this.
947 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
949 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
950 delimit path in strings using quotes.
951 * util/getroot.c (grub_guess_root_devices): Likewise.
952 (grub_make_system_path_relative_to_its_root): Likewise.
953 * util/grub-probe.c (probe): Likewise.
954 * util/ieee1275/ofpath.c (find_obppath): Likewise.
955 (xrealpath): Likewise.
957 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
959 Fix compilation with older compilers.
961 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
962 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
964 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
965 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
966 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
968 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
969 * include/grub/crypto.h: Add type defines.
970 * util/import_gcrypth.sed: Remove duplicate type defines.
972 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
974 New command list_trusted.
976 * grub-core/commands/verify.c (grub_cmd_list): New function.
978 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
980 * util/grub-mkimage.c (generate_image): Fix "size of public key"
983 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
985 Remove nested functions from PCI iterators.
987 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
988 passed to hook. Update all callers to pass appropriate hook data.
989 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
990 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
991 Remove NESTED_FUNC_ATTR from here and from all users.
992 (grub_pci_iterate): Update prototype.
993 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
994 instead of nested. Rename to ...
995 (grub_cs5536_find_iter): ... this.
996 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
997 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
999 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1001 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1003 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1005 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1006 * grub-core/video/radeon_fuloong2e.c
1007 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1008 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1009 find_card): Likewise.
1010 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1013 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1015 * grub-core/commands/verify.c: Mark messages for translating.
1017 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1019 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1022 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1024 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1027 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1029 * autogen.sh: Do not try to delete nonexistant files.
1030 * util/import_gcrypth.sed: Add some missing header removals.
1032 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
1034 Clean up dangling references to grub-setup.
1035 Fixes Ubuntu bug #1082045.
1037 * docs/grub.texi (Images): Refer generally to grub-install rather
1038 than directly to grub-setup.
1039 (Installing GRUB using grub-install): Remove direct reference to
1041 (Device map) Likewise.
1042 (Invoking grub-install): Likewise.
1043 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1044 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1045 * util/grub-install.in (usage): Likewise.
1047 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1048 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1050 * configure.ac: Remove grub_setup output variable.
1052 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1054 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1055 grub-setup to grub-sparc64-setup.
1057 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1059 Import gcrypt public-key cryptography and implement signature checking.
1061 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1063 * grub-core/fs/ntfs.c: Ue more appropriate types.
1064 * grub-core/fs/ntfscomp.c: Likewise.
1065 * include/grub/ntfs.h: Likewise.
1067 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1069 Support Apple FAT binaries on non-Apple platforms.
1071 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1072 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1074 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1077 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1079 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1082 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1084 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1085 explicitly zeroing elements.
1086 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1087 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1088 of elements in a structure already allocated using grub_zalloc.
1089 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1091 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1093 * docs/grub.texi (grub_cpu): New subsection.
1094 (grub_platform): Likewise.
1096 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1098 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1100 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1102 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1105 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1107 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1108 * grub-core/fs/ntfscomp.c: Likewise.
1109 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1110 (grub_ntfs_comp): Likewise.
1112 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1114 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1116 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1117 of groups_per_block. All users updated.
1119 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1121 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1122 grub_error properly.
1123 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1124 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1126 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1128 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1129 always in /boot/zfs.
1130 Reported by: Yuta Satoh.
1132 2013-01-03 Yuta Satoh <nigoro>
1134 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1137 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1139 * configure.ac: Extend -Wno-trampolines to host.
1141 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1143 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1146 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1148 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1149 (Invoking grub-script-check): Likewise.
1151 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1153 * docs/grub.texi (Invoking grub-mount): New section.
1154 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1156 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1158 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1159 test failures, so that a failing unit test correctly causes 'make
1162 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1164 Fix failing printf test.
1166 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1167 '$' in the correct order when collecting type information.
1169 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1171 * docs/grub.texi (configfile): Explain environment variable
1173 (source): New section.
1174 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1176 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
1178 Remove several trivially-unnecessary uses of nested functions.
1180 * grub-core/commands/i386/pc/sendkey.c
1181 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1183 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1185 (legacy_file_getline): ... this.
1186 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1188 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1189 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1191 (probe_dummy_iter): ... this.
1192 * grub-core/kern/i386/coreboot/mmap.c
1193 (grub_linuxbios_table_iterate: check_signature): Likewise.
1194 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1195 check_varstate): Likewise. Mark inline.
1196 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1197 an additional parameter.
1198 (find_long: fnd_long): Likewise. Pass two additional parameters.
1199 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1200 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1201 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1202 Likewise. Rename to ...
1203 (grub_cmos_find_port_iter): ... this.
1204 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1206 (find_rtc_iter): ... this.
1208 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1209 function directly into the function body, since it is only called
1212 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
1214 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1215 __attribute__ ((unused)).
1216 * grub-core/video/bochs.c (find_card): Likewise.
1217 * grub-core/video/cirrus.c (find_card): Likewise.
1218 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1219 * grub-core/video/sis315pro.c (find_card): Likewise.
1220 * grub-core/video/sm712.c (find_card): Likewise.
1222 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1224 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1225 Fixes Savannah bug #37821.
1227 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1229 Apply program name transformations at build-time rather than at
1230 run-time. Fixes Debian bug #696465.
1232 * acinclude.m4 (grub_TRANSFORM): New macro.
1233 * configure.ac: Create output variables with transformed names for
1235 * util/bash-completion.d/grub-completion.bash.in: Use
1236 pre-transformed variables for program names.
1237 * util/grub-install.in: Likewise.
1238 * util/grub-kbdcomp.in: Likewise.
1239 * util/grub-mkconfig.in: Likewise.
1240 * util/grub-mkconfig_lib.in: Likewise.
1241 * util/grub-mknetdir.in: Likewise.
1242 * util/grub-mkrescue.in: Likewise.
1243 * util/grub-mkstandalone.in: Likewise.
1244 * util/grub-reboot.in: Likewise.
1245 * util/grub-set-default.in: Likewise.
1246 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1247 * tests/util/grub-shell-tester.in: Remove unused assignment.
1248 * tests/util/grub-shell.in: Likewise.
1249 * util/grub.d/00_header.in: Likewise.
1251 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1253 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1255 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1257 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1259 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1261 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1262 Reported by: Eriks Latosheks <foresterlv>.
1264 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1266 * docs/grub.texi (Network): Update instructions on generating netboot
1269 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1271 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1272 around device name if necessarry.
1274 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1276 * util/grub-install.in: Follow the symbolic link parameter added
1277 to the file command.
1279 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1281 * util/grub-install.in: Remove stale TODO.
1283 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1285 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1286 dynamic allocation for the bootpath buffer.
1288 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1290 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1293 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1295 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1296 argument rather than font name. All users updated.
1297 (grub_gfxterm_set_window): Likewise.
1299 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1301 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1304 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1306 * util/getroot.c (convert_system_partition_to_system_disk): Support
1309 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1311 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1312 infinite loop on corrupted FS.
1314 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1316 Fix big-endian mtime.
1318 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1319 together sec and usec.
1320 (grub_ufs_dir): Use correct byteswapping for UFS time.
1322 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1324 Support big-endian UFS1.
1326 * Makefile.util.def (libgrubmods): Add ufs_be.c
1327 * grub-core/Makefile.core.def (ufs1_be): New module.
1328 * grub-core/fs/ufs_be.c: New file.
1329 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1332 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1334 * include/grub/types.h: Fix functionality unaffecting typo in
1335 GRUB_TARGET_WORDSIZE conditional macro.
1337 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1339 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1341 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1343 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1344 that /netbsd appears first (when it exists).
1346 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1348 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1349 Fixes Savannah bug #37558.
1351 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1353 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1354 description of extract_entries_configfile.
1356 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1358 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1360 (grub_cmd_linux): Likewise.
1361 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1362 preferred_lifetime. Update all users.
1364 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1366 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1367 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1369 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1371 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1372 errors from grub-probe to /dev/null, not stdout.
1374 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1376 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1379 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1381 * util/grub-install.in: Make the error message if $source_dir
1382 doesn't exist more useful.
1384 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1386 Fix grub-emu build on FreeBSD.
1388 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1389 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1391 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1392 implementation is currently Linux-specific.
1393 * util/getroot.c (exec_pipe): Define only on Linux or when either
1394 libzfs or libnvpair is unavailable.
1395 (find_root_devices_from_poolname): Remove unused path variable.
1397 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1399 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1400 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1401 should fit before end == 63.
1403 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1405 * util/grub-setup.c (write_rootdev): Remove unused core_img
1406 parameter. Update all callers.
1407 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1408 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1411 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1413 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1414 (grub_add_tab): New function.
1415 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1416 * util/grub.d/10_illumos.in: Likewise.
1417 * util/grub.d/10_kfreebsd.in: Likewise.
1418 * util/grub.d/10_linux.in: Likewise.
1419 * util/grub.d/10_netbsd.in: Likewise.
1420 * util/grub.d/10_windows.in: Likewise.
1421 * util/grub.d/10_xnu.in: Likewise.
1422 * util/grub.d/20_linux_xen.in: Likewise.
1423 * util/grub.d/30_os-prober.in: Likewise.
1425 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1427 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1428 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1429 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1430 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1431 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1433 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1434 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1436 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1438 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1440 Reported by: BURETTE, Bernard.
1442 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1444 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1447 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1449 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1450 IEEE1275 machines. Fixes powerpc-emu compilation.
1451 * include/grub/terminfo.h: Likewise.
1453 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1455 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1457 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1459 (efiemu_set_variable): Make vendor_guid a const pointer.
1461 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1463 Don't require grub-mkconfig_lib to generate manpages for programs.
1465 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1466 dependencies, don't add grub-mkconfig_lib.
1467 (program): Pass empty adddeps.
1468 (script): Pass grub-mkconfig_lib as adddeps.
1470 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1472 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1473 * util/getroot.c (grub_find_device): Likewise.
1474 (get_mdadm_uuid): Likewise.
1475 (grub_util_is_imsm): Likewise.
1476 (grub_util_pull_device): Likewise.
1477 * util/grub-probe.c (probe): Likewise.
1479 2012-09-10 Benoit Gschwind <gschwind>
1481 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1482 (devs): Add devpath_8.
1484 2012-09-08 Peter Jones <pjones@redhat.com>
1486 * grub-core/Makefile.core.def (efifwsetup): New module.
1487 * grub-core/commands/efi/efifwsetup.c: New file.
1488 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1489 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1491 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1493 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1495 * configure.ac: Add SuSe path.
1497 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1501 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1503 * util/import_gcry.py: Sort cipher_files, to make build system
1504 generation more deterministic.
1506 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1508 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1509 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1510 (grub_set_datetime): Likewise.
1512 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1514 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1517 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1519 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1521 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1523 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1525 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1527 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1528 required for checkouts from bzr, but it may be useful for users or
1529 distributors wishing to update translations against a tarball
1530 distribution, and it can be helpful for the tarball to be a superset
1533 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1535 * Makefile.am (EXTRA_DIST): Add
1536 grub-core/tests/boot/linux.init-mips.S,
1537 grub-core/tests/boot/linux.init-ppc.S, and
1538 grub-core/tests/boot/linux-ppc.cfg.
1540 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1542 * grub-core/mmap/mips/loongson: Remove empty directory.
1544 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1546 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1549 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1551 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1554 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1556 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1558 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1560 * po/POTFILES.in: Regenerated.
1562 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1564 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1565 (NetBSD): New subsection.
1567 2012-07-22 Ales Nesrsta <starous@volny.cz>
1569 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1570 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1572 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1574 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1575 * util/grub.d/10_hurd.in: Add missing quoting.
1576 * util/grub.d/10_illumos.in: Likewise.
1577 * util/grub.d/10_kfreebsd.in: Likewise.
1578 * util/grub.d/10_linux.in: Likewise.
1579 * util/grub.d/20_linux_xen.in: Likewise.
1581 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1583 New command `lsefi'.
1585 * grub-core/Makefile.core.def (lsefi): New module.
1586 * grub-core/commands/efi/lsefi.c: New file.
1587 * include/grub/efi/api.h: Add more GUIDs.
1589 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1591 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1592 (grub_bsd_elf32_hook): Likewise.
1593 (grub_bsd_elf64_size_hook): Likewise.
1594 (grub_bsd_elf64_hook): Likewise.
1595 (grub_bsd_load_elf): Likewise.
1597 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1599 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1600 if hash function is unavailable.
1601 (dec_stream_header): Likewise.
1603 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1605 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1608 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1610 Fix coreboot compilation.
1612 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1613 (grub_vga_text_init_real): ... this.
1614 (grub_vga_text_fini): Rename to ...
1615 (grub_vga_text_fini_real): ... this.
1617 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1619 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1621 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1623 * grub-core/lib/legacy_parse.c: Support clear and testload.
1625 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1627 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1629 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1631 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1633 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1635 * grub-core/net/tftp.c (ack): Fix endianness problem.
1636 (tftp_receive): Likewise.
1637 Reported by: Michael Davidsaver.
1639 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1641 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1643 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1645 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1646 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1647 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1649 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1651 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1653 Reported by: Stuart Hayes.
1655 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1657 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1659 * grub-core/Makefile.core.def (mda_text): New module.
1660 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1661 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1662 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1663 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1665 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1666 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1667 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1669 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1671 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1673 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1675 * grub-core/term/i386/vga_common.c: Removed.
1676 * include/grub/i386/vga_common.h: Likewise.
1677 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1678 (grub_vga_cr_bw_read): Likewise.
1679 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1680 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1681 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1682 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1683 grub_vga_cr_read/grub_vga_cr_write.
1684 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1686 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1688 * configure.ac: Bump version to 2.00.
1689 * grub-core/normal/main.c (features): Add feature_200_final.
1691 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1692 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1694 * NEWS: Fix unclarity and language mistakes.
1696 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1698 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1699 additional size to 3 pages.
1700 Reported by: Stuart Hayes.
1702 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1704 * NEWS: Add 2.00 entry.
1706 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1708 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1709 put explicit "/" for empty path.
1710 (wildcard_expand): Improve dprintf.
1712 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1714 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1715 it's equal to currnode. This can happen with "" symlink.
1717 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1719 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1720 echo shell command by printf command.
1722 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1724 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1725 the value returned by firmware is the maximal position, not diumension.
1726 (grub_terminfo_output_state): Use a more sane fallback.
1728 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1730 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1732 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1734 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1735 frequency to 150 MHz.
1737 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1741 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1743 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1745 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1747 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1749 Handle slash in HFS label.
1751 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1752 (grub_hfs_dir): Tanslate slash.
1753 (grub_hfs_label): Don't translate slash.
1755 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1757 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1758 network protocol listing since it introduces problematic dependency on
1761 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1763 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1765 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1767 Init video early on yeeloong to avoid being rebooted by watchdog.
1769 * grub-core/Makefile.am (gensm712): New target.
1770 (sm712_start.S): Likewise.
1771 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1772 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1773 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1775 * include/grub/vga.h: Move registry definitions to...
1776 * include/grub/vgaregs.h: ... here.
1778 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1780 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1783 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1785 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1786 platforms with firmware disk drivers in the core.
1788 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1790 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1791 informative verbose message.
1792 (read_lv): Handle 64-bit segment size.
1794 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1796 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1798 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1800 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1801 character but still remove trainling spaces.
1802 (grub_fat_label): Ignore archive flag.
1804 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1806 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1807 cast between linux_kernel_header and linux_kernel_params.
1809 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1811 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1813 (grub_raid6_recover_func_t): Likewise.
1814 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1815 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1817 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1819 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1821 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1825 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1826 [__NetBSD__]: Add explicit cast before bitshift.
1828 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1830 * configure.ac: Bump to 2.00~rc1.
1832 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1834 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1837 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1838 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1840 * docs/grub.texi: Fix search syntax.
1841 (Multi-boot manual config): Put msdos rather than GPT example.
1842 Grammar corrections.
1844 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1846 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1848 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1850 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1852 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1854 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1855 message on double free. Put the value of magic in case of mismatch.
1857 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1859 Speed-up video on yeeloong.
1861 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1863 (grub_video_sm712_video_fini): Unmap cached_ptr.
1864 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1865 (grub_video_sm712_set_active_render_target): Removed.
1866 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1867 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1870 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1872 Avoid flushing the same line multiple times on loongson.
1874 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1875 Step in 32 bytes and not 1 byte.
1876 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1879 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1881 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1884 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1886 Implement flow control for http.
1888 * grub-core/net/http.c (parse_line): Handle response 206.
1889 (http_receive): Stall if too many packets are in the queue.
1890 (http_establish): Fix range header.
1891 (http_seek): Fix double free.
1892 (http_close): Likewise.
1893 (http_packets_pulled): New function.
1894 (grub_http_protocol): Set http_seek
1895 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1896 (ack_real): Set window depending on i_stall.
1897 (grub_net_send_tcp_packet): Likewise.
1898 (grub_net_tcp_stall): New function.
1899 (grub_net_tcp_unstall): Likewise.
1900 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1901 (grub_net_tcp_unstall): Likewise.
1903 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1905 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1907 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1909 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1911 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1913 * tests/util/grub-shell.in: Fix a typo.
1915 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1917 Implement flow control for tftp.
1919 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1920 packets but stop only if stop condition is satisfied.
1921 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1922 `stall' instead of `eof' as stop condition.
1923 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1924 (http_err): Likewise.
1925 * grub-core/net/tftp.c (ack): Replace the first argument with data
1927 (tftp_receive): Stall if too many packets are in wait queue.
1928 (tftp_packets_pulled): New function.
1929 (grub_tftp_protocol): Set packets_pulled.
1930 * include/grub/net.h (grub_net_packets): New field count.
1931 (grub_net_put_packet): Increment count.
1932 (grub_net_remove_packet): Likewise.
1933 (grub_net_app_protocol): New field `packets_pulled'.
1934 (grub_net): New field `stall'.
1936 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1938 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
1939 sync part to handle them.
1941 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1943 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
1944 * grub-core/net/drivers/ieee1275/ofnet.c
1945 (grub_ieee1275_net_config_real): Likewise.
1947 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1949 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
1950 the direct route for server/gateway.
1952 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1954 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
1955 IP address to server name since we may not hame the DNS.
1957 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1959 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
1960 freeing random buffer on failure.
1961 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
1963 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1965 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
1967 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1969 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
1971 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
1972 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
1973 Handle malloc error correctly.
1975 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1977 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
1980 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
1982 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
1985 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1987 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
1988 none is explicitly specified.
1990 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1992 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
1995 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
1997 Respect netmask from bootp/dhcp.
1999 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2000 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2001 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2003 (grub_net_add_ipv4_local): ... this.
2004 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2005 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2006 (grub_net_add_ipv4_local): New proto.
2008 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2010 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2011 determining EFI memory map size.
2013 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2015 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2017 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2019 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2020 when looking for partition separator.
2022 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2024 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2027 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2029 Restructure FAT driver to avoid hook in label reading as it hits a
2032 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2033 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2034 (grub_fat_iterate_dir): Split into ...
2035 (grub_fat_iterate_init): ... this, ...
2036 (grub_fat_iterate_fini): ... this, ...
2037 (grub_fat_iterate_dir_next): ... and this. All users updated.
2039 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2041 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2042 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2043 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2044 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2045 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2046 New fields last_key and last_key_time.
2047 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2048 extended key-esc into extended key-extended key.
2050 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2052 Avoid unnecessary memcpy of whole video buffer.
2054 * grub-core/video/fb/video_fb.c (dirty): New struct.
2055 (framebuffer): Add members current_dirty and previous_dirty.
2056 (dirty): New function.
2057 (grub_video_fb_fill_rect): Update dirty.
2058 (common_blitter): Likewise.
2059 (grub_video_fb_scroll): Likewise.
2060 (doublebuf_blit_update_screen): Copy only dirty part.
2061 (doublebuf_pageflipping_update_screen): Likewise.
2062 (grub_video_fb_doublebuf_blit_init): Init dirty.
2063 (doublebuf_pageflipping_init): Likewise.
2064 (grub_video_fb_setup): Likewise.
2066 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2068 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2071 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2073 Fix wildcard regexp dot and other special characters handling.
2074 Reported by: Robert Mabee.
2076 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2077 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2078 (split_path): Trigger expansion on '?'.
2079 (unescape): New function.
2080 (wildcard_expand): Unescape parts copied without globbing.
2081 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2082 (grub_script_arglist_to_argv): Don't unescape expansions.
2084 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2086 * include/grub/net.h (grub_net_card): New member txbufsize.
2087 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2088 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2089 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2090 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2092 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2093 compatible property to check for macs. Set
2094 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2095 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2096 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2097 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2098 (send_card_buffer): Use txbuf.
2099 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2100 nested function out of the parent while on it.
2102 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2104 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2106 (grub_ieee1275_net_config_real): Fix config pointer.
2108 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2110 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2111 filename parsing to non-block devices.
2113 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2115 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2117 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2119 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2122 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2124 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2125 UUID search command even if hints probing failed.
2127 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2129 * po/POTFILES.in: Regenerated.
2131 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2133 Speed-up video on fuloong.
2135 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2137 (grub_pci_device_unmap_range): Handle non-cached address.
2138 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2140 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2141 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2142 (grub_video_sis315pro_set_active_render_target): Removed.
2143 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2144 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2145 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2147 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2150 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2152 * docs/grub.texi (Multi-boot manual config): New section.
2154 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2156 Avoid slow read-back from VRAM.
2158 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2160 * grub-core/video/fb/video_fb.c
2161 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2162 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2163 (front_target): Remove front_target. Add pages.
2164 (grub_video_fb_init): Skip setting front_pages.
2165 (grub_video_fb_fini): Likewise.
2166 (doublebuf_blit_update_screen): Use pages.
2167 (grub_video_fb_doublebuf_blit_init): Likewise.
2168 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2169 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2170 (grub_video_fb_setup): Prefer doublebuffing.
2172 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2174 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2177 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2181 * tests/util/grub-shell.in: Handle loongson.
2182 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2184 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2185 Reboot instead of shutdown if REBOOT is defined.
2187 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2189 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2190 sized ports since unlike on real hardware qemu supports only 32-bit
2193 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2195 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2196 * util/grub-mkrescue.in: Handle loongson.
2198 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2200 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2201 Set is_part appropriately.
2202 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2203 names. Canonicalize partition without full disk.
2205 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2207 Revert usb-quiesce since it's wrong.
2209 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2210 (grub_ofdisk_init): Don't do quiesce.
2212 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2214 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2215 PowerMac workaround to Xserves as well.
2216 Information supplied by: Benjamin Herrenschmidt.
2218 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2220 Don't assume that beginning address is also the entry point on ppc.
2222 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2223 (grub_linux_boot): Use linux_entry.
2224 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2225 (grub_linux_load64): Likewise.
2227 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2229 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2231 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2233 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2234 needlessly lose the console.
2236 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2238 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2241 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2243 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2244 than current grub_get_rtc() not implemented when booted with
2245 coreboot without TSC.
2247 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2248 Add machine/time.h to kernel headers on loongson.
2249 * grub-core/Makefile.core.def (kernel): Remove
2250 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2251 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2252 (grub_get_rtc): Likewise.
2253 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2254 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2255 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2256 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2257 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2258 rather than installing known non-working time source.
2259 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2260 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2261 * include/grub/time.h: Don't include machine/time.h.
2262 * include/grub/efi/time.h: Removed.
2263 * include/grub/i386/efi/time.h: Likewise.
2264 * include/grub/i386/ieee1275/time.h: Likewise.
2265 * include/grub/powerpc/ieee1275/time.h: Likewise.
2266 * include/grub/sparc64/ieee1275/time.h: Likewise.
2267 * include/grub/x86_64/efi/time.h: Likewise.
2269 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2271 Remove dot on i and j when combining with above diacritics.
2273 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2275 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2276 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2277 with dotless variants when any combining above is present.
2279 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2281 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2282 text and not binary.
2284 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2286 Stop polling as soon as we have the packet we were waiting for.
2288 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2290 * grub-core/net/arp.c (have_pending): New var.
2291 (pending_req): Likewise.
2292 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2294 (grub_net_arp_receive): Set have_pending.
2295 * grub-core/net/dns.c (recv_data): New field stop.
2296 (recv_hook): Set stop.
2297 (grub_net_dns_lookup): Init stop and use as stop condition.
2298 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2300 * grub-core/net/net.c (grub_net_poll_cards): New argument
2301 stop_condition. Stop when it goes true.
2302 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2304 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2306 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2308 Keep TX and RX buffers on EFI rather than always allocate new ones.
2310 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2311 card. All users updated.
2312 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2313 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2314 (get_card_packet): Likewise.
2315 (grub_efinet_findcards): Init new fields.
2317 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2319 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2320 compilation error on sparc64.
2322 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2324 Use ITC on IA64 rather than broken routine based on daytime.
2326 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2328 (grub_get_rtc) [__ia64__]: Likewise.
2329 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2330 (get_itc): New function.
2331 (grub_rtc_get_time_ms): Likewise.
2332 (grub_machine_init): Calibrate ITC.
2333 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2334 Keep only on non-ia64. Don't export since it's broken and used only
2335 if TSC is unavailable.
2337 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2339 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2341 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2342 Skip if parent is unused.
2344 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2346 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2348 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2350 Fix wildcard escaping.
2352 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2353 * grub-core/script/execute.c (wildcard_escape): .. to here.
2355 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2356 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2358 * grub-core/script/execute.c (gettext_append): Always escape.
2359 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2360 * grub-core/script/yylex.l: Don't cut away the escaping.
2361 * tests/grub_script_echo1.in: Add tests with wildcard.
2363 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2365 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2366 (ftdi_hw_configure): Likewise.
2367 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2369 (real_config): Handle 1.5 stop bits.
2370 (pl2303_hw_configure): Likewise.
2372 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2374 * Makefile.am: Add ppc linux bootcheck.
2375 * grub-core/tests/boot/linux-ppc.cfg: New file.
2376 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2378 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2380 * tests/grub_script_expansion.in: Skip network protocols.
2382 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2384 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2386 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2388 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2392 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2394 ESCC serial driver for conducting sautomated tests in qemu.
2395 Not tested on real hardware.
2397 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2398 * grub-core/term/ieee1275/escc.c: New file.
2399 * grub-core/Makefile.core.def (escc): New module.
2401 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2403 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2405 (serial_hw_fetch): Don't read invalid handle.
2406 (serial_hw_put): Don't write into invalid handle.
2408 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2410 Add a 1.5 stop bits value.
2412 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2413 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2414 GRUB_SERIAL_STOP_BITS_1_5.
2416 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2418 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2419 value rather than let it uninited.
2421 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2423 * grub-core/commands/wildcard.c (+check_file): New function.
2424 (wildcard_expand): Don't expand to non-existing files, expand with
2425 suffix and not attempt to expand if not needed.
2427 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2429 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2430 out of partitions containing other partitions.
2432 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2434 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2435 on some qemu versions with GRUB.
2437 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2439 (grub_openbsd_bootarg_pcibios): New struct.
2440 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2443 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2445 * tests/util/grub-shell.in: Trim firmware output on EFI.
2447 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2449 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2450 and coreboot since it's already in kernel.
2452 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2454 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2455 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2456 to here. New return value start. All users updated.
2457 Recursively scan linear mappings.
2458 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2460 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2461 Use grub_util_get_dm_node_linear_info.
2462 * util/getroot.c (convert_system_partition_to_system_disk): Use
2463 grub_util_info rather than grub_dprintf.
2464 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2466 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2468 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2470 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2471 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2473 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2475 * include/grub/types.h (grub_set_unaligned64): New function.
2476 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2479 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2481 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2482 (grub_ofdisk_fini): Quiesce USB devices.
2484 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2486 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2489 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2491 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2493 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2495 * grub-core/disk/pata.c (grub_pata_pio_read)
2496 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2497 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2499 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2501 Extend automated tests to qemu-mips.
2503 * Makefile.am: reorganise tests and enable qemu-mips.
2504 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2505 * grub-core/tests/boot/linux.init-mips.S: New file.
2506 * tests/partmap_test.in: Handle ata0 disks.
2507 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2510 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2512 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2514 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2517 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2519 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2520 (grub_halt): Likewise.
2521 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2523 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2525 * grub-core/term/serial.c (grub_serial_register)
2526 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2527 the behaviour in line with x86 platforms.
2529 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2531 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2532 (grub_ata_strncpy): Likewise.
2533 (grub_ata_identify): Add missing byteswaps.
2535 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2537 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2539 (screen_read_char): Likewise.
2540 (grub_vga_text_cls): Likewise.
2542 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2544 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2546 (make_file_path): Likewise.
2548 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2550 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2552 Tested by: Paulo Flabiano Smorigo.
2553 Crucial information about API supplied by: Coleen <Last name unknown>.
2554 Reviewed by: Coleen <Last name unknown>.
2556 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2558 * util/grub-mkimage.c: Disable -Wcast-align.
2560 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2562 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2565 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2567 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2569 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2571 * util/grub-probe.c (escape_of_path): Fix double free.
2573 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2575 * grub-core/commands/videoinfo.c (hook): Show pitch.
2577 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2579 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2581 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2583 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2584 (probe): Add ieee1275 to OFW devices.
2586 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2588 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2590 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2592 Handle IBM OFW path.
2594 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2596 (of_path_of_scsi): Handle vdevice.
2598 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2600 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2601 Allocate in multiples of 16 to avoid adding a few bytes free region the
2604 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2606 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2607 Allocate in multiples of 16 to avoid adding a few bytes free region the
2609 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2611 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2613 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2615 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2616 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2618 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2620 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2622 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2624 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2625 resulted in \\ at the end of the line.
2627 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2629 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2630 (grub_parser_cmdline_state): Likewise.
2631 (grub_parser_split_cmdline): Likewise.
2633 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2635 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2636 /dev/root and /dev/dm-*.
2638 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2640 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2641 fix partially stale display.
2643 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2645 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2648 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2650 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2651 Fix MBR remapping workaround.
2652 (grub_util_biosdisk_read) [__linux__]: Likewise.
2654 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2656 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2658 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2660 * configure.ac: Bump to beta6.
2662 2012-05-31 Christer Weinigel <christer@weinigel.se>
2664 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2666 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2668 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2669 (grub_cmd_linux): Likewise.
2671 2012-05-31 Christer Weinigel <christer@weinigel.se>
2675 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2676 (GRUB_EHCI_MULT_TWO): Likewise.
2677 (GRUB_EHCI_MULT_THREE): Likewise.
2678 (GRUB_EHCI_CMASK_MASK): New enum value.
2679 (GRUB_EHCI_SMASK_MASK): Likewise.
2680 (GRUB_EHCI_CMASK_OFF): Likewise.
2681 (GRUB_EHCI_SMASK_OFF): Likewise.
2682 (grub_ehci_pci_iter): Enable periodic schedule.
2683 (grub_ehci_parse_notrun): Likewise.
2684 (grub_ehci_restore_hw): Likewise.
2685 (grub_ehci_setup_qh): Set flags for low speed transfers.
2686 (grub_ehci_find_qh): Use periodic list for low speed.
2687 (grub_ehci_setup_transfer): Check periodic queue as well.
2688 (grub_ehci_check_transfer): Likewise.
2689 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2691 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2693 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2696 2012-05-31 Peter Jones <pjones@redhat.com>
2698 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2699 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2700 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2702 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2704 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2705 uninited variable. Allocate at least setup_sects.
2707 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2709 Fix handling of EFI with big memory maps.
2711 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2712 (real_mode_mem): Likewise.
2713 (real_mode_target): Likewise.
2714 (real_mode_pages): Likewise.
2715 (prot_mode_pages): Likewise.
2716 (linux_params): New var.
2717 (linux_cmdline): Likewise.
2718 (free_pages): Don't set real mode variables.
2719 (allocate_pages): Don't allocate real mode memory.
2720 (grub_e820_add_region): Remove the limit.
2721 (grub_linux_boot): Allocate and copy real mode memory.
2722 (grub_linux_unload): Free linux_cmdline.
2723 (grub_cmd_linux): Use temporary storage for parameters.
2724 (grub_cmd_initrd): Likewise.
2725 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2726 (linux_kernel_params): Make it 1K big.
2728 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2730 * Makefile.util.def: Remove -Wno-format.
2731 * grub-core/Makefile.core.def: Likewise.
2733 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2735 * tests/cmp_unit_test.c: Add missing failure message.
2736 * tests/example_unit_test.c: Likewise.
2737 * tests/printf_unit_test.c: Likewise.
2739 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2741 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2742 relaxation of protective MBR requirements.
2744 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2746 * configure.ac: Add condition for COND_HOST_XNU.
2747 * Makefile.util.def (10_xnu): New script.
2748 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2750 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2752 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2755 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2757 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2758 Binary on other platforms stays identical.
2760 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2762 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2765 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2767 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2769 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2771 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2772 rather than defining size_t ourselves to avoid conflict.
2774 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2776 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2777 initialisation to avoid __bzero reference.
2779 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2781 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2783 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2784 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2785 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2786 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2787 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2789 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2791 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2792 * grub-core/kern/misc.c: Likewise.
2793 * grub-core/loader/i386/xnu.c: Likewise.
2794 * include/grub/i386/tsc.h: Likewise.
2795 * include/grub/symbol.h: Likewise.
2797 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2799 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2800 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2803 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2805 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2806 Implement Apple flavour.
2807 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2809 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2811 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2812 (memmove) [__APPLE__]: Likewise.
2813 (memcpy) [__APPLE__]: Likewise.
2814 (memset) [__APPLE__]: Likewise.
2815 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2816 (memmove) [__APPLE__]: Likewise.
2817 (memcpy) [__APPLE__]: Likewise.
2818 (memset) [__APPLE__]: Likewise.
2820 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2822 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2825 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2827 * grub-core/normal/main.c (read_config_file): Provide config_file and
2829 * util/grub.d/41_custom.in: Use config_directoy when available.
2831 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2833 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2834 (grub_bfs_dir): Likewise.
2836 2012-05-27 Peter Jones <pjones@redhat.com>
2838 The old code gives arguments to a printf function which can't work
2839 correctly, and the compiler complains.
2841 * grub-core/tests/example_functional_test.c (example_test): Add
2843 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2844 * include/grub/test.h (grub_test_assert_helper): New declaration.
2845 (grub_test_assert): Use grub_test_assert_helper.
2847 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2849 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2850 (exfctest): ... this to avoid overlong filenames.
2853 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2855 Handle "." and ".." on squashfs.
2857 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2858 Make inode numbers into stack.
2859 (grub_squash_read_symlink): Use stack.
2860 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2861 (make_root_node): Fill stack.
2862 (grub_squash_open): Use stack.
2864 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2866 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2869 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2871 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2872 stderr on test calls.
2874 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2876 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2878 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2880 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2882 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2884 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2887 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2889 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2890 (grub_hfsplus_iterate_dir): Add "." and "..".
2892 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2894 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2895 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2897 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2899 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2900 (find_path): Handle "." and "..".
2902 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2904 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2905 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2906 (grub_affs_iterate_dir): Handle hardlinks.
2908 2012-05-26 Matthew Garrett <mjg@redhat.com>
2910 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2911 (grub_efi_console_fini): Likewise.
2912 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2913 (grub_video_gop_fill_mode_info): Rename to ...
2914 (grub_video_gop_fill_real_mode_info): ... this.
2915 (grub_video_gop_fill_mode_info): New function.
2916 (grub_video_gop_setup): Setup double framebuffer.
2917 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2919 (grub_video_gop_swap_buffers): Copy framebuffer.
2920 (grub_video_gop_fini): Free offscreen buffer.
2921 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2923 (grub_efi_gop_blt_pixel): New struct.
2925 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2927 * gentpl.py: Remove error disabling for objconv.
2929 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2931 * configure.ac: Remove -Wunitialized as it's not available on older
2934 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2936 Fix extent overflow comparator.
2938 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
2939 (grub_hfsplus_read_block): Set type.
2940 (grub_hfsplus_cmp_extkey): Compare type.
2942 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
2944 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
2946 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2948 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
2951 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2953 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
2954 (dejavu_bold_14.pf2): New target.
2956 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
2958 * configure.ac: Fix djvu font detection.
2960 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2962 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
2963 ext* instead of ext2.
2965 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
2967 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
2970 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
2972 * docs/grub-dev.texi: Remove dot from .png.
2974 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2976 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
2977 protective entry in any slot.
2978 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
2979 if protective entry is found in any slot.
2981 Protective entry in non-first slot make no sense but is a widespread
2984 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2986 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
2988 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2990 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
2992 (grub_reiserfs_open): Don't free root.
2994 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
2996 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
2997 after freeing for safety.
2999 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3001 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3002 Reported by: Jordan Uggla.
3004 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3006 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3007 actual implementation. Specifically, clarify that the grub menu will
3008 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3011 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3013 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3016 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3018 Remove unjustified hard dependency of normal.mod on gfxterm.
3020 * include/grub/term.h (grub_term_output): New member fullscreen.
3021 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3022 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3023 (grub_gfxterm): Set .fullscreen.
3024 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3025 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3027 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3029 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3030 mentioning possible problems with non-ASCII (non-compliant) ISOs.
3031 Mention case-insensitive AFFS, SFS and JFS.
3033 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3035 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3037 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3039 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3042 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3044 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3045 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3047 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3049 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3050 (grub_jfs_mount): Fill caseins.
3051 (grub_jfs_find_file): Respect caseins.
3053 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3055 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3058 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3060 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3061 New argument origpath. All users updated.
3063 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3065 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3066 (read_attr): Ensure that we read start of possibly compressed block.
3068 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3070 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3071 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3074 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3076 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3077 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3078 (dejavu.pf2): Replace with ...
3079 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3082 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3084 * util/grub.d/20_linux_xen.in: Add missing line.
3086 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3088 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3089 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3090 (grub_utf16_to_utf8): Likewise.
3092 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3094 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3095 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3096 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3097 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3098 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3099 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3101 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3103 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3106 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3108 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3109 (grub_udf_read_symlink): Handle read_string failure.
3111 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3113 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3116 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3118 Fix handling of UDF symlinks.
3120 * grub-core/fs/udf.c (read_string): New argument outbuf.
3122 (grub_ufs_read_symlink): Rename to ...
3123 (grub_udf_read_symlink): ... this. All users updated.
3124 Handle symlinks with more than one component.
3126 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3128 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3129 symlinks. Replace leading colon with a slash.
3131 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3133 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3136 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3138 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3139 match in inner node.
3141 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3143 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3144 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3145 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3146 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3147 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3148 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3149 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3150 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3151 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3153 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3155 Use grub-probe and not cmp to check that disk is empty.
3157 * util/grub-install.in: Use grub-probe for zero-check.
3158 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3159 (probe): Handle PRINT_ZERO_CHECK.
3160 (argp_parser): Handle -t zero_check.
3162 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3164 Flush block cache on adding disk to device map.
3166 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3167 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3169 (read_device_map): Likewise.
3170 (open_device): Flush on opening.
3172 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3174 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3175 (handle_symlink): Fix off-by-one error.
3176 Canonicalize the target.
3177 (grub_cpio_dir): Canonicalize the name.
3180 (grub_cpio_open): Canonicalize the name.
3182 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3184 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3187 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3189 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3190 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3192 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3194 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3195 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3198 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3200 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3203 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3205 Fix UFS1 big file support.
3207 * grub-core/fs/ufs.c (INODE): Removed.
3208 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3210 (INODE_MODE): Simplify.
3211 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3212 (grub_ufs_lookup_symlink): Don't use INODE.
3214 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3216 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3218 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3219 (grub_minix_data): Replace log_block_size with block_size.
3220 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3221 (grub_minix_mount): Fill block_size.
3223 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3225 * configure.ac: Bump to beta5.
3227 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3229 Fix wrapped HFS+ handling.
3231 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3232 blocks_start. All users updated.
3233 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3235 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3237 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3239 Fix long symlinks on reiserfs.
3241 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3242 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3243 (grub_reiserfs_iterate_dir): Save size for non-directories.
3244 (grub_reiserfs_open): Don't reread stat block as we already know the
3246 (grub_reiserfs_read): Split into...
3247 (grub_reiserfs_read_real): ... and ...
3248 (grub_reiserfs_read): ...this.
3250 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3252 Fix non-indexed JFS.
3254 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3255 (grub_jfs_data): New field namecomponentlen.
3256 (grub_jfs_mount): Fill namecomponentlen.
3257 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3259 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3261 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3262 * tests/grub_script_echo1.in: Add tests.
3264 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3266 * util/grub-install.in: Ignore empty devicetree directory.
3268 2012-05-08 Bean <bean123ch@gmail.com>
3270 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3272 (free_rsm): Free header as well.
3273 (free_old_fragments): Fix memory leak.
3274 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3275 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3276 (destroy_pq): Likewise.
3277 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3279 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3281 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3282 resulting hash as a precaution.
3284 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3286 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3287 '_' in variable names.
3288 * grub-core/net/net.c (grub_net_network_level_interface_register):
3291 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3293 Fix AFFS with non-512B blocks.
3295 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3296 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3297 (grub_affs_data): Replace blocksize with log_blocksize.
3298 (grub_affs_read_block): Fix non-512B blocks.
3299 (grub_affs_read_symlink): Likewise.
3300 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3301 (grub_affs_read): Fix non-512B blocks.
3302 (grub_affs_label): Likewise.
3303 (grub_affs_mtime): Likewise.
3304 (grub_affs_mount): Fix block detection routine.
3306 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3308 Add filesystem mtime to AFFS.
3310 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3311 (aftime2ctime): New function.
3312 (grub_affs_dir): Use aftime2ctime.
3313 (grub_affs_label): Fix return value.
3314 (grub_affs_mtime): New function.
3315 (grub_affs_fs): Add mtime.
3317 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3319 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3322 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3324 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3327 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3329 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3331 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3333 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3335 (FLAGS_CASE_SENSITIVE): New enum value.
3336 (cache_entry): New struct.
3337 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3338 cache_size and cache.
3339 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3340 Add log_blocksize and fshelp_flags.
3341 (grub_sfs_read_extent): Handle non-512 blocks.
3342 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3343 (grub_sfs_read_file): Handle non-512 blocks.
3344 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3346 (grub_sfs_read_symlink): Handle non-512 blocks.
3347 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3348 (grub_sfs_dir): Free cache.
3349 (grub_sfs_close): Likewise.
3351 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3353 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3356 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3358 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3360 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3362 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3364 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3366 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3367 (grub_sfs_read_extent): Likewise.
3368 (grub_sfs_read_block): Likewise.
3369 (grub_sfs_mount): Likewise.
3370 (grub_sfs_iterate_dir): Likewise.
3371 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3372 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3374 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3376 Fix errors on compressed NTFS with 512B clusters.
3378 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3380 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3382 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3383 Relax check for inline extents.
3384 (ntfscomp): Return correct -1 on error and not 0.
3386 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3388 * util/grub-install.in: Fix handling of prefix containing spaces.
3390 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3392 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3393 (grub_squash_read_data): Fix offset byte-swapping.
3395 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3397 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3398 per common usage and preffered in several parts of code.
3399 (grub_memcmp): Likewise.
3400 (grub_strncmp): Likewise.
3401 * include/grub/misc.h (grub_strcasecmp): Likewise.
3402 (grub_strncasecmp): Likewise.
3403 * Makefile.util.def (cmp_test): New test.
3404 (grub_script_strcmp): Likewise.
3405 * tests/cmp_unit_test.c: New file.
3406 * tests/grub_script_strcmp.in: Likewise.
3407 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3409 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3411 * include/grub/pci.h: Move enums into no-asm part.
3413 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3415 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3417 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3419 * util/getroot.c (find_hurd_root_device): Try to make error message
3420 and comments to translators clearer.
3422 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3424 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3426 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3428 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3431 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3433 * docs/grub.cfg: Update.
3435 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3437 * docs/grub.texi (PXE): Remove not present variables.
3439 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3441 * grub-core/net/net.c (defserver_set_env): New function.
3442 (defserver_get_env): Likewise.
3443 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3445 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3447 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3450 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3452 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3453 * grub-core/kern/emu/hostdisk.c: Likewise.
3455 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3457 Handle hurd userspace partitions.
3459 * util/getroot.c (find_hurd_root_device): New function.
3460 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3462 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3464 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3466 Reported by: Bastian Blank.
3468 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3470 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3471 crossing page boundary.
3473 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3475 Fix B-tree search in BFS, especially in presence of non-ASCII
3478 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3479 (find_in_b_tree): Use standard bsearch + btree algorithm.
3481 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3483 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3486 2012-05-03 Matthew Garrett <mjg@redhat.com>
3487 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3489 Suspend broadcom cards in order to stop their DMA.
3491 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3492 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3493 (pci): Don't build on x86 EFI.
3494 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3495 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3497 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3498 stop_broadcom if running on EFI.
3499 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3500 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3501 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3502 (grub_pci_find_capability): New proto.
3504 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3506 * docs/grub.texi: Remove dot from the extension as it apparently
3507 doesn't work with some makeinfo versions.
3509 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3511 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3512 with GRUB expectance.
3514 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3516 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3518 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3520 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3521 zero after directory block since last entry may be not 0-terminated if
3522 it ends on block boundary. Use continue instead of if spanning whole
3525 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3527 Support 4K sectors UDF inline files.
3529 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3530 (grub_udf_extended_file_entry): Likewise.
3531 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3533 (get_fshelp_size): New function.
3534 (grub_udf_read_icb): Read whole block.
3535 (grub_udf_iterate_dir): Likewise.
3536 (grub_udf_dir): Likewise.
3537 (grub_udf_open): Likewise.
3539 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3541 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3543 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3545 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3546 inline symlinks in addition to workaround.
3548 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3550 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3552 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3554 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3556 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3558 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3560 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3562 Fix reiserfs big seek times.
3564 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3565 exact. All users updated.
3566 (grub_reiserfs_read): Use nearest btree search for seeking.
3567 Fix return value on error.
3569 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3571 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3573 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3574 * docs/grub.texi: Update menuentry description.
3576 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3578 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3579 crash when embedding onto filesystem.
3581 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3583 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3586 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3588 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3590 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3592 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3595 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3596 2012-05-01 Bean <bean123ch@gmail.com>
3598 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3600 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3602 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3603 Special behaviour for len = 0 to read whole file isn't used anywhere and
3604 can cause buffer ovewrflows in several places.
3606 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3608 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3610 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3612 Handle RAIDZ on non-512B sectors.
3614 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3615 max_children_ashift.
3616 (fill_vdev_info_real): Fill max_children_ashift.
3617 (read_device): Use max_children_ashift.
3619 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3621 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3623 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3625 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3627 * docs/grub.texi: Update device.map parts.
3629 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3631 Don't scan into non-diskfilter devices having diskfilter names.
3633 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3634 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3636 (scan_disk_hook): New function.
3638 2012-04-29 Bean <bean123ch@gmail.com>
3640 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3643 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3645 * configure.ac: Detect starfield theme font path
3646 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3648 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3650 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3651 geometry on serial consoles.
3653 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3655 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3656 because of network consoles.
3658 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3660 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3663 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3665 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3668 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3670 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3671 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3673 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3675 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3676 Allocate at lest 8192 for temporary buffer as required for lzo.
3678 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3680 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3681 to cluster_bits, since it's already added in.
3682 (grub_fat_read_data): Likewise.
3684 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3686 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3687 as long as cluster size is multiple of 512 bytes.
3689 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3691 * util/grub-mkrescue.in: Fix locale directory.
3693 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3695 * grub-core/kern/emu/hostdisk.c (map): Make static.
3697 2012-04-23 Bean <bean123ch@gmail.com>
3699 * util/grub-fstest.c (fstest): Add missing break.
3701 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3705 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3706 not define nr variable.
3707 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3708 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3709 grub_find_device): Do not define.
3711 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3713 Fix kfreebsd compile and behaviour.
3715 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3717 * util/getroot.c: Fix wait.h include.
3718 (grub_guess_root_devices): Error if grub_find_device fails.
3719 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3720 (grub_util_get_dev_abstraction): Likewise.
3721 (grub_util_pull_device): Likewise.
3722 (grub_util_get_grub_dev): Likewise.
3723 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3725 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3727 Fix and unify wholedisk detection.
3729 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3730 is_part. All users updated.
3731 (device_is_wholedisk): Removed.
3732 (grub_util_biosdisk_get_grub_dev): Use is_part.
3734 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3736 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3739 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3741 * configure.ac: Bump to beta4.
3743 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3745 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3746 --fs-uuid --set UUID syntax.
3748 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3750 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3753 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3755 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3757 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3759 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3761 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3763 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3765 2012-04-18 Bean <bean123ch@gmail.com>
3767 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3770 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3772 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3774 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3775 corresponding to GRUB partitions.
3776 (grub_util_biosdisk_write): Likewise.
3778 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3780 Scan mdraid before LVM.
3782 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3783 (grub_diskfilter_register_front): ... this.
3784 (grub_diskfilter_register_back): New function.
3785 All users of grub_diskfilter_register updated.
3787 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3789 * util/grub-install.in: Fix an automatic target detection bug.
3791 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3793 * util/grub-install.in: New option --efi-directory.
3795 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3797 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3798 boot services if we have no other choice.
3800 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3802 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3804 * tests/util/grub-shell.in: Update to --directory.
3806 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3808 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3810 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3812 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3813 (grub_minix_read_file): Likewise.
3814 (grub_minix_read_inode): Likewise.
3815 (grub_minix_find_file): Likewise.
3816 (grub_minix_dir): Likewise.
3818 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3820 * util/grub-setup.c (setup): Fix partition handling and blocklist
3823 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3825 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3826 redundant buggy overlap check.
3828 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3830 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3833 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3835 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3836 kh.loadflags on pre-2.00 kernels.
3838 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3840 Terminate UNDI and PXE before launching the payload to avoid problems
3843 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3844 (grub_loader_flags): ... this. All users updated.
3845 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3846 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3847 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3848 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3850 (grub_pxe_restore): Likewise.
3851 (fini_hnd): New var.
3852 (GRUB_MOD_INIT): Register shutdown hook.
3853 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3854 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3855 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3856 (grub_loader_set): Rename second argument to flags.
3858 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3860 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3862 (grub_get_num_of_utf8_bytes): New function.
3863 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3864 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3866 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3867 (grub_ucs4_to_utf8): Change return type.
3869 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3871 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3873 * grub-core/fs/bfs.c (hop_level): Likewise.
3874 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3876 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3878 * grub-core/lib/adler32.c: Recode due to license unclearness.
3880 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3882 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3883 (test_header): Likewise.
3885 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3887 Fix --help formatting.
3889 * util/grub-mkconfig_lib.in (print_option_help): New function.
3890 (grub_fmt): Likewise.
3891 * util/grub-install.in: Use print_option_help and grub_fmt.
3892 * util/grub-kbdcomp.in: Likewise.
3893 * util/grub-mkconfig.in: Likewise.
3894 * util/grub-mknetdir.in: Likewise.
3895 * util/grub-mkrescue.in: Likewise.
3896 * util/grub-mkstandalone.in: Likewise.
3897 * util/grub-reboot.in: Likewise.
3898 * util/grub-set-default.in: Likewise.
3899 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3901 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3903 * linguas.sh: Remove autogenerated *.po.
3905 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3907 * po/README: Move language fetcing to ...
3908 * linguas.sh: ... here.
3909 * po/README: Point to linguas.sh.
3911 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3913 * po/README: Exclude ko.po due to disclaimer problems.
3915 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3917 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3919 (grub_gettext_translate_real): Handle 0th string.
3920 (grub_gettext_translate): Ensure that "" isn't translated.
3922 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3924 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3925 TRANSLATORS comment.
3926 (grub_diskfilter_print_partmap): Propagate changing of error into
3929 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3931 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
3932 to uint64_t to prevent overflow.
3933 (grub_diskfilter_lv): Increase start_extent and extent_count
3934 to uint64_t to prevent overflow.
3936 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3938 * configure.ac: Increase version.
3940 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3942 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
3944 * po/Rules-translit: New file.
3945 * po/arabic.sed: Likewise.
3946 * po/cyrillic.sed: Likewise.
3947 * po/greek.sed: Likewise.
3948 * po/hebrew.sed: Likewise.
3949 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
3950 * po/Makefile.in.in: Add extra_dist4.
3952 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3954 Handle big-endian minixfs (fixes minixfs tests on bigendian).
3956 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
3957 modify names. Introduce MODE_BIGENDIAN.
3958 * grub-core/fs/minix_be.c: New file.
3959 * grub-core/fs/minix2_be.c: Likewise
3960 * grub-core/fs/minix3_be.c: Likewise.
3961 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
3963 * grub-core/Makefile.core.def (minix_be): New module.
3964 (minix2_be): Likewise.
3965 (minix3_be): Likewise.
3967 2012-04-01 Felix <email@hamburg.de>
3969 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
3970 (devs): Add MBP 2011.
3972 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3974 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
3976 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3978 * grub-core/normal/cmdline.c (print_completion): New field
3980 (grub_cmdline_get): Handle width properly.
3982 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
3984 * grub-core/commands/lsacpi.c (options): Add missing terminator.
3986 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3988 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
3989 after 29th of February.
3991 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
3993 Fix exfat endianness handling.
3995 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
3996 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
3997 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
3998 Byte-swap utf16 when necessary.
3999 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4001 2012-03-31 Anton Blanchard <anton@samba.org>
4002 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4004 Fix btrfs endianness handling.
4006 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4007 (lower_bound): Make root uint64_t. Use root in le.
4008 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4009 (find_path): Fix template key init.
4010 (grub_btrfs_dir): Fix mtime byteswap.
4011 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4013 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4015 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4016 recursion_depth. Break infinite resursions. All users updated.
4018 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4020 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4022 Reported by: Peter Jones.
4024 2012-03-31 Anton Blanchard <anton@samba.org>
4026 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4029 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4031 * util/grub-install.in: Fix nvram call for PreP.
4033 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4035 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4036 the error when some elements are missing into a warning.
4038 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4040 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4042 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
4044 * docs/grub.texi (Invoking grub-probe): New section.
4045 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4047 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4049 Fix tab and wide character handling in editor and menu.
4051 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4052 agglomerate control characters with combining marks.
4053 (bidi_line_wrap): Allow break on tab.
4054 (grub_unicode_get_comb_start): New function.
4055 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4057 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4059 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4060 fixed_tab_size. All users updated.
4061 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4062 (grub_term_getcharwidth): Handle \t.
4063 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4066 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4068 Handle big-endian mdraid.
4070 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4071 * grub-core/Makefile.core.def (mdraid09_be): New module.
4072 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4073 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4074 * grub-core/disk/mdraid_linux_be.c: New file.
4076 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4078 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4080 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4082 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4083 missing quotes which caused confusion among translators.
4085 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4087 * util/grub-mkconfig_lib.in: Fix typo.
4089 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4091 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4093 * tests/grub_script_leading_whitespace.in: New file.
4094 * Makefile.util.def (grub_script_leading_whitespace): New test.
4096 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4098 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4101 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4103 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4104 starts with control character.
4106 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4108 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4110 (grub_gdb_outbuf): Likewise.
4112 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4114 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4115 zero terminator. Fixes a crash.
4117 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4119 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4121 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4122 images independently of preffered adderss field.
4124 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4126 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4127 * grub-core/commands/regexp.c: Likewise.
4128 * grub-core/loader/i386/linux.c: Likewise.
4129 * grub-core/partmap/msdos.c: Likewise.
4130 * grub-core/script/execute.c: Likewise.
4131 * grub-core/term/gfxterm.c: Likewise.
4133 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4135 Add variable parsing in $"..." and fix several mismatches with bash.
4137 * Makefile.util.def (grub_script_gettext): New test.
4138 * grub-core/script/execute.c (parse_string): New function.
4139 (gettext_append): Likewise.
4140 (grub_script_arglist_to_argv): Use gettext_append.
4141 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4142 * tests/grub_script_gettext.in: New file.
4144 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4146 Fix handling of leading spaces in scripts.
4148 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4150 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4151 other than skipping \r. All users updated.
4152 * tests/grub_script_echo1.in: Add space-related tests.
4153 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4155 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4157 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4159 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4161 * configure.ac: Bump up the version to beta2.
4163 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4165 Fix gettext reload bugs (e.g. inability to disable gettext
4168 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4169 main_context and secondary_context. All functions updated.
4170 (grub_gettext_translate): Rename to ...
4171 (grub_gettext_translate_real): ... this. Return NULL on failed
4173 (grub_gettext_translate): Handle secondary context.
4174 (grub_gettext_delete_list): Close file and zero-out the context.
4175 (grub_mofile_open): Don't call grub_gettext_delete_list.
4177 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4178 if locale="" to avoid pointless error message.
4179 (grub_gettext_env_write_lang): Update lang even if load fails.
4180 Handle secondary context.
4181 (grub_gettext_reread_prefix): New function.
4182 (read_main): Likewise.
4183 (read_secondary): Likewise.
4184 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4185 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4186 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4187 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4189 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4191 * configure.ac: Decrease warning level to avoid spurious warnings and
4192 to be able to compile with GCC 4.2.
4193 * Makefile.util.def: Remove -Wno-error=logical-op.
4195 2012-03-10 William Bittner <william.bittner@gmail.com>
4197 * util/import_unicode.py: Add missing brackets around string for
4200 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4202 Fix efi chainloader on network root.
4204 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4206 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4209 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4211 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4212 unused show_text member.
4213 * docs/grub.texi: Document "text" property.
4215 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4217 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4220 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4222 Fix IMSM handling on Fedora.
4224 * util/getroot.c (grub_util_is_imsm): New function.
4225 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4227 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4229 * Makefile.am: Strip gold section.
4230 * conf/Makefile.common: Likewise.
4231 * gentpl.py: Likewise.
4232 * grub-core/Makefile.core.def: Likewise.
4233 * grub-core/genmod.sh.in: Likewise.
4235 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4237 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4238 * util/grub.d/20_linux_xen.in: Likewise.
4239 Based on Debian patch.
4241 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4243 * util/grub.d/10_linux.in: Fix syntax error resulting in
4244 Richard Laager's patch.
4245 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4247 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4249 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4252 2012-03-10 Richard Laager <rlaager@wiktel.com>
4254 * util/grub.d/10_linux.in: Fix ZFS root passing.
4256 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4258 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4259 * grub-core/commands/xnu_uuid.c: Likewise.
4260 * grub-core/loader/efi/appleloader.c: Likewise.
4261 * grub-core/script/execute.c: Likewise.
4262 * grub-core/script/main.c: Likewise.
4263 * util/grub-mkfont.c: Likewise.
4265 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4267 * util/grub-mkfont.c (options): Use more appropriate "select" that
4268 "set" for face index.
4270 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4272 * util/grub-editenv.c (options): Gettextize command summaries.
4274 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4276 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4277 "out of memory" error messagge.
4279 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4281 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4282 of diskfilter for diskfilter on diskfilter support.
4284 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4286 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4288 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4290 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4293 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4295 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4297 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4299 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4301 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4303 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4306 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4308 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4310 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4312 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4314 * util/grub-install.in: Fix and gettextize error message.
4316 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4318 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4320 * util/grub-mount.c (options): Likewise.
4322 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4324 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4326 * grub-core/commands/search_wrap.c (options): Likewise.
4328 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4330 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4332 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4334 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4336 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4339 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4341 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4342 "temporary" since it's used in identifier and is limited in space.
4344 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4346 * po/POTFILES.in: Regenerate. Include *.h since they contain
4347 translatable strings as well.
4349 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4351 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4352 byte-swap on big-endian.
4353 Reported by: Lennart Sorensen
4355 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4357 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4358 (allocate_pages): Improve dprintf.
4359 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4360 code32_start. Fill code32_start and kernel_alignment in params.
4361 (grub_cmd_initrd): Use prot_init_space.
4363 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4365 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4367 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4369 * util/grub-install.in: Add missing dot at the end of sentence.
4371 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4373 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4374 * grub-core/commands/videotest.c: Likewise.
4375 * grub-core/loader/i386/linux.c: Likewise.
4377 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4379 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4381 Reported by: Milo Casagrande.
4383 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4385 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4386 * grub-core/commands/gptsync.c: Likewise.
4387 * grub-core/commands/hashsum.c: Likewise.
4388 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4389 * grub-core/commands/legacycfg.c: Likewise.
4390 * grub-core/io/gzio.c: Likewise.
4391 * grub-core/net/net.c: Likewise.
4392 * grub-core/term/gfxterm.c: Likewise.
4393 * grub-core/term/terminfo.c: Likewise.
4394 * grub-core/tests/test_blockarg.c: Likewise.
4395 * grub-core/video/video.c: Likewise.
4396 * util/grub-install.in: Likewise.
4397 * util/grub-mkfont.c: Likewise.
4399 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4401 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4403 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4405 * grub-core/commands/search_wrap.c (options): Fix a typo.
4406 Reported by: David Prévot.
4408 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4410 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4413 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4415 * util/grub-script-check.c (main): Fix a syntax error message which was
4418 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4420 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4422 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4424 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4427 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4429 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4431 * util/grub-mount.c (options): Likewise.
4433 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4435 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4437 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4439 * grub-core/net/http.c: Add TRANSLATORS comments.
4440 * grub-core/normal/cmdline.c: Likewise.
4441 * grub-core/normal/misc.c: Likewise.
4442 * grub-core/partmap/msdos.c: Likewise.
4443 * grub-core/parttool/msdospart.c: Likewise.
4444 * grub-core/script/execute.c: Likewise.
4445 * grub-core/script/main.c: Likewise.
4446 * grub-core/term/terminfo.c: Likewise.
4447 * grub-core/video/bitmap.c: Likewise.
4448 * util/grub-install.in: Likewise.
4449 * util/grub-mkimage.c: Likewise.
4450 * util/grub-mklayout.c: Likewise.
4451 * util/grub-setup.c: Likewise.
4453 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4455 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4456 with similar messages in grub-fstest.
4458 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4460 * util/grub-install.in: Unify "option requires an argument" message
4461 with similar messages in other files.
4462 * util/grub-mkconfig.in: Likewise.
4464 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4466 * util/grub-set-default.in: Replace printf with gettext_printf (the
4467 string in in question is already translated from grub-reboot)
4469 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4471 * configure.ac: Bump up the version to beta1.
4473 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4475 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4476 case when min_align = 0.
4478 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4480 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4481 and fix a case when line_start overflows.
4483 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4485 * util/grub-reboot.in (usage): Mention id posibility.
4486 * util/grub-set-default.in (usage): Likewise.
4488 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4490 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4491 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4492 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4493 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4494 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4495 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4496 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4498 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4500 * grub-core/commands/menuentry.c (options): Remove
4501 GRUB_ARG_OPTION_REPEATABLE.
4502 Reported by: Andreas Vogel
4504 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4506 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4508 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4510 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4513 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4515 Use sort -V by the idea of Georgi Georgiev.
4517 * util/grub-mkconfig_lib.in (version_sort): New function.
4518 (version_test_numeric): Use version_sort.
4520 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4522 Use submenus in grub-mkconfig.
4524 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4525 * util/grub-mkconfig_lib.in (grub_quote): New function.
4526 (gettext_printf): Use gettext and not gettext_quoted to fix several
4528 * util/grub.d/10_hurd.in: Use submenus.
4529 * util/grub.d/10_kfreebsd.in: Likewise.
4530 * util/grub.d/10_linux.in: Likewise.
4531 * util/grub.d/10_netbsd.in: Likewise.
4532 * util/grub.d/20_linux_xen.in: Likewise.
4533 * util/grub.d/30_os-prober.in: Likewise.
4534 * util/grub.d/10_illumos.in: Add missing quoting.
4535 * util/grub.d/10_windows.in: Likewise.
4537 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4539 Fix menu title instability bug.
4541 * grub-core/commands/menuentry.c (options): New option --id.
4542 (grub_normal_add_menu_entry): New argument id. All users updated.
4543 (grub_cmd_menuentry): Handle --id.
4544 (grub_menu_init): Accept unknown arguments.
4545 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4546 feature_menuentry_options.
4547 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4549 (get_entry_number): Match with id as well.
4550 * include/grub/menu.h (grub_menu_entry): New member id.
4551 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4552 * util/grub.d/00_header.in: Define menuentry_id_option.
4553 * util/grub.d/10_hurd.in: Define id.
4554 * util/grub.d/10_illumos.in: Likewise.
4555 * util/grub.d/10_kfreebsd.in: Likewise.
4556 * util/grub.d/10_linux.in: Likewise.
4557 * util/grub.d/10_netbsd.in: Likewise.
4558 * util/grub.d/10_windows.in: Likewise.
4559 * util/grub.d/20_linux_xen.in: Likewise.
4560 * util/grub.d/30_os-prober.in: Likewise.
4562 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4564 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4565 "scope" with "body".
4567 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4569 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4570 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4571 prot_size and prot_file_size.
4573 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4575 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4576 All users updated. If easily=1 require raid-5/-6 to be full.
4577 (is_node_readable): Likewise.
4578 (scan_devices): Scan incomplete but readable LVs at the end.
4579 (grub_diskfilter_memberlist): Pull missing devices.
4580 (insert_array): Skip scanning until device is complete or scan is
4582 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4584 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4585 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4587 2012-03-03 Matthew Garrett <mjg@redhat.com>
4588 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4590 Avoid EFI boot services when loading Linux.
4592 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4593 avoid_efi_bootservices. All users updated.
4594 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4595 argument avoid_efi_bootservices. All users updated.
4596 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4597 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4598 align, min_align, relocatable, prefered_address. All users updated.
4599 Allocate avoiding boot services if kernel is relocatable.
4600 (grub_cmd_linux): Check if kernel is relocatable.
4601 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4602 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4603 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4604 avoid_efi_boot_services.
4605 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4606 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4607 (linux_kernel_params): Likewise.
4609 2012-03-03 Matthew Garrett <mjg@redhat.com>
4610 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4614 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4616 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4617 modes. Set gop_handle.
4618 (grub_video_gop_get_edid): New function.
4619 (grub_gop_get_preferred_mode): Likewise.
4620 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4621 (grub_video_efi_gop_adapter): Set .get_edid.
4622 * include/grub/efi/edid.h: New file.
4623 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4625 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4627 * util/grub-install.in: Load efivars unconditionally.
4629 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4631 * po/Rules-piglatin: Change suffix from .po-update-en to
4632 .po-update-en-piglatin.
4634 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4638 * po/piglatin.sed: New file.
4639 * po/en@piglatin.header: Likewise.
4640 * po/Rules-piglatin: Likewise.
4641 * po/README: Add en@piglatin to autogenerated languages.
4643 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4645 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4647 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4648 "Check" since we don't check anything.
4649 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4651 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4652 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4653 (grub_md_sha512_real): Likewise.
4655 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4657 * grub-core/commands/gptsync.c: Fix typographic quoting.
4658 * grub-core/commands/ieee1275/suspend.c: Likewise.
4659 * grub-core/commands/parttool.c: Likewise.
4660 * grub-core/commands/search_wrap.c: Likewise.
4661 * grub-core/commands/videoinfo.c: Likewise.
4662 * grub-core/gfxmenu/gui_label.c: Likewise.
4663 * grub-core/hello/hello.c: Likewise.
4664 * grub-core/kern/emu/main.c: Likewise.
4665 * grub-core/net/net.c: Likewise.
4666 * grub-core/normal/menu.c: Likewise.
4667 * grub-core/normal/menu_text.c: Likewise.
4668 * grub-core/normal/misc.c: Likewise.
4669 * util/grub-editenv.c: Likewise.
4670 * util/grub-install.in: Likewise.
4671 * util/grub-kbdcomp.in: Likewise.
4672 * util/grub-mkconfig.in: Likewise.
4673 * util/grub-mknetdir.in: Likewise.
4674 * util/grub-mkrescue.in: Likewise.
4675 * util/grub-mkstandalone.in: Likewise.
4676 * util/grub-reboot.in: Likewise.
4677 * util/grub-set-default.in: Likewise.
4678 * util/grub-setup.c: Likewise.
4679 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4681 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4683 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4684 * grub-core/commands/keystatus.c: Likewise.
4685 * grub-core/commands/loadenv.c: Likewise.
4686 * grub-core/commands/probe.c: Likewise.
4687 * grub-core/commands/regexp.c: Likewise.
4688 * grub-core/commands/true.c: Likewise.
4689 * grub-core/commands/videoinfo.c: Likewise.
4690 * grub-core/disk/cryptodisk.c: Likewise.
4691 * grub-core/disk/ldm.c: Likewise.
4692 * grub-core/disk/loopback.c: Likewise.
4693 * grub-core/disk/luks.c: Likewise.
4694 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4695 * grub-core/kern/disk.c: Likewise.
4696 * grub-core/kern/emu/hostdisk.c: Likewise.
4698 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4700 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4701 * util/grub-install.in: Add missing quote in the comment.
4703 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4705 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4706 * grub-core/commands/lsmmap.c: Likewise.
4707 * grub-core/commands/minicmd.c: Likewise.
4708 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4709 * grub-core/commands/regexp.c: Likewise.
4710 * grub-core/gdb/gdb.c: Likewise.
4711 * grub-core/term/gfxterm.c: Likewise.
4712 * util/grub-mkconfig.in: Likewise.
4713 * util/grub-mkfont.c: Likewise.
4714 * util/grub-mklayout.c: Likewise.
4715 * util/grub-mknetdir.in: Likewise.
4716 * util/grub-mkrescue.in: Likewise.
4717 * util/grub.d/30_os-prober.in: Likewise.
4719 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4721 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4722 with "Direct color" and "Packed" with "Packed pixel".
4723 (grub_cmd_videoinfo): Simplify legend.
4725 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4727 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4728 absolutely unclear error message.
4730 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4732 * util/grub-mkstandalone.in: Remove confusing leftover print.
4734 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4736 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4738 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4739 (GRUB_MOD_INIT): Likewise.
4740 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4742 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4744 * util/grub-install.in (usage): Likewise.
4745 Spell ID in whole letters.
4746 Add missing ending dot.
4748 * util/grub-reboot.in: Fix capitalisation.
4749 * util/grub-set-default.in: Likewise.
4751 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4753 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4754 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4755 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4756 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4757 Disable -Werror for -Wdeprecated-declarations.
4758 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4759 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4760 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4761 (grub_util_get_grub_dev): Make luks handling dependent on
4762 HAVE_DEVICE_MAPPER and not __linux__.
4763 (get_win32_path): Fix format security.
4764 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4765 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4766 Don't try grub_find_zpool_from_dir.
4767 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4768 #ifdef-out paresdir.
4770 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4772 * util/grub-pe2elf.c (usage): Add missing noreturn.
4773 (write_section_data): Rename name to shname to avoid shadowing.
4774 (write_symbol_table): Rename name to symname to avoid shadowing.
4775 Fix write_reloc_section call.
4777 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4779 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4780 to ensure that it's after the last byte of .text.
4782 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4784 * util/ieee1275/ofpath.c (my_isdigit): New function.
4785 (trailing_digits): Use my_isdigit.
4786 (strip_trailing_digits): Likewise.
4788 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4790 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4791 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4793 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4795 * grub-core/kern/i386/pc/startup.S: Define __start.
4797 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4799 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4800 strip already transforms he format.
4802 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4804 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4806 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4808 * util/grub-install.in: Add missing gettext init.
4809 * util/grub-kbdcomp.in: Likewise.
4810 * util/grub-mkconfig.in: Likewise.
4811 * util/grub-mknetdir.in: Likewise.
4812 * util/grub-mkrescue.in: Likewise.
4813 * util/grub-mkstandalone.in: Likewise.
4814 * util/grub-reboot.in: Likewise.
4815 * util/grub-set-default.in: Likewise.
4816 * util/grub.d/00_header.in: Likewise.
4817 * util/grub.d/10_hurd.in: Likewise.
4818 * util/grub.d/10_windows.in: Likewise.
4819 * util/grub.d/30_os-prober.in: Likewise.
4820 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4822 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4824 * po/Rules-swiss: Fix header comment.
4826 2012-02-29 Andreas Vogel <anvoit>
4828 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4829 resulted in leak of arguments.
4831 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4833 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4834 reed_solomon_size const definition instead of computing it since
4835 Apple assembler doesn't support the later.
4837 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4839 * gentpl.py (kernel): Rewrite Apple part.
4841 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4843 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4845 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4847 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4849 (load_image): Likewise.
4851 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4853 * configure.ac: Fix a typo in previous commit.
4855 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4857 Don't add -Wl,-N on Apple platform.
4859 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4860 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4862 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4864 * grub-core/Makefile.core.def (lzma_decompress): Use
4865 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4867 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4869 * grub-core/genmod.sh.in: Rewrite the Apple part.
4871 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4873 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4876 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4878 * acinclude.m4 (grub_CHECK_PIC): New test.
4879 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4881 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4883 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4884 to avoid the warning.
4886 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4888 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4889 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4890 after. All users updated.
4892 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4894 Use the common size routine in hostfs so we can read disks as well.
4896 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4897 (grub_util_get_fd_size): ... this. Return size in bytes.
4899 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4900 grub_util_get_fd_size.
4902 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4904 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4905 Add blocksize retrieval.
4907 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4909 * configure.ac: Restore CFLAGS after efiemu check.
4911 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4913 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4916 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4918 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4920 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4922 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4923 (grub_cmd_halt): Likewise.
4925 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4927 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4928 for local arithmetics.
4929 Break %sp init into 2 instructions.
4930 Add 0 byte at the end.
4932 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4934 * grub-core/disk/diskfilter.c (read_segment): Initialise err
4937 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4939 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
4942 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4944 * grub-core/disk/ldm.c (make_vg): Init part.name.
4945 (grub_ldm_detect): Silence spurious warning.
4946 (grub_util_is_ldm): Likewise.
4948 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4950 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
4951 sane value to avoid a spurious warning.
4953 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4955 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
4956 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
4958 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4960 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
4961 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
4963 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4965 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
4966 hardcoding the relevant info.
4968 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4970 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
4971 missing const qualifiers.
4972 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
4974 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4976 * util/getroot.c [__APPLE__]: Add missing includes.
4977 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
4979 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4981 * util/grub-mkimage.c (generate_image): Silence spurious warning.
4983 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4985 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
4988 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4990 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
4992 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4994 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
4995 and grub_file_close call.
4997 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4999 Add LZSS Mach-O support (needed for new xnu kernelcache).
5001 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5002 * grub-core/loader/lzss.c: New file.
5003 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5004 on Mach-O open failure.
5005 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5006 Don't free cmdsXX in uncompressedXX is set.
5007 (grub_macho_file): Init new fields.
5008 New argument is_64bit. All users updated.
5009 Handle compressed. Error out if no suitable architecture is found.
5011 (grub_macho_open): New argument is_64bit. All users updated.
5012 * grub-core/loader/macho32.c: Add defines for new fields.
5013 * grub-core/loader/macho64.c: Likewise.
5014 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5015 (grub_macho_parse): Handle compressed.
5016 Defer actual processing if compressed.
5017 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5018 "filename". All users updated.
5019 (grub_macho_size): New argument "filename". All users updated.
5020 (grub_macho_get_entry_point): Likewise.
5021 (grub_macho_load): Handle compressed.
5022 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5023 (GRUB_MACHO_LZSS_OFFSET): New define.
5024 (grub_decompress_lzss): New proto.
5025 * include/grub/machoload.h (grub_macho_file): New fields to handle
5027 (grub_macho_contains_macho64): Remove proto.
5028 (grub_macho_contains_macho32): Likewise.
5029 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5031 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5033 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5035 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5039 * Makefile.am (starfield_theme_files): New var.
5040 (starfield_DATA): Use starfield_theme_files.
5041 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5042 Add bootcheck-related files.
5043 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5044 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5045 and font_char_metrics.txt.
5046 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5047 (setjmp): Add lib/ia64/longjmp.S.
5048 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5049 * po/POTFILES.in: Regenerate.
5050 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5051 DISTFILES.common.extra1.
5052 * util/devicemap.c: Removed.
5053 * grub-core/lib/i386/relocator_backward.S: Likewise.
5054 * util/import_gcry.py: Remove unused files. Add extra_dist for
5057 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5059 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5060 grub_gettext_delete_list before changing grub_gettext_max to avoid
5061 running out of array bounds.
5063 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5065 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5066 grub_vga_text_init/grub_vga_text_fini.
5068 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5070 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5072 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5074 * configure.ac: Bump to 2.00~beta0.
5076 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5078 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5079 missing initialisation.
5081 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5083 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5085 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5087 Support v2 xnu boot arguments.
5089 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5090 New argument fsbfreq_out.
5091 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5092 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5094 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5096 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5097 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5098 (grub_xnu_boot_params): Rename to ...
5099 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5100 (grub_xnu_boot_params_v2): New struct.
5102 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5104 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5105 zeroing of CRC field before computing CRC.
5107 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5109 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5110 Change order of allocations to decrease fragmentation.
5112 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5114 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5116 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5118 Use write-combining MTRR to speed up video with buggy BIOSes.
5120 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5121 (cpuid): New define.
5124 (mtrr_base): Likewise.
5125 (mtrr_mask): Likewise.
5126 (grub_vbe_enable_mtrr_entry): New function.
5127 (grub_vbe_enable_mtrr): Likewise.
5128 (grub_vbe_disable_mtrr): Likewise.
5129 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5130 control off to BIOS.
5131 (grub_video_vbe_init): Fill mtrr.
5132 (grub_video_vbe_fini): Disable mtrr.
5133 (grub_video_vbe_get_info_and_fini): Likewise.
5134 (grub_video_vbe_setup): Enable mtrr.
5136 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5138 * include/grub/partition.h (grub_partition_map): Change prototype of
5139 embed to take a maximum value for nsectors.
5140 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5141 * include/grub/fs.h (grub_fs): Likewise.
5142 * grub-core/partmap/msdos.c (embed_signatures): New array.
5143 (pc_partition_map_embed): Check for and avoid sectors matching any
5144 of the signatures in embed_signatures, up to max_nsectors.
5145 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5146 returned sector map to max_nsectors.
5147 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5148 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5149 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5150 * util/grub-setup.c (setup): Allow for the embedding area being
5151 split into multiple blocklists. Tell dest_partmap->embed the
5152 maximum number of sectors we care about.
5154 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5156 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5157 Specify blocklist_install and reserver_first_sector for all fs.
5158 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5161 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5163 * util/grub-install.in: Clarify strings.
5164 Fix source dir check.
5166 2012-02-27 Richard Laager <rlaager@wiktel.com>
5168 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5169 "zfs" and "fuse.zfs" as synonyms.
5171 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5173 * configure.ac: Put platform and target_cpu substitutions back since
5174 they are used for directories.
5176 2012-02-27 Richard Laager <rlaager@wiktel.com>
5177 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5179 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5180 * util/grub.d/20_linux_xen.in: Likewise.
5182 2012-02-27 Richard Laager <rlaager@wiktel.com>
5184 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5187 2012-02-27 Richard Laager <rlaager@wiktel.com>
5189 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5192 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5194 Don't use insecure popen in getroot.
5196 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5197 (exec_pipe): ... here.
5198 (find_root_devices_from_poolname): Use exec_pipe.
5200 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5202 Remove platform and target_cpu replacement.
5204 * configure.ac: Remove platform and target_cpu substitutions.
5205 * tests/util/grub-shell.in: Use modinfo.
5206 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5209 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5211 Autodetect platform in grub-install but allow override.
5213 * util/grub-install.in: Autodetect platform. Support --target and
5214 --directory. Read platform from modinfo.sh.
5216 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5218 Support btrfs multi-volume probe.
5220 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5221 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5222 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5223 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5224 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5225 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5226 grub_find_root_devices_from_btrfs if on btrfs.
5228 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5230 Remove any awareness of *.c util files about target.
5232 * Makefile.util.def (grub-setup): Split to ...
5233 (grub-bios-setup): ... and this.
5234 (grub-sparc64-setup): ... and this.
5235 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5236 * docs/man/grub-setup.h2m: Split into ...
5237 * docs/man/grub-sparc64-setup.h2m: ... this.
5238 * docs/man/grub-bios-setup.h2m: ... and this.
5239 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5240 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5241 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5242 (grub_target_addr_t): Remove.
5243 (grub_target_size_t): Remove.
5244 (grub_target_ssize_t): Remove.
5245 * util/grub-install.in: Use new grub-*-setup.
5246 * util/grub-mkimagexx.c (Elf_Word): New define.
5247 (Elf_Half): Likewise.
5248 (Elf_Section): Likewise.
5249 (ELF_ST_TYPE): Likewise.
5250 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5251 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5253 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5255 Replace grub_target_addr with more appropriate types.
5257 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5258 grub_target_addr with grub_addr.
5259 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5260 grub_target_addr with grub_port.
5261 (grub_cmd_write): Likewise.
5262 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5263 grub_target_addr with grub_addr.
5264 (grub_cmd_write): Likewise.
5265 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5267 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5269 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5270 const qualifier for vendor_guid.
5272 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5274 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5276 (efiemu_memequal): Likewise.
5277 (find_variable): Likewise.
5279 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5281 Fix missing console prototype on qemu-mips.
5283 * include/grub/mips/qemu_mips/console.h: New file.
5285 2012-02-27 Matthew Garrett <mjg@redhat.com>
5286 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5288 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5289 * include/grub/efi/efi.h: Likewise.
5290 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5291 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5292 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5293 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5294 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5295 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5297 2012-02-27 Matthew Garrett <mjg@redhat.com>
5299 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5301 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5303 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5306 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5308 * configure.ac: Remove inappropriate use of program_transform_name
5309 on grubdir and bootdir but allow explicit specification of those
5312 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5314 * util/grub-mknetdir.in (grub_prefix): Removed.
5315 (subdir): Use @bootdirname@ and @grubdirname@.
5317 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5319 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5321 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5323 * po/POTFILES.in: Regenerated.
5325 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5327 Remove improper use of program_transform_name on pkglibrootdir.
5329 * configure.ac (pkglibrootdir): Removed.
5330 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5331 * util/grub-mkimage.c: Likewise.
5333 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5335 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5338 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5340 * util/grub-install.in: Use file identifier if no UUID is available
5341 or user explicitly prompted for it.
5343 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5345 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5346 (freebsd_get_zfs): New function.
5347 (grub_freebsd_boot): Pass zfs UUID.
5348 (grub_cmd_freebsd): Set zfs UUID.
5350 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5352 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5355 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5357 Add configure flag to control libzfs integration.
5359 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5361 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5363 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5365 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5368 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5370 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5371 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5372 be used on non-modules.
5374 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5375 Rename to grub_boot_init.
5376 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5377 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5378 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5379 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5380 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5381 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5382 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5383 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5385 (grub_machine_init): Remove empty inits.
5386 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5388 (grub_machine_init): Remove empty inits.
5389 * grub-core/term/arc/console.c: Remove explicit proto.
5390 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5391 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5392 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5393 grub_at_keyboard_fini.
5394 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5395 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5396 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5398 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5399 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5400 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5402 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5403 * grub-core/term/serial.c (GRUB_MOD_INIT)
5404 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5405 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5407 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5408 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5409 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5411 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5412 (GRUB_MOD_FINI): Likewise.
5413 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5414 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5415 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5416 grub_video_radeon_fuloong2e_fini.
5417 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5418 [LOONGSON]: Rename to grub_video_sis315pro_init.
5419 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5420 grub_video_sis315pro_fini.
5421 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5422 [LOONGSON]: Rename to grub_video_sm712_init.
5423 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5424 grub_video_sm712_fini.
5425 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5426 (grub_at_keyboard_fini): Likewise.
5427 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5428 Don't declare grub_{modname}_init.
5429 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5430 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5432 (grub_keylayouts_fini) [!EMU]: Likewise.
5433 * include/grub/serial.h (grub_serial_init) [!EMU]:
5435 (grub_serial_fini) [!EMU]: Likewise.
5436 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5438 (grub_terminfo_fini) [!EMU]: Likewise.
5439 * include/grub/video.h (grub_font_init) [!EMU]:
5441 (grub_font_fini) [!EMU]: Likewise.
5442 (grub_gfxterm_init) [!EMU]: Likewise.
5443 (grub_gfxterm_fini) [!EMU]: Likewise.
5444 (grub_video_sm712_init) [!EMU]: Likewise.
5445 (grub_video_sm712_fini) [!EMU]: Likewise.
5446 (grub_video_sis315pro_init) [!EMU]: Likewise.
5447 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5448 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5449 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5451 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5453 Make nand a prefix for nand devices.
5455 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5457 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5459 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5460 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5462 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5464 * include/grub/env.h (grub_env_find): Remove prototype.
5465 * grub-core/kern/env.c (grub_env_find): Make static.
5466 (grub_env_set): Remove useless set.
5468 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5470 * grub-core/kern/i386/realmode.S: Remove useless align.
5472 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5474 * include/grub/dl.h (grub_dl_load_file): Don't export.
5476 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5478 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5481 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5483 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5485 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5486 not reloading whole superblock but only the part which is really needed.
5487 Remove useless grub_errors.
5488 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5491 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5493 Don't export grub_get_rtc.
5495 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5496 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5498 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5500 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5502 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5504 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5505 argument since it can be deduced from diskfilter. All users updated.
5507 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5511 * include/grub/list.h (grub_prio_list): Removed.
5512 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5513 GRUB_COMMAND_PRIO_MASK.
5514 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5515 GRUB_COMMAND_FLAG_ACTIVE.
5516 (grub_prio_list_insert): Removed.
5517 (grub_prio_list_remove): Likewise.
5518 (GRUB_AS_PRIO_LIST): Likewise.
5519 (GRUB_AS_PRIO_LIST_P): Likewise.
5520 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5521 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5522 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5523 * grub-core/kern/command.c (grub_register_command_prio): Inline
5525 (grub_unregister_command): Likewise.
5527 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5529 Fix interrupt mixup from previous commit.
5531 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5532 (grub_realidt): New var.
5533 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5535 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5537 (grub_relocator16_boot): Set grub_relocator16_idt.
5538 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5539 (LOCAL(realidt)): ... this.
5540 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5541 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5542 (grub_realidt): New variable.
5544 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5546 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5547 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5548 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5549 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5551 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5552 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5553 * po/POTFILES.in: Regenerate.
5555 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5557 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5560 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5562 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5564 (add_length): Likewise.
5566 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5567 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5569 GDB serial and backtrace support.
5571 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5572 (prot_to_real): Likewise.
5573 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5574 * grub-core/Makefile.core.def (backtrace): New module.
5576 * grub-core/gdb/cstub.c: New file.
5577 * grub-core/gdb/gdb.c: Likewise.
5578 * grub-core/gdb/i386/idt.c: Likewise.
5579 * grub-core/gdb/i386/machdep.S: Likewise.
5580 * grub-core/gdb/i386/signal.c: Likewise.
5581 * grub-core/lib/i386/backtrace.c: Likewise.
5582 * grub-core/lib/backtrace.c: Likewise.
5583 * include/grub/backtrace.h: Likewise.
5584 * include/grub/gdb.h: Likewise.
5585 * include/grub/i386/gdb.h: Likewise.
5587 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5589 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5591 (add_length): Likewise.
5592 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5593 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5595 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5596 __argp_get_display_len.
5598 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5600 $"..." support in scripts.
5602 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5603 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5604 * grub-core/script/yylex.l: Likewise.
5605 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5608 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5610 * gentpl.py: Remove obsolete pkglib_DATA handling.
5612 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5614 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5617 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5618 * util/grub-kbdcomp.in: Likewise.
5619 * util/grub-mkconfig.in: Likewise.
5620 * util/grub-mkconfig_lib.in: Likewise.
5621 * util/grub-mknetdir.in: Likewise.
5622 * util/grub-mkrescue.in: Likewise.
5623 * util/grub-mkstandalone.in: Likewise.
5624 * util/grub-reboot.in: Likewise.
5625 * util/grub-set-default.in: Likewise.
5626 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5628 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5632 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5633 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5634 used for backward compatibility.
5636 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5638 Add new all_video module.
5640 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5641 * grub-core/Makefile.core.def (all_video): New module.
5642 * grub-core/genmoddep.awk: Generate dependency of all_video from
5644 * grub-core/lib/fake_module.c: New file.
5645 * grub-core/normal/main.c (features): Add feature_all_video_module.
5646 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5647 don't do explicit search again.
5648 insmod all_video in load_video if available.
5650 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5652 Another round of string clarification and adding TRANSLATORS comments.
5654 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5656 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5658 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5660 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5662 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5663 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5665 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5667 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5668 trailing newline implicitly. All users updated.
5670 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5672 Implement serial on IEEE1275 and EFI.
5674 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5675 on emu. Mention arc and emu as the only platforms without serial
5677 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5679 * grub-core/term/efi/serial.c: New file.
5680 * grub-core/term/ieee1275/serial.c: Likewise.
5681 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5682 specification if no ns8250 driver is available.
5683 (grub_cmd_serial): Likewise.
5684 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5685 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5686 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5687 (grub_efi_parity_type_t): New type.
5688 (grub_efi_stop_bits_t): Likewise.
5689 (grub_efi_serial_io_interface): New struct.
5690 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5691 available for all interfaces.
5692 Add EFI and IEEE1275 fields.
5693 (grub_ofserial_init): New proto.
5694 (grub_efiserial_init): Likeiwse.
5695 * util/grub.d/00_header.in: Don't check for the presence of serial
5698 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5700 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5701 name as if it was an alias.
5703 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5705 * grub-core/commands/lsacpi.c (options): Fix typo.
5707 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5709 Convert grub-emu to argp.
5711 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5713 * util/argp_common.c: Rename to ...
5714 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5715 Add missing includes.
5716 * grub-core/kern/emu/main.c: Convert to argp.
5717 * po/POTFILES.in: Regenerate.
5718 * util/grub-install.in (usage): Make first letter lowcase in messages
5720 * util/grub-setup.c (options): Likewise.
5722 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5724 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5725 Put back accidently commented-out code.
5727 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5729 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5730 loop check using Brent algorithm.
5731 (grub_hfsplus_btree_search): Likewise.
5733 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5735 * util/grub-install.in: Fix usage of wrong device for PreP install.
5737 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5739 * conf/Makefile.common (CFLAGS_GNULIB): Add
5740 -Wno-unsafe-loop-optimizations.
5741 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5743 * grub-core/commands/legacycfg.c: Add pragma to skip
5744 -Wunsafe-loop-optimizations.
5745 (check_password_md5_real): Fix loop counter type.
5746 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5748 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5749 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5751 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5752 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5753 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5755 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5756 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5757 avoid possible infinite loops.
5758 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5759 and -Wunsafe-loop-optimizations.
5760 * grub-core/script/yylex.l: Likewise.
5761 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5762 (print_glyphs): Avoid infinite loops.
5763 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5765 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5767 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5768 to avoid infinite loop.
5769 (disp_acpi_rsdt_table): Likewise.
5771 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5773 * grub-core/font/font.c (grub_font_load): Add support for default
5774 path for fonts ($prefix/fonts).
5775 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5776 for checking if string is a path.
5777 * grub-core/normal/main.c (features): Add feature_default_font_path.
5778 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5779 * util/grub.d/00_header.in: Use default directory if possible.
5780 * util/grub-install.in: Install unicode.pf2.
5782 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5784 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5785 * po/Rules-swiss: New file.
5786 * po/swiss.sed: Likewise.
5788 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5790 * grub-core/fs/btrfs.c (find_device): Fix typos.
5791 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5792 * util/grub-mkrelpath.c (argp_parser): Likewise.
5793 Reported by: Yuri Chornoivan.
5795 2012-02-23 Dalet Omega <daletomega@gmail.com>
5797 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5798 for usual informative messages.
5800 2012-02-23 Dalet Omega <daletomega@gmail.com>
5804 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5805 * conf/Makefile.common: Define starfielddir.
5806 * configure.ac: Configure starfield.
5807 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5808 * themes/starfield/README: Likewise.
5809 * themes/starfield/blob_w.png: Likewise.
5810 * themes/starfield/boot_menu_c.png: Likewise.
5811 * themes/starfield/boot_menu_e.png: Likewise.
5812 * themes/starfield/boot_menu_n.png: Likewise.
5813 * themes/starfield/boot_menu_ne.png: Likewise.
5814 * themes/starfield/boot_menu_nw.png: Likewise.
5815 * themes/starfield/boot_menu_s.png: Likewise.
5816 * themes/starfield/boot_menu_se.png: Likewise.
5817 * themes/starfield/boot_menu_sw.png: Likewise.
5818 * themes/starfield/boot_menu_w.png: Likewise.
5819 * themes/starfield/slider_c.png: Likewise.
5820 * themes/starfield/slider_n.png: Likewise.
5821 * themes/starfield/slider_s.png: Likewise.
5822 * themes/starfield/src/blob_nw.xcf: Likewise.
5823 * themes/starfield/src/bootmenu/: Likewise.
5824 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5825 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5826 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5827 * themes/starfield/src/slider_c.xcf: Likewise.
5828 * themes/starfield/src/slider_n.xcf: Likewise.
5829 * themes/starfield/src/slider_s.xcf: Likewise.
5830 * themes/starfield/src/terminalbox/: Likewise.
5831 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5832 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5833 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5834 * themes/starfield/starfield.png: Likewise.
5835 * themes/starfield/terminal_box_c.png: Likewise.
5836 * themes/starfield/terminal_box_e.png: Likewise.
5837 * themes/starfield/terminal_box_n.png: Likewise.
5838 * themes/starfield/terminal_box_ne.png: Likewise.
5839 * themes/starfield/terminal_box_nw.png: Likewise.
5840 * themes/starfield/terminal_box_s.png: Likewise.
5841 * themes/starfield/terminal_box_se.png: Likewise.
5842 * themes/starfield/terminal_box_sw.png: Likewise.
5843 * themes/starfield/terminal_box_w.png: Likewise.
5844 * themes/starfield/theme.txt: Likewise.
5846 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5848 * util/grub.d/00_header.in: Add missing export theme.
5850 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5852 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5854 Reported by: Eren D.
5856 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5858 * conf/Makefile.common (grubdatadir): Removed.
5859 (Makefile.am): Move eveything grubdata to pkgdata.
5861 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5863 * grub-core/commands/acpihalt.c (get_sleep_type):
5864 Remove unused variable.
5866 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5868 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5869 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5870 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5871 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5872 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5873 i18n with gettext no-op.
5874 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5875 GRUB_ACPI_OPCODE_STRING_CONST.
5876 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5877 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5879 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5881 * po/POTFILES.in: Regenerate.
5883 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5885 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5886 -Wno-error=missing-noreturn.
5888 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5890 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5891 condition to avoid possibly infinite loops.
5892 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5893 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5895 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5897 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5898 condition to avoid possibly infinite loops.
5900 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5902 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5905 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5907 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5909 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5911 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5913 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5915 * util/bin2h.c (usage): Add missing attribute noreturn.
5917 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5919 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5920 if the size isn't divisible by 512.
5922 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5924 Make list_push and list_remove functions rather than inline functions
5925 to decrease size and avoid aliasing violations.
5927 * include/grub/list.h (grub_list_push): Move to ...
5928 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5929 * include/grub/list.h (grub_list_remove): Move to ...
5930 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
5932 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5934 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
5935 and -Wunused-result.
5937 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5939 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
5940 Reported by: Seth Goldberg
5942 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
5944 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
5946 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
5948 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
5949 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
5951 * docs/grub.texi (Simple configuration): Document
5952 GRUB_CMDLINE_GNUMACH.
5954 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5956 * conf/Makefile.common (platform_SCRIPTS): New variable.
5957 (platform_PROGRAMS): Likewise.
5958 * gentpl.py: Mark *,module and *.image for install.
5959 * grub-core/gdb_grub.in: Add a notice of expected environment.
5960 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
5961 (gmodule.pl): Likewise.
5963 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5965 Replace grub_checkkey with grub_getkey_noblock.
5967 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
5968 (grub_getkey_noblock): ... this. All users updated.
5970 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
5972 * grub-core/kern/emu/console.c: Move to ...
5973 * grub-core/term/emu/console.c: ...here.
5974 (grub_ncurses_getkey): Fix return value if no key is detected.
5976 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5978 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
5979 (grub_unit_test_fini): Likewise.
5980 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
5982 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5984 * include/grub/test.h (GRUB_UNIT_TEST)
5986 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5988 * grub-core/script/execute.c (grub_script_break): Clarify logic.
5989 Better error handling.
5990 (grub_script_return): Likewise.
5991 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
5993 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
5995 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
5996 rimplicit redifinition.
5998 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6000 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6003 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6005 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6006 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6009 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6011 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6012 as GRUB_ERR_BUG. Don't malloc if no device is available.
6014 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6016 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6017 Mark calling with invalid term as GRUB_ERR_BUG.
6019 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6021 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6022 packets rather than raising an error.
6024 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6026 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6029 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6031 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6032 diagnostic to dprintf.
6033 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6035 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6037 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6040 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6042 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6043 (grub_ntfs_iterate_dir): Likewise.
6045 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6047 Efiemu stylistic fixes and gettext.
6049 * grub-core/efiemu/i386/loadcore32.c
6050 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6051 * grub-core/efiemu/i386/loadcore64.c
6052 (grub_arch_efiemu_relocate_symbols64): Likewise.
6053 * grub-core/efiemu/i386/pc/cfgtables.c
6054 (grub_machine_efiemu_init_tables): Likewise.
6055 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6056 (grub_efiemu_loadcore_initXX): Add a filename argument.
6058 Improved error message.
6059 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6060 Add a filename argument.
6062 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6063 Reclassify double relocation as GRUB_ERR_BUG.
6065 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6067 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6070 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6072 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6075 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6077 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6079 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6081 Improve string. Gettextize.
6083 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6085 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6087 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6089 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6091 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6092 [GRUB_UTIL]: New function.
6093 (insert_array) [GRUB_UTIL]: Store partmaps.
6094 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6096 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6097 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6098 (probe_abstraction): Print diskfilter and not raid.
6099 Reported by: Lennart Sorensen
6101 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6103 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6104 * util/grub-mkimagexx.c (MASK3): New define.
6105 (add_value_to_slot_20b): Use MASK3.
6106 (add_value_to_slot_21): Likewise.
6107 (relocate_addresses): Fix format specification.
6108 (load_image): Explicitly init symtab_section.
6110 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6112 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6113 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6115 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6117 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6119 Reported by: Lennart Sorensen
6121 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6123 * gentpl.py: Add missing license header.
6124 * docs/grub.texi: Update copyright year.
6126 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6128 Source grub-mkconfig_lib from the build directory at build time.
6129 Suggested by: Vladimir Serbinenko.
6131 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6132 * util/grub-install.in: Define pkgdatadir if not already set, and source
6133 grub-mkconfig_lib from there.
6134 * util/grub-kbdcomp.in: Likewise.
6135 * util/grub-mkconfig.in: Likewise.
6136 * util/grub-mknetdir.in: Likewise.
6137 * util/grub-mkrescue.in: Likewise.
6138 * util/grub-mkstandalone.in: Likewise.
6139 * util/grub-reboot.in: Likewise.
6140 * util/grub-set-default.in: Likewise.
6141 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6143 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6145 Increase warning level.
6147 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6148 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6149 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6150 (TARGET_CFLAGS): Likewise.
6151 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6152 * grub-core/Makefile.core.def (decompressor_xz): Add
6153 -Wno-unreachable-code.
6154 (normal): Add -Wno-redundant-decls.
6155 (xzio): Add -Wno-unreachable-code.
6156 (lzopio): Add -Wno-redundant-decls -Wno-error.
6157 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6158 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6159 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6160 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6161 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6162 * grub-core/kern/i386/coreboot/init.c: Add exception to
6163 -Wsuggest-attribute=noreturn.
6164 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6165 * grub-core/kern/ia64/dl_helper.c: Likewise.
6166 * grub-core/kern/mips/dl.c: Likewise.
6167 * grub-core/kern/sparc64/dl.c: Likewise.
6168 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6169 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6171 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6172 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6173 * grub-core/loader/mips/linux.c: Likewise.
6174 * grub-core/loader/multiboot_elfxx.c: Likewise.
6175 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6176 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6177 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6178 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6180 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6181 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6184 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6186 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6189 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6191 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6192 Avoid improper use of strings.
6193 (grub_cmd_legacy_initrdnounzip): Likewise.
6195 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6197 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6199 (grub_util_info): Likewise.
6200 (grub_util_error): Likewise.
6202 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6204 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6205 * util/grub-fstest.c (fstest): Likewise.
6207 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6209 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6210 (grub_md_sha512_real): Likewise.
6211 (grub_util_get_geli_uuid): Likewise.
6212 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6213 (grub_util_biosdisk_open): Fix format specification.
6214 Respect format security.
6215 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6216 (xrealloc): Likewise.
6217 (xasprintf): Likewise.
6219 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6221 * util/import_gcry.py: Include grub/crypto.h in init.c.
6223 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6225 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6226 (generate_image): Make prefix a const char *.
6227 Fix format specifications. Respect format security.
6228 Avoid void * arithmetics.
6230 (argp_parser): Remove unused variable. Respect format security.
6231 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6232 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6233 (count_funcs): Remove unused variable.
6234 (relocate_addresses): Fix format specification.
6235 Disable x86-64 with elf32. Remove unused variables.
6236 (add_fixup_entry): Avoid shadowing.
6237 (make_reloc_section): Fix format specification.
6239 (locate_sections): Fix format specifications.
6240 (load_image): Avoid shadowing.
6242 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6244 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6245 Fix format specifications. Respect format security.
6246 Don't translate already translated grub_errmsg.
6247 (argp_parser): Remove unused variable
6249 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6251 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6253 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6255 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6256 (main): Likewise. Use xmalloc. Respect format security.
6258 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6260 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6262 (argp_parser): Remove unused variable.
6264 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6266 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6267 (add_pixel): Make static.
6268 (add_font): Likewise.
6269 (write_string_section): Make name and str a const char *.
6270 (write_be16_section): Make name a const char *.
6271 (print_glyphs): Make static.
6272 (write_font_ascii_bitmap): Likewise.
6273 (write_font_width_spec): Likewise.
6274 (write_font_pf2): Likewise.
6275 (argp_parser): Remove unused variable.
6276 Respect format security.
6277 (main): Avoid shadowing. Respect format security.
6279 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6281 * util/grub-editenv.c (argp_parser): Make static.
6282 (create_envblk_file): Use xmalloc.
6283 (open_envblk_file): Likewise.
6284 Resepect format security.
6285 (set_variables): Respect format security.
6287 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6289 * util/getroot.c (grub_find_device): Respect format security.
6290 (get_mdadm_uuid): Remove unused variable.
6291 (grub_util_pull_device): Dont call gettext on already translated
6293 (find_system_device): Remove unused variable.
6294 (grub_util_get_grub_dev): Likewise.
6295 (grub_make_system_path_relative_to_its_root): Respect format security.
6297 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6299 * util/grub-fstest.c (execute_command): Make first argument
6301 (read_file): Avoid shadowing.
6302 Reuse underlying error message if device open fails.
6303 (cmd_cmp): Respect format security.
6304 (root): Make const char *.
6305 (fstest): Remove args argument and use global copy.
6306 Respect format security.
6307 (argp_parser): Make static.
6308 (main): Make default_root const char *.
6310 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6312 * util/grub-mount.c (root): Make const char *.
6313 (execute_command): Make first argument a const char *.
6314 (fuse_init): Respect format security.
6315 (argp_parser): Make static. Remove unused variable.
6316 (main): Make default_root a const char *.
6317 Respect format security.
6319 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6321 * util/grub-probe.c (probe): Don't call gettext on already translated
6323 Remove unused variables.
6324 (argp_parser): Remove unused variable.
6326 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6328 * util/grub-script-check.c (argp_parser): Remove unused variable.
6329 (main): Rename read to curread to avoid shadowing.
6331 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6333 * util/misc.c (grub_util_write_image_at): Fix format specification.
6334 (grub_util_write_image): Likewise.
6335 (grub_script_execute_argument_to_string): Removed (unused).
6336 (grub_script_execute_menuentry): Likewise.
6337 (grub_putchar): Likewise.
6339 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6341 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6342 (FUNCTION) [GRUB_UTIL]: Likewise.
6343 (VARIABLE) [GRUB_UTIL]: Likewise.
6345 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6347 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6348 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6350 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6352 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6355 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6357 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6358 (LzmaEnc_SaveState): Removed (unused).
6359 (LzmaEnc_RestoreState): Likewise.
6360 (LzmaEnc_InitPriceTables): Made static.
6361 (LzmaEnc_Construct): Likewise.
6362 (LzmaEnc_FreeLits): Likewise.
6363 (LzmaEnc_Destruct): Likewise.
6364 (LzmaEnc_Init): Likewise.
6365 (LzmaEnc_InitPrices): Likewise.
6366 (LzmaEnc_Finish): Likewise.
6367 (LzmaEnc_PrepareForLzma2): Removed (unused).
6368 (LzmaEnc_MemPrepare): Likewise.
6369 (LzmaEnc_GetNumAvailableBytes): Likewise.
6370 (LzmaEnc_GetCurBuf): Likewise.
6371 (LzmaEnc_CodeOneMemBlock): Likewise.
6373 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6375 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6376 (grub_util_ldm_embed): Likewise.
6378 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6380 * util/grub-editenv.c (print_var): Rename name to varname to
6382 (main): Rename index to curindex to avoid shadowing.
6383 Make filename a const char *.
6385 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6387 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6388 to arg_getline to avoid shadowing.
6390 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6392 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6393 disk_ to avoid shadowing.
6395 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6397 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6398 curindex to avoid shadowing.
6400 (MatchFinder_GetNumAvailableBytes): Make static.
6402 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6404 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6407 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6409 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6410 argument from encrypt to do_encrypt to avoid shadowing.
6412 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6414 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6415 incorrect nesting of #if's.
6417 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6419 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6420 checks which are always false on some platforms.
6421 (grub_cmd_lsacpi): Likewise.
6422 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6423 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6426 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6428 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6429 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6431 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6433 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6434 re_dfa_t to avoid breaking alignment invariants.
6435 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6436 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6438 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6440 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6441 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6443 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6445 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6448 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6450 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6451 conserve alignment invariants.
6452 (grub_ehci_ehcc_read16): Likewise.
6453 (grub_ehci_oper_read32): Likewise.
6454 (grub_ehci_oper_write32): Likewise.
6455 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6456 Conserve alignment invariants.
6458 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6460 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6461 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6464 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6466 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6467 Remove unused variable.
6469 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6471 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6474 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6476 * include/grub/net.h: Remove double declarations.
6478 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6480 Remove "payload" command in ia64 Linux loader since I couldn't
6481 find any evidence of it being used for anything.
6482 Replace "relocate" command with an environment variable
6484 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6486 (ia64_boot_payload): Removed.
6487 (last_payload): Likewise.
6488 (RELOCATE_OFF): Likewise.
6489 (RELOCATE_ON): Likewise.
6490 (RELOCATE_FORCE): Likewise.
6491 (relocate): Likewise.
6492 (free_pages): Don't free payloads.
6493 (grub_load_elf64): Use common error messages.
6494 Use "linux_relocate" variable.
6495 Increase the space after boot_params.
6496 (grub_cmd_payload): Removed.
6497 (grub_cmd_relocate): Likewise.
6498 (grub_cmd_fpswa): Improve messages.
6499 (cmd_payload): Removed.
6500 (cmd_relocate): Likewise.
6501 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6502 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6504 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6506 Convert UHCI to DMA framework.
6508 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6509 (grub_uhci_pci_iter): Fill new members
6510 (grub_alloc_td): Use P2V and V2P functions.
6511 (grub_free_queue): Likewise.
6512 (grub_alloc_qh): Likewise.
6513 (grub_uhci_setup_transfer): Likewise.
6514 (grub_uhci_check_transfer): Likewise.
6516 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6518 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6519 Remove assignment in if while on it.
6521 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6523 * util/grub-mkstandalone.in: Fix modules directory.
6525 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6527 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6529 (argp_parser): Accept "auto" as compression specification.
6531 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6533 Fix `help' with unloaded modules.
6535 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6536 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6537 (grub_dyncmd_dispatcher): Small stylistic fix.
6538 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6539 explicit help is requested.
6541 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6543 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6544 Explicitly init restart while on it.
6546 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6548 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6551 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6553 * util/grub-mknetdir.in: Use . rather than source for POSIX
6556 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6558 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6560 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6562 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6565 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6567 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6570 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6572 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6574 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6576 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6577 iteration of partitions.
6579 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6581 Improve gettext support. Stylistic fixes and error handling fixes while
6584 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6586 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6587 part. Instead setup the correct stack in RM.
6588 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6590 * include/grub/i386/relocator_private.h: New file.
6592 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6594 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6596 * util/grub-fstest.c (options): Add missing DEVICE part.
6598 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6600 Clarify and unify messages.
6602 * grub-core/commands/hashsum.c (options): Unify messages.
6603 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6604 literal-only message as translatable.
6605 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6606 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6607 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6609 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6610 key, not the key used to unlock. Clarify what it's used for.
6611 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6612 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6613 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6614 * util/grub-editenv.c (options): Unify "verbose" message.
6615 * util/grub-fstest.c (read_file): Unify error message.
6616 (fstest): Add quotes around commands.
6617 (options): Unify "verbose" message.
6618 * util/grub-install.in: Add quotes around variable name.
6619 * util/grub-kbdcomp.in: Unify error message.
6620 * util/grub-mkfont.c (main): Likewise.
6621 * util/grub-mkrescue.in: Likewise.
6622 * util/grub-mklayout.c (options): Unify "verbose" message.
6623 * util/grub-mkstandalone.in: Unify help and verbose messages.
6624 * util/grub-mount.c (options): Unify "verbose" message.
6625 * util/grub-probe.c (options): Likewise.
6626 * util/grub-script-check.c (options): Likewise.
6627 * util/grub-setup.c (setup): Unify no-terminator message.
6628 (options): Use DEVICE and not DEV.
6629 Unify "verbose" message.
6630 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6632 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6634 Improve and unify messages.
6636 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6637 name. All users updated.
6638 Print filename in error.
6639 (read_device_map): Print filename in error.
6640 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6641 (grub_util_get_os_disk): Likewise.
6642 (grub_util_biosdisk_get_grub_dev): Likewise.
6643 (grub_util_check_block_device): Likewise.
6644 (grub_util_check_char_device): Likewise.
6645 (grub_make_system_path_relative_to_its_root): Likewise.
6646 * util/grub-editenv.c (create_envblk_file): Likewise.
6647 (open_envblk_file): Likewise.
6648 (write_envblk): Likewise.
6649 * util/grub-fstest.c (cmd_cp): Likewise.
6650 (cmd_cat): Likewise.
6651 (cmd_cmp): Likewise.
6652 * util/grub-menulst2cfg.c (main): Likewise.
6653 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6654 (write_font_width_spec): Likewise.
6655 (write_font_pf2): Likewise.
6656 * util/grub-mkimage.c (generate_image): New argument outname.
6658 Remove unreacheable message.
6659 (options): Unify messages.
6660 (help_filter): Likewise.
6661 * util/grub-mklayout.c (usage): Removed (unused).
6662 (main): Print filename in error.
6663 * util/grub-mkrescue.in: Fix wrong quoting.
6664 * util/grub-setup.c (setup): Print filename in error.
6665 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6666 (check_sas): Likewise.
6667 * util/misc.c (grub_util_get_fp_size): Removed.
6668 (grub_util_get_image_size): Print filename in error.
6669 (grub_util_read_at): Removed.
6670 (grub_util_read_image): Print filename in error.
6671 (grub_util_load_image): Likewise.
6672 (grub_util_write_image_at): New argument filename. All users updated.
6673 Print filename in error.
6674 (grub_util_write_image): New argument filename. All users updated.
6675 Print filename in error.
6676 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6677 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6679 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6681 * grub-core/Makefile.core.def (pxechain): New module.
6682 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6683 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6685 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6686 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6688 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6690 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6691 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6692 * include/grub/err.h (grub_error_saved): New struct.
6693 (grub_errmsg): Make array size explicit.
6694 * include/grub/misc.h (grub_error_save): New function.
6695 (grub_error_load): Likewise.
6696 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6697 (grub_error_push): Update `errno' member name.
6698 (grub_error_pop): Likewise
6699 * grub-core/net/tftp.c (tftp_data): New member save_err.
6700 (tftp_receive): Save error.
6701 (tftp_open): Restore error.
6703 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6705 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6706 to real mode down to execute A20-related code in protected mode as
6709 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6711 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6712 NULL when the argument `level' has an unexpected value.
6714 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6716 Move platform-dependent files from $prefix to $prefix/$platform.
6718 * config.h.in (GRUB_TARGET_CPU): New definition.
6719 (GRUB_PLATFORM): Likewise.
6720 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6721 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6722 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6723 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6724 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6725 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6726 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6727 * grub-core/normal/term.c (read_terminal_list): Likewise.
6728 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6730 (grub_gettext_init_ext): Likewise.
6731 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6733 * util/grub-install.in: Update directories.
6734 * util/grub-mknetdir.in: Likewise.
6735 * util/grub-mkrescue.in: Likewise.
6737 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6739 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6740 grub_error framework. All users updated.
6742 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6744 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6745 lists (by always binsearching), improve caching (cache strings
6746 used for binsearch, not only results), improve
6747 maintainability (by using more structured binary search) and correct
6750 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6752 * grub-core/script/execute.c (grub_script_return): Fix warning.
6754 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6756 * grub-core/script/execute.c (grub_script_return): Fix potential
6758 Reported by: Jim Meyering.
6760 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6762 * po/POTFILES.in: Regenerate.
6763 * util/grub-install.in: Gettextize the strings missed in first pass.
6765 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6767 * Makefile.util.def (grub-mkdevicemap): Removed.
6768 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6769 * include/grub/util/deviceiter.h: Removed.
6770 * util/deviceiter.c: Likewise.
6771 * util/getroot.c (grub_util_get_os_disk): New function.
6772 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6773 replacement for EFI.
6774 * util/grub-mkdevicemap.c: Removed.
6775 * util/grub-probe.c (probe): Handle PRINT_DISK.
6776 (argp_parser): Handle -t disk.
6778 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6780 * util/grub-mkfont.c: Migrate to argp.
6781 * util/grub-mklayout.c: Likewise.
6782 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6783 * util/grub-mkrelpath.c: Likewise.
6784 * util/grub-probe.c: Likewise.
6785 * util/grub-script-check.c: Likewise.
6787 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6789 * util/grub-reboot.in: Add missing datarootdir.
6790 Add missing newline.
6791 * util/grub-set-default.in: Add missing datarootdir.
6792 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6793 * util/grub-mkrescue.in: Likewise.
6795 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6797 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6799 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6801 * util/grub-kbdcomp.in: Add decent help and gettextize.
6802 * docs/man/grub-kbdcomp.h2m: New file.
6804 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6806 Migrate grub-mkimage.c to argp.
6808 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6809 (grub-setup): Likewise.
6810 * util/grub-setup.c (print_version): Move to ...
6811 * util/argp_common.c (print_version): ... here.
6812 * util/grub-setup.c (argp_program_version_hook): Move to ...
6813 * util/argp_common.c (argp_program_version_hook): ... here.
6814 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6816 * util/grub-mkimage.c (main): Migrate to argp.
6818 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6820 * util/grub-mkrescue.in: Use same message as
6821 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6822 for better translations.
6824 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6826 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6827 options with generic grub-mkrescue.in with the goal of future
6830 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6832 * grub-core/kern/mm.c: Add missing include of i18n.h
6833 * grub-core/lib/relocator.c: Likewise.
6835 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6837 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6839 (allocate_pages): Check return value.
6840 Replace fatal with error.
6841 (grub_linux_boot): Replace printf with dprintf.
6842 Check find_mmap_size return value.
6843 Replace fatal with error.
6844 Don't call grub_machine_fini.
6845 (grub_load_elf64): Replace printf with dprintf.
6846 (grub_cmd_linux): Likewise.
6847 (grub_cmd_initrd): Likewise.
6848 (grub_cmd_payload): Likewise.
6850 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6852 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6854 * grub-core/video/radeon_fuloong2e.c
6855 (grub_video_radeon_fuloong2e_setup): Likewise.
6856 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6857 * grub-core/video/video.c (grub_video_set_mode): Don't override
6858 standard out of memory message.
6860 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6862 NetBSD disk wedge support.
6864 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6865 [__NetBSD__]: Handle NetBSD disk wedges.
6866 * util/getroot.c (convert_system_partition_to_system_disk)
6867 [__NetBSD__]: Likewise.
6869 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6871 * util/grub-mkconfig.in: Use umask rather than chmod to create
6872 grub.cfg.new to avoid insecure grub.cfg.
6874 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6876 * grub-core/commands/ls.c: Gettextize.
6877 * grub-core/commands/setpci.c: Likewise.
6878 * grub-core/commands/videotest.c: Likewise.
6879 * grub-core/disk/geli.c: Likewise.
6880 * grub-core/kern/mm.c: Likewise.
6881 * grub-core/lib/relocator.c: Likewise.
6882 * grub-core/loader/efi/appleloader.c: Likewise.
6883 * grub-core/loader/i386/xnu.c: Likewise.
6884 * grub-core/loader/ia64/efi/linux.c: Likewise.
6885 * grub-core/loader/xnu.c: Likewise.
6886 * grub-core/net/dns.c: Likewise.
6887 * grub-core/net/net.c: Likewise.
6888 * grub-core/script/lexer.c: Likewise.
6889 * grub-core/script/parser.y: Likewise.
6890 * grub-core/script/yylex.l: Likewise.
6891 * util/getroot.c: Likewise.
6892 * util/grub-setup.c: Likewise.
6894 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6896 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6899 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6901 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6903 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6905 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6907 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6908 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6910 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6912 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6913 * util/grub-install.in: Gettextize.
6914 * util/grub-mkconfig.in: Likewise.
6915 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6917 (grub_warn): Gettextize.
6918 * util/grub-mknetdir.in: Gettextize.
6919 * util/grub-mkrescue.in: Likewise.
6920 * util/grub-mkstandalone.in: Likewise.
6921 * util/grub-reboot.in: Likewise.
6922 * util/grub-set-default.in: Likewise.
6923 * util/grub.d/00_header.in: Likewise.
6924 * util/grub.d/10_hurd.in: Likewise.
6925 * util/grub.d/10_kfreebsd.in: Likewise.
6926 * util/grub.d/10_linux.in: Likewise.
6927 * util/grub.d/10_netbsd.in: Likewise.
6928 * util/grub.d/10_windows.in: Likewise.
6929 * util/grub.d/20_linux_xen.in: Likewise.
6930 * util/grub.d/30_os-prober.in: Likewise.
6931 * po/POTFILES-shell.in: Regenerate.
6933 2012-02-03 Richard Laager <rlaager@wiktel.com>
6935 * util/grub-mkimage.c (main): Fix format-security warning.
6936 * util/grub-mkrelpath.c (main): Likewise.
6937 * util/grub-probe.c (main): Likewise.
6939 2012-02-03 Richard Laager <rlaager@wiktel.com>
6941 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
6943 Put back lost PRINT_DRIVE.
6945 2012-02-03 Richard Laager <rlaager@wiktel.com>
6947 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
6948 (grub_guess_root_devices): Replace strlen with sizeof.
6950 (find_root_devices_from_poolname): Remove unused variable.
6953 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6955 Support install on multi-device filesystems.
6957 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
6958 (grub_guess_root_devices): ...this. Return char **. All users updated.
6959 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
6961 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
6962 (find_root_devices_from_poolname): ... here.
6963 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
6965 (grub_guess_root_device): Rename to ...
6966 (grub_guess_root_devices): ... this. Return char **. All users updated.
6967 * util/grub-install.in: Handle multi-device filesystems.
6968 * util/grub-probe.c (probe). Make device_names a char **. Add delim
6969 argument. All users updated.
6970 Handle multi-device filesystems.
6971 Use 'delim' as separator.
6972 Remove device check to allow filesystems on file.
6973 (main): Support -0 argument. Handle multi-device.
6974 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
6975 Fix a cross-device check while on it.
6976 (arguments): Remove root_dev.
6977 (argp_parser): Remove -r.
6978 (main): Remove root_dev.
6980 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6982 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
6984 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6986 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
6988 Reported by: NODA, Kai <nodakai>.
6990 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
6994 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
6996 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
6997 (grub_ehci_setup_qh): Likewise.
6998 (grub_ehci_find_qh): Likewise.
6999 (grub_ehci_transaction): Likewise.
7000 (grub_ehci_setup_transfer): Likewise.
7001 (grub_ehci_check_transfer): Likewise.
7002 (grub_ehci_portstatus): Likewise.
7003 (grub_ehci_detect_dev): Likewise.
7004 (grub_ehci_transfer_controller_data): New field td_last_phys.
7005 (grub_ehci_setup_transfer): Fill td_last_phys.
7006 (grub_ehci_check_transfer): Use td_last_phys.
7008 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7010 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7011 if no submenu is present.
7013 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7017 * include/grub/usb.h (grub_usbms_protocol_t): New values
7018 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7019 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7020 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7021 (grub_usbms_dev): Add subclass, protocol and intrpt.
7022 Remove in_maxsz and out_maxsz.
7023 (grub_usbms_reset): Rename to ...
7024 (grub_usbms_bo_reset): .. this.
7025 (grub_usbms_cbi_cmd): New function.
7026 (grub_usbms_cbi_reset): Likewise.
7027 (grub_usbms_reset): Likewise.
7028 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7029 (grub_usbms_transfer): Rename to ...
7030 (grub_usbms_transfer_bo): ... this.
7031 (grub_usbms_transfer_cbi): Likewise.
7032 (grub_usbms_transfer): Likewise.
7034 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7035 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7037 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7038 the support for the CS5536 modification thereos and few bugfixes.
7040 * grub-core/Makefile.core.def (ehci): New module.
7041 * grub-core/bus/usb/ehci.c: New file.
7042 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7043 port and hubaddr. All users updated.
7044 Save port and hubaddr into dev structure.
7045 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7047 * include/grub/pci.h (grub_dma_phys2virt): New function.
7048 (grub_dma_virt2phys): Likewise.
7049 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7051 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7053 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7054 check as some mkfs implementations omit it.
7056 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7058 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7060 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7062 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7063 Add new member volname2.
7064 (grub_jfs_label): Use volname2 if available.
7066 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7068 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7069 over last_mounted as seen in image generated by mkfs.nilfs2.
7070 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7072 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7074 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7075 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7076 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7078 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7080 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7083 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7085 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7086 subvolume name (by removing a bogus and useless check).
7088 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7090 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7093 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7095 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7096 (grub_scsi_read_capacity10): ... this.
7097 (grub_scsi_read_capacity16): New function.
7098 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7100 Fix off-by-one error.
7101 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7103 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7104 (grub_scsi_read_capacity10): ... this.
7105 (grub_scsi_read_capacity_data): Rename to ...
7106 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7107 (grub_scsi_read_capacity16): New struct.
7108 (grub_scsi_read_capacity16_data): Likewise.
7109 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7110 grub_scsi_cmd_read_capacity10.
7111 New command grub_scsi_cmd_read_capacity16.
7113 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7117 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7118 (grub_scsi_write16): Likewise.
7119 (grub_scsi_read): Use read16 when necessary.
7120 (grub_scsi_write): Likewise.
7121 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7122 (grub_scsi_write16): Likewise.
7123 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7125 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7127 SCSI write support (for usbms mainly).
7129 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7131 (grub_scsi_write): Implement.
7132 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7134 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7136 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7139 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7141 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7143 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7145 * po/POTFILES.in: Regenerate.
7147 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7149 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7150 with grub_printf to avoid unnecessary fatal failure.
7152 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7154 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7155 (INT_MAX): Likewise.
7156 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7157 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7158 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7162 (strncpy): Likewise.
7164 (strncat): Likewise.
7165 (strcoll): Likewise.
7166 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7167 (GRUB_INT_MAX): Likewise.
7169 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7171 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7173 (optimize_utf8): Likewise.
7174 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7176 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7178 * grub-core/boot/i386/pc/lnxboot.S: Use
7179 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7180 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7182 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7184 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7186 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7188 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7189 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7190 now to avoid double free.
7191 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7193 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7194 * util/grub-probe.c (escape_of_path): Always return a new copy.
7195 (print_full_name): Escape path.
7196 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7197 Fix hints on abstractions.
7199 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7201 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7202 Don't add "root" line if no compatibility hont is available.
7203 Suggested by: Seth Goldberg.
7205 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7207 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7208 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7209 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7210 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7212 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7214 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7216 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7218 * util/grub-pe2elf.c (ehdr): Make static.
7220 (num_sections): Likewise.
7223 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7225 Eliminate ofpath limits and possible overflows.
7227 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7228 (OF_PATH_MAX): Removed.
7229 (MAX_DISK_CAT): New const.
7230 (find_obppath): Use allocated rather than preallocated buffer.
7231 Return result. Argument of_path removed. All users updated.
7233 (xrealpath): New function.
7234 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7235 Allocate rather than use preallocated buffer. All users updated.
7236 (__of_path_common): Use allocated rather than preallocatecd buffer.
7237 Return result. Argument of_path removed. All users updated.
7238 (vendor_is_ATA): Read only needed part form the file.
7239 (check_sas): Allocate depending on contents rather than fixed.
7240 (main) [STANDALONE]: Handle NULL result.
7242 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7244 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7246 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7248 Cryptodisk write support.
7250 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7251 (grub_cryptodisk_decrypt): Moved logic to ...
7252 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7253 (grub_cryptodisk_write): Implement.
7254 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7255 (grub_util_fd_write): ... this. Make global.
7256 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7258 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7260 * include/grub/list.h (grub_list_remove): Don't crash if element is
7263 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7265 Rename ofconsole to console.
7267 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7268 as sysnonym to console.
7269 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7270 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7271 Rename grub_ofconsole_ to grub_console_. All users updated
7272 (grub_console_term_output): Rename "ofconsole" to "console".
7273 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7276 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7278 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7280 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7281 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7282 GRUB_DISK_DEVICE_FILE_ID.
7284 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7286 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7287 and improve performance.
7289 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7291 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7292 missing ieee1275/ prefix on whole disk.
7294 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7296 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7297 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7299 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7301 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7303 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7305 Merge common RAID and LVM logic to an abstract diskfilter.
7306 Add LDM support using the same framework.
7308 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7309 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7310 (libgrubmods): Remove grub-core/disk/raid.c and
7311 grub-core/partmap/gpt.c.
7312 * grub-core/Makefile.core.def (ldm): New module.
7313 (raid): Renamed to diskfilter. All users updated.
7314 * grub-core/disk/raid.c: Moved to ...
7315 * grub-core/disk/diskfilter.c: ... here.
7316 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7318 (find_array): Renamed to ...
7319 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7320 (grub_is_array_readable): Renamed to ...
7321 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7322 (insert_array): New argument id.
7323 (is_node_readable): New function.
7324 (scan_device): Rename to ...
7325 (scan_disk): .. this. Restrict to one disk.
7326 (scan_devices): New function.
7327 (grub_diskfilter_iterate): Support multi-LV.
7328 Skip invisible and nameless LVs.
7329 (grub_diskfilter_memberlist): Support multi-LV.
7330 (grub_diskfilter_read_node): New function.
7331 (grub_raid_read): Most of logic moved to ...
7332 (read_segment): ... here
7333 (read_lv): New function.
7334 (grub_diskfilter_get_vg_by_uuid): New function.
7335 (grub_diskfilter_make_raid): Likewise.
7336 * grub-core/disk/ldm.c: New file.
7337 * grub-core/disk/lvm.c (vg_list): Removed.
7338 (lv_count): Likewise.
7339 (scan_depth): Likewise.
7340 (is_lv_readable): Likewise.
7341 (grub_lvm_getvalue): Advance pointer past the number.
7343 (do_lvm_scan): Refactored into ...
7344 (grub_lvm_detect): ... this. Support raid.
7345 (grub_lvm_iterate): Removed.
7346 (grub_lvm_memberlist): Likewise.
7347 (grub_lvm_open): Likewise.
7348 (grub_lvm_close): Likewise.
7349 (read_lv): Likewise.
7350 (read_node): Likewise.
7351 (is_node_readable): Likewise.
7352 (is_lv_readable): Likewise.
7353 (grub_lvm_read): Likewise.
7354 (grub_lvm_write): Likewise.
7355 (grub_lvm_dev): Use diskfilter
7356 (GRUB_MOD_INIT): Likewise.
7357 (GRUB_MOD_FINI): Likewise.
7358 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7360 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7361 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7362 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7363 grub_diskfilter_read_node.
7365 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7366 grub_diskfilter_read_node.
7367 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7368 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7369 (grub_disk_dev_iterate): Move from here...
7370 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7371 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7373 (grub_hostdisk_find_partition_start): Likewise.
7374 (grub_hostdisk_os_dev_to_grub_drive): New function.
7375 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7376 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7377 * util/getroot.c (make_device_name): ... here.
7378 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7380 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7381 * grub-core/kern/emu/hostdisk.c
7382 (convert_system_partition_to_system_disk): Move to ...
7383 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7384 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7385 * util/getroot.c (device_is_wholedisk): ... here.
7386 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7387 * util/getroot.c (find_system_device): ... here.
7388 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7390 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7391 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7393 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7395 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7397 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7398 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7399 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7401 * include/grub/raid.h: Renamed to ...
7402 * include/grub/diskfilter.h: ... this.
7403 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7404 (GRUB_RAID_LAYOUT_*): Make into array.
7405 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7406 (grub_diskfilter_vg): New struct.
7407 (grub_diskfilter_pv_id): Likewise.
7408 (grub_raid_member): Removed.
7409 (grub_raid_array): Likewise.
7410 (grub_diskfilter_pv): New struct.
7411 (grub_diskfilter_lv): Likewise.
7412 (grub_diskfilter_segment): Likewise.
7413 (grub_diskfilter_node): Likewise.
7414 (grub_diskfilter_get_vg_by_uuid): New proto.
7415 (grub_raid_register): Inline.
7416 (grub_diskfilter_unregister): Likewise.
7417 (grub_diskfilter_make_raid): New proto.
7418 (grub_diskfilter_vg_register): Likewise.
7419 (grub_diskfilter_read_node): Likewise.
7420 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7421 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7422 (grub_util_is_ldm): Likewise.
7423 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7424 (grub_hostdisk_find_partition_start): Likewise.
7425 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7426 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7428 (grub_gpt_partition_map_iterate): New proto.
7429 * include/grub/lvm.h (grub_lvm_vg): Removed.
7430 (grub_lvm_pv): Likewise.
7431 (grub_lvm_lv): Likewise.
7432 (grub_lvm_segment): Likewise.
7433 (grub_lvm_node): Likewise.
7434 * util/getroot.c [...]
7435 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7436 (probe_abstraction): Likewise.
7437 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7438 (main): Remove dead logic.
7440 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7442 Simplify root device discover and don't fail when trying to open
7445 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7447 (get_diskname_from_path): Likewise.
7448 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7451 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7453 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7455 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7457 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7460 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7462 * util/grub-install.in: Add missing \.
7463 Reported by: gentoofan
7465 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7467 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7468 (direct_read): Use correct compressed size.
7469 (grub_squash_read_data): Likewise.
7471 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7473 * docs/grub.texi (Platform limitations): New section.
7474 (Platform-specific operations): Likewise.
7475 * docs/grub-dev.texi (Porting): Likewise.
7477 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7479 IEEE1275 disk write support.
7481 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7483 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7484 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7485 and seek loginc to ...
7486 (grub_ofdisk_prepare): ... here.
7487 (grub_ofdisk_write): Implement.
7489 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7491 ARC disk write support.
7493 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7494 (reopen): New argument writable. All users updated.
7495 Handle required access mode.
7496 (grub_arcdisk_write): Implement.
7497 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7498 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7500 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7502 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7503 (read_sblock): Don't attempt to read superblocks outside the disk size.
7505 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7507 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7508 first superblock to find the second one when possible.
7510 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7512 * util/grub-install.in: Fix an ARC bug.
7513 Print a warning if no platform-specific setup is available.
7515 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7517 Use static allocation rather than scratch pointer in reed_solomon.
7518 It decreases its size significantly and avoids a variable in .text.
7520 * grub-core/lib/reed_solomon.c (scratch): Removed.
7521 (chosenstat): New const or static array.
7527 (errvals): Likewise.
7529 (pol_evaluate): Replace x with log_x argument. All users updated.
7530 (syndroms): Removed.
7531 (gauss_solve): Use statically allocated arrays.
7532 (rs_recover): Likewise.
7533 Calculate syndroms directly.
7534 (decode_block): Use statically allocated arrays.
7535 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7536 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7538 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7540 Eliminate fixed limit on reed solomon decoder length.
7542 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7543 rather than hardcoding the address.
7544 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7545 no_reed_solomon_length.
7546 Move gate_a20 to no-reed-solomon part.
7547 Don't force a particular size of no reed-solomon part.
7548 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7550 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7551 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7553 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7555 * grub-core/commands/wildcard.c (match_files): Handle filenames
7556 without explicit device.
7557 (wildcard_expand): Don't add explicit device if not already present.
7558 * tests/grub_script_echo1.in: Add a new expansion test.
7560 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7562 Replace single-linked with double-linked lists. It results in more
7563 compact and more efficient code.
7565 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7566 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7567 (grub_list_remove): Moved from here ...
7568 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7569 (grub_prio_list_insert): Set prev.
7570 * include/grub/list.h (grub_list): Add prev. All users updated.
7572 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7574 Handle newer autotools. Add some missing quotes while on it.
7576 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7577 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7578 (pkgdata_DATA): ... here.
7579 * Makefile.util.def (update-grub_lib): Removed.
7580 * conf/Makefile.common (pkglib_DATA): Removed.
7581 (pkglib_SCRIPTS): Likewise.
7582 (pkgdata_DATA): New variable.
7583 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7586 Remove unused variable while on it.
7587 * tests/util/grub-shell.in: Likewise.
7588 * util/grub-install.in: Likewise.
7589 * util/grub-mkconfig.in: Likewise.
7590 * util/grub-mknetdir.in: Likewise.
7591 * util/grub-mkrescue.in: Likewise.
7592 * util/grub-mkstandalone.in: Likewise.
7593 * util/grub.d/00_header.in: Likewise.
7594 * util/grub.d/10_hurd.in: Likewise.
7595 * util/grub.d/10_illumos.in: Likewise.
7596 * util/grub.d/10_kfreebsd.in: Likewise.
7597 * util/grub.d/10_linux.in: Likewise.
7598 * util/grub.d/10_netbsd.in: Likewise.
7599 * util/grub.d/10_windows.in: Likewise.
7600 * util/grub.d/20_linux_xen.in: Likewise.
7601 * util/grub.d/30_os-prober.in: Likewise.
7602 * util/update-grub_lib.in: Removed.
7604 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7606 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7607 a workaround for intel problem.
7609 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7610 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7611 2012-01-23 pfsmorigo
7613 * util/grub-install.in: Support dd'in into PreP partition.
7614 * util/grub-probe.c (probe): Support discovering partition type.
7615 (main): Support -t msdos_parttype.
7617 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7619 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7620 infinite recursion using counter.
7621 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7622 init to skip it if the magic check fails.
7623 (dec_stream_header): Init s->crc32.
7625 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7626 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7627 2012-01-22 Richard Laager <rlaager@wiktel.com>
7629 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7631 (find_bestub): Determine correct size.
7632 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7633 (scan_disk): Align the size down.
7634 Call check pool before find_bestub to have ashift.
7636 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7638 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7639 dprintf in no-malloc zone.
7641 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7643 * configure.ac: Add back in test for limits.h.
7645 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7647 Support 4K-sector NTFS.
7649 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7650 (grub_ntfs_data): Remove blocksize.
7651 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7652 Remove data argument. All users updated.
7654 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7656 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7657 being in .text to avoid dprel references.
7658 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7659 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7660 (grub_arch_highmemsize): Likewise.
7661 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7662 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7663 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7665 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7667 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7669 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7670 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7672 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7674 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7676 (grub_set_datetime_cmos): Likewise.
7678 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7680 Make XZ compression parameters dependent on target and not host CPU.
7682 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7683 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7685 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7687 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7688 set but not used variable.
7690 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7692 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7693 created when no uuid support is compiled into mkfs.reiser.
7695 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7697 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7698 (utf8_to_macroman): Do the opposite.
7699 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7701 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7703 * configure.ac: Refise build qemu_mips w/o unifont.
7705 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7707 Eliminate grub_min/grub_max prone to overflow usage.
7709 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7710 (poll_nonroot_hub): Likewise.
7711 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7712 (grub_affs_label): Likewise.
7713 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7714 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7715 (grub_hfs_label): Likewise.
7716 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7717 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7718 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7719 (zap_leaf_array_get): Likewise.
7720 (dnode_get_path): Likewise.
7721 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7722 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7723 * grub-core/script/execute.c (grub_script_break): Likewise.
7724 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7726 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7727 * include/grub/misc.h (grub_min): Removed.
7728 (grub_max): Likewise.
7730 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7732 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7735 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7737 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7739 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7741 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7743 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7745 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7746 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7748 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7750 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7751 rather than a hack for grub_strncasemap.
7753 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7755 Support multiple initrds
7756 Note: part of this was accidently committed in r3739.
7758 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7760 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7761 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7762 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7763 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7764 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7766 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7768 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7769 disks with unknown size.
7770 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7772 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7774 Remove defines pertaining to arbitrary limits not affecting GRUB
7777 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7778 (EXT2_MAX_SYMLINKCNT): Likewise.
7779 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7780 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7781 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7782 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7783 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7784 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7785 (DN_MAX_OBJECT_SHIFT): Likewise.
7786 (DN_MAX_OFFSET_SHIFT): Likewise.
7787 (DN_MAX_OBJECT): Likewise.
7788 (DNODES_PER_LEVEL_SHIFT): Likewise.
7789 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7790 (SPA_MAXBLOCKSIZE): Likewise.
7791 (SPA_BLOCKSIZES): Likewise.
7792 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7793 (MZAP_MAX_BLKSZ): Likewise.
7795 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7797 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7798 handle NULL appropriately.
7801 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7805 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7807 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7808 * configure.ac: Fix efiemu check.
7810 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7812 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7814 Reported by: adamwill
7816 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7818 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7820 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7822 Fix handling of wide characters in gfxterm.
7824 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7825 (clear_char): Likewise.
7826 (paint_char): Skip code == NULL chars.
7827 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7829 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7831 * grub-core/normal/charset.c: Move comment to right place.
7833 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7835 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7836 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7837 (grub_affs_mount): Revert the correct version checking.
7839 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7841 * docs/grub.texi (Unicode): Mention several other unsupported features.
7843 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7845 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7846 case statements as compile-time one.
7847 (direct_read): Prevent spurious warnings.
7848 (grub_squash_read_data): Likewise.
7850 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7852 Various squash4 fixes and LZO and XZ support.
7854 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7855 Add xzembed source files.
7856 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7857 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7858 (grub_squash_inode): New subtype long_dir.
7859 (SQUASH_TYPE_LONG_DIR): New inode type.
7860 (COMPRESSION): New enum.
7861 (XZBUFSIZ): New const.
7862 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7863 (read_chunk): Use data->decompress.
7864 (zlib_decompress): New function.
7865 (lzo_decompress): Likewise.
7866 (xz_decompress): Likewise.
7867 (squash_mount): Set new data fields.
7868 (grub_squash_iterate_dir): Handle long dir.
7869 (squash_unmount): Free xzdec and xzbuf.
7870 (grub_squash_open): Check ino type.
7871 (direct_read): Stylistic fixes. Use data->decompress.
7872 (grub_squash_read_data): Likewise.
7873 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7874 (get_byte): Likewise.
7875 (grub_zlib_disk_read): Removed.
7876 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7877 (GRUB_POSIX_BOOL_DEFINED): New define.
7878 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7879 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7880 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7881 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7883 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7885 Don't override more informative errors.
7887 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7888 * grub-core/font/font.c (open_section): Likewise.
7889 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7890 filename. Don't override errors.
7891 (grub_cmd_openbsd_ramdisk): Don't override errors.
7892 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7893 (grub_cmd_initrd): Likewise.
7894 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7895 (grub_cmd_initrd): Likewise.
7896 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7897 (grub_cmd_linux): Likewise.
7898 (grub_cmd_initrd): Likewise.
7899 (grub_cmd_payload): Likewise.
7900 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7901 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7902 (grub_cmd_module): Likewise.
7903 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7904 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7905 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7906 (grub_cmd_xnu_mkext): Likewise.
7907 (grub_cmd_xnu_ramdisk): Likewise.
7908 (grub_xnu_check_os_bundle_required): Likewise.
7909 (grub_xnu_load_kext_from_dir): Likewise.
7910 (grub_cmd_xnu_kextdir): Likewise.
7911 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7913 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7915 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7916 as 1024 in block size field. Found on one of my test images.
7917 Small optimisation while on it.
7919 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7921 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7922 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7923 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7924 performance fixes while on it.
7925 (grub_sfs_close): Fix memory leak while on it.
7926 (grub_sfs_label): Convert Latin1 to UTF-8.
7928 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7930 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
7931 space to avoid overflows.
7932 (grub_hfs_label): Convert from macroman to UTF-8.
7934 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7936 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
7938 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7940 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
7942 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7944 * unicode: Import Unicode 6.0 data.
7946 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7948 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
7951 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7953 Avoid cutting in the middle of UTF-8 character.
7955 * include/grub/charset.h (grub_getend): New function.
7956 * grub-core/script/function.c (grub_script_function_find): Use
7958 * grub-core/normal/completion.c (add_completion): Likewise.
7960 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7962 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
7963 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
7964 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
7965 (GRUB_UNICODE_TAG_END): Likewise.
7966 (GRUB_UNICODE_LAST_VALID): Likewise.
7968 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7970 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
7971 len and make it smaller. All users updated.
7972 * util/import_unicode.py: Put length and not end character.
7975 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7977 Make better Unicode-compliant and unify some UTF-8 code pathes.
7979 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
7981 (grub_is_valid_utf8): Use grub_utf8_process.
7982 Check resulting code range.
7983 (grub_utf8_to_ucs4): Use grub_utf8_process.
7984 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
7987 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7989 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
7991 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7993 * docs/grub.texi (Filesystems): Mention AFS.
7995 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7997 * docs/grub.texi (Filesystems): Clarify restrictions.
7998 (Regexp): Mention non-Unicode regexp behaviour.
7999 (Other): Mention non-Unicode matching behaviour.
8001 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8003 Make HFS implementation use MacRoman.
8005 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8006 (macroman): New const array.
8007 (macroman_to_utf8): New function.
8008 (utf8_to_macroman): Likewise.
8009 (grub_hfs_find_dir): Use utf8_to_macroman.
8010 (grub_hfs_dir): Use macroman_to_utf8.
8011 Set case_insensitive.
8013 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8015 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8017 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8019 Integrate hints into autogeneration scripts.
8021 * docs/grub.texi (Filesystems): Add a hostdisk example.
8022 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8023 (grub-probe): Add ofpath.
8024 * gentpl.py: Remove group nosparc64.
8025 * grub-core/commands/search.c (cache_entry): New struct.
8027 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8028 * grub-core/commands/search_wrap.c (options): Add platform-specific
8030 (grub_cmd_search): Handle platform-specific hints.
8031 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8032 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8033 (grub_util_biosdisk_data): Likewise.
8034 (grub_util_biosdisk_open): Set device_map.
8035 (read_device_map): Handle "" as indication of no map.
8037 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8038 (grub_util_biosdisk_get_compatibility_hint): New function.
8039 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8040 * include/grub/emu/hostdisk.h
8041 (grub_util_biosdisk_get_compatibility_hint): New proto.
8042 * util/grub-install.in: Don't call grub-mkdevicemap.
8043 Add platform-specific hint to load.cfg.
8044 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8045 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8046 hints. Set root preliminary to compatibility hint, not to OS name.
8047 * util/grub-probe.c (PRINT_*): Add hints.
8048 (print): Make static.
8049 (escape_of_path): New function.
8050 (guess_bios_drive): Likewise.
8051 (guess_efi_drive): Likewise.
8052 (guess_baremetal_drive): Likewise.
8053 (print_full_name): Likewise.
8054 (probe): Handle hints.
8056 * util/ieee1275/devicemap.c: Removed.
8057 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8059 (grub_util_devname_to_ofpath): Return NULL on failure.
8061 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8063 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8065 * po/POTFILES.in: Regenerated.
8067 Allow purely long options
8069 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8070 (SHORT_ARG_USAGE): Likewise.
8071 (grub_arg_show_help): Compare opt with help_options.
8072 (parse_option): Receive opt as argument. If makes big simplificatons.
8075 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8077 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8078 Restructure to avoid warning.
8080 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8082 * util/grub-install.in: Account for possible escaped comma in device
8085 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8087 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8090 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8092 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8093 allocation and zero-setting.
8094 (grub_ieee1275_get_devname): Check that alias is complete.
8096 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8098 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8101 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8103 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8105 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8106 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8107 Add ieee1275 prefix.
8109 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8111 * docs/grub.texi (Filesystems): Update.
8113 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8115 Support odc, newc and bigendian cpio formats.
8117 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8118 * grub-core/Makefile.core.def (newc): New module.
8120 (cpio_be): Likewise.
8121 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8124 (head) [MODE_ODC]: Adapt for the format.
8125 (head) [MODE_NEWC]: Likewise.
8126 (head) [!MODE_*]: Write fields of interest as arrays.
8127 (MAGIC_USTAR): Removed.
8128 (read_number) [MODE_NEWC]: Change to hex.
8129 (read_number) [!MODE_*]: Parse binary arrays.
8130 (grub_cpio_find_file): Factor out the code for better structure and
8131 always use read_number.
8132 (grub_cpio_mount): Use MAGIC and MAGIC2.
8133 (grub_cpio_dir): Exit on first hook non-0 return.
8134 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8135 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8136 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8137 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8138 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8139 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8140 * grub-core/fs/newc.c: New file.
8141 * grub-core/fs/odc.c: Likewise.
8142 * grub-core/fs/cpio_be.c: Likewise.
8144 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8146 Fix handling of tar numbers occupying the whole field.
8148 * grub-core/fs/cpio.c (read_number): New function.
8149 (grub_cpio_find_file): Use read_number instead of strtoull.
8151 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8153 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8154 occupying the whole field size.
8156 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8158 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8160 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8162 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8164 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8166 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8169 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8171 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8172 (mountinfo_entry): Increase the field size to take escaping into
8174 (find_root_device_from_libzfs): Add one byte to size of strings for
8177 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8179 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8181 * util/grub-setup.c (setup): Likewise.
8183 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8185 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8188 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8190 * docs/grub.texi (Internationalisation): New section.
8192 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8194 * docs/grub.texi (Loopback booting): New section.
8196 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
8198 * util/grub-mkstandalone.in: Fix minor typo errors.
8200 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8202 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8204 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8205 net/icmp.c and net/icmp6.c.
8207 (priority_queue): Likewise.
8208 * grub-core/io/bufio.c: Rewritten.
8209 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8210 TYPE_WITH_CONFIGFILE_OPTION.
8211 (legacy_commands): Add bootp and dhcp.
8212 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8213 (grub_legacy_parse): Likewise.
8214 * grub-core/lib/priority_queue.c: New file.
8215 * grub-core/net/arp.c: Add missing license header.
8216 (arp_find_entry): Removed.
8217 (arp_find_entry): Likewise.
8218 (grub_net_arp_resolve): Rename to ...
8219 (grub_net_arp_send_request): ...this.
8220 (grub_net_arp_receive): New card argument.
8221 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8222 Set router and DNS server.
8223 (grub_net_configure_by_dhcp_ack): Handle routing information.
8224 (grub_cmd_bootp): Set checksum.
8225 (grub_bootp_init): Remove net_dhcp.
8226 * grub-core/net/dns.c: New file.
8227 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8229 (get_card_packet): Handle allocation.
8230 (grub_efinet_findcards): Set mtu.
8231 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8232 (get_card_packet): Handle allocation.
8234 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8235 (GRUB_MOD_INIT): Set mtu.
8236 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8238 (get_card_packet): Handle allocation.
8239 (grub_ofnet_findcards): Set mtu.
8240 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8242 (grub_net_recv_ethernet_packet): Handle IPv6.
8243 * grub-core/net/http.c: New file.
8244 * grub-core/net/icmp.c: Likewise.
8245 * grub-core/net/icmp6.c: Likewise.
8246 * grub-core/net/ip.c (ip6addr): New type.
8248 (reassemble): Likewise.
8249 (cmp): New function.
8250 (reassembles): New variable.
8251 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8253 (send_fragmented): New function.
8254 (grub_net_send_ip_packet): Rename to ...
8255 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8257 (grub_net_recv_ip_packets): Rename to ...
8258 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8259 (free_rsm): New function.
8260 (free_old_fragments): Likewise.
8261 (grub_net_recv_ip4_packets): New function.
8262 (grub_net_send_ip6_packet): Likewise.
8263 (grub_net_send_ip_packet): Likewise.
8264 (grub_net_recv_ip6_packets): Likewise.
8265 (grub_net_recv_ip_packets): Likewise.
8266 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8267 (LINK_LAYER_CACHE_SIZE): New const.
8268 (link_layer_find_entry): New function.
8269 (grub_net_link_layer_add_address): Likewise.
8270 (grub_net_link_layer_resolve_check): Likewise.
8271 (grub_net_link_layer_resolve): Likewise.
8272 (grub_net_ipv6_get_slaac): Likewise.
8273 (grub_net_ipv6_get_link_local): Likewise.
8274 (grub_cmd_ipv6_autoconf): Likewise.
8275 (parse_ip): Handle one number representation.
8276 (parse_ip6): New functoion.
8277 (match_net): Handle IPv6.
8278 (grub_net_resolve_address): Handle IPv6 and DNS.
8279 (grub_net_resolve_net_address): Handle IPv6.
8280 (route_cmp): New function.
8281 (grub_net_route_address): Find best route.
8282 (grub_net_addr_to_str): Handle IPv6.
8283 (grub_net_addr_cmp): New function.
8284 (grub_net_add_addr): Register local route.
8285 (print_net_address): Handle net address.
8286 (grub_net_poll_cards): Retransmit TCP.
8287 (grub_net_poll_cards_idle_real): Likewise.
8288 (have_ahead): New function.
8289 (grub_net_seek_real): Use underlying seek.
8290 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8291 * grub-core/net/tcp.c: New file.
8292 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8293 (cmp): New function.
8295 (tftp_receive): Handle unordered input.
8296 (destroy_pq): New function.
8297 (tftp_close): Close pq.
8298 * grub-core/net/udp.c: Put missing license header.
8299 (grub_net_udp_socket): New function.
8300 (udp_socket_register): Likewise.
8301 (grub_net_udp_close): Likewise.
8302 (grub_net_recv_udp_packet): Check checksum.
8303 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8304 * include/grub/misc.h (grub_memchr): New function.
8305 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8306 (grub_net_card_driver): Return buf in recv.
8307 (grub_net_slaac_mac_list): New struct.
8308 (grub_network_level_protocol_id): Add ipv6.
8309 (grub_net_network_level_addr): Likewise.
8310 (grub_net_network_level_net_addr): Likewise.
8311 (grub_net_app_protocol): Add seek.
8312 (grub_net_socket): Removed.
8313 (grub_net_sockets): Likewise.
8314 (grub_net_socket_register): Likewise.
8315 (grub_net_socket_unregister): Likewise.
8316 (FOR_NET_SOCKETS): Likewise.
8317 (grub_net_add_addr): Add const.
8318 (GRUB_NET_BOOTP_*): New enum.
8319 (grub_net_addr_cmp): New proto.
8320 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8321 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8322 (grub_net_hwaddr_to_str): NEw proto.
8323 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8324 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8325 (grub_dns_init): New proto.
8326 (grub_dns_fini): Likewise.
8327 (grub_net_tcp_retransmit): Likewise.
8328 (grub_net_link_layer_add_address): Likewise.
8329 (grub_net_link_layer_resolve_check): Likewise.
8330 (grub_net_link_layer_resolve): Likewise.
8331 (grub_net_dns_lookup): Likewise.
8332 (grub_net_add_dns_server): Likewise.
8333 (grub_net_remove_dns_server): Likewise.
8334 (GRUB_NET_TRIES): New const.
8335 (GRUB_NET_INTERVAL): Likewise.
8336 * include/grub/net/arp.h: Mostly rewritten.
8337 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8338 * include/grub/net/ip.h: Mostly rewritten.
8339 * include/grub/net/netbuff.h: Indent.
8340 * include/grub/net/tcp.h: New file.
8341 * include/grub/net/udp.h: Mostly rewritten.
8342 * include/grub/priority_queue.h: New file.
8343 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8344 (grub_swap_bytes64_compile_time): Likewise.
8345 (grub_cpu_to_be16_compile_time): Likewise.
8346 (grub_cpu_to_be32_compile_time): Likewise.
8347 (grub_cpu_to_be64_compile_time): Likewise.
8348 (grub_be_to_cpu64_compile_time): Likewise.
8350 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8352 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8353 UINT_TO_PTR with cast.
8355 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8357 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8360 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8362 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8365 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8367 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8370 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8372 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8373 Add missing const attribute.
8374 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8376 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8379 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8381 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8383 (serpent_setkey): Likewise.
8384 (serpent_encrypt_internal): Likewise.
8385 (serpent_decrypt_internal): Likewise.
8386 (serpent_encrypt): Don't put an alignment-increasing cast.
8387 (serpent_decrypt): Likewise.
8388 (serpent_test): Likewise.
8390 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8392 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8394 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8396 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8398 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8400 (PTR_TO_UINT64): Likewise.
8401 (PTR_TO_UINT32): Likewise.
8403 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8405 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8407 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8410 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8412 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8413 text_width > available width a bit more gracefully.
8415 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8417 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8418 current address calculation.
8420 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8422 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8424 (encode_block): Likewise.
8426 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8428 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8431 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8433 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8434 non-RS part to avoid RS messing with GDT.
8435 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8436 Increase to suit in realmode routines.
8438 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8440 * grub-core/kern/i386/realmode.S: Increase alignment.
8441 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8443 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8445 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8447 (syndroms): Compute 0 syndrom.
8448 (rs_recover): Use 0 syndrom.
8450 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8452 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8454 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8456 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8459 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8461 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8463 (get_top_pad): Likewise.
8464 (get_right_pad): Likewise.
8465 (get_bottom_pad): Likewise.
8467 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8469 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8471 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8473 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8474 attribute as the structure isn't guaranteed to be properly aligned.
8475 (grub_efi_pci_device_path): Likewise.
8476 (grub_efi_pccard_device_path): Likewise.
8477 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8478 specify the size of `memory_type'.
8479 (grub_efi_vendor_device_path): Likewise.
8480 (grub_efi_controller_device_path): Likewise.
8481 (grub_efi_acpi_device_path): Likewise.
8482 (grub_efi_expanded_acpi_device_path): Likewise.
8483 (grub_efi_atapi_device_path): Likewise.
8484 (grub_efi_scsi_device_path): Likewise.
8485 (grub_efi_fibre_channel_device_path): Likewise.
8486 (grub_efi_1394_device_path): Likewise.
8487 (grub_efi_usb_device_path): Likewise.
8488 (grub_efi_usb_class_device_path): Likewise.
8489 (grub_efi_i2o_device_path): Likewise.
8490 (grub_efi_mac_address_device_path): Likewise.
8491 (grub_efi_ipv4_device_path): Likewise.
8492 (grub_efi_ipv6_device_path): Likewise.
8493 (grub_efi_infiniband_device_path): Likewise.
8494 (grub_efi_uart_device_path): Likewise.
8495 (grub_efi_vendor_messaging_device_path): Likewise.
8496 (grub_efi_hard_drive_device_path): Likewise.
8497 (grub_efi_cdrom_device_path): Likewise.
8498 (grub_efi_vendor_media_device_path): Likewise.
8499 (grub_efi_file_path_device_path): Likewise.
8500 (grub_efi_protocol_device_path): Likewise.
8501 (grub_efi_piwg_device_path): Likewise.
8502 (grub_efi_bios_device_path): Likewise.
8504 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8506 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8507 (grub_ucs4_to_utf8_alloc): Likewise.
8508 (grub_ucs4_to_utf8): Likewise.
8509 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8510 (grub_ucs4_to_utf8_alloc): Likewise.
8512 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8514 AFFS never uses unicode.
8516 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8517 (grub_latin1_to_utf8): New inline function.
8518 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8520 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8522 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8525 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8527 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8528 (grub_squash_dirent_header): Likewise.
8529 (read_chunk): Don't double swap.
8530 (grub_squash_iterate_dir): Fix swap sizes.
8532 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8534 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8536 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8538 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8539 (grub_hfs_iterate_dir): Likewise.
8541 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8543 Fix video on platforms where unaligned access is forbidden.
8544 Make several optimisations while on it.
8546 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8547 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8548 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8549 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8551 (grub_video_fbblit_replace_16bit_1bit):
8552 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8553 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8554 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8555 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8556 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8557 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8558 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8559 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8560 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8561 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8562 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8563 (grub_video_fbblit_replace_index_RGB888): Likewise.
8564 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8565 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8566 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8567 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8568 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8569 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8570 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8572 (grub_video_fbblit_blend_XXX565_1bit):
8573 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8574 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8575 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8577 * grub-core/video/fb/video_fb.c (common_blitter)
8578 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8579 (grub_video_fb_create_render_target_from_pointer)
8580 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8581 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8582 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8584 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8586 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8588 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8589 HH22 and HM10 relocations.
8591 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8593 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8595 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8597 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8598 allocation succeeded.
8600 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8602 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8603 argument a u8 pointer. All users updated.
8604 Handle unaligned buffers.
8606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8608 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8609 add_part to workaround compiler bug.
8611 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8613 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8615 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8617 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8618 Reserve alignment invariants.
8619 (grub_multiboot_load): Likewise.
8620 (retrieve_video_parameters): Likewise.
8621 (grub_multiboot_make_mbi): Likewise.
8623 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8625 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8628 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8630 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8631 (grub_pata_pio_write): Likewise.
8633 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8635 Add noreturn attributes and remove unreachable code.
8637 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8639 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8640 code. Mark as noreturn.
8641 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8642 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8643 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8645 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8646 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8647 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8648 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8649 * include/grub/kernel.h (grub_main): Mark as noreturn.
8650 * include/grub/reader.h (grub_rescue_run): Likewise.
8652 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8654 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8655 redundant declaration.
8657 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8659 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8660 redundant declaration.
8661 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8663 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8665 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8666 to ensure alignment.
8667 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8668 alignment. Ensure tmp alignment.
8669 (grub_cmd_hdparm): Ensure buf alignment.
8670 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8671 to ensure alignment.
8672 (grub_ata_dumpinfo): Ensure text alignment.
8673 (grub_atapi_identify): Preserve alignment invariant.
8674 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8676 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8678 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8679 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8680 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8681 * include/grub/misc.h (grub_reboot)
8682 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8683 (grub_halt) [__mips__]: Likewise.
8685 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8687 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8688 Remove redundant declaration.
8689 (grub_mmap_get_post64): Likewise.
8690 (grub_mmap_get_upper): Likewise.
8691 (grub_mmap_get_lower): Likewise.
8693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8695 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8696 uint32_t * to ensure alignment.
8697 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8699 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8701 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8702 uint16_t * to ensure alignment.
8703 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8706 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8708 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8709 to ensure alignment.
8710 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8712 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8714 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8715 Handle unaligned pointers.
8718 (fixup): Use byte access instead of v16at.
8719 (find_attr): Fix imporper usage of v32at.
8720 (read_data): Likewise.
8721 (list_file): Handle byte-swapping and unaligned strings.
8722 (grub_ntfs_label): Likewise.
8724 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8726 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8727 as it's not necessarily aligned.
8729 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8731 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8732 redundant declaration.
8733 (grub_serial_init): Likewise.
8734 (grub_terminfo_init): Likewise.
8736 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8738 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8740 (ZAP_HASH_IDX): Likewise.
8741 (ZAP_LEAF_HASH_SHIFT): Likewise.
8742 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8743 (LEAF_HASH): Likewise.
8744 (ZAP_LEAF_NUMCHUNKS): Likewise.
8745 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8746 alignment invariants. Return pointer. All users updated.
8747 (ZAP_LEAF_ENTRY): Make into inline function.
8750 (xor_out): Use grub_crypto_xor.
8751 (dnode_get_path): Use grub_get_unaligned.
8752 (nvlist_find_value): Likewise.
8753 (grub_zfs_nvlist_lookup_uint64): Likewise.
8754 (grub_zfs_nvlist_lookup_string): Likewise.
8755 (get_nvlist_size): Likewise.
8756 (grub_zfs_open): Likewise.
8757 (fill_fs_info): Likewise.
8758 (grub_zfs_dir): Likewise.
8759 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8760 alignment invariants.
8761 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8762 necessarily aligned.
8764 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8766 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8768 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8770 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8771 arithmetic to conserve alignment invariants.
8773 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8775 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8776 redundant declaration.
8777 (grub_efiemu_mm_obtain_request): Likewise.
8778 (grub_efiemu_prepare): Likewise.
8780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8782 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8785 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8787 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8788 case of aunaligned recptr.
8789 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8791 (grub_hfsplus_btree_search): Handle unaligned index.
8793 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8795 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8796 to get freetag and skip.
8798 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8800 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8802 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8803 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8805 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8807 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8808 name for checksum and fix allocation algorithm.
8810 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8812 * include/grub/types.h (grub_properly_aligned_t): New type.
8813 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8814 (grub_get_unaligned16): Add explicit casts.
8815 (grub_get_unaligned32): Likewise.
8816 (grub_get_unaligned64): Likewise.
8817 (grub_set_unaligned16): New function.
8818 (grub_set_unaligned32): Likewise.
8820 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8822 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8824 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8826 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8827 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8828 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8830 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8832 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8835 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8837 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8838 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8840 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8842 Unify and improve RAID and crypto xor.
8844 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8845 changed to grub_crypto_xor
8846 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8847 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8848 Use bigger types when possible.
8850 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8852 * grub-core/disk/raid.c (scan_devices): Fix condition.
8854 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8856 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8857 Make name a const ptr.
8859 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8861 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8862 first argument a const pointer.
8863 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8864 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8866 (grub_children_iterate): Likewise.
8867 (grub_machine_mmap_iterate): Remove redundant declaration.
8869 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8871 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8872 (grub_cmd_acpi) [!x86]: Disable EBDA.
8874 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8876 Enable UTF8 in gnulib regexp.
8878 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8879 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8880 (isupper): Use grub_isupper.
8881 (isascii): New inline function.
8882 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8883 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8884 * grub-core/normal/charset.c (grub_utf8_process): New function.
8885 (grub_utf8_to_utf16): Use grub_utf8_process.
8886 (grub_encode_utf8_character): New function.
8887 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8888 * include/grub/charset.h (grub_utf8_process): New declaration.
8889 (grub_encode_utf8_character): Likewise.
8890 * include/grub/misc.h (grub_islower): New inline function.
8891 (grub_isupper): Likewise.
8892 (grub_strchrsub): Moved down to fix the definitions.
8894 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8896 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8899 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8901 * include/grub/loader.h (grub_loader_register_preboot_hook):
8902 Use struct preboot * and not void * for handle. All users updated.
8903 (grub_loader_unregister_preboot_hook): Likewise.
8905 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8907 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8908 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8909 UTF-16-BE. All users updated.
8910 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8911 (grub_hfsplus_iterate_dir): Likewise.
8912 (grub_hfsplus_label): Likewise.
8914 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8916 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8918 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8920 Add missing const qualifiers.
8922 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8923 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8924 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8925 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8926 (grub_lvm_check_flag): Likewise.
8927 * grub-core/efiemu/i386/coredetect.c
8928 (grub_efiemu_get_default_core_name): Likewise
8929 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
8930 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
8931 * grub-core/fs/ntfs.c (fixup): Likewise.
8932 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
8933 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
8934 (fzap_lookup): Likewise.
8935 (zap_lookup): Likewise.
8936 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
8937 * grub-core/lib/legacy_parse.c (check_option): Likewise.
8938 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
8939 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
8940 (grub_freebsd_add_meta_module): Likewise.
8941 (grub_cmd_freebsd_module): Likewise.
8942 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
8943 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
8944 (grub_xnu_writetree_get_size): Likewise.
8945 (grub_xnu_writetree_toheap_real): Likewise.
8946 (grub_xnu_find_key): Likewise.
8947 (grub_xnu_create_key): Likewise.
8948 (grub_xnu_create_value): Likewise.
8949 (grub_xnu_register_memory): Likewise.
8950 (grub_xnu_check_os_bundle_required): Likewise.
8951 (grub_xnu_scan_dir_for_kexts): Likewise.
8952 (grub_xnu_load_kext_from_dir): Likewise.
8953 * grub-core/normal/color.c (color_list): Likewise.
8954 * grub-core/normal/completion.c (current_word): Likewise.
8955 * grub-core/normal/menu_entry.c (insert_string): Likewise.
8956 * grub-core/term/serial.c (grub_serial_find): Likewise.
8957 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
8958 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
8960 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
8961 (grub_freebsd_add_meta_module): Likewise.
8962 * include/grub/lib/arg.h (grub_arg_option): Likewise.
8963 * include/grub/net.h (grub_net_card_driver): Likewise.
8964 (grub_net_card): Likewise.
8965 (grub_net_app_protocol): Likewise.
8966 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
8967 * include/grub/serial.h (grub_serial_find): Likewise.
8968 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
8969 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
8970 (grub_xnu_create_value): Likewise.
8971 (grub_xnu_find_key): Likewise.
8972 (grub_xnu_scan_dir_for_kexts): Likewise.
8973 (grub_xnu_load_kext_from_dir): Likewise.
8975 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
8976 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
8977 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
8979 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
8981 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
8983 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
8985 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
8987 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
8988 (read_device): Fix size calculation.
8990 2011-11-25 Robert Millan <rmh@gnu.org>
8992 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
8993 (find_root_device_from_libzfs): Add zpool output parser to be used
8994 as fallback when libzfs isn't available.
8996 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
8998 * po/Makefile.in.in: Add missing escape-continuation.
9000 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9002 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9004 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9006 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9008 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9010 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9012 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9014 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9016 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9018 * grub-core/lib/adler32.c: Add missing license specification.
9019 * grub-core/lib/crc64.c: Likewise.
9020 * grub-core/loader/i386/pc/plan9.c: Likewise.
9021 * grub-core/partmap/plan.c: Likewise.
9023 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9025 Add facility to debug GRUB with gdb under qemu.
9027 * grub-core/gdb_grub.in: New file.
9028 * grub-core/gmodule.pl.in: Likewise.
9029 * grub-core/Makefile.core.def (gmodule.pl): New script.
9030 (gdb_grub): Likewise.
9032 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9034 * util/grub-mount.c (argp_parser): Accept relative pathes.
9035 * util/grub-fstest.c (argp_parser): Likewise.
9037 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9041 * Makefile.util.def (libgrubmods): Add
9042 grub-core/partmap/plan.c.
9043 * docs/grub.texi: Notice Plan9 support.
9044 * grub-core/Makefile.core.def (plan9): New module.
9045 (part_plan): Likewise.
9046 * grub-core/loader/i386/pc/plan9.c: New file.
9047 * grub-core/partmap/plan.c: Likewise.
9048 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9050 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9051 * include/grub/mm.h (grub_extend_alloc): New inline function.
9053 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9055 Make Reed-Solomon faster by using power of generator representation of
9058 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9059 (gf_double_t): Likewise.
9060 (gf_invert): Removed.
9061 (gf_powx): New array.
9062 (gf_powx_inv): Likewise.
9063 (scratch): Move higher.
9064 (gf_reduce): Removed.
9066 (gf_invert): Likewise.
9067 (init_inverts): Replaced with ...
9068 (init_powx): ...this. All users updated.
9069 (pol_evaluate): Replace multiplications with additions.
9070 (rs_encode): Likewise.
9071 (gauss_eliminate): Call gf_invert.
9072 (grub_reed_solomon_add_redundancy): Call init_powx.
9073 (grub_reed_solomon_recover): Call init_powx unconditionally.
9075 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9077 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9079 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9081 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9082 disk->partiton for safety.
9084 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9086 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9088 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9090 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9092 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9094 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9096 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9098 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9100 Fix spaces handling in proc/self/mountinfo.
9102 * util/getroot.c (unescape): New function.
9103 (grub_find_root_device_from_mountinfo): Use unescape.
9105 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9107 Support ZFS embedding.
9109 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9110 (grub_zfs_fs): Register grub_zfs_embed.
9112 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9114 Fix MIPS compilation.
9116 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9117 * include/grub/offsets.h: Rename decompressor fields from
9118 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9119 * util/grub-mkimage.c (image_targets): Use new names.
9121 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9123 Defer multiboot device parsing until we're in compressed part.
9125 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9126 bsd_part. setdevice has fallen into disuse.
9127 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9128 (bsd_part): Likewise.
9129 (boot_dev): New variable.
9130 (multiboot_trampoline): Don't parse multiboot device.
9131 Pass multiboot device in %edx.
9132 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9134 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9136 * grub-core/kern/i386/pc/startup.S: Save edx.
9137 (grub_boot_drive): Removed.
9138 (grub_install_dos_part): Likewise.
9139 (grub_install_bsd_part): Likewise.
9140 (grub_boot_device): New variable.
9141 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9142 (grub_install_bsd_part): Likewise.
9143 (grub_boot_drive): Likewise.
9144 (grub_boot_device): New variable.
9145 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9147 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9148 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9149 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9150 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9151 * util/grub-install.in: Remove redundant condition.
9153 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9155 Fix bug introduced by previous commit.
9157 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9159 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9161 Use decompressors framework on i386-pc. It increases core size
9162 by 46 bytes but improves compatibility and maintainability.
9164 * grub-core/Makefile.core.def (lzma_decompress): New image.
9165 (kernel): Add i386_pc_ldflags.
9166 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9167 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9168 to real_to_prot, prot_to_real and device info.
9169 * include/grub/offsets.h: Renamed decompressor offsets.
9170 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9171 (image_target_desc): Remove raw_size and rename decompressor fields.
9172 (compress_kernel): Handle lzma.
9173 (generate_image): Handle decompressors on i386-pc.
9175 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9177 * configure.ac: Add -fno-asynchronous-unwind-tables.
9179 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9181 Move assembly code to C by using intwrap. It increases core size
9182 by 88 bytes but improves compatibility and maintainability.
9184 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9185 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9186 ... here. Translated to C.
9187 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9188 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9189 ... here. Translated to C.
9190 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9191 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9192 ... here. Translated to C.
9193 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9194 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9195 ... here. Translated to C.
9196 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9197 * grub-core/term/i386/pc/console.c (grub_console_cls):
9198 ... here. Translated to C.
9199 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9200 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9201 ... here. Translated to C.
9202 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9203 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9205 * grub-core/term/i386/pc/console.c (int10_9): New function.
9206 (grub_console_putchar): Likewise.
9207 * include/grub/i386/pc/console.h: Removed the not anymore shared
9210 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9212 Move grub_chainloader_real_boot out of the kernel.
9214 * grub-core/Makefile.am: Remove machine/loader.h.
9215 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9217 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9219 (grub_relocator16_keep_a20_enabled): Likewise.
9220 (grub_relocator16_boot): Fill new variables.
9221 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9222 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9224 (grub_chainloader_unload): Likewise.
9225 (grub_chainloader_cmd): Likewise.
9226 * include/grub/i386/pc/loader.h: Removed.
9227 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9228 and esi. All initialisers updated.
9230 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9231 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
9233 * Makefile.util.def (grub-mount): New util.
9234 * .bzrignore: Add grub-mount.
9235 * configure.ac: Check for fuse and enable grub-mount if available.
9236 * docs/man/grub-mount.h2m: New file.
9237 * util/grub-mount.c: Likewise.
9239 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9241 * grub-core/commands/efi/fixvideo.c: Gettextize.
9242 * grub-core/commands/hashsum.c: Likewise.
9243 * grub-core/commands/i386/cmostest.c: Likewise.
9244 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9245 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9246 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9247 * grub-core/commands/lsmmap.c: Likewise.
9248 * grub-core/commands/menuentry.c: Likewise.
9249 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9250 * grub-core/commands/setpci.c: Likewise.
9251 * grub-core/loader/i386/bsd.c: Likewise.
9252 * grub-core/loader/i386/linux.c: Likewise.
9253 * util/getroot.c: Likewise.
9254 * util/grub-editenv.c: Likewise.
9255 * util/grub-fstest.c: Likewise.
9256 * util/grub-mkfont.c: Likewise.
9257 * util/grub-mkimage.c: Likewise.
9258 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9259 * util/grub-pe2elf.c: Likewise.
9260 * util/grub-probe.c: Likewise.
9261 * util/grub-setup.c: Likewise.
9262 * util/ieee1275/ofpath.c: Likewise.
9263 * util/misc.c: Likewise.
9264 * util/raid.c: Likewise.
9266 2011-11-11 Robert Millan <rmh@gnu.org>
9268 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9269 __attribute__((unused)) from `os_dev', which *is* being used.
9271 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9273 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9275 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9276 GRUB_IA64_DL_GOT_ALIGN.
9277 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9278 GRUB_IA64_DL_TRAMP_ALIGN.
9280 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9282 Replace grub_fatal with normal errors in i386 linux loader.
9284 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9285 (allocate_pages): Check find_efi_mmap_size return value.
9286 (grub_e820_add_region): Return error.
9287 (grub_linux_boot): Check mmap return value.
9289 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9291 * grub-core/commands/acpihalt.c: Gettextized.
9292 * grub-core/commands/cacheinfo.c: Likewise.
9293 * grub-core/commands/cmp.c: Likewise.
9294 * grub-core/commands/efi/loadbios.c: Likewise.
9295 * grub-core/commands/gptsync.c: Likewise.
9296 * grub-core/commands/ieee1275/suspend.c: Likewise.
9297 * grub-core/commands/legacycfg.c: Likewise.
9298 * grub-core/commands/memrw.c: Likewise.
9299 * grub-core/commands/minicmd.c: Likewise.
9300 * grub-core/commands/parttool.c: Likewise.
9301 * grub-core/commands/time.c: Likewise.
9302 * grub-core/commands/videoinfo.c: Likewise.
9303 * grub-core/disk/geli.c: Likewise.
9304 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9305 * grub-core/disk/luks.c: Likewise.
9306 * grub-core/disk/lvm.c: Likewise.
9307 * grub-core/font/font_cmd.c: Likewise.
9308 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9309 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9310 * grub-core/gfxmenu/view.c: Likewise.
9311 * grub-core/kern/emu/hostdisk.c: Likewise.
9312 * grub-core/kern/emu/main.c: Likewise.
9313 * grub-core/kern/emu/misc.c: Likewise.
9314 * grub-core/kern/emu/mm.c: Likewise.
9315 * grub-core/kern/mips/arc/init.c: Likewise.
9316 * grub-core/kern/mips/loongson/init.c: Likewise.
9317 * grub-core/kern/partition.c: Likewise.
9318 * grub-core/lib/i386/halt.c: Likewise.
9319 * grub-core/lib/mips/arc/reboot.c: Likewise.
9320 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9321 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9322 * grub-core/loader/i386/xnu.c: Likewise.
9323 * grub-core/loader/multiboot.c: Likewise.
9324 * grub-core/net/bootp.c: Likewise.
9325 * grub-core/net/net.c: Likewise.
9326 * grub-core/normal/term.c: Likewise.
9327 * grub-core/partmap/bsdlabel.c: Likewise.
9328 * grub-core/parttool/msdospart.c: Likewise.
9329 * grub-core/term/gfxterm.c: Likewise.
9330 * grub-core/term/terminfo.c: Likewise.
9331 * grub-core/video/i386/pc/vbe.c: Likewise.
9332 * util/grub-menulst2cfg.c: Likewise.
9333 * util/grub-mkdevicemap.c: Likewise.
9334 * util/grub-mklayout.c: Likewise.
9335 * util/grub-mkrelpath.c: Likewise.
9336 * util/grub-script-check.c: Likewise.
9337 * util/ieee1275/grub-ofpathname.c: Likewise.
9338 * util/resolve.c: Likewise.
9340 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9342 Support %1$d syntax.
9344 * tests/printf_unit_test.c: New file.
9345 * Makefile.util.def (printf_test): New test.
9346 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9348 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9350 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9353 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9355 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9357 * grub-core/font/font.c (grub_font_load): Likewise.
9359 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9361 * util/grub-macho2img.c: Add comment concerning gettext.
9362 * grub-core/lib/legacy_parse.c: Likewise.
9364 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9366 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9367 (grub_xvasprintf): Likewise.
9369 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9371 Add const keyword to grub_env_get and gettextize week days.
9373 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9374 (grub_read_hook_datetime): Return const char *.
9375 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9377 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9379 (grub_get_weekday_name): Return const char *. Call gettext.
9380 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9381 char * and len as the argument. All users updated.
9382 (grub_script_argv_split_append): Receive const char *.
9383 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9384 * include/grub/env.h (grub_env_get): Likewise.
9385 (grub_env_read_hook_t): Return const char *.
9386 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9387 (grub_script_argv_split_append): Likewise.
9389 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9391 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9393 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9395 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9396 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9398 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9400 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9403 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9405 Fix mips compilation.
9407 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9409 (hashes): Use in embed decoder as well (for sizes).
9410 (dec_stream_header): Fix embed decompressor logic.
9411 (dec_stream_footer): Likewise.
9413 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9415 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9416 an error and not a fatal on unrecognised relocation types.
9418 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9420 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9421 Issue error rather than printf on unknown arguments.
9423 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9425 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9428 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9430 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9433 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9435 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9436 leftover debug printf.
9438 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9440 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9442 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9444 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9447 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9449 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9451 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9453 Allow all modules to perform serial IO
9455 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9456 * include/grub/serial.h (grub_serial_port_configure): New inline
9458 (grub_serial_port_fetch): Likewise.
9459 (grub_serial_port_put): Likewise.
9460 (grub_serial_port_fini): Likewise.
9461 (grub_serial_find): New proto.
9463 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9465 Put symlink at the end of the node and fix a potential
9468 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9469 Make symlink into an array.
9470 (set_rockridge): Set have_symlink and alloc_dirents.
9471 (grub_iso9660_read_symlink): Use new layout.
9472 (grub_iso9660_iterate_dir): Fix memory corruption.
9474 (grub_iso9660_dir): Set have_symlink.
9475 (grub_iso9660_open): Likewise.
9477 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9479 Remove local keyword.
9481 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9482 (version_test_gt): Likewise.
9483 (version_find_latest): Likewise.
9484 (gettext_printf): Likewise.
9485 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9487 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9489 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9491 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9493 Fix ZFS memory and resource leaks.
9495 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9498 (fill_vdev_info): New parameter inserted. All users updated.
9499 (check_pool_label): Likewise.
9500 (scan_disk): Likewise.
9501 (scan_devices): Close non-inserted disks.
9502 (fzap_iterate): Free l.
9503 (unmount_device): Free children descripto memory.
9505 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9507 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9508 argument (access out of bounds).
9510 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9512 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9515 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9517 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9520 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9522 Fix several memory leaks.
9524 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9525 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9526 (grub_cpio_dir): Likewise.
9527 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9528 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9529 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9530 (grub_romfs_label): Likewise.
9531 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9532 (squash_unmount): New function.
9533 (grub_squash_dir): Fix memory leak.
9534 (grub_squash_open): Likewise.
9535 (grub_squash_read): Likewise.
9536 (grub_squash_mtime): Likewise.
9537 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9538 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9539 * util/grub-fstest.c (fstest): Likewise.
9541 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9543 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9544 avoid accessing beyond the array.
9546 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9548 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9550 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9554 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9555 (GRUB_AFFS_FLAG_FFS): Removed.
9556 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9557 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9558 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9559 (grub_fshelp_node): Make block 32-bit.
9560 Add block_cache and last_block_cache.
9561 (grub_affs_read_block): Fill and use block cache.
9562 (grub_affs_read_file): Removed.
9563 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9565 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9567 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9569 (grub_affs_close): Free block cache.
9570 (grub_affs_read): Use grub_fshelp_read_file directly.
9572 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9574 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9577 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9579 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9581 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9584 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9586 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9588 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9589 byteswap when needed.
9591 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9593 Fix FreeBSD compilation.
9595 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9596 to avoid circular dependency.
9597 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9598 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9599 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9601 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9603 Fix ZFS crypto error types.
9605 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9606 (grub_gcm_decrypt): Likewise.
9607 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9610 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9614 * Makefile.util.def (10_illumos): New script.
9615 * configure.ac: Set COND_HOST_ILLUMOS.
9616 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9617 Support Illumos calls.
9618 (find_partition_start) [__sun__]: Likewise.
9619 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9620 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9621 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9622 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9624 * util/grub-probe.c (probe) [__sun__]: Do character check.
9625 * util/grub.d/10_illumos.in: New file.
9627 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9629 Support escaped commas in hostdisk.
9631 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9632 (find_grub_drive): Use unescape_cmp.
9633 (make_device_name): Escape commas.
9635 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9637 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9639 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9641 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9644 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9646 Support trampoline jumps on powerpc.
9648 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9650 (grub_dl_load_segments): Set mod->sz.
9651 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9653 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9655 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9657 (trampoline): New struct.
9658 (trampoline_template): New const.
9659 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9660 * include/grub/dl.h (grub_dl): Add sz element.
9661 [__powerpc__]: Follow __ia64__.
9662 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9663 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9664 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9665 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9667 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9671 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9672 * grub-core/Makefile.core.def (zfscrypt): New module.
9673 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9674 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9675 it. All users updated.
9676 (grub_zfs_decrypt): New var.
9677 (grub_zfs_load_key): Likewise.
9678 (zio_checksum_functions): Add SHA256+MAC.
9679 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9680 (zio_read): Handle encrypted blocks.
9681 (zap_verify): Remove incorrect check.
9682 (fzap_iterate): Handle non-standard fzap.
9683 (zap_iterate): Likewise.
9684 (zap_iterate_u64): New function.
9685 (dnode_get_fullpath): Load keys.
9686 * grub-core/fs/zfs/zfscrypt.c: New file.
9687 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9688 (grub_crypto_ecb_encrypt): Make input const.
9689 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9690 (grub_crypto_ecb_encrypt): Make input const.
9691 (GRUB_CIPHER_AES): New macro.
9692 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9693 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9694 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9695 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9696 prefix. All users updated.
9697 (grub_zfs_add_key): New proto.
9698 (grub_zfs_decrypt): Likewise.
9699 (grub_zfs_load_key): Likewise.
9700 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9701 * util/grub-fstest.c (options): Add -K option.
9702 (argp_parser): Likewise.
9704 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9706 Support zle compression on ZFS.
9708 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9709 (decomp_table): Add zle.
9710 * include/grub/zfs/zio.h (zio_compress): Add zle.
9712 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9714 Support BtrFS embedding.
9716 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9717 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9718 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9719 * util/grub-setup.c (setup): Use fs embedding if available.
9720 Add additional sanity check.
9722 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9724 * util/grub-install.in: Fix condition for config_opt.
9726 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9728 Support third redundancy strip on raidz3.
9730 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9731 Return error on singularity. All users updated.
9732 (read_device): Don't stop on 3rd failure on raidz3.
9734 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9736 Support case-insensitive ZFS subvolumes.
9738 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9740 (zap_hash): Likewise.
9741 (name_cmp): New function.
9742 (zap_leaf_array_equal): New parameter case_insensitive.
9744 (zap_leaf_lookup): Likewise.
9745 (fzap_lookup): Likewise.
9746 (zap_lookup): Likewise.
9747 (dnode_get_path): New parameter case_insensitive. Retrieve case
9748 sensitiviness of a volume. All users updated.
9749 (dnode_get_fullpath): New parameter case_insensitive.
9751 (grub_zfs_dir): Set info.case_insensitiveness.
9753 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9755 Support second redundancy strip on raidz(2,3).
9757 * grub-core/fs/zfs/zfs.c (powx): New array.
9758 (powx_inv): Likewise.
9760 (xor_out): New function.
9762 (recovery): Likewise.
9763 (read_device): Use second redundancy strip.
9765 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9767 Use a power of generator representation of GF(256) multiplication group
9768 to save space time and complexity.
9770 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9771 (raid6_table2): Likewise.
9773 (powx_inv): Likewise.
9775 (grub_raid_block_mul): Replace with ...
9776 (grub_raid_block_mulx): ...this.
9777 (grub_raid6_init_table): Rewritten.
9778 (grub_raid6_recover): Use power of generator representation.
9780 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9782 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9783 for the right device.
9785 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9787 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9788 expected by grub-mkimage and it's more clear since there is no implicit
9791 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9793 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9795 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9797 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9799 * util/grub-mkrescue.in: Fix handling xorriso option.
9801 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9803 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9806 2011-11-03 crocket <crockabiscuit@gmail.com>
9808 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9810 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9812 XZ CRC64 and SHA256 support.
9814 * Makefile.util.def (libgrubmods): Add crc64.c.
9815 * grub-core/Makefile.core.def (crc64): New module.
9816 * grub-core/lib/crc64.c: New file.
9817 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9818 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9820 (MAX_HASH_SIZE): New define.
9821 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9822 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9823 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9824 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9825 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9826 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9827 Handle non-crc32 hashes.
9828 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9829 (dec_stream_header): Handle non-crc32 hashes.
9830 (dec_stream_footer): Likewise.
9831 (dec_block_header): Likewise.
9832 (dec_main): Likewise.
9833 (xz_dec_init): Likewise.
9834 (xz_dec_reset): Likewise.
9835 (xz_dec_end): Likewise.
9836 * util/import_gcry.py: Add CRC64 line.
9838 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9840 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9843 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9845 Make reiserfs label retrieval similar to other *_label functions.
9847 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9848 (REISERFS_MAX_LABEL_LENGTH): Removed.
9849 (REISERFS_LABEL_OFFSET): Likewise.
9850 (grub_reiserfs_label): Rewritten.
9852 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9854 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9857 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9859 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9861 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9863 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9864 drive failure on both raidz and raidz2.
9866 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9868 Fix RAIDZ(2) for >= 5 devices.
9870 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9871 asize argument. All users updated.
9873 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9877 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9878 (fill_vdev_info_real): Set ashift.
9879 (read_device): Rewrite RAIDZ part based on reverse engineering.
9881 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9883 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9884 don't report potentially unavialiable fields in debug output.
9885 (find_path): Fix double-free and memory leak.
9887 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9891 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9892 (grub_ufs_fs): Always set .label.
9894 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9898 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9899 (grub_ufs_data): New field log2_blksz.
9900 (grub_ufs_read_file): Use shifts.
9901 (grub_ufs_mount): Check block size and logarithm it.
9903 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9905 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9908 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9910 Handle symlinks and long names on tar and cpio.
9912 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9913 (ATTR_FILE): Likewise.
9914 (ATTR_DIR): Likewise.
9915 (ATTR_LNK): Likewise.
9916 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9917 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9919 (grub_cpio_mount): Zero-fill data.
9920 (handle_symlink): New function.
9921 (grub_cpio_dir): Handle symlinks.
9922 (grub_cpio_open): Likewise.
9923 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9925 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9927 Fix iso9660 filename limitations and fix memory leaks.
9929 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
9930 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
9932 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9934 Fix JFS file name length limitations.
9936 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
9937 (grub_jfs_diropen): Fix maximum filename length.
9938 (grub_jfs_getent): Fix filename length.
9939 (grub_jfs_lookup_symlink): Fix size checks.
9941 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9943 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
9946 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9948 Leverage BFS implementation to read AFS.
9950 * Makefile.util.def (libgrubmods): Add afs.c.
9951 * grub-core/Makefile.core.def (afs): New module
9952 * grub-core/fs/afs.c: New file.
9953 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
9955 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9957 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
9959 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9961 * grub-core/fs/bfs.c: Run indent.
9963 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9965 BFS implementation based on the specification.
9967 * grub-core/fs/bfs.c: New file.
9968 * Makefile.util.def (libgrubmods): Add bfs.c.
9969 * grub-core/Makefile.core.def (bfs): New module.
9971 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9973 * util/grub-fstest.c (cmd_cp): Clarify error message.
9974 (cmd_cmp): Likewise.
9976 2011-10-30 Yves Blusseau <blusseau@zetam.org>
9978 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
9981 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
9983 Remove afs and befs because of copyright problem.
9985 * grub-core/fs/afs.c: Removed.
9986 * grub-core/fs/afs_be.c: Removed.
9987 * grub-core/fs/befs.c: Removed.
9988 * grub-core/fs/befs_be.c: Removed.
9989 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
9990 * grub-core/Makefile.core.def (afs): Removed.
9993 (befs_be): Likewise.
9995 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
9997 Prefer rockridge over Joliet.
9999 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10001 (set_rockridge): ... here.
10002 (grub_iso9660_mount): Check rockridge on the primary label when
10003 discovering. Ignore Joliet if Rockridge is present.
10005 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10007 Use shifts in nilfs2.
10009 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10010 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10011 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10012 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10013 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10014 (grub_nilfs2_entries_per_block): Replaced with ...
10015 (grub_nilfs2_log_entries_per_block_log): ... this.
10016 (grub_nilfs2_blocks_per_group): Replaced with ...
10017 (grub_nilfs2_blocks_per_group_log): ... this.
10018 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10019 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10020 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10021 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10022 (grub_nilfs2_palloc_entry_offset): Replaced ...
10023 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10024 (grub_nilfs2_dat_translate): Use shifts.
10025 (grub_nilfs2_read_inode): Likewise.
10026 (GRUB_MOD_INIT): Ensure that logs are correct.
10028 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10030 Use shifts in minix filesystem.
10032 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10033 (GRUB_MINIX_ZONE2SECT): Likewise.
10034 (grub_minix_data): Replace block_size with log_block_size.
10035 (grub_minix_read_file): Use shifts.
10036 (grub_minix_mount): Check block size and take a logarithm.
10038 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10040 Use shifts in squash4.
10042 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10043 (squash_mount): Check block size and take logarithm.
10044 (direct_read): Use shifts.
10046 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10048 Correct befs block counting logic.
10050 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10051 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10052 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10053 (grub_afs_read_inode): Use block_shift.
10054 (RANGE_SHIFT): New definition.
10055 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10056 unexpected conditions, use shifts and appropriate types.
10057 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10059 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10061 * grub-core/disk/raid.c (scan_devices): Check partition.
10062 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10064 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10066 Support BFS (befs) UUID.
10068 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10069 (grub_afs_small_data_element_header): New struct.
10070 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10071 (grub_afs_read_attribute) [MODE_BFS]: New function.
10072 (grub_afs_iterate_dir): Allocate for complete inode.
10073 (grub_afs_mount): Likewise.
10074 (grub_afs_uuid) [MODE_BFS]: New function.
10075 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10077 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10079 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10080 (zfs_unmount): Fix memory leak.
10082 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10084 Support NTFS reparse points.
10086 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10087 (symlink_descriptor): New struct.
10088 (grub_ntfs_read_symlink): New function.
10089 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10090 (grub_ntfs_open): Likewise.
10092 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10094 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10096 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10098 fstest xnu_uuid subcommand.
10100 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10101 grub-core/commands/xnu_uuid.c.
10102 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10103 (fstest): Handle xnu_uuid.
10104 (options): Document xnu_uuid.
10105 (argp_parser): Parse xnu_uuid.
10107 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10109 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10110 -l argument. Add newline at the end if printing.
10111 (GRUB_MOD_INIT): Document -l.
10113 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10115 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10117 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10119 ZFS multi-device and version 33 support.
10121 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10122 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10123 (grub_zfs_data): Add multidev-ice-related fields.
10124 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10125 (dva_get_offset): Make dva const.
10126 (zfs_fetch_nvlist): New function.
10127 (fill_vdev_info_real): Likewise.
10128 (fill_vdev_info): Likewise.
10129 (check_pool_label): Likewise.
10130 (scan_disk): Likewise.
10131 (scan_devices): Likewise.
10132 (read_device): Likewise.
10133 (read_dva): Likewise.
10134 (zio_read_gang): Use read_dva.
10135 (zio_read_data): Likewise.
10136 (zap_leaf_lookup): Add missing endian conversion.
10137 (zap_verify): Add missing endian conversion. All users updated.
10138 (fzap_lookup): Likewise.
10139 (fzap_iterate): Likewise.
10140 (dnode_get_path): Handle SA bonus.
10141 (nvlist_find_value): Make input const. All users updated.
10142 (unmount_device): New function.
10143 (zfs_unmount): Use unmount_device.
10144 (zfs_mount): Use scan_disk.
10145 (zfs_mtime): New function.
10146 (grub_zfs_open): Handle system attributes.
10147 (fill_fs_info): Likewise.
10148 (grub_zfs_dir): Likewise.
10149 (grub_zfs_fs): Add mtime.
10150 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10151 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10152 (SA_MTIME_OFFSET): Likewise.
10153 (SA_SYMLINK_OFFSET): Likewise.
10154 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10155 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10156 (fstest): Support zfsinfo.
10157 (argp_parser): Likewise.
10159 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10161 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10164 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10168 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10169 sharing the same block. Iterate over correct number of indices.
10170 (dnode_get_path): Handle symlinks correctly.
10172 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10174 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10176 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10178 Read label on HFS+.
10180 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10181 (grub_hfsplus_btree_search): Fix types.
10182 (grub_hfsplus_label): Implement.
10184 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10186 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10188 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10190 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10192 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10194 Fix symlink handling on iso9660.
10196 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10198 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10199 (grub_iso9660_read_symlink): Moved most of code ...
10200 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10202 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10204 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10205 Use union to avoid breaking strict-aliasing rules.
10207 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10209 Support multi-extent iso files.
10211 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10213 (grub_fshelp_node): Revamp. All users updated.
10214 (FLAG_*): New enum.
10215 (read_node): New function.
10216 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10218 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10219 (get_node_size): New function.
10220 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10222 Fix memory leak on . and ..
10223 (grub_iso9660_read): Use read_node.
10224 (grub_iso9660_close): Free node.
10226 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10228 Fix tar 4G limit and handle paths containing dot.
10230 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10231 (canonicalize): New function.
10232 (grub_cpio_find_file): Use canonicalize. Store offs in
10234 (grub_cpio_dir): Use grub_disk_addr_t.
10235 (grub_cpio_open): Likewise.
10237 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10239 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10241 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10243 (grub_squash_inode): Add long_file and block_size.
10244 (grub_squash_cache_inode): New struct.
10245 (grub_squash_dirent): Make types into enum.
10246 (SQUASH_TYPE_LONG_REGULAR): New type.
10247 (grub_squash_frag_desc): Add field size.
10248 (SQUASH_BLOCK_FLAGS): New enum.
10249 (grub_squash_data): Use grub_squash_cache_inode.
10250 (grub_fshelp_node): Make ino_chunk 64-bit.
10251 (read_chunk): Minor argument change. All users updated.
10252 (squash_mount): Use correct le_to_cpu.
10253 (grub_squash_open): Handle LONG_REGULAR.
10254 (direct_read): New function.
10255 (grub_squash_read_data): Handle blocks correctly.
10257 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10259 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10261 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10263 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10265 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10267 Fix 2G limit on ZFS.
10269 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10271 (uberblock_verify): Likewise.
10272 (dmu_read): Likewise.
10273 (grub_zfs_read): Likewise. Remove invalid cast.
10275 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10277 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10278 (grub_jfs_blkno): Fix incorrect shift.
10279 (grub_jfs_read_file): Use more appropriate types.
10281 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10283 Support triple indirect on minix2 and minix3.
10285 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10286 Declare triple_indir_zone.
10287 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10290 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10294 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10295 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10296 Rename ctime to mtime. All users updated.
10297 (grub_minix_get_file_block): Fix types and double indirect computations.
10299 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10301 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10302 if no label is found.
10303 (grub_fat_iterate_dir): Fix file size type.
10304 (grub_fat_iterate_dir): Likewise.
10306 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10308 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10310 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10311 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10313 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10315 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10317 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10319 * util/import_gcry.py: Accept space between # and include.
10321 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10323 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10325 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10327 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10329 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10330 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10332 * grub-core/script/yylex.l: Add fine-grained #pragma.
10334 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10336 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10337 New inline function.
10338 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10340 (memset) [GRUB_UTIL]: Likewise.
10341 (memcmp) [GRUB_UTIL]: Likewise.
10343 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10345 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10346 inline function rather than a define.
10348 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10350 * util/grub-setup.c: Add missing include.
10352 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10354 * util/ieee1275/grub-ofpathname.c: Add missing include.
10356 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10358 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10359 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10362 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10364 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10367 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10369 * util/grub-install.in: Add datarootdir as per automake manual
10371 * util/grub-mknetdir.in: Likewise.
10373 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10375 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10377 * util/grub.d/10_kfreebsd.in: Likewise.
10378 * util/grub.d/10_linux.in: Likewise.
10379 * util/grub.d/10_netbsd.in: Likewise.
10380 * util/grub.d/10_windows.in: Likewise.
10381 * util/grub.d/20_linux_xen.in: Likewise.
10383 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10385 Remove redundant grub_kernel_image_size.
10387 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10389 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10390 the small code. It moves it only by few bytes but simplifies the code.
10391 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10393 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10394 (grub_kernel_image_size): Removed.
10395 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10396 (grub_kernel_image_size): Removed.
10397 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10398 compiled with Apple toolchain.
10399 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10400 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10401 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10402 (grub_total_module_size): Likewise.
10403 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10405 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10406 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10407 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10408 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10409 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10410 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10411 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10412 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10414 (grub_total_module_size): Removed.
10415 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10416 (image_targets): Likewise.
10417 Set .compressed_size to no field on sparc.
10418 (generate_image): Remove kernel_image_size handling.
10420 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10422 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10423 NULL pointer dereference.
10425 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10427 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10428 done with a dedicated section.
10430 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10431 Ensure the correct position of boot_path.
10432 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10433 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10435 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10436 * include/grub/boot.h: Removed. All references removed.
10437 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10439 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10441 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10443 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10446 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10448 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10450 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10452 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10453 Don't add the bogus brackets.
10455 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10459 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10460 * grub-core/Makefile.core.def (exfat): New module.
10461 * grub-core/fs/exfat.c: New file.
10462 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10463 (GRUB_FAT_ATTR_*): Make into an enum.
10464 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10465 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10466 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10467 (GRUB_FAT_MAXFILE): Removed.
10468 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10469 (grub_current_fat_bpb_t): New type.
10470 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10471 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10472 (grub_fat_dir_node_t): New type.
10473 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10474 (fat_log2) [MODE_EXFAT]: Removed.
10475 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10476 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10477 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10478 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10479 (grub_fat_label) [MODE_EXFAT]: New function.
10480 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10481 reserved_first_sector to 0.
10483 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10485 Move grub_reboot out of the kernel.
10487 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10488 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10489 * grub-core/lib/efi/reboot.c: ... here.
10490 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10491 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10492 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10493 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10494 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10495 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10496 * grub-core/lib/ieee1275/reboot.c: ... here.
10497 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10498 * grub-core/lib/mips/arc/reboot.c: ... here.
10499 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10500 * grub-core/lib/mips/loongson/reboot.c: ...here.
10501 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10502 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10503 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10504 * include/grub/i386/reboot.h: New file.
10505 * include/grub/mips/loongson/ec.h: Fix includes.
10506 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10507 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10508 * grub-core/lib/i386/reboot.c: New file.
10510 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10512 Make grub_prefix into module to fix the arbitrary limit and save
10515 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10516 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10517 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10518 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10519 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10520 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10521 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10522 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10523 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10524 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10525 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10526 * include/grub/ia64/efi/kernel.h: Removed.
10527 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10528 (grub_prefix): Removed.
10529 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10530 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10531 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10532 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10533 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10534 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10535 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10536 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10537 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10538 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10539 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10540 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10541 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10542 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10543 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10544 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10545 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10546 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10547 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10548 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10549 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10550 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10551 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10552 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10553 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10554 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10555 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10556 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10557 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10559 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10561 (image_targets): Likewise.
10562 (generate_image): Put prefix as a module.
10564 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10566 Replace grub_module_iterate with FOR_MODULES.
10568 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10569 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10570 (grub_efi_modules_addr): ...this.
10571 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10572 (grub_efi_init): Set grub_modbase.
10573 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10574 (grub_modbase): New variable.
10575 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10576 (grub_modbase): New variable.
10577 (grub_machine_init): Set grub_modbase.
10578 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10579 (grub_modbase): New variable.
10580 (grub_machine_init): Set grub_modbase.
10581 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10582 (grub_modbase): New variable.
10583 (grub_machine_init): Set grub_modbase.
10584 * grub-core/kern/main.c (grub_module_iterate): Remove.
10585 (grub_modules_get_end): Use grub_modbase.
10586 (grub_load_modules): Use FOR_MODULES.
10587 (grub_load_config): Likewise.
10588 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10589 (grub_modbase): New variable.
10590 (grub_machine_init): Set grub_modbase.
10591 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10592 (grub_modbase): New variable.
10593 (grub_machine_init): Set grub_modbase.
10594 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10596 (grub_modbase): New variable.
10597 (grub_machine_init): Set grub_modbase.
10598 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10599 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10600 (grub_module_iterate): Likewise.
10601 (grub_modbase): New variable declaration.
10602 (FOR_MODULES): New macro.
10604 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10606 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10607 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10609 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10611 Fix few obvious type discrepancies.
10613 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10614 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10615 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10617 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10618 and connected types.
10619 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10621 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10622 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10623 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10624 and connected types.
10626 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10628 Fix python 3.x incompatibilities.
10630 * gentpl.py: Put brackets around print strings.
10631 * util/import_gcry.py: Open explicitly as utf-8.
10632 Use in instead of has_key.
10634 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10636 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10637 (GRUB_XFS_INO_AGBITS): Make into inline function.
10638 (GRUB_XFS_INO_INOINAG): Likewise.
10639 (GRUB_XFS_INO_AG): Likewise.
10640 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10641 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10642 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10643 (GRUB_XFS_EXTENT_SIZE): Likewise.
10644 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10645 (GRUB_XFS_NEXT_DIRENT): Likewise.
10646 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10647 (grub_xfs_read_file): Fix offset type.
10649 2011-10-15 Robert Millan <rmh@gnu.org>
10651 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10653 2011-10-15 Robert Millan <rmh@gnu.org>
10655 Fix build problem on FreeBSD and GNU/kFreeBSD.
10657 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10659 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10661 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10663 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10665 (grub_hfsplus_btree_recoffset): Likewise.
10666 (grub_hfsplus_btree_recptr): Likewise.
10667 (grub_hfsplus_find_block): Likewise.
10668 (grub_hfsplus_btree_search): Likewise.
10669 (grub_hfsplus_read_block): Likewise.
10670 (grub_hfsplus_read_file): Likewise.
10671 (grub_hfsplus_mount): Likewise.
10672 (grub_hfsplus_btree_iterate_node): Likewise.
10673 (grub_hfsplus_btree_search): Likewise.
10674 (grub_hfsplus_iterate_dir): Likewise.
10675 (grub_hfsplus_read): A small code simplification.
10677 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10679 * grub-core/kern/emu/hostdisk.c
10680 (convert_system_partition_to_system_disk): Don't assume that children
10681 of mapper nodes are mapper nodes.
10683 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10685 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10686 * include/grub/misc.h (grub_isxdigit): New function.
10687 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10688 switched to grub_isxdigit.
10689 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10690 number starting with a letter.
10692 2011-10-09 Robert Millan <rmh@gnu.org>
10694 LVM support for FreeBSD and GNU/kFreeBSD.
10696 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10698 (LVM_DEV_MAPPER_STRING): Move from here ...
10699 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10700 * util/getroot.c: Include `<grub/util/lvm.h>'.
10701 (grub_util_get_dev_abstraction): Enable
10702 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10703 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10704 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10705 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10707 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10709 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10710 when LVM abstraction is required for ${GRUB_DEVICE}.
10712 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10714 Add support for LZO compression in GRUB:
10715 - import of minilzo library,
10716 - LZO decompression for btrfs,
10717 - lzop files decompression.
10719 * grub-core/io/lzopio.c: New file.
10720 * grub-core/lib/adler32.c: Likewise.
10721 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10722 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10723 * grub-core/lib/minilzo/minilzo.c: Likewise.
10724 * grub-core/lib/minilzo/minilzo.h: Likewise.
10725 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10726 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10727 grub-core/lib/minilzo/minilzo.c to common.
10728 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10729 cflags in cppflags.
10730 * grub-core/Makefile.core.def (btrfs): Likewise.
10731 * grub-core/Makefile.core.def (lzopio): New module.
10732 (adler32): Likewise.
10733 * grub-core/fs/btrfs.c: Include minilzo.h.
10734 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10735 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10736 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10737 (grub_btrfs_lzo_decompress): New function.
10738 (grub_btrfs_extent_read): Add support for LZO compression type.
10739 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10740 (GRUB_USHRT_MAX): Likewise.
10741 (GRUB_UINT_MAX): Likewise.
10742 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10743 (UINT_MAX): Likewise.
10744 (CHAR_BIT): Likewise.
10745 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10746 grub-core/lib/posix_wrap/limits.h
10747 (UCHAR_MAX): Likewise.
10748 * include/grub/file.h (grub_file_filter_id): New compression filter
10749 GRUB_FILE_FILTER_LZOPIO.
10750 * include/grub/file.h (grub_file_filter_id): Set
10751 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10752 * include/grub/types.h (grub_get_unaligned16): New function.
10753 (grub_get_unaligned32): Likewise.
10754 (grub_get_unaligned64): Likewise.
10755 * util/import_gcry.py (cryptolist): Add adler32.
10757 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10759 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10760 in perspective decreases the complexity of build system and fixes
10761 compilation right now.
10763 2011-10-01 Ales Nesrsta <starous@volny.cz>
10765 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10766 (fixed problem related to using UHCI with coreboot).
10768 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10770 * gentpl.py: Use Autogen macros so that the output template file
10771 (Makefile.tpl) size is reduced.
10773 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10775 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10778 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10780 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10781 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10783 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10785 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10788 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10790 Remove extra declaration of sleep for mingw32.
10792 * util/misc.c (sleep) [__MINGW32__]: Removed.
10793 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10795 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10797 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10799 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10801 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10802 (grub_netbsd_btinfo_bootwedge): New struct.
10803 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10805 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10807 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10809 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10812 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10814 Fix incorrect identifiers in bash-completion.
10816 * util/bash-completion.d/grub-completion.bash.in
10817 (_grub_mkpasswd-pbkdf2): Rename to ...
10818 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10819 (_grub_script-check): Rename to ...
10820 (_grub_script_check): ... this. All users updated.
10822 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10824 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10825 Return 0 if disk isn't biosdisk.
10827 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10829 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10831 * Makefile.util.def (grub-fstest): Likewise.
10833 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10835 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10836 Get sector size from disk label.
10838 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10840 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10841 */README* as well as README*.
10842 Reported by: Axel Beckert.
10844 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10846 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10847 case of less than 256 MiB of RAM.
10849 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10851 * grub-core/commands/wildcard.c (make_regex): Handle @.
10853 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10855 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10857 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10859 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10860 AC_LANG_CONFTEST macros.
10862 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10864 Add grub-fstest option to uncompress data for commands.
10866 * util/grub-fstest.c (uncompress): New var.
10867 (options): New option -u.
10869 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10871 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10872 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10874 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10876 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10877 file type was not recognized correctly (not gzip or corrupted).
10879 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10881 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10882 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10884 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10886 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10888 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10889 video_radeon_fuloong2e.
10890 * grub-core/video/radeon_fuloong2e.c: New file.
10891 * include/grub/video.h (grub_video_id_t): Add new ID
10892 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10894 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10896 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10898 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10899 that PRID matches the detected subplatform and reset the subplatform
10902 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10904 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10906 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10908 Fix PCI iterating on functions >= 4.
10910 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10911 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10913 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10914 (grub_pci_read): Fix bitmask.
10915 (grub_pci_read_word): Likewise.
10916 (grub_pci_read_byte): Likewise.
10917 (grub_pci_write): Likewise.
10918 (grub_pci_write_word): Likewise.
10919 (grub_pci_write_byte): Likewise.
10921 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10923 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10924 can still be specified in TARGET_CFLAGS)
10926 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10928 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
10930 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
10931 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
10932 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
10933 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
10934 (FULOONG): Rename to ...
10935 (FULOONG2F): ... this. All users updated.
10936 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
10937 (machtype_fuloong2f_str): ... this.
10938 (machtype_fuloong2e_str): New string.
10939 Check for machtype_fuloong2e_str.
10940 * grub-core/loader/mips/linux.c (loongson_machtypes)
10941 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
10942 * grub-core/term/serial.c (loongson_defserial)
10943 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
10944 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
10945 loongson_defserial.
10946 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
10948 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
10949 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
10950 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
10951 to IMAGE_FULOONG2F_FLASH. All users updated.
10952 (image_targets): Rename images.
10953 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
10955 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10957 Make enable of disk cache statistics code configurable.
10959 * configure.ac: --enable-cache-stats added.
10960 * config.h.in (DISK_CACHE_STATS): New define.
10961 * grub-core/Makefile.core.def (cacheinfo): New command.
10962 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
10963 * grub-core/commands/cacheinfo.c: New file.
10964 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
10965 moved to cacheinfo.c.
10966 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
10968 * include/grub/disk.h: Likewise.
10970 2011-08-19 Szymon Janc <szymon@janc.net.pl>
10972 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
10973 * grub-core/Makefile.am: Likewise.
10975 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10977 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
10980 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10982 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
10984 (grub_jfs_lookup_symlink): Use correct starting inode.
10986 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10988 * util/grub-setup.c (main): Add missing gcry initialisation.
10990 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
10992 Don't accept text modes on EFI when booting Linux.
10994 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
10995 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
10997 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
10998 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11000 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11001 use of "/path/.." as in grub-install for EFI as well as handling
11002 symlinks correctly.
11003 Fixes Debian bug #637768.
11005 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11007 * util/grub-probe.c: Remove duplicate #include.
11009 2011-08-10 Robert Millan <rmh@gnu.org>
11011 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11013 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11015 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11016 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11018 2011-08-03 Robert Millan <rmh@gnu.org>
11020 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11021 la_array as packed.
11022 Reported by: Zachary Bedell
11024 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11026 * configure.ac: The Loongson port requires grub-mkfont due to its
11027 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11030 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11032 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11033 processing arguments (otherwise help2man fails when GRUB has not yet
11036 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11038 New script grub-mkstandalone.
11040 * Makefile.util.def (grub-mkstandalone): New script.
11041 * docs/man/grub-mkstandalone.h2m: New file.
11042 * util/grub-mkstandalone.in: Likewise.
11044 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11046 Support ATA disks with 4K sectors.
11048 * include/grub/ata.h (grub_ata): New member log_sector_size.
11049 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11050 (grub_ata_identify): Read sector size.
11051 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11053 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11055 * util/grub-install.in: Don't use uhci outside of x86.
11057 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11059 * util/grub-mkrescue.in: Add missing quotes.
11061 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11063 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11066 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11068 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11070 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11072 * include/grub/video.h: add missing EXPORT_FUND on
11073 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11075 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11077 * include/grub/mips/kernel.h: Fix define conflict.
11079 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11081 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11084 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
11086 Preferred resolution detection for VBE.
11088 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11089 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11090 the Flat Panel extension, in line with the X.org VESA driver.
11091 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11093 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11094 (grub_vbe_bios_read_edid): Likewise.
11095 (grub_vbe_get_preferred_mode): Likewise.
11096 (grub_video_vbe_setup): When the mode is "auto", try to get the
11097 preferred mode from VBE, and use the largest mode that is no larger
11098 than the preferred mode (some BIOSes expose a preferred mode that is
11099 not in their mode list!). If this fails, fall back to 640x480 as a
11100 safe conservative choice.
11101 (grub_video_vbe_get_edid): New function.
11102 (grub_video_vbe_adapter): Add get_edid.
11103 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11104 (struct grub_video_adapter): Add get_edid.
11105 (grub_video_edid_checksum): Add prototype.
11106 (grub_video_edid_preferred_mode): Likewise.
11107 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11110 * grub-core/commands/videoinfo.c (print_edid): New function.
11111 (grub_cmd_videoinfo): Print EDID if available.
11113 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11114 is more appropriate on a wider range of platforms than 640x480.
11115 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11118 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11120 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11122 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11124 * po/POTFILES.in: Regenerate.
11126 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11128 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11129 incorrect memory usage.
11131 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11133 * util/grub-install.in: Source grub-mkconfig_lib.
11135 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11137 Remove getroot.c from core on emu platform.
11139 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11141 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11143 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11144 * util/getroot.c (get_win32_path): ... here.
11145 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11146 * util/getroot.c (fini_libzfs): ... here.
11147 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11148 * util/getroot.c (grub_get_libzfs_handle): ... here.
11149 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11151 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11152 * grub-core/kern/emu/misc.c
11153 (grub_make_system_path_relative_to_its_root): Moved from here...
11154 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11155 * grub-core/kern/emu/getroot.c: Moved from here ...
11156 * util/getroot.c: ... here. All users updated.
11157 * grub-core/kern/emu/raid.c: Moved from here ...
11158 * util/raid.c: ... here. All users updated.
11160 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11162 * po/POTFILES.in: Regenerate.
11164 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11166 Fix compilation on GNU/Linux.
11168 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11170 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11171 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11172 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11174 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11175 2011-07-07 Michael Gorven <michael@gorven.za.net>
11176 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11178 LUKS and GELI support.
11180 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11181 grub-core/disk/luks.c, grub-core/disk/geli.c,
11182 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11183 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11184 grub-core/lib/arg.c.
11185 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11186 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11187 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11188 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11189 (grub-bin2h): Add libgcry.a.
11190 (grub-mkimage): Likewise.
11191 (grub-mkrelpath): Likewise.
11192 (grub-script-check): Likewise.
11193 (grub-editenv): Likewise.
11194 (grub-mkpasswd-pbkdf2): Likewise.
11195 (grub-pe2elf): Likewise.
11196 (grub-fstest): Likewise.
11197 (grub-mkfont): Likewise.
11198 (grub-mkdevicemap): Likewise.
11199 (grub-probe): Likewise.
11200 (grub-ofpath): Likewise.
11201 (grub-mklayout): Likewise.
11202 (example_unit_test): Likewise.
11203 (grub-menulst2cfg): Likewise.
11204 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11205 * grub-core/Makefile.core.def (cryptodisk): New module.
11208 * grub-core/disk/AFSplitter.c: New file.
11209 * grub-core/disk/cryptodisk.c: Likewise.
11210 * grub-core/disk/geli.c: Likewise.
11211 * grub-core/disk/luks.c: Likewise.
11212 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11214 (grub_util_get_dm_abstraction): New function.
11215 (grub_util_follow_gpart_up): Likewise.
11216 (grub_util_get_geom_abstraction): Likewise.
11217 (grub_util_get_dev_abstraction): Use new functions.
11218 (grub_util_pull_device): Pull GELI and LUKS.
11219 (grub_util_get_grub_dev): Handle LUKS and GELI.
11220 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11221 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11222 (follow_geom_up): Removed.
11223 (grub_util_fd_seek): New function.
11224 (open_device): Use grub_util_fd_seek.
11225 (nread): Rename to ..
11226 (grub_util_fd_read): ... this. All users updated.
11227 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11228 (grub_crypto_cbc_decrypt): Likewise.
11229 (grub_crypto_hmac_write): Likewise.
11230 (grub_crypto_hmac_buffer): Likewise.
11231 (grub_password_get): Extend to util.
11232 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11233 New member modname.
11234 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11235 * include/grub/cryptodisk.h: New file.
11236 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11237 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11239 (grub_util_follow_gpart_up): New proto.
11240 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11241 (grub_util_fd_read): Likewise.
11242 (grub_cryptodisk_cheat_mount): Likewise.
11243 (grub_util_cryptodisk_print_uuid): Likewise.
11244 (grub_util_get_fd_sectors): Likewise.
11245 * util/grub-fstest.c (mount_crypt): New var.
11246 (fstest): Mount crypto if requested.
11247 (options): New option -C.
11248 (argp_parser): Parse -C.
11249 (main): Init and fini gcry.
11250 * util/grub-install.in: Support cryptodisk install.
11251 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11252 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11254 (prepare_grub_to_access_device): Likewise.
11255 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11256 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11257 (probe_cryptodisk_uuid): New function.
11258 (probe_abstraction): Likewise.
11259 (probe): Use new functions.
11260 * util/import_gcry.py: Create Makefile.utilgcry.def.
11261 Add modname member.
11263 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11265 Lazy device scanning.
11267 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11268 (grub-setup): Remove util/raid.c.
11269 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11270 * grub-core/disk/lvm.c (scan_depth): New variable.
11271 (grub_lvm_iterate): Rescan if necessary.
11272 (find_lv): New function based on grub_lvm_open.
11273 (grub_lvm_open): Use find_lv. Rescan on error.
11274 (is_node_readable): New function.
11275 (is_lv_readable): Likewise.
11276 (grub_lvm_scan_device): Skip already found disks.
11277 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11278 Stop if searched device is found and readable.
11279 * grub-core/disk/raid.c (inscnt): New variable.
11280 (scan_depth): Likewise.
11281 (scan_devices): New function based on grub_raid_register. Abort if
11282 looked for device is found.
11283 (grub_raid_iterate): Rescan if needed.
11284 (find_array): NEw function based on -grub_raid_open.
11285 (grub_raid_open): Use find_array and rescan.
11286 (insert_array): Set became_readable_at.
11287 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11288 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11290 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11291 (grub_util_pull_device): New function.
11292 (grub_util_get_grub_dev): Call grub_util_pull_device.
11293 * util/raid.c: Moved to ..
11294 * grub-core/kern/emu/raid.c: ... here.
11295 (grub_util_raid_getmembers): New parameter "bootable".
11296 All users updated. Support 1.x.
11297 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11299 * include/grub/disk.h (grub_disk_pull_t): New enum.
11300 (grub_disk_dev): Change iterate prototype.
11302 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11304 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11305 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11306 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11307 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11309 * include/grub/util/raid.h: Removed.
11311 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11313 * po/POTFILES.in: Regenerate.
11315 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11317 Unify sparc init with other ieee1275.
11319 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11320 instead of kern/sparc64/ieee1275/init.c.
11321 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11322 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11323 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11324 grub/machine/kernel.h.
11325 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11326 (grub_claim_heap) [__sparc__]: Use sparc version.
11327 (grub_machine_init): Moved args parsing to
11328 (grub_parse_cmdline): ...this.
11329 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11330 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11332 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11334 Move BOOTP to separate file.
11336 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11337 * grub-core/net/net.c: Move all BOOTP functions to
11338 * grub-core/net/bootp.c: ... here.
11340 Use frame interface on PXE.
11342 * grub-core/Makefile.core.def (pxecmd): Removed.
11343 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11344 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11345 * grub-core/i386/pc/pxe.c: Moved from here ...
11346 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11347 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11348 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11350 EFI network support.
11352 * grub-core/Makefile.core.def (efinet): New module.
11353 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11355 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11357 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11358 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11359 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11360 * grub-core/net/drivers/efi/efinet.c: New file.
11361 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11362 (grub_efi_net_config): New extern var.
11364 Various cleanups and bugfixes.
11366 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11368 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11369 disk declared as partition.
11370 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11372 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11373 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11374 (grub_debug_zalloc): Likewise.
11375 (grub_debug_realloc): Likewise.
11376 (grub_debug_memalign): Likewise.
11377 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11378 Check that target is IPv4.
11379 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11380 local-mac-address as fallback.
11381 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11383 * grub-core/net/ip.c (ipchksum): Rename to ...
11384 (grub_net_ip_chksum): ... this. All users updated.
11385 (grub_net_recv_ip_packets): Special handling for DHCP.
11386 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11388 Unify prefix handling
11390 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11391 (grub_machine_get_bootlocation): ... this.
11392 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11393 (grub_machine_get_bootlocation): ... this.
11394 (grub_prefix): New variable.
11396 (root_dev): New variable.
11398 (main): Use new variables.
11399 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11401 (grub_machine_get_bootlocation): ... this.
11402 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11403 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11404 (grub_machine_get_bootlocation): ... this.
11405 (grub_machine_set_prefix): Removed.
11406 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11407 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11409 (grub_machine_get_bootlocation): ... this.
11410 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11411 (grub_set_prefix_and_root): ... this. All users updated.
11412 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11414 (grub_machine_get_bootlocation): ... this.
11415 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11416 (grub_machine_get_bootlocation): New proto.
11417 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11419 Less intrusive and more reliable seek on network implementation.
11421 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11422 (grub_file_seek): Don't call grub_file_net_seek.
11423 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11424 (grub_net_fs_read_real): .. this.
11425 (grub_net_seek_real): Use net->offset.
11426 (grub_net_fs_read): Seek if necessary.
11428 Unify IEEE1275 netwotk config with the other platforms.
11430 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11432 (grub_machine_get_bootlocation): Support network.
11433 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11434 Support type and device parsing.
11435 (grub_ieee1275_get_device_type): New function.
11436 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11438 (grub_ieee1275_net_config_real): ... this.
11439 (grub_ofnet_probecards): Removed.
11440 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11441 * include/grub/ieee1275/ofnet.h: Removed.
11442 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11444 (grub_ieee1275_get_device_type): New function.
11446 Unify network device closing across platforms and make more robust.
11448 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11450 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11452 * grub-core/net/net.c (grub_net_network_level_interface_register):
11454 (grub_net_card_unregister): Close all interfaces.
11455 (receive_packets): Don't poll if no iterfaces are registered.
11457 (grub_net_fini_hw): New function.
11458 (grub_net_restore_hw): Likewise.
11459 (fini_hnd): New variable.
11460 (GRUB_MOD_INIT): Register preboot hook.
11461 (GRUB_MOD_FINI): Run and unregister preboot hook.
11463 Poll network cards when idle.
11465 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11466 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11467 * grub-core/net/net.c (receive_packets): Save last poll time.
11468 (grub_net_poll_cards_idle_real): New function.
11469 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11470 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11471 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11473 Rename ofnet interfaces.
11475 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11476 (grub_ofnet_findcards): Use ofnet_%s names.
11478 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11480 Cleanup socket opening.
11482 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11483 (grub_net_fs_close): Likewise.
11484 (grub_net_fs_read_real): Use eof member.
11485 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11486 (+grub_net_udp_close): New inline function.
11488 * include/grub/net/tftp.h: Moved to the top of ...
11489 * grub-core/net/tftp.c: ... here.
11490 * include/grub/net/ip.h: Moved mostly to the top of ...
11491 * grub-core/net/ip.c: ... here.
11492 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11493 * grub-core/net/ethernet.c: ... here.
11495 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11497 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11500 * include/grub/net/ip.h (ipv4_ini): Removed.
11501 (ipv4_fini): Likewise.
11503 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11504 (grub_net_send_ip_packets): Likewise.
11506 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11508 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11509 grub_read_cmos prototype.
11511 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11513 VGA text support in qemu-mips
11515 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11516 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11517 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11519 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11520 * grub-core/kern/vga_init.c: ... this.
11521 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11522 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11523 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11525 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11526 GRUB_MACHINE_PCI_IO_BASE.
11528 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11530 MIPS qemu flash support.
11532 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11534 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11535 (grub_machine_init): Probe memory if its size isn't known.
11536 * util/grub-mkimage.c (image_targets): Add flash targets.
11537 (generate_image): Handle flash targets.
11539 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11541 MIPS qemu at_keyboard support.
11543 * gentpl.py (videoinkernel): Add qemu-mips.
11544 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11545 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11546 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11548 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11549 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11550 * grub-core/term/serial.c (grub_serial_register)
11551 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11553 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11555 CMOS support on sparc.
11557 * gentpl.py (cmos): Add powerpc and sparc.
11558 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11560 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11561 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11562 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11563 grub_set_datetime_cmos.
11564 * grub-core/lib/ieee1275/cmos.c: New file.
11565 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11566 (find_rtc): Set no_ieee1275_rtc on error.
11567 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11568 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11569 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11570 fail. Move value to argument. All users updated
11571 (grub_cmos_write): Likewise.
11572 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11573 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11574 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11575 grub_get_datetime_cmos and grub_set_datetime_cmos.
11577 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11579 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11580 sourcing grub-mkconfig_lib.
11581 * util/update-grub_lib.in: Likewise.
11582 * util/grub.d/00_header.in: Likewise.
11583 * util/grub.d/10_hurd.in: Likewise.
11584 * util/grub.d/10_kfreebsd.in: Likewise.
11585 * util/grub.d/10_linux.in: Likewise.
11586 * util/grub.d/10_netbsd.in: Likewise.
11587 * util/grub.d/10_windows.in: Likewise.
11588 * util/grub.d/20_linux_xen.in: Likewise.
11589 * util/grub.d/30_os-prober.in: Likewise.
11591 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11593 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11594 default_bg_color rather than black.
11595 (grub_gfxterm_fullscreen): Likewise.
11596 (grub_gfxterm_background_color_cmd): Save new background color in
11599 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11601 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11603 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11605 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11608 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11610 Chainloading on coreboot support.
11612 * grub-core/Makefile.core.def (chain): Add coreboot.
11613 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11615 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11617 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11620 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11622 Implement time command.
11624 * grub-core/Makefile.core.def (time): New module.
11625 * grub-core/commands/time.c: New file.
11626 * grub-core/script/parser.y: Remove "time" keyword.
11627 * grub-core/script/yylex.l: Likewise.
11629 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11631 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11633 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11635 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11636 when handling leftovers.
11638 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11640 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11641 so that help2man doesn't fail.
11643 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11645 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11646 type in pointers on sparc64.
11647 (get_card_packet): Likewise.
11649 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11651 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11653 (grub_cmd_videoinfo): Fetch current video mode.
11655 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11657 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11658 because of underlying system restrictions.
11660 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11662 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11665 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11667 Coreboot video support.
11669 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11671 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11672 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11674 * grub-core/kern/i386/int.S: ... here.
11675 * grub-core/video/i386/pc/vbe.c: Updated includes.
11676 * grub-core/video/i386/pc/vga.c: Likewise.
11677 * include/grub/i386/coreboot/memory.h
11678 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11679 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11680 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11681 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11682 Disable interrupts.
11683 * include/grub/i386/pc/vga.h: Removed. All users updated.
11685 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11687 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11688 definitions for dprintf.
11689 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11691 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11693 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11695 (get_card_packet): Likewise.
11697 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11699 Display the path of the file when file is not found
11701 * grub-core/fs/fat.c: Display the filename when file is not found.
11702 * grub-core/fs/fshelp.c: Likewise.
11703 * grub-core/fs/hfs.c: Likewise.
11704 * grub-core/fs/jfs.c: Likewise.
11705 * grub-core/fs/minix.c: Likewise.
11706 * grub-core/fs/ufs.c: Likewise.
11707 * grub-core/fs/btrfs.c: Likewise.
11708 * grub-core/commands/i386/pc/play.c: Likewise.
11710 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11712 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11713 pointer checks before calling grub_free().
11714 * grub-core/commands/wildcard.c (match_devices): Likewise.
11715 * grub-core/commands/wildcard.c (match_files): Likewise.
11716 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11717 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11718 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11719 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11720 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11721 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11722 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11723 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11724 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11726 2011-06-25 Patrick <p55@mailinator.com>
11728 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11730 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11732 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11733 (grub_pxe_send): Likewise.
11734 (GRUB_MOD_INIT): Fix types.
11736 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11738 * grub-core/io/xzio.c: Fix code style issues
11740 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11741 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11743 Network infrastructure.
11744 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11746 * include/grub/net/arp.h: New file.
11747 * include/grub/net/device.h: Likewise.
11748 * include/grub/net/ethernet.h: Likewise.
11749 * include/grub/net/ip.h: Likewise.
11750 * include/grub/net/netbuff.h: Likewise.
11751 * include/grub/net/tftp.h: Likewise.
11752 * include/grub/net/udp.h: Likewise.
11753 * include/grub/ieee1275/ofnet.h: Likewise.
11754 * include/grub/emu/export.h: Likewise.
11755 * include/grub/net.h: Likewise.
11756 * grub-core/net/arp.c: Likewise.
11757 * grub-core/net/ethernet.c: Likewise.
11758 * grub-core/net/ip.c: Likewise.
11759 * grub-core/net/udp.c: Likewise.
11760 * grub-core/net/tftp.c: Likewise.
11761 * grub-core/net/netbuff.c: Likewise.
11762 * grub-core/net/net.c: Likewise.
11763 * grub-core/net/drivers/emu/emunet.c: Likewise.
11764 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11765 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11767 * grub-core/Makefile.core.def (net): New module.
11770 (emunet): Likewise.
11771 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11773 * grub-core/kern/device.c (grub_net_open) : New variable.
11774 (grub_device_open): Handle network device.
11775 (grub_device_close): Likewise.
11776 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11777 (grub_grubnet_fini): Likewise.
11778 (grub_file_seek): Seek in network device.
11779 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11780 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11782 (grub_machine_fini): Call grub_grubnet_fini.
11783 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11785 (grub_ieee1275_get_aliasdevname): New function.
11786 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11787 Add unofficial Solaris network info.
11788 (grub_multiboot_make_mbi): Likewise.
11789 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11790 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11791 * include/grub/device.h (grub_fs): Removed.
11792 * include/grub/err.h (grub_err_t): Add network-related values.
11793 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11794 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11795 (grub_ieee1275_get_aliasdevname): New proto.
11796 * include/grub/net.h: Rewritten.
11798 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11800 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11803 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11805 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11806 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11807 it truncates the output.
11808 Reported by: Ximin Luo.
11810 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11812 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11814 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11816 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11817 partmap before abstraction.
11819 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11821 * util/grub-mkconfig_lib.in: Add missing quotes.
11823 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11825 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11826 old method if mountinfo would return /dev/root and /dev/root doesn't
11829 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11833 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11834 (decomp_table): Add zlib entries.
11835 (zio_read): USe 8 bits for compression function rather than 3.
11836 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11838 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11840 * grub-core/disk/ahci.c: Add missing license statements.
11841 * grub-core/fs/romfs.c: Likewise.
11842 * grub-core/lib/ia64/setjmp.S: Likewise.
11843 * grub-core/loader/i386/pc/freedos.c: Likewise.
11844 * grub-core/loader/ia64/efi/linux.c: Likewise.
11845 * grub-core/video/colors.c: Likewise.
11846 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11848 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11852 * grub-core/Makefile.core.def (ata_pthru): Removed.
11853 (ahci): New module.
11855 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11857 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11859 (grub_hdparm_do_check_powermode_cmd): Likewise.
11860 (grub_hdparm_do_smart_cmd): Likewise.
11861 (grub_hdparm_set_val_cmd): Likewise.
11862 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11863 * grub-core/disk/ahci.c: New file.
11864 * grub-core/disk/ata.c: Factor out the low-level part into ...
11865 * grub-core/disk/pata.c: ... here.
11866 * grub-core/disk/ata_pthru.c: Contents moved to ...
11867 * grub-core/disk/pata.c: ... here.
11868 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11869 (grub_scsi_iterate): Use grub_scsi_names.
11870 (grub_scsi_open): Likewise.
11871 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11872 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11873 (grub_ata_regs_t): New struct.
11874 (grub_disk_ata_pass_through_parms): Likewise.
11875 (grub_ata_device): Renamed to ...
11876 (grub_ata): ... this.
11877 (grub_ata_dev): New struct.
11878 Removed all low-level inline functions.
11879 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11880 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11881 iterate hooks and open. All users updated.
11882 * util/grub-install.in: Handle AHCI disk module.
11884 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11886 Add support for DRI and RSTn markers in JPEG files.
11888 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11889 (JPEG_MARKER_RST0): Likewise.
11890 (JPEG_MARKER_RST1): Likewise.
11891 (JPEG_MARKER_RST2): Likewise.
11892 (JPEG_MARKER_RST3): Likewise.
11893 (JPEG_MARKER_RST4): Likewise.
11894 (JPEG_MARKER_RST5): Likewise.
11895 (JPEG_MARKER_RST6): Likewise.
11896 (JPEG_MARKER_RST7): Likewise.
11897 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11898 (grub_jpeg_decode_dri): New function.
11899 (grub_jpeg_decode_sos): Move image data related part into
11900 grub_jpeg_decode_data function.
11901 (grub_jpeg_decode_data): New function.
11902 (grub_jpeg_reset): New function.
11903 (grub_jpeg_decode_jpeg): Handle new markers.
11905 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11907 * util/ieee1275/ofpath.c (check_sas): Close fd.
11908 (main): Free of_path.
11909 Reported by: David Volgyes <dvolgyes>.
11911 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11913 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11914 Reported by: David Volgyes <dvolgyes>.
11916 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11918 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11920 Reported by: David Volgyes <dvolgyes>.
11922 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11924 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11926 Reported by: David Volgyes <dvolgyes>.
11928 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11930 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
11931 Prevent memory leak.
11933 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11935 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
11936 (main): Close file.
11937 Reported by: David Volgyes <dvolgyes>.
11939 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11941 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
11942 to continue if allocation is failed.
11944 Reported by: David Volgyes <dvolgyes>.
11946 2011-06-23 David Volgyes <dvolgyes>
11948 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
11951 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11953 Fix spurious warning.
11955 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
11956 (acorn_partition_map_find): Use .bin member.
11958 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11960 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
11961 /dev/root as a valid device.
11963 2011-06-23 Jim Meyering <meyering@redhat.com>
11965 Avoid NULL deref in grub_device_open.
11967 * grub-core/kern/device.c (grub_device_open): Don't dereference
11968 a NULL pointer upon failed grub_env_get.
11970 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11972 Support non-512B sectors and agglomerate reads.
11974 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
11975 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
11976 (disk_io_guid): Removed.
11977 (make_devices): Locate solely by BlockIO.
11978 (grub_efidisk_open): Fill log_sector_size and total_sectors.
11979 (grub_efidisk_read): Use read_blocks.
11980 (grub_efidisk_write): Use write_blocks.
11981 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
11983 (get_safe_sectors): Handle non-512B sectors.
11984 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
11986 (grub_biosdisk_write): Handle non-512B sectors.
11987 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
11988 (grub_scsi_read): Remove special non-512B block handling (now handled
11990 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
11991 and do sanity checks.
11992 (grub_disk_adjust_range): Handle non-512B sectors.
11993 (transform_sector): New function.
11994 (grub_disk_read_small): Likewise.
11995 (grub_disk_read): Rewritten.
11996 (grub_disk_write): Handle non-512B sectors.
11997 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
11999 (open_device): Use log_sector_size.
12000 (grub_util_biosdisk_read): Likewise.
12001 (grub_util_biosdisk_write): Likewise.
12002 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12004 (pc_partition_map_embed): Likewise.
12005 * include/grub/disk.h (grub_disk): New field log_sector_size.
12006 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12007 (GRUB_DISK_CACHE_BITS): Increased to 6.
12008 * util/grub-fstest.c (fstest): New command testload.
12009 (argp_parser): Likewise.
12011 2011-06-16 Robert Millan <rmh@gnu.org>
12013 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12014 `ata' driver on kernel of FreeBSD 9.
12016 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12017 (get_ataraid_disk_name): New functions.
12018 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12019 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12020 get_ataraid_disk_name() and get_ada_disk_name().
12022 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
12024 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12027 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
12029 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12030 `ftp.gnu.org' for `alpha.gnu.org'.
12032 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12034 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12035 partitions under /dev/disk/by-id/.
12037 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12039 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12040 after ten consecutive open failures. Scanning all the way up to
12041 10000 is excessive and can cause serious performance problems in
12042 some configurations.
12043 Fixes Ubuntu bug #787461.
12045 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12047 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12050 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
12051 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12053 Don't stat devices unless we have to.
12055 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12056 dir == /dev/mapper.
12057 (grub_guess_root_device): Use already known os_dev if possible.
12058 * grub-core/kern/emu/hostdisk.c
12059 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12060 if device is known to be a dm one.
12062 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
12064 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12065 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12066 Reported by: Pawel Tecza.
12068 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12070 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12071 (lsefisystab): Likewise.
12073 (lsefimmap): Likewise.
12074 (hdparm): Enable on qemu-mips.
12075 (setjmp): Add ia64 nodist.
12076 (serial): Simplify tags.
12078 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12080 * Makefile.util.def (grub-ofpathname): Install manual page.
12082 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12084 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12086 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12088 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12090 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12092 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12095 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12097 Use full 64-bit division.
12099 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12100 (grub_divmod64): ... this.
12101 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12104 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12106 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12109 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12111 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12112 to avoid accidents when debugging with 'sh -x'.
12113 * grub-core/gensyminfo.sh.in: Likewise.
12114 * tests/example_scripted_test.in: Likewise.
12115 * tests/grub_cmd_regexp.in: Likewise.
12116 * tests/grub_script_blanklines.in: Likewise.
12117 * tests/grub_script_dollar.in: Likewise.
12118 * tests/grub_script_expansion.in: Likewise.
12119 * tests/grub_script_final_semicolon.in: Likewise.
12120 * tests/partmap_test.in: Likewise.
12121 * tests/util/grub-shell-tester.in: Likewise.
12122 * tests/util/grub-shell.in: Likewise.
12124 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12126 Move gfxmenu color handling to video, so that gfxterm can use it
12129 * grub-core/gfxmenu/named_colors.c: Move to ...
12130 * grub-core/video/colors.c: ... here. Rename
12131 grub_gui_get_named_color to grub_video_get_named_color.
12132 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12133 * grub-core/video/colors.c (my_isxdigit): ... here.
12134 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12136 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12137 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12139 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12141 * include/grub/gui.h (grub_gui_color_t): Move to ...
12142 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12143 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12144 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12145 * include/grub/gui.h (grub_gui_map_color): Move to ...
12146 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12147 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12149 * include/grub/video.h (grub_video_get_named_color): ... here.
12150 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12151 * include/grub/video.h (grub_video_parse_color): ... here.
12153 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12155 (gfxmenu): Remove gfxmenu/named_colors.c.
12156 (video) [videomodules]: Add video/colors.c.
12158 Add a background_color command.
12160 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12162 (GRUB_MOD_INIT): Register background_color command.
12163 (GRUB_MOD_FINI): Unregister background_color command.
12164 (redraw_screen_rect): Allow blend/replace of text layer to be
12165 controlled independently from whether there is a background bitmap.
12166 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12169 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12171 Patch BPB in ntldr and chainloader --bpb.
12173 * grub-core/fs/fat.c: Include grub/fat.h.
12174 (grub_fat_bpb): Moved to ...
12175 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12176 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12178 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12180 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12182 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12184 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12185 (GRUB_MOD_INIT): Show --bpb.
12186 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12187 * grub-core/normal/main.c (features): New variable.
12188 (GRUB_MOD_INIT): Set feature_* variables.
12189 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12191 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12193 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12195 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12198 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12200 FreeDOS direct loading support.
12202 * docs/grub.texi (Supported OS): Add FreeDOS.
12203 * grub-core/Makefile.core.def (freedos): New module.
12204 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12206 (grub_relocator16_boot): Handle %ebx.
12207 * grub-core/lib/i386/relocator16.S: Likewise.
12208 * grub-core/loader/i386/pc/freedos.c: New file.
12210 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12212 Long Linux command line support.
12214 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12215 (maximal_cmdline_size): New variable.
12216 (allocate_pages): Use maximal_cmdline_size.
12217 (grub_cmd_linux): Set and use maximal_cmdline_size.
12218 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12219 (allocate_pages): Use maximal_cmdline_size.
12220 (grub_cmd_linux): Set and use maximal_cmdline_size.
12221 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12222 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12225 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12226 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12228 Improve devmapper support
12230 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12231 (grub_util_is_lvm): New function.
12232 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12233 than lvm if not dmraid.
12234 Handle mapped md nodes.
12235 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12236 (grub_util_device_is_mapped): ... this. Make always available. All users
12238 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12239 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12241 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12243 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12245 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12247 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12248 * grub-core/modinfo.sh.in: New file.
12249 * grub-core/Makefile.core.def (modinfo.sh): New script.
12250 * util/grub-mknetdir.in: Use modinfo.sh.
12251 * util/grub-mkrescue.in: Likewise.
12253 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12255 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12256 Fix potential usage of Elf32 instead of Elf64 when compiling on
12257 32-bit architecture. Add endianness macros while on it.
12259 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12261 Use mipsel- rather than mips- in directories involving mipsel ports to
12262 allow both endiannesses coexist.
12264 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12265 mips. All conditions adjusted.
12266 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12268 * util/grub-install.in: Adjust conditions to take renaming into account.
12269 * util/grub-mkimage.c (image_targets): Likewise. New target
12270 mips-qemu_mips-elf for bigendian mips.
12272 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12274 Avoid unnecessary copying on MIPS.
12276 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12277 early if src == dest.
12278 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12279 compression is none.
12281 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12283 Reduce memory footprint on SGI by putting modules before the kernel
12284 as opposed to after.
12286 * grub-core/Makefile.core.def (kernel): Increase linking address.
12287 (none_decompress): Likewise.
12288 (xz_decompress): Likewise.
12289 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12291 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12293 (grub_arch_modules_addr): New function.
12294 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12295 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12296 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12298 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12299 (grub_total_modules_size): ... this. Make global.
12300 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12301 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12303 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12304 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12305 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12306 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12307 * util/grub-mkimage.c (image_target_desc): New flag
12308 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12309 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12310 (generate_image): Handle images with modules before kernel.
12312 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12314 Prevent potential loss of memory map by overwrite on qemu-mips.
12316 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12317 Save ram size in $s4.
12318 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12319 All users changed to grub_arch_memsize.
12320 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12322 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12323 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12324 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12327 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12329 * .bzrignore: Remove grub-dumpbios.
12331 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12333 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12334 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12335 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12336 existing options which append).
12337 * docs/grub.texi (Simple configuration): Document new options.
12338 Reported by: Ian Jackson. Fixes Debian bug #617538.
12340 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12342 * util/grub-fstest.c (cmd_cat): New function.
12343 (fstest): Handle CMD_CAT.
12344 (options): Add cat.
12345 (argp_parser): Handle cat.
12347 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12349 * Makefile.util.def (grub-bin2h): Don't install.
12350 * docs/man/grub-bin2h.h2m: Remove.
12352 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12354 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12357 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12359 Reenable qemu-mips port.
12361 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12362 Fix small arc bug while on it.
12363 * gentpl.py: Handle qemu_mips.
12364 * grub-core/Makefile.am: Likewise.
12365 * grub-core/Makefile.core.def: Likewise.
12366 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12367 inappropriate includes.
12368 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12369 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12370 * grub-core/kern/main.c (grub_modules_get_end)
12371 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12372 * grub-core/kern/mips/qemu-mips: Moved to ..
12373 * grub-core/kern/mips/qemu_mips: ... this.
12374 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12375 (grub_machine_init): Call terminfo_init and serial_init.
12376 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12377 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12379 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12381 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12382 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12383 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12384 * include/grub/mips/qemu_mips/cmos.h: New file.
12385 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12386 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12388 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12389 Use correct mips-style address.
12390 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12391 (GRUB_TICKS_PER_SECOND): Removed.
12392 (grub_get_rtc): Likewise.
12393 (grub_cpu_idle): Likewise.
12394 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12396 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12397 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12398 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12399 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12400 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12401 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12402 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12403 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12405 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12409 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12410 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12412 * configure.ac: New target mips-arc.
12413 * gentpl.py: Likewise.
12414 * grub-core/Makefile.am: Likewise.
12415 * grub-core/Makefile.core.def: Likewise.
12416 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12417 (none_decompress): Likewise.
12418 (lsdev): New module.
12419 (datetime): Use lib/arc/datetime.c on ARC.
12420 (part_dvh): New module.
12421 * grub-core/commands/arc/lsdev.c: New file.
12422 * grub-core/disk/arc/arcdisk.c: Likewise.
12423 * grub-core/kern/mips/arc/init.c: Likewise.
12424 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12426 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12428 (grub_arch_dl_relocate_symbols): Likewise.
12429 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12430 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12431 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12433 * grub-core/lib/arc/datetime.c: New file.
12434 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12435 pci.h on non-loongson.
12436 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12437 (grub_linux_boot): Set unused registers to 0.
12438 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12439 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12440 * grub-core/mmap/mips/uppermem.c: ...here.
12441 * grub-core/partmap/dvh.c: New file.
12442 * grub-core/term/arc/console.c: Likewise.
12443 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12444 (grub_terminfo_set_current): Add terminal "arc".
12445 (grub_terminfo_readkey): Support ARC sequences.
12446 * include/grub/arc/arc.h: New file.
12447 * include/grub/arc/console.h: Likewise.
12448 * include/grub/disk.h (grub_disk_dev_id): Add
12449 GRUB_DISK_DEVICE_ARCDISK_ID.
12450 * include/grub/mips/arc/kernel.h: New file.
12451 * include/grub/mips/arc/memory.h: Likewise.
12452 * include/grub/mips/arc/time.h: Likewise.
12453 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12454 * include/grub/mips/kernel.h (grub_halt): ... here.
12455 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12457 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12458 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12459 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12460 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12462 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12464 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12465 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12466 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12467 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12468 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12469 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12470 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12471 (grub_phys_addr_t): Moved from here ...
12472 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12473 (grub_vtop): Moved from here ...
12474 * include/grub/mips/memory.h (grub_vtop): ... here.
12475 (grub_map_memory): Moved from here ...
12476 * include/grub/mips/memory.h (grub_map_memory): ... here.
12477 (grub_unmap_memory): Moved from here ...
12478 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12479 (grub_machine_mmap_iterate): Moved from here ...
12480 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12481 (grub_mmap_get_lower): Moved from here ...
12482 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12483 (grub_mmap_get_upper): Moved from here ...
12484 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12485 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12487 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12488 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12490 * include/grub/mips/time.h (grub_get_rtc): ... here.
12491 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12493 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12494 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12496 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12497 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12499 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12500 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12501 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12502 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12503 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12504 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12505 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12506 (GRUB_MACHINE_LINK_ADDR): Likewise.
12507 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12509 * util/grub-install.in: Run dvhtool on ARC.
12510 * util/grub-mkimage.c (image_targets): Add mips-arc.
12511 (generate_image): Handle ECOFF output for mips-arc.
12513 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12515 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12518 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12520 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12521 after enabling port.
12523 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12525 Skip incorrect USB devices.
12527 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12529 * include/grub/usb.h (grub_usb_err_t): New enum value
12530 GRUB_USB_ERR_BADDEVICE.
12532 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12534 Fuloong video init support.
12536 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12538 (grub_vga_read_arx): New function.
12539 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12541 (framebuffer): New members io, mmioptr and mmiobase.
12542 (read_sis_cmd): New function.
12543 (write_sis_cmd): Likewise.
12544 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12545 rather than 640x400.
12546 * grub-core/video/sis315_init.c: New file.
12548 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12550 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12552 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12553 to grub_dl_register_symbol.
12555 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12557 Fix compilation errors.
12559 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12560 potentially unused.
12561 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12562 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12563 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12564 to loongson machines.
12566 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12568 Several FS mtime support.
12570 * grub-core/fs/affs.c (grub_affs_time): New struct.
12571 (grub_affs_file): New field mtime.
12572 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12573 type. Removed 'size'. New field 'di'. All users updated.
12574 (grub_affs_mount): Simplify checsum checking.
12575 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12576 (grub_affs_dir): Handle mtime.
12577 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12578 (grub_cpio_dir): Likewise.
12579 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12580 (grub_hfs_filerec): New field mtime.
12581 (grub_hfs_dir): Handle mtime.
12582 (grub_hfs_mtime): New function.
12583 (grub_hfs_fs): Register grub_hfs_mtime.
12584 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12585 (grub_iso9660_dir): New field mtime.
12586 (grub_fshelp_node): New field dirent.
12587 (iso9660_to_unixtime): New function.
12588 (iso9660_to_unixtime2): Likewise.
12589 (grub_iso9660_read_symlink): Use node->dirent.
12590 (grub_iso9660_iterate_dir): Likewise.
12591 (grub_iso9660_dir): Set mtime.
12592 (grub_iso9660_mtime): New function.
12593 (grub_iso9660_fs): Register grub_iso9660_mtime.
12594 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12595 (grub_jfs_inode): New fields atime, ctime and mtime.
12596 (grub_jfs_dir): Set mtime.
12597 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12598 * grub-core/fs/ntfs.c (list_file): Set mtime.
12599 (grub_ntfs_dir): Likewise.
12600 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12601 (grub_reiserfs_iterate_dir): Set mtime.
12602 (grub_reiserfs_dir): Likewise.
12603 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12604 (grub_fshelp_node): Likewise.
12605 (grub_sfs_iterate_dir): Set mtime.
12606 (grub_sfs_dir): Likewise.
12607 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12608 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12609 (grub_xfs_inode): New fields atime, mtime, ctime.
12610 (grub_xfs_dir): Set mtime.
12611 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12612 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12613 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12615 Support UDF symlinks.
12617 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12618 (grub_ufs_read_symlink): New function. All users updated.
12620 Check amiga partmap checksum.
12622 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12623 (grub_amiga_partition): Likewise.
12624 (amiga_partition_map_checksum): New function.
12625 (amiga_partition_map_iterate): Check checksum.
12627 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12631 * Makefile.util.def (libgrubmods.a): Add romfs.
12632 * grub-core/Makefile.core.def (romfs): New module.
12633 * grub-core/fs/romfs.c: New file.
12635 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12637 Squashfs v4 support.
12639 * Makefile.util.def (libgrubmods.a): Add squash4.
12640 * grub-core/Makefile.core.def (squash4): New module.
12641 * grub-core/fs/squash4.c: New file.
12642 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12643 disk_input_start, disk_input.
12644 (get_byte): Handle disk_input.
12645 (grub_zlib_disk_read): New function.
12646 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12648 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12649 2011-05-15 Feiran Zheng <famcool@gmail.com>
12651 * Makefile.util.def (libgrubmods.a): Add minix3.
12652 * grub-core/Makefile.core.def (minix3): New module.
12653 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12654 (GRUB_MINIX_BSIZE): Removed.
12655 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12656 (grub_minix_ino_t): New type.
12657 (grub_minix_le_to_cpu_ino): New macro.
12658 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12659 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12660 (grub_minix_data): New field block_size.
12661 (grub_minix_read_file): Handle 64-bit correctly.
12662 * grub-core/fs/minix3.c: New file.
12664 2011-05-15 Tristan Gingold <gingold@free.fr>
12665 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12666 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12670 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12671 * configure.ac: Add ia64-efi target.
12672 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12673 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12674 * gentpl.py: Add ia64_efi platform.
12675 Rename x86_efi to efi and Add ia64-efi. All users updated.
12676 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12677 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12678 Remove kern/generic/rtc_get_time_ms.c on EFI.
12679 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12680 kern/ia64/dl_helper.c on ia64-efi.
12681 Add kern/emu/cache.c on emu.
12682 (linux): Use on loader/ia64/efi/linux.c on ia64.
12683 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12684 whether symbol is a function.
12685 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12686 (grub_symbol): New field 'isfunc'.
12687 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12688 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12689 (grub_dl_load_segments): Place all sections into the same region.
12690 [__ia64__]: Create trampolines and got.
12691 [GRUB_MACHINE_EMU]: Call mprotect.
12692 (grub_dl_resolve_symbols): Resolve symbol type as well.
12693 [__ia64__]: Create function descriptors.
12694 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12695 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12696 (grub_get_rtc): New function.
12697 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12698 * grub-core/kern/emu/cache.S: Renamed to ...
12699 * grub-core/kern/emu/cache_s.S: ... this.
12700 [__ia64__]: Add a nop.
12701 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12702 [__ia64__]: New function.
12703 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12704 * grub-core/kern/ia64/dl.c: New file.
12705 * grub-core/kern/ia64/dl_helper.c: Likewise.
12706 * grub-core/kern/ia64/efi/init.c: New file.
12707 * grub-core/kern/ia64/efi/startup.S: Likewise.
12708 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12709 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12710 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12711 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12712 * grub-core/loader/ia64/efi/linux.c: New file.
12713 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12714 (GRUB_MOD_DEP): Likewise.
12715 (grub_dl) [__ia64__]: New fields got and tramp.
12716 (grub_dl): New field 'base'.
12717 (grub_dl_register_symbol): New argument isfunc. All users updated.
12718 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12719 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12720 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12721 (grub_ia64_dl_get_tramp_got_size): New proto.
12722 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12723 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12724 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12725 * include/grub/efi/api.h: Skip call wrappers on ia64.
12726 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12727 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12728 * include/grub/elf.h (ELF_ST_INFO): New definition.
12729 * include/grub/ia64/efi/kernel.h: New file.
12730 * include/grub/ia64/efi/memory.h: Likewise.
12731 * include/grub/ia64/efi/time.h: Likewise.
12732 * include/grub/ia64/kernel.h: Likewise.
12733 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12734 * include/grub/ia64/time.h: New file.
12735 * include/grub/ia64/types.h: Likewise.
12736 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12737 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12739 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12740 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12741 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12742 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12744 (EFI64_HEADER_SIZE): New definition. All users updated.
12745 (image_targets): Add ia64-efi.
12746 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12747 jumpers_addr. All users updated.
12748 Create function descriptors.
12749 (count_funcs): New function.
12750 (unaligned_uint32): New struct.
12751 (MASK20): New definition.
12752 (MASK19): Likewise.
12753 (MASKF21): Likewise.
12754 (add_value_to_slot_20b): New function.
12755 (add_value_to_slot_21_real): Likewise.
12756 (add_value_to_slot_21): Likewise.
12757 (ia64_kernel_trampoline): New struct.
12758 (nopm): New variable.
12760 (make_trampoline): New function.
12761 (relocate_addresses): Handle ia64.
12762 (make_reloc_section): Likewise.
12763 (load_image): Likewise.
12765 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12767 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12768 warning. Move variables before code while on it.
12770 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12774 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12775 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12776 * grub-core/boot/mips/loongson/fuloong.S: New file.
12777 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12778 Explicitly init CS5536.
12779 [FULOONG]: Don't use serial until CS5536 is available.
12780 Set GPIO based on dumps.
12781 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12782 [FULOONG]: Handle GPIO and memory controller differences.
12783 Parse machine type in $a2.
12784 * grub-core/boot/mips/startup_raw.S: Determine and save the
12786 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12787 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12788 init on architecture type.
12789 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12790 SIS315E. Don't init at_keyboard on fuloong.
12791 (grub_halt): Support Fuloong.
12792 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12793 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12794 (loongson_machtypes): New array.
12795 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12797 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12798 config. All users updated. Handle CS5536 serial.
12799 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12800 default port on machine type. Register serial as inactive.
12801 * grub-core/video/sis315pro.c: New file.
12802 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12804 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12805 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12806 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12807 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12808 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12809 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12811 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12812 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12814 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12815 (grub_arch_machine): New extern var.
12816 * include/grub/mips/loongson/serial.h
12817 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12818 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12819 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12820 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12821 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12822 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12823 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12824 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12825 * include/grub/term.h (grub_term_register_input_inactive): New inline
12827 (grub_term_register_output_inactive): Likewise.
12828 * include/grub/video.h (grub_video_driver_id): New value
12829 GRUB_VIDEO_DRIVER_SIS315PRO.
12830 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12831 New field "names". All users updated.
12832 New field value IMAGE_FULOONG_FLASH.
12833 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12835 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12837 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12838 and add some clarification.
12840 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12842 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12843 platforms if kernel is compressed.
12845 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12847 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12848 unused modules since currently referrence counter isn't reliable and
12849 there isn't much memory to recover there anyway.
12851 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12853 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12854 rather than resetting it to allow modules to reference themselves
12857 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12859 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12860 counter on dependencies since grub_dl_unref already handles this.
12862 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12864 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12865 on error if not already done.
12867 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12869 Fix few potential memory misusage.
12871 * grub-core/font/font.c (load_font_index): Don't free char_index to
12873 (grub_font_load): Zero-fill font at alloc for safety.
12874 Close file on error.
12875 (free_font): Free bmp_idx.
12877 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12879 * docs/grub.texi (Installation): Fix several outdated claims.
12881 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12883 Handle module_license on windows.
12885 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12887 (insert_string): Make argument const char * instead of char *.
12888 (write_section_data): Handle long section names.
12889 Handle module_license.
12891 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12893 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12894 handle class-free menuentries.
12895 (grub_normal_add_menu_entry): Add a check to be sure.
12897 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12899 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12902 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12904 * configure.ac: Bump version to 1.99.
12906 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12908 Give ATA device a bit more time on first try in order to allow disks
12911 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12912 if dev->present is 1. Reset dev->present on failure.
12913 (grub_ata_device_initialize): Set dev->present to 1.
12914 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12915 (grub_ata_device): New member 'present'.
12917 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12919 * util/grub-mkimage.c (generate_image): Update hash.
12921 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12923 Flush caches on DMA memory.
12925 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12926 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12927 (grub_dma_free): Likewise.
12928 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
12930 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12932 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
12933 to avoid asm treating ld and sd as macros.
12935 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12937 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
12940 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12942 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
12943 grub_decompress_core since later would fail if grub_decompress_core
12946 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12948 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
12949 R_MIPS_JALR since it's used by newer compiler.
12951 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
12953 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
12955 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12957 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
12958 file_path to 0 for surety.
12959 (grub_chainloader_boot): Set exit_data to NULL.
12960 Unset the loader once done.
12961 (grub_cmd_chainloader): Fix confusing error message if file is empty.
12963 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12965 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
12966 unknown key into a dprintf.
12968 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12970 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
12971 on first non-existant partition.
12973 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12975 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
12977 Reported by: Mark Korenberg.
12979 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12981 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
12984 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
12986 * util/grub-mkimage.c (main): Explicitely flush and sync the output
12987 before closing to ensure that it will be readable by grub-setup.
12989 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
12991 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
12992 (devpath_1): Use MAKE_PIWG_PATH.
12993 (devpath_2): Likewise.
12994 (devpath_3): Likewise.
12995 (devpath_4): Likewise.
12996 (devpath_5): Likewise.
12997 (devpath_6): Likewise.
12999 The appleldr.mod was checked that to be binary identical to previous
13002 2011-05-05 Zach <mikezackles>
13004 Support 2010 Macbooks.
13006 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13007 (devs): Add devpath_6.
13009 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13011 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13012 /dev/random. /dev/urandom is good enough for our purposes (salting).
13014 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13016 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13018 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13020 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13023 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13025 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13026 and not 0 on failure.
13028 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13030 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13031 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13032 disk; otherwise grub_fs_probe will not fall back to the next
13034 (grub_pxefs_open): Likewise, for consistency.
13035 Reported and tested by: Ezekiel Grave.
13037 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13039 * tests/partmap_test.in: Don't hardcode path to parted.
13040 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13042 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
13044 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13045 of `ls' to find out which devices are available.
13047 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13049 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13050 than source address for efi mmap buffer.
13052 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13054 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13055 wrong action on non-detecting the magic.
13057 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13059 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13060 already supplied by another part of the module (fixes compilation on
13063 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13065 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13066 match the one used by mdadm.
13068 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13070 * po/README: Add instructions for creating po/LINGUAS.
13072 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13074 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13077 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13078 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13079 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13080 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13081 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13082 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13083 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13084 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13085 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13086 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13087 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13088 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13089 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13090 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13091 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13092 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13093 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13094 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13095 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13096 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13097 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13098 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13100 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13102 * grub-core/kern/emu/getroot.c
13103 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13104 test that was incorrectly reintroduced in r3214.
13105 Reported by: Ian Dall. Fixes Savannah bug #33133.
13107 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13109 Fix stack pointer handling in 16-bit relocator.
13111 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13112 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13113 Fixes Ubuntu bug #683904.
13115 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13117 * configure.ac: Bump version to 1.99~rc2.
13119 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13121 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13122 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13123 * grub-core/lib/x86_64/setjmp.S: Likewise.
13124 * grub-core/lib/mips/setjmp.S: Likewise.
13125 * grub-core/lib/powerpc/setjmp.S: Likewise.
13126 * grub-core/lib/sparc64/setjmp.S: Likewise.
13128 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13130 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13131 * grub-core/lib/efi/datetime.c: Likewise.
13133 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13135 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13137 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13138 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13139 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13141 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13143 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13145 (grub_gfxterm_term_init): Likewise.
13147 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13149 Take into account the decorations the computing menu entry width.
13151 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13152 (grub_gfxmenu_create_box): Register get_border_width.
13153 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13155 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13158 2011-04-18 Endres Puschner <code@e7p.de>
13160 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13161 Don't skip first class.
13163 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13165 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13167 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13169 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13171 Complete 64-bit division support.
13173 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13174 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13175 * include/grub/misc.h (grub_divmod64): Rename to ...
13176 (grub_divmod64_full): ... this.
13177 (grub_divmod64): New inline function.
13179 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13181 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13183 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13185 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13186 performing the necessary test.
13188 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13190 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13191 (kfreebsd.elf): Likewise.
13192 (pc-chainloader.elf): Likewise.
13193 (ntldr.elf): Likewise.
13195 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13197 Identify RAID by its UUID rather than (guessed) name.
13199 * grub-core/disk/raid.c (ascii2hex): New function.
13200 (grub_raid_open): Accept mduuid/%s specification.
13201 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13202 (get_mdadm_uuid): ... this.
13203 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13205 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13207 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13210 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13212 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13214 * util/grub.d/20_linux_xen.in: Likewise.
13216 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13218 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13219 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13221 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13222 Build a list of relevant visible mounts using the mnt_id and
13223 parent_mnt_id fields, and then scan that list at the end.
13225 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13227 * docs/grub.texi (normal): New section.
13228 (normal_exit): New section.
13229 (Embedded configuration): Add reference to normal.
13230 (GRUB only offers a rescue shell): Likewise.
13231 * docs/grub-dev.texi (Error Handling): Fix typo.
13233 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13235 * NEWS: Drop obsolete entry about probe-only btrfs support.
13237 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13239 * util/import_gcry.py: Fix typo.
13241 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13243 * NEWS: Add btrfs support.
13245 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13246 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13248 BtrFS support. Written by me (Vladimir) with important bugfixes and
13249 even more important testing by Colin.
13251 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13252 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13253 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13254 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13255 mem_input_off and mem_input. All users updated to accept in-RAM input.
13256 (gzio_seek): New function.
13257 (test_zlib_header): Likewise.
13258 (grub_gzio_read): Likewise.
13259 (grub_zlib_decompress): Likewise.
13260 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13261 Accept partial and non-virtual mounts.
13262 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13263 avoid receiving /dev/dm-X as device.
13264 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13265 Handle bind and partial mounts.
13266 * grub-core/lib/crc.c: New file.
13267 * include/grub/deflate.h: Likewise.
13268 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13270 * include/grub/lib/crc.h: New file.
13272 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13274 Implement automatic module license checking according to new GNU
13277 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13278 (grub_dl_load_core): Use grub_dl_check_license.
13279 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13280 (GRUB_MOD_LICENSE): Likewise.
13281 (GRUB_MOD_DUAL_LICENSE): Likewise.
13282 All modules updated.
13284 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13286 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13287 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13289 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13291 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13293 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13295 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13297 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13300 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13302 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13303 parenthesis in the middle of the filename.
13305 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13307 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13308 rather than trying to put initrd way too high.
13309 Reported by: Ryan Lortie <desrt@desrt.ca>
13311 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13313 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13314 improperly removed string.
13316 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13318 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13320 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13321 (open_device) Likewise.
13322 (grub_util_biosdisk_close): Likewise.
13323 Reported by: Mark Korenberg.
13325 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13327 * util/grub-mkconfig_lib.in: Add missing quotes.
13329 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13331 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13334 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13336 Dynamically count the number of lines for the lower banner.
13338 * grub-core/normal/menu_entry.c (per_term_screen): New member
13340 (print_down): Use num_entries.
13341 (update_screen): Likewise.
13342 (grub_menu_entry_run): Set num_entries.
13343 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13345 (grub_print_message_indented): Move real part to ...
13346 (grub_print_message_indented_real): ... here. Additional argument
13348 (draw_border): Additional argument num_entries.
13349 (print_message): Additional argument dry_run.
13350 (print_entries): Receive menu viewer data.
13351 (grub_menu_init_page): New argment num_entries.
13352 (menu_text_set_chosen_entry): Use num_entries.
13353 (grub_menu_try_text): Likewise.
13354 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13356 (grub_ucs4_count_lines): New function.
13357 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13358 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13359 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13360 (grub_term_border_height): Likewise.
13361 (grub_term_num_entries): Likewise.
13363 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13365 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13366 Remove now unused string.
13368 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13370 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13372 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13374 (Comment): Fix typo.
13375 (Getting started): General copy-editing.
13376 (Typical Development Experience): Likewise.
13377 (Error Handling): Likewise.
13378 (Video API): Likewise.
13380 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13382 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13385 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13387 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13390 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13392 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13393 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13396 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13398 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13399 grub_strcpy since the lines aren't necessarily 0-terminated.
13401 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13403 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13406 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13408 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13409 (GRUB_MOD_INIT): DEVICE isn't optional.
13411 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13413 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13414 word on new line if it's too long anyway. Fixes a hang.
13416 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13418 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13420 * util/grub-setup.c (main): Reuse md device name if available.
13421 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13422 not GRUB name as argument.
13423 Based on patch by: Florian Wagner <fwagner>.
13425 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13427 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13428 Place mbi on low memory for better compatibility.
13430 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13432 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13434 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13435 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13437 * autogen.sh: Ensure that collate and ctype locale is C.
13438 * conf/Makefile.common: Likewise.
13440 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13442 * grub-core/normal/menu.c: Add missing include.
13444 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13446 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13448 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13450 * util/grub-mkconfig.in: Ignore emacsen backup.
13452 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13454 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13456 (grub_util_biosdisk_close): Likewise.
13458 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13460 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13461 const attribute and use grub_isdigit.
13463 2011-04-06 Andrey <dev_null@ukr.net>
13465 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13468 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13470 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13471 useful grub_dprintf's.
13473 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13475 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13477 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13479 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13481 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13483 Output errors if theme loading failed.
13485 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13486 grub_gfxterm_fullscreen on error paths to ...
13487 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13488 theme loading error.
13490 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13492 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13493 space for older compilers.
13494 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13496 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13498 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13499 and report them as not RAID members since they are useless for GRUB.
13500 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13502 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13504 Increase LVM implementation robustness in order not to crash on
13505 configurations like pvmove. Previously code assumed that in some places
13506 only lvs or only pvs are used whereas it seems that they are used
13509 * grub-core/disk/lvm.c (read_node): New function.
13510 (read_lv): Use read_node.
13511 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13512 Match volumes only at the end when all lvs are found. Take both
13513 pvs (first) and lvs (second) into account.
13514 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13515 mirror_* into node_*. All users updated.
13516 (grub_lvm_stripe): Merge this ...
13517 (grub_lvm_mirror): ... and this ...
13518 (grub_lvm_node): ... into this. All users updated.
13520 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13522 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13523 of function to allow further scanning for LVMs.
13525 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13527 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13528 on failed seek as it breaks open fd reusage.
13530 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13532 * util/grub-install.in: Add a recommendation to use --recheck before
13535 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13537 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13540 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13542 GRUB developper manual based on existing Internals section and
13543 contributions by the various authors with active copyright assignment.
13545 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13546 * docs/font_char_metrics.png: New file.
13547 * docs/font_char_metrics.txt: Likewise.
13548 * docs/grub-dev.texi: Likewise.
13549 * docs/grub.texi (Internals): Move from here ...
13550 * docs/grub-dev.texi: ... here.
13552 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13554 Store the loopback device as data on loopback grub_disk structures,
13555 rather than the file it points to. This fixes use of freed memory
13556 if an existing loopback device is replaced.
13558 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13559 disk->data, not dev->file.
13560 (grub_loopback_read): Adjust file assignment to match.
13561 Fixes Ubuntu bug #742967.
13563 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13565 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13566 when replacing an existing device.
13568 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13570 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13571 memory corruptions.
13573 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13575 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13576 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13577 (grub_jfs_read_inode): Likewise.
13578 (grub_jfs_opendir): Likewise. Remove now useless casts.
13579 (grub_jfs_getent): Likewise.
13580 Make ino a grub_uint32_t rather than int.
13581 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13582 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13583 division and module with bit operations.
13584 (grub_jfs_find_file): Make ino a grub_uint32_t.
13585 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13587 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13589 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13590 warning. (This was in fact always initialised before use, but GCC
13591 wasn't smart enough to prove that.)
13592 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13594 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13596 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13598 (efi_wrap_1): Likewise.
13599 (efi_wrap_2): Likewise.
13600 (efi_wrap_3): Likewise.
13601 (efi_wrap_4): Likewise.
13602 (efi_wrap_5): Likewise.
13603 (efi_wrap_6): Likewise.
13604 (efi_wrap_10): Likewise.
13605 Based on information by: Red Hat/Peter Jones.
13607 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13609 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13610 set-but-not-used variable.
13612 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13614 * docs/grub.texi (Simple configuration): Be more explicit about
13615 GRUB_DEFAULT, and add an example.
13616 Reported by: Leslie Rhorer.
13618 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13620 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13623 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13625 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13626 * util/grub.d/20_linux_xen.in: Likewise.
13628 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13630 * util/grub.d/10_linux.in: Try alternative config filenames where
13631 we parse config file.
13632 * util/grub.d/20_linux_xen.in: Likewise.
13634 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13636 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13637 * util/grub.d/20_linux_xen.in: Likewise.
13639 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13641 * grub-core/disk/raid.c (insert_array): Add few potentially
13642 useful grub_util_info.
13643 (grub_raid_register): Likewise.
13645 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13647 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13648 Preserve partition number in mdadm code path.
13650 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13652 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13653 few potentially useful grub_util_info.
13655 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13657 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13659 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13661 * docs/grub.texi (default): Use @example rather than nested
13662 itemized lists to avoid breaking gendocs.
13664 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13666 * docs/grub.texi (Future): Update.
13668 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13670 * docs/grub.texi (Environment): New chapter.
13671 (Changes from GRUB Legacy): Link to "Environment block" section for
13672 details of limitations.
13673 (Simple configuration): Likewise. Link to documentation of gfxmode
13674 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13676 (Shell-like scripting): Note that normal variables are stored in the
13678 (gettext): Link to documentation of lang and locale_dir.
13679 (list_env): New section.
13680 (load_env): New section.
13681 (save_env): New section.
13683 (Reporting bugs): Fix typo.
13685 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13687 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13690 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13692 * grub-core/term/at_keyboard.c (set_scancodes)
13693 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13695 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13697 * docs/grub.texi (Menu-specific commands): Remove some semantics
13698 that were true in GRUB Legacy but not in GRUB 2.
13699 (submenu): New section.
13700 (false): New section.
13701 (read): New section.
13702 (true): New section.
13704 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13706 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13708 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13710 * docs/grub.texi (Simple configuration): Explain some of the
13711 current limitations of grub-mkconfig.
13712 Reported by: Leslie Rhorer.
13714 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13716 Old macs search for boot.efi rather than for bootia32.efi.
13718 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13719 * util/grub-mkrescue.in: Likewise.
13720 Suggested by: Peter Jones.
13722 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13724 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13726 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13728 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13729 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13730 (grub_lvm_mirror): New struct.
13731 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13732 (grub_lvm_iterate): Iterate only visible volumes.
13733 (grub_lvm_read): Factor out to ..
13734 (read_lv): ... this. Support mirrors.
13735 (grub_lvm_read): New wrapper function.
13736 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13737 stripped or mirrored.
13739 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13741 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13743 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13745 * docs/grub.texi (loopback): New section.
13747 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13749 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13752 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13754 * docs/grub.texi (BIOS installation): New section, partly based on
13755 previous text in other sections.
13756 (Installing GRUB using grub-install): Replace BIOS discussion with a
13758 (Images): Likewise.
13760 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13762 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13763 [HAVE_DIOCGDINFO]: Add safety checks.
13765 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13767 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13768 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13770 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13772 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13773 real_sb->size is zero (e.g. RAID-0), get the disk size from
13774 real_sb->data_size instead.
13775 Fixes Ubuntu bug #743136.
13777 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13779 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13780 printf clauses for printing size and start.
13782 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13784 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13785 Reported and tested by: Timothy Nikkel.
13787 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13789 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13790 (dirty_region_add_real): ... this.
13791 (dirty_region_add): Don't discard margin refresh when performing
13794 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13796 * grub-core/lib/relocator.c (allocate_regstart)
13797 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13798 terminals are capabple of malloc-free operation.
13799 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13800 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13802 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13804 * util/grub-setup.c: Copy the partition table zone if floppy support
13805 is disabled, even if no partition table is found.
13807 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13808 during POST if an invalid partition table is contained in the PBR
13809 of the active partition when GRUB is installed to a partition.
13811 2011-03-28 Colin Watson <cjwatson@debian.org>
13813 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13816 2011-03-28 Colin Watson <cjwatson@debian.org>
13818 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13819 to be specific about what kind of RAID device we're scanning for.
13821 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13823 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13824 return freed string.
13826 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13828 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13830 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13832 Use libgeom on FreeBSD to detect partitions.
13834 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13835 (grub-mkrelpath): Likewise.
13836 (grub-script-check): Likewise.
13837 (grub-editenv): Likewise.
13838 (grub-mkpasswd-pbkdf2): Likewise.
13839 (grub-fstest): Likewise.
13840 (grub-mkfont): Likewise.
13841 (grub-mkdevicemap): Likewise.
13842 (grub-probe): Likewise.
13843 (grub-setup): Likewise.
13844 (grub-ofpathname): Likewise.
13845 (grub-mklayout): Likewise.
13846 (example_unit_test): Likewise.
13847 (grub-menulst2cfg): Likewise.
13848 * grub-core/Makefile.core.def (grub-emu): Likewise.
13849 (grub-emu-lite): Likewise.
13850 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13851 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13852 define HAVE_DIOCGDINFO.
13853 (follow_geom_up) [FreeBSD]: New function.
13854 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13855 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13856 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13857 unconditionally of HAVE_DIOCGDINFO.
13859 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13861 Fix FreeBSD compilation problem.
13863 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13864 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13866 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13868 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13869 Switch back to page zero before loading a kernel, since some kernel
13870 drivers expect that.
13871 Thanks to: Felix Kuehling.
13873 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13875 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13876 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13877 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13879 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13881 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13882 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13884 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13886 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13887 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13888 malloc is disabled.
13890 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13892 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13893 for modules headers when counting the needed allocation size.
13895 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13897 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13898 if no ASCII character is found to prevent crash.
13900 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13902 * grub-core/video/bitmap.c (match_extension): Ignore case.
13904 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13906 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13908 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13910 * grub-core/script/parser.y: Declare "time" as valid argument.
13912 2011-03-23 Peter Jones <pjones@redhat.com>
13914 Fix incorrect assert failure reporting.
13916 * grub-core/tests/example_functional_test.c (example_test): Add
13918 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13919 (failure_start): ...this. Check that malloc succeeded.
13920 Don't call xvasprintf. Return failure struct.
13921 (failure_append_vtext): New function.
13922 (failure_append_text): Likewise.
13923 (add_failure): Likewise.
13924 (grub_test_assert_helper): Likewise.
13925 * include/grub/test.h (grub_test_assert_helper): New declaration.
13926 (grub_test_assert): Macro rewritten.
13928 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13930 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
13932 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13934 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
13936 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13938 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
13939 into GRUB-style one.
13941 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13943 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
13944 error and not grub_errno.
13945 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
13947 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13949 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
13950 GRUB_USB_SPEED_NONE in case of failure and not the error code.
13952 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13954 * grub-core/efiemu/i386/pc/cfgtables.c
13955 (grub_machine_efiemu_init_tables): Make declaration a prototype.
13956 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
13957 (grub_xnu_unlock): Likewise.
13958 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
13960 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13962 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
13963 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
13964 * grub-core/commands/hashsum.c (aliases): Likewise.
13965 * grub-core/commands/setpci.c (pci_registers): Likewise.
13966 * grub-core/disk/usbms.c (attach_hook): Likewise.
13967 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
13968 (zio_checksum_table): Likewise.
13969 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
13970 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
13971 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
13972 * grub-core/lib/relocator.c (leftovers): Likewise.
13973 (extra_blocks): Likewise.
13974 * grub-core/loader/i386/bsd.c (relocator): Likewise.
13975 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
13976 (modules_last): Likewise.
13977 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
13978 (devices): Likewise.
13979 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
13980 (modules_last): Likewise.
13981 * grub-core/normal/auth.c (users): Likewise.
13982 * grub-core/normal/context.c (initial_menu): Likewise.
13983 (current_menu): Likewise.
13984 * grub-core/normal/crypto.c (crypto_specs): Likewise.
13985 * grub-core/term/serial.c (grub_serial_ports): Likewise.
13986 (grub_serial_terminfo_input_template): Likewise.
13987 (grub_serial_terminfo_output_template): Likewise.
13988 (grub_serial_terminfo_input): Likewise.
13989 (grub_serial_terminfo_output): Likewise.
13990 (registered): Likewise.
13991 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
13993 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13995 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
13996 grub_video_mode_type_t.
13997 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
13998 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
13999 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14001 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14003 * util/grub-install.in: Correct the x86-64 name as x86_64.
14005 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
14007 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14008 initial chunk read from the kernel always includes GRUB's multiboot
14009 header, which is now outside the first sector.
14011 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14013 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14014 cached mmap_size, so that this works correctly when called multiple
14016 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14018 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14020 * docs/grub.texi (Simple configuration): Tidy up formatting.
14022 2011-03-07 Szymon Janc <szymon@janc.net.pl>
14024 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14025 Set-but-not-used variable removed.
14027 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14029 Workaround yet another IEEE1275 bug.
14031 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14032 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14033 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14034 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14036 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14037 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14039 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14041 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14044 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
14046 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14047 empty, since in that case we can only generate either nothing or a
14048 syntactically invalid configuration file.
14049 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14051 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14053 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14054 (Making a GRUB bootable CD-ROM): Likewise.
14055 (Invoking grub-mkrescue): New section.
14056 Reported by: Yann Dirson. Fixes Debian bug #612585.
14058 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14060 * util/grub-install.in: Remove unnecessary brackets from tr
14062 * util/grub.d/10_hurd.in: Likewise.
14063 * util/grub.d/10_kfreebsd.in: Likewise.
14064 * util/grub.d/10_linux.in: Likewise.
14065 * util/grub.d/20_linux_xen.in: Likewise.
14066 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14068 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
14070 * include/grub/file.h (not_easly_seekable): Rename to ...
14071 (not_easily_seekable): ... this. Update all users.
14073 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
14075 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14078 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14080 * util/grub-mkimage.c (generate_image): Refuse to create the images
14081 bigger than the actual flash (512K) in Loongson machines. 512K is also
14082 the biggest chip supported by them.
14084 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14086 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14088 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
14090 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14091 super_offset field.
14093 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14095 * util/grub-install.in: Ignore install device on platforms
14096 where it doesn't make sense. Always use UUIDs except on pc, efi and
14098 Reported by: Daniel Kahn Gillmor.
14100 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14102 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14104 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14106 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14107 (iterate_real): Don't rely on partition being non-NULL.
14109 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14111 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14112 supported platforms. Put a compile time assert for this rather than
14113 generate a warning with 32-bit shift.
14115 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14117 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14118 logical expression more readable.
14120 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14122 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14123 even if some elements have a name.
14124 Reported by: Alexander GQ Gerasiov.
14126 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14128 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14129 path unreadable if `grub-probe -t abstraction' fails, for example if
14130 memberlist fails on an LVM volume group.
14131 Reported by: Darius Jahandarie.
14133 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14135 * docs/grub.texi (Simple configuration): Document
14136 GRUB_PRELOAD_MODULES.
14138 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
14140 * .bzrignore: Remove nonexistent grub-pbkdf2.
14142 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14144 * configure.ac: Bump version to 1.99~rc1.
14146 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14148 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14151 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14153 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14156 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14158 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14160 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14162 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14165 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14167 Fix compilation on cygwin.
14169 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14170 -R .drectve on cygwin.
14171 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14172 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14173 (COND_CYGWIN): New condition.
14174 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14175 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14176 not @TARGET_OBJ2ELF@.
14177 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14178 type to determine whether aux is to be used.
14180 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14182 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14183 realpath'ed device string.
14184 Handle floppy (somewhat).
14185 Issue error in unknown case rather than garbage.
14186 Reported by: Axel Beckert.
14188 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14190 * util/grub.d/00_header.in (load_video): Handle the case when no video
14192 Thanks to: Axel Beckert.
14194 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14196 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14197 variable. Fixes problem on big endian platforms.
14199 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14201 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14202 It doesn't work well there.
14204 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14206 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14208 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14209 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14212 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14214 Use alias->path rather than buggy "canon".
14216 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14217 (ofdisk_hash_add): New argument curcan. All users updated.
14219 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14221 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14223 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14225 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14226 loadmask before doing any calculations. Use correct type for offset.
14227 (grub_linux_load64): Likewise.
14229 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14231 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14233 (console_grub_equivalences_unshift): Likewise.
14234 Reported by: Daniel Dehennin.
14236 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14238 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14239 (set_env_limn_ro): Likewise.
14240 (GRUB_MOD_INIT): Likewise.
14241 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14242 ARRAY_SIZE while on it.
14243 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14244 * grub-core/normal/context.c (grub_env_export): Move from here ...
14245 * grub-core/kern/env.c (grub_env_export): ... here.
14246 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14248 * grub-core/kern/main.c (grub_main): Export root and prefix.
14249 * include/grub/env.h (grub_env_export): Export.
14250 Reported by: Seth Goldberg.
14252 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14254 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14255 Take into account space used by ELF sections and multiboot palette.
14256 Reported by: Grégoire Sutre.
14258 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14262 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14264 Pass more appropriate video id to Linux.
14266 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14267 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14269 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14270 shift params->lfb_size.
14271 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14273 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14275 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14277 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14279 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14280 separator and pass bootpath/devid even if only one of them is available.
14281 Reported by: Seth Goldberg.
14283 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14285 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14286 implementations bug on them.
14288 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14290 (filter_memory_map): Likewise.
14292 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14294 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14295 Reported by: nebuchadnezzar.
14297 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14299 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14300 Reported by: nebuchadnezzar.
14302 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14304 Submenu default support.
14306 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14307 auto_boot. All users updated.
14309 Handle chosen and default with submenus.
14310 (grub_menu_execute_with_fallback): Declared static.
14311 Don't notify failure if autobooted. Upper level does it.
14312 (menuentry_eq): New function.
14313 (get_entry_number): Use menuentry_eq.
14314 (show_menu): New parameter "autobooted". All users updated.
14315 (grub_show_menu): Likewise.
14316 * include/grub/normal.h (grub_show_menu): Likewise.
14317 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14318 (grub_menu_execute_with_fallback): Likewise.
14320 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14322 * util/grub-mklayout.c (usage): Update help text.
14324 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14326 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14328 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14330 * util/grub-menulst2cfg.c (main): Trim the line.
14332 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14334 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14335 (grub_machine_init): Don't check amount of low memory as reportedly
14336 INT 12h can be broken and if low memory is too low we wouldn't have
14337 gotten into grub_machine_init anyway.
14339 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14341 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14342 (grub_machine_mmap_iterate): Take low memory into account
14344 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14346 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14348 Reported by: TiCPU.
14350 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14352 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14355 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14357 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14358 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14360 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14362 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14363 openbsd and netbsd types being in part_bsd module.
14365 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14367 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14368 (_FILE_OFFSET_BITS): Likewise.
14369 Reported by: Seth Goldberg.
14371 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14373 * configure.ac: Check for libdevmapper header.
14375 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14377 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14379 (fzap_lookup): Likewise.
14380 (dnode_get): Likewise.
14381 (make_mdn): Likewise.
14382 (zfs_mount): Likewise.
14383 (fzap_iterate): Use temporary pointer to avoid aliasing.
14384 (grub_zfs_read): Likewise.
14385 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14386 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14387 pointers to avoid aliasing.
14388 (grub_cmd_xnu_kernel64): Likewise.
14389 (grub_xnu_load_driver): Likewise.
14391 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14393 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14395 (grub_cmd_terminal_output): Likewise.
14396 Reported and tested by: Grégoire Sutre.
14398 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14400 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14402 Reported and tested by: Grégoire Sutre.
14404 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14406 * configure.ac: Do CPU substitution even if it's specified explicitly.
14407 Reported and tested by: Alain Greppin.
14409 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14411 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14412 Reported and tested by: Alain Greppin.
14414 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14416 Satisfy some bison versions need for inttypes.h.
14418 * grub-core/lib/posix_wrap/inttypes.h: New file.
14419 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14420 (int16_t): Likewise.
14421 (int32_t): Likewise.
14422 (int64_t): Likewise.
14423 Reported and tested by: Alain Greppin.
14425 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14427 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14428 Silence spurious warning.
14429 Reported and tested by: Alain Greppin.
14431 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14433 * docs/grub.texi (Support automatic decompression): Update with xz
14434 decompression support.
14436 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14438 Improve loaders' kernel command line handling.
14440 * grub-core/lib/cmdline.c: New file.
14441 * include/grub/lib/cmdline.h: Likewise.
14442 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14443 grub_create_loader_cmdline to create kernel command line.
14444 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14445 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14446 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14447 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14448 (linux): Add lib/cmdline.c on common.
14450 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14452 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14453 inopos might be unaligned.
14455 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14457 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14458 endian transformations.
14459 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14460 Based on report by: Doug Nazar.
14462 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14464 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14465 array->members[i].start_sector.
14466 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14468 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14470 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14471 Reported and tested by: Grégoire Sutre.
14473 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14475 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14476 avoid causing test failures by clearing the screen.
14478 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14480 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14481 Fix prefix check to handle the case where dir ends with a slash
14482 (most significantly, "/" itself).
14483 Reported by: Michael Vogt.
14485 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14487 Run terminfo_cls on initing terminfo output to clear the screen and
14488 move the cursor to (0,0).
14490 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14491 Call grub_terminfo_output_init.
14492 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14493 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14494 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14496 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14498 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14501 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14503 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14506 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14508 The E820 type 5 is BADRAM, not EXEC_CODE.
14510 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14511 (GRUB_E820_BADRAM): New define.
14512 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14513 into reserved. Propagate BADRAM.
14514 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14515 (GRUB_E820_BADRAM): New define.
14517 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14519 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14520 Ignore the memory post-4G.
14521 (grub_relocator_firmware_alloc_region): Additional debug statement.
14523 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14525 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14527 Reported by: David Pravec.
14529 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14531 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14534 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14536 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14538 (grub_reed_solomon_recover): Likewise.
14540 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14542 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14544 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14546 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14549 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14551 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14552 descriptions of extract_legacy_entries_source and
14553 extract_legacy_entries_configfile.
14554 Reported by: Seung Soo, Ha.
14556 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14558 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14559 on devices that do not implement function 0.
14561 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14563 * grub-core/fs/hfsplus.c: Make parent unsigned.
14564 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14566 (grub_hfsplus_cmp_extkey): Likewise
14568 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14570 * util/grub-install.in: Correctly use bootloader_id and not
14571 GRUB_DISTRIBUTOR on efibootmgr line.
14573 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14575 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14577 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14579 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14580 Xen and reorder menu item wording to make it clearer that this entry
14581 will launch Xen. Print separate messages when loading Xen and
14584 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14586 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14587 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14588 loop in case of incorrect amiga partmap.
14590 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14592 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14593 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14596 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14598 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14600 Reported by: crocket
14602 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14604 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14606 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14608 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14610 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14612 (grub_cmd_xnu_kextdir): Likewise.
14613 (grub_cmd_xnu_splash): Likewise.
14615 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14617 Avoid using Reed-Solomon with 0 redundancy.
14619 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14620 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14622 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14623 (grub_reed_solomon_recover): Likewise.
14625 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14627 Don't use disk subsystem in freebsd_boot.
14629 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14630 (freebsd_biosdev): Likewise.
14631 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14632 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14634 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14636 Handling of files of unknown size is currently limited. They can't be
14637 used e.g. for initrd or modules. Moreover gzip handling of not
14638 easily seekable files is buggy. Disable unknown file size for now. May
14639 be inefficient but works.
14641 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14642 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14644 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14646 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14649 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14651 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14653 2010-12-25 Shea Levy <shlevy>
14655 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14657 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14659 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14660 Windows Server 2008.
14661 Reported by: Devin Giddings.
14663 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14665 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14666 writing an error message because of async power management.
14667 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14668 (grub_reboot): Likewise.
14670 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14672 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14673 keep unit tests from failing when they shouldn't.
14675 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14677 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14678 previous patch increased the size of the RS code by 20 bytes (at
14679 least with gcc-4.4), so increase this by 20 bytes to match.
14680 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14682 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14684 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14685 scratch area. Make sure to initialise chosen in standalone mode as
14686 well as non-standalone.
14687 Reported by: Robert Hooker and Andy Whitcroft.
14688 Tested by: Andy Whitcroft.
14690 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14692 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14693 constructing a new unescaped string and passing it to grub_xputs in
14694 one go, rather than passing characters to grub_printf one at a time.
14696 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14698 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14699 initialising utf16.
14701 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14703 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14704 comment. Add an extra layer of quotation, requiring the output of
14705 this function to be used in a printf format string.
14706 (gettext_printf): New function.
14707 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14708 Extract translatable strings from here-documents and use a temporary
14709 variable instead, so that xgettext can find them.
14710 * util/grub.d/10_kfreebsd.in: Likewise.
14711 * util/grub.d/10_linux.in: Likewise.
14712 * util/grub.d/20_linux_xen.in: Likewise.
14714 * po/grub.d.sed: New file.
14715 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14716 arguments. Set c-format flags on all strings extracted from
14717 util/grub.d/ (xgettext refuses to include these itself for strings
14718 it extracted from a shell file, but these really are c-format).
14720 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14722 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14723 Avoid next pointing to nowhere.
14725 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14727 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14728 rather than assuming than rootblock is exactly in the middle.
14729 (grub_affs_label): Likewise.
14731 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14733 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14734 reserved_first_sector to 0.
14735 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14736 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14737 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14739 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14741 Fix handling of UTF-16 UDF labels.
14743 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14744 (read_string): .. here.
14745 (grub_udf_label): Use read_string.
14747 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14749 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14750 editor under argument scope.
14751 Reported by: Jordan Uggla
14753 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14755 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14757 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14759 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14760 line, and other keys scroll an entire page (previous handling was
14761 for \r and \n to scroll a page and other keys to scroll two lines).
14763 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14765 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14766 Set ptrdest to correct get_physical_target_address rather than
14767 incorrect get_virtual_current_address.
14769 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14771 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14772 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14774 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14776 * .bzrignore: Ignore grub-core/rs_decoder.S.
14778 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14780 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14781 .mo/.mo.gz opening sequence to ...
14782 (grub_mofile_open_lang): ... here.
14783 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14784 * util/grub.d/00_header.in (grub_lang): Include country part of
14786 Reported by: Mario Limonciello.
14788 2010-12-09 Robert Millan <rmh@gnu.org>
14790 * NEWS: Document addition of ZFS support.
14792 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14794 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14795 rather than `/ 2', as the latter requires -Wa,--divide which would
14796 require bumping our minimum binutils version.
14798 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14800 * util/grub-script-check.c (main): Print script line number on
14803 2010-12-01 Robert Millan <rmh@gnu.org>
14805 * grub-core/fs/zfs/zfs.c: New file.
14806 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14807 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14808 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14809 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14811 * include/grub/zfs/dmu.h: Likewise.
14812 * include/grub/zfs/dmu_objset.h: Likewise.
14813 * include/grub/zfs/dnode.h: Likewise.
14814 * include/grub/zfs/dsl_dataset.h: Likewise.
14815 * include/grub/zfs/dsl_dir.h: Likewise.
14816 * include/grub/zfs/sa_impl.h: Likewise.
14817 * include/grub/zfs/spa.h: Likewise.
14818 * include/grub/zfs/uberblock_impl.h: Likewise.
14819 * include/grub/zfs/vdev_impl.h: Likewise.
14820 * include/grub/zfs/zap_impl.h: Likewise.
14821 * include/grub/zfs/zap_leaf.h: Likewise.
14822 * include/grub/zfs/zfs.h: Likewise.
14823 * include/grub/zfs/zfs_acl.h: Likewise.
14824 * include/grub/zfs/zfs_znode.h: Likewise.
14825 * include/grub/zfs/zil.h: Likewise.
14826 * include/grub/zfs/zio.h: Likewise.
14827 * include/grub/zfs/zio_checksum.h: Likewise.
14829 * Makefile.util.def: Build ZFS into libgrubmods.
14830 * grub-core/Makefile.core.def: Build zfs.mod.
14832 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14834 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14836 * grub-core/commands/wildcard.c (match_files): Likewise.
14838 2010-11-30 Robert Millan <rmh@gnu.org>
14840 * grub-core/loader/i386/bsd.c
14841 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14842 whether kernel is loaded using grub_loader_is_loaded(), rather
14843 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14844 certain error conditions.
14846 2010-11-30 Robert Millan <rmh@gnu.org>
14848 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14849 (grub_cmd_echo): Call grub_refresh() after printing a message.
14851 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14853 Avoid using tricks for initialising endian variables.
14855 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14857 (GRUB_MOD_INIT): Don't byte-swap.
14858 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14859 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14860 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14861 (grub_swap_bytes32_compile_time): Likewise.
14862 (grub_cpu_to_le32_compile_time): Likewise.
14863 (grub_cpu_to_le16_compile_time): Likewise.
14865 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14867 * util/grub-setup.c (setup): Stop recommending --force. People who
14868 understand the dangers of blocklists are able to find this option
14869 anyway and the ones who don't shouldn't use it anyway.
14871 2010-11-26 Robert Millan <rmh@gnu.org>
14873 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14876 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14878 Fix LVM-on-RAID probing.
14880 * util/grub-probe.c (probe): Remember which disk was detected as
14881 RAID (perhaps an LVM physical volume). Use that disk's raidname
14882 rather than that of the top-level disk.
14884 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14886 Fix cmdline argument quotes for setparams command of menuentry
14889 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14890 quotes for arguments.
14891 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14892 grub_strchrsub function instead.
14894 * include/grub/misc.h (grub_strchrsub): New function.
14896 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14898 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14899 effort by skipping "." and ".." entries up-front.
14900 Suggested by: Michael Lazarev.
14902 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14904 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14905 ldflags to ldadd, to fix link line ordering.
14906 (none_decompress): Likewise.
14908 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14910 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14912 (grub-emu-lite): Remove kern/emu/cache.S.
14914 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14916 * util/deviceiter.c (compare_devices): If the by-id link for a
14917 device couldn't be resolved, fall back to sorting by the by-id link
14918 rather than segfaulting.
14919 Reported and tested by: Daniel Mierswa.
14921 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14923 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14924 ldflags, to fix link line ordering.
14926 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14928 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14929 linkers are picky about this.
14931 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14933 * grub-core/Makefile.am (command.lst): Adjust sed expression
14934 ordering so that extended and priority commands aren't treated as
14937 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14939 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14940 Remove byte-swapping function calls, which are not valid in
14941 structure initialisers.
14942 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
14944 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
14945 grub_gpt_partition_type_bios_boot.
14947 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14949 Fix test program build on GNU/kFreeBSD.
14951 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
14952 $(LIBNVPAIR)' library dependencies.
14954 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14956 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
14958 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
14960 * util/grub-install.in: Remove excessive quoting that broke
14961 installations to RAID devices.
14963 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14965 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
14966 bootloader version instead of 0.
14968 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14970 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
14973 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
14975 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
14976 retrieve the metadat sector if size isn't known.
14977 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14979 2010-11-18 Robert Millan <rmh@gnu.org>
14981 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
14982 with grub_memcmp().
14984 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
14986 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
14988 Reported by: Jordan Uggla.
14990 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
14992 Make better UTF compliant.
14994 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
14995 sequences as incorrect.
14996 (grub_is_valid_utf8): Likewise.
14997 (grub_utf8_to_ucs4): Likewise.
14998 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
14999 (grub_ucs4_to_utf8_alloc): Likewise.
15000 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15002 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15004 Make legacy_source behave like source.
15006 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15008 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15010 2010-11-16 Colin Watson <cjwatson@debian.org>
15012 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15013 (-Wunused implies -Wunused-parameter, but not vice versa).
15015 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
15017 * configure.ac: Make error messages less confusing by testing for
15018 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15019 accepted, but produces a diagnostic if something else is wrong).
15021 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15023 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15024 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15026 (grub_keyboard_controller_init)
15027 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15028 read the initial state since controller isn't inited yet.
15030 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15032 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15033 allocate_regbeg may need to create new chunk header.
15035 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15037 Fix quoting in legacy parser.
15039 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15041 (grub_legacy_parse): Likewise.
15042 Reported by: Jordan Uggla.
15043 Tested by: Jordan Uggla.
15045 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15047 Don't add -lgcc on i386 and x86_64.
15049 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15050 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15051 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15053 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15055 * configure.ac: Add -Wno-trampolines when supported.
15057 2010-11-14 Modestas Vainius <modax@debian.org>
15059 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15062 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15064 Add generic logical block size support for UDF.
15066 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15067 (GRUB_UDF_BLKSZ): Removed.
15068 (struct grub_udf_data): New field "lbshift" to hold the logical block
15069 size of the file system in log2 format. All users updated.
15070 (sblocklist): Change type to unsigned.
15071 (grub_udf_mount): Change type of "sblklist" to unsigned.
15072 Move AVDP search before VRS recognition, because the latter requires
15073 knowledge of the logical block size, which is detected during the
15075 Detect and validate logical block size during AVDP search, adding
15076 support for block sizes 512, 1024 and 4096.
15077 Make VRS recognition independent of block size.
15079 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15081 Properly handle deleted files on UDF.
15083 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15084 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15087 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15089 Support reading files larger than 2 GiB.
15091 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15092 "offset" to grub_off_t.
15093 (grub_udf_read_file): Likewise for parameter "pos".
15095 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15097 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15099 (Simple configuration): Refer to Changes from GRUB Legacy about
15100 save_env availability.
15102 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15104 * util/grub-install.in: Ignore empty partition table detection
15105 instead of trying to include part_ module.
15107 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15109 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15110 LVM on RAID support.
15112 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15114 Properly define WORDS_BIGENDIAN in wrapped environments.
15116 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15118 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15120 Reported by: Manoel Rebelo Abranches.
15121 Tested by: Manoel Rebelo Abranches.
15123 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15125 * util/grub-mkconfig.in: Fix quoting.
15127 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15129 Support big ext2 files.
15131 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15132 (grub_ext2_read_block): Support triple indirect blocks.
15133 (grub_ext2_read_file): Use 64-bit types and read size_high.
15134 (grub_ext2_open): Read size_high.
15135 Reported by: Ximin Luo.
15136 Tested by: Manoel Rebelo Abranches.
15138 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15140 * util/grub-install.in: Handle filenames containing spaces.
15141 Reported by: Jordan Uggla.
15142 Tested by: Jordan Uggla.
15144 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15146 * util/grub-mkconfig.in (grub_script_check): New variable.
15147 Use grub_script_check instead of grub-script-check.
15148 Reported by: Barry Jackson.
15150 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15152 * docs/grub.texi (menu): Correct the order.
15153 Reported by: D. Hugh Redelmeier.
15155 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15157 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15160 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15162 * include/grub/elfload.h (grub_elf32_size): New parameter.
15164 Return maximum segments alignment.
15165 (grub_elf64_size): Likewise.
15166 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15167 Return maximum segments alignment.
15168 (grub_elf64_size): Likewise.
15169 * grub-core/loader/powerpc/ieee1275/linux.c:
15170 (grub_linux_claimmap_iterate): New function. Uses the
15171 "available" property in the "memory" node for memory allocation
15172 for kernel in the PowerPC loader.
15173 (grub_linux_load32): Correctly find linux entry point offset.
15174 (grub_linux_load64): Likewise.
15176 2010-11-07 Robert Millan <rmh@gnu.org>
15178 On mips-yeeloong, build with -march=loongson2f when this flag is
15179 available (GCC >= 4.4).
15180 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15182 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15183 or otherwise add -march=mips3.
15185 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15187 Suppress shell expansion on echo '*' and echo "*" like cases.
15188 Reported by: Jordan Uggla.
15190 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15191 string arguments before shell expansion.
15192 * tests/grub_cmd_echo.in: New testcases.
15194 2010-11-07 Robert Millan <rmh@gnu.org>
15196 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15199 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15201 * grub-core/kern/emu/hostdisk.c
15202 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15204 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15206 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15207 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15208 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15210 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15212 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15214 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15216 * util/grub-install.in: Replace useless recomendation to pass
15217 --modules with a recomendation to report a bug.
15219 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15221 Properly register serial terminfo.
15222 Reported by: Jordan Uggla
15224 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15226 (grub_serial_terminfo_output_template): Likewise.
15227 (grub_cmd_serial): Register "serial" with terminfo.
15228 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15229 grub_serial_terminfo_output.
15231 2010-11-05 Robert Millan <rmh@gnu.org>
15233 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15236 2010-11-05 Robert Millan <rmh@gnu.org>
15238 On Yeeloong, pass machine type information to Linux.
15240 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15241 (LOONGSON_MACHTYPE): New macro, set to
15242 "machtype=lemote-yeeloong-2f-8.9inches".
15243 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15244 additional argument to Linux.
15246 2010-11-04 Robert Millan <rmh@gnu.org>
15248 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15249 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15250 (its SATA disks are detected as slaveless IDE master drives on
15252 Reported by Carsten Aulbert.
15254 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15256 * util/bin2h.c (main): Fix spelling error in generated output.
15258 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15260 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15262 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15264 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15265 vga= option is supplied.
15267 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15269 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15270 * util/grub.d/10_kfreebsd.in: Likewise.
15271 * util/grub.d/10_linux.in: Likewise.
15272 * util/grub.d/20_linux_xen.in: Likewise.
15274 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15276 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15277 argument as an argument to no-argument option.
15279 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15281 * util/grub.d/10_linux.in: Add missing load_video with explicit
15282 GRUB_GFXPAYLOAD_LINUX.
15284 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15286 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15288 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15290 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15291 elements with invlid index.
15292 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15293 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15295 * include/grub/raid.h (grub_raid_member): New struct.
15296 (grub_raid_array): Transform devices and start_sector into usage of
15297 grub_raid_member. All users updated
15298 (allocated_devs): New member.
15300 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15302 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15305 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15307 NetBSD build fix for getline function conflict from gnulib.
15309 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15310 components that depend on gnulib headers.
15311 (libgrubmods.a): Renamed from earlier libgrub.a.
15312 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15314 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15316 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15317 install rather than creating a broken install.
15319 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15321 * util/grub-setup.c (argp): Remove misleading example of installing to
15324 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15326 * util/grub-setup.c (setup): Clarify the error message.
15328 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15330 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15332 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15334 * grub-core/kern/emu/misc.c
15335 (grub_make_system_path_relative_to_its_root)
15336 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15338 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15340 * grub-core/kern/emu/misc.c
15341 (grub_make_system_path_relative_to_its_root): Revert r2882.
15343 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15345 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15346 useless field head. All users updated.
15347 (free_subchunk): Correct handling of IN_REGION subchunk.
15349 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15351 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15352 (Supported kernels): Likewise.
15354 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15356 Make mktemp invocations portable.
15358 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15359 exit if mktemp fails.
15360 * tests/grub_script_blockarg.in: Likewise.
15361 * tests/partmap_test.in: Likewise.
15362 * tests/util/grub-shell-tester.in: Likewise.
15363 * tests/util/grub-shell.in: Likewise.
15364 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15365 * Makefile.am: Likewise, and chain shell commands with `&&'
15367 * util/grub-mkrescue.in: Use the same explicit template as above, and
15368 exit if mktemp fails.
15370 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15372 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15373 Linux kernel, reported by Dennis Schridde.
15375 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15377 * grub-core/normal/auth.c (grub_auth_check_authentication):
15378 Set-but-not-used variable removed.
15380 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15382 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15383 32-bit linux protocol.
15385 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15387 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15388 cursor shape for sanity.
15390 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15392 * docs/grub.texi (Installation): Document buggy BIOS install.
15394 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15396 * docs/grub.texi (Installation): Indent.
15398 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15400 * util/grub-setup.c (setup): New parameter allow_floppy.
15401 (arguments): New member allow_floppy.
15402 (argp_parser): Handle --allow-floppy.
15403 (main): Pass allow_floppy.
15404 * util/grub-install.in: New option --allow-floppy passed though to
15407 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15409 * util/grub-install.in: Handle partitionless disks.
15411 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15413 * util/grub-setup.c (setup): Don't clean blocklists before readability
15416 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15418 * docs/grub.texi (Installation): Document embedding zone. Remove
15419 obsolete grub-install example.
15421 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15423 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15424 Set-but-not-used variable ifdef'ed.
15425 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15426 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15428 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15429 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15430 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15431 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15432 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15433 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15434 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15435 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15436 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15437 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15438 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15441 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15443 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15444 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15447 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15449 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15450 synonym to _S5_. Needed for some DSDTs.
15452 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15454 Userspace ACPI parser debugging.
15456 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15457 headers and add relevant defines. Don't include standard headers.
15458 (main) [GRUB_DSDT_TEST]: New function.
15459 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15460 Don't declare functions.
15462 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15464 Remove dead grub_efi_mm_fini.
15466 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15467 (ALLOCATED_PAGES_SIZE): Likewise.
15468 (MAX_ALLOCATED_PAGES): Likewise.
15469 (allocated_pages): Likewise.
15470 (grub_efi_allocate_pages): Don't record allocated pages.
15471 (grub_efi_free_pages): Likewise.
15472 (grub_efi_mm_init): Likewise.
15473 (grub_efi_mm_fini): Removed.
15475 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15477 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15478 (grub_efi_mm_init): Take into account the memory map size increase.
15480 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15482 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15483 (serial_hw_put): Wait based on real time rather than port reads. Don't
15485 * include/grub/serial.h (grub_serial_port): New field broken.
15487 2010-10-16 Robert Millan <rmh@gnu.org>
15489 * grub-core/kern/emu/misc.c
15490 (grub_make_system_path_relative_to_its_root): Fix premature return
15491 when processing non-root ZFS filesystems.
15492 Reported by Sergio Talens-Oliag.
15494 2010-10-15 Robert Millan <rmh@gnu.org>
15496 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15497 guarantee compressed ones are processed first.
15499 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15501 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15502 grub_efiemu_autocore.
15504 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15506 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15508 (grub_console_getkey): Use correct jae opcode rather than ja.
15510 2010-10-12 Robert Millan <rmh@gnu.org>
15512 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15513 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15514 variable. All references updated.
15516 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15518 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15520 Correctly distinguish mdraid flavours.
15522 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15523 (insert_array): New argument raid.
15524 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15525 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15526 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15528 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15530 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15531 handling of special keys.
15533 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15535 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15536 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15538 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15540 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15541 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15543 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15544 Use right endpoint when querying descriptor.
15546 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15548 Clear out 0x80 color bit on EFI.
15550 Reported by: decoder and meta tech.
15552 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15553 (grub_console_setcolorstate): Clear out 0x80 bit.
15554 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15555 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15556 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15558 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15560 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15563 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15565 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15566 mo_file after freeing.
15568 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15570 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15572 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15574 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15577 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15579 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15582 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15584 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15586 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15587 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15588 and terminfo.h when needed.
15589 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15590 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15591 (terminfo): Enable only on terminfokernel.
15592 (extcmd): Likewise.
15593 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15594 * include/grub/lib/arg.h: Likewise.
15595 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15596 incorrect usage of ->.
15598 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15600 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15601 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15603 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15605 Fix coreboot compilation.
15607 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15608 Take VBE info into account even if only text is supported.
15609 (fill_vbe_info): Take into account the case when only VGA text
15611 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15612 on coreboot, multiboot and qemu.
15614 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15616 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15618 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15620 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15622 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15625 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15627 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15628 if they were BSD-style.
15630 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15632 * grub-core/boot/i386/pc/lnxboot.S: Replace
15633 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15634 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15636 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15638 Write embedding zone using Reed-Solomon.
15640 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15641 * grub-core/Makefile.am (rs_decoder.S): New target.
15642 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15643 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15644 (multiboot): Move to RS part.
15645 (post_reed_solomon): New label.
15646 (grub_boot_drive): Move to non-RS part since it's modified in memory
15648 Include rs_decoder.S.
15649 * grub-core/lib/reed_solomon.c: New file.
15650 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15652 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15653 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15654 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15655 * include/grub/partition.h (grub_partition_map): Change prototype of
15656 embed to allow returning additional sectors.
15657 * include/grub/reed_solomon.h: New file.
15658 * util/grub-setup.c (setup): Handle Reed-Solomon.
15660 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15662 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15663 i386 and x86-64 definedness tests.
15665 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15667 Fix generation of kernel_syms.lst
15669 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15672 2010-09-26 Robert Millan <rmh@gnu.org>
15674 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15676 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15677 the pool is an array of devices, iterate through it and return the
15678 first device that passes a stat() test (instead of blindly returning
15681 2010-09-26 Robert Millan <rmh@gnu.org>
15683 Build fixes for GNU/kFreeBSD.
15685 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15686 to programs that require ZFS conversion.
15687 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15688 kernels that don't have FLOPPY_MAJOR.
15690 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15692 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15694 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15696 Fix grub-emu build.
15698 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15699 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15700 mdraid09 and mdraid1x.
15702 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15704 Re-enable grub-extras.
15706 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15707 avoid confusing Automake. Run autogen only twice, once for the top
15708 level and once for grub-core. Add Makefile.util.def and
15709 Makefile.core.def from extra modules to the appropriate autogen
15710 invocations. If Makefile.common exists in an extra module, include
15711 it in both Makefile.util.am and grub-core/Makefile.core.am;
15712 similarly, include any Makefile.util.common file in Makefile.util.am
15713 and any Makefile.core.common file in grub-core/Makefile.core.am.
15714 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15715 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15716 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15717 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15719 * gentpl.py (gvar_add): Turn GVARS into a set.
15720 (global_variable_initializers): Sort global variables on output.
15721 (vars_init): New function.
15722 (first_time): Likewise.
15723 (library): Ensure that non-global variable initialisations are
15724 emitted before the first time we emit code for a library block.
15725 Append to variables rather than setting them. Only emit
15726 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15727 each conditional path.
15728 (program): installdir() emits an Autogen macro, so must be passed to
15729 var_add rather than gvar_add.
15731 (script): Likewise.
15732 (rules): New function, centralising handling for different target
15733 types. Set up Guile association lists for first_time and vars_init,
15734 and send most output to a diversion so that variable initialisations
15735 can be emitted first.
15736 (module_rules): Use new rules function.
15737 (kernel_rules): Likewise.
15738 (image_rules): Likewise.
15739 (library_rules): Likewise.
15740 (program_rules): Likewise.
15741 (script_rules): Likewise.
15742 (data_rules): Likewise.
15744 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15746 * .bzrignore: Add contrib and grub-core/contrib. Remove
15747 grub-core/Makefile.gcry.am.
15749 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15751 * grub-core/lib/LzFind.c: Add missing include.
15752 * grub-core/lib/LzmaEnc.c: Likewise.
15753 * grub-core/script/lexer.c: Likewise.
15754 * grub-core/script/yylex.l: Likewise.
15755 * util/grub-macho2img.c: Likewise.
15756 * util/grub-menulst2cfg.c: Likewise.
15757 * util/grub-mklayout.c: Likewise.
15758 * util/grub-mkpasswd-pbkdf2.c
15759 * util/grub-mkrelpath.c: Likewise.
15760 * util/resolve.c: Likewise.
15762 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15764 * Makefile.util.def (example_unit_test): Add
15765 grub-core/gnulib/libgnu.a.
15767 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15769 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15771 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15773 Support xz compression on yeeloong.
15775 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15776 * configure.ac: Check for LZMA.
15777 * grub-core/Makefile.core.def (xz_decompress): New target.
15778 (none_decompress): Likewise.
15779 * grub-core/boot/decompressor/minilib.c: New file.
15780 * grub-core/boot/decompressor/none.c: Likewise.
15781 * grub-core/boot/decompressor/xz.c: Likewise.
15782 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15783 * grub-core/kern/mips/cache_flush.S: Likewise.
15784 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15785 * grub-core/kern/mips/startup.S: Move first stage to ...
15786 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15788 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15789 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15790 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15791 Allocate statically.
15792 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15793 Allocate statically or use scratch. Don't check CRC32.
15794 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15795 Allocate statically. Don't check CRC32.
15796 * include/grub/decompressor.h: New file.
15797 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15799 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15800 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15801 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15802 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15803 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15804 * util/grub-mkimage.c (grub_compression_t): New type.
15805 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15806 (image_target_desc): New field default_compression.
15807 (image_targets): Adjust yeeloong targets.
15808 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15809 (compress_kernel): New parameter comp.
15810 (generate_image): Likewise. Handle new compression case.
15811 (options): New option --compression
15813 (main): Handle new option.
15815 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15817 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15819 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15821 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15822 typo in __i386__ conditional.
15824 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15826 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15829 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15831 Implement EFI and ACPI multiboot2 extensions.
15833 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15834 new tags as supported.
15835 (acpiv2_size): New function.
15836 (grub_multiboot_get_mbi_size): Take new tags into account.
15837 (grub_multiboot_make_mbi): Add new tags.
15838 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15840 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15842 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15843 Added missing configuration of USB device.
15845 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15847 * grub-core/normal/menu_entry.c (run): Make sure we always return
15850 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15852 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15853 NumberOfPages is UINT64 according to the UEFI specification, not
15854 UINTN. Fix printf format.
15856 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15858 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15859 `err' to grub_usb_err_t.
15860 Reported and tested by: KESHAV P.R.
15862 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15864 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15865 tpart non-const, so that we can assign to it. (Since this is a
15866 typedef, the constness refers to the pointer rather than what it
15869 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15871 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15872 $(top_srcdir)/grub-core/gnulib as well as
15873 $(top_builddir)/grub-core/gnulib.
15874 Reported by: KESHAV P.R.
15876 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15878 * util/grub-install.in: Fix the bootloader ID option to be
15879 consistently --bootloader-id, not --bootloader_id.
15880 Reported by: KESHAV P.R.
15882 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15884 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15885 check hash checksum." consistently translatable.
15887 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15889 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15892 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15894 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15895 (GRUB_MOD_INIT): Register sha1sum command.
15896 (GRUB_MOD_FINI): Unregister sha1sum command.
15898 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15900 Keep boot and grub directory names in sync with utils scripts
15902 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15903 * config.h.in: Add previous macros.
15904 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15905 * util/grub-install.in: Use $bootdir and $grubdir variables.
15907 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15909 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15910 convert partition names to disk names if the new `convert' parameter
15912 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15913 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15914 disk in its own right. This can happen with Xen disk images.
15916 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15918 * util/grub-editenv.c: Update strings to avoid warnings when generating
15920 * util/grub-setup.c: Likewise.
15922 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15924 * configure.ac: Change version to 1.99~beta0.
15926 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15928 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
15930 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
15932 * include/multiboot.h: Resynced with specification.
15933 * include/multiboot2.h: Likewise.
15935 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15937 Fix po directory handling.
15939 * configure.ac: Create po/Makefile.in rather than po/Makefile.
15940 * grub-core/gnulib/Makefile.am: Import gettext module.
15941 * m4/gnulib-cache.m4: Likewise.
15942 * m4/gnulib-comp.m4: Likewise.
15943 * m4/gettext.m4: New file, from gnulib.
15944 * m4/glibc2.m4: Likewise.
15945 * m4/iconv.m4: Likewise.
15946 * m4/intdiv0.m4: Likewise.
15947 * m4/intl.m4: Likewise.
15948 * m4/intldir.m4: Likewise.
15949 * m4/intlmacosx.m4: Likewise.
15950 * m4/intmax.m4: Likewise.
15951 * m4/inttypes-pri.m4: Likewise.
15952 * m4/lcmessage.m4: Likewise.
15953 * m4/lib-ld.m4: Likewise.
15954 * m4/lib-link.m4: Likewise.
15955 * m4/lib-prefix.m4: Likewise.
15956 * m4/lock.m4: Likewise.
15957 * m4/nls.m4: Likewise.
15958 * m4/po.m4: Likewise.
15959 * m4/printf-posix.m4: Likewise.
15960 * m4/progtest.m4: Likewise.
15961 * m4/threadlib.m4: Likewise.
15962 * m4/uintmax_t.m4: Likewise.
15963 * m4/visibility.m4: Likewise.
15964 * po/Makefile.am: Remove.
15965 * po/Makefile.in.in: New file, from gettext.
15966 ($(DOMAIN).pot-update): Support POTFILES-shell.
15967 * po/Makevars: New file.
15968 * po/POTFILES-shell: Rename to ...
15969 * po/POTFILES-shell.in: ... this. Update.
15970 * po/POTFILES: Rename to ...
15971 * po/POTFILES.in: ... this. Update.
15972 * po/Rules-quot: New file, from gettext.
15973 * po/boldquot.sed: Likewise.
15974 * po/en@boldquot.header: Likewise.
15975 * po/en@quot.header: Likewise.
15976 * po/insert-header.sin: Likewise.
15977 * po/quot.sed: Likewise.
15978 * po/remove-potcdate.sin: Likewise.
15980 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15982 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
15984 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15986 * util/grub.d/20_linux_xen.in: Use submenus.
15988 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
15992 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
15993 parameter submenu. All users updated.
15994 * grub-core/normal/main.c (free_menu): Rename to ...
15995 (grub_normal_free_menu): ... this. Made global.
15996 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
15998 * grub-core/normal/menu_entry.c (screen): New field submenu.
15999 (make_screen): Set submenu.
16000 (run): Open new context if requested.
16001 * include/grub/menu.h (grub_menu_entry): New field submenu.
16002 * include/grub/normal.h (grub_normal_free_menu): New proto.
16004 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16006 Menu entries extractor.
16008 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16010 (GRUB_MOD_INIT): Register new variants.
16011 (GRUB_MOD_FINI): Unregister new variants.
16012 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16013 into grub_cmd_legacy_source.
16014 (grub_cmd_legacy_source): Implement extractor variants.
16015 (GRUB_MOD_INIT): Register new variants.
16016 (GRUB_MOD_FINI): Unregister new variants.
16017 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16019 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16020 search as an extractor.
16021 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16022 test as an extractor.
16023 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16025 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16026 (grub_env_new_context): New function.
16027 (grub_env_context_open): Likewise.
16028 (grub_env_extractor_open): Likewise.
16029 (grub_env_extractor_close): Likewise.
16030 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16031 grub_extractor_level.
16032 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16033 * include/grub/env.h (grub_env_extractor_open): New proto.
16034 (grub_env_extractor_close): Likewise.
16035 * include/grub/normal.h (grub_extractor_level): New external variable.
16037 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16039 Make cutmem accept a region specification.
16040 Suggested by: Samuel Thibault
16042 * grub-core/mmap/mmap.c (parsemem): New function.
16043 (grub_cmd_cutmem): Handle new arguments.
16045 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16047 New command cutmem.
16049 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16050 (GRUB_MOD_INIT): Register new command.
16051 (GRUB_MOD_FINI): Unregister new command.
16053 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16055 Support some annoying BSD and Minix subpartitions.
16057 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16058 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16059 Properly handle concatenation.
16060 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16061 * grub-core/normal/completion.c (iterate_partition): Likewise.
16062 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16063 contain partition. All users updated.
16064 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16066 (grub_openbsdlabel_partition_map): Likewise.
16067 (bsdlabel_partition_map_iterate): Rename to ..
16068 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16069 (bsdlabel_partition_map_iterate): New function.
16070 (netopenbsdlabel_partition_map_iterate): Likewise.
16071 (netbsdlabel_partition_map_iterate): Likewise.
16072 (openbsdlabel_partition_map_iterate): Likewise.
16073 (GRUB_MOD_INIT): Register new partmaps.
16074 (GRUB_MOD_FINI): Unregister new partmaps.
16075 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16076 (grub_partition_msdos_iterate): ... this. All users updated.
16077 Don't support embedding other than in a minix partition.
16078 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16080 * include/grub/partition.h (grub_partition): New field msdostype.
16081 * util/grub-install.in: Handle openbsd and netbsd types being in
16084 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16086 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16088 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16089 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16090 (mdraid09): ... this.
16091 (mdraid1x): New module.
16092 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16093 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16095 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16097 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16100 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16102 * grub-core/commands/efi/lsefimmap.c: Correct header.
16105 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16107 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16108 as printf format strings; the translations might contain '%' which
16109 could cause a crash.
16111 * util/grub-fstest.c (argp_parser): Likewise.
16112 * util/grub-setup.c (argp_parser): Likewise.
16115 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16117 Use argp in grub-fstest.
16119 * util/grub-fstest.c: Don't include getopt.h.
16121 (root): New variable.
16122 (args_count): Likewise.
16124 (num_disks): Likewise.
16125 (images): Likewise.
16127 (debug_str): Likewise.
16129 (options): Transformed to argp.
16131 (main): Split argument parsing into ...
16132 (argp_parser): ... this. Changed to argp format.
16133 (argp): New variable.
16134 (main): Use argp_parse.
16136 2010-09-20 Tristan Gingold <gingold@free.fr>
16137 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
16138 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16140 * grub-core/commands/efi/lsefimmap.c: New file.
16141 * grub-core/Makefile.core.def (lsefimmap): New module.
16142 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16144 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16146 Pause the execution (10s max) if any errors are displayed so the user
16147 has a chance to see them.
16149 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16150 (grub_print_error): Increment grub_err_printed_errors.
16151 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16152 execution if any errors were displayed.
16153 (show_menu): Remove old code for pause.
16154 * grub-core/normal/menu_entry.c (run): Likewise.
16155 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16157 (grub_normal_get_char_counter): Likewise.
16158 * include/grub/err.h (grub_err_printed_errors): New external variable.
16159 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16161 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16163 Support multiboot VBE info.
16165 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16166 Take VBE info into account.
16167 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16168 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16169 Call fill_vbe_info when appropriate.
16170 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16171 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16173 (grub_multiboot_get_mbi_size): Take new tags into account.
16174 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16175 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16176 Call fill_vbe_tag when appropriate.
16177 (grub_multiboot_make_mbi): Properly align tags.
16178 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16180 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16182 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16184 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16186 Suport manual terminal geometry specification.
16188 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16189 Save state in grub_ofconsole_terminfo_output.
16190 (grub_ofconsole_term): Use grub_terminfo_getwh.
16191 (grub_ofconsole_getwh): Removed.
16192 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16193 (grub_serial_term): Use grub_terminfo_getwh.
16194 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16195 (options): New struct.
16196 (OPTION_*): New enum.
16197 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16198 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16200 (grub_terminfo_getwh): New proto.
16201 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16203 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16205 Handle legacy "terminal" command.
16207 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16209 (legacy_commands): Add terminal and title.
16210 (grub_legacy_parse): Handle terminal. Simplify title handling.
16212 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16214 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16215 parameters overflow.
16217 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16219 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16222 * docs/grub.texi (Shell-like scripting): Document `!'.
16223 (Network): Simplify using new i386-pc-pxe format. Mention
16228 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16230 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16231 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16234 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16236 * grub-core/commands/efi/lsefisystab.c: Correct header.
16237 * grub-core/commands/efi/lssal.c: Likewise.
16238 * grub-core/commands/testload.c: Likewise.
16240 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16242 * util/grub-mkrescue.in: Add explicit root argument to --set to
16243 prevent the UUID being interpreted as an argument to --set (matches
16244 previous change to prepare_grub_to_access_device).
16246 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16248 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16249 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16250 the verbosity of later #ifs.
16251 (find_partition_start): Define this function on FreeBSD too.
16252 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16254 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16257 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16259 * util/grub-editenv.c: Use argp instead of getopt.
16261 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16263 * util/grub-setup.c: Use argp instead of getopt.
16265 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16267 Use gnulib-tool to create gnulib source files.
16269 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16270 grub-core/gnulib directories
16271 * .bzignore: Add **/.deps and autogenerated gnulib files
16272 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16273 of gnulib macros, add grub-core/gnulib/Makefile
16274 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16275 include m4 directory to aclocal.
16276 * Makefile.util.def: Remove direct compilation of gnulib source files
16277 and use the new grub-core/gnulib/libgnu.a.
16278 * build-aux/config.rpath: move config.rpath from top directory to
16280 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16282 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16283 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16284 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16286 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16289 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16291 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16292 grub-core/genmod.sh and grub-core/gensyminfo.sh
16294 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16296 Add a test for echo command options.
16298 * tests/grub_cmd_echo.in: New test.
16299 * Makefile.util.def: Rules for new test.
16301 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16303 Remove crc.mod and move crc command to hashsum.mod.
16304 Remove lib/crc.c - users updated to use gcrypt implementation.
16306 * grub-core/commands/crc.c: Removed.
16307 * grub-core/Makefile.core.def (crc): Module removed.
16308 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16309 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16310 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16311 * grub-core/lib/crc.c: Removed.
16312 * include/grub/lib/crc.h: Removed.
16313 * Makefile.util.def (crc): Remove lib/crc.c
16314 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16315 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16316 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16317 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16318 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16319 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16321 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16323 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16325 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16327 Split config.h for util and core.
16329 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16330 (ADDR32): Likewise.
16331 (DATA32): Likewise.
16332 (BSS_START_SYMBOL): Likewise.
16333 (END_SYMBOL): Likewise.
16334 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16335 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16336 * config.h.in: New file.
16337 * configure.ac: Use config-util.h as config define file.
16338 Rename MACHINE into GRUB_MACHINE. All users updated.
16339 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16341 (NESTED_FUNC_ATTR): Likewise.
16342 Substitue new variables.
16343 (COND_HAVE_ASM_USCORE): New conditional.
16344 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16345 (kernel_syms.lst): Use ASM_PREFIX.
16346 * grub-core/kern/emu/console.c: Include config-util.h.
16347 * grub-core/kern/emu/misc.c: Likewise.
16348 * grub-core/kern/emu/mm.c: Likewise.
16349 * include/grub/emu/misc.h: Likewise.
16350 * include/grub/libgcc.h: Likewise.
16352 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16354 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16356 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16357 Fix GRUB_TERM_KEY_* constants usage.
16358 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16360 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16362 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16364 * grub-core/bus/usb/uhci.c: Remove empty define.
16365 (grub_uhci_check_transfer): Add missing cast.
16366 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16368 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16370 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16372 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16374 * grub-core/Makefile.core.def (legacycfg): Add
16375 lib/i386/pc/vesa_modes_table.c on emu.
16377 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16379 Reduce number of temporary files generated by build system.
16381 * grub-core/gencmdlist.sh: Removed.
16382 * grub-core/genfslist.sh: Removed.
16383 * grub-core/genhandlerlist.sh: Removed.
16384 * grub-core/genmodsrc.sh: Removed.
16385 * grub-core/genpartmaplist.sh: Removed.
16386 * grub-core/genparttoollist.sh: Removed.
16387 * grub-core/gentermiinallist.sh: Removed.
16388 * grub-core/genvideolist.sh: Removed.
16390 * grub-core/genmod.sh.in: New file.
16391 * grub-core/gensyminfo.sh.in: New file.
16393 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16394 * conf/Makefile.extra-dist: Update with new files.
16395 * gentpl.py: Remove rules related to unnecessary temporary files.
16396 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16398 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16400 * grub-core/bus/usb/uhci.c: Remove empty #define.
16401 * grub-core/genmoddep.awk: Updated with new syminfo format.
16402 * util/bash-completion.d/Makefile.am: Add config.log to
16405 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16407 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16409 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16411 * util/grub-mkconfig.in: Check the config script for syntax errors
16414 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16415 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16417 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16419 * util/grub-install.in: Add EFI and IEEE1275 support.
16420 * util/i386/efi/grub-install.in: Removed.
16421 * util/ieee1275/grub-install.in: Likewise.
16423 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16425 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16426 (grub_cmd_cmosclean): Likewise.
16427 (GRUB_MOD_INIT): Register command cmosclean.
16428 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16429 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16431 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16432 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16433 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16435 Add keyboard layouts support.
16437 * Makefile.util.def (grub-mklayout): New file.
16438 (grub-kbdcomp): New script.
16439 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16440 Add keyboard_layouts.h.
16441 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16442 commands/boot.c on yeeloong.
16443 (keylayouts): New module.
16444 * grub-core/bus/usb/ohci.c
16445 * grub-core/bus/usb/uhci.c
16446 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16447 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16448 (attach_root_port): Likewise.
16449 (poll_nonroot_hub): Likewise.
16450 (grub_usb_poll_devices): Likewise.
16451 (detach_device): Close transfer.
16452 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16454 (grub_usb_bulk_setup_readwrite): Likewise.
16455 (grub_usb_bulk_finish_readwrite): Likewise.
16456 * grub-core/commands/keylayouts.c: New file.
16457 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16458 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16460 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16461 support scancode 2.
16462 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16463 * include/grub/keyboard_layouts.h: New file.
16464 * util/grub-mklayout.c: New file.
16465 * util/grub-kbdcomp.in: Likewise.
16467 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16469 Unify memory types.
16471 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16472 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16474 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16475 (grub_upper_mem): Likewise.
16476 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16477 * include/grub/memory.h (grub_memory_type_t): New enum.
16480 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16482 * grub-core/Makefile.core.def (lsapm): New module.
16483 * grub-core/commands/i386/pc/lsapm.c: New file.
16484 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16485 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16487 * include/grub/i386/pc/apm.h: New file.
16488 * include/multiboot.h (multiboot_apm_info): New struct.
16490 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16492 GRUB-legacy configuration file support.
16494 * Makefile.util.def (grub-menulst2cfg): New util.
16495 * docs/man/grub-menulst2cfg.h2m: New file.
16496 * grub-core/Makefile.core.def (legacycfg): New module.
16497 * grub-core/commands/legacycfg.c: New file.
16498 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16499 (grub_normal_add_menu_entry): ... this.
16500 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16501 (grub_normal_set_password): ...this.
16502 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16503 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16504 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16505 * grub-core/lib/legacy_parse.c: New file.
16506 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16507 * include/grub/i386/pc/vesa_modes_table.h: New file.
16508 * include/grub/legacy_parse.h: Likewise.
16509 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16510 * util/grub-menulst2cfg.c: New file.
16512 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16514 * grub-core/kern/emu/hostdisk.c
16515 (convert_system_partition_to_system_disk): Initialise node.
16517 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16519 * grub-core/kern/emu/hostdisk.c
16520 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16522 Reported and based on patch by: Modestas Vainius.
16524 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16526 Fix DM-RAID probing with recent versions of device-mapper udev
16529 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16530 canonicalise device paths under /dev/mapper/.
16531 (convert_system_partition_to_system_disk): Compare the
16532 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16533 path, since device nodes under /dev/mapper/ are often symlinks.
16535 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16537 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16539 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16541 * configure.ac: Avoid some annoying error messages if freetype-config
16542 program is not found.
16544 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16546 Support RAID on virtio devices, and others.
16548 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16550 [__MINGW32__] (grub_find_device): ... this.
16551 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16552 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16553 reasonable default if dir is NULL.
16554 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16556 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16557 (grub_guess_root_device): Update callers.
16558 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16560 * util/raid.c (grub_util_getdiskname): Remove.
16561 (grub_util_raid_getmembers): Use grub_find_device rather than
16562 grub_util_getdiskname.
16564 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16566 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16567 needing to be compiled with serial support.
16568 (ls): Indicate that multiple files are accepted.
16569 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16570 indicate that multiple files are accepted.
16572 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16574 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16575 libgrub_a_init.c, and util/bash-completion.d/grub.
16577 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16579 * util/grub-setup.c (setup): Fix incorrect container semantics.
16581 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16583 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16585 Reported by: J. Nick Terry
16587 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16589 Move embedding routines to partmap sources files.
16591 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16592 [GRUB_UTIL]: New variable.
16593 (gpt_partition_map_iterate): Set part.parent.
16594 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16595 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16596 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16598 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16599 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16600 (grub_partition_map) [GRUB_UTIL]: New field embed.
16601 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16602 (setup): Use ->embed.
16604 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16606 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16608 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16609 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16611 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16613 Add function to get completions from usage.
16615 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16616 completions from usage. Use LC_ALL=C to get options properly.
16618 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16620 * grub-core/gnulib/basename-lgpl.c: Imported.
16621 * grub-core/gnulib/basename.c: Likewise.
16622 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16623 * grub-core/gnulib/dirname.c: Likewise.
16624 * grub-core/gnulib/dirname.h: Likewise.
16625 * grub-core/gnulib/stripslash.c: Likewise.
16627 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16629 * grub-core/gnulib/error.c: Resynced.
16630 * grub-core/gnulib/getopt.c: Likewise.
16631 * grub-core/gnulib/getopt_int.h: Likewise.
16632 * grub-core/gnulib/regex.h: Likewise.
16633 * grub-core/gnulib/regex_internal.c: Likewise.
16634 * grub-core/gnulib/regex_internal.h: Likewise.
16636 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16638 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16639 CRC calculations and validity checks.
16640 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16643 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16645 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16647 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16649 Fix incorrect echo options handling.
16650 Reported by: Yves Blusseau.
16652 * include/grub/command.h (grub_command_flags_t): New flags
16653 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16654 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16655 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16657 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16659 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16661 (GRUB_COMMAND_FLAG_MENU): Likewise.
16662 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16663 (GRUB_COMMAND_FLAG_TITLE): Removed.
16664 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16665 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16666 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16667 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16668 (grub_command_flags_t): New enum. All users updated.
16670 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16672 Fix solaris compilation.
16674 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16675 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16676 (grub-emu-list): Likewise.
16678 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16680 Remove deprecated root command.
16682 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16685 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16687 * util/i386/pc/grub-setup.c: Merge this ...
16688 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16689 * util/grub-setup.c: ... into this.
16690 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16693 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16695 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16698 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16700 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16703 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16705 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16706 explicit root argument to set to prevent UUID to be interpreted as
16709 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16711 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16713 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16715 Don't export grub_gate_a20.
16717 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16718 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16720 (grub_gate_a20): ... this. All users updated.
16721 * include/grub/i386/pc/init.h: Removed. All users updated.
16723 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16725 Create euro.pf2 which supports most European languages.
16727 * Makefile.am (grubdata_DATA): Add euro.pf2.
16728 (euro.pf2): New target.
16729 (CLEANFILES): Add euro.pf2.
16731 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16733 * configure.ac: Disable emu-usb by default to prevent inadvertent
16736 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16738 Disable usbserial on grub-emu since our libusb code isn't good enough
16741 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16742 (usbserial_pl2303): Likewise.
16743 (usbserial_ftdi): Likewise.
16745 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16747 * include/grub/disk.h (grub_disk): Remove has_partitions.
16749 * disk/loopback.c (grub_loopback): Remove has_partitions.
16751 (options): Remove partitions. All users updated.
16752 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16753 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16754 actual partition table is found.
16756 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16758 Remove readability checks (too many false negatives).
16760 * util/grub-install.in: Remove readability checks.
16761 * util/grub-mkconfig.in: Likewise.
16762 * util/grub.d/10_hurd.in: Likewise.
16763 * util/grub.d/10_kfreebsd.in: Likewise.
16764 * util/grub.d/10_linux.in: Likewise.
16765 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16768 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16770 Enable acpi shutdown on all ACPI platforms.
16772 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16773 on coreboo, multiboot and EFI.
16774 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16775 (grub_acpi_halt): Likewise.
16776 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16777 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16778 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16779 * grub-core/lib/i386/halt.c (grub_halt)
16780 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16782 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16784 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16787 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16789 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16790 * grub-core/video/efi_uga.c: Likewise.
16792 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16794 Filter devaliases and never open same device twice.
16796 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16797 (last_ihandle): Likewise.
16798 (ofdisk_hash_ent): New member shortest.
16799 (ofdisk_hash_add): Add canonical path too.
16800 (scan): New function.
16801 (grub_ofdisk_iterate): Iterate over hashed entries.
16802 (compute_dev_path): Don't add :0.
16803 (grub_ofdisk_open): Don't really open the disk.
16804 (grub_ofdisk_close): Avoid closing unrelated disk.
16805 (grub_ofdisk_read): Implement reopen logic.
16806 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16808 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16811 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16815 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16816 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16817 right address. Add sparc64_ieee1275_ldflags.
16818 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16819 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16820 to grub_host_to_target_addr
16821 (load_image): Likewise.
16823 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16825 * grub-core/normal/completion.c (complete_file): Handle device
16827 Fix based on patch by Doug Nazar.
16829 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16831 grub-mknetdir script.
16833 * Makefile.util.def (grub-mknetdir): New module.
16834 * tests/util/grub-shell.in: Support boot=net
16835 * util/grub-mknetdir.in: New file.
16837 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16839 videoinfo on non-vbe.
16841 * grub-core/Makefile.core.def (vbeinfo): Removed.
16842 (vbetest): Removed.
16843 (videoinfo): New module.
16844 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16845 * grub-core/commands/i386/pc/vbetest.c: Removed.
16846 * grub-core/commands/videoinfo.c: New file.
16847 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16849 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16851 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16852 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16853 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16854 mode_number. New parameter mode. All users updated.
16855 (grub_video_gop_iterate): New function.
16856 (grub_video_efi_gop): New member iterate.
16857 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16858 (grub_vbe_set_video_mode): Remove setting useless fields.
16859 (vbe2videoinfo): New function.
16860 (grub_video_vbe_iterate): Likewise.
16861 (grub_video_vbe_setup): Use vbe2videoinfo.
16862 (grub_video_vbe_print_adapter_specific_info): New function.
16863 (grub_video_vbe_adapter): New fields iterate and
16864 print_adapter_specific_info.
16865 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16867 (grub_video_mode_info): New field mode_number.
16868 (grub_video_adapter): New fields iterate and
16869 print_adapter_specific_info.
16871 2010-09-13 Tristan Gingold <gingold@free.fr>
16872 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16873 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16875 * grub-core/commands/efi/lsefisystab.c: New file.
16876 * grub-core/commands/efi/lssal.c: Likewise.
16877 * grub-core/Makefile.core.def (lsacpi): New module.
16878 (lsefisystab): Likewise.
16879 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16880 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16881 (grub_efi_sal_system_table): New struct.
16882 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16883 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16884 (grub_efi_sal_system_table_platform_features): Likewise.
16885 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16886 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16887 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16888 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16890 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16892 Support explicit user claim that a device is BIOS-visible.
16894 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16895 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16896 * grub-core/kern/emu/hostdisk.c
16897 (convert_system_partition_to_system_disk): Support mdX.
16898 (find_system_device): New parameter add. All users updated.
16899 (grub_util_biosdisk_is_present): New function.
16900 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16903 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16905 Search hints support.
16907 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16910 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16912 Bash completion script for util commands
16914 * Makefile.am: Add util/bash-completion.d directory
16915 * configure.ac: Likewise.
16916 * util/bash-completion.d/Makefile.am: New file.
16917 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16919 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16921 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16922 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16923 Reported by: Yves Blusseau.
16925 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16927 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16928 partition size and offset.
16930 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16932 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
16934 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16936 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
16938 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16940 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
16941 (grub_xvasprintf): Likewise.
16943 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16945 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
16947 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16949 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
16950 args ending with NULL.
16952 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16954 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
16957 2010-09-11 Szymon Janc <szymon@janc.net.pl>
16959 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
16961 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16963 Shutdown using ACPI.
16965 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
16966 * grub-core/commands/acpihalt.c: New file.
16967 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
16968 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
16969 (grub_acpi_halt): New proto.
16970 (GRUB_ACPI_SLP_EN): New const.
16971 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
16972 (GRUB_ACPI_OPCODE_*): New enum.
16973 (GRUB_ACPI_EXTOPCODE_*): Likewise.
16975 2010-09-11 Tristan Gingold <gingold@free.fr>
16976 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
16977 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16979 * commands/lsacpi.c: New file.
16980 * grub-core/Makefile.core.def (lsacpi): New module.
16981 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
16982 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
16983 (grub_acpi_madt_entry_header): New struct.
16984 (grub_acpi_madt): Likewise.
16985 (grub_acpi_madt_entry_interrupt_override): Likewise.
16986 (grub_acpi_madt_entry_sapic): Likewise.
16987 (grub_acpi_madt_entry_lsapic): Likewise.
16988 (grub_acpi_madt_entry_platform_int_source): Likewise.
16989 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
16990 (PRIuGRUB_UINT32_T): Likewise.
16991 (PRIxGRUB_UINT64_T): Likewise.
16993 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
16995 Implement loading palette on ieee1275_fb.
16997 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
16998 (have_setcolors): Likewise.
16999 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17000 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17001 (grub_video_ieee1275_set_palette): Implement.
17003 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17004 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
17006 * util/grub-install.in (grub_partition): New variable.
17007 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17008 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17009 Fixes a bug reported by Yves Blusseau.
17011 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17015 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17016 =grub_cpu_flush_cache on all mips and not only yeeloong.
17017 * configure.ac (COND_mips): New conditional.
17018 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17020 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17021 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17022 [GRUB_LINKER_HAVE_INIT]: New function.
17023 (grub_emu_post_init): Likewise.
17024 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17025 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17026 * include/grub/cache.h (_mips): Include mips/cache.h.
17027 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17028 LVM and RAID prototypes.
17029 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17030 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17033 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17035 * util/grub-install.in: Don't try to verify core.img until after
17036 running grub-mkimage to create it.
17038 2010-09-10 Robert Millan <rmh@gnu.org>
17040 * util/grub.d/10_hurd.in: Add misc readability checks.
17041 * util/grub.d/10_kfreebsd.in: Likewise.
17042 * util/grub.d/10_linux.in: Likewise.
17044 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17046 * util/grub-install.in: ${imgext} won't be defined here until the
17047 install branch is merged. For the meantime, only verify core.img on
17048 i386-pc and sparc64-ieee1275 platforms.
17050 2010-09-10 Robert Millan <rmh@gnu.org>
17052 Solaris support in grub_find_zpool_from_dir(). Thanks
17053 Seth Goldberg for referring to getextmntent() facility.
17055 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17057 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17059 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17060 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17061 method for finding zpool name.
17063 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17065 grub-fstest needs the host and hostfs modules while other utilities
17066 actively require those modules to be absent, so grub-fstest needs
17067 its own initialisation and finalisation code.
17069 * Makefile.am (grub_fstest.pp): New target.
17070 (grub_fstest_init.lst): Likewise.
17071 (grub_fstest_init.c): Likewise.
17072 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17074 2010-09-10 Robert Millan <rmh@gnu.org>
17076 * configure.ac: Check for `struct statfs.f_fstypename' and
17077 `struct statfs.f_mntfromname'.
17079 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17080 kFreeBSD-specific code.
17082 2010-09-10 Robert Millan <rmh@gnu.org>
17084 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17085 on ZFS. Now non-main filesystems are supported as / too.
17087 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
17089 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17090 and grub-core/disk/host.c to ...
17091 (grub-fstest): ... here. Having the host disk implementation
17092 present confuses grub-probe and other utility programs.
17094 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17095 when writing to a file, not when writing to stdout.
17097 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17099 * tests/partmap_test.in: New test for partitions.
17100 * Makefile.util.def: Rules for new test.
17102 2010-09-09 Robert Millan <rmh@gnu.org>
17104 * util/grub-probe.c (probe): Fix a pair of unhandled error
17107 2010-09-09 Robert Millan <rmh@gnu.org>
17109 Basic Btrfs support (detection and UUID).
17111 * grub-core/fs/btrfs.c: New file.
17112 * Makefile.util.def (library): Register btrfs.c.
17113 * grub-core/Makefile.core.def: Likewise.
17115 2010-09-08 Robert Millan <rmh@gnu.org>
17117 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17118 with (optional) parameters to specify device and relative path.
17119 * util/grub-install.in: Use is_path_readable_by_grub() to
17120 verify readability of a few critical files.
17121 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17122 verify readability of grub.cfg.new.
17124 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17126 Split minix.mod into minix.mod and minix2.mod.
17128 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17129 * grub-core/Makefile.core.def (minix2): New module.
17130 * grub-core/fs/minix.c: Use definitions instead of runtime version
17132 * grub-core/fs/minix2.c: New file.
17134 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17136 Add new --boot-directory option to replace --root-directory
17138 * util/grub-install.in: Add new --boot-directory option
17139 * util/grub-reboot.in: Likewise.
17140 * util/grub-set-default.in: Likewise.
17142 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17144 * util/grub-mkconfig.in: Use new variable.
17146 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17148 * configure.ac: Define some useful variables.
17150 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17152 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17153 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17154 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17155 Use terminfo and don't use cursor-on/cursor-off unless it's known
17157 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17158 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17160 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
17162 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17163 starts with "(,", fill the drive containing the loaded image in
17164 between those two characters, but expect that a full partition
17165 specification including partition map names will follow.
17167 2010-09-08 Robert Millan <rmh@gnu.org>
17169 * configure.ac: Remove `--enable-grub-fstest' option.
17170 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17172 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17173 `grub-fstest' instead of `grub-probe' for readability verification.
17174 * util/grub-probe.c (probe): Remove readability verification kludge.
17176 2010-09-08 Robert Millan <rmh@gnu.org>
17178 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17179 initializing `GRUB_FS'.
17181 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17183 Not command (!) support to GRUB script.
17185 * tests/grub_script_not.in: New test.
17186 * Makefile.util.def: Rules for new test.
17188 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17189 ! command as a special case.
17190 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17192 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17194 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17197 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17199 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17201 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17203 * docs/grub.texi (Shell-like scripting): Documentation for break,
17204 continue, shift and return commands.
17206 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17208 Rename CD-ROM to cd on BIOS.
17210 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17212 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17214 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17216 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17217 * util/grub-probe.c (main): Likewise.
17218 * util/i386/pc/grub-setup.c (main): Likewise.
17219 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17220 Reported and debugged by: alexxy
17222 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17224 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17227 2010-09-05 Jo Shields <directhex@apebox.org>
17229 * util/grub.d/30_os-prober.in: Add missing classes.
17231 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17233 * docs/grub.texi (Theme file format): Document new position format.
17235 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17237 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17238 a table. Use @code instead of @verbatim.
17240 2010-09-05 Colin D Bennett <colin@gibibit.com>
17242 Gfxmenu documentation.
17244 * docs/grub.texi (Theme file format): New chapter.
17246 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17248 * grub-core/Makefile.core.def (xzio): New module.
17249 * grub-core/io/xzio.c: New file.
17250 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17251 * grub-core/lib/xzembed/xz_config.h: Likewise.
17252 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17253 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17254 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17255 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17256 * grub-core/lib/xzembed/xz_private.h: Likewise.
17257 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17258 * include/grub/file.h (grub_file_filter_id): New compression filter
17259 GRUB_FILE_FILTER_XZIO.
17261 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17263 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17264 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17267 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17269 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17270 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17272 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17274 Uncompressed checksum support.
17276 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17277 (check_list): New parameter uncompress.
17278 (grub_cmd_hashsum): Handle --uncompress.
17280 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17282 Reintroduce testload.
17284 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17286 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17287 (GRUB_MOD_INIT): New function.
17288 (GRUB_MOD_FINI): Likewise.
17289 * grub-core/Makefile.core.def (testload): New module.
17291 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17293 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17294 (uint8_t): New type.
17295 (uint16_t): Likewise.
17296 (uint32_t): Likewise.
17297 (uint64_t): Likewise.
17299 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17301 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17303 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17305 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17307 (grub_gzfile_open): Removed. All users updated.
17308 (GRUB_MOD_INIT): New function.
17309 (GRUB_MOD_FINI): Likewise.
17310 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17311 (grub_file_filters_enabled): Likewise.
17312 (grub_file_open): Handle filters.
17313 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17314 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17315 * include/grub/file.h (grub_file_filter_id_t): New type.
17316 (grub_file_filter_t): Likewise.
17317 (grub_file_filters_all): New extern variable.
17318 (grub_file_filters_enabled): Likewise.
17319 (grub_file_filter_register): New inline function.
17320 (grub_file_filter_unregister): Likewise.
17321 (grub_file_filter_disable): Likewise.
17322 (grub_file_filter_disable_compression): Likewise.
17323 * include/grub/gzio.h: Removed.
17325 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17327 Filename expansion support for wildcards in GRUB script.
17329 * tests/grub_script_expansion.in: New test.
17330 * Makefile.util.def: Rule for new test.
17332 * grub-core/commands/wildcard.c: New file, implements filename
17333 expansion support for GRUB script.
17334 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17335 * grub-core/script/argv.c: Cosmetic changes.
17336 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17337 Refactored to perform wildcard expansion on arguments.
17338 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17341 * tests/util/grub-shell.in: Fix quoting for read input.
17343 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17345 Support for updating environment variables with matched substrings
17348 * tests/grub_cmd_regexp.in: New test.
17349 * Makefile.util.def: Rule for new test.
17351 * grub-core/commands/regexp.c: New option -s to update environment
17352 variables with regexp matches.
17354 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17356 * include/grub/file.h (grub_file): New member not_easly_seekable.
17357 (grub_file_seekable): New inline function.
17358 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17360 (grub_gzio_open): Set not_easly_seekable.
17361 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17362 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17364 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17366 Support for options to appear multiple times on cmdline.
17368 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17369 * grub-core/commands/extcmd.c: Support for repeatable option.
17370 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17371 repeatable option support.
17373 Refactor menuentry into a regular command.
17375 * grub-core/commands/menuentry.c: New file, menuentry command
17377 * grub-core/Makefile.core.def: Rule update for normal.mod.
17378 * grub-core/normal/main.c: Moved menuentry creation to
17379 grub-core/commands/menuentry.c.
17380 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17381 (grub_menu_execute_entry_real): Removed.
17382 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17384 (grub_script_execute_menuentry): Removed.
17385 * grub-core/script/parser.y (menuentry): Removed.
17386 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17387 * grub-core/script/yylex.l (menuentry): Removed.
17388 * include/grub/menu.h (grub_menu_init): New prototype.
17389 (grub_menu_fini): New prototype.
17390 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17391 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17392 (grub_script_execute_sourcecode): New prototype.
17394 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17396 "return" command for GRUB script functions.
17398 * tests/grub_script_return.in: New test.
17399 * Makefile.util.def: Rules for new test.
17401 * grub-core/script/execute.c (grub_script_return): New function.
17402 * grub-core/script/main.c: Register/unregister return commaond.
17403 * include/grub/script_sh.h (grub_script_return): New prototype.
17405 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17407 "setparams" command to update positional parameters.
17409 * tests/grub_script_setparams.in: New test.
17410 * Makefile.util.def: Rules for new test.
17412 * grub-core/script/argv.c (grub_script_argv_make): New function.
17413 * grub-core/script/execute.c (replace_scope): New function.
17414 (grub_script_setparams): New function.
17415 * grub-core/script/lexer.c: Remove unused variables.
17416 * grub-core/script/main.c: Register/unregister setparams command.
17417 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17418 (grub_script_setparams): New prototype.
17420 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17422 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17425 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17427 Support for passing block of commands as an argument to extcmds.
17429 * Makefile.util.def: Rules for new test.
17430 * tests/grub_script_blockarg.in: New test.
17431 * grub-core/tests/test_blockarg.c: New file, block argument
17432 command used in the test.
17434 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17435 (grub_register_extcmd_prio): New function prototype.
17436 (grub_extcmd_dispatcher): New function prototype.
17437 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17439 * include/grub/script_sh.h (struct grub_script): New members
17440 `children', `next_siblings' and `refcnt' for block arguments and
17441 reference counting.
17442 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17443 (grub_script_arg): New member `script' for block argument.
17444 (grub_script_argv): New member `script' for block argument.
17445 (grub_parser_param): New member `scripts' for block argument.
17446 (grub_script_mem_free): New extern function prototype.
17447 (grub_script_ref): New function prototype.
17448 (grub_script_unref): New function prototype.
17450 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17451 extcmd form to support block arguments.
17452 * grub-core/script/argv.c: Block arguments support.
17453 * grub-core/script/execute.c: Likewise.
17454 * grub-core/script/lexer.c: Likewise.
17455 * grub-core/script/main.c: Likewise.
17456 * grub-core/script/script.c: Likewise.
17457 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17460 * grub-core/commands/acpi.c: Update extcmd implementations with
17461 grub_extcmd_context_t.
17462 * grub-core/commands/cat.c: Likewise.
17463 * grub-core/commands/echo.c: Likewise.
17464 * grub-core/commands/extcmd.c: Likewise.
17465 * grub-core/commands/hashsum.c: Likewise.
17466 * grub-core/commands/hdparm.c: Likewise.
17467 * grub-core/commands/help.c: Likewise.
17468 * grub-core/commands/hexdump.c: Likewise.
17469 * grub-core/commands/i386/cpuid.c: Likewise.
17470 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17471 * grub-core/commands/i386/pc/halt.c: Likewise.
17472 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17473 * grub-core/commands/iorw.c: Likewise.
17474 * grub-core/commands/keystatus.c: Likewise.
17475 * grub-core/commands/loadenv.c: Likewise.
17476 * grub-core/commands/ls.c: Likewise.
17477 * grub-core/commands/lspci.c: Likewise.
17478 * grub-core/commands/memrw.c: Likewise.
17479 * grub-core/commands/probe.c: Likewise.
17480 * grub-core/commands/search_wrap.c: Likewise.
17481 * grub-core/commands/setpci.c: Likewise.
17482 * grub-core/commands/sleep.c: Likewise.
17483 * grub-core/disk/loopback.c: Likewise.
17484 * grub-core/hello/hello.c: Likewise.
17485 * grub-core/loader/i386/bsd.c: Likewise.
17486 * grub-core/loader/xnu.c: Likewise.
17487 * grub-core/term/gfxterm.c: Likewise.
17488 * grub-core/term/serial.c: Likewise.
17489 * grub-core/tests/lib/functional_test.c: Likewise.
17491 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17493 Multi-line quoted strings support.
17495 * grub-core/script/lexer.c (append_newline): Removed.
17496 (grub_script_lexer_yywrap): Refactored.
17497 (grub_script_lexer_init): Refactored.
17498 * grub-core/script/yylex.l (yywrap): New function.
17499 (grub_lexer_resplit): New function.
17500 (grub_lexer_unput): New function.
17501 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17503 * tests/grub_script_echo1.in: Added few more testcases.
17505 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17507 * grub-core/kern/misc.c: Don't add abort alias in utils.
17508 Reported by: echoline.
17510 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17512 Add missing files into "make dist" tarball for other platforms.
17514 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17515 * conf/Makefile.common (dist_noinst_DATA): New variable.
17516 * conf/Makefile.extra-dist: Added missing make dist files.
17517 * grub-core/Makefile.core.def: Likewise.
17519 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17521 Compress grub_prefix.
17523 * grub-core/boot/i386/pc/lnxboot.S: Use
17524 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17525 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17526 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17527 GRUB_MACHINE_PREFIX_END. All users updated.
17528 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17529 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17531 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17532 * util/grub-mkimage.c (image_target_desc): Change data_end to
17533 prefix_end. All users updated.
17535 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17537 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17539 (grub_openbsd_boot): Likewise.
17540 (grub_netbsd_boot): Likewise.
17541 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17542 (grub_xnu_boot): Likewise.
17544 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17546 * configure.ac: Clean LIBS variable after tests.
17548 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17550 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17552 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17554 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17555 echo if libdevmapper will be used.
17557 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17559 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17560 constant for the same file.
17562 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17564 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17566 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17568 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17571 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17573 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17574 required by the boot protocol.
17576 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17577 ebp and edi members.
17578 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17579 state.ebp and state.edi.
17580 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17581 %ebp and %edi according to grub_relocator32_ebp and
17582 grub_relocator32_edi respectively.
17583 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17586 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17588 Add i386-pc-pxe image target.
17590 * util/grub-mkimage.c (image_target_desc): New enum value
17592 (image_targets): New target i386-pc-pxe.
17593 (generate_image): Handle i386-pc-pxe image.
17595 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17599 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17600 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17602 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17603 (grub_pxe_pxenv): Correct type.
17605 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17607 * NEWS: Document most of the important changes since 1.98.
17609 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17611 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17612 generated manual page) a little.
17614 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17616 * docs/grub.texi: Add myself as an author.
17618 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17620 * Makefile.util.def (libgrub.a): Add missing sunpc.
17621 Reported by: Seth Goldberg.
17623 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17625 Interrupt wrapping and code simplifications.
17627 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17628 x86_noieee1275 which are functionaly equivalent in this case.
17629 (grub-install): Make source on each platform explicit. Enable on
17631 * gentpl.py (x86_efi_pc): Removed group.
17632 (x86_noefi): Likewise.
17633 (i386_noefi): Likewise.
17634 (x86_noieee1275): Likewise.
17635 (i386_noieee1275): Likewise.
17636 (i386_noefi_noieee1275): Likewise.
17637 (i386_pc_qemu_coreboot): Likewise.
17638 (i386_coreboot_multiboot): Likewise.
17639 (i386_pc_coreboot_multiboot_qemu): Likewise.
17640 (x86_noefi_mips): Likewise.
17641 (noieee1275): Likewise.
17642 (ieee1275_mips): Likewise.
17643 (noemu_noieee1275): Likewise.
17646 (videoinkernel): Likewise.
17647 (videomodules): Likewise.
17648 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17649 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17650 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17651 include/grub/loader.h, include/grub/msdos_partition.h,
17652 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17653 include/grub/machine/console.h, include/grub/machine/vga.h,
17654 include/grub/machine/vbe.h, include/grub/machine/init.h,
17655 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17656 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17657 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17658 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17659 * grub-core/Makefile.core.def (kernel): Explicit the source for
17660 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17661 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17662 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17663 Use videoinkernel tag.
17664 (usb): Enable on all usb.
17665 (usbserial_common): Likewise.
17666 (usbserial_pl2303): Likewise.
17667 (usbserial_ftdi): Likewise.
17668 (uhci): Enable on all x86.
17669 (ohci): Enable on all pci.
17670 (cmostest): Enable on all CMOS.
17671 (acpi): Include commands/acpi.c on all platforms.
17672 (halt): Add relevant lib/*/halt.c.
17673 (hdparm): Enable on all pci.
17675 (usbtest): Enable on all usb.
17676 (ata): Enable on all pci.
17677 (ata_pthru): Likewise.
17678 (usbms): Enable on all usb.
17679 (usb_keyboard): Likewise.
17680 (font): Use tag videomodules.
17682 (datetime): Use tag cmos. Enable on all noemu.
17683 (mmap): Use tags common and x86.
17684 (gfxterm): Use tag videomodules.
17685 (bitmap): Likewise.
17686 (bitmap_scale): Likewise.
17687 (video_fb): Likewise.
17689 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17690 adjust padding accordingly. All users updated.
17691 (grub_ohci_transaction): Fix bad format specification.
17692 (GRUB_MOD_INIT): Add asserts for struct size.
17693 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17694 (grub_alloc_td): Likewise.
17695 (grub_free_queue): Likewise.
17696 (grub_uhci_transfer): Likewise.
17697 (grub_uhci_transaction): Fix bad format specification.
17698 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17699 (grub_usb_bulk_readwrite): Likewise.
17700 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17701 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17703 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17705 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17706 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17707 Transformed into C.
17708 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17709 Moved from here ...
17710 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17711 ... here. Transformed into C. Made static.
17712 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17713 Moved from here ...
17714 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17715 ... here. Transformed into C. Made static.
17716 * grub-core/kern/i386/pc/startup.S
17717 (grub_biosdisk_check_int13_extensions): Moved from here ...
17718 * grub-core/disk/i386/pc/biosdisk.c
17719 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17721 * grub-core/kern/i386/pc/startup.S
17722 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17723 * grub-core/disk/i386/pc/biosdisk.c
17724 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17725 Transformed into C. Made static.
17726 * grub-core/kern/i386/pc/startup.S
17727 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17728 * grub-core/disk/i386/pc/biosdisk.c
17729 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17730 Transformed into C. Made static.
17731 * grub-core/kern/i386/pc/startup.S
17732 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17733 * grub-core/disk/i386/pc/biosdisk.c
17734 (grub_biosdisk_get_diskinfo_standard): ... here.
17735 Transformed into C. Made static.
17736 * grub-core/kern/i386/pc/startup.S
17737 (grub_biosdisk_get_num_floppies): Moved from here ...
17738 * grub-core/disk/i386/pc/biosdisk.c
17739 (grub_biosdisk_get_num_floppies): ... here.
17740 Transformed into C. Made static.
17741 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17743 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17744 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17745 Transformed into C. Made static.
17746 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17747 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17748 Transformed into C. Made static.
17749 * grub-core/kern/i386/ieee1275/init.c: Removed.
17750 * grub-core/kern/i386/misc.S: Likewise.
17751 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17752 Splitted from here ...
17753 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17754 Transformed into C. Made static. All users updated.
17755 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17756 Transformed into C. Made static. All users updated.
17757 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17759 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17760 Transformed into C. Made static. All users updated.
17761 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17763 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17764 Transformed into C. Made static. All users updated.
17765 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17766 Removed (replaced by C version).
17767 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17769 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17770 Transformed into C. Made static.
17771 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17773 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17774 ... here. Transformed into C.
17775 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17777 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17778 ... here. Transformed into C.
17779 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17781 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17782 ... here. Transformed into C. Made static.
17783 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17785 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17786 ... here. Transformed into C.
17787 * grub-core/kern/i386/pc/startup.S
17788 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17789 * grub-core/video/i386/pc/vbe.c
17790 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17791 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17793 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17794 ... here. Transformed into C.
17795 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17797 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17798 ... here. Transformed into C.
17799 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17801 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17802 ... here. Transformed into C.
17803 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17805 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17806 ... here. Transformed into C.
17807 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17809 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17810 ... here. Transformed into C. Made static.
17811 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17813 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17814 ... here. Transformed into C. Made static.
17815 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17817 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17818 ... here. Transformed into C. Made static.
17819 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17820 pxe_rm_entry as third argument.
17821 (grub_bios_interrupt): New function.
17822 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17823 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17824 of calling grub_stop.
17825 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17826 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17827 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17828 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17829 * grub-core/lib/i386/halt.c: Moved from here ...
17830 * grub-core/lib/i386/halt.c: ... here.
17831 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17832 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17833 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17835 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17836 * include/grub/i386/coreboot/init.h: Removed.
17837 * include/grub/i386/multiboot/init.h: Likewise.
17838 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17839 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17840 * include/grub/i386/pc/int.h: New file.
17841 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17842 (grub_pxe_scan): Removed.
17843 (grub_pxe_call): Update prototype.
17844 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17846 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17847 * include/grub/i386/qemu/init.h: Removed.
17848 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17850 (grub_halt): Likewise.
17851 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17852 (grub_reboot): Likewise.
17853 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17854 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17855 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17857 2010-08-30 Robert Millan <rmh@gnu.org>
17859 * NEWS: Document addition of ZFS support in `grub-install' and
17862 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17864 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17867 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17869 Remove leftover embedding of font objects.
17871 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17872 * util/grub-install.in (font): Removed.
17873 * util/grub-mkimage.c (generate_image): Remove font support. All users
17876 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17878 Remove leftover embedding of font objects.
17880 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17881 * util/grub-install.in (font): Removed.
17882 * util/grub-mkimage.c (generate_image): Remove font support. All users
17885 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17887 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17888 Reported by: Ian Turner
17890 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17892 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17893 timeout to avoid indefinite boot stalling.
17895 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17897 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17898 (grub_env_write_color_highlight): Likewise.
17900 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17902 * grub-core/normal/term.c (print_more): Return to normal and not
17903 to standard state after printing "---MORE---".
17905 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17907 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17908 Mask out the bit 0x80 since it has other meaning that specifiing color.
17910 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17912 New relocator. Allows for more kernel support and more straightforward
17915 * Makefile.am (BOOTTARGET): New variable.
17916 (QEMU32): Likewise.
17917 (linux.init.x86_64): New target.
17918 (linux.init.i386): Likewise.
17919 (multiboot.elf): Likewise.
17920 (kfreebsd.elf): Likewise.
17921 (kfreebsd.aout): Likewise.
17922 (pc-chainloader.elf): Likewise.
17923 (pc-chainloader.bin): Likewise.
17924 (ntldr.elf): Likewise.
17925 (ntldr.bin): Likewise.
17926 (multiboot2.elf): Likewise.
17927 (kfreebsd.init.x86_64): Likewise.
17928 (kfreebsd.init.i386): Likewise.
17929 (knetbsd.init.i386): Likewise.
17930 (kopenbsd.init.i386): Likewise.
17931 (knetbsd.init.x86_64): Likewise.
17932 (kopenbsd.init.x86_64): Likewise.
17933 (linux-initramfs.i386): Likewise.
17934 (linux-initramfs.x86_64): Likewise.
17935 (kfreebsd-mfsroot.i386.img): Likewise.
17936 (knetbsd.image.i386): Likewise.
17937 (kopenbsd.image.i386): Likewise.
17938 (kopenbsd.image.x86_64): Likewise.
17939 (knetbsd.miniroot-image.i386.img): Likewise.
17940 (kfreebsd-mfsroot.x86_64.img): Likewise.
17941 (knetbsd.image.x86_64): Likewise.
17942 (knetbsd.miniroot-image.x86_64.img): Likewise.
17943 (kfreebsd-mfsroot.i386.gz): Likewise.
17944 (bootcheck-kfreebsd-i386): Likewise.
17945 (kfreebsd-mfsroot.x86_64.gz): Likewise.
17946 (bootcheck-kfreebsd-x86_64): Likewise.
17947 (knetbsd.miniroot-image.i386.gz): Likewise.
17948 (bootcheck-knetbsd-i386): Likewise.
17949 (bootcheck-kopenbsd-i386): Likewise.
17950 (bootcheck-kopenbsd-x86_64): Likewise.
17951 (knetbsd.miniroot-image.x86_64.gz): Likewise.
17952 (bootcheck-knetbsd-x86_64): Likewise.
17953 (bootcheck-linux-i386): Likewise.
17954 (bootcheck-linux-x86_64): Likewise.
17955 (bootcheck-linux16-i386): Likewise.
17956 (bootcheck-linux16-x86_64): Likewise.
17957 (bootcheck-multiboot): Likewise.
17958 (bootcheck-multiboot2): Likewise.
17959 (bootcheck-kfreebsd-aout): Likewise.
17960 (bootcheck-pc-chainloader): Likewise.
17961 (bootcheck-ntldr): Likewise.
17962 (CLEANFILES): Add new targets.
17963 (BOOTCHECKS): New variable.
17964 (.PHONY): Add bootchecks.
17965 (SUCCESSFUL_BOOT_STRING): New variable.
17966 (BOOTCHECK_TIMEOUT): Likewise.
17967 (bootcheck): New target
17968 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
17969 * configure.ac: Correct efiemu excuse.
17970 * docs/grub.texi (Supported kernels): New chapter.
17971 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
17972 include/grub/mm_private.h. Simplify inclusion of
17973 include/grub/boot.h, include/grub/loader.h
17974 and include/grub/msdos_partition.h
17975 (KERNEL_HEADER_FILES) [i386_coreboot]:
17976 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
17977 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
17978 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
17979 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
17980 include/grub/machine/loader.h.
17981 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
17982 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
17984 (pci.mod): Enable on i386-multiboot.
17985 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
17986 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
17988 (relocator.mod): Rewritten.
17989 (aout.mod): Enable on all x86.
17990 (bsd.mod): Likewise.
17991 (ntldr.mod): New module.
17992 (linux.mod): Use loader/i386/linux.c on all x86.
17993 (xnu.mod): Enable on all x86.
17994 (vga_text.mod): disable on EFI and QEMU.
17995 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
17996 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
17997 * grub-core/efiemu/loadcore.c: Likewise.
17998 * grub-core/efiemu/main.c: Likewise.
17999 (grub_efiemu_exit_boot_services): Removed.
18000 (grub_efiemu_finish_boot_services): Likewise.
18001 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18003 * grub-core/efiemu/i386/nocfgtables.c: New file.
18004 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18005 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18006 (grub_efi_finish_boot_services): Moved from here ...
18007 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18008 Fille finish memory map and related data.
18009 (finish_mmap_buf): New variable.
18010 (grub_efi_uintn_t finish_mmap_size): Likewise.
18011 (grub_efi_uintn_t finish_key): Likewise.
18012 (grub_efi_uintn_t finish_desc_size): Likewise.
18013 (grub_efi_uint32_t finish_desc_version): Likewise.
18014 (grub_efi_is_finished): Likewise.
18015 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18017 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18018 (grub_elf64_phdr_iterate): Likewise.
18019 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18020 (grub_os_area_size): Likewise.
18021 (grub_machine_init): Don't reserve os area.
18022 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18023 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18024 * grub-core/kern/i386/loader.S: Removed.
18025 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18026 (grub_os_area_size): Likewise.
18027 (grub_machine_init): Don't reserve os area.
18028 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18029 Don't call grub_dl_unload_all.
18030 Don't include loader.S.
18031 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18032 Declare the memory after _end as available.
18033 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
18034 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
18035 (GRUB_MM_ALLOC_MAGIC): Moved from here...
18036 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18037 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18038 * include/grub/mm_private.h (grub_mm_header): ... here.
18039 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18040 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
18041 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18042 (grub_mm_region): ..here. Removed addr. Added pre_size.
18044 * grub-core/kern/mm.c (base): Renamed to ...
18045 (grub_mm_base): ... this. Made global.
18046 (grub_real_malloc): Alloc from end of region.
18047 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18048 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18049 * grub-core/kern/powerpc/cache_flush.S: ... here.
18050 * grub-core/lib/efi/relocator.c: New file.
18051 * grub-core/lib/i386/relocator.c: Rewritten.
18052 * grub-core/lib/i386/relocator16.S: New file.
18053 * grub-core/lib/i386/relocator32.S: Likewise.
18054 * grub-core/lib/i386/relocator64.S: Likewise.
18055 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18056 * grub-core/lib/i386/relocator_common.S: New file.
18057 * grub-core/lib/ieee1275/relocator.c: Likewise.
18058 * grub-core/lib/mips/relocator.c: Rewritten.
18059 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18060 stylistic adjustments.
18061 * grub-core/lib/powerpc/relocator.c: New file.
18062 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18063 * grub-core/lib/relocator.c: Rewritten.
18064 * grub-core/lib/x86_64/relocator_asm.S: New file.
18065 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18066 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18067 (bsd_tag): New struct.
18068 (tags): New variable.
18069 (tags_last): Likewise.
18070 (netbsd_module): New struct.
18071 (netbsd_mods): New variable.
18072 (netbsd_mods_last): Likewise.
18073 (openbsd_opts): New parameter "serial".
18074 (OPENBSD_SERIAL_ARG): New definition.
18075 (netbsd_opts): New parameter "serial".
18076 (NETBSD_SERIAL_ARG): New definition.
18077 (grub_freebsd_add_meta): Reorganised into ...
18078 (grub_bsd_add_meta): ...this. All users updated.
18079 (grub_freebsd_add_mmap): Reorganised into ...
18080 (generate_e820_mmap): ...this...
18081 (grub_bsd_add_mmap): ...and this. All users updated.
18082 (grub_freebsd_list_modules): Use tags.
18083 (grub_netbsd_add_meta_module): New function.
18084 (grub_netbsd_list_modules): Likewise.
18085 (grub_freebsd_boot): Use relocator and finish EFI.
18086 (grub_openbsd_boot): Likewise.
18087 (grub_netbsd_setup_video): New function.
18088 (grub_netbsd_add_modules): Likewise.
18089 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18091 (grub_bsd_unload): Unload tags.
18092 (grub_bsd_load_aout): Use relocator.
18093 (grub_bsd_elf32_size_hook): New function.
18094 (grub_bsd_elf32_hook): Use relocator.
18095 (grub_bsd_elf64_size_hook): New function.
18096 (grub_bsd_elf64_hook): Use relocator.
18097 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18098 (grub_bsd_load): Zero-out openbsd_ramdisk.
18099 (grub_bsd_load): Use relocator.
18100 (grub_cmd_openbsd): Support serial.
18101 (grub_cmd_netbsd): Support modules.
18102 (grub_cmd_freebsd_module): Use relocator.
18103 (grub_netbsd_module_load): New function.
18104 (grub_cmd_netbsd_module): Likewise.
18105 (grub_cmd_openbsd_ramdisk): Likewise.
18106 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18108 (GRUB_MOD_FINI): Unregister new commands.
18109 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18110 (grub_freebsd_load_elfmodule_obj): Use relocator.
18111 (grub_freebsd_load_elfmodule): Likewise.
18112 (grub_freebsd_load_elf_meta): Likewise.
18113 (grub_netbsd_load_elf_meta): New function.
18114 (grub_openbsd_find_ramdisk): Likewise.
18115 * grub-core/loader/i386/bsd_helper.S: Removed.
18116 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18117 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18118 * grub-core/loader/i386/efi/linux.c: Likewise.
18119 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18120 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18121 (DEFAULT_VIDEO_MODE): Likewise.
18122 (real_mode_target): New variable.
18123 (prot_mode_target): Likewise.
18124 (initrd_mem_target): Likewise.
18125 (relocator): Likewise.
18126 (efi_mmap_buf): Likewise.
18127 (efi_mmap_size): Likewise.
18128 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18129 (free_pages): Use relocator.
18130 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18131 (grub_linux_setup_video): Return error.
18132 (grub_linux_trampoline_start): Removed.
18133 (grub_linux_trampoline_end): Likewise.
18134 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18135 andd video parameters depending on firmware.
18136 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18137 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18138 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18139 (grub_cmd_initrd): Use relocator.
18140 * grub-core/loader/i386/linux_trampoline.S: Removed.
18141 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18142 (elf_sec_entsize): Likewise.
18143 (elf_sec_shstrndx): Likewise.
18144 (elf_sections): Likewise.
18145 (grub_multiboot_load): Use relocator.
18146 (grub_multiboot_get_mbi_size): Account for sections.
18147 (grub_multiboot_make_mbi): Use relocator and support sections.
18148 (grub_multiboot_add_elfsyms): New function.
18149 (grub_multiboot_free_mbi): Free sections.
18150 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18151 (grub_linux_real_target): Likewise.
18152 (grub_linux_real_chunk): Likewise.
18153 (grub_linux16_prot_size): Likewise.
18154 (grub_linux16_boot): Use relocator.
18155 (grub_linux_unload): Unload relocator.
18156 (grub_cmd_linux): Use relocator.
18157 (grub_cmd_initrd): Likewise.
18158 * grub-core/loader/i386/pc/ntldr.c: New file.
18159 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18160 Don't try to guess CPU frequency.
18161 (grub_xnu_set_video): Stretch bitmap.
18162 (grub_xnu_boot): Use relocator.
18163 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18164 (grub_linux_unload): Free relocator.
18165 (grub_linux_load32): Use relocator.
18166 (grub_linux_load64): Likewise.
18167 (grub_cmd_initrd): Likewise.
18168 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18169 (grub_multiboot_unload): Unload relocator.
18170 (grub_cmd_multiboot): Use relocator.
18171 (grub_cmd_module): Likewise.
18172 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18173 Use relocator and support sections.
18174 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18175 (elf_sec_entsize): Likewise.
18176 (elf_sec_shstrndx): Likewise.
18177 (elf_sections): Likewise.
18178 (grub_multiboot_load): Use relocator.
18179 (grub_multiboot_get_mbi_size): Account for sections.
18180 (grub_multiboot_make_mbi): Use relocator and support sections.
18181 (grub_multiboot_add_elfsyms): New function.
18182 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18183 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18184 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18185 Prototype changed. All users updated.
18186 (grub_xnu_align_heap): Simplified.
18187 (grub_xnu_writetree_toheap): Likewise.
18188 (grub_xnu_unload): Unload relocator.
18189 (grub_cmd_xnu_kernel): Use relocator.
18190 (grub_cmd_xnu_kernel64): Likewise.
18191 (grub_xnu_register_memory): Simplified.
18192 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
18193 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18195 (grub_console_checkkey): Likewise.
18196 (grub_console_getkey): Likewise.
18197 (grub_console_getwh): Likewise.
18198 (grub_console_getxy): Likewise.
18199 (grub_console_gotoxy): Likewise.
18200 (grub_console_cls): Likewise.
18201 (grub_console_setcolorstate): Likewise.
18202 (grub_console_setcursor): Likewise.
18203 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18204 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18205 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18206 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18207 * grub-core/tests/boot/kernel-8086.S: Likewise.
18208 * grub-core/tests/boot/kernel-i386.S: Likewise.
18209 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18210 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18211 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18212 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18213 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18214 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18215 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18216 * grub-core/tests/boot/linux.cfg: Likewise.
18217 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18218 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18219 * grub-core/tests/boot/linux16.cfg: Likewise.
18220 * grub-core/tests/boot/multiboot.cfg: Likewise.
18221 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18222 * grub-core/tests/boot/ntldr.cfg: Likewise.
18223 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18224 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18225 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18227 * include/grub/dl.h (grub_dl_unload_all): Removed.
18228 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18229 (grub_efi_finish_boot_services): Change prototype.
18230 (grub_efi_is_finished): New variable.
18231 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18233 (grub_efiemu_finish_boot_services): Removed.
18234 (grub_machine_efiemu_init_tables): New prototype.
18235 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18236 (grub_elf64_phdr_iterate): Likewise.
18237 * include/grub/i386/bsd.h: Include relocator.h.
18238 (freebsd_tag_header): New struct.
18239 (grub_openbsd_bios_mmap): Removed.
18240 (grub_unix_real_boot): Removed.
18241 (grub_freebsd_load_elfmodule32): Changed prototype.
18242 (grub_freebsd_load_elfmodule_obj64): Likewise.
18243 (grub_freebsd_load_elf_meta32): Likewise.
18244 (grub_freebsd_load_elf_meta64): Likewise.
18245 (grub_freebsd_add_meta): Removed.
18246 (grub_netbsd_load_elf_meta32): New prototype.
18247 (grub_netbsd_load_elf_meta64): Likewise.
18248 (grub_bsd_add_meta): Likewise.
18249 (grub_openbsd_ramdisk_descriptor): New struct.
18250 (grub_openbsd_find_ramdisk32): New prototype.
18251 (grub_openbsd_find_ramdisk64): Likewise.
18252 * include/grub/i386/coreboot/loader.h: Removed.
18253 * include/grub/i386/efi/loader.h: Likewise.
18254 * include/grub/i386/ieee1275/loader.h: Likewise.
18255 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18257 * include/grub/i386/loader.h: Removed.
18258 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18260 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18261 (grub_phys_addr_t): New type.
18262 (grub_vtop): New inline function.
18263 (grub_map_memory): Likewise.
18264 (grub_unmap_memory): Likewise.
18265 * include/grub/i386/multiboot/loader.h: Removed.
18266 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18267 (NETBSD_BTINFO_CONSOLE): New definition.
18268 (NETBSD_BTINFO_SYMTAB): Likewise.
18269 (NETBSD_BTINFO_MODULES): Likewise.
18270 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18271 (grub_netbsd_bootinfo): New struct.
18272 (grub_netbsd_btinfo_common): Use explicit bitsize.
18273 (grub_netbsd_btinfo_mmap_entry): Removed.
18274 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18275 (grub_netbsd_btinfo_bootdisk): New struct.
18276 (grub_netbsd_btinfo_symtab): Likewise.
18277 (grub_netbsd_btinfo_serial): Likewise.
18278 (grub_netbsd_btinfo_modules): Likewise.
18279 (grub_netbsd_btinfo_framebuf): Likewise.
18280 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18281 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18283 (grub_openbsd_bootargs): Use explicit bitsize.
18284 (grub_openbsd_bootarg_console): New struct.
18285 (GRUB_OPENBSD_COM_MAJOR): New definition.
18286 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18287 * include/grub/i386/pc/efiemu.h: Removed.
18288 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18289 * include/grub/i386/qemu/loader.h: Removed.
18290 * include/grub/i386/relocator.h: Rewritten.
18291 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18292 * include/grub/mips/memory.h: New file.
18293 * include/grub/mips/multiboot.h: Rewritten.
18294 * include/grub/mips/relocator.h: Rewritten.
18295 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18296 (grub_vtop): New function.
18297 (grub_map_memory): Likewise.
18298 (grub_unmap_memory): Likewise.
18299 * include/grub/misc.h (ALIGN_DOWN): New definition.
18300 * include/grub/mm.h (grub_mm_check_real): New proto.
18301 (GRUB_MM_CHECK): New definition.
18302 * include/grub/mm_private.h: New file.
18303 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18304 (grub_multiboot_get_mbi_size): Removed.
18305 (grub_multiboot_make_mbi): Change prottype.
18306 (grub_multiboot_set_accepts_video): New proto.
18307 (grub_multiboot_add_elfsyms): Likewise.
18308 (grub_multiboot_payload_eip): New variable.
18309 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18311 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18313 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18314 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18315 * include/grub/powerpc/ieee1275/loader.h: Removed.
18316 * include/grub/powerpc/memory.h: New file.
18317 * include/grub/powerpc/relocator.h: Likewise.
18318 * include/grub/relocator.h: Likewise.
18319 * include/grub/relocator_private.h: Likewise.
18320 * include/grub/sparc64/ieee1275/loader.h: Removed.
18321 * include/grub/x86_64/memory.h: New file.
18322 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18323 (grub_xnu_heap_malloc): Likewise.
18324 (grub_xnu_heap_real_start): Removed.
18325 (grub_xnu_heap_start): Likewise.
18326 (grub_xnu_relocator): New variable.
18327 (grub_xnu_heap_target_start): Likewise.
18328 * tests/util/grub-shell.in: Support non-pc.
18329 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18331 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18333 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18335 (grub_bidi_logical_to_visual): Check that malloc succeded.
18336 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18338 (grub_xputs_normal): Likewise.
18340 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18342 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18345 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18347 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18349 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18351 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18353 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18355 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18358 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18360 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18362 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18364 * grub-core/normal/term.c (print_more): Fix a memory leak.
18365 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18366 (grub_xputs_normal): Likewise.
18368 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18370 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18371 the begining of the string
18373 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18375 * grub-core/script/script.c (grub_script_parse): Free parsed on
18378 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18380 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18383 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18385 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18388 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18390 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18391 (scroll_up): Fix a memory leak.
18393 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18395 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18398 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18400 Handle USB pendrives exposed as floppies.
18402 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18404 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18405 Check for partitions on all devices.
18407 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18409 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18410 (readkey): Likewise.
18412 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18414 Multiple variable names support to "export" command.
18416 * normal/context.c (grub_cmd_export): "export" command supports
18417 multiple variable names.
18419 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18421 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18422 --target=drive output to Mach device name.
18424 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18426 New Automake based build system for GRUB.
18428 * ABOUT-NLS: New file.
18429 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18430 in Makefile.util.def file.
18431 * Makefile.util.def: New file. Autogen build definitions file for
18433 * conf/Makefile.common: New file. Common variables for GRUB host
18434 utils and target modules.
18435 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18436 * docs/Makefile.am: New file. Automake file for docs.
18437 * gentpl.py: New file. Python script to generate Autogen
18439 * grub-core/Makefile.am: New file. GRUB target modules' rules
18440 that doesn't fit in Makefile.core.def file.
18441 * grub-core/Makefile.core.def: New file. Autogen build
18442 definitions file for GRUB target modules.
18443 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18444 specific setjmp.S file.
18445 * po/Makefile.am: New file.
18447 * .bzrignore: New ignores.
18448 * INSTALL: New requirements, without Ruby.
18449 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18450 * autogen.sh: Updated to invoke autogen as necessary.
18451 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18452 and defines for Automake conditionals.
18453 * geninit.sh: Refactoring.
18455 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18457 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18460 * include/grub/test.h: Fix functional test modules' naming.
18461 * grub-core/tests/example_functional_test.c: Fix test module name.
18463 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18464 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18465 * util/grub-editenv.c: Likewise.
18466 * util/grub-fstest.c: Likewise.
18467 * util/grub-mkdevicemap.c: Likewise.
18468 * util/grub-mkfont.c: Likewise.
18469 * util/grub-mkimage.c: Likewise.
18470 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18471 * util/grub-probe.c: Likewise.
18472 * util/grub-script-check.c: Likewise.
18473 * util/i386/pc/grub-setup.c: Likewise.
18474 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18476 * tests/util/grub-shell.in: Fix override directory path.
18477 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18478 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18480 * util/lvm.c: Update #includes.
18481 * util/raid.c: Likewise.
18482 * util/resolve.c: Likewise.
18483 * grub-core/bus/emu/pci.c: Likewise.
18484 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18485 * grub-core/lib/posix_wrap/string.h: Likewise.
18486 * grub-core/kern/emu/main.c: Likewise.
18488 * grub-core/gensymlist.sh: New file. Script for generating kernel
18490 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18492 * grub-core/gentrigtables.c: Fix unused variable warnings.
18494 * Makefile.in: Removed.
18495 * conf/any-emu.rmk: Removed.
18496 * conf/common.rmk: Removed.
18497 * conf/i386-coreboot.rmk: Removed.
18498 * conf/i386-efi.rmk: Removed.
18499 * conf/i386-ieee1275.rmk: Removed.
18500 * conf/i386-multiboot.rmk: Removed.
18501 * conf/i386-pc.rmk: Removed.
18502 * conf/i386-qemu.rmk: Removed.
18503 * conf/i386.rmk: Removed.
18504 * conf/mips-yeeloong.rmk: Removed.
18505 * conf/mips.rmk: Removed.
18506 * conf/powerpc-ieee1275.rmk: Removed.
18507 * conf/sparc64-ieee1275.rmk: Removed.
18508 * conf/tests.rmk: Removed.
18509 * conf/x86-efi.rmk: Removed.
18510 * conf/x86_64-efi.rmk: Removed.
18511 * gendistlist.sh: Removed.
18512 * geninitheader.sh: Removed.
18513 * genkernsyms.sh.in: Removed.
18514 * genmk.rb: Removed.
18515 * gensymlist.sh.in: Removed.
18516 * mkinstalldirs: Removed.
18518 * grub-core/boot: ... to here.
18520 * grub-core/bus: ... to here.
18521 * commands: Moved ...
18522 * grub-core/commands: ... to here.
18524 * grub-core/disk: ... to here.
18525 * efiemu: Moved ...
18526 * grub-core/efiemu: ... to here.
18528 * grub-core/font: ... to here.
18530 * grub-core/fs: ... to here.
18531 * gencmdlist.sh: Moved ...
18532 * grub-core/gencmdlist.sh: ... to here.
18533 * genemuinit.sh: Moved ...
18534 * grub-core/genemuinit.sh: ... to here.
18535 * genemuinitheader.sh: Moved ...
18536 * grub-core/genemuinitheader.sh: ... to here.
18537 * genfslist.sh: Moved ...
18538 * grub-core/genfslist.sh: ... to here.
18539 * genhandlerlist.sh: Moved ...
18540 * grub-core/genhandlerlist.sh: ... to here.
18541 * genmoddep.awk: Moved ...
18542 * grub-core/genmoddep.awk: ... to here.
18543 * genmodsrc.sh: Moved ...
18544 * grub-core/genmodsrc.sh: ... to here.
18545 * genpartmaplist.sh: Moved ...
18546 * grub-core/genpartmaplist.sh: ... to here.
18547 * genparttoollist.sh: Moved ...
18548 * grub-core/genparttoollist.sh: ... to here.
18549 * genterminallist.sh: Moved ...
18550 * grub-core/genterminallist.sh: ... to here.
18551 * gentrigtables.c: Moved ...
18552 * grub-core/gentrigtables.c: ... to here.
18553 * genvideolist.sh: Moved ...
18554 * grub-core/genvideolist.sh: ... to here.
18555 * gettext: Moved ...
18556 * grub-core/gettext: ... to here.
18557 * gfxmenu: Moved ...
18558 * grub-core/gfxmenu: ... to here.
18559 * gnulib: Moved ...
18560 * grub-core/gnulib: ... to here.
18562 * grub-core/hello: ... to here.
18564 * grub-core/hook: ... to here.
18566 * grub-core/io: ... to here.
18568 * grub-core/kern: ... to here.
18570 * grub-core/lib: ... to here.
18571 * loader: Moved ...
18572 * grub-core/loader: ... to here.
18574 * grub-core/mmap: ... to here.
18575 * normal: Moved ...
18576 * grub-core/normal: ... to here.
18577 * partmap: Moved ...
18578 * grub-core/partmap: ... to here.
18579 * parttool: Moved ...
18580 * grub-core/parttool: ... to here.
18581 * script: Moved ...
18582 * grub-core/script: ... to here.
18584 * grub-core/term: ... to here
18585 * tests/example_functional_test.c: Moved ...
18586 * grub-core/tests/example_functional_test.c: ... to here.
18587 * tests/lib/functional_test.c: Moved ...
18588 * grub-core/tests/lib/functional_test.c: ... to here.
18589 * tests/lib/test.c: Moved ...
18590 * grub-core/tests/lib/test.c: ... to here.
18592 * grub-core/video: ... to here.
18594 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18596 Replace --enable-grub-emu-modules with grub-emu-lite.
18598 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18601 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18602 * kern/emu/full.c: New file. For grub-emu specific initialization.
18603 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18604 * kern/emu/main.c: Call initialization function grub_emu_init.
18606 * Makefile.in: Include grub-emu-lite in install.
18607 * commands/parttool.c: Use grub_no_autoload to differentiate
18608 between grub-emu and grub-emu-lite.
18609 * include/grub/misc.h: New variable grub_no_autoload.
18611 * conf/any-emu.rmk: New rules for grub-emu-lite.
18612 * configure.ac: Remove --enable-grub-emu-modules.
18613 * genmk.rb: Cleanup unnecessary rules.
18614 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18616 * normal/main.c: Don't load list files on grub-emu-lite.
18617 * util/misc.c (grub_arch_sync_caches): Removed.
18619 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18621 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18622 grub-mkimage rather than grub-mkelfimage.
18623 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18625 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18627 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18628 a key after CapsLock or NumLock. It's just a qemu bug.
18630 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18632 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18633 needed by libusb wrapper.
18635 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18637 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18639 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18641 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18642 --nounzip is passed.
18644 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18646 USB hotunplugging and USB serial support.
18648 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18649 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18650 (grub_uhci_transfer): Respect timeout and set *actual.
18651 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18652 non-standard length.
18653 (grub_usb_device_attach): Autoload modules.
18654 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18655 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18656 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18658 (grub_usb_add_hub): Fill nports and children.
18659 (attach_root_port): Receive hub instead of controller.
18660 All users updated. Fill hub->devices.
18661 (grub_usb_root_hub): Allocate hub->devices.
18662 (detach_device): New function.
18663 (poll_nonroot_hub): Fill children and detach devices.
18664 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18665 actual arguments. All users updated.
18666 (grub_usb_bulk_read_extended): New function.
18667 * bus/usb/serial/common.c: New file.
18668 * bus/usb/serial/ftdi.c: Likewise.
18669 * bus/usb/serial/pl2303.c: Likewise.
18670 * commands/terminal.c (handle_command): Support wildcard.
18671 * commands/usbtest.c: Output "Unknown" instead of empty string.
18672 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18673 (usbserial_common_mod_SOURCES): New variable.
18674 (usbserial_common_mod_CFLAGS): Likewise.
18675 (usbserial_common_mod_LDFLAGS): Likewise.
18676 (pkglib_MODULES): Add usbserial_pl2303.mod.
18677 (usbserial_pl2303_mod_SOURCES): New variable.
18678 (usbserial_pl2303_mod_CFLAGS): Likewise.
18679 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18680 (pkglib_MODULES): Add usbserial_ftdi.mod.
18681 (usbserial_ftdi_mod_SOURCES): New variable.
18682 (usbserial_ftdi_mod_CFLAGS): Likewise.
18683 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18684 (pkglib_MODULES): Add serial.mod.
18685 (serial_mod_SOURCES): New variable.
18686 (serial_mod_CFLAGS): Likewise.
18687 (serial_mod_LDFLAGS): Likewise.
18688 * conf/i386-pc.rmk: Likewise.
18689 * conf/mips-yeeloong.rmk: Likewise.
18690 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18691 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18692 * disk/usbms.c (first_available_slot): New variable.
18693 (grub_usbms_attach): Don't reuse free slots due to potential cache
18695 * include/grub/serial.h: Moved to ..
18696 * include/grub/ns8250.h: ...this.
18697 * include/grub/serial.h: New file.
18698 * include/grub/term.h (grub_term_poll_usb): New variable.
18699 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18700 readkey. All users updated.
18701 (grub_terminfo_output_state): Pass term to put.
18702 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18703 (grub_usb_controller_dev): Add timeout and actual arguments to
18704 transfer. All users updated.
18705 (grub_usb_interface): New field detach_data.
18706 (grub_usb_device): New fields children and nports.
18707 (grub_usb_ep_type_t): New type.
18708 (grub_usb_get_ep_type): New function.
18709 (grub_usb_bulk_read_extended): Likewise.
18710 * include/grub/usbdesc.h (grub_usb_desc): New type.
18711 * include/grub/usbserial.h: New file.
18712 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18713 * kern/term.c (grub_term_poll_usb): New variable.
18714 (grub_getkey): Call grub_term_poll_usb if set.
18715 (grub_checkkey): Likewise.
18716 (grub_getkeystatus): Likewise.
18717 * term/serial.c: Moved controller-specific parts to ...
18718 * term/ns8250.c: ... here.
18719 * term/serial.c: Mostly rewritten.
18720 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18723 2010-08-20 Robert Millan <rmh@gnu.org>
18725 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18726 a separate module and maybe other interesting combinations.
18728 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18729 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18730 (kfreebsd_entry): Add generic filesystem module load routine.
18731 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18733 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18735 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18736 "numcenter" (I misunderstood the purpose of this entry).
18737 * docs/grub.texi (sendkey): Likewise.
18739 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18741 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18742 status flag options; simply omitting the option is equivalent and
18743 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18744 (keysym_table): Rename "num5numlock" to "numlock".
18745 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18746 can uniformly say that only the last of multiple `sendkey'
18747 invocations has any effect.
18748 * docs/grub.texi (sendkey): New section.
18750 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18752 * commands/i386/pc/sendkey.c (options): Fix three typos.
18754 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18756 Implement sendkey support.
18758 * commands/i386/pc/sendkey.c: New file.
18759 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18760 (sendkey_mod_SOURCES): New variable.
18761 (sendkey_mod_CFLAGS): Likewise.
18762 (sendkey_mod_LDFLAGS): Likewise.
18764 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18766 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18767 fix warnings from Autoconf.
18769 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18771 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18772 to avoid false positives with some assemblers that output things
18773 like "someprefix_func" as part of their output.
18775 2010-08-15 Robert Millan <rmh@gnu.org>
18777 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18779 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18780 grub_get_libzfs_handle() errors.
18782 2010-08-14 Robert Millan <rmh@gnu.org>
18784 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18785 filesystem is not ZFS.
18787 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18789 Fix for misspelled color names defaulting to black/black (bug
18790 reported by Doug Nazar)
18792 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18793 status to prototype.
18794 * normal/color.c (grub_parse_color_name_pair): Return failure
18796 (grub_env_write_color_normal): Ignore bad color names.
18797 (grub_env_write_color_highlight): Likewise.
18798 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18800 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18802 "shift" command support to GRUB script.
18804 * include/grub/script_sh.h (grub_script_shift): New prototype.
18805 * script/execute.c (grub_script_shift): New function.
18806 * script/main.c (grub_script_init): Register shift command.
18807 (grub_script_fini): Unregister shift command.
18808 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18810 * tests/grub_script_shift.in: New testcase.
18811 * conf/tests.rmk: Rules for new testcase.
18813 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18815 "continue" command support to GRUB script.
18817 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18818 (grub_script_break): Continue support.
18819 * script/main.c (grub_script_init): Register continue command.
18820 (grub_script_fini): Unregister continue command.
18822 * tests/grub_script_continue.in: New testcase.
18823 * conf/tests.rmk: Rules for new testcase.
18825 2010-08-12 BVK Chaitanya <bvk@dbook>
18827 "break" command support to GRUB script.
18829 * conf/common.rmk: Rule updates to grub-script-check.
18830 * include/grub/misc.h (grub_min): New function.
18831 * include/grub/script_sh.h (grub_script_init): New prototype.
18832 (grub_script_fini): New prototype.
18833 (grub_script_break): New prototype.
18834 * script/main.c (grub_script_init): New function.
18835 (grub_script_fini): New function.
18836 * script/execute.c (grub_script_break): New function.
18837 * normal/main.c: Calls to grub_script_{init,fini}.
18838 * util/grub-script-check.c (grub_script_break): New function.
18840 * tests/grub_script_break.in: New testcase.
18841 * conf/tests.rmk: Rules for new test case.
18843 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18845 Function parameters support to GRUB script.
18847 * script/yylex.l (VARIABLE): Regular expression update.
18848 * script/function.c (grub_script_function_call): Moved ...
18849 * script/execute.c (grub_script_function_call): ... to here.
18850 (grub_script_execute_arglist_to_argv): Removed.
18851 (grub_script_arglist_to_argv): New function.
18852 * script/argv.c: New file.
18853 (grub_script_argv_free): New function.
18854 (grub_script_argv_next): Likewise.
18855 (grub_script_argv_append): Likewise.
18856 (grub_script_argv_split_append): Likewise.
18857 * include/grub/script_sh.h (grub_script_argv): New struct.
18858 (grub_script_argv_free): New function.
18859 (grub_script_argv_next): Likewise.
18860 (grub_script_argv_append): Likewise.
18861 (grub_script_argv_split_append): Likewise.
18863 * conf/common.rmk (normal.mod): New source script/argv.c.
18865 * tests/grub_script_echo1.in: More tests.
18866 * tests/grub_script_vars1.in: Likewise.
18867 * tests/grub_script_functions.in: New test case.
18868 * conf/tests.rmk: Rules for new testcase.
18870 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18872 Remove grub_script_cmdblock struct.
18874 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18875 * script/parser.y: Likewise.
18876 * script/execute.c: Rename cmdblock suffix to cmdlist.
18877 * script/script.c: Likewise.
18878 * util/grub-script-check.c: Likewise.
18880 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18882 * .bzrignore: add grub-macho2img
18884 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18886 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18888 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18890 Remove the dump of sm712 initialisation sequence.
18892 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18893 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18894 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18895 (GRUB_VGA_CR_*): Added many registers.
18896 (GRUB_VGA_SR_*): Likewise.
18897 (GRUB_VGA_GR_*): Likewise.
18898 (grub_vga_write_arx): New function.
18899 (grub_video_hw_config): New struct.
18900 (grub_vga_set_geometry): New function.
18901 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18902 GRUB_PCI_CLASS_SUBCLASS_VGA.
18903 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18904 * video/sm712.c (grub_sm712_write_reg): New function
18905 (grub_sm712_read_reg): Likewise.
18906 (grub_sm712_sr_write): Likewise.
18907 (grub_sm712_gr_write): Likewise.
18908 (grub_sm712_cr_write): Likewise.
18909 (grub_sm712_write_arx): Likewise.
18910 (grub_sm712_cr_shadow_write): Likewise.
18911 (grub_sm712_write_dda_lookup): Likewise.
18912 (grub_video_sm712_setup): Initialise the video rather then
18913 blindly replay the dump.
18914 (main) [TEST]: Add a routine to be able to compile as standalone for
18916 * video/sm712_init.c (sm712_init): Removed.
18917 (sm712_sr_seq1): New array.
18918 (sm712_sr_seq2): Likewise.
18920 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18922 * include/grub/vga.h: Add missing grub/pci.h include.
18924 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18926 * util/grub-macho2img.c (main): fix typo
18928 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18930 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
18931 (grub_vga_gr_read): Likewise.
18932 (grub_vga_cr_write): Likewise.
18933 (grub_vga_cr_read): Likewise.
18934 (grub_vga_sr_write): Likewise.
18935 (grub_vga_sr_read): Likewise.
18936 (grub_vga_palette_read): Likewise.
18937 (grub_vga_palette_write): Likewise.
18938 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
18939 (grub_sm712_sr_read): New function.
18940 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
18941 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
18943 2010-08-09 Robert Millan <rmh@gnu.org>
18945 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
18946 out unused variables on non-ZFS build.
18948 2010-08-08 Robert Millan <rmh@gnu.org>
18950 Fix path generation for sub-filesystems in ZFS.
18952 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
18955 2010-08-08 Robert Millan <rmh@gnu.org>
18957 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
18959 2010-08-08 Robert Millan <rmh@gnu.org>
18961 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
18962 exist, issue a proper error message (rely on `ls' for translated
18965 2010-08-08 Robert Millan <rmh@gnu.org>
18967 Fix grub-probe invocation.
18969 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
18971 2010-08-04 Robert Millan <rmh@gnu.org>
18973 * configure.ac: Remove checks for getfsstat() and getmntany().
18974 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
18975 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
18976 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
18977 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
18978 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
18980 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
18981 via find_mount_point_from_dir() and getfsstat() / getmntany().
18983 2010-08-04 Robert Millan <rmh@gnu.org>
18985 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
18986 (grub_find_zpool_from_mount_point): Merge into ...
18987 (grub_find_zpool_from_dir): ... this.
18988 * kern/emu/misc.c: Likewise.
18991 (grub_make_system_path_relative_to_its_root): Replace
18992 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
18993 with grub_find_zpool_from_dir().
18994 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
18996 2010-08-04 Robert Millan <rmh@gnu.org>
18998 Support OpenSolaris in ZFS device resolution.
19000 * configure.ac: Check for getmntany().
19001 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19002 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19005 2010-08-03 Robert Millan <rmh@gnu.org>
19007 Fix grub-emu build.
19009 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19010 * include/grub/emu/misc.h: ... here.
19012 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19013 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19015 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19016 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19017 (grub_get_libzfs_handle): Move to ...
19018 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19019 (grub_get_libzfs_handle): ... here.
19021 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19023 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19024 as command name case.
19026 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
19028 * disk/raid.c (insert_array): Select unique numbers for named arrays
19029 as well, for use as keys in the disk cache.
19031 2010-08-01 Robert Millan <rmh@gnu.org>
19033 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19034 kFreeBSD device name, except on ZFS where the filesystem label is
19036 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19037 `/boot/zfs/zpool.cache'.
19038 Set mountfrom kernel variable using ${kfreebsd_device}.
19040 2010-08-01 Robert Millan <rmh@gnu.org>
19042 Make it even harder to use uninitialized `libzfs_handle' (and
19043 make the interface a bit simpler).
19045 * include/grub/util/misc.h (grub_util_init_libzfs)
19046 (libzfs_handle): Remove.
19047 (grub_get_libzfs_handle): New prototype.
19049 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19051 (grub_util_init_libzfs): Remove.
19052 (grub_get_libzfs_handle): New function.
19054 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19055 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19056 accessing `libzfs_handle' directly.
19058 2010-08-01 Robert Millan <rmh@gnu.org>
19060 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19061 (grub_find_zpool_from_mount_point): New function prototypes.
19063 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19064 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19066 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19067 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19068 `static' attribute.
19070 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19071 finding zpool from mount point into ...
19072 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19074 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19075 requested path is part of a ZFS pool, use
19076 grub_find_zpool_from_mount_point() to detect its filesystem name,
19077 and generate a path with `/fsname@path' syntax.
19079 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19081 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19082 (void) rather than () so that this is a proper prototype.
19084 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19086 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19088 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19090 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19091 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19093 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19095 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19097 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19099 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19101 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19103 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19104 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19105 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19106 disable gfxpayload.
19107 (Shell-like scripting): Add real content.
19108 (Serial terminal): Suggest `terminal_input serial; terminal_output
19109 serial' rather than putting the two commands on separate lines,
19110 since console input will be inoperative after the first command.
19111 (menuentry): Document --class, --users, and --hotkey options.
19112 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19113 Vladimir Serbinenko).
19115 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19116 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19118 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19120 2010-08-01 Robert Millan <rmh@gnu.org>
19122 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19123 (grub_find_zpool_from_mount_point): New function prototypes.
19125 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19126 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19128 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19129 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19130 `static' attribute.
19132 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19133 finding zpool from mount point into ...
19134 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19136 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19137 requested path is part of a ZFS pool, use
19138 grub_find_zpool_from_mount_point() to detect its filesystem name,
19139 and generate a path with `/fsname@path' syntax.
19141 2010-08-01 Robert Millan <rmh@gnu.org>
19143 Prevent accidental use of uninitialized libzfs_handle.
19145 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19146 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19147 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19149 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19151 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19152 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19154 2010-08-01 Robert Millan <rmh@gnu.org>
19156 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
19158 2010-07-31 Robert Millan <rmh@gnu.org>
19160 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19162 2010-07-31 Robert Millan <rmh@gnu.org>
19164 * kern/emu/misc.c: Add missing license header.
19166 2010-07-31 Robert Millan <rmh@gnu.org>
19168 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19170 * include/grub/util/libnvpair.h: Include `<config.h>'.
19171 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19172 declaring libnvpair prototypes ourselves.
19173 * include/grub/util/libzfs.h: Include `<config.h>'.
19174 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19175 declaring libzfs prototypes ourselves.
19177 (libzfs_handle): Moved to ...
19178 * include/grub/util/misc.h (libzfs_handle): ... here.
19179 Include `<grub/util/libzfs.h>'.
19181 2010-07-30 Robert Millan <rmh@gnu.org>
19183 * include/grub/emu/misc.h: Add missing license header.
19185 2010-07-30 Robert Millan <rmh@gnu.org>
19187 Enable `grub-probe -t device' resolution on ZFS.
19189 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19190 * include/grub/util/libnvpair.h: New file.
19191 * include/grub/util/libzfs.h: New file.
19193 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19194 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19195 `<grub/util/libnvpair.h>'.
19196 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19198 (find_mount_point_from_dir): New static function.
19199 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19201 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19202 find_root_device_from_libzfs() before ressorting to find_root_device().
19204 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19206 * util/misc.c: Include `<grub/util/libzfs.h>'.
19207 (grub_util_init_libzfs): New function.
19208 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19209 [HAVE_LIBZFS] (fini_libzfs): New static function.
19210 (grub_util_init_libzfs): New function.
19211 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19213 2010-07-30 Robert Millan <rmh@gnu.org>
19215 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19216 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19217 `warn_unused_result' attribute.
19218 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19219 (grub_xasprintf, grub_xvasprintf): Likewise.
19220 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19222 2010-07-29 Robert Millan <rmh@gnu.org>
19224 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19225 (probe): Handle `PRINT_FS_LABEL'.
19226 (main): Handle `-t fs_label'.
19228 2010-07-29 Robert Millan <rmh@gnu.org>
19230 * configure.ac: Remove grub-mkisofs checks.
19232 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19234 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19235 Reported by: Lennart Sorensen.
19237 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19239 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19240 prior to terminal_input/terminal_output separation. It's been over 1.5
19241 years and those versions weren't widely deployed.
19243 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
19245 * disk/raid.c (insert_array): Don't count named arrays when looking
19246 for unused array numbers.
19247 Reported and tested by: Michael Guntsche.
19249 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19251 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19252 implementation of this so that grub-emu links again, with a note
19253 that this should support hotplugging in the future.
19255 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19257 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19259 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19261 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19263 (grub_loopback_close): Remove empty function.
19264 (grub_loopback_dev): Remove close method.
19266 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19268 Disable EFI cursor when the EFI console becomes inactive.
19270 * term/efi/console.c (grub_efi_console_init): New function.
19271 (grub_efi_console_fini): New function.
19272 (grub_console_term_output): Register init and fini methods.
19274 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19276 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19279 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19281 * disk/loopback.c (grub_loopback): Replace filename with file.
19282 (delete_loopback): Handle new semantics.
19283 (grub_cmd_loopback): Likewise.
19284 (grub_loopback_iterate): Likewise.
19285 (grub_loopback_close): Likewise.
19287 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19289 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19291 Reported by: Tito Keitel.
19293 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19295 * docs/grub.texi (Naming convention): Document new naming convention.
19297 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19298 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19300 Generate device.map in something closer to the old ordering.
19302 * util/deviceiter.c (struct device): New declaration.
19303 (compare_file_names): Rename to ...
19304 (compare_devices): ... this. Sort by kernel name in preference to
19305 the stable by-id name, but keep the latter as a fallback comparison.
19306 Update header comment.
19307 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19308 of `struct device' rather than of plain file names.
19310 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19312 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19315 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19317 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19319 (setv1table): Likewise.
19321 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19323 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19324 removing the homehost if present.
19325 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19326 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19327 removing the homehost if present.
19328 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19330 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19332 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19333 parameter. Set its pointer target to 0.
19334 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19335 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19336 `data_offset' value from the superblock for 1.x metadata.
19337 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19338 data on the device.
19339 (insert_array): Record the start sector of data on the device.
19340 (grub_raid_register): Pass start_sector parameters to
19341 grub_raid_list->detect and insert_array.
19342 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19344 (struct grub_raid): Add start_sector parameter to `detect'.
19346 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19347 __attribute__ ((packed)), leaving a comment.
19348 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19349 (grub_mdraid_detect_09): ... here and ...
19350 (grub_mdraid_detect_1x): ... here.
19352 2010-07-20 Peter Henn <peter.henn@web.de>
19354 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19355 chunk size and disk size, which are already given as sector counts
19356 as distinct from the 0.90 units. Fetch the correct device number
19357 from the role table instead of using the table index.
19359 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19361 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19362 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19363 (WriteMostly1): New macro.
19364 Set array->name to NULL for metadata format 0.90. Add support for
19365 metadata 1.x. Fix some comments.
19366 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19368 * util/getroot.c (grub_util_get_grub_dev): Add support for
19369 /dev/md/name style devices.
19371 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19373 * .bzrignore: Ignore 20_linux_xen.
19375 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19377 * util/import_unicode.py: Remove unnecessary imports.
19379 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19381 Hotplugging and USB hub support.
19383 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19384 (grub_ohci): Likewise.
19385 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19386 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19387 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19388 (GRUB_OHCI_CTRL_EDS): Likewise.
19389 (GRUB_OHCI_BULK_EDS): Likewise.
19390 (GRUB_OHCI_TDS): Likewise.
19391 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19392 (grub_ohci_ed_phys2virt): New function.
19393 (grub_ohci_virt_to_phys): Likewise.
19394 (grub_ohci_td_phys2virt): Likewise.
19395 (grub_ohci_td_virt2phys): Likewise.
19396 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19398 (grub_ohci_find_ed): New function.
19399 (grub_ohci_alloc_td): Likewise.
19400 (grub_ohci_free_td): Likewise.
19401 (grub_ohci_free_tds): Likewise.
19402 (grub_ohci_transfer): Use previously allocated memory.
19403 (grub_ohci_portstatus): Reset status changed bit.
19404 (grub_ohci_detect_dev): Supply status changed.
19405 (grub_ohci_fini_hw): Free memory.
19406 (grub_ohci_restore_hw): Reallocate memory.
19407 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19408 Reset status change.
19409 (grub_uhci_detect_dev): Supply status_change.
19410 * bus/usb/usb.c (attach_hooks): New var.
19411 (grub_usb_device_attach): New function.
19412 (grub_usb_register_attach_hook_class): Likewise.
19413 (grub_usb_unregister_attach_hook_class): Likewise.
19414 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19415 (grub_usb_add_hub): Reset connection changed bit.
19416 (attach_root_port): New function.
19417 (grub_usb_root_hub): Likewise.
19418 (poll_nonroot_hub): Likewise.
19419 (grub_usb_poll_devices): Likewise.
19420 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19421 * disk/usbms.c (grub_usbms_open): Use device hooks.
19422 (grub_usbms_iterate) :Poll devices.
19423 (grub_usbms_finddevs): Split into ...
19424 (grub_usbms_attach): ... this ...
19425 (grub_usbms_attach): ... and this.
19426 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19428 (grub_usb_interface): New fields attached and detach_hook.
19429 (grub_usb_attach_hook_class): New type.
19430 (grub_usb_attach_desc): New struct.
19431 (grub_usb_register_attach_hook_class): New function.
19432 (grub_usb_unregister_attach_hook_class): Likewise.
19433 (grub_usb_poll_devices): Likewise.
19434 (grub_usb_device_attach): Likewise.
19435 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19436 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19438 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19440 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19441 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19442 delta determination style. Works with most NetBSD partitions too.
19444 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19446 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19447 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19449 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19451 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19453 2010-07-14 Anton Blanchard <anton@samba.org>
19455 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19458 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19460 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19462 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19464 * kern/partition.c (grub_partition_check_containment): New function to
19465 check that a partition is physically contained in a parent. Since
19466 offsets are relative (and non-negative), this reduces to checking that
19467 the partition ends before its parent.
19468 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19469 (grub_partition_iterate): Likewise.
19470 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19472 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19473 partitions that start before their parent, and add debug printfs.
19475 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19477 * Makefile.in (.SUFFIX): Spell correctly, as ...
19478 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19479 bare module name without `.mod', e.g. `test') tried to invoke a
19482 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19484 * README: Point to the Info manual.
19486 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19488 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19489 2nd superblock position from partition size.
19491 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19493 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19494 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19495 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19498 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19500 Restructure SCSI .id handling.
19501 Reported and tested by: Aleš Nesrsta.
19503 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19504 (grub_atapi_dev): Changed .name to "ata". New field .id.
19505 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19506 (grub_usbms_dev): New field .id.
19507 * disk/scsi.c (grub_scsi_iterate): Generate name.
19508 (grub_scsi_open): Parse name.
19509 * include/grub/scsi.h (grub_make_scsi_id): New function.
19510 (grub_scsi_dev): Change iterate and open to number instead of naming
19511 busses. All users updated.
19512 (grub_scsi): Remove name. Add .bus.
19514 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19516 * commands/help.c (grub_cmd_help): Fix a typo.
19518 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19520 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19521 Reported and tested by: Colin Watson.
19523 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19525 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19528 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19530 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19532 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19534 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19537 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19539 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19540 and disk/raid6_recover.c.
19541 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19542 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19544 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19546 * term/gfxterm.c (repaint_schedulded): Rename to ...
19547 (repaint_scheduled): ... this. Update all callers.
19548 (repaint_was_schedulded): Rename to ...
19549 (repaint_was_scheduled): ... this. Update all callers.
19551 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19553 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19554 which we expect to be handled by upper layers.
19556 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19558 * bus/usb/usbhub.c: #include time.h header.
19560 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19562 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19563 entry_name also for entries without stat blocks (e.g. ".."); fixes
19564 corruption of the first entry in a directory.
19566 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19568 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19569 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19570 doesn't work otherwise.
19572 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19574 * docs/grub.texi (Features): Update list of supported file systems.
19575 (GNU/Linux): Update for GRUB 2.
19576 (Serial terminal): Remove mention of --disable-serial, which was a
19577 GRUB Legacy configure option. Update instructions to use
19578 `terminal_input' and `terminal_output' rather than `terminal'.
19579 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19580 configuration' and `Installing GRUB using grub-install'.
19581 (Menu entry editor): Update for GRUB 2.
19582 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19583 Document new -a, -u, and -v options.
19584 (initrd): New section.
19585 (initrd16): New section.
19586 (linux): New section.
19587 (linux16): New section.
19588 (search): The `var' argument to `--set' is optional.
19589 (GRUB only offers a rescue shell): Go into a little more detail on
19592 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19594 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19596 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19598 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19599 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19601 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19603 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19604 install_prefix, in line with install_dos_part and install_bsd_part.
19605 Add new prefix variable, which is copied to install_prefix after
19606 comparing core.img in memory with the one read from disk in the
19607 no-embedding case, and use that rather than overwriting
19608 install_prefix immediately when installing to a partition.
19609 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19612 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19614 * configure.ac: Avoid == in test command, it's not portable.
19615 * util/grub.d/30_os-prober.in: Likewise.
19617 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19619 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19621 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19623 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19624 multiple (top-level) partmaps.
19626 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19628 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19629 Reported by: Tino Keitel.
19631 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19633 Bidi and diacritics support.
19635 * Makefile.in (widthspec.bin): New target.
19636 (widthspec.h): Likewise.
19637 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19638 * autogen.sh: Generate unidata.c.
19639 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19640 * commands/ls.c (grub_ls_list_devices): Likewise.
19641 (grub_ls_list_files): Likewise.
19642 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19643 (grub_mini_cmd_lsmod): Likewise.
19644 * commands/read.c: Likewise.
19645 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19646 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19647 * lib/arg.c (grub_arg_show_help): Likewise.
19648 * lib/crypto.c (grub_password_get): Likewise.
19649 * normal/auth.c (grub_username_get): Likewise.
19650 * normal/misc.c (grub_normal_print_device_info): Likewise.
19651 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19652 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19653 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19654 (normal/charset.c_DEPENDENCIES): New variable.
19655 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19656 (pkglib_MODULES): Remove charset.mod.
19657 (charset_mod_SOURCES): Removed.
19658 (charset_mod_CFLAGS): Likewise.
19659 (charset_mod_LDFLAGS): Likewise.
19660 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19661 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19663 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19664 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19665 (kernel_img_HEADERS): Add terminfo.h.
19666 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19667 Fill ->font. Reverse ascii bitmaps.
19668 (grub_font_get_xheight): New function.
19669 * font/font.c (grub_font_get_string_width): Moved from here ...
19670 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19671 * font/font.c (grub_font_draw_string): Moved from here ...
19672 * gfxmenu/font.c (grub_font_draw_string): ... here.
19673 * font/font.c (grub_font_dup_glyph): New function.
19674 (grub_font_blit_glyph): Likewise.
19675 (grub_font_blit_glyph_mirror): Likewise.
19676 (blit_comb): Likewise.
19677 (grub_font_construct_dry_run): Likewise.
19678 (grub_font_get_constructed_device_width): Likewise.
19679 (grub_font_construct_glyph): Likewise.
19680 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19681 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19682 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19683 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19684 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19685 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19686 (grub_font_get_xheight): New proto.
19687 (grub_font_get_constructed_device_width): Likewise.
19688 (grub_font_construct_glyph): Likewise.
19689 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19690 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19691 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19692 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19693 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19694 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19695 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19696 (grub_console_getcharwidth): Likewise.
19697 * include/grub/misc.h (grub_xputs): New proto.
19698 (grub_puts): Inlined.
19699 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19700 (grub_normal_get_line_counter): Removed.
19701 (grub_install_newline_hook): Likewise.
19702 (grub_normal_get_char_counter): New proto.
19703 (grub_normal_reset_more): Likewise.
19704 (grub_xputs_normal): Likewise.
19705 * include/grub/powerpc/ieee1275/console.h: Removed.
19706 * include/grub/sparc64/ieee1275/console.h: Likewise.
19707 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19708 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19709 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19710 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19711 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19712 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19713 (grub_term_input): Pass reference to self. All users updated.
19714 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19715 Pass reference to self. New fields normal_color, highlight_color and
19716 data. All users updated.
19717 (grub_putchar): Removed.
19718 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19719 (grub_unicode_estimate_width): New function.
19720 (grub_term_getcharwidth): Add defaults.
19721 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19722 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19723 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19724 (grub_cls): Remove EXPORT_FUNC.
19725 (grub_setcolorstate): Inline.
19726 (grub_newline_hook): Removed.
19727 * include/grub/terminfo.h: Rewritten. All users updated.
19728 * include/grub/unicode.h: New file.
19729 * include/grub/video.h (grub_video_signed_rect): New type.
19730 * kern/emu/console.c (grub_console_highlight_color): Removed.
19731 (grub_console_normal_color): Likewise.
19732 (grub_console_standard_color): Made static.
19733 (grub_ncurses_putchar): Remove mapping.
19734 (grub_ncurses_getcharwidth): Removed.
19735 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19736 (grub_ncurses_setcolor): Removed.
19737 (grub_ncurses_getcolor): Likewise.
19738 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19739 (grub_console_putchar): ... this.
19740 (grub_console_putchar): Handle argument difference.
19741 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19742 console_init_early and console_init_lately.
19743 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19744 * kern/misc.c (grub_puts): Removed.
19745 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19746 (grub_vsnprintf_real): Remove str = NULL support.
19747 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19748 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19749 * kern/term.c (grub_putcode): Renamed to ...
19750 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19751 (grub_putchar): Removed.
19752 (grub_xputs_dumb): New function.
19753 (grub_xputs): New variable.
19754 * lib/charset.c: Move from here ...
19755 * normal/charset.c: ... to here.
19756 (grub_ucs4_to_utf8): New function.
19757 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19758 (join_types): New variable.
19759 (unpack_join): New function.
19760 (bidi_types): New variable.
19761 (unpack_bidi): New function.
19762 (get_bidi_type): Likewise.
19763 (get_join_type): Likewise.
19764 (is_mirrored): Likewise.
19765 (grub_unicode_get_comb_type): Likewise.
19766 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19767 (is_type_after): Likewise.
19768 (grub_unicode_aglomerate_comb): Likewise.
19769 (bidi_line_wrap): Likewise.
19770 (grub_bidi_line_logical_to_visual): Likewise.
19771 (grub_bidi_logical_to_visual): Likewise.
19772 (grub_unicode_mirror_code): Likewise.
19773 (grub_unicode_shape_code): Likewise.
19774 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19775 Don't use grub_putchar.
19776 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19777 (grub_normal_reader_init): Likewise.
19778 (grub_xputs_saved): New variable.
19779 (GRUB_MOD_INIT): Set grub_xputs.
19780 (GRUB_MOD_FINI): Restore grub_xputs.
19781 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19782 (menu_init): Avoid printing gfxmenu error.
19783 (show_menu): Use grub_normal_get_char_counter.
19784 * normal/menu_entry.c (update_screen): Fix out-of-array.
19785 (complete): Avoid NULL dereferencing.
19786 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19787 * normal/menu_text.c (print_spaces): Removed.
19788 (grub_print_ucs4): Likewise.
19789 (grub_print_message_indented): Use grub_print_ucs4.
19790 (print_message): Use grub_putcode.
19791 (print_entry): Hanlde diacritics.
19792 * normal/term.c (term_state): New type.
19793 (grub_more_lines): Removed.
19794 (term_states): New variable.
19795 (grub_normal_line_counter): Renamed to ..
19796 (grub_normal_char_counter): ...this. All users updated.
19797 (grub_normal_get_line_counter): Renamed to ...
19798 (grub_normal_get_char_counter): ... this.
19799 (grub_normal_reset_more): New function.
19800 (process_newline): Removed.
19801 (print_more): New function.
19802 (grub_install_newline_hook): Removed.
19803 (map_code): New function.
19804 (grub_puts_terminal): Use grub_print_ucs4.
19805 (putglyph): New function.
19806 (putcode_real): Likewise.
19807 (grub_putcode): Use putcode_real.
19808 (get_maxwidth): New function.
19809 (get_startwidth): Likewise.
19810 (print_ucs4_terminal): Likewise.
19811 (find_term_state): Likewise.
19812 (put_glyphs_terminal): Likewise.
19813 (print_backlog): Likewise.
19814 (print_ucs4_real): Likewise.
19815 (grub_print_ucs4): Likewise.
19816 (grub_xputs_normal): Likewise.
19817 * term/efi/console.c (grub_console_putchar): Output diacritics.
19818 (grub_console_getcharwidth): Removed.
19819 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19820 * term/gfxterm.c (clear_char): Free chars.
19821 (scroll_up): Avoid leaking memory.
19822 (grub_gfxterm_putchar): Support diacritics.
19823 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19824 * term/i386/pc/console.c (grub_console_term_output): Declare as
19825 GRUB_TERM_CODE_TYPE_VGA.
19826 * term/i386/pc/vga.c (grub_vga_term): Declare as
19827 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19828 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19829 GRUB_TERM_CODE_TYPE_VGA.
19830 * term/i386/vga_common.c (map_char): Removed.
19831 (grub_console_putchar): Likewise.
19832 (grub_console_getcharwidth): Likewise.
19833 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19834 (colors): Reordered to match terminfo.
19835 (grub_ofconsole_normal_color): Removed.
19836 (grub_ofconsole_writeesc): Likewise.
19837 (grub_ofconsole_highlight_color): Likewise.
19838 (grub_ofconsole_getcharwidth): Likewise.
19839 (grub_ofconsole_setcolorstate): Likewise.
19840 (grub_ofconsole_setcolor): Likewise.
19841 (grub_ofconsole_getcolor): Likewise.
19842 (grub_ofconsole_readkey): Renamed to ...
19843 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19845 (grub_ofconsole_checkkey): Removed.
19846 (grub_ofconsole_getkey): Likewise.
19847 (grub_ofconsole_getxy): Likewise.
19848 (grub_ofconsole_gotoxy): Likewise.
19849 (grub_ofconsole_cls): Likewise.
19850 (grub_ofconsole_refresh): Likewise.
19851 (grub_ofconsole_terminfo_input): New struct.
19852 (grub_ofconsole_terminfo_output): Likewise.
19853 (grub_ofconsole_term_input): Use terminfo.
19854 (grub_ofconsole_term_output): Likewise.
19855 (grub_console_init): Split into ...
19856 (grub_console_init_early): ...this and ...
19857 (grub_console_init_lately): ...this. Use terminfo.
19858 (grub_ofconsole_putchar): Renamed to ...
19859 (put): ... this. Remove mapping.
19860 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19861 * term/serial.c: Simplify using terminfo.
19864 (keep_track): Likewise.
19865 (registered): Likewise.
19866 (input_buf): Likewise.
19867 (npending): Likewise.
19868 (serial_translate_key_sequence): Likewise.
19869 (fill_input_buf): Likewise.
19870 (grub_serial_checkkey): Likewise.
19871 (grub_serial_getkey): Likewise.
19872 (grub_serial_getxy): Likewise.
19873 (grub_serial_gotoxy): Likewise.
19874 (grub_serial_putchar): Likewise.
19875 (grub_serial_cls): Likewise.
19876 (grub_serial_setcolorstate): Likewise.
19877 (grub_serial_setcursor): Likewise.
19878 (serial_hw_init): Use serial_hw_fetch.
19879 (grub_serial_terminfo_input): New variable.
19880 (grub_serial_terminfo_output): Likewise.
19881 (grub_serial_term_input): Use terminfo.
19882 (grub_serial_term_output): Likewise.
19883 * term/terminfo.c (putstr): Use put.
19884 (grub_terminfo_all_free): New function
19885 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19886 (grub_terminfo_output_register): New function.
19887 (grub_terminfo_output_unregister): Likewise.
19888 (grub_terminfo_getxy): Likewise.
19889 (grub_terminfo_readkey): Likewise.
19890 (grub_terminfo_checkkey): Likewise.
19891 (grub_terminfo_getkey): Likewise.
19892 (grub_terminfo_input_init): Likewise.
19893 (print_terminfo): Likewise.
19894 (grub_cmd_terminfo): Handle encoding.
19895 (grub_terminfo_gotoxy): Track position.
19896 (grub_terminfo_cls): Likewise.
19897 (grub_terminfo_putchar): Likewise.
19898 (grub_terminfo_setcolorstate): Handle colors
19899 (grub_terminfo_cursor_on): This ...
19900 (grub_terminfo_cursor_off): ... and this merged into ...
19901 (grub_terminfo_setcursor): ... this.
19902 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19903 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19904 * unicode/BidiMirroring.txt: Likewise.
19905 * unicode/UnicodeData.txt: Likewise.
19906 * unicode/COPYING: Likewise.
19907 * util/grub-editenv.c (grub_putchar): Removed.
19908 (grub_xputs_real): New function.
19909 (grub_xputs): New variable.
19910 * util/grub-fstest.c (grub_putchar): Removed.
19911 (grub_xputs_real): New function.
19912 (grub_xputs): New variable.
19913 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19914 (grub_xputs_real): New function.
19915 (grub_xputs): New variable.
19916 * util/grub-probe.c (grub_putchar): Removed.
19917 (grub_xputs_real): New function.
19918 (grub_xputs): New variable.
19919 * util/grub-script-check.c (grub_putchar): Removed.
19920 (grub_xputs_real): New function.
19921 (grub_xputs): New variable.
19922 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19923 (grub_xputs_real): New function.
19924 (grub_xputs): New variable.
19925 * util/import_unicode.py: New file.
19926 * util/grub-mkfont.c (ft_errmsgs): New array.
19927 (grub_glyph_info): Make bitmap a pointer.
19928 (file_formats): New type WIDTH_SPEC.
19929 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
19930 (options): Add width-spec.
19932 (add_char): Renamed to ...
19933 (add_glyph): ... this.
19934 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
19935 (glyph_replace): New type.
19936 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
19937 (add_char): New function.
19938 (add_subst): Likewise.
19939 (process_cursive): Likewise.
19940 (add_font): Handle GSUB.
19941 (write_font_width_spec): New function.
19942 (main): Sort glyphs.
19943 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
19944 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
19945 * kern/term.c (grub_cls): Moved from here...
19946 * normal/term.c (grub_cls): ... here.
19948 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19950 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
19951 suitable for using within the format argument of printf when
19952 converting grub_size_t.
19953 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
19954 "x" to convert grub_size_t arguments.
19956 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19958 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
19960 (list_get_minimal_size): Take selection box into account.
19962 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19964 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
19967 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19969 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
19970 devices when iterating over /dev/disk/by-id; they will be handled
19971 later if appropriate, which they aren't always (e.g. LVM).
19973 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19975 * include/grub/misc.h (grub_reboot): Declare as noreturn.
19976 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
19978 (grub_halt): Likewise.
19979 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
19981 (grub_halt): Don't return, even if all of shut-down, power-off, and
19984 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19986 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
19987 arguments, not three.
19989 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19991 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
19992 * util/grub.d/10_linux.in: Use it to check for LVM, so that
19993 LVM-on-RAID is handled correctly.
19995 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
19997 * docs/grub.texi (Changes from GRUB Legacy): New section.
19998 (Future): Fix typo.
20000 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20002 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20003 grub.d/README accidentally ends up executable for one reason or
20004 another. Ignore it.
20006 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20008 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20009 (gpt_partition_map_iterate): Support non-512B sectors.
20011 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20013 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20014 Tested by: Seth Goldberg.
20016 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20018 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20019 Properly align mbi.
20020 Reported by: Seth Goldberg.
20022 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20024 * util/grub-mkrescue.in: Avoid module duplication.
20026 2010-07-01 Sean Finney <seanius@seanius.net>
20028 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20030 2010-07-01 Sean Finney <seanius@seanius.net>
20032 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20034 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20036 * disk/lvm.c (grub_lvm_checkvalue): New function.
20037 (grub_lvm_check_flag): Likewise.
20039 2010-07-01 Robert Millan <rmh@gnu.org>
20041 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20042 Support 'p' as partition separator on kernel of FreeBSD (used
20044 (grub_util_biosdisk_get_grub_dev): Likewise.
20046 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20048 Yeeloong firmware port.
20050 * boot/mips/yeeloong/fwstart.S: New file.
20051 * bus/cs5536.c (gpiodump): New const.
20052 (set_io_space): New function.
20053 (set_iod): Likewise.
20054 (set_p2d): Likewise.
20055 (grub_cs5536_init_geode): Likewise.
20056 * commands/mips/yeeloong/lsspd.c: New file.
20057 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20058 (serial_mod_SOURCES): New variable.
20059 (serial_mod_CFLAGS): Likewise.
20060 (serial_mod_LDFLAGS): Likewise.
20061 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20062 term/terminfo.c and term/tparm.c.
20063 (pkglib_IMAGES): Add fwstart.img.
20064 (fwstart_img_SOURCES): New variable.
20065 (fwstart_img_CFLAGS): Likewise.
20066 (fwstart_img_ASFLAGS): Likewise.
20067 (fwstart_img_LDFLAGS): Likewise.
20068 (fwstart_img_FORMAT): Likewise.
20069 (pkglib_MODULES): Add lsspd.mod.
20070 (lsspd_mod_SOURCES): New variable.
20071 (lsspd_mod_CFLAGS): Likewise.
20072 (lsspd_mod_LDFLAGS): Likewise.
20073 (pkglib_MODULES): Add halt.mod.
20074 (halt_mod_SOURCES): New variable.
20075 (halt_mod_CFLAGS): Likewise.
20076 (halt_mod_LDFLAGS): Likewise.
20077 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20078 (serial_mod_SOURCES): Removed.
20079 (serial_mod_CFLAGS): Likewise.
20080 (serial_mod_LDFLAGS): Likewise.
20081 * disk/ata.c (check_device): New function.
20082 (grub_ata_device_initialize): Use check_device.
20083 (grub_ata_iterate): Recheck devices.
20084 (grub_ata_open): Likewise.
20085 (grub_atapi_iterate): Likewise.
20086 (grub_atapi_open): Likewise.
20087 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20088 (GRUB_ATA_CH1_PORT1): Likewise.
20089 (GRUB_ATA_CH0_PORT2): Likewise.
20090 (GRUB_ATA_CH1_PORT2): Likewise.
20091 * include/grub/mips/loongson.h: New file.
20092 * include/grub/mips/yeeloong/ec.h: Likewise.
20093 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20094 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20095 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20096 * include/grub/misc.h (grub_halt): Declare as noreturn.
20097 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20098 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20099 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20100 (UART_ENABLE_DTRRTS): Likewise.
20101 (UART_ENABLE_MODEM): Removed.
20102 (UART_ENABLE_OUT2): New const.
20103 * include/grub/term.h (grub_term_register_input_active): New function.
20104 (grub_term_register_output_active): Likewise.
20105 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20107 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20108 (init_pci): New function.
20109 (grub_machine_init): Execute platform init when firmware. Init serial.
20110 (grub_halt): Implement.
20111 (grub_exit): Likewise.
20112 (grub_reboot): Likewise.
20113 * term/serial.c (serial_hw_init): Update macros.
20114 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20115 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20116 (image_targets): New target mipsel-yeeloong-flash.
20117 (generate_image): Support IMAGE_YEELOONG_FLASH.
20118 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20119 (grub_video_sm712_setup): Init card.
20120 (grub_video_sm712_set_palette): Removed.
20121 * video/sm712_init.c: New file.
20123 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
20125 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20126 PATH when running help2man and then run it on the unadorned
20127 executable names, rather than passing $(builddir)/* paths to
20128 help2man. This avoids the build directory ending up in generated
20131 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20133 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20134 to avoid accidents when debugging with 'sh -x'.
20135 * util/grub-mkrescue.in: Likewise.
20136 * util/grub.d/00_header.in: Likewise.
20137 * util/grub.d/10_hurd.in: Likewise.
20138 * util/grub.d/10_kfreebsd.in: Likewise.
20139 * util/grub.d/10_linux.in: Likewise.
20140 * util/grub.d/10_netbsd.in: Likewise.
20141 * util/grub.d/10_windows.in: Likewise.
20142 * util/grub.d/20_linux_xen.in: Likewise.
20143 * util/grub.d/30_os-prober.in: Likewise.
20144 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20146 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20148 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20149 last character in the buffer.
20150 Reported by: Vladimir Serbinenko.
20152 2010-06-29 Robert Millan <rmh@gnu.org>
20154 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20155 (Command-line and menu entry commands): Document `badram' command.
20157 2010-06-28 Robert Millan <rmh@gnu.org>
20159 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20160 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20161 command using ${GRUB_BADRAM} as parameter.
20163 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20165 * docs/grub.texi (Device map): New section.
20166 (Themes): New section (stub).
20167 * Makefile.in (docs/grub.info): The info documentation now builds
20168 without errors. Make sure it stays that way.
20170 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20172 Use normal parser for menu entries.
20173 Reported by: Thomas Frauendorfer
20175 * include/grub/parser.h (grub_parser_execute): Don't export.
20176 * normal/menu.c (grub_menu_execute_entry_real): New function.
20177 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20179 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20181 * docs/grub.texi (Embedded configuration): New section (replacing
20182 old "Preset Menu" stub).
20183 (Images): New section.
20184 (configfile): Note that any menu entries defined in `file' are shown
20187 2010-06-28 Josh Triplett <josh@joshtriplett.org>
20189 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20191 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20193 * util/grub-install.in: Add --debug-image= option.
20195 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20197 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20200 * util/deviceiter.c (check_device): Rename to ...
20201 (check_device_readable_unique): ... this. Update all callers.
20202 Maintain and check a list of which devices (by canonicalized name)
20203 have already been seen.
20204 (clear_seen_devices): New function.
20205 (compare_file_names) [__linux__]: New function.
20206 (grub_util_iterate_devices): Clear the list of seen devices on exit
20207 and (just in case) on entry.
20208 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20209 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20210 seen-devices list, superseded by general code in check_device.
20212 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20214 * commands/cat.c (options): New variable.
20215 (grub_cmd_cat): Parse options. If the --dos option is given, print
20216 DOS-style "\r\n" line endings as simple newlines (Debian bug
20218 (GRUB_MOD_INIT): Use extcmd.
20219 (GRUB_MOD_FINI): Likewise.
20220 * docs/grub.texi (cat): Document --dos.
20222 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20224 XEN with Linux grub-mkconfig support.
20226 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20227 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20228 GRUB_CMDLINE_XEN_DEFAULT.
20229 * util/grub.d/20_linux_xen.in: New file.
20231 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20233 Initialise VGA video on qemu ourselves.
20235 * boot/i386/qemu/boot.S: Don't call 0xc000.
20236 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20237 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20238 (kernel_img_HEADERS): Add pci.h.
20239 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20240 * configure.ac: Force unifont on qemu and yeeloong.
20241 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20242 (grub_vga_palette_write): Use correct register.
20243 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20244 Call grub_qemu_init_cirrus.
20245 * kern/i386/qemu/init.c: New file.
20246 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20248 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20250 2010-06-26 Pavel Roskin <proski@gnu.org>
20252 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20255 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20257 * docs/grub.texi (Simple configuration): Explain that
20258 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20259 set to `true' to disable their respective recovery entries, not
20262 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20264 Make the `source' command slightly faster.
20266 * normal/main.c (grub_normal_execute): Don't re-read list files when
20269 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20271 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20272 field position and mask size to red fields from mode_info, not
20274 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20275 Remove redundant tag->common.framebuffer_type assignment.
20276 Reported by: Seth Goldberg.
20278 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20280 Sync up other versions of the Linux loader with Robert Millan's
20281 change of 2010-01-09, "Make loader output a bit more user-friendly".
20283 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20285 (grub_cmd_linux): Likewise.
20286 (grub_cmd_initrd): Likewise.
20287 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20288 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20290 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20292 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20293 larger than MEMORY_MAP_SIZE.
20295 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20297 Fix parallel build.
20299 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20301 * script/parser.y: #include grub_script.tab.h header.
20303 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20305 Support >3GiB and <16MiB RAM in i386-qemu.
20307 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20308 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20309 (grub_lower_mem): Removed.
20310 (grub_upper_mem): Likewise.
20311 (mem_size): Made static.
20312 (above_4g): New variable.
20313 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20314 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20317 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20319 Cirrus 5446 and Bochs video cards support.
20321 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20323 (video_cirrus_mod_SOURCES): New variable.
20324 (video_cirrus_mod_CFLAGS): Likewise.
20325 (video_cirrus_mod_LDFLAGS): Likewise.
20326 (video_bochs_mod_SOURCES): Likewise.
20327 (video_bochs_mod_CFLAGS): Likewise.
20328 (video_bochs_mod_LDFLAGS): Likewise.
20329 * include/grub/vga.h: New file.
20330 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20331 (grub_video_fb_set_page_t): New type.
20332 (grub_video_fb_setup): New prototype.
20333 (grub_video_fb_swap_buffers): Likewise.
20334 (grub_video_fb_get_info_and_fini): Likewise.
20335 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20336 (CRTC_DATA_PORT): Likewise.
20337 (CRTC_CURSOR): Likewise.
20338 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20339 (CRTC_CURSOR_ADDR_LOW): Likewise.
20340 (CRTC_CURSOR_DISABLE): Likewise.
20341 (update_cursor): Use grub_vga_cr_write.
20342 (grub_vga_text_setcursor): Likewise.
20343 * video/bochs.c: New file.
20344 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20345 (palette): Likewise.
20346 (palette_size): Likewise.
20347 (framebuffer): New variable.
20348 (grub_video_fb_init): Use 'framebuffer'.
20349 (grub_video_fb_fini): Likewise.
20350 (grub_video_fb_get_info): Likewise.
20351 (grub_video_fb_get_palette): Likewise.
20352 (grub_video_fb_set_palette): Likewise.
20353 (grub_video_fb_set_viewport): Likewise.
20354 (grub_video_fb_get_viewport): Likewise.
20355 (grub_video_fb_map_color): Likewise.
20356 (grub_video_fb_map_rgb): Likewise.
20357 (grub_video_fb_map_rgba): Likewise.
20358 (grub_video_fb_unmap_color): Likewise.
20359 (grub_video_fb_unmap_color_int): Likewise.
20360 (grub_video_fb_fill_rect): Likewise.
20361 (grub_video_fb_blit_bitmap): Likewise.
20362 (grub_video_fb_blit_render_target): Likewise.
20363 (grub_video_fb_scroll): Likewise.
20364 (grub_video_fb_create_render_target): Likewise.
20365 (grub_video_fb_doublebuf_blit_init): Likewise.
20366 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20367 (doublebuf_pageflipping_update_screen): New function.
20368 (doublebuf_pageflipping_init): Likewise.
20369 (grub_video_fb_setup): Likewise.
20370 (grub_video_fb_swap_buffers): Likewise.
20371 (grub_video_fb_get_info_and_fini): Likewise.
20372 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20374 (doublebuf_pageflipping_commit): Restructured into ...
20375 (doublebuf_pageflipping_set_page): ... this.
20376 (doublebuf_pageflipping_update_screen): Removed.
20377 (doublebuf_pageflipping_init): Likewise.
20378 (double_buffering_init): Likewise.
20379 (grub_video_vbe_setup): Use grub_video_fb_setup.
20380 (grub_video_vbe_swap_buffers): Removed.
20381 (grub_video_vbe_set_active_render_target): Likewise.
20382 (grub_video_vbe_get_active_render_target): Likewise.
20383 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20384 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20385 grub_video_fb_set_active_render_target and
20386 grub_video_fb_get_active_render_target.
20387 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20388 (SEQUENCER_DATA_PORT): Likewise.
20389 (MAP_MASK_REGISTER): Likewise.
20390 (CRTC_ADDR_PORT): Likewise.
20391 (CRTC_DATA_PORT): Likewise.
20392 (START_ADDR_HIGH_REGISTER): Likewise.
20393 (START_ADDR_LOW_REGISTER): Likewise.
20394 (GRAPHICS_ADDR_PORT): Likewise.
20395 (GRAPHICS_DATA_PORT): Likewise.
20396 (READ_MAP_REGISTER): Likewise.
20397 (INPUT_STATUS1_REGISTER): Likewise.
20398 (INPUT_STATUS1_VERTR_BIT): Likewise.
20399 (get_map_mask): Use grub_vga_sr_read.
20400 (set_map_mask): Use grub_vga_sr_write.
20401 (set_read_map): Use grub_vga_gr_write.
20402 (set_start_address): Use grub_vga_cr_write.
20403 * video/sm712.c (framebuffer): Remove leftover fields.
20405 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20407 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20408 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20409 instead. Replace the gfxterm backend check with a check that
20410 ${GRUB_PREFIX}/video.lst is non-empty.
20411 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20413 (load_video): New generated function. Call it before loading
20414 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20415 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20416 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20417 * docs/grub.texi (Simple configuration): Document
20418 GRUB_VIDEO_BACKEND.
20420 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20422 Use video functions in linux and xnu loaders.
20424 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20425 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20426 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20427 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20428 loader/i386/pc/linux.c.
20429 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20430 (find_line_len): Removed.
20431 (find_framebuf): Likewise.
20432 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20433 * loader/i386/efi/xnu.c: Removed.
20434 * loader/i386/pc/xnu.c: Moved from here...
20435 * loader/i386/xnu.c: ...here.
20437 Enable priorities in video drivers.
20439 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20440 (grub_video_adapter): New field prio.
20441 (grub_video_register): Respect prio when inserting.
20442 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20443 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20444 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20445 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20446 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20447 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20448 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20452 * include/grub/video.h (grub_video_driver_id_t): New value
20453 GRUB_VIDEO_DRIVER_SDL.
20454 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20456 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20458 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20459 argument to printf.
20460 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20462 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20464 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20465 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20467 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20469 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20470 directly, and recommend grub-install instead.
20471 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20473 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20475 Fix i386-pc prefix handling with nested partitions (Debian bug
20476 #585068). Note that the case where the core image is booted using
20477 multiboot and relocated from its original location still requires
20480 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20481 with "(,", fill the boot drive in between those two characters, but
20482 expect that a full partition specification including partition map
20484 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20485 specified, write a prefix without the drive name but including a
20486 full partition specification.
20488 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20490 * util/grub-mkconfig.in: Ignore non-option arguments, for
20491 compatibility with older versions (before 2010-06-12) which did the
20492 same. In particular, this makes it easier to ship an update-grub
20493 wrapper which is compatible with that used with GRUB Legacy (Debian
20496 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20498 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20499 for manual page generation.
20501 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20503 * po/POTFILES: Remove leftover commands/handler.c.
20505 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20507 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20508 left this script non-functional.
20510 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20512 * docs/man/grub-emu.h2m: New file.
20514 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20516 * docs/grub.texi (Commands): Document reduced command set in rescue
20518 (cpuid): New section.
20520 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20522 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20523 new partition naming style.
20524 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20526 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20528 Add "-o grub.iso" like cmdline options support.
20530 * util/grub-install.in: Improve cmdline option parsing.
20531 * util/grub-mkconfig.in: Likewise.
20532 * util/grub-mkrescue.in: Likewise.
20533 * util/grub-reboot.in: Likewise.
20534 * util/grub-set-default.in: Likewise.
20535 * util/i386/efi/grub-install.in: Likewise.
20536 * util/ieee1275/grub-install.in: Likewise.
20537 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20539 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20541 * .bzrignore: Ignore 41_custom.
20543 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20545 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20547 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20549 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20550 prototype declarations.
20552 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20553 generating fs, partmap, and video lists.
20554 * include/grub/fs.h (grub_fs_register): Omit prototype if
20555 GRUB_LST_GENERATOR is defined.
20556 * include/grub/partition.h (grub_partition_map_register): Likewise.
20557 * include/grub/video.h (grub_video_register): Likewise.
20559 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20561 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20563 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20565 * util/grub-mkrescue.in: Support --xorriso argument.
20567 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20569 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20570 Suggested by: Thomas Schmitt.
20572 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20574 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20575 Suggested by: Thomas Schmitt.
20577 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20579 custom.cfg support.
20581 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20582 * util/grub.d/41_custom.in: New file.
20584 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20586 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20587 been merged back into normal.
20589 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20591 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20592 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20594 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20596 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20597 when generating manual pages.
20598 * docs/man/grub-bin2h.h2m: New file.
20599 * docs/man/grub-editenv.h2m: New file.
20600 * docs/man/grub-fstest.h2m: New file.
20601 * docs/man/grub-install.h2m: New file.
20602 * docs/man/grub-macho2img.h2m: New file.
20603 * docs/man/grub-mkconfig.h2m: New file.
20604 * docs/man/grub-mkdevicemap.h2m: New file.
20605 * docs/man/grub-mkfont.h2m: New file.
20606 * docs/man/grub-mkimage.h2m: New file.
20607 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20608 * docs/man/grub-mkrelpath.h2m: New file.
20609 * docs/man/grub-mkrescue.h2m: New file.
20610 * docs/man/grub-ofpathname.h2m: New file.
20611 * docs/man/grub-pe2elf.h2m: New file.
20612 * docs/man/grub-probe.h2m: New file.
20613 * docs/man/grub-reboot.h2m: New file.
20614 * docs/man/grub-script-check.h2m: New file.
20615 * docs/man/grub-set-default.h2m: New file.
20616 * docs/man/grub-setup.h2m: New file.
20618 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20620 Use FOR_* macros instead of *_iterate whenever possible.
20622 * commands/handler.c: Removed.
20623 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20624 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20625 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20626 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20627 (grub_probe_SOURCES): Remove kern/parser.c.
20628 (util/grub-script-check.c_DEPENDENCIES): Removed.
20629 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20630 and grub_script_check_init.c.
20631 (grub_script_check_init.lst): Removed.
20632 (grub_script_check_init.h): Likewise.
20633 (grub_script_check_init.c): Likewise.
20634 (pkglib_MODULES): Remove handler.mod and sh.mod.
20635 (handler_mod_SOURCES): Removed.
20636 (handler_mod_CFLAGS): Likewise.
20637 (handler_mod_LDFLAGS): Likewise.
20638 (normal_mod_SOURCES): Remove normal/handler.c.
20639 Add script/main.c, script/script.c, script/execute.c,
20640 script/function.c, script/lexer.c, grub_script.tab.c
20641 and grub_script.yy.c.
20642 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20643 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20644 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20645 (grub_setup_SOURCES): Remove kern/parser.c.
20646 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20647 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20648 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20649 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20650 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20651 (grub_setup_SOURCES): Remove kern/parser.c.
20652 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20653 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20654 * include/grub/command.h (grub_command_iterate): Removed.
20655 (FOR_COMMANDS): New macro.
20656 * include/grub/dl.h (grub_dl): New member next.
20657 (grub_dl_iterate): Removed.
20658 (grub_dl_head): New variable declaration.
20659 (FOR_DL_MODULES): New macro.
20660 * include/grub/fs.h: Include list.h.
20661 (grub_fs): Make next first element.
20662 (grub_fs_list): New variable declaration.
20663 (grub_fs_register): Make inline.
20664 (grub_fs_unregister): Likewise.
20665 (grub_fs_iterate): Removed.
20666 (FOR_FILESYSTEMS): New macro.
20667 * include/grub/handler.h: Removed.
20668 * include/grub/list.h (grub_list_hook_t): Removed.
20669 (grub_list_test_t): Likewise.
20670 (grub_list_pop): Likewise.
20671 (grub_list_iterate): Likewise.
20672 (grub_list_insert): Likewise.
20673 (FOR_LIST_ELEMENTS): New macro.
20674 * include/grub/parser.h (grub_parser_class): Removed.
20675 (grub_parser_register): Likewise.
20676 (grub_parser_unregister): Likewise.
20677 (grub_parser_get_current): Likewise.
20678 (grub_parser_set_current): Likewise.
20679 (grub_register_rescue_parser): Likewise.
20680 (grub_rescue_parse_line): New function.
20681 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20682 * include/grub/script_sh.h (grub_script_function_list): New variable
20684 (FOR_SCRIPT_FUNCTIONS): New macro.
20685 (grub_script_function_iterate): Removed.
20686 (grub_normal_parse_line): New prototype.
20687 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20688 (FOR_DISABLED_TERM_INPUTS): Likewise.
20689 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20690 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20691 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20693 (grub_video_register): Inline.
20694 (grub_video_unregister): Likewise.
20695 (grub_video_adapter_list): New variable declaration.
20696 (grub_video_iterate): Removed.
20697 (FOR_VIDEO_ADAPTERS): New macro.
20698 * kern/dl.c (grub_dl_list): Removed. All users updated.
20699 (grub_dl_iterate): Removed.
20700 * kern/fs.c (grub_fs_list): Make global.
20701 (grub_fs_register): Removed.
20702 (grub_fs_unregister): Likewise.
20703 (grub_fs_iterate): Likewise.
20704 * kern/handler.c: Removed.
20705 * kern/list.c (grub_list_pop): Removed.
20706 (grub_list_iterate): Likewise.
20707 (grub_list_insert): Likewise.
20708 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20709 (grub_prio_list_insert): Don't use grub_list_insert.
20710 * kern/main.c (grub_register_rescue_parser): Don't call
20711 grub_register_rescue_parser.
20712 * kern/parser.c (grub_parser_class): Removed.
20713 (grub_parser_execute): Use grub_rescue_parse_line.
20714 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20715 (grub_rescue_parser): Removed.
20716 (grub_register_rescue_parser): Likewise.
20717 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20718 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20719 (grub_auth_check_authentication): Likewise.
20720 * normal/completion.c (iterate_command): Removed.
20721 (grub_normal_do_completion): Use FOR_COMMANDS.
20722 * normal/handler.c: Removed.
20723 * normal/main.c (read_config_file): Remove parser changing.
20724 (grub_normal_execute): Don't call read_handler_list.
20725 (grub_normal_read_line_real): Statically allocate prompt.
20726 (grub_cmdline_run): Use grub_normal_parse_line.
20727 (GRUB_MOD_FINI): Don't call free_handler_list.
20728 * normal/menu_entry.c (run): Likewise.
20729 * script/function.c (grub_script_function_list): Make global.
20730 (grub_script_function_iterate): Removed.
20731 * script/main.c (grub_normal_parse_line): Make global.
20732 (grub_sh_parser): Removed.
20733 (GRUB_MOD_INIT): Likewise.
20734 (GRUB_MOD_FINI): Likewise.
20735 * tests/lib/functional_test.c (grub_functional_test): Use
20737 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20738 (grub_test_run): Use FOR_LIST_ELEMENTS.
20739 * tests/lib/unit_test.c (main): Likewise.
20740 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20742 * util/grub-fstest.c (grub_term_input_class): Removed.
20743 (grub_term_output_class): Likewise.
20744 * util/grub-probe.c: Likewise.
20745 * util/i386/pc/grub-setup.c: Likewise.
20746 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20747 * util/grub-script-check.c (main): Don't call grub_init_all and
20749 * video/video.c (grub_video_adapter_list): Make global.
20750 (grub_video_register): Removed.
20751 (grub_video_unregister): Likewise.
20752 (grub_video_iterate): Likewise.
20754 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20756 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20757 reported by Henrique Ferreiro.
20759 2010-06-09 Robert Millan <rmh@gnu.org>
20761 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20762 ones, when both are available.
20764 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20766 Make --version uniform and avoid hard-coded program name.
20768 * util/grub-mkimage.c (main): Use `program_name' instead of
20770 * util/i386/pc/grub-setup.c (main): Likewise.
20771 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20772 * util/grub-install.in: Save the basename of $0 in $self, and use the
20773 latter in informational messages. Use the same format for --version
20774 as the binary programs.
20775 * util/grub-mkconfig.in: Likewise.
20776 * util/grub-mkrescue.in: Likewise.
20777 * util/grub-reboot.in: Likewise.
20778 * util/grub-set-default.in: Likewise.
20779 * util/i386/efi/grub-install.in: Likewise.
20780 * util/ieee1275/grub-install.in: Likewise.
20781 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20783 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20785 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20786 embedding area. Use <= instead of == when checking for non-emptiness.
20788 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20790 * configure.ac: Add `.' to the directories searched for unifont.
20792 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20794 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20797 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20799 * docs/grub.texi (History): Expand to cover GRUB 2.
20800 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20801 commands, not `terminal'.
20802 (serial): Likewise.
20803 (terminal_input): New section.
20804 (terminal_output): New section.
20805 (uppermem): New section (stub).
20806 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20808 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20810 * docs/grub.texi (Security): Menu entries are unrestricted by
20811 default, not restricted to superusers as I had previously thought.
20812 Reword to account for this.
20814 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20816 * kern/emu/misc.c (device_mapper_null_log): New function.
20817 (grub_device_mapper_supported): New function.
20818 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20820 * kern/emu/hostdisk.c (find_partition_start): Check whether
20821 device-mapper is supported before trying to use it.
20822 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20824 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20826 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20827 (File name syntax): Likewise.
20828 (help): --all is no longer supported in GRUB 2. Be more precise
20829 about pattern matching.
20831 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20833 * normal/completion.c (grub_normal_do_completion): When completing
20834 arguments to "set" and the current word contains an equals sign,
20835 skip to after the equals sign before starting completion.
20837 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20839 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20841 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20843 * docs/grub.texi (Network): New section.
20844 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20845 `(nd)' as in GRUB Legacy.
20846 (pxe_unload): New section.
20848 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20850 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20851 in the rescue shell, so recommend using `set' instead. Thanks,
20854 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20856 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20857 (password): New section.
20858 (password_pbkdf2): New section.
20859 (search): New section.
20860 (Security): New section.
20861 (Troubleshooting): New section, currently very incomplete.
20862 (Invoking grub-mkpasswd-pbkdf2): New section.
20863 (Internals): New section, currently very incomplete.
20865 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20867 * util/grub.d/00_header.in: Add some more quoting (of
20868 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20870 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20872 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20874 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20875 to `count', fixing variable shadowing that broke the -c option.
20877 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20879 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20880 in case they contain spaces.
20882 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20884 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20885 "part_" to partmap module names, in line with grub-install.
20886 Reported by: Jindřich Makovička (Debian bug #584426).
20888 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20890 * util/grub-mkimage.c: Make target-related error messages slightly
20891 more helpful; -O talks about "format". Explicitly point to the use
20892 of -O if no target is specified.
20893 Reported by: Didier Raboud (Debian bug #584415).
20895 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20897 * INSTALL: Document several build requirements for optional features
20898 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20900 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20902 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20903 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20904 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20906 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20908 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20909 Thanks to Jordan Uggla for spotting this.
20911 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20913 Finally make USB usable.
20915 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20916 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20917 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20918 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20919 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20920 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20921 (GRUB_OHCI_FSMPS): Likewise.
20922 (GRUB_OHCI_PERIODIC_START): Likewise.
20923 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20924 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20925 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20926 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20927 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20928 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20929 (grub_ohci_transaction): Likewise.
20930 (grub_ohci_transfer): Improve condition detection algorithms.
20931 Handle toggle property. Program the transactions correctly.
20932 Improve error handling. Various important fixups.
20933 (grub_ohci_portstatus): Put register writes in right order.
20934 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
20935 (grub_uhci_transfer): Don't show "failed" message on success.
20936 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
20938 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
20939 determine its size.
20940 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
20941 before initialization is completed. Use IN direction for empty
20942 transfers. Use last_trans and compute toggle.
20943 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
20944 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
20945 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
20946 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
20947 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
20948 (grub_usb_device): Increase toggle to 256.
20949 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
20950 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
20951 GRUB_USBMS_SUBCLASS_SFF8070.
20952 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
20953 (grub_scsi_inquiry): New member page and alloc_length.
20954 (grub_scsi_request_sense): New structure.
20955 (grub_scsi_request_sense_data): Likewise.
20956 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
20958 * disk/scsi.c (grub_scsi_request_sense): New function.
20959 (grub_scsi_test_unit_ready): Likewise.
20960 (grub_scsi_inquiry): Fill new fields.
20961 (grub_scsi_read_capacity): Likewise.
20962 (grub_scsi_read10): Add request sense at the end.
20963 (grub_scsi_read12): Likewise.
20964 (grub_scsi_write10): Likewise.
20965 (grub_scsi_write12): Likewise.
20966 (grub_scsi_open): Add Test Unit Ready.
20967 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
20968 Support additional subclasses. Con't clear halt yet. Activate the
20969 proper config. Calculate LUNs correctly.
20970 (grub_usbms_transfer): Various important fixups.
20972 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20974 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
20975 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
20976 (grub_ohci_fini_hw): New function.
20977 (grub_ohci_restore_hw): Likewise.
20978 (GRUB_MOD_INIT(ohci)): Register preboot hook.
20979 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
20980 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
20982 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
20984 Dedicated DMA allocations.
20986 * bus/pci.c (grub_memalign_dma32): New function
20987 (grub_dma_free): Likewise.
20988 (grub_dma_get_virt): Likewise.
20989 (grub_dma_get_phys): Likewise.
20990 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
20991 (grub_ohci_pci_iter): Use dma32_alloc.
20992 (grub_ohci_transfer): Likewise.
20993 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
20994 (grub_usb_bulk_readwrite): Likewise.
20995 * include/grub/pci.h: Add declarations.
20997 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21001 * bus/cs5536.c: New file.
21002 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21003 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21004 (cs5536_mod_SOURCES): New variable.
21005 (cs5536_mod_CFLAGS): Likewise.
21006 (cs5536_mod_LDFLAGS): Likewise.
21007 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21009 (kernel_img_SOURCES): Add bus/cs5536.c.
21010 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21012 (usb_mod_SOURCES): New variable.
21013 (usb_mod_CFLAGS): New variable.
21014 (usb_mod_LDFLAGS): New variable.
21015 (usbtest_mod_SOURCES): New variable.
21016 (usbtest_mod_CFLAGS): New variable.
21017 (usbtest_mod_LDFLAGS): New variable.
21018 (ohci_mod_SOURCES): New variable.
21019 (ohci_mod_CFLAGS): New variable.
21020 (ohci_mod_LDFLAGS): New variable.
21021 (usbms_mod_SOURCES): New variable.
21022 (usbms_mod_CFLAGS): New variable.
21023 (usbms_mod_LDFLAGS): New variable.
21024 (usb_keyboard_mod_SOURCES): New variable.
21025 (usb_keyboard_mod_CFLAGS): New variable.
21026 (usb_keyboard_mod_LDFLAGS): New variable.
21027 * include/grub/smbus.h: New file.
21028 * include/grub/cs5536.h: New file.
21030 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21032 * util/grub.d/00_header.in: Add safety check to make sure that
21033 ${locale_dir} exists before trying to probe it.
21035 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21037 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21038 per the GNU Coding Standards; this is now too obscure to be worth
21041 (chainloader): Remove cross-reference to `SCO UnixWare'.
21043 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21045 * docs/grub.texi (Chain-loading): New section.
21046 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21047 adjusted for GRUB 2.
21048 (SCO UnixWare): Likewise.
21050 (chainloader): Add reference to `Block list syntax'.
21051 (drivemap): New section.
21052 (parttool): New section.
21054 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21056 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21058 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21059 (Installing GRUB using grub-install): Remove reference to the grub
21060 shell; mention `grub-mkimage' and `grub-setup' instead.
21061 (Invoking grub-install): Likewise.
21062 (Interface): Add reference to `Menu entry editor'.
21063 (serial): Remove `--device' option.
21065 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21067 * docs/grub.texi (Configuration): New section, documenting
21068 configuration file generation using grub-mkconfig. I've left a slot
21069 for documenting the full shell scripting format but have not yet
21070 started on writing that up.
21071 (Invoking grub-mkconfig): New section.
21073 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21075 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21076 (GNU GRUB manual): Likewise.
21077 (General commands): Update description of `terminfo' for GRUB 2.
21079 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21081 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21082 (GRUB_MOD_INIT): Fix capitalisation.
21083 * docs/grub.texi (Command-line and menu entry commands): Document
21084 gettext and gptsync commands.
21086 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21088 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21089 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21091 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
21093 Add btrfs probing support, currently only in the single-device case.
21095 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21097 (grub_guess_root_device): Call find_root_device_from_mountinfo
21098 before looking in /dev.
21100 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21102 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21103 GRUB_DISK_SIZE_UNKNOWN.
21104 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21106 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
21108 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21109 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21110 corrupted or not synced properly.
21112 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21114 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21115 Reported by: Seth Goldberg.
21117 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21119 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21121 Reported by: Seth Goldberg.
21123 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21125 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21126 Reported by: Seth Goldberg.
21128 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21130 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21131 64-bit address as signed on MIPS.
21133 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21135 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21136 to the empty string.
21138 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21140 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21142 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21143 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21144 * kern/misc.c (__enable_execute_stack): Disable on
21147 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21149 Make grub-probe work with symbolic links under /dev/mapper as well
21150 as with real block devices. The Linux world seems to be (at best)
21151 in transition here, and GRUB shouldn't get caught in the middle.
21153 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21156 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21158 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21159 input files (in which case exit zero).
21161 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21163 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21164 return NULL for various reasons even if it has a maximum-length
21165 buffer: for example, there might be a symlink loop, or the path
21166 might exceed PATH_MAX. If this happens, return NULL.
21168 2010-05-27 Robert Millan <rmh@gnu.org>
21170 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21171 partmap module to handle cross-partmap setups.
21172 Reported by Orestes Mas. Gràcies!
21174 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21176 * util/grub-mkrescue.in: Initialise override_dir rather than
21177 assuming that it's unset or empty in the environment.
21179 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21181 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21182 variable index into p_index to suppress a warning with -Wshadow.
21184 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21186 * INSTALL: Added flex >= 2.5.35 requirement.
21188 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21190 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21192 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21196 * commands/i386/cmostest.c: New file.
21197 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21198 (cmostest_mod_SOURCES): New variable.
21199 (cmostest_mod_CFLAGS): Likewise.
21200 (cmostest_mod_LDFLAGS): Likewise.
21201 * conf/i386-pc.rmk: Likewise.
21202 * docs/grub.texi (Vendor power-on keys): New section.
21203 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21204 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21205 and GRUB_BUTTON_CMOS_ADDRESS.
21206 * util/grub.d/00_header.in: Handle powering-on by separate button.
21208 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21210 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21211 Removed drawing_scrollbar argument. All users updated
21213 Reported by Jo Shields
21215 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21217 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21218 buffer since gfxterm handles double repaint.
21220 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21222 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21223 * term/gfxterm.c (real_scroll): Likewise.
21225 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21227 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21228 before calling BIOS.
21230 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21232 * include/grub/i18n.h: Always enable grub_gettext.
21234 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21236 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21237 partition naming style.
21239 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
21241 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21242 not the first option.
21244 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21246 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21248 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21250 * util/misc.c: Move inclusion of <limits.h> to ...
21251 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21253 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21255 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21256 Fix merge error in NetBSD code.
21257 (find_partition_start) [__NetBSD__]: Likewise.
21259 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21261 Fix grub-mkrescue usage unit testing.
21263 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21265 2010-05-18 Christian Franke <franke@computer.org>
21267 * util/grub.d/10_windows.in: Use path names instead of
21268 drive letters to prevent warning from Cygwin 1.7.
21269 Add drivemap command to menuentry if needed.
21271 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21273 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21274 gnumach and gnumach.gz.
21276 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21278 * include/grub/i18n.h (gettext): Inline instead of using #define.
21279 (grub_gettext): Likewise.
21282 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21284 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21285 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21286 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21287 (main): Add a slash after pkglibdirroot.
21289 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21291 * util/grub-install.in: Add missing "in" keyword.
21293 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21295 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21296 Reported by: Seth Goldberg.
21298 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21300 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21302 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21304 * configure.ac: Check for Linux device-mapper support.
21306 * util/hostdisk.c (device_is_mapped): New function.
21307 (find_partition_start): New function, partly broken out from
21308 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21309 device-mapper support added.
21310 (linux_find_partition): Use find_partition_start.
21311 (convert_system_partition_to_system_disk): Add `st' argument.
21312 Support Linux /dev/mapper/* devices if device-mapper support is
21313 available; only DM-RAID devices are understood at present.
21314 (find_system_device): Add `st' argument. Pass it to
21315 convert_system_partition_to_system_disk.
21316 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21317 find_system_device and convert_system_partition_to_system_disk. Use
21318 find_partition_start.
21320 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21321 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21322 * util/deviceiter.c [__linux__]: Define MINOR.
21323 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21324 * util/mkdevicemap.c (grub_putchar): New function.
21325 (grub_getkey): New function.
21326 (grub_refresh): New function.
21327 (main): Set debug=all if -v -v is used.
21329 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21331 Fix build with non-GNU libcs.
21333 * util/misc.c (canonicalize_file_name): Move to ...
21334 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21335 grub_make_system_path_relative_to_its_root.
21337 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21339 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21340 we handle finding grub-mkimage. Default to finding grub-mkimage in
21341 ${bindir} with program_transform_name applied, and provide a
21342 --grub-mkimage option to override this.
21344 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21346 Remove grub-mkisofs.
21348 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21349 (grub_mkisofs_SOURCES): Removed.
21350 (grub_mkisofs_CFLAGS): Removed.
21351 * util/mkisofs/defaults.h: Removed.
21352 * util/mkisofs/eltorito.c: Likewise.
21353 * util/mkisofs/exclude.h: Likewise.
21354 * util/mkisofs/hash.c: Likewise.
21355 * util/mkisofs/include/: Likewise.
21356 * util/mkisofs/include/fctldefs.h: Likewise.
21357 * util/mkisofs/include/mconfig.h: Likewise.
21358 * util/mkisofs/include/prototyp.h: Likewise.
21359 * util/mkisofs/include/statdefs.h: Likewise.
21360 * util/mkisofs/iso9660.h: Likewise.
21361 * util/mkisofs/joliet.c: Likewise.
21362 * util/mkisofs/match.c: Likewise.
21363 * util/mkisofs/match.h: Likewise.
21364 * util/mkisofs/mkisofs.c: Likewise.
21365 * util/mkisofs/mkisofs.h: Likewise.
21366 * util/mkisofs/msdos_partition.h: Likewise.
21367 * util/mkisofs/multi.c: Likewise.
21368 * util/mkisofs/name.c: Likewise.
21369 * util/mkisofs/rock.c: Likewise.
21370 * util/mkisofs/tree.c: Likewise.
21371 * util/mkisofs/write.c: Likewise.
21373 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21375 Unify grub-mkimage accross platforms.
21377 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21378 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21379 (grub_mkelfimage_SOURCES): Removed.
21380 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21381 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21382 (bin_UTILITIES): Add grub-mkimage.
21383 (grub_mkimage_SOURCES): New variable.
21384 (kernel_img_HEADERS): Remove machine/kernel.h.
21385 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21386 (pkglib_PROGRAMS): Add kernel.img.
21387 (kernel_img_HEADERS): Add machine/kernel.h.
21388 (kernel_img_FORMAT): Removed.
21389 (bin_UTILITIES): Remove grub-mkimage.
21390 (grub_mkimage_SOURCES): Removed.
21391 (grub_mkimage_CFLAGS): Likewise.
21392 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21393 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21394 (pkglib_PROGRAMS): Add kernel.img.
21395 (bin_UTILITIES): Remove grub-mkimage.
21396 (grub_mkimage_SOURCES): Removed.
21397 (grub_mkimage_CFLAGS): Likewise.
21398 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21399 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21400 (pkglib_PROGRAMS): Add kernel.img.
21401 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21402 (pkglib_PROGRAMS): Add kernel.img.
21403 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21404 (grub_mkimage_SOURCES): Removed.
21405 (grub_mkimage_CFLAGS): Likewise.
21406 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21407 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21408 (pkglib_PROGRAMS): Add kernel.img.
21409 (bin_UTILITIES): Remove grub-mkimage.
21410 (grub_mkimage_SOURCES): Removed.
21411 (grub_mkimage_CFLAGS): Likewise.
21412 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21413 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21414 (grub_mkimage_SOURCES): Removed.
21415 (grub_mkimage_CFLAGS): Likewise.
21416 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21417 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21418 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21419 (grub_pe32_optional_header): ... this.
21420 (grub_pe64_optional_header): ... and this. All users updated.
21421 (GRUB_PE32_PE32_MAGIC): Split into ..
21422 (GRUB_PE32_PE32_MAGIC): .. this.
21423 (GRUB_PE32_PE64_MAGIC): .. and this.
21424 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21425 * include/grub/elf.h (PT_GNU_STACK): New definition.
21426 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21427 * include/grub/i386/efi/kernel.h: Likewise.
21428 * include/grub/i386/kernel.h: Likewise.
21429 * include/grub/i386/pc/kernel.h: Likewise.
21430 * include/grub/i386/qemu/boot.h: Likewise.
21431 * include/grub/mips/kernel.h: Likewise.
21432 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21433 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21434 * include/grub/powerpc/kernel.h: Likewise.
21435 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21436 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21437 * include/grub/sparc64/kernel.h: Likewise.
21438 * include/grub/x86_64/efi/kernel.h: Likewise.
21439 * include/grub/x86_64/kernel.h: Likewise.
21440 * include/grub/offsets.h: New file.
21441 * include/grub/kernel.h (grub_module_info): Split into ...
21442 (grub_module_info32): ... this.
21443 (grub_module_info64): ... and this.
21444 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21445 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21446 (grub_boot_blocklist): Moved from here ...
21447 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21448 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21449 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21450 * include/grub/types.h (grub_target_to_host16): Removed.
21451 (grub_target_to_host32): Likewise.
21452 (grub_target_to_host64): Likewise.
21453 (grub_host_to_target16): Likewise.
21454 (grub_host_to_target32): Likewise.
21455 (grub_host_to_target64): Likewise.
21456 (grub_host_to_target_addr): Likewise.
21458 Support grub-mkrescue for efi, coreboot and qemu.
21460 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21461 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21462 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21463 * util/grub-mkrawimage.c: Moved from here ...
21464 * util/grub-mkimage.c: ... here. All users updated.
21465 (ALIGN_ADDR): Use image_target.
21466 (TARGET_NO_FIELD): New const.
21467 (image_target_desc): New type.
21468 (image_targets): New array.
21469 (grub_target_to_host64): Use image_target.
21470 (grub_target_to_host32): Likewise.
21471 (grub_target_to_host16): Likewise.
21472 (grub_host_to_target64): Likewise.
21473 (grub_host_to_target32): Likewise.
21474 (grub_host_to_target16): Likewise.
21475 (grub_host_to_target_addr): Likewise.
21476 (generate_image): Handle multiimage.
21477 (main): Require -O parameter. All users updated.
21478 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21479 util/efi/grub-mkimage.c
21480 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21481 New option --rom-directory.
21483 * util/i386/efi/grub-mkimage.c: Removed.
21484 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21485 (grub_target_to_host32): Likewise.
21486 (grub_target_to_host64): Likewise.
21487 (grub_host_to_target16): Likewise.
21488 (grub_host_to_target32): Likewise.
21489 (grub_host_to_target64): Likewise.
21490 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21491 (grub_target_to_host32): Likewise.
21492 (grub_target_to_host64): Likewise.
21493 (grub_host_to_target16): Likewise.
21494 (grub_host_to_target32): Likewise.
21495 (grub_host_to_target64): Likewise.
21497 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21499 Source tree is reorganized for emu build.
21501 * include/grub/util/console.h: Move from here...
21502 * include/grub/emu/console.h: ...to here.
21503 * include/grub/util/getroot.h: Move from here...
21504 * include/grub/emu/getroot.h: ...to here.
21505 * include/grub/util/hostdisk.h: Move from here...
21506 * include/grub/emu/hostdisk.h: ...to here.
21507 * util/console.c: Move from here...
21508 * kern/emu/console.c: ...to here.
21509 * util/getroot.c: Move from here...
21510 * kern/emu/getroot.c: ...to here.
21511 * util/grub-emu.c: Move from here...
21512 * kern/emu/main.c: ...to here.
21513 * util/hostdisk.c: Move from here...
21514 * kern/emu/hostdisk.c: ...to here.
21515 * util/hostfs.c: Move from here...
21516 * kern/emu/hostfs.c: ...to here.
21517 * util/mm.c: Move from here...
21518 * kern/emu/mm.c: ...to here.
21519 * util/pci.c: Move from here...
21520 * bus/emu/pci.c: ...to here.
21521 * util/sdl.c: Move from here...
21522 * video/emu/sdl.c: ...to here.
21523 * util/time.c: Move from here...
21524 * kern/emu/time.c: ...to here.
21525 * util/usb.c: Move from here...
21526 * bus/usb/emu/usb.c: ...to here.
21528 * include/grub/emu/misc.h: New header for grub-emu functions.
21529 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21531 * conf/any-emu.rmk: Rule updates for above renames.
21532 * conf/common.rmk: Likewise.
21533 * conf/i386-pc.rmk: Likewise.
21534 * conf/i386-qemu.rmk: Likewise.
21535 * conf/mips.rmk: Likewise.
21536 * conf/sparc64-ieee1275.rmk: Likewise.
21537 * conf/x86-efi.rmk: Likewise.
21539 * disk/lvm.h: #include updates for above renames.
21540 * util/grub-mkrelpath.c: Likewise.
21541 * util/grub-probe.c: Likewise.
21542 * util/i386/pc/grub-setup.c: Likewise.
21543 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21544 * kern/emu/console.c: Likewise.
21545 * kern/emu/getroot.c: Likewise.
21546 * kern/emu/hostdisk.c: Likewise.
21547 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21549 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21550 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21551 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21552 * util/misc.c: Remove grub-emu functions.
21554 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21557 Reported by: Thorsten Grützmacher.
21559 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21561 (circprog_set_property): Register and unregister timeout hook.
21562 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21563 (label_destroy): Free template. and unregister hook.
21564 (label_set_state): New function.
21565 (label_set_property): Handle templates and hooks.
21566 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21568 (progress_bar_set_property): Register and unregister timeout hook.
21569 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21570 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21571 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21572 (update_timeout_visit): Removed.
21573 (update_timeouts): New function.
21574 (redraw_timeouts): Likewise.
21575 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21576 (grub_gfxmenu_clear_timeout): Likewise.
21577 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21578 (grub_gfxmenu_timeout_notify): Likewise.
21579 (grub_gfxmenu_timeout_notifications): New external variable.
21580 (grub_gfxmenu_timeout_register): New function.
21581 (grub_gfxmenu_timeout_unregister): Likewise.
21583 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21585 Transform (broken) vga terminal into (working) vga video driver.
21587 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21588 video/i386/pc/vga.c.
21589 * include/grub/video.h (grub_video_driver_id):
21590 Add GRUB_VIDEO_DRIVER_VGA.
21591 * term/i386/pc/vga.c: Renamed to ...
21592 * video/i386/pc/vga.c: ...this
21593 (DEBUG_VGA): Removed.
21594 (CHAR_WIDTH): Likewise.
21595 (CHAR_HEIGHT): Likewise.
21596 (TEXT_WIDTH): Likewise.
21597 (TEXT_HEIGHT): Likewise.
21598 (DEFAULT_FG_COLOR): Likewise.
21599 (DEFAULT_BG_COLOR): Likewise.
21600 (colored_char): Likewise.
21603 (cursor_state): Likewise.
21604 (fg_color): Likewise.
21605 (bg_color): Likewise.
21606 (text_buf): Likewise.
21609 (framebuffer): New variable.
21610 (set_read_map): Disabled.
21611 (setup): New variable.
21612 (is_target): Likewise.
21613 (grub_vga_mod_init): Likewise.
21614 (grub_vga_mod_fini): Likewise.
21615 (check_vga_mem): Likewise.
21616 (write_char): Likewise.
21617 (write_cursor): Likewise.
21618 (scroll_up): Likewise.
21619 (grub_vga_putchar): Likewise.
21620 (grub_vga_getcharwidth): Likewise.
21621 (grub_vga_getwh): Likewise.
21622 (grub_vga_getxy): Likewise.
21623 (grub_vga_gotoxy): Likewise.
21624 (grub_vga_cls): Likewise.
21625 (grub_vga_setcolorstate): Likewise.
21626 (grub_vga_setcursor): Likewise.
21627 (grub_video_vga_init): New function.
21628 (grub_video_vga_setup): Likewise.
21629 (grub_video_vga_fini): Likewise.
21630 (update_target): Likewise.
21631 (grub_video_vga_blit_bitmap): Likewise.
21632 (grub_video_vga_blit_render_target): Likewise.
21633 (grub_video_vga_set_active_render_target): Likewise.
21634 (grub_video_vga_get_active_render_target): Likewise.
21635 (grub_video_vga_swap_buffers): Likewise.
21636 (grub_video_vga_set_palette): Likewise.
21637 (grub_video_vga_get_info_and_fini): Likewise.
21638 (grub_vga_term): Removed.
21639 (grub_video_vga_adapter): New variable.
21640 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21641 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21643 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21645 * video/readers/jpeg.c: Indented.
21647 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21649 Various jpeg cleanups.
21651 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21652 (grub_jpeg_decode_quan_table): Use sizeof.
21653 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21655 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21657 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21658 tables. Ignore non-last ac bit.
21659 (grub_jpeg_decode_quan_table): Likewise.
21661 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21663 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21664 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21665 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21666 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21667 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21668 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21670 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21672 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21675 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21677 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21679 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21681 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21684 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21686 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21689 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21691 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21694 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21696 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21698 2010-05-01 Christian Franke <franke@computer.org>
21700 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21701 Remove broken Cygwin path conversion.
21702 * util/misc.c: [__CYGWIN__] Add include and define.
21703 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21705 (make_system_path_relative_to_its_root): Simplify loop, replace early
21707 [__CYGWIN__] Add conversion to win32 path.
21708 Include "/" case in trailing slash removal.
21710 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21712 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21713 Reported by: Seth Goldberg
21715 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21717 * commands/help.c (grub_cmd_help): Fix a typo.
21718 Reported by: Seth Goldberg
21720 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21722 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21724 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21725 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21726 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21727 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21728 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21729 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21730 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21731 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21732 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21733 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21734 * normal/context.c (GRUB_MOD_INIT): Likewise.
21735 * normal/main.c (GRUB_MOD_INIT): Likewise.
21736 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21737 * term/serial.c (GRUB_MOD_INIT): Likewise.
21738 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21740 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21742 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21745 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21747 * commands/iorw.c: New file.
21748 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21749 (iorw_mod_SOURCES): New variable.
21750 (iorw_mod_CFLAGS): Likewise.
21751 (iorw_mod_LDFLAGS): Likewise.
21753 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21757 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21758 * normal/main.c (hotkey_aliases): New variable.
21759 (grub_normal_add_menu_entry): Parse "--hotkey".
21760 * normal/menu_text.c (run_menu): Handle hotkeys.
21762 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21764 * kern/i386/coreboot/init.c (grub_machine_init): Call
21765 grub_machine_mmap_init on qemu.
21767 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21769 * boot/i386/qemu/boot.S: Add a missing .code16.
21771 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21773 Use LBIO on coreboot.
21775 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21776 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21777 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21779 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21780 grub_machine_mmap_init on coreboot.
21781 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21782 GRUB_LINUXBIOS_MEMBER_LINK.
21783 (grub_machine_mmap_iterate): Fix declaration.
21784 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21786 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21788 Split coreboot and multiboot ports.
21790 * conf/i386-multiboot.rmk: New file.
21791 * configure.ac: Add multiboot port.
21792 * include/grub/i386/multiboot/boot.h: New file.
21793 * include/grub/i386/multiboot/console.h: Likewise.
21794 * include/grub/i386/multiboot/init.h: Likewise.
21795 * include/grub/i386/multiboot/kernel.h: Likewise.
21796 * include/grub/i386/multiboot/loader.h: Likewise.
21797 * include/grub/i386/multiboot/memory.h: Likewise.
21798 * include/grub/i386/multiboot/serial.h: Likewise.
21799 * include/grub/i386/multiboot/time.h: Likewise.
21800 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21801 * loader/multiboot.c: Likewise.
21802 * loader/multiboot_mbi2.c: Likewise.
21803 * util/grub-mkrescue.in: Generate multiboot rescue.
21805 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21807 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21809 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21811 Merge handling of input and output terminals. Fix a hang.
21813 * commands/terminal.c (abstract_terminal): New struct.
21814 (handle_command): New function. Based on grub_cmd_terminal_input.
21815 (grub_cmd_terminal_input): Use handle_command.
21816 (grub_cmd_terminal_output): Use handle_command.
21818 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21820 Fix comment handling.
21822 * tests/grub_script_comments.in: New testcase.
21823 * conf/tests.rmk: Rules for new testcase.
21824 * script/yylex.l: Updated flex rules.
21826 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21828 * docs/grub.texi (play): Document that zero pitches produce rests.
21829 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21832 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21834 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21837 2010-04-26 Christian Franke <franke@computer.org>
21839 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21840 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21841 (grub_get_prefix): Remove function.
21842 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21843 make_system_path_relative_to_its_root ().
21844 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21846 2010-04-24 Christian Franke <franke@computer.org>
21848 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21849 (kernel_img_LDFLAGS): Remove -static-libgcc.
21851 2010-04-24 Christian Franke <franke@computer.org>
21853 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21854 and CHECK_END_SYMBOL if grub-emu is built.
21855 Unset TARGET_OBJ2ELF if grub-emu is built
21856 without module support.
21858 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21862 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21863 (grub_fstest_SOURCES): Likewise.
21864 (pkglib_MODULES): Add nilfs2.mod.
21865 (nilfs2_mod_SOURCES): New variable.
21866 (nilfs2_mod_CFLAGS): Likewise.
21867 (nilfs2_mod_LDFLAGS): Likewise.
21868 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21869 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21870 * fs/nilfs2.c: New file.
21872 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21874 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21877 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21879 Add grub-mkconfig support for NetBSD.
21881 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21882 * util/grub-mkconfig.in: export new NetBSD specific variables.
21883 * po/POTFILES-shell: added 10_netbsd.in.
21884 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21886 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21888 Fix emu build with grub-emu-pci and grub-emu-modules.
21890 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21892 * include/grub/libpciaccess.h: New file.
21893 * conf/any-emu.rmk: Update kernel headers for emu build.
21895 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21897 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21899 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21901 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21903 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21905 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21906 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21907 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21908 util/ieee1275/ofpath.c.
21909 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21910 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21911 * include/grub/sparc64/ieee1275/boot.h
21912 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21913 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21914 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21915 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21917 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21918 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21919 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21922 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21924 * util/grub-mkconfig.in: Corrected two == equality tests.
21925 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21926 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21927 expect a number appended to it.
21928 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21929 expects a number appended to it.
21931 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21933 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
21935 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21937 * util/hostdisk.c (make_device_name): Change to new partition naming.
21939 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
21941 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
21943 2010-04-17 Christian Franke <franke@computer.org>
21945 * Makefile.in: Add missing localedir setting.
21947 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
21949 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
21950 mistake in r2156. Noticed by Anthony Fok.
21952 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
21954 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
21956 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
21958 Fix a spurious, uninitialized variable warning.
21960 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
21961 Initialize variable, shdr.
21962 (grub_freebsd_load_elfmodule): Likewise.
21963 (grub_freebsd_load_elf_meta): Likewise.
21965 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
21967 Fix for escaped dollar in double quoted strings.
21969 * script/yylex.l: Updated flex rules.
21970 * conf/tests.rmk: Rule for new testcase.
21971 * tests/grub_script_dollar.in: New testcase.
21973 2010-04-13 Carles Pina i Estany <carles@pina.cat>
21974 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
21976 Enclose all translated strings in grub.cfg in single quotes, and
21977 escape them appropriately (Ubuntu bug #552921).
21979 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
21980 * util/grub.d/10_hurd.in: Use it.
21981 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
21982 * util/grub.d/10_linux.in (linux_entry): Likewise.
21984 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21986 Fix cygwin compilation.
21988 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
21989 * include/grub/misc.h (__register_frame_info)
21990 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
21991 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21992 * kern/misc.c (__register_frame_info)
21993 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
21994 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
21996 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
21998 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22000 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22002 Unify libgcc processing.
22004 * Makefile.in (kernel_img_LDFLAGS): New variable.
22005 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22006 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22008 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22009 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22010 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22011 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22012 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22013 overwriting. Remove -lgcc and -static-libgcc
22014 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22015 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22016 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22017 (kernel_img_LDFLAGS): Append instead of overwriting.
22018 Remove -lgcc and -static-libgcc
22019 * conf/sparc64-ieee1275.rmk: Likewise.
22020 * include/grub/powerpc/libgcc.h: Move to ...
22021 * include/grub/libgcc.h: .. this.
22022 * include/grub/libgcc.h: Don't export most of the function on x86.
22023 (__bswapsi2): New export.
22024 (__bswapdi2): Likewise.
22025 * include/grub/mips/libgcc.h: Removed.
22026 * include/grub/sparc64/libgcc.h: Likewise.
22028 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22030 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22031 disk_info_msg (conflicts with gettexting into languages with cases).
22033 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22035 Add grub-probe support for NetBSD.
22037 * util/getroot.c (find_root_device): Convert block device to
22038 character device on NetBSD.
22039 * util/probe.c (probe): Require character device on NetBSD.
22040 * util/hostdisk.c: NetBSD specific headers.
22041 (configure_device_driver): new function to tune device driver
22042 parameters (currently only for NetBSD floppy driver).
22043 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22044 via disklabel ioctl).
22045 (open_device): call configure_device_driver on NetBSD.
22046 (convert_system_partition_to_system_disk): NetBSD specific code.
22047 (device_is_wholedisk): Likewise.
22048 (grub_util_biosdisk_get_grub_dev): Likewise.
22049 (make_device_name): Fixed a typo in bsd_part_str.
22050 * configure.ac: check for opendisk() and getrawpartition() on
22051 NetBSD and set LIBUTIL.
22052 * Makefile.in: add LIBUTIL to LIBS.
22054 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22058 * util/grub-script-check.c: Better help message.
22060 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22064 * configure.ac: Flex version check.
22065 * conf/common.rmk: Add -Wno-error to sh.mod.
22066 * script/yylex.l: Remove all #pragma.
22068 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22070 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22072 Reported by: Seth Goldberg.
22074 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22076 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22077 Rename "module" to "module2".
22078 Reported by: Seth Goldberg.
22080 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22082 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22084 Reported by: Seth Goldberg.
22086 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22088 * lib/posix_wrap/locale.h: Add missing file.
22089 Reported by: Seth Goldberg.
22091 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22093 grub-emu module load support.
22095 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22096 NO_DYNAMIC_MODULES switched to this.
22097 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22098 (CFLAGS): Likewise.
22099 * conf/any-emu.rmk: Generate symlist.
22100 (kernel_img_HEADERS): Add util/datetime.h.
22101 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22102 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22103 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22104 kern/$(target_cpu)/cache.S.
22105 * configure.ac (grub-emu-modules): New option.
22106 * genmk.rb: Handle multiple source lists.
22107 * include/grub/sdl.h: New file.
22108 * include/grub/libusb.h: Likewise.
22109 * util/grub-emu.c (main): Hanle (host) root.
22110 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22111 GRUB_ERR_UNKNOWN_DEVICE.
22112 * util/misc.c: Move mm functions to ...
22113 * util/mm.c: ... here. All users updated.
22115 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22117 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22118 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22120 (maintainer-clean): Remove libgcrypt-grub.
22122 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22124 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22126 2010-04-09 EFI Coder <eficoder@hotmail.com>
22128 * normal/menu_text.c (print_message): Clean up the message and show
22129 the Fn information when on EFI
22130 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22132 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22134 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22136 * normal/crypto.c (read_crypto_list): Likewise.
22137 * normal/dyncmd.c (read_command_list): Likewise.
22138 * normal/term.c (read_terminal_list): Likewise.
22139 * normal/main.c (read_lists): Use explicit prefix.
22140 (read_lists_hook): Use read_lists.
22141 (grub_normal_execute): Likewise.
22143 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22145 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22146 Reported by: Thomas Schmitt.
22147 Add -no-emul-boot to grub-mkisofs parameters.
22149 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22151 * font/font.c: Indented.
22153 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22155 Elif support to GRUB script (by Deepak Vankadaru).
22157 * tests/grub_script_if.in: New testcase.
22158 * conf/tests.rmk: Rule for new testcase.
22159 * script/parser.y: Grammar rules for elif.
22161 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22163 While and until loops support to GRUB script.
22165 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22166 (grub_script_create_cmdwhile): New function prototype.
22167 (grub_script_execute_cmdwhile): New function prototype.
22168 * script/execute.c (grub_script_execute_cmdwhile): New function.
22169 * script/parser.y (command): New commands.
22170 (whilecmd): New grammar rule.
22171 (untilcmd): New grammar rule.
22172 * script/script.c (grub_script_create_cmdwhile): New function.
22173 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22176 * tests/grub_script_while1.in: New testcase.
22177 * conf/tests.rmk: Rule for new testcase.
22179 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22181 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22184 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
22186 GRUB_BACKGROUND support.
22188 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22189 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22191 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22193 Load fonts and modules for gfxmenu in grub-mkconfig.
22194 Idea by: Mario Vazquez
22196 * util/grub.d/00_header.in: Load pf2 and image modules.
22198 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22200 grub-mkconfig multiple terminal support.
22202 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22203 * util/grub.d/00_header.in: Likewise.
22205 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22207 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22208 we use cd $(srcdir).
22210 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
22212 * util/grub.d/10_linux.in: Only use the first word of
22213 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22214 spaces in GRUB_DISTRIBUTOR.
22215 * util/grub.d/10_kfreebsd.in: Likewise.
22216 * util/grub.d/10_hurd.in: Likewise.
22218 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22220 Fix unit testing framework for Qemu 0.12.
22222 * tests/util/grub-shell.in: Remove -serial stdio option.
22224 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22226 POSIX header file wrappers.
22228 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22230 * lib/posix_wrap/ctype.h: Likewise.
22231 * lib/posix_wrap/errno.h: Likewise.
22232 * lib/posix_wrap/langinfo.h: Likewise.
22233 * lib/posix_wrap/limits.h: Likewise.
22234 * lib/posix_wrap/localcharset.h: Likewise.
22235 * lib/posix_wrap/stdint.h: Likewise.
22236 * lib/posix_wrap/stdio.h: Likewise.
22237 * lib/posix_wrap/stdlib.h: Likewise.
22238 * lib/posix_wrap/string.h: Likewise.
22239 * lib/posix_wrap/sys/types.h: Likewise.
22240 * lib/posix_wrap/unistd.h: Likewise.
22241 * lib/posix_wrap/wchar.h: Likewise.
22242 * lib/posix_wrap/wctype.h: Likewise.
22243 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22244 (grub_script.yy.h): Likewise.
22245 * script/yylex.l: Remove POSIX emulation #defines.
22246 * Makefile.in (POSIX_CFLAGS): New variable.
22247 (GNULIB_UTIL_CFLAGS): Likewise.
22251 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22252 (regexp_mod_SOURCES): New variable.
22253 (regexp_mod_CFLAGS): Likewise.
22254 (regexp_mod_LDFLAGS): Likewise.
22255 * commands/regexp.c: New file.
22256 * gnulib/regcomp.c: New file. Imported from gnulib.
22257 * gnulib/regex.c: Likewise.
22258 * gnulib/regex_internal.c: Likewise.
22259 * gnulib/regex_internal.h: Likewise.
22260 * gnulib/regexec.c: Likewise.
22261 * gnulib/regex.h: Likewise.
22263 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22265 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22266 unsupported video mode types.
22268 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22270 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22272 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22274 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22275 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22277 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22279 Remove unused grub_vga_get_font.
22281 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22282 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22284 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22286 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22287 * include/grub/misc.h: Likewise.
22289 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22291 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22292 for which failure is fatal.
22294 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22296 * util/grub-install.in: Use mkdir -p to create grub directory.
22297 * util/i386/efi/grub-install.in: Likewise.
22298 * util/ieee1275/grub-install.in: Likewise.
22300 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22302 * Makefile.in (LEX): new variable.
22304 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22306 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22307 `=' and added double quotes on operands of this equality test.
22309 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22311 * Makefile.in (uninstall): Remove a leftover debug echo.
22312 Reported by: Grégoire Sutre
22314 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22316 MIPS multiboot2 support.
22318 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22319 (multiboot2_mod_SOURCES): New variable.
22320 (multiboot2_mod_CFLAGS): Likewise.
22321 (multiboot2_mod_LDFLAGS): Likewise.
22322 (multiboot2_mod_ASFLAGS): Likewise.
22323 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22325 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22326 (MULTIBOOT_MBI_REGISTER): Likewise.
22327 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22328 (MULTIBOOT_ELF32_MACHINE): Likewise.
22329 (MULTIBOOT_ELF64_MACHINE): Likewise.
22330 * include/grub/mips/multiboot.h: New file.
22331 * include/grub/video.h (grub_video_driver_id): New type
22332 GRUB_VIDEO_DRIVER_SM712.
22333 (grub_video_get_info_and_fini): Export.
22334 (grub_video_get_palette): Likewise.
22335 (grub_video_get_driver_id): Likewise.
22336 * include/multiboot2.h: Resynced with spec.
22337 * loader/i386/multiboot.c: Moved from here ...
22338 * loader/multiboot.c: ... here. All users updated.
22339 (grub_multiboot_boot): Use platform-specific macros.
22340 * loader/i386/multiboot_elfxx.c: Moved from here ...
22341 * loader/multiboot_elfxx.c: ... here. All users updated.
22342 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22343 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22344 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22346 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22348 Import gnulib argp module.
22350 * gnulib/argp-ba.c: New file.
22351 * gnulib/argp-eexst.c: Likewise.
22352 * gnulib/argp-fmtstream.c: Likewise.
22353 * gnulib/argp-fmtstream.h: Likewise.
22354 * gnulib/argp-fs-xinl.c: Likewise.
22355 * gnulib/argp-help.c: Likewise.
22356 * gnulib/argp-namefrob.h: Likewise.
22357 * gnulib/argp-parse.c: Likewise.
22358 * gnulib/argp-pin.c: Likewise.
22359 * gnulib/argp-pv.c: Likewise.
22360 * gnulib/argp-pvh.c: Likewise.
22361 * gnulib/argp-version-etc.c: Likewise.
22362 * gnulib/argp-version-etc.h: Likewise.
22363 * gnulib/argp-xinl.c: Likewise.
22364 * gnulib/argp.h: Likewise.
22366 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22368 * kern/device.c (grub_device_iterate): Clear errors after failed
22371 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22373 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22374 returned by firmware.
22376 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22378 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22379 compilation on coreboot and qemu
22381 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22383 * include/multiboot2.h: Resync with spec.
22385 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22387 Multiboot2 tag support
22389 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22390 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22391 Remove loader/multiboot_loader.c.
22392 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22393 (grub_multiboot2_real_boot): Likewise.
22394 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22395 (grub_get_multiboot_mmap_count): New proto.
22396 (grub_fill_multiboot_mmap): Likewise.
22397 (grub_multiboot_set_video_mode): Likewise.
22398 (grub_multiboot_set_console): Likewise.
22399 (grub_multiboot_load): Likewise.
22400 (grub_multiboot_load_elf): Likewise.
22401 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22402 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22403 * include/multiboot.h: Resynced with specification.
22404 * include/multiboot2.h: Resynced with specification.
22405 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22406 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22407 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22408 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22410 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22411 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22412 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22414 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22416 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22417 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22419 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22420 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22421 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22423 * loader/i386/multiboot_mbi2.c: New file.
22425 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22427 Resync with gnulib.
22429 * Makefile.in (GNULIB_CFLAGS): New variable.
22430 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22431 (grub_script_check_CFLAGS): New variable.
22432 * gnulib/alloca.h: Resync with gnulib.
22433 * gnulib/error.c: Likewise.
22434 * gnulib/error.h: Likewise.
22435 * gnulib/fnmatch.c: Likewise.
22436 * gnulib/fnmatch_loop.c: Likewise.
22437 * gnulib/getdelim.c: Likewise.
22438 * gnulib/getline.c: Likewise.
22439 * gnulib/getopt.c: Likewise.
22440 * gnulib/getopt1.c: Likewise.
22441 * gnulib/getopt_int.h: Likewise.
22442 * gnulib/gettext.h: Likewise.
22443 * gnulib/progname.c: Likewise.
22444 * gnulib/progname.h: Likewise.
22446 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22448 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22449 which is the case with --disabled-nls.
22451 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22452 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22453 * util/misc.c: Likewise.
22454 * util/mkisofs/mkisofs.c: Likewise.
22455 * util/mkisofs/mkisofs.h: Likewise.
22457 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22459 Simplify Apple CC support.
22461 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22462 Add 0 byte at the end not to have a symbol with empty target.
22463 * mmap/i386/pc/mmap_helper.S: Likewise.
22464 * genmk.rb: Ignore errors 2030 and 2050.
22465 * kern/i386/pc/startup.S: Use LOCAL when possible.
22467 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22469 Testcase and the fix for final semicolon on cmdline.
22471 * tests/grub_script_final_semicolon.in: New testcase.
22472 * conf/tests.rmk: Rules for the new testcase.
22473 * script/parser.y: Grammar fix.
22475 2010-03-26 BVK Chaitanya <bvk@localhost>
22477 Blank lines testcase for GRUB script.
22479 * tests/grub_script_blanklines.in: New testcase.
22480 * conf/tests.rmk: Rules for the new testcase.
22482 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22484 Don't use __FILE__.
22486 * genmk.rb: Add -DGRUB_FILE to all C targets.
22487 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22488 * include/grub/list.h: Likewise.
22489 * include/grub/misc.h: Likewise.
22490 * include/grub/mm.h: Likewise.
22491 * include/grub/test.h: Likewise.
22492 * kern/mm.c: Likewise.
22493 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22495 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22497 Sunpc partitions support.
22499 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22500 (grub_fstest_SOURCES): Likewise.
22501 (pkglib_MODULES): Add part_sunpc.mod.
22502 (part_sunpc_mod_SOURCES): New variable.
22503 (part_sunpc_mod_CFLAGS): Likewise.
22504 (part_sunpc_mod_LDFLAGS): Likewise.
22505 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22506 * partmap/sunpc.c: New file.
22508 2010-03-26 BVK Chaitanya <bvk@localhost>
22510 For loop support to GRUB script.
22512 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22513 (grub_script_create_cmdfor): New function prototype.
22514 (grub_script_execute_cmdfor): New function prototype.
22515 * script/execute.c (grub_script_execute_cmdfor): New function.
22516 * script/parser.y (command): New for command.
22517 (forcmd): New grammar rule.
22518 * script/script.c (grub_script_create_cmdfor): New function.
22519 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22521 * tests/grub_script_for1.in: New testcase.
22522 * conf/tests.rmk: Rules for new testcase.
22524 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22528 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22529 'partition' is NULL, grub_partition_get_start already does that.
22530 * commands/loadenv.c (check_blocklists): Likewise.
22531 (write_blocklists): Likewise.
22532 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22533 (grub_fstest_SOURCES): Likewise.
22534 (pkglib_MODULES): Add part_bsd.mod.
22535 (part_bsd_mod_SOURCES): New variable.
22536 (part_bsd_mod_CFLAGS): Likewise.
22537 (part_bsd_mod_LDFLAGS): Likewise.
22538 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22539 (grub_emu_SOURCES): Likewise.
22540 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22541 * include/grub/bsdlabel.h: New file.
22542 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22544 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22545 (grub_partition_map_list): New variable.
22546 (grub_partition_map_register): Inline.
22547 (grub_partition_map_unregister): Likewise.
22548 (FOR_PARTITION_MAPS): New macro.
22549 (grub_partition_map_iterate): Removed.
22550 (grub_partition_get_start): Handle nested partitions.
22551 * include/grub/msdos_partition.h: Remove bsd-related entries.
22552 (grub_pc_partition): Remove.
22553 * kern/disk.c (grub_disk_close): Free partition data.
22554 (grub_disk_adjust_range): Handle nested partitions.
22555 * kern/partition.c (grub_partition_map_probe): New function.
22556 (grub_partition_probe): Parse name to number, handle subpartitions.
22557 (get_partmap): New function.
22558 (grub_partition_iterate): Handle subpartitions.
22559 (grub_partition_get_name): Likewise.
22560 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22561 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22562 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22563 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22565 (acorn_partition_map_probe): Remove.
22566 (acorn_partition_map_get_name): Likewise.
22567 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22569 Set 'index' to 0 since there can be only one partition entry per sector.
22570 (amiga_partition_map_probe): Remove.
22571 (amiga_partition_map_get_name): Likewise.
22572 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22574 Set 'offset' and 'index' to real positions of partitions.
22575 (apple_partition_map_probe): Remove.
22576 (apple_partition_map_get_name): Likewise.
22577 * partmap/bsdlabel.c: New file.
22578 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22580 Allocate 'data' so it can be correctly freed.
22581 Set 'index' to offset inside sector.
22582 (gpt_partition_map_probe): Remove.
22583 (gpt_partition_map_get_name): Likewise.
22584 * partmap/msdos.c (grub_partition_parse): Remove.
22585 (pc_partition_map_iterate): Don't force raw access.
22587 Make 'ext_offset' a local variable.
22588 (pc_partition_map_probe): Remove.
22589 (pc_partition_map_get_name): Remove.
22590 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22592 (sun_partition_map_probe): Remove.
22593 (sun_partition_map_get_name): Likewise.
22594 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22595 (grub_pcpart_type): Likewise.
22596 * util/hostdisk.c (open_device): Handle new numbering scheme.
22597 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22598 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22599 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22600 * util/grub-install.in: Insert all subpartition modules.
22601 * util/ieee1275/grub-install.in: Likewise.
22603 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22605 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22608 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22610 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22612 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22614 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22615 match where 'make install' puts them.
22616 * util/i386/efi/grub-install.in: Likewise.
22618 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22620 * .bzrignore: Add gentrigtables, grub-script-check,
22621 grub_script_check_init.c, grub_script_check_init.h, and
22624 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22626 * kern/parser.c: Indented.
22628 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22630 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22632 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22634 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22635 alpha_mask_size == 0 case.
22637 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22639 GRUB shell lexer and parser improvements.
22641 * conf/any-emu.rmk: Build rule updates.
22642 * conf/common.rmk: Likewise.
22643 * conf/i386-coreboot.rmk: Likewise.
22644 * conf/i386-efi.rmk: Likewise.
22645 * conf/i386-ieee1275.rmk: Likewise.
22646 * conf/i386-pc.rmk: Likewise.
22647 * conf/powerpc-ieee1275.rmk: Likewise.
22648 * conf/x86_64-efi.rmk: Likewise.
22650 * configure.ac: Configure check for flex.
22652 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22654 (grub_lexer_param): Struct member updates.
22655 (grub_parser_param): Likewise.
22656 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22657 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22658 (grub_script_lexer_init): Prototype update.
22659 (grub_script_lexer_record_start): Likewise.
22660 (grub_script_lexer_record_stop): Likewise.
22661 (grub_script_lexer_yywrap): New function prototype.
22662 (grub_script_lexer_fini): Likewise.
22663 (grub_script_execute_argument_to_string): Removed by...
22664 (grub_script_execute_argument_to_argv): ...better version.
22666 * script/execute.c (ROUND_UPTO): New macro.
22667 (grub_script_execute_cmdline): Out of memory fixes.
22668 (grub_script_execute_menuentry): Likewise.
22669 (grub_script_execute_argument_to_string): Removed. Update all
22671 (grub_script_execute_argument_to_argv): ...better version.
22672 * script/function.c (grub_script_function_create): Use
22673 grub_script_execute_argument_to_argv instead of
22674 grub_script_execute_argument_to_string.
22676 * script/lexer.c (check_varstate): Removed.
22677 (check_textstate): Removed.
22678 (grub_script_lexer_record_start): Likewise.
22679 (grub_script_lexer_record_stop): Likewise.
22680 (recordchar): Replaced with...
22681 (grub_script_lexer_record): ...new function.
22682 (nextchar): Removed.
22683 (grub_script_lexer_init): Rewritten.
22684 (grub_script_yylex): Rewritten.
22685 (append_newline): New function.
22686 (grub_script_lexer_yywrap): New function.
22687 (grub_script_lexer_fini): New function.
22688 (grub_script_yyerror): Sets error flag.
22690 * script/yylex.l: New file.
22691 (grub_lexer_yyfree): Wrapper for flex yyffre.
22692 (grub_lexer_yyalloc): Likewise.
22693 (grub_lexer_yyrealloc): Likewise.
22694 * script/parser.y: Refactored.
22696 * script/script.c (grub_script_arg_add): Out of memory fixes.
22697 (grub_script_add_arglist): Likewise.
22698 (grub_script_create_cmdline): Likewise.
22699 (grub_script_create_cmdmenu): Likewise.
22700 (grub_script_add_cmd): Likewise.
22701 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22702 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22705 * tests/grub_script_echo1.in: New testcase.
22706 * tests/grub_script_vars1.in: New testcase.
22707 * tests/grub_script_echo_keywords.in: New testcase.
22709 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22711 Remove some redundancy in build system.
22713 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22714 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22715 (TARGET_LDFLAGS): Add -nostdlib.
22716 (TARGET_IMG_LDFLAGS): Likewise.
22717 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22718 anything since mmap isn't available.
22719 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22721 (pkglib_MODULES): Remove reboot.mod.
22722 (reboot_mod_SOURCES): Removed.
22723 (reboot_mod_CFLAGS): Likewise.
22724 (reboot_mod_LDFLAGS): Likewise.
22725 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22726 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22727 (DEFSYMFILES): Add kernel_syms.lst.
22728 (kernel_img_HEADERS): Add common headers.
22729 (symlist.c): New target.
22730 (kernel_syms.lst): Likewise.
22731 (pkglib_MODULES): Add memdisk.mod.
22732 (memdisk_mod_SOURCES): New variable.
22733 (memdisk_mod_CFLAGS): Likewise.
22734 (memdisk_mod_LDFLAGS): Likewise.
22735 (pkglib_MODULES): Add reboot.mod.
22736 (reboot_mod_SOURCES): New variable.
22737 (reboot_mod_CFLAGS): Likewise.
22738 (reboot_mod_LDFLAGS): Likewise.
22739 (pkglib_MODULES): Add date.mod.
22740 (date_mod_SOURCES): New variable.
22741 (date_mod_CFLAGS): Likewise.
22742 (date_mod_LDFLAGS): Likewise.
22743 (pkglib_MODULES): Add datehook.mod.
22744 (datehook_mod_SOURCES): New variable.
22745 (datehook_mod_CFLAGS): Likewise.
22746 (datehook_mod_LDFLAGS): Likewise.
22747 (pkglib_MODULES): Add lsmmap.mod.
22748 (lsmmap_mod_SOURCES): New variable.
22749 (lsmmap_mod_CFLAGS): Likewise.
22750 (lsmmap_mod_LDFLAGS): Likewise.
22751 (pkglib_MODULES): Add boot.mod.
22752 (boot_mod_SOURCES): New variable.
22753 (boot_mod_CFLAGS): Likewise.
22754 (boot_mod_LDFLAGS): Likewise.
22755 * conf/i386-coreboot.rmk: Removed redundant parts.
22756 * conf/i386-ieee1275.rmk: Likewise.
22757 * conf/i386-pc.rmk: Likewise.
22758 * conf/mips-yeeloong.rmk: Likewise.
22759 * conf/mips.rmk: Likewise.
22760 * conf/powerpc-ieee1275.rmk: Likewise.
22761 * conf/sparc64-ieee1275.rmk: Likewise.
22762 * conf/x86_64-efi.rmk: Likewise.
22763 * conf/i386-coreboot.rmk: Moved qemu parts ..
22764 * conf/i386-qemu.rmk: ... here
22765 * conf/i386-efi.rmk: Moved common parts to...
22766 * conf/x86-efi.rmk: ... here.
22767 * conf/i386.rmk: Added modules common to all x86 variants.
22768 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22769 * disk/memdisk.c: Remove grub/machine/kernel.h.
22770 * gensymlist.sh.in: Include symbol.h.
22771 * hook/datehook.c: Correct module name.
22772 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22773 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22774 * include/grub/i386/efi/serial.h: New file.
22775 * include/grub/x86_64/efi/serial.h: Likewise.
22776 * util/time.c: Likewise.
22777 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22779 2010-03-14 Colin King <colin.king@ubuntu.com>
22780 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22782 Shrink the pre-partition-table part of boot.img by eight bytes.
22784 * boot/i386/pc/boot.S (ERR): New macro.
22785 (chs_mode): Use ERR.
22786 (geometry_error): Likewise.
22787 (hd_probe_error): Remove. This is only used once, so we wrwite
22789 (read_error): Instead of printing read_error_string, just set up
22790 %si and fall through to ...
22791 (error_message): ... this new function, also used by ERR.
22793 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22795 Speed up consecutive hostdisk operations on the same device.
22797 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22798 (grub_util_biosdisk_open): Initialise disk->data.
22799 (struct linux_partition_cache): New structure.
22800 (linux_find_partition): Cache partition start positions; these are
22801 expensive to compute on every read and write.
22802 (open_device): Cache open file descriptor in disk->data, so that we
22803 don't have to reopen it and flush the buffer cache for consecutive
22804 operations on the same device.
22805 (grub_util_biosdisk_close): New function.
22806 (grub_util_biosdisk_dev): Set `close' member.
22808 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22809 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22810 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22811 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22812 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22814 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22816 Compile parts of grub-emu as modules.
22818 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22819 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22820 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22821 (all-local): Add $(GRUB_EMU).
22822 (install-local): Install $(GRUB_EMU).
22823 (uninstall): Uninstall $(GRUB_EMU).
22824 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22825 * kern/dl.c: Likewise.
22826 * commands/sleep.c: Not include machine/time.h.
22827 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22828 (COMMON_CFLAGS): Likewise.
22829 (sbin_UTILITIES): Remove grub-emu.
22830 (grub_emu_SOURCES): Removed.
22831 (kernel_img_RELOCATABLE): New variable.
22832 (pkglib_PROGRAMS): Add kernel.img.
22833 (kernel_img_SOURCES): New variable
22834 (kernel_img_CFLAGS): Likewise.
22835 (kernel_img_LDFLAGS): Likewise.
22836 (TARGET_NO_STRIP): Likewise.
22837 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22838 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22839 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22840 (grub-emu): New target.
22841 (GRUB_EMU): New variable.
22842 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22843 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22844 * loader/xnu.c: Likewise.
22845 * include/grub/pci.h: Likewise.
22846 * genemuinit.sh: New file.
22847 * genemuinitheader.sh: Likewise.
22848 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22849 Support TARGET_NO_DYNAMIC_MODULES.
22850 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22851 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22852 * disk/loopback.c: Likewise.
22853 * font/font_cmd.c: Likewise.
22854 * partmap/acorn.c: Likewise.
22855 * partmap/amiga.c: Likewise.
22856 * partmap/apple.c: Likewise.
22857 * partmap/gpt.c: Likewise.
22858 * partmap/msdos.c: Likewise.
22859 * partmap/sun.c: Likewise.
22860 * parttool/msdospart.c: Likewise.
22861 * term/gfxterm.c: Likewise.
22862 * video/bitmap.c: Likewise.
22863 * video/readers/jpeg.c: Likewise.
22864 * video/readers/png.c: Likewise.
22865 * video/readers/tga.c: Likewise.
22866 * video/video.c: Likewise.
22867 * util/grub-emu.c (read_command_list): Removed.
22868 (main): Don't call util_init_nls.
22869 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22870 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22872 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22874 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22875 date.mod, datehook.mod.
22876 (datetime_mod_SOURCES): New variable.
22877 (datetime_mod_CFLAGS): Likewise.
22878 (datetime_mod_LDFLAGS): Likewise.
22879 (date_mod_SOURCES): Likewise.
22880 (date_mod_CFLAGS): Likewise.
22881 (date_mod_LDFLAGS): Likewise.
22882 (datehook_mod_SOURCES): Likewise.
22883 (datehook_mod_CFLAGS): Likewise.
22884 (datehook_mod_LDFLAGS): Likewise.
22885 * conf/sparc64-ieee1275.rmk: Likewise.
22886 * lib/ieee1275/datetime.c: New file.
22888 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22890 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22891 (ieee1275_fb_mod_SOURCES): New variable.
22892 (ieee1275_fb_mod_CFLAGS): Likewise.
22893 (ieee1275_fb_mod_LDFLAGS): Likewise.
22894 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22896 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22897 (HEAP_MAX_ADDR): Likewise.
22898 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22900 Correct stop condition.
22901 (grub_ieee1275_devices_iterate): New function.
22902 * video/ieee1275.c: New file.
22904 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22906 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22908 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22910 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22911 SCRATCH_PAD_DISKBOOT as scratch.
22912 (bootit): Pass Openfirmware pointer in %o4.
22913 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22915 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22916 with util/grub-mkrawimage.c.
22917 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22918 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22919 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22920 (grub_aout_load) [GRUB_UTIL]: Likewise.
22921 * include/grub/kernel.h (grub_modules_get_end): New proto.
22922 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22923 (SCRATCH_PAD_BOOT): New definition.
22924 (SCRATCH_PAD_DISKBOOT): Likewise.
22925 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22926 * include/grub/sparc64/ieee1275/ieee1275.h
22927 (grub_ieee1275_original_stack): New variable
22928 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
22930 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
22931 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
22932 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
22933 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
22934 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
22935 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
22936 (grub_platform_image_format_t): New type.
22937 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
22938 * kern/main.c (grub_modules_get_end)
22939 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
22940 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
22941 (codestart): Switch stacks.
22942 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
22944 (grub_heap_init): Use grub_modules_get_end.
22945 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
22947 * util/grub-mkrawimage.c (generate_image): Support sparc64.
22949 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
22951 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
22953 * util/grub-mkrescue.in: Base ISO UUID on UTC.
22955 2010-03-08 Matt Kraai <kraai@ftbfs.org>
22957 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
22960 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
22962 * genmoddep.awk: Output all missing symbols and not only first.
22964 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22966 * NEWS: Put the date of 1.98 release.
22968 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22970 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
22973 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22975 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
22976 completition in the middle of string.
22978 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22980 * util/grub-mkrescue.in: Use mktemp with explicit template.
22982 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22984 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
22986 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
22988 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
22991 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
22993 Fix FreeBSD compilation.
22995 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
22996 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
22998 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23000 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23002 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23004 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23006 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23008 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23010 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23012 Support relative image path in theme file.
23014 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23015 (image_set_property): Handle theme_dir and relative path.
23017 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23019 * configure.ac: Alias amd64 to x86_64.
23021 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23023 * NEWS: mention multiboot on EFI.
23025 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23027 * kern/main.c (grub_load_modules): Handle errors from init functions of
23030 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23032 * normal/autofs.c (autoload_fs_module): Handle errors.
23034 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23036 Disable linux.mod on qemu-mips since it's not functional and leads
23037 to compilation failure.
23039 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23040 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23041 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23042 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23043 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23044 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23045 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23046 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23047 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23048 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23049 Reported by: BVK Chaitanya
23051 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23053 * INSTALL: Add gettext as a dependency and add qemu to a new section
23054 "Prerequisites for make-check".
23056 2010-03-04 Christian Franke <franke@computer.org>
23058 * util/grub-pe2elf.c: Add missing include "progname.h".
23060 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23062 * normal/crypto.c (read_crypto_list): Fix a typo.
23063 Reported by: Seth Goldberg.
23065 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23067 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
23068 Reported by: Seth Goldberg.
23070 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23072 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23075 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23077 * genmk.rb: Remove terminal*.lst in make clean.
23078 Reported by: Seth Goldberg.
23080 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23082 * util/i386/efi/grub-install.in: Copy gettext files.
23084 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23086 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23088 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23090 Wait for user entry basing on presence of output rather than on errors.
23092 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23093 (grub_install_newline_hook): Likewise.
23094 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23095 * normal/menu.c (show_menu): Check line_counter to determine presence
23097 * normal/term.c (grub_normal_line_counter): New variable.
23098 (grub_normal_get_line_counter): New function.
23099 (grub_install_newline_hook): Likewise.
23101 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23103 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23105 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23107 * configure.ac: Update version to 1.98.
23109 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23111 * util/grub.d/10_linux.in (linux_entry): Don't default to
23112 gfxpayload=keep if Linux doesn't support video handover.
23114 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23116 Don't compile video modules on yeeloong since video subsystem is part
23119 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23120 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23121 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23122 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23123 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23124 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23125 * include/grub/bitmap_scale.h: Likewise.
23126 * include/grub/bufio.h: Likewise.
23127 * include/grub/font.h: Likewise.
23128 * include/grub/gfxterm.h: Likewise.
23129 * include/grub/video.h: Likewise.
23130 * include/grub/vbe.h: Don't include video_fb.h.
23131 * video/i386/pc/vbe.c: Include video_fb.h.
23132 * commands/i386/pc/vbetest.c: Include video.h.
23134 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23136 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23137 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23138 default entry if GRUB_SAVEDEFAULT=true. This allows using
23139 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23140 saving a new default on every boot.
23142 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23144 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23145 * normal/term.c (read_terminal_list): Likewise.
23146 * normal/main.c (grub_normal_init_page): Likewise.
23147 (grub_normal_read_line_real): Likewise.
23149 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23151 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23153 Reported by: Seth Goldberg.
23155 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23157 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23158 duplicate declaration of `start'.
23160 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23162 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23164 Reported by: Georgy Buranov
23166 2010-02-20 Carles Pina i Estany <carles@pina.cat>
23168 * util/grub-mkrawimage.c (usage): Change string formatting to
23171 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23173 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23176 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23178 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23179 Reported by: Michael Suchanek.
23181 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
23183 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23184 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23186 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23188 Remove any reference to non-free fonts.
23190 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23191 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23192 uses non-free components.
23193 * font/font.c (grub_font_get_name): Remove example name.
23194 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23195 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23196 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23197 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23199 2010-02-16 Georgy Buranov <gburanov@gmail.com>
23201 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23203 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23205 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23207 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23209 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23211 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23213 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23215 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23217 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23218 * docs/grub.texi (Command-line and menu entry commands): Document play
23221 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23223 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23224 parse arguments as inline tempo and notes. Move code for playing notes
23226 (play): ... new function.
23228 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23230 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23231 grub_uint16_t instead of short.
23232 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23233 disk from little endian to cpu endianness.
23235 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23237 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23238 GRUB_TICKS_PER_SECOND instead of 120.
23240 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23242 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23243 escape sequence after \e.
23245 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23247 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23248 non-ASCII characters.
23250 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23252 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23253 set root in single quotes to prevent \, from being unescaped.
23255 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23257 Prevent unknown commands from stopping menuentry execution.
23259 * script/execute.c (grub_script_execute_cmdline): Print error after
23262 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23264 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23265 Reported by: Pavel Pisa.
23267 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23269 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23271 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23273 Merge grub_ieee1275_map_physical into grub_map and rename to
23276 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23277 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23279 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23280 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23282 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23284 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23286 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23287 opening and not after.
23289 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23291 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23294 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23296 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23297 (alloc_phys): Use ALIGN_UP instead of align_addr.
23299 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23301 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23303 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23305 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23307 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23309 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23312 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23314 Fix over-4GiB seek on sparc64.
23316 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23317 Replace pos_i and pos_lo with pos. All users updated.
23318 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23320 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23322 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23325 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23327 * util/grub-mkrawimage.c (main): Call set_program_name.
23329 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23331 Properly align 64-bit targets.
23333 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23334 (generate_image): Use ALIGN_ADDR.
23336 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23338 Properly create cross-endian images.
23340 * include/grub/types.h (grub_host_to_target_addr): New macro
23341 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23343 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23345 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23347 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23349 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23351 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23352 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23353 (grub_linux_boot): Divide by 64K when on VESA.
23355 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23357 Support GRUB_GFXPAYLOAD_LINUX.
23359 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23360 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23362 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23364 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23365 to show messages instead of discarding them.
23366 Process errors after executing command and not before. Keep old method
23369 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23371 * configure.ac: Check for ft2build.h.
23373 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23375 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23377 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23379 * genkernsyms.sh.in: Use TARGET_CC.
23381 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23385 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23387 * include/grub/multiboot2.h: Remove leftover file.
23388 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23389 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23391 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23393 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23395 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23397 Fix warnings in grub-emu when compiling with maximum warning options.
23399 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23400 (grub_arch_modules_addr): Return 0 and not NULL.
23401 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23402 (xstrdup): Use newstr instead of dup.
23403 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23404 of disk to dsk to avoid shadowing.
23405 (find_free_slot): Fix prototype.
23406 * util/getroot.c (grub_util_is_dmraid): Make static.
23407 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23408 Add missing prototype.
23409 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23411 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23413 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23416 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23418 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23421 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23423 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23424 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23425 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23426 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23427 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23428 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23430 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23432 * include/grub/err.h (grub_err_printf): Don't export.
23434 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23436 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23438 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23440 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23441 * kern/misc.c (grub_gettext_dummy): Make static.
23443 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23445 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23447 * kern/term.c (grub_putchar): Likewise.
23449 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23451 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23452 buggy hook call and memory leak.
23454 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23456 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23458 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23460 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23462 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23464 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23466 Return grub_errno on allocation error.
23468 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23470 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23472 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23474 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23475 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23477 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23479 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23481 (grub_pxefs_open): Likewise.
23483 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23485 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23486 * util/grub.d/10_kfreebsd.in: Likewise.
23487 * util/grub.d/10_linux.in: Likewise.
23489 2010-02-06 Colin D Bennett <colin@gibibit.com>
23491 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23492 (gfxmenu_mod_SOURCES): New variable.
23493 (gfxmenu_mod_CFLAGS): Likewise.
23494 (gfxmenu_mod_LDFLAGS): Likewise.
23495 * include/grub/term.h (grub_term_set_current_output): Declare
23497 * docs/gfxmenu-theme-example.txt: New file.
23498 * gfxmenu/gfxmenu.c: Likewise.
23499 * gfxmenu/gui_box.c: Likewise.
23500 * gfxmenu/gui_canvas.c: Likewise.
23501 * gfxmenu/gui_circular_progress.c: Likewise.
23502 * gfxmenu/gui_image.c: Likewise.
23503 * gfxmenu/gui_label.c: Likewise.
23504 * gfxmenu/gui_list.c: Likewise.
23505 * gfxmenu/gui_progress_bar.c: Likewise.
23506 * gfxmenu/gui_string_util.c: Likewise.
23507 * gfxmenu/gui_util.c: Likewise.
23508 * gfxmenu/icon_manager.c: Likewise.
23509 * gfxmenu/model.c: Likewise.
23510 * gfxmenu/named_colors.c: Likewise.
23511 * gfxmenu/theme_loader.c: Likewise.
23512 * gfxmenu/view.c: Likewise.
23513 * gfxmenu/widget-box.c: Likewise.
23514 * include/grub/gfxmenu_model.h: Likewise.
23515 * include/grub/gfxmenu_view.h: Likewise.
23516 * include/grub/gfxwidgets.h: Likewise.
23517 * include/grub/gui.h: Likewise.
23518 * include/grub/gui_string_util.h: Likewise.
23519 * include/grub/icon_manager.h: Likewise.
23521 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23523 Agglomerate scrolling in gfxterm.
23525 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23526 (grub_virtual_screen_setup): Initialise 'total_screen'.
23527 (write_char): Split to ...
23528 (paint_char): ... this ...
23529 (write_char): ... and this.
23530 (paint_char): Handle delayed scrolling.
23531 (draw_cursor): Likewise.
23532 (scroll_up): Split to ...
23533 (real_scroll): ... this ...
23534 (scroll_up): ... and this.
23535 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23537 (grub_gfxterm_refresh): Call real_scroll.
23539 2010-02-06 Colin D Bennett <colin@gibibit.com>
23541 * include/grub/misc.h (grub_iscntrl): New inline function.
23542 (grub_isalnum): Likewise.
23543 (grub_strtol): Likewise.
23545 2010-02-06 Colin D Bennett <colin@gibibit.com>
23547 * normal/menu_text.c (get_entry_number): Move from here ...
23548 * normal/menu.c (get_entry_number): ... moved here.
23549 * include/grub/menu.h (grub_menu_get_default_entry_index):
23551 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23552 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23553 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23554 (grub_menu_viewer_should_return): Likewise.
23555 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23556 * normal/menu_text.c (run_menu): Enable menu switching.
23557 * normal/menu_viewer.c (should_return): New variable.
23558 (menu_viewer_changed): Likewise.
23559 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23560 (grub_menu_viewer_should_return): New function.
23561 (menuviewer_write_hook): Likewise.
23562 (grub_menu_viewer_init): Likewise.
23564 2010-02-06 Colin D Bennet <colin@gibibit.com>
23565 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23567 Support for gfxterm in a window.
23569 * include/grub/gfxterm.h: New file.
23570 * include/grub/video.h (struct grub_video_rect): New declaration.
23571 (grub_video_rect_t): Likewise.
23572 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23573 (refcount): New variable.
23574 (render_target): Likewise.
23575 (window): Likewise.
23576 (repaint_callback): Likewise.
23577 (grub_virtual_screen_setup): Use 'render_target'.
23578 (init_window): New function.
23579 (grub_gfxterm_init_window): Likewise.
23580 (grub_gfxterm_init): Check reference counter.
23582 (destroy_window): New function.
23583 (grub_gfxterm_destroy_window): Likewise.
23584 (grub_gfxterm_fini): Check reference counter.
23585 Use destroy_window.
23586 (redraw_screen_rect): Restore viewport.
23587 Use 'render_target' and 'window'.
23588 Call 'repaint_callback'.
23589 (write_char): Use 'render_target'.
23590 (draw_cursor): Likewise.
23591 (scroll_up): Restore viewport.
23592 Use 'render_target' and 'window'.
23593 Call 'repaint_callback'.
23594 (grub_gfxterm_cls): Likewise.
23595 (grub_gfxterm_refresh): Use 'window'.
23596 (grub_gfxterm_set_repaint_callback): New function.
23597 (grub_gfxterm_background_image_cmd): Use 'window'.
23598 (grub_gfxterm_get_term): New function.
23599 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23601 2010-02-06 Colin D Bennett <colin@gibibit.com>
23603 Bitmap scaling support.
23605 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23606 (bitmap_scale_mod_SOURCES): New variable.
23607 (bitmap_scale_mod_CFLAGS): Likewise.
23608 (bitmap_scale_mod_LDFLAGS): Likewise.
23609 * include/grub/bitmap_scale.h: New file.
23610 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23611 (background_image_cmd_options): New variable.
23612 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23613 (cmd): Rename and change type to ...
23614 (background_image_cmd_handle): ... this. All users updated.
23615 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23616 * video/bitmap_scale.c: New file.
23618 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23622 * Makefile.in (LIBSDL): New variable.
23623 (enable_grub_emu_sdl): Likewise.
23624 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23625 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23626 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23627 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23628 * util/sdl.c: New file.
23630 2010-02-06 Colin D Bennett <colin@gibibit.com>
23631 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23633 Double buffering support.
23635 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23636 * include/grub/video.h: Update comment.
23637 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23639 (grub_video_fb_doublebuf_blit_init): New prototype.
23640 * term/gfxterm.c (scroll_up): Support double buffering.
23641 (grub_gfxterm_refresh): Likewise.
23642 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23643 (grub_video_fb_doublebuf_blit_init): Likewise.
23644 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23645 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23646 'displayed_page', 'render_page' and 'update_screen'.
23647 (grub_video_vbe_fini): Free offscreen buffer.
23648 (doublebuf_pageflipping_commit): New function.
23649 (doublebuf_pageflipping_update_screen): Likewise.
23650 (doublebuf_pageflipping_init): Likewise.
23651 (double_buffering_init): Likewise.
23652 (grub_video_vbe_setup): Enable doublebuffering.
23653 (grub_video_vbe_swap_buffers): Implement.
23654 (grub_video_vbe_set_active_render_target): Handle double buffering.
23655 (grub_video_vbe_get_active_render_target): Likewise.
23656 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23657 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23658 (grub_video_vbe_enable_double_buffering): Likewise.
23659 (grub_video_vbe_swap_buffers): Use update_screen.
23660 (grub_video_set_mode): Use double buffering.
23662 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23664 * maintainance/gentrigtables.py: Remove.
23665 * lib/trig.c: Likewise.
23667 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23669 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23671 (trigtables.c): New rule.
23672 (gentrigtables): Likewise.
23673 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23675 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23677 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23680 2010-02-06 Colin D Bennet <colin@gibibit.com>
23682 Trigonometry support.
23684 * include/grub/trig.h: New file.
23685 * lib/trig.c: Likewise.
23686 * maintainance/gentrigtables.py: Likewise.
23687 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23688 (trig_mod_SOURCES): New variable.
23689 (trig_mod_CFLAGS): Likewise.
23690 (trig_mod_LDFLAGS): Likewise.
23692 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23694 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23697 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23699 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23702 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23704 * util/hostdisk.c (open_device): Don't use partition device when reading
23705 before the partition.
23706 (grub_util_biosdisk_read): Don't read from partition and before the
23707 partition in single operation.
23708 (grub_util_biosdisk_write): Don't write to partition and before the
23709 partition in single operation.
23711 2010-02-03 Torsten Landschoff <torsten@debian.org>
23713 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23716 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23718 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23720 (grub_biosdisk_write): Refuse to write to CDROM.
23722 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23724 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23726 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23728 * font/font.c (find_glyph): Check that bmp_idx is available before
23730 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23731 with (font == NULL).
23733 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23735 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23737 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23739 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23740 * util/grub-script-check.c (getline): Fix empty lines case.
23742 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23744 * Makefile.in (check): Exit with fail status when one of the tests
23746 * tests/example_functional_test.c (example_test): Fix reversed assert.
23747 * tests/example_unit_test.c (example_test): Likewise.
23749 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23751 * util/grub.d/10_linux.in: This script does not use any of the
23752 contents of gettext.sh, only the external command `gettext', so stop
23753 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23754 the same prefix as GRUB.)
23755 * util/grub.d/10_kfreebsd.in: Likewise.
23757 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23759 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23762 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23764 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23767 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23769 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23770 having a 4KiB and not 32KiB buffer size.
23772 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23774 * util/hostfs.c: Include `<errno.h>'.
23775 (grub_hostfs_read): Handle errors from fseeko() and fread().
23777 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23779 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23780 loop when using read hooks on files whose size isn't sector-aligned.
23782 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23784 Remove unused parameter.
23786 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23787 (grub_iso9660_open): Remove initialization of `data->length'.
23789 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23791 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23792 memleak conditions.
23794 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23796 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23797 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23799 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23801 * util/bin2h.c (usage): Fix warning (space after backslash).
23803 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23805 * font/font.c: Include `grub/fontformat.h.
23806 Remove font file format constants.
23807 (grub_font_load): Use the new macros.
23808 * include/grub/fontformat.h: New file.
23809 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23810 (write_font_pf2): Use the new macros.
23812 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23814 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23817 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23819 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23821 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23822 (_start): Macroify `0x7F'.
23824 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23825 (make_install_device): Use "(pxe)" as fallback prefix when booting
23828 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23830 * configure.ac: Reset LIBS after check for libgcc symbols.
23832 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23834 * util/hostdisk.c (open_device): Add trailing newline to debug
23837 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23839 * configure.ac: Check for `limits.h'.
23840 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23842 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23844 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23845 capitalize error strings.
23847 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23849 * util/grub.d/10_hurd.in: Add a recovery mode.
23851 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23853 * configure.ac: Check for libgcc symbols with -nostdlib.
23855 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23857 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23859 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23861 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23862 stack since heap may be unavailable at that point.
23863 (grub_ofconsole_gotoxy): Likewise.
23865 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23867 * configure.ac: Check for _restgpr_14_x.
23868 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23869 and _savegpr_* prototypes.
23871 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23873 Use generic grub_reboot() for i386-efi.
23875 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23876 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23877 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23879 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23881 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23882 presence of "prefix" variable as it breaks when normal.mod is
23885 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23887 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23888 stack since heap is unavailable at that point.
23890 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23892 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23893 (grub_freebsd_bootinfo): Rewritten.
23894 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23896 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23898 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23900 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23902 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23905 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23907 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23908 around for handling "/" to the correct fix. Fix a memory leak. Use
23909 xstrdup instead of strdup.
23911 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23913 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23915 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23917 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23919 * font/font.c (struct grub_font): New member 'bmp_idx'.
23920 (font_init): Initialise 'bmp_idx'.
23921 (load_font_index): Fill 'bmp_idx'.
23922 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23924 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23926 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23929 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23931 Move context handling out of the kernel.
23933 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
23934 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
23935 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
23936 * conf/i386-efi.rmk: Likewise.
23937 * conf/i386-ieee1275.rmk: Likewise.
23938 * conf/i386-pc.rmk: Likewise.
23939 * conf/powerpc-ieee1275.rmk: Likewise.
23940 * conf/sparc64-ieee1275.rmk: Likewise.
23941 * conf/x86_64-efi.rmk: Likewise.
23942 * include/grub/env.h: Include grub/menu.h.
23943 (grub_env_var_type): Removed.
23944 (grub_env_var): Replaced field 'type' with 'global'.
23945 (grub_env_find): New prototype.
23946 (grub_env_context_open): Remove EXPORT_FUNC.
23947 (grub_env_context_close): Likewise.
23948 (grub_env_export): Likewise.
23949 (grub_env_set_data_slot): Removed.
23950 (grub_env_get_data_slot): Likewise.
23951 (grub_env_unset_data_slot): Likewise.
23952 (grub_env_unset_menu): New prototype.
23953 (grub_env_set_menu): Likewise.
23954 (grub_env_get_menu): Likewise.
23955 * include/grub/env_private.h: New file.
23956 * include/grub/normal.h (grub_context_init): New prototype.
23957 (grub_context_fini): Likewise.
23958 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
23959 * normal/context.c (grub_cmd_export): ... to here.
23960 * kern/env.c: Include env_private.h.
23961 (HASHSZ): Moved to include/grub/env_private.h.
23962 (grub_env_context): Likewise.
23963 (grub_env_sorted_var): Likewise.
23964 (current_context): Renamed from this ...
23965 (grub_current_context): ...to this. 'static' removed. All users updated.
23966 (grub_env_find): Removed 'static'.
23967 (grub_env_context_open): Moved to normal/context.c.
23968 (grub_env_context_close): Likewise.
23969 (grub_env_export): Likewise.
23970 (mangle_data_slot_name): Removed.
23971 (grub_env_set_data_slot): Likewise.
23972 (grub_env_get_data_slot): Likewise.
23973 (grub_env_unset_data_slot): Likewise.
23974 * kern/main.c (grub_set_root_dev): Don't export root.
23975 It will be done later.
23976 (grub_main): Don't export prefix.
23977 It will be done later.
23978 * normal/context.c: New file.
23979 * normal/main.c (free_menu): Use grub_env_unset_menu.
23980 (grub_normal_add_menu_entry): Use grub_env_get_menu.
23981 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
23982 (GRUB_MOD_INIT(normal)): Call grub_context_init.
23983 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
23985 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23989 * commands/setpci.c: New file.
23990 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
23991 (setpci_mod_SOURCES): New variable.
23992 (setpci_mod_CFLAGS): Likewise.
23993 (setpci_mod_LDFLAGS): Likewise.
23995 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23997 Byte-addressable PCI configuration space.
23999 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24001 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24002 GRUB_PCI_REG_CACHELINE.
24003 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24004 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24005 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24006 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24007 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24008 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24009 grub_pci_make_address.
24010 (lock_rom_area): Likewise.
24011 * commands/lspci.c (grub_lspci_iter): Use macroses
24012 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24013 of grub_pci_make_address.
24014 * disk/ata.c (grub_ata_pciinit): Likewise.
24015 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24016 (GRUB_PCI_REG_VENDOR): Likewise.
24017 (GRUB_PCI_REG_DEVICE): Likewise.
24018 (GRUB_PCI_REG_COMMAND): Likewise.
24019 (GRUB_PCI_REG_STATUS): Likewise.
24020 (GRUB_PCI_REG_REVISION): Likewise.
24021 (GRUB_PCI_REG_CLASS): Likewise.
24022 (GRUB_PCI_REG_CACHELINE): Likewise.
24023 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24024 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24025 (GRUB_PCI_REG_BIST): Likewise.
24026 (GRUB_PCI_REG_ADDRESSES): Likewise.
24027 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24028 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24029 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24030 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24031 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24032 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24033 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24034 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24035 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24036 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24037 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24038 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24039 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24040 (GRUB_PCI_REG_MIN_GNT): Likewise.
24041 (GRUB_PCI_REG_MAX_LAT): Likewise.
24042 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24043 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24044 * video/efi_uga.c (find_framebuf): Likewise.
24045 * video/sm712.c (grub_video_sm712_setup): Likewise.
24046 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24049 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24051 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24052 can be reliably determined to be supported.
24054 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24056 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24057 that VESA is supported.
24058 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24061 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24063 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24065 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24067 * util/misc.c (make_system_path_relative_to_its_root): Work around
24068 special-casing of "/", as previous incarnation of this routine did.
24070 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24072 Fix any-emu compilation.
24074 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24075 * grub_bin2h_SOURCES: New variable.
24077 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24079 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24081 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24083 * util/grub.d/00_header.in: Fix handling of locale_dir.
24085 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24087 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24088 as possible unifont location (Gentoo).
24089 Reported by: Alexander Brüning
24091 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24093 Don't try to generate lists for kernel.img.
24095 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24096 (pkglib_MODULES): Remove kernel.img.
24097 (kernel_img_EXPORTS): Removed.
24098 (kernel_img_RELOCATABLE): New variable.
24099 * conf/x86_64-efi.rmk: Likewise.
24100 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24102 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24104 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24105 grub_xasprintf or grub_snprintf.
24106 (grub_vsprintf): Likewise.
24107 (grub_snprintf): New proto.
24108 (grub_vsnprintf): Likewise.
24109 (grub_xasprintf): Likewise.
24110 (grub_xvasprintf): Likewise.
24111 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24112 (grub_sprintf): Removed.
24113 (grub_vsnprintf): New function.
24114 (grub_snprintf): Likewise.
24115 (grub_xvasprintf): Likewise.
24116 (grub_xasprintf): Likewise.
24117 (grub_vsprintf): Renamed to ...
24118 (grub_vsnprintf_real): ...this. New argument max_len.
24120 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24122 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24123 fix grub-script-check warning.
24125 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24127 * include/grub/font.h (grub_font_load): Fix prototype.
24129 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24131 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24133 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24135 * include/grub/x86_64/at_keyboard.h: New file.
24137 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24139 * loader/mips/linux.c: Include missing grub/i18n.h.
24141 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24143 * normal/menu.c (notify_execution_failure): Clarify error message.
24145 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24147 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24148 return value (and revert all return statements). Update users.
24150 2010-01-20 Dan Merillat <debian@dan.merillat.org>
24152 * kern/device.c (grub_device_iterate): Allocate new part_ent
24153 structure based on sizeof (*p) rather than sizeof (p->next), to
24154 account for structure padding.
24156 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24157 disk is NULL, which might happen for LVM physical volumes with no
24160 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24162 * loader/mips/linux.c (grub_cmd_initrd)
24163 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24165 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24167 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24168 (grub_video_video_init, grub_video_bitmap_init)
24169 (grub_font_manager_init, grub_term_gfxterm_init)
24170 (grub_at_keyboard_init): New extern declarations.
24171 (grub_machine_init): Initialize gfxterm and at_keyboard.
24173 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24175 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24176 `gfxterm.mod' into core image.
24178 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24179 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24180 (kernel_img_FORMAT): Copy to ...
24182 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24183 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24184 (kernel_img_FORMAT): ... here, and ...
24186 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24187 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24188 (kernel_img_FORMAT): ... here.
24190 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24191 and input (at_keyboard) terminals in kernel.
24192 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24194 (pkglib_MODULES): Remove `pci.mod'.
24195 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24196 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24197 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24198 (at_keyboard_mod_LDFLAGS): Remove variables.
24200 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
24202 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24204 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24206 * include/grub/mips/libgcc.h: Only export symbols for functions
24207 that libgcc provides.
24209 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24213 * bus/bonito.c: New file.
24214 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24215 GRUB_PCI_NUM_DEVICES.
24216 * term/i386/pc/serial.c: Move to ...
24217 * term/serial.c: ... here. All users updated.
24218 * util/i386/pc/grub-mkimage.c: Move to ...
24219 * util/grub-mkrawimage.c: ... here. All users updated.
24220 * term/i386/pc/at_keyboard.c: Move to ...
24221 * term/at_keyboard.c: ... here. All users updated.
24222 * conf/mips-qemu-mips.rmk: New file.
24223 * conf/mips-yeeloong.rmk: Likewise.
24224 * conf/mips.rmk: Likewise.
24225 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24227 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24229 (grub_ata_pciinit): Support CS5536.
24230 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24231 * font/font_cmd.c (loadfont_command): Open file before passing it to
24233 (pseudo_file_read): New function.
24234 (pseudo_file_close): Likewise.
24235 (pseudo_fs): New structure.
24236 (load_font_module): New function.
24237 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24238 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24239 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24240 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24241 * include/grub/i386/at_keyboard.h: Split into ...
24242 * include/grub/at_keyboard.h: ... this ...
24243 * include/grub/i386/at_keyboard.h: ... and this.
24244 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24246 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24248 (grub_elf64_size): Likewise.
24249 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24251 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24252 * include/grub/i386/coreboot/serial.h: Rewritten.
24253 * include/grub/i386/ieee1275/serial.h: Include
24254 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24255 * include/grub/i386/pc/serial.h: Moved from here ...
24256 * include/grub/serial.h: ... to here. All users updated.
24257 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24258 (GRUB_PCI_NUM_BUS): Likewise.
24259 (GRUB_PCI_NUM_DEVICES): Likewise.
24260 (grub_pci_device_map_range): Add missing volatile keyword.
24261 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24262 * include/grub/mips/at_keyboard.h: New file.
24263 * include/grub/mips/cache.h: Likewise.
24264 * include/grub/mips/io.h: Likewise.
24265 * include/grub/mips/kernel.h: Likewise.
24266 * include/grub/mips/libgcc.h: Likewise.
24267 * include/grub/mips/pci.h: Likewise.
24268 * include/grub/mips/qemu-mips/boot.h: Likewise.
24269 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24270 * include/grub/mips/qemu-mips/loader.h: Likewise.
24271 * include/grub/mips/qemu-mips/memory.h: Likewise.
24272 * include/grub/mips/qemu-mips/serial.h: Likewise.
24273 * include/grub/mips/qemu-mips/time.h: Likewise.
24274 * include/grub/mips/relocator.h: Likewise.
24275 * include/grub/mips/time.h: Likewise.
24276 * include/grub/mips/types.h: Likewise.
24277 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24278 * include/grub/mips/yeeloong/boot.h: Likewise.
24279 * include/grub/mips/yeeloong/kernel.h: Likewise.
24280 * include/grub/mips/yeeloong/loader.h: Likewise.
24281 * include/grub/mips/yeeloong/memory.h: Likewise.
24282 * include/grub/mips/yeeloong/pci.h: Likewise.
24283 * include/grub/mips/yeeloong/serial.h: Likewise.
24284 * include/grub/mips/yeeloong/time.h: Likewise.
24285 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24286 * kern/elf.c (grub_elf32_size): New parameter. All users
24288 (grub_elf64_size): Likewise.
24289 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24290 Load modules before saying "Welcome to GRUB!".
24291 Call grub_refresh after saying "Welcome to GRUB!".
24292 * kern/mips/cache.S: New file.
24293 * kern/mips/cache_flush.S: Likewise.
24294 * kern/mips/dl.c: Likewise.
24295 * kern/mips/init.c: Likewise.
24296 * kern/mips/qemu-mips/init.c: Likewise.
24297 * kern/mips/startup.S: Likewise.
24298 * kern/mips/yeeloong/init.c: Likewise.
24299 * kern/term.c (grub_putcode): Handle NULL terminal.
24300 (grub_getcharwidth): Likewise.
24301 (grub_getkey): Likewise.
24302 (grub_checkkey): Likewise.
24303 (grub_getkeystatus): Likewise.
24304 (grub_getxy): Likewise.
24305 (grub_getwh): Likewise.
24306 (grub_gotoxy): Likewise.
24307 (grub_cls): Likewise.
24308 (grub_setcolorstate): Likewise.
24309 (grub_setcolor): Likewise.
24310 (grub_getcolor): Likewise.
24311 (grub_refresh): Likewise.
24312 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24313 (write_jump): Add hatch nop.
24314 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24315 * lib/mips/setjmp.S: New file.
24316 * loader/mips/linux.c: Likewise.
24317 * term/i386/pc/at_keyboard.c: Move from here ...
24318 * term/at_keyboard.c: ... to here.
24319 * term/i386/pc/serial.c: Moved from here ...
24320 * term/serial.c: ... to here. All users updated.
24321 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24322 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24323 (serial_translate_key_sequence): Avoid deadlock.
24324 (grub_serial_getkey): Handle backspace.
24325 (grub_serial_putchar): Fix newline handling.
24326 * util/i386/pc/grub-mkimage.c: Move from here ...
24327 * util/grub-mkrawimage.c: ... to here. All users updated.
24328 (generate_image): New parameters 'font_path' and 'format'.
24329 Support embedding font.
24330 Use grub_host_to_target* instead of grub_cpu_to_le*.
24331 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24332 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24333 (options): New option "--font".
24335 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24336 (main): Handle "--font".
24337 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24338 (grub_virtual_screen_setup): Set bg_color_display.
24339 (redraw_screen_rect): Use bg_color_display instead of incorrect
24341 (grub_gfxterm_cls): Likewise.
24342 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24343 Support embedding config file.
24344 (add_segments): Likewise.
24345 (options): New option "--config".
24346 (main): Handle "--config".
24347 * video/sm712.c: New file.
24349 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24351 Fix parallel builds.
24353 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24354 font.c depend on ascii.h).
24356 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24358 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24360 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24362 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24363 By default: disabled.
24364 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24367 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24369 * font/font.c: Update copyright years.
24370 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24372 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24374 * font/font.c: Include `ascii.h'.
24375 (ASCII_BITMAP_SIZE): New macro.
24376 (ascii_font_glyph): Define.
24377 (ascii_glyph_lookup): New function.
24378 (grub_font_get_string_width): Change comment. If glyph not found, use
24379 ascii_glyph_lookup.
24380 (grub_font_get_glyph_with_fallback): If glyph not available returns
24381 ascii_glyph_lookup.
24382 * util/grub-mkfont.c (file_formats): New enum.
24383 (options): Add `ascii-bitmaps' new option.
24384 (usage): Add `asii-bitmaps' new option.
24385 (write_font_ascii_bitmap): New function.
24386 (write_font): Rename to ...
24387 (write_font_p2): ... this. Remove print_glyphs call.
24388 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24389 used. Call print_glyphs.
24390 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24392 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24394 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24395 (grub_bin2h_SOURCES): New variable.
24396 * util/bin2h.c: New file.
24398 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24400 * include/multiboot.h: Resynced with spec.
24401 * include/multiboot2.h: Likewise.
24402 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24403 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24405 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24407 * include/grub/term.h (grub_term_register_input,
24408 grub_term_register_output): Check return of terminal init()
24409 routines, and abort if errors are raised.
24411 * commands/terminal.c: Update copyright year.
24413 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24415 * commands/terminal.c (grub_cmd_terminal_input)
24416 (grub_cmd_terminal_output): Check return of terminal init()
24417 routines, and abort if errors are raised.
24419 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24421 * include/grub/i386/bsd.h: Fix include pathes.
24423 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24425 Add missing *BSD copyright headers.
24427 * include/grub/aout.h: Add BSD licence.
24428 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24429 * include/grub/i386/freebsd_linker.h: ... here,
24430 * include/grub/i386/freebsd_reboot.h: ... here,
24431 * include/grub/i386/netbsd_bootinfo.h: ... here,
24432 * include/grub/i386/netbsd_reboot.h: ... here,
24433 * include/grub/i386/openbsd_bootarg.h: ... here,
24434 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24435 licence to each file.
24437 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24439 * acinclude.m4: Remove `nop' assembly instruction; it's not
24440 implemented by all architectures.
24442 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24444 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24445 ELILO. This is no longer necessary.
24447 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24449 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24451 * util/grub-script-check.c: grub-script-check tool.
24452 * conf/common.rmk: Make rules for grub-script-check.
24454 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24456 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24457 spotting it back in 2008. Shame on me for forgetting he did.
24459 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24461 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24463 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24464 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24465 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24466 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24467 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24468 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24470 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24472 * include/grub/test.h: Add license header.
24473 * tests/example_functional_test.c: Likewise.
24474 * tests/example_unit_test.c: Likewise.
24475 * tests/lib/functional_test.c: Likewise.
24476 * tests/lib/test.c: Likewise.
24477 * tests/lib/unit_test.c: Likewise.
24479 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24481 Use flag-based instead of hook-based video mode selection and "auto"
24484 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24485 (grub_video_set_mode): Changed prototype. All users updated.
24486 (grub_video_check_mode_flag): New inline function.
24487 * video/video.c (parse_modespec): New function.
24488 (grub_video_set_mode): Parse flags and keywords.
24490 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24492 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24495 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24497 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24499 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24501 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24503 * util/grub-emu.c (usage): Likewise.
24504 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24505 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24506 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24507 * util/i386/pc/grub-setup.c (usage): Likewise.
24509 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24511 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24513 (grub_util_info): Likewise.
24514 (grub_util_error): Likewise.
24515 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24516 and/or new lines in `grub_util_warna', `grub_util_info',
24517 `grub_util_error' calls.
24518 * util/getroot.c: Likewise.
24519 * util/grub-editenv.c: Likewise.
24520 * util/grub-emu.c: Likewise.
24521 * util/grub-fstest.c: Likewise.
24522 * util/grub-mkdevicemap.c: Likewise.
24523 * util/grub-mkfont.c: Likewise.
24524 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24525 * util/grub-mkrelpath.c: Likewise.
24526 * util/grub-pe2elf.c: Likewise.
24527 * util/grub-probe.c: Likewise.
24528 * util/hostdisk.c: Likewise.
24529 * util/i386/efi/grub-mkimage.c: Likewise.
24530 * util/i386/pc/grub-mkimage.c: Likewise.
24531 * util/i386/pc/grub-setup.c: Likewise.
24532 * util/ieee1275/ofpath.c: Likewise.
24533 * util/mkisofs/eltorito.c: Likewise.
24534 * util/mkisofs/rock.c: Likewise.
24535 * util/mkisofs/write.c: Likewise.
24536 * util/raid.c: Likewise.
24537 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24538 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24540 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24542 Enable multiboot on non-pc.
24544 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24545 multiboot.mod and multiboot2.mod to ...
24546 * conf/i386.rmk (pkglib_MODULES): ... here.
24547 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24549 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24550 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24552 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24553 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24555 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24556 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24558 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24559 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24561 (ata_mod_SOURCES): Removed.
24562 (ata_mod_CFLAGS): Likewise.
24563 (ata_mod_LDFLAGS): Likewise.
24564 (relocator_mod_SOURCES): Removed.
24565 (relocator_mod_CFLAGS): Likewise.
24566 (relocator_mod_ASFLAGS): Likewise.
24567 (relocator_mod_LDFLAGS): Likewise.
24569 * include/grub/x86_64/multiboot.h: New file.
24570 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24573 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24575 Video multiboot support.
24577 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24579 * include/multiboot.h: Resynced with multiboot specification.
24580 * include/multiboot2.h: Likewise.
24581 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24582 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24583 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24584 (HAS_VGA_TEXT): Likewise.
24585 (accepts_video): New variable.
24586 (grub_multiboot_set_accepts_video): New function.
24587 (grub_multiboot_get_mbi_size): Account for video structures.
24588 (set_video_mode): New function.
24589 (retrieve_video_parameters): Likewise.
24590 (grub_multiboot_make_mbi): Fill video fields.
24592 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24596 * include/grub/video.h (grub_video_driver_id): New type.
24597 (grub_video_adapter): New member 'id'. All users updated.
24598 (grub_video_get_driver_id): New proto.
24599 * video/video.c (grub_video_get_driver_id): New function.
24601 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24603 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24606 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24608 * normal/cmdline.c (print_completion): Gettextizze.
24610 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24612 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24614 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24616 * gettext/gettext.c (grub_gettext_translate): Push and pop
24618 (grub_gettext_delete_list): Change comment style.
24619 * kern/err.c (grub_error): Gettextizze.
24620 (grub_fatal): Gettextizze.
24622 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24624 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24625 (grub_linux16_real_boot): ... this.
24626 * kern/i386/loader.S: Likewise.
24627 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24628 (grub_linux16_boot): New function. Switches to text mode and calls
24629 grub_linux16_real_boot().
24631 * loader/i386/bsd.c: Include `<grub/video.h>'.
24632 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24633 text mode before calling grub_unix_real_boot().
24635 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24636 (grub_multiboot_boot): Switch to text mode before calling
24637 grub_relocator32_boot().
24639 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24640 (grub_chainloader_boot): Switch to text mode before calling
24641 grub_chainloader_real_boot().
24643 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24644 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24646 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24649 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24650 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24652 * util/grub.d/00_header.in: Define a "savedefault" function for use
24654 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24656 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24657 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24659 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24660 saved_entry if boot_once is unset.
24661 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24662 previous saved entry (i.e. grub-reboot).
24664 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24666 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24668 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24670 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24672 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24674 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24676 * util/grub-reboot.in: Fix --version output.
24677 * util/grub-set-default.in: Likewise.
24679 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24681 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24684 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24686 * util/grub.d/00_header.in: Quote the value assigned to `default',
24687 in case it contains spaces.
24689 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24691 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24692 `save_default_entry' call from the macosx case to the linux case.
24694 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24695 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24697 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24698 in `chosen' environment variable.
24699 * normal/menu_text.c (get_entry_number): Check if the variable
24700 matches the title of a menu entry.
24701 (run_menu): Pass menu to get_entry_number.
24703 * util/grub-reboot.in: New file.
24704 * util/grub-set-default.in: New file.
24705 * conf/common.rmk (grub-reboot): New utility.
24706 (grub-set-default): New utility.
24708 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24709 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24710 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24711 move it to `saved_entry' for the next boot. Load environment on
24713 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24714 * util/grub.d/10_hurd.in: Likewise.
24715 * util/grub.d/10_linux.in (linux_entry): Likewise.
24716 * util/grub.d/10_windows.in: Likewise.
24717 * util/grub.d/30_os-prober.in: Likewise.
24719 * util/grub-install.in: Create environment block.
24720 * util/i386/efi/grub-install.in: Likewise.
24721 * util/ieee1275/grub-install.in: Likewise.
24722 * util/sparc64/ieee1275/grub-install.in: Likewise.
24724 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24726 Unit testing framework for GRUB.
24728 * Makefile.in: Test framework build rules for 'make check'.
24729 * conf/tests.rmk: Build rules for individual tests and framework.
24731 * include/grub/test.h: Header file for whitebox tests.
24732 * tests/lib/functional_test.c: Framework support for whitebox
24734 * tests/lib/test.c: Common whitebox testing code for unit and
24736 * tests/lib/unit_test.c: Framework support for whitebox unit
24739 * tests/util/grub-shell-tester.in: Support utility for grub-script
24741 * tests/util/grub-shell.in: Utility to execute grub-script
24742 commands in a Qemu instance.
24744 * tests/example_functional_test.c: Example whitebox functional
24746 * tests/example_grub_script_test.in: Example grub-script test.
24747 * tests/example_scripted_test.in: Example scripted test.
24748 * tests/example_unit_test.c: Example whitebox unit test.
24750 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24752 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24753 Add loader/i386/multiboot_mbi.c.
24754 (multiboot2_mod_SOURCES): Likewise.
24755 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24756 (multiboot2_mod_SOURCES): Likewise.
24757 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24758 (grub_multiboot_make_mbi): Likewise.
24759 (grub_multiboot_free_mbi): Likewise.
24760 (grub_multiboot_init_mbi): Likewise.
24761 (grub_multiboot_add_module): Likewise.
24762 (grub_multiboot_set_bootdev): Likewise.
24763 * loader/i386/multiboot.c (mbi): Removed.
24764 (mbi_dest): Likewise.
24765 (alloc_mbi): New variable.
24766 (grub_multiboot_payload_size): Removed. All users updated.
24767 (grub_multiboot_pure_size): New variable.
24768 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24769 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24770 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24771 (grub_fill_multiboot_mmap): Likewise.
24772 (grub_multiboot_get_bootdev): Likewise.
24773 (grub_multiboot): Use multiboot_mbi functions.
24774 * loader/i386/multiboot_mbi.c: New file.
24776 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24778 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24779 it would result in module crash.
24781 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24783 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24784 (grub_ofconsole_getwh): Split to ...
24785 (grub_ofconsole_getwh): ... this.
24786 (grub_ofconsole_dimensions): ...and this.
24787 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24789 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24791 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24793 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24795 * loader/i386/pc/multiboot2.c: Removed stalled file.
24797 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24799 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24800 Reported by: Grégoire Sutre
24802 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24804 * util/misc.c (canonicalize_file_name): New function.
24805 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24806 instead of realpath().
24808 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24810 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24811 and make it clearer that it's optional. Based on confusion
24814 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24816 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24817 in premature implicit newline.
24819 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24821 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24822 which resulted in garbled command line at the end of screen.
24824 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24826 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24827 initialization with similar approach as with other Linux loaders.
24829 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24831 Fix i386-ieee1275 build.
24833 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24834 and grub_term_height() for video_{width,height} initialization.
24836 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24838 Fix grub-emu build.
24840 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24842 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24843 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24845 Support for multiple terminals.
24847 * Makefile.in (pkglib_DATA): terminal.lst.
24848 (terminal.lst): New target.
24849 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24850 (GRUB_MOD_INIT(handler)): Likewise.
24851 (GRUB_MOD_FINI(handler)): Likewise.
24852 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24853 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24854 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24855 (grub_cmd_sleep): Use grub_term_save_pos.
24856 * commands/terminal.c: New file.
24857 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24858 commands/terminal.c and lib/charset.c.
24859 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24860 (pkglib_MODULES): Add terminal.mod.
24861 (terminal_mod_SOURCES): New variable.
24862 (terminal_mod_CFLAGS): Likewise.
24863 (terminal_mod_LDFLAGS): Likewise.
24864 * genhandlerlist.sh: Don't handle terminals.
24865 * genmk.rb: Generate terminal-*.lst.
24866 * genterminallist.sh: New file.
24867 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24868 (grub_is_valid_utf8): Likewise.
24869 (grub_utf8_to_ucs4_alloc): Likewise.
24870 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24871 (grub_menu_register_viewer): Changed argument.
24872 (grub_menu_try_text): New proto.
24873 (grub_gfxmenu_try_hook): New declaration.
24874 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24875 (grub_menu_init_page): Additional argument term.
24876 (grub_normal_init_page): Likewise.
24877 (grub_cmdline_get): Arguments simplified.
24878 (grub_utf8_to_ucs4_alloc): Removed.
24879 (grub_print_ucs4): Additional argument term.
24880 (grub_getstringwidth): Likewise.
24881 (grub_print_message_indented): Likewise.
24882 (grub_menu_text_register_instances): New proto.
24883 (grub_show_menu): Likewise.
24884 (read_terminal_list): Likewise.
24885 (grub_set_more): Likewise.
24886 * include/grub/parser.h: Include handler.h.
24887 * include/grub/reader.h: Rewritten.
24888 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24889 (GRUB_TERM_WIDTH): Changed to function.
24890 (GRUB_TERM_HEIGHT): Likewise.
24891 (GRUB_TERM_BORDER_WIDTH): Likewise.
24892 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24893 (GRUB_TERM_NUM_ENTRIES): Likewise.
24894 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24895 (GRUB_TERM_CURSOR_X): Likewise.
24896 (grub_term_input_class): Likewise.
24897 (grub_term_output_class): Likewise.
24898 (grub_term_outputs_disabled): New declaration.
24899 (grub_term_inputs_disabled): Likewise.
24900 (grub_term_outputs): Likewise.
24901 (grub_term_inputs): Likewise.
24902 (grub_term_register_input): Rewritten.
24903 (grub_term_register_output): Likewise.
24904 (grub_term_unregister_input): Likewise.
24905 (grub_term_unregister_output): Likewise.
24906 (FOR_ACTIVE_TERM_INPUTS): New macro.
24907 (FOR_DISABLED_TERM_INPUTS): Likewise.
24908 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24909 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24910 * include/grub/terminfo.h: Add oterm argument to all protypes.
24911 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24912 Use grub_rescue_run.
24913 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24915 * kern/reader.c: Removed. All users updated.
24916 * kern/rescue_reader.c (grub_rescue_init): Removed.
24917 (grub_rescue_reader): Likewise.
24918 (grub_register_rescue_reader): Likewise.
24919 (grub_rescue_run): New function based on kern/reader.c.
24920 * kern/term.c: Adapted for multiterm.
24921 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24922 (grub_is_valid_utf8): Likewise.
24923 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24924 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24926 * loader/i386/linux.c (grub_linux_boot): Likewise.
24927 * normal/auth.c (grub_username_get): New function.
24928 (grub_auth_check_authentication): Use grub_username_get.
24929 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
24930 * normal/color.c: Adapt for multiterm.
24931 * normal/main.c (read_config_file): Don't use grub_reader_loop.
24932 (grub_normal_init_page): Additional argument term.
24933 (read_lists): Call read_terminal_lists.
24934 (grub_enter_normal_mode): Call grub_cmdline_run.
24935 Handle grub_normal_exit_level.
24936 (grub_cmd_normal): Make reentrant.
24937 (grub_cmd_normal_exit): New function.
24938 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
24939 * normal/menu.c: Adapt for multiterm.
24940 * normal/menu_entry.c: Likewise.
24941 * normal/menu_text.c: Likewise.
24942 * normal/menu_viewer.c: Removed. All users updated.
24943 * normal/term.c: New file.
24944 * util/console.c: Change order of includes to workaround a bug in
24946 * term/terminfo.c: New argument oterm on all exported functions.
24948 * util/grub-editenv.c (grub_term_input_class): Removed.
24949 (grub_term_output_class): Likewise.
24951 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24953 Make loader output a bit more user-friendly.
24955 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
24956 is being loaded. Likewise for the Hurd.
24958 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
24959 that kernel of FreeBSD ${version} is being loaded.
24961 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
24963 (grub_cmd_initrd): Likewise.
24964 * util/grub.d/10_linux.in (linux_entry): Print message indicating
24965 that Linux ${version} is being loaded. Likewise for initrd.
24967 2010-01-09 Carles Pina i Estany <carles@pina.cat>
24969 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
24971 2010-01-08 Carles Pina i Estany <carles@pina.cat>
24973 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
24974 (GRUB_MOD_INIT): Gettextizze.
24975 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
24976 (GRUB_MOD_INIT): Gettextizze.
24977 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
24978 (grub_cmd_linux): Capitalise Linux.
24979 (GRUB_MOD_INIT): Gettextizze.
24980 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
24981 (grub_cmd_linux): Capitalise Linux.
24982 (GRUB_MOD_INIT): Gettextizze.
24983 * loader/i386/linux.c: Include `<grub/i18n.h>'.
24984 (grub_cmd_linux): Capitalise Linux.
24985 (GRUB_MOD_INIT): Gettextizze.
24986 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
24987 (GRUB_MOD_INIT): Gettextizze.
24988 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
24989 (grub_cmd_linux): Capitalise Linux.
24990 (GRUB_MOD_INIT): Gettextizze.
24991 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
24992 (grub_cpu_xnu_init): Gettextizze.
24993 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
24994 (GRUB_MOD_INIT): Gettextizze.
24995 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
24996 (GRUB_MOD_INIT): Gettextizze.
24997 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
24998 (grub_linux_load64): Capitalise Linux.
24999 (GRUB_MOD_INIT): Gettextizze.
25000 * loader/xnu.c: Include `<grub/i18n.h>'.
25001 (GRUB_MOD_INIT): Gettextizze.
25002 * po/POTFILES: Add `loader/efi/appleloader.c',
25003 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25004 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25005 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25006 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25007 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25008 and `loader/xnu.c'.
25010 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25012 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25014 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25016 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25017 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25018 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25020 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25022 Reset Multiboot 2 support. New loader implements the draft in
25023 /branches/multiboot2 and shares as much code as possible with the
25024 production Multiboot 1 implementation.
25026 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25027 * loader/multiboot2.c: Likewise.
25028 * loader/i386/multiboot_helper.S: Likewise.
25029 * include/multiboot2.h: Replace with latest version from the draft
25030 in /branches/multiboot2.
25032 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25033 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25034 and `loader/multiboot2.c'.
25035 (pkglib_MODULES): Add `multiboot2.mod'.
25036 (multiboot2_mod_SOURCES): New variable.
25037 (multiboot2_mod_LDFLAGS): Likewise.
25038 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25040 * conf/i386-pc.rmk: Likewise.
25042 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25043 (multiboot_mod_SOURCES): Remove variable.
25044 (multiboot_mod_LDFLAGS): Likewise.
25045 (multiboot_mod_CFLAGS): Likewise.
25047 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25048 `<multiboot2.h>' instead of `<multiboot.h>'.
25049 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25050 (MULTIBOOT_HEADER_MAGIC): New macros.
25052 * loader/multiboot_loader.c (module_version_status): Remove variable.
25053 (find_multi_boot2_header): Remove function.
25054 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25055 logic. Always check for the Multiboot version we're compiling for.
25056 (grub_cmd_module_loader): Likewise.
25057 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25058 command instead of `multiboot'.
25060 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25062 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25063 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25066 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25067 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25069 Fix breakage introduced with previous commit.
25071 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25073 * normal/handler.c (read_handler_list): Revert part of previous commit
25074 affecting this file.
25075 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25076 (grub_normal_execute): ... here.
25078 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25080 Merge prefix-redefinition-fix branch.
25082 * normal/autofs.c (read_fs_list): Make function capable of being
25083 run multiple times, gracefuly replacing the previous data
25085 * normal/dyncmd.c (read_command_list): Likewise.
25086 * normal/handler.c (read_handler_list): Likewise.
25087 * normal/main.c (read_lists): New function. Calls all the
25088 list reading functions.
25089 (grub_normal_execute): Use read_lists() instead of calling all
25090 list reading functions explicitly. Register read_lists() as a
25091 variable hook attached to ${prefix}.
25093 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25095 Merge crypto branch.
25097 * Makefile.in (pkglib_DATA): Add crypto.lst.
25098 (crypto.lst): New target.
25099 * commands/hashsum.c: New file.
25100 * commands/password.c (check_password): Use grub_crypto_memcmp.
25101 * commands/password_pbkdf2.c: New file.
25102 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25103 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25104 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25105 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25106 -I$(srcdir)/lib/libgcrypt_wrap.
25107 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25108 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25109 password_pbkdf2.mod.
25110 (crypto_mod_SOURCES): New variable.
25111 (crypto_mod_CFLAGS): Likewise.
25112 (crypto_mod_LDFLAGS): Likewise.
25113 (hashsum_mod_SOURCES): New variable.
25114 (hashsum_mod_CFLAGS): Likewise.
25115 (hashsum_mod_LDFLAGS): Likewise.
25116 (pbkdf2_mod_SOURCES): New variable.
25117 (pbkdf2_mod_CFLAGS): Likewise.
25118 (pbkdf2_mod_LDFLAGS): Likewise.
25119 (password_pbkdf2_mod_SOURCES): New variable.
25120 (password_pbkdf2_mod_CFLAGS): Likewise.
25121 (password_pbkdf2_mod_LDFLAGS): Likewise.
25122 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25123 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25124 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25125 Include conf/gcry.rmk.
25126 * include/grub/auth.h: Rewritten.
25127 * include/grub/crypto.h: New file.
25128 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25129 * include/grub/normal.h (read_crypto_list): New prototype.
25130 * lib/crypto.c: New file.
25131 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25132 * lib/pbkdf2.c: Likewise.
25133 * normal/auth.c (grub_auth_strcmp): Removed.
25134 (grub_iswordseparator): Likewise.
25135 (grub_auth_strword): Likewise.
25136 (is_authenticated): Use grub_strword.
25137 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25138 and grub_strword. Pass entered password to authentication callback.
25139 * normal/crypto.c: New file.
25140 * normal/main.c: Call read_crypto_list.
25141 * util/grub-mkpasswd-pbkdf2.c: New file.
25142 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25144 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25146 Fix descent and ascent calculation.
25148 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25149 (options): New option "asce".
25151 (add_char): Ignore invalid glyphs for descent calculation.
25152 Calculate ascent from actual content.
25153 (print_glyphs): Use 'asce'.
25154 (write_font): Likewise. Allow ascent override.
25155 (main): Handle "asce" option.
25157 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25159 * kern/err.c: Include `<grub/i18n.h>'.
25160 (grub_print_error): Add full stop. Gettextizze.
25161 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25162 (grub_bsd_load_elf): Capitalise ELF.
25163 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25164 (grub_cmd_freebsd_module): Likewise.
25165 (grub_cmd_freebsd_module_elf): Likewise.
25166 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25168 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25170 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25171 * commands/search_file.c (HELP_MESSAGE): New macro.
25172 * commands/search_label.c (HELP_MESSAGE): Likewise.
25173 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25174 * po/POTFILES: Add `commands/search_file.c',
25175 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25176 `commands/search.c'.
25178 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25180 * config.rpath: Update from Gnulib.
25182 2010-01-05 Yves Blusseau <blusseau@zetam.org>
25184 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25186 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25188 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25190 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25192 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25193 arguments to fread so that we get a return value in bytes, rather
25194 than something that will normally be rounded down to 0.
25195 Adjust error handling to avoid producing garbage when size_t is not
25196 the same size as long long.
25198 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25200 * util/mkisofs/write.c (padblock_write): Check return value of
25203 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25205 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25208 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25210 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25212 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25213 instead of manual alignment.
25214 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25215 verbose). Avoid attempts to read past end of the device
25216 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25217 but GRUB_DISK_CACHE_SIZE may exceed that).
25219 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25221 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25222 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25225 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25227 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25229 (grub_efi_piwg_device_path): New structure
25230 (grub_efi_piwg_device_path_t): New type.
25231 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25232 (devpath_1): Transform to a structure. All users updated.
25233 (devpath_2): Likewise.
25234 (devpath_3): Likewise.
25235 (devpath_4): Likewise.
25236 (devpath_5): Likewise.
25238 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25240 * loader/efi/appleloader.c: Restored. Update all users.
25242 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25244 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25246 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25247 (struct boot_blocklist): Move from here ...
25248 * include/grub/i386/pc/boot.h [ASM_FILE]
25249 (struct grub_boot_blocklist): ... to here. Update all users.
25250 (setup): Only initialize `start' member of `first_block'
25251 structure. Add assert() calls to verify the other members.
25253 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25254 (generate_image): Fix broken blocklist length initialization.
25255 Add assert() call to verify blocklist `segment' field.
25257 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25259 * loader/efi/appleloader.c: Remove. Update all users.
25261 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25263 * boot/i386/pc/boot.S: Update copyright year.
25264 * boot/i386/pc/cdboot.S: Likewise.
25265 * boot/i386/pc/diskboot.S: Likewise.
25266 * boot/i386/pc/lnxboot.S: Likewise.
25267 * boot/i386/pc/pxeboot.S: Likewise.
25268 * bus/pci.c: Likewise.
25269 * commands/cmp.c: Likewise.
25270 * commands/help.c: Likewise.
25271 * commands/hexdump.c: Likewise.
25272 * commands/i386/pc/halt.c: Likewise.
25273 * commands/i386/pc/play.c: Likewise.
25274 * commands/i386/pc/vbeinfo.c: Likewise.
25275 * commands/ls.c: Likewise.
25276 * commands/test.c: Likewise.
25277 * disk/dmraid_nvidia.c: Likewise.
25278 * disk/i386/pc/biosdisk.c: Likewise.
25279 * disk/ieee1275/nand.c: Likewise.
25280 * disk/ieee1275/ofdisk.c: Likewise.
25281 * disk/lvm.c: Likewise.
25282 * disk/raid.c: Likewise.
25283 * disk/raid6_recover.c: Likewise.
25284 * disk/scsi.c: Likewise.
25285 * fs/affs.c: Likewise.
25286 * fs/cpio.c: Likewise.
25287 * fs/ext2.c: Likewise.
25288 * fs/hfs.c: Likewise.
25289 * fs/iso9660.c: Likewise.
25290 * fs/ntfs.c: Likewise.
25291 * fs/sfs.c: Likewise.
25292 * fs/udf.c: Likewise.
25293 * fs/ufs.c: Likewise.
25294 * fs/xfs.c: Likewise.
25295 * gencmdlist.sh: Likewise.
25296 * genmk.rb: Likewise.
25297 * include/grub/disk.h: Likewise.
25298 * include/grub/efi/api.h: Likewise.
25299 * include/grub/efi/efi.h: Likewise.
25300 * include/grub/efi/pe32.h: Likewise.
25301 * include/grub/elf.h: Likewise.
25302 * include/grub/fs.h: Likewise.
25303 * include/grub/i386/at_keyboard.h: Likewise.
25304 * include/grub/i386/pc/memory.h: Likewise.
25305 * include/grub/i386/pc/vbe.h: Likewise.
25306 * include/grub/i386/pci.h: Likewise.
25307 * include/grub/i386/tsc.h: Likewise.
25308 * include/grub/ieee1275/ieee1275.h: Likewise.
25309 * include/grub/ntfs.h: Likewise.
25310 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25311 * include/grub/sparc64/libgcc.h: Likewise.
25312 * include/grub/symbol.h: Likewise.
25313 * include/grub/types.h: Likewise.
25314 * include/multiboot2.h: Likewise.
25315 * io/gzio.c: Likewise.
25316 * kern/device.c: Likewise.
25317 * kern/disk.c: Likewise.
25318 * kern/efi/efi.c: Likewise.
25319 * kern/efi/mm.c: Likewise.
25320 * kern/elf.c: Likewise.
25321 * kern/file.c: Likewise.
25322 * kern/i386/dl.c: Likewise.
25323 * kern/i386/pc/init.c: Likewise.
25324 * kern/i386/pc/startup.S: Likewise.
25325 * kern/ieee1275/ieee1275.c: Likewise.
25326 * kern/ieee1275/init.c: Likewise.
25327 * kern/main.c: Likewise.
25328 * kern/mm.c: Likewise.
25329 * kern/powerpc/dl.c: Likewise.
25330 * kern/sparc64/dl.c: Likewise.
25331 * kern/x86_64/dl.c: Likewise.
25332 * lib/hexdump.c: Likewise.
25333 * loader/efi/appleloader.c: Likewise.
25334 * loader/i386/ieee1275/linux.c: Likewise.
25335 * loader/i386/pc/chainloader.c: Likewise.
25336 * loader/i386/pc/linux.c: Likewise.
25337 * loader/i386/pc/multiboot2.c: Likewise.
25338 * loader/ieee1275/multiboot2.c: Likewise.
25339 * loader/multiboot2.c: Likewise.
25340 * loader/multiboot_loader.c: Likewise.
25341 * loader/powerpc/ieee1275/linux.c: Likewise.
25342 * normal/completion.c: Likewise.
25343 * normal/menu_entry.c: Likewise.
25344 * partmap/apple.c: Likewise.
25345 * util/grub.d/10_hurd.in: Likewise.
25346 * util/hostfs.c: Likewise.
25347 * video/readers/png.c: Likewise.
25349 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25351 * include/grub/misc.h (GNUC_PREREQ): New macro.
25352 (ATTRIBUTE_ERROR): New macro.
25353 * include/grub/list.h (grub_bad_type_cast_real): Use
25356 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25358 * normal/menu_text.c (print_message): Change messages.
25360 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25362 * normal/menu_entry.c (store_completion): Gettextizze.
25364 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25366 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25368 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25370 * po/POTFILES: Sort correctly.
25372 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25374 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25375 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25376 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25378 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25379 summary. Gettextizze the strings.
25380 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25381 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25382 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25384 (GRUB_MOD_INIT): Remove command name from summary.
25385 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25387 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25388 * term/i386/pc/serial.c (options): Add full stops.
25389 (GRUB_MOD_INIT): Remove command name from the summary.
25391 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25393 * commands/acpi.c: Gettextizze help strings and/or options. Include
25394 `grub/i18n.h' if needed.
25395 * commands/blocklist.c: Likewise.
25396 * commands/boot.c: Likewise.
25397 * commands/cat.c: Likewise.
25398 * commands/cmp.c: Likewise.
25399 * commands/configfile.c: Likewise.
25400 * commands/crc.c: Likewise.
25401 * commands/date.c: Likewise.
25402 * commands/echo.c: Likewise.
25403 * commands/efi/fixvideo.c: Likewise.
25404 * commands/efi/loadbios.c: Likewise.
25405 * commands/gptsync.c: Likewise.
25406 * commands/halt.c: Likewise.
25407 * commands/handler.c: Likewise.
25408 * commands/hdparm.c: Likewise.
25409 * commands/hexdump.c: Likewise.
25410 * commands/i386/cpuid.c: Likewise.
25411 * commands/i386/pc/drivemap.c: Likewise.
25412 * commands/i386/pc/halt.c: Likewise.
25413 * commands/i386/pc/pxecmd.c: Likewise.
25414 * commands/i386/pc/vbeinfo.c: Likewise.
25415 * commands/i386/pc/vbetest.c: Likewise.
25416 * commands/ieee1275/suspend.c: Likewise.
25417 * commands/keystatus.c: Likewise.
25418 * commands/loadenv.c: Likewise.
25419 * commands/ls.c: Likewise.
25420 * commands/lsmmap.c: Likewise.
25421 * commands/lspci.c: Likewise.
25422 * commands/memrw.c: Likewise.
25423 * commands/minicmd.c: Likewise.
25424 * commands/parttool.c: Likewise.
25425 * commands/password.c: Likewise.
25426 * commands/probe.c: Likewise.
25427 * commands/read.c: Likewise.
25428 * commands/reboot.c: Likewise.
25429 * commands/search.c: Likewise.
25430 * commands/sleep.c: Likewise.
25431 * commands/test.c: Likewise.
25432 * commands/true.c: Likewise.
25433 * commands/usbtest.c: Likewise.
25434 * commands/videotest.c: Likewise.
25435 * commands/xnu_uuid.c: Likewise.
25436 * disk/loopback.c: Likewise.
25437 * hello/hello.c: Likewise.
25438 * loader/i386/bsd.c: Likewise.
25439 * term/i386/pc/serial.c: Likewise.
25440 * po/POTFILES: Add new files.
25442 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25444 * term/i386/pc/at_keyboard.c
25445 (keyboard_controller_wait_untill_ready): Rename to ...
25446 (keyboard_controller_wait_until_ready): ... this. Update all users.
25448 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25450 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25451 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25452 string using string width.
25453 * normal/menu_text.c (grub_print_message_indented): Use
25454 grub_print_spaces and not print_spaces.
25455 (print_timeout): Likewise.
25456 (print_spaces): Move to...
25457 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25459 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25461 Import from Gnulib.
25463 * gnulib/getdelim.c: New file.
25464 * gnulib/getline.c: Likewise.
25466 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25468 * include/grub/list.h (grub_assert_fail): Removed.
25469 (grub_bad_type_cast_real): New function.
25470 (grub_bad_type_cast): New macro.
25471 (GRUB_AS_LIST): Use grub_bad_type_cast.
25472 (GRUB_AS_LIST_P): Likewise.
25473 (GRUB_AS_NAMED_LIST): Likewise.
25474 (GRUB_AS_NAMED_LIST_P): Likewise.
25475 (GRUB_AS_PRIO_LIST): Likewise.
25476 (GRUB_AS_PRIO_LIST_P): Likewise.
25477 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25479 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25481 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25484 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25486 * configure.ac: Check for TARGET_CFLAGS initialization before we
25487 initialize it ourselves (sigh).
25488 Move a few modifications to TARGET_CFLAGS to be unconditional
25489 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25492 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25493 * term/i386/pc/at_keyboard.c
25494 (keyboard_controller_wait_untill_ready): Likewise.
25495 (keyboard_controller_led): Rename `led_status' paramter to avoid
25498 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25500 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25503 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25505 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25507 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25509 * normal/menu_text.c (grub_print_message_indented): Prevent
25510 past-the-end-of-array dereference.
25512 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25514 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25515 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25517 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25519 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25520 * normal/main.c (grub_normal_read_line): Remove a space from the
25523 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25525 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25526 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25527 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25528 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25529 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25530 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25531 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25533 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25535 * video/readers/jpeg.c (cmd): Declare.
25536 (grub_cmd_jpegtest): Use `grub_command_t' type.
25537 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25539 (GRUB_MOD_FINI): Use `cmd' to unregister.
25540 * video/readers/png.c (cmd): Declare.
25541 (grub_cmd_pngtest): Use `grub_command_t' type.
25542 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25544 (GRUB_MOD_FINI): Use `cmd' to unregister.
25545 * video/readers/tga.c (cmd): Declare.
25546 (grub_cmd_tgatest): Use `grub_command_t' type.
25547 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25549 (GRUB_MOD_FINI): Use `cmd' to unregister.
25551 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25553 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25555 * kern/corecmd.c (grub_register_core_commands): Likewise.
25556 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25557 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25558 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25559 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25560 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25561 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25562 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25563 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25564 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25565 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25566 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25567 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25568 * normal/handler.c (insert_handler): Likewise.
25569 * normal/main.c (GRUB_MOD_INIT): Likewise.
25570 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25572 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25574 * commands/help.c (grub_cmd_help): Print the command name before the
25576 (GRUB_MOD_INIT): Remove command name from the summary.
25577 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25579 * lib/arg.c (find_long): Print the command name before the summary.
25580 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25582 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25583 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25584 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25585 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25586 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25587 * commands/date.c (GRUB_MOD_INIT): Likewise.
25588 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25589 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25590 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25591 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25592 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25593 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25594 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25595 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25596 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25597 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25598 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25599 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25600 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25601 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25602 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25603 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25604 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25605 * commands/password.c (GRUB_MOD_INIT): Likewise.
25606 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25607 * commands/read.c (GRUB_MOD_INIT): Likewise.
25608 * commands/search.c (GRUB_MOD_INIT): Likewise.
25609 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25610 * commands/test.c (GRUB_MOD_INIT): Likewise.
25611 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25612 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25613 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25614 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25615 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25616 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25617 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25618 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25619 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25620 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25621 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25622 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25623 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25624 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25626 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25628 Use search command for preliminar UUID search.
25630 * commands/search.c: Split into ...
25631 * commands/search_wrap.c: ...this
25632 * commands/search.c: ...and this.
25633 * commands/search_file.c: New file.
25634 * commands/search_label.c: New file.
25635 * commands/search_uuid.c: New file.
25636 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25637 Add commands/search_wrap.c, commands/search_file.c,
25638 commands/search_label.c and commands/search_uuid.c.
25639 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25640 (search_mod_SOURCES): Set to commands/search_wrap.c.
25641 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25643 (search_fs_file_mod_SOURCES): New variable.
25644 (search_fs_file_mod_CFLAGS): Likewise.
25645 (search_fs_file_mod_LDFLAGS): Likewise.
25646 (search_label_mod_SOURCES): Likewise.
25647 (search_label_mod_CFLAGS): Likewise.
25648 (search_label_mod_LDFLAGS): Likewise.
25649 (search_fs_uuid_mod_SOURCES): New variable.
25650 (search_fs_uuid_mod_CFLAGS): Likewise.
25651 (search_fs_uuid_mod_LDFLAGS): Likewise.
25652 (fs_file_mod_SOURCES): Removed.
25653 (fs_file_mod_CFLAGS): Likewise.
25654 (fs_file_mod_LDFLAGS): Likewise.
25655 (fs_uuid_mod_SOURCES): Removed.
25656 (fs_uuid_mod_CFLAGS): Likewise.
25657 (fs_uuid_mod_LDFLAGS): Likewise.
25658 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25659 Set to util/grub-install.in.
25660 * disk/fs_file.c: Removed.
25661 * disk/fs_uuid.c: Likewise.
25662 * include/grub/search.h: New file.
25663 * util/grub-install.in: Handle sparc64.
25664 Create and use load.cfg.
25665 * util/sparc64/ieee1275/grub-install.in: Removed.
25667 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25669 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25670 Ignore return status if CF is cleared.
25671 (grub_biosdisk_get_diskinfo_standard): Likewise.
25673 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25675 * term/i386/pc/at_keyboard.c
25676 (keyboard_controller_wait_untill_ready): New function.
25677 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25678 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25679 for keyboard polling, rather than duplicate the same loop. This
25680 saves a few bytes in code size.
25682 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25684 Support for (pxe[:server[:gateway]]) syntax and
25685 use environment variable for PXE.
25687 * commands/i386/pc/pxecmd.c (options): Removed.
25688 (print_ip): Removed.
25689 (grub_cmd_pxe): Removed
25690 (grub_cmd_pxe_unload): New function.
25691 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25692 (grub_pxe_your_ip): Made static.
25693 (grub_pxe_default_server_ip): Likewise.
25694 (grub_pxe_default_gateway_ip): Likewise.
25695 (grub_pxe_blksize): Likewise.
25696 (parse_ip): New function.
25697 (grub_pxe_open): Support server and gateway specification.
25698 (grub_pxe_close): Free disk->data.
25699 (grub_pxefs_open): Use disk->data.
25700 (grub_pxefs_read): Likewise.
25701 (grub_env_write_readonly): New function.
25702 (set_mac_env): Likewise.
25703 (set_env_limn_ro): Likewise.
25704 (parse_dhcp_vendor): Likewise.
25705 (grub_pxe_detect): Set the environment variables.
25706 (set_ip_env): New function.
25707 (write_ip_env): Likewise.
25708 (grub_env_write_pxe_default_server): Likewise.
25709 (grub_env_write_pxe_default_gateway): Likewise.
25710 (grub_env_write_pxe_blocksize): Likewise.
25711 (GRUB_MOD_INIT(pxe)): Set environment variables.
25712 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25713 (grub_pxe_mac_addr_t): ... this. All users updated.
25714 (grub_pxe_your_ip): Removed.
25715 (grub_pxe_server_ip): Likewise.
25716 (grub_pxe_gateway_ip): Likewise.
25717 (grub_pxe_blksize): Likewise.
25719 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25721 * commands/help.c: Include `<grub/i18n.h>'.
25722 (grub_cmd_help): Gettextizze.
25723 (GRUB_MOD_INIT): Likewise.
25724 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25725 (GRUB_MOD_INIT): Gettextizze.
25726 * commands/search.c: Include `<grub/i18n.h>'.
25727 (options): Gettextizze.
25728 (GRUB_MOD_INIT): Gettextizze.
25729 * lib/arg.c: Include `<grub/i18n.h>'.
25730 (help_options): Gettextizze.
25731 (find_long): Likewise.
25732 (grub_arg_show_help): Likewise.
25733 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25734 (read_command_list): Gettextizze.
25735 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25736 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25738 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25740 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25741 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25742 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25743 (led_status): New variable.
25744 (keyboard_controller_led): New function.
25745 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25746 update led status for caps lock, num lock and scroll lock.
25748 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25750 * util/hostdisk.c (open_device): Fix a comment.
25752 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25754 * util/grub-install.in (host_os): New variable.
25755 * util/i386/efi/grub-install.in (host_os): Likewise.
25757 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25759 * util/mkisofs/write.c (padblock_write): Abort when given an
25760 excedingly large embed image, instead of silently truncating it.
25762 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25764 * include/multiboot.h: Indentation fixes.
25766 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25768 * include/multiboot.h (struct multiboot_aout_symbol_table)
25769 (struct multiboot_elf_section_header_table): New structure
25770 declarations (stolen from GRUB Legacy).
25771 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25774 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25775 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25778 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25780 * include/multiboot.h: Make comments src2texi-friendly.
25782 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25784 For consistency with [multiboot]/docs/boot.S.
25786 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25787 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25788 (MULTIBOOT_MAGIC2): Rename from this ...
25789 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25791 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25793 * include/multiboot.h: Remove `<grub/types.h>'.
25794 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25795 types. Update all users.
25797 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25799 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25800 `couldn't' and `can not' by `cannot'.
25801 * commands/i386/pc/drivemap.c: Likewise.
25802 * disk/ata.c: Likewise.
25803 * disk/ieee1275/nand.c: Likewise.
25804 * fs/affs.c: Likewise.
25805 * fs/fat.c: Likewise.
25806 * fs/hfs.c: Likewise.
25807 * fs/hfsplus.c: Likewise.
25808 * fs/iso9660.c: Likewise.
25809 * fs/jfs.c: Likewise.
25810 * fs/minix.c: Likewise.
25811 * fs/reiserfs.c: Likewise.
25812 * fs/sfs.c: Likewise.
25813 * fs/udf.c: Likewise.
25814 * fs/ufs.c: Likewise.
25815 * fs/xfs.c: Likewise.
25816 * loader/powerpc/ieee1275/linux.c: Likewise.
25817 * loader/sparc64/ieee1275/linux.c: Likewise.
25818 * util/grub-probe.c: Likewise.
25819 * util/misc.c: Likewise.
25821 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25823 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25825 * commands/acpi.c: Likewise.
25826 * commands/blocklist.c: Likewise.
25827 * commands/efi/loadbios.c: Likewise.
25828 * commands/i386/pc/drivemap.c: Likewise.
25829 * commands/loadenv.c: Likewise.
25830 * commands/memrw.c: Likewise.
25831 * commands/password.c: Likewise.
25832 * commands/videotest.c: Likewise.
25833 * disk/ata.c: Likewise.
25834 * disk/ata_pthru.c: Likewise.
25835 * disk/dmraid_nvidia.c: Likewise.
25836 * disk/ieee1275/nand.c: Likewise.
25837 * disk/ieee1275/ofdisk.c: Likewise.
25838 * disk/loopback.c: Likewise.
25839 * disk/lvm.c: Likewise.
25840 * disk/mdraid_linux.c: Likewise.
25841 * disk/raid.c: Likewise.
25842 * disk/raid6_recover.c: Likewise.
25843 * disk/scsi.c: Likewise.
25844 * efiemu/main.c: Likewise.
25845 * efiemu/mm.c: Likewise.
25846 * efiemu/pnvram.c: Likewise.
25847 * efiemu/symbols.c: Likewise.
25848 * font/font.c: Likewise.
25849 * fs/cpio.c: Likewise.
25850 * fs/hfsplus.c: Likewise.
25851 * fs/iso9660.c: Likewise.
25852 * fs/jfs.c: Likewise.
25853 * fs/minix.c: Likewise.
25854 * fs/ntfs.c: Likewise.
25855 * fs/ntfscomp.c: Likewise.
25856 * fs/reiserfs.c: Likewise.
25857 * fs/ufs.c: Likewise.
25858 * fs/xfs.c: Likewise.
25859 * gettext/gettext.c: Likewise.
25860 * include/grub/auth.h: Likewise.
25861 * kern/elf.c: Likewise.
25862 * kern/file.c: Likewise.
25863 * kern/ieee1275/init.c: Likewise.
25864 * kern/ieee1275/mmap.c: Likewise.
25865 * kern/ieee1275/openfw.c: Likewise.
25866 * kern/powerpc/dl.c: Likewise.
25867 * kern/sparc64/dl.c: Likewise.
25868 * lib/arg.c: Likewise.
25869 * loader/i386/bsd.c: Likewise.
25870 * loader/i386/bsdXX.c: Likewise.
25871 * loader/i386/efi/linux.c: Likewise.
25872 * loader/i386/efi/xnu.c: Likewise.
25873 * loader/i386/ieee1275/linux.c: Likewise.
25874 * loader/i386/linux.c: Likewise.
25875 * loader/i386/multiboot.c: Likewise.
25876 * loader/i386/pc/linux.c: Likewise.
25877 * loader/i386/pc/multiboot2.c: Likewise.
25878 * loader/i386/xnu.c: Likewise.
25879 * loader/ieee1275/multiboot2.c: Likewise.
25880 * loader/macho.c: Likewise.
25881 * loader/machoXX.c: Likewise.
25882 * loader/multiboot2.c: Likewise.
25883 * loader/multiboot_loader.c: Likewise.
25884 * loader/powerpc/ieee1275/linux.c: Likewise.
25885 * loader/sparc64/ieee1275/linux.c: Likewise.
25886 * loader/xnu.c: Likewise.
25887 * loader/xnu_resume.c: Likewise.
25888 * mmap/i386/pc/mmap.c: Likewise.
25889 * normal/menu_viewer.c: Likewise.
25890 * partmap/acorn.c: Likewise.
25891 * partmap/amiga.c: Likewise.
25892 * partmap/apple.c: Likewise.
25893 * script/lexer.c: Likewise.
25894 * term/gfxterm.c: Likewise.
25895 * term/i386/pc/serial.c: Likewise.
25896 * term/i386/pc/vga.c: Likewise.
25897 * term/ieee1275/ofconsole.c: Likewise.
25898 * term/terminfo.c: Likewise.
25899 * video/bitmap.c: Likewise.
25900 * video/efi_gop.c: Likewise.
25901 * video/efi_uga.c: Likewise.
25902 * video/fb/video_fb.c: Likewise.
25903 * video/i386/pc/vbe.c: Likewise.
25904 * video/readers/tga.c: Likewise.
25905 * video/video.c: Likewise.
25907 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25909 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25910 * commands/lspci.c: Likewise.
25911 * commands/probe.c: Likewise.
25912 * commands/xnu_uuid.c: Likewise.
25913 * conf/i386-coreboot.rmk: Likewise.
25914 * conf/i386-efi.rmk: Likewise.
25915 * conf/i386-ieee1275.rmk: Likewise.
25916 * conf/i386-pc.rmk: Likewise.
25917 * conf/powerpc-ieee1275.rmk: Likewise.
25918 * conf/sparc64-ieee1275.rmk: Likewise.
25919 * conf/x86_64-efi.rmk: Likewise.
25920 * fs/i386/pc/pxe.c: Likewise.
25921 * gettext/gettext.c: Likewise.
25922 * include/grub/efi/graphics_output.h: Likewise.
25923 * include/grub/i386/pc/memory.h: Likewise.
25924 * kern/env.c: Likewise.
25925 * kern/i386/qemu/startup.S: Likewise.
25926 * lib/i386/pc/biosnum.c: Likewise.
25927 * lib/i386/relocator.c: Likewise.
25928 * lib/i386/relocator_asm.S: Likewise.
25929 * lib/relocator.c: Likewise.
25930 * loader/i386/bsd.c: Likewise.
25931 * loader/i386/multiboot.c: Likewise.
25932 * loader/i386/pc/chainloader.c: Likewise.
25933 * loader/i386/xnu.c: Likewise.
25934 * loader/xnu.c: Likewise.
25935 * normal/main.c: Likewise.
25936 * normal/menu_text.c: Likewise.
25937 * util/getroot.c: Likewise.
25938 * util/grub-mkconfig_lib.in: Likewise.
25939 * util/grub.d/00_header.in: Likewise.
25940 * util/i386/pc/grub-mkimage.c: Likewise.
25941 * util/mkisofs/eltorito.c: Likewise.
25942 * util/mkisofs/exclude.h: Likewise.
25943 * util/mkisofs/hash.c: Likewise.
25944 * util/mkisofs/iso9660.h: Likewise.
25945 * util/mkisofs/joliet.c: Likewise.
25946 * util/mkisofs/mkisofs.c: Likewise.
25947 * util/mkisofs/mkisofs.h: Likewise.
25948 * util/mkisofs/multi.c: Likewise.
25949 * util/mkisofs/name.c: Likewise.
25950 * util/mkisofs/rock.c: Likewise.
25951 * util/mkisofs/tree.c: Likewise.
25952 * util/mkisofs/write.c: Likewise.
25953 * video/efi_gop.c: Likewise.
25955 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
25957 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
25960 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25962 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
25963 * genmk.rb (class SCRIPT): Modify the target file instead of source.
25965 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25967 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
25968 (GRUB_MOD_INIT(memrw)): Update help line.
25970 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25972 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
25973 Use grub_extcmd_t. All users updated.
25974 (options): New variable.
25975 (grub_cmd_read): Restructure for readability. Support "-v" option.
25976 (grub_cmd_write): Restructure for readability.
25978 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25980 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
25982 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25984 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
25985 with the actual contents of the correspondending make variable.
25986 * util/grub-mkrescue.in (pkglib_DATA): New variable.
25987 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
25988 specifying `*.lst' and `efiemu??.o'
25990 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
25992 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
25993 after function name.
25994 Noticed by Rene Engelhard <rene@debian.org>.
25996 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
25998 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
25999 (options): New variable.
26000 (iospace): Likewise.
26001 (grub_lspci_iter): List IO spaces if "-i" was given.
26002 (grub_cmd_lspci): Parse options.
26003 (GRUB_MOD_INIT(lspci)): Use extcmd.
26004 (GRUB_MOD_FINI(lspci)): Likewise.
26006 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26008 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26009 `function' keyword.
26010 Patch by Tony Mancill <tmancill@debian.org>.
26012 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26014 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26015 (grub_uhci_portstatus): Likewise.
26016 (grub_uhci_portstatus): Add necessary delay.
26017 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
26019 2009-12-21 Carles Pina i Estany <carles@pina.cat>
26021 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26022 (GRUB_MOD_INIT): Likewise.
26023 * commands/boot.c (GRUB_MOD_INIT): Likewise.
26024 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26025 * commands/echo.c (options): Fix capitalizations and/or full stops.
26026 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26027 (enable_rom_area): Likewise.
26028 (GRUB_MOD_INIT): Likewise.
26029 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26030 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26031 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26032 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26033 * commands/hexdump.c (options): Likewise.
26034 * commands/i386/cpuid.c (options): Likewise.
26035 (GRUB_MOD_INIT): Likewise.
26036 * commands/i386/pc/drivemap.c (options): Likewise.
26037 (GRUB_MOD_INIT): Likewise.
26038 * commands/i386/pc/halt (options): Likewise.
26039 (GRUB_MOD_INIT): Likewise.
26040 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26041 * commands/i386/pc/pxecmd.c (options): Likewise.
26042 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26043 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26044 * commands/keystatus.c (options): Likewise.
26045 (GRUB_MOD_INIT): Likewise.
26046 * commands/loadenv.c (options): Likewise.
26047 * commands/ls.c (options): Likewise.
26048 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26049 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26050 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26051 * commands/parttool.c (helpmsg): Likewise.
26052 * commands/probe.c (options): Likewise.
26053 * commands/read.c (GRUB_MOD_INIT): Likewise.
26054 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26055 * commands/search.c (options): Likewise.
26056 * commands/sleep.c (options): Likewise.
26057 * commands/test.c (GRUB_MOD_INIT): Likewise.
26058 * commands/true.c (GRUB_MOD_INIT): Likewise.
26059 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26060 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26061 * lib/arg.c (help_options): Likewise.
26062 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26064 * po/POTFILES: Add `commands/loadenv.c'.
26066 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
26068 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
26069 instead of specifying them explicit.
26071 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26073 * NEWS: Add grub-probe support for GNU/Hurd.
26075 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26077 * NEWS: gettext was added after 1.97.
26079 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26081 * util/mkisofs/msdos_partition.h: New file (based on
26082 include/grub/msdos_partition.h).
26083 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26084 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26085 (ld_options, main): Recognize --protective-msdos-label.
26086 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26087 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26088 (padblock_write): If `use_protective_msdos_label' is set, patch a
26089 protective DOS-style label in the output image.
26091 * util/grub-mkrescue.in: Use --protective-msdos-label.
26093 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26095 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26098 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26100 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26102 (ld_options, main): Recognize `--embedded-boot'.
26103 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26105 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26106 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26107 (padblock_write): Likewise. Rewrite to support embedded boot image.
26109 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26110 for BIOS-based disk boot instead of only ElTorito.
26112 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26114 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26115 build (not needed for bootstrap).
26117 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26119 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26120 from i386-pc build (not needed for bootstrap).
26121 Rewrite a pair of strings.
26123 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26125 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26127 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
26129 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26131 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26133 * kern/env.c (grub_env_context_open): Mark exported variable for
26136 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26138 * kern/env.c (grub_env_export): Create nonexistent variables before
26141 2009-12-20 Carles Pina i Estany <carles@pina.cat>
26143 * include/grub/auth.h: Include `<grub/i18n.h>'.
26144 (GRUB_GET_PASSWORD): Gettextizze string.
26145 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26147 (grub_utf8_to_ucs4_alloc): Fix indentation.
26148 (grub_print_ucs4): Likewise.
26149 (grub_getstringwidth): Likewise.
26150 (print_message_indented): New declaration.
26151 * normal/auth.c: Include `<grub/i18n.h>'.
26152 (grub_auth_check_authentication): Gettexttize string.
26153 * normal/cmdline.c: Include `<grub/i18n.h>'.
26154 (grub_cmdline_get): Gettextizze.
26155 * normal/color.c: Include `<grub/i18n.h>'.
26156 (grub_parse_color_name_pair): Gettexttize strings.
26157 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26158 string (use `print_message_indented').
26159 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26160 `include/grub/normal.h'.
26161 (print_message_indented): Renamed to ...
26162 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26163 used in normal/main.c).
26164 (print_message): Use `grub_print_message_indented' instead of
26165 `print_message_indented'.
26166 (print_timeout): Likewise.
26167 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26168 (grub_normal_print_device_info): Gettexttize strings.
26169 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26171 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26173 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26174 of arguments. Return number of tokens and not arguments. All users
26177 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26179 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26180 non-MSDOS paritions.
26182 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26184 * include/grub/types.h (UNUSED): Removed since it conflicts with
26185 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26186 Reported by Grégoire Sutre.
26188 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26190 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26191 (grub_print_ucs4_alloc): Likewise.
26192 (grub_getstringwidth): Likewise.
26193 * normal/main.c (grub_normal_init_page): Gettextize version string.
26194 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26195 (getstringwidth): Renamed to ...
26196 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26197 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26198 (grub_print_ucs4): Remove `static' qualifer (now used in
26200 * po/POTFILES: Add normal/main.c.
26202 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26204 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26205 (print_message_indented): Add `margin_left' and `margin_right'
26207 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26209 (print_timeout): Use `print_message_indented' to print the message.
26210 Deletes `second_stage' parameter.
26211 (run_menu): Update `print_timeout' calls.
26213 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26215 Fix console palette on OpenFirmware.
26217 * term/ieee1275/ofconsole.c (MAX): Removed.
26218 (colors): Redone based on VGA palette.
26219 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26220 colors are supported.
26221 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26223 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26225 Fix potential EfiEmu double prepare.
26227 * efiemu/main.c (prepared): New variable
26228 (grub_efiemu_unload): Set prepare to '0'.
26229 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26231 set_virtual_address_map support.
26233 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26235 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26237 (grub_efiemu_crc32): Likewise.
26238 (grub_efiemu_crc64): Likewise.
26239 (grub_efiemu_set_virtual_address_map): Likewise.
26240 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26242 (grub_autoefi_set_virtual_address_map): Likewise.
26243 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26244 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26245 Restructure flow to accomodate it.
26246 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26247 (grub_efiemu_crc): Recompute CRC32.
26248 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26249 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26250 * efiemu/symbols.c (relocated_handle): New variable.
26251 (grub_efiemu_free_syms): Free relocated_handle.
26252 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26253 (grub_efiemu_write_sym_markers): New function.
26254 (grub_efiemu_set_virtual_address_map): Likewise.
26256 Newer XNU parameters.
26258 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26259 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26260 (grub_xnu_fill_devicetree): New prototype.
26261 (grub_xnu_heap_real_start): New variable.
26262 * loader/xnu.c (get_name_ptr): New function.
26263 (grub_xnu_load_driver): Fill namelen and name.
26265 64-bit xnu support.
26267 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26268 and 'loader/macho64.c'.
26269 * conf/i386-pc.rmk: Likewise.
26270 * conf/x86_64-efi.rmk: Likewise.
26271 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26272 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26273 * include/grub/macho.h (grub_macho_segment64): New structure.
26274 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26275 (grub_macho_size32): ... to this.
26276 (grub_macho32_get_entry_point): Renamed from ...
26277 (grub_macho_get_entry_point32): ... to this.
26278 (grub_macho_contains_macho64): New prototype.
26279 (grub_macho_size64): Likewise.
26280 (grub_macho_get_entry_point64): Likewise.
26281 (grub_macho32_load): Renamed from ...
26282 (grub_macho_load32): ... to this.
26283 (grub_macho32_filesize): Renamed from ...
26284 (grub_macho_filesize32): ... to this.
26285 (grub_macho32_readfile): Renamed from ...
26286 (grub_macho_readfile32): ... to this.
26287 (grub_macho_filesize64): New prototype.
26288 (grub_macho_readfile64): Likewise.
26289 (grub_macho_parse32): Likewise.
26290 (grub_macho_parse64): Likewise.
26291 * loader/macho.c: Split into ...
26292 * loader/machoXX.c: ... and this. Replace 32 with XX.
26293 * loader/macho32.c: New file.
26294 * loader/macho64.c: Likewise.
26295 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26296 (grub_cmd_xnu_kernel): Make 32-bit only.
26297 (grub_cmd_xnu_kernel64): New function.
26298 (grub_xnu_load_driver): Support Mach-O 64.
26299 (grub_cmd_xnu_mkext): Likewise.
26300 * util/grub.d/30_os-prober.in (osx_entry): New function.
26301 Generate entries for 64-bit boot too.
26303 Eliminate ad-hoc tree format in XNU and EfiEmu.
26305 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26306 * efiemu/pnvram.c: Rewritten to use environment variables.
26309 Inline utf16_to_utf8.
26311 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26312 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26314 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26316 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26317 * commands/usbtest.c (grub_usb_get_string): ... move here.
26318 (usb_print_str): Fix error handling.
26319 * include/grub/usb.h (grub_usb_get_string): Remove.
26321 UTF-8 to UTF-16 transformation.
26323 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26324 (charset_mod_SOURCES): New variable.
26325 (charset_mod_CFLAGS): Likewise.
26326 (charset_mod_LDFLAGS): Likewise.
26327 * include/grub/utf.h: New file.
26328 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26330 Support for device properties.
26332 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26333 (grub_xnu_devprop_device_header): Likewise.
26334 (grub_xnu_devprop_device_descriptor): Likewise.
26335 (grub_xnu_devprop_add_device): New prototype.
26336 (grub_xnu_devprop_remove_device): Likewise.
26337 (grub_xnu_devprop_remove_property): Likewise.
26338 (grub_xnu_devprop_add_property_utf8): Likewise.
26339 (grub_xnu_devprop_add_property_utf16): Likewise.
26340 (grub_cpu_xnu_init): Likewise.
26341 (grub_cpu_xnu_fini): Likewise.
26342 (grub_cpu_xnu_unload): Likewise.
26343 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26344 (property_descriptor): Likewise.
26345 (devices): New variable.
26346 (grub_xnu_devprop_remove_property): New function.
26347 (grub_xnu_devprop_add_device): Likewise.
26348 (grub_xnu_devprop_remove_device): Likewise.
26349 (grub_xnu_devprop_add_property): Likewise.
26350 (grub_xnu_devprop_add_property_utf8): Likewise.
26351 (grub_xnu_devprop_add_property_utf16): Likewise.
26352 (hextoval): Likewise.
26353 (grub_cpu_xnu_fill_devprop): Likewise.
26354 (grub_cmd_devprop_load): Likewise.
26355 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26356 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26357 (cmd_devprop_load): New variable.
26358 (grub_cpu_xnu_init): New function.
26359 (grub_cpu_xnu_fini): Likewise.
26360 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26361 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26362 (grub_cmd_xnu_devtree): Likewise.
26363 (hextoval): New function.
26364 (unescape): Likewise.
26365 (grub_xnu_fill_devicetree): Likewise.
26367 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26368 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26370 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26372 Workaround for broken ATI VBE.
26374 * video/i386/pc/vbe.c (last_set_mode): New variable.
26375 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26376 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26377 (grub_video_vbe_setup): Don't check for reserved flag.
26379 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26381 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26382 the `find' command.
26384 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26386 UUID support for HFS.
26388 * fs/hfs.c (grub_hfs_uuid): New function.
26389 (grub_hfs_fs): New value .uuid.
26390 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26392 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26394 Fix a segfault with parsing unknown long options.
26396 * util/grub-mkrelpath.c (options): Zero terminate it.
26398 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26400 * include/grub/misc.h (grub_puts): New declaration.
26401 (grub_puts_): Likewise.
26402 * kern/misc.c (grub_puts): New definition.
26403 (grub_puts_): Likewise.
26405 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26407 * util/grub-probe.c (probe): Improve error message.
26409 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26411 * loader/i386/multiboot_elfxx.c
26412 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26415 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26417 Relocator framework
26419 * loader/i386/xnu_helper.S: Removed. All users updated.
26420 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26421 (relocator_mod_SOURCES): New variable.
26422 (relocator_mod_CFLAGS): Likewise.
26423 (relocator_mod_LDFLAGS): Likewise.
26424 (relocator_mod_ASFLAGS): Likewise.
26425 * conf/x86_64.rmk: Likewise.
26426 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26427 (grub_multiboot_payload_entry_offset): Likewise.
26428 (grub_multiboot_forward_relocator): Likewise.
26429 (grub_multiboot_forward_relocator_end): Likewise.
26430 (grub_multiboot_backward_relocator): Likewise.
26431 (grub_multiboot_backward_relocator_end): Likewise.
26432 (grub_multiboot_payload_eip): New variable.
26433 (grub_multiboot_payload_orig): Likewise.
26434 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26435 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26436 * include/grub/i386/memory.h
26437 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26438 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26439 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26440 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26441 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26442 * include/grub/i386/relocator.h: New file.
26443 * include/grub/x86_64/relocator.h: Likewise.
26444 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26445 (XNU_RELOCATOR): New macro.
26446 (grub_xnu_launcher_start): Remove.
26447 (grub_xnu_launcher_end): Likewise.
26448 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26449 (grub_xnu_heap_real_start): Remove.
26450 (grub_xnu_heap_start): Change to void *. All users updated.
26451 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26452 * lib/i386/relocator.c: New file.
26453 * lib/i386/relocator_asm.S: Likewise.
26454 * lib/i386/relocator_backward.S: Likewise.
26455 * lib/mips/relocator.c: Likewise.
26456 * lib/mips/relocator_asm.S: Likewise.
26457 * lib/relocator.c: Likewise.
26458 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26460 (playground): Likewise.
26461 (grub_multiboot_payload_orig): New variable.
26462 (grub_multiboot_payload_dest): Likewise.
26463 (grub_multiboot_payload_size): Likewise.
26464 (grub_multiboot_payload_eip): Likewise.
26465 (grub_multiboot_payload_esp): Likewise.
26466 (grub_multiboot_boot): Use grub_relocator32_boot.
26467 (grub_multiboot_unload): Free relocators.
26468 (grub_multiboot): Setup stack. Use relocators.
26469 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26470 (grub_multiboot_load_elfXX): Use relocators.
26471 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26472 (grub_multiboot_payload_size): Likewise.
26473 (grub_multiboot_payload_dest): Likewise.
26474 (grub_multiboot_payload_entry_offset): Likewise.
26475 (grub_multiboot_forward_relocator): Likewise.
26476 (grub_multiboot_backward_relocator): Likewise.
26477 (grub_multiboot_real_boot): Likewise.
26478 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26479 (grub_xnu_entry_point): Likewise.
26480 (grub_xnu_arg1): Likewise.
26481 (grub_xnu_stack): Likewise.
26482 (grub_xnu_launch): Removed.
26483 (grub_xnu_boot_resume): New function.
26484 (grub_xnu_boot): Use relocators.
26485 * loader/i386/xnu_helper.S: Removed.
26486 * loader/xnu.c (grub_xnu_heap_start): New variable.
26487 (grub_xnu_heap_size): Likewise.
26488 (grub_xnu_heap_malloc): Use relocators.
26489 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26491 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26493 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26496 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26498 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26499 GRUB_ERR_NONE before calling grub_env_set.
26501 2009-12-12 Robert Millan <rmh@aybabtu.com>
26503 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26504 * genmk.rb (video): New variable.
26505 (CLEANFILES, VIDEOFILES): Add #{video}.
26506 (#{video}): New target rule.
26507 * genvideolist.sh: New file.
26508 * Makefile.in (pkglib_DATA): Add video.lst.
26509 (video.lst): New target rule.
26510 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26512 * util/grub.d/30_os-prober.in: Replace `vbe' with
26513 ${GRUB_VIDEO_BACKEND}.
26515 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26517 * THANKS: Add David Miller.
26519 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26521 libpciaccess support.
26523 * Makefile.in (LIBPCIACCESS): New variable.
26524 (enable_grub_emu_pci): Likewise.
26525 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26526 util/pci.c and commands/lspci.c.
26527 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26528 * configure.ac (grub-emu-pci): New option.
26529 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26530 (grub_pci_device_unmap_range): Likewise.
26531 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26532 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26533 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26534 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26535 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26536 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26537 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26538 * include/grub/pciutils.h: New file.
26539 * util/pci.c: Likewise.
26541 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26543 * util/misc.c: Don't include <errno.h> twice.
26545 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26547 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26548 name in an error message.
26549 (grub_biosdisk_rw): Likewise.
26551 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26553 Eliminate NTFS 4Gib barrier.
26555 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26556 (read_run_data): Likewise.
26557 (grub_ntfs_read_run_list): Likewise.
26558 (grub_ntfs_read_block): Likewise.
26559 (grub_ntfs_iterate_dir): Likewise.
26560 (read_mft): Likewise.
26561 (read_data): Likewise.
26563 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26564 to avoid 64-bit division
26565 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26566 (grub_ntfs_rlst): Use grub_disk_addr_t.
26568 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26570 Eliminate grub-fstest 4Gib barrier.
26572 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26573 (read_file): Fix error reporting.
26575 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26577 Eliminate hexdump 4Gib barrier.
26579 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26580 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26582 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26584 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26587 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26589 Remove miscellaneous files in distclean target.
26591 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26593 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26595 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26596 if they're already set. This resolves the conflict between my
26597 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26598 fixing the --grub-probe option again.
26599 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26600 change on 2009-10-06, so that we now once again source
26601 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26603 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26605 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26606 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26607 `util/devicemap.c'.
26609 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26611 * include/grub/misc.h (grub_printf_): New declaration.
26612 * kern/misc.c (grub_printf_): New definition.
26613 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26614 instead of `grub_printf' and `_'.
26615 * normal/menu_entry.c (store_completion): Likewise.
26617 (grub_menu_entry_run): Likewise.
26618 * normal/menu_text.c (grub_wait_after_message): Likewise.
26619 (notify_booting): Likewise.
26620 (notify_fallback): Likewise.
26621 (notify_execution_failure): Likewise.
26623 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26625 * configure.ac: Check for vasprintf.
26626 * util/misc.c (asprintf): Move allocation from here ...
26627 (vasprintf): ... to here. New function.
26628 (xasprintf): New function.
26629 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26631 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26632 * util/grub-mkfont.c (write_font): Likewise.
26633 * util/grub-probe.c (probe): Likewise.
26634 * util/hostdisk.c (make_device_name): Likewise.
26636 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26638 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26639 anything even prefixed with 'cdrom' as a cdrom.
26641 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26643 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26646 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26648 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26649 grub_gettext_msg_list.
26650 (grub_gettext_gettranslation_from_position): Return const char *
26652 (grub_gettext_translate): Add the translated strings into a list,
26653 returns from the list if existing there.
26654 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26655 (grub_gettext_delete_list): Delete the list.
26656 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26657 lang environment variable is changed.
26658 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26660 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26662 Rename kernel.mod to kernel.img.
26664 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26665 (kernel_mod_EXPORTS): Rename to ...
26666 (kernel_img_EXPORTS): ... this.
26667 (kernel_mod_SOURCES): Rename to ...
26668 (kernel_img_SOURCES): ... this.
26669 (kernel_mod_HEADERS): Rename to ...
26670 (kernel_img_HEADERS): ... this. All users updated.
26671 (kernel_mod_CFLAGS): Rename to ...
26672 (kernel_img_CFLAGS): ... this.
26673 (kernel_mod_ASFLAGS): Rename to ...
26674 (kernel_img_ASFLAGS): ... this.
26675 (kernel_mod_LDFLAGS): Rename to ...
26676 (kernel_img_LDFLAGS): ... this.
26677 * conf/x86_64-efi.rmk: Likewise.
26678 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26679 (read_kernel_image): ... this. All users updated.
26680 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26682 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26684 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26685 (print_spaces): New function.
26686 (grub_print_ucs4): New function.
26687 (getstringwidth): New function.
26688 (print_message_indented): New function.
26689 (print_message): Gettexttize strings using print_message_indented.
26690 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26692 (get_entry_number): Gettextize and uses dynamic terminal width.
26693 (notify_booting, notify_fallback, notify_execution_failure):
26695 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26698 (grub_menu_entry_run): Likewise.
26699 * PO/POTFILES: Add normal/menu_entry.c.
26701 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26703 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26705 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26707 * util/grub-install.in: Install gettext .mo files.
26708 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26710 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26712 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26715 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26717 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26718 non-firmware-dependant one in realmode.S takes precedence.
26720 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26722 * commands/halt.c: Replace misc arch-specific headers with
26724 * commands/reboot.c: Likewise.
26725 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26727 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26728 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26729 (kernel_img_SOURCES): ... to here.
26731 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26732 * include/grub/i386/pc/init.h: Likewise.
26733 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26734 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26736 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26738 * include/grub/i386/halt.h: Remove.
26739 * include/grub/i386/reboot.h: Likewise.
26741 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26743 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26745 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26746 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26747 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26749 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26750 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26751 (usage): Add missing comma in printf.
26753 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26755 Use the same reboot approach on i386 coreboot and qemu as we do on
26758 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26759 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26760 * kern/i386/reboot.c: Remove.
26761 * include/grub/i386/reboot.h (grub_reboot): Export function.
26762 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26763 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26764 0xf000:0xfff0 instead of 0xffff:0x0000.
26765 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26766 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26768 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26770 Fix $srcdir != $objdir build.
26772 * Makefile.in (po/%.po): Rewrite as ...
26773 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26775 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26777 Fix GNU/Hurd grub-install crash.
26778 * util/grub-probe.c (probe): Try to access `path' only when it is not
26781 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26783 Correct module naming.
26785 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26786 (GRUB_MOD_INIT(efi_uga)): ... to this
26787 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26788 (GRUB_MOD_FINI(efi_uga)): ... to this
26789 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26790 (GRUB_MOD_INIT(efi_gop)): ... to this
26791 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26792 (GRUB_MOD_FINI(efi_gop)): ... to this
26794 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26796 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26798 (usage): Translate `arg' strings using gettext().
26799 Thanks to Jordi Mallach for the suggestion.
26801 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26803 GOP support. Based on patch from Bean
26804 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26806 * video/efi_gop.c: New file.
26807 * include/grub/efi/graphics_output.h: Likewise.
26808 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26809 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26811 * conf/x86_64-efi.rmk: Likewise.
26813 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26815 Rename efi_fb to efi_uga.
26817 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26819 (efi_fb_mod_SOURCES): Rename this ...
26820 (efi_uga_mod_SOURCES): ... to this.
26821 (efi_fb_mod_CFLAGS): Rename this ...
26822 (efi_uga_mod_CFLAGS): ... to this.
26823 (efi_fb_mod_LDFLAGS): Rename this ...
26824 (efi_uga_mod_LDFLAGS): ... to this.
26825 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26827 (efi_fb_mod_SOURCES): Rename this ...
26828 (efi_uga_mod_SOURCES): ... to this.
26829 (efi_fb_mod_CFLAGS): Rename this ...
26830 (efi_uga_mod_CFLAGS): ... to this.
26831 (efi_fb_mod_LDFLAGS): Rename this ...
26832 (efi_uga_mod_LDFLAGS): ... to this.
26833 * video/efi_fb.c: Move this ...
26834 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26836 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26838 * po/README: New file. Explain our PO file workflow.
26840 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26842 * po/ChangeLog: Remove. Move relevant entries back to ...
26843 * ChangeLog: ... here.
26844 * po/ca.po: Remove (now handled by TLP).
26845 * po/id.po: Likewise.
26846 * po/zh_CN.po: Likewise.
26847 * Makefile.in (LINGUAS): Initialize in a way that supports
26850 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26852 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26853 reliing on po/LINGUAS.
26854 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26855 (po/%.po): ... this.
26857 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26859 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26860 (main): Use `program_name' instead of nonexistent `progname'.
26862 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26864 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26865 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26867 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26869 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26871 * conf/i386-efi.rmk: Likewise.
26872 * conf/i386-ieee1275.rmk: Likewise.
26873 * conf/powerpc-ieee1275.rmk: Likewise.
26874 * conf/sparc64-ieee1275.rmk: Likewise.
26875 * conf/x86_64-efi.rmk: Likewise.
26877 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26879 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26881 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26883 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26885 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26887 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26888 (grub_mkdevicemap_SOURCES): New variable.
26889 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26890 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26891 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26892 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26893 (grub_mkdevicemap_SOURCES): Remove.
26894 * conf/i386-efi.rmk: Likewise.
26895 * conf/i386-ieee1275.rmk: Likewise.
26896 * conf/i386-pc.rmk: Likewise.
26897 * conf/powerpc-ieee1275.rmk: Likewise.
26898 * conf/sparc64-ieee1275.rmk: Likewise.
26899 * conf/x86_64-efi.rmk: Likewise.
26900 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26901 (usage): Fix strings to use `program_name'.
26902 (main): Initialize gettext.
26903 * util/grub-editenv.c: Likewise.
26904 * util/grub-emu.c: Likewise.
26905 * util/grub-fstest.c: Likewise.
26906 * util/grub-mkdevicemap.c: Likewise.
26907 * util/grub-mkfont.c: Likewise.
26908 * util/grub-mkrelpath.c: Likewise.
26909 * util/grub-pe2elf.c: Likewise.
26910 * util/grub-probe.c: Likewise.
26911 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26912 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26913 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26915 * util/misc.c: Include `"progname.h"'.
26916 (progname): Remove variable.
26917 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26919 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26921 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26922 printf and print a newline after the menuentry header line.
26923 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26925 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26927 autoconf >= 2.60 support $(localedir).
26929 * INSTALL: Note that autoconf 2.60 is required.
26930 * configure.ac (AC_PREREQ): Bump to 2.60.
26931 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
26932 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
26934 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
26936 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
26939 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26941 * normal/main.c (grub_normal_read_line): Fix off-by-one
26944 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
26946 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
26947 "parser.grub" in grub_command_execute() call.
26949 2009-11-24 Carles Pina i Estany <carles@pina.cat>
26951 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
26952 * conf/i386-efi.rmk: Likewise.
26953 * conf/i386-ieee1275.rmk: Likewise.
26954 * conf/i386-pc.rmk: Likewise.
26955 * conf/powerpc-ieee1275.rmk: Likewise.
26956 * conf/sparc64-ieee1275.rmk: Likewise.
26957 * conf/x86_64-efi.rmk: Likewise.
26958 * gettext/gettex.c: Include <grub/i18n.h>.
26959 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
26961 * include/grub/i18n.h: ... to here
26962 * include/grub/i18n.h: ... to here.
26963 * kern/misc.c: Include <grub/i18n.h>
26964 (grub_gettext_dummy): Move above user.
26966 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26968 * util/Makefile.in (install-local): Convert a `for' into a normal
26971 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
26973 * autogen.sh: Add automake call.
26974 * config.guess: Remove.
26975 * config.sub: Likewise.
26976 * install-sh: Likewise.
26978 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26980 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
26982 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26984 * util/Makefile.in (install-local): Convert a make `$(foreach)'
26985 function to a normal shell `for'.
26987 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26989 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26991 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
26993 * util/grub-mkrelpath.c: New file.
26994 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
26995 (grub_mkrelpath_SOURCES): New variable.
26996 * include/grub/util/misc.h: New function prototype.
26997 * util/misc.c (make_system_path_relative_to_its_root): New function.
26999 * util/grub-mkconfig_lib.in (bindir): New variable.
27000 (grub_mkrelpath): Likewise.
27001 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27003 * util/probe.c (probe): Make the file path relative to its root.
27004 Change a info message to use the GRUB path. Enable again the
27005 check if we can read the file with GRUB facilities.
27007 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27010 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27012 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27015 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27017 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27020 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27022 * util/getroot.c (grub_util_is_dmraid): New function.
27023 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27024 devices as normal ones, not as LVM.
27026 2009-11-23 Carles Pina i Estany <carles@pina.cat>
27028 * conf/common.rmk: Add grub-gettext_lib target and updates
27029 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27031 * gettext/gettext.c: New file. (Reads mo files).
27032 * include/grub/file.h (grub_file_pread): New prototype.
27033 * include/grub/i18n.h (_): New prototype.
27034 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27036 * kern/misc.c (grub_gettext_dummy): New function.
27037 * normal/menu_text.c: Include <grub/i18n.h>.
27038 * normal/menu_text.c (print_timeout): Gettexttize string.
27039 * normal/menu_text.c (print_message): Gettexttize string.
27040 * po/POTFILES: Add `normal/menu_text.c'.
27041 * po/ca.po: Add new translations.
27042 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27043 gettext module and defines locale_dir and lang in grub.cfg.
27044 * NEWS: Add gettext support.
27046 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27048 * util/hostdisk.c: Include `<grub/i18n.h>'.
27049 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27050 (make_device_name): Rewrite using asprintf.
27051 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27052 (find_system_device): If a device is not found, generate one just
27053 by reusing the OS path name.
27054 (read_device_map): Make it permissible for device.map not to exist.
27056 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27058 * script/sh/execute.c: Move from here ...
27059 * script/execute.c: ... to here. Update all users.
27060 * script/sh/function.c: Move from here ...
27061 * script/function.c: ... to here. Update all users.
27062 * script/sh/lexer.c: Move from here ...
27063 * script/lexer.c: ... to here. Update all users.
27064 * script/sh/main.c: Move from here ...
27065 * script/main.c: ... to here. Update all users.
27066 * script/sh/parser.y: Move from here ...
27067 * script/parser.y: ... to here. Update all users.
27068 * script/sh/script.c: Move from here ...
27069 * script/script.c: ... to here. Update all users.
27071 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27073 * configure.ac: Detect all `emu' platforms. Define
27074 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27075 --enable-grub-emu logic. Disable include/grub/machine
27076 symlink on `emu' platforms.
27078 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27079 * gensymlist.sh.in: Likewise.
27081 * include/grub/i386/coreboot/machine.h: Remove file.
27082 * include/grub/i386/efi/machine.h: Likewise.
27083 * include/grub/i386/ieee1275/machine.h: Likewise.
27084 * include/grub/i386/pc/machine.h: Likewise.
27085 * include/grub/i386/qemu/machine.h: Likewise.
27086 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27087 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27088 * include/grub/x86_64/efi/machine.h: Likewise.
27090 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27091 * commands/halt.c: Likewise.
27092 * commands/reboot.c: Likewise.
27093 * include/grub/autoefi.h: Likewise.
27094 * include/grub/i386/at_keyboard.h: Likewise.
27095 * include/grub/i386/kernel.h: Likewise.
27096 * include/grub/i386/loader.h: Likewise.
27097 * include/grub/i386/pc/memory.h: Likewise.
27098 * kern/dl.c: Likewise.
27099 * kern/i386/coreboot/init.c: Likewise.
27100 * loader/i386/bsd.c: Likewise.
27101 * loader/i386/linux.c: Likewise.
27102 * loader/multiboot_loader.c: Likewise.
27103 * term/i386/pc/serial.c: Likewise.
27104 * term/usb_keyboard.c: Likewise.
27106 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27107 `<grub/machine/machine.h>'
27108 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27109 * util/misc.c: Remove `<grub/machine/machine.h>' and
27110 `<grub/machine/time.h>'.
27112 * Makefile.in (enable_grub_emu): Remove variable.
27113 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27115 * conf/any-emu.rmk: New file.
27116 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27117 (grub_emu_init.c): Move from here ...
27118 * conf/any-emu.rmk: ... to here.
27120 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27121 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27122 * conf/any-emu.rmk: ... to here.
27124 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27126 * include/grub/parser.h (grub_parser_register): Document need
27127 of `name' parameter.
27128 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27129 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27132 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27134 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27136 * include/grub/i18n.h (N_): New macro.
27137 * util/mkisofs/mkisofs.h: Likewise.
27138 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27140 (usage): Use gettext() to translate help strings when printing them.
27142 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27144 Based on patch from Bean
27145 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27147 * video/efi_fb.c: New file.
27148 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27149 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27151 * conf/x86_64-efi.rmk: Likewise.
27153 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27155 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27156 * util/i386/pc/grub-setup.c: Likewise.
27158 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27160 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27162 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27163 file_get_storage_info to implement grub_guess_root_device.
27165 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27167 * Makefile.in (target): Use make's builtin $(shell) function
27168 instead of calling directly $(SHELL) to create the locale directories,
27169 inside the $(foreach) function.
27171 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27173 * util/grub-mkrescue.in: Print an error and usage if output option
27174 has not been given.
27176 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27178 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27179 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27180 root and /boot are on different devices.
27182 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27184 Fix build for srcdir != objdir.
27186 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27187 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27189 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27190 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27191 reference for input.
27193 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27195 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27196 or hardlinking it). Remove -J option, Joliet is not compatible with
27197 multiple source directories.
27199 2009-11-21 Carles Pina i Estany <carles@pina.cat>
27200 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27202 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27203 (process_input_dir): New function. Process an arbitrary input
27205 Misc adjustments to support both "override mode" and system-wide mode.
27207 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27209 * configure.ac (UNIFONT_BDF): Rename to ...
27210 (FONT_SOURCE): ... this. Update all users.
27212 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27214 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27215 to the list of unifont files to look for.
27217 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27219 Patch from Joe Auricchio <jauricchio@gmail.com>
27220 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27221 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27222 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27224 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27226 * Makefile.in (install-local): Add a missing backslash.
27228 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27230 * include/grub/x86_64/io.h: New file.
27232 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27234 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27235 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27236 Include `"progname.h"'.
27237 (main): Initialize gettext.
27238 * util/i386/pc/grub-setup.c: Gettexttize.
27239 * util/i386/pc/grub-mkimage.c: Likewise.
27241 * Makefile.in (po/*.po): Redefine as ...
27242 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27244 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27246 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27248 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27249 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27250 (program_name): Remove.
27251 (main): Initialize gettext support.
27252 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27253 Include `<libintl.h>'.
27256 * util/mkisofs/eltorito.c: Gettexttize.
27257 * util/mkisofs/joliet.c: Likewise.
27258 * util/mkisofs/mkisofs.c: Likewise.
27259 * util/mkisofs/multi.c: Likewise.
27260 * util/mkisofs/rock.c: Likewise.
27261 * util/mkisofs/tree.c: Likewise.
27262 * util/mkisofs/write.c: Likewise.
27264 * po/POTFILES: Update with new files.
27266 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27268 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27269 * util/mkisofs/iso9660.h: Likewise.
27270 * util/mkisofs/joliet.c: Likewise.
27271 * util/mkisofs/mkisofs.c: Likewise.
27272 * util/mkisofs/mkisofs.h: Likewise.
27273 * util/mkisofs/rock.c: Likewise.
27274 * util/mkisofs/tree.c: Likewise.
27275 * util/mkisofs/write.c: Likewise.
27277 * util/mkisofs/eltorito.c (rcsid): Remove.
27278 * util/mkisofs/hash.c: Likewise.
27279 * util/mkisofs/joliet.c: Likewise.
27280 * util/mkisofs/name.c: Likewise.
27281 * util/mkisofs/rock.c: Likewise.
27282 * util/mkisofs/tree.c: Likewise.
27283 * util/mkisofs/write.c: Likewise.
27285 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27287 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27288 instead of static allocation.
27289 * util/mkisofs/match.h: Likewise.
27291 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27293 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27294 and `util/grub.d/10_linux.in'.
27295 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27296 translatable Shell files.
27298 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27300 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27302 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27304 * INSTALL: Document Automake is needed for bootstrap.
27305 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27306 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27307 Add gettext initialization.
27308 (kfreebsd_entry): Make menuentry output translatable.
27310 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27312 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27313 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27314 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27315 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27316 (LINGUAS): Auto-generate using `po/LINGUAS'.
27317 * po/LINGUAS: New file.
27319 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27321 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27323 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27324 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27325 bindtextdomain() calls for gettext initialization.
27327 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27329 * gnulib/progname.c: New file (imported from Gnulib).
27330 * gnulib/progname.h: Likewise.
27331 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27332 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27333 (usage): Replace `progname' with `program_name'.
27334 (main): Use set_program_name() for program name initialization.
27336 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27338 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27340 * Makefile.in (CPPFLAGS): ... to here.
27342 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27344 * aclocal.m4: Move from here ...
27345 * acinclude.m4: ... to here.
27346 * autogen.sh: Add call to `aclocal'.
27347 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27349 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27351 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27352 (LINGUAS): New variable.
27353 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27354 (install-local): Install MO files.
27355 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27356 * include/grub/i18n.h: New file.
27357 * po/POTFILES: New file.
27358 * po/ca.po: New file.
27359 * util/grub.d/10_linux.in (bindir): New variable.
27360 Add gettext initialization.
27361 (linux_entry): Make menuentry output translatable.
27362 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27363 (usage): Make --help output translatable.
27364 (main): Initialize gettext.
27366 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27368 * import_gcry.py: New file (written by Vladimir with minor
27370 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27372 * INSTALL: Document that Python is required for bootstrap.
27374 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27376 Import ciphers from libgcrypt 1.4.4.
27378 * lib/libgcrypt/cipher/ChangeLog
27379 * lib/libgcrypt/cipher/ac.c
27380 * lib/libgcrypt/cipher/arcfour.c
27381 * lib/libgcrypt/cipher/bithelp.h
27382 * lib/libgcrypt/cipher/blowfish.c
27383 * lib/libgcrypt/cipher/camellia-glue.c
27384 * lib/libgcrypt/cipher/camellia.c
27385 * lib/libgcrypt/cipher/camellia.h
27386 * lib/libgcrypt/cipher/cast5.c
27387 * lib/libgcrypt/cipher/cipher.c
27388 * lib/libgcrypt/cipher/crc.c
27389 * lib/libgcrypt/cipher/des.c
27390 * lib/libgcrypt/cipher/dsa.c
27391 * lib/libgcrypt/cipher/ecc.c
27392 * lib/libgcrypt/cipher/elgamal.c
27393 * lib/libgcrypt/cipher/hash-common.c
27394 * lib/libgcrypt/cipher/hash-common.h
27395 * lib/libgcrypt/cipher/hmac-tests.c
27396 * lib/libgcrypt/cipher/md.c
27397 * lib/libgcrypt/cipher/md4.c
27398 * lib/libgcrypt/cipher/md5.c
27399 * lib/libgcrypt/cipher/primegen.c
27400 * lib/libgcrypt/cipher/pubkey.c
27401 * lib/libgcrypt/cipher/rfc2268.c
27402 * lib/libgcrypt/cipher/rijndael-tables.h
27403 * lib/libgcrypt/cipher/rijndael.c
27404 * lib/libgcrypt/cipher/rmd.h
27405 * lib/libgcrypt/cipher/rmd160.c
27406 * lib/libgcrypt/cipher/rsa.c
27407 * lib/libgcrypt/cipher/seed.c
27408 * lib/libgcrypt/cipher/serpent.c
27409 * lib/libgcrypt/cipher/sha1.c
27410 * lib/libgcrypt/cipher/sha256.c
27411 * lib/libgcrypt/cipher/sha512.c
27412 * lib/libgcrypt/cipher/tiger.c
27413 * lib/libgcrypt/cipher/twofish.c
27414 * lib/libgcrypt/cipher/whirlpool.c
27416 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27418 Fix build for systems without error().
27420 * gnulib/error.c: New file (imported from Gnulib).
27421 * gnulib/error.h: Likewise.
27422 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27423 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27424 (this variable is now used by error()).
27426 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27428 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27429 instead of relying that char is signed.
27431 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27433 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27434 blocksize different from specified.
27435 (grub_pxefs_read): Likewise.
27437 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27439 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27441 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27442 (grub_ata_readwrite): Likewise. Update 2 format strings.
27443 (grub_atapi_read): Likewise.
27445 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27446 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27447 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27448 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27449 (ata_mod_LDFLAGS): Move from here ...
27450 * conf/i386.rmk: ... to here ...
27451 * conf/x86_64-efi.rmk: ... and here.
27452 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27453 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27455 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27457 Relicense multiboot.h, with RMS' blessing.
27459 * include/multiboot.h: Change to X11 license.
27461 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27463 Support --version in grub-mkisofs.
27465 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27466 (OPTION_VERSION): New macro.
27467 (ld_options): Recognize --version.
27468 (usage): Move `program_name' from here ...
27469 (program_name): ... to here. Add `static' qualifier.
27470 (main): Recognize `OPTION_VERSION'.
27472 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27474 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27475 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27477 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27479 Fix help2man generation for mkisofs.
27481 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27482 (usage): Send output to stdout (rather than stderr).
27484 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27486 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27487 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27488 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27489 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27490 (bin_SCRIPTS): Add `grub-mkfloppy'.
27491 (grub_mkfloppy_SOURCES): New variable.
27493 * util/grub-mkrescue.in: New file.
27494 * util/i386/pc/grub-mkfloppy.in: New file.
27496 * util/i386/coreboot/grub-mkrescue.in: Remove.
27497 * util/i386/pc/grub-mkrescue.in: Remove.
27499 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27501 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27503 * include/multiboot.h (struct multiboot_header): ... to here. Update
27505 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27507 * include/multiboot.h (struct multiboot_info): ... to here. Update
27509 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27511 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27513 * include/grub/multiboot.h (struct grub_mod_list): Move
27515 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27518 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27520 * include/multiboot2.h (multiboot_word): Rename from this ...
27521 (multiboot2_word): ... to this. Update all users.
27522 (multiboot_header): Rename from this ...
27523 (multiboot2_header): ... to this. Update all users.
27524 (multiboot_tag_header): Rename from this ...
27525 (multiboot2_tag_header): ... to this. Update all users.
27526 (multiboot_tag_start): Rename from this ...
27527 (multiboot2_tag_start): ... to this. Update all users.
27528 (multiboot_tag_name): Rename from this ...
27529 (multiboot2_tag_name): ... to this. Update all users.
27530 (multiboot_tag_module): Rename from this ...
27531 (multiboot2_tag_module): ... to this. Update all users.
27532 (multiboot_tag_memory): Rename from this ...
27533 (multiboot2_tag_memory): ... to this. Update all users.
27534 (multiboot_tag_unused): Rename from this ...
27535 (multiboot2_tag_unused): ... to this. Update all users.
27536 (multiboot_tag_end): Rename from this ...
27537 (multiboot2_tag_end): ... to this. Update all users.
27539 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27541 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27542 this platform we should support Multiboot1 first.
27544 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27545 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27546 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27548 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27550 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27551 of write calls (converting them to fwrite() if they aren't already).
27552 (get_torito_desc): Likewise.
27553 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27555 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27557 * util/i386/pc/grub-install.in: Move from here ...
27558 * util/grub-install.in: ... to here. Update all users.
27560 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27562 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27564 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27566 Support for El Torito without floppy emulation.
27568 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27569 (init_boot_catalog): Improve error handling.
27570 (get_torito_desc): Don't use floppy emulation unless requested by
27571 user. Patch boot information table when requested via
27572 `-boot-info-table'.
27573 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27574 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27575 (use_boot_info_table): New variables.
27576 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27577 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27578 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27579 `--eltorito-emul-floppy'.
27580 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27581 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27582 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27583 (use_boot_info_table, get_731): New prototypes.
27584 * util/mkisofs/write.c (get_731): New function.
27586 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27588 Fix the generation of the man page.
27590 * util/pc/i386/grub-install.in: Source
27591 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27593 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27595 Large file support for grub-mkisofs.
27597 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27598 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27599 (session_start): Upgrade type to `uint64_t'. Update all users.
27600 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27601 (struct directory_entry): Upgrade type of `starting_block' and
27602 `size' to `uint64_t'. Update all users.
27603 (struct deferred): Remove unused structure.
27604 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27606 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27607 file is larger than `UINT32_MAX'.
27608 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27609 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27611 (struct deferred_write): Upgrade type of `extent' and `size' to
27612 `uint64_t'. Update all users.
27613 (last_extent_written): Upgrade type to `uint64_t'. Update all
27615 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27616 Update all users. Upgrade type of `remain' to `int64_t' and
27617 `use' to `size_t'. Use error() to handle fread() errors.
27618 (write_files): Rely on write_one_file() rather than calling
27619 xfwrite() directly.
27621 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27623 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27625 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27627 * util/mkisofs/fnmatch.c: Remove.
27628 * util/mkisofs/getopt1.c: Likewise.
27629 * util/mkisofs/getopt.c: Likewise.
27630 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27631 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27632 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27633 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27634 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27636 * configure.ac: Detect `mingw32msvc' host_os.
27637 Check for lstat(), getuid() and getgid().
27639 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27640 instances of `u_char' with `uint8_t'.
27642 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27643 [!HAVE_GETUID] (getuid): New function (stub).
27644 [!HAVE_GETGID] (getgid): Likewise.
27645 [!HAVE_LSTAT] (lstat): Likewise.
27646 [!S_IROTH] (S_IROTH): New macro (dummy).
27647 [!S_IRGRP] (S_IRGRP): Likewise.
27649 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27651 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27652 conditional expression).
27654 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27656 Import from Gnulib.
27658 * gnulib/fnmatch.c: New file.
27659 * gnulib/fnmatch.h: Likewise.
27660 * gnulib/fnmatch_loop.c: Likewise.
27661 * gnulib/getopt.c: Likewise.
27662 * gnulib/getopt.h: Likewise.
27663 * gnulib/getopt1.c: Likewise.
27664 * gnulib/getopt_int.h: Likewise.
27665 * gnulib/gettext.h: Likewise.
27667 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27669 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27670 * normal/handler.c (read_handler_list): Likewise.
27672 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27676 * kern/command.c (grub_register_command_prio): Use
27677 grub_zalloc() instead of explicitly zeroing data.
27678 * kern/list.c: Include `<grub/mm.h>'.
27679 (grub_named_list_find): Replace `0' with `NULL'.
27680 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27681 (fs_module_list): Change type to `grub_named_list_t'. Update all
27683 * normal/dyncmd.c (read_command_list): Add space between function
27684 call and parenthesis.
27685 * normal/handler.c (read_handler_list): Likewise.
27687 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27689 * normal/auth.c (punishment_delay): Moved from here ...
27690 (grub_auth_strcmp): ... to here (inside function).
27692 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27694 * include/grub/list.h (struct grub_named_list): Remove `const'
27695 qualifier from `name'.
27696 (struct grub_prio_list): Likewise.
27698 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27700 * normal/auth.c: Include `<grub/time.h>'.
27701 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27703 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27705 * normal/auth.c (punishment_delay): New variable.
27706 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27707 (grub_auth_check_authentication): Punish failed login attempts with
27708 an incremental (2^N) delay.
27710 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27712 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27713 path with $(srcdir).
27715 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27717 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27719 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27721 * util/i386/coreboot/grub-mkrescue.in: New file.
27722 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27725 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27726 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27727 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27729 * util/mkisofs/defaults.h: New file.
27730 * util/mkisofs/eltorito.c: Likewise.
27731 * util/mkisofs/exclude.h: Likewise.
27732 * util/mkisofs/fnmatch.c: Likewise.
27733 * util/mkisofs/getopt.c: Likewise.
27734 * util/mkisofs/getopt1.c: Likewise.
27735 * util/mkisofs/hash.c: Likewise.
27736 * util/mkisofs/include/fctldefs.h: Likewise.
27737 * util/mkisofs/include/mconfig.h: Likewise.
27738 * util/mkisofs/include/prototyp.h: Likewise.
27739 * util/mkisofs/include/statdefs.h: Likewise.
27740 * util/mkisofs/iso9660.h: Likewise.
27741 * util/mkisofs/joliet.c: Likewise.
27742 * util/mkisofs/match.c: Likewise.
27743 * util/mkisofs/match.h: Likewise.
27744 * util/mkisofs/mkisofs.c: Likewise.
27745 * util/mkisofs/mkisofs.h: Likewise.
27746 * util/mkisofs/multi.c: Likewise.
27747 * util/mkisofs/name.c: Likewise.
27748 * util/mkisofs/rock.c: Likewise.
27749 * util/mkisofs/tree.c: Likewise.
27750 * util/mkisofs/write.c: Likewise.
27752 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27754 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27757 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27759 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27760 `grub-mkimage' (and use $0 when possible).
27762 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27764 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27765 error message for excessively large memory map.
27767 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27769 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27772 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27774 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27775 message for coreboot users.
27777 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27779 Fix build with GNU gold.
27781 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27782 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27783 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27785 * aclocal.m4: Likewise.
27787 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27789 * configure.ac (AC_PREREQ): Bump to 2.59d.
27790 * INSTALL: Make it more clear when Autoconf and Ruby are
27791 needed and when to run `./autogen.sh'.
27793 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27795 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27798 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27800 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27802 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27804 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27805 giving it to GNU Mach.
27807 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27809 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27810 GNU partition number to get internal GRUB partition number.
27812 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27814 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27815 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27817 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27819 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27820 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27823 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27825 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27827 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27831 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27832 `-isystem=$(srcdir)/include'.
27834 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27836 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27837 checked (grub-install doesn't currently rely on it).
27839 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27843 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27844 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27845 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27846 * conf/i386-ieee1275.rmk: Likewise.
27847 * conf/i386-pc.rmk: Likewise.
27848 * conf/powerpc-ieee1275.rmk: Likewise.
27849 * conf/sparc64-ieee1275.rmk: Likewise.
27850 * conf/x86_64-efi.rmk: Likewise.
27852 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27854 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27856 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27858 * include/grub/misc.h: Stop checking for APPLE_CC.
27860 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27862 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27863 doesn't cause an infinite call loop.
27865 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27867 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27870 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27872 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27874 * Makefile.in: Likewise.
27876 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27878 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27880 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27882 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27884 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27886 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27888 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27890 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27892 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27894 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27896 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27897 in $(MAKEINFO) invocation. This makes it clear in output that
27898 errors are being ignored.
27900 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27902 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27904 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27905 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27906 * conf/i386-ieee1275.rmk: Likewise.
27907 * conf/i386-pc.rmk: Likewise.
27908 * conf/powerpc-ieee1275.rmk: Likewise.
27909 * conf/sparc64-ieee1275.rmk: Likewise.
27910 * conf/x86_64-efi.rmk: Likewise.
27912 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27914 * util/grub-editenv.c (main): If only a command is given, use
27915 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27916 (usage): FILENAME is now optional and has a default.
27918 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27920 Improve grub-mkconfig performance when there are several menu
27921 entries on a single filesystem.
27923 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27924 prepare_grub_to_access_device.
27925 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27926 * util/grub.d/30_os-prober.in: Likewise.
27928 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27930 * util/grub.d/10_freebsd.in: Remove.
27931 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
27932 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
27934 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27936 * docs/grub.cfg: Fix example usage of *BSD loaders.
27938 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27940 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
27941 grub_util_error() call.
27943 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27945 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
27946 `reserved_first_sector' member.
27947 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
27948 `reserved_first_sector' to 1.
27949 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
27950 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
27951 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
27952 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
27953 filesystems which begin at first sector.
27954 (options): New option --skip-fs-probe.
27955 (main): Handle --skip-fs-probe and pass it to setup().
27957 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27959 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
27960 (memset): Fix function prototype.
27962 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27963 2009-10-25 Vasily Averin <vvs@parallels.com>
27965 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
27966 `dirent.direntlen == 0'.
27968 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27970 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
27972 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
27974 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27976 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
27977 `__trampoline_setup' and `__ucmpdi2'.
27978 * include/grub/powerpc/libgcc.h: Only export symbols for functions
27979 that libgcc provides.
27981 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27983 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
27984 * include/grub/sparc64/libgcc.h (memset): Likewise.
27985 * include/grub/misc.h (memset, memcmp): New function prototypes.
27987 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27989 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
27991 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
27993 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
27995 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
27996 * docs/grub.cfg: Compensate for recent change in multiboot
27997 loader (since 2009-08-14 it won't pass filename to payload).
27998 * util/grub.d/10_hurd.in: Likewise.
28000 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
28002 * config.guess: Update to latest version from config git
28004 * config.sub: Likewise.
28006 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28008 Fix build on sparc64.
28010 * configure.ac: Perform checks for libgcc symbols before
28011 adding `-nostdlib' to LDFLAGS.
28013 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28015 Let user specify OpenBSD root device.
28017 * loader/i386/bsd.c (openbsd_root): New variable.
28018 (openbsd_opts): New option 'root'.
28019 (OPENBSD_ROOT_ARG): New macro.
28020 (grub_openbsd_boot): Use 'openbsd_root'.
28021 (grub_cmd_openbsd): Fill 'openbsd_root'.
28023 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28025 * NEWS: Misc adjustments.
28027 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28029 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28031 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28033 * configure.ac: Bump version to 1.97.
28035 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
28037 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28038 -mno-3dnow on x86 architectures. Some toolchains enable these
28039 features by default, but they rely on registers that aren't enabled
28040 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28042 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28044 Make entry text a bit more readable.
28046 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28048 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28050 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28052 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28054 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28057 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28059 * configure.ac: Add missing dollar.
28061 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28063 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28065 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28066 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28068 * include/grub/sparc64/libgcc.h: Likewise. Use
28069 preprocessor conditionals.
28071 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28073 * conf/common.rmk (grub-dumpbios): Remove rule.
28074 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28075 * util/grub-dumpbios.in: Remove file.
28077 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28079 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28080 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28082 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28083 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28086 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28087 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28088 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28089 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28092 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28094 * term/tparm.c: Switch to GPLv3.
28096 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28098 * include/grub/i386/cpuid.h: Add header protection.
28100 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28102 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28104 * include/grub/i386/cpuid.h: New file.
28105 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28106 (has_longmode): Rename to ...
28107 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28108 `static' attribute.
28109 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28110 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28111 on a CPU that doesn't implement AMD64 instruction set.
28113 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28115 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28116 that version.texi is rebuilt on version number changes.
28118 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28120 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28123 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28125 * util/i386/pc/grub-install.in: Source
28126 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28127 that the --grub-probe option will work.
28128 * util/sparc64/ieee1275/grub-install.in: Likewise.
28130 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28132 * configure.ac: Bump version to 1.97~beta4.
28134 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28136 Resync grub-mkdevicemap in x86_64-efi.
28138 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28139 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28140 `util/devicemap.c'.
28142 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
28144 * util/grub-editenv.c (create_envblk_file): Write new block with a
28145 .new suffix and then rename it into place, to ensure atomic
28148 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28150 Do not automatically install headers.
28152 * Makefile.in (include_DATA): Remove. Update all users.
28154 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28156 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28157 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28159 * util/osdetect.lua: Remove.
28160 * script/lua/lauxlib.c: Likewise.
28161 * script/lua/ldebug.c: Likewise.
28162 * script/lua/grub_main.c: Likewise.
28163 * script/lua/lauxlib.h: Likewise.
28164 * script/lua/ldebug.h: Likewise.
28165 * script/lua/ltablib.c: Likewise.
28166 * script/lua/liolib.c: Likewise.
28167 * script/lua/lstrlib.c: Likewise.
28168 * script/lua/lualib.h: Likewise.
28169 * script/lua/ldo.c: Likewise.
28170 * script/lua/ldump.c: Likewise.
28171 * script/lua/ldo.h: Likewise.
28172 * script/lua/loslib.c: Likewise.
28173 * script/lua/lundump.c: Likewise.
28174 * script/lua/grub_lib.c: Likewise.
28175 * script/lua/ldblib.c: Likewise.
28176 * script/lua/lundump.h: Likewise.
28177 * script/lua/lmem.c: Likewise.
28178 * script/lua/grub_lib.h: Likewise.
28179 * script/lua/lmathlib.c: Likewise.
28180 * script/lua/lstate.c: Likewise.
28181 * script/lua/ltm.c: Likewise.
28182 * script/lua/lvm.c: Likewise.
28183 * script/lua/lmem.h: Likewise.
28184 * script/lua/lstate.h: Likewise.
28185 * script/lua/ltm.h: Likewise.
28186 * script/lua/ltable.c: Likewise.
28187 * script/lua/lvm.h: Likewise.
28188 * script/lua/llex.c: Likewise.
28189 * script/lua/lgc.c: Likewise.
28190 * script/lua/grub_lua.h: Likewise.
28191 * script/lua/loadlib.c: Likewise.
28192 * script/lua/lfunc.c: Likewise.
28193 * script/lua/lopcodes.c: Likewise.
28194 * script/lua/lparser.c: Likewise.
28195 * script/lua/ltable.h: Likewise.
28196 * script/lua/llex.h: Likewise.
28197 * script/lua/lgc.h: Likewise.
28198 * script/lua/lfunc.h: Likewise.
28199 * script/lua/lbaselib.c: Likewise.
28200 * script/lua/lopcodes.h: Likewise.
28201 * script/lua/lparser.h: Likewise.
28202 * script/lua/lzio.c: Likewise.
28203 * script/lua/linit.c: Likewise.
28204 * script/lua/lobject.c: Likewise.
28205 * script/lua/llimits.h: Likewise.
28206 * script/lua/lstring.c: Likewise.
28207 * script/lua/lzio.h: Likewise.
28208 * script/lua/lapi.c: Likewise.
28209 * script/lua/lcode.c: Likewise.
28210 * script/lua/lua.h: Likewise.
28211 * script/lua/lobject.h: Likewise.
28212 * script/lua/lstring.h: Likewise.
28213 * script/lua/lapi.h: Likewise.
28214 * script/lua/lcode.h: Likewise.
28215 * script/lua/luaconf.h: Likewise.
28217 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
28219 * docs/grub.texi (Command-line and menu entry commands): Document
28220 date and echo commands.
28222 2009-09-24 Pavel Roskin <proski@gnu.org>
28224 * include/grub/kernel.h (struct grub_module_header): Remove
28225 `grub_module_header_types'. Make `type' unsigned. Make `size'
28226 32-bit on all platforms.
28227 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28228 8-bit field. Use grub_host_to_target32() for `size'.
28229 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28230 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28231 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28233 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28235 Fix "lost keypress" bug in at_keyboard.
28237 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28238 Checks for readyness of input buffer (without flushing it).
28239 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28240 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28242 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28244 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28245 size check within GRUB_MACHINE_PCBIOS section.
28247 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28249 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28251 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28252 KEYBOARD_ISREADY check.
28253 (grub_at_keyboard_checkkey): Rename to ...
28254 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28255 Remove gratuitous cast.
28257 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28259 * configure.ac: Call AC_PROG_MKDIR_P.
28260 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28261 version.texi in $(builddir) rather than $(srcdir).
28262 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28263 to makeinfo's @include search path.
28265 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28267 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28269 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28271 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28274 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28276 Build info documentation. Some code borrowed from Automake.
28278 * configure.ac: Check for makeinfo.
28279 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28280 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28282 (MOSTLYCLEANFILES): Add vti.tmp.
28283 (docs/version.texi, docs/stamp-vti): Update automatically.
28284 (docs/grub.info): Build info documentation. Use --force and ignore
28286 (all-local): Add $(INFOS).
28287 (install-local): Install info files.
28288 (uninstall): Uninstall info files.
28289 * docs/version.texi: Remove from revision control. This file is
28290 automatically generated on build now.
28291 * gendistlist.sh: Add `*.info'.
28293 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28295 * kern/term.c: Fix indentation.
28297 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28299 * util/hostdisk.c: Fix a comment.
28301 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28303 Fix regression introduced in r2539.
28305 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28308 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28310 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28311 os-prober. Under normal operation, it does not print anything to
28312 stderr; if it does, we need to debug it, and throwing away stderr
28313 makes that excessively difficult.
28315 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28317 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28319 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28321 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28322 AC_LANG_PROGRAM from autoconf.
28323 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28324 prototypes (fixes warning).
28326 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28327 `--disable-werror' was used.
28329 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28331 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28332 uninitialized `lastaddr'.
28334 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28336 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28338 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28340 * commands/test.c (get_fileinfo): Return immediately if
28341 grub_fs_probe fails.
28343 2009-09-14 José Martínez <xosemp@gmail.com>
28345 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28347 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28349 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28352 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28354 * configure.ac: Remove --enable-grub-pe2elf. Only build
28355 grub-pe2elf when needed by the build system itself.
28356 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28358 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28360 * configure.ac: Bump version to 1.97~beta3.
28361 * docs/version.texi: Likewise.
28363 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28365 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28366 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28368 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28369 (grub_linux_setup_video): ... to here (with some adjustments).
28371 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28373 Fix memory corruption issue (spotted by Colin Watson).
28375 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28376 causing returned size to be stored in an incorrect memory location.
28377 Fix use of uninitialized value when storing the returned size.
28379 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28381 Change clean rules to properly remove files
28383 * genmk.rb: add new clean rules
28384 * Makefile.in (clean): add the new targets
28385 (mostlyclean): likewise
28387 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28389 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28391 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28392 non-resident files.
28394 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28396 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28397 part of bug #27349.
28399 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28401 * util/grub-mkconfig.in: Make the created config mode 400 and
28402 print a warning if it fails.
28404 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28406 * util/grub.d/40_custom.in: Ask user to type custom entries below
28407 comment, rather than below 'exec tail' line.
28409 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28411 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28412 visible in grub.cfg.
28414 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28416 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28419 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28421 * docs/grub.cfg: Add an example menu entry for memtest86+.
28423 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28425 * config.guess: Update to latest version from config git.
28426 * config.sub: Likewise.
28428 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28430 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28431 unknown-command case. Fixes bug #27320.
28433 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28435 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28436 `help' if the command exists.
28438 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28440 * INSTALL: Require GCC 4.1.3 or later.
28442 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28444 * Makefile.in (RMKFILES): add i386-qemu.rmk
28445 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28446 $(srcdir)/stamp-h.in
28448 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28450 * util/grub-probe.c (probe): Comment out buggy codepath, which
28451 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28452 should be re-enabled after 1.97.
28454 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28456 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28459 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28461 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28462 unnecessary calls to grub_error.
28464 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28466 * NEWS: Mention `keystatus' and Unicode fonts.
28468 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28470 * configure.ac: Bump version to 1.97~beta2.
28471 * docs/version.texi: Likewise.
28473 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28475 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28476 containing unwind information in some cases where it previously did
28477 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28478 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28481 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28483 Embedding loadenv module into grub-emu
28485 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28487 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28488 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28489 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28490 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28491 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28492 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28494 2009-09-03 Magnus Granberg <zorry@ume.nu>
28496 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28497 include -fPIE in the default specs.
28498 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28501 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28503 * INSTALL: Note that GNU Bison 2.3 or later is required.
28505 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28507 * kern/i386/pc/startup.S: Fix typo.
28509 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28511 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28514 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28516 * docs/grub.texi (Naming convention): Describe one-based partition
28518 (Device syntax): Likewise.
28519 (File name syntax): Likewise.
28520 (Block list syntax): Likewise.
28521 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28523 (File name syntax): Likewise.
28524 (Command-line and menu entry commands): Document acpi, blocklist,
28525 crc, export, insmod, keystatus, ls, set, and unset commands.
28527 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28529 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28530 to avoid implying that only one of --shift, --ctrl, or --alt may be
28533 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28535 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28536 rather than comparing against S_IFREG, which will almost never work.
28538 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28540 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28541 (write_blocklists): Likewise.
28543 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28545 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28546 argument to grub_printf.
28548 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28550 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28553 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28555 * kern/file.c (grub_file_read): Spelling fix
28557 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28559 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28560 loading of headers in some cases.
28562 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28564 * configure.ac: Bump version to 1.97~beta1.
28565 * docs/version.texi: Likewise.
28567 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28569 * include/grub/i386/xnu.h: Add license header.
28570 include grub/err.h explicitly.
28572 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28574 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28575 to `ufs' in the vfs.root.mountfrom kernel parameter.
28577 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28579 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28581 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28582 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28584 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28585 `ARRAY_SIZE' macro.
28587 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28589 * kern/file.c (grub_file_read): Check offset.
28590 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28591 * fs/jfs.c (grub_jfs_read_file): Likewise.
28592 * fs/ntfs.c (grub_ntfs_read): Likewise.
28593 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28594 * fs/minix.c (grub_minix_read_file): Correct offset check.
28595 * fs/ufs.c (grub_ufs_read_file): Likewise.
28597 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28599 * term/i386/pc/console.c (bios_data_area): Cast
28600 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28602 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28604 1-bit optimised blitters.
28606 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28608 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28609 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28610 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28611 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28612 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28613 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28614 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28616 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28617 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28618 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28619 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28620 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28621 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28622 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28624 * video/video.c (grub_video_get_blit_format): Return
28625 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28627 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28629 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28630 the first argument to grub_printf.
28632 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28633 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28635 Add `getkeystatus' terminal method. Add a new `keystatus' command
28638 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28639 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28640 modifier key bitmasks.
28641 (struct grub_term_input): Add `getkeystatus' member.
28642 (grub_getkeystatus): Add prototype.
28643 * kern/term.c (grub_getkeystatus): New function.
28645 * include/grub/i386/pc/memory.h
28646 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28647 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28649 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28650 (grub_console_term_input): Set `getkeystatus' member.
28651 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28653 (grub_usb_keyboard_getreport): Likewise.
28654 (grub_usb_keyboard_checkkey): Likewise.
28655 (grub_usb_keyboard_getkeystatus): New function.
28656 (grub_usb_keyboard_term): Set `getkeystatus' member.
28658 * commands/keystatus.c: New file.
28659 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28660 (keystatus_mod_SOURCES): New variable.
28661 (keystatus_mod_CFLAGS): Likewise.
28662 (keystatus_mod_LDFLAGS): Likewise.
28663 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28664 commands/keystatus.c.
28665 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28666 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28667 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28668 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28669 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28670 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28672 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28674 Split befs.mod and afs.mod into *_be.mod and *.mod
28676 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28677 (grub_fstest_SOURCES): Likewise.
28678 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28679 (afs_be_mod_SOURCES): New variable.
28680 (afs_be_mod_CFLAGS): Likewise.
28681 (afs_be_mod_LDFLAGS): Likewise.
28682 (befs_be_mod_SOURCES): Likewise.
28683 (befs_be_mod_CFLAGS): Likewise.
28684 (befs_be_mod_LDFLAGS): Likewise.
28685 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28686 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28687 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28688 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28689 (grub_emu_SOURCES): Likewise.
28690 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28691 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28692 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28693 * fs/afs_be.c: New file.
28694 * fs/befs_be.c: New file.
28695 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28696 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28697 (U16): Replaced with ...
28698 (grub_afs_to_cpu16): ...this. All users updated.
28699 (U32): Replaced with ...
28700 (grub_afs_to_cpu32): ...this. All users updated.
28701 (U64): Replaced with ...
28702 (grub_afs_to_cpu64): ...this. All users updated.
28703 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28704 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28705 (grub_afs_validate_sblock): Check only one endianness.
28706 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28707 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28708 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28709 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28710 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28711 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28712 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28713 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28715 2009-08-26 Bean <bean123ch@gmail.com>
28717 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28719 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28720 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28721 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28723 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28725 NetBSD memory map support.
28727 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28728 (grub_netbsd_btinfo_mmap_header): New structure.
28729 (grub_netbsd_btinfo_mmap_entry): Likewise.
28730 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28732 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28734 Enable bsd.mod on coreboot.
28736 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28737 (bsd_mod_SOURCES): New variable.
28738 (bsd_mod_CFLAGS): Likewise.
28739 (bsd_mod_LDFLAGS): Likewise.
28740 (bsd_mod_ASFLAGS): Likewise.
28741 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28742 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28744 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28746 Cleanup NetBSD root support.
28748 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28749 grub_bsd_get_device.
28752 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28754 * util/grub.d/00_header.in: Move check for the video backend of
28755 gfxterm from here ...
28756 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28757 a suitable video backend.
28759 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28761 Fix breakage in grub-setup.
28763 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28764 "msdos_partition_map".
28766 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28768 Fix breakage in normal/auth.c.
28770 * normal/auth.c (grub_iswordseparator): New function.
28772 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28774 Authentication support.
28776 * commands/password.c: New file.
28777 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28778 (password_mod_SOURCES): New variable.
28779 (password_mod_CFLAGS): Likewise.
28780 (password_mod_LDFLAGS): Likewise.
28781 (normal_mod_SOURCES): Add normal/auth.c.
28782 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28784 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28785 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28786 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28787 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28788 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28789 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28790 * include/grub/auth.h: New file.
28791 * include/grub/err.h (grub_err_t): New enum value
28792 GRUB_ERR_ACCESS_DENIED.
28793 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28795 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28796 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28798 * normal/auth.c: New file.
28799 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28800 (grub_cmdline_run): Don't allow to go to command line without
28802 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28803 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28804 menuentry without superuser rights.
28805 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28806 user isn't a superuser.
28808 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28810 Save space by inlining misc.c functions.
28812 * kern/misc.c (grub_iswordseparator): Made static.
28813 * kern/misc.c (grub_strcat): Moved from here ...
28814 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28815 * kern/misc.c (grub_strncat): Moved from here ...
28816 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28817 * kern/misc.c (grub_strcasecmp): Moved from here ...
28818 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28819 * kern/misc.c (grub_strncasecmp): Moved from here ...
28820 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28821 * kern/misc.c (grub_isalpha): Moved from here ...
28822 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28823 * kern/misc.c (grub_isdigit): Moved from here ...
28824 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28825 * kern/misc.c (grub_isgraph): Moved from here ...
28826 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28827 * kern/misc.c (grub_tolower): Moved from here ...
28828 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28830 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28832 * script/sh/function.c (grub_script_function_find): Cut error message
28833 not to flood terminal.
28834 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28836 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28838 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28840 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28841 `report' grub_uint8_t *.
28842 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28843 Use a 50-millisecond timeout rather than just repeating
28844 grub_usb_keyboard_getreport 50 times.
28845 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28847 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28849 Rename *_partition_map to part_*
28851 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28852 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28853 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28854 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28856 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28858 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28859 * util/grub-probe.c (probe_partmap): Don't transform partition name
28860 to get module name.
28862 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28864 Fix OpenBSD and NetBSD support.
28866 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28867 memory address conflict.
28868 (OPENBSD_MMAP_ACPI): New definition.
28869 (OPENBSD_MMAP_NVS): Likewise.
28870 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28871 and OPENBSD_MMAP_NVS.
28872 Add memory map terminator
28873 Explicit cast when calling grub_unix_real_boot.
28874 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28876 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28878 Let user specify NetBSD root device.
28880 * loader/i386/bsd.c (netbsd_root): New variable.
28881 (netbsd_opts): New option 'root'.
28882 (NETBSD_ROOT_ARG): New macro.
28883 (grub_netbsd_boot): Use 'netbsd_root'.
28884 (grub_bsd_unload): Free 'netbsd_root'.
28885 (grub_cmd_netbsd): Fill 'netbsd_root'.
28887 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28889 Support for 64-bit NetBSD.
28891 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28892 point when booting non-FreeBSD.
28894 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28896 Support --no-smp and --no-acpi for NetBSD.
28898 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28899 (NETBSD_AB_NOACPI): Likewise.
28900 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28901 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28903 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28905 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28907 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28908 errors. Call grub_error when needed.
28910 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28912 * commands/search.c (search_fs): Try searching without autoload first.
28913 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28914 filesystem module explicitly for faster booting.
28916 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28918 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28920 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28922 * util/grub.d/30_os-prober.in: Disable os-prober if
28923 `GRUB_DISABLE_OS_PROBER' was set to true.
28925 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28927 * partmap/pc.c: Rename to ...
28928 * partmap/msdos.c: ... this. Update all users.
28929 (grub_pc_partition_map): Rename to ...
28930 (grub_msdos_partition_map): ... this. Update all users.
28932 * parttool/pcpart.c: Rename to ...
28933 * parttool/msdospart.c: ... this. Update all users.
28935 * include/grub/pc_partition.h: Rename to ...
28936 * include/grub/msdos_partition.h: ... this. Update all users.
28937 (grub_pc_partition_bsd_entry): Rename to ...
28938 (grub_msdos_partition_bsd_entry): ... this. Update all users.
28939 (grub_pc_partition_disk_label): Rename to ...
28940 (grub_msdos_partition_disk_label): ... this. Update all users.
28941 (grub_pc_partition_entry): Rename to ...
28942 (grub_msdos_partition_entry): ... this. Update all users.
28943 (grub_pc_partition_mbr): Rename to ...
28944 (grub_msdos_partition_mbr): ... this. Update all users.
28945 (grub_pc_partition): Rename to ...
28946 (grub_msdos_partition): ... this. Update all users.
28947 (grub_pc_partition_is_empty): Rename to ...
28948 (grub_msdos_partition_is_empty): ... this. Update all users.
28949 (grub_pc_partition_is_extended): Rename to ...
28950 (grub_msdos_partition_is_extended): ... this. Update all users.
28951 (grub_pc_partition_is_bsd): Rename to ...
28952 (grub_msdos_partition_is_bsd): ... this. Update all users.
28954 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
28955 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
28956 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
28957 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
28958 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
28959 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
28960 (gpt_mod_LDFLAGS): Rename to ...
28961 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
28962 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
28963 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
28964 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
28965 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
28966 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
28967 (part_gpt_mod_LDFLAGS): ... this.
28968 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
28969 `pcpart.mod' to `msdospart.mod'.
28970 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
28972 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
28973 (msdospart_mod_LDFLAGS): ... this.
28975 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28977 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
28978 (openbsd_opts): Likewise.
28979 (netbsd_opts): Likewise.
28980 (freebsd_flags): Added 0 terminator.
28981 (openbsd_flags): Likewise.
28982 (netbsd_flags): Likewise.
28983 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
28984 (grub_cmd_freebsd): Transformed into extended command.
28985 (grub_cmd_openbsd): Likewise.
28986 (grub_cmd_netbsd): Likewise.
28987 (cmd_freebsd): Changed type to grub_extcmd_t.
28988 (cmd_openbsd): Likewise.
28989 (cmd_netbsd): Likewise.
28990 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
28991 grub_cmd_openbsd as extended commands.
28992 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
28993 cmd_netbsd and cmd_openbsd
28995 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
28997 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
28999 2009-08-21 Pavel Roskin <proski@gnu.org>
29001 * Makefile.in (install-local): When checking if a file is in the
29002 build directory, use "test -e" to detect symlinks.
29004 * Makefile.in (install-local): Remove all files in
29005 $(DESTDIR)$(pkglibdir) before installing new files there.
29007 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29009 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29012 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29014 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29015 explicitly specified by the user.
29017 2009-08-18 Pavel Roskin <proski@gnu.org>
29019 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29020 grub_uint8_t pointer for data.
29021 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29023 * video/fb/fbutil.c: Remove unnecessary casts.
29025 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29029 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29030 (grub_vbe_set_video_mode): Save active mode info
29031 only after setting the mode.
29032 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29035 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29037 Rename variables for clarity.
29039 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29040 (active_vbe_mode_info): ... this. All users updated.
29041 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29043 (initial_mode): Rename to ...
29044 (initial_vbe_mode): ... this. All users updated.
29045 (mode_in_use): Rename to ..
29046 (vbe_mode_in_use): ... this. All users updated.
29047 (mode_list): Rename to ..
29048 (vbe_mode_list): ... this. All users updated.
29049 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29050 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29051 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29052 'mode_list_size' to 'vbe_mode_list_size'.
29053 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29054 'best_mode_info' to 'best_vbe_mode_info' and
29055 'best_mode' to 'best_vbe_mode'
29057 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29059 Remove duplicate grub_video_fb_get_video_ptr.
29061 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29062 (grub_video_fb_get_video_ptr): ... this.
29063 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29064 * video/fb/fbutil.c: Add comment about addressing.
29065 (get_data_ptr): Rename to ...
29066 (grub_video_fb_get_video_ptr): ... this. All users updated.
29067 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29069 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29071 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29072 grub_dprintf() that was just added.
29074 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29076 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29077 (DEFAULT_VIDEO_MODE): Remove macros.
29078 (grub_linux_boot): Remove assumption that Linux has FB support,
29079 and use "text" as default video mode.
29081 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29083 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29085 * fs/fat.c (grub_fat_read_data): Likewise.
29087 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29089 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29091 (grub_module): Likewise.
29093 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29095 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29096 mbi->cmdline but free playground.
29098 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29100 Handle group offset on UFS1.
29102 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29103 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29105 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29107 Split ufs.mod into ufs1.mod and ufs2.mod.
29109 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29110 (grub_fstest_SOURCES): Likewise.
29111 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29112 (ufs_mod_SOURCES): Remove.
29113 (ufs_mod_CFLAGS): Likewise.
29114 (ufs_mod_LDFLAGS): Likewise.
29115 (ufs1_mod_SOURCES): New variable.
29116 (ufs1_mod_CFLAGS): Likewise.
29117 (ufs1_mod_LDFLAGS): Likewise.
29118 (ufs2_mod_SOURCES): New variable.
29119 (ufs2_mod_CFLAGS): Likewise.
29120 (ufs2_mod_LDFLAGS): Likewise.
29121 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29122 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29124 (grub_emu_SOURCES): Likewise.
29125 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29126 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29127 (grub_setup_SOURCES): Likewise.
29128 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29129 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29130 (grub_setup_SOURCES): Likewise.
29131 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29133 * fs/ufs2.c: New file.
29134 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29136 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29140 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29141 subsystem at the end.
29142 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29143 (video_fb_mod_SOURCES): New variable.
29144 (video_fb_mod_CFLAGS): Likewise.
29145 (video_fb_mod_LDFLAGS): Likewise.
29146 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29147 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29148 * video/i386/pc/vbeblit.c: Moved from here ...
29149 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29150 * video/i386/pc/vbefill.c: Moved from here ...
29151 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29152 * video/i386/pc/vbeutil.c: Moved from here ...
29153 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29154 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29155 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29156 * include/grub/i386/pc/vbefill.h: Moved from here ...
29157 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29158 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29159 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29160 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29161 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29162 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29163 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29164 (grub_video_adapter): Added 'get_info_and_fini'.
29165 (grub_video_get_info_and_fini): New prototype.
29166 (grub_video_set_mode): make modestring const char *.
29167 * loader/i386/linux.c (grub_linux_setup_video): Use
29168 grub_video_get_info_and_fini.
29169 (grub_linux_boot): Move modesetting just before booting.
29170 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29171 grub_video_get_info_and_fini.
29172 * video/i386/pc/vbe.c: Moved framebuffer part ...
29173 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29174 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29175 grub_video_fbstd_colors and grub_video_fb_set_palette.
29176 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29177 grub_video_fb_init.
29178 (grub_video_vbe_fini): Use grub_video_fb_fini.
29179 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29180 render_target and use grub_video_fb_set_active_render_target and
29181 grub_video_fb_set_palette.
29182 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29183 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29184 (grub_video_vbe_adapter): Use framebuffer.
29185 * video/video.c (grub_video_get_info_and_fini): New function.
29186 (grub_video_set_mode): Make modestring const char *.
29187 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29188 values are already initialised.
29190 2009-08-14 Pavel Roskin <proski@gnu.org>
29192 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29194 * boot/i386/pc/diskboot.S: Likewise.
29195 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29196 sectors allow compilation on MacOSX.
29197 * conf/i386-pc.rmk: Enable unconditional compilation of
29200 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
29202 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29203 * util/grub.d/00_header.in: Enter interruptible sleep if
29204 GRUB_HIDDEN_TIMEOUT is set.
29206 2009-08-13 Yves Blusseau <blusseau@zetam.org>
29208 * include/grub/symbol.h: Add the LOCAL macro.
29209 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29210 starting with "L_".
29212 2009-08-13 Pavel Roskin <proski@gnu.org>
29214 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29215 any modern compilers we support.
29217 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29218 Use local labels starting with "L_" so that Apple assembler
29219 knows they are local.
29221 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29223 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29224 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29225 (bsd_kernel_types): ... this enum.
29227 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29228 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29229 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29231 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29232 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29233 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29236 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29238 * util/grub-dumpdevtree: Moved from here ...
29239 * util/i386/efi/grub-dumpdevtree: ... to here.
29240 (hexify): New function. Converts a string to its hex version.
29241 Generate hex versions of "efi" and "device-properties" by calling
29242 hexify() on the ASCII strings rather than by hardcoding numbers.
29244 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29246 * fs/jfs.c: Update copyright year.
29248 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29250 * util/grub.d/00_header.in: Fix a comment.
29251 * util/grub.d/10_linux.in: Likewise.
29252 * util/grub.d/10_windows.in: Likewise.
29253 * util/grub.d/10_hurd.in: Likewise.
29255 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29257 * util/grub-mkconfig.in: Allow the user to specify the used font
29260 2009-08-08 Pavel Roskin <proski@gnu.org>
29262 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29263 available, xfs.mod needs it now.
29265 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29266 the "g" modifier in sed when the intention is to strip something
29267 once. This fixes comparison of kernels with multiple dashes.
29269 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29270 on it. Add missing space before closing bracket. Fix
29271 misleading formatting.
29273 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29275 * docs/grub.texi: Major overhaul. Remove all sections that are
29276 specific to GRUB Legacy, or mostly composed of Legacy-specific
29279 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29281 * docs/version.texi: New file. Provides version information for
29284 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29286 * docs/grub.texi: Update CVS information to SVN.
29287 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29289 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29291 * util/grub-mkconfig.in: Remove a wrong `fi'.
29293 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29295 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29296 (grub_jfs_uuid): New function.
29297 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29299 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29301 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29303 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29304 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29306 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29308 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29309 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29312 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29313 not just "vmlinu[zx]".
29314 Moved from here ...
29315 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29318 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29319 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29322 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29324 * util/grub.d/10_freebsd.in: Use an absolute device path for
29325 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29327 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29329 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29330 handling of multiple abstraction modules.
29332 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29334 Fix a bug resulting in black screen when loading Linux using a
29337 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29340 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29341 (grub_vbe_bios_getset_dac_palette_width): New function.
29342 (grub_vbe_bios_get_dac_palette_width)
29343 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29344 grub_vbe_bios_getset_dac_palette_width()).
29346 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29347 check for return status.
29348 (grub_vbe_get_video_mode_info): When getting information for a packed
29349 mode (<= 8 bpp), obtain DAC palette width using
29350 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29351 {red,green,blue}_mark_size.
29353 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29355 * commands/search.c (options): Fix help output to match actual code.
29357 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29359 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29362 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29364 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29365 on XFS or ReiserFS.
29367 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29369 Support Apple partition map with sector size different from 512 bytes.
29371 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29372 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29373 and 'apart.partmap_size'.
29375 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29376 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29380 * commands/i386/cpuid.c (options): New variable.
29381 (grub_cmd_cpuid): Return real error.
29382 (GRUB_MOD_INIT(cpuid)): Declare options.
29384 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29386 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29389 2009-07-31 Bean <bean123ch@gmail.com>
29391 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29393 (grub_fshelp_node): Move inode field to the end.
29394 (grub_xfs_data): Remove inode field.
29395 (grub_xfs_inode_block): Calculate inode size using sblock.
29396 (grub_xfs_inode_offset): Likewise.
29397 (grub_xfs_read_inode): Calculate inode size using sblock.
29398 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29399 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29400 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29401 to match inode size.
29402 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29403 not accessible when data is null.
29404 (grub_xfs_open): Likewise.
29406 2009-07-31 Bean <bean123ch@gmail.com>
29408 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29409 Don't change pv->disk if it's already set.
29411 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29412 (grub_raid_register): ... here.
29413 (grub_raid_rescan): Removed.
29415 * include/grub/raid.h (grub_raid_rescan): Removed.
29417 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29418 (fstest): Replace grub_raid_rescan with module fini function followed
29421 * util/grub-probe.c: Add include file <grub/raid.h>.
29422 (probe_raid_level): New function.
29423 (probe): Detect abstraction by walking the disk device, support two
29424 level of abstraction (LVM on RAID) when detecting partition map.
29426 2009-07-31 Pavel Roskin <proski@gnu.org>
29428 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29429 to grub_zalloc(), it was erroneous.
29430 Reported by Bean <bean123ch@gmail.com>
29432 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29434 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29435 embedding zone, not only the first one.
29437 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29439 * term/gfxterm.c (clear_char): New function.
29440 (grub_virtual_screen_setup): Use clear_char.
29441 (scroll_up): Likewise.
29442 (grub_virtual_screen_cls): Likewise.
29444 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29446 * util/deviceiter.c (get_acceleraid_disk_name): New static
29448 (grub_util_iterate_devices): Handle Accelraid devices.
29449 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29451 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29453 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29454 separator for the suggested gfxpayload string (';' collides with the
29455 parser and needs escaping).
29457 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29459 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29460 Clear direction flag before jumping to OS.
29461 (grub_multiboot2_real_boot): Likewise.
29463 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29465 * util/i386/pc/grub-install: Fix parsing of --disk-module
29468 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29470 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29473 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29475 * util/grub-mkconfig.in (package_version): New variable.
29476 Use it do display the version.
29478 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29480 * kern/file.c (grub_file_open): Revert to previous check with
29483 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29485 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29486 from help line. It's out of sync with code.
29488 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29490 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29491 entries on failed boot.
29493 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29495 * kern/file.c (grub_file_open): Fix an error check.
29497 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29499 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29500 partition map couldn't be identified.
29502 2009-07-23 Pavel Roskin <proski@gnu.org>
29504 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29505 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29506 case of little endian words becomes just an optimization.
29507 Respect const modifier.
29508 (md5_final): Use code that doesn't depend on endianness.
29510 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29511 to avoid loss of upper bits if align is unsigned and shorter
29514 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29516 UUID support for UFS
29518 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29519 (grub_ufs_uuid): New function.
29520 (grub_ufs_fs): add .uuid
29522 2009-07-21 Pavel Roskin <proski@gnu.org>
29524 * kern/dl.c (grub_dl_check_header): Make static.
29526 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29528 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29529 add drivemap for Vista. It breaks Windows 7.
29531 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29533 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29536 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29540 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29541 (grub_fstest_SOURCES): Likewise.
29542 (pkglib_MODULES): Add befs.mod.
29543 (befs_mod_SOURCES): New variable.
29544 (befs_mod_CFLAGS): Likewise.
29545 (befs_mod_LDFLAGS): Likewise.
29546 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29547 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29548 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29549 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29550 (grub_setup_SOURCES): Likewise.
29551 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29552 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29553 (grub_setup_SOURCES): Likewise.
29554 * fs/befs.c: New file.
29555 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29556 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29557 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29558 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29559 (B_KEY_INDEX_ALIGN): New declaration.
29560 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29561 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29562 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29563 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29564 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29565 (grub_afs_mount) [MODE_BFS]: Likewise.
29566 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29567 (grub_afs_fs): Use GRUB_AFS_FSNAME
29568 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29569 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29570 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29571 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29573 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29575 * util/getroot.c (find_root_device): Add support for MacOSX.
29576 * util/hostdisk.c: Likewise.
29578 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29580 * font/font.c (find_glyph): Check whether a font is present to avoid
29581 segmentation fault.
29583 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29585 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29587 2009-07-20 Pavel Roskin <proski@gnu.org>
29589 * configure.ac: Trim excessively wordy excuses.
29591 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29593 Add symlink, mtime and label support to AtheFS.
29595 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29596 (grub_afs_iterate_dir): Handle symlinks.
29597 (grub_afs_open): Use grub_afs_read_symlink.
29598 (grub_afs_dir): Likewise.
29600 (grub_afs_label): New function.
29601 (grub_afs_fs): Add grub_afs_label.
29602 (grub_afs_read_symlink): New function.
29604 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29606 Fix AtheFS support.
29608 * fs/afs.c: Fix comments style.
29609 (grub_afs_blockrun): Declare as packed.
29610 (grub_afs_datastream): Likewise.
29611 (grub_afs_bnode): Likewise.
29612 (grub_afs_btree): Likewise.
29613 (grub_afs_sblock): Likewise.
29614 Declare `name' as char.
29615 (grub_afs_inode): Declare as packed.
29616 Change void *vnode to grub_uint32_t unused.
29617 (grub_afs_iterate_dir): Check that key_size is positive.
29618 (grub_afs_mount): Don't read superblock twice.
29619 (grub_afs_dir): Don't free node in case of error,
29620 grub_fshelp_find_file already handles this.
29621 (grub_afs_open): Likewise.
29623 2009-07-19 Pavel Roskin <proski@gnu.org>
29625 * Makefile.in: Remove LIBLZO and enable_lzo.
29626 * conf/i386-pc.rmk: Remove lzo support.
29627 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29628 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29630 * kern/i386/pc/lzo1x.S: Remove.
29631 * kern/i386/pc/startup.S: Remove lzo support.
29632 * util/i386/pc/grub-mkimage.c: Likewise.
29634 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29636 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29637 * fs/xfs.c (grub_xfs_dir): Likewise.
29638 * fs/afs.c (grub_afs_dir): Likewise.
29639 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29640 (grub_iso9660_open): Likewise.
29641 * fs/jfs.c (grub_jfs_open): Likewise.
29642 * fs/ext2.c (grub_ext2_dir): Likewise.
29643 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29644 * script/sh/lexer.c (grub_script_yylex): Likewise.
29646 2009-07-16 Pavel Roskin <proski@gnu.org>
29648 * configure.ac: Never add "-c" to CFLAGS.
29650 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29652 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29653 grub_cv_cc_efiemu should be used.
29655 * configure.ac: Typo fixes.
29657 * kern/mm.c (grub_zalloc): New function.
29658 (grub_debug_zalloc): Likewise.
29659 * include/grub/mm.h: Declare grub_zalloc() and
29660 grub_debug_zalloc().
29661 * util/misc.c (grub_zalloc): New function.
29662 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29663 instead of grub_malloc(), remove unneeded initializations.
29664 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29665 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29666 * commands/parttool.c (grub_cmd_parttool): Likewise.
29667 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29668 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29669 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29670 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29671 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29672 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29673 (grub_cmd_efiemu_pnvram): Likewise.
29674 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29675 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29676 (grub_iso9660_iterate_dir): Likewise.
29677 * fs/jfs.c (grub_jfs_opendir): Likewise.
29678 * fs/ntfs.c (list_file): Likewise.
29679 (grub_ntfs_mount): Likewise.
29680 * kern/disk.c (grub_disk_open): Likewise.
29681 * kern/dl.c (grub_dl_load_core): Likewise.
29682 * kern/elf.c (grub_elf_file): Likewise.
29683 * kern/env.c (grub_env_context_open): Likewise.
29684 (grub_env_set): Likewise.
29685 (grub_env_set_data_slot): Likewise.
29686 * kern/file.c (grub_file_open): Likewise.
29687 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29688 * loader/i386/multiboot.c (grub_module): Likewise.
29689 * loader/xnu.c (grub_xnu_create_key): Likewise.
29690 (grub_xnu_create_value): Likewise.
29691 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29692 (read_config_file): Likewise.
29693 * normal/menu_entry.c (make_screen): Likewise.
29694 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29695 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29696 * script/sh/script.c (grub_script_parse): Likewise.
29697 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29698 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29699 * video/readers/png.c (grub_png_output_byte): Likewise.
29700 (grub_video_reader_png): Likewise.
29702 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29704 Enable all targets that can be built by default
29706 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29707 grub-mkfont and grub-fstest if they can be built
29709 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29711 Fix hang and segmentation fault in grub-emu-usb
29713 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29714 * util/usb.c (grub_libusb_devices): likewise
29715 (grub_libusb_init): rename to ...
29716 (GRUB_MOD_INIT (libusb)):...this
29717 (grub_libusb_fini): rename to ..
29718 (GRUB_MOD_FINI (libusb)):...this
29719 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29720 * include/grub/disk.h (grub_raid_init): removed, it's useless
29721 (grub_raid_fini): likewise
29722 (grub_lvm_init): likewise
29723 (grub_lvm_fini): likewise
29724 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29727 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29731 * Makefile.in (LIBUSB): new macro
29732 * genmk.rb (Utility/print_tail): new method
29733 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29734 (top level): call util.print_tail at the end.
29736 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29738 Make FreeBSD accept zpool.cache
29740 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29741 type is /boot/zfs/zpool.cache
29743 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29747 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29748 correct wrong typedef
29749 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29751 2009-07-15 Pavel Roskin <proski@gnu.org>
29753 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29754 * kern/disk.c (struct grub_disk_cache): Likewise.
29756 * commands/probe.c (options): Typo fix.
29758 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29759 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29761 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29763 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29764 the end of "Error" to make the message more readable.
29766 * boot/i386/pc/boot.S (kernel_segment): Remove.
29767 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29770 * boot/i386/pc/boot.S (boot_version): Remove.
29771 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29774 * include/grub/i386/pc/boot.h: Sort all offsets.
29775 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29776 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29777 * boot/i386/pc/boot.S: Assert location of every offset listed in
29778 include/grub/i386/pc/boot.h.
29780 2009-07-13 Pavel Roskin <proski@gnu.org>
29782 * include/grub/i386/coreboot/machine.h: Rename
29783 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29784 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29785 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29787 * kern/dl.c: Force native word size to suppress warnings when
29788 compiling grub-emu.
29790 * kern/device.c (grub_device_iterate): Change struct part_ent to
29791 hold the name, not a pointer to it. Use one grub_malloc() per
29792 partition, not two. Free partition_name if grub_malloc() fails.
29793 Set ents to NULL only before grub_partition_iterate() is called.
29795 2009-07-11 Bean <bean123ch@gmail.com>
29797 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29800 2009-07-10 Bean <bean123ch@gmail.com>
29801 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29803 * kern/ieee1275/openfw.c (grub_children_iterate)
29804 (grub_devalias_iterate): Fix size evaluation for property or path
29805 strings, which was broken since r2132.
29807 2009-07-07 Pavel Roskin <proski@gnu.org>
29809 * commands/search.c (search_file): Merge into ...
29810 (search_fs): ... this. Accept search type as argument.
29811 (grub_cmd_search): Pass search type to search_fs().
29813 * include/grub/util/console.h: New file.
29814 * util/console.c: Use it instead of grub/machine/console.h.
29815 * util/grub-emu.c: Likewise.
29817 * lib/arg.c (find_long_option): Remove.
29818 (find_long): Add `len' argument, make `s' const char *.
29819 (grub_arg_parse): Parse long options in place, not in a
29822 2009-07-06 Pavel Roskin <proski@gnu.org>
29824 * commands/search.c (search_fs): Fix potential NULL pointer
29827 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29830 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29832 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29835 2009-07-05 Pavel Roskin <proski@gnu.org>
29837 * include/grub/i386/linux.h (struct linux_kernel_params):
29838 Restore padding3, it's still needed.
29840 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29842 * util/osdetect.lua: Likewise.
29844 2009-07-05 Bean <bean123ch@gmail.com>
29846 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29848 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29849 (grub_lua_getenv): Likewise.
29850 (grub_lua_setenv): Likewise.
29851 (save_errno): New function.
29852 (push_result): Likewise.
29853 (grub_lua_enum_device): Likewise.
29854 (grub_lua_enum_file): Likewise.
29855 (grub_lua_file_open): Likewise.
29856 (grub_lua_file_close): Likewise.
29857 (grub_lua_file_seek): Likewise.
29858 (grub_lua_file_read): Likewise.
29859 (grub_lua_file_getline): Likewise.
29860 (grub_lua_file_getsize): Likewise.
29861 (grub_lua_file_getpos): Likewise.
29862 (grub_lua_file_eof): Likewise.
29863 (grub_lua_file_exist): Likewise.
29864 (grub_lua_add_menu): Likewise.
29866 * script/lua/grub_lua.h (isupper): New inline function.
29867 (islower): Likewise.
29868 (ispunct): Likewise.
29869 (isxdigit): Likewise.
29870 (strcspn): Change to normal function.
29871 (strpbkr): New function declaration.
29872 (memchr): Likewise.
29874 * script/lua/grub_main.c (scan_str): New function.
29875 (strcspn): Likewise.
29876 (strpbrk): Likewise.
29877 (memchr): Likewise.
29879 * script/lua/linit.c (lualibs): Enable the string library.
29881 * util/osdetect.lua: New file.
29883 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29885 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29886 `capabilities' member.
29888 2009-07-02 Pavel Roskin <proski@gnu.org>
29890 * genparttoollist.sh: Add missing newline at the end.
29892 2009-07-01 Pavel Roskin <proski@gnu.org>
29894 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29896 * util/hostdisk.c (open_device): Remove `const' from
29897 `sysctl_size', as sysctlbyname() can change it (in this case it
29898 doesn't actually happen).
29900 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29901 using signed long int constants.
29903 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29904 constant to avoid a warning on FreeBSD.
29906 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29909 * Makefile.in: Install include/grub/machine symlink.
29911 * Makefile.in: When installing symlinks, use "cp -fR", which
29912 works on FreeBSD and MacOSX.
29913 From Yves Blusseau <cl7m42e02@sneakemail.com>
29915 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29916 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29918 * util/misc.c: Move grub_reboot() and grub_halt() ...
29919 * util/grub-emu.c: ... here. Make main_env static.
29920 * include/grub/util/misc.h: Remove main_env.
29922 * kern/mm.c: Use correct format to print size_t.
29924 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29925 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29926 * kern/powerpc/dl.c: Likewise.
29927 * kern/sparc64/dl.c: Likewise.
29928 * kern/x86_64/dl.c: Likewise.
29930 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29932 Fix grub-emu build on sparc64-ieee1275.
29934 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
29935 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
29937 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29939 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
29940 (grub_reboot, grub_halt): New functions.
29942 * util/i386/pc/misc.c: Delete. Update all users.
29943 * util/sparc64/ieee1275/misc.c: Likewise.
29944 * util/powerpc/ieee1275/misc.c: Likewise.
29946 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29948 * conf/i386.rmk (setjmp_mod_SOURCES)
29949 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
29950 * conf/common.rmk (setjmp_mod_SOURCES)
29951 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
29952 to use $(target_cpu).
29953 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
29954 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
29955 * conf/powerpc-ieee1275.rmk: Likewise.
29956 * conf/sparc64-ieee1275.rmk: Likewise.
29958 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
29959 $(target_cpu) for kern/$(target_cpu)/dl.c.
29960 * conf/i386-efi.rmk: Likewise.
29961 * conf/i386-ieee1275.rmk: Likewise.
29962 * conf/x86_64-efi.rmk: Likewise.
29963 * conf/i386-coreboot.rmk: Likewise.
29964 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
29965 $(target_cpu) for kern/$(target_cpu)/dl.c and for
29966 kern/$(target_cpu)/cache.S.
29967 * conf/sparc64-ieee1275.rmk: Likewise.
29969 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
29971 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
29972 type to `grub_uint8_t', and adjust `padding9' accordingly.
29974 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29976 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
29978 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
29979 assembly in final jump, using register constraints.
29981 (grub_linux_boot): For text mode, initialize `have_vga' using
29982 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
29984 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
29985 right before the final jump.
29987 Set `video_mode' to 0x3.
29989 Document initialization of `video_page', `video_mode' and
29992 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
29994 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
29995 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
29996 and set GRUB_LINUX_FLAG_QUIET appropriately.
29998 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30000 Fix build on Debian / sparc.
30002 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30004 2009-06-28 Pavel Roskin <proski@gnu.org>
30006 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30009 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30011 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30013 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30016 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30020 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30021 file can't be opened. grub_file_open() is already supposed to set
30022 grub_errno / grub_errmsg appropriately.
30023 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30025 2009-06-27 Pavel Roskin <proski@gnu.org>
30026 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30028 * include/grub/dl.h: Include grub/elf.h.
30029 (struct grub_dl): Add symtab field.
30030 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30031 GRUB_MODULES_MACHINE_READONLY.
30032 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30033 of the header for read-only modules.
30034 (grub_dl_unload): Free mod->symtab for read-only modules.
30035 * kern/i386/dl.c: Use mod->symtab.
30036 * kern/powerpc/dl.c: Likewise.
30037 * kern/sparc64/dl.c: Likewise.
30038 * kern/x86_64/dl.c: Likewise.
30040 * conf/i386-qemu.rmk: New file.
30041 * kern/i386/qemu/startup.S: Likewise.
30042 * kern/i386/qemu/mmap.c: Likewise.
30043 * boot/i386/qemu/boot.S: Likewise.
30044 * include/grub/i386/qemu/time.h: Likewise.
30045 * include/grub/i386/qemu/serial.h: Likewise.
30046 * include/grub/i386/qemu/kernel.h: Likewise.
30047 * include/grub/i386/qemu/console.h: Likewise.
30048 * include/grub/i386/qemu/boot.h: Likewise.
30049 * include/grub/i386/qemu/init.h: Likewise.
30050 * include/grub/i386/qemu/machine.h: Likewise.
30051 * include/grub/i386/qemu/loader.h: Likewise.
30052 * include/grub/i386/qemu/memory.h: Likewise.
30054 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30055 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30056 [qemu] (pkglib_IMAGES): Add `boot.img'.
30057 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30058 [qemu] (boot_img_FORMAT): New variables.
30059 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30060 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30061 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30062 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30063 [qemu] (kernel_img_FORMAT): New variables.
30065 * configure.ac: Recognise `i386-qemu'.
30067 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30068 (for no compression).
30069 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30070 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30071 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30072 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30075 2009-06-27 Pavel Roskin <proski@gnu.org>
30077 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30079 * efiemu/prepare32.c: Likewise.
30080 * efiemu/prepare64.c: Likewise.
30082 2009-06-26 Pavel Roskin <proski@gnu.org>
30084 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30085 * include/grub/elf.h: Define symbols without "32" or "64" based
30086 on GRUB_TARGET_WORDSIZE.
30087 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30088 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30090 * efiemu/loadcore64.c: Likewise.
30091 * loader/i386/bsd32.c: Likewise.
30092 * loader/i386/bsd64.c: Likewise.
30093 * kern/dl.c: Remove own ELF definitions.
30094 * util/i386/efi/grub-mkimage.c: Likewise.
30096 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30098 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30099 segment 0x0 unconditionally, because the reference generated by
30100 GAS is an absolute address.
30102 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30104 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30105 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30107 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30109 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30110 indexes. Check for -f explicitly.
30111 (search_file): Improve error message.
30112 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
30114 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30116 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30117 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30119 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30121 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30122 * conf/i386-ieee1275.rmk: Likewise.
30123 * conf/i386-coreboot.rmk: Likewise.
30125 * kern/i386/pc/startup.S (grub_stop): Remove function.
30126 * kern/i386/ieee1275/startup.S: Likewise.
30127 * kern/i386/coreboot/startup.S: Likewise.
30128 * kern/i386/misc.S (grub_stop): New function.
30130 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30132 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30133 * kern/i386/realmode.S (real_to_prot): ... to here.
30135 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30137 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30139 (kernel_elf_SOURCES): Rename to ...
30140 (kernel_img_SOURCES): ... this.
30141 (kernel_elf_HEADERS): Rename to ...
30142 (kernel_img_HEADERS): ... this. Update all users.
30143 (kernel_elf_ASFLAGS): Rename to ...
30144 (kernel_img_ASFLAGS): ... this.
30145 (kernel_elf_CFLAGS): Rename to ...
30146 (kernel_img_CFLAGS): ... this.
30147 (kernel_elf_LDFLAGS): Rename to ...
30148 (kernel_img_LDFLAGS): ... this.
30149 * conf/i386-coreboot.rmk: Likewise.
30150 * conf/powerpc-ieee1275.rmk: Likewise.
30152 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30155 2009-06-21 Pavel Roskin <proski@gnu.org>
30157 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30158 to match nested functions.
30159 * loader/sparc64/ieee1275/linux.c: Likewise.
30161 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30163 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30165 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30166 all i386 platforms.
30168 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30170 Fix asm file handling on ELF, and remove workarounds.
30172 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
30173 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
30174 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30175 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30177 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30179 Load BSD ELF modules
30181 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30182 and loader/i386/bsd64.c
30183 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30184 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30185 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30186 (grub_freebsd_load_elfmodule32): New declaration
30187 (grub_freebsd_load_elfmoduleobj64): Likewise
30188 (grub_freebsd_load_elf_meta32): Likewise
30189 (grub_freebsd_load_elf_meta64): Likewise
30190 (grub_freebsd_add_meta): Likewise
30191 (grub_freebsd_add_meta_module): Likewise
30192 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30193 (grub_freebsd_add_meta_module): Likewise and move module-specific
30194 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30195 (grub_cmd_freebsd): Add elf-kernel specific parts
30196 based on grub_freebsd_add_meta_module
30197 (grub_cmd_freebsd_module): Add type parsing moved from
30198 grub_freebsd_add_meta_module
30199 (grub_cmd_freebsd_module_elf): New function
30200 (cmd_freebsd_module_elf): New variable
30201 (GRUB_MOD_INIT): Register freebsd_module_elf
30202 * loader/i386/bsd32.c: New file
30203 * loader/i386/bsd64.c: Likewise
30204 * loader/i386/bsdXX.c: Likewise
30205 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30206 (grub_elf64_load): Likewise
30207 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30209 (grub_elf64_load_hook_t): Likewise
30211 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
30213 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30215 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30216 don't write a menu entry for recovery mode.
30218 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30220 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30221 after it's no longer needed.
30223 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30225 * include/grub/i386/loader.h (grub_linux_prot_size)
30226 (grub_linux_tmp_addr, grub_linux_real_addr)
30227 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30228 GRUB_MACHINE_PCBIOS.
30229 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30230 common grub_util_info() call to ...
30231 (generate_image): ... here.
30232 Fix use of uninitialized memory, comparison of signed with
30233 unsigned integers and memory leak.
30234 Remove bogus module address message.
30236 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30238 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30240 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30242 2009-06-19 Pavel Roskin <proski@gnu.org>
30244 * configure.ac: Remove stray AC_MSG_CHECKING.
30246 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30248 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30250 2009-06-18 Pavel Roskin <proski@gnu.org>
30252 * conf/common.rmk: Add fs_file.mod.
30253 * disk/fs_file.c: New file.
30254 * include/grub/disk.h (enum grub_disk_dev_id): Add
30255 GRUB_DISK_DEVICE_FILE_ID.
30257 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30259 Fix build with Apple's toolchain. Part 2
30261 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30264 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30266 Fix build with Apple's toolchain. Part 1
30268 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30270 * configure.ac: remove a leftover AC_MSG_RESULT
30271 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30274 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30278 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30279 (decomp_block): initialize ch
30280 use grub_memcpy instead of memcpy
30282 2009-06-17 Pavel Roskin <proski@gnu.org>
30284 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30285 version, use declarations needed to use vga_text as the startup
30288 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30289 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30291 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30292 and grub_at_keyboard_fini(), it's done on module load and
30295 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30297 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30298 file can't be found.
30299 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30301 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30303 Fix newline handling
30305 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30306 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30307 (grub_script_yylex): don't segfault on unterminated script
30308 newline terminates command and variable
30310 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30312 avoid double grub_adjust_range call. Bug reported by David Simner
30314 * kern/disk.c (grub_disk_write): change to raw disk access before
30317 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30319 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30320 spaces, for the benefit of help2man.
30321 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30323 2009-06-16 Pavel Roskin <proski@gnu.org>
30325 * kern/i386/halt.c: Include grub/machine/init.h.
30326 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30328 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30330 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30331 drivemap menuentry.
30333 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30335 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30338 2009-06-16 Pavel Roskin <proski@gnu.org>
30340 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30341 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30342 save %dx, we only need %dl and we never change it.
30343 * boot/i386/pc/cdboot.S: Don't set the root drive.
30344 * boot/i386/pc/pxeboot.S: Likewise.
30345 * include/grub/i386/pc/boot.h: Remove
30346 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30347 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30348 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30349 * kern/i386/pc/init.c (make_install_device): Remove references
30350 to grub_root_drive.
30351 * kern/i386/pc/startup.S: Likewise.
30352 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30354 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30358 * commands/xnu_uuid.c: new file
30359 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30360 (xnu_uuid_mod_SOURCES): new variable
30361 (xnu_uuid_mod_CFLAGS): likewise
30362 (xnu_uuid_mod_LDFLAGS): likewise
30363 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30364 * conf/i386-ieee1275.rmk: likewise
30365 * conf/i386-pc.rmk: likewise
30366 * conf/powerpc-ieee1275.rmk: likewise
30367 * conf/sparc64-ieee1275.rmk: likewise
30368 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30370 2009-06-16 Pavel Roskin <proski@gnu.org>
30372 * configure.ac: Avoid '==' in test command, it's not portable.
30374 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30378 * commands/probe.c: new file
30379 * conf/common.rmk (pkglib_MODULES): add probe.mod
30380 (probe_mod_SOURCES): new variable
30381 (probe_mod_CFLAGS): likewise
30382 (probe_mod_LDFLAGS): likewise
30383 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30384 * conf/i386-ieee1275.rmk: likewise
30385 * conf/i386-pc.rmk: likewise
30386 * conf/powerpc-ieee1275.rmk: likewise
30387 * conf/sparc64-ieee1275.rmk: likewise
30389 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30391 Fix handling of string like \"hello\" and "a
30394 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30395 (grub_script_yylex): fix parsing of quoting, escaping and newline
30397 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30399 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30402 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30404 * util/grub-mkconfig.in: Fix parsing of --output option.
30406 2009-06-12 Pavel Roskin <proski@gnu.org>
30408 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30409 genmk.rb don't need to be generated or installed.
30411 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30413 * commands/i386/pc/drivemap_int13h.S: add more comments
30415 2009-06-11 Pavel Roskin <proski@gnu.org>
30417 * Makefile.in (uninstall): Uninstall manuals.
30419 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30420 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30421 and update-grub_lib in two places.
30422 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30424 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30425 a compiler warning.
30427 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30428 `entry_lo' to fix variable shadowing.
30430 2009-06-11 Christian Franke <franke@computer.org>
30432 * kern/misc.c (__enable_execute_stack): Add missing return type
30433 to prevent gcc warning.
30435 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30437 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30439 2009-06-11 Pavel Roskin <proski@gnu.org>
30441 * Makefile.in: Don't rely on any scripts being executable.
30442 Always use $(SHELL) to run shell scripts.
30444 * configure.ac: Always define ___main if using -nostdlib. This
30445 fixes tests on Cygwin.
30447 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30451 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30452 is in bytes and not in blocks
30454 2009-06-11 Pavel Roskin <proski@gnu.org>
30456 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30459 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30461 * util/grub.d/30_os-prober.in: Fix a comment. Source
30462 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30463 to set the root device. Place drivemap command in the generated
30466 2009-06-11 Pavel Roskin <proski@gnu.org>
30468 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30469 have long been resolved.
30471 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30473 * util/grub.d/10_linux.in: Capitalise "Linux".
30475 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30477 2009-06-11 Pavel Roskin <proski@gnu.org>
30479 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30480 fix a gcc warning and ensure that the function won't ever exit.
30482 * kern/i386/ieee1275/init.c: Add missing prototype for
30483 grub_stop_floppy().
30485 * loader/ieee1275/multiboot2.c [__i386__]: Include
30486 grub/cpu/multiboot.h.
30488 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30489 casts to short - they are not portable and cause warnings. Fix
30490 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30492 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30496 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30498 (grub_get_root_biosnumber_saved): new variable
30499 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30500 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30501 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30502 %dx after the call if necessary
30503 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30504 (boot_mod_SOURCES): remove
30505 (boot_mod_CFLAGS): remove
30506 (boot_mod_LDFLAGS): remove
30507 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30508 (boot_mod_SOURCES): new variable
30509 (boot_mod_CFLAGS): likewise
30510 (boot_mod_LDFLAGS): likewise
30511 * conf/i386-efi.rmk: likewise
30512 * conf/i386-ieee1275.rmk: likewise
30513 * conf/i386-pc.rmk: likewise
30514 * conf/powerpc-ieee1275.rmk: likewise
30515 * conf/sparc64-ieee1275.rmk: likewise
30516 * conf/x86_64-efi.rmk: likewise
30517 * include/grub/i386/pc/biosnum.h: new file
30518 * lib/i386/pc/biosnum.c: likewise
30519 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30520 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30521 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30523 2009-06-10 Pavel Roskin <proski@gnu.org>
30525 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30526 Use separate variables. Read only the file size at the end, but
30527 not the checksum that we don't use.
30529 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30530 Adjust all callers.
30532 * kern/ieee1275/openfw.c: Remove libc includes.
30533 * kern/ieee1275/cmain.c: Likewise.
30534 * include/grub/ieee1275/ieee1275.h: Likewise.
30536 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30539 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30541 * Makefile.in: Remove all trailing whitespace.
30542 * conf/i386-pc.rmk: Likewise.
30543 * conf/powerpc-ieee1275.rmk: Likewise.
30544 * conf/sparc64-ieee1275.rmk: Likewise.
30545 * docs/grub.texi: Likewise.
30546 * docs/texinfo.tex: Likewise.
30547 * disk/fs_uuid.c: Likewise.
30548 * disk/lvm.c: Likewise.
30549 * disk/scsi.c: Likewise.
30550 * disk/ata.c: Likewise.
30551 * disk/ieee1275/ofdisk.c: Likewise.
30552 * disk/i386/pc/biosdisk.c: Likewise.
30553 * disk/host.c: Likewise.
30554 * disk/raid.c: Likewise.
30555 * disk/efi/efidisk.c: Likewise.
30556 * disk/usbms.c: Likewise.
30557 * disk/memdisk.c: Likewise.
30558 * disk/loopback.c: Likewise.
30559 * kern/powerpc/dl.c: Likewise.
30560 * kern/device.c: Likewise.
30561 * kern/dl.c: Likewise.
30562 * kern/sparc64/dl.c: Likewise.
30563 * kern/ieee1275/ieee1275.c: Likewise.
30564 * kern/term.c: Likewise.
30565 * kern/fs.c: Likewise.
30566 * kern/i386/dl.c: Likewise.
30567 * kern/i386/pc/startup.S: Likewise.
30568 * kern/i386/pc/init.c: Likewise.
30569 * kern/i386/pc/mmap.c: Likewise.
30570 * kern/i386/pc/lzo1x.S: Likewise.
30571 * kern/i386/ieee1275/init.c: Likewise.
30572 * kern/i386/realmode.S: Likewise.
30573 * kern/i386/tsc.c: Likewise.
30574 * kern/partition.c: Likewise.
30575 * kern/corecmd.c: Likewise.
30576 * kern/file.c: Likewise.
30577 * kern/efi/efi.c: Likewise.
30578 * kern/efi/init.c: Likewise.
30579 * kern/efi/mm.c: Likewise.
30580 * kern/main.c: Likewise.
30581 * kern/err.c: Likewise.
30582 * kern/env.c: Likewise.
30583 * kern/disk.c: Likewise.
30584 * kern/generic/millisleep.c: Likewise.
30585 * kern/generic/rtc_get_time_ms.c: Likewise.
30586 * kern/misc.c: Likewise.
30587 * kern/parser.c: Likewise.
30588 * genmk.rb: Likewise.
30589 * configure.ac: Likewise.
30590 * boot/i386/pc/diskboot.S: Likewise.
30591 * boot/i386/pc/pxeboot.S: Likewise.
30592 * boot/i386/pc/boot.S: Likewise.
30593 * boot/i386/pc/lnxboot.S: Likewise.
30594 * boot/i386/pc/cdboot.S: Likewise.
30595 * parttool/pcpart.c: Likewise.
30596 * video/readers/tga.c: Likewise.
30597 * video/video.c: Likewise.
30598 * video/bitmap.c: Likewise.
30599 * lib/envblk.c: Likewise.
30600 * lib/i386/setjmp.S: Likewise.
30601 * fs/xfs.c: Likewise.
30602 * fs/afs.c: Likewise.
30603 * fs/fat.c: Likewise.
30604 * fs/ntfs.c: Likewise.
30605 * fs/udf.c: Likewise.
30606 * fs/affs.c: Likewise.
30607 * fs/iso9660.c: Likewise.
30608 * fs/hfs.c: Likewise.
30609 * fs/fshelp.c: Likewise.
30610 * fs/ext2.c: Likewise.
30611 * fs/jfs.c: Likewise.
30612 * fs/reiserfs.c: Likewise.
30613 * fs/hfsplus.c: Likewise.
30614 * fs/minix.c: Likewise.
30615 * fs/cpio.c: Likewise.
30616 * fs/sfs.c: Likewise.
30617 * fs/ufs.c: Likewise.
30618 * efiemu/prepare.c: Likewise.
30619 * efiemu/loadcore_common.c: Likewise.
30620 * efiemu/runtime/efiemu.sh: Likewise.
30621 * efiemu/runtime/efiemu.S: Likewise.
30622 * efiemu/runtime/efiemu.c: Likewise.
30623 * efiemu/pnvram.c: Likewise.
30624 * efiemu/main.c: Likewise.
30625 * efiemu/i386/pc/cfgtables.c: Likewise.
30626 * efiemu/i386/loadcore64.c: Likewise.
30627 * efiemu/i386/loadcore32.c: Likewise.
30628 * efiemu/loadcore.c: Likewise.
30629 * efiemu/symbols.c: Likewise.
30630 * efiemu/mm.c: Likewise.
30631 * include/grub/autoefi.h: Likewise.
30632 * include/grub/datetime.h: Likewise.
30633 * include/grub/term.h: Likewise.
30634 * include/grub/hfs.h: Likewise.
30635 * include/grub/lvm.h: Likewise.
30636 * include/grub/i386/tsc.h: Likewise.
30637 * include/grub/i386/linux.h: Likewise.
30638 * include/grub/i386/xnu.h: Likewise.
30639 * include/grub/i386/efiemu.h: Likewise.
30640 * include/grub/i386/pc/biosdisk.h: Likewise.
30641 * include/grub/i386/pc/memory.h: Likewise.
30642 * include/grub/i386/pc/vbe.h: Likewise.
30643 * include/grub/parttool.h: Likewise.
30644 * include/grub/video.h: Likewise.
30645 * include/grub/memory.h: Likewise.
30646 * include/grub/fs.h: Likewise.
30647 * include/grub/partition.h: Likewise.
30648 * include/grub/xnu.h: Likewise.
30649 * include/grub/efi/api.h: Likewise.
30650 * include/grub/efi/pe32.h: Likewise.
30651 * include/grub/efi/memory.h: Likewise.
30652 * include/grub/multiboot.h: Likewise.
30653 * include/grub/usbdesc.h: Likewise.
30654 * include/grub/multiboot2.h: Likewise.
30655 * include/grub/acpi.h: Likewise.
30656 * include/grub/efiemu/efiemu.h: Likewise.
30657 * include/grub/disk.h: Likewise.
30658 * include/grub/ieee1275/ieee1275.h: Likewise.
30659 * include/grub/net.h: Likewise.
30660 * include/grub/machoload.h: Likewise.
30661 * include/grub/macho.h: Likewise.
30662 * include/multiboot.h: Likewise.
30663 * genmoddep.awk: Likewise.
30664 * normal/main.c: Likewise.
30665 * normal/menu_entry.c: Likewise.
30666 * normal/menu_viewer.c: Likewise.
30667 * normal/completion.c: Likewise.
30668 * normal/cmdline.c: Likewise.
30669 * normal/misc.c: Likewise.
30670 * normal/datetime.c: Likewise.
30671 * bus/usb/usbtrans.c: Likewise.
30672 * bus/usb/ohci.c: Likewise.
30673 * bus/usb/uhci.c: Likewise.
30674 * bus/usb/usb.c: Likewise.
30675 * mmap/efi/mmap.c: Likewise.
30676 * mmap/i386/pc/mmap_helper.S: Likewise.
30677 * mmap/i386/pc/mmap.c: Likewise.
30678 * mmap/i386/mmap.c: Likewise.
30679 * mmap/i386/uppermem.c: Likewise.
30680 * mmap/mmap.c: Likewise.
30681 * commands/acpi.c: Likewise.
30682 * commands/echo.c: Likewise.
30683 * commands/blocklist.c: Likewise.
30684 * commands/loadenv.c: Likewise.
30685 * commands/usbtest.c: Likewise.
30686 * commands/boot.c: Likewise.
30687 * commands/parttool.c: Likewise.
30688 * commands/search.c: Likewise.
30689 * commands/cat.c: Likewise.
30690 * commands/i386/pc/play.c: Likewise.
30691 * commands/i386/pc/drivemap.c: Likewise.
30692 * commands/i386/pc/vbeinfo.c: Likewise.
30693 * commands/i386/pc/acpi.c: Likewise.
30694 * commands/i386/pc/vbetest.c: Likewise.
30695 * commands/ls.c: Likewise.
30696 * commands/cmp.c: Likewise.
30697 * commands/test.c: Likewise.
30698 * commands/efi/acpi.c: Likewise.
30699 * commands/gptsync.c: Likewise.
30700 * commands/help.c: Likewise.
30701 * partmap/amiga.c: Likewise.
30702 * partmap/apple.c: Likewise.
30703 * partmap/acorn.c: Likewise.
30704 * partmap/pc.c: Likewise.
30705 * partmap/sun.c: Likewise.
30706 * partmap/gpt.c: Likewise.
30707 * script/sh/lexer.c: Likewise.
30708 * script/sh/function.c: Likewise.
30709 * font/font.c: Likewise.
30710 * font/font_cmd.c: Likewise.
30711 * loader/powerpc/ieee1275/linux.c: Likewise.
30712 * loader/efi/chainloader.c: Likewise.
30713 * loader/multiboot_loader.c: Likewise.
30714 * loader/macho.c: Likewise.
30715 * loader/i386/multiboot.c: Likewise.
30716 * loader/i386/linux.c: Likewise.
30717 * loader/i386/pc/linux.c: Likewise.
30718 * loader/i386/pc/multiboot2.c: Likewise.
30719 * loader/i386/pc/chainloader.c: Likewise.
30720 * loader/i386/pc/xnu.c: Likewise.
30721 * loader/i386/bsd_trampoline.S: Likewise.
30722 * loader/i386/efi/linux.c: Likewise.
30723 * loader/i386/multiboot_elfxx.c: Likewise.
30724 * loader/i386/bsd_helper.S: Likewise.
30725 * loader/i386/bsd.c: Likewise.
30726 * loader/i386/linux_trampoline.S: Likewise.
30727 * loader/i386/xnu_helper.S: Likewise.
30728 * loader/i386/xnu.c: Likewise.
30729 * loader/i386/bsd_pagetable.c: Likewise.
30730 * loader/i386/multiboot_helper.S: Likewise.
30731 * loader/xnu.c: Likewise.
30732 * loader/xnu_resume.c: Likewise.
30733 * io/gzio.c: Likewise.
30734 * term/efi/console.c: Likewise.
30735 * term/terminfo.c: Likewise.
30736 * term/ieee1275/ofconsole.c: Likewise.
30737 * term/i386/pc/serial.c: Likewise.
30738 * term/i386/pc/vesafb.c: Likewise.
30739 * term/i386/pc/vga.c: Likewise.
30740 * term/usb_keyboard.c: Likewise.
30741 * term/gfxterm.c: Likewise.
30742 * aclocal.m4: Likewise.
30743 * util/lvm.c: Likewise.
30744 * util/grub.d/30_os-prober.in: Likewise.
30745 * util/grub.d/10_hurd.in: Likewise.
30746 * util/console.c: Likewise.
30747 * util/grub-macho2img.c: Likewise.
30748 * util/grub-probe.c: Likewise.
30749 * util/hostfs.c: Likewise.
30750 * util/i386/pc/grub-mkimage.c: Likewise.
30751 * util/i386/pc/grub-setup.c: Likewise.
30752 * util/i386/efi/grub-mkimage.c: Likewise.
30753 * util/grub-mkconfig.in: Likewise.
30754 * util/raid.c: Likewise.
30755 * util/resolve.c: Likewise.
30756 * util/grub-mkdevicemap.c: Likewise.
30757 * util/grub-emu.c: Likewise.
30758 * util/getroot.c: Likewise.
30759 * util/hostdisk.c: Likewise.
30760 * util/usb.c: Likewise.
30761 * util/grub-editenv.c: Likewise.
30762 * util/misc.c: Likewise.
30764 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30766 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30767 `genparttoollist.sh'.
30768 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30769 Add `*.sh' to the list find searches for and change `mdate.sh'
30772 2009-06-10 Pavel Roskin <proski@gnu.org>
30774 * include/grub/multiboot2.h: Provide compatibility defines for
30776 * include/multiboot2.h: Include stdint.h only if needed, using
30778 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30780 * loader/ieee1275/multiboot2.c: Likewise.
30781 * loader/multiboot2.c: Likewise.
30782 * loader/multiboot_loader.c: Likewise.
30784 * configure.ac: Use -nostdlib when probing for the target. It
30785 should not be required to have libc for the target.
30787 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30788 they fail without libc headers for the target.
30789 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30791 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30792 preprocessor conditionals.
30794 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30795 build system doesn't need to be aware of the tar.c internals.
30797 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30799 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30801 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30803 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30804 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30806 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30808 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30809 aren't available if ata.mod gets used.
30811 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30813 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30814 initialising controller.
30815 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30817 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30819 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30820 to choose between ata and biosdisk module on i386-pc.
30822 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30824 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30825 Subclass and Programming Interface fields in terms of the 3 byte
30826 Class Code register.
30827 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30829 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30830 interface is OHCI. Add grub_dprintf for symmetry with
30832 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30833 interface is UHCI. Add interf variable for programming
30834 interface. Print interface with class/subclass.
30836 * bus/usb/ohci.c: Set interf with correct field.
30838 * bus/usb/uhci.c: Remove unneeded doubled lines.
30839 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30840 Remove whitespace inside comment.
30842 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30844 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30845 as fallback an equivalent option without depth.
30847 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30849 Not fail if unable to retrieve C/H/S on LBA disks
30851 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30852 if unable to retrieve C/H/S on LBA disks
30854 2009-06-08 Pavel Roskin <proski@gnu.org>
30856 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30859 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30861 * Makefile.in (uninstall): Remove all $lib_DATA files.
30863 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30865 Bugfix: install on partitionless device
30867 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30870 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30872 * Makefile.in (uninstall): Remove all $include_DATA files.
30874 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30876 * commands/true.c: New file. Implement the true and false commands.
30877 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30878 (true_mod_SOURCES): New variable.
30879 (true_mod_CFLAGS): Likewise.
30880 (true_mod_LDFLAGS): Likewise.
30882 2009-06-05 Colin D Bennett <colin@gibibit.com>
30884 Optimized font character lookup using binary search instead of linear
30885 search. Fonts now are required to have the character index ordered by
30888 * font/font.c (load_font_index): Verify that fonts have ordered
30890 (find_glyph): Use binary search instead of linear search to find a
30891 character in a font.
30893 2009-06-05 Michael Scherer <misc@mandriva.org>
30895 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30896 uses case sensitive btree.
30897 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30898 only for case insensitive filesystems.
30900 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30902 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30903 * conf/common.rmk (search_mod_CFLAGS): likewise
30905 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30907 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30908 compensate a compiler bug
30910 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30912 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30915 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30917 Definitions for creating asm symbols with Apple's CC
30919 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30920 [APPLE_CC] (VARIABLE): likewise
30922 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30924 Disable lnxboot.img when compiled
30927 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30928 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30929 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
30930 [! APPLE_CC] (CODE_LENG): skip
30931 [! APPLE_CC] (setup_sects): likewise
30932 [! APPLE_CC]: skip filling
30934 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30936 Address in trampolines based on 32-bit registers when compiled
30939 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
30941 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
30943 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30945 Avoid aliases when compiling with Apple's CC for PCBIOS machine
30947 * kern/misc.c [APPLE_CC] (memcpy): new function
30948 [APPLE_CC] (memmove): likewise
30949 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
30950 (memcpy): define alias conditionally on !APPLE_CC
30953 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
30954 APPLE_CC are defined
30955 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
30956 (grub_assert_fail): make prototype conditional
30958 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30960 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
30962 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
30964 (CLEANFILES): add grub-macho2img
30965 (grub_macho2img_SOURCES): new variable
30966 * kern/i386/pc/startup.S (bss_start): new variable
30967 (bss_end): likewise
30968 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
30969 * util/grub-macho2img.c: new file
30971 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30973 Use objconv when compiling with Apple's CC
30975 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
30976 (efiemu64.o): likewise
30977 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
30978 when compiling with Apple's CC
30979 (efiemu64_s.o): likewise
30980 * configure.ac: check for objconv when compiling with Apple's CC
30981 * genmk.rb: use objconv for modules when compiled with Apple's CC
30983 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30985 Define segment as well as section when compiling with
30988 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
30989 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
30990 (efiemu_convert_pointer): likewise
30991 (efiemu_set_virtual_address_map): likewise
30992 (efiemu_convert_pointer): likewise
30993 (efiemu_getcrc32): likewise
30994 (init_crc32_table): likewise
30995 (reflect): likewise
30996 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
30997 (GRUB_MOD_DEP): likewise
30999 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31001 Allow a compilation without -mcmodel=large
31003 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31004 when compiled without -mcmodel=large
31005 (filter_memory_map): remove memory post 4 GiB when compiled
31006 without -mcmodel=large
31007 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
31008 TARGET_CFLAGS when -mcmodel=large isn't supported
31010 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31012 Remove nested functions in efiemu core
31014 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
31016 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31018 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31020 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31022 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31024 (grub_cpu_is_tsc_supported): likewise
31025 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
31027 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31029 Absolute addressing through constant with Apple's cc
31031 * kern/i386/pc/startup.S: Define necessary constants
31032 and address through it when using ABS with Apple's CC
31033 * boot/i386/pc/diskboot.S: likewise
31034 * boot/i386/pc/boot.S: likewise
31035 * boot/i386/pc/lnxboot.S: likewise
31036 * boot/i386/pc/cdboot.S: likewise
31037 * mmap/i386/pc/mmap_helper.S: likewise
31038 * commands/i386/pc/drivemap_int13h.S: likewise
31040 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31042 Check if compiler is apple cc
31044 * Makefile.in (ASFLAGS): new variable
31045 (TARGET_ASFLAGS): likewise
31046 (TARGET_MODULE_FORMAT): likewise
31047 (TARGET_APPLE_CC): likewise
31048 (OBJCONV): likewise
31049 (TARGET_IMG_CFLAGS): likewise
31050 (TARGET_CPPFLAGS): add includedir
31051 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31052 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31053 Check for linker script only if compiler isn't Apple's CC
31054 (TARGET_MODULE_FORMAT): set
31055 (TARGET_APPLE_CC): likewise
31056 (TARGET_ASFLAGS): likewise
31057 (ASFLAGS): likewise
31058 Check for objcopy only if compiler isn't Apple's CC
31059 Check for BSS symbol only if compiler isn't Apple's CC
31060 * genmk.rb: adapt nm options if we use Apple's utils
31061 * aclocal.m4 (grub_apple_cc): new test
31062 (grub_apple_target_cc): likewise
31064 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31066 Simplify sed expressions and improve awk
31068 * Makefile.in (install-local): simplify sed expression
31069 * gencmdlist.sh: likewise
31070 * genmoddep.awk: avoid adding module as a dependency of itself
31072 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31074 Add missing start symbols
31076 * boot/i386/pc/boot.S: add start
31077 * boot/i386/pc/pxeboot.S: likewise
31079 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31081 Fix wrong assumptions with grub-mkimage on EFI
31083 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
31084 (relocate_addresses): consider both r_addend and value at offset
31085 (make_mods_section): zerofill modinfo and header
31086 (convert_elf): write prefix here
31088 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31090 Use .asciz instead of .string
31092 * i386/pc/diskboot.S: use .asciz instead of .string
31093 * i386/pc/boot.S: likewise
31094 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31095 (GRUB_MOD_NAME): likewise
31097 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31101 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31102 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31103 (grub_video_setup): remove
31104 (grub_video_set_mode): new prototype
31105 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31107 (linux_vesafb_res): compile only on PCBIOS
31108 (grub_linux_boot): support gfxpayload
31109 * loader/i386/pc/xnu.c (video_hook): new function
31110 (grub_xnu_set_video): support gfxpayload
31111 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31112 (DEFAULT_VIDEO_HEIGHT): likewise
31113 (DEFAULT_VIDEO_FLAGS): likewise
31114 (DEFAULT_VIDEO_MODE): new definition
31115 (video_hook): new function
31116 (grub_gfxterm_init): use grub_video_set_mode
31117 * util/grub.d/30_os-prober.in: remove explicit modesetting before
31119 * video/video.c (grub_video_setup): removed
31120 (grub_video_set_mode): new function based on grub_gfxterm_init and
31123 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31125 Avoid calling biosdisk in drivemap
31127 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31128 (revparse_biosdisk): likewise
31129 (list_mappings): derive name from id directly
31130 (grub_cmd_drivemap): use tryparse_diskstring
31132 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31136 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31137 (grub_lexer_param): add tokenonhold
31138 (grub_script_create_cmdline): remove cmdline. All callers updated
31139 (grub_script_function_create): make functionname
31140 grub_script_arg. All callers updated
31141 (grub_script_execute_argument_to_string): new prototype
31142 * kern/parser.c (state_transitions): reorder
31143 (grub_parser_cmdline_state): fix a bug and make more compact
31144 * script/sh/execute.c (grub_script_execute_argument_to_string):
31146 (grub_script_execute_cmdline): use new format
31147 * script/sh/function.c (grub_script_function_create): make functionname
31148 grub_script_arg. All callers updated
31149 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
31150 (grub_script_yylex): remove
31151 (grub_script_yylex2): renamed to ...
31152 (grub_script_yylex): ...renamed
31153 parse the expressions like a${b}c
31154 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31155 (GRUB_PARSER_TOKEN_VAR): remove
31156 (GRUB_PARSER_TOKEN_NAME): likewise
31157 ("if"): declare as typeless
31158 ("while"): likewise
31159 ("function"): likewise
31164 (argument): likewise
31165 (script): accept empty scripts and make exit on error
31166 (arguments): use GRUB_PARSER_TOKEN_ARG
31167 (function): likewise
31168 (command): move error handling to script
31169 (menuentry): move grub_script_lexer_ref before
31170 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
31171 argument. All callers updated
31173 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31175 Prevent GRUB from probing floppies during boot.
31177 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31178 * commands/search.c (options): Add --no-floppy.
31179 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31180 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31181 --no-floppy when searching for UUIDs.
31183 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31185 Simplify the code duplication in commands/search.c.
31187 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31188 (search_fs): ... this. Update all users.
31190 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
31192 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31194 2009-05-28 Pavel Roskin <proski@gnu.org>
31196 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31197 Remove the original symlink explicitly.
31199 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31200 just one slash. That's how grub_fshelp_find_file() does it.
31202 2009-05-26 Pavel Roskin <proski@gnu.org>
31204 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31207 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31210 2009-05-25 Christian Franke <franke@computer.org>
31212 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31214 (grub_atapi_identify): Add wait after drive select.
31215 (grub_ata_identify): Do more strict status register check before
31216 calling grub_atapi_identify (). Suppress error message if status
31217 register is 0x00 after command failure. Add status register
31218 check after PIO read to avoid bogus identify due to stuck DRQ.
31219 Thanks to Pavel Roskin for testing.
31220 (grub_device_initialize): Remove unsafe status register check.
31221 Thanks to 'phcoder' for problem report and patch.
31222 Prevent sign extension in debug message.
31224 2009-05-23 Colin D Bennett <colin@gibibit.com>
31226 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31227 definition file, and functions defined in `normal/menu.c' have had
31228 their prototypes moved to `include/grub/menu.h' for consistency.
31230 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31232 (grub_menu_get_entry): Likewise.
31233 (grub_menu_get_timeout): Likewise.
31234 (grub_menu_set_timeout): Likewise.
31235 (grub_menu_execute_entry): Likewise.
31236 (grub_menu_execute_with_fallback): Likewise.
31237 (grub_menu_entry_run): Likewise.
31239 * include/grub/normal.h: Re-ordered and grouped function
31240 prototypes by file that the function is defined in.
31241 (grub_menu_execute_callback): Removed; moved to menu.h.
31242 (grub_menu_get_entry): Likewise.
31243 (grub_menu_get_timeout): Likewise.
31244 (grub_menu_set_timeout): Likewise.
31245 (grub_menu_execute_entry): Likewise.
31246 (grub_menu_execute_with_fallback): Likewise.
31247 (grub_menu_entry_run): Likewise.
31248 (grub_menu_addentry): Renamed from this ...
31249 (grub_normal_add_menu_entry): ... to this.
31251 * normal/main.c (grub_menu_addentry): Renamed from this ...
31252 (grub_normal_add_menu_entry): ... to this.
31254 * script/sh/execute.c (grub_script_execute_menuentry): Update
31255 reference to renamed grub_menu_addentry function.
31257 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31259 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31261 2009-05-22 Pavel Roskin <proski@gnu.org>
31263 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31264 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31265 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31266 compiling for the i386 targets, but not for the utilities.
31268 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31270 (grub_root_drive): Likewise.
31271 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31273 (grub_root_drive): Change size to byte.
31274 (grub_start_addr): Remove.
31275 (grub_end_addr): Likewise.
31276 (grub_apm_bios_info): Likewise.
31278 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31280 * normal/i386: Remove.
31281 * normal/powerpc: Likewise.
31282 * normal/sparc64: Likewise.
31283 * normal/x86_64: Likewise.
31285 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31287 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31288 * loader/i386/linux_trampoline.S: Fix indentation
31289 * loader/i386/xnu_helper.S: Likewise
31291 2009-05-18 Colin D Bennett <colin@gibibit.com>
31293 Display error messages when parsing a Lua statement fails.
31294 Previously, executing a syntactically invalid statement like
31295 ")foo" or "bar;" would silently fail.
31297 * script/lua/grub_main.c (handle_lua_error): New function.
31298 (grub_lua_parse_line): Improved reporting of Lua parser and
31301 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31303 Remove -Werror which causes build to fail on some systems
31305 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31306 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31307 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31309 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31311 trampoline for linux on 64-bit platform
31313 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31314 loader/i386/efi/linux_trampoline.S
31315 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31317 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31319 * loader/i386/linux_trampoline.S: moved here
31320 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31322 (jumpvector): removed
31323 (grub_linux_trampoline_start): new declaration
31324 (grub_linux_trampoline_end): likewise
31325 (grub_linux_boot): use trampoline when on 64-bit platform
31326 * loader/i386/linux.c: likewise
31328 2009-05-16 Pavel Roskin <proski@gnu.org>
31330 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31331 const to avoid a warning.
31332 (grub_lua_setenv): Likewise.
31333 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31334 lmsg to fix a warning.
31336 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31338 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31339 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31340 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31341 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31342 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31343 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31344 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31345 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31347 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31349 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31351 2009-05-16 Bean <bean123ch@gmail.com>
31353 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31354 (lua_mod_SOURCES): New variable.
31355 (lua_mod_CFLAGS): Likewise.
31356 (lua_mod_LDFLAGS): Likewise.
31358 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31359 (setjmp_mod_SOURCES): New variable.
31360 (setjmp_mod_CFLAGS): Likewise.
31361 (setjmp_LDFLAGS): Likewise.
31363 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31364 (setjmp_mod_SOURCES): New variable.
31365 (setjmp_mod_CFLAGS): Likewise.
31366 (setjmp_LDFLAGS): Likewise.
31368 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31369 (setjmp_mod_SOURCES): New variable.
31370 (setjmp_mod_CFLAGS): Likewise.
31371 (setjmp_LDFLAGS): Likewise.
31373 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31374 (setjmp_mod_SOURCES): New variable.
31375 (setjmp_mod_CFLAGS): Likewise.
31376 (setjmp_LDFLAGS): Likewise.
31378 * normal/i386/setjmp.S: Moved from here ...
31379 * lib/i386/setjmp.S: ... Moved here
31380 * normal/x86_64/setjmp.S: Moved from here ...
31381 * lib/x86_64/setjmp.S: ... Moved here
31382 * normal/powerpc/setjmp.S: Moved from here ...
31383 * lib/powerpc/setjmp.S: ... Moved here
31384 * normal/sparc64/setjmp.S: Moved from here ...
31385 * lib/sparc64/setjmp.S: ... Moved here
31387 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31388 returns_twice in mingw.
31390 * script/lua/grub_lib.c: New file.
31391 * script/lua/grub_lib.h: Likewise.
31392 * script/lua/grub_lua.h: Likewise.
31393 * script/lua/grub_main.c: Likewise.
31394 * script/lua/lapi.c: Likewise.
31395 * script/lua/lapi.h: Likewise.
31396 * script/lua/lauxlib.c: Likewise.
31397 * script/lua/lauxlib.h: Likewise.
31398 * script/lua/lbaselib.c: Likewise.
31399 * script/lua/lcode.c: Likewise.
31400 * script/lua/lcode.h: Likewise.
31401 * script/lua/ldblib.c: Likewise.
31402 * script/lua/ldebug.c: Likewise.
31403 * script/lua/ldebug.h: Likewise.
31404 * script/lua/ldo.c: Likewise.
31405 * script/lua/ldo.h: Likewise.
31406 * script/lua/ldump.c: Likewise.
31407 * script/lua/lfunc.c: Likewise.
31408 * script/lua/lfunc.h: Likewise.
31409 * script/lua/lgc.c: Likewise.
31410 * script/lua/lgc.h: Likewise.
31411 * script/lua/linit.c: Likewise.
31412 * script/lua/liolib.c: Likewise.
31413 * script/lua/llex.c: Likewise.
31414 * script/lua/llex.h: Likewise.
31415 * script/lua/llimits.h: Likewise.
31416 * script/lua/lmathlib.c: Likewise.
31417 * script/lua/lmem.c: Likewise.
31418 * script/lua/lmem.h: Likewise.
31419 * script/lua/loadlib.c: Likewise.
31420 * script/lua/lobject.c: Likewise.
31421 * script/lua/lobject.h: Likewise.
31422 * script/lua/lopcodes.c: Likewise.
31423 * script/lua/lopcodes.h: Likewise.
31424 * script/lua/loslib.c: Likewise.
31425 * script/lua/lparser.c: Likewise.
31426 * script/lua/lparser.h: Likewise.
31427 * script/lua/lstate.c: Likewise.
31428 * script/lua/lstate.h: Likewise.
31429 * script/lua/lstring.c: Likewise.
31430 * script/lua/lstring.h: Likewise.
31431 * script/lua/lstrlib.c: Likewise.
31432 * script/lua/ltable.c: Likewise.
31433 * script/lua/ltable.h: Likewise.
31434 * script/lua/ltablib.c: Likewise.
31435 * script/lua/ltm.c: Likewise.
31436 * script/lua/ltm.h: Likewise.
31437 * script/lua/lua.h: Likewise.
31438 * script/lua/luaconf.h: Likewise.
31439 * script/lua/lualib.h: Likewise.
31440 * script/lua/lundump.c: Likewise.
31441 * script/lua/lundump.h: Likewise.
31442 * script/lua/lvm.c: Likewise.
31443 * script/lua/lvm.h: Likewise.
31444 * script/lua/lzio.c: Likewise.
31445 * script/lua/lzio.h: Likewise.
31447 2009-05-16 Bean <bean123ch@gmail.com>
31449 * include/grub/kernel.h (grub_module_header_types): Add type
31452 * kern/main.c (grub_load_config): New function.
31453 (grub_main): Call grub_load_config to read boot config.
31455 * grub-mkimage (generate_image): New parameter config_path.
31456 (options): New option --config.
31457 (main): Parse --config option, and pass it to generate_image.
31459 2009-05-14 Christian Franke <franke@computer.org>
31461 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31462 This fixes build on Cygwin.
31464 2009-05-14 Pavel Roskin <proski@gnu.org>
31466 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31467 jump. This saves two bytes, so the typical case of 2 swapped
31468 drives would fit 32 bytes.
31470 2009-05-13 Pavel Roskin <proski@gnu.org>
31472 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31473 grub_uint32_t to avoid a warning.
31475 * loader/i386/linux.c (allocate_pages): When assigning
31476 real_mode_mem, cast through grub_size_t to fix a warning. The
31477 code already makes sure that the value would fit a pointer.
31478 (grub_linux_setup_video): Cast render_target->data to
31479 grub_size_t to fix a warning.
31481 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31483 * commands/i386/pc/drivemap.c: New file - implement drivemap
31485 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31486 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31488 2009-05-13 Pavel Roskin <proski@gnu.org>
31490 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31491 embedding_area_exists.
31493 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31495 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31496 it easier to understand / work with.
31497 Improve warning messages for cases where there's no embedding area,
31498 or when it is too small (or core.img too large).
31500 2009-05-13 Pavel Roskin <proski@gnu.org>
31502 * loader/i386/pc/multiboot2.c: Add necessary includes for
31503 grub_multiboot2_real_boot().
31505 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31506 PX record is always little-endian. We only need the lower 2
31509 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31510 facilitate code reuse.
31511 (grub_cpio_mount): Use "struct head", not a char buffer. This
31512 fixes a warning reported by gcc 4.4.
31514 * kernel/disk.c (grub_disk_read): Use void pointer for the
31516 (grub_disk_write): Use const void pointer for the buffer.
31517 Adjust all callers. Remove unnecessary casts.
31519 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31521 * util/i386/pc/grub-install.in: Update copyright year.
31523 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31527 * commands/gptsync.c: new file
31528 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31529 (gptsync_mod_SOURCES): new variable
31530 (gptsync_mod_CFLAGS): likewise
31531 (gptsync_mod_LDFLAGS): likewise
31532 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31534 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31535 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31536 * conf/i386-ieee1275.rmk: likewise
31537 * conf/i386-pc.rmk: likewise
31538 * conf/powerpc-ieee1275.rmk: likewise
31540 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31544 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31545 (grub_dl_ref): likewise
31547 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31549 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31550 split in two functions (one for msdos and one for gpt).
31552 2009-05-08 Pavel Roskin <proski@gnu.org>
31554 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31557 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31558 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31559 Initialize them with -1. Add sanity check for bad1. Eliminate
31562 2009-05-08 David S. Miller <davem@davemloft.net>
31564 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31566 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31568 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31571 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31573 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31574 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31576 2009-05-05 David S. Miller <davem@davemloft.net>
31578 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31580 2009-05-05 Pavel Roskin <proski@gnu.org>
31582 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31583 of grub_dl_ref() and grub_dl_unref().
31584 * commands/parttool.c: Remove preprocessor conditionals around
31585 grub_dl_ref() and grub_dl_unref().
31586 * fs/affs.c: Likewise.
31587 * fs/afs.c: Likewise.
31588 * fs/cpio.c: Likewise.
31589 * fs/ext2.c: Likewise.
31590 * fs/fat.c: Likewise.
31591 * fs/hfs.c: Likewise.
31592 * fs/hfsplus.c: Likewise.
31593 * fs/iso9660.c: Likewise.
31594 * fs/jfs.c: Likewise.
31595 * fs/minix.c: Likewise.
31596 * fs/ntfs.c: Likewise.
31597 * fs/reiserfs.c: Likewise.
31598 * fs/sfs.c: Likewise.
31599 * fs/udf.c: Likewise.
31600 * fs/ufs.c: Likewise.
31601 * fs/xfs.c: Likewise.
31602 * include/grub/dl.h: Likewise.
31603 * loader/xnu.c: Likewise.
31605 2009-05-04 Pavel Roskin <proski@gnu.org>
31607 * commands/acpi.c: Remove unused variable my_mod.
31608 * partmap/amiga.c: Likewise.
31609 * partmap/apple.c: Likewise.
31610 * partmap/gpt.c: Likewise.
31611 * partmap/pc.c: Likewise.
31612 * partmap/sun.c: Likewise.
31613 * term/gfxterm.c: Likewise.
31614 * term/i386/pc/vesafb.c: Likewise.
31615 * term/i386/pc/vga.c: Likewise.
31617 2009-05-04 David S. Miller <davem@davemloft.net>
31619 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31620 pointer args to grub_ieee1275_get_property().
31622 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31624 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31625 devices, and do not traverse down under controller nodes.
31627 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31628 (grub_ofdisk_open): Use it to un-escape "," characters.
31629 * kern/disk.c (find_part_sep): New.
31630 (grub_disk_open): Use it to find the first non-escaped ','
31631 character in the disk name.
31632 * util/ieee1275/devicemap.c (escape_of_path): New.
31633 (grub_util_emit_devicemap_entry): Use it.
31634 * util/sparc64/ieee1275/grub-install.in: Update script to
31635 strip partition specifiers properly by not triggering on
31636 '\' escaped ',' characters.
31638 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31640 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31642 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31644 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31645 on documentation from Wikipedia).
31647 2009-05-04 Pavel Roskin <proski@gnu.org>
31649 * disk/ata.c: Spelling fixes.
31650 * disk/raid.c: Likewise.
31651 * disk/usbms.c: Likewise.
31652 * disk/dmraid_nvidia.c: Likewise.
31653 * kern/ieee1275/openfw.c: Likewise.
31654 * kern/ieee1275/init.c: Likewise.
31655 * kern/ieee1275/cmain.c: Likewise.
31656 * boot/i386/pc/cdboot.S: Likewise.
31657 * video/readers/png.c: Likewise.
31658 * video/i386/pc/vbe.c: Likewise.
31659 * fs/udf.c: Likewise.
31660 * fs/hfs.c: Likewise.
31661 * fs/reiserfs.c: Likewise.
31662 * efiemu/runtime/efiemu.c: Likewise.
31663 * efiemu/main.c: Likewise.
31664 * efiemu/mm.c: Likewise.
31665 * include/grub/elf.h: Likewise.
31666 * include/grub/xnu.h: Likewise.
31667 * include/grub/usbdesc.h: Likewise.
31668 * include/grub/usb.h: Likewise.
31669 * include/grub/script_sh.h: Likewise.
31670 * include/grub/lib/LzmaEnc.h: Likewise.
31671 * include/grub/efiemu/efiemu.h: Likewise.
31672 * include/grub/command.h: Likewise.
31673 * normal/menu.c: Likewise.
31674 * normal/main.c: Likewise.
31675 * normal/datetime.c: Likewise.
31676 * bus/usb/uhci.c: Likewise.
31677 * mmap/i386/uppermem.c: Likewise.
31678 * mmap/mmap.c: Likewise.
31679 * commands/acpi.c: Likewise.
31680 * commands/test.c: Likewise.
31681 * partmap/apple.c: Likewise.
31682 * font/font.c: Likewise.
31683 * loader/sparc64/ieee1275/linux.c: Likewise.
31684 * loader/macho.c: Likewise.
31685 * loader/i386/bsd_trampoline.S: Likewise.
31686 * loader/i386/bsd.c: Likewise.
31687 * loader/xnu.c: Likewise.
31688 * term/i386/pc/vesafb.c: Likewise.
31689 * term/usb_keyboard.c: Likewise.
31690 * util/resolve.c: Likewise.
31691 * util/getroot.c: Likewise.
31693 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31695 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31697 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31699 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31702 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31704 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31705 parameter only available on BIOS.
31707 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31709 Removed wrong semicolon in declaration
31711 * grub/misc.h (grub_dprintf): remove semicolon
31713 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31715 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31716 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31717 is done by grub_cmd_linux() now).
31718 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31719 restore video to text mode.
31720 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31721 indicates lack of "vga=" parameter. "vga=0" is mapped to
31722 `GRUB_LINUX_VID_MODE_NORMAL'.
31724 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31726 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31727 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31728 and `normal/script.c'. Add `kern/rescue_reader.c',
31729 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31730 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31731 `grub_script.tab.c'.
31733 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31734 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31735 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31736 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31737 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31739 * Makefile.in: Remove duplicated 2008 in Copyright line.
31741 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31743 * util/misc.c (grub_util_warn): New function. Emits a warning
31745 * include/grub/util/misc.h (grub_util_warn): New declaration.
31747 * util/i386/pc/grub-install.in: Understand --force and pass it down
31750 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31752 (setup): Improve error messages and add warnings when requested to
31753 install in odd layouts. Refuse to install using blocklists unless
31756 2009-05-04 martin f. krafft <madduck@madduck.net>
31758 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31760 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31762 Updated copyright year
31764 * fs/hfsplus.c: updated copyright year
31766 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31770 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31771 in the space previously used by unused3
31772 (grub_hfsplus_uuid): new function
31773 (grub_hfsplus_fs): added uuid field
31775 2009-05-03 Pavel Roskin <proski@gnu.org>
31777 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31778 suppress warnings. It's no longer needed.
31779 * disk/host.c: Likewise.
31780 * disk/ata_pthru.c: Likewise.
31781 * disk/loopback.c: Likewise.
31782 * hook/datehook.c: Likewise.
31783 * parttool/pcpart.c: Likewise.
31784 * fs/i386/pc/pxe.c: Likewise.
31785 * fs/ntfscomp.c: Likewise.
31786 * efiemu/main.c: Likewise.
31787 * mmap/mmap.c: Likewise.
31788 * commands/crc.c: Likewise.
31789 * commands/hexdump.c: Likewise.
31790 * commands/hdparm.c: Likewise.
31791 * commands/acpi.c: Likewise.
31792 * commands/echo.c: Likewise.
31793 * commands/minicmd.c: Likewise.
31794 * commands/blocklist.c: Likewise.
31795 * commands/memrw.c: Likewise.
31796 * commands/loadenv.c: Likewise.
31797 * commands/usbtest.c: Likewise.
31798 * commands/lsmmap.c: Likewise.
31799 * commands/boot.c: Likewise.
31800 * commands/parttool.c: Likewise.
31801 * commands/configfile.c: Likewise.
31802 * commands/search.c: Likewise.
31803 * commands/ieee1275/suspend.c: Likewise.
31804 * commands/cat.c: Likewise.
31805 * commands/i386/pc/pxecmd.c: Likewise.
31806 * commands/i386/pc/play.c: Likewise.
31807 * commands/i386/pc/halt.c: Likewise.
31808 * commands/i386/pc/vbeinfo.c: Likewise.
31809 * commands/i386/pc/vbetest.c: Likewise.
31810 * commands/lspci.c: Likewise.
31811 * commands/date.c: Likewise.
31812 * commands/handler.c: Likewise.
31813 * commands/ls.c: Likewise.
31814 * commands/test.c: Likewise.
31815 * commands/cmp.c: Likewise.
31816 * commands/efi/loadbios.c: Likewise.
31817 * commands/efi/fixvideo.c: Likewise.
31818 * commands/halt.c: Likewise.
31819 * commands/help.c: Likewise.
31820 * commands/reboot.c: Likewise.
31821 * hello/hello.c: Likewise.
31822 * script/sh/main.c: Likewise.
31823 * loader/xnu.c: Likewise.
31824 * term/terminfo.c: Likewise.
31825 * term/i386/pc/serial.c: Likewise.
31826 * term/usb_keyboard.c: Likewise.
31828 2009-05-03 David S. Miller <davem@davemloft.net>
31830 * normal/menu.c: Include grub/parser.h
31832 2009-05-03 Pavel Roskin <proski@gnu.org>
31834 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31836 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31837 Suggested by Javier Martín <lordhabbit@gmail.com>
31839 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31840 efiemu??.o doesn't exist.
31841 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31844 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31846 FreeBSD 64-bit support
31848 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31849 and loader/i386/bsd_trampoline.S
31850 (bsd_mod_ASFLAGS): new variable
31851 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31852 (FREEBSD_MODTYPE_KERNEL64): likewise
31853 (grub_bsd64_trampoline_start): likewise
31854 (grub_bsd64_trampoline_end): likewise
31855 (grub_bsd64_trampoline_selfjump): likewise
31856 (grub_bsd64_trampoline_gdt): likewise
31857 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31858 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31859 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31860 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31861 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31863 * loader/i386/bsd_pagetable.c: new file
31864 * loader/i386/bsd_trampoline.S: likewise
31865 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31866 (ALIGN_VAR): likewise
31867 (entry_hi): new variable
31868 (kern_end_mdofs): likewise
31869 (is_64bit): likewise
31870 (grub_freebsd_add_meta): use ALIGN_VAR
31871 (grub_e820_mmap): new declaration
31872 (grub_freebsd_add_mmap): new function
31873 (grub_freebsd_add_meta_module): support 64 bit kernels
31874 (grub_freebsd_list_modules): use ALIGN_VAR
31875 (gdt_descriptor): new declaration
31876 (grub_freebsd_boot): support 64 bit kernels
31877 (grub_bsd_elf64_hook): new function
31878 (grub_bsd_load_elf): support elf64
31880 2009-05-03 Bean <bean123ch@gmail.com>
31882 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31883 after we get the result of if statement.
31885 2009-05-03 Bean <bean123ch@gmail.com>
31887 * Makefile.in (enable_efiemu): New variable.
31889 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31891 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31893 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31894 path, add -mno-red-zone option.
31895 (efiemu64_s.o): Likewise.
31896 (efiemu64.o): Use macro $^ for source file.
31898 * configure.ac (--enable-efiemu): New option.
31900 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31904 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31905 (pkglib_MODULES): add xnu.mod
31906 (xnu_mod_SOURCES): new variable
31907 (xnu_mod_CFLAGS): likewise
31908 (xnu_mod_LDFLAGS): likewise
31909 (xnu_mod_ASFLAGS): likewise
31910 * conf/i386-pc.rmk: likewise
31911 * conf/x86_64-efi.rmk: likewise
31912 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31914 * include/grub/i386/macho.h: new file
31915 * include/grub/i386/xnu.h: likewise
31916 * include/grub/macho.h: likewise
31917 * include/grub/machoload.h: likewise
31918 * include/grub/x86_64/macho.h: likewise
31919 * include/grub/x86_64/xnu.h: likewise
31920 * include/grub/xnu.h: likewise
31921 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31922 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31923 * loader/i386/efi/xnu.c: new file
31924 * loader/i386/pc/xnu.c: likewise
31925 * loader/i386/xnu.c: likewise
31926 * loader/i386/xnu_helper.S: likewise
31927 * loader/macho.c: likewise
31928 * loader/xnu.c: likewise
31929 * loader/xnu_resume.c: likewise
31930 * util/grub-dumpdevtree: likewise
31931 * include/grub/i386/pit.h: include grub/err.h
31932 (grub_pit_wait): export
31933 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
31935 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31939 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
31940 _linux_efi, linux_efi.
31941 new files in grub-emu
31942 new targets efiemu32.o and efiemu64.o
31943 * loader/linux_normal_efiemu.c: likewise
31944 * loader/i386/efi/linux.c: added preliminary efiemu support
31945 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
31947 * include/grub/autoefi.h: new file
31948 * include/grub/i386/efiemu.h: likewise
31949 * include/grub/i386/pc/efiemu.h: likewise
31950 * include/grub/efi/api.h: add LL suffix when necessary
31951 new definitions relating to tables
31952 * include/grub/efiemu/efiemu.h: new file
31953 * include/grub/efiemu/runtime.h: likewise
31954 * efiemu/prepare.c: likewise
31955 * efiemu/loadcore_common.c: likewise
31956 * efiemu/loadcore64.c: likewise
31957 * efiemu/runtime/efiemu.sh: likewise
31958 * efiemu/runtime/efiemu.S: likewise
31959 * efiemu/runtime/efiemu.c: likewise
31960 * efiemu/runtime/config.h: likewise
31961 * efiemu/prepare32.c: likewise
31962 * efiemu/main.c: likewise
31963 * efiemu/modules/pnvram.c: likewise
31964 * efiemu/modules/i386: likewise
31965 * efiemu/modules/i386/pc: likewise
31966 * efiemu/modules/acpi.c: likewise
31967 * efiemu/i386/pc/cfgtables.c: likewise
31968 * efiemu/i386/loadcore64.c: likewise
31969 * efiemu/i386/loadcore32.c: likewise
31970 * efiemu/prepare64.c: likewise
31971 * efiemu/loadcore.c: likewise
31972 * efiemu/symbols.c: likewise
31973 * efiemu/mm.c: likewise
31974 * efiemu/loadcore32.c: likewise
31976 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31980 * commands/acpi.c: new file
31981 * commands/i386/pc/acpi.c: likewise
31982 * commands/efi/acpi.c: likewise
31983 * include/grub/acpi.h: likewise
31984 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
31985 (acpi_mod_SOURCES): new variable
31986 (acpi_mod_CFLAGS): likewise
31987 (acpi_mod_LDFLAGS): likewise
31988 * conf/i386-efi.rmk: likewise
31989 * conf/x86_64-efi.rmk: likewise
31991 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
31993 Missing part from mmap patch
31995 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
31996 (grub_mmap_unregister)
31997 (grub_mmap_free_and_unregister): use grub_mmap_register
31999 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32003 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32004 * loader/i386/linux.c (find_mmap_size): likewise
32005 (allocate_pages): likewise
32006 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32007 (grub_fill_multiboot_mmap): likewise
32008 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32009 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32010 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32011 (OPENBSD_MMAP_RESERVED): likewise
32012 * include/grub/i386/pc/memory.h: include grub/memory.h
32013 (grub_lower_mem): removed
32014 (grub_upper_mem): likewise
32015 (GRUB_MACHINE_MEMORY_ACPI): new definition
32016 (GRUB_MACHINE_MEMORY_NVS): likewise
32017 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32018 (GRUB_MACHINE_MEMORY_HOLE): likewise
32019 (grub_machine_mmap_register): likewise
32020 (grub_machine_mmap_unregister): likewise
32021 (grub_machine_get_upper): likewise
32022 (grub_machine_get_lower): likewise
32023 (grub_machine_get_post64): likewise
32024 * include/grub/i386/efi/memory.h: new file
32025 * include/grub/x86_64/efi/memory.h: likewise
32026 * include/grub/efi/memory.h: likewise
32027 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32028 (mmap_mod_SOURCES): new variable
32029 (mmap_mod_LDFLAGS): likewise
32030 (mmap_mod_ASFLAGS): likewise
32031 * conf/i386-coreboot.rmk: likewise
32032 * conf/i386-ieee1275.rmk: likewise
32033 * conf/i386-efi.rmk: likewise
32034 * conf/x86_64-efi.rmk: likewise
32035 * include/grub/types.h (UINT_TO_PTR): new macro
32036 (PTR_TO_UINT32): likewise
32037 (PTR_TO_UINT64): likewise
32038 * include/grub/memory.h: new file
32039 * mmap/i386/pc/mmap.c: likewise
32040 * mmap/i386/pc/mmap_helper.S: likewise
32041 * mmap/i386/uppermem.c: likewise
32042 * mmap/mmap.c: likewise
32043 * mmap/efi/mmap.c: likewise
32044 * kern/i386/coreboot/init.c (grub_machine_init): don't use
32046 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32047 (grub_upper_mem): likewise
32048 (grub_machine_init): don't use grub_upper_mem,
32049 make grub_lower_mem local
32050 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32051 grub_mmap_iterate and grub_mmap_get_upper
32052 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32054 2009-05-02 Bean <bean123ch@gmail.com>
32056 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32057 script/sh/parser.y.
32058 (pkglib_MODULES): Add normal.mod and sh.mod.
32059 (normal_SOURCES): New variable.
32060 (normal_mod_CFLAGS): Likewise.
32061 (normal_mod_LDFLAGS): Likewise.
32062 (sh_mod_SOURCES): Likewise.
32063 (sh_mod_CFLAGS): Likewise.
32064 (sh_mod_LDFLAGS): Likewise.
32066 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32067 script/sh/lexer.c_DEPENDENCIES.
32068 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32069 kern/rescue_reader.c and kern/rescue_parser.c.
32070 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32071 (grub_emu_SOURCES): Change source files.
32072 (pkglib_MODULES): Remove normal.mod.
32073 (normal_SOURCES): Removed.
32074 (normal_mod_CFLAGS): Likewise.
32075 (normal_mod_LDFLAGS): Likewise.
32076 * conf/i386-coreboot.rmk: Likewise.
32077 * conf/i386-efi.rmk: Likewise.
32078 * conf/i386-ieee1276.rmk: Likewise.
32079 * conf/powerpc-ieee1275.rmk: Likewise.
32080 * conf/sparc64-ieee1275.rmk: Likewise.
32081 * conf/x86_64-efi.rmk: Likewise.
32083 * include/grub/command.h (grub_command_execute): New inline function.
32085 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32087 * include/grub/normal.h: Remove <grub/setjmp.h>.
32088 (grub_fs_module_list): Moved to normal/autofs.c.
32089 (grub_exit_env): Removed.
32090 (grub_command_execute): Likewise.
32091 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32093 (read_command_list): New function declaration.
32094 (read_fs_list): Likewise.
32096 * include/parser.h: Include <grub/reader.h>.
32097 (grub_parser_split_cmdline): Change type of getline parameter.
32098 (grub_parser): New structure.
32099 (grub_parser_class): New variable.
32100 (grub_parser_execute): New function declaration.
32101 (grub_register_rescue_parser): Likewise.
32102 (grub_parser_register): New inline function.
32103 (grub_parser_unregister): Likewise.
32104 (grub_parser_get_current): Likewise.
32105 (grub_parser_set_current): Likewise.
32107 * include/grub/reader.h: New file.
32108 * kern/reader.c: Likewise.
32109 * kern/rescue_parser.c: Likewise.
32110 * kern/rescue_reader.c: Likewise.
32111 * normal/autofs.c: Likewise.
32112 * normal/dyncmd.c: Likewise.
32114 * include/grub/rescue.h: Removed.
32115 * normal/command.h: Likewise.
32117 * include/grub/script.h: Moved to ...
32118 * include/grub/script_sh.h: ... Moved here.
32119 * normal/execute.c: Moved to ...
32120 * script/sh/execute.c: ... Moved here.
32121 * normal/function.c: Moved to ...
32122 * script/sh/function.c: ... Moved here.
32123 * normal/lexer.c: Moved to ...
32124 * script/sh/lexer.c: ... Moved here.
32125 * normal/parser.y: Moved to ...
32126 * script/sh/parser.y: ... Moved here.
32127 * normal/script.c: Moved to ...
32128 * script/sh/script.c: ... Moved here.
32130 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32132 (grub_exit_env): Removed.
32133 (fs_module_list): Moved to normal/autofs.c.
32134 (grub_file_getline): Don't handle comment here.
32135 (free_menu): Skip removed field entry->commands.
32136 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32138 (read_config_file): Removed nested parameter, change getline function.
32139 (grub_enter_normal_mode): Removed.
32140 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32141 (read_command_list): Likewise.
32142 (autoload_fs_module): Moved to normal/autofs.c.
32143 (read_fs_list): Likewise.
32144 (reader_nested): New variable.
32145 (grub_normal_execute): Run parser.sh to switch to sh parser.
32146 (grub_cmd_rescue): Removed.
32147 (cmd_normal): Removed.
32148 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32150 (grub_cmdline_run): New function.
32151 (grub_normal_reader_init): Likewise.
32152 (grub_normal_read_line): Likewise.
32153 (grub_env_write_pager): Likewise.
32154 (cmdline): New variable.
32155 (grub_normal_reader): Likewise.
32156 (GRUB_MOD_INIT): Register normal reader and set as current, register
32157 pager hook, register normal command with grub_register_command_prio,
32158 so that it won't show up in command.lst.
32159 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32160 grub_fs_autoload_hook.
32162 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32163 (grub_menu_execute_entry): Replace grub_script_execute with
32164 grub_parser_execute, change parameter to grub_command_execute.
32166 * normal/menu_text.c: Remove <grub/script.h>.
32168 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32169 and <grub/parser.h>.
32170 (run): Change editor_getline to use new parser interface. Change
32171 parameter to grub_command_execute.
32173 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32174 <grub/reader.h> and <grub/parser.h>.
32175 (grub_load_normal_mode): Execute normal command.
32176 (grub_main): Call grub_register_core_commands,
32177 grub_register_rescue_parser and grub_register_rescue_reader, use
32178 grub_reader_loop to enter input loop.
32180 * kern/parser.c (grub_parser_split_cmdline): Change type of
32182 (grub_parser_class): New variable.
32183 (grub_parser_execute): New function.
32185 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32186 * loader/multiboot2.c: Likewise.
32187 * loader/sparc64/ieee1275/linux.c: Likewise.
32189 * util/grub-emu.c (read_command_list): New dummy function.
32191 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32193 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32194 count to 16 for CCISS and IDA.
32196 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32198 * normal/menu_text.c (grub_wait_after_message): Print a newline
32199 after waiting for user input.
32201 * loader/i386/linux.c: Include `<grub/normal.h>'.
32202 (grub_cmd_linux): Improve the error message about `ask' mode, by
32203 waiting for user input so it's not missed (we can do this, since
32204 user requested interaction).
32206 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32208 Added missing lst to grub-mkrescue
32210 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32211 and ${input_dir}/parttool.lst
32213 2009-04-30 David S. Miller <davem@davemloft.net>
32215 * util/hostdisk.c (device_is_wholedisk): New function.
32216 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32217 zero only if device_is_wholedisk() returns true.
32219 * util/hostdisk.c (convert_system_partition_to_system_disk):
32220 Handle virtual disk devices named /dev/vdiskX as found on sparc
32223 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32224 lettered partition specifier is found, convert to numbered.
32226 2009-04-29 David S. Miller <davem@davemloft.net>
32228 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32229 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32231 * normal/command.c: Add missing newline at end of file.
32233 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32235 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32236 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32237 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32238 ihandles have a 32-bit type but need to be stored in a "void *".
32240 2009-04-28 Pavel Roskin <proski@gnu.org>
32242 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32243 not disk. Adjust all dependencies.
32244 (grub_fs_uuid_close): Use grub_device_close(), not
32247 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32248 parent's partition, don't copy it by reference, as it gets freed
32251 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32253 Preboot hooks support
32255 * commands/boot.c (struct grub_preboot_t): new declaration
32256 (preboots_head): new variable
32257 (preboots_tail): likewise
32258 (grub_loader_register_preboot_hook): new function
32259 (grub_loader_unregister_preboot_hook): likewise
32260 (grub_loader_set): launch preboot hooks
32261 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32262 (grub_loader_register_preboot_hook): new declaration
32263 (grub_loader_unregister_preboot_hook): likewise
32265 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32269 * disk/scsi.c (grub_scsi_open): added missing cast when
32270 calling grub_dprintf
32272 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32274 Bug and warning fixes
32276 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32278 * commands/test.c (test_parse): fixed bug with file tests and corrected
32279 declaration of find_file
32281 2009-04-26 Pavel Roskin <proski@gnu.org>
32283 * Makefile.in: Don't install empty manual pages if help2man is
32284 missing. Use help2man option for output, not shell redirection.
32286 2009-04-26 David S. Miller <davem@davemloft.net>
32288 * util/grub-mkdevicemap.c (make_device_map): Add missing
32289 NESTED_FUNC_ATTR to process_device().
32291 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32295 * commands/test.c: rewritten to use bash-like test
32297 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32299 Parttool autoloading and improvements
32301 * Makefile.in (pkglib_DATA): add parttool.lst
32302 (parttool.lst): new target
32303 * genmk.rb: generate parttool-*
32304 (CLEANFILES): add #{parttool}
32305 (PARTTOOLFILES): new variable
32306 * genparttoollist.sh: new file
32307 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32308 (grub_pcpart_type): likewise
32309 * commands/parttool.c (helpmsg): new variable
32310 (grub_cmd_parttool): output help if not enough arguments are supplied
32312 (GRUB_MOD_INIT(parttool)): use helpmsg
32314 2009-04-24 David S. Miller <davem@davemloft.net>
32316 Avoiding opening same device multiple times in device iterator.
32318 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32319 and use it to build a list of partitions in iterate_disk() and
32320 iterate_partition().
32322 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32325 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32326 grub_devalias_iterate() result instead of unconditional 0.
32327 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32328 Also, capture hook return value, either directly or via
32329 grub_children_iterate(), and propagate to caller.
32330 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32331 grub_children_iterate): Return value is now 'int' instead of
32333 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32334 like a proper iterator, stopping when hooks return non-zero.
32335 (grub_devalias_iterate): Likewise.
32337 2009-04-23 David S. Miller <davem@davemloft.net>
32339 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32341 2009-04-22 David S. Miller <davem@davemloft.net>
32343 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32344 is larger than address_cells, use that value for address_cells too.
32346 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32347 IEEE1275_MAX_PATH_LEN): Define.
32348 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32349 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32350 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32351 'devtype'. Explicitly NULL terminate devalias expansion.
32353 * util/sparc64/ieee1275/misc.c: New file.
32354 * util/sparc64/ieee1275/grub-setup.c: New file.
32355 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32356 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32357 * util/sparc64/ieee1275/grub-install.in: New file.
32358 * util/ieee1275/ofpath.c: New file.
32359 * util/ieee1275/devicemap.c: New file.
32360 * util/devicemap.c: New file.
32361 * util/deviceiter.c: New file.
32362 * kern/sparc64/ieee1275/init.c: New file.
32363 * include/grub/util/ofpath.h: New file.
32364 * include/grub/util/deviceiter.h: New file.
32365 * util/grub-mkdevicemap.c: Include deviceiter.h.
32366 Implement using grub_util_emit_devicemap_entry and
32367 grub_util_iterate_devices.
32368 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32369 util/devicemap.c into grub-mkdevicemap
32370 * conf/i386-efi.rmk: Likewise.
32371 * conf/i386-ieee1275.rmk: Likewise.
32372 * conf/i386-pc.rmk: Likewise.
32373 * conf/powerpc-ieee1275.rmk: Likewise.
32374 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32375 images and installation utilities. Build kernel as image
32376 instead of as elf binary. Use common rules as much as possible.
32378 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32380 Correct GPT definition
32382 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32385 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32387 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32389 2009-04-19 David S. Miller <davem@davemloft.net>
32391 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32392 (grub_rescue_cmd_linux): Rename to...
32393 (grub_cmd_linux): and fix prototype.
32394 (grub_rescue_cmd_initrd): Rename to...
32395 (grub_cmd_initrd): and fix prototype.
32396 (cmd_linux, cmd_initrd): New.
32397 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32398 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32400 2009-04-17 Pavel Roskin <proski@gnu.org>
32402 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32404 (grub_ohci_transfer): Likewise.
32406 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32408 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32409 return without a value. Fix inconsistent indentation.
32411 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32412 match struct grub_fs.
32414 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32415 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32416 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32417 * commands/lspci.c (grub_lspci_iter): Likewise.
32419 2009-04-16 Bean <bean123ch@gmail.com>
32421 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32424 2009-04-15 Pavel Roskin <proski@gnu.org>
32426 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32427 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32428 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32431 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32433 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32434 that no multiple data or metadata areas are supported and `Unknown
32437 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32439 Move loader out of the kernel
32441 * kern/loader.c: moved to ...
32442 * commands/boot.c: ... moved here
32443 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32444 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32445 * include/grub/kernel.h (grub_machine_fini): export
32446 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32447 (grub_loader_set): likewise
32448 (grub_loader_unset): likewise
32449 (grub_loader_boot): likewise
32450 * conf/common.rmk: new module boot.mod
32451 (pkglib_MODULES): add boot.mod
32452 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32453 (grub_emu_SOURCES): likewise
32454 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32455 (grub_emu_SOURCES): likewise
32456 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32457 (grub_emu_SOURCES): likewise
32458 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32459 (grub_emu_SOURCES): likewise
32460 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32461 (grub_emu_SOURCES): likewise
32462 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32463 (grub_emu_SOURCES): likewise
32464 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32465 (grub_emu_SOURCES): likewise
32467 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32469 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32471 * kern/misc.c (grub_itoa): Removed function
32472 (grub_ltoa): likewise
32473 (grub_vsprintf): use grub_lltoa
32475 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32479 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32480 * conf/i386-coreboot.rmk: likewise
32481 * conf/i386-ieee1275.rmk: likewise
32482 * conf/powerpc-ieee1275.rmk: likewise
32484 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32486 * INSTALL: Add that `./autogen.sh' needs to be run before
32489 2009-04-14 Bean <bean123ch@gmail.com>
32491 * Makefile.in (pkglib_DATA): Add handler.lst.
32492 (handler.lst): New rule.
32494 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32495 * conf/i386-coreboot.rmk: Likewise.
32496 * conf/i386-ieee1275.rmk: Likewise.
32497 * conf/i386-efi.rmk: Likewise.
32498 * conf/x86_64-efi.rmk: Likewise.
32499 * conf/powerpc-ieee1275.rmk: Likewise.
32500 * conf/sparc64-ieee1275.rmk: Likewise.
32502 * genhandlerlist.sh: New file.
32504 * genmk.rb: Add rules to generate handler.lst.
32506 * include/grub/normal.h (grub_file_getline): New function definition.
32507 (read_handler_list): Likewise.
32508 (free_handler_list): Likewise.
32510 * include/grub/term.h (grub_term_register_input): Add name parameter
32511 for auto generation of handler.lst.
32512 (grub_term_register_output): Likewise.
32514 * normal/handler.c: New file.
32516 * normal/main.c (get_line): Renamed to grub_file_getline.
32517 (read_config_file): Use the newly renamed grub_file_getline.
32518 (read_command_list): Likewise.
32519 (read_fs_list): Likewise.
32520 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32521 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32523 * term/efi/console.c (grub_console_init): Add name parameter for auto
32524 generation of handler.lst.
32525 * term/gfxterm.c: Likewise.
32526 * term/i386/pc/at_keyboard.c: Likewise.
32527 * term/i386/pc/console.c: Likewise.
32528 * term/i386/pc/serial.c: Likewise.
32529 * term/i386/pc/vesafb.c: Likewise.
32530 * term/i386/pc/vga.c: Likewise.
32531 * term/i386/pc/vga_text.c: Likewise.
32532 * term/ieee1275/ofconsole.c: Likewise.
32533 * term/usb_keyboard.c: Likewise.
32535 2009-04-14 Bean <bean123ch@gmail.com>
32537 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32538 properly with null character.
32540 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32542 * configure: Remove.
32543 * config.h.in: Likewise.
32544 * stamp-h.in: Likewise.
32545 * DISTLIST: Likewise.
32546 * conf/common.mk: Likewise.
32547 * conf/i386-coreboot.mk: Likewise.
32548 * conf/i386-efi.mk: Likewise.
32549 * conf/i386-ieee1275.mk: Likewise.
32550 * conf/i386.mk: Likewise.
32551 * conf/i386-pc.mk: Likewise.
32552 * conf/powerpc-ieee1275.mk: Likewise.
32553 * conf/sparc64-ieee1275.mk: Likewise.
32554 * conf/x86_64-efi.mk: Likewise.
32556 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32559 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32560 David S. Miller <davem@davemloft.net>
32562 * util/hostdisk.c (make_device_name): Fix buffer length
32565 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32567 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32568 <sys/param.h> and <sys/sysctl.h>.
32569 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32570 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32571 opening the device and reset them afterwards.
32573 2009-04-13 Pavel Roskin <proski@gnu.org>
32575 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32576 Reported by John Stanley <jpsinthemix@verizon.net>
32578 2009-04-13 Robert Millan <rmh@aybabtu.com>
32580 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32581 that name for menuentries when appropriate.
32583 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32585 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32587 2009-04-13 Robert Millan <rmh@aybabtu.com>
32589 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32590 to Linux, simply abort telling the user it's no longer supported.
32592 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32594 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32595 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32596 `freebsd_loadenv' only when devices.hints exist.
32598 2009-04-13 Pavel Roskin <proski@gnu.org>
32600 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32602 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32604 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32606 (grub_drive): Likewise.
32608 2009-04-13 David S. Miller <davem@davemloft.net>
32610 * kern/sparc64/ieee1275/ieee1275.c: New file.
32611 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32612 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32613 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32614 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32615 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32616 grub_ieee1275_alloc_physmem): Declare new exported functions.
32618 * include/grub/sparc64/ieee1275/loader.h: New file.
32619 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32620 * include/grub/sparc64/kernel.h: Likewise.
32621 * loader/sparc64/ieee1275/linux.c: Likewise.
32623 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32624 (grub_fstest_SOURCES): Likewise.
32626 * util/hostdisk.c (make_device_name): Do not make any assumptions
32627 about the length of drive names.
32629 * kern/dl.c (grub_dl_load_file): Close file immediately when
32630 we are done using it.
32632 2009-04-12 David S. Miller <davem@davemloft.net>
32634 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32635 values. Noticed by Pavel Roskin.
32637 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32640 * genmk.rb: Add more flexible image type specification, also
32641 pass --strip-unneeded to objcopy.
32642 * conf/i386-pc.rmk: Use *_FORMAT.
32643 * conf/i386-pc.mk: Rebuilt.
32645 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32646 (OFDISK_HASH_SZ): Define.
32647 (ofdisk_hash): New hash table.
32648 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32649 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32650 instead of device phandle which is not unique.
32652 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32653 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32654 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32655 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32656 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32657 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32658 GRUB_KERNEL_MACHINE_DATA_END): Define.
32659 (grub_kernel_image_size, grub_total_module_size): Declare.
32661 2009-04-12 Pavel Roskin <proski@gnu.org>
32663 * configure.ac: Change the logic when we check for target tools.
32664 Do it when the target is specified and it's different from the
32665 specified value of the host.
32667 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32669 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32670 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32671 GNU/kFreeBSD. Check if a device is a character device. Use
32672 DIOCGMEDIASIZE to get the size.
32673 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32674 support for GNU/kFreeBSD.
32675 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32676 is a character device instead of a block device. Add support for
32677 FreeBSD device names.
32679 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32680 is a character device instead of a block device.
32682 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32683 is a character device instead of a block device.
32685 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32687 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32688 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32689 FreeBSD. Check if a device is a character device. Use
32690 DIOCGMEDIASIZE to get the size.
32691 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32692 support for FreeBSD.
32693 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32694 is a character device instead of a block device. Add support for
32695 FreeBSD device names.
32697 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32698 a character device instead of a block device.
32699 (grub_util_check_char_device): New function.
32701 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32702 a character device instead of a block device.
32704 * include/grub/util/getroot.h (grub_util_check_char_device): New
32707 2009-04-11 David S. Miller <davem@davemloft.net>
32709 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32711 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32712 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32713 function, if present.
32714 (__bswapdi2): Likewise.
32716 * include/grub/sparc64/ieee1275/boot.h: New file.
32717 * boot/sparc64/ieee1275/boot.S: Likewise.
32718 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32720 * kern/misc.c (grub_ltoa): New function.
32721 (grub_vsprintf): Use it to format 'long' integers.
32723 2009-04-10 David S. Miller <davem@davemloft.net>
32725 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32726 slots are of type grub_ieee1275_cell_t.
32727 (grub_nand_read): Likewise.
32728 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32729 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32730 macros are used to compare values in arg/ret block of the call.
32731 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32732 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32733 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32734 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32735 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32736 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32737 grub_ieee1275_close, grub_ieee1275_set_property,
32738 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32739 grub_ieee1275_cell_t.
32740 * kern/ieee1275/openfw.c (grub_map): Likewise.
32741 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32742 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32744 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32745 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32746 (grub_devalias_iterate): Likewise.
32748 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32752 * fs/ufs.c (INODE_NBLOCKS): new definition
32753 (struct grub_ufs_dirent): added fields for non-BSD dirents
32754 (grub_ufs_get_file_block): fixed double indirect handling
32755 (grub_ufs_lookup_symlink): use more robust way to determine whether
32757 (grub_ufs_find_file): support for non-BSD dirents
32758 (grub_ufs_dir): support for non-BSD dirents
32760 2009-04-10 Bean <bean123ch@gnail.com>
32762 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32763 attribute, otherwise the size would be wrong for i386 platform.
32765 * include/grub/pci.h (grub_pci_read_word): New inline function.
32766 (grub_pci_read_byte): Likewise.
32767 (grub_pci_write): Likewise.
32768 (grub_pci_write_word): Likewise.
32769 (grub_pci_write_byte): Likewise.
32771 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32773 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32774 (find_framebuf): Scan pci to locate the frame buffer address.
32776 * commands/efi/fixvideo.c: New file.
32778 * commands/efi/loadbios.c: Likewise.
32780 * commands/memrw.c: Likewise.
32782 * util/grub-dumpbios.in: Likewise.
32784 * conf/common.rmk (grub-dumpbios): New utility.
32785 (pkglib_MODULES): New module memrw.mod.
32786 (memrw_mod_SOURCE): New macro.
32787 (memrw_mod_CFLAGS): Likewise.
32788 (memrw_mod_LDFLAGS): Likewise.
32790 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32792 (loadbios_mod_SOURCE): New macro.
32793 (loadbios_mod_CFLAGS): Likewise.
32794 (loadbios_mod_LDFLAGS): Likewise.
32795 (fixvideo_mod_SOURCE): Likewise.
32796 (fixvideo_mod_CFLAGS): Likewise.
32797 (fixvideo_mod_LDFLAGS): Likewise.
32799 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32801 (loadbios_mod_SOURCE): New macro.
32802 (loadbios_mod_CFLAGS): Likewise.
32803 (loadbios_mod_LDFLAGS): Likewise.
32804 (fixvideo_mod_SOURCE): Likewise.
32805 (fixvideo_mod_CFLAGS): Likewise.
32806 (fixvideo_mod_LDFLAGS): Likewise.
32808 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32810 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32812 2009-04-07 David S. Miller <davem@davemloft.net>
32814 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32815 support for R_SPARC_OLO10 relocations. Fix compile warning for
32816 R_SPARC_WDISP30 case.
32817 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32819 2009-04-06 Pavel Roskin <proski@gnu.org>
32821 * include/grub/misc.h (ARRAY_SIZE): New macro.
32822 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32824 * loader/i386/linux.c (allocate_pages): Use free_pages().
32825 (grub_linux_unload): Don't use free_pages().
32826 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32827 wrong index. Treat all other modes as text modes.
32828 (grub_cmd_linux): Initialize vid_mode unconditionally to
32829 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32831 * commands/help.c (print_command_help): Use cmd->prio, not
32832 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32834 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32838 * parttool/pcpart.c: new file
32839 * commands/parttool.c: likewise
32840 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32841 (parttool_mod_SOURCES): new variable
32842 (parttool_mod_CFLAGS): likewise
32843 (parttool_mod_LDFLAGS): likewise
32844 (pcpart_mod_SOURCES): likewise
32845 (pcpart_mod_CFLAGS): likewise
32846 (pcpart_mod_LDFLAGS): likewise
32847 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32848 and parttool/pcpart.c
32849 * conf/i386-efi.rmk: likewise
32850 * conf/i386-ieee1275.rmk: likewise
32851 * conf/i386-pc.rmk: likewise
32852 * conf/powerpc-ieee1275.rmk: likewise
32853 * conf/sparc64-ieee1275.rmk: likewise
32854 * conf/x86_64-ieee1275.rmk: likewise
32856 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32858 Support for mtime and further expandability of dir command
32860 * include/grub/lib/datetime.h: moved to ...
32861 * include/grub/datetime.h: ... moved here and added
32862 declaration of grub_unixtime2datetime. All users updated
32863 * include/grub/fs.h: new syntax for dir and mtime functions in
32865 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32866 and GRUB_FSHELP_FLAGS_MASK
32867 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32868 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32869 (grub_ext2_mtime): new function
32870 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32871 (grub_hfsplus_mtime): new function
32872 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32873 (GRUB_UFS_ATTR_FILE): likewise
32874 (GRUB_UFS_ATTR_LNK): likewise
32875 (struct grub_ufs_sblock): new fields mtime
32876 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32878 (grub_ufs_dir): mtime support
32879 (grub_ufs_mtime): new function
32880 * fs/affs.c (grub_affs_dir): use new dir syntax
32881 * fs/afs.c (grub_afs_dir): likewise
32882 * fs/cpio.c (grub_cpio_dir): likewise
32883 * fs/fat.c (grub_fat_find_dir): likewise
32884 * fs/hfs.c (grub_hfs_dir): likewise
32885 * fs/iso9660.c (grub_iso9660_dir): likewise
32886 * fs/jfs.c (grub_jfs_dir): likewise
32887 * fs/minix.c (grub_minix_dir): likewise
32888 * fs/ntfs.c (grub_ntfs_dir): likewise
32889 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32890 * fs/sfs.c (grub_sfs_dir): likewise
32891 * fs/xfs.c (grub_xfs_dir): likewise
32892 * util/hostfs.c (grub_hostfs_dir): likewise
32893 * lib/datetime.c: moved to ...
32894 * normal/datetime.c: ... moved here
32895 (grub_unixtime2datetime): new function
32896 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32897 * normal/completion.c (iterate_dir): use new dir syntax
32898 * normal/misc.c (grub_normal_print_device_info): tell the
32899 last modification time of a volume
32900 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32901 * conf/common.rmk: added lib/datetime.c to ls.mod
32902 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32903 (normal_mod_SOURCES): likewise
32904 (datetime_mod_SOURCES): Removed lib/datetime.c
32905 * conf/i386-efi.rmk: likewise
32906 * conf/i386-ieee1275.rmk: likewise
32907 * conf/i386-pc.rmk: likewise
32908 * conf/powerpc-ieee1275.rmk: likewise
32909 * conf/sparc64-ieee1275.rmk: likewise
32910 * conf/x86_64-efi.rmk: likewise
32912 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32914 Trim trailing spaces in FAT label and support mtools-like labels
32916 * fs/fat.c (grub_fat_iterate_dir): New function based
32917 on grub_fat_find_dir
32918 (grub_fat_find_dir): use grub_fat_iterate_dir
32919 (grub_fat_label): likewise
32921 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32923 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32925 remove extraneous kernel_elf_HEADERS
32927 2009-04-04 Bean <bean123ch@gnail.com>
32929 * include/grub/util/misc.h: Add dummy function fsync for mingw.
32931 * util/misc.c: Likewise.
32933 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
32935 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
32936 instead of grub_printf.
32938 2009-04-03 Robert Millan <rmh@aybabtu.com>
32940 * loader/i386/linux.c (grub_linux_setup_video): Fill
32941 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
32942 values from `mode info' structure instead of hardcoded
32945 2009-04-01 Pavel Roskin <proski@gnu.org>
32947 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
32949 * genmk.rb: Likewise.
32950 * configure.ac: Likewise.
32952 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
32954 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
32955 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
32957 2009-04-01 David S. Miller <davem@davemloft.net>
32959 * normal/sparc64/setjmp.S: Fix setjmp implementation.
32960 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
32961 (grub_setjmp): Mark with 'returns_twice' attribute.
32962 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
32963 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
32964 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
32966 2009-04-01 Robert Millan <rmh@aybabtu.com>
32968 Reapply fix from 2008-07-28 which was accidentally reverted; also
32969 perform the same fix to a similar check in same function.
32971 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
32972 with the same number are found, just use issue a warning with
32973 grub_dprintf(), as this error has been reported to be non-fatal.
32975 2009-03-31 Pavel Roskin <proski@gnu.org>
32977 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
32978 for cross-compilation.
32980 2009-03-30 Robert Millan <rmh@aybabtu.com>
32982 Fix i386-ieee1275 build.
32984 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
32985 Remove declaration.
32987 2009-03-30 Pavel Roskin <proski@gnu.org>
32989 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
32990 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
32991 zero-terminated, rely only on the strlen value. Fix comparison
32992 of strings differing in length.
32994 2009-03-30 Robert Millan <rmh@aybabtu.com>
32996 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
32997 checking for abi version. Improve error messages on BIOS to notify
32998 user about `linux16' command.
33000 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33004 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33005 in case of collision
33006 * disk/scsi.c (grub_scsi_open): free scsi in case of error
33008 2009-03-29 Robert Millan <rmh@aybabtu.com>
33010 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33011 set `vid_mode' accordingly.
33012 (grub_linux_boot): Process `vid_mode' and set video mode.
33014 2009-03-29 Robert Millan <rmh@aybabtu.com>
33016 * util/grub.d/10_linux.in (linux_entry): New function.
33017 Factorize generation of Linux boot entries.
33019 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33021 Make the format of Environment Block plain text. The boot loader
33022 part is not tested well yet.
33024 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33026 (envblk): Likewise.
33027 (usage): Remove "info" and "clear". Add "unset". Update the
33028 description of "set", as this does not delete variables any
33030 (create_envblk_file): Complete rewrite.
33031 (open_envblk_file): Likewise.
33032 (cmd_info): Removed.
33033 (cmd_list): Likewise.
33034 (cmd_set): Likewise.
33035 (cmd_clear): Likewise.
33036 (list_variables): New function.
33037 (write_envblk): Likewise.
33038 (set_variables): Likewise.
33039 (unset_variables): Likewise.
33040 (main): Complete rewrite.
33042 * commands/loadenv.c (buffer): Removed.
33043 (envblk): Likewise.
33044 (open_envblk_file): New function.
33045 (read_envblk_file): Complete rewrite.
33046 (grub_cmd_load_env): Likewise.
33047 (grub_cmd_list_env): Likewise.
33048 (struct blocklist): New struct.
33049 (free_blocklists): New function.
33050 (check_blocklists): Likewise.
33051 (write_blocklists): Likewise.
33052 (grub_cmd_save_env): Complete rewrite.
33054 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33055 a plain text signature.
33056 (GRUB_ENVBLK_MAXLEN): Removed.
33057 (struct grub_envblk): Complete rewrite.
33058 (grub_envblk_find): Removed.
33059 (grub_envblk_insert): Likewise.
33060 (grub_envblk_open): New prototype.
33061 (grub_envblk_set): Likewise.
33062 (grub_envblk_delete): Put const to VALUE.
33063 (grub_envblk_iterate): Put const to NAME and VALUE.
33064 (grub_envblk_close): New prototype.
33065 (grub_envblk_buffer): New inline function.
33066 (grub_envblk_size): Likewise.
33068 * lib/envblk.c: Include grub/mm.h.
33069 (grub_env_find): Removed.
33070 (grub_envblk_open): New function.
33071 (grub_envblk_close): Likewise.
33072 (escaped_value_len): Likewise.
33073 (find_next_line): Likewise.
33074 (grub_envblk_insert): Removed.
33075 (grub_envblk_set): New function.
33076 (grub_envblk_delete): Complete rewrite.
33077 (grub_envblk_iterate): Likewise.
33079 2009-03-28 Robert Millan <rmh@aybabtu.com>
33081 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33082 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33083 variables. Use 16-bit loader.
33084 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33086 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33087 (grub_linux16_boot): ... this. Update all users.
33088 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33089 (grub_linux_boot): ... this. Update all users.
33091 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33092 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33093 commands to `linux16' and `initrd16'.
33094 (GRUB_MOD_FINI(linux)): Rename to ...
33095 (GRUB_MOD_FINI(linux16)): ... this.
33097 2009-03-24 Pavel Roskin <proski@gnu.org>
33099 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33100 not just for compilation.
33102 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33104 Move multiboot helper out of kernel
33106 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33107 `loader/i386/multiboot_helper.S'.
33108 * conf/i386-coreboot.rmk: Likewise
33109 * conf/i386-ieee1275.rmk: Likewise
33111 * kern/i386/loader.S: Move multiboot helpers from here...
33112 * loader/i386/multiboot_helper.S: ...moved here
33113 * include/grub/i386/loader.h: Move declarations of multiboot
33114 helpers from here...
33115 * include/grub/i386/multiboot.h: ...moved here
33116 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33118 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33120 * kern/env.c (grub_env_context_open): Added an argument to specify
33121 whether a new context inherits exported variables from current
33122 one. This is useful when making a sandbox to interpret a config
33124 All callers updated.
33126 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33128 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33130 * kern/env.c (grub_env_context_close): Fix memory leaks.
33132 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33134 * normal/main.c (grub_normal_execute): Added an argument
33135 BATCH to specify if an interactive interface should be provided
33136 after reading a config file.
33137 All callers updated.
33138 (read_command_list): Prevent being executed twice.
33139 (read_fs_list): Likewise.
33141 * include/grub/normal.h (grub_normal_execute): Updated the
33144 2009-03-22 Pavel Roskin <proski@gno.org>
33146 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33148 * kern/i386/pc/startup.S: Likewise.
33149 * kern/i386/efi/startup.S: Likewise.
33150 * kern/i386/ieee1275/startup.S: Likewise.
33151 * kern/i386/coreboot/startup.S: Likewise.
33152 * kern/x86_64/efi/startup.S: Likewise.
33154 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33155 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33156 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33158 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33160 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33162 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33164 Use vaddr of correct segment for entry_point.
33166 2009-03-21 Bean <bean123ch@gmail.com>
33168 * commands/blocklist.c: Add include file <grub/command.h>, remove
33169 <grub/normal.h> and <grub/arg.h>.
33170 (grub_cmd_blocklist): Use the new command interface.
33171 (GRUB_MOD_INIT): Likewise.
33172 (GRUB_MOD_FINI): Likewise.
33173 * commands/boot.c: Likewise.
33174 * commands/cat.c: Likewise.
33175 * commands/cmp.c: Likewise.
33176 * commands/configfile.c: Likewise.
33177 * commands/crc.c: Likewise.
33178 * commands/echo.c: Likewise.
33179 * commands/halt.c: Likewise.
33180 * commands/handler.c: Likewise.
33181 * commands/hdparm.c: Likewise.
33182 * commands/help.c: Likewise.
33183 * commands/hexdump.c: Likewise.
33184 * commands/loadenv.c: Likewise.
33185 * commands/ls.c: Likewise.
33186 * commands/lsmmap.c: Likewise.
33187 * commands/lspci.c: Likewise.
33188 * commands/loadenv.c: Likewise.
33189 * commands/read.c: Likewise.
33190 * commands/reboot.c: Likewise.
33191 * commands/search.c: Likewise.
33192 * commands/sleep.c: Likewise.
33193 * commands/test.c: Likewise.
33194 * commands/usbtest.c: Likewise.
33195 * commands/videotest.c: Likewise.
33196 * commands/i386/cpuid.c: Likewise.
33197 * commands/i386/pc/halt.c: Likewise.
33198 * commands/i386/pc/play.c: Likewise.
33199 * commands/i386/pc/pxecmd.c: Likewise.
33200 * commands/i386/pc/vbeinfo.c: Likewise.
33201 * commands/i386/pc/vbetest.c: Likewise.
33202 * commands/ieee1275/suspend.c: Likewise.
33203 * disk/loopback.c: Likewise.
33204 * font/font_cmd.c: Likewise.
33205 * hello/hello.c: Likewise.
33206 * loader/efi/appleloader.c: Likewise.
33207 * loader/efi/chainloader.c: Likewise.
33208 * loader/i386/bsd.c: Likewise.
33209 * loader/i386/efi/linux.c: Likewise.
33210 * loader/i386/ieee1275/linux.c: Likewise.
33211 * loader/i386/linux.c: Likewise.
33212 * loader/i386/pc/chainloader.c: Likewise.
33213 * loader/i386/pc/linux.c: Likewise.
33214 * loader/powerpc/ieee1275/linux.c: Likewise.
33215 * loader/multiboot_loader.c: Likewise.
33216 * term/gfxterm.c: Likewise.
33217 * term/i386/pc/serial.c: Likewise.
33218 * term/terminfo.c: Likewise.
33220 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33221 * term/i386/pc/vga.c: Likewise.
33222 * video/readers/jpeg.c: Likewise.
33223 * video/readers/png.c: Likewise.
33224 * video/readers/tga.c: Likewise.
33226 * util/grub-fstest (cmd_loopback): Removed.
33227 (cmd_blocklist): Likewise.
33228 (cmd_ls): Likewise.
33229 (grub_register_command): Likewise.
33230 (grub_unregister_command): Likewise.
33231 (execute_command): Use grub_command_find to locate command and execute
33234 * include/grub/efi/chainloader.h: Removed.
33235 * loader/efi/chainloader_normal.c: Likewise.
33236 * loader/i386/bsd_normal.c: Likewise.
33237 * loader/i386/pc/chainloader_normal.c: Likewise.
33238 * loader/i386/pc/multiboot_normal.c: Likewise.
33239 * loader/linux_normal.c: Likewise.
33240 * loader/multiboot_loader_normal.c: Likewise.
33241 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33243 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33244 and grub_register_command_p1.
33246 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33247 kern/command.c, lib/arg.c and commands/extcmd.c.
33248 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33249 (minicmd_mod_SOURCES): New variable.
33250 (minicmd_mod_CFLAGS): Likewise.
33251 (minicmd_mod_LDFLAGS): Likewise.
33252 (extcmd_mod_SOURCES): Likewise.
33253 (extcmd_mod_CFLAGS): Likewise.
33254 (extcmd_mod_LDFLAGS): Likewise.
33255 (boot_mod_SOURCES): Removed.
33256 (boot_mod_CFLAGS): Likewise.
33257 (boot_mod_LDFLAGS): Likewise.
33259 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33261 (kernel_img_HEADERS): Add command.h.
33262 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33263 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33265 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33266 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33267 remove the corresponding normal mode command.
33268 (normal_mod_SOURCES): Remove normal/arg.c.
33269 * conf/i386-coreboot.rmk: Likewise.
33270 * conf/i386-efi.rmk: Likewise.
33271 * conf/i386-ieee1275.rmk: Likewise.
33272 * conf/powerpc-ieee1275.rmk: Likewise.
33273 * conf/x86_64-efi.rmk: Likewise.
33275 * include/grub/arg.h: Move from here ...
33276 * include/grub/lib/arg.h: ... to here.
33278 * normal/arg.c: Move from here ...
33279 * lib/arg.c: ... to here.
33281 * commands/extcmd.c: New file.
33282 * commands/minicmd.c: Likewise.
33283 * include/grub/command.h: Likewise.
33284 * include/grub/extcmd.h: Likewise.
33285 * kern/command.c: Likewise.
33286 * kern/corecmd.c: Likewise.
33288 * kern/list.c (grub_list_iterate): Return int instead of void.
33289 (grub_list_insert): New function.
33290 (grub_prio_list_insert): Likewise.
33292 * kern/rescue.c (grub_rescue_command): Removed.
33293 (grub_rescue_command_list): Likewise.
33294 (grub_rescue_register_command): Likewise.
33295 (grub_rescue_unregister_command): Likewise.
33296 (grub_rescue_cmd_boot): Move to minicmd.c
33297 (grub_rescue_cmd_help): Likewise.
33298 (grub_rescue_cmd_info): Likewise.
33299 (grub_rescue_cmd_boot): Likewise.
33300 (grub_rescue_cmd_testload): Likewise.
33301 (grub_rescue_cmd_dump): Likewise.
33302 (grub_rescue_cmd_rmmod): Likewise.
33303 (grub_rescue_cmd_lsmod): Likewise.
33304 (grub_rescue_cmd_exit): Likewise.
33305 (grub_rescue_print_devices): Moved to corecmd.c.
33306 (grub_rescue_print_files): Likewise.
33307 (grub_rescue_cmd_ls): Likewise.
33308 (grub_rescue_cmd_insmod): Likewise.
33309 (grub_rescue_cmd_set): Likewise.
33310 (grub_rescue_cmd_unset): Likewise.
33311 (attempt_normal_mode): Use grub_command_find to get normal module.
33312 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33313 commands, remove grub_rescue_register_command calls.
33315 * normal/command.c (grub_register_command): Removed.
33316 (grub_unregister_command): Likewise.
33317 (grub_command_find): Likewise.
33318 (grub_iterate_commands): Likewise.
33319 (rescue_command): Likewise.
33320 (export_command): Moved to corecmd.c.
33321 (set_command): Removed.
33322 (unset_command): Likewise.
33323 (insmod_command): Likewise.
33324 (rmmod_command): Likewise.
33325 (lsmod_command): Likewise.
33326 (grub_command_init): Likewise.
33328 * normal/completion.c (iterate_command): Use cmd->prio to check for
33330 (complete_arguments): Use grub_extcmd_t structure to find options.
33331 (grub_normal_do_completion): Change function grub_iterate_commands to
33332 grub_command_iterate.
33334 * normal/execute.c (grub_script_execute_cmd): No need to parse
33337 * normal/main.c (grub_dyncmd_dispatcher): New function.
33338 (read_command_list): Register unload commands as dyncmd.
33339 (grub_cmd_normal): Use new command interface, register rescue,
33340 unregister normal at entry, register normal, unregister rescue at exit.
33342 * include/grub/list.h (grub_list_test_t): New type.
33343 (grub_list_iterate): Return int instead of void.
33344 (grub_list_insert): New function.
33345 (GRUB_AS_NAMED_LIST_P): New macro.
33346 (GRUB_AS_PRIO_LIST): Likewise.
33347 (GRUB_AS_PRIO_LIST_P): Likewise.
33348 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33349 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33350 (grub_prio_list): New structure.
33351 (grub_prio_list_insert): New function.
33352 (grub_prio_list_remove): New inline function.
33354 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33355 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33356 (GRUB_COMMAND_FLAG_MENU): Likewise.
33357 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33358 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33359 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33360 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33361 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33362 (grub_command): Likewise.
33363 (grub_register_command): Likewise.
33364 (grub_command_find): Likewise.
33365 (grub_iterate_commands): Likewise.
33366 (grub_command_init): Likewise.
33367 (grub_arg_parse): Likewise.
33368 (grub_arg_show_help): Likewise.
33370 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33371 (grub_rescue_unregister_command): Likewise.
33373 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33374 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33375 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33377 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33378 grub_rescue_cmd_initrd.
33379 * include/grub/i386/loader.h: Likewise.
33380 * include/grub/x86_64/loader.h: Likewise.
33382 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33384 2009-03-21 Bean <bean123ch@gmail.com>
33386 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33387 instead of stat in mingw environment.
33389 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33391 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33393 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33396 2009-03-21 Bean <bean123ch@gmail.com>
33398 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33399 out of range error.
33401 2009-03-18 Michel Dänzer <michel@daenzer.net>
33403 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33404 checking inode flags for EXT4_EXTENTS_FLAG.
33406 2009-03-18 Robert Millan <rmh@aybabtu.com>
33408 * loader/i386/linux.c: Include `<grub/video.h>' and
33409 `<grub/i386/pc/vbe.h>'..
33410 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33411 (grub_linux32_boot): Attempt to configure video settings with
33412 grub_linux_setup_video().
33413 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33414 to avoid grub_console_fini() which would step out of graphical mode
33417 2009-03-14 Robert Millan <rmh@aybabtu.com>
33419 Fix build on powerpc.
33420 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33422 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33424 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33425 background image command.
33427 2009-03-12 Colin D Bennett <colin@gibibit.com>
33429 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33430 (grub_gfxterm_putchar): Extract pairs of identical calls to
33431 draw_cursor out of conditional blocks.
33433 2009-03-11 Pavel Roskin <proski@gnu.org>
33435 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33436 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33438 2009-03-11 Robert Millan <rmh@aybabtu.com>
33440 * loader/i386/multiboot_elfxx.c
33441 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33443 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33445 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33448 2009-03-11 Robert Millan <rmh@aybabtu.com>
33450 * loader/i386/multiboot.c (code_size): New variable.
33451 (grub_multiboot): Define offsets by adding to `code_size' rather
33452 than subtracting from `grub_multiboot_payload_size'. Provide
33453 4-byte alignment to MBI and others by increasing
33454 `boot_loader_name_length' appropriately.
33456 * loader/i386/multiboot_elfxx.c
33457 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33459 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33461 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33464 2009-03-08 Robert Millan <rmh@aybabtu.com>
33466 Make loader/i386/linux.c usable on i386-pc again.
33468 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33470 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33473 2009-03-07 Bean <bean123ch@gmail.com>
33475 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33478 2009-03-06 Robert Millan <rmh@aybabtu.com>
33480 Fix display issue on terminals with screen size other than 80x25
33481 (e.g. gfxterm with resolution higher than 640x480).
33483 * normal/main.c (grub_normal_init_page): Display title text in a
33484 position relative to the center of the terminal instead of relying
33485 on a hardcoded offset.
33487 2009-03-04 Robert Millan <rmh@aybabtu.com>
33489 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33492 * Makefile.in (host_kernel): New variable.
33493 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33494 scripts instead of just the windows one.
33495 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33497 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33499 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33501 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33502 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33503 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33504 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33505 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33506 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33508 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33510 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33511 or if there's no space for the disk label and print the partition number on a
33514 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33516 * util/misc.c: Include <time.h>.
33517 (grub_millisleep): New function.
33519 2009-03-04 Bean <bean123ch@gmail.com>
33521 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33522 another option -mno-red-zone.
33524 * commands/handler.c: Change module description.
33526 * kern/handler.c: Add missing space at the end of description line.
33528 * kern/list.c: Likewise.
33530 2009-03-03 Robert Millan <rmh@aybabtu.com>
33532 Move more components to the relocation area, and fix mbi pointer
33533 handling to use the destination rather than the origin (thanks to
33534 Vladimir Serbinenko for spotting).
33536 * loader/i386/multiboot.c (mbi_dest): New variable.
33537 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33538 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33541 2009-03-01 Bean <bean123ch@gmail.com>
33543 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33544 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33545 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33546 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33548 * loader/i386/efi/linux.c (acpi_guid): New variable.
33549 (acpi_guid): Likewise.
33550 (EBDA_SEG_ADDR): New constant.
33551 (LOW_MEM_ADDR): Likewise.
33552 (FAKE_EBDA_SEG): Likewise.
33553 (fake_bios_data): New function.
33554 (grub_linux_boot): Call fake_bios_data.
33556 2009-03-01 Bean <bean123ch@gmail.com>
33558 * commands/terminal.c: Removed.
33560 * commands/handler.c: New file.
33562 * include/grub/list.h: Likewise.
33564 * include/grub/handler.h: Likewise.
33566 * kern/list.c: Likewise.
33568 * kern/handler.c: Likewise.
33570 * kern/term.h: Include header file <grub/handler.h>.
33571 (grub_term_input): Move next field to the beginning.
33572 (grub_term_output): Likewise.
33573 (grub_term_input_class): New variable.
33574 (grub_term_output_class): Likewise.
33575 (grub_term_register_input): Changed to inline function.
33576 (grub_term_register_output): Likewise.
33577 (grub_term_unregister_input): Likewise.
33578 (grub_term_unregister_output): Likewise.
33579 (grub_term_set_current_input): Likewise.
33580 (grub_term_set_current_output): Likewise.
33581 (grub_term_get_current_input): Likewise.
33582 (grub_term_get_current_output): Likewise.
33583 (grub_term_iterate_input): Removed.
33584 (grub_term_iterate_output): Likewise.
33586 * kern/term.c (grub_term_list_input): Removed.
33587 (grub_term_list_output): Likewise.
33588 (grub_term_input_class): New variable.
33589 (grub_term_output_class): Likewise.
33590 (grub_cur_term_input): Change variable as macro.
33591 (grub_cur_term_output): Likewise.
33592 (grub_term_register_input): Removed.
33593 (grub_term_register_output): Likewise.
33594 (grub_term_unregister_input): Likewise.
33595 (grub_term_unregister_output): Likewise.
33596 (grub_term_set_current_input): Likewise.
33597 (grub_term_set_current_output): Likewise.
33598 (grub_term_iterate_input): Likewise.
33599 (grub_term_iterate_output): Likewise.
33600 (grub_term_get_current_input): Likewise.
33601 (grub_term_get_current_output): Likewise.
33603 * util/grub-editenv.c: Include header file <grub/handler.h>.
33604 (grub_term_get_current_input): Removed.
33605 (grub_term_get_current_output): Likewise.
33606 (grub_term_input_class): New variable.
33607 (grub_term_output_class): Likewise.
33609 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33610 (grub_term_get_current_output): Likewise.
33611 (grub_term_input_class): New variable.
33612 (grub_term_output_class): Likewise.
33614 * util/grub-probe.c (grub_term_get_current_input): Removed.
33615 (grub_term_get_current_output): Likewise.
33616 (grub_term_input_class): New variable.
33617 (grub_term_output_class): Likewise.
33619 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33620 (grub_term_get_current_output): Likewise.
33621 (grub_term_input_class): New variable.
33622 (grub_term_output_class): Likewise.
33624 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33625 (terminal_mod_SOURCES): Likewise.
33626 (terminal_mod_CFLAGS): Likewise.
33627 (terminal_mod_LDFLAGS): Likewise.
33629 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33631 (kernel_img_SOURCES): Add list.c and handler.c.
33632 (kernel_img_HEADERS): Add list.h and handler.h.
33634 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33636 (kernel_mod_SOURCES): Add list.c and handler.c.
33637 (kernel_mod_HEADERS): Add list.h and handler.h.
33639 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33641 (kernel_elf_SOURCES): Add list.c and handler.c.
33642 (kernel_elf_HEADERS): Add list.h and handler.h.
33644 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33646 (kernel_elf_SOURCES): Add list.c and handler.c.
33647 (kernel_elf_HEADERS): Add list.h and handler.h.
33649 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33651 (kernel_mod_SOURCES): Add list.c and handler.c.
33652 (kernel_mod_HEADERS): Add list.h and handler.h.
33654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33656 (kernel_elf_SOURCES): Add list.c and handler.c.
33657 (kernel_elf_HEADERS): Add list.h and handler.h.
33659 2009-02-27 Robert Millan <rmh@aybabtu.com>
33661 Factorize elf32 / elf64 code in Multiboot loader. This will
33662 prevent it from getting out of sync again.
33664 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33665 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33666 grub_multiboot_load_elf64): Move from here ...
33667 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33668 grub_multiboot_load_elf): ... to here (new file).
33670 2009-02-27 Robert Millan <rmh@aybabtu.com>
33672 * util/grub.d/10_linux.in: Rename "single-user mode" to
33675 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33677 Don't leak in SCSI code.
33678 * disk/scsi.c (grub_scsi_close): free `scsi'.
33680 2009-02-27 Robert Millan <rmh@aybabtu.com>
33682 * loader/i386/pc/multiboot.c: Move from here ...
33683 * loader/i386/multiboot.c: ... to here. Update all users.
33685 2009-02-27 Robert Millan <rmh@aybabtu.com>
33687 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33688 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33690 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33692 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33695 2009-02-27 Robert Millan <rmh@aybabtu.com>
33697 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33698 `0x' qualifier as 0 when base is specified as parameter).
33700 2009-02-24 Bean <bean123ch@gmail.com>
33702 * configure.ac: Check for -mcmodel=large in x86_64 target.
33704 * include/grub/efi/api.h (efi_call_10): New macro.
33705 (efi_wrap_10): New function.
33707 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33708 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33709 (GRUB_PE32_REL_BASED_LOW): Likewise.
33710 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33711 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33712 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33713 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33714 (GRUB_PE32_REL_BASED_REL): Likewise.
33715 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33716 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33717 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33719 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33722 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33723 (efi_wrap_10): New function.
33725 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33727 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33728 MB/MBP model (NV chipset).
33729 (devdata_devs): Add devpath_5 to the list.
33731 * load/i386/efi/linux.c (video_base): Remove variable.
33732 (RGB_MASK): New macro.
33733 (RGB_MAGIC): Likewise.
33734 (LINE_MIN): Likewise.
33735 (LINE_MAX): Likewise.
33736 (FBTEST_STEP): Likewise.
33737 (FBTEST_COUNT): Likewise.
33738 (fb_list): New variable.
33739 (grub_find_video_card): Remove function.
33740 (find_framebuf): New function.
33741 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33744 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33745 problem for x86_64.
33747 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33749 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33751 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33754 2009-02-22 Robert Millan <rmh@aybabtu.com>
33756 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33757 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33758 in our relocation, instead of using it directly from heap. Also
33759 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33761 2009-02-21 Robert Millan <rmh@aybabtu.com>
33763 Implement USB keyboard support (based on patch by Marco Gerards)
33765 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33766 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33767 (usb_keyboard_mod_LDFLAGS): New variables.
33769 * term/usb_keyboard.c: New file.
33771 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33773 Corrected wrong declaration
33775 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33777 2009-02-14 Christian Franke <franke@computer.org>
33779 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33780 (grub_lspci_iter): Print class code and programming interface byte.
33782 2009-02-14 Christian Franke <franke@computer.org>
33784 * gendistlist.sh: Ignore `.svn' directories.
33786 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33788 * fs/fat.c: Add 2009 to Copyright line.
33790 2009-02-14 Christian Franke <franke@computer.org>
33792 * commands/hdparm.c: New file. Provides `hdparm' command
33793 which sends ATA commands via grub_disk_ata_pass_through ().
33795 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33797 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33798 and <grub/cpu/io.h> to include/grub/ata.h.
33799 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33800 (GRUB_CDROM_SECTOR_SIZE): Remove.
33801 (GRUB_ATA_*): Move to include/grub/ata.h.
33802 (GRUB_ATAPI_*): Likewise.
33803 (enum grub_ata_commands): Likewise.
33804 (enum grub_ata_timeout_milliseconds): Likewise.
33805 (struct grub_ata_device): Likewise.
33806 (grub_ata_regset): Likewise.
33807 (grub_ata_regget): Likewise.
33808 (grub_ata_regset2): Likewise.
33809 (grub_ata_regget2): Likewise.
33810 (grub_ata_check_ready): Likewise.
33811 (grub_ata_wait_not_busy): Remove static, exported in
33812 include/grub/ata.h.
33813 (grub_ata_wait_drq): Likewise.
33814 (grub_ata_pio_read): Likewise.
33816 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33817 function for hdparm.mod.
33819 * include/grub/ata.h: New file, contains declarations from
33821 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33823 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33824 (grub_disk_ata_pass_through): New exported variable.
33826 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33828 2009-02-13 Colin D Bennett <colin@gibibit.com>
33830 Support multiple fallback entries, and provide an API to support
33831 executing default+fallback menu entries. Renamed the `terminal' menu
33834 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33835 variable declaration.
33836 (grub_menu_execute_callback): New structure declaration.
33837 (grub_menu_execute_callback_t): New typedef.
33838 (grub_menu_execute_with_fallback): New function declaration.
33839 (grub_menu_get_entry): Likewise.
33840 (grub_menu_get_timeout): Likewise.
33841 (grub_menu_set_timeout): Likewise.
33843 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33845 * normal/menu.c (grub_wait_after_message): Moved to
33846 `normal/menu_text.c'.
33847 (draw_border): Likewise.
33848 (print_message): Likewise.
33849 (print_entry): Likewise.
33850 (print_entries): Likewise.
33851 (grub_menu_init_page): Likewise.
33852 (get_entry_number): Likewise.
33853 (print_timeout): Likewise.
33854 (run_menu): Likewise.
33855 (grub_menu_execute_entry): Likewise.
33856 (show_text_menu): Likewise.
33857 (get_and_remove_first_entry_number): New function.
33858 (grub_menu_execute_with_fallback): Likewise.
33859 (get_entry): Renamed to ...
33860 (grub_menu_get_entry): .. this and made it global.
33861 (get_timeout): Renamed to ...
33862 (grub_menu_get_timeout): ... this and made it global.
33863 (set_timeout): Renamed to ...
33864 (grub_menu_set_timeout): ... this and made it global.
33865 (grub_normal_terminal_menu_viewer): Renamed to ...
33866 (grub_normal_text_menu_viewer): ... this.
33868 * normal/menu_text.c: New file. Extracted text-menu-specific code
33869 from normal/menu.c.
33871 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33872 (normal_mod_SOURCES): Likewise.
33874 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33875 (normal_mod_SOURCES): Likewise.
33877 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33878 (normal_mod_SOURCES): Likewise.
33880 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33881 (normal_mod_SOURCES): Likewise.
33883 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33884 (normal_mod_SOURCES): Likewise.
33886 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33887 (normal_mod_SOURCES): Likewise.
33889 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33890 (normal_mod_SOURCES): Likewise.
33892 2009-02-11 Robert Millan <rmh@aybabtu.com>
33894 * util/grub.d/00_header.in: Update old reference to `font' command.
33896 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33898 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33900 Based on patch from Javier Martín.
33902 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33904 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33905 to avoid false positives with FAT.
33906 (grub_fstest_SOURCES): Likewise.
33907 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33908 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33909 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33910 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33911 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33912 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33914 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33916 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33917 bpb.version_specific.fat12_or_fat16.fstype and
33918 bpb.version_specific.fat32.fstype.
33920 2009-02-08 Robert Millan <rmh@aybabtu.com>
33922 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33924 2009-02-08 Robert Millan <rmh@aybabtu.com>
33926 * Makefile.in (host_os, host_cpu): New variables.
33927 (target_os): Remove. Update all users.
33929 2009-02-08 Marco Gerards <marco@gnu.org>
33931 * Makefile.in (enable_grub_emu_usb): New variable.
33932 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
33933 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
33934 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
33935 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
33936 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
33937 `usbtest.mod' and `usbms.mod'.
33938 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
33939 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
33940 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
33941 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
33942 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
33945 * disk/usbms.c: New file.
33947 * include/grub/usb.h: Likewise.
33949 * include/grub/usbtrans.h: Likewise.
33951 * include/grub/usbdesc.h: Likewise.
33953 * bus/usb/usbtrans.c: Likewise.
33955 * bus/usb/ohci.c: Likewise.
33957 * bus/usb/uhci.c: Likewise.
33959 * bus/usb/usbhub.c: Likewise.
33961 * bus/usb/usb.c: Likewise.
33963 * commands/usbtest.c: Likewise.
33965 * util/usb.c: Likewise.
33967 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
33969 * configure.ac: Test for libusb presence.
33971 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
33973 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
33975 * kern/mm.c: Add more comments.
33977 2009-02-08 Robert Millan <rmh@aybabtu.com>
33979 Patch from Javier Martín.
33980 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
33981 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
33983 2009-02-08 Robert Millan <rmh@aybabtu.com>
33985 * fs/cpio.c: Split tar functionality to ...
33986 * fs/tar.c: ... here (new file). Update all users.
33988 2009-02-07 Robert Millan <rmh@aybabtu.com>
33990 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
33991 backward-incompatible features.
33993 Based on patch from Javier Martín, with some adjustments.
33995 2009-02-07 Michael Scherer <misc@mandriva.org>
33997 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
33999 2009-02-07 Robert Millan <rmh@aybabtu.com>
34001 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34002 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34003 after the RAID stuff.
34005 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34007 Fixes problem when running vbetest command as reported by
34008 Vladimir Serbinenko <phcoder@gmail.com>.
34010 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34012 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
34014 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34015 /dev/md/NpN style mdraid devices.
34017 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34019 * util/unifont2pff.rb: Remove.
34021 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34023 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34026 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34028 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34029 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34030 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34031 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34033 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34034 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34036 2009-02-02 Christian Franke <franke@computer.org>
34038 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34040 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
34042 * INSTALL: Note that we now require at least autoconf 2.59 and
34043 that LZO is optional.
34045 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34047 Base on patch on bug #24154 created by Tomas Tintera
34048 <trosos@seznam.cz>.
34050 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34052 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34054 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
34055 <bero@arklinux.org>.
34057 * normal/parser.y (script_init): Add missing semicolon.
34059 2009-01-31 Colin D Bennett <colin@gibibit.com>
34061 * normal/main.c: Add include to grub/menu_viewer.h.
34062 (free_menu_entry_classes): Added.
34063 (grub_normal_menu_addentry): Added class property handling.
34064 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34065 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34067 * normal/menu_viewer.c: New file.
34069 * normal/menu.c (run_menu_entry): Renamed to ...
34070 (grub_menu_execute_entry): ... this and made it as global.
34071 (grub_menu_run): Renamed to ...
34072 (show_text_menu): ... this and made it local.
34073 (show_text_menu): Adapt to new function names.
34074 (grub_normal_terminal_menu_viewer): New global variable.
34076 * include/grub/menu.h: New file.
34078 * include/grub/menu_viewer.h: New file.
34080 * include/grub/normal.h: Added include to grub/menu.h.
34081 (grub_menu_entry): Moved to include/grub/menu.h.
34082 (grub_menu_entry_t): Likewise.
34083 (grub_menu): Likewise.
34084 (grub_menu_t): Likewise.
34085 (grub_normal_terminal_menu_viewer): Added.
34086 (grub_menu_execute_entry): Likewise.
34087 (grub_menu_run): Removed.
34089 * DISTLIST: Added include/grub/menu.h.
34090 Added include/grub/menu_viewer.h.
34091 Added normal/menu_viewer.c.
34093 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34095 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34096 arglist for menutitle arguments.
34098 * normal/main.c (grub_normal_menu_addentry): Likewise.
34100 * normal/parser.y (menuentry): Likewise.
34102 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34104 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34105 (grub_script_create_cmdmenu): Likewise.
34107 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34109 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34112 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34114 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34116 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34118 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34120 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34122 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34124 2009-01-30 Christian Franke <franke@computer.org>
34126 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34127 in option help text.
34129 2009-01-27 Pavel Roskin <proski@gnu.org>
34131 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34133 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34135 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34137 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34139 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34140 unregister function.
34142 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34144 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34146 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34148 * util/grub-mkfont.c (usage): Fix typo.
34150 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34152 2009-01-26 Daniel Mierswa <impulze@impulze.org>
34154 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34156 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34158 * kern/misc.c (grub_strcasecmp): New function.
34159 (grub_strcasecmp): Use grub_size_t instead of int for length.
34161 * include/grub/misc.h: Update function prototypes.
34163 2009-01-26 Robert Millan <rmh@aybabtu.com>
34165 * configure.ac: Fix cross-compilation check.
34167 2009-01-22 Christian Franke <franke@computer.org>
34169 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34170 (precision) digit string. Allow `.format2' without `format1' (width).
34171 Limit input chars for `%s' output to `format2' if specified. This is
34172 compatible with standard printf ().
34174 2009-01-22 Christian Franke <franke@computer.org>
34176 * disk/ata.c (grub_ata_wait_status): Replace by ...
34177 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34178 other status bits may be invalid while BSY is asserted.
34179 (grub_ata_check_ready): New function.
34180 (grub_ata_cmd): Removed.
34181 (grub_ata_wait_drq): New function.
34182 (grub_ata_strncpy): Remove inline.
34183 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34184 and error check now done by grub_ata_wait_drq ().
34185 (grub_ata_pio_write): Likewise.
34186 (grub_atapi_identify): Set DEV before check for !BSY. Use
34187 grub_ata_wait_drq () to wait for data.
34188 (grub_ata_device_initialize): Add status register check to
34189 detect missing SATA slave devices. Add debug messages.
34190 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34191 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34192 transfer loop by grub_ata_pio_write ().
34193 (grub_ata_identify): Set DEV before check for !BSY. Use
34194 grub_ata_wait_drq () to wait for data.
34195 (grub_ata_setaddress): Set DEV before check for !BSY.
34196 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34197 read/write in one loop. Fix invalid command on write. Fix incomplete
34198 command on (size % batch) == 0. Add missing error check after write of
34199 last block. Add debug messages.
34200 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34202 2009-01-19 Christian Franke <franke@computer.org>
34204 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34205 (GRUB_ATAPI_IREASON_*): Likewise.
34206 (grub_ata_pio_write): Fix timeout error return.
34207 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34208 (grub_atapi_wait_drq): New function.
34209 (grub_atapi_packet): New parameter `size'.
34210 Use grub_atapi_wait_drq () and direct write instead of
34211 grub_ata_pio_write ().
34212 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34213 reads the number of bytes requested by the device for each DRQ
34215 (grub_atapi_write): Remove old implementation, return not
34216 implemented instead.
34218 2009-01-19 Christian Franke <franke@computer.org>
34220 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34221 of 512 to calculate data size.
34222 (grub_scsi_read12): Likewise.
34223 (grub_scsi_write10): Likewise.
34224 (grub_scsi_write12): Likewise.
34225 (grub_scsi_read): Adjust size according to blocksize.
34226 Add checks for invalid blocksize and unaligned transfer.
34228 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34230 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34232 * term/gfxterm.c (write_char): Fix background rendering for wide
34235 2009-01-19 Robert Millan <rmh@aybabtu.com>
34237 * config.guess: Update to latest version from config git.
34238 * config.sub: Likewise.
34240 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
34242 * Makefile.in: Change font compilation to use new grub-mkfont instead
34245 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34246 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34247 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34248 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34249 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34250 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34251 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34252 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34253 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34255 2009-01-16 Christian Franke <franke@computer.org>
34257 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34258 (enum grub_ata_timeout_milliseconds): New enum.
34259 (grub_ata_wait_status): Add parameter milliseconds.
34260 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34261 recovery from timed-out commands.
34262 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34263 return grub_errno instead of REG_ERROR.
34264 (grub_ata_pio_write): Add parameter milliseconds.
34265 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34266 Pass milliseconds to grub_ata_wait_status () and
34267 grub_ata_pio_read ().
34268 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34269 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34270 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34271 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34272 It is not suitable for device detection, because DEV bit is ignored,
34273 the command may run too long, and not all devices set the signature
34275 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34276 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34277 Fix device selection, DEV bit must be set first to address the registers
34278 of the correct device.
34279 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34280 grub_ata_pio_read/write ().
34281 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34282 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34284 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34286 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34288 2009-01-13 Bean <bean123ch@gmail.com>
34290 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34292 2009-01-13 Bean <bean123ch@gmail.com>
34294 * Makefile.in: (enable_grub_mkfont): New variable.
34295 (freetype_cflags): Likewise.
34296 (freetype_libs): Likewise.
34298 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34299 (grub_mkfont_SOURCES): New variable.
34300 (grub_mkfont_CFLAGS): Likewise.
34301 (grub_mkfont_LDFLAGS): Likewise.
34303 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34304 library if `--enable-grub-mkfont' is requested.
34305 (enable_grub_mkfont): New variable.
34306 (freetype_cflags): Likewise.
34307 (freetype_libs): Likewise.
34309 * util/grub-mkfont.c: New file.
34311 2009-01-12 Christian Franke <franke@computer.org>
34313 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34314 mode check. Fix setting of compat_use[].
34316 2009-01-10 Robert Millan <rmh@aybabtu.com>
34318 Update a few copyright years which we forgot to do in 2008 (only for
34319 files whose changes made in 2008 were copyright-significant)
34321 * Makefile.in: Add 2008 to Copyright line.
34322 * disk/ieee1275/ofdisk.c: Likewise.
34323 * disk/efi/efidisk.c: Likewise.
34324 * kern/dl.c: Likewise.
34325 * kern/sparc64/ieee1275/init.c: Likewise.
34326 * kern/mm.c: Likewise.
34327 * kern/efi/mm.c: Likewise.
34328 * boot/i386/pc/boot.S: Likewise.
34329 * genfslist.sh: Likewise.
34330 * fs/iso9660.c: Likewise.
34331 * fs/hfs.c: Likewise.
34332 * fs/jfs.c: Likewise.
34333 * fs/minix.c: Likewise.
34334 * fs/ufs.c: Likewise.
34335 * gensymlist.sh.in: Likewise.
34336 * genkernsyms.sh.in: Likewise.
34337 * include/grub/misc.h: Likewise.
34338 * include/grub/types.h: Likewise.
34339 * include/grub/symbol.h: Likewise.
34340 * include/grub/elf.h: Likewise.
34341 * include/grub/kernel.h: Likewise.
34342 * include/grub/disk.h: Likewise.
34343 * include/grub/dl.h: Likewise.
34344 * include/grub/i386/linux.h: Likewise.
34345 * include/grub/i386/pc/biosdisk.h: Likewise.
34346 * include/grub/efi/api.h: Likewise.
34347 * include/grub/efi/pe32.h: Likewise.
34348 * include/grub/util/misc.h: Likewise.
34349 * normal/execute.c: Likewise.
34350 * normal/arg.c: Likewise.
34351 * normal/completion.c: Likewise.
34352 * normal/lexer.c: Likewise.
34353 * normal/parser.y: Likewise.
34354 * normal/misc.c: Likewise.
34355 * commands/i386/pc/vbeinfo.c: Likewise.
34356 * commands/hexdump.c: Likewise.
34357 * commands/terminal.c: Likewise.
34358 * commands/ls.c: Likewise.
34359 * commands/help.c: Likewise.
34360 * partmap/pc.c: Likewise.
34361 * loader/efi/chainloader.c: Likewise.
34362 * loader/multiboot_loader.c: Likewise.
34363 * loader/i386/pc/multiboot2.c: Likewise.
34364 * term/efi/console.c: Likewise.
34365 * term/i386/pc/serial.c: Likewise.
34366 * util/lvm.c: Likewise.
34367 * util/console.c: Likewise.
34368 * util/i386/efi/grub-mkimage.c: Likewise.
34369 * util/raid.c: Likewise.
34371 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34373 * commands/videotest.c: Removed include to grub/machine/memory.h.
34375 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34376 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34377 (video_mod_SOURCES): Removed.
34378 (video_mod_CFLAGS): Likewise.
34379 (video_mod_LDFLAGS): Likewise.
34380 (gfxterm_mod_SOURCES): Likewise.
34381 (gfxterm_mod_CFLAGS): Likewise.
34382 (gfxterm_mod_LDFLAGS): Likewise.
34383 (videotest_mod_SOURCES): Likewise.
34384 (videotest_mod_CFLAGS): Likewise.
34385 (videotest_mod_LDFLAGS): Likewise.
34386 (bitmap_mod_SOURCES): Likewise.
34387 (bitmap_mod_CFLAGS): Likewise.
34388 (bitmap_mod_LDFLAGS): Likewise.
34389 (tga_mod_SOURCES): Likewise.
34390 (tga_mod_CFLAGS): Likewise.
34391 (tga_mod_LDFLAGS): Likewise.
34392 (jpeg_mod_SOURCES): Likewise.
34393 (jpeg_mod_CFLAGS): Likewise.
34394 (jpeg_mod_LDFLAGS): Likewise.
34395 (png_mod_SOURCES): Likewise.
34396 (png_mod_CFLAGS): Likewise.
34397 (png_mod_LDFLAGS): Likewise.
34399 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34400 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34401 (video_mod_SOURCES): Added.
34402 (video_mod_CFLAGS): Likewise.
34403 (video_mod_LDFLAGS): Likewise.
34404 (videotest_mod_SOURCES): Likewise.
34405 (videotest_mod_CFLAGS): Likewise.
34406 (videotest_mod_LDFLAGS): Likewise.
34407 (bitmap_mod_SOURCES): Likewise.
34408 (bitmap_mod_CFLAGS): Likewise.
34409 (bitmap_mod_LDFLAGS): Likewise.
34410 (tga_mod_SOURCES): Likewise.
34411 (tga_mod_CFLAGS): Likewise.
34412 (tga_mod_LDFLAGS): Likewise.
34413 (jpeg_mod_SOURCES): Likewise.
34414 (jpeg_mod_CFLAGS): Likewise.
34415 (jpeg_mod_LDFLAGS): Likewise.
34416 (png_mod_SOURCES): Likewise.
34417 (png_mod_CFLAGS): Likewise.
34418 (png_mod_LDFLAGS): Likewise.
34419 (gfxterm_mod_SOURCES): Likewise.
34420 (gfxterm_mod_CFLAGS): Likewise.
34421 (gfxterm_mod_LDFLAGS): Likewise.
34423 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34424 grub/machine/console.h.
34426 2009-01-04 Jerone Young <jerone@gmail.com>
34428 Make on screen instructions clearer
34430 Based on patch created by Jidanni <jidanni@jidanni.org>
34432 * normal/menu.c: print clearer instructions on the screen
34434 2009-01-02 Colin D Bennett <colin@gibibit.com>
34438 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34439 build system and fixed gfxterm.c to work with different sized fonts.
34441 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34443 * configure: Re-generated.
34445 * DISTLIST: Removed font/manager.c.
34447 Added font/font_cmd.c.
34449 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34452 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34454 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34456 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34458 * normal/menu.c: Likewise.
34460 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34461 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34463 * include/grub/font.h: Replaced with new file.
34465 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34466 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34467 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34468 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34469 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34470 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34471 fg_red, fg_green, fg_blue, fg_alpha.
34472 (grub_video_adapter): Removed blit_glyph.
34473 (grub_video_blit_glyph): Removed.
34475 * font/manager.c: Removed file.
34477 * font/font.c: New file.
34479 * font/font_cmd.c: Likewise.
34481 * video/video.c (grub_video_blit_glyph): Removed.
34483 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34484 (grub_video_vbe_map_rgba): Likewise.
34485 (grub_video_vbe_unmap_color_int): Likewise.
34486 (grub_video_vbe_blit_glyph): Removed.
34487 (grub_video_vbe_adapter): Removed blit_glyph.
34489 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34490 (get_pixel): Likewise.
34491 (set_pixel): Likewise.
34493 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34495 * term/gfxterm.c: Adapted to new font engine.
34497 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34499 * term/i386/pc/vga.c: Likewise.
34501 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34503 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34505 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34507 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34509 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34511 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34513 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34515 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34517 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34519 * util/grub.d/00_header.in: Changed to use new loadfont command.
34521 * util/grub-mkconfig_lib.in: Changed font extension.
34523 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34525 * util/getroot.c (grub_util_get_grub_dev): Add support for
34526 /dev/md/dNNpNN style partitionable mdraid devices.
34528 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34530 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34531 at a time limit of the PXE TFTP API correctly.
34532 (grub_pxefs_close): Likewise.
34534 2008-11-29 Robert Millan <rmh@aybabtu.com>
34536 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34537 grub_ata_device_initialize() calls.
34539 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34541 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34543 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34545 2008-11-28 Robert Millan <rmh@aybabtu.com>
34547 Fix build on powerpc-ieee1275. Based on patch created by
34548 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34549 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34550 `kern/ieee1275/mmap.c'.
34551 * include/grub/powerpc/ieee1275/memory.h: New file.
34553 Provide grub-install on coreboot.
34554 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34555 (grub_install_SOURCES): New variable.
34556 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34557 usable on coreboot.
34559 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34561 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34562 to `grub_term_input_t'.
34563 (grub_term_get_current_output): Change return type to
34564 `grub_term_output_t'.
34566 2008-11-22 Robert Millan <rmh@aybabtu.com>
34568 Fix breakage on coreboot due to declaration mismatch.
34569 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34570 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34571 grub_vga_text_cls().
34573 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34574 comments. Avoid copying one more byte than necessary (just in case).
34576 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34577 to 0x200000 (avoids trouble with some OFW implementations, and matches
34578 with the one in Yaboot).
34579 Reported by Manoel Abranches
34581 2008-11-20 Robert Millan <rmh@aybabtu.com>
34583 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34584 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34586 * util/grub-mkconfig_lib.in (grub_warn): New function.
34587 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34588 warnings, to obtain consistent formatting.
34589 * util/grub.d/00_header.in: Likewise.
34590 * util/update-grub_lib.in: Likewise.
34592 * loader/i386/linux.c (allocate_pages): Fix a warning.
34593 Move comment text to `#error' stanza.
34595 Harmonize ieee1275's grub_available_iterate() with the generic
34596 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34597 build problem on i386-ieee1275):
34598 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34599 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34600 parameter `type'. Update all users of this function.
34601 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34602 `kern/ieee1275/mmap.c'.
34603 * kern/ieee1275/init.c
34604 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34606 (grub_machine_mmap_iterate): ... this.
34607 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34608 return type to `grub_err_t'. Update all implementations of this
34609 function prototype.
34610 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34613 Add `lsmmap' command (lists firmware-provided memory map):
34614 * commands/lsmmap.c: New file.
34615 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34616 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34618 * conf/powerpc-ieee1275.rmk: Likewise.
34619 * conf/i386-coreboot.rmk: Likewise.
34620 * conf/i386-ieee1275.rmk: Likewise.
34622 2008-11-19 Robert Millan <rmh@aybabtu.com>
34624 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34625 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34626 constraints to initrd allocation (based on code from
34627 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34628 for Linux to find it.
34630 2008-11-14 Robert Millan <rmh@aybabtu.com>
34632 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34633 order to cope with duplicate slashes.
34635 2008-11-14 Robert Millan <rmh@aybabtu.com>
34637 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34638 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34639 don't want to mess with lower memory, because it is used in the Linux
34642 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34643 an appropriate place in lower memory, between 0x10000 and 0x90000,
34644 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34645 is in our heap (probably as a result of it being corrupted during
34646 decompression). Add #error instance with comment to explain why this
34647 loader isn't currently usable on PC/BIOS.
34649 2008-11-14 Robert Millan <rmh@aybabtu.com>
34651 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34652 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34654 2008-11-12 Robert Millan <rmh@aybabtu.com>
34656 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34658 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34659 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34661 * include/grub/i386/pc/memory.h: ... to here.
34663 2008-11-12 Robert Millan <rmh@aybabtu.com>
34665 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34668 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34669 (grub_console_cur_color, grub_console_real_putchar)
34670 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34671 (grub_console_setcolorstate, grub_console_setcolor)
34672 (grub_console_getcolor): Move from here ...
34673 * include/grub/i386/vga_common.h: ... to here (new file).
34675 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34676 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34677 `<grub/i386/io.h>'.
34678 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34679 `<grub/i386/vga_common.h>'.
34681 2008-11-12 Robert Millan <rmh@aybabtu.com>
34683 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34684 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34685 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34687 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34688 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34690 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34691 grub_console_init() with call to grub_vga_text_init().
34692 (grub_machine_fini): Replace call to
34693 grub_console_fini() with call to grub_vga_text_fini() and
34694 grub_at_keyboard_fini().
34696 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34697 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34698 (grub_console_setcolorstate, grub_console_setcolor)
34699 (grub_console_getcolor): New function prototypes.
34701 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34702 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34703 (grub_vga_text_setcursor): Static-ize.
34704 (grub_vga_text_term): New structure.
34705 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34707 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34708 (grub_console_cur_color, grub_console_standard_color)
34709 (grub_console_normal_color, grub_console_highlight_color)
34710 (map_char, grub_console_putchar, grub_console_getcharwidth)
34711 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34712 (grub_console_getcolor): Move from here ...
34713 * term/i386/vga_common.c: ... to here (same function names).
34715 2008-11-12 Robert Millan <rmh@aybabtu.com>
34717 Use newly-added Multiboot support in coreboot.
34719 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34720 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34722 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34723 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34724 (codestart): Store the MBI in `startup_multiboot_info' when we're
34725 being loaded using Multiboot.
34727 * kern/i386/coreboot/init.c (grub_machine_init): Move
34728 grub_at_keyboard_init() call to beginning of function (useful for
34729 debugging). Call grub_machine_mmap_init() before attempting to use
34730 grub_machine_mmap_iterate().
34731 (grub_lower_mem, grub_upper_mem): Move from here ...
34732 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34735 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34736 function prototype.
34738 2008-11-12 Robert Millan <rmh@aybabtu.com>
34740 Fix a regression introduced by the at_keyboard.mod split. Because
34741 some terminals are default on some platforms and non-default on
34742 others, the first terminal being registered determines which is
34743 going to be default.
34745 * kern/term.c (grub_term_register_input): If this is the first
34746 terminal being registered, set it as the current one.
34747 (grub_term_register_output): Likewise.
34749 * term/efi/console.c (grub_console_init): Do not call
34750 grub_term_set_current_output() or grub_term_set_current_input().
34751 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34752 * term/i386/pc/console.c (grub_console_init): Likewise.
34753 (grub_console_fini): Do not call grub_term_set_current_input()
34754 (but leave grub_term_set_current_output() to restore text mode).
34756 2008-11-10 Robert Millan <rmh@aybabtu.com>
34758 * util/grub.d/00_header.in: Add backward compatibility check for
34759 versions of terminal.mod that don't understand `terminal_input' or
34762 2008-11-09 Robert Millan <rmh@aybabtu.com>
34764 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34765 `terminal_input' / `terminal_output', not `terminal'.
34767 2008-11-08 Robert Millan <rmh@aybabtu.com>
34769 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34770 (DISTCLEANFILES): Add `build_env.mk'.
34772 2008-11-08 Robert Millan <rmh@aybabtu.com>
34774 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34775 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34776 members. Update all users.
34777 * util/console.c (grub_ncurses_term): Split in ...
34778 (grub_ncurses_term_input): ... this, and ...
34779 (grub_ncurses_term_output): ... this. Update all users.
34780 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34782 2008-11-08 Robert Millan <rmh@aybabtu.com>
34784 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34785 (PKGDATA): Add $(pkgdata_SRCDIR).
34786 (pkglib_BUILDDIR): New variable.
34787 (pkgdata_SRCDIR): New variable.
34788 (build_env.mk): New target.
34789 (include_DATA): New variable.
34790 (install-local): Install $(include_DATA) files in $(includedir).
34792 2008-11-07 Pavel Roskin <proski@gnu.org>
34794 * gendistlist.sh: Use C locale for sorting to ensure consistent
34795 output on all systems.
34797 * util/grub.d/00_header.in: Remove incorrect space before
34800 2008-11-07 Robert Millan <rmh@aybabtu.com>
34802 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34804 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34805 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34806 (based on find_multi_boot1_header).
34807 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34808 using find_multi_boot2_header(), and abort if neither Multiboot or
34809 Multiboot headers were found.
34811 2008-11-07 Robert Millan <rmh@aybabtu.com>
34813 Modularize at_keyboard.mod:
34815 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34816 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34817 (at_keyboard_mod_LDFLAGS): New variables.
34819 Actual terminal split:
34821 * include/grub/term.h (struct grub_term): Split in ...
34822 (struct grub_term_input): ... this, and ...
34823 (struct grub_term_output): ... this. Update all users.
34824 (grub_term_set_current): Split in ...
34825 (grub_term_set_current_input): ... this, and ...
34826 (grub_term_set_current_output): ... this.
34827 (grub_term_get_current): Split in ...
34828 (grub_term_get_current_input): ... this, and ...
34829 (grub_term_get_current_output): ... this.
34830 (grub_term_register): Split in ...
34831 (grub_term_register_input): ... this, and ...
34832 (grub_term_register_output): ... this.
34833 (grub_term_unregister): Split in ...
34834 (grub_term_unregister_input): ... this, and ...
34835 (grub_term_unregister_output): ... this.
34836 (grub_term_iterate): Split in ...
34837 (grub_term_iterate_input): ... this, and ...
34838 (grub_term_iterate_output): ... this.
34840 * kern/term.c (grub_term_list): Split in ...
34841 (grub_term_list_input): ... this, and ...
34842 (grub_term_list_output): ... this. Update all users.
34843 (grub_cur_term): Split in ...
34844 (grub_cur_term_input): ... this, and ...
34845 (grub_cur_term_output): ... this. Update all users.
34846 (grub_term_set_current): Split in ...
34847 (grub_term_set_current_input): ... this, and ...
34848 (grub_term_set_current_output): ... this.
34849 (grub_term_get_current): Split in ...
34850 (grub_term_get_current_input): ... this, and ...
34851 (grub_term_get_current_output): ... this.
34852 (grub_term_register): Split in ...
34853 (grub_term_register_input): ... this, and ...
34854 (grub_term_register_output): ... this.
34855 (grub_term_unregister): Split in ...
34856 (grub_term_unregister_input): ... this, and ...
34857 (grub_term_unregister_output): ... this.
34858 (grub_term_iterate): Split in ...
34859 (grub_term_iterate_input): ... this, and ...
34860 (grub_term_iterate_output): ... this.
34862 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34863 a check for input and one for output (and only attempt to get keys
34864 from user when input works).
34866 * util/grub-probe.c (grub_term_get_current): Split in ...
34867 (grub_term_get_current_input): ... this, and ...
34868 (grub_term_get_current_output): ... this.
34869 * util/grub-fstest.c: Likewise.
34870 * util/i386/pc/grub-setup.c: Likewise.
34871 * util/grub-editenv.c: Likewise.
34873 Portability adjustments:
34875 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34876 `term/i386/pc/at_keyboard.c'.
34877 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34878 grub_keyboard_controller_init() (now handled by terminal .init).
34879 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34880 grub_at_keyboard_init().
34881 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34882 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34883 at_keyboard.mod via input terminal interface).
34884 * include/grub/i386/coreboot/console.h: Convert into a stub for
34885 `<grub/i386/pc/console.h>'.
34887 Migrate full terminals to new API:
34889 * term/efi/console.c (grub_console_term): Split into ...
34890 (grub_console_term_input): ... this, and ...
34891 (grub_console_term_output): ... this. Update all users.
34892 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34893 (grub_ofconsole_init): Split into ...
34894 (grub_ofconsole_init_input): ... this, and ...
34895 (grub_ofconsole_init_output): ... this.
34896 (grub_ofconsole_term): Split into ...
34897 (grub_ofconsole_term_input): ... this, and ...
34898 (grub_ofconsole_term_output): ... this. Update all users.
34899 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34900 (grub_serial_term_input): ... this, and ...
34901 (grub_serial_term_output): ... this. Update all users.
34902 * term/i386/pc/console.c (grub_console_term): Split into ...
34903 (grub_console_term_input): ... this, and ...
34904 (grub_console_term_output): ... this. Update all users.
34905 (grub_console_term_input): Only enable it on PC/BIOS platform.
34906 (grub_console_init): Remove grub_keyboard_controller_init() call.
34908 Migrate input terminals to new API:
34910 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34911 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34912 i386-specific anyway).
34913 (grub_console_checkkey): Rename to ...
34914 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34916 (grub_keyboard_controller_orig): New variable.
34917 (grub_console_getkey): Rename to ...
34918 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34920 (grub_keyboard_controller_init): Static-ize. Save original
34921 controller value so that it can be restored ...
34922 (grub_keyboard_controller_fini): ... here (new function).
34923 (grub_at_keyboard_term): New structure.
34924 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34927 Migrate output terminals to new API:
34929 * term/i386/pc/vga.c (grub_vga_term): Change type to
34930 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34931 members. Update all users.
34932 * term/gfxterm.c (grub_video_term): Change type to
34933 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34934 members. Update all users.
34935 * include/grub/i386/pc/console.h (grub_console_checkkey)
34936 (grub_console_getkey): Do not export (no longer needed by gfxterm,
34939 Migrate `terminal' command and userland tools to new API:
34941 * commands/terminal.c (grub_cmd_terminal): Split into ...
34942 (grub_cmd_terminal_input): ... this, and ...
34943 (grub_cmd_terminal_output): ... this.
34944 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
34945 `terminal_input' and `terminal_output'.
34946 * util/grub.d/00_header.in: Adjust `terminal' calls to new
34947 `terminal_input' / `terminal_output' API.
34948 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
34949 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
34950 provided ${GRUB_TERMINAL}, convert it).
34952 2008-11-04 Robert Millan <rmh@aybabtu.com>
34954 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
34956 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
34958 2008-11-03 Bean <bean123ch@gmail.com>
34960 * kern/elf.c (grub_elf32_load): Revert to previous code.
34961 (grub_elf64_load): Likewise.
34963 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
34965 2008-11-01 Robert Millan <rmh@aybabtu.com>
34967 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
34968 (TARGET_CPPFLAGS): Likewise.
34969 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
34971 2008-11-01 Carles Pina i Estany <carles@pina.cat>
34973 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
34975 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34977 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
34978 addition of objects until the code is not going to be able to fail.
34980 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
34982 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
34983 (add a missing NULL check, and correct them by moving the pointer
34984 operations after the actual check).
34986 2008-10-29 Robert Millan <rmh@aybabtu.com>
34988 * util/i386/pc/grub-install.in: Handle empty string as output from
34989 make_system_path_relative_to_its_root().
34991 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
34993 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
34994 circular metadata worst case scenario. If the metadata is circular
34995 then copy the wrap in place.
34996 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
34997 project lib/format_text/layout.h
34998 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35000 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35002 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
35004 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35006 * util/update-grub_lib.in: Mention filename in warning message.
35008 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35010 * NEWS: Update for rename of update-grub to grub-mkconfig.
35012 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35014 * util/update-grub_lib.in: Copy to ...
35015 * util/grub-mkconfig_lib.in: ... this. Update all users.
35016 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
35017 * util/update-grub.in: Rename to ...
35018 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35019 option. Add `--output' option to allow users to specify the generated
35020 configuration file. Default to stdout.
35021 (update_grub_dir): Rename to ...
35022 (grub_mkconfig_dir): ... this.
35023 (grub_cfg): Default to an empty string.
35024 * conf/common.rmk (update-grub): Rename to ...
35025 (grub-mkconfig): ... this.
35026 (update-grub_lib): Copy to ...
35027 (grub-mkconfig_lib): ... this.
35028 (update-grub_SCRIPTS): Copy to ...
35029 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35030 (update-grub_DATA): Rename to ...
35031 (grub-mkconfig_DATA): ... this.
35033 2008-09-28 Robert Millan <rmh@aybabtu.com>
35035 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35036 to `modified'. Add the real `created' field.
35037 (grub_iso9660_uuid): Use `modified' rather than `created' for
35038 constructing the UUID.
35040 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
35042 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35043 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35045 2008-09-28 Bean <bean123ch@gmail.com>
35047 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35048 Thanks to Christian Franke for finding this bug.
35050 2008-09-25 Robert Millan <rmh@aybabtu.com>
35052 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35053 instances of grub_util_get_disk_name() (see previous commit).
35055 2008-09-25 Robert Millan <rmh@aybabtu.com>
35057 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35058 `util/i386/get_disk_name.c'.
35059 * conf/i386-efi.rmk: Likewise.
35060 * conf/x86_64-efi.rmk: Likewise.
35061 * conf/i386-coreboot.rmk: Likewise.
35062 * conf/i386-ieee1275.rmk: Likewise.
35063 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35064 `util/ieee1275/get_disk_name.c'.
35065 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35066 * util/ieee1275/get_disk_name.c: Remove file.
35067 * util/i386/get_disk_name.c: Remove file.
35068 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35069 "hd%d" for device.map entries, rather than using
35070 grub_util_get_disk_name().
35072 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35074 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35076 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35078 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35080 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35082 (GRUB_TERM_PPAGE): Changed to 0x4900.
35084 2008-09-24 Robert Millan <rmh@aybabtu.com>
35086 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35087 macros (they were i386-pc specific).
35088 * include/grub/sparc64/ieee1275/console.h: Likewise.
35089 * include/grub/efi/console.h: Likewise.
35091 2008-09-22 Bean <bean123ch@gmail.com>
35093 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35094 resident and in attribute list.
35096 * include/grub/ntfs.h (BMP_LEN): Removed.
35098 2008-09-22 Bean <bean123ch@gmail.com>
35100 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
35101 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35103 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35104 error occurs, as grub_disk_open will call grub_disk_close, which will
35105 call p->close (scsi).
35107 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35109 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35110 (AC_PREREQ): Bumped to 2.59.
35111 (AC_TRY_COMPILE): Replace obsolete macro with ...
35112 (AC_COMPILE_IFELSE): ... this.
35113 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35114 (AC_LINK_IFELSE): ... this.
35116 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35118 * autogen.sh: Add a call to `gendistlist.sh'.
35120 2008-09-19 Christian Franke <franke@computer.org>
35122 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35123 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35124 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35125 Export __enable_execute_stack() to modules.
35126 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35129 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35131 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35134 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35136 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
35137 #include <grub/util/hostdisk.h>.
35139 2008-09-08 Robert Millan <rmh@aybabtu.com>
35141 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35142 segments when their filesz is zero (grub_file_read() interprets
35143 zero-size as "read until EOF", which results in memory corruption).
35144 Use `lowest_segment' rather than 0 for calculating the current
35145 segment load address.
35147 2008-09-08 Robert Millan <rmh@aybabtu.com>
35149 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35150 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35151 clobbered useful information.
35153 2008-09-08 Robert Millan <rmh@aybabtu.com>
35155 * include/grub/util/biosdisk.h: Move to ...
35156 * include/grub/util/hostdisk.h: ... here. Update all users.
35157 * util/biosdisk.c: Move to ...
35158 * util/hostdisk.c: ... here. Update all users.
35160 2008-09-07 Robert Millan <rmh@aybabtu.com>
35162 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35164 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35165 and length can be stored directly in the `mbi->mmap_addr' and
35166 `mbi->mmap_length' struct fields.
35168 2008-09-07 Robert Millan <rmh@aybabtu.com>
35170 * conf/i386.rmk: New file. Provides declaration for building
35172 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35173 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35175 Include `conf/i386.mk'.
35176 * conf/i386-efi.rmk: Likewise.
35177 * conf/x86_64-efi.rmk: Likewise.
35178 * conf/i386-coreboot.rmk: Likewise.
35179 * conf/i386-ieee1275.rmk: Likewise.
35181 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35183 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35184 Adds optimization support for BGR based modes.
35186 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35187 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35188 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35189 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35190 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35191 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35192 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35193 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35194 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35195 (grub_video_i386_vbeblit_index_index): Likewise.
35196 (grub_video_i386_vbeblit_replace_directN): Added.
35197 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35198 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35199 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35200 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35201 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35202 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35203 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35204 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35205 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35206 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35207 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35208 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35209 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35211 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35212 (grub_video_i386_vbefill_R8G8B8): Likewise.
35213 (grub_video_i386_vbefill_index): Likewise.
35214 (grub_video_i386_vbefill_direct32): Added.
35215 (grub_video_i386_vbefill_direct24): Likewise.
35216 (grub_video_i386_vbefill_direct16): Likewise.
35217 (grub_video_i386_vbefill_direct8): Likewise.
35219 * include/grub/video.h (grub_video_blit_format): Removed
35220 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35221 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35222 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35223 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35224 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
35226 * video/video.c (grub_video_get_blit_format): Updated to use new
35227 blit formats. Added handling for 16 bit color modes.
35229 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
35231 (common_blitter): Updated to use new blitters.
35233 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35235 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35236 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35237 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35238 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35239 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35240 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35241 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35242 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35243 (grub_video_i386_vbeblit_index_index): Likewise.
35244 (grub_video_i386_vbeblit_replace_directN): Added.
35245 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35246 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35247 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35248 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35249 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35250 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35251 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35252 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35253 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35254 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35255 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35256 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35257 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35259 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35260 (grub_video_i386_vbefill_R8G8B8): Likewise.
35261 (grub_video_i386_vbefill_index): Likewise.
35262 (grub_video_i386_vbefill_direct32): Added.
35263 (grub_video_i386_vbefill_direct24): Likewise.
35264 (grub_video_i386_vbefill_direct16): Likewise.
35265 (grub_video_i386_vbefill_direct8): Likewise.
35267 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35270 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35273 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35276 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35279 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35281 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35284 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35286 * fs/iso9660.c (grub_iso9660_date): New structure.
35287 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35288 (grub_iso9660_uuid): New function.
35290 2008-09-05 Bean <bean123ch@gmail.com>
35292 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35294 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35295 insensitive bit for names in Win32 and Win32 & DOS namespace.
35297 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35299 * include/grub/types.h (LONG_MAX): Likewise.
35301 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35303 * util/getroot.c: Include <config.h>.
35304 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35305 add support for /dev/md/N devices and handle LVM double dash escaping.
35307 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35309 * config.guess: Update to latest version from config git.
35310 * config.sub: Likewise.
35312 2008-09-03 Robert Millan <rmh@aybabtu.com>
35314 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35315 `disk->total_sectors'.
35317 2008-09-01 Colin D Bennett <colin@gibibit.com>
35319 * include/grub/normal.h: Fixed incorrect comment for
35320 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35322 2008-09-01 Colin D Bennett <colin@gibibit.com>
35324 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35325 values with defines.
35327 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35328 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35329 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35330 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35331 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35332 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35333 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35334 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35335 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35336 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35337 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35338 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35339 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35340 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35341 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35342 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35343 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35344 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35345 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35347 2008-08-31 Robert Millan <rmh@aybabtu.com>
35349 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35351 (grub_multiboot): Fix a few warnings.
35353 2008-08-31 Robert Millan <rmh@aybabtu.com>
35355 * loader/i386/pc/multiboot.c: Update comment not to say that
35356 boot_device support is unimplemented.
35358 2008-08-31 Robert Millan <rmh@aybabtu.com>
35360 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35361 or memory map support are unimplemented.
35363 2008-08-31 Colin D Bennett <colin@gibibit.com>
35365 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35367 2008-08-31 Colin D Bennett <colin@gibibit.com>
35369 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35370 total video memory in 'vbeinfo' output; show color format details for
35373 2008-08-30 Pavel Roskin <proski@gnu.org>
35375 * util/genmoddep.c: Remove for real this time.
35376 * DISTLIST: Remove util/genmoddep.c.
35378 2008-08-30 Robert Millan <rmh@aybabtu.com>
35380 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35381 as required by Multiboot spec (it was already 4-byte aligned, but
35384 2008-08-29 Pavel Roskin <proski@gnu.org>
35386 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35387 * kern/powerpc/ieee1275/startup.S: ... this.
35388 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35389 * DISTLIST: Likewise.
35391 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35392 grub/cpu/kernel.h. Add start label for consistency with other
35393 platforms. Add grub_prefix immediately after start. Add jump
35394 to the code after grub_prefix.
35395 * include/grub/powerpc/kernel.h: Provide valid values for
35396 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35398 2008-08-29 Bean <bean123ch@gmail.com>
35400 * configure.ac: Change host_os to cygwin for mingw.
35401 (asprintf): New check for function.
35403 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35404 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35406 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35407 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35408 sync, sleep and grub_util_get_disk_size for mingw.
35410 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35411 to get size in mingw.
35412 (open_device): Use flag O_BINARY if it's defined.
35413 (find_root_device): Add dummy code for mingw.
35415 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35416 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35417 (get_scsi_disk_name): Return 0 for mingw.
35419 * util/hostfs.c: #include <grub/util/misc.h>.
35420 (grub_hostfs_open): Use "rb" flag to open file, use
35421 grub_util_get_disk_size to get disk size for mingw.
35423 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35424 (asprintf): New function if HAVE_ASPRINTF is not set.
35425 (sync): New function for mingw.
35427 (grub_util_get_disk_size): Likewise.
35429 2008-08-28 Pavel Roskin <proski@gnu.org>
35431 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35434 2008-08-28 Robert Millan <rmh@aybabtu.com>
35436 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35438 2008-08-28 Robert Millan <rmh@aybabtu.com>
35440 Change find_grub_drive() syntax so it doesn't prevent it from
35441 detecting NULL names as errors.
35443 * util/biosdisk.c (find_grub_drive): Move free slot search code
35445 (find_free_slot): ... to here.
35446 (read_device_map): Use find_free_slot() to search for free slots.
35448 2008-08-27 Marco Gerards <marco@gnu.org>
35450 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35451 (scsi_mod_SOURCES): New variable.
35452 (scsi_mod_CFLAGS): Likewise
35453 (scsi_mod_LDFLAGS): Likewise.
35455 * disk/scsi.c: New file.
35457 * include/grub/scsi.h: Likewise.
35459 * include/grub/scsicmd.h: Likewise.
35461 * disk/ata.c: Include <grub/scsi.h>.
35462 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35464 (grub_ata_iterate): Skip ATAPI devices.
35465 (grub_ata_open): Only handle ATAPI devices.
35466 (struct grub_atapi_read): Removed.
35467 (grub_atapi_readsector): Likewise.
35468 (grub_ata_read): No longer handle ATAPI devices.
35469 (grub_ata_write): Likewise.
35470 (grub_atapi_iterate): New function.
35471 (grub_atapi_read): Likewise.
35472 (grub_atapi_write): Likewise.
35473 (grub_atapi_open): Likewise.
35474 (grub_atapi_close): Likewise.
35475 (grub_atapi_dev): New variable.
35476 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35477 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35479 * include/grub/disk.h (enum grub_disk_dev_id): Add
35480 `GRUB_DISK_DEVICE_SCSI_ID'.
35482 2008-08-26 Robert Millan <rmh@aybabtu.com>
35484 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35485 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35488 2008-08-23 Bean <bean123ch@gmail.com>
35490 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35491 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35492 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35493 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35495 (raid5rec_mod_SOURCES): New macro.
35496 (raid5rec_mod_CFLAGS): Likewise.
35497 (raid5rec_mod_LDFLAGS): Likewise.
35498 (raid6rec_mod_SOURCES): Likewise.
35499 (raid6rec_mod_CFLAGS): Likewise.
35500 (raid6rec_mod_LDFLAGS): Likewise.
35501 (mdraid_mod_SOURCES): Likewise.
35502 (mdraid_mod_CFLAGS): Likewise.
35503 (mdraid_mod_LDFLAGS): Likewise.
35504 (dm_nv_mod_SOURCES): Likewise.
35505 (dm_nv_mod_CFLAGS): Likewise.
35506 (dm_nv_mod_LDFLAGS): Likewise.
35508 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35509 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35510 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35512 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35513 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35515 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35517 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35519 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35521 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35523 * disk/raid5_recover.c: New file.
35525 * disk/raid6_recover.c: Likewise.
35527 * disk/mdraid_linux.c: Likewise.
35529 * disk/dmraid_nvidia.c: Likewise.
35531 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35534 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35535 calculate the size of raid device.
35536 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35537 different layout of raid5.
35538 (grub_raid_scan_device): Remove code specific to mdraid.
35539 (grub_raid_list): New variable.
35540 (free_array): New function.
35541 (grub_raid_register): Likewise.
35542 (grub_raid_unregister): Likewise.
35543 (grub_raid_rescan): Likewise.
35544 (GRUB_MOD_INIT): Don't iterate device here.
35545 (GRUB_MOD_FINI): Use free_array to release resource.
35547 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35548 (grub_raid5_recover_func_t): New function variable type.
35549 (grub_raid6_recover_func_t): Likewise.
35550 (grub_raid5_recover_func): New variable.
35551 (grub_raid6_recover_func): Likewise.
35552 (grub_raid_register): New function.
35553 (grub_raid_unregister): Likewise.
35554 (grub_raid_rescan): Likewise.
35555 (grub_raid_block_xor): Likewise.
35557 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35558 (CMD_CRC): New macro.
35560 (read_file): Handle device as well as file.
35561 (cmd_crc): New function.
35562 (fstest): Handle multiple disks.
35563 (options): Remove part, raw and long, add root and diskcount.
35564 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35565 (main): Find the first non option entry and ignore subsequent options,
35566 add handling for the new options, support multiple disks.
35568 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35570 2008-08-23 Bean <bean123ch@gmail.com>
35572 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35574 * genfslist.sh: Ignore kernel.mod.
35576 * genpartmaplist.sh: Likewise.
35578 2008-08-23 Robert Millan <rmh@aybabtu.com>
35580 * util/getroot.c (find_root_device): Skip anything that starts with
35581 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35583 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35585 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35586 * util/grub.d/00_header.in: Allow the administrator to change default
35587 gfxmode via ${GRUB_GFXMODE}.
35589 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35591 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35593 2008-08-21 Robert Millan <rmh@aybabtu.com>
35595 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35597 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35598 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35600 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35602 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35603 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35605 2008-08-19 Robert Millan <rmh@aybabtu.com>
35607 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35608 (struct grub_virtual_screen): Remove `cursor_color'.
35609 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35611 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35613 2008-08-18 Robert Millan <rmh@aybabtu.com>
35615 Unify (identical) linux_normal.c files.
35616 * loader/i386/efi/linux_normal.c: Move from here ...
35617 * loader/linux_normal.c: ... to here. Update all users.
35618 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35619 * loader/i386/ieee1275/linux_normal.c: Likewise.
35621 2008-08-18 Robert Millan <rmh@aybabtu.com>
35623 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35624 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35625 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35626 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35627 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35629 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35630 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35631 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35632 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35633 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35634 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35635 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35636 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35637 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35638 portably using grub_getxy().
35639 Replace `-EFI' with `-bzImage' in boot message.
35641 2008-08-17 Robert Millan <rmh@aybabtu.com>
35643 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35645 2008-08-17 Robert Millan <rmh@aybabtu.com>
35647 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35649 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35650 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35651 (grub_machine_mmap_iterate): New function declaration.
35652 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35654 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35657 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35658 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35659 Move e820 parsing from here ...
35660 * kern/i386/pc/mmap.c: New file.
35661 (grub_machine_mmap_iterate): ... to here.
35663 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35664 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35665 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35666 (grub_available_iterate): Redeclare to return `void', and redeclare
35667 its hook to use grub_uint64_t as addr and size parameters, and rename
35669 (grub_machine_mmap_iterate): ... this. Update all users.
35671 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35672 to make it more readable. Rename to ...
35673 (grub_machine_mmap_iterate): ... this.
35675 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35676 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35677 (grub_multiboot): Allocate an extra region after the payload, and fill
35678 it with a Multiboot memory map. Adjust a.out loader to calculate size
35679 with the extra space.
35680 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35681 with the extra space.
35683 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35685 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35687 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35689 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35690 mdate-sh to the list `find' searches for.
35691 * DISTLIST: Regenerated.
35693 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35695 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35696 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35697 genmoddep.awk, gensymlist.sh.in.
35698 (DISTDIRS): Add bus, docs, hook, lib.
35699 * DISTLIST: Regenerated.
35700 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35702 2008-08-16 Robert Millan <rmh@aybabtu.com>
35704 * disk/raid.c (grub_raid_init): Handle/report errors set by
35705 grub_device_iterate().
35706 * disk/lvm.c (grub_lvm_init): Likewise.
35708 2008-08-15 Bean <bean123ch@gmail.com>
35710 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35712 (datetime_mod_SOURCES): New macro.
35713 (datetime_mod_CFLAGS): Likewise.
35714 (datetime_mod_LDFLAGS): Likewise.
35715 (date_mod_SOURCES): Likewise.
35716 (date_mod_CFLAGS): Likewise.
35717 (date_mod_LDFLAGS): Likewise.
35718 (datehook_mod_SOURCES): Likewise.
35719 (datehook_mod_CFLAGS): Likewise.
35720 (datehook_mod_LDFLAGS): Likewise.
35722 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35724 (datetime_mod_SOURCES): New macro.
35725 (datetime_mod_CFLAGS): Likewise.
35726 (datetime_mod_LDFLAGS): Likewise.
35727 (date_mod_SOURCES): Likewise.
35728 (date_mod_CFLAGS): Likewise.
35729 (date_mod_LDFLAGS): Likewise.
35730 (datehook_mod_SOURCES): Likewise.
35731 (datehook_mod_CFLAGS): Likewise.
35732 (datehook_mod_LDFLAGS): Likewise.
35734 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35736 (datetime_mod_SOURCES): New macro.
35737 (datetime_mod_CFLAGS): Likewise.
35738 (datetime_mod_LDFLAGS): Likewise.
35739 (date_mod_SOURCES): Likewise.
35740 (date_mod_CFLAGS): Likewise.
35741 (date_mod_LDFLAGS): Likewise.
35742 (datehook_mod_SOURCES): Likewise.
35743 (datehook_mod_CFLAGS): Likewise.
35744 (datehook_mod_LDFLAGS): Likewise.
35746 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35748 (datetime_mod_SOURCES): New macro.
35749 (datetime_mod_CFLAGS): Likewise.
35750 (datetime_mod_LDFLAGS): Likewise.
35751 (date_mod_SOURCES): Likewise.
35752 (date_mod_CFLAGS): Likewise.
35753 (date_mod_LDFLAGS): Likewise.
35754 (datehook_mod_SOURCES): Likewise.
35755 (datehook_mod_CFLAGS): Likewise.
35756 (datehook_mod_LDFLAGS): Likewise.
35758 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35760 (datetime_mod_SOURCES): New macro.
35761 (datetime_mod_CFLAGS): Likewise.
35762 (datetime_mod_LDFLAGS): Likewise.
35763 (date_mod_SOURCES): Likewise.
35764 (date_mod_CFLAGS): Likewise.
35765 (date_mod_LDFLAGS): Likewise.
35766 (datehook_mod_SOURCES): Likewise.
35767 (datehook_mod_CFLAGS): Likewise.
35768 (datehook_mod_LDFLAGS): Likewise.
35770 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35772 * commands/date.c: New file.
35774 * hook/datehook.c: Likewise.
35776 * include/grub/lib/datetime.h: Likewise.
35778 * include/grub/i386/cmos.h: Likewise.
35780 * lib/datetime.c: Likewise.
35782 * lib/i386/datetime.c: Likewise.
35784 * lib/efi/datetime.c: Likewise.
35786 2008-08-14 Robert Millan <rmh@aybabtu.com>
35788 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35789 (grub_mkelfimage_SOURCES): New variable.
35790 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35792 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35793 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35794 * conf/powerpc-ieee1275.rmk: Likewise.
35795 * conf/i386-ieee1275.rmk: Likewise.
35797 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35798 * kern/i386/coreboot/init.c: Likewise.
35800 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35801 with `<grub/cpu/kernel.h>'.
35802 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35804 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35805 * kern/i386/coreboot/startup.S: Likewise.
35807 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35808 (GRUB_MOD_GAP): Remove.
35809 * include/grub/powerpc/kernel.h: New file.
35810 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35811 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35812 * include/grub/i386/kernel.h: New file.
35813 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35814 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35815 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35817 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35819 Use --directory when invoking grub_mkimage.
35821 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35822 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35823 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35824 and GRUB_KERNEL_CPU_PREFIX.
35826 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35828 * include/grub/err.h (grub_err_printf): New function prototype.
35829 * util/misc.c (grub_err_printf): New function.
35830 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35832 * kern/err.c (grub_print_error): Use grub_err_printf.
35834 2008-08-13 Robert Millan <rmh@aybabtu.com>
35836 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35838 2008-08-13 Robert Millan <rmh@aybabtu.com>
35840 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35843 2008-08-12 Robert Millan <rmh@aybabtu.com>
35845 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35846 of the relocation code from here ...
35847 (grub_multiboot): ... to here.
35848 (forward_relocator, backward_relocator): Move from here ...
35849 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35850 (grub_multiboot_backward_relocator): ... to here.
35851 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35852 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35853 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35854 (grub_multiboot_forward_relocator_end)
35855 (grub_multiboot_backward_relocator)
35856 (grub_multiboot_backward_relocator_end): New variables.
35858 2008-08-12 Bean <bean123ch@gmail.com>
35860 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35862 2008-08-11 Robert Millan <rmh@aybabtu.com>
35864 * kern/i386/linuxbios/startup.S: Move from here ...
35865 * kern/i386/coreboot/startup.S: ... to here.
35867 * kern/i386/linuxbios/init.c: Move from here ...
35868 * kern/i386/coreboot/init.c: ... to here.
35870 * kern/i386/linuxbios/table.c: Move from here ...
35871 * kern/i386/coreboot/mmap.c: ... to here.
35873 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35875 2008-08-11 Robert Millan <rmh@aybabtu.com>
35877 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35878 errors. Leave it to the upper layer to handle them.
35880 2008-08-09 Christian Franke <franke@computer.org>
35882 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35883 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35884 Install `grub.d/10_windows' only on Cygwin.
35885 * configure.ac: Add subst of `target_os'.
35886 Check `target_os' also before setting TARGET_OBJ2ELF.
35887 Add `--enable-grub-pe2elf'.
35889 2008-08-08 Robert Millan <rmh@aybabtu.com>
35891 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35892 (grub_last_time): Change type to grub_uint64_t.
35893 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35894 (grub_disk_close): Likewise.
35896 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35897 (run_menu): Migrate code from to using grub_get_time_ms().
35899 * util/misc.c (grub_get_time_ms): New function.
35901 2008-08-08 Marco Gerards <marco@gnu.org>
35903 * disk/ata.c (grub_ata_regget): Change return type to
35905 (grub_ata_regget2): Likewise.
35906 (grub_ata_wait_status): New function.
35907 (grub_ata_wait_busy): Removed function, updated all users to use
35908 `grub_ata_wait_status'.
35909 (grub_ata_wait_drq): Likewise.
35910 (grub_ata_cmd): New function.
35911 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35913 (grub_ata_pio_write): Add error handling.
35914 (grub_atapi_identify): Likewise.
35915 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35917 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35918 handling. Actually use the detected registers. Reorder the
35919 detection logic such that it is easier to read.
35920 (grub_ata_pciinit): Do not assign the same ID to each controller.
35921 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35923 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35925 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35927 2008-08-08 Marco Gerards <marco@gnu.org>
35931 2008-08-07 Bean <bean123ch@gmail.com>
35933 * include/grub/x86_64/pci.h: New file.
35935 2008-08-07 Christian Franke <franke@computer.org>
35937 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
35938 (TIMER2_GATE): Likewise.
35939 (grub_pit_wait): Add enable/disable of the timer2 gate
35940 bit of port 0x61. This fixes a possible infinite loop.
35942 2008-08-07 Bean <bean123ch@gmail.com>
35944 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
35945 kern/i386/tsc.c and kern/i386/pit.c.
35947 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
35950 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
35953 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
35955 2008-08-07 Bean <bean123ch@gmail.com>
35957 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
35959 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
35961 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
35962 multiple inclusion. Add #include <grub/types.h>.
35964 2008-08-06 Christian Franke <franke@computer.org>
35966 * conf/common.rmk: Build and install `10_windows'.
35967 * util/grub.d/10_windows.in: New script.
35969 2008-08-06 Pavel Roskin <proski@gnu.org>
35971 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
35973 2008-08-06 Robert Millan <rmh@aybabtu.com>
35975 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
35976 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
35978 2008-08-06 Bean <bean123ch@gmail.com>
35980 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
35981 (grub_pxefs_fs_int): Remove dummy definition.
35982 (grub_pxefs_open): Use data->block_size to store the current block
35984 (grub_pxefs_read): Use block size stored in data->block_size. As the
35985 value of grub_pxe_blksize can be changed after the file is opened.
35987 2008-08-06 Bean <bean123ch@gmail.com>
35989 * fs/i386/pc/pxe.c (curr_file): new variable.
35990 (grub_pxefs_open): Simply the handling of pxe file system. Don't
35991 require the dummy internal file system anymore.
35992 (grub_pxefs_read): Removed.
35993 (grub_pxefs_close): Likewise.
35994 (grub_pxefs_fs_int): Likewise.
35995 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
35996 connection when we switch file.
35997 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
35999 2008-08-06 Robert Millan <rmh@aybabtu.com>
36001 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36003 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36004 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36006 * kern/i386/halt.c: New file.
36007 * kern/i386/reboot.c: Likewise.
36008 * include/grub/i386/reboot.h: Likewise.
36009 * include/grub/i386/halt.h: Likewise.
36011 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36012 Include `<grub/cpu/halt.h>'.
36013 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36014 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36016 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36017 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36018 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36019 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36020 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36021 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36023 * include/grub/i386/at_keyboard.h: ... to here.
36025 2008-08-05 Robert Millan <rmh@aybabtu.com>
36027 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36028 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36029 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36030 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36031 `kern/generic/millisleep.c'.
36033 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36034 instead of grub_get_rtc().
36035 (grub_tsc_init): Initialize `tsc_boot_time'.
36037 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36038 (grub_machine_init): Use grub_tsc_init() rather than
36039 installing an RTC-based handler via grub_install_get_time_ms().
36041 * kern/i386/pit.c: New file.
36042 * include/grub/i386/pit.h: Likewise.
36044 2008-08-05 Bean <bean123ch@gmail.com>
36046 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36048 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36049 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36050 (pxe_mod_SOURCES): New macro.
36051 (pxe_mod_CFLAGS): Likewise.
36052 (pxe_mod_LDFLAGS): Likewise.
36053 (pxecmd_mod_SOURCES): Likewise.
36054 (pxecmd_mod_CFLAGS): Likewise.
36055 (pxecmd_mod_LDFLAGS): Likewise.
36057 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36058 (grub_pxe_call): Likewise.
36060 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36062 * commands/i386/pc/pxecmd.c: New file.
36064 * fs/i386/pc/pxe.c: Likewise.
36066 * include/grub/i386/pc/pxe.h: Likewise.
36068 2008-08-05 Bean <bean123ch@gmail.com>
36070 * util/console.c (grub_console_cur_color): New variable.
36071 (grub_console_standard_color): Likewise.
36072 (grub_console_normal_color): Likewise.
36073 (grub_console_highlight_color): Likewise.
36074 (color_map): Likewise.
36075 (use_color): Likewise.
36076 (NUM_COLORS): New macro.
36077 (grub_ncurses_setcolorstate): Handle color properly.
36078 (grub_ncurses_setcolor): Don't change color here, just remember the
36079 settings, color will be set in grub_ncurses_setcolorstate.
36080 (grub_ncurses_getcolor): New function.
36081 (grub_ncurses_init): Initialize color pairs.
36082 (grub_ncurses_term): New member grub_ncurses_getcolor.
36084 2008-08-05 Colin D Bennett <colin@gibibit.com>
36086 High resolution timer support. Implemented for x86 CPUs using TSC.
36087 Extracted generic grub_millisleep() so it's linked in only as needed.
36088 This requires a Pentium compatible CPU; if the RDTSC instruction is
36089 not supported, then it falls back on the generic grub_get_time_ms()
36090 implementation that uses the machine's RTC.
36092 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36093 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36094 `kern/generic/millisleep.c'.
36096 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36097 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36099 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36100 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36102 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36104 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36105 `kern/generic/millisleep.c'.
36107 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36109 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36111 * kern/generic/rtc_get_time_ms.c: New file.
36113 * kern/generic/millisleep.c: New file.
36115 * kern/misc.c: Don't include
36116 <kern/time.h> anymore.
36117 (grub_millisleep_generic): Removed.
36119 * commands/sleep.c (grub_interruptible_millisleep): Uses
36120 grub_get_time_ms() instead of grub_get_rtc().
36122 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36124 (grub_cpu_is_cpuid_supported): New inline function.
36125 (grub_cpu_is_tsc_supported): New inline function.
36126 (grub_tsc_init): New function prototype.
36127 (grub_tsc_get_time_ms): New function prototype.
36129 * kern/i386/tsc.c (grub_get_time_ms): New file.
36131 * include/grub/time.h: Include <grub/types.h.
36132 (grub_millisleep_generic): Removed.
36133 (grub_get_time_ms): New prototype.
36134 (grub_install_get_time_ms): New prototype.
36135 (grub_rtc_get_time_ms): New prototype.
36137 * kern/time.c (grub_get_time_ms): New function.
36138 (grub_install_get_time_ms): New function.
36140 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36141 <grub/time.h> anymore.
36142 (grub_millisleep): Removed.
36143 (grub_machine_init): Call grub_tsc_init.
36145 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36146 get_time_ms() implementation.
36148 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36149 (ieee1275_get_time_ms): New function.
36150 (grub_machine_init): Install get_time_ms() implementation.
36152 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36153 (grub_machine_init): Call grub_tsc_init().
36154 (grub_millisleep): Removed.
36156 * kern/ieee1275/init.c (grub_millisleep): Removed.
36157 (grub_machine_init): Install ieee1275_get_time_ms()
36159 (ieee1275_get_time_ms): New function.
36160 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36163 2008-08-05 Marco Gerards <marco@gnu.org>
36165 * disk/ata.c: Include <grub/pci.h>.
36166 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36167 (grub_ata_initialize): Rewritten.
36168 (grub_ata_device_initialize): New function.
36170 2008-08-04 Pavel Roskin <proski@gnu.org>
36172 * kern/main.c: Include grub/mm.h.
36174 2008-08-04 Robert Millan <rmh@aybabtu.com>
36176 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36177 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36178 corruption problem).
36180 2008-08-04 Robert Millan <rmh@aybabtu.com>
36182 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36183 warnings introduced in my last commit.
36185 2008-08-03 Robert Millan <rmh@aybabtu.com>
36187 Make PCI available on all i386 architectures.
36189 * include/grub/i386/pc/pci.h: Move from here ...
36190 * include/grub/i386/pci.h: ... to here.
36192 * include/grub/i386/pc/pci.h: Remove.
36193 * include/grub/i386/efi/pci.h: Remove.
36194 * include/grub/x86_64/efi/pci.h: Remove.
36196 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36197 `<grub/cpu/pci.h>'.
36199 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36200 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36201 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36203 * conf/i386-ieee1275.rmk: Likewise.
36205 2008-08-03 Robert Millan <rmh@aybabtu.com>
36207 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36208 (grub_console_setcursor): Make it possible to set cursor off.
36210 2008-08-03 Robert Millan <rmh@aybabtu.com>
36212 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36213 of modules instead of assuming which platform provides what.
36214 * util/update-grub.in: Likewise.
36216 2008-08-03 Robert Millan <rmh@aybabtu.com>
36218 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36219 instead of `grub_install_dos_part' to determine whether a drive needs
36220 to be prepended to prefix (`grub_install_dos_part' is not reliable,
36221 because it can be overridden when loading GRUB via Multiboot).
36223 2008-08-02 Robert Millan <rmh@aybabtu.com>
36225 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36227 2008-08-02 Robert Millan <rmh@aybabtu.com>
36229 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36230 of informational grub_dprintf() calls.
36232 2008-08-02 Robert Millan <rmh@aybabtu.com>
36234 * disk/memdisk.c (memdisk_size): Don't initialize.
36235 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36237 * include/grub/i386/pc/kernel.h
36238 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36239 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36240 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36241 (grub_arch_memdisk_size): Remove.
36243 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36244 field (was only used to transfer a constant). Add `type' field to
36245 support multiple module types.
36246 (grub_module_iterate): New function.
36248 * kern/device.c (grub_device_open): Do not hide error messages
36249 when grub_disk_open() fails. Use grub_print_error() instead.
36251 * kern/i386/pc/init.c (grub_arch_modules_addr)
36252 (grub_arch_memdisk_size): Remove functions.
36253 (grub_arch_modules_addr): Return the module address in high memory
36254 (now that it isn't copied anymore).
36256 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36257 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36258 decompression routine (grub_total_module_size already includes that
36259 now). Don't copy modules back to low memory.
36261 * kern/main.c: Include `<grub/mm.h>'.
36262 (grub_load_modules): Split out (and use) ...
36263 (grub_module_iterate): ... this function, which iterates through
36264 module objects and runs a hook.
36265 Comment out grub_mm_init_region() call, as it would cause non-ELF
36266 modules to be overwritten.
36268 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36269 the memdisk image in its own region, make it part of the module list.
36270 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36271 (main): Parse --memdisk|-m option, and pass user-provided path as
36272 parameter to generate_image().
36273 (add_segments): Pass `memdisk_path' down to load_modules().
36274 (load_modules): Embed memdisk image in module section when requested.
36275 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36276 `header.type' instead of `header.offset'.
36278 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36279 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36280 (memdisk_mod_LDFLAGS): New variables.
36281 * conf/i386-coreboot.rmk: Likewise.
36282 * conf/i386-ieee1275.rmk: Likewise.
36284 2008-08-02 Robert Millan <rmh@aybabtu.com>
36286 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36287 (backward_relocator): New variables. Used to allocate and relocate
36288 the payload, respectively.
36289 (grub_multiboot_load_elf32): Load into heap instead of requested
36290 address, install the appropriate relocator code in each bound of
36291 the payload, and set the entry point such that
36292 grub_multiboot_real_boot() will jump to one of them.
36294 * kern/i386/loader.S (grub_multiboot_payload_size)
36295 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36296 (grub_multiboot_payload_entry_offset): New variables.
36297 (grub_multiboot_real_boot): Set cpu context to what the relocator
36298 expects, and jump to the relocator instead of the payload.
36300 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36301 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36302 (grub_multiboot_payload_entry_offset): Export.
36304 2008-08-01 Bean <bean123ch@gmail.com>
36306 * normal/menu_entry.c (editor_getline): Don't return the original
36307 string as result, as it will be released by lexer once it has done
36310 2008-08-01 Robert Millan <rmh@aybabtu.com>
36312 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36313 within menuentries, not before them.
36314 util/grub.d/10_hurd.in: Likewise.
36316 2008-08-01 Bean <bean123ch@gmail.com>
36318 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36319 (bufio_mod_SOURCES): New macro.
36320 (bufio_mod_CFLAGS): Likewise.
36321 (bufio_mod_LDFLAGS): Likewise.
36323 * include/grub/bufio.h: New file.
36325 * io/bufio.c: Likewise.
36327 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36328 (grub_video_reader_png): Use grub_buffile_open to open file.
36330 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36331 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36333 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36334 (grub_video_reader_tga): Use grub_buffile_open to open file.
36336 * font/manager.c: Include <grub/bufio.h>.
36337 (add_font): Use grub_buffile_open to open file.
36339 2008-07-31 Robert Millan <rmh@aybabtu.com>
36341 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36342 ELF segments, use a macro for arbitrarily accessing any of them instead
36343 of preparing a pointer that allows access to one at a time.
36344 (grub_multiboot_load_elf64): Likewise.
36346 2008-07-31 Bean <bean123ch@gmail.com>
36348 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36349 GRUB_KERNEL_MACHINE_DATA_END.
36351 2008-07-30 Robert Millan <rmh@aybabtu.com>
36353 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36354 Increase from 0x50 to 0x60.
36355 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36356 use UUIDs to identify the root drive for them. If that's not
36358 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36359 check, for cross-disk installs.
36361 2008-07-30 Robert Millan <rmh@aybabtu.com>
36363 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36364 is non-empty, use it to set the `prefix' environment variable instead
36365 of the usual approach.
36366 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36367 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36368 environment variable instead of dummy make_install_device().
36370 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36371 (start): Insert a data section, with `grub_prefix' variable.
36372 * kern/i386/linuxbios/startup.S: Likewise.
36374 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36375 New variable reference.
36376 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36377 New macro. Defines offset of `grub_prefix' within startup.S (relative
36379 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36380 section within startup.S (relative to `start').
36381 * include/grub/i386/coreboot/kernel.h: Likewise.
36383 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36384 Overwrite grub_prefix with its contents, at the beginning of the
36386 (main): Understand -p|--prefix.
36388 2008-07-30 Robert Millan <rmh@aybabtu.com>
36390 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36392 2008-07-30 Robert Millan <rmh@aybabtu.com>
36394 * term/i386/pc/vga_text.c (grub_console_cls): Use
36395 grub_console_gotoxy() to go back to beginning of the screen.
36396 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36398 2008-07-29 Christian Franke <franke@computer.org>
36400 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36401 Add conversion of emulated mount points on Cygwin.
36403 2008-07-29 Christian Franke <franke@computer.org>
36405 * util/update-grub.in: Add a check for admin
36407 Remove old `grub.cfg.new' before creation.
36408 Add `-f' to `mv' to handle the different filesystem
36409 semantics of Windows.
36411 2008-07-29 Bean <bean123ch@gmail.com>
36413 * normal/main.c (get_line): Fix buffer overflow bug.
36415 2008-07-28 Robert Millan <rmh@aybabtu.com>
36417 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36418 (struct grub_apple_header): New struct. Describes the layout of
36419 the partmap header.
36420 (apple_partition_map_iterate): Check the header magic as well as the
36421 partition magic (which was already being checked).
36423 2008-07-28 Pavel Roskin <proski@gnu.org>
36425 * genmk.rb: Add a warning to the beginning of the output that
36426 it's a generated file and should not be edited.
36428 2008-07-28 Robert Millan <rmh@aybabtu.com>
36430 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36431 with the same number are found, just use issue a warning with
36432 grub_dprintf(), as this error has been reported to be non-fatal.
36434 2008-07-27 Robert Millan <rmh@aybabtu.com>
36436 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36439 2008-07-27 Bean <bean123ch@gmail.com>
36441 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36442 (grub_fat_find_dir): Ignore case when comparing filename.
36444 2008-07-27 Bean <bean123ch@gmail.com>
36446 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36447 smallino, as it's more descriptive, and i8count can be confused with
36448 the other field count.
36449 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36452 2008-07-27 Bean <bean123ch@gmail.com>
36454 * commands/crc.c: New file.
36456 * lib/crc.c: Likewise.
36458 * include/grub/lib/crc.h: Likewise.
36460 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36462 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36463 (hexdump): Move this function to ...
36465 * lib/hexdump.c: ... here.
36467 * include/grub/hexdump.h: Renamed to ...
36469 * include/grub/lib/hexdump.h: ... this.
36471 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36473 * util/grub-editenv.c: Likewise.
36475 * include/envblk.h: Renamed to ...
36477 * include/lib/envblk.h: ... this.
36479 * util/envblk.c: Renamed to ...
36481 * lib/envblk.c: ... this.
36483 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36485 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36486 (pkglib_MODULES): Add crc.mod.
36487 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36488 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36489 (crc_mod_SOURCES): New macro.
36490 (crc_mod_CFLAGS): Likewise.
36491 (crc_mod_LDFLAGS): Likewise.
36493 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36495 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36497 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36499 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36501 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36503 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36505 * commands/help.c: Include <grub/term.h>.
36506 (TERM_WIDTH): Removed. Updated all users.
36508 2008-07-27 Pavel Roskin <proski@gnu.org>
36510 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36511 spurious warnings about a comment within a comment.
36513 2008-07-25 Robert Millan <rmh@aybabtu.com>
36515 * util/getroot.c (find_root_device): Skip devices that match
36516 /dev/dm-[0-9]. This lets the real device be found for any type of
36517 abstraction (LVM, EVMS, RAID..).
36518 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36519 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36520 device is found first, find_root_device() will now skip it.
36522 2008-07-24 Pavel Roskin <proski@gnu.org>
36524 * include/grub/types.h: Use __builtin_bswap32() and
36525 __builtin_bswap64() with gcc 4.3 and newer.
36527 2008-07-24 Christian Franke <franke@computer.org>
36529 * util/i386/pc/grub-install.in: If `--debug' is specified,
36530 pass `--verbose' to grub-setup.
36531 Abort script if make_system_path_relative_to_its_root() fails.
36533 2008-07-24 Bean <bean123ch@gmail.com>
36535 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36536 variable `target_platform' should be `platform'.
36538 2008-07-24 Bean <bean123ch@gmail.com>
36540 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36541 (grub_png_init_fixed_block): New function.
36542 (grub_png_decode_image_data): Handle fixed huffman code compression.
36544 2008-07-24 Bean <bean123ch@gmail.com>
36546 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36547 (grub_pe2elf_SOURCES): New macro.
36548 (CLEANFILES): Add grub-pe2elf.
36550 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36551 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36552 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36553 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36554 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36555 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36556 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36557 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36558 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36559 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36560 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36561 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36562 (GRUB_PE32_DT_FUNCTION): Likewise.
36563 (GRUB_PE32_REL_I386_DIR32): Likewise.
36564 (GRUB_PE32_REL_I386_REL32): Likewise.
36565 (grub_pe32_symbol): New structure.
36566 (grub_pe32_reloc): Likewise.
36568 * util/grub-pe2elf.c: New file.
36570 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36571 start symbol in non pc platform.
36573 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36575 The following patches are from Christian Franke.
36577 * include/grub/dl.h: Remove .previous, gas supports this only
36580 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36581 Remove .type, gas supports this only for ELF format.
36583 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36584 nullbytes in symbol table. This fixes an infinite loop if table is
36587 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36588 TARGET_IMG_LDFLAGS and EXEEXT.
36590 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36591 TARGET_IMG_LDFLAGS_AC.
36592 (grub_CHECK_STACK_ARG_PROBE): New function.
36594 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36596 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36598 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36599 to set TARGET_IMG_LD* accordingly.
36600 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36601 Add call to grub_CHECK_STACK_ARG_PROBE.
36602 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36604 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36606 * genmk.rb: Add EXEEXT to CLEANFILES.
36608 2008-07-23 Robert Millan <rmh@aybabtu.com>
36610 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36611 define the codes for arrows and lines used for the menu).
36612 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36615 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36616 fonts, because the latter are too slow.
36618 2008-07-21 Bean <bean123ch@gmail.com>
36620 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36621 a20. Run keyboard test last, as it will cause macbook to halt.
36623 2008-07-18 Pavel Roskin <proski@gnu.org>
36625 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36626 load foreign architecture modules correctly anyway. Keep
36627 support for loading host architecture modules, whether we
36628 compile them or not.
36630 2008-07-17 Pavel Roskin <proski@gnu.org>
36632 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36633 change target_cpu. The compiler default can mismatch target_cpu
36636 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36637 * kern/efi/efi.c: Likewise.
36639 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36640 target compiler is functional.
36641 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36644 * configure.ac: Default to efi platform for x86_64-apple. Allow
36645 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36646 adjustments from the rest, only do them if target is not
36647 explicitly given. Merge other adjustments with the final sanity
36648 check. Remove an extraneous check for supported CPU. Be
36649 specific which CPU and which platform is not supported.
36651 * configure.ac: Default to pc platform for x86_64.
36653 2008-07-17 Robert Millan <rmh@aybabtu.com>
36655 Partial LinuxBIOS -> Coreboot rename.
36657 * conf/i386-linuxbios.rmk: Renamed to ...
36658 * conf/i386-coreboot.rmk: ... this.
36659 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36660 * configure.ac: Accept "coreboot" as input platform (but maintain
36661 compatibility with "linuxbios").
36662 * include/grub/i386/linuxbios: Renamed to ...
36663 * include/grub/i386/coreboot: ... this.
36665 2008-07-17 Bean <bean123ch@gmail.com>
36667 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36668 (appleldr_mod_SOURCE): New variable.
36669 (appleldr_mod_CFLAGS): Likewise.
36670 (appleldr_mod_LDFLAGS): Likewise.
36671 (pci_mod_SOURCES): Likewise.
36672 (pci_mod_CFLAGS): Likewise.
36673 (pci_mod_LDFLAGS): Likewise.
36674 (lspci_mod_SOURCES): Likewise.
36675 (lspci_mod_CFLAGS): Likewise.
36676 (lspci_mod_LDFLAGS): Likewise.
36678 * conf/x86_64-efi.rmk: New file.
36680 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36682 (grub_efidisk_write): Likewise.
36684 * include/efi/api.h (efi_call_0): New macro.
36685 (efi_call_1): Likewise.
36686 (efi_call_2): Likewise.
36687 (efi_call_3): Likewise.
36688 (efi_call_4): Likewise.
36689 (efi_call_5): Likewise.
36690 (efi_call_6): Likewise.
36692 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36693 grub_rescue_cmd_chainloader.
36695 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36696 (grub_pe32_optional_header): Change some fields based on i386 or
36698 (GRUB_PE32_PE32_MAGIC): Likewise.
36700 * include/grub/efi/uga_draw.h: New file.
36702 * include/grub/elf.h (STN_ABS): New constant.
36703 (R_X86_64_NONE): Relocation constant for x86_64.
36704 (R_X86_64_64): Likewise.
36705 (R_X86_64_PC32): Likewise.
36706 (R_X86_64_GOT32): Likewise.
36707 (R_X86_64_PLT32): Likewise.
36708 (R_X86_64_COPY): Likewise.
36709 (R_X86_64_GLOB_DAT): Likewise.
36710 (R_X86_64_JUMP_SLOT): Likewise.
36711 (R_X86_64_RELATIVE): Likewise.
36712 (R_X86_64_GOTPCREL): Likewise.
36713 (R_X86_64_32): Likewise.
36714 (R_X86_64_32S): Likewise.
36715 (R_X86_64_16): Likewise.
36716 (R_X86_64_PC16): Likewise.
36717 (R_X86_64_8): Likewise.
36718 (R_X86_64_PC8): Likewise.
36720 * include/grub/i386/efi/pci.h: New file.
36722 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36723 Change it value based on platform.
36724 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36725 (GRUB_E820_RAM): Likewise.
36726 (GRUB_E820_RESERVED): Likewise.
36727 (GRUB_E820_ACPI): Likewise.
36728 (GRUB_E820_NVS): Likewise.
36729 (GRUB_E820_EXEC_CODE): Likewise.
36730 (GRUB_E820_MAX_ENTRY): Likewise.
36731 (grub_e820_mmap): New structure.
36732 (linux_kernel_header): Change the efi field according to different
36733 kernel version, also field from linux_kernel_header.
36735 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36737 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36738 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36739 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36740 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36741 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36742 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36743 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36744 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36745 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36746 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36748 * include/grub/x86_64/efi/kernel.h: New file.
36750 * include/grub/x86_64/efi/loader.h: Likewise.
36752 * include/grub/x86_64/efi/machine.h: Likewise.
36754 * include/grub/x86_64/efi/pci.h: Likewise.
36756 * include/grub/x86_64/efi/time.h: Likewise.
36758 * include/grub/x86_64/linux.h: Likewise.
36760 * include/grub/x86_64/setjmp.h: Likewise.
36762 * include/grub/x86_64/time.h: Likewise.
36764 * include/grub/x86_64/types.h: Likewise.
36766 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36767 GRUB_TARGET_SIZEOF_VOID_P.
36769 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36770 (grub_efi_locate_handle): Likewise.
36771 (grub_efi_open_protocol): Likewise.
36772 (grub_efi_set_text_mode): Likewise.
36773 (grub_efi_stall): Likewise.
36774 (grub_exit): Likewise.
36775 (grub_reboot): Likewise.
36776 (grub_halt): Likewise.
36777 (grub_efi_exit_boot_services): Likewise.
36778 (grub_get_rtc): Likewise.
36780 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36781 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36782 (grub_efi_allocate_pages): Wrap efi calls.
36783 (grub_efi_free_pages): Wrap efi calls.
36784 (grub_efi_get_memory_map): Wrap efi calls.
36786 * kern/x86_64/dl.c: New file.
36788 * kern/x86_64/efi/callwrap.S: Likewise.
36790 * kern/x86_64/efi/startup.S: Likewise.
36792 * loader/efi/appleloader.c: Likewise.
36794 * loader/efi/chainloader.c (cmdline): New variable.
36795 (grub_chainloader_unload): Wrap efi calls.
36796 (grub_chainloader_boot): Likewise.
36797 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36800 * loader/efi/chainloader_normal.c (chainloader_command):
36801 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36804 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36806 (grub_e820_add_region): New function.
36807 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36809 (grub_find_video_card): New function.
36810 (grub_linux_setup_video): New function.
36811 (grub_rescue_cmd_linux): Probe for video information.
36813 * normal/x86_64/setjmp.S: New file.
36815 * term/efi/console.c (map_char): New function.
36816 (grub_console_putchar): Map unicode char.
36817 (grub_console_checkkey): Wrap efi calls.
36818 (grub_console_getkey): Likewise.
36819 (grub_console_getwh): Likewise.
36820 (grub_console_gotoxy): Likewise.
36821 (grub_console_cls): Likewise.
36822 (grub_console_setcolorstate): Likewise.
36823 (grub_console_setcursor): Likewise.
36825 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36827 2008-07-16 Pavel Roskin <proski@gnu.org>
36829 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36832 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36833 pointer, not an integer. This fixes a warning and prevents
36834 precision loss on 64-bit systems.
36835 (relocate_addresses): Remove unneeded cast.
36837 2008-07-15 Pavel Roskin <proski@gnu.org>
36839 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36841 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36843 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36844 Fix comparison between signed and unsigned.
36846 * include/grub/i386/ieee1275/console.h: Declare
36847 grub_console_init() and grub_console_fini().
36849 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36850 It's empty and unused.
36852 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36853 beginning to avoid warnings with some compilers.
36855 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36856 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36858 2008-07-14 Pavel Roskin <proski@gnu.org>
36860 * kern/env.c (grub_register_variable_hook): Don't copy empty
36861 string, it leaks memory. Pass "" to grub_env_set(), it should
36862 handle constant strings.
36864 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36865 * commands/cmp.c (grub_cmd_cmp): Likewise.
36866 * kern/dl.c (grub_dl_flush_cache): Likewise.
36867 (grub_dl_load_core): Likewise.
36868 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36869 (grub_elf64_load_phdrs): Likewise.
36871 2008-07-13 Pavel Roskin <proski@gnu.org>
36873 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36874 between signed and unsigned.
36875 (LzmaEnc_Finish): Fix warning about an unused parameter.
36877 2008-07-13 Bean <bean123ch@gmail.com>
36879 * Makefile.in (enable_lzo): New rule.
36881 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36883 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36885 * boot/i386/pc/lnxboot.S: #include <config.h>.
36887 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36888 its value according to the compression algorithm used, lzo or lzma.
36890 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36891 compression algorithm according to configure macro.
36893 * kern/i386/pc/startup.S (codestart): Likewise.
36895 * kern/i386/pc/lzma_decode.S: New file.
36897 * include/grub/lib/LzFind.h: Likewise.
36899 * include/grub/lib/LzHash.h: Likewise.
36901 * include/grub/lib/LzmaDec.h: Likewise.
36903 * include/grub/lib/LzmaEnc.h: Likewise.
36905 * include/grub/lib/LzmaTypes.h: Likewise.
36907 * lib/LzFind.c: Likewise.
36909 * lib/LzmaDec.c: Likewise.
36911 * lib/LzmaEnc.c: Likewise.
36913 2008-07-13 Bean <bean123ch@gmail.com>
36915 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36916 (grub_ext4_extent_header): New structure.
36917 (grub_ext4_extent): Likewise.
36918 (grub_ext4_extent_idx): Likewise.
36919 (grub_ext4_find_leaf): New function.
36920 (grub_ext2_read_block): Handle extents.
36922 2008-07-12 Robert Millan <rmh@aybabtu.com>
36924 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36926 2008-07-11 Robert Millan <rmh@aybabtu.com>
36928 * util/grub.d/40_custom.in: New file. Example on how to add custom
36929 entries to /etc/grub.d.
36930 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
36931 40_custom (implicitly, by merging all the grub.d rules).
36933 2008-07-11 Pavel Roskin <proski@gnu.org>
36935 * commands/read.c (grub_getline): Fix invalid memory access.
36936 Don't add newline to the variable value.
36938 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
36939 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
36940 (serial_hw_get_port): Check validity of the port number.
36941 (grub_cmd_serial): Check return value of serial_hw_get_port().
36943 2008-07-07 Pavel Roskin <proski@gnu.org>
36945 * boot/i386/pc/diskboot.S (notification_string): Replace
36946 "Loading kernel" with just "loading". This is shorter, less
36947 confusing and saves a few bytes for possible future changes.
36949 2008-07-05 Pavel Roskin <proski@gnu.org>
36951 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
36952 size for ATAPI devices, they are undefined. Output sector
36953 number in decimal form.
36955 * disk/ata.c: Use named constants for status bits.
36957 2008-07-04 Pavel Roskin <proski@gnu.org>
36959 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
36960 grub_addr_t before casting it to the void pointer to fix a
36961 warning. Non-addressable regions are discarded earlier.
36962 (grub_arch_modules_addr): Cast _end to grub_addr_t.
36963 * kern/i386/linuxbios/table.c: Include grub/misc.h.
36964 (check_signature): Don't shadow table_header.
36965 (grub_linuxbios_table_iterate): Cast numeric constants to
36966 grub_linuxbios_table_header_t.
36967 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
36970 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
36973 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
36974 pointer, which can cause warnings. Support 64-bit addresses.
36976 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
36977 of sizeof(long). This fixes PowerPC image generation on x86_64.
36979 2008-07-04 Robert Millan <rmh@aybabtu.com>
36981 This fixes a performance issue when pc & gpt partmap iterators
36982 didn't abort iteration even after our hook found what it was
36983 looking for (often causing expensive probes of non-existent drives).
36985 Some callers relied on previous buggy behaviour, since they would
36986 raise an error when their own hooks caused early abortion of its
36989 * kern/device.c (grub_device_open): Improve error message.
36990 * disk/lvm.c (grub_lvm_open): Likewise.
36991 * disk/raid.c (grub_raid_open): Likewise.
36993 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
36994 when hook requests it, independently of grub_errno.
36995 (pc_partition_map_probe): Do not fail when find_func() caused
36996 early abortion of pc_partition_map_iterate().
36998 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
36999 when hook requests it, independently of grub_errno.
37000 (gpt_partition_map_probe): Do not fail when find_func() caused
37001 early abortion of gpt_partition_map_iterate().
37003 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37004 when hook requests it, independently of grub_errno. Do not fail when
37005 part_map_iterate_hook() caused early abortion of p->iterate().
37007 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37008 when grub_partition_iterate() returned with non-zero.
37010 2008-07-03 Pavel Roskin <proski@gnu.org>
37012 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37013 like we do in grub_ata_pio_read().
37014 (grub_ata_readwrite): Always write individual sectors. Fix the
37015 sector count for the remainder.
37016 (grub_ata_write): Enable writing to ATA devices. Correctly
37017 report error for ATAPI devices.
37019 2008-07-02 Pavel Roskin <proski@gnu.org>
37021 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37024 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37025 for every read sector, we already increment it for the whole
37026 batch. This fixes reading more than 256 sectors at once.
37028 * util/grub-editenv.c (cmd_info): Cast argument to long
37029 explicitly. ptrdiff_t reduces to int on i386.
37031 * util/grub-editenv.c (main): Be specific which parameter is
37034 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37035 (memdisk): Make memdisk_orig_addr a pointer.
37037 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37038 for file offsets, use grub_off_t instead. Fix printf format
37041 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37042 there. Real unexpected warnings should not drown in the noise
37043 about known problems.
37045 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37046 grub_disk_addr_t for memory addresses.
37048 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37049 explicitly to fix a warning.
37051 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37053 * Makefile.in (MODULE_LDFLAGS): New variable.
37054 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37055 the linker accepts --build-id=none.
37056 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37058 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37060 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37061 those in Linux XFS code. Provide a way to access 64-bit parent
37063 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37064 the end of struct grub_xfs_dir_header.
37066 2008-07-02 Bean <bean123ch@gmail.com>
37068 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37069 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37070 and GRUB_IEEE1275_FLAG_NO_ANSI.
37072 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37073 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37074 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37076 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37077 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37079 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37080 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37082 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37083 esc sequence on non ANSI terminal.
37084 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37086 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37089 2008-07-02 Bean <bean123ch@gmail.com>
37091 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37092 (grub_editenv_SOURCES): New variable.
37093 (pkglib_MODULES): Add loadenv.mod.
37094 (loadenv_mod_SOURCES): New variable.
37095 (loadenv_mod_CFLAGS): Likewise.
37096 (loadenv_mod_LDFLAGS): Likewise.
37098 * include/grub/envblk.h: New file.
37100 * util/envblk.c: New file.
37102 * util/grub-editenv.c: New file.
37104 * commands/loadenv.c: New file.
37106 2008-07-01 Pavel Roskin <proski@gnu.org>
37108 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37109 not unsigned char. This fixes warnings and is consistent with
37112 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37114 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37116 * term/tparm.c (analyze): Always set *popcount.
37118 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37119 cast to fix a warning.
37121 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37122 cast to suppress a warning.
37124 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37125 grub_fshelp_read_file() expects.
37127 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37128 write uuid as a 32-bit value in CPU byte order, so declare and
37131 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37132 long if the format specifier expects it.
37133 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37134 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37135 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37136 long to fix a warning.
37137 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37138 grub_dprintf() arguments to fix warnings.
37140 2008-06-30 Pavel Roskin <proski@gnu.org>
37142 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37143 install_bsd_part immediately before core.img is embedded or
37144 modified on disk. This fixes core.img verification if core.img
37145 cannot be embedded.
37147 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37148 core_path to calculate the blocklist.
37149 Patch from Javier Martín <lordhabbit@gmail.com>
37151 2008-06-29 Robert Millan <rmh@aybabtu.com>
37153 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37154 block to disk block.
37155 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37156 Patch from Niels Böhm <bitbucket@arcor.de>
37158 2008-06-29 Robert Millan <rmh@aybabtu.com>
37160 * util/update-grub_lib.in (font_path): Search for fonts in
37161 /boot/grub first, which is more likely to be readable (we aren't
37162 deciding where fonts live, just looking for them).
37164 2008-06-26 Pavel Roskin <proski@gnu.org>
37166 * util/biosdisk.c (read_device_map): Don't leave dead map
37167 entries for devices failing stat() check.
37169 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37170 core_path_dev for the core.img path on the target device.
37172 2008-06-26 Robert Millan <rmh@aybabtu.com>
37174 * disk/fs_uuid.c: New file.
37175 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37176 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37177 (fs_uuid_mod_LDFLAGS): New variables.
37178 * include/grub/disk.h (grub_disk_dev_id): Add
37179 `GRUB_DISK_DEVICE_UUID_ID'.
37180 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37181 implement iterate().
37183 2008-06-26 Robert Millan <rmh@aybabtu.com>
37185 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37186 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37187 Linux image includes no initrd.
37189 2008-06-21 Javier Martín <lordhabbit@gmail.com>
37191 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37192 call to resolve the core image location that effectively appended the
37195 2008-06-21 Robert Millan <rmh@aybabtu.com>
37197 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37200 * util/grub.d/10_hurd.in: ... to here ...
37201 * util/grub.d/10_linux.in: ... and here.
37203 2008-06-19 Robert Millan <rmh@aybabtu.com>
37205 * kern/main.c (grub_main): Export `prefix' variable immediately
37206 after it has been set by grub_machine_set_prefix().
37208 2008-06-19 Robert Millan <rmh@aybabtu.com>
37210 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37211 search result when not saving to variable, not the other way around.
37212 When saving to variable, abort iteration as soon as a match is found.
37214 2008-06-19 Robert Millan <rmh@aybabtu.com>
37216 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37217 check for partition that provides /boot/grub. Its logic is flawed,
37218 as it prevents prepare_grub_to_access_device() from being called
37221 2008-06-19 Robert Millan <rmh@aybabtu.com>
37223 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37224 "insmod" command directly when abstraction modules are needed,
37225 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
37226 since it had already been processed).
37228 2008-06-19 Pavel Roskin <proski@gnu.org>
37230 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37231 changed. This is needed in case GRUB_LIBDIR changes.
37232 * conf/i386-ieee1275.rmk: Likewise.
37233 * conf/i386-linuxbios.rmk: Likewise.
37234 * conf/i386-pc.rmk: Likewise.
37235 * conf/powerpc-ieee1275.rmk: Likewise.
37237 2008-06-18 Pavel Roskin <proski@gnu.org>
37239 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37240 kernel_elf_symlist.c to symlist.c for consistency with other
37241 architectures. Update all users.
37242 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37244 2008-06-18 Robert Millan <rmh@aybabtu.com>
37246 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37249 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37250 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37251 a RAID device, run setup() for all members independently on whether
37252 LVM abstraction is being used.
37253 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37254 If grub-mkimage has set `*install_dos_part == -2', don't override this
37256 Perform *install_dos_part adjustments independently on whether
37257 we're embedding or not.
37258 Clarify error message when image is too big for embedding.
37259 Remove duplicate *install_dos_part stanza.
37261 2008-06-17 Robert Millan <rmh@aybabtu.com>
37263 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37264 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37266 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37267 values in grub_ofconsole_normal_color and
37268 grub_ofconsole_highlight_color (they're not directly related to
37269 background and foreground).
37270 (grub_ofconsole_setcolorstate): Extract background and foreground
37271 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37273 2008-06-17 Robert Millan <rmh@aybabtu.com>
37275 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37276 /boot/grub for the check in last commit, not /boot (they could be
37277 different partitions).
37279 2008-06-16 Robert Millan <rmh@aybabtu.com>
37281 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37282 asked to setup access for the same partition that provides /boot,
37283 don't bother using UUIDs since our root already has the value we
37286 2008-06-16 Robert Millan <rmh@aybabtu.com>
37288 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37290 Patch from Sven Mueller <sven@debian.org>.
37292 2008-06-16 Robert Millan <rmh@aybabtu.com>
37294 * util/update-grub.in: Check for $EUID instead of $UID.
37295 Reported by Vincent Zweije.
37297 2008-06-16 Bean <bean123ch@gmail.com>
37299 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37300 (grub_ext2_read_block): Likewise.
37301 (grub_ext2_read_inode): Likewise.
37302 (grub_ext2_mount): Likewise.
37303 (grub_ext2_close): Likewise.
37304 (grub_ext3_get_journal): Removed.
37306 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37307 (grub_reiserfs_read_symlink): Likewise.
37308 (grub_reiserfs_mount): Likewise.
37309 (grub_reiserfs_open): Likewise.
37310 (grub_reiserfs_read): Likewise.
37311 (grub_reiserfs_close): Likewise.
37312 (grub_reiserfs_get_journal): Removed.
37314 * fs/fshelp.c (grub_fshelp_read): Removed.
37315 (grub_fshelp_map_block): Likewise.
37317 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37318 (grub_fshelp_journal): Likewise.
37319 (grub_fshelp_read): Likewise.
37320 (grub_fshelp_map_block): Likewise.
37322 2008-06-16 Pavel Roskin <proski@gnu.org>
37324 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37325 floating point anymore.
37326 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37328 2008-06-15 Pavel Roskin <proski@gnu.org>
37330 * commands/ls.c (grub_ls_list_files): Use integer calculations
37331 for human readable format, avoid floating point use.
37332 * kern/misc.c (grub_ftoa): Remove.
37333 (grub_vsprintf): Remove floating point support.
37335 2008-06-15 Robert Millan <rmh@aybabtu.com>
37337 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37339 Reported by Max Vozeler.
37341 2008-06-15 Robert Millan <rmh@aybabtu.com>
37343 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37344 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37346 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37347 the beginning of the prefix.
37349 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37350 It is assumed that if we have a memdisk, grub-mkimage has set
37351 grub_prefix to include the "(memdisk)" drive in it.
37353 2008-06-15 Robert Millan <rmh@aybabtu.com>
37355 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37356 Initialize keyboard controller after registering the terminal, so that
37357 grub_printf() can be called from grub_keyboard_controller_init().
37359 2008-06-15 Robert Millan <rmh@aybabtu.com>
37361 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37362 extent-btree which is written as big endian on disk.
37363 Reported by Alain Greppin <al@chilibi.org>.
37365 2008-06-14 Robert Millan <rmh@aybabtu.com>
37367 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37368 * util/i386/pc/grub-install.in (modules): Likewise.
37370 2008-06-13 Pavel Roskin <proski@gnu.org>
37372 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37374 2008-06-13 Bean <bean123ch@gmail.com>
37376 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37378 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37380 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37381 to indicate sparse block.
37383 2008-06-12 Pavel Roskin <proski@gnu.org>
37385 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37386 number, grub_fshelp_read() does it for us.
37388 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37389 linear disk read with journal translation.
37390 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37391 * include/grub/fshelp.h: Declare grub_fshelp_read().
37393 2008-06-09 Pavel Roskin <proski@gnu.org>
37395 * fs/minix.c (grub_minix_mount): Handle error reading
37398 2008-06-08 Robert Millan <rmh@aybabtu.com>
37400 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37401 don't append the RAID prefix afterwards.
37402 Reported by Clint Adams.
37404 2008-06-08 Robert Millan <rmh@aybabtu.com>
37406 Based on description from Pavel:
37407 * kern/disk.c (grub_disk_check_range): Rename to ...
37408 (grub_disk_adjust_range): ... this. Add a comment explaining the
37409 tasks performed by this function.
37411 2008-06-08 Robert Millan <rmh@aybabtu.com>
37413 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37414 `num_serial' (for consistency with other variables).
37415 (struct grub_ntfs_data): Add `uuid' member.
37416 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37417 (grub_ntfs_uuid): New function.
37418 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37420 2008-06-07 Pavel Roskin <proski@gnu.org>
37422 * util/biosdisk.c (open_device): Revert last change to the
37423 function, it broke installation. The sector needs to be
37424 different dependent on which device is opened.
37426 2008-06-06 Robert Millan <rmh@aybabtu.com>
37428 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37429 rest of GRUB, and breakage doesn't happen if its value were modified.
37431 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37432 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37433 a constant (same value).
37434 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37435 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37437 2008-06-06 Robert Millan <rmh@aybabtu.com>
37439 * util/biosdisk.c (open_device): Do not modify sector offset when
37440 accessing a partition. kern/disk.c already handles this for us.
37442 2008-06-06 Robert Millan <rmh@aybabtu.com>
37444 * util/grub-emu.c (grub_machine_init): Move code in this function from
37446 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37447 segfault in case grub_printf() is called).
37449 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37450 grub_probe. Update all users not to explicitly add it again.
37451 (grub_device): New variable; contains corresponding device for grubdir.
37452 (fs_module, partmap_module, devabstraction_module): Pass
37453 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37456 2008-06-05 Robert Millan <rmh@aybabtu.com>
37458 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37459 is found, print it (same layout as with labels).
37461 2008-06-04 Robert Millan <rmh@aybabtu.com>
37463 * util/biosdisk.c (get_drive): Rename to ...
37464 (find_grub_drive): ... this. Update all users.
37466 (get_os_disk): Rename to ...
37467 (convert_system_partition_to_system_disk): ... this. Update all users.
37469 (find_drive): Rename to ...
37470 (find_system_device): ... this. Update all users.
37472 2008-06-04 Robert Millan <rmh@aybabtu.com>
37474 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37475 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37476 (make_device_map): Likewise.
37478 2008-06-01 Robert Millan <rmh@aybabtu.com>
37480 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37481 before dereferencing it.
37483 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37484 union with fat12/fat16-specific ones. Add some new fields, including
37485 `num_serial' for both versions.
37486 (struct grub_fat_data): Add `uuid' member.
37487 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37488 names. Initialize `data->uuid' using `num_serial'.
37489 (grub_fat_uuid): New function.
37490 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37492 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37493 (grub_reiserfs_uuid): New function.
37494 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37497 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37498 (grub_xfs_uuid): New function.
37499 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37501 2008-06-01 Robert Millan <rmh@aybabtu.com>
37503 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37504 code that is backward compatible with pre-uuid search command.
37506 2008-05-31 Robert Millan <rmh@aybabtu.com>
37508 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37509 floppies after everything else, to ensure floppy drive isn't accessed
37510 unnecessarily (patch from Bean).
37512 2008-05-31 Robert Millan <rmh@aybabtu.com>
37514 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37515 not print device names when we were asked to set a variable.
37517 2008-05-31 Robert Millan <rmh@aybabtu.com>
37519 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37520 using "cursor-on" and "cursor-off" commands (understood at least by
37521 the Open Firmware flavour on OLPC).
37523 2008-05-31 Michael Gorven <michael@gorven.za.net>
37525 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37526 on and off sequences.
37528 2008-05-31 Robert Millan <rmh@aybabtu.com>
37530 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37531 * util/update-grub.in: Likewise.
37533 2008-05-30 Pavel Roskin <proski@gnu.org>
37535 * util/biosdisk.c (linux_find_partition): Simplify logic and
37536 make the code more universal. Keep special processing for
37537 devfs, but use a simple rule for all other devices. If the
37538 device ends with a number, append 'p' and the partition number.
37539 Otherwise, append only the partition number.
37541 2008-05-30 Robert Millan <rmh@aybabtu.com>
37543 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37544 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37545 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37546 the `root' parameter to Linux.
37548 2008-05-30 Robert Millan <rmh@aybabtu.com>
37550 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37551 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37552 --fs_uuid with --fs-uuid.
37553 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37554 all filesystems support them).
37556 2008-05-30 Robert Millan <rmh@aybabtu.com>
37558 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37559 grub_printf() flags, since we're printing in units of 2 bytes.
37561 2008-05-30 Robert Millan <rmh@aybabtu.com>
37563 * util/grub.d/00_header.in: Remove obsolete comment referencing
37564 convert_system_path_to_grub_path().
37565 * util/update-grub.in: Likewise.
37566 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37567 (convert_system_path_to_grub_path): Add a warning message explaining
37568 that this function is deprecated. Rely on is_path_readable_by_grub()
37569 for the readability checks.
37570 (font_path): Use is_path_readable_by_grub() for the readability
37571 check rather than convert_system_path_to_grub_path().
37573 2008-05-30 Robert Millan <rmh@aybabtu.com>
37575 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37576 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37577 converting it first.
37578 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37579 grub.cfg for access to font file, and afterwards call it again to set
37582 2008-05-30 Robert Millan <rmh@aybabtu.com>
37584 * commands/search.c (options): Add --fs_uuid option.
37585 (search_fs_uuid): New function.
37586 (grub_cmd_search): Fix --set argument passing.
37587 Use search_fs_uuid() when requested via --fs_uuid.
37588 (grub_search_init): Update help message.
37589 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37590 and redeclare it as an array of 16-bit words.
37591 (grub_ext2_uuid): New function.
37592 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37593 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37594 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37595 (GRUB_DEVICE_BOOT_UUID): New variables.
37596 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37597 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37599 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37600 just assume `root' variable has the right value.
37601 * util/grub.d/10_linux.in: Likewise.
37602 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37604 (main): Recognise `-t fs_uuid' argument.
37606 2008-05-30 Robert Millan <rmh@aybabtu.com>
37608 * util/biosdisk.c (map): Redefine structure to hold information
37609 about GRUB drive name.
37610 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37612 (call_hook): Remove.
37613 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37614 member. Assume drive has partitions.
37615 (grub_util_biosdisk_open): Access device names via `.device' struct
37617 (open_device): Likewise.
37618 (find_drive): Likewise.
37619 (read_device_map): Adjust map[] usage to match the new struct
37620 definition. Don't check for duplicates (still possible, but not cheap
37622 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37623 (make_device_name): Remove assumption of BIOS-like drive names.
37625 2008-05-30 Pavel Roskin <proski@gnu.org>
37627 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37628 compiling execute.c doesn't need grub_script.tab.h anymore.
37629 (normal/command.c_DEPENDENCIES): Likewise.
37630 (normal/function.c_DEPENDENCIES): Likewise.
37631 * conf/i386-ieee1275.rmk: Likewise.
37632 * conf/i386-linuxbios.rmk: Likewise.
37633 * conf/i386-pc.rmk: Likewise.
37634 * conf/powerpc-ieee1275.rmk: Likewise.
37635 * conf/sparc64-ieee1275.rmk: Likewise.
37637 2008-05-29 Pavel Roskin <proski@gnu.org>
37639 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37640 when scanning metadata for volume group name.
37642 * include/grub/script.h: Don't include grub_script.tab.h. It's
37643 a generated file, which may only be included from the files with
37644 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37645 use union YYSTYPE, as the later allows forward declaration.
37646 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37648 2008-05-29 Robert Millan <rmh@aybabtu.com>
37650 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37651 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37652 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37653 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37656 2008-05-29 Robert Millan <rmh@aybabtu.com>
37658 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37659 control key combinations.
37661 2008-05-29 Robert Millan <rmh@aybabtu.com>
37663 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37664 * util/ieee1275/grub-install.in: ... to here.
37665 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37666 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37667 (grub_install_SOURCES): Likewise.
37669 2008-05-29 Robert Millan <rmh@aybabtu.com>
37671 * fs/affs.c: Update copyright year.
37672 * fs/ext2.c: Likewise.
37673 * fs/fshelp.c: Likewise.
37674 * fs/hfsplus.c: Likewise.
37675 * fs/ntfs.c: Likewise.
37676 * fs/xfs.c: Likewise.
37677 * include/grub/fshelp.h: Likewise.
37678 * util/grub-mkdevicemap.c: Likewise.
37680 2008-05-28 Robert Millan <rmh@aybabtu.com>
37682 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37683 might need to be fatfs to support some firmware implementations
37686 2008-05-28 Robert Millan <rmh@aybabtu.com>
37688 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37690 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37691 (make_device_map): Likewise.
37693 2008-05-20 Bean <bean123ch@gmail.com>
37695 * fs/fshelp.c (grub_fshelp_map_block): New function.
37696 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37697 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37699 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37700 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37701 (grub_fshelp_journal): New structure.
37702 (grub_fshelp_map_block): New function prototype.
37703 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37704 (grub_fshelp_map_block): Likewise.
37706 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37707 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37708 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37709 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37710 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37711 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37712 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37713 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37714 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37715 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37716 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37717 (grub_ext2_sblock): New members for journal support.
37718 (grub_ext3_journal_header): New structure.
37719 (grub_ext3_journal_revoke_header): Likewise.
37720 (grub_ext3_journal_block_tag): Likewise.
37721 (grub_ext3_journal_sblock): Likewise.
37722 (grub_fshelp_node): New members logfile and journal.
37723 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37724 grub_fshelp_map_block to get real block number.
37725 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37727 (grub_ext2_read_inode): Likewise.
37728 (grub_ext3_get_journal): New function.
37729 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37730 (grub_ext2_close): Release memory used by journal.
37732 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37733 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37734 (grub_reiserfs_transaction_header): Renamed to
37735 grub_reiserfs_description_block, replace field data with real_blocks.
37736 (grub_reiserfs_commit_block): New structure.
37737 (grub_reiserfs_data): New member journal.
37738 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37740 (grub_reiserfs_read_symlink): Likewise.
37741 (grub_reiserfs_iterate_dir): Likewise.
37742 (grub_reiserfs_open): Likewise.
37743 (grub_reiserfs_read): Likewise.
37744 (grub_reiserfs_get_journal): New function.
37745 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37746 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37747 using grub_reiserfs_get_journal.
37748 (grub_reiserfs_close): Release memory used by journal.
37750 * fs/affs.c (grub_affs_read_block): Change block type to
37751 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37753 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37755 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37757 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37759 * fs/udf.c (grub_udf_read_block): Change block type to
37760 grub_disk_addr_t. Use type cast to avoid warning.
37762 * fs/xfs.c (grub_xfs_read_block): Likewise.
37764 2008-05-16 Christian Franke <franke@computer.org>
37766 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37767 to ensure that break with ESC will always work.
37768 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37769 Remove ESC from keyboard queue.
37771 2008-05-16 Christian Franke <franke@computer.org>
37773 * util/biosdisk.c: [__CYGWIN__] Add includes.
37774 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37775 (get_os_disk): Move variable declarations to OS specific
37776 parts to avoid warning.
37777 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37778 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37779 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37781 * util/getroot.c: [__CYGWIN__] Add includes.
37782 (strip_extra_slashes): Fix "/" case.
37783 [__CYGWIN__] (get_win32_path): New function.
37784 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37785 [__CYGWIN__] (find_root_device): Disable.
37786 [__CYGWIN__] (get_bootsec_serial): New function.
37787 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37788 [__linux__] (grub_guess_root_device): Add early returns to simplify
37790 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37791 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37792 check for Linux only.
37794 2008-05-15 Bean <bean123ch@gmail.com>
37796 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37797 keyboard hang problem in apple's intel mac.
37799 2008-05-09 Robert Millan <rmh@aybabtu.com>
37801 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37803 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37804 (make_device_map): Likewise.
37805 Reported by Aurelien Jarno <aurel32@debian.org>
37807 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37809 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37810 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37811 (make_device_map): Output entries for xvd type disks.
37813 2008-05-07 Robert Millan <rmh@aybabtu.com>
37815 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37817 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37818 (make_device_map): Likewise.
37819 Reported by Roland Dreier <rdreier@cisco.com>
37821 2008-05-07 Robert Millan <rmh@aybabtu.com>
37823 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37824 grub_strstr() call. Correct a few mistakes in failure path handling.
37826 2008-05-06 Robert Millan <rmh@aybabtu.com>
37828 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37829 Do not print a trailing slash (therefore, the root directory is an
37831 (convert_system_path_to_grub_path): Do not remove trailing slash
37832 from make_system_path_relative_to_its_root() output.
37834 * util/i386/pc/grub-install.in: Add trailing slash to output from
37835 make_system_path_relative_to_its_root().
37837 2008-05-06 Robert Millan <rmh@aybabtu.com>
37839 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37840 ensures that output lines aren't intermangled with those sent to
37841 stderr (via grub_util_info()).
37842 * util/grub-probe.c (grub_refresh): Likewise.
37843 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37845 2008-05-05 Christian Franke <franke@computer.org>
37847 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37848 Add Cygwin device names.
37849 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37850 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37851 (check_device): Return error instead of success on empty name.
37852 (make_device_map): Move label inside linux specific code to
37853 prevent compiler warning.
37855 2008-04-30 Robert Millan <rmh@aybabtu.com>
37857 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37858 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37860 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37862 2008-04-29 Robert Millan <rmh@aybabtu.com>
37864 * docs/grub.cfg: New file (example GRUB configuration).
37866 2008-04-26 Robert Millan <rmh@aybabtu.com>
37868 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37869 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37870 and `disk/ieee1275/nand.c'.
37872 2008-04-25 Bean <bean123ch@gmail.com>
37874 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37877 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37878 change the buffer size to 4096 for cdrom device.
37880 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37882 (_linux_mod_SOURCES): New variable.
37883 (_linux_mod_CFLAGS): Likewise.
37884 (_linux_mod_LDFLAGS): Likewise.
37885 (linux_mod_SOURCES): Likewise.
37886 (linux_mod_CFLAGS): Likewise.
37887 (linux_mod_LDFLAGS): Likewise.
37888 (nand_mod_SOURCES): Likewise.
37889 (nand_mod_CFLAGS): Likewise.
37890 (nand_mod_LDFLAGS): Likewise.
37892 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37893 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37894 type property. (nand device in olpc don't have this property)
37896 * include/grub/disk.h (grub_disk_dev_id): New macro
37897 GRUB_DISK_DEVICE_NAND_ID.
37899 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37900 function prototype.
37901 (grub_rescue_cmd_initrd): Likewise.
37903 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37904 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37905 ofw_cif_handler and ofw_idt, adjust padding number.
37907 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37908 GRUB_MACHINE_IEEE1275 is defined.
37910 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37911 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37913 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37914 on nested function heap_init.
37915 (grub_upper_mem): New variable for i386-ieee1275.
37916 (grub_get_extended_memory): New function for i386-ieee1275.
37917 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37919 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37920 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37923 * loader/i386/ieee1275/linux.c: New file.
37925 * loader/i386/ieee1275/linux_normal.c: New file.
37927 * disk/ieee1275/nand.c: New file.
37929 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
37931 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
37933 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
37935 2008-04-18 Robert Millan <rmh@aybabtu.com>
37937 Restructures early code path on ieee1275 to unify grub_main() as
37938 the first C function that is executed in every platform.
37940 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
37941 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
37943 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
37944 * kern/ieee1275/cmain.c (cmain): Rename to ...
37945 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
37946 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
37949 2008-04-18 Robert Millan <rmh@aybabtu.com>
37951 * util/update-grub.in: Fix syntax error when setting
37952 `GRUB_PRELOAD_MODULES'.
37953 Reported by Stephane Chazelas <stephane@artesyncp.com>
37955 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
37957 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
37958 section into account, newer toolchains generate unique build ids
37959 * configure.ac: remove the test for --build-id=none acceptance,
37960 we want build ids to be preserved
37961 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
37962 far from other sections don't cause the raw binary images grow
37965 2008-04-15 Robert Millan <rmh@aybabtu.com>
37967 * disk/lvm.c: Update copyright year.
37968 * kern/misc.c: Likewise.
37970 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37972 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
37973 there is no memory left for physical volume name.
37975 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
37977 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
37978 volume name mapping to support bigger than 9 character names properly.
37980 2008-04-13 Robert Millan <rmh@aybabtu.com>
37982 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
37983 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
37985 2008-04-13 Christian Franke <franke@computer.org>
37987 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
37988 to create a floppy emulation boot CD when non emulation mode
37990 Enable Joliet CD filesystem extension.
37992 2008-04-13 Robert Millan <rmh@aybabtu.com>
37994 * kern/misc.c (grub_strncat): Fix off-by-one error.
37995 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
37997 * kern/env.c (grub_env_context_close): Clear current context, not
37999 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38001 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38003 2008-04-13 Robert Millan <rmh@aybabtu.com>
38005 Improve robustness when handling LVM.
38007 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
38008 (and leave `*p' unmodified).
38009 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38011 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38012 iterating through it.
38013 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38015 (grub_lvm_scan_device): Check the return value (and fail gracefully
38016 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38017 Don't assume `vg->pvs != NULL' when iterating through it.
38019 2008-04-13 Robert Millan <rmh@aybabtu.com>
38021 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38022 * genmk.rb (partmap): New variable.
38023 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38024 (#{partmap}): New target rule.
38025 * genpartmaplist.sh: New file.
38026 * Makefile.in (pkglib_DATA): Add partmap.lst.
38027 (partmap.lst): New target rule.
38028 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38029 modules (including all partition maps), instead of preloading them.
38031 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38033 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38034 `linux-boot-prober' (if installed) to detect other operating
38035 systems which are installed on the computer and add them to
38037 * conf/common.rmk: Build and install 30_os-prober.
38039 2008-04-12 Robert Millan <rmh@aybabtu.com>
38041 * kern/powerpc/ieee1275/init.c: Move from here ...
38042 * kern/ieee1275/init.c: ... to here. Update all users.
38044 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38045 * kern/ieee1275/cmain.c: ... to here. Update all users.
38047 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38048 * kern/ieee1275/openfw.c: ... to here. Update all users.
38050 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38051 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38053 2008-04-10 Pavel Roskin <proski@gnu.org>
38055 * configure.ac: Always use "_cv_" in cache variables for
38056 compatibility with Autoconf 2.62.
38058 2008-04-07 Robert Millan <rmh@aybabtu.com>
38060 Revert grub/machine/init.h addition by Pavel (since it breaks on
38061 i386-ieee1275 and others):
38062 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38063 * util/powerpc/ieee1275/misc.c: Likewise.
38065 2008-04-07 Robert Millan <rmh@aybabtu.com>
38067 * util/grub-probe.c (probe): Improve error message.
38069 2008-04-07 Robert Millan <rmh@aybabtu.com>
38071 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38072 (this prevents the presence of a bogus entry from ruining the whole
38075 2008-04-06 Pavel Roskin <proski@gnu.org>
38077 * util/biosdisk.c: Include grub/util/biosdisk.h.
38078 * util/grub-fstest.c (execute_command): Make static.
38079 * util/grub-mkdevicemap.c (check_device): Likewise.
38080 * util/i386/pc/misc.c: Include grub/machine/init.h.
38081 * util/powerpc/ieee1275/misc.c: Likewise.
38082 * util/lvm.c: Include grub/util/lvm.h.
38083 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38085 * util/raid.c: Include grub/util/raid.h.
38086 (grub_util_getdiskname): Make static.
38088 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38089 grub_hostfs_fini(), as they are called from grub_init_all() and
38090 grub_fini_all() respectively. This fixes an infinite loop in
38091 grub-fstest due to double registration of hostfs.
38092 Reported by Christian Franke <Christian.Franke@t-online.de>
38094 2008-04-05 Pavel Roskin <proski@gnu.org>
38096 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38097 all 8 functions. Otherwise, probe function 0 only.
38099 2008-04-04 Pavel Roskin <proski@gnu.org>
38101 * commands/lspci.c (grub_lspci_iter): Print the bus number
38104 * commands/lspci.c (grub_pci_classes): Fix typos.
38105 (grub_lspci_iter): Don't print func twice. Print vendor ID
38106 before device ID, as it's normally done.
38108 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38109 Fix signedness warnings.
38110 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38112 * util/ieee1275/get_disk_name.c: Include config.h so that
38113 _GNU_SOURCE is defined and getline() is declared. Mark an
38114 unused argument as such. Fix a signedness warning.
38116 2008-04-02 Pavel Roskin <proski@gnu.org>
38118 * genkernsyms.sh.in: Use more robust assignments for CC and
38119 srcdir. Quote srcdir.
38120 * gensymlist.sh.in: Likewise. Assert at the compile time that
38121 the symbol table is not empty.
38123 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38124 * fs/cpio.c (grub_cpio_read): Likewise.
38126 2008-04-01 Pavel Roskin <proski@gnu.org>
38128 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38129 * disk/host.c (grub_host_open): Likewise.
38130 * disk/loopback.c (grub_loopback_open): Likewise.
38131 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38132 disk->id as in disk/host.c, not a multi-character constant.
38134 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38135 later is obsolete, potentially dangerous and sets a bad example.
38136 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38137 * util/misc.c (grub_util_get_image_size): Likewise.
38139 * disk/loopback.c (options): Improve help for "--partitions".
38141 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38142 options to align them with the short options, e.g. "echo -e".
38144 2008-03-31 Bean <bean123ch@gmail.com>
38146 * video/reader/png.c (grub_png_data): New member is_16bit and
38148 (grub_png_decode_image_header): Detect 16 bit png image.
38149 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38150 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38151 (grub_video_reader_png): Release memory occupied by image_data.
38153 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38155 (grub_nfs_mount): Skip the test for sector per cluster.
38157 * include/grub/ntfs.h (MAX_SPC): Removed.
38159 2008-03-31 Bean <bean123ch@gmail.com>
38161 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38162 (grub_probe_SOURCES): Add fs/afs.c.
38163 (grub_fstest_SOURCES): Likewise.
38164 (afs_mod_SOURCES): New variable.
38165 (afs_mod_CFLAGS): Likewise.
38166 (afs_mod_LDFLAGS): Likewise.
38168 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38169 (grub_emu_SOURCES): Likewise.
38171 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38173 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38175 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38177 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38179 * fs/afs.c: New file.
38181 2008-03-30 Pavel Roskin <proski@gnu.org>
38183 * disk/host.c: Include grub/misc.h to fix a warning.
38184 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38185 warnings about implicit declarations.
38187 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38189 * include/grub/i386/loader.h: Change declaration of
38190 grub_linux_boot() to match what grub_loader_set() expects.
38191 * util/getroot.c (grub_guess_root_device): Return const char* to
38193 * util/grub-probe.c (probe): Fix a warning about uninitialized
38194 abstraction_name variable.
38195 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38196 second argument as unused to fix a warning.
38198 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38199 missing grub_error() call.
38201 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38202 2.60 and newer uses it to define datadir.
38204 * commands/sleep.c: Fix warning about implicit declaration.
38205 * disk/memdisk.c: Likewise.
38206 * loader/aout.c: Likewise.
38207 * loader/i386/bsd_normal.c: Likewise.
38208 * util/grub-probe.c: Likewise.
38210 * commands/i386/cpuid.c (has_longmode): Make static.
38211 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38212 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38214 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38215 GDT. This is more robust, as %ds can change.
38216 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38217 calling real_to_prot().
38218 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38220 2008-03-28 Pavel Roskin <proski@gnu.org>
38222 * kern/i386/pc/startup.S: Assert that uncompressed functions
38223 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38224 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38225 code, as they push parts of the code (error handlers) beyond
38226 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38227 code as correctness and size.
38229 2008-03-28 Pavel Roskin <proski@gnu.org>
38231 * kern/i386/pc/startup.S
38232 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38233 data block address to the real mode, keep offset minimal. This
38234 works around a bug in AWARD BIOS on old Athlon systems, which
38235 makes CD detection hang.
38237 2008-03-26 Pavel Roskin <proski@gnu.org>
38239 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38241 * include/grub/normal.h: Add grub_parse_color_name_pair()
38244 2008-03-24 Bean <bean123ch@gmail.com>
38246 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38247 (cd_count): Removed.
38248 (cd_drive): New variable.
38249 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38250 (grub_biosdisk_call_hook): Likewise.
38251 (grub_biosdisk_iterate): Change cdrom detection method.
38252 (grub_biosdisk_open): Replace cd_start with cd_drive.
38253 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38254 detect cdrom device.
38256 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38258 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38259 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38260 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38261 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38262 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38263 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38264 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38265 (grub_biosdisk_cdrp): New structure.
38266 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38268 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38270 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38273 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38276 2008-03-20 Robert Millan <rmh@aybabtu.com>
38278 Remove 2 TiB limit in ata.mod.
38279 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38280 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38281 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38282 grub_uint64_t instead of grub_uint32_t.
38284 2008-03-05 Bean <bean123ch@gmail.com>
38286 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38287 (grub_multiboot): Set boot device.
38289 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38291 2008-03-02 Bean <bean123ch@gmail.com>
38293 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38296 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38298 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38301 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38304 * docs/fdl.texi: New file.
38306 * docs/mdate-sh: New file. Copied from gnulib.
38307 * docs/texinfo.tex: Likewise.
38309 * config.guess: Updated from gnulib.
38310 * install-sh: Likewise.
38312 2008-02-28 Robert Millan <rmh@aybabtu.com>
38314 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38315 (aout_mod_SOURCES): New variable.
38316 (aout_mod_CFLAGS): Likewise.
38317 (aout_mod_LDFLAGS): Likewise.
38319 * conf/i386-ieee1275.rmk: Likewise.
38321 2008-02-28 Robert Millan <rmh@aybabtu.com>
38323 * util/update-grub.in: Reorganise terminal validity check. Accept
38324 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38325 Based on suggestion by Franklin PIAT.
38327 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38329 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38331 * util/getroot.c (grub_util_check_block_device): New function that
38332 returns the given argument if it is a block device and returns NULL else.
38333 * util/grub-probe.c (argument_is_device): New variable.
38334 (probe): Promote device_name from a variable to an argument. Receive
38335 device_name from grub_util_check_block_device() if path is NULL and from
38336 grub_guess_root_device() else. Do not free() device_name anymore.
38337 (options): Introduce new parameter '-d, --device'.
38338 (main): Add description of the new parameter to the help screen.
38339 Rename path variable to argument. Set argument_is_device if the '-d'
38340 option is given. Pass argument to probe() depending on
38341 argument_is_device.
38343 2008-02-24 Bean <bean123ch@gmail.com>
38345 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38346 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38347 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38348 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38349 (GRUB_ISO9660_VOLDESC_END): Likewise.
38350 (grub_iso9660_primary_voldesc): New member escape.
38351 (grub_iso9660_data): New member joliet.
38352 (grub_iso9660_convert_string): New function.
38353 (grub_iso9660_mount): Detect joliet extension.
38354 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38355 (grub_iso9660_iso9660_label): Likewise.
38357 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38358 (grub_setup_SOURCES): Add fs/udf.c.
38359 (grub_fstest_SOURCES): Likewise.
38360 (udf_mod_SOURCES): New variable.
38361 (udf_mod_CFLAGS): Likewise.
38362 (udf_mod_LDFLAGS): Likewise.
38364 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38365 (grub_emu_SOURCES): Likewise.
38367 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38369 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38371 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38373 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38375 * fs/udf.c: New file.
38377 2008-02-24 Robert Millan <rmh@aybabtu.com>
38379 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38380 (normal/lexer.c_DEPENDENCIES): New variables.
38381 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38382 (normal/lexer.c_DEPENDENCIES): Likewise.
38383 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38384 (normal/lexer.c_DEPENDENCIES): Likewise.
38385 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38386 (normal/lexer.c_DEPENDENCIES): Likewise.
38387 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38388 (normal/lexer.c_DEPENDENCIES): Likewise.
38389 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38390 (normal/lexer.c_DEPENDENCIES): Likewise.
38392 2008-02-23 Robert Millan <rmh@aybabtu.com>
38394 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38395 since they were intended to be in hex. This didn't break previously
38396 because of a bug in gpt_partition_map_iterate() (see below).
38398 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38399 when checking the validity of GPT header.
38400 Remove `partno', since it always provides the same information as `i'.
38402 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38404 * include/grub/efi/time.h: Fix a wrong comment.
38406 2008-02-19 Pavel Roskin <proski@gnu.org>
38408 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38411 2008-02-19 Bean <bean123ch@gmail.com>
38413 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38414 (aout_mod_SOURCES): New variable.
38415 (aout_mod_CFLAGS): Likewise.
38416 (aout_mod_LDFLAGS): Likewise.
38417 (_bsd_mod_SOURCES): New variable.
38418 (_bsd_mod_CFLAGS): Likewise.
38419 (_bsd_mod_LDFLAGS): Likewise.
38420 (bsd_mod_SOURCES): New variable.
38421 (bsd_mod_CFLAGS): Likewise.
38422 (bsd_mod_LDFLAGS): Likewise.
38424 * include/grub/aout.h: New file.
38426 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38428 * include/grub/i386/bsd.h: New file.
38430 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38433 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38434 function is called, so that it's possible to change it inside the hook.
38435 (grub_elf64_load): Likewise.
38436 (grub_elf_file): Don't close the file if elf header is not found.
38437 (grub_elf_close): Close the file if grub_elf_file fails (The new
38438 grub_elf_file won't close it).
38439 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38440 (grub_elf64_size): Likewise.
38442 * kern/i386/loader.S (grub_unix_real_boot): New function.
38444 * loader/aout.c: New file.
38446 * loader/i386/bsd.c: New file.
38448 * loader/i386/bsd_normal.c: New file.
38450 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38452 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38453 can test other formats.
38455 2008-02-19 Robert Millan <rmh@aybabtu.com>
38457 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38458 (grub_gpt_partition_type_empty): Redefine with macro from
38459 `<grub/gpt_partition.h>'.
38460 (gpt_partition_map_iterate): Adjust partition type comparison.
38462 Export `entry' as partmap-specific `part.data' struct.
38463 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38465 * include/grub/gpt_partition.h (grub_gpt_header)
38466 (grub_gpt_partentry): ... to here (new file).
38468 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38470 (grub_gpt_partition_type_bios_boot): New const variable, defined
38471 with macro from `<grub/gpt_partition.h>'.
38473 (setup): Replace `first_start' with `embed_region', which keeps
38474 track of the embed region (and is partmap-agnostic).
38476 Replace find_first_partition_start() with find_usable_region(),
38477 which finds a usable region for embedding using partmap-specific
38478 knowledge (supports PC/MSDOS and GPT).
38480 Fix all assumptions that the embed region start at sector 1, using
38481 `embed_region.start' from now on. Similarly, use `embed_region.end'
38482 rather than `first_start' to calculate available size.
38484 In grub_util_info() message, replace "into after the MBR" with an
38485 indication of the specific sector our embed region starts at.
38487 2008-02-19 Robert Millan <rmh@aybabtu.com>
38489 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38490 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38491 `commands/reboot.c'.
38492 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38493 (halt_mod_SOURCES): Likewise.
38494 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38495 (halt_mod_SOURCES): Likewise.
38497 2008-02-17 Christian Franke <franke@computer.org>
38499 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38501 2008-02-17 Robert Millan <rmh@aybabtu.com>
38503 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38504 set `first_start' to 0 for non-PC/MSDOS partition maps.
38506 2008-02-16 Robert Millan <rmh@aybabtu.com>
38508 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38509 do not assume partition map is PC/MSDOS before performing checks that
38510 are specific to that layout.
38512 2008-02-13 Robert Millan <rmh@aybabtu.com>
38514 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38515 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38516 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38518 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38520 * configure.ac: Only a cosmetic change on the handling of
38521 -fno-stack-protector.
38523 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38525 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38526 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38528 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38529 (halt_mod_SOURCES): New variable.
38530 (halt_mod_CFLAGS): Likewise.
38531 (halt_mod_LDFLAGS): Likewise.
38532 (reboot_mod_SOURCES): Likewise.
38533 (reboot_mod_CFLAGS): Likewise.
38534 (reboot_mod_LDFLAGS): Likewise.
38536 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38537 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38539 (halt_mod_SOURCES): Likewise.
38540 (reboot_mod_SOURCES): Likewise.
38542 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38543 commands/i386/pc/reboot.c by commands/reboot.c.
38544 (reboot_mod_SOURCES): Likewise.
38546 * commands/i386/pc/reboot.c: merge this file ...
38548 * commands/ieee1275/reboot.c: ... and this file ...
38550 * commands/reboot.c: ... to this file.
38551 Add some precompiler directive to include the correct header for
38554 * commands/ieee1275/halt.c: move this file ...
38556 * commands/halt.c: ... to here.
38557 Add some precompiler directive to include the correct header for
38560 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38561 (grub_halt): Likewise.
38563 * kern/efi/efi.c (grub_reboot): New function.
38564 (grub_halt): Likewise.
38566 2008-02-12 Robert Millan <rmh@aybabtu.com>
38568 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38569 /dev (like it is done for /dev/mapper). This doesn't provide support
38570 for EVMS, but at least it is now easy to identify the problem when it
38573 2008-02-11 Robert Millan <rmh@aybabtu.com>
38575 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38576 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38577 comparing it with -1, not 0.
38579 2008-02-10 Robert Millan <rmh@aybabtu.com>
38581 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38583 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38584 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38586 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38587 `disk/lvm.c' to the end of the list.
38588 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38589 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38591 2008-02-10 Robert Millan <rmh@aybabtu.com>
38593 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38594 grub_print_error() instead. This will let user know why we're entering
38596 Based on suggestions from Sam Morris.
38598 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38600 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38601 on remaining N args, instead of "--" arg N times.
38603 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38605 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38606 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38607 pattern for unknown glyphs.
38609 2008-02-09 Robert Millan <rmh@aybabtu.com>
38611 * configure.ac: Probe for `help2man'.
38612 * Makefile.in (builddir): New variable.
38613 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38614 or otherwise add a few flags/options to it.
38615 (install-local): For every executable utility or script that is
38616 installed, invoke $(HELP2MAN) to install a manpage based on --help
38619 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38620 that it doesn't prevent --help from working in build tree.
38622 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38623 with `bug-grub@gnu.org'.
38624 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38625 * util/update-grub.in (usage): New function.
38626 Implement proper argument check, with support for --help and --version
38627 (as well as existing -y).
38629 2008-02-09 Christian Franke <franke@computer.org>
38631 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38632 avoid overwriting previous output.
38633 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38635 2008-02-09 Robert Millan <rmh@aybabtu.com>
38637 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38640 2008-02-09 Robert Millan <rmh@aybabtu.com>
38642 * commands/sleep.c: New file.
38643 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38644 (sleep_mod_SOURCES): New variable.
38645 (sleep_mod_CFLAGS): Likewise.
38646 (sleep_mod_LDFLAGS): Likewise.
38648 2008-02-09 Robert Millan <rmh@aybabtu.com>
38650 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38651 situations in which we can deduce the RAID size and the superblock
38654 2008-02-09 Robert Millan <rmh@aybabtu.com>
38656 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38657 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38658 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38660 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38661 and return a grub_diskmemberlist_t composed of physical array members.
38662 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38664 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38666 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38667 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38668 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38670 * util/grub-probe.c (probe): Move partmap probing code from here ...
38671 (probe_partmap): ... to here.
38672 (probe): Use probe_partmap() once for the disk we're probing, and
38673 additionally, when such disk contains a memberlist() struct member,
38674 once for each disk that is contained in the structure returned by
38677 2008-02-09 Robert Millan <rmh@aybabtu.com>
38679 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38680 environment variable to 'all' in order to obtain debug output from
38682 * util/i386/pc/grub-setup.c (main): Likewise.
38684 2008-02-08 Robert Millan <rmh@aybabtu.com>
38686 * disk/raid.c (grub_raid_scan_device): Check for
38687 `array->device[sb.this_disk.number]' rather than for
38688 `array->device[sb.this_disk.number]->name', since the latter is not
38689 guaranteed to be accessible.
38691 2008-02-08 Robert Millan <rmh@aybabtu.com>
38693 * disk/raid.c: Update copyright.
38694 * fs/cpio.c: Likewise.
38695 * include/grub/raid.h: Likewise.
38696 * loader/i386/pc/multiboot.c: Likewise.
38697 * util/hostfs.c: Likewise.
38699 2008-02-08 Robert Millan <rmh@aybabtu.com>
38701 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38702 to a grub_disk_t array.
38703 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38705 (grub_raid_scan_device): Replace `device[x].name' accesses with
38706 `device[x]->name'. Simplify initialization of `array->device[x]'.
38708 2008-02-08 Robert Millan <rmh@aybabtu.com>
38710 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38711 grub_dprintf() calls.
38712 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38715 2008-02-07 Christian Franke <franke@computer.org>
38717 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38718 instead of fseek and ftell to support large files.
38719 (grub_hostfs_read): Likewise.
38721 2008-02-07 Robert Millan <rmh@aybabtu.com>
38723 Patch from Jeroen Dekkers.
38724 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38725 failure, since successfully reading all array members might not be
38728 2008-02-06 Robert Millan <rmh@aybabtu.com>
38730 * util/grub-probe.c (probe): Simplify partmap probing (with the
38731 assumption that the first word up to the underscore equals to
38734 2008-02-06 Christian Franke <franke@computer.org>
38736 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38737 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38738 last block of a cpio or tar stream.
38739 Check for "TRAILER!!!" instead of any empty data
38740 block to detect last block of a cpio stream.
38741 (grub_cpio_dir): Fix constness of variable np.
38742 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38743 cpio or tar trailer is detected. This fixes a crash
38744 on open of a non existing file.
38746 2008-02-05 Bean <bean123ch@gmail.com>
38748 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38750 (grub_multiboot_load_elf64): Likewise.
38751 (grub_multiboot): Initialize mbi structure.
38753 * util/grub-fstest.c: Don't include unused header file script.h.
38755 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38757 (grub_fstest_SOURCES): Likewise.
38759 2008-02-05 Robert Millan <rmh@aybabtu.com>
38761 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38762 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38763 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38764 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38766 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38767 (translation_table): Replace hardcoded values with macros
38768 provided by `<grub/term.h>'.
38770 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38771 (keyboard_map): Correct/add a few values, with macros provided
38772 by `<grub/term.h>'.
38773 (keyboard_map_shift): Zero values that don't differ from their
38774 `keyboard_map' equivalents.
38775 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38776 Discard the second scan code that is always sent by Caps lock.
38777 Only use `keyboard_map_shift' when it provides a non-zero value,
38778 otherwise fallback to `keyboard_map'.
38780 2008-02-04 Bean <bean123ch@gmail.com>
38782 * Makefile.in (enable_grub_fstest): New variable.
38784 * conf/common.rmk (grub_fstest_init.lst): New rule.
38785 (grub_fstest_init.h): Likewise.
38786 (grub_fstest_init.c): Likewise.
38787 (util/grub-fstest.c_DEPENDENCIES): New variable.
38788 (grub_fstest_SOURCES): Likewise.
38790 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38792 * util/grub-fstest.c: New file.
38794 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38796 Make grub-setup handle a separate root device.
38798 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38799 so that the root device can be compared with the destination
38801 When embedding the core image, if the root and destination devices
38802 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38804 When not embedding, set ROOT_DRIVE to 0xFF.
38806 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38808 Add support for having a grub directory in a different drive. This
38809 is still only the data handling part.
38811 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38812 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38813 (grub_root_drive): New variable.
38815 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38816 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38817 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38820 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38822 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38824 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38826 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38827 is bogus, because PXE booting does not specify any drive
38830 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38831 am not sure if this is really correct.
38833 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38834 is always identical to the boot drive when booting from a CD.
38836 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38838 (root_drive): New variable.
38839 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38840 (setup_sectors): Push %dx right after popping it, because %dh will
38842 (copy_buffer): Restore %dx.
38844 2008-02-03 Robert Millan <rmh@aybabtu.com>
38846 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38847 use `cdboot.img' for cdrom images.
38849 2008-02-03 Robert Millan <rmh@aybabtu.com>
38851 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38852 only setup gfxterm when `font' command has succeeded.
38854 2008-02-03 Robert Millan <rmh@aybabtu.com>
38856 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38857 (grub_rescue_cmd_multiboot_loader)
38858 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38860 2008-02-03 Pavel Roskin <proski@gnu.org>
38862 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38863 %edx and %esi from stack only after grub_gate_a20() is called.
38864 grub_gate_a20() clobbers %edx.
38866 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38868 * configure.ac (AC_INIT): Bumped to 1.96.
38870 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38871 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38872 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38873 video/readers/png.c.
38875 2008-02-03 Bean <bean123ch@gmail.com>
38877 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38878 (cdboot_img_SOURCES): New variable.
38879 (cdboot_img_ASFLAGS): New variable.
38880 (cdboot_img_LDFLAGS): New variable.
38882 * boot/i386/pc/cdboot.S: New file.
38884 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38885 (cd_count): Likewise.
38886 (grub_biosdisk_get_drive): Add support for cd device.
38887 (grub_biosdisk_call_hook): Likewise.
38888 (grub_biosdisk_iterate): Likewise.
38889 (grub_biosdisk_open): Likewise.
38890 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38891 (grub_biosdisk_rw): Support reading from cd device.
38892 (GRUB_MOD_INIT): Iterate cd devices.
38894 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38895 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38896 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38898 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38900 2008-02-02 Robert Millan <rmh@aybabtu.com>
38902 * commands/read.c: New file.
38903 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38904 (read_mod_SOURCES): New variable.
38905 (read_mod_CFLAGS): Likewise.
38906 (read_mod_LDFLAGS): Likewise.
38908 2008-02-02 Robert Millan <rmh@aybabtu.com>
38910 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38911 determining whether menu has to be displayed.
38913 2008-02-02 Marco Gerards <marco@gnu.org>
38915 * bus/pci.c: New file.
38917 * include/grub/pci.h: Likewise.
38919 * include/grub/i386/pc/pci.h: Likewise.
38921 * commands/lspci.c: Likewise.
38923 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38925 (pci_mod_SOURCES): New variable.
38926 (pci_mod_CFLAGS): Likewise.
38927 (pci_mod_LDFLAGS): Likewise.
38928 (lspci_mod_SOURCES): Likewise.
38929 (lspci_mod_CFLAGS): Likewise.
38930 (lspci_mod_LDFLAGS): Likewise.
38932 2008-02-02 Bean <bean123ch@gmail.com>
38934 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
38935 (grub_ufs_get_file_block): Fix indirect block calculation problem.
38937 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
38938 (grub_xfs_btree_node): New structure.
38939 (grub_xfs_btree_root): New structure.
38940 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
38941 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
38942 (GRUB_XFS_EXTENT_BLOCK): Likewise.
38943 (GRUB_XFS_EXTENT_SIZE): Likewise.
38944 (grub_xfs_read_block): Support btree format type.
38945 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
38946 Use directory block as basic unit.
38948 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
38950 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
38951 __attribute__ ((__regparm__ (1))).
38953 2008-02-01 Robert Millan <rmh@aybabtu.com>
38955 Correct a mistake in previous commit.
38957 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
38959 (normal/command.c_DEPENDENCIES): New variable.
38961 2008-02-01 Robert Millan <rmh@aybabtu.com>
38963 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
38965 (normal/command.c_DEPENDENCIES): New variable.
38966 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
38967 * conf/i386-ieee1275.rmk: Likewise.
38968 * conf/i386-linuxbios.rmk: Likewise.
38969 * conf/i386-pc.rmk: Likewise.
38970 * conf/sparc64-ieee1275.rmk: Likewise.
38971 * conf/powerpc-ieee1275.rmk: Likewise.
38972 (grub_emu_SOURCES): Add `fs/fshelp.c'.
38974 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
38976 2008-02-01 Robert Millan <rmh@aybabtu.com>
38978 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
38979 call at beginning of function.
38981 2008-01-31 Pavel Roskin <proski@gnu.org>
38983 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
38984 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
38985 (grub_mkrescue_SOURCES): Likewise.
38986 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
38988 2008-01-30 Robert Millan <rmh@aybabtu.com>
38990 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
38991 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
38992 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
38993 (grub_probe_SOURCES): ... to here.
38995 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
38996 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
38997 * conf/i386-ieee1275.rmk: Likewise.
38998 * conf/i386-linuxbios.rmk: Likewise.
38999 * conf/powerpc-ieee1275.rmk: Likewise.
39001 2008-01-30 Tristan Gingold <gingold@free.fr>
39003 * kern/rescue.c: Silently accept empty lines.
39005 2008-01-29 Bean <bean123ch@gmail.com>
39007 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39008 (real_code_2): Code cleanup and change comment style.
39009 (move_memory): Avoid using 32-bit address mode.
39011 2008-01-29 Bean <bean123ch@gmail.com>
39013 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39014 (png_mod_SOURCES): New variable.
39015 (png_mod_CFLAGS): Likewise.
39016 (png_mod_LDFLAGS): Likewise.
39018 * video/readers/png.c: New file.
39020 2008-01-28 Robert Millan <rmh@aybabtu.com>
39022 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39023 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39024 `ifndef GRUB_MOD_GAP' hack.
39025 * util/elf/grub-mkimage.c (add_segments): Likewise.
39027 2008-01-27 Robert Millan <rmh@aybabtu.com>
39029 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39030 `GRUB_MOD_GAP' for platforms in which it's not defined.
39031 * util/elf/grub-mkimage.c (add_segments): Likewise.
39033 2008-01-27 Robert Millan <rmh@aybabtu.com>
39035 Get grub-emu to build again (including parallel builds).
39037 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39039 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39040 (normal/execute.c_DEPENDENCIES): ... this, ...
39041 (grub-emu_DEPENDENCIES): ... and this.
39043 * conf/i386-efi.rmk: Likewise.
39044 * conf/i386-linuxbios.rmk: Likewise.
39045 * conf/i386-ieee1275.rmk: Likewise.
39046 * conf/powerpc-ieee1275.rmk: Likewise.
39047 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39049 2008-01-27 Robert Millan <rmh@aybabtu.com>
39051 * NEWS: Add a few items.
39053 2008-01-27 Robert Millan <rmh@aybabtu.com>
39055 Fix parallel builds with grub-emu. Based on earlier commit for
39056 grub-probe and grub-setup.
39058 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39059 (util/grub-emu.c_DEPENDENCIES): ... this.
39060 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39061 (util/grub-emu.c_DEPENDENCIES): ... this.
39062 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39063 (util/grub-emu.c_DEPENDENCIES): ... this.
39064 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39065 (util/grub-emu.c_DEPENDENCIES): ... this.
39066 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39067 (util/grub-emu.c_DEPENDENCIES): ... this.
39069 2008-01-27 Pavel Roskin <proski@gnu.org>
39071 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39072 to create a gap between _end and the modules added to the image
39073 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39074 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39075 * util/elf/grub-mkimage.c (add_segments): Likewise.
39077 2008-01-26 Pavel Roskin <proski@gnu.org>
39079 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39080 just return an error.
39082 2008-01-26 Bean <bean123ch@gmail.com>
39084 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39085 (grub_reiserfs_get_item): Save offset of the next item.
39086 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39088 2008-01-25 Robert Millan <rmh@aybabtu.com>
39090 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39091 make all filesystem sources appear together (possibly fixing omissions
39093 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39094 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39095 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39096 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39098 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39100 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39101 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39102 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39103 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39105 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39106 (probe): Add a sanity check to make sure of our ability to read
39107 requested files when probing for filesystem type.
39109 * genmk.rb: Update copyright year (2007).
39111 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39112 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39113 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39114 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39115 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39116 : Remove function prototypes.
39118 2008-01-25 Robert Millan <rmh@aybabtu.com>
39120 Revert my previous commits (based on wrong assumption of how grub_errno
39123 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
39124 * kern/file.c (grub_file_open): Likewise.
39126 2008-01-24 Pavel Roskin <proski@gnu.org>
39128 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39129 that hang if GRUB tries to setup colors.
39130 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39131 colors for firmwares that don't support it.
39132 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39133 Recognize Open Hack'Ware, set flags to work around its
39136 2008-01-24 Robert Millan <rmh@aybabtu.com>
39138 * kern/file.c (grub_file_open): Do not account previous failures of
39139 unrelated functions when grub_errno is checked for.
39140 Reported by Oleg Strikov.
39142 2008-01-24 Bean <bean123ch@gmail.com>
39144 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39145 (grub_ufs_sblock): New member volume name.
39146 (grub_ufs_find_file): Fix string copy bug.
39147 (grub_ufs_label): Implement this function properly.
39149 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39150 (grub_hfs_iterate_records): Use the correct file number for extents
39151 and catalog file. Fix problem in next index calculation.
39152 (grub_hfs_find_node): Replace recursive function call with loop.
39153 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39155 2008-01-23 Robert Millan <rmh@aybabtu.com>
39157 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39158 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39159 (grub_multiboot2_real_boot): New function prototype.
39161 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39162 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39164 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39165 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39167 2008-01-23 Robert Millan <rmh@aybabtu.com>
39169 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39170 #ifdef'ed out grub_printf().
39172 2008-01-23 Robert Millan <rmh@aybabtu.com>
39174 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39175 grub_dprintf calls, since they make "debug=all" mode unusable.
39176 (grub_console_checkkey): Likewise.
39178 2008-01-23 Robert Millan <rmh@aybabtu.com>
39180 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39181 `term/i386/pc/at_keyboard.c'.
39182 (pkglib_MODULES): Add `serial.mod'.
39183 (serial_mod_SOURCES): New variable.
39184 (serial_mod_CFLAGS): Likewise.
39185 (serial_mod_LDFLAGS): Likewise.
39187 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39188 `<grub/powerpc/ieee1275/console.h>'.
39189 (grub_keyboard_controller_init): New function prototype.
39190 (grub_console_checkkey): Likewise.
39191 (grub_console_getkey): Likewise.
39193 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39196 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39197 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39199 2008-01-23 Robert Millan <rmh@aybabtu.com>
39201 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39202 present, "(memdisk)/boot/grub" becomes the default prefix.
39204 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39205 a memdisk tarball with all the modules. Add --overlay=DIR option that
39206 allows users to overlay additional files into the image.
39208 2008-01-23 Robert Millan <rmh@aybabtu.com>
39210 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39211 and `machine/memory.h'.
39212 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39213 (_multiboot_mod_SOURCES): New variable.
39214 (_multiboot_mod_CFLAGS): Likewise.
39215 (_multiboot_mod_LDFLAGS): Likewise.
39216 (multiboot_mod_SOURCES): Likewise.
39217 (multiboot_mod_CFLAGS): Likewise.
39218 (multiboot_mod_LDFLAGS): Likewise.
39220 * include/grub/i386/ieee1275/loader.h: New file.
39222 * include/grub/i386/ieee1275/machine.h: Likewise.
39224 * include/grub/i386/ieee1275/memory.h: Likewise.
39226 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39227 variable declaration.
39228 (grub_os_area_size): Likewise.
39230 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39231 (grub_lower_mem, grub_upper_mem): New variables.
39232 (grub_stop_floppy): New function (just to make
39233 grub_multiboot2_real_boot() happy).
39235 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39236 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39237 (grub_stop): New function.
39238 Include `"../realmode.S"' and `"../loader.S"'.
39240 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39241 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39243 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39244 rely on grub_multiboot2_real_boot() for final boot.
39246 2008-01-22 Robert Millan <rmh@aybabtu.com>
39248 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39249 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39250 device that doesn't look like an SD card.
39251 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39252 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39253 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39254 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39257 2008-01-22 Robert Millan <rmh@aybabtu.com>
39259 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39260 avoid claiming over our own code.
39262 2008-01-22 Bean <bean123ch@gmail.com>
39264 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39265 (jpeg_mod_SOURCES): New variable.
39266 (jpeg_mod_CFLAGS): Likewise.
39267 (jpeg_mod_LDFLAGS): Likewise.
39269 * video/readers/jpeg.c : New file.
39271 2008-01-22 Bean <bean123ch@gmail.com>
39273 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39274 there are no more items.
39276 2008-01-21 Robert Millan <rmh@aybabtu.com>
39278 * kern/mm.c (grub_mm_init_region): Improve debug message.
39280 2008-01-21 Robert Millan <rmh@aybabtu.com>
39282 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39283 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39285 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39287 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39288 Indicates start of upper memory.
39289 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39290 (generate_image): Abort when image size is big enough to corrupt
39293 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39294 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39295 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39296 instead of hardcoding 0xA0000.
39297 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39298 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39299 instead of hardcoding 0xA0000.
39301 2008-01-21 Robert Millan <rmh@aybabtu.com>
39303 * disk/memdisk.c (memdisk_size): New variable.
39304 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39306 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39307 image to dynamic memory.
39308 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39309 `memdisk_size'. Free memdisk block.
39311 2008-01-21 Robert Millan <rmh@aybabtu.com>
39313 Fix detection of very small filesystems (like tar).
39315 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39316 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39317 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39318 a problem with this disk).
39320 2008-01-21 Robert Millan <rmh@aybabtu.com>
39322 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39323 on grub_biosdisk_rw_standard() error.
39325 2008-01-21 Robert Millan <rmh@aybabtu.com>
39327 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39329 * kern/elf.c: Likewise.
39330 * kern/ieee1275/ieee1275.c: Likewise.
39331 * kern/powerpc/ieee1275/openfw.c: Likewise.
39332 * term/ieee1275/ofconsole.c: Likewise.
39334 2008-01-21 Robert Millan <rmh@aybabtu.com>
39336 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39338 * include/grub/kernel.h (grub_arch_memdisk_addr)
39339 (grub_arch_memdisk_size): Moved from here ...
39341 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39342 (grub_arch_memdisk_size): ... to here.
39344 2008-01-21 Robert Millan <rmh@aybabtu.com>
39346 Mostly based on bugfix from Bean.
39348 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39349 attribute with hook() parameter.
39350 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39352 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39353 attribute with hook() parameter.
39354 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39357 2008-01-21 Robert Millan <rmh@aybabtu.com>
39359 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39360 (pkglib_MODULES): Add `memdisk.mod'.
39361 (memdisk_mod_SOURCES): New variable.
39362 (memdisk_mod_CFLAGS): Likewise.
39363 (memdisk_mod_LDFLAGS): Likewise.
39365 * disk/memdisk.c: New file.
39367 * include/grub/disk.h (grub_disk_dev_id): Add
39368 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39370 * include/grub/i386/pc/kernel.h
39371 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39372 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39373 (grub_kernel_image_size): New variable declaration.
39374 (grub_total_module_size): Likewise.
39375 (grub_memdisk_image_size): Likewise.
39377 * include/grub/i386/pc/memory.h
39378 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39380 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39381 (grub_arch_memdisk_addr): New variable declaration.
39382 (grub_arch_memdisk_size): Likewise.
39384 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39385 (grub_arch_memdisk_size): Likewise.
39387 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39388 (codestart): Replace hardcoded `0x100000' with
39389 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39391 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39392 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39393 not NULL, append the contents of the file it refers to, at the end of
39394 the compressed kernel image. Initialize `grub_memdisk_image_size'
39395 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39396 (options): Add "memdisk"|'m' option.
39397 (main): Parse --memdisk|-m option, and pass user-provided path as
39398 parameter to generate_image().
39400 2008-01-20 Robert Millan <rmh@aybabtu.com>
39402 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39403 grub_dprintf() calls from here ...
39404 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39406 2008-01-20 Robert Millan <rmh@aybabtu.com>
39408 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39410 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39412 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39413 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39414 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39415 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39417 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39418 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39420 2008-01-19 Robert Millan <rmh@aybabtu.com>
39422 Get rid of confusing function (superseded by
39423 `grub_ieee1275_get_integer_property')
39424 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39426 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39428 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39429 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39430 in native endianness from grub_ieee1275_get_integer_property().
39432 2008-01-19 Robert Millan <rmh@aybabtu.com>
39434 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39435 command after "shut-down", since implementations differ on which
39436 the command for halt is.
39438 2008-01-19 Robert Millan <rmh@aybabtu.com>
39440 * include/grub/i386/linuxbios/console.h: Add header protection.
39441 (grub_keyboard_controller_init): New function prototype.
39442 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39443 (KEYBOARD_COMMAND_READ): Likewise.
39444 (KEYBOARD_COMMAND_WRITE): Likewise.
39445 (KEYBOARD_SCANCODE_SET1): Likewise.
39446 (grub_keyboard_controller_write): New function.
39447 (grub_keyboard_controller_read): Likewise.
39448 (grub_keyboard_controller_init): Likewise.
39450 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39451 (grub_console_init): On coreboot/LinuxBIOS, call
39452 grub_keyboard_controller_init().
39454 2008-01-19 Robert Millan <rmh@aybabtu.com>
39456 PowerPC changes provided by Pavel Roskin.
39458 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39459 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39460 don't rely on cmain() doing it.
39461 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39462 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39464 2008-01-16 Robert Millan <rmh@aybabtu.com>
39466 * include/grub/i386/linuxbios/memory.h
39467 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39468 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39469 receive `table_header' as argument. Instead, probe for it in the
39470 known memory ranges where it can be present.
39471 (grub_available_iterate): Do not pass a fixed `table_header' address
39472 to grub_linuxbios_table_iterate().
39474 2008-01-15 Robert Millan <rmh@aybabtu.com>
39476 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39477 * conf/i386-ieee1275.rmk: New file.
39478 * include/grub/i386/ieee1275/console.h: Likewise.
39479 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39480 * include/grub/i386/ieee1275/kernel.h: Likewise.
39481 * include/grub/i386/ieee1275/time.h: Likewise.
39482 * kern/i386/ieee1275/init.c: Likewise.
39483 * kern/i386/ieee1275/startup.S: Likewise.
39485 2008-01-15 Robert Millan <rmh@aybabtu.com>
39487 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39488 when pointers are 32-bit (but still do set it to one when they are
39491 2008-01-15 Robert Millan <rmh@aybabtu.com>
39493 * include/grub/ieee1275/ieee1275.h
39494 (grub_ieee1275_get_integer_property): New function prototype.
39496 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39497 (grub_ieee1275_get_integer_property): New function. Wraps around
39498 grub_ieee1275_get_property() to handle endianness.
39500 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39501 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39503 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39504 (grub_map): Likewise.
39505 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39507 2008-01-15 Bean <bean123ch@gmail.com>
39509 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39510 (grub_script_execute_cmdline): Reset grub_errno.
39512 * normal/main.c (read_config_file): Reset grub_errno.
39514 * normal/parse.y (script_init): New.
39515 (script): Move function and menuentry here.
39517 (command): Add delimiter at the end of command.
39518 (commands): Adjust to match the new command.
39519 (commandblock): Remove grub_script_lexer_record_start.
39520 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39521 (if): Use the new commands.
39523 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39525 2008-01-15 Robert Millan <rmh@aybabtu.com>
39527 * normal/menu.c (run_menu): Move timeout message from here ...
39528 (print_timeout): ... to here.
39529 (run_menu): Use print_timeout() once during initial draw to print
39530 the whole message, and again in every clock tick to update only
39531 the number of seconds.
39533 2008-01-15 Robert Millan <rmh@aybabtu.com>
39535 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39536 actual size of `available' from grub_ieee1275_get_property(), and
39537 restrict parsing to that bound.
39539 2008-01-15 Christian Franke <franke@computer.org>
39541 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39542 (argp_program_version): Remove variable.
39543 (argp_program_bug_address): Likewise.
39544 (options): Convert from struct argp_option to struct option.
39545 (struct arguments): Remove.
39546 (parse_opt): Remove.
39547 (usage): New function.
39548 (main): Replace struct args members by simple variables.
39549 Replace argp_parse() by getopt_long().
39550 Add switch to evaluate options.
39551 Add missing "(...)" around root_dev in prefix string.
39553 2008-01-14 Robert Millan <rmh@aybabtu.com>
39555 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39556 for grub_ieee1275_exit(), in order to improve portability.
39558 2008-01-14 Robert Millan <rmh@aybabtu.com>
39560 * util/grub.d/10_linux.in (prefix): Define.
39561 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39563 2008-01-13 Pavel Roskin <proski@gnu.org>
39565 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39566 grub_errno if no errors have been detected.
39568 2008-01-12 Robert Millan <rmh@aybabtu.com>
39570 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39571 (grub_util_get_dev_abstraction): New function prototype.
39573 * util/getroot.c: Include `<grub/util/getroot.h>'
39574 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39575 (grub_util_get_dev_abstraction): ... here (new function).
39577 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39578 `PRINT_ABSTRACTION'.
39579 (probe): Probe for abstraction type when requested.
39580 (main): Understand `--target=abstraction'.
39582 * util/i386/efi/grub-install.in: Add abstraction module to core
39583 image when it is found to be necessary.
39584 * util/i386/pc/grub-install.in: Likewise.
39585 * util/powerpc/ieee1275/grub-install.in: Likewise.
39587 * util/update-grub_lib.in (font_path): Return system path without
39588 converting to GRUB path.
39589 * util/update-grub.in: Convert system path returned by font_path()
39590 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39591 abstraction module is needed for loading fonts (if any). Export
39592 that as `GRUB_PRELOAD_MODULES'.
39593 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39596 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39598 Remove some unused code from reiserfs.
39600 * fs/reiserfs.c (struct grub_reiserfs_key)
39601 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39602 (struct grub_reiserfs_node_body): Removed.
39603 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39605 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39607 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39609 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39611 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39613 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39615 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39616 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39617 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39619 2008-01-10 Robert Millan <rmh@aybabtu.com>
39621 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39622 Determines if a file is garbage left by packaging systems, etc.
39623 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39624 for processing /etc/grub.d scripts.
39625 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39626 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39627 as a condition for processing Linux images.
39629 2008-01-10 Pavel Roskin <proski@gnu.org>
39631 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39632 to compile reiserfs.c on PowerPC.
39634 2008-01-10 Robert Millan <rmh@aybabtu.com>
39636 * kern/device.c (grub_device_iterate): Do not abort device iteration
39637 when one of the devices cannot be opened.
39638 * kern/disk.c (grub_disk_open): Do not account previous failures of
39639 unrelated functions when grub_errno is checked for.
39641 2008-01-08 Robert Millan <rmh@aybabtu.com>
39643 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39644 `! grub_linux_is_bzimage', change order of address comparison to make
39645 it more intuitive, and improve "too big zImage" error message.
39647 2008-01-08 Robert Millan <rmh@aybabtu.com>
39649 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39650 `$(update-grub_DATA)'.
39651 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39654 2008-01-07 Robert Millan <rmh@aybabtu.com>
39656 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39657 which instruction is modified by grub-setup during installation
39658 (since it wasn't obvious by only looking at this file).
39660 2008-01-07 Robert Millan <rmh@aybabtu.com>
39662 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39663 listing actual TODO items.
39665 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39667 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39669 (grub_reiserfs_get_key_offset): Likewise.
39670 (grub_reiserfs_set_key_offset): Likewise.
39671 (grub_reiserfs_set_key_type): Likewise.
39672 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39674 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39675 better to remove the bitfield version completely.
39677 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39679 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39680 allocated from the heap, due to the fshelp implementation.
39681 (grub_reiserfs_dir): Free NODE, due to the same reason.
39683 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39685 Mostly from Vincent Pelletier:
39687 * fs/reiserfs.c: New file.
39689 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39690 (reiserfs_mod_SOURCES): New variable.
39691 (reiserfs_mod_CFLAGS): Likewise.
39692 (reiserfs_mod_LDFLAGS): Likewise.
39694 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39695 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39696 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39699 2008-01-06 Robert Millan <rmh@aybabtu.com>
39701 * normal/color.c: Remove `<grub/env.h>'.
39703 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39705 * include/grub/normal.h: Include <grub/env.h>.
39707 2008-01-05 Robert Millan <rmh@aybabtu.com>
39709 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39710 usage example with `(hd0,1)'.
39711 Reported by Samuel Thibault.
39713 2008-01-05 Robert Millan <rmh@aybabtu.com>
39715 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39716 (grub_linux_boot_zimage): Rename to ...
39717 (grub_linux_boot): ... this.
39718 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39719 (grub_linux_boot_zimage): Conditionalize zImage copy.
39721 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39722 (grub_linux_boot_bzimage): Remove prototype.
39723 (grub_linux_boot_zimage): Rename to ...
39724 (grub_linux_boot): ... this.
39726 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39727 (grub_linux_boot): Remove function.
39729 2008-01-05 Robert Millan <rmh@aybabtu.com>
39731 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39732 (grub_env_write_color_highlight): Likewise.
39733 (grub_wait_after_message): Likewise.
39735 * normal/color.c: New file.
39737 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39738 (normal_mod_DEPENDENCIES): Likewise.
39740 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39741 (normal_mod_DEPENDENCIES): Likewise.
39743 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39744 (normal_mod_DEPENDENCIES): Likewise.
39746 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39747 (normal_mod_DEPENDENCIES): Likewise.
39749 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39750 for waiting after a message is printed.
39751 * normal/main.c (read_config_file): Likewise.
39752 (grub_normal_init): Register grub_env_write_color_normal() and
39753 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39754 `color_highlight' variables as global.
39756 * normal/menu.c (grub_wait_after_message): New function.
39757 (grub_color_menu_normal): New variable. Replaces ...
39758 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39759 (grub_color_menu_highlight): New variable. Replaces ...
39760 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39761 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39762 `GRUB_TERM_COLOR_STANDARD'.
39763 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39764 `normal_code' and `highlight_code' to `old_color_normal' and
39765 `old_color_highlight', respectively.
39766 (grub_menu_init_page): Update colors when drawing the menu, based on
39767 `menu_color_normal' and `menu_color_highlight' variables.
39768 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39769 a message is printed.
39771 2008-01-05 Robert Millan <rmh@aybabtu.com>
39773 * kern/env.c (grub_env_context_open): Propagate hooks for global
39774 variables to new context.
39776 * kern/main.c (grub_set_root_dev): Export `root' variable.
39778 2008-01-05 Robert Millan <rmh@aybabtu.com>
39780 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39781 discs unconditionally, since udev and others have options to provide
39784 2008-01-05 Robert Millan <rmh@aybabtu.com>
39786 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39788 2008-01-04 Christian Franke <franke@computer.org>
39790 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39793 2008-01-03 Pavel Roskin <proski@gnu.org>
39795 * kern/i386/linuxbios/init.c: Put "void" to all function
39796 declarations with no arguments.
39797 * kern/powerpc/ieee1275/init.c: Likewise.
39798 * term/i386/pc/at_keyboard.c: Likewise.
39799 * term/i386/pc/vga_text.c: Likewise.
39800 * util/grub-mkdevicemap.c: Likewise.
39802 2008-01-02 Robert Millan <rmh@aybabtu.com>
39804 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39805 message when loaded image is out of bounds.
39806 (grub_multiboot_load_elf64): Likewise.
39808 2008-01-02 Pavel Roskin <proski@gnu.org>
39810 * util/grub.d/10_linux.in: Try version without ".old" when
39811 looking for initrd. It's better to use initrd from the newer
39812 kernel of the same version than no initrd at all.
39814 2008-01-01 Robert Millan <rmh@aybabtu.com>
39816 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39818 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39820 * include/grub/video.h: Added grub_video_unmap_color and
39821 grub_video_get_active_render_target.
39822 (grub_video_adapter): Added unmap_color and get_active_render_target.
39824 * video/video.c: Added grub_video_unmap_color and
39825 grub_video_get_active_render_target.
39826 (grub_video_get_info): Changed method to accept NULL pointer as an
39827 argument to allow detection of active video adapter.
39829 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39830 grub_video_vbe_unmap_color_int.
39831 Added grub_video_vbe_unmap_color and
39832 grub_video_vbe_get_active_render_target.
39833 (grub_video_vbe_adapter): Added unmap_color and
39834 get_active_render_target.
39836 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39837 with grub_video_vbe_unmap_color_int.
39839 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39840 (DEFAULT_NORMAL_COLOR): Likewise.
39841 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39842 (DEFAULT_FG_COLOR): Removed.
39843 (DEFAULT_BG_COLOR): Likewise.
39844 (DEFAULT_CURSOR_COLOR): Changed value.
39845 (grub_virtual_screen): Added standard_color_setting,
39846 normal_color_setting, highlight_color_setting and term_color.
39847 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39848 (bitmap_width): Added.
39849 (bitmap_height): Likewise.
39850 (bitmap): Likewise.
39851 (set_term_color): Likewise.
39852 (grub_virtual_screen_setup): Changed to use new terminal coloring
39854 (grub_gfxterm_init): Added init for bitmap.
39855 (grub_gfxterm_fini): Added destroy for bitmap.
39856 (redraw_screen_rect): Updated to use background bitmap and new
39858 (scroll_up): Added optimization for case when there is no bitmap.
39859 (grub_gfxterm_cls): Fixed to use correct background color.
39860 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39862 (grub_virtual_screen_setcolor): Likewise.
39863 (grub_virtual_screen_getcolor): Added.
39864 (grub_gfxterm_background_image_cmd): Likewise.
39865 (grub_video_term): Added setcolor and getcolor.
39866 (MOD_INIT): Added registration of background_image command.
39867 (MOD_TERM): Added unregistration for background_image command.
39869 2007-12-30 Pavel Roskin <proski@gnu.org>
39871 * loader/multiboot_loader.c: Fix multiboot command
39872 unregistration. Fix all typos in the word "multiboot".
39874 2007-12-29 Pavel Roskin <proski@gnu.org>
39876 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39877 support for initrd names used in Fedora.
39879 2007-12-26 Bean <bean123ch@gmail.com>
39881 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39882 (cpio_mod_SOURCES): New variable.
39883 (cpio_mod_CFLAGS): Likewise.
39884 (cpio_mod_LDFLAGS): Likewise.
39886 * fs/cpio.c: New file.
39888 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39890 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39892 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39894 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39896 2007-12-25 Robert Millan <rmh@aybabtu.com>
39898 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39899 (grub_getcolor): New function.
39901 * kern/term.c (grub_getcolor): New function.
39902 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39903 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39904 (print_entry): Set normal and highlight colors to
39905 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39906 respectively, before printing and restore them to old
39908 (grub_menu_init_page): Likewise. Fill an additional colored space
39909 that would otherwise be left blank.
39911 * term/efi/console.c (grub_console_getcolor): New function.
39912 (struct grub_console_term.getcolor): New variable.
39913 * term/i386/pc/console.c (grub_console_getcolor): New function.
39914 (struct grub_console_term.getcolor): New variable.
39915 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39916 (struct grub_console_term.getcolor): New variable.
39918 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39919 (struct grub_console_term.setcolor): Remove variable.
39920 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39921 (struct grub_console_term.setcolor): Remove variable.
39922 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39923 (struct grub_console_term.setcolor): Remove variable.
39924 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39925 (struct grub_console_term.setcolor): Remove variable.
39927 2007-12-25 Robert Millan <rmh@aybabtu.com>
39929 * configure.ac: Search for possible unifont.hex locations, and
39930 define UNIFONT_HEX if found.
39932 * Makefile.in (UNIFONT_HEX): Define variable.
39933 (DATA): Rename to ...
39934 (PKGLIB): ... this. Update all users.
39935 (PKGDATA): New variable.
39936 (pkgdata_IMAGES): Rename to ...
39937 (pkglib_IMAGES): ... this. Update all users.
39938 (pkgdata_MODULES): Rename to ...
39939 (pkglib_MODULES): ... this. Update all users.
39940 (pkgdata_PROGRAMS): Rename to ...
39941 (pkglib_PROGRAMS): ... this. Update all users.
39942 (pkgdata_DATA): Rename to ...
39943 (pkglib_DATA): ... this. Update all users.
39944 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
39945 (unicode.pff, ascii.pff): New rules.
39946 (all-local): Add `$(PKGDATA)' dependency.
39947 (install-local): Process `$(PKGDATA)'.
39949 * util/update-grub_lib.in (font_path): Search for *.pff files in
39950 a few more locations, including `${pkgdata}'.
39952 2007-12-23 Robert Millan <rmh@aybabtu.com>
39954 Patch from Bean <bean123ch@gmail.com>:
39955 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
39958 2007-12-21 Bean <bean123ch@gmail.com>
39960 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
39961 (ntfscomp_mod_SOURCES): New variable.
39962 (ntfscomp_mod_CFLAGS): Likewise.
39963 (ntfscomp_mod_LDFLAGS): Likewise.
39965 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
39966 (grub_probe_SOURCES): Likewise.
39967 (grub_emu_SOURCES): Likewise.
39969 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39970 (grub_emu_SOURCES): Likewise.
39972 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39973 (grub_emu_SOURCES): Likewise.
39975 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
39976 (grub_emu_SOURCES): Likewise.
39978 * fs/ntfs.c (grub_ntfscomp_func): New variable.
39979 (read_run_list): Renamed to grub_ntfs_read_run_list.
39980 (decomp_nextvcn): Moved to ntfscomp.c.
39981 (decomp_getch): Likewise.
39982 (decomp_get16): Likewise.
39983 (decomp_block): Likewise.
39984 (read_block): Likewise.
39985 (read_data): Partially moved to ntfscomp.c.
39986 (fixup): Change unsigned to grub_uint16_t.
39987 (read_mft): Change unsigned long to grub_uint32_t.
39988 (read_attr): Likewise.
39989 (read_data): Likewise.
39990 (read_run_data): Likewise.
39991 (read_run_list): Likewise.
39992 (read_mft): Likewise.
39994 * fs/ntfscomp.c: New file.
39996 * include/grub/ntfs.h: New file.
39998 2007-12-16 Robert Millan <rmh@aybabtu.com>
40000 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40001 IDE disk check, since Linux is known to support 20 IDE disks.
40002 Reported by Colin Watson.
40004 2007-12-15 Bean <bean123ch@gmail.com>
40006 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40007 (lnxboot_img_SOURCES): New variable.
40008 (lnxboot_img_ASFLAGS): Likewise.
40009 (lnxboot_img_LDFLAGS): Likewise.
40011 * boot/i386/pc/lnxboot.S: New file.
40013 2007-11-24 Pavel Roskin <proski@gnu.org>
40015 * configure.ac: Test if '--build-id=none' is supported by the
40016 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40017 objcopy to generate incorrect binary files (binutils
40018 2.17.50.0.18-1 as shipped by Fedora 8).
40019 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40020 linking, so that build ID doesn't break the test.
40022 2007-11-24 Pavel Roskin <proski@gnu.org>
40024 * include/grub/i386/time.h: use "void" in the argument list
40025 of grub_cpu_idle().
40026 * include/grub/powerpc/time.h: Likewise.
40027 * include/grub/sparc64/time.h: Likewise.
40029 2007-11-18 Christian Franke <franke@computer.org>
40031 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40032 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40033 This fixes the problem that function keys did not work in grub-emu.
40035 2007-11-18 Christian Franke <franke@computer.org>
40037 * disk/host.c (grub_host_open): Remove attribute unused from
40038 name parameter. Add check for "host". This fixes the problem
40039 that grub-emu does not find partitions.
40041 2007-11-18 Christian Franke <franke@computer.org>
40043 * util/hostfs.c (is_dir): New function.
40044 (grub_hostfs_dir): Handle missing dirent.d_type case.
40045 (grub_hostfs_read): Add missing fseek().
40046 (grub_hostfs_label): Clear label pointer. This fixes a crash
40047 of grub-emu on "ls (host)".
40049 2007-11-18 Christian Franke <franke@computer.org>
40051 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40052 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40053 to 64 bit boundary by default.
40055 2007-11-18 Bean <bean123ch@gmail.com>
40057 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40058 (hexdump_mod_SOURCES): New variable.
40059 (hexdump_mod_CFLAGS): Likewise.
40060 (hexdump_mod_LDFLAGS): Likewise.
40062 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40064 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40066 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40068 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40070 * include/grub/hexdump.h: New file.
40072 * commands/hexdump.c: New file.
40074 2007-11-10 Robert Millan <rmh@aybabtu.com>
40076 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40077 in grub_outb() calls.
40078 (beep_on): Likewise.
40080 2007-11-10 Christian Franke <franke@computer.org>
40082 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40083 (grub_menu_run): Likewise.
40085 2007-11-10 Robert Millan <rmh@aybabtu.com>
40087 * include/grub/i386/efi/machine.h: New file.
40088 * include/grub/i386/linuxbios/machine.h: Likewise.
40089 * include/grub/i386/pc/machine.h: Likewise.
40090 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40091 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40093 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40094 (serial_hw_io_addr): New variable.
40095 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40096 instead of `(unsigned short *) 0x400'.
40098 2007-11-10 Bean <bean123ch@gmail.com>
40100 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40102 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40104 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40105 (vga_mod_SOURCES): Added.
40106 (vga_mod_CFLAGS): Likewise.
40107 (vga_mod_LDFLAGS): Likewise.
40109 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40111 (set_map_mask): Likewise.
40112 (set_read_map): Likewise.
40113 (set_read_address): Likewise.
40114 (vga_font): Removed variable.
40115 (get_vga_glyph): Removed function.
40116 (invalidate_char): Likewise.
40117 (write_char): Changed to use grub_font_get_glyph() for font
40119 (grub_vga_putchar): Likewise.
40120 (grub_vga_getcharwidth): Likewise.
40122 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40124 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40126 (pxeboot_img_LDFLAGS): Likewise.
40127 (diskboot_img_LDFLAGS): Likewise.
40128 (kernel_img_LDFLAGS): Likewise.
40130 2007-11-06 Robert Millan <rmh@aybabtu.com>
40132 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40133 in grub_outb() calls.
40134 (serial_hw_init): Likewise.
40136 2007-11-05 Robert Millan <rmh@aybabtu.com>
40138 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40139 spaces. Skip non-regular files.
40141 2007-11-05 Robert Millan <rmh@aybabtu.com>
40143 * kern/disk.c (grub_disk_firmware_fini)
40144 (grub_disk_firmware_is_tainted): New variables.
40146 * include/grub/disk.h (grub_disk_firmware_fini)
40147 (grub_disk_firmware_is_tainted): Likewise.
40149 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40150 (grub_disk_biosdisk_fini): ... to here.
40151 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40152 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40153 is set. Register grub_disk_biosdisk_fini() in
40154 `grub_disk_firmware_fini'.
40156 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40157 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40158 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40159 to finish existing firmware disk interface.
40161 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40162 (ata_mod_SOURCES): New variable.
40163 (ata_mod_CFLAGS): Likewise.
40164 (ata_mod_LDFLAGS): Likewise.
40166 2007-11-05 Robert Millan <rmh@aybabtu.com>
40168 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40169 (grub_ata_wait): Reimplement using grub_millisleep().
40171 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40172 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40174 2007-11-03 Marco Gerards <marco@gnu.org>
40176 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40177 (CRTC_ADDR_PORT): New macro.
40178 (CRTC_DATA_PORT): Likewise.
40179 (CRTC_CURSOR): Likewise.
40180 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40181 (CRTC_CURSOR_ADDR_LOW): Likewise.
40182 (update_cursor): New function.
40183 (grub_console_real_putchar): Call `update_cursor'.
40184 (grub_console_gotoxy): Likewise.
40185 (grub_console_cls): Set the default color when clearing the
40187 (grub_console_setcursor): Implemented.
40189 2007-11-03 Marco Gerards <marco@gnu.org>
40191 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40193 (grub_ata_pio_write): Likewise.
40195 (grub_atapi_identify): Wait after issuing an ATA command.
40196 (grub_atapi_packet): Likewise.
40197 (grub_ata_identify): Likewise.
40198 (grub_ata_readwrite): Likewise.
40200 2007-11-03 Marco Gerards <marco@gnu.org>
40202 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40203 (grub_ata_pio_write): Likewise.
40204 (grub_ata_readwrite): Use `grub_error', instead of
40205 returning `grub_errno'.
40207 2007-11-03 Marco Gerards <marco@gnu.org>
40209 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40210 grub_ata_pio_write once for every single sector, instead of for
40213 2007-10-31 Robert Millan <rmh@aybabtu.com>
40215 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40217 * conf/i386-linuxbios.rmk: New file.
40219 * kern/i386/pc/hardware.c: Likewise.
40220 * term/i386/pc/at_keyboard.c: Likewise.
40221 * term/i386/pc/vga_text.c: Likewise.
40223 * include/grub/i386/linuxbios/boot.h: Likewise.
40224 * include/grub/i386/linuxbios/console.h: Likewise.
40225 * include/grub/i386/linuxbios/init.h: Likewise.
40226 * include/grub/i386/linuxbios/kernel.h: Likewise.
40227 * include/grub/i386/linuxbios/loader.h: Likewise.
40228 * include/grub/i386/linuxbios/memory.h: Likewise.
40229 * include/grub/i386/linuxbios/serial.h: Likewise.
40230 * include/grub/i386/linuxbios/time.h: Likewise.
40232 * kern/i386/linuxbios/init.c: Likewise.
40233 * kern/i386/linuxbios/startup.S: Likewise.
40234 * kern/i386/linuxbios/table.c: Likewise.
40236 2007-10-31 Marco Gerards <marco@gnu.org>
40238 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40239 (ata_mod_SOURCES): New variable.
40240 (ata_mod_CFLAGS): Likewise.
40241 (ata_mod_LDFLAGS): Likewise.
40243 * disk/ata.c: New file.
40245 * include/grub/disk.h (grub_disk_dev_id): Add
40246 `GRUB_DISK_DEV_ATA_ID'.
40248 2007-10-31 Robert Millan <rmh@aybabtu.com>
40250 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40251 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40253 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40254 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40256 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40259 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40261 2007-10-27 Robert Millan <rmh@aybabtu.com>
40263 * include/grub/types.h (ULONG_MAX): Define macro.
40265 2007-10-22 Robert Millan <rmh@aybabtu.com>
40267 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40269 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40271 2007-10-22 Robert Millan <rmh@aybabtu.com>
40273 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40274 (pkgdata_MODULES): Add `biosdisk.mod'.
40275 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40278 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40279 (grub_biosdisk_init): Replace with ...
40280 (GRUB_MOD_INIT(biosdisk)): ... this.
40281 (grub_biosdisk_fini): Replace with ...
40282 (GRUB_MOD_FINI(biosdisk)): ... this.
40284 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40285 (grub_machine_init): Remove call to grub_biosdisk_init().
40286 (grub_machine_fini): Remove call to grub_machine_fini().
40288 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40290 2007-10-22 Robert Millan <rmh@aybabtu.com>
40292 * include/grub/time.h: New file.
40293 * include/grub/i386/time.h: Likewise.
40294 * include/grub/powerpc/time.h: Likewise.
40295 * include/grub/sparc64/time.h: Likewise.
40297 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40299 (KERNEL_MACHINE_TIME_HEADER): ... this.
40300 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40302 (KERNEL_MACHINE_TIME_HEADER): ... this.
40303 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40305 (KERNEL_MACHINE_TIME_HEADER): ... this.
40307 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40308 (grub_millisleep): New function.
40309 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40310 (grub_millisleep): New function.
40311 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40312 Remove `grub/machine/time.h' include.
40313 (grub_millisleep): New function.
40314 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40315 Remove `grub/machine/time.h' include.
40316 (grub_millisleep): New function.
40318 * include/grub/misc.h (grub_div_roundup): New function.
40320 * kern/misc.c: Include `<grub/time.h>'.
40321 (grub_millisleep_generic): New function.
40323 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40325 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40327 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40328 `machine/time.h'. Add `time.h'.
40329 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40331 2007-10-21 Robert Millan <rmh@aybabtu.com>
40333 * include/grub/misc.h (grub_max): New function.
40335 2007-10-21 Robert Millan <rmh@aybabtu.com>
40337 * util/misc.c (grub_util_info): Call fflush() before returning.
40339 2007-10-20 Robert Millan <rmh@aybabtu.com>
40341 * genmk.rb (Image): Copy `extra_flags' from here ...
40342 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40344 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40345 to `argc' and `args' arguments.
40347 2007-10-17 Robert Millan <rmh@aybabtu.com>
40349 * kern/i386/loader.S: New file.
40351 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40352 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40353 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40354 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40355 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40356 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40357 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40358 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40359 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40360 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40361 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40362 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40363 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40364 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40366 * kern/i386/realmode.S: New file.
40368 * kern/i386/pc/startup.S (protstack): Moved from here ...
40369 * kern/i386/realmode.S (protstack)... to here.
40370 * kern/i386/pc/startup.S (gdt): Moved from here ...
40371 * kern/i386/realmode.S (gdt)... to here.
40372 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40373 * kern/i386/realmode.S (prot_to_real)... to here.
40375 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40376 `kern/i386/realmode.S'.
40378 2007-10-17 Robert Millan <rmh@aybabtu.com>
40380 * include/grub/i386/loader.h: New file.
40382 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40383 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40384 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40385 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40386 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40387 * include/grub/i386/loader.h (grub_linux_prot_size)
40388 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40389 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40390 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40391 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40393 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40395 2007-10-15 Robert Millan <rmh@aybabtu.com>
40397 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40398 filesystem when dev->disk is unset.
40399 Do probe for filesystem even when dev->disk->has_partitions is set.
40400 In case a filesystem is found, always report it.
40401 In case it isn't, if dev->disk->has_partitions is set, report that
40402 a partition table was found instead of reporting that no filesystem
40403 could be identified.
40405 2007-10-12 Robert Millan <rmh@aybabtu.com>
40407 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40408 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40410 * include/grub/types.h (grub_host_to_target16): New macro.
40411 (grub_host_to_target32): Likewise.
40412 (grub_host_to_target64): Likewise.
40413 (grub_target_to_host16): Likewise.
40414 (grub_target_to_host32): Likewise.
40415 (grub_target_to_host64): Likewise.
40417 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40418 Renamed from to ...
40419 (GRUB_MOD_ALIGN): ...this. Update all users.
40421 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40422 grub_host_to_target32.
40423 Replace grub_be_to_cpu32 with grub_target_to_host32.
40424 (load_modules): Likewise.
40425 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40426 Replace grub_be_to_cpu32 with grub_target_to_host32.
40427 Replace grub_cpu_to_be16 with grub_host_to_target16.
40428 Replace grub_cpu_to_be32 grub_host_to_target32.
40430 2007-10-12 Robert Millan <rmh@aybabtu.com>
40432 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40433 * util/elf/grub-mkimage.c: ... here.
40435 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40436 `util/powerpc/ieee1275/grub-mkimage.c'.
40438 2007-10-07 Robert Millan <rmh@aybabtu.com>
40440 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40441 and make it easier to figure out.
40442 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40443 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40444 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40445 leave us with less than HEAP_MIN_SIZE total heap.
40446 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40448 2007-10-03 Robert Millan <rmh@aybabtu.com>
40450 * include/grub/i386/io.h: New file.
40451 * commands/i386/pc/play.c (inb): Removed.
40453 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40455 * term/i386/pc/serial.c (inb): Removed.
40457 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40459 * term/i386/pc/vga.c (inb): Removed.
40461 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40464 2007-10-02 Robert Millan <rmh@aybabtu.com>
40466 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40467 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40468 Reported by Marcin Kurek.
40470 2007-09-07 Robert Millan <rmh@aybabtu.com>
40472 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40473 SmartFirmware version updates (as released by Sven Luther), and avoid
40474 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40475 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40478 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40480 From Hitoshi Ozeki:
40481 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40482 when merging two regions.
40484 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40486 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40487 * normal/completion.c (grub_normal_do_completion): Likewise.
40488 Reported by Hitoshi Ozeki.
40490 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40492 Do not use devices at boot in chainloading.
40494 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40495 (boot_part_addr): Likewise.
40496 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40497 with BOOT_DRIVE and BOOT_PART_ADDR.
40498 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40499 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40501 2007-08-29 Robert Millan <rmh@aybabtu.com>
40503 Patch from Simon Peter <dn.tlp@gmx.net>:
40504 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40505 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40506 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40507 util/i386/pc/grub-setup.c_DEPENDENCIES.
40508 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40509 util/grub-probe.c_DEPENDENCIES.
40510 * conf/powerpc-ieee1275.rmk: Likewise.
40512 2007-08-28 Robert Millan <rmh@aybabtu.com>
40514 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40515 to tell grub-mkdevicemap how to name devices.
40516 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40519 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40520 util/i386/get_disk_name.c.
40521 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40522 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40523 util/ieee1275/get_disk_name.c.
40525 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40527 * DISTLIST: Add util/i386/get_disk_name.c and
40528 util/ieee1275/get_disk_name.c.
40530 * util/grub-mkdevicemap.c: Replace device naming logic with
40531 grub_util_get_disk_name() calls.
40533 2007-08-20 Robert Millan <rmh@aybabtu.com>
40535 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40536 (so that it works for both plural and singular quantities).
40538 2007-08-05 Robert Millan <rmh@aybabtu.com>
40540 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40541 so that [xz] isn't taken into account when determining order.
40543 2007-08-02 Marco Gerards <marco@gnu.org>
40545 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40546 `include/multiboot2.h', `include/grub/elfload.h',
40547 `include/multiboot.h', `include/grub/multiboot.h',
40548 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40549 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40550 `kern/elf.c', `loader/multiboot_loader.c',
40551 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40552 `loader/i386/pc/multiboot2.c',
40553 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40554 `util/i386/pc/grub-mkrescue.in'. Remove
40555 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40556 `include/grub/i386/pc/util/biosdisk.h' and
40557 `include/grub/powerpc/ieee1275/multiboot.h'.
40559 2007-08-02 Bean <bean123ch@gmail.com>
40561 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40562 (ntfs_mod_SOURCES): New variable.
40563 (ntfs_mod_CFLAGS): Likewise.
40564 (ntfs_mod_LDFLAGS): Likewise.
40566 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40567 (grub_probe_SOURCES): Likewise.
40568 (grub_emu_SOURCES): Likewise.
40570 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40571 (grub_emu_SOURCES): Likewise.
40573 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40574 (grub_emu_SOURCES): Likewise.
40576 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40578 * fs/ntfs.c: New file.
40580 2007-08-02 Bean <bean123ch@gmail.com>
40582 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40584 * file.h (grub_file): Likewise.
40586 * fshelp.h (grub_fshelp_read_file): Likewise.
40588 * util/i386/pc/grub-setup.c (setup): Likewise.
40589 (save_first_sector): Likewise.
40590 (save_blocklists): Likewise.
40592 * fs/affs.c (grub_affs_read_file): Likewise.
40594 * fs/ext2.c (grub_ext2_read_file): Likewise.
40596 * fs/fat.c (grub_fat_read_data): Likewise.
40598 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40600 * fs/hfs.c (grub_hfs_read_file): Likewise.
40602 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40604 * fs/jfs.c (grub_jfs_read_file): Likewise.
40606 * fs/minix.c (grub_minix_read_file): Likewise.
40608 * fs/sfs.c (grub_sfs_read_file): Likewise.
40610 * fs/ufs.c (grub_ufs_read_file): Likewise.
40612 * fs/xfs.c (grub_xfs_read_file): Likewise.
40614 * command/blocklist.c (read_blocklist): Likewise.
40615 (print_blocklist): Likewise.
40617 2007-08-02 Marco Gerards <marco@gnu.org>
40619 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40622 * disk/host.c: New file.
40624 * util/hostfs.c: Likewise.
40626 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40627 return `GRUB_ERR_BAD_FS'.
40628 * fs/sfs.c (grub_sfs_mount): Likewise.
40629 * fs/xfs.c (grub_xfs_mount): Likewise.
40631 * include/grub/disk.h (enum grub_disk_dev_id): Add
40632 `GRUB_DISK_DEVICE_HOST_ID'.
40634 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40636 2007-07-24 Jerone Young <jerone@gmail.com>
40638 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40639 modules for compilation.
40640 * conf/powerpc-ieee1275.rmk: Likewise.
40642 * include/multiboot.h: Move multiboot definitions to one file. Rename
40643 many definitions to not get grub specific.
40644 * include/multiboot2.h: Create header with multiboot 2 definitions.
40645 * include/grub/multiboot.h: Header for grub specific function
40646 prototypes and definitions.
40647 * include/grub/multiboot2.h: Likewise.
40648 * include/grub/multiboot_loader.h: Likewise.
40649 * include/grub/i386/pc/multiboot.h: Removed.
40650 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40652 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40653 and 2 to allow for one multiboot and module commands.
40654 * loader/multiboot2.c: Add multiboot2 functionality.
40655 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40656 and definition names.
40657 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40659 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40660 ieee1275 specific multiboot2 code.
40662 * kern/i386/pc/startup.S: Change headers and definition names for
40663 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40665 2007-07-22 Robert Millan <rmh@aybabtu.com>
40667 * geninitheader.sh: Process file specified in first parameter rather
40668 than hardcoding grub_modules_init.lst.
40669 * geninit.sh: Likewise. Also, construct header name dynamically rather
40670 than hardcoding grub_modules_init.h.
40672 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40673 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40674 grub_probe_init.[ch] and grub_setup_init.[ch].
40676 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40677 grub_modules_init.h with grub_emu_init.h.
40678 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40679 grub_probe_init.[ch] files.
40680 * conf/i386-efi.rmk: Likewise.
40681 * conf/i386-pc.rmk: Likewise.
40682 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40683 grub_setup_init.[ch] files.
40685 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40686 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40687 to initialize modules rather than a list of hardcoded functions.
40688 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40689 grub_init_all() to initialize modules rather than a list of hardcoded
40692 2007-07-22 Robert Millan <rmh@aybabtu.com>
40694 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40695 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40697 2007-07-22 Robert Millan <rmh@aybabtu.com>
40699 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40700 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40701 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40702 flag when running on SmartFirmware.
40703 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40704 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40707 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40708 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40709 rather than decreasing it.
40711 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40712 there's not enough space to do it, fail in the same way as when it
40713 can't be done because there are no partitions.
40715 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40716 when nvsetenv failed.
40718 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40720 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40721 because this rule is automatically generated.
40722 (grub-mkrescue): Removed for the same reason as above.
40724 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40726 Migrate to GNU General Public License Version 3.
40728 * COPYING: Replaced with the plain text version of GPLv3.
40730 * config.guess: Updated from gnulib.
40731 * config.sub: Likewise.
40733 * geninit.sh: Output a GPLv3 copyright notice.
40734 * geninitheader.sh: Likewise.
40735 * genmodsrc.sh: Likewise.
40736 * gensymlist.sh.in: Likewise.
40738 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40739 * boot/i386/pc/diskboot.S: Likewise.
40740 * boot/i386/pc/pxeboot.S: Likewise.
40741 * commands/blocklist.c: Likewise.
40742 * commands/boot.c: Likewise.
40743 * commands/cat.c: Likewise.
40744 * commands/cmp.c: Likewise.
40745 * commands/configfile.c: Likewise.
40746 * commands/echo.c: Likewise.
40747 * commands/help.c: Likewise.
40748 * commands/ls.c: Likewise.
40749 * commands/search.c: Likewise.
40750 * commands/terminal.c: Likewise.
40751 * commands/test.c: Likewise.
40752 * commands/videotest.c: Likewise.
40753 * commands/i386/cpuid.c: Likewise.
40754 * commands/i386/pc/halt.c: Likewise.
40755 * commands/i386/pc/play.c: Likewise.
40756 * commands/i386/pc/reboot.c: Likewise.
40757 * commands/i386/pc/vbeinfo.c: Likewise.
40758 * commands/i386/pc/vbetest.c: Likewise.
40759 * commands/ieee1275/halt.c: Likewise.
40760 * commands/ieee1275/reboot.c: Likewise.
40761 * commands/ieee1275/suspend.c: Likewise.
40762 * disk/loopback.c: Likewise.
40763 * disk/lvm.c: Likewise.
40764 * disk/raid.c: Likewise.
40765 * disk/efi/efidisk.c: Likewise.
40766 * disk/i386/pc/biosdisk.c: Likewise.
40767 * disk/ieee1275/ofdisk.c: Likewise.
40768 * font/manager.c: Likewise.
40769 * fs/affs.c: Likewise.
40770 * fs/ext2.c: Likewise.
40771 * fs/fat.c: Likewise.
40772 * fs/fshelp.c: Likewise.
40773 * fs/hfs.c: Likewise.
40774 * fs/hfsplus.c: Likewise.
40775 * fs/iso9660.c: Likewise.
40776 * fs/jfs.c: Likewise.
40777 * fs/minix.c: Likewise.
40778 * fs/sfs.c: Likewise.
40779 * fs/ufs.c: Likewise.
40780 * fs/xfs.c: Likewise.
40781 * hello/hello.c: Likewise.
40782 * include/grub/acorn_filecore.h: Likewise.
40783 * include/grub/arg.h: Likewise.
40784 * include/grub/bitmap.h: Likewise.
40785 * include/grub/boot.h: Likewise.
40786 * include/grub/cache.h: Likewise.
40787 * include/grub/device.h: Likewise.
40788 * include/grub/disk.h: Likewise.
40789 * include/grub/dl.h: Likewise.
40790 * include/grub/elfload.h: Likewise.
40791 * include/grub/env.h: Likewise.
40792 * include/grub/err.h: Likewise.
40793 * include/grub/file.h: Likewise.
40794 * include/grub/font.h: Likewise.
40795 * include/grub/fs.h: Likewise.
40796 * include/grub/fshelp.h: Likewise.
40797 * include/grub/gzio.h: Likewise.
40798 * include/grub/hfs.h: Likewise.
40799 * include/grub/kernel.h: Likewise.
40800 * include/grub/loader.h: Likewise.
40801 * include/grub/lvm.h: Likewise.
40802 * include/grub/misc.h: Likewise.
40803 * include/grub/mm.h: Likewise.
40804 * include/grub/net.h: Likewise.
40805 * include/grub/normal.h: Likewise.
40806 * include/grub/parser.h: Likewise.
40807 * include/grub/partition.h: Likewise.
40808 * include/grub/pc_partition.h: Likewise.
40809 * include/grub/raid.h: Likewise.
40810 * include/grub/rescue.h: Likewise.
40811 * include/grub/script.h: Likewise.
40812 * include/grub/setjmp.h: Likewise.
40813 * include/grub/symbol.h: Likewise.
40814 * include/grub/term.h: Likewise.
40815 * include/grub/terminfo.h: Likewise.
40816 * include/grub/tparm.h: Likewise.
40817 * include/grub/types.h: Likewise.
40818 * include/grub/video.h: Likewise.
40819 * include/grub/efi/api.h: Likewise.
40820 * include/grub/efi/chainloader.h: Likewise.
40821 * include/grub/efi/console.h: Likewise.
40822 * include/grub/efi/console_control.h: Likewise.
40823 * include/grub/efi/disk.h: Likewise.
40824 * include/grub/efi/efi.h: Likewise.
40825 * include/grub/efi/pe32.h: Likewise.
40826 * include/grub/efi/time.h: Likewise.
40827 * include/grub/i386/linux.h: Likewise.
40828 * include/grub/i386/setjmp.h: Likewise.
40829 * include/grub/i386/types.h: Likewise.
40830 * include/grub/i386/efi/kernel.h: Likewise.
40831 * include/grub/i386/efi/loader.h: Likewise.
40832 * include/grub/i386/efi/time.h: Likewise.
40833 * include/grub/i386/pc/biosdisk.h: Likewise.
40834 * include/grub/i386/pc/boot.h: Likewise.
40835 * include/grub/i386/pc/chainloader.h: Likewise.
40836 * include/grub/i386/pc/console.h: Likewise.
40837 * include/grub/i386/pc/init.h: Likewise.
40838 * include/grub/i386/pc/kernel.h: Likewise.
40839 * include/grub/i386/pc/loader.h: Likewise.
40840 * include/grub/i386/pc/memory.h: Likewise.
40841 * include/grub/i386/pc/multiboot.h: Likewise.
40842 * include/grub/i386/pc/serial.h: Likewise.
40843 * include/grub/i386/pc/time.h: Likewise.
40844 * include/grub/i386/pc/vbe.h: Likewise.
40845 * include/grub/i386/pc/vbeblit.h: Likewise.
40846 * include/grub/i386/pc/vbefill.h: Likewise.
40847 * include/grub/i386/pc/vbeutil.h: Likewise.
40848 * include/grub/i386/pc/vga.h: Likewise.
40849 * include/grub/ieee1275/ieee1275.h: Likewise.
40850 * include/grub/ieee1275/ofdisk.h: Likewise.
40851 * include/grub/powerpc/libgcc.h: Likewise.
40852 * include/grub/powerpc/setjmp.h: Likewise.
40853 * include/grub/powerpc/types.h: Likewise.
40854 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40855 * include/grub/powerpc/ieee1275/console.h: Likewise.
40856 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40857 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40858 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40859 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40860 * include/grub/powerpc/ieee1275/time.h: Likewise.
40861 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40862 * include/grub/sparc64/libgcc.h: Likewise.
40863 * include/grub/sparc64/setjmp.h: Likewise.
40864 * include/grub/sparc64/types.h: Likewise.
40865 * include/grub/sparc64/ieee1275/console.h: Likewise.
40866 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40867 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40868 * include/grub/sparc64/ieee1275/time.h: Likewise.
40869 * include/grub/util/biosdisk.h: Likewise.
40870 * include/grub/util/getroot.h: Likewise.
40871 * include/grub/util/lvm.h: Likewise.
40872 * include/grub/util/misc.h: Likewise.
40873 * include/grub/util/raid.h: Likewise.
40874 * include/grub/util/resolve.h: Likewise.
40875 * io/gzio.c: Likewise.
40876 * kern/device.c: Likewise.
40877 * kern/disk.c: Likewise.
40878 * kern/dl.c: Likewise.
40879 * kern/elf.c: Likewise.
40880 * kern/env.c: Likewise.
40881 * kern/err.c: Likewise.
40882 * kern/file.c: Likewise.
40883 * kern/fs.c: Likewise.
40884 * kern/loader.c: Likewise.
40885 * kern/main.c: Likewise.
40886 * kern/misc.c: Likewise.
40887 * kern/mm.c: Likewise.
40888 * kern/parser.c: Likewise.
40889 * kern/partition.c: Likewise.
40890 * kern/rescue.c: Likewise.
40891 * kern/term.c: Likewise.
40892 * kern/efi/efi.c: Likewise.
40893 * kern/efi/init.c: Likewise.
40894 * kern/efi/mm.c: Likewise.
40895 * kern/i386/dl.c: Likewise.
40896 * kern/i386/efi/init.c: Likewise.
40897 * kern/i386/efi/startup.S: Likewise.
40898 * kern/i386/pc/init.c: Likewise.
40899 * kern/i386/pc/lzo1x.S: Likewise.
40900 * kern/i386/pc/startup.S: Likewise.
40901 * kern/ieee1275/ieee1275.c: Likewise.
40902 * kern/powerpc/cache.S: Likewise.
40903 * kern/powerpc/dl.c: Likewise.
40904 * kern/powerpc/ieee1275/cmain.c: Likewise.
40905 * kern/powerpc/ieee1275/crt0.S: Likewise.
40906 * kern/powerpc/ieee1275/init.c: Likewise.
40907 * kern/powerpc/ieee1275/openfw.c: Likewise.
40908 * kern/sparc64/cache.S: Likewise.
40909 * kern/sparc64/dl.c: Likewise.
40910 * kern/sparc64/ieee1275/init.c: Likewise.
40911 * kern/sparc64/ieee1275/openfw.c: Likewise.
40912 * loader/efi/chainloader.c: Likewise.
40913 * loader/efi/chainloader_normal.c: Likewise.
40914 * loader/i386/efi/linux.c: Likewise.
40915 * loader/i386/efi/linux_normal.c: Likewise.
40916 * loader/i386/pc/chainloader.c: Likewise.
40917 * loader/i386/pc/chainloader_normal.c: Likewise.
40918 * loader/i386/pc/linux.c: Likewise.
40919 * loader/i386/pc/linux_normal.c: Likewise.
40920 * loader/i386/pc/multiboot.c: Likewise.
40921 * loader/i386/pc/multiboot_normal.c: Likewise.
40922 * loader/powerpc/ieee1275/linux.c: Likewise.
40923 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40924 * normal/arg.c: Likewise.
40925 * normal/cmdline.c: Likewise.
40926 * normal/command.c: Likewise.
40927 * normal/completion.c: Likewise.
40928 * normal/execute.c: Likewise.
40929 * normal/function.c: Likewise.
40930 * normal/lexer.c: Likewise.
40931 * normal/main.c: Likewise.
40932 * normal/menu.c: Likewise.
40933 * normal/menu_entry.c: Likewise.
40934 * normal/misc.c: Likewise.
40935 * normal/parser.y: Likewise.
40936 * normal/script.c: Likewise.
40937 * normal/i386/setjmp.S: Likewise.
40938 * normal/powerpc/setjmp.S: Likewise.
40939 * normal/sparc64/setjmp.S: Likewise.
40940 * partmap/acorn.c: Likewise.
40941 * partmap/amiga.c: Likewise.
40942 * partmap/apple.c: Likewise.
40943 * partmap/gpt.c: Likewise.
40944 * partmap/pc.c: Likewise.
40945 * partmap/sun.c: Likewise.
40946 * term/gfxterm.c: Likewise.
40947 * term/terminfo.c: Likewise.
40948 * term/efi/console.c: Likewise.
40949 * term/i386/pc/console.c: Likewise.
40950 * term/i386/pc/serial.c: Likewise.
40951 * term/i386/pc/vesafb.c: Likewise.
40952 * term/i386/pc/vga.c: Likewise.
40953 * term/ieee1275/ofconsole.c: Likewise.
40954 * util/biosdisk.c: Likewise.
40955 * util/console.c: Likewise.
40956 * util/genmoddep.c: Likewise.
40957 * util/getroot.c: Likewise.
40958 * util/grub-emu.c: Likewise.
40959 * util/grub-mkdevicemap.c: Likewise.
40960 * util/grub-probe.c: Likewise.
40961 * util/lvm.c: Likewise.
40962 * util/misc.c: Likewise.
40963 * util/raid.c: Likewise.
40964 * util/resolve.c: Likewise.
40965 * util/update-grub.in: Likewise.
40966 * util/update-grub_lib.in: Likewise.
40967 * util/grub.d/00_header.in: Likewise.
40968 * util/grub.d/10_hurd.in: Likewise.
40969 * util/grub.d/10_linux.in: Likewise.
40970 * util/i386/efi/grub-install.in: Likewise.
40971 * util/i386/efi/grub-mkimage.c: Likewise.
40972 * util/i386/pc/grub-install.in: Likewise.
40973 * util/i386/pc/grub-mkimage.c: Likewise.
40974 * util/i386/pc/grub-mkrescue.in: Likewise.
40975 * util/i386/pc/grub-setup.c: Likewise.
40976 * util/i386/pc/misc.c: Likewise.
40977 * util/powerpc/ieee1275/grub-install.in: Likewise.
40978 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
40979 * util/powerpc/ieee1275/misc.c: Likewise.
40980 * video/bitmap.c: Likewise.
40981 * video/video.c: Likewise.
40982 * video/i386/pc/vbe.c: Likewise.
40983 * video/i386/pc/vbeblit.c: Likewise.
40984 * video/i386/pc/vbefill.c: Likewise.
40985 * video/i386/pc/vbeutil.c: Likewise.
40986 * video/readers/tga.c: Likewise.
40988 2007-07-02 Robert Millan <rmh@aybabtu.com>
40990 * conf/i386-efi.rmk: Replace obsolete reference to
40991 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
40992 with util/getroot.c.
40993 * conf/powerpc-ieee1275.rmk: Likewise.
40994 * conf/sparc64-ieee1275.rmk: Likewise.
40996 * util/grub-emu.c (main): Fix unchecked pointer handling.
40998 2007-07-02 Robert Millan <rmh@aybabtu.com>
41000 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41001 invocation to fail, in order to support partition-less media.
41003 * util/i386/pc/grub-install.in: Likewise.
41005 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41006 which fs or partmap modules are needed (akin to its sister scripts).
41008 Also use grub-probe to get rid of unportable /proc/mounts check.
41010 Print the same informational message that the other scripts do, before
41013 2007-06-23 Robert Millan <rmh@aybabtu.com>
41015 * util/update-grub_lib.in (font_path): New function. Determine whether
41016 a font file can be found and, if so, echo the GRUB path to it.
41018 * util/update-grub.in: Handle multiple terminals depending on user
41019 input, platform availability and font file presence. Propagate
41020 variables of our findings to /etc/grub.d/ children.
41022 * util/grub.d/00_header.in: Handle multiple terminals, based on
41023 environment setup by update-grub.
41025 2007-06-23 Robert Millan <rmh@aybabtu.com>
41027 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
41029 2007-06-21 Robert Millan <rmh@aybabtu.com>
41031 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41032 indicate end of data section in kernel image.
41033 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41034 GRUB_KERNEL_MACHINE_DATA_END.
41036 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41038 * kern/i386/efi/startup.S: Likewise.
41040 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41041 during image generation. Implement --prefix option to override this
41043 * util/i386/efi/grub-mkimage.c: Likewise.
41045 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41046 code to make path relative to its root into a separate function.
41048 * util/i386/pc/grub-install.in: Use newly provided
41049 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41050 pass the result to grub-install --prefix.
41052 2007-06-13 Robert Millan <rmh@aybabtu.com>
41054 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41055 DEFAULT_DEVICE_MAP.
41056 * util/grub-emu.c: Use above definitions from misc.h instead of
41058 * util/grub-mkdevicemap.c: Likewise.
41059 * util/i386/pc/grub-setup.c: Likewise.
41060 * util/grub-probe.c: Likewise.
41061 (probe): Abort with grub_util_error() when either
41062 grub_guess_root_device or grub_util_get_grub_dev fails.
41064 2007-06-12 Robert Millan <rmh@aybabtu.com>
41066 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41067 "pager" assignment.
41068 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41070 * util/grub-probe.c (probe): Likewise for "drive_name".
41072 2007-06-11 Robert Millan <rmh@aybabtu.com>
41074 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41075 not just the cdrom one.
41077 2007-06-11 Robert Millan <rmh@aybabtu.com>
41079 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41080 Add --pkglibdir=DIR option to override pkglibdir.
41081 Mention --image-type=TYPE in help output.
41082 Fix --grub-mkimage (it was a no-op).
41083 Abort gracefully when no parameter is given.
41085 2007-06-11 Robert Millan <rmh@aybabtu.com>
41087 * util/i386/pc/grub-mkrescue.in: New file.
41088 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41089 * Makefile.in: Handle bin_SCRIPTS.
41091 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41093 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41094 list of video modes.
41096 2007-06-06 Robert Millan <rmh@aybabtu.com>
41098 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41099 file doesn't exist, or if it is in a filesystem grub can't read.
41101 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41102 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41103 header comment to fit in 80 columns when the variables are resolved.
41105 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41106 could be identified by update-grub. Remove redundant check for
41107 unifont.pff existence (since convert_system_path_to_grub_path now
41110 2007-06-04 Robert Millan <rmh@aybabtu.com>
41112 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41114 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41116 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41118 2007-06-04 Robert Millan <rmh@aybabtu.com>
41120 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41122 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41123 grub_apple_partition_map_fini.
41126 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41127 to access >2 TiB disks).
41129 Print disk->total_sectors with %llu instead of %lu, since this
41130 variable is always 64-bit (prevents wrong disk size from being displayed
41131 on either >2 TiB disk or big-endian CPU).
41133 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41134 into a generic case that supports all (sane) partition maps.
41136 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41139 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41140 and grub_apple_partition_map_fini() after that.
41142 2007-06-01 Robert Millan <rmh@aybabtu.com>
41144 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41146 * util/grub.d/00_header.in: Only enable gfxterm when
41147 convert_system_path_to_grub_path() succeeds.
41149 2007-05-20 Robert Millan <rmh@aybabtu.com>
41151 * util/update-grub_lib.in: New file.
41152 * DISTLIST: Add update-grub_lib.in.
41153 * conf/common.rmk: Generate update-grub_lib and install it in
41155 * Makefile.in: Add install routine for $(lib_DATA).
41157 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41158 function provided by update-grub_lib to support arbitrary paths of
41160 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41161 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41163 2007-05-19 Robert Millan <rmh@aybabtu.com>
41165 * commands/i386/cpuid.c: New module.
41166 * DISTLIST: Add it.
41167 * conf/i386-efi.rmk: Enable cpuid.mod.
41168 * conf/i386-pc.rmk: Likewise.
41170 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41172 * kern/disk.c (grub_disk_read): Check return value of
41175 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41177 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41179 * disk/raid.c (grub_raid_open): Likewise.
41181 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41183 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41184 stack instead of on the heap.
41186 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41187 before doing a read on it.
41189 * configure.ac: Only use -fno-stack-protector for the target
41192 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41194 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41195 __attribute_ ((unused)) to mode_type argument.
41197 * util/getroot.c (grub_guess_root_device): Fix #endif.
41199 * kern/misc.c (memcmp): Fix prototype.
41201 * include/grub/partition.h [GRUB_UTIL]
41202 (grub_gpt_partition_map_init): Add prototype.
41203 (grub_gpt_partition_map_fini): Likewise.
41205 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41206 at the right place.
41208 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41209 (grub_fat_read_data): Likewise.
41210 (grub_fat_find_dir): Likewise.
41212 * font/manager.c (find_glyph): Make table a const.
41213 (grub_font_get_glyph): Remove bitmap from if statement.
41215 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41217 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41218 code, first search for device in /dev/mapper, then in /dev.
41219 (grub_util_get_grub_dev): New function.
41220 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41222 * util/grub-probe.c (probe): Remove check for RAID, call
41223 grub_util_get_grub_dev() instead of
41224 grub_util_biosdisk_get_grub_dev().
41225 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41226 grub_util_biosdisk_get_grub_dev().
41227 * util/i386/pc/grub-setup.c (main): Likewise.
41229 2007-05-16 Robert Millan <rmh@aybabtu.com>
41231 * DISTLIST: Update for the latest changes.
41232 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41233 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41234 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41235 grub/util/biosdisk.h.
41236 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41237 grub/util/biosdisk.h.
41239 2007-05-16 Robert Millan <rmh@aybabtu.com>
41241 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41243 2007-05-16 Robert Millan <rmh@aybabtu.com>
41245 * util/i386/efi/grub-install.in: New.
41246 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41247 newly added grub-install.
41248 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41250 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41251 grub/util/biosdisk.h.
41252 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41253 grub/util/biosdisk.h.
41255 2007-05-16 Robert Millan <rmh@aybabtu.com>
41257 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41258 * include/grub/util/biosdisk.h: ... here.
41259 * util/i386/pc/biosdisk.c: Moved to ...
41260 * util/biosdisk.c: ... here.
41261 * util/i386/pc/getroot.c: Moved to ...
41262 * util/getroot.c: ... here.
41263 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41264 * util/grub-mkdevicemap.c: ... here.
41265 * util/i386/pc/grub-probe.c: Moved to ...
41266 * util/grub-probe.c: ... here.
41268 2007-05-15 Robert Millan <rmh@aybabtu.com>
41270 * util/update-grub.in: Remove duplicated line in grub.cfg header
41273 2007-05-13 Robert Millan <rmh@aybabtu.com>
41275 * util/update-grub.in: Fix a few assumptions about the devices holding
41276 /, /boot and /boot/grub being the same.
41277 * util/grub.d/00_header.in: Likewise.
41278 * util/grub.d/10_hurd.in: Likewise.
41279 * util/grub.d/10_linux.in: Likewise.
41281 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41282 patterns. Use that to define the `.old' suffix as older than `'.
41284 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41286 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41287 the grub.cfg header message.
41289 2007-05-11 Robert Millan <rmh@aybabtu.com>
41291 * util/update-grub.in: Create device.map if it doesn't already exist,
41292 before attempting to run grub-probe.
41293 Check for grub-probe and grub-mkdevicemap with the same code
41294 grub-install is using.
41297 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41299 * Makefile.in: Add the datarootdir autoconf variable.
41301 2007-05-09 Robert Millan <rmh@aybabtu.com>
41303 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41304 fail gracefully if dev->disk->partition == NULL.
41306 2007-05-07 Robert Millan <rmh@aybabtu.com>
41308 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41309 determine partition map module.
41310 * util/i386/pc/grub-install.in: Use this feature to decide which
41311 partition module to load, instead of hardcoding pc and gpt.
41313 2007-05-07 Robert Millan <rmh@aybabtu.com>
41315 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41316 source directory differs from build directory.
41318 2007-05-05 Robert Millan <rmh@aybabtu.com>
41320 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41323 2007-05-05 Robert Millan <rmh@aybabtu.com>
41325 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41327 2007-05-05 Robert Millan <rmh@aybabtu.com>
41329 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41330 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41332 2007-05-05 Robert Millan <rmh@aybabtu.com>
41334 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41335 (grub_probe_SOURCES): Likewise.
41336 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41337 GPT and initialize dos_part and bsd_part accordingly.
41338 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41340 (main): Activate gpt module for use during partition identification,
41341 and deactivate it afterwards.
41342 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41343 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41344 partition identification, and deactivate it afterwards.
41346 2007-05-05 Robert Millan <rmh@aybabtu.com>
41348 * term/i386/pc/console.c (grub_console_fini): Call
41349 grub_term_set_current() before grub_term_unregister().
41351 2007-05-04 Robert Millan <rmh@aybabtu.com>
41353 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41354 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41355 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41356 and update-grub_DATA.
41357 * conf/common.rmk: Build and install update-grub components.
41358 * conf/common.mk: Regenerate.
41359 * util/update-grub.in: New. Core of update-grub.
41360 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41361 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41362 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41363 * util/grub.d/README: New. Document grub.d directory layout.
41365 2007-05-01 Robert Millan <rmh@aybabtu.com>
41367 * util/grub-emu.c: Move initialization functions
41368 grub_util_biosdisk_init() and grub_init_all() before
41369 grub_util_biosdisk_get_grub_dev(), which relies on them.
41371 2007-04-19 Robert Millan <rmh@aybabtu.com>
41373 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41376 2007-04-18 Jerone Young <jerone@gmail.com>
41378 * kernel/elf.c: Add missing parenthesis for conditional statement
41381 2007-04-10 Jerone Young <jerone@gmail.com>
41383 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41384 continue on and look for device node with real device name.
41386 2007-04-10 Jerone Young <jerone@gmail.com>
41388 * configure.ac: Add argument for autoconf to use transformation
41390 * Makefile.in: Add autoconf package transformation code.
41391 * util/i386/pc/grub-install.in: Likewise.
41392 * util/powerpc/ieee1275/grub-install.in: Likewise.
41394 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41396 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41397 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41398 (EXT2_REVISION): Likewise.
41399 (EXT2_INODE_SIZE): Likewise.
41400 (struct grub_ext2_block_group): Added a missing member
41402 (grub_ext2_read_inode): Divide by the inode size in a superblock
41403 instead of 128 to obtain INODES_PER_BLOCK.
41404 Use the macro EXT2_INODE_SIZE instead of directly using
41405 SBLOCK->INODE_SIZE.
41407 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41409 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41410 superblock instead of the structure size to compute an
41411 offset. This fixes the problem that GRUB could not read a
41412 filesystem when inode size is different from 128-byte.
41414 2007-03-05 Marco Gerards <marco@gnu.org>
41416 * normal/main.c (read_config_file): When "menu" is not set, create
41417 an initial context.
41419 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41421 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41422 (HEAP_LIMIT): New macro.
41423 (grub_claim_heap): Claim memory up to `heaplimit'.
41425 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41427 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41428 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41429 (_start): Likewise.
41430 (grub_arch_modules_addr): Return address after `_end'.
41431 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41432 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41433 (add_segments): Calculate `_end' from phdr size and location.
41434 (ALIGN_UP): Moved to ...
41435 * include/grub/misc.h: here.
41436 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41438 (GRUB_IEEE1275_MODULE_BASE): Removed.
41440 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41442 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41445 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41447 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41449 (grub_elf64_load_hook_t): Likewise.
41450 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41453 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41455 * kern/mm.c: Update copyright.
41456 (grub_mm_debug): Correct syntax error.
41457 (grub_mm_dump_free): New function.
41458 (grub_debug_free): Call `grub_free'.
41459 * include/grub/mm.h: Update copyright.
41460 (grub_mm_dump_free): Add declaration.
41462 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41464 * include/grub/ieee1275/ieee1275.h: Update copyright.
41465 * kern/powerpc/ieee1275/init.c: Likewise.
41466 * kern/powerpc/ieee1275/openfw.c: Likewise.
41468 * loader/powerpc/ieee1275/linux.c: Likewise.
41469 * include/grub/elfload.h: Likewise.
41470 * kern/elf.c: Likewise.
41471 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41473 (grub_elf64_load): Likewise.
41474 (grub_elf32_load_segment): Move to a nested function.
41475 (grub_elf64_load_segment): Likewise.
41477 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41479 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41481 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41482 (grub_heap_len): Likewise.
41483 (HEAP_SIZE): New macro.
41484 (grub_claim_heap): New function.
41485 (grub_machine_init): Don't claim heap directly. Call
41487 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41488 (grub_available_iterate): New function.
41490 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41492 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41493 * configure.ac: Use it for testing the HOST and TARGET compilers.
41495 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41497 * Makefile.in (enable_grub_emu): New variable.
41498 * configure.ac (--enable-grub-emu): New option.
41499 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41500 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41501 * conf/i386-pc.rmk: Likewise.
41502 * conf/powerpc-ieee1275.rmk: Likewise.
41503 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41505 2006-12-12 Marco Gerards <marco@gnu.org>
41507 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41509 * kern/env.c (grub_env_unset): Don't free the member `value' when
41510 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41513 * normal/main.c (current_menu): Removed.
41514 (free_menu): Unset the `menu' environment variable.
41515 (grub_normal_menu_addentry): Make use of the environment variable
41516 `menu', instead of using the global `current_menu'. Allocate
41517 memory for the sourcecode of this entry.
41518 (read_config_file): New argument `nested', changed all callers.
41519 Only in the case of a new context, initialize a new menu. Set the
41520 `menu' environment variable.
41521 (grub_normal_execute): Don't set and unset the environment
41522 variable `menu' here anymore. Only free the menu when leaving the
41525 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41528 2006-12-11 Marco Gerards <marco@gnu.org>
41530 * normal/menu_entry.c (run): Fix off by one bug so the last line
41531 is executed. Move the loader check to outside the loop.
41533 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41535 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41537 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41539 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41540 the number of sectors. Reported by Andrey Shuvikov
41541 <mr_hyro@yahoo.com>.
41543 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41545 * kern/disk.c (grub_disk_read): When there is a read error, always
41546 try to read only the necessary data.
41548 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41550 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41552 [GRUB_UTIL] (grub_raid_fini): Likewise.
41553 [GRUB_UTIL] (grub_lvm_init): Likewise.
41554 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41555 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41556 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41557 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41558 and grub_raid_fini().
41560 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41562 * include/grub/types.h (__unused): Rename to UNUSED.
41563 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41564 (grub_elf64_size): Likewise.
41566 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41568 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41569 grub_error_push and grub_error_pop in the error-handling path.
41570 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41573 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41575 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41576 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41577 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41578 (kernel_elf_SOURCES): Likewise.
41579 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41580 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41581 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41582 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41583 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41584 (elf_mod_SOURCES): New variable.
41585 (elf_mod_CFLAGS): Likewise.
41586 (elf_mod_LDFLAGS): Likewise.
41587 * include/grub/types.h (__unused): New macro.
41588 * include/grub/elfload.h: New file.
41589 * kern/elf.c: Likewise.
41590 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41591 (ELF32_LOADMASK): New macro.
41592 (ELF64_LOADMASK): Likewise.
41593 (vmlinux): Removed.
41594 (grub_linux_load32): New function.
41595 (grub_linux_load64): Likewise.
41596 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41597 Use grub_elf_t instead of grub_file_t.
41599 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41601 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41602 `catch_result' to struct set_color_args.
41604 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41606 * normal/menu.c: Include grub/script.h.
41607 * normal/menu_entry.c: Likewise.
41608 * include/grub/normal.h: Do not include grub/script.h.
41610 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41612 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41614 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41616 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41618 (grub_disk_close): Print debug messages when closing a disk.
41619 (grub_disk_read): Print debug messages when disk read fails.
41620 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41622 * kern/partition.c: Include misc.h.
41623 (grub_partition_iterate): Print debug messages when detecting
41626 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41628 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41630 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41632 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41634 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41635 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41637 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41639 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41640 instead of sizeof(lv). Patch by Michael Guntsche.
41642 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41644 * disk/lvm.c: Rename VGS to VG_LIST.
41645 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41646 (grub_lvm_open): Likewise.
41647 Thanks to Michael Guntsche for finding this bug.
41649 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41651 * configure.ac (AC_INIT): Bumped to 1.95.
41653 2006-10-14 Robert Millan <rmh@aybabtu.com>
41655 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41656 with "/dev/.static/dev/md".
41658 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41660 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41661 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41662 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41663 DRIVE_NAME are always freed.
41665 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41666 DOS_PART, as a DOS partition is counted from one instead of zero
41667 now. Reported by Robert Millan.
41669 2006-10-14 Robert Millan <rmh@aybabtu.com>
41671 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41672 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41673 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41674 string returned by grub_guess_root_device.
41675 * util/i386/pc/grub-setup.c: Likewise.
41676 * util/i386/pc/grub-probefs.c: Likewise.
41678 * util/i386/pc/grub-probefs.c: Rename to ...
41679 * util/i386/pc/grub-probe.c: ... this.
41680 * DISTLIST: Remove grub-probefs, add grub-probe.
41681 * conf/i386-efi.rmk: Likewise.
41682 * conf/i386-pc.rmk: Likewise.
41683 * util/i386/pc/grub-install.in: Likewise.
41685 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41686 choose which information we want to print.
41688 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41690 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41691 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41692 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41693 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41694 video/readers/tga.c and video/i386/pc/vbeutil.c.
41696 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41698 Added support for RAID and LVM.
41700 * disk/lvm.c: New file.
41701 * disk/raid.c: Likewise.
41702 * include/grub/lvm.h: Likewise.
41703 * include/grub/raid.h: Likewise.
41704 * include/grub/util/lvm.h: Likewise.
41705 * include/grub/util/raid.h: Likewise.
41706 * util/lvm.c: Likewise.
41707 * util/raid.c: Likewise.
41709 * include/grub/disk.h (grub_disk_dev_id): Add
41710 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41711 (grub_disk_get_size): New prototype.
41712 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41713 returns a partition.
41714 (grub_disk_get_size): New function.
41716 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41717 verbatim if grub_install_dos_part is -2.
41719 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41722 * util/i386/pc/grub-setup.c (setup): New argument
41723 MUST_EMBED. Force embedding of GRUB when the argument is
41724 true. Close FILE before returning.
41725 (main): Add support for RAID and LVM.
41727 * conf/common.rmk: Add RAID and LVM modules.
41728 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41730 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41732 * kern/misc.c (grub_strstr): New function.
41733 * include/grub/misc.h (grub_strstr): New prototype.
41735 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41737 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41739 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41741 * kern/misc.c (grub_strtoull): Guess the base only if not
41744 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41746 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41749 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41751 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41753 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41754 Remove `flags' argument. All callers changed.
41755 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41756 (IEEE1275_IHANDLE_INVALID): New variable.
41757 (IEEE1275_CELL_INVALID): New variable.
41758 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41759 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41760 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41761 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41762 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41763 codes from Open Firmware. All callers updated.
41764 (grub_ieee1275_next_property): Directly return Open Firmware return
41766 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41767 Standardize error checking from `grub_ieee1275_get_property'.
41768 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41769 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41771 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41773 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41774 `instance_to_package_args' to `instance_to_path_args'.
41776 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41777 `grub_ieee1275_chosen'.
41779 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41780 `grub_ieee1275_interpret'.
41782 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41784 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41786 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41788 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41789 (__cmpdi): Likewise.
41791 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41792 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41795 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41797 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41798 to type `grub_ssize_t'.
41799 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41801 2006-09-22 Marco Gerards <marco@gnu.org>
41803 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41806 2006-09-22 Marco Gerards <marco@gnu.org>
41808 * commands/echo.c: New file.
41810 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41812 * conf/common.rmk (echo_mod_SOURCES): New variable.
41813 (echo_mod_CFLAGS): Likewise.
41814 (echo_mod_LDFLAGS): Likewise.
41816 2006-09-22 Marco Gerards <marco@gnu.org>
41818 * normal/main.c (get_line): Malloc memory instead of using
41819 preallocated memory. Removed the arguments `cmdline' and
41820 `max_len'. Updated all callers.
41822 2006-09-22 Marco Gerards <marco@gnu.org>
41824 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41825 (normal_mod_DEPENDENCIES): Likewise.
41827 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41828 (normal_mod_DEPENDENCIES): Likewise.
41830 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41832 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41834 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41836 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41837 (normal_mod_DEPENDENCIES): Likewise.
41838 * conf/i386-pc.mk: Regenerate.
41839 * conf/i386-efi.mk: Likewise
41840 * conf/common.mk: Likewise.
41841 * conf/powerpc-ieee1275.mk: Likewise.
41842 * conf/sparc64-ieee1275.mk: Likewise.
41844 2006-09-22 Robert Millan <rmh@aybabtu.com>
41846 Sync with i386 version.
41847 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41848 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41850 2006-09-21 Robert Millan <rmh@aybabtu.com>
41852 Import from GRUB Legacy (lib/device.c):
41853 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41854 (init_device_map) [__linux__]: Add support for I2O devices.
41856 2006-09-14 Marco Gerards <marco@gnu.org>
41858 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41861 2006-09-14 Robert Millan <rmh@aybabtu.com>
41863 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41866 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41868 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41869 before adding it to device.map.
41871 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41873 * genmk.rb: Let GCC generate dependencies the first time it
41874 compiles a file; using the -MD option.
41875 * conf/common.mk: Regenerate.
41876 * conf/i386-pc.mk: Likewise.
41877 * conf/i386-efi.mk: Likewise.
41878 * conf/powerpc-ieee1275.mk: Likewise.
41879 * conf/sparc64-ieee1275.mk: Likewise.
41881 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41883 Move the prototypes of grub_setjmp and grub_longjmp to
41884 cpu/setjmp.h, so that each architecture may specify different
41887 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41888 (grub_longjmp): Likewise.
41889 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41890 (grub_longjmp): Likewise.
41891 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41892 (grub_longjmp): Likewise.
41894 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41895 [!GRUB_UTIL] (grub_longjmp): Removed.
41897 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41899 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41900 "color!" method does not return any value.
41902 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41904 * include/grub/bitmap.h: New file.
41906 * include/grub/i386/pc/vbeutil.h: Likewise.
41908 * video/bitmap.c: Likewise.
41910 * video/readers/tga.c: Likewise.
41912 * video/i386/pc/vbeutil.c: Likewise.
41914 * commands/videotest.c: Code cleanup and updated to reflect to new
41917 * term/gfxterm.c: Likewise.
41919 * video/video.c: Likewise.
41921 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41922 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41923 (bitmap_mod_SOURCES): New entry.
41924 (bitmap_mod_CFLAGS): Likewise.
41925 (bitmap_mod_LDFLAGS): Likewise.
41926 (tga_mod_SOURCES): Likewise.
41927 (tga_mod_CFLAGS): Likewise.
41928 (tga_mod_LDFLAGS): Likewise.
41930 * include/grub/video.h (grub_video_blit_operators): New enum type.
41931 (grub_video_render_target): Changed as forward declaration and moved
41932 actual definition to be video driver specific.
41933 (grub_video_adapter.blit_bitmap): Added blitting operator.
41934 (grub_video_adapter.blit_render_target): Likewise.
41935 (grub_video_blit_bitmap): Likewise.
41936 (grub_video_blit_render_target): Likewise.
41938 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
41939 driver specific render target definition.
41940 (grub_video_vbe_map_rgba): Added driver internal helper.
41941 (grub_video_vbe_unmap_color): Updated to use
41942 grub_video_i386_vbeblit_info.
41943 (grub_video_vbe_get_video_ptr): Likewise.
41945 * include/grub/i386/pc/vbeblit.h
41946 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
41947 grub_video_i386_vbeblit_info.
41948 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
41949 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
41950 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
41951 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
41952 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
41953 (grub_video_i386_vbeblit_index_index): Likewise.
41954 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
41955 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
41956 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
41957 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
41959 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
41962 * video/i386/pc/vbeblit.c: Updated to reflect changes on
41963 include/grub/i386/pc/vbeblit.h.
41965 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
41966 Updated to use grub_video_i386_vbeblit_info.
41967 (grub_video_i386_vbefill_R8G8B8): Likewise.
41968 (grub_video_i386_vbefill_index): Likewise.
41969 (grub_video_i386_vbefill): Added generic filler.
41971 * video/i386/pc/vbefill.c: Updated to reflect changes on
41972 include/grub/i386/pc/vbefill.h.
41974 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
41975 grub_video_i386_vbeblit_info.
41976 (grub_video_vbe_unmap_color): Likewise.
41977 (grub_video_vbe_blit_glyph): Likewise.
41978 (grub_video_vbe_scroll): Likewise.
41979 (grub_video_vbe_draw_pixel): Removed function.
41980 (grub_video_vbe_get_pixel): Likewise.
41981 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
41982 updated code to use it.
41983 (common_blitter): Added common blitter for render target and bitmap.
41984 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
41985 (grub_video_vbe_blit_render_target): Likewise.
41987 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
41989 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
41990 is in text mode if there is no console control protocol instance
41993 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41995 * include/grub/video.h: Code cleanup.
41997 * include/grub/i386/pc/vbe.h: Likewise.
41999 * video/i386/pc/vbe.c: Likewise.
42001 * video/i386/pc/vbeblit.c: Likewise.
42003 * video/i386/pc/vbefill.c: Likewise.
42005 * video/video.c: Likewise. Also added more comments.
42007 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42009 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42010 (struct grub_biosdisk_dap): Likewise.
42012 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42013 linkage settings for all functions.
42015 2006-07-12 Marco Gerards <marco@gnu.org>
42017 * configure.ac (--enable-mm-debug): Fix typo.
42019 * genkernsyms.sh.in: Use proper quoting for `CC'.
42021 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42023 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42024 (normal_mod_ASFLAGS): Remove "-m32".
42026 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42028 * util/misc.c: Include config.h.
42029 [!HAVE_MEMALIGN]: Do not include malloc.h.
42030 (grub_memalign): Use posix_memalign, if present. Then, use
42031 memalign, if present. Otherwise, emit an error.
42033 * util/grub-emu.c: Do not include malloc.h.
42035 * include/grub/util/misc.h: Include unistd.h. This is required for
42036 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42037 D. Eades III <hde@foobar-qux.org>.
42039 * configure.ac (AC_GNU_SOURCE): Added.
42040 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42043 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42045 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42046 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42048 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42050 * include/grub/types.h (grub_host_addr_t): Rename to
42051 grub_target_addr_t.
42052 (grub_host_off_t): Rename to grub_target_off_t.
42053 (grub_host_size_t): Rename to grub_target_size_t.
42054 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42055 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42057 * include/grub/kernel.h (struct grub_module_header): Change type
42058 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42059 (grub_module_info): Likewise.
42061 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42063 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42064 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42065 Velazquez <jesus.velazquez@gmail.com>.
42067 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42069 Count partitions from 1 instead of 0 in the string representation
42070 of partitions. Still use 0-based internally.
42072 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42073 (sun_partition_map_iterate): Use grub_partition_t instead of
42074 struct grub_partition *. Cast DESC->START_CYLINDER to
42075 grub_uint64_t after converting the endian.
42076 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42077 (sun_partition_map_get_name): Add 1 to P->INDEX.
42079 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42081 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42083 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42084 zero instead of one.
42085 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42086 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42088 * partmap/apple.c (apple_partition_map_iterate): Change the type
42089 of POS to unsigned.
42090 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42091 (apple_partition_map_get_name): Add 1 into P->INDEX.
42093 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42094 of POS to unsigned.
42095 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42096 calculate the offset of a partition.
42097 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42098 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42100 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42101 SECTOR to grub_disk_addr_t.
42102 (acorn_partition_map_iterate): Likewise.
42103 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42104 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42106 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42108 * kern/i386/pc/init.c (make_install_device): Add 1 into
42109 GRUB_INSTALL_DOS_PART.
42111 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42114 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42116 Clean up the code to support 64-bit addressing in disks and
42117 files. This change is not enough for filesystems yet.
42119 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42120 type of "start" to grub_uint64_t.
42121 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42122 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42123 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42126 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42127 to grub_disk_addr_t.
42129 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42132 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42134 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42137 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42139 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42141 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42143 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42144 to grub_off_t, to detect an error from grub_file_seek.
42145 (grub_multiboot_load_elf32): Likewise.
42147 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42148 maximum unsigned long value when an overflow is detected.
42149 (grub_strtoull): New function.
42150 (grub_divmod64): Likewise.
42151 (grub_lltoa): use grub_divmod64.
42153 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42155 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42156 the pointer to next character. Use grub_strtoull instead of
42158 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42159 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42162 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
42163 return value is signed.
42164 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42165 test if OFFSET is less than zero, as OFFSET is unsigned now.
42167 * kern/disk.c (struct grub_disk_cache): Change the type of
42168 "sector" to grub_disk_addr_t.
42169 (grub_disk_cache_get_index): Change the type of SECTOR to
42170 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42171 unsigned after shifting.
42172 (grub_disk_cache_invalidate): Change the type of SECTOR to
42174 (grub_disk_cache_unlock): Likewise.
42175 (grub_disk_cache_store): Likewise.
42176 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42177 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42178 grub_disk_addr_t and grub_uint64_t, respectively.
42179 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42180 body, as the value of OFFSET is tweaked by
42181 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42182 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42184 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42185 body, as the value of OFFSET is tweaked by
42186 grub_disk_check_range. Change the types of LEN and N to
42189 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42190 and "saved_offset" to grub_off_t.
42191 (test_header): Cast BUF to char *.
42192 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42194 (grub_gzio_read): Change the types of OFFSET and SIZE to
42195 grub_off_t and grub_size_t, respectively.
42197 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42199 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42200 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42201 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42202 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42203 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42205 * include/grub/types.h (grub_off_t): Unconditionally set to
42207 (grub_disk_addr_t): Changed to grub_uint64_t.
42209 * include/grub/partition.h (struct grub_partition): Change the
42210 types of "start", "len" and "offset" to grub_disk_addr_t,
42211 grub_uint64_t and grub_disk_addr_t, respectively.
42212 (grub_partition_get_start): Return grub_disk_addr_t.
42213 (grub_partition_get_len): Return grub_uint64_t.
42215 * include/grub/misc.h (grub_strtoull): New prototype.
42216 (grub_divmod64): Likewise.
42218 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42219 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42220 grub_off_t, respectively.
42221 All callers and references changed.
42223 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42224 grub_size_t in "read".
42225 All callers and references changed.
42227 * include/grub/file.h (struct grub_file): Change the types of
42228 "offset" and "size" to grub_off_t and grub_off_t,
42229 respectively. Change the type of SECTOR to grub_disk_addr_t in
42231 (grub_file_read): Change the type of LEN to grub_size_t.
42232 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42234 (grub_file_size): Return grub_off_t.
42235 (grub_file_tell): Likewise.
42236 All callers and references changed.
42238 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42239 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42241 (struct grub_disk): Change the type of "total_sectors" to
42242 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
42244 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42245 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42246 (grub_disk_write): Likewise.
42247 All callers and references changed.
42249 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42250 char * for grub_strncmp to silence gcc.
42251 (grub_iso9660_mount): Likewise.
42252 (grub_iso9660_mount): Likewise.
42253 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42255 (grub_iso9660_iterate_dir): Likewise.
42256 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42258 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42259 LEN to grub_disk_addr_t and grub_size_t, respectively.
42261 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42263 * fs/jfs.c (grub_jfs_read_file): Likewise.
42265 * fs/minix.c (grub_jfs_read_file): Likewise.
42267 * fs/sfs.c (grub_jfs_read_file): Likewise.
42269 * fs/ufs.c (grub_jfs_read_file): Likewise.
42271 * fs/xfs.c (grub_jfs_read_file): Likewise.
42273 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42274 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42277 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42278 BLKNR to -1 instead of returning GRUB_ERRNO.
42279 (grub_ext2_read_file): Change the types of SECTOR and
42280 LEN to grub_disk_addr_t and grub_size_t, respectively.
42282 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42283 LEN to grub_disk_addr_t and grub_size_t, respectively.
42285 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42288 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42289 string. Do not cast SECTOR explicitly.
42291 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42292 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42293 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42294 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42295 over 2TB and LBA mode is not supported, raise an error.
42296 (get_safe_sectors): New function.
42297 (grub_biosdisk_read): Use get_safe_sectors.
42298 (grub_biosdisk_write): Likewise.
42300 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42301 (grub_efidisk_write): Likewise.
42303 * disk/loopback.c (delete_loopback): Cosmetic changes.
42304 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42306 (grub_loopback_open): Likewise.
42307 (grub_loopback_read): Likewise. Also, change the type of POS to
42308 grub_off_t, and fix the usage of grub_memset.
42310 * commands/i386/pc/play.c: Include grub/machine/time.h.
42312 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42315 * commands/configfile.c: Include grub/env.h.
42317 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42318 GRUB_ERRNO directly instead. Change the type of POS to
42319 grub_off_t. Follow the coding standard.
42321 * commands/blocklist.c: Include grub/partition.h.
42322 (grub_cmd_blocklist): Return an error if the underlying device is
42323 not a disk. Take the starting sector of a partition into account,
42324 if a partition is used.
42326 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42328 (lba_mode): Support 64-bit addresses.
42329 (chs_mode): Likewise.
42330 (copy_buffer): Adapted to the new offsets of a length field and a
42332 (blocklist_default_start): Allocate 64-bit space.
42334 * boot/i386/pc/boot.S (force_lba): Removed.
42335 (boot_drive): Moved to under KERNEL_SECTOR.
42336 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42338 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42340 (lba_mode): Refactored to support a 64-bit address. More size
42342 (setup_sectors): Likewise.
42344 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42346 * DISTLIST: Added include/grub/i386/linux.h. Removed
42347 include/grub/i386/pc/linux.h
42349 * configure.ac (AC_INIT): Bumped to 1.94.
42351 * config.guess: Updated from gnulib.
42352 * config.sub: Likewise.
42353 * install-sh: Likewise.
42354 * mkinstalldirs: Likewise.
42356 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42358 * conf/common.rmk (grub_modules_init.lst): Depended on
42359 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42362 * genmk.rb (PModule::rule): Reverted the previous change.
42364 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42366 * conf/common.rmk (grub_modules_init.lst): Depends on
42367 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42368 that the target does not exist before producing.
42369 (grub_modules_init.h): Remove the target before generating.
42370 (grub_emu_init.c): Likewise.
42372 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42374 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42376 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42377 for the target-specific tests. Make sure that we also have the
42378 up-to-date target variables for those tests.
42380 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42382 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42383 (PModule::rule): Likewise.
42385 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42387 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42388 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42389 target-specific flags should be prefixed.
42390 (PModule::rule): Likewise.
42392 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42394 * configure.ac (CMP): Check if cmp is available explicitly.
42396 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42398 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42399 (target_cpu): New variable.
42400 (pkglibdir): Use target_cpu instead of host_cpu.
42402 * util/i386/pc/grub-install.in (host_cpu): Removed.
42403 (target_cpu): New variable.
42404 (pkglibdir): Use target_cpu instead of host_cpu.
42406 * util/genmoddep.c: Removed.
42408 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42409 instead of GRUB_HOST_SIZEOF_VOID_P.
42410 * kern/dl.c: Likewise.
42412 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42414 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42415 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42416 (GRUB_TARGET_SIZEOF_LONG): ... this.
42417 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42418 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42419 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42421 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42422 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42423 (GRUB_TARGET_SIZEOF_LONG): ... this.
42424 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42425 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42426 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42428 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42429 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42430 (GRUB_TARGET_SIZEOF_LONG): ... this.
42431 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42432 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42434 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42435 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42436 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42437 instead of GRUB_HOST_SIZEOF_LONG.
42438 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42439 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42440 GRUB_CPU_WORDS_BIGENDIAN.
42441 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42442 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42445 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42446 (genmoddep_SOURCES): Likewise.
42447 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42448 (genmoddep_SOURCES): Likewise.
42449 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42450 (genmoddep_SOURCES): Likewise.
42451 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42453 (genmoddep_SOURCES): Likewise.
42455 * genmoddep.awk: New file.
42457 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42458 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42459 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42460 (PModule::rule): Likewise.
42461 (Program::rule): Likewise.
42462 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42463 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42466 * configure.ac: Rewritten intensively to use host and target
42467 instead of build and host, respectively.
42469 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42470 (host_cpu): Removed.
42471 (target_cpu): New variable.
42472 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42473 (BUILD_CC): Removed.
42474 (BUILD_CFLAGS): Likewise.
42475 (BUILD_CPPFLAGS): Likewise.
42476 (TARGET_CC): New variable.
42477 (TARGET_CFLAGS): Likewise.
42478 (TARGET_CPPFLAGS): Likewise.
42479 (TARGET_LDFLAGS): Likewise.
42481 (include): Use target_cpu instead of host_cpu.
42482 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42484 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42486 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42488 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42489 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42490 field 'false' to 'exec_on_false'.
42491 (grub_script_create_cmdif): Renamed argument names to reflect above
42494 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42496 * normal/script.c (grub_script_create_cmdif): Likewise.
42498 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42500 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42502 (grub_hfsplus_btree_recptr): Likewise.
42503 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42504 FILEBLOCK both to pass a block number and store next block
42506 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42507 overflow file correctly. Specify errors appropriately, because
42508 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42509 grub_hfsplus_btree_recptr to get the pointer to a found key.
42510 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42513 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42515 (_linux_mod_SOURCES): New variable.
42516 (_linux_mod_CFLAGS): Likewise.
42517 (_linux_mod_LDFLAGS): Likewise.
42518 (linux_mod_SOURCES): Likewise.
42519 (linux_mod_CFLAGS): Likewise.
42520 (linux_mod_LDFLAGS): Likewise.
42522 * DISTLIST: Added loader/i386/efi/linux.c,
42523 loader/i386/efi/linux_normal.c and
42524 include/grub/i386/efi/loader.h.
42526 * loader/i386/efi/linux.c: New file.
42527 * loader/i386/efi/linux_normal.c: Likewise.
42528 * include/grub/i386/efi/loader.h: Likewise.
42530 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42532 * commands/blocklist.c: New file.
42534 * DISTLIST: Added commands/blocklist.c.
42536 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42537 color for the background, and a darker color for the foreground.
42538 (grub_console_checkkey): Return READ_KEY.
42539 (grub_console_cls): Set the background to
42540 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42542 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42544 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42545 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42547 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42550 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42551 BG. The spec is wrong again.
42553 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42555 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42557 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42558 commands/blocklist.c.
42559 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42561 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42562 (blocklist_mod_SOURCES): New variable.
42563 (blocklist_mod_CFLAGS): Likewise.
42564 (blocklist_mod_LDFLAGS): Likewise.
42566 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42568 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42570 (lba_mode): Use %eax more intensively to reduce the code size.
42572 2006-05-20 Marco Gerards <marco@gnu.org>
42574 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42576 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42578 (script): Accept leading newlines.
42579 (newlines): New rule to describe 0 or more newlines.
42580 (commands): Accept `command' with trailing newline. Fixed the
42581 order in which arguments were passed to `grub_script_add_cmd'.
42582 Accept commands separated by newlines.
42583 (function): Changed to accept newlines.
42584 (menuentry) Rewritten.
42586 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42587 front of the list, instead of to the end.
42589 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42591 * util/i386/pc/grub-install.in (bindir): New variable.
42592 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42593 Shaver <lbgwjl@gmail.com>.
42595 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42597 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42598 grub/machine/linux.h
42599 * loader/i386/pc/linux.c: Likewise.
42601 * include/grub/i386/pc/linux.h: Moved to ...
42602 * include/grub/i386/linux.h: ... here.
42604 * include/grub/i386/linux.h (struct linux_kernel_params): New
42607 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42609 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42611 (grub_video_vbe_blit_glyph): Likewise.
42612 (grub_video_vbe_blit_bitmap): Likewise.
42613 (grub_video_vbe_blit_render_target): Likewise.
42615 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42617 * configure.ac (--with-platform): Properly quote the square
42620 2006-05-08 Marco Gerards <marco@gnu.org>
42622 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42624 (kernel_elf_HEADERS): ...to this. Updated all users.
42625 (grubof_symlist.c): Renamed from this...
42626 (kernel_elf_symlist.c): ...to this. Updated all users.
42627 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42628 (grubof_SOURCES): Renamed from this...
42629 (kernel_elf_SOURCES): ...to this.
42630 (grubof_HEADERS): Renamed from this...
42631 (kernel_elf_HEADERS): ...to this.
42632 (grubof_CFLAGS): Renamed from this...
42633 (kernel_elf_CFLAGS): ...to this.
42634 (grubof_ASFLAGS): Renamed from this...
42635 (kernel_elf_ASFLAGS): ...to this.
42636 (grubof_LDFLAGS): Renamed from this...
42637 (kernel_elf_LDFLAGS): ...to this.
42639 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42641 (kernel_elf_HEADERS): ...to this. Updated all users.
42642 (grubof_symlist.c): Renamed from this...
42643 (kernel_elf_symlist.c): ...to this. Updated all users.
42644 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42645 (grubof_SOURCES): Renamed from this...
42646 (kernel_elf_SOURCES): ...to this.
42647 (grubof_HEADERS): Renamed from this...
42648 (kernel_elf_HEADERS): ...to this.
42649 (grubof_CFLAGS): Renamed from this...
42650 (kernel_elf_CFLAGS): ...to this.
42651 (grubof_ASFLAGS): Renamed from this...
42652 (kernel_elf_ASFLAGS): ...to this.
42653 (grubof_LDFLAGS): Renamed from this...
42654 (kernel_elf_LDFLAGS): ...to this.
42656 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42657 `kernel.elf' instead of `grubof'.
42659 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42661 Add --with-platform to configure. Use pkglibdir instead of
42662 pkgdatadir. This is reported by Roger Leigh.
42664 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42665 (host_vendor): Likewise.
42666 (host_os): Likewise.
42667 (pkgdatadir): Likewise.
42668 (platform): New variable.
42669 (pkglibdir): Likewise.
42670 Use PKGLIBDIR instead of PKGDATADIR.
42672 * util/i386/pc/grub-install.in (datadir): Removed.
42673 (host_vendor): Likewise.
42674 (host_os): Likewise.
42675 (pkgdatadir): Likewise.
42676 (platform): New variable.
42677 (pkglibdir): Likewise.
42678 Use PKGLIBDIR instead of PKGDATADIR.
42680 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42681 instead of GRUB_DATADIR.
42683 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42685 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42688 * configure.ac (--with-platform): New option.
42689 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42691 * Makefile.in: Include a makefile based on PLATFORM instead of
42693 (pkgdatadir): Not appended by the machine type.
42694 (pkglibdir): Appended by the machine type.
42695 (host_vendor): Removed.
42696 (platform): New variable.
42697 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42698 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42699 (uninstall): Likewise.
42701 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42703 Use the environment context in the menu. Remove the commands
42704 "default" and "timeout", and use variables instead.
42706 * normal/menu.c: Include grub/env.h.
42707 (print_entry): Cast TITLE to silence gcc.
42708 (get_timeout): New function.
42709 (set_timeout): Likewise.
42710 (get_entry_number): Likewise.
42711 (run_menu): Use a default entry, a fallback entry and a timeout
42712 in the environment variables "default", "fallback" and
42713 "timeout". Also, tweak the default entry if it is not within the
42714 current menu entries.
42715 (grub_menu_run): Use a fallback entry in the environment variable
42718 * normal/main.c (read_config_file): Do not initialize
42719 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42721 (grub_normal_execute): Use a data slot to store the menu.
42723 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42724 fallback_entry and timeout.
42725 (struct grub_menu_list): Removed.
42726 (grub_menu_list_t): Likewise.
42727 (struct grub_context): Likewise.
42728 (grub_context_t): Likewise.
42729 (grub_context_get): Likewise.
42730 (grub_context_get_current_menu): Likewise.
42731 (grub_context_push_menu): Likewise.
42732 (grub_context_pop_menu): Likewise.
42733 (grub_default_init): Likewise.
42734 (grub_default_fini): Likewise.
42735 (grub_timeout_init): Likewise.
42736 (grub_timeout_fini): Likewise.
42738 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42740 (normal_mod_SOURCES): Removed normal/context.c.
42742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42743 commands/default.c, commands/timeout.c and normal/context.c.
42744 (normal_mod_SOURCES): Removed normal/context.c.
42746 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42747 commands/timeout.c and normal/context.c.
42748 (normal_mod_SOURCES): Removed normal/context.c.
42750 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42751 commands/default.c, commands/timeout.c and normal/context.c.
42752 (normal_mod_SOURCES): Removed normal/context.c.
42754 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42756 (default_mod_SOURCES): Removed.
42757 (default_mod_CFLAGS): Likewise.
42758 (default_mod_LDFLAGS): Likewise.
42759 (timeout_mod_SOURCES): Removed.
42760 (timeout_mod_CFLAGS): Likewise.
42761 (timeout_mod_LDFLAGS): Likewise.
42763 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42766 * commands/default.c: Removed.
42767 * commands/timeout.c: Likewise.
42768 * normal/context.c: Likewise.
42770 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42772 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42774 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42776 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42777 "next" to "prev" for readability.
42778 (struct grub_env_sorted_var): New struct.
42779 (grub_env_context): Renamed to ...
42780 (initial_context): ... this.
42781 (grub_env_var_context): Renamed to ...
42782 (current_context): ... this.
42783 (grub_env_find): Look only at CURRENT_CONTEXT.
42784 (grub_env_context_open): Rewritten to copy exported variables from
42786 (grub_env_context_close): Rewritten according to the new
42787 scheme. Also, add an assertion to prevent the initial context from
42789 (grub_env_insert): Removed the code for the sorted list.
42790 (grub_env_remove): Likewise.
42791 (grub_env_export): Simply mark the variable with
42792 GRUB_ENV_VAR_GLOBAL.
42793 (grub_env_set): A cosmetic change for naming consistency.
42794 (grub_env_get): Likewise.
42795 (grub_env_unset): Likewise.
42796 (grub_env_iterate): Rewritten to sort variables within this
42798 (grub_register_variable_hook): Fixed for naming consistency. Call
42799 grub_env_find again, only if NAME is not found at the first time.
42800 (mangle_data_slot_name): New function.
42801 (grub_env_set_data_slot): Likewise.
42802 (grub_env_get_data_slot): Likewise.
42803 (grub_env_unset_data_slot): Likewise.
42805 * include/grub/env.h (grub_env_var_type): New enum.
42806 (GRUB_ENV_VAR_LOCAL): New constant.
42807 (GRUB_ENV_VAR_GLOBAL): Likewise.
42808 (GRUB_ENV_VAR_DATA): Likewise.
42809 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42811 (grub_env_set): Replace VAR with NAME for consistency.
42812 (grub_register_variable_hook): Likewise.
42813 (grub_env_export): Specify the name of the argument.
42814 (grub_env_set_data_slot): New prototype.
42815 (grub_env_get_data_slot): Likewise.
42816 (grub_env_unset_data_slot): Likewise.
42818 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42820 Extend the loader so that GRUB can accept a loader which comes
42821 back to GRUB when a loaded image exits. Also, this change adds
42822 support for a chainloader on EFI.
42824 * term/efi/console.c: Include grub/misc.h.
42825 (grub_console_checkkey): Display a scan code on the top for
42826 debugging. This will be removed once the EFI port gets stable.
42827 Correct the scan code mapping.
42829 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42830 allocate memory from larger regions, in order to reduce the number
42831 of allocated regions. Otherwise, the MacOSX loader panics.
42832 (filter_memory_map): Avoid less than 1MB for compatibility with
42834 (add_memory_regions): Allocate from the tail of a region, if
42835 possible, to avoid allocating a region near to 1MB, for the MacOSX
42838 * kern/efi/init.c (grub_efi_set_prefix): Specify
42839 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42841 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42842 argument IMAGE_HANDLE and specify it to get a loaded image.
42843 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42844 grub_efi_get_loaded_image.
42845 (grub_efi_get_filename): Divide the length by the size of
42847 (grub_efi_get_device_path): New function.
42848 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42849 the length by the size of grub_efi_char16_t for a file path device
42852 * kern/loader.c (grub_loader_noreturn): New variable.
42853 (grub_loader_set): Accept a new argument NORETURN. Set
42854 GRUB_LOADER_NORETURN to NORETURN.
42855 All callers changed.
42856 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42859 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42861 (grub_efi_get_loaded_image): Take an argument to specify an image
42864 * include/grub/loader.h (grub_loader_set): Added one more argument
42867 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42868 instead of grub_efi_open_protocol.
42869 (grub_efidisk_get_device_name): Likewise.
42870 (grub_efidisk_close): Print a newline.
42871 (grub_efidisk_get_device_handle): Fixed to use
42872 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42873 GRUB_EFI_DEVICE_PATH_TYPE.
42875 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42876 * kern/efi/efi.c (device_path_guid): ... here.
42878 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42880 (kernel_mod_HEADERS): Added efi/disk.h.
42881 (_chain_mod_SOURCES): New variable.
42882 (_chain_mod_CFLAGS): Likewise.
42883 (_chain_mod_LDFLAGS): Likewise.
42884 (chain_mod_SOURCES): Likewise.
42885 (chain_mod_CFLAGS): Likewise.
42886 (chain_mod_LDFLAGS): Likewise.
42888 * DISTLIST: Added include/grub/efi/chainloader.h,
42889 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42891 * include/grub/efi/chainloader.h: New file.
42892 * loader/efi/chainloader.c: Likewise.
42893 * loader/efi/chainloader_normal.c: Likewise.
42895 2006-04-30 Marco Gerards <marco@gnu.org>
42897 * commands/configfile.c (grub_cmd_source): New function.
42898 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42899 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42901 2006-04-30 Marco Gerards <marco@gnu.org>
42903 * normal/execute.c (grub_script_execute_cmd): Change the return
42904 type to `grub_err_t'. Correctly return the error.
42905 (grub_script_execute_cmdline): In case a command line is not a
42906 command or a function, try to interpret it as an assignment.
42908 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42910 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42911 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42912 skip a node whose name is obviously invalid as UTF-16,
42913 i.e. contains a NUL character. Stop the iteration when the last
42914 directory entry is found. Instead of using the return value of
42915 grub_hfsplus_btree_iterate_node, store the value in RET and use
42916 it, because the iterator can be stopped by the last directory
42919 2006-04-30 Marco Gerards <marco@gnu.org>
42921 * include/grub/env.h (grub_env_export): New prototype. Reported
42922 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42924 2006-04-30 Marco Gerards <marco@gnu.org>
42926 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42927 size of the extents in a catalog file record.
42929 2006-04-29 Marco Gerards <marco@gnu.org>
42931 * commands/configfile.c (grub_cmd_configfile): Execute the
42932 configfile within its own context.
42934 * include/grub/env.h (grub_env_context_open): New prototype.
42935 (grub_env_context_close): Likewise.
42937 * kern/env.c (grub_env): Removed.
42938 (grub_env_sorted): Likewise.
42939 (grub_env_context): New variable.
42940 (grub_env_var_context): Likewise.
42941 (grub_env_find): Search both the active context and the global
42943 (grub_env_context_open): New function.
42944 (grub_env_context_close): Likewise.
42945 (grub_env_insert): Likewise.
42946 (grub_env_remove): Likewise.
42947 (grub_env_export): Likewise.
42948 (grub_env_set): Changed to use helper functions to avoid code
42950 (grub_env_iterate): Rewritten so both the current context and the
42951 global context are being used.
42953 * normal/command.c (export_command): New function.
42954 (grub_command_init): Register the `export' function.
42956 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
42958 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
42959 explicitly to suppress gcc's warnings.
42960 * fs/fat.c (grub_fat_find_dir): Likewise.
42961 (grub_fat_label): Likewise.
42962 * fs/xfs.c (grub_xfs_read_inode): Likewise.
42963 (grub_xfs_mount): Likewise.
42964 (grub_xfs_label): Likewise.
42965 * fs/affs.c (grub_affs_mount): Likewise.
42966 (grub_affs_label): Likewise.
42967 (grub_affs_iterate_dir): Likewise.
42968 * fs/sfs.c (grub_sfs_mount): Likewise.
42969 (grub_sfs_iterate_dir): Likewise.
42970 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
42971 * fs/hfs.c (grub_hfs_mount): Likewise.
42972 (grub_hfs_cmp_catkeys): Likewise.
42973 (grub_hfs_find_dir): Likewise.
42974 (grub_hfs_dir): Likewise.
42975 (grub_hfs_label): Likewise.
42976 * fs/jfs.c (grub_jfs_mount): Likewise.
42977 (grub_jfs_opendir): Likewise.
42978 (grub_jfs_getent): Likewise.
42979 (grub_jfs_lookup_symlink): Likewise.
42980 (grub_jfs_label): Likewise.
42981 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
42982 (grub_hfsplus_iterate_dir): Likewise.
42983 (grub_hfsplus_btree_iterate_node): Made static.
42985 * util/grub-emu.c (prefix): New variable.
42986 (grub_machine_set_prefix): New function.
42987 (main): Do not set the environment variable "prefix" here. Only
42988 set PREFIX, which is used later by grub_machine_set_prefix.
42990 * include/grub/video.h: Do not include grub/symbol.h.
42991 (grub_video_register): Not exported. This symbol is not defined in
42993 (grub_video_unregister): Likewise.
42994 (grub_video_iterate): Likewise.
42995 (grub_video_setup): Likewise.
42996 (grub_video_restore): Likewise.
42997 (grub_video_get_info): Likewise.
42998 (grub_video_get_blit_format): Likewise.
42999 (grub_video_set_palette): Likewise.
43000 (grub_video_get_palette): Likewise.
43001 (grub_video_set_viewport): Likewise.
43002 (grub_video_get_viewport): Likewise.
43003 (grub_video_map_color): Likewise.
43004 (grub_video_map_rgb): Likewise.
43005 (grub_video_map_rgba): Likewise.
43006 (grub_video_fill_rect): Likewise.
43007 (grub_video_blit_glyph): Likewise.
43008 (grub_video_blit_bitmap): Likewise.
43009 (grub_video_blit_render_target): Likewise.
43010 (grub_video_scroll): Likewise.
43011 (grub_video_swap_buffers): Likewise.
43012 (grub_video_create_render_target): Likewise.
43013 (grub_video_delete_render_target): Likewise.
43014 (grub_video_set_active_render_target): Likewise.
43016 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43018 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43020 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43021 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43022 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43023 instead of $(srcdir)/genkernsyms.sh.
43025 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43026 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43027 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43028 instead of $(srcdir)/genkernsyms.sh.
43030 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43031 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43032 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43033 instead of $(srcdir)/genkernsyms.sh.
43035 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43036 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43037 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43038 instead of $(srcdir)/genkernsyms.sh.
43040 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43043 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43045 (gensymlist.sh): New target.
43046 (genkernsyms.sh): Likewise.
43048 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43049 genkernsyms.sh.in and gensymlist.sh.in.
43051 * genkernsyms.sh: Removed.
43052 * gensymlist.sh: Likewise.
43054 * genkernsyms.sh.in: New file.
43055 * gensymlist.sh.in: Likewise.
43057 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43059 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43060 clobber "prefix", since we may have already set it manually.
43062 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43064 * kern/misc.c (abort): New alias for grub_abort.
43066 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43068 A new machine-specific function "grub_machine_set_prefix" is
43069 defined. This is called after loading modules, so that a prefix
43070 initialization can use modules. Also, this change adds an
43071 intensive debugging feature for the memory manager via the
43072 configure option "--enable-mm-debug".
43074 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43077 * kern/sparc64/ieee1275/init.c (abort): Removed.
43078 (grub_stop): Likewise.
43079 (grub_exit): New function.
43080 (grub_set_prefix): Renamed to ...
43081 (grub_machine_set_prefix): ... this.
43082 (grub_machine_init): Do not call grub_set_prefix.
43084 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43085 (grub_machine_set_prefix): ... this.
43086 (grub_machine_init): Do not call grub_set_prefix.
43088 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43089 (grub_machine_init): Do not set the prefix here.
43091 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43093 * kern/efi/init.c: Include grub/mm.h.
43094 (grub_efi_set_prefix): New function.
43096 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43097 (grub_efi_get_filename): New function.
43098 (grub_print_device_path): Renamed to ...
43099 (grub_efi_print_device_path): ... this.
43101 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43102 [MM_DEBUG] (grub_realloc): Likewise.
43103 [MM_DEBUG] (grub_free): Likewise.
43104 [MM_DEBUG] (grub_memalign): Likewise.
43105 [MM_DEBUG] (grub_mm_debug): New variable.
43106 [MM_DEBUG] (grub_debug_malloc): New function.
43107 [MM_DEBUG] (grub_debug_free): New function.
43108 [MM_DEBUG] (grub_debug_realloc): New function.
43109 [MM_DEBUG] (grub_debug_memalign): New function.
43111 * kern/misc.c (grub_abort): Print a newline to distinguish
43114 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43115 grub_set_root_dev after loading modules. This is necessary when
43116 setting a prefix depends on modules.
43118 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43119 (grub_efi_print_device_path): ... this.
43120 (grub_efi_get_filename): New prototype.
43121 (grub_efi_set_prefix): Likewise.
43123 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43125 (grub_efidisk_get_device_handle): New prototype.
43126 (grub_efidisk_get_device_name): Likewise.
43128 * include/grub/mm.h: Include config.h.
43129 (MM_DEBUG): Removed.
43130 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43131 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43132 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43133 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43134 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43135 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43136 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43137 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43138 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43140 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43142 * disk/efi/efidisk.c: Include grub/partition.h.
43143 (iterate_child_devices): New function.
43144 (add_device): First, compare only last device path nodes, so that
43145 devices are sorted by the types.
43146 (grub_efidisk_get_device_handle): New function.
43147 (grub_efidisk_get_device_name): Likewise.
43149 * configure.ac (--enable-mm-debug): New option to enable the
43150 memory manager debugging feature. This makes the binary much
43151 bigger, so is disabled by default.
43153 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43155 Use grub_abort instead of grub_stop, and grub_exit must be
43156 define in each architecture now. Also, this change adds support
43159 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43160 (grub_getkey): New function.
43161 (grub_term_get_current): Likewise.
43163 * util/i386/pc/grub-setup.c: Include grub/term.h.
43164 (grub_getkey): New function.
43165 (grub_term_get_current): Likewise.
43167 * util/misc.c (grub_stop): Renamed to ...
43168 (grub_exit): ... this.
43170 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43171 (grub_exit): ... this.
43172 (grub_machine_init): Use grub_abort instead of abort.
43173 (grub_stop): Removed.
43175 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43178 * kern/i386/pc/startup.S (grub_exit): New function.
43179 (cold_reboot): New label.
43181 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43182 (grub_efi_init): Call grub_efidisk_init.
43183 (grub_efi_fini): Call grub_efidisk_fini.
43185 * kern/efi/efi.c: Include grub/mm.h.
43186 (grub_efi_console_control_guid): Renamed to ...
43187 (console_control_guid): ... this.
43188 (grub_efi_loaded_image_guid): Renamed to ...
43189 (loaded_image_guid): ... this.
43190 (grub_efi_locate_handle): New function.
43191 (grub_efi_open_protocol): Likewise.
43192 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43193 GRUB_EFI_CONSOLE_CONTROL_GUID.
43194 (grub_efi_exit): Removed.
43195 (grub_stop): Likewise.
43196 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43197 (grub_exit): New function.
43198 (grub_print_device_path): Likewise.
43200 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43201 (grub_enter_rescue_mode): Register "exit".
43203 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43204 (grub_abort): New function.
43206 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43208 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43210 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43212 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43213 (grub_print_device_path): New prototype.
43214 (grub_efi_locate_handle): Likewise.
43215 (grub_efi_open_protocol): Likewise.
43217 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43218 * disk/efi/efidisk.c: Likewise.
43220 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43222 * include/grub/efi/console_control.h
43223 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43225 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43226 last 8 bytes as an array.
43227 (GRUB_EFI_DISK_IO_GUID): New macro.
43228 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43229 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43230 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43232 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43233 (struct grub_efi_device_path): Rename the member "sub_type" to
43235 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43236 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43237 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43238 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43239 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43240 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43241 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43242 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43243 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43244 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43245 (struct grub_efi_pci_device_path): New structure.
43246 (grub_efi_pci_device_path_t): New type.
43247 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43248 (struct grub_efi_pccard_device_path): New structure.
43249 (grub_efi_pccard_device_path_t): New type.
43250 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43251 (struct grub_efi_memory_mapped_device_path): New structure.
43252 (grub_efi_memory_mapped_device_path_t): New type.
43253 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43254 (struct grub_efi_vendor_device_path): New structure.
43255 (grub_efi_vendor_device_path_t): New type.
43256 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43257 (struct grub_efi_controller_device_path): New structure.
43258 (grub_efi_controller_device_path_t): New type.
43259 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43260 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43261 (struct grub_efi_acpi_device_path): New structure.
43262 (grub_efi_acpi_device_path_t): New type.
43263 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43264 (struct grub_efi_expanded_acpi_device_path): New structure.
43265 (grub_efi_expanded_acpi_device_path_t): New type.
43266 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43267 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43268 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43269 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43270 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43271 (struct grub_efi_atapi_device_path): New structure.
43272 (grub_efi_atapi_device_path_t): New type.
43273 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43274 (struct grub_efi_fibre_channel_device_path): New structure.
43275 (grub_efi_fibre_channel_device_path_t): New type.
43276 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43277 (struct grub_efi_1394_device_path): New structure.
43278 (grub_efi_1394_device_path_t): New type.
43279 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43280 (struct grub_efi_usb_device_path): New structure.
43281 (grub_efi_usb_device_path_t): New type.
43282 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43283 (struct grub_efi_usb_class_device_path): New structure.
43284 (grub_efi_usb_class_device_path_t): New type.
43285 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43286 (struct grub_efi_i2o_device_path): New structure.
43287 (grub_efi_i2o_device_path_t): New type.
43288 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43289 (struct grub_efi_mac_address_device_path): New structure.
43290 (grub_efi_mac_address_device_path_t): New type.
43291 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43292 (struct grub_efi_ipv4_device_path): New structure.
43293 (grub_efi_ipv4_device_path_t): New type.
43294 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43295 (struct grub_efi_ipv6_device_path): New structure.
43296 (grub_efi_ipv6_device_path_t): New type.
43297 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43298 (struct grub_efi_infiniband_device_path): New structure.
43299 (grub_efi_infiniband_device_path_t): New type.
43300 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43301 (struct grub_efi_uart_device_path): New structure.
43302 (grub_efi_uart_device_path_t): New type.
43303 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43304 (struct grub_efi_vendor_messaging_device_path): New structure.
43305 (grub_efi_vendor_messaging_device_path_t): New type.
43306 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43307 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43308 (struct grub_efi_hard_drive_device_path): New structure.
43309 (grub_efi_hard_drive_device_path_t): New type.
43310 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43311 (struct grub_efi_cdrom_device_path): New structure.
43312 (grub_efi_cdrom_device_path_t): New type.
43313 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43314 (struct grub_efi_vendor_media_device_path): New structure.
43315 (grub_efi_vendor_media_device_path_t): New type.
43316 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43317 (struct grub_efi_file_path_device_path): New structure.
43318 (grub_efi_file_path_device_path_t): New type.
43319 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43320 (struct grub_efi_protocol_device_path): New structure.
43321 (grub_efi_protocol_device_path_t): New type.
43322 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43323 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43324 (struct grub_efi_bios_device_path): New structure.
43325 (grub_efi_bios_device_path_t): New type.
43326 (struct grub_efi_disk_io): New structure.
43327 (grub_efi_disk_io_t): New type.
43328 (struct grub_efi_block_io_media): New structure.
43329 (grub_efi_block_io_media_t): New type.
43330 (struct grub_efi_block_io): New structure.
43331 (grub_efi_block_io_t): New type.
43333 * include/grub/misc.h (grub_stop): Removed.
43334 (grub_exit): New prototype.
43335 (grub_abort): Likewise.
43337 * include/grub/disk.h (enum grub_disk_dev_id): Added
43338 GRUB_DISK_DEVICE_EFIDISK_ID.
43340 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43341 disk/efi/efidisk.c.
43342 (kernel_syms.lst): Remove the target if an error occurs.
43344 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43346 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43347 as it was simply too buggy.
43349 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43351 * kern/misc.c (grub_lltoa): New function.
43352 (grub_vsprintf): Added support for the long long suffix,
43355 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43357 * Makefile.in (LDFLAGS): Add variable.
43358 (LD): Remove variable.
43359 * configure.ac: Add -m32 to LDFLAGS.
43360 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43361 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43362 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43363 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43364 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43366 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43367 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43368 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43370 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43372 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43373 length for unknown glyph.
43375 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43377 Add support for pre-loaded modules into the EFI port.
43379 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43380 completely. Accept one more argument DIR. The caller has changed.
43382 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43384 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43385 (grub_efi_loaded_image_guid): New variable.
43386 (grub_efi_get_loaded_image): New function.
43387 (grub_arch_modules_addr): Likewise.
43389 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43392 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43393 (struct grub_efi_loaded_image): New structure.
43394 (grub_efi_loaded_image_t): New type.
43396 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43398 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43399 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43400 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43402 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43404 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43406 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43408 * DISTLIST: Added include/grub/efi/console.h,
43409 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43410 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43412 * include/grub/efi/console.h: New file.
43413 * include/grub/efi/time.h: Likewise.
43414 * include/grub/i386/efi/kernel.h: Likewise.
43415 * kern/efi/init.c: Likewise.
43416 * kern/efi/mm.c: Likewise.
43417 * term/efi/console.c: Likewise.
43419 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43420 (grub_stop): Removed.
43421 (grub_get_rtc): Likewise.
43422 (grub_machine_init): Simply call grub_efi_init.
43423 (grub_machine_fini): Call grub_efi_fini.
43425 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43426 (grub_efi_output_string): Removed.
43427 (grub_efi_stall): New function.
43428 (grub_stop): Likewise.
43429 (grub_get_rtc): Likewise.
43431 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43432 (grub_efi_stall): New prototype.
43433 (grub_efi_allocate_pages): Likewise.
43434 (grub_efi_free_pages): Likewise.
43435 (grub_efi_get_memory_map): Likewise.
43436 (grub_efi_mm_init): Likewise.
43437 (grub_efi_mm_fini): Likewise.
43438 (grub_efi_init): Likewise.
43439 (grub_efi_fini): Likewise.
43441 * include/grub/i386/efi/time.h: Do not include
43442 grub/symbol.h. Include grub/efi/time.h.
43443 (GRUB_TICKS_PER_SECOND): Removed.
43444 (grub_get_rtc): Likewise.
43446 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43447 Added padding. The EFI spec is buggy.
43448 (GRUB_EFI_BLACK): New macro.
43449 (GRUB_EFI_BLUE): Likewise.
43450 (GRUB_EFI_GREEN): Likewise.
43451 (GRUB_EFI_CYAN): Likewise.
43452 (GRUB_EFI_RED): Likewise.
43453 (GRUB_EFI_MAGENTA): Likewise.
43454 (GRUB_EFI_BROWN): Likewise.
43455 (GRUB_EFI_LIGHTGRAY): Likewise.
43456 (GRUB_EFI_BRIGHT): Likewise.
43457 (GRUB_EFI_DARKGRAY): Likewise.
43458 (GRUB_EFI_LIGHTBLUE): Likewise.
43459 (GRUB_EFI_LIGHTGREEN): Likewise.
43460 (GRUB_EFI_LIGHTCYAN): Likewise.
43461 (GRUB_EFI_LIGHTRED): Likewise.
43462 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43463 (GRUB_EFI_YELLOW): Likewise.
43464 (GRUB_EFI_WHITE): Likewise.
43465 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43466 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43467 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43468 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43469 (GRUB_EFI_BACKGROUND_RED): Likewise.
43470 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43471 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43472 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43473 (GRUB_EFI_TEXT_ATTR): Likewise.
43475 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43476 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43477 (kernel_mod_HEADERS): Added efi/time.h.
43479 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43481 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43482 include/grub/efi/api.h, include/grub/efi/console_control.h,
43483 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43484 include/grub/i386/efi/time.h, kern/efi/efi.c,
43485 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43486 and util/i386/efi/grub-mkimage.c.
43488 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43490 * genmk.rb (PModule#rule): Do not export symbols if
43491 #{prefix}_EXPORTS is set to "no".
43493 * conf/i386-efi.mk: New file.
43494 * conf/i386-efi.rmk: Likewise.
43495 * include/grub/efi/api.h: Likewise.
43496 * include/grub/efi/console_control.h: Likewise.
43497 * include/grub/efi/efi.h: Likewise.
43498 * include/grub/efi/pe32.h: Likewise.
43499 * include/grub/i386/efi/time.h: Likewise.
43500 * kern/efi/efi.c: Likewise.
43501 * kern/i386/efi/init.c: Likewise.
43502 * kern/i386/efi/startup.S: Likewise.
43503 * util/i386/efi/grub-mkimage.c: Likewise.
43505 2006-04-17 Marco Gerards <marco@gnu.org>
43507 * include/grub/script.h: Include <grub/parser.h> and
43508 "grub_script.tab.h".
43509 (struct grub_lexer_param): New struct.
43510 (struct grub_parser_param): Likewise.
43511 (grub_script_create_arglist): Pass the state in an argument.
43512 (grub_script_add_arglist): Likewise.
43513 (grub_script_create_cmdline): Likewise.
43514 (grub_script_create_cmdblock): Likewise.
43515 (grub_script_create_cmdif): Likewise.
43516 (grub_script_create_cmdmenu): Likewise.
43517 (grub_script_add_cmd): Likewise.
43518 (grub_script_arg_add): Likewise.
43519 (grub_script_lexer_ref): Likewise.
43520 (grub_script_lexer_deref): Likewise.
43521 (grub_script_lexer_record_start): Likewise.
43522 (grub_script_lexer_record_stop): Likewise.
43523 (grub_script_mem_record): Likewise.
43524 (grub_script_mem_record_stop): Likewise.
43525 (grub_script_malloc): Likewise.
43526 (grub_script_yylex): Likewise.
43527 (grub_script_yyparse): Likewise.
43528 (grub_script_yyerror): Likewise.
43529 (grub_script_yylex): Likewise.
43530 (grub_script_lexer_init): Return the state.
43532 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43533 (grub_script_lexer_done): Likewise.
43534 (grub_script_lexer_getline): Likewise.
43535 (grub_script_lexer_refs): Likewise.
43536 (script): Likewise.
43537 (newscript): Likewise.
43538 (record): Likewise.
43539 (recording): Likewise.
43540 (recordpos): Likewise.
43541 (recordlen): Likewise.
43542 (grub_script_lexer_init): Return the state instead of setting
43544 (grub_script_lexer_ref): Use the newly added argument for state
43545 instead of globals.
43546 (grub_script_lexer_deref): Likewise.
43547 (grub_script_lexer_record_start): Likewise.
43548 (grub_script_lexer_record_stop): Likewise.
43549 (recordchar): Likewise.
43550 (nextchar): Likewise.
43551 (grub_script_yylex2): Likewise.
43552 (grub_script_yylex): Likewise.
43553 (grub_script_yyerror): Likewise.
43555 * normal/parser.y (func_mem): Removed variable.
43556 (menu_entry): Likewise.
43558 (%lex-param): New parser option.
43559 (%parse-param): Likewise.
43560 (script): Always return the AST.
43561 (argument): Pass the state around.
43562 (arguments): Likewise.
43563 (grubcmd): Likewise.
43564 (commands): Likewise.
43565 (function): Likewise.
43566 (menuentry): Likewise.
43567 (if_statement): Likewise.
43570 * normal/script.c (grub_script_memused): Removed variable.
43571 (grub_script_parsed): Likewise.
43572 (grub_script_malloc): Added a state argument. Use that instead of
43574 (grub_script_mem_record): Likewise.
43575 (grub_script_mem_record_stop): Likewise.
43576 (grub_script_arg_add): Likewise.
43577 (grub_script_add_arglist): Likewise.
43578 (grub_script_create_cmdline): Likewise.
43579 (grub_script_create_cmdif): Likewise.
43580 (grub_script_create_cmdmenu): Likewise.
43581 (grub_script_add_cmd): Likewise.
43582 (grub_script_parse): Setup the state before calling the parser.
43584 2006-04-16 Marco Gerards <marco@gnu.org>
43586 * normal/command.c (grub_command_init): Remove the title command.
43588 * normal/lexer.c (grub_script_yylex): Renamed from this...
43589 (grub_script_yylex2): ... to this.
43590 (grub_script_yylex): New function. Temporary
43591 introduced to filter some tokens.
43592 (grub_script_yyerror): Print a newline.
43594 * normal/main.c (read_config_file): Output information about the
43595 lines that contain errors. Wait for a key after all lines have
43596 been processed. Don't return an empty menu.
43598 * normal/parser.y (func_mem): Don't initialize.
43599 (menu_entry): Likewise.
43600 (err): New variable.
43601 (script): Don't return anything when an error was encountered.
43602 (ws, returns): Removed rules.
43603 (argument): Disabled concatenated variable support.
43604 (arguments): Remove explicit separators.
43605 (grubcmd): Likewise.
43606 (function): Likewise.
43607 (menuentry): Likewise.
43609 (commands): Likewise. Add error handling.
43611 * normal/script.c (grub_script_create_cmdline): If
43612 `grub_script_parsed' is 0, assume the parser encountered an error.
43614 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43616 * configure.ac: Add support for EFI. Fix the typo
43617 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43619 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43621 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43622 foreign multibyte characters should be shown correctly.
43624 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43626 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43628 (read_config_file): Made it to close file before returning.
43630 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43632 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43633 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43634 video/i386/pc/vbefill.c.
43636 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43637 video/i386/pc/vbefill.c.
43639 * include/grub/video.h (grub_video_blit_format): New enum.
43640 (grub_video_mode_info): Added new member blit_format.
43641 (grub_video_get_blit_format): New function prototype.
43643 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43644 function prototype.
43645 (grub_video_vbe_map_rgb): Likewise.
43646 (grub_video_vbe_unmap_color): Likewise.
43648 * include/grub/i386/pc/vbeblit.h: New file.
43650 * include/grub/i386/pc/vbefill.h: New file.
43652 * video/video.c (grub_video_get_blit_format): New function.
43653 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43654 (grub_video_vbe_map_rgb): Likewise.
43655 (grub_video_vbe_unmap_color): Likewise.
43657 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43659 (grub_video_vbe_blit_render_target): Changed to use more optimized
43661 (grub_video_vbe_setup): Added detection for optimized settings.
43662 (grub_video_vbe_create_render_target): Likewise.
43664 * video/i386/pc/vbeblit.c: New file.
43666 * video/i386/pc/vbefill.c: New file.
43668 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43670 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43673 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43674 parsing to support both hex and dec ranges. If filename was missing
43675 show usage information.
43677 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43679 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43680 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43682 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43683 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43684 (video_mod_SOURCES): Added.
43685 (video_mod_CFLAGS): Likewise.
43686 (video_mod_LDFLAGS): Likewise.
43687 (gfxterm_mod_SOURCES): Likewise.
43688 (gfxterm_mod_CFLAGS): Likewise.
43689 (gfxterm_mod_LDFLAGS): Likewise.
43690 (videotest_mod_SOURCES): Likewise.
43691 (videotest_mod_CFLAGS): Likewise.
43692 (videotest_mod_LDFLAGS): Likewise.
43693 (vesafb_mod_SOURCES): Removed.
43694 (vesafb_mod_CFLAGS): Likewise.
43695 (vesafb_mod_LDFLAGS): Likewise.
43696 (vga_mod_SOURCES): Likewise.
43697 (vga_mod_CFLAGS): Likewise.
43698 (vga_mod_LDFLAGS): Likewise.
43700 * commands/videotest.c: New file.
43702 * font/manager.c (fill_with_default_glyph): Modified to use
43704 (grub_font_get_glyph): Likewise.
43705 (fontmanager): Renamed from this...
43706 (font_manager): ... to this.
43708 * include/grub/font.h (grub_font_glyph): Added new structure.
43709 (grub_font_get_glyph): Modified to use grub_font_glyph.
43711 * include/grub/misc.h (grub_abs): Added as inline function.
43713 * include/grub/video.h: New file.
43715 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43716 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43717 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43718 (grub_vbe_get_controller_info): Renamed from this...
43719 (grub_vbe_bios_get_controller_info): ... to this.
43720 (grub_vbe_get_mode_info): Renamed from this...
43721 (grub_vbe_bios_get_mode_info): ... to this.
43722 (grub_vbe_set_mode): Renamed from this...
43723 (grub_vbe_bios_set_mode): ... to this.
43724 (grub_vbe_get_mode): Renamed from this...
43725 (grub_vbe_bios_get_mode): ... to this.
43726 (grub_vbe_set_memory_window): Renamed from this...
43727 (grub_vbe_bios_set_memory_window): ... to this.
43728 (grub_vbe_get_memory_window): Renamed from this...
43729 (grub_vbe_bios_get_memory_window): ... to this.
43730 (grub_vbe_set_scanline_length): Renamed from this...
43731 (grub_vbe_set_scanline_length): ... to this.
43732 (grub_vbe_get_scanline_length): Renamed from this...
43733 (grub_vbe_bios_get_scanline_length): ... to this.
43734 (grub_vbe_set_display_start): Renamed from this...
43735 (grub_vbe_bios_set_display_start): ... to this.
43736 (grub_vbe_get_display_start): Renamed from this...
43737 (grub_vbe_bios_get_display_start): ... to this.
43738 (grub_vbe_set_palette_data): Renamed from this...
43739 (grub_vbe_bios_set_palette_data): ... to this.
43740 (grub_vbe_set_pixel_rgb): Removed.
43741 (grub_vbe_set_pixel_index): Likewise.
43743 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43745 (grub_vbe_bios_get_controller_info): ... to this.
43746 (grub_vbe_get_mode_info): Renamed from this...
43747 (grub_vbe_bios_get_mode_info): ... to this.
43748 (grub_vbe_set_mode): Renamed from this...
43749 (grub_vbe_bios_set_mode): ... to this.
43750 (grub_vbe_get_mode): Renamed from this...
43751 (grub_vbe_bios_get_mode): ... to this.
43752 (grub_vbe_set_memory_window): Renamed from this...
43753 (grub_vbe_bios_set_memory_window): ... to this.
43754 (grub_vbe_get_memory_window): Renamed from this...
43755 (grub_vbe_bios_get_memory_window): ... to this.
43756 (grub_vbe_set_scanline_length): Renamed from this...
43757 (grub_vbe_set_scanline_length): ... to this.
43758 (grub_vbe_get_scanline_length): Renamed from this...
43759 (grub_vbe_bios_get_scanline_length): ... to this.
43760 (grub_vbe_set_display_start): Renamed from this...
43761 (grub_vbe_bios_set_display_start): ... to this.
43762 (grub_vbe_get_display_start): Renamed from this...
43763 (grub_vbe_bios_get_display_start): ... to this.
43764 (grub_vbe_set_palette_data): Renamed from this...
43765 (grub_vbe_bios_set_palette_data): ... to this.
43766 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43767 getting corrupted after calling it. Added more pushes and pops.
43768 (grub_vbe_bios_set_mode): Likewise.
43769 (grub_vbe_bios_get_mode): Likewise.
43770 (grub_vbe_bios_get_memory_window): Likewise.
43771 (grub_vbe_bios_set_scanline_length): Likewise.
43772 (grub_vbe_bios_get_scanline_length): Likewise.
43773 (grub_vbe_bios_get_display_start): Likewise.
43774 (grub_vbe_bios_set_palette_data): Likewise.
43776 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43777 (cl_insert): Likewise.
43778 (cl_delete): Likewise.
43780 * term/gfxterm.c: New file.
43782 * term/i386/pc/vesafb.c: Removed file.
43784 * video/video.c: New file.
43786 * video/i386/pc/vbe.c (real2pm): Added new function.
43787 (grub_video_vbe_draw_pixel): Likewise.
43788 (grub_video_vbe_get_video_ptr): Likewise.
43789 (grub_video_vbe_get_pixel): Likewise
43790 (grub_video_vbe_init): Likewise.
43791 (grub_video_vbe_fini): Likewise.
43792 (grub_video_vbe_setup): Likewise.
43793 (grub_video_vbe_get_info): Likewise.
43794 (grub_video_vbe_set_palette): Likewise.
43795 (grub_video_vbe_get_palette): Likewise.
43796 (grub_video_vbe_set_viewport): Likewise.
43797 (grub_video_vbe_get_viewport): Likewise.
43798 (grub_video_vbe_map_color): Likewise.
43799 (grub_video_vbe_map_rgb): Likewise.
43800 (grub_video_vbe_map_rgba): Likewise.
43801 (grub_video_vbe_unmap_color): Likewise.
43802 (grub_video_vbe_fill_rect): Likewise.
43803 (grub_video_vbe_blit_glyph): Likewise.
43804 (grub_video_vbe_blit_bitmap): Likewise.
43805 (grub_video_vbe_blit_render_target): Likewise.
43806 (grub_video_vbe_scroll): Likewise.
43807 (grub_video_vbe_swap_buffers): Likewise.
43808 (grub_video_vbe_create_render_target): Likewise.
43809 (grub_video_vbe_delete_render_target): Likewise.
43810 (grub_video_vbe_set_active_render_target): Likewise.
43811 (grub_vbe_set_pixel_rgb): Remove function.
43812 (grub_vbe_set_pixel_index): Likewise.
43813 (index_color_mode): Remove static variable.
43814 (active_mode): Likewise.
43815 (framebuffer): Likewise.
43816 (bytes_per_scan_line): Likewise.
43817 (grub_video_vbe_adapter): Added new static variable.
43818 (framebuffer): Likewise.
43819 (render_target): Likewise.
43820 (initial_mode): Likewise.
43821 (mode_in_use): Likewise.
43822 (mode_list): Likewise.
43824 2006-03-10 Marco Gerards <marco@gnu.org>
43826 * configure.ac (AC_INIT): Bumped to 1.93.
43828 * DISTLIST: Added `include/grub/hfs.h'.
43830 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43832 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43833 18H, which might help the BIOS falling back to next boot media.
43835 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43837 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43838 Poe Chen <poe.poechen@gmail.com>.
43840 2006-01-17 Marco Gerards <marco@gnu.org>
43842 * include/grub/normal.h: Include <grub/script.h>.
43843 (grub_command_list): Removed struct.
43844 (grub_command_list_t): Removed type.
43845 (grub_menu_entry): Remove members `num' and `command_list'. Add
43846 members `commands' and `sourcecode'.
43847 * include/grub/script.h: Add inclusion guards.
43848 (grub_script_cmd_menuentry): New struct.
43849 (grub_script_execute_menuentry): New prototype.
43850 (grub_script_lexer_record_start): Likewise.
43851 (grub_script_lexer_record_stop): Likewise.
43852 * normal/execute.c (grub_script_execute_menuentry): New function.
43853 * normal/lexer.c (record, recording, recordpos, recordlen): New
43855 (grub_script_lexer_record_start): New function.
43856 (grub_script_lexer_record_stop): Likewise.
43857 (recordchar): Likewise.
43858 (nextchar): Likewise.
43859 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43860 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43861 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43862 (current_menu): New variable.
43863 (free_menu): Mainly rewritten.
43864 (grub_normal_menu_addentry): New function.
43865 (read_config_file): Rewritten.
43866 * normal/menu.c (run_menu_entry): Mainly rewritten.
43867 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43869 (run): Mainly rewritten.
43870 * normal/parser.y (menu_entry): New variable.
43871 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43872 (menuentry): New rule.
43873 (command): Add `menuentry'.
43874 (if_statement): Allow additional returns before `fi'.
43875 * normal/script.c (grub_script_create_cmdmenu): New function.
43877 2006-01-03 Marco Gerards <marco@gnu.org>
43879 * INSTALL: GNU Bison is required.
43880 * configure.ac: Rewritten the test to detect Bison.
43881 * Makefile.in (YACC): New variable. Reported by Xun Sun
43882 <xun.sun.cn@gmail.com>.
43884 2006-01-03 Marco Gerards <marco@gnu.org>
43886 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43887 the HFS+ filesystem to filesystem blocks.
43888 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43889 GCC warning is silenced.
43891 2006-01-03 Marco Gerards <marco@gnu.org>
43893 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43894 read from disk from big endian to host byte order.
43896 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43898 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43900 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43901 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43902 embedded HFS+ filesystem.
43903 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43904 (grub_hfs_sblock): Move from here...
43905 * include/grub/hfs.h: To here... New file.
43906 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43908 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43910 (grub_hfsplus_volheader): Change type of member `magic' to
43912 (grub_hfsplus_data): Add new member `embedded_offset'.
43913 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43915 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43916 Calculate the offset.
43918 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43920 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43922 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43924 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43926 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43927 ENV->NAME is NULL after allocating ENV->VALUE.
43929 2005-12-25 Marco Gerards <marco@gnu.org>
43931 * kern/env.c (grub_env_set): Rewritten the error handling code.
43933 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43935 * geninit.sh: Made more robust, and more portable.
43937 2005-12-25 Marco Gerards <marco@gnu.org>
43939 Add support for Apple HFS+ filesystems.
43941 * fs/hfsplus.c: New file.
43943 * DISTLIST: Added `fs/hfsplus.c'.
43945 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
43946 (hfsplus_mod_SOURCES): New variable.
43947 (hfsplus_mod_CFLAGS): Likewise.
43948 (hfsplus_mod_LDFLAGS): Likewise.
43949 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
43950 (grub_setup_SOURCES): Likewise.
43951 (grub_mkdevicemap_SOURCES): Likewise.
43952 (grub_emu_SOURCES): Likewise.
43953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
43955 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
43957 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
43959 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43961 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
43962 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
43963 include/grub/parser.h, include/grub/script.h, kern/parser.c,
43964 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
43965 normal/lexer.c, normal/parser.y, normal/script.c, and
43967 Removed kern/sparc64/cache.c.
43969 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
43970 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
43973 * configure.ac (AC_INIT): Bumped to 1.92.
43975 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
43977 * kern/err.c (grub_error_push): Added new function to support error
43979 (grub_error_pop): Likewise.
43980 (grub_error_stack_items): New local variable to support error stacks.
43981 (grub_error_stack_pos): Likewise.
43982 (grub_error_stack_assert): Likewise.
43983 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
43985 (grub_print_error): Added support to print errors from error stack.
43987 * include/grub/err.h (grub_error_push): Added function prototype.
43988 (grub_error_pop): Likewise.
43990 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
43992 * configure.ac: Accept `powerpc64' as host_cpu.
43993 (amd64): Rename to `biarch32'.
43995 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
43996 non-cacheline-aligned addresses.
43998 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
43999 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44000 if `size' is non-zero.
44002 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
44004 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44005 and `cd' to make sure the filename is not prefixed with a
44007 (pkgdata_MODULES): Add `gpt.mod'.
44008 (gpt_mod_SOURCES): New variable.
44009 (gpt_mod_CFLAGS): Likewise.
44010 (gpt_mod_LDFLAGS): Likewise.
44012 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44014 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44017 * partmap/gpt.c: New file.
44019 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44020 GPT partition map is detected.
44022 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44024 * commands/i386/pc/play.c: New file.
44025 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44026 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44029 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
44031 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44032 ((unused))' to silence gcc warning.
44034 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44036 * configure.ac: Correct `AC_PROG_YACC' test.
44038 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44040 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44041 check before installing files.
44043 2005-11-22 Mike Small <smallm@panix.com>
44045 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44046 number regex so multidigit numbers are recognized correctly.
44048 2005-11-22 Mike Small <smallm@panix.com>
44050 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44051 debugging message before attempting to claim memory.
44052 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44053 multiple addresses in case of failure.
44055 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44057 * term/tparm.c (get_space): Remove empty `if' statement.
44059 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44061 * kern/parser.c (check_varstate): Rename `state' to 's'.
44063 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44065 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44066 variable definitions to the beginning of each function. Sort stack
44068 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44069 `buf' argument to `char *'.
44071 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44073 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44074 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44075 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44076 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44077 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44078 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44079 configfile.mod, search.mod, gzio.mod and test.mod.
44080 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44081 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44082 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44083 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44084 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44085 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44086 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44087 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44088 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44089 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44090 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44091 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44092 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44093 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44094 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44095 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44096 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44097 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44098 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44099 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44100 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44101 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44102 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44104 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44106 (pkgdata_MODULES): Add test.mod.
44108 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44110 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44111 appending to variables with "+=".
44112 (PModule): Use full pathname to generate *.lst filenames.
44114 * Makefile.in: Fixed list rules moved from genmk.rb.
44115 (.DELETE_ON_ERROR): New special target.
44116 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44118 * conf/i386-pc.rmk: Include conf/common.mk.
44119 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44120 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44121 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44122 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44123 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44124 configfile.mod, search.mod, gzio.mod and test.mod.
44125 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44126 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44127 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44128 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44129 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44130 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44131 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44132 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44133 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44134 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44135 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44136 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44137 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44138 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44139 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44140 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44141 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44142 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44143 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44144 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44145 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44146 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44147 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44149 * conf/common.rmk: ... to here. New file.
44151 * conf/common.mk: New file.
44153 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44155 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44156 (grub_script.tab.c): ... here.
44158 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44159 (grub_script.tab.c): ... here.
44161 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44162 (grub_script.tab.c): ... here.
44164 * normal/command.c (grub_command_find): Fixed a memory leak of
44165 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44167 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44169 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44170 "@" which marks the start of a comment on ARM.
44171 (VARIABLE): Likewise.
44173 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44175 Add support for Linux/ADFS partition tables.
44177 * partmap/acorn.c: New file.
44179 * include/grub/acorn_filecore.h: Likewise.
44181 * DISTLIST: Added `partmap/acorn.c' and
44182 `include/grub/acorn_filecore.h'.
44184 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44186 (pkgdata_MODULES): Add `acorn.mod'.
44187 (acorn_mod_SOURCES): New variable.
44188 (acorn_mod_CFLAGS): Likewise.
44190 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44192 (pkgdata_MODULES): Add `acorn.mod'.
44193 (acorn_mod_SOURCES): New variable.
44194 (acorn_mod_CFLAGS): Likewise.
44196 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44197 (pkgdata_MODULES): Add `acorn.mod'.
44198 (acorn_mod_SOURCES): New variable.
44199 (acorn_mod_CFLAGS): Likewise.
44200 (acorn_mod_LDFLAGS): Likewise.
44202 * include/types.h (grub_disk_addr_t): New typedef.
44204 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
44206 * geninit.sh: New file.
44208 * geninitheader.sh: Likewise.
44210 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44211 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44212 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44213 * commands/configfile.c (grub_configfile_init)
44214 (grub_configfile_fini): Likewise.
44215 * commands/default.c (grub_default_init, grub_default_fini):
44217 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44218 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44219 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44220 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44222 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44223 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44225 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
44226 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
44228 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44230 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
44232 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44233 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44234 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44235 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44236 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44237 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44238 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44239 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44240 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44241 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44242 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44243 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44244 * partmap/amiga.c (grub_amiga_partition_map_init)
44245 (grub_amiga_partition_map_fini): Likewise.
44246 * partmap/apple.c (grub_apple_partition_map_init)
44247 (grub_apple_partition_map_fini): Likewise.
44248 * partmap/pc.c (grub_pc_partition_map_init)
44249 (grub_pc_partition_map_fini): Likewise.
44250 * partmap/sun.c (grub_sun_partition_map_init,
44251 grub_sun_partition_map_fini): Likewise.
44252 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44255 * util/grub-emu.c: Include <grub_modules_init.h>.
44256 (main): Don't initialize and de-initialize any modules directly,
44257 use `grub_init_all' and `grub_fini_all' instead.
44259 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44260 `grub_vesafb_mod_init'.
44261 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44263 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44264 `grub_vga_mod_init'. Updated all users.
44265 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44267 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44268 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44271 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44272 Generate a function to initialize the module in utilities.
44273 Updated all callers.
44274 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44275 initialize the module in utilities. Updated all callers.
44277 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44279 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44280 escape sequence and a literal ^L to clear the screen.
44282 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44283 when returning from Open Firmware.
44285 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44287 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44288 (grub_ofconsole_height): Likewise.
44289 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44290 manually insert a '\n'.
44291 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44292 `grub_ofconsole_height'. Return early if these are already set.
44294 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44296 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44297 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44298 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44299 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44300 and `normal/script.c'.
44301 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44302 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44303 (test_mod_SOURCES): New variable.
44304 (test_mod_CFLAGS): Likewise.
44305 (test_mod_LDFLAGS): Likewise.
44306 (pkgdata_MODULES): Add `test.mod'.
44307 (grub_script.tab.c): New rule.
44308 (grub_script.tab.h): Likewise.
44310 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44312 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44313 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44314 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44315 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44316 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44317 (test_mod_SOURCES): New variable.
44318 (test_mod_CFLAGS): Likewise.
44319 (pkgdata_MODULES): Add `test.mod'.
44320 (grub_script.tab.c): New rule.
44321 (grub_script.tab.h): Likewise.
44323 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44325 Add initial scripting support.
44327 * commands/test.c: New file.
44328 * include/grub/script.h: Likewise.
44329 * normal/execute.c: Likewise.
44330 * normal/function.c: Likewise.
44331 * normal/lexer.c: Likewise.
44332 * normal/parser.y: Likewise.
44333 * normal/script.c: Likewise.
44335 * configure.ac: Add `AC_PROG_YACC' test.
44337 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44338 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44339 `normal/function.c' and `normal/script.c'.
44340 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44341 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44342 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44344 (pkgdata_MODULES): Add `test.mod'.
44345 (grub_script.tab.c): New rule.
44346 (grub_script.tab.h): Likewise.
44348 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44350 * include/grub/normal.h (grub_test_init): New prototype.
44351 (grub_test_fini): Likewise.
44353 * normal/command.c: Include <grub/script.h>.
44354 (grub_command_execute): Rewritten.
44356 * util/grub-emu.c (main): Call `grub_test_init' and
44359 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44361 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44363 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44364 there are no pending characters.
44366 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44368 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44369 `grub_strndup' to drop device arguments. Replace unnecessary
44370 `grub_strndup' with `grub_strdup'.
44372 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44374 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44375 `debug' environment variable has been set.
44377 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44379 * Makefile.in (install-local): Use $(DATA).
44380 (uninstall): Likewise.
44381 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44382 (sbin_UTILITIES): ... to here.
44383 (sbin_SCRIPTS): New variable.
44384 (grub_install_SOURCES): New variable.
44385 * util/powerpc/ieee1275/grub-install.in: New file.
44386 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44388 (add_segments): Call `grub_util_get_path'.
44390 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44392 From Timothy Baldwin:
44393 * commands/ls.c (grub_ls_list_files): Close FILE with
44395 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44397 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44399 * include/grub/parser.h: New file.
44401 * kern/parser.c: Likewise.
44403 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44404 (grub_setup_SOURCES): Likewise.
44405 (grub_probefs_SOURCES): Likewise.
44406 (grub_emu_SOURCES): Likewise.
44407 (kernel_img_HEADERS): Add `parser.h'.
44409 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44410 (grub_emu_SOURCES): Add `kern/parser.c'.
44411 (grubof_SOURCES): Likewise.
44413 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44414 (grubof_SOURCES): Add `kern/parser.c'.
44416 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44418 * kern/misc.c (grub_split_cmdline): Removed function.
44420 * kern/rescue.c: Include <grub/parser.h>.
44421 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44422 of `grub_split_cmdline'.
44424 * normal/command.c: Include <grub/parser.h>.
44425 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44426 of `grub_split_cmdline'.
44428 * normal/completion.c: Include <grub/parser.h>.
44429 (cmdline_state): New variable.
44430 (iterate_dir): End the filename with a quote depending on the
44431 command line state.
44432 (get_state): new function.
44433 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44434 split the arguments and determine the current argument. When the
44435 argument string is not quoted, escape all spaces.
44437 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44439 * normal/sparc64/setjmp.S: New file.
44441 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44443 * include/grub/sparc64/libgcc.h: New file.
44444 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44445 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44446 normal/sparc64/setjmp.c.
44448 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44450 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44451 * kern/sparc64/cache.S: New file.
44452 * kern/sparc64/cache.c: Removed.
44453 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44454 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44456 (COMMON_LDFLAGS): Add -melf64_sparc.
44457 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44458 (grubof_SOURCES): Use cache.S instead of cache.c.
44459 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44460 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44461 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44463 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44464 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44465 (linux_mod_CFLAGS): Commented out.
44466 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44467 out because module isn't built.
44468 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44469 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44470 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44471 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44472 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44473 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44474 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44475 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44476 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44477 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44478 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44479 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44480 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44481 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44483 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44485 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44486 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44487 longer, because HFS should not be used on PC.
44489 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44491 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44492 consistently within the loop.
44494 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44496 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44497 directory can not be read.
44499 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44501 * configure.ac (AC_INIT): Increase the version number to 1.91.
44503 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44504 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44505 term/i386/pc/serial.c.
44507 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44509 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44510 file size must be permitted.
44512 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44513 between %ah and %al.
44515 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44517 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44519 Call the hook with a NUL-terminated filename.
44520 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44523 * kern/term.c (cursor_state): New variable.
44524 (grub_term_set_current): Reset the cursor state on a new
44526 (grub_setcursor): Rewritten to use CURSOR_STATE.
44527 (grub_getcursor): New function.
44529 * include/grub/term.h (grub_getcursor): New prototype.
44531 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44532 integers on ARM. Reported by Timothy Baldwin
44533 <T.E.Baldwin99@members.leeds.ac.uk>.
44535 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44537 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44539 (grub_sfs_dir): Likewise.
44541 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44543 Add support for the SFS filesystem.
44545 * fs/sfs.c: New file.
44547 * DISTLIST: Added `fs/sfs.c'.
44549 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44550 (grub_probefs_SOURCES): Likewise.
44551 (grub_emu_SOURCES): Likewise.
44552 (pkgdata_MODULES): Add `sfs.mod'.
44553 (sfs_mod_SOURCES): New variable.
44554 (sfs_mod_CFLAGS): Likewise.
44555 (sfs_mod_LDFLAGS): Likewise.
44557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44558 (pkgdata_MODULES): Add `sfs.mod'.
44559 (sfs_mod_SOURCES): New variable.
44560 (sfs_mod_CFLAGS): Likewise.
44562 * util/grub-emu.c (main): Call `grub_sfs_init' and
44565 * include/grub/fs.h (grub_sfs_init): New prototype.
44566 (grub_sfs_fini): Likewise.
44568 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44570 Add support for the AFFS filesystem.
44572 * fs/affs.c: New file.
44574 * DISTLIST: Added `fs/affs.c'.
44576 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44577 (grub_probefs_SOURCES): Likewise.
44578 (grub_emu_SOURCES): Likewise.
44579 (pkgdata_MODULES): Add `affs.mod'.
44580 (affs_mod_SOURCES): New variable.
44581 (affs_mod_CFLAGS): Likewise.
44582 (affs_mod_LDFLAGS): Likewise.
44584 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44585 (pkgdata_MODULES): Add `affs.mod'.
44586 (affs_mod_SOURCES): New variable.
44587 (affs_mod_CFLAGS): Likewise.
44589 * util/grub-emu.c (main): Call `grub_affs_init' and
44592 * include/grub/fs.h (grub_affs_init): New prototype.
44593 (grub_affs_fini): Likewise.
44595 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44597 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44599 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44601 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44604 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44607 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44608 (COMMON_LDFLAGS): New variable.
44609 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44610 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44611 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44612 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44613 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44614 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44615 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44616 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44617 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44618 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44619 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44620 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44621 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44622 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44623 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44625 (normal_mod_ASFLAGS): Add `-m32'.
44627 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44628 (grub_host_size_t, grub_host_ssize_t): New types.
44629 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44630 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44631 `GRUB_HOST_SIZEOF_VOID_P'.
44633 * include/grub/kernel.h (struct grub_module_header): Type of
44634 member offset changed to `grub_host_off_t'. Type of member size
44635 changed to `grub_host_size_t'.
44636 (struct grub_module_info): Type of member offset changed to
44637 `grub_host_off_t'. Type of member size changed to
44638 `grub_host_size_t'.
44640 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44642 Make GRUB's kernel compliant to Multiboot Specification.
44644 * kern/i386/pc/startup.S (multiboot_header): New label.
44645 (multiboot_entry): Likewise.
44646 (multiboot_trampoline): Likewise.
44648 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44649 Increased to 0x4A0.
44651 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44652 put parentheses after a question mark.
44653 [!GRUB_UTIL] (my_mod): New variable.
44655 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44657 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44659 Adds support for the XFS filesystem. Btrees are not supported
44662 * fs/xfs.c: New file.
44664 * DISTLIST: Added `fs/xfs.c'.
44666 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44667 (grub_probefs_SOURCES): Likewise.
44668 (grub_emu_SOURCES): Likewise.
44669 (pkgdata_MODULES): Add `xfs.mod'.
44670 (xfs_mod_SOURCES): New variable.
44671 (xfs_mod_CFLAGS): Likewise.
44673 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44674 (pkgdata_MODULES): Add `xfs.mod'.
44675 (xfs_mod_SOURCES): New variable.
44676 (xfs_mod_CFLAGS): Likewise.
44678 * util/grub-emu.c (main): Call `grub_xfs_init' and
44681 * include/grub/fs.h (grub_xfs_init): New prototype.
44682 (grub_xfs_fini): Likewise.
44685 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44687 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44688 color modes, allow greater than 16 colors to be configured as
44691 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44693 * normal/completion.c (complete_arguments): Add the qualifier
44694 const into OPTIONS.
44696 From Omniflux <omniflux+lists@omniflux.com>:
44697 * include/grub/terminfo.h: New file.
44698 * include/grub/tparm.h: Likewise.
44699 * include/grub/i386/pc/serial.h: Likewise.
44700 * term/terminfo.c: Likewise.
44701 * term/tparm.c: Likewise.
44702 * term/i386/pc/serial.c: Likewise.
44703 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44705 (terminfo_mod_SOURCES): New variable.
44706 (terminfo_mod_CFLAGS): Likewise.
44707 (serial_mod_SOURCES): Likewise.
44708 (serial_mod_CFLAGS): Likewise.
44710 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44712 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44713 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44714 and kern/powerpc/ieee1275/cmain.c, respectively.
44716 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44717 * kern/powerpc/ieee1275/crt0.S: ... here.
44719 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44720 * kern/powerpc/ieee1275/cmain.c: ... here.
44722 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44723 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44724 instead of boot/powerpc/ieee1275/crt0.S and
44725 boot/powerpc/ieee1275/cmain.c, respectively.
44727 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44728 sectors. It was not used anyway.
44730 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44732 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44733 `unused parameter' warning.
44735 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44737 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44739 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44742 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44744 * include/grub/normal.h (enum grub_completion_type): Added
44745 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44747 * normal/cmdline.c (print_completion): Handle
44748 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44749 * normal/menu_entry.c (store_completion): Likewise.
44751 * normal/completion.c (complete_arguments): New function.
44752 (grub_normal_do_completion): Call `complete_arguments' when the
44753 current words start with a dash.
44755 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44757 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44758 `gzio.mod' instead of `io.mod').
44760 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44762 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44763 (DISTDIRS): Added io and video.
44764 Rewrite the search routine to make an output consistently.
44766 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44767 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44768 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44769 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44770 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44771 util/powerpc/ieee1275/misc.c.
44773 * include/grub/gzio.h: New file.
44774 * io/gzio.c: Likewise.
44776 * kern/file.c (grub_file_close): Call grub_device_close only if
44777 FILE->DEVICE is not NULL.
44779 * include/grub/mm.h [!NULL] (NULL): New macro.
44781 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44783 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44784 (pkgdata_MODULES): Added gzio.mod.
44785 (gzio_mod_SOURCES): New variable.
44786 (gzio_mod_CFLAGS): Likewise.
44788 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44789 (pkgdata_MODULES): Added gzio.mod.
44790 (gzio_mod_SOURCES): New variable.
44791 (gzio_mod_CFLAGS): Likewise.
44793 * commands/cat.c: Include grub/gzio.h.
44794 (grub_cmd_cat): Use grub_gzfile_open instead of
44797 * commands/cmp.c: Include grub/gzio.h.
44798 (grub_cmd_cmp): Use grub_gzfile_open instead of
44801 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44802 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44804 (grub_rescue_cmd_module): Likewise.
44806 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44808 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44809 kern/sparc64/ieee1275/init.c because it contains _start.
44810 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44812 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44814 * configure.ac: Add support for sparc64 host with ieee1275
44816 * configure: Generated from configure.ac.
44817 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44819 (grub_ofdisk_read): Likewise.
44820 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44821 pointers as (void *) to remove a warning.
44822 (grub_ofdisk_close): Likewise.
44823 (grub_ofdisk_read): Likewise.
44824 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44825 returns, so make it return void to remove a warning.
44826 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44827 Corresponding prototype change.
44828 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44829 values, and cast the pointers as (void *) to remove a warning.
44830 (grub_mm_dump): Likewise.
44831 * conf/sparc64-ieee1275.mk: New file.
44832 * conf/sparc64-ieee1275.rmk: Likewise.
44833 * include/grub/sparc64/setjmp.h: Likewise.
44834 * include/grub/sparc64/types.h: Likewise.
44835 * include/grub/sparc64/ieee1275/console.h: Likewise.
44836 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44837 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44838 * include/grub/sparc64/ieee1275/time.h: Likewise.
44839 * kern/sparc64/cache.c: Likewise.
44840 * kern/sparc64/dl.c: Likewise.
44841 * kern/sparc64/ieee1275/init.c: Likewise.
44842 * kern/sparc64/ieee1275/openfw.c: Likewise.
44844 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44846 * util/console.c (grub_ncurses_putchar): If C is greater than
44847 0x7f, set C to a question mark.
44848 (grub_ncurses_getcharwidth): New function.
44849 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44852 * normal/menu.c (print_entry): Made aware of Unicode. First,
44853 convert TITLE to UCS-4, and predict the cursor position by
44856 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44858 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44860 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44862 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44863 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44866 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44867 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44868 grub_strcpy and grub_strlen. Take it into account that a space
44869 character is inserted as a delimiter.
44871 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44873 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44874 invalid magic in the error.
44876 * commands/search.c: New file.
44878 * util/grub-emu.c (main): Call grub_search_init and
44881 * kern/rescue.c (grub_rescue_print_disks): Removed.
44882 (grub_rescue_print_devices): New function.
44883 (grub_rescue_cmd_ls): Use grub_device_iterate with
44884 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44885 grub_rescue_print_disks.
44887 * kern/partition.c (grub_partition_iterate): Return the result of
44888 PARTMAP->ITERATE instead of GRUB_ERRNO.
44890 * kern/device.c: Include grub/partition.h.
44891 (grub_device_iterate): New function.
44893 * include/grub/partition.h (grub_partition_iterate): Return int
44894 instead of grub_err_t.
44896 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44898 [GRUB_UTIL] (grub_search_fini): Likewise.
44900 * include/grub/device.h (grub_device_iterate): New prototype.
44902 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44904 (pkgdata_MODULES): Added search.mod.
44905 (search_mod_SOURCES): New variable.
44906 (search_mod_CFLAGS): Likewise.
44908 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44909 (pkgdata_MODULES): Added search.mod.
44910 (search_mod_SOURCES): New variable.
44911 (search_mod_CFLAGS): Likewise.
44913 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44914 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44915 All callers changed.
44917 * DISTLIST: Added commands/search.c.
44919 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44921 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44923 (grub_getcharwidth): New function.
44925 * kern/misc.c (grub_utf8_to_ucs4): New function.
44927 * include/grub/term.h (struct grub_term): Added a new member
44929 (grub_getcharwidth): New prototype.
44931 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
44933 * term/i386/pc/console.c (map_char): New function. Segregated from
44934 grub_console_putchar.
44935 (grub_console_putchar): Use map_char.
44936 (grub_console_getcharwidth): New function.
44937 (grub_console_term): Specified grub_console_getcharwidth as
44940 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
44941 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
44943 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
44945 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
44946 on grub_strtoul completely.
44947 (write_char): Declare local variables in the beginning of the
44949 (grub_vesafb_getcharwidth): New function.
44950 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
44953 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
44955 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
44956 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
44957 commands/i386/pc/vbetest.c.
44959 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
44960 call grub_vbe_get_controller_info again, because the returned
44961 information is volatile.
44962 (grub_vbe_set_video_mode): Mostly rewritten.
44963 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
44964 grub_vbe_status_t correctly.
44965 (grub_vbe_get_video_mode_info): Likewise.
44966 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
44967 several if statements.
44969 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
44970 * commands/i386/pc/vbeinfo.c: ... this.
44972 * commands/i386/pc/vbe_test.c: Renamed to ...
44973 * commands/i386/pc/vbetest.c: ... this.
44975 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
44977 (grub_cmd_vbeinfo): ... this. Save video modes before
44978 iterating. Skip a video mode, if it is not available, not enough
44979 information is given or it is monochrome. Show the memory
44980 model. Leave the interpretation of MODEVAR to grub_strtoul
44982 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
44983 (GRUB_MOD_FINI): Likewise.
44985 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
44986 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
44987 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
44988 duplicated grub_env_get. Leave the interpretation of MODEVAR to
44989 grub_strtoul completely.
44990 (real2pm): Removed.
44991 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
44992 (GRUB_MOD_FINI): Likewise.
44994 * normal/misc.c: Include grub/mm.h.
44996 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
44997 vbe_list_modes with vbetest.mod and vbeinfo.mod.
44998 (vbe_list_modes_mod_SOURCES): Removed.
44999 (vbe_list_modes_mod_CFLAGS): Likewise.
45000 (vbe_test_mod_SOURCES): Likewise.
45001 (vbe_test_mod_CFLAGS): Likewise.
45002 (vbeinfo_mod_SOURCES): New variable.
45003 (vbeinfo_mod_CFLAGS): Likewise.
45004 (vbetest_mod_SOURCES): Likewise.
45005 (vbetest_mod_CFLAGS): Likewise.
45007 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45009 * normal/misc.c: New file.
45011 * DISTLIST: Added normal/misc.c.
45013 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45014 DISK to HOOK. Call HOOK with DISK.
45015 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45016 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45017 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45019 * normal/menu_entry.c (struct screen): Added a new member
45020 "completion_shown".
45021 (completion_buffer): New global variable.
45022 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45023 (store_completion): New function.
45024 (complete): Likewise.
45025 (clear_completions): Likewise.
45026 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45027 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45028 a tab, call complete.
45030 * normal/completion.c (disk_dev): Removed.
45031 (print_simple_completion): Likewise.
45032 (print_partition_completion): Likewise.
45033 (print_func): New global variable.
45034 (add_completion): Do not take the arguments WHAT or PRINT any
45035 longer. Added a new argument TYPE. Instead of printing directly,
45036 call PRINT_FUNC if not NULL.
45037 All callers changed.
45038 (complete_device): Use a local variable DEV instead of
45039 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45040 (grub_normal_do_completion): Take a new argument HOOK. Do not
45041 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45042 empty string, return NULL instead.
45043 All callers changed.
45045 * normal/cmdline.c (print_completion): New function.
45047 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45049 All callers changed.
45051 * kern/disk.c (grub_print_partinfo): Removed.
45053 * include/grub/partition.h (struct grub_partition_map): Add a new
45054 argument DISK into HOOK of ITERATE.
45055 (grub_partition_iterate): Add a new argument DISK to HOOK.
45057 * include/grub/normal.h (enum grub_completion_type): New enum.
45058 (grub_completion_type_t): New type.
45059 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45060 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45061 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45062 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45063 (grub_normal_do_completion): Added a new argument HOOK.
45064 (grub_normal_print_device_info): New prototype.
45066 * include/grub/disk.h (grub_print_partinfo): Removed.
45068 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45069 (normal_mod_SOURCES): Likewise.
45070 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45071 (normal_mod_SOURCES): Likewise.
45073 * commands/ls.c (grub_ls_list_disks): Use
45074 grub_normal_print_device_info instead of grub_print_partinfo. Free
45076 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45077 duplicating the code.
45079 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45081 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
45082 follow GCS more precisely.
45083 * commands/i386/pc/vbe_test.c: Likewise.
45084 * include/grub/i386/pc/vbe.h: Likewise.
45085 * term/i386/pc/vesafb.c: Likewise.
45086 * video/i386/pc/vbe.c: Likewise.
45088 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45090 * DISTLIST: Added term/i386/pc/vesafb.c
45091 DISTLIST: Added video/i386/pc/vbe.c
45092 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45093 DISTLIST: Added commands/i386/pc/vbe_test.c.
45094 * commands/i386/pc/vbe_list_modes.c: New file.
45095 * commands/i386/pc/vbe_test.c: Likewise.
45096 * term/i386/pc/vesafb.c: Likewise.
45097 * video/i386/pc/vbe.c: Likewise.
45098 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45099 (grub_vbe_probe) Added prototype.
45100 (grub_vbe_set_video_mode) Likewise.
45101 (grub_vbe_get_video_mode) Likewise.
45102 (grub_vbe_get_video_mode_info) Likewise.
45103 (grub_vbe_set_pixel_rgb) Likewise.
45104 (grub_vbe_set_pixel_index) Likewise.
45105 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45106 (pkgdata_MODULES): Added vesafb.mod.
45107 (pkgdata_MODULES): Added vbe_list_modes.mod.
45108 (pkgdata_MODULES): Added vbe_test.mod.
45109 (vbe_mod_SOURCES): Added.
45110 (vbe_mod_CFLAGS): Likewise.
45111 (vesafb_mod_SOURCES): Likewise.
45112 (vesafb_mod_CFLAGS): Likewise.
45113 (vbe_list_modes_mod_SOURCES): Likewise.
45114 (vbe_list_modes_mod_CFLAGS): Likewise.
45115 (vbe_test_mod_SOURCES): Likewise.
45116 (vbe_test_mod_CFLAGS): Likewise.
45118 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45120 * normal/command.c (grub_command_execute): If INTERACTIVE is
45121 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45122 CMDLINE. Disable the pager if INTERACTIVE is true.
45123 All callers are changed.
45125 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45126 before reading a config file.
45127 * normal/main.c (read_config_file): Even if a command is not
45128 found, register it if it is within an entry.
45130 * util/grub-emu.c: Include sys/types.h and unistd.h.
45131 (options): Added --hold.
45132 (struct arguments): Added a new member "hold".
45133 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45135 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45136 cleared by a debugger, if it is not zero.
45138 * include/grub/normal.h (grub_command_execute): Add an argument
45141 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45143 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45145 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45147 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45148 program with another one, because the old one didn't detect a bug
45149 in gcc-3.4. Always use regparm 2, because the new test is still
45150 not enough for gcc-4.0. Someone must investigate a simple test
45151 case which detects a bug in gcc-4.0.
45153 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45155 * DISTLIST: Added normal/completion.c.
45157 * normal/completion.c: New file.
45159 * term/i386/pc/console.c (grub_console_getwh): New function.
45160 (grub_console_term): Assign grub_console_getwh to getwh.
45162 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45163 function is defined in normal/completion.c as
45164 grub_normal_do_completion.
45165 (grub_cmdline_get): Use grub_normal_do_completion instead of
45168 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45169 returns non-zero, otherwise return 0.
45170 (grub_partition_iterate): First, probe the partition map. Then,
45171 call ITERATE only for this partition map.
45173 * kern/misc.c (grub_strncmp): Rewritten.
45175 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45176 returns non-zero. Otherwise return 0.
45178 * include/grub/partition.h (grub_partition_map_iterate): Return
45179 int instead of void.
45181 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45183 * include/grub/misc.h (grub_strncmp): Change the type of N to
45186 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45189 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
45190 unsigned explicitly before comparing it with I.
45192 * kern/main.c (grub_env_write_root): Add the attribute unused into
45195 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45196 normal/completion.c.
45197 (normal_mod_SOURCES): Likewise.
45198 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45199 (normal_mod_SOURCES): Likewise.
45201 * normal/command.c (grub_iterate_commands): If ITERATE returns
45202 non-zero, return one immediately.
45204 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45206 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45207 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45209 (grub_vbe_get_controller_info): New function.
45210 (grub_vbe_get_mode_info): Likewise.
45211 (grub_vbe_set_mode): Likewise.
45212 (grub_vbe_get_mode): Likewise.
45213 (grub_vbe_set_memory_window): Likewise.
45214 (grub_vbe_get_memory_window): Likewise.
45215 (grub_vbe_set_scanline_length): Likewise.
45216 (grub_vbe_get_scanline_length): Likewise.
45217 (grub_vbe_set_display_start): Likewise.
45218 (grub_vbe_get_display_start): Likewise.
45219 (grub_vbe_set_palette_data): Likewise.
45220 * include/grub/i386/pc/vbe.h: New file.
45222 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45224 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45225 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45226 * DISTLIST: Likewise.
45227 * kern/ieee1275/of.c: Moved to ...
45228 * kern/ieee1275/ieee1275.c: ... here.
45230 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45232 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45233 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45234 Pass 0 as `end' parameter to grub_strtoul().
45236 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45238 * include/grub/powerpc/ieee1275/console.h: Do not include
45239 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45241 (grub_console_cur_color): Remove i386-specific prototype.
45242 (grub_console_real_putchar): Likewise.
45243 (grub_console_checkkey): Likewise.
45244 (grub_console_getkey): Likewise.
45245 (grub_console_getxy): Likewise.
45246 (grub_console_gotoxy): Likewise.
45247 (grub_console_cls): Likewise.
45248 (grub_console_setcursor): Likewise.
45249 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45250 Include <grub/machine/console.h>.
45251 * term/ieee1275/ofconsole.c: Likewise.
45253 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45255 * Makefile.in (LIBLZO): New variable.
45257 * configure.ac: Check for LZO version 2.
45259 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45260 lzo/lzo1x.h instead of lzo1x.h.
45262 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45265 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45266 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45268 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45269 copying the data from PARTITION to P.
45271 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45273 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45274 negative, unload the module.
45276 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45277 map is "pc_partition_map" but not "pc".
45278 (usage): Fix the description. The options are --boot-image and
45279 --core-image but not --boot-file or --core-file.
45280 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45281 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45284 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45285 --core-file. Specify INSTALL_DEVICE as an argument.
45287 * util/console.c: Include config.h.
45288 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45289 [HAVE_NCURSES_H]: Include ncurses.h.
45290 [HAVE_CURSES_H]: Include curses.h.
45291 [!A_NORMAL] (A_NORMAL): Defined as zero.
45292 [!A_STANDOUT] (A_STANDOUT): Likewise.
45294 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45296 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45298 * configure.ac: Check for curses libraries and headers.
45300 * Makefile.in (LIBCURSES): New variable.
45302 * genmk.rb (Script::rule): Set the executable bits.
45304 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45305 name of the PC partition map is "pc_partition_map" but not "pc".
45307 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45309 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45310 (modules): Likewise.
45311 (usage): Added descriptions for --modules and --grub-probefs.
45312 Handle --modules and --grub-probefs. Save the arguments in MODULES
45313 and GRUB_PROBEFS, respectively.
45314 Auto-detect a filesystem module against GRUBDIR. If the result is
45315 empty and modules are not specified explicitly, abort the
45316 installation. Add the result to MODULES.
45318 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45319 disk/powerpc/ieee1275/ofdisk.c,
45320 include/grub/powerpc/ieee1275/init.h and
45321 term/powerpc/ieee1275/ofconsole.c.
45322 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45323 term/ieee1275/ofconsole.c.
45325 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45327 * COPYING: Upgraded to the latest version. Only the address of the
45328 FSF office has changed.
45330 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45332 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45333 kern/ieee1275.c with kern/ieee1275/of.c.
45335 * kern/ieee1275.c: Moved to ...
45336 * kern/ieee1275/of.c: ... here.
45338 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45340 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45343 * config.guess: Updated to the latest version from gnulib.
45344 * config.sub: Likewise.
45345 * install.sh: Likewise.
45346 * mkinstalldirs: Likewise.
45348 * include/grub/console.h: Removed. This file is arch-specific. Do
45349 not put this in include/grub.
45351 * include/grub/i386/pc/console.h: Resurrected.
45353 * util/console.c: Include grub/machine/console.h instead of
45355 * util/grub-emu.c: Likewise.
45357 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45359 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45362 From Vincent Pelletier <subdino2004@yahoo.fr>
45363 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45364 Redefined to use grub_getwh.
45365 (grub_term): New member named getwh.
45366 (grub_getwh): New prototype.
45367 * kern/term.c (grub_getwh): New function.
45368 * term/i386/pc/console.c (grub_console_getwh): New function.
45369 (grub_console_term): New member `getwh'.
45370 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45371 (grub_vga_term): New member `getwh'.
45372 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45374 (grub_ofconsole_getw): New function.
45375 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45376 (grub_ofconsole_term): New field named getwh and new initial
45379 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45381 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45382 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45383 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45384 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45385 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45386 of <grub/machine/ieee1275.h>.
45387 * commands/ieee1275/reboot.c: Likewise.
45388 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45389 * kern/ieee1275.c: ... to here. All users updated. Change all
45390 parameter structs to use new type `grub_ieee1275_cell_t'.
45391 * term/powerpc/ieee1275/ofconsole.c: Move ...
45392 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45393 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45394 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45395 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45397 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45398 Remove unused prototypes. All users updated.
45399 * include/grub/powerpc/ieee1275/console.h: Removed.
45400 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45401 `grub_ieee1275_cell_t'.
45402 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45403 Cast comparisons with -1 to the correct type.
45404 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45405 type to match `grub_ieee1275_entry_fn'.
45407 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45409 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45411 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45412 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45414 (grub_probefs_SOURCES): New variable.
45416 * util/i386/pc/grub-probefs.c: New file.
45418 * util/i386/pc/grub-setup.c (main): Call
45419 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45420 grub_hfs_init and grub_jfs_init to initialize the system. Call
45421 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45422 grub_pc_partition_map_fini to finish the system.
45424 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45426 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45428 (grub_multiboot_load_elf32): Likewise.
45429 (grub_multiboot_is_elf64): Likewise.
45430 (grub_multiboot_load_elf64): Likewise.
45431 (grub_multiboot_load_elf): Likewise.
45432 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45433 an ELF32 or ELF64 file.
45434 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45436 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45437 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45438 NULL before calling FS->LABEL.
45439 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45440 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45441 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45442 before calling FS->LABEL.
45444 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45446 * util/i386/pc/grub-install.in (datadir): New variable.
45448 (pkgdatadir): New variable.
45449 (pkglibdir): Removed.
45451 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45453 * DISTLIST: Added util/i386/pc/grub-install.in.
45455 * util/i386/pc/grub-install.in: New file.
45457 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45458 (grub_install_SOURCES): Likewise.
45460 * genmk.rb: Added support for scripts.
45461 (Script): New class.
45462 (scripts): New variable.
45464 * Makefile.in (install-local): Install sbin_SCRIPTS by
45466 (uninstall): Remove sbin_SCRIPTS.
45468 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45469 device, try to get a GRUB device by
45470 grub_util_biosdisk_get_grub_dev.
45473 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45474 description for --device-map.
45476 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45478 Change the semantics of variable hooks. They now return strings
45479 instead of error values.
45481 * util/i386/pc/grub-setup.c: Include grub/env.h.
45482 (setup): Use grub_device_set_root instead of grub_env_set.
45484 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45485 grub_env_get instead of grub_device_set_root and
45486 grub_device_get_root, respectively.
45488 * kern/main.c (grub_env_write_root): New function.
45489 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45490 grub_env_set instead of grub_device_set_root.
45492 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45494 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45495 rather than calling ENV->WRITE_HOOK afterwards.
45496 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45497 passing a pointer of a pointer.
45498 (grub_register_variable_hook): Change the types of "read_hook" and
45499 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45501 Allocate the default empty string on the heap, because this string
45502 may be freed later.
45504 * kern/device.c: Include grub/env.h.
45505 (grub_device_set_root): Removed.
45506 (grub_device_get_root): Likewise.
45507 (grub_device_open): Use grub_env_get instead of
45508 grub_device_get_root.
45510 * include/grub/env.h (grub_env_read_hook_t): New type.
45511 (grub_env_write_hook_t): Likewise.
45512 (grub_env_var): Change the types of "read_hook" and "write_hook"
45513 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45514 (grub_register_variable_hook): Likewise.
45516 * include/grub/device.h (grub_device_set_root): Removed.
45517 (grub_device_set_root): Likewise.
45519 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45520 make sure that DIRNAME terminates with '/', so that
45521 grub_fat_find_dir will fail if PATH is not a directory.
45523 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45525 Use the qualifier auto for print_files and print_files_long.
45526 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45528 Put a newline only if there is no error.
45529 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45532 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45534 * kern/partition.c (grub_partition_probe): Initialize PART to
45535 NULL. Otherwise, when no partition map is registered, this returns
45538 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45540 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45541 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45544 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45546 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45547 information on each device, if it does not have partitions. Print
45548 "Device" instead of "Disk", because this function is not specific
45551 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45552 static to ensure that it is put on the memory rather than a
45555 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45557 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45558 (grub_cat_init): Likewise.
45559 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45560 (options): Likewise.
45561 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45562 (grub_configfile_init): Likewise.
45563 * font/manager.c (GRUB_MOD_INIT): Likewise.
45564 * commands/help.c (GRUB_MOD_INIT): Likewise.
45565 (grub_help_init): Likewise.
45566 * normal/command.c (grub_command_init): Likewise.
45567 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45568 * disk/loopback.c (grub_loop_init): Likewise.
45569 (GRUB_MOD_INIT): Likewise.
45570 * commands/ls.c (grub_ls_init): Likewise.
45571 (GRUB_MOD_INIT): Likewise.
45572 (options): Likewise.
45573 * commands/boot.c (grub_boot_init): Likewise.
45574 (GRUB_MOD_INIT): Likewise.
45575 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45576 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45577 (GRUB_MOD_INIT): Likewise.
45578 * commands/cmp.c (grub_cmp_init): Likewise.
45579 (GRUB_MOD_INIT): Likewise.
45581 * normal/arg.c: Use <> instead of "" to include header files.
45582 (SHORT_ARG_HELP): New macro.
45583 (SHORT_ARG_USAGE): Likewise.
45584 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45585 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45587 (find_short): Check if C is 'h' or 'u' explicitly.
45588 (grub_arg_show_help): Use space characters instead of tabs. Treat
45589 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45590 are shown with --help and --usage only if they are not used for
45591 the command itself.
45592 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45595 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45596 const into "longarg". Change the type of "shortarg" to int.
45598 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45600 * boot/i386/pc/boot.S (boot_drive_check): New label.
45602 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45605 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45606 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45608 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45610 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45611 When turning off Gate A20, skip the check and return immediately,
45612 because this is not fatal usually.
45614 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45616 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45617 be 0x7C00 instead of 0x8000.
45619 * boot/i386/pc/pxeboot.S: Rewritten.
45621 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45623 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45626 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45628 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45629 robustness. This routine now supports a BIOS call and System
45630 Control Port A to modify the gate A20.
45632 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45633 Increased to 0x440.
45635 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45637 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45638 device path and resulting ihandle.
45639 (grub_ofdisk_close): dprintf the ihandle being closed.
45640 (grub_ofdisk_read): dprintf function parameters.
45641 * kern/mm.c (grub_mm_init_region): Likewise.
45642 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45643 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45644 size, and boot arguments.
45645 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45646 before loading into memory.
45647 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45648 before loading into memory.
45650 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45652 * kern/mm.c: Added much documentation.
45653 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45654 8, set to 5 instead of 8.
45656 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45658 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45660 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45661 (grub_mkdevicemap_SOURCES): New variable.
45663 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45664 lib/device.c of GRUB Legacy.
45666 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45668 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45669 instead of PATH is NULL.
45671 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45673 * commands/cmp.c (BUFFER_SIZE): New macro.
45674 (grub_cmd_cmp): Close the right file at the right time. Compare
45675 only data just read. Don't report files of different size as
45676 identical. Dynamically allocate buffers. Move variable
45677 declarations at the beginning of function.
45679 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45681 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45684 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45686 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45687 when backspace is pressed at beginning of line.
45689 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45691 * DISTLIST: Added genfslist.sh.
45693 * normal/main.c (fs_module_list): New variable.
45694 (autoload_fs_module): New function.
45695 (read_fs_list): Likewise.
45696 (grub_normal_execute): Call read_fs_list.
45698 * kern/fs.c (grub_fs_autoload_hook): New variable.
45699 (grub_fs_probe): Added support for auto-loading.
45701 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45702 (grub_fs_module_list_t): New type.
45704 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45705 (grub_fs_autoload_hook): New prototype.
45707 * genfslist.sh: New file.
45709 * genmk.rb: Added a rule to generate a filesystem list.
45711 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45713 * configure.ac: Fix the test for cross-compiling.
45715 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45716 define GRUB_UTIL anymore.
45718 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45719 so this function works on other systems than just big endian.
45720 (load_modules): Likewise.
45721 (add_segments): Likewise.
45723 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45725 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45726 contains `l' modifier, get a long from va_arg().
45728 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45730 * kern/mm.c (grub_free): If the next free block which is being
45731 merged is the first free block, set the first block to the block
45733 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45735 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45737 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45738 `grub_ieee1275_chosen'.
45740 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45742 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45743 (grub_ieee1275_chosen): New variable.
45744 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45746 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45747 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45748 Rename first argument to `phandle' for consistency.
45749 (grub_ieee1275_get_property_length): Likewise.
45750 (grub_ieee1275_next_property): Likewise. Change type of first argument
45751 to grub_ieee1275_phandle_t.
45752 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45753 Move export next to declaration.
45754 (grub_ieee1275_chosen): New variable.
45755 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45756 Correct cosmetic typo.
45757 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45758 `grub_ieee1275_chosen'.
45759 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45760 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45761 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45762 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45763 `grub_ieee1275_chosen'.
45765 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45767 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45769 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45770 /chosen/bootargs as "variable=value" pairs.
45772 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45774 * include/grub/misc.h (grub_dprintf): New macro.
45775 (grub_real_dprintf): New prototype.
45776 (grub_strword): Likewise.
45777 (grub_iswordseparator): Likewise.
45778 * kern/misc.c (grub_real_dprintf): New function.
45779 (grub_strword): Likewise.
45780 (grub_iswordseparator): Likewise.
45782 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45784 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45785 (roundup): Remove macro.
45786 (grub_ieee1275_flags): Make static.
45787 (grub_ieee1275_realmode): Remove.
45788 (grub_ieee1275_test_flag): New function.
45789 (grub_ieee1275_set_flag): Likewise.
45790 (find_options): Rename to `grub_ieee1275_find_options'; update
45791 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45792 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45793 (cmain): New prototype.
45794 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45795 `grub_ieee1275_flags' directly.
45796 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45797 machine/biosdisk.h.
45798 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45799 Don't include grub/machine/init.h.
45800 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45801 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45803 (grub_ieee1275_realmode): Likewise.
45804 (grub_ieee1275_flag): New enum.
45805 (grub_ieee1275_test_flag): New prototype.
45806 (grub_ieee1275_set_flag): New prototype.
45807 * include/grub/powerpc/ieee1275/init.h: Remove file.
45808 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45809 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45810 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45811 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45813 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45814 `grub_ieee1275_test_flag'.
45815 (grub_ieee1275_encode_devname): Likewise.
45817 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45819 * include/grub/powerpc/ieee1275/ieee1275.h
45820 (grub_ieee1275_encode_devname): New prototype.
45821 (grub_ieee1275_get_filename): Likewise.
45822 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45824 (grub_set_prefix): Likewise.
45825 (grub_machine_init): Call grub_set_prefix.
45826 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45827 (grub_parse_type): New enum.
45828 (grub_ieee1275_get_devargs): New function.
45829 (grub_ieee1275_get_devname): Likewise.
45830 (grub_ieee1275_parse_args): Likewise.
45831 (grub_ieee1275_get_filename): Likewise.
45832 (grub_ieee1275_encode_devname): Likewise.
45834 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45836 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45837 `grub_loader_unset'.
45839 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45841 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45842 instead of grub_ieee1275_interpret.
45843 (grub_halt_init): New function.
45844 (grub_halt_fini): Likewise.
45845 (GRUB_MOD_INIT): Correct message grammar.
45846 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45847 instead of grub_ieee1275_interpret.
45848 (grub_reboot_init): New function.
45849 (grub_reboot_fini): Likewise.
45850 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45851 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45852 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45853 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45854 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45856 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45858 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45860 (grub_halt): Likewise.
45861 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45862 (cmain): Remove __attribute__((unused)).
45863 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45864 (grub_heap_len): Likewise.
45865 (grub_machine_fini): New function.
45866 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45867 (grub_halt): Likewise.
45868 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45870 * util/powerpc/ieee1275/misc.c: New file.
45872 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45874 * DISTLIST: New file.
45875 * gendistlist.sh: Likewise.
45877 * Makefile.in (COMMON_DISTFILES): Removed.
45878 (BOOT_DISTFILES): Likewise.
45879 (CONF_DISTFILES): Likewise.
45880 (DISK_DISTFILES): Likewise.
45881 (FS_DISTFILES): Likewise.
45882 (INCLUDE_DISTFILES): Likewise.
45883 (KERN_DISTFILES): Likewise.
45884 (LOADER_DISTFILES): Likewise.
45885 (TERM_DISTFILES): Likewise.
45886 (UTIL_DISTFILES): Likewise.
45887 (DISTFILES): Likewise.
45888 (uninstall): Uninstall files in $(pkgdata_DATA).
45889 (DISTLIST): New target.
45890 (distdir): Use the contents of the file DISTLIST to get a list of
45893 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45895 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45896 descriptor. This is ported from GRUB Legacy.
45898 * gencmdlist.sh: Added an extra semicolon to make it work with
45899 old sed versions. Reported by Robert Bihlmeyer
45900 <robbe@orcus.priv.at>.
45902 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45904 Automatic loading of commands is supported.
45906 * normal/main.c (read_command_list): New function.
45907 (grub_normal_execute): Call read_command_list.
45909 * normal/command.c (grub_register_command): Return zero or CMD.
45910 Allocate CMD->NAME from the heap.
45911 Initialize CMD->MODULE_NAME to zero.
45912 Find the same name as well. If the same command is found and it is
45913 a dummy command, overwrite members. If it is not a dummy command,
45915 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45916 (grub_command_find): If a dummy command is found, load a module
45917 and retry to find a command only once.
45919 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45920 make sure that each command is loaded.
45922 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45924 (struct grub_command): Remove const from the member `name'.
45925 Add a new member `module_name'.
45926 (grub_register_command): Return grub_command_t.
45928 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45929 sure that each command is loaded.
45931 * genmk.rb (PModule::rule): Specify a module name without the
45932 suffix ".mod" to gencmdlist.sh.
45934 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45936 * gencmdlist.sh: New file.
45938 * genmk.rb (PModule::rule): Generate a rule for a command list.
45940 Generate command.lst from $(COMMANDFILES).
45942 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
45943 (DATA): Added $(pkgdata_DATA).
45944 (install-local): Install files in $(pkgdata_DATA).
45946 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
45948 * term/i386/pc/vga.c (debug_command): Removed.
45949 (GRUB_MOD_INIT): Do not register the command "debug".
45951 From Hollis Blanchard:
45952 * commands/configfile.c: New file.
45953 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
45954 commands/configfile.c.
45955 (pkgdata_MODULES): Added configfile.mod.
45956 (configfile_mod_SOURCES): New variable.
45957 (configfile_mod_CFLAGS): Likewise.
45958 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45959 commands/configfile.c.
45960 (pkgdata_MODULES): Added configfile.mod.
45961 (configfile_mod_SOURCES): New variable.
45962 (configfile_mod_CFLAGS): Likewise.
45963 * util/grub-emu.c (main): Call grub_configfile_init and
45964 grub_configfile_fini.
45965 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
45967 [GRUB_UTIL] (grub_configfile_fini): Likewise.
45969 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45971 * normal/arg.c (grub_arg_show_help): Do not show the bug report
45974 * commands/help.c (grub_cmd_help): Do not print newlines after
45975 the last command in print_command_help.
45977 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
45979 * commands/default.h: New file.
45980 * commands/timeout.h: Likewise.
45981 * normal/context.c: Likewise.
45983 * util/misc.c: Do not include sys/times.h.
45984 Include sys/time.h and grub/machine/time.h.
45985 (grub_get_rtc): Rewritten with gettimeofday.
45987 * util/grub-emu.c (main): Call grub_default_init and
45988 grub_timeout_init before grub_normal_init, and call
45989 grub_timeout_fini and grub_default_fini after grub_main.
45991 * util/console.c (grub_ncurses_checkkey): Return the read
45994 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
45997 * normal/main.c (read_config_file): Push MENU. If this fails,
45998 print an error and wait for a user input.
45999 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46000 If a menu is empty or an error occurs, pop MENU.
46001 (grub_normal_execute): Pop and free MENU after grub_menu_run
46004 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46006 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46008 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46010 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46012 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46015 * include/grub/normal.h (struct grub_menu_list): New struct.
46016 (grub_menu_list_t): New type.
46017 (struct grub_context): New struct.
46018 (grub_context_t): New type.
46019 (grub_register_command): Got rid of EXPORT_FUNC.
46020 (grub_unregister_command): Likewise.
46021 (grub_context_get): New prototype.
46022 (grub_context_get_current_menu): Likewise.
46023 (grub_context_push_menu): Likewise.
46024 (grub_context_pop_menu): Likewise.
46025 [GRUB_UTIL] (grub_default_init): Likewise.
46026 [GRUB_UTIL] (grub_default_fini): Likewise.
46027 [GRUB_UTIL] (grub_timeout_init): Likewise.
46028 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46030 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46031 commands/timeout.c and normal/context.c.
46032 (pkgdata_MODULES): Added default.mod and timeout.mod.
46033 (normal_mod_SOURCES): Added normal/context.c.
46034 (default_mod_SOURCES): New variable.
46035 (default_mod_CFLAGS): Likewise.
46036 (timeout_mod_SOURCES): Likewise.
46037 (timeout_mod_CFLAGS): Likewise.
46038 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46040 (pkgdata_MODULES): Added default.mod and timeout.mod.
46041 (normal_mod_SOURCES): Added normal/context.c.
46042 (default_mod_SOURCES): New variable.
46043 (default_mod_CFLAGS): Likewise.
46044 (timeout_mod_SOURCES): Likewise.
46045 (timeout_mod_CFLAGS): Likewise.
46047 * Makefile.in (all-local): Added $(MKFILES).
46049 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46051 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46052 (grub_emu_SOURCES): Likewise.
46053 (pkgdata_MODULES): Add `sun.mod'.
46054 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46055 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46057 (pkgdata_MODULES): Add `sun.mod'.
46058 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46059 * include/grub/partition.h (grub_sun_partition_map_init): New
46061 (grub_sun_partition_map_fini): Likewise.
46062 * partmap/sun.c: New file.
46063 * util/grub-emu.c (main): Initialize and de-initialize the sun
46064 partitionmap support.
46066 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46068 This implements an Emacs-like menu entry editor.
46070 * normal/menu_entry.c: New file.
46072 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46073 characters to ASCII.
46074 (saved_char): New variable.
46075 (grub_ncurses_checkkey): Rewritten completely.
46076 (grub_ncurses_getkey): Likewise.
46077 (grub_ncurses_init): Call raw instead of cbreak.
46079 * normal/menu.c (print_entry): Do not put a space.
46080 (init_page): Renamed to ...
46081 (grub_menu_init_page): ... this. All callers changed.
46082 (edit_menu_entry): Removed.
46083 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46085 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46087 * kern/misc.c (grub_vprintf): Call grub_refresh.
46089 * normal/menu.c (DISP_LEFT): Renamed to ...
46090 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46091 * normal/menu.c (DISP_UP): Renamed to ...
46092 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46093 * normal/menu.c (DISP_RIGHT): Renamed to ...
46094 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46095 * normal/menu.c (DISP_DOWN): Renamed to ...
46096 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46097 * normal/menu.c (DISP_HLINE): Renamed to ...
46098 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46099 * normal/menu.c (DISP_VLINE): Renamed to ...
46100 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46101 * normal/menu.c (DISP_UL): Renamed to ...
46102 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46103 * normal/menu.c (DISP_UR): Renamed to ...
46104 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46105 * normal/menu.c (DISP_LL): Renamed to ...
46106 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46107 * normal/menu.c (DISP_LR): Renamed to ...
46108 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46109 * normal/menu.c (TERM_WIDTH): Renamed to ...
46110 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46111 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46112 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46113 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46114 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46115 * normal/menu.c (TERM_MARGIN): Renamed to ...
46116 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46117 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46118 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46119 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46120 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46121 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46122 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46123 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46124 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46125 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46126 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46127 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46128 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46129 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46130 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46131 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46132 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46133 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46134 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46135 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46136 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46137 All callers changed.
46139 * include/grub/normal.h: New prototype.
46141 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46142 normal/menu_entry.c.
46143 (normal_mod_SOURCES): Likewise.
46144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46145 (normal_mod_SOURCES): Likewise.
46147 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46149 * include/grub/normal.h (grub_halt_init): New prototype.
46150 (grub_halt_fini): Likewise.
46151 (grub_reboot_init): Likewise.
46152 (grub_reboot_fini): Likewise.
46154 * util/grub-emu.c: Include signal.h.
46155 (main_env): New global variable.
46156 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46158 (grub_machine_fini): New function.
46159 (main): Call grub_halt_init and grub_reboot_init before
46160 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46161 Call setjmp with MAIN_ENV to go back afterwards.
46162 Call grub_machine_fini right before return.
46164 * include/grub/util/misc.h: Include setjmp.h.
46165 (main_env): New prototype.
46167 * include/grub/kernel.h (grub_machine_fini): New prototype.
46168 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46169 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46171 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46172 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46173 * term/i386/pc/console.c (grub_console_fini): Likewise.
46175 * util/i386/pc/misc.c: New file.
46177 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46178 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46179 commands/i386/pc/reboot.c.
46181 2005-02-14 Guillem Jover <guillem@hadrons.org>
46183 * include/grub/dl.h (grub_dl_check_header): New prototype.
46184 (grub_arch_dl_check_header): Change return type to grub_err_t,
46185 remove size parameter and export function. Update all callers.
46186 * kern/dl.c (grub_dl_check_header): New function.
46187 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46188 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46189 are inside the core.
46190 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46191 independent ELF header checks.
46192 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46193 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46194 `grub_dl_check_header' instead of explicit checks. Check for the
46196 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46197 `grub_dl_check_header' instead of explicit checks. Remove arch
46198 specific ELF header checks.
46200 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46203 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46205 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46206 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46208 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46210 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
46211 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
46212 (part_map_iterate): Clear `grub_errno' and return 0 if
46213 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
46214 * partmap/amiga.c (amiga_partition_map_iterate): Return
46215 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46216 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46218 2005-02-01 Guillem Jover <guillem@hadrons.org>
46220 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46223 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46225 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46227 (grub_rescue_cmd_linux): New prototype.
46228 (grub_rescue_cmd_initrd): Likewise.
46229 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46231 (grub_linux_release_mem): Release the memory for the initrd.
46232 (grub_load_linux): Renamed from this...
46233 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46234 Changed `entry' not to be static. Loop over memory regions to
46235 find another one when the default fails.
46236 (grub_rescue_cmd_initrd): New function.
46237 (grub_linux_init): Remove function.
46238 (grub_linux_fini): Likewise.
46239 (GRUB_MOD_INIT): Register `initrd'.
46240 (GRUB_MOD_FINI): Unregister `initrd'.
46241 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46243 (grub_linux_normal_fini): Likewise.
46244 (GRUB_MOD_INIT): Register `initrd'.
46245 (GRUB_MOD_FINI): Unregister `initrd'.
46247 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46249 * commands/help.c: New file.
46250 * normal/arg.c (show_help): Renamed to...
46251 (grub_arg_show_help): ... this.
46252 * commands/i386/pc/halt.c: New file.
46253 * commands/i386/pc/reboot.c: Likewise.
46254 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46255 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46256 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46257 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46259 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46261 (pkgdata_MODULES): Add `help.mod'.
46262 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46263 * grub/i386/pc/init.h (grub_reboot): New prototype.
46264 (grub_halt): Likewise.
46265 * include/grub/normal.h (grub_arg_show_help): New prototype.
46266 (grub_help_init): Likewise.
46267 (grub_help_fini): Likewise.
46268 * util/grub-emu.c (main): Initialize and deinitialize the help
46271 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46273 * normal/command.c (grub_command_init): Fixed the description of
46274 the `set' and `unset' commands.
46276 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46278 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46280 * commands/ieee1275/halt.c: New file.
46281 * commands/ieee1275/reboot.c: Likewise.
46282 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46283 `__attribute__ ((unused))'. Some GCS related fixed.
46284 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46285 (grub_suspend_fini): Likewise.
46286 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46288 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46289 (halt_mod_CFLAGS): New variables.
46290 * include/grub/powerpc/ieee1275/ieee1275.h
46291 (grub_ieee1275_interpret): New prototype.
46293 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46295 * include/grub/misc.h (memmove): New prototype.
46296 (memcpy): Likewise.
46298 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46300 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46301 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46303 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46305 * kern/misc.c (grub_strndup): Function rewritten.
46307 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46309 * normal/menu.c (TERM_WIDTH): Macro redefined.
46310 (TERM_TOP_BORDER_Y): Likewise.
46311 (draw_border): Replaced while-loop by a for-loop. Make the number
46312 of lines consistent with the number of lines displayed in
46313 print_entries. Added a margin below the rectangle.
46314 (print_entry): Make the entry fit in the rectangle.
46315 (print_entries): Display the scroll arrows next to the right
46318 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46320 * fs/minix.c (grub_minix_find_file): Reserve more space for
46321 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46322 `grub_strncpy' to copy `path' into it.
46324 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46326 Add the loopback device, a device via which files can be accessed
46329 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46330 (pkgdata_MODULES): Add loopback.mod.
46331 (loopback_mod_SOURCES): New variable.
46332 (loopback_mod_CFLAGS): Likewise.
46333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46335 (pkgdata_MODULES): Add loopback.mod.
46336 (loopback_mod_SOURCES): New variable.
46337 (loopback_mod_CFLAGS): Likewise.
46338 * disk/loopback.c: new file.
46339 * include/grub/normal.h (grub_loop_init): New prototype.
46340 (grub_loop_fini): New prototype.
46341 * util/grub-emu.c (main): Initialize and de-initialize loopback
46343 * include/grub/disk.h (grub_disk_dev_id): Add
46344 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46346 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46348 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46350 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46351 (suspend_mod_SOURCES): New variable.
46352 (suspend_mod_CFLAGS): Likewise.
46353 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46355 * commands/ieee1275/suspend.c: New file.
46357 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46359 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46360 ((unused))' to `__attribute__ ((used))'.
46361 (GRUB_MOD_FINI): Likewise.
46362 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46363 * genmk.rb (PModule): Assign space to common symbols when linking
46366 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46368 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46369 `unsigned' arguments to `grub_size_t'.
46370 (grub_malloc): Likewise.
46371 (grub_realloc): Likewise.
46372 (grub_memalign): Likewise.
46373 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46374 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46375 * util/misc.c (grub_malloc): Likewise.
46376 (grub_realloc): Likewise.
46377 * kern/mm.c (get_header_from_pointer): Change the casts to
46378 `unsigned' into a cast to `grub_size_t'.
46380 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46381 point to `currnode' when `currnode' is changed.
46383 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46384 Schottelius <nico-linux@schottelius.org>.
46386 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46388 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46389 (note_path): Remove variable.
46390 (GRUB_IEEE1275_NOTE_NAME): New macro.
46391 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46392 (grub_ieee1275_note_hdr): New structure.
46393 (grub_ieee1275_note_desc): Likewise.
46394 (grub_ieee1275_note): Likewise.
46395 (load_note): Remove `dir' argument. All callers updated. Remove
46396 `note_img' and `path'. Do not load a file from `note_path'.
46397 Initialize a struct grub_ieee1275_note and write that to `out'.
46398 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46400 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46402 * util/misc.c (grub_util_read_image): Revert last change. It
46403 called `grub_util_read_at', which seeks from the beginning of the
46406 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46408 * TODO: Add note about endianness in grub-mkimage.
46409 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46411 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46412 (grub_mkimage_SOURCES): New target.
46413 * include/grub/kernel.h (grub_start_addr): Remove variable.
46414 (grub_end_addr): Likewise.
46415 (grub_total_module_size): Likewise.
46416 (grub_kernel_image_size): Likewise.
46417 (GRUB_MODULE_MAGIC): New constant.
46418 (grub_module_info): New structure.
46419 (grub_arch_modules_addr): New prototype.
46420 (grub_get_end_addr): Remove prototype.
46421 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46422 * include/grub/powerpc/ieee1275/kernel.h: New file.
46423 * include/grub/util/misc.h (grub_util_get_fp_size): New
46425 (grub_util_read_at): Likewise.
46426 (grub_util_write_image_at): Likewise.
46427 * kern/main.c (grub_get_end_addr): Remove function.
46428 (grub_load_modules): Call grub_arch_modules_addr instead of using
46429 grub_end_addr. Look for a grub_module_info struct in memory. Use
46430 the grub_module_info fields instead of calling grub_get_end_addr
46431 as loop conditions. Move grub_add_unused_region code here.
46432 (grub_add_unused_region): Remove function.
46433 * kern/i386/pc/init.c: Include grub/cache.h.
46434 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46435 one call to add_mem_region.
46436 (grub_arch_modules_addr): New function.
46437 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46438 (grub_total_module_size): Likewise.
46439 Include grub/machine/kernel.h.
46440 (grub_arch_modules_addr): New function.
46441 * util/grub-emu.c (grub_end_addr): Remove variable.
46442 (grub_total_module_size): Likewise.
46443 (grub_arch_modules_addr): New function.
46444 * util/misc.c: Include unistd.h.
46445 (grub_util_get_fp_size): New function.
46446 (grub_util_read_at): Likewise.
46447 (grub_util_write_image_at): Likewise.
46448 (grub_util_read_image): Call grub_util_read_at.
46449 (grub_util_write_image): Call grub_util_write_image_at.
46450 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46451 additional memory in kernel_img for a struct grub_module_info.
46452 Fill in that grub_module_info.
46453 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46455 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46457 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46459 * include/grub/powerpc/ieee1275/ieee1275.h
46460 (grub_ieee1275_milliseconds): New prototype.
46461 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46463 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46464 grub_ieee1275_milliseconds.
46466 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46468 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46470 (find_options): New function.
46471 (cmain): Call find_options.
46472 * include/grub/powerpc/ieee1275/ieee1275.h
46473 (grub_ieee1275_realmode): New extern variable.
46474 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46475 grub_map if grub_ieee1275_realmode is false.
46477 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46479 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46480 lines are inserted and make it work like readline. Reported by
46481 Vincent Pelletier <subdino2004@yahoo.fr>.
46483 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46485 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46487 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46488 `kern/powerpc/cache.S'.
46490 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46492 * genmk.rb: Handle the `Program' class in the main loop. Written
46493 by Johan Rydberg <jrydberg@gnu.org>.
46494 (Program): New class.
46495 (programs): New variable.
46496 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46497 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46498 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46499 (help_arch): Function removed.
46500 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46501 `powerpc/libgcc.h' and `loader.h'.
46502 (pkgdata_PROGRAMS): New variable.
46503 (sbin_UTILITIES): Variable removed.
46504 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46505 (grubof_SOURCES): Variable re-defined so it only includes the
46506 core functionality.
46507 (grubof_CFLAGS): Remove `-DGRUBOF'.
46508 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46509 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46510 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46511 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46512 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46513 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46514 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46515 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46516 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46517 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46518 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46519 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46520 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46521 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46522 (pc_mod_CFLAGS): New variables.
46523 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46524 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46525 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46526 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46528 * include/grub/i386/pc/init.h (grub_os_area_addr)
46529 (rub_os_area_size): ... to here.
46530 * include/grub/powerpc/ieee1275/ieee1275.h
46531 (grub_ieee1275_entry_fn): Export symbol.
46532 * include/grub/powerpc/ieee1275/init.h: New file.
46533 * include/grub/powerpc/libgcc.h: Likewise.
46534 * include/grub/cache.h: Likewise.
46535 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46536 <hollis@penguinppc.org>.
46537 * kern/dl.c: Include <grub/cache.h>.
46538 (grub_dl_flush_cache): New function.
46539 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46541 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46542 (grub_console_init): Removed prototypes.
46543 (grub_machine_init): Don't initialize the modules anymore.
46544 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46546 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46547 Macro undef removed.
46548 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46549 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46550 relocation `R_PPC_REL32'. Return an error when the relocation is
46552 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46553 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46554 * util/misc.c (grub_arch_sync_caches): Likewise.
46556 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46558 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46559 `symlist.c', add `grubof_symlist.c'.
46560 (symlist.c): Variable removed.
46561 (grubof_HEADERS): Variable added.
46562 (grubof_symlist.c): New target.
46563 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46564 `kernel_img_HEADERS'.
46565 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46566 * kern/powerpc/dl.c: New file.
46567 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46569 (grub_arch_dl_relocate_symbols): Likewise.
46570 (grub_register_exported_symbols): Likewise.
46572 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46574 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46575 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46576 to fail instead. Reported by Vincent Pelletier
46577 <subdino2004@yahoo.fr>.
46579 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46580 it is not allocated. Reported by Vincent Pelletier
46581 <subdino2004@yahoo.fr>.
46583 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46584 output so the output looks better.
46586 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46588 Modulize the partition map support and add support for the amiga
46591 * commands/ls.c: Include <grub/partition.h> instead of
46592 <grub/machine/partition.h>.
46593 * kern/disk.c: Likewise.
46594 * kern/rescue.c: Likewise.
46595 * loader/i386/pc/chainloader.c: Likewise.
46596 * normal/cmdline.c: Likewise.
46597 * kern/powerpc/ieee1275/init.c: Likewise.
46598 (grub_machine_init): Call `grub_pc_partition_map_init',
46599 `grub_amiga_partition_map_init' and
46600 `grub_apple_partition_map_init'.
46601 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46602 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46603 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46604 `partition.h' and `pc_partition.h'.
46605 (grub_setup_SOURCES): Remove
46606 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46607 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46608 (grub_emu_SOURCES): Likewise.
46609 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46610 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46611 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46612 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46613 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46614 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46615 (grubof_SOURCES): Likewise.
46616 * disk/i386/pc/partition.c: File removed.
46617 * disk/powerpc/ieee1275/partition.c: Likewise.
46618 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46619 * include/grub/i386/pc/partition.h: Likewise.
46620 * kern/partition.c: New file.
46621 * partmap/amiga.c: Likewise.
46622 * partmap/apple.c: Likewise.
46623 * partmap/pc.c: Likewise.
46624 * include/grub/partition.h: Likewise..
46625 * include/grub/pc_partition.h: Likewise.
46626 * util/grub-emu.c: Include <grub/partition.h> instead of
46627 <grub/machine/partition.h>.
46628 (main): Call `grub_pc_partition_map_init',
46629 `grub_amiga_partition_map_init' and
46630 `grub_apple_partition_map_init' and deinitialize afterwards.
46631 * util/i386/pc/biosdisk.c: Include `#include
46632 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46633 `<grub/machine/partition.h>'.
46634 * util/i386/pc/grub-setup.c: Likewise.
46635 * util/i386/pc/biosdisk.c: Likewise.
46636 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46637 partition information in case of a PC partition.
46638 * util/i386/pc/grub-setup.c: Include `#include
46639 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46640 `<grub/machine/partition.h>'.
46641 (setup): Only access the PC specific partition information in case
46644 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46646 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46647 (grub_longjmp): Likewise.
46648 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46650 * normal/powerpc/setjmp.S: New file.
46651 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46652 `normal/powerpc/setjmp.S'.
46653 (grubof_CFLAGS): Add `-DGRUBOF'.
46654 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46655 [GRUB_UTIL && !GRUBOF].
46657 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46659 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46660 property named `name'. Correctly handle the error returned by
46661 `grub_ieee1275_finddevice' if a device can not be opened.
46663 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46665 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46666 `actual' for negativity.
46667 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46670 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46672 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46673 (PAGE_OFFSET): New macro.
46674 (CRTC_ADDR_PORT): Likewise.
46675 (CRTC_DATA_PORT): Likewise.
46676 (START_ADDR_HIGH_REGISTER): Likewise.
46677 (START_ADDR_LOW_REGISTER): Likewise.
46678 (GRAPHICS_ADDR_PORT): Likewise.
46679 (GRAPHICS_DATA_PORT): Likewise.
46680 (READ_MAP_REGISTER): Likewise.
46681 (INPUT_STATUS1_REGISTER): Likewise.
46682 (INPUT_STATUS1_VERTR_BIT): Likewise.
46683 (page): New variable.
46684 (wait_vretrace): New function.
46685 (set_read_map): Likewise.
46686 (set_start_address): Likewise.
46687 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46689 (check_vga_mem): Take the page into account.
46690 (write_char): Likewise.
46691 (write_cursor): Likewise.
46692 (scroll_up): Likewise. Copy the page to the page that is not
46693 shown and switch between both pages.
46694 (grub_vga_putchar): Fix off by one error.
46695 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46698 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46700 Add support for iso9660 (including rockridge).
46702 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46703 (iso9660_mod_SOURCES): New variable.
46704 (iso9660_mod_CFLAGS): Likewise.
46705 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46706 * include/grub/fs.h (grub_iso9660_init): New prototype.
46707 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46708 * fs/iso9660.c: New file.
46710 * include/grub/misc.h (grub_strncat): New prototype.
46711 * kern/misc.c (grub_strncat): New function.
46713 * fs/hfs.c (grub_hfs_mount): Translate the error
46714 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46715 * fs/jfs.c (grub_jfs_mount): Likewise.
46716 * fs/ufs.c (grub_ufs_mount): Likewise.
46718 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46720 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46721 which initialized BAT registers.
46722 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46723 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46725 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46726 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46728 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46729 (grub_mapclaim): Likewise.
46730 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46731 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46734 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46736 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46737 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46738 -ffreestanding and -msoft-float.
46740 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46742 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46743 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46744 set in grub_ieee1275_flags.
46746 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46748 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46750 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46751 grub_console_init first.
46752 Change the memory range used for grub_ieee1275_claim and
46753 grub_mm_init_region.
46754 Print an error message if the claim fails.
46755 Include <grub/misc.h>.
46757 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46759 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46760 Call grub_children_iterate for device nodes of type `scsi',
46762 (grub_ofdisk_open): Remove manual device alias resolution.
46763 Fix memory leak when device cannot be opened.
46764 * include/grub/powerpc/ieee1275/ieee1275.h
46765 (grub_children_iterate): New prototype.
46766 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46768 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46769 Return -1 if args.size was -1.
46771 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46773 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46774 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46775 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46776 Open Firmware's memory for it; claim memory from _start to _end.
46777 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46778 (_end): New extern.
46779 (_start): Zero BSS from __bss_start to _end.
46780 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46782 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46784 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46786 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46787 -1 if args.base was -1.
46789 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46791 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46792 escape sequence instead of a literal ^L. Also call
46793 grub_ofconsole_gotoxy.
46795 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46797 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46798 void * arguments to grub_addr_t. All callers updated. Also make
46799 the `result' argument optional.
46800 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46801 All callers updated.
46803 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46805 * commands/ls.c (grub_ls_list_files): Use the string following the
46806 initial ')', if present, as the filesystem path.
46807 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46809 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46811 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46813 Make the source code of the menu interface more readable.
46815 * normal/menu.c: Include grub/mm.h.
46816 (TERM_WIDTH): New macro.
46817 (TERM_HEIGHT): Likewise.
46818 (TERM_INFO_HEIGHT): Likewise.
46819 (TERM_MARGIN): Likewise.
46820 (TERM_SCROLL_WIDTH): Likewise.
46821 (TERM_TOP_BORDER_Y): Likewise.
46822 (TERM_LEFT_BORDER_X): Likewise.
46823 (TERM_BORDER_WIDTH): Likewise.
46824 (TERM_MESSAGE_HEIGHT): Likewise.
46825 (TERM_BORDER_HEIGHT): Likewise.
46826 (TERM_NUM_ENTRIES): Likewise.
46827 (TERM_FIRST_ENTRY_Y): Likewise.
46828 (TERM_ENTRY_WIDTH): Likewise.
46829 (TERM_CURSOR_X): Likewise.
46830 (draw_border): Use macros instead of magic numbers.
46831 (print_entry): Likewise.
46832 (print_entries): Likewise.
46833 (run_menu): Likewise. Also, handle the key 'e'.
46834 (run_menu_entry): Ignore empty command lines.
46835 (print_message): Added a new argument EDIT. If EDIT is true,
46836 print a different message.
46837 (init_page): Likewise.
46838 (edit_menu_entry): New function. Not implemented yet.
46840 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46842 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46843 can be loaded from normal mode.
46845 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46847 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46848 (multiboot_mod_CFLAGS): New variables.
46849 * loader/i386/pc/linux_normal.c: New file.
46850 * loader/i386/pc/multiboot_normal.c: Likewise.
46852 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46853 attribute `unused'.
46855 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46856 `fdiro' to read the mode information from instead of `diro'.
46858 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46859 looking up a symlink.
46861 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46863 * normal/command.c (grub_command_execute): Don't parse the
46864 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46865 flags of the command.
46867 * normal/menu.c (grub_menu_run): Fix typo.
46869 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46871 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46873 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46874 `y + 1' instead of `y - 1'.
46876 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46878 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46880 From Hollis Blanchard <hollis@penguinppc.org>:
46881 * kern/misc.c (memmove): New alias for grub_memmove.
46882 (memcmp): New alias for grub_memcmp.
46883 (memset): New alias for grub_memset.
46884 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46885 Change "int handle" to "grub_ieee1275_phandle_t handle".
46886 * include/grub/powerpc/ieee1275/ieee1275.h
46887 (grub_ieee1275_get_property): Likewise.
46889 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46891 Added normal mode command `chainloader' as module chain.mod, which
46892 depends on normal.mod and _chain.mod.
46894 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46895 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46896 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46898 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46899 but arguments parsing moved to ...
46900 (grub_chainloader_cmd): ... here. New function.
46901 * include/grub/i386/pc/chainloader.h: New file.
46902 * loader/i386/pc/chainloader_normal.c: Likewise.
46904 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46906 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46907 (grub_mkimage_LDFLAGS): Likewise.
46908 (grub_emu_SOURCES): Likewise.
46909 (kernel_img_HEADERS): Added fshelp.h.
46910 * fs/ext2.c: Include <grub/fshelp.h>.
46911 (FILETYPE_REG): New macro.
46912 (FILETYPE_INO_REG): Likewise.
46913 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46915 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46917 (grub_fshelp_node): New struct.
46918 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46920 (grub_ext2_get_file_block): Removed function.
46921 (grub_ext2_read_block): New function.
46922 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46923 This function was written.
46924 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46925 (grub_ext2_find_file): Removed function.
46926 (grub_ext2_read_symlink): New function.
46927 (grub_ext2_iterate_dir): Likewise.
46928 (grub_ext2_open): Rewritten.
46929 (grub_ext2_dir): Rewritten.
46930 * include/grub/fshelp.h: New file.
46931 * fs/fshelp.c: Likewise.
46933 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
46935 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
46936 (print_message): Add a missing newline.
46937 (run_menu): Added timeout support.
46938 (run_menu_entry): New local function.
46939 (grub_menu_run): Added support for booting.
46941 * kern/loader.c (grub_loader_is_loaded): New function.
46943 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
46944 (grub_get_rtc): Exported.
46946 * include/grub/i386/pc/time.h: Include grub/symbol.h.
46947 (grub_get_rtc): Exported.
46949 * include/grub/normal.h (struct grub_command_list): Remove
46950 constant from the member `command'.
46952 * include/grub/loader.h (grub_loader_is_loaded): Declared.
46954 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
46956 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
46958 2004-08-28 Marco Gerards <metgerards@student.han.nl>
46960 Add support for the JFS filesystem.
46962 * fs/jfs.c: New file.
46963 * include/grub/fs.h (grub_jfs_init): New prototype.
46964 (grub_jfs_fini): New prototype.
46965 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
46966 (grub_emu_SOURCES): Likewise.
46967 (pkgdata_MODULES): Add jfs.mod.
46968 (jfs_mod_SOURCES): New variable.
46969 (jfs_mod_CFLAGS): Likewise.
46970 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
46971 (grubof_SOURCES): Likewise.
46972 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
46974 * fs/fat.c (grub_fat_find_dir): Convert the filename little
46975 endian to the host endian.
46976 (grub_fat_utf16_to_utf8): Move function from there...
46977 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
46978 the endianness of the source string anymore.
46979 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
46981 2004-08-24 Marco Gerards <metgerards@student.han.nl>
46983 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
46984 (grub_boot_fini) [GRUB_UTIL]: Likewise.
46985 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
46986 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
46988 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
46989 (grub_hfs_iterate_dir): Make the function static. Add prototypes
46990 for `node_found' and `it_dir'.
46991 (grub_hfs_dir): Add prototype for `dir_hook'.
46993 * fs/minix.c (grub_minix_get_file_block): Add prototype for
46994 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
46995 and `indir32' to silence a gcc warning.
46997 * include/grub/fs.h (grub_hfs_init): New prototype.
46998 (grub_hfs_fini): Likewise.
47001 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47003 Each disk device has its own id now. This is useful to make use
47004 of multiple disk devices.
47006 * include/grub/disk.h (grub_disk_dev_id): New enum.
47007 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47008 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47010 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47011 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47013 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47014 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47016 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47017 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47019 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47020 "id" which is used by the cache manager.
47022 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47025 2004-08-18 Marco Gerards <metgerards@student.han.nl>
47027 * fs/hfs.c: New file.
47028 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47029 (grub_emu_SOURCES): Likewise.
47030 (pkgdata_MODULES): Add hfs.mod.
47031 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47032 (grubof_SOURCES): Likewise.
47033 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47035 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47036 * kern/misc.c (grub_strncasecmp): Add function.
47038 2004-08-14 Marco Gerards <metgerards@student.han.nl>
47040 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47043 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47044 (grub_ext2_dir): In case the directory entry type is unknown, read
47047 2004-08-02 Peter Bruin <pjbruin@dds.nl>
47049 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47050 grub_load_linux instead of grub_rescue_cmd_linux as second
47051 argument of grub_rescue_register_command.
47053 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47055 2004-07-27 Marco Gerards <metgerards@student.han.nl>
47057 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47059 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47060 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47061 `loader/powerpc/ieee1275/linux.c',
47062 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47063 * include/grub/powerpc/ieee1275/ieee1275.h
47064 (grub_ieee1275_release): New prototype.
47065 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47066 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47067 normal, boot, linux and linux_normal.
47068 * loader/powerpc/ieee1275/linux.c: New file.
47069 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47071 2004-07-12 Marco Gerards <metgerards@student.han.nl>
47073 * normal/arg.c (grub_arg_parse): Correct error handling after
47074 reallocating the argumentlist (check if `argl' is not null instead
47075 of checking if `args' is not null).
47076 * kern/mm.c (grub_realloc): Return the same pointer when using the
47077 same region, instead of returning the header address.
47079 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47081 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47082 one block instead of two when looking for the initial partition.
47083 (grub_partition_probe): Initialize the local variable `p' with 0.
47084 Use base 10 for the grub_strtoul call.
47085 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47086 need for one local variable.
47087 (grub_strtoul): Don't add the new value to `num', instead of that
47090 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47092 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47093 (pxeboot_img_SOURCES): New variable.
47094 (pxeboot_img_ASFLAGS): Likewise.
47095 (pxeboot_img_LDFLAGS): Likewise.
47096 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47097 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47098 <lode_leroy@hotmail.com>.
47100 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47102 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47103 there was no input.
47105 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47107 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47108 the history buffer logic.
47110 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47112 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47113 (FILETYPE_INO_SYMLINK): New macros.
47114 (grub_ext2_find_file): Check if the node is a directory using the
47115 inode stat information instead of using the filetype in the
47116 dirent. Exclude the first character of an absolute symlink.
47117 (grub_ext2_dir): Mask out the filetype part of the mode member of
47120 2004-05-24 Marco Gerards <metgerards@student.han.nl>
47122 Add support for UFS version 1 and 2. Add support for the minix
47123 filesystem version 1 and 2, both the variants with 14 and 30 long
47126 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47128 (grub_emu_SOURCES): Likewise.
47129 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47130 (ufs_mod_SOURCES): New variable.
47131 (ufs_mod_CFLAGS): Likewise.
47132 (minix_mod_SOURCES): Likewise.
47133 (minix_mod_CFLAGS): Likewise.
47134 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47136 (grubof_SOURCES): Likewise.
47137 * fs/ufs.c: New file.
47138 * fs/minix.c: New file.
47139 * include/grub/fs.h (grub_ufs_init): New prototype.
47140 (grub_ufs_fini): Likewise.
47141 (grub_minix_init): Likewise.
47142 (grub_minix_fini): Likewise.
47143 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47146 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47148 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47149 commands/ls.c, commands/terminal.c, commands/boot.c,
47150 commands/cmp.c and commands/cat.c.
47151 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47153 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47156 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47158 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47159 and grub_, respectively. Because the conversion is trivial and
47160 mechanical, I omit the details here. Please refer to the CVS
47161 if you need more information.
47163 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47165 * include/pupa: Renamed to ...
47166 * include/grub: ... this.
47167 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47168 * util/i386/pc/grub-mkimage.c: ... this.
47169 * util/i386/pc/pupa-setup.c: Renamed to ...
47170 * util/i386/pc/grub-setup.c: ... this.
47171 * util/pupa-emu.c: Renamed to ...
47172 * util/grub-emu.c: ... this.
47174 2004-03-29 Marco Gerards <metgerards@student.han.nl>
47176 Add support for the newworld apple macintosh (PPC). This has been
47177 tested on the powerbook 2000 only. It only adds support for
47178 generic ieee1275 functions, console and disk support. This should
47179 be easy to port to other architectures with support for Open
47182 * configure.ac: Accept the powerpc as host_cpu. In the case of
47183 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47184 specific tests are only executed while building for the i386.
47185 Inverse test for crosscompile.
47186 * genmk.rb (Utility): Allow assembler files.
47187 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47188 * conf/powerpc-ieee1275.rmk: New file.
47189 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47190 * disk/powerpc/ieee1275/partition.c: Likewise.
47191 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47192 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47193 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47194 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47195 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47196 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47197 * include/pupa/powerpc/ieee1275/loader.h
47198 * include/pupa/powerpc/setjmp.h: Likewise.
47199 * include/pupa/powerpc/types.h: Likewise.
47200 * kern/powerpc/ieee1275/init.c: Likewise.
47201 * kern/powerpc/ieee1275/openfw.c: Likewise.
47202 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47204 These files were written by Johan Rydberg
47205 (jrydberg@night.trouble.net) and I only modified them slightly.
47207 * boot/powerpc/ieee1275/cmain.c: New file.
47208 * boot/powerpc/ieee1275/crt0.S: Likewise.
47209 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47210 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47212 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47214 * Makefile.in: Update copyright.
47215 * genmodsrc.sh: Likewise.
47216 * gensymlist.sh: Likewise.
47217 * term/i386/pc/vga.c: Indent correctly.
47219 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47220 bugreporting address.
47221 * util/i386/pc/pupa-setup.c (usage): Likewise,
47222 (main): Call pupa_ext2_init and pupa_ext2_fini.
47224 * fs/fat.c (log2): Renamed to ...
47225 (fat_log2): ... this.
47226 All callers changed.
47227 * kern/misc.c (memcpy): Alias to pupa_memmove.
47228 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47230 * util/console.c (pupa_ncurses_fini): Return 0.
47232 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47233 Move fail label here.
47234 [__GNU__]: Don't warn when using stat.
47235 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47236 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47237 long int. Use strtol instead of strtoul.
47239 2004-03-14 Marco Gerards <metgerards@student.han.nl>
47241 * commands/boot.c: New file.
47242 * commands/cat.c: Likewise.
47243 * commands/cmp.c: Likewise.
47244 * commands/ls.c: Likewise.
47245 * commands/terminal.c: Likewise.
47246 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47247 (pupa_register_command): Changed interface to match the new
47249 (pupa_command_execute): Changed (almost rewritten) so it uses
47250 pupa_split_command. Added support for setting variables using the
47252 (rescue_command): Changed to work with the new argument parser.
47253 (terminal_command): Moved from here to commands/terminal.c.
47254 (set_command): New function.
47255 (unset_command): New function.
47256 (insmod_command): New function.
47257 (rmmod_command): New function.
47258 (lsmod_command): New function.
47259 (pupa_command_init): Don't initialize the command terminal
47260 anymore. Initialize the commands set, unset, insmod, rmmod and
47262 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47263 (kernel_img_HEADERS): Add arg.h and env.h.
47264 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47265 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47266 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47268 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47270 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47271 (boot_mod_SOURCES): New variable.
47272 (terminal_mod_SOURCES): Likewise.
47273 (ls_mod_SOURCES): Likewise.
47274 (cmp_mod_SOURCES): Likewise.
47275 (cat_mod_SOURCES): Likewise.
47277 * normal/arg.c: New file.
47278 * kern/env.c: Likewise.
47279 * include/pupa/arg.h: Likewise.
47280 * include/pupa/env.h: Likewise.
47281 * font/manager.c (font_command): Changed to match argument parsing
47283 (PUPA_MOD_INIT): Likewise.
47284 * hello/hello.c (pupa_cmd_hello): Likewise.
47285 (PUPA_MOD_INIT): Likewise.
47286 * include/pupa/disk.h: Include <pupa/device.h>.
47287 (pupa_print_partinfo): New prototype.
47288 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47289 (pupa_dl_get_prefix): Likewise.
47290 * include/pupa/misc.h: Include <pupa/err.h>.
47291 (pupa_isgraph): New prototype.
47292 (pupa_isdigit): Likewise.
47293 (pupa_split_cmdline): Likewise.
47294 * include/pupa/normal.h: Include <pupa/arg.h>.
47295 (pupa_command): Changed the prototype of the member `func' to
47296 match the argument parsing interface. Added member `options'.
47297 (pupa_register_command): Updated to match function.
47298 (pupa_arg_parse): New prototype.
47299 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47300 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47301 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47302 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47303 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47304 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47305 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47306 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47307 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47308 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47309 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47310 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47311 * kern/disk.c: Include <pupa/file.h>.
47312 (pupa_print_partinfo): New function.
47313 * kern/dl.c: Include <pupa/env.h>.
47314 (pupa_dl_dir): Variable removed.
47315 (pupa_dl_load): Use the environment variable `prefix' instead of
47316 the variable pupa_dl_dir.
47317 (pupa_dl_set_prefix): Function removed.
47318 (pupa_dl_get_prefix): Likewise.
47319 * kern/i386/pc/init.c: Include <pupa/env.h>.
47320 (pupa_machine_init): Use the environment variable `prefix' instead of
47321 using pupa_dl_set_prefix to set the prefix.
47322 * kern/main.c: Include <pupa/env.h>.
47323 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47324 using pupa_dl_get_prefix to get the prefix.
47325 * kern/misc.c: Include <pupa/env.h>.
47326 (pupa_isdigit): New function.
47327 (pupa_isgraph): Likewise.
47328 (pupa_ftoa): Likewise.
47329 (pupa_vsprintf): Added support for printing values of the type
47330 `double'. Make it possible to format variable output when using
47331 formatting like `%1.2%f'.
47332 (pupa_split_cmdline): New function.
47333 * kern/rescue.c: Include <pupa/env.h>.
47334 (next_word): Removed function.
47335 (pupa_rescue_cmd_prefix): Likewise.
47336 (pupa_rescue_cmd_set): New function.
47337 (pupa_rescue_cmd_unset): New function.
47338 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47339 split the command line instead of splitting it here. Added
47340 support for setting variables using the syntax `foo=bar'. Don't
47341 initialize the prefix command anymore. Initialized the set and
47343 * normal/cmdline.c: Include <pupa/env.h>.
47344 (pupa_tab_complete): Added prototypes for print_simple_completion,
47345 print_partition_completion, add_completion, iterate_commands,
47346 iterate_dev, iterate_part and iterate_dir. Moved code to print
47347 partition information from here to kern/disk.c.
47348 (pupa_cmdline_run): Don't check if the function exists anymore.
47349 * normal/main.c: Include <pupa/env.h>.
47350 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47351 instead of using pupa_dl_get_prefix to get the prefix.
47352 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47353 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47355 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47356 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47357 ((unused))' to silence a gcc warning.
47358 (pupa_vga_setcolor): Likewise.
47359 (debug_command): Changed to match argument parsing
47361 * util/pupa-emu.c: Include <pupa/env.h>.
47362 (options): Added 0's for unused fields to silence a gcc warning.
47364 (main): Use the environment variable `prefix' instead of using
47365 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47366 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47369 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47370 * util/misc.c: Include <malloc.h>.
47371 (pupa_malloc): Rewritten so errors are correctly reported.
47372 (pupa_realloc): Likewise.
47373 (pupa_memalign): Likewise.
47374 (pupa_mm_init_region): Declare unused variables with
47375 `__attribute__ ((unused))' to silence a gcc warning.
47376 * normal/i386/setjmp.S: Remove tab at the end of the file to
47377 silence a gcc warning.
47378 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47379 variables with `__attribute__ ((unused))' to silence a gcc
47381 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47382 local variable i unsigned to silence a gcc warning.
47384 * kern/term.c: Include <pupa/misc.h>.
47385 (pupa_more_lines): New variable.
47386 (pupa_more): Likewise.
47387 (pupa_putcode): When the pager is active pause at the end of every
47389 (pupa_set_more): New function.
47390 * include/pupa/term.h (pupa_set_more): New prototype.
47393 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47395 Now this project is GRUB 2 rather than PUPA. The location of
47396 the CVS repository was moved to GRUB's.
47398 * configure.ac: Use bug-grub as the reporting address.
47399 Use GRUB instead of PUPA.
47400 Change the version number to 1.90.
47402 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47404 * genkernsyms.sh: Updated copyright information.
47405 * genmk.rb: Likewise.
47406 * genmodsrc.sh: Likewise.
47407 * gensymlist.sh: Likewise.
47408 * boot/i386/pc/boot.S: Likewise.
47409 * boot/i386/pc/diskboot.S: Likewise.
47410 * disk/i386/pc/biosdisk.c: Likewise.
47411 * disk/i386/pc/partition.c: Likewise.
47412 * font/manager.c: Likewise.
47413 * fs/ext2.c: Likewise.
47414 * fs/fat.c: Likewise.
47415 * include/pupa/boot.h: Likewise.
47416 * include/pupa/device.h: Likewise.
47417 * include/pupa/disk.h: Likewise.
47418 * include/pupa/dl.h: Likewise.
47419 * include/pupa/elf.h: Likewise.
47420 * include/pupa/err.h: Likewise.
47421 * include/pupa/file.h: Likewise.
47422 * include/pupa/font.h: Likewise.
47423 * include/pupa/fs.h: Likewise.
47424 * include/pupa/kernel.h: Likewise.
47425 * include/pupa/loader.h: Likewise.
47426 * include/pupa/misc.h: Likewise.
47427 * include/pupa/mm.h: Likewise.
47428 * include/pupa/net.h: Likewise.
47429 * include/pupa/normal.h: Likewise.
47430 * include/pupa/rescue.h: Likewise.
47431 * include/pupa/setjmp.h: Likewise.
47432 * include/pupa/symbol.h: Likewise.
47433 * include/pupa/term.h: Likewise.
47434 * include/pupa/types.h: Likewise.
47435 * include/pupa/i386/setjmp.h: Likewise.
47436 * include/pupa/i386/types.h: Likewise.
47437 * include/pupa/i386/pc/biosdisk.h: Likewise.
47438 * include/pupa/i386/pc/boot.h: Likewise.
47439 * include/pupa/i386/pc/console.h: Likewise.
47440 * include/pupa/i386/pc/init.h: Likewise.
47441 * include/pupa/i386/pc/kernel.h: Likewise.
47442 * include/pupa/i386/pc/linux.h: Likewise.
47443 * include/pupa/i386/pc/loader.h: Likewise.
47444 * include/pupa/i386/pc/memory.h: Likewise.
47445 * include/pupa/i386/pc/multiboot.h: Likewise.
47446 * include/pupa/i386/pc/partition.h: Likewise.
47447 * include/pupa/i386/pc/time.h: Likewise.
47448 * include/pupa/i386/pc/vga.h: Likewise.
47449 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47450 * include/pupa/util/getroot.h: Likewise.
47451 * include/pupa/util/misc.h: Likewise.
47452 * include/pupa/util/resolve.h: Likewise.
47453 * kern/device.c: Likewise.
47454 * kern/disk.c: Likewise.
47455 * kern/dl.c: Likewise.
47456 * kern/err.c: Likewise.
47457 * kern/file.c: Likewise.
47458 * kern/fs.c: Likewise.
47459 * kern/loader.c: Likewise.
47460 * kern/main.c: Likewise.
47461 * kern/misc.c: Likewise.
47462 * kern/mm.c: Likewise.
47463 * kern/rescue.c: Likewise.
47464 * kern/term.c: Likewise.
47465 * kern/i386/dl.c: Likewise.
47466 * kern/i386/pc/init.c: Likewise.
47467 * kern/i386/pc/lzo1x.S: Likewise.
47468 * kern/i386/pc/startup.S: Likewise.
47469 * loader/i386/pc/chainloader.c: Likewise.
47470 * loader/i386/pc/linux.c: Likewise.
47471 * loader/i386/pc/multiboot.c: Likewise.
47472 * normal/cmdline.c: Likewise.
47473 * normal/command.c: Likewise.
47474 * normal/main.c: Likewise.
47475 * normal/menu.c: Likewise.
47476 * normal/i386/setjmp.S: Likewise.
47477 * term/i386/pc/console.c: Likewise.
47478 * term/i386/pc/vga.c: Likewise.
47479 * util/console.c: Likewise.
47480 * util/genmoddep.c: Likewise.
47481 * util/misc.c: Likewise.
47482 * util/pupa-emu.c: Likewise.
47483 * util/resolve.c: Likewise.
47484 * util/unifont2pff.rb: Likewise.
47485 * util/i386/pc/biosdisk.c: Likewise.
47486 * util/i386/pc/getroot.c: Likewise.
47487 * util/i386/pc/pupa-mkimage.c: Likewise.
47488 * util/i386/pc/pupa-setup.c: Likewise.
47490 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47492 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47493 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47494 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47495 reading and reset it after reading.
47496 (pupa_ext2_close): Return PUPA_ERR_NONE.
47498 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47500 (struct linux_kernel_header): Add kernel_version and
47502 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47503 pupa_file_read succeeds.
47504 (pupa_rescue_cmd_initrd): Implement.
47506 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47508 * fs/ext2.c (pupa_ext2_label): New function.
47509 (pupa_ext2_fs): Added label.
47510 * fs/fat.c (pupa_fat_label): New function.
47511 (pupa_fat_fs): Added label.
47512 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47514 * kern/misc.c (pupa_strndup): New function.
47515 * include/pupa/misc.h (pupa_strndup): New prototype.
47517 * include/pupa/normal.h: Include <pupa/err.h>.
47518 (pupa_set_history): New prototype.
47519 (pupa_iterate_commands): New prototype.
47520 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47521 <pupa/disk.h>, <pupa/file.h>.
47522 (hist_size): New variable.
47523 (hist_lines): Likewise.
47524 (hist_end): Likewise.
47525 (hist_used): Likewise.
47526 (pupa_set_history): New function.
47527 (pupa_history_get): Likewise.
47528 (pupa_history_add): Likewise.
47529 (pupa_history_replace): Likewise.
47530 (pupa_tab_complete): Likewise.
47531 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47532 completion shows partitionnames while completing partitions, this
47533 feature was suggested by Jeff Bailey.
47534 * normal/command.c (pupa_iterate_commands): New function.
47535 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47536 (pupa_normal_init): Initialize history buffer.
47537 (PUPA_MOD_INIT): Likewise.
47538 (pupa_normal_fini): Free the history buffer.
47539 (PUPA_MOD_FINI): Likewise.
47541 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47544 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47545 * configure.ac [i386]: Check for regparam bug.
47546 (NESTED_FUNC_ATTR) [! i386]: Defined.
47548 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47550 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47551 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47552 (pupa_emu_SOURCES): New variable.
47553 (pupa_emu_LDFLAGS): Likewise.
47554 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47555 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47556 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47557 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47558 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47559 (pupa_jmp_buf): New typedef.
47560 (pupa_setjmp) [PUPA_UTIL]: New macro.
47561 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47562 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47563 (pupa_refresh): New prototype.
47564 * include/pupa/util/getroot.h: New file.
47565 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47567 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47568 (pupa_rescue_cmd_cat): Likewise.
47569 (pupa_rescue_cmd_ls): Likewise.
47570 (pupa_rescue_cmd_testload): Likewise.
47571 (pupa_rescue_cmd_lsmod): Likewise.
47572 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47573 * normal/menu.c (run_menu): Likewise.
47574 * kern/term.c (pupa_cls): Likewise.
47575 (pupa_refresh): New function.
47576 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47577 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47578 * util/console.c: New file.
47580 * util/i386/pc/getroot.c: New file.
47581 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47582 (pupa_putchar): New function.
47583 (pupa_refresh): Likewise.
47584 (xgetcwd): Function moved to ...
47585 (strip_extra_slashes): Likewise.
47586 (get_prefix): Likewise.
47587 * util/i386/pc/getroot.c: ... here.
47588 (find_root_device): Function moved and renamed to...
47589 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47590 Changed all callers.
47591 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47593 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47594 Changed all callers.
47595 * util/misc.c (pupa_memalign): New function.
47596 (pupa_mm_init_region): Likewise.
47597 (pupa_register_exported_symbols): Likewise.
47598 (pupa_putchar): Function removed.
47599 * util/pupa-emu.c: New file.
47601 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47603 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47604 (_multiboot_mod_SOURCES): New variable.
47605 (_multiboot_mod_CFLAGS): Likewise.
47606 * loader/i386/pc/multiboot.c: New file.
47607 * include/pupa/i386/pc/multiboot.h: Likewise.
47608 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47609 (pupa_multiboot_real_boot): New function.
47610 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47611 (pupa_multiboot_real_boot): New prototype.
47612 (pupa_rescue_cmd_multiboot): Likewise
47613 (pupa_rescue_cmd_module): Likewise.
47615 * kern/loader.c (pupa_loader_set): Continue when
47616 pupa_loader_unload_func() fails.
47617 (pupa_loader_unset): New function.
47618 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47620 * kern/misc.c (pupa_stpcpy): New function.
47621 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47623 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47625 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47626 for available extensions.
47628 * include/pupa/i386/pc/time.h: New file.
47629 * kern/disk.c: Include <pupa/machine/time.h>.
47630 (PUPA_CACHE_TIMEOUT): New macro.
47631 (pupa_last_time): New variable.
47632 (pupa_disk_open): Flush the cache when there was a timeout.
47633 (pupa_disk_close): Reset the timer.
47634 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47636 * util/misc.c: Include <sys/times.h>
47637 (pupa_get_rtc): New function.
47639 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47641 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47643 (pupa_ext2_get_file_block): Use blocks member.
47645 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47646 first block. Return -1 instead of pupa_errno on error.
47648 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47650 * README: In the pupa-mkimage example use _chain instead of chain
47651 and ext2 instead of fat.
47652 * TODO: Replace ext2fs with jfs as an example. Add an item for
47653 adding journal playback for ext2fs.
47654 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47655 (pkgdata_MODULES): Added ext2.mod.
47656 (ext2_mod_SOURCES): New variable.
47657 (ext2_mod_CFLAGS): Likewise.
47658 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47659 * include/pupa/misc.h (pupa_strncpy): New prototype.
47660 (pupa_strcat): Likewise.
47661 (pupa_strncmp): Likewise.
47662 * kern/misc.c (pupa_strcat): Enable function.
47663 (pupa_strncpy): New function.
47664 (pupa_strncmp): Likewise.
47665 * fs/ext2.c: New file.
47667 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47668 when the read failed before retrying.
47669 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47670 (_FILE_OFFSET_BITS): Likewise.
47671 * configure.ac: Added AC_SYS_LARGEFILE.
47673 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47675 * genmk.rb (PModule#rule): Make sure to get only symbol names
47676 from the output of nm.
47677 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47679 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47681 I forgot to check in these changes for a long time. This adds
47682 incomplete support for VGA console, and this is still very
47683 buggy. Also, a lot of consideration is required for I18N,
47684 UNICODE, and VGA font issues. Therefore, assume that this is
47685 such that "better than nothing".
47687 * font/manager.c: New file.
47688 * include/pupa/font.h: Likewise.
47689 * include/pupa/i386/pc/vga.h: Likewise.
47690 * term/i386/pc/vga.c: Likewise.
47691 * util/unifont2pff.rb: Likewise.
47693 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47694 (pkgdata_MODULES): Added vga.mod and font.mod.
47695 (vga_mod_SOURCES): New variables.
47696 (vga_mod_CFLAGS): Likewise.
47697 (font_mod_SOURCES): Likewise.
47698 (font_mod_CFLAGS): Likewise.
47700 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47702 * include/pupa/term.h: Include pupa/err.h.
47703 (struct pupa_term): Added init and fini.
47704 Changed the argument of putchar to pupa_uint32_t.
47706 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47707 (pupa_console_real_putchar): New prototype.
47708 (pupa_console_putchar): Removed.
47709 (pupa_console_checkkey): Exported.
47710 (pupa_console_getkey): Likewise.
47712 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47715 * kern/term.c (pupa_term_set_current): Rewritten.
47716 (pupa_putchar): Likewise.
47717 (pupa_putcode): New function.
47719 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47720 (pupa_console_real_putchar): ... this.
47721 (pupa_vga_set_mode): New function.
47722 (pupa_vga_get_font): Likewise.
47724 * normal/command.c: Include pupa/term.h.
47725 (terminal_command): New function.
47726 (pupa_command_init): Register the command "terminal".
47728 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47729 (DISP_UP): Likewise.
47730 (DISP_RIGHT): Likewise.
47731 (DISP_DOWN): Likewise.
47732 (DISP_HLINE): Likewise.
47733 (DISP_VLINE): Likewise.
47734 (DISP_UL): Likewise.
47735 (DISP_UR): Likewise.
47736 (DISP_LL): Likewise.
47737 (DISP_LR): Likewise.
47739 * term/i386/pc/console.c (pupa_console_putchar): New function.
47741 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47743 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47744 FIX. Reverse the path_list.
47746 * include/pupa/normal.h: Export pupa_register_command and
47747 pupa_unregister_command.
47749 * hello/hello.c (pupa_cmd_hello): New module.
47750 * conf/i386-pc.rmk: Added hello.mod.
47752 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47754 * kern/i386/pc/lzo1x.S: New file.
47756 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47757 (compress_kernel): New variable.
47758 (generate_image): Heavily modified to support compressing a
47759 large part of the core image.
47761 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47763 (pupa_util_load_image): New function.
47765 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47766 (pupa_compressed_size): New variable.
47767 (codestart): Enable Gate A20 here.
47768 Decompress the compressed part of the core image.
47769 Rearrange the code to put functions and variables which are
47770 required for initialization in the non-compressed part.
47773 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47776 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47778 * include/pupa/i386/pc/kernel.h
47779 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47780 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47781 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47782 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47783 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47785 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47787 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47788 (Utility#rule): Likewise.
47790 * configure.ac: Check if LZO is available.
47792 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47794 * include/pupa/normal.h: New file.
47795 * include/pupa/setjmp.h: Likewise.
47796 * include/pupa/i386/setjmp.h: Likewise.
47797 * normal/cmdline.c: Likewise.
47798 * normal/command.c: Likewise.
47799 * normal/main.c: Likewise.
47800 * normal/menu.c: Likewise.
47801 * normal/i386/setjmp.S: Likewise.
47803 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47804 (pupa_rescue_cmd_initrd): Likewise.
47806 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47809 * kern/i386/pc/startup.S (translation_table): New variable.
47810 (translate_keycode): New function.
47811 (pupa_console_getkey): Call translate_keycode.
47813 * kern/rescue.c (attempt_normal_mode): New function.
47814 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47815 it failed, print a message.
47817 * kern/mm.c (pupa_real_malloc): Print more information when a
47818 free magic is broken.
47819 (pupa_free): If the first free header is not free actually, set
47822 * kern/main.c (pupa_load_normal_mode): Just load the module
47824 (pupa_main): Don't print the message
47825 "Entering into rescue mode..." here.
47827 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47829 (pupa_rescue_cmd_initrd): Likewise.
47830 (pupa_rescue_cmd_initrd): Likewise.
47832 * include/pupa/symbol.h (FUNCTION): Specify the type.
47833 (VARIABLE): Likewise.
47835 * include/pupa/err.h (pupa_err_t): Added
47836 PUPA_ERR_UNKNOWN_COMMAND.
47838 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47839 (pupa_dl_get_prefix): Likewise.
47841 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47842 Added _chain.mod and _linux.mod instead of chain.mod and
47844 (chain_mod_SOURCES): Renamed to ...
47845 (_chain_mod_SOURCES): ... this.
47846 (chain_mod_CFLAGS): Renamed to ...
47847 (_chain_mod_CFLAGS): ... this.
47848 (linux_mod_SOURCES): Renamed to ...
47849 (_linux_mod_SOURCES): ... this.
47850 (linux_mod_CFLAGS): Renamed to ...
47851 (_linux_mod_CFLAGS): ... this.
47852 (normal_mod_SOURCES): New variable.
47853 (normal_mod_CFLAGS): Likewise.
47854 (normal_mod_ASFLAGS): Likewise.
47856 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47858 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47861 * kern/dl.c (pupa_dl_ref): Refer depending modules
47863 (pupa_dl_unref): Unrefer depending modules recursively.
47864 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47865 a module is unloaded before one depending on that module is
47867 (pupa_dl_unload): Unload depending modules explicitly,
47870 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47872 * include/pupa/i386/pc/linux.h: New file.
47873 * loader/i386/pc/linux.c: Likewise.
47875 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47877 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47878 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47879 of PUPA_CHAINLOADER_BOOT_SECTOR.
47881 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47882 (pupa_linux_prot_size): New variable.
47883 (pupa_linux_tmp_addr): Likewise.
47884 (pupa_linux_real_addr): Likewise.
47885 (pupa_linux_boot_zimage): New function.
47886 (pupa_linux_boot_bzimage): Likewise.
47888 * kern/i386/pc/init.c (struct mem_region): New structure.
47889 (MAX_REGIONS): New macro.
47890 (mem_regions): New variable.
47891 (num_regions): Likewise.
47892 (pupa_os_area_addr): Likewise.
47893 (pupa_os_area_size): Likewise.
47894 (pupa_lower_mem): Likewise.
47895 (pupa_upper_mem): Likewise.
47896 (add_mem_region): New function.
47897 (compact_mem_regions): Likewise.
47898 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47899 the size of the conventional memory and that of so-called upper
47900 memory (before the first memory hole).
47901 Instead of adding each found region to free memory, use
47902 add_mem_region and add them after removing overlaps.
47903 Also, add only 1/4 of the upper memory to free memory. The rest
47904 is used for loading OS images. Maybe this is ad hoc, but this
47905 makes it much easier to relocate OS images when booting.
47907 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47908 (pupa_enter_rescue_mode): Don't register initrd and module.
47910 * kern/mm.c: Include pupa/dl.h.
47912 * kern/main.c: Include pupa/file.h and pupa/device.h.
47914 * kern/loader.c (pupa_loader_load_module_func): Removed.
47915 (pupa_loader_load_module): Likewise.
47917 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47920 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47921 (pupa_linux_tmp_addr): Likewise.
47922 (pupa_linux_real_addr): Likewise.
47923 (pupa_linux_boot_zimage): Likewise.
47924 (pupa_linux_boot_bzimage): Likewise.
47926 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47927 (pupa_upper_mem): Likewise.
47928 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47929 module is too dangerous.
47931 * include/pupa/loader.h (pupa_os_area_addr): Declared.
47932 (pupa_os_area_size): Likewise.
47933 (pupa_loader_set): Remove the first argument. Loader doesn't
47934 manage modules or initrd any longer.
47935 (pupa_loader_load_module): Removed.
47937 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
47938 (linux_mod_SOURCES): New variable.
47939 (linux_mod_CFLAGS): Likewise.
47941 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
47943 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
47944 the length of a blocklist correctly.
47946 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
47947 Use ioctl only if the OS file is a block device.
47948 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
47949 not very useful for normal files.
47951 * kern/main.c (pupa_set_root_dev): New function.
47952 (pupa_load_normal_mode): Likewise.
47953 (pupa_main): Call those above.
47955 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
47958 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
47960 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
47962 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
47963 (setup): Configure the installed partition information and the
47966 * loader/i386/pc/chainloader.c (my_mod): New variable.
47967 (pupa_chainloader_unload): New function.
47968 (pupa_rescue_cmd_chainloader): Refer itself.
47969 (PUPA_MOD_INIT): Save its own module in MY_MOD.
47971 * kern/i386/pc/startup.S (install_partition): Removed.
47972 (version_string): Likewise.
47973 (config_file): Likewise.
47974 (pupa_install_dos_part): New variable.
47975 (pupa_install_bsd_part): Likewise.
47976 (pupa_prefix): Likewise.
47977 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
47979 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
47981 (make_install_device): New function.
47982 (pupa_machine_init): Set the dl prefix.
47984 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
47985 (buf): Renamed to ...
47986 (linebuf): ... this.
47987 (pupa_rescue_cmd_prefix): New function.
47988 (pupa_rescue_cmd_insmod): Likewise.
47989 (pupa_rescue_cmd_rmmod): Likewise.
47990 (pupa_rescue_cmd_lsmod): Likewise.
47991 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
47994 * kern/mm.c (pupa_memalign): If failed even after invalidating
47995 disk caches, unload unneeded modules and retry.
47997 * kern/misc.c (pupa_memmove): New function.
47998 (pupa_memcpy): Removed.
47999 (pupa_strcpy): New function.
48000 (pupa_itoa): Made static.
48002 * kern/dl.c (pupa_dl_iterate): New function.
48003 (pupa_dl_ref): Likewise.
48004 (pupa_dl_unref): Likewise.
48005 (pupa_dl_unload): Return if succeeded or not.
48006 (pupa_dl_unload_unneeded): New function.
48007 (pupa_dl_unload_all): Likewise.
48008 (pupa_dl_init): Renamed to ...
48009 (pupa_dl_set_prefix): ... this.
48010 (pupa_dl_get_prefix): New function.
48012 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48013 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48014 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48015 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48016 (pupa_install_dos_part): Declared.
48017 (pupa_install_bsd_part): Likewise.
48018 (pupa_prefix): Likewise.
48019 (pupa_boot_drive): Likewise.
48021 * include/pupa/types.h: Fix a typo.
48023 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48025 (pupa_memmove): Declared.
48026 (pupa_strcpy): Likewise.
48028 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48029 pupa_mod_init takes one argument, its own module.
48030 (pupa_dl_unload_unneeded): Declared.
48031 (pupa_dl_unload_all): Likewise.
48032 (pupa_dl_ref): Likewise.
48033 (pupa_dl_unref): Likewise.
48034 (pupa_dl_iterate): Likewise.
48035 (pupa_dl_init): Renamed to ...
48036 (pupa_dl_set_prefix): ... this.
48037 (pupa_dl_get_prefix): Declared.
48039 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
48040 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
48042 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48043 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48045 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48046 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48048 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48050 * util/i386/pc/pupa-setup.c (setup): Define the internal
48051 function find_first_partition_start at the top level, because GCC
48052 3.0.x cannot compile internal functions in deeper scopes
48054 (find_root_device): Use lstat instead of stat.
48055 Don't follow symbolic links.
48056 Fix the path-constructing code.
48058 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48059 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48060 by a BLKGETSIZE ioctl first, because block devices don't fill
48061 the member st_mode of the structure stat on Linux.
48062 [__linux__] (linux_find_partition): Use a temporary buffer
48063 REAL_DEV for the working space. Copy it to DEV before returning.
48064 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48065 buffer cache consistent.
48066 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48067 strncmp. The previous value was merely wrong.
48068 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48070 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48071 FAT size is 12. The previous value was merely wrong.
48073 * kern/main.c (pupa_main): Don't split the starting message from
48076 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48077 LF, because BIOS goes crazy about character attributes in this
48080 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48082 * include/i386/pc/util/biosdisk.h: New file.
48083 * util/i386/pc/biosdisk.c: Likewise.
48084 * util/i386/pc/pupa-setup.c: Likewise.
48086 * Makefile.in (INCLUDE_DISTFILES): Added
48087 include/pupa/i386/pc/util/biosdisk.h.
48088 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48089 directory util/i386/pc.
48090 (install-local): Added a rule for sbin_UTILITIES.
48091 (uninstall): Likewise.
48093 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48095 * util/misc.c (xrealloc): New function.
48096 (pupa_malloc): Likewise.
48097 (pupa_free): Likewise.
48098 (pupa_realloc): Likewise.
48099 (pupa_stop): Likewise.
48100 (pupa_putchar): Likewise.
48102 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48104 * include/pupa/util/misc.h (xrealloc): Declared.
48106 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48108 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48109 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48111 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48112 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48114 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48115 way should be implemented.
48116 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48118 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48119 the size of NAME for safety.
48120 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48123 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48124 (pupa_setup_SOURCES): Likewise.
48126 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48128 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48130 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48131 bunch of pushl's from pusha, because this destroys the return
48134 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48136 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48137 This means that any missing prototypes could be fatal. Also, you
48138 must take care when writing assembly code. See the comments at
48139 the beginning of startup.S, for more details.
48141 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48142 compilation mechanism.
48143 (pupa_chainloader_real_boot): Likewise.
48144 (pupa_biosdisk_rw_int13_extensions): Likewise.
48145 (pupa_biosdisk_rw_standard): Likewise.
48146 (pupa_biosdisk_check_int13_extensions): Likewise.
48147 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48148 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48149 (pupa_get_memsize): Likewise.
48150 (pupa_get_mmap_entry): Likewise.
48151 (pupa_console_putchar): Likewise.
48152 (pupa_console_setcursor): Likewise.
48153 (pupa_getrtsecs): Use pushl instead of push.
48155 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48156 memory instead of the stack for a mmap entry, because some
48157 BIOSes may ignore the maximum size and overflow.
48159 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48161 * genmk.rb (PModule#rule): Compile automatically generated
48162 sources with module-specific CFLAGS as well as other sources.
48164 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48166 * configure.ac: Check ld.
48167 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48168 respectively, before checking endianness and sizes.
48170 * Makefile.in (LD): New variable.
48172 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48174 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48176 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48178 * Changelog: New file.