1 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
3 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
6 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
8 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
9 Fix few warining messages and leaks while on it.
11 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
13 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
14 links under grub-core/lib/libgcrypt-grub/mpi.
16 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
18 Fix ia64-efi image generation on big-endian machines. Deduplicate
19 some code while on it.
20 Reported by: Leif Lindholm.
22 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
24 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
27 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
29 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
31 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
33 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
36 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
38 * grub-core/normal/term.c: Few more fixes for menu entry editor
40 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
42 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
44 * grub-core/normal/term.c: Few more fixes for menu entry editor
46 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
48 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
50 * conf/Makefile.extra-dist (EXTRA_DIST): Add
51 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
53 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
55 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
56 instead of hardcoding grub.mo.
58 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
60 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
62 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
64 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
65 grub-core/disk/geli.c.
67 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
69 * util/grub-mkfont.c: Prefer enum to #define.
71 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
73 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
75 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
77 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
79 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
81 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
83 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
85 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
87 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
89 * include/grub/bsdlabel.h: Use enums.
91 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
93 Move GRUB_CHAR_BIT to types.h.
95 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
97 * docs/grub.texi: Document more user commands.
99 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
101 * docs/grub.texi: Document menuentry --id option.
103 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
105 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
107 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
109 Unify file copying setup across different install scripts. Add
110 options for performing partial install.
112 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
113 2013-04-04 Peter Jones <pjones@redhat.com>
115 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
117 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
119 Use TSC as a possible time source on i386-ieee1275.
121 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
123 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
126 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
128 * util/grub-setup.c (setup): Handle some corner cases.
130 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
132 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
134 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
136 * grub-core/commands/verify.c: Save verified file to avoid it being
137 tampered with after verification was done.
139 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
141 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
142 reported width by one to compensate for curesor algorithm problem.
144 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
146 Fix screen corruption in menu entry editor and simplify the code
149 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
151 * util/grub-mount.c (fuse_init): Return error if fuse_main
154 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
156 * include/grub/elf.h: Add missing ARM relocation codes and fix
159 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
161 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
163 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
164 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
166 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
167 into account when calculating radius.
169 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
171 * grub-core/gfxmenu/view.c: Fix off-by-one error.
173 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
175 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
177 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
179 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
180 missing closing bracket.
182 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
184 * INSTALL: Mention xorriso requirement.
186 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
188 * grub-core/commands/verify.c: Fix hash algorithms values for
189 the first three hashes - they start with 1, not with 0.
191 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
193 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
194 Try terminating EFI services several times due to quirks in some
197 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
199 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
200 skipping Event, Device, Processor, PowerRes, ThermalZone, and
201 BankField extended opcodes.
202 (get_sleep_type): Add minimal scope handling (just enough to
203 handle setting the scope to the root path).
204 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
205 * include/grub/acpi.h: Add enumeration values for Event, Device,
206 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
208 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
210 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
213 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
215 * grub-core/disk/ahci.c: Give more time for AHCI request.
217 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
219 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
222 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
224 Replace the region at 0 from coreboot tables to available in BSD
227 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
229 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
232 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
234 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
237 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
239 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
240 handling of multi-device filesystems.
242 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
244 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
247 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
249 Add new 'proc' filesystem framework and put luks_script into it.
251 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
253 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
256 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
258 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
260 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
262 Add ability to generate newc additions on runtime.
264 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
266 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
269 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
271 * po/POTFILES.in: Regenerate.
273 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
275 * grub-core/commands/verify.c (hashes): Add several hashes
278 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
280 Slight improve in USB-related boot-time checkpoints.
282 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
284 * grub-core/commands/boottime.c: Fix copyright header.
286 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
288 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
289 coreboot tables content. Support for cbmemc.
291 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
293 Fix a conflict between ports structures with 2 controllers of
296 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
298 * include/grub/boottime.h: Add missing file.
300 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
302 Initialize USB ports in parallel to speed-up boot.
304 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
306 Fix USB devices not being detected when requested
307 due to delayed attach.
309 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
311 Implement boot time analysis framework.
313 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
315 Remove get_endpoint_descriptor and change all functions needing
316 descriptor to just receive it as argument rather than endpoint
319 2013-03-19 Aleš Nesrsta <starous@volny.cz>
321 Better estimate the maximum USB transfer size.
323 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
325 Resend a packet if we got the wrong buffer in status.
327 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
329 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
330 multiplication rather than division.
332 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
334 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
337 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
339 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
340 operations to have intended shifts and not divisions.
342 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
344 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
345 intended shifts rather than division.
347 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
349 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
350 computation for some years before epoch. Avode confusing division
353 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
355 * grub-core/video/i386/pc/vbe.c
356 (grub_video_vbe_print_adapter_specific_info): Replace division by
359 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
361 Adjust types in gdb module to have intended unsigned shifts rather than
364 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
366 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
367 maximum size is 4G - 1 on hfs
369 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
371 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
373 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
375 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
378 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
380 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
381 causing gcc error with gcc 4.7.1.
383 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
385 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
386 dereference null pointer. While the code is technically correct, gcc
387 may eliminate a null check if pointer is already dereferenced.
389 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
391 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
393 * grub-core/normal/term.c (read_terminal_list): Likewise.
395 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
397 Lift up core size limits on some platforms. Fix potential memory
398 corruption with big core on small memory systems. Document remaining
401 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
403 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
406 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
408 Remove all trampoline support. Add -Wtrampolines when
409 present. Remove symbols used for trampolines to make
410 link fail if trampolines are present.
412 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
414 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
415 append out of its parent.
417 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
419 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
422 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
424 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
425 all vars to a macro. All users updated.
427 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
429 * grub-core/disk/ieee1275/nand.c: Fix compilation on
432 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
434 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
436 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
438 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
440 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
442 Move to more hookless approach in IEEE1275 devices handling.
444 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
446 * grub-core/kern/term.c (grub_term_normal_color),
447 (grub_term_highlight_color): Add back lost defaults.
449 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
451 Make elfload not use hooks. Opt for flags and iterators instead.
453 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
455 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
456 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
458 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
460 * grub-core/script/execute.c (gettext_append): Remove nested functions.
462 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
464 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
465 hook pass-through parameter. All users updated and unnested.
467 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
469 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
472 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
474 * grub-core/fs/hfs.c: Remove nested functions.
476 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
478 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
480 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
482 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
484 * util/grub-editenv.c (list_variables): Move print_var out of its
487 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
489 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
492 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
494 * grub-core/gentrigtables.c: Make tables const.
496 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
498 Remove nested functions from videoinfo iterators.
500 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
502 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
503 for 64-bit platforms.
505 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
507 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
508 a FOR_CHILDREN macro.
510 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
512 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
513 platform from firmware path.
515 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
517 Enable linux16 on non-BIOS systems for i.a. memtest.
519 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
521 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
523 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
525 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
526 Fix end of table condition.
528 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
530 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
533 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
535 * grub-core/fs/jfs.c: Remove nested functions.
537 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
539 * grub-core/fs/minix.c: Remove nested functions.
541 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
543 * grub-core/fs/iso9660.c: Remove nested functions.
545 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
547 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
550 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
552 * util/grub-fstest.c: Remove nested functions.
554 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
556 * grub-core/loader/machoXX.c: Remove nested functions.
558 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
560 Remove nested functions from disk and file read hooks.
562 * include/grub/disk.h (grub_disk_read_hook_t): New type.
563 (struct grub_disk): Add read_hook_data member.
564 * include/grub/file.h (struct grub_file): Likewise.
565 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
570 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
572 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
573 Fix off by one error in enumerating extended partitions.
575 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
577 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
578 memory leak if device name is not found.
580 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
582 * grub-core/normal/menu_entry.c (update_screen): remove
583 unused variable `off' which caused scroll down arrow to be always shown.
585 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
587 * grub-core/normal/menu_entry.c (insert_string): fix off by one
588 access to unallocated memory.
590 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
592 * Makefile.util.def: Add partmap/msdos.c to common library.
593 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
594 * grub-core/disk/ldm.c: Check for existence of
595 GRUB_PC_PARTITION_TYPE_LDM.
597 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
599 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
600 sizes and display sector size.
602 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
604 Implement new command cmosdump.
606 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
608 Support Openfirmware disks with non-512B sectors.
610 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
612 * (grub_ofdisk_get_block_size): New function.
613 * (grub_ofdisk_prepare): Use the correct block size.
614 * (grub_ofdisk_read): Likewise.
615 * (grub_ofdisk_write): Likewise.
616 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
619 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
621 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
623 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
625 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
628 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
630 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
633 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
635 Implement USBDebug (full USB stack variant).
637 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
639 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
640 unless they have unexpected values.
642 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
644 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
647 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
649 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
650 zero-out of port structure.
652 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
654 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
655 of extended attributes.
657 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
659 * util/grub-install.in: change misleading comment about
662 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
664 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
665 when menu highlight color isn't set.
667 2013-01-27 C. Masloch <pushbx@38.de>
669 Improve FreeDOS direct loading support compatibility.
671 * include/grub/i386/relocator.h (grub_relocator16_state):
673 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
675 (grub_relocator16_boot): Handle %ebp.
676 * grub-core/lib/i386/relocator16.S: Likewise.
677 * grub-core/loader/i386/pc/freedos.c:
678 Load BPB to pass kernel which partition to load from.
679 Check that kernel file is not too large.
680 Set register dl to BIOS unit number as well.
682 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
684 * util/grub-reboot.in (usage): Document the need for
686 * util/grub-set-default.in (usage): Likewise.
687 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
689 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
691 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
692 than defining WORDS_BIGENDIAN manually.
694 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
696 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
699 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
701 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
703 (blit_comb: add_device_width): Likewise.
705 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
707 Remove nested functions from USB iterators.
709 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
710 (grub_usb_controller_iterate_hook_t): Likewise.
711 (grub_usb_iterate): Add hook_data argument.
712 (grub_usb_controller_iterate): Likewise.
713 (struct grub_usb_controller_dev.iterate): Likewise.
715 Update all implementations and callers.
717 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
719 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
720 margin when not needed.
722 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
724 Make color variables global instead of it being per-terminal.
726 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
728 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
731 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
733 Fix powerpc and sparc64 build failures caused by un-nesting memory
736 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
738 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
739 parameter declarations.
741 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
743 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
745 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
747 Improve spkmomdem reliability by adding a separator between bytes.
749 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
751 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
752 an Acer registration utility with several sightings in the wild.
753 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
755 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
757 Remove nested functions from filesystem directory iterators.
759 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
760 (struct grub_fs.dir): Add hook_data argument.
762 Update all implementations and callers.
764 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
766 * docs/grub.texi (Multi-boot manual config): Fix typo for
769 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
771 * util/grub-mkimage.c (main): Postpone freeing arguments.output
772 until after its use in generate_image.
774 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
776 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
777 initrd size to addr_min, since the initrd will be allocated after
780 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
782 * conf/Makefile.common: Fix autogen rules to pass definition
783 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
785 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
787 * include/grub/elf.h: Update ARM definitions based on binutils.
789 2013-01-20 Aleš Nesrsta <starous@volny.cz>
791 Split long USB transfers into short ones.
793 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
795 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
796 is interrupted by ESC.
798 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
800 * util/grub-script-check.c (main): Uniform the error message.
802 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
804 Remove nested functions from ELF iterators.
806 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
808 Remove nested functions from device iterators.
810 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
811 (grub_arc_iterate_devs): Add hook_data argument.
812 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
813 (struct grub_ata_dev.iterate): Add hook_data argument.
814 * include/grub/device.h (grub_device_iterate_hook_t): New type.
815 (grub_device_iterate): Add hook_data argument.
816 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
817 (struct grub_disk_dev.iterate): Add hook_data argument.
818 (grub_disk_dev_iterate): Likewise.
819 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
821 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
823 * include/grub/partition.h (grub_partition_iterate_hook_t): New
825 (struct grub_partition_map.iterate): Add hook_data argument.
826 (grub_partition_iterate): Likewise.
827 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
828 (struct grub_scsi_dev.iterate): Add hook_data argument.
832 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
834 Fix typos for "developer" and "development".
836 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
838 Add license header to spkmodem-recv.c.
840 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
842 Rewrite spkmodem to use PIT for timing. Double the speed.
844 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
846 Add new command pcidump.
848 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
850 New terminal outputs using serial: morse and spkmodem.
852 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
854 Improve bidi handling in entry editor.
856 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
858 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
859 argument to prevent name collision.
861 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
863 Remove nested functions from script reading and parsing.
865 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
866 getline_data argument, passed to getline.
867 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
868 getline_data argument, passed to grub_parser_split_cmdline.
869 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
870 lexerstate->getline_data to lexerstate->getline.
871 (grub_script_lexer_init): Add getline_data argument, saved in
872 lexerstate->getline_data.
873 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
874 argument, passed to grub_script_parse.
875 * grub-core/script/script.c (grub_script_parse): Add getline_data
876 argument, passed to grub_script_lexer_init.
877 * include/grub/parser.h (grub_parser_split_cmdline): Update
878 prototype. Update all callers to pass appropriate getline data.
879 (struct grub_parser.parse_line): Likewise.
880 (grub_rescue_parse_line): Likewise.
881 * include/grub/reader.h (grub_reader_getline_t): Add void *
883 * include/grub/script_sh.h (struct grub_lexer_param): Add
885 (grub_script_parse): Update prototype. Update all callers to pass
886 appropriate getline data.
887 (grub_script_lexer_init): Likewise.
888 (grub_normal_parse_line): Likewise.
890 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
892 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
893 static instead of nested. Rename to ...
894 (grub_parser_execute_getline): ... this.
895 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
897 * grub-core/normal/main.c (read_config_file: getline): Make static
898 instead of nested. Rename to ...
899 (read_config_file_getline): ... this.
900 (grub_normal_read_line): Add unused data argument.
901 * grub-core/script/execute.c (grub_script_execute_sourcecode:
902 getline): Make static instead of nested. Rename to ...
903 (grub_script_execute_sourcecode_getline): ... this.
904 * util/grub-script-check.c (main: get_config_line): Make static
907 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
909 Remove nested functions from memory map iterators.
911 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
912 argument, passed to hook.
913 * grub-core/kern/i386/coreboot/mmap.c
914 (grub_linuxbios_table_iterate): Likewise.
915 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
917 (grub_machine_mmap_iterate): Add hook_data argument.
918 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
919 Add hook_data argument, passed to hook.
920 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
922 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
924 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
926 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
928 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
930 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
932 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
933 (grub_machine_mmap_iterate): Likewise.
934 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
935 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
937 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
938 Remove NESTED_FUNC_ATTR from here and from all users.
939 (grub_mmap_iterate): Update prototype.
940 (grub_efi_mmap_iterate): Update prototype. Update all callers to
941 pass appropriate hook data.
942 (grub_machine_mmap_iterate): Likewise.
944 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
945 static instead of nested.
946 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
948 (lsmmap_hook): ... this.
949 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
951 (grub_efiemu_mmap_fill: fill_hook): Likewise.
952 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
953 heap_init): Likewise.
954 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
956 (mmap_iterate_hook): ... this.
957 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
959 * grub-core/lib/ieee1275/relocator.c
960 (grub_relocator_firmware_get_max_events: count): Likewise.
961 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
963 (grub_relocator_firmware_fill_events_iter): ... this.
964 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
965 hook): Likewise. Rename to ...
966 (grub_relocator_alloc_chunk_align_iter): ... this.
967 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
969 (generate_e820_mmap_iter): ... this.
970 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
972 (count_hook): ... this.
973 (grub_linux_boot: hook): Likewise. Rename to ...
974 (grub_linux_boot_mmap_find): ... this.
975 (grub_linux_boot: hook_fill): Likewise. Rename to ...
976 (grub_linux_boot_mmap_fill): ... this.
977 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
978 hook): Likewise. Rename to ...
979 (grub_fill_multiboot_mmap_iter): ... this.
980 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
981 hook): Likewise. Rename to ...
982 (count_hook): ... this.
983 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
984 hook): Likewise. Rename to ...
985 (grub_fill_multiboot_mmap_iter): ... this.
986 * grub-core/loader/powerpc/ieee1275/linux.c
987 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
988 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
989 Likewise. Rename to ...
990 (alloc_phys_choose): ... this.
991 (determine_phys_base: get_physbase): Likewise.
992 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
993 find_hook): Likewise.
994 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
995 (malloc_hook: count_hook): Likewise.
996 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
997 Likewise. Rename to ...
998 (lower_hook): ... this.
999 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1000 (upper_hook): ... this.
1001 (grub_mmap_get_post64: hook): Likewise. Rename to ...
1002 (post64_hook): ... this.
1003 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
1004 Likewise. Rename to ...
1005 (lower_hook): ... this.
1006 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1007 (upper_hook): ... this.
1008 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
1009 (grub_mmap_iterate: fill_hook): Likewise.
1010 (fill_mask): Pass addr and mask within a single struct.
1011 (grub_cmd_badram: hook): Make static instead of nested. Rename
1013 (badram_iter): ... this.
1014 (grub_cmd_cutmem: hook): Likewise. Rename to ...
1015 (cutmem_iter): ... this.
1017 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1019 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
1020 delimit path in strings using quotes.
1021 * util/getroot.c (grub_guess_root_devices): Likewise.
1022 (grub_make_system_path_relative_to_its_root): Likewise.
1023 * util/grub-probe.c (probe): Likewise.
1024 * util/ieee1275/ofpath.c (find_obppath): Likewise.
1025 (xrealpath): Likewise.
1027 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1029 Fix compilation with older compilers.
1031 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
1032 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
1034 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
1035 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
1036 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
1038 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
1039 * include/grub/crypto.h: Add type defines.
1040 * util/import_gcrypth.sed: Remove duplicate type defines.
1042 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1044 New command list_trusted.
1046 * grub-core/commands/verify.c (grub_cmd_list): New function.
1048 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
1050 * util/grub-mkimage.c (generate_image): Fix "size of public key"
1053 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
1055 Remove nested functions from PCI iterators.
1057 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1058 passed to hook. Update all callers to pass appropriate hook data.
1059 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1060 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1061 Remove NESTED_FUNC_ATTR from here and from all users.
1062 (grub_pci_iterate): Update prototype.
1063 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1064 instead of nested. Rename to ...
1065 (grub_cs5536_find_iter): ... this.
1066 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1067 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1069 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1071 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1073 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1075 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1076 * grub-core/video/radeon_fuloong2e.c
1077 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1078 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1079 find_card): Likewise.
1080 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1083 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1085 * grub-core/commands/verify.c: Mark messages for translating.
1087 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1089 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1092 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1094 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1097 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1099 * autogen.sh: Do not try to delete nonexistant files.
1100 * util/import_gcrypth.sed: Add some missing header removals.
1102 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
1104 Clean up dangling references to grub-setup.
1105 Fixes Ubuntu bug #1082045.
1107 * docs/grub.texi (Images): Refer generally to grub-install rather
1108 than directly to grub-setup.
1109 (Installing GRUB using grub-install): Remove direct reference to
1111 (Device map) Likewise.
1112 (Invoking grub-install): Likewise.
1113 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1114 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1115 * util/grub-install.in (usage): Likewise.
1117 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1118 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1120 * configure.ac: Remove grub_setup output variable.
1122 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1124 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1125 grub-setup to grub-sparc64-setup.
1127 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1129 Import gcrypt public-key cryptography and implement signature checking.
1131 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1133 * grub-core/fs/ntfs.c: Ue more appropriate types.
1134 * grub-core/fs/ntfscomp.c: Likewise.
1135 * include/grub/ntfs.h: Likewise.
1137 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1139 Support Apple FAT binaries on non-Apple platforms.
1141 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1142 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1144 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1147 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1149 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1152 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1154 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1155 explicitly zeroing elements.
1156 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1157 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1158 of elements in a structure already allocated using grub_zalloc.
1159 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1161 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1163 * docs/grub.texi (grub_cpu): New subsection.
1164 (grub_platform): Likewise.
1166 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1168 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1170 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1172 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1175 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1177 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1178 * grub-core/fs/ntfscomp.c: Likewise.
1179 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1180 (grub_ntfs_comp): Likewise.
1182 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1184 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1186 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1187 of groups_per_block. All users updated.
1189 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1191 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1192 grub_error properly.
1193 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1194 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1196 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1198 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1199 always in /boot/zfs.
1200 Reported by: Yuta Satoh.
1202 2013-01-03 Yuta Satoh <nigoro>
1204 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1207 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1209 * configure.ac: Extend -Wno-trampolines to host.
1211 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1213 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1216 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1218 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1219 (Invoking grub-script-check): Likewise.
1221 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1223 * docs/grub.texi (Invoking grub-mount): New section.
1224 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1226 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1228 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1229 test failures, so that a failing unit test correctly causes 'make
1232 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1234 Fix failing printf test.
1236 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1237 '$' in the correct order when collecting type information.
1239 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1241 * docs/grub.texi (configfile): Explain environment variable
1243 (source): New section.
1244 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1246 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
1248 Remove several trivially-unnecessary uses of nested functions.
1250 * grub-core/commands/i386/pc/sendkey.c
1251 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1253 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1255 (legacy_file_getline): ... this.
1256 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1258 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1259 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1261 (probe_dummy_iter): ... this.
1262 * grub-core/kern/i386/coreboot/mmap.c
1263 (grub_linuxbios_table_iterate: check_signature): Likewise.
1264 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1265 check_varstate): Likewise. Mark inline.
1266 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1267 an additional parameter.
1268 (find_long: fnd_long): Likewise. Pass two additional parameters.
1269 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1270 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1271 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1272 Likewise. Rename to ...
1273 (grub_cmos_find_port_iter): ... this.
1274 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1276 (find_rtc_iter): ... this.
1278 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1279 function directly into the function body, since it is only called
1282 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
1284 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1285 __attribute__ ((unused)).
1286 * grub-core/video/bochs.c (find_card): Likewise.
1287 * grub-core/video/cirrus.c (find_card): Likewise.
1288 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1289 * grub-core/video/sis315pro.c (find_card): Likewise.
1290 * grub-core/video/sm712.c (find_card): Likewise.
1292 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1294 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1295 Fixes Savannah bug #37821.
1297 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1299 Apply program name transformations at build-time rather than at
1300 run-time. Fixes Debian bug #696465.
1302 * acinclude.m4 (grub_TRANSFORM): New macro.
1303 * configure.ac: Create output variables with transformed names for
1305 * util/bash-completion.d/grub-completion.bash.in: Use
1306 pre-transformed variables for program names.
1307 * util/grub-install.in: Likewise.
1308 * util/grub-kbdcomp.in: Likewise.
1309 * util/grub-mkconfig.in: Likewise.
1310 * util/grub-mkconfig_lib.in: Likewise.
1311 * util/grub-mknetdir.in: Likewise.
1312 * util/grub-mkrescue.in: Likewise.
1313 * util/grub-mkstandalone.in: Likewise.
1314 * util/grub-reboot.in: Likewise.
1315 * util/grub-set-default.in: Likewise.
1316 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1317 * tests/util/grub-shell-tester.in: Remove unused assignment.
1318 * tests/util/grub-shell.in: Likewise.
1319 * util/grub.d/00_header.in: Likewise.
1321 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1323 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1325 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1327 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1329 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1331 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1332 Reported by: Eriks Latosheks <foresterlv>.
1334 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1336 * docs/grub.texi (Network): Update instructions on generating netboot
1339 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1341 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1342 around device name if necessarry.
1344 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1346 * util/grub-install.in: Follow the symbolic link parameter added
1347 to the file command.
1349 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1351 * util/grub-install.in: Remove stale TODO.
1353 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1355 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1356 dynamic allocation for the bootpath buffer.
1358 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1360 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1363 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1365 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1366 argument rather than font name. All users updated.
1367 (grub_gfxterm_set_window): Likewise.
1369 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1371 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1374 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1376 * util/getroot.c (convert_system_partition_to_system_disk): Support
1379 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1381 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1382 infinite loop on corrupted FS.
1384 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1386 Fix big-endian mtime.
1388 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1389 together sec and usec.
1390 (grub_ufs_dir): Use correct byteswapping for UFS time.
1392 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1394 Support big-endian UFS1.
1396 * Makefile.util.def (libgrubmods): Add ufs_be.c
1397 * grub-core/Makefile.core.def (ufs1_be): New module.
1398 * grub-core/fs/ufs_be.c: New file.
1399 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1402 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1404 * include/grub/types.h: Fix functionality unaffecting typo in
1405 GRUB_TARGET_WORDSIZE conditional macro.
1407 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1409 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1411 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1413 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1414 that /netbsd appears first (when it exists).
1416 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1418 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1419 Fixes Savannah bug #37558.
1421 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1423 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1424 description of extract_entries_configfile.
1426 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1428 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1430 (grub_cmd_linux): Likewise.
1431 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1432 preferred_lifetime. Update all users.
1434 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1436 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1437 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1439 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1441 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1442 errors from grub-probe to /dev/null, not stdout.
1444 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1446 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1449 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1451 * util/grub-install.in: Make the error message if $source_dir
1452 doesn't exist more useful.
1454 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1456 Fix grub-emu build on FreeBSD.
1458 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1459 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1461 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1462 implementation is currently Linux-specific.
1463 * util/getroot.c (exec_pipe): Define only on Linux or when either
1464 libzfs or libnvpair is unavailable.
1465 (find_root_devices_from_poolname): Remove unused path variable.
1467 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1469 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1470 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1471 should fit before end == 63.
1473 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1475 * util/grub-setup.c (write_rootdev): Remove unused core_img
1476 parameter. Update all callers.
1477 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1478 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1481 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1483 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1484 (grub_add_tab): New function.
1485 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1486 * util/grub.d/10_illumos.in: Likewise.
1487 * util/grub.d/10_kfreebsd.in: Likewise.
1488 * util/grub.d/10_linux.in: Likewise.
1489 * util/grub.d/10_netbsd.in: Likewise.
1490 * util/grub.d/10_windows.in: Likewise.
1491 * util/grub.d/10_xnu.in: Likewise.
1492 * util/grub.d/20_linux_xen.in: Likewise.
1493 * util/grub.d/30_os-prober.in: Likewise.
1495 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1497 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1498 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1499 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1500 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1501 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1503 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1504 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1506 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1508 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1510 Reported by: BURETTE, Bernard.
1512 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1514 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1517 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1519 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1520 IEEE1275 machines. Fixes powerpc-emu compilation.
1521 * include/grub/terminfo.h: Likewise.
1523 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1525 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1527 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1529 (efiemu_set_variable): Make vendor_guid a const pointer.
1531 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1533 Don't require grub-mkconfig_lib to generate manpages for programs.
1535 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1536 dependencies, don't add grub-mkconfig_lib.
1537 (program): Pass empty adddeps.
1538 (script): Pass grub-mkconfig_lib as adddeps.
1540 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1542 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1543 * util/getroot.c (grub_find_device): Likewise.
1544 (get_mdadm_uuid): Likewise.
1545 (grub_util_is_imsm): Likewise.
1546 (grub_util_pull_device): Likewise.
1547 * util/grub-probe.c (probe): Likewise.
1549 2012-09-10 Benoit Gschwind <gschwind>
1551 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1552 (devs): Add devpath_8.
1554 2012-09-08 Peter Jones <pjones@redhat.com>
1556 * grub-core/Makefile.core.def (efifwsetup): New module.
1557 * grub-core/commands/efi/efifwsetup.c: New file.
1558 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1559 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1561 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1563 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1565 * configure.ac: Add SuSe path.
1567 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1571 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1573 * util/import_gcry.py: Sort cipher_files, to make build system
1574 generation more deterministic.
1576 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1578 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1579 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1580 (grub_set_datetime): Likewise.
1582 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1584 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1587 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1589 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1591 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1593 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1595 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1597 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1598 required for checkouts from bzr, but it may be useful for users or
1599 distributors wishing to update translations against a tarball
1600 distribution, and it can be helpful for the tarball to be a superset
1603 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1605 * Makefile.am (EXTRA_DIST): Add
1606 grub-core/tests/boot/linux.init-mips.S,
1607 grub-core/tests/boot/linux.init-ppc.S, and
1608 grub-core/tests/boot/linux-ppc.cfg.
1610 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1612 * grub-core/mmap/mips/loongson: Remove empty directory.
1614 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1616 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1619 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1621 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1624 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1626 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1628 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1630 * po/POTFILES.in: Regenerated.
1632 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1634 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1635 (NetBSD): New subsection.
1637 2012-07-22 Ales Nesrsta <starous@volny.cz>
1639 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1640 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1642 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1644 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1645 * util/grub.d/10_hurd.in: Add missing quoting.
1646 * util/grub.d/10_illumos.in: Likewise.
1647 * util/grub.d/10_kfreebsd.in: Likewise.
1648 * util/grub.d/10_linux.in: Likewise.
1649 * util/grub.d/20_linux_xen.in: Likewise.
1651 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1653 New command `lsefi'.
1655 * grub-core/Makefile.core.def (lsefi): New module.
1656 * grub-core/commands/efi/lsefi.c: New file.
1657 * include/grub/efi/api.h: Add more GUIDs.
1659 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1661 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1662 (grub_bsd_elf32_hook): Likewise.
1663 (grub_bsd_elf64_size_hook): Likewise.
1664 (grub_bsd_elf64_hook): Likewise.
1665 (grub_bsd_load_elf): Likewise.
1667 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1669 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1670 if hash function is unavailable.
1671 (dec_stream_header): Likewise.
1673 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1675 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1678 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1680 Fix coreboot compilation.
1682 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1683 (grub_vga_text_init_real): ... this.
1684 (grub_vga_text_fini): Rename to ...
1685 (grub_vga_text_fini_real): ... this.
1687 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1689 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1691 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1693 * grub-core/lib/legacy_parse.c: Support clear and testload.
1695 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1697 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1699 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1701 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1703 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1705 * grub-core/net/tftp.c (ack): Fix endianness problem.
1706 (tftp_receive): Likewise.
1707 Reported by: Michael Davidsaver.
1709 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1711 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1713 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1715 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1716 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1717 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1719 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1721 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1723 Reported by: Stuart Hayes.
1725 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1727 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1729 * grub-core/Makefile.core.def (mda_text): New module.
1730 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1731 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1732 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1733 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1735 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1736 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1737 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1739 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1741 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1743 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1745 * grub-core/term/i386/vga_common.c: Removed.
1746 * include/grub/i386/vga_common.h: Likewise.
1747 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1748 (grub_vga_cr_bw_read): Likewise.
1749 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1750 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1751 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1752 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1753 grub_vga_cr_read/grub_vga_cr_write.
1754 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1756 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1758 * configure.ac: Bump version to 2.00.
1759 * grub-core/normal/main.c (features): Add feature_200_final.
1761 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1762 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1764 * NEWS: Fix unclarity and language mistakes.
1766 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1768 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1769 additional size to 3 pages.
1770 Reported by: Stuart Hayes.
1772 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1774 * NEWS: Add 2.00 entry.
1776 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1778 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1779 put explicit "/" for empty path.
1780 (wildcard_expand): Improve dprintf.
1782 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1784 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1785 it's equal to currnode. This can happen with "" symlink.
1787 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1789 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1790 echo shell command by printf command.
1792 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1794 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1795 the value returned by firmware is the maximal position, not diumension.
1796 (grub_terminfo_output_state): Use a more sane fallback.
1798 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1800 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1802 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1804 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1805 frequency to 150 MHz.
1807 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1811 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1813 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1815 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1817 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1819 Handle slash in HFS label.
1821 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1822 (grub_hfs_dir): Tanslate slash.
1823 (grub_hfs_label): Don't translate slash.
1825 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1827 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1828 network protocol listing since it introduces problematic dependency on
1831 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1833 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1835 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1837 Init video early on yeeloong to avoid being rebooted by watchdog.
1839 * grub-core/Makefile.am (gensm712): New target.
1840 (sm712_start.S): Likewise.
1841 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1842 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1843 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1845 * include/grub/vga.h: Move registry definitions to...
1846 * include/grub/vgaregs.h: ... here.
1848 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1850 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1853 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1855 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1856 platforms with firmware disk drivers in the core.
1858 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1860 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1861 informative verbose message.
1862 (read_lv): Handle 64-bit segment size.
1864 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1866 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1868 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1870 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1871 character but still remove trainling spaces.
1872 (grub_fat_label): Ignore archive flag.
1874 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1876 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1877 cast between linux_kernel_header and linux_kernel_params.
1879 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1881 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1883 (grub_raid6_recover_func_t): Likewise.
1884 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1885 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1887 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1889 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1891 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1895 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1896 [__NetBSD__]: Add explicit cast before bitshift.
1898 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1900 * configure.ac: Bump to 2.00~rc1.
1902 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1904 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1907 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1908 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1910 * docs/grub.texi: Fix search syntax.
1911 (Multi-boot manual config): Put msdos rather than GPT example.
1912 Grammar corrections.
1914 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1916 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1918 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1920 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1922 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1924 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1925 message on double free. Put the value of magic in case of mismatch.
1927 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1929 Speed-up video on yeeloong.
1931 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1933 (grub_video_sm712_video_fini): Unmap cached_ptr.
1934 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1935 (grub_video_sm712_set_active_render_target): Removed.
1936 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1937 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1940 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1942 Avoid flushing the same line multiple times on loongson.
1944 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1945 Step in 32 bytes and not 1 byte.
1946 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1949 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1951 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1954 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1956 Implement flow control for http.
1958 * grub-core/net/http.c (parse_line): Handle response 206.
1959 (http_receive): Stall if too many packets are in the queue.
1960 (http_establish): Fix range header.
1961 (http_seek): Fix double free.
1962 (http_close): Likewise.
1963 (http_packets_pulled): New function.
1964 (grub_http_protocol): Set http_seek
1965 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1966 (ack_real): Set window depending on i_stall.
1967 (grub_net_send_tcp_packet): Likewise.
1968 (grub_net_tcp_stall): New function.
1969 (grub_net_tcp_unstall): Likewise.
1970 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1971 (grub_net_tcp_unstall): Likewise.
1973 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1975 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1977 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1979 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1981 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1983 * tests/util/grub-shell.in: Fix a typo.
1985 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1987 Implement flow control for tftp.
1989 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1990 packets but stop only if stop condition is satisfied.
1991 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1992 `stall' instead of `eof' as stop condition.
1993 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1994 (http_err): Likewise.
1995 * grub-core/net/tftp.c (ack): Replace the first argument with data
1997 (tftp_receive): Stall if too many packets are in wait queue.
1998 (tftp_packets_pulled): New function.
1999 (grub_tftp_protocol): Set packets_pulled.
2000 * include/grub/net.h (grub_net_packets): New field count.
2001 (grub_net_put_packet): Increment count.
2002 (grub_net_remove_packet): Likewise.
2003 (grub_net_app_protocol): New field `packets_pulled'.
2004 (grub_net): New field `stall'.
2006 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2008 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
2009 sync part to handle them.
2011 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2013 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
2014 * grub-core/net/drivers/ieee1275/ofnet.c
2015 (grub_ieee1275_net_config_real): Likewise.
2017 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2019 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
2020 the direct route for server/gateway.
2022 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2024 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
2025 IP address to server name since we may not hame the DNS.
2027 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2029 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
2030 freeing random buffer on failure.
2031 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
2033 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2035 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
2037 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2039 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
2041 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
2042 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
2043 Handle malloc error correctly.
2045 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2047 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
2050 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2052 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2055 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2057 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2058 none is explicitly specified.
2060 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2062 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2065 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2067 Respect netmask from bootp/dhcp.
2069 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2070 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2071 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2073 (grub_net_add_ipv4_local): ... this.
2074 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2075 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2076 (grub_net_add_ipv4_local): New proto.
2078 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2080 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2081 determining EFI memory map size.
2083 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2085 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2087 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2089 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2090 when looking for partition separator.
2092 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2094 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2097 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2099 Restructure FAT driver to avoid hook in label reading as it hits a
2102 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2103 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2104 (grub_fat_iterate_dir): Split into ...
2105 (grub_fat_iterate_init): ... this, ...
2106 (grub_fat_iterate_fini): ... this, ...
2107 (grub_fat_iterate_dir_next): ... and this. All users updated.
2109 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2111 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2112 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2113 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2114 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2115 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2116 New fields last_key and last_key_time.
2117 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2118 extended key-esc into extended key-extended key.
2120 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2122 Avoid unnecessary memcpy of whole video buffer.
2124 * grub-core/video/fb/video_fb.c (dirty): New struct.
2125 (framebuffer): Add members current_dirty and previous_dirty.
2126 (dirty): New function.
2127 (grub_video_fb_fill_rect): Update dirty.
2128 (common_blitter): Likewise.
2129 (grub_video_fb_scroll): Likewise.
2130 (doublebuf_blit_update_screen): Copy only dirty part.
2131 (doublebuf_pageflipping_update_screen): Likewise.
2132 (grub_video_fb_doublebuf_blit_init): Init dirty.
2133 (doublebuf_pageflipping_init): Likewise.
2134 (grub_video_fb_setup): Likewise.
2136 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2138 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2141 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2143 Fix wildcard regexp dot and other special characters handling.
2144 Reported by: Robert Mabee.
2146 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2147 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2148 (split_path): Trigger expansion on '?'.
2149 (unescape): New function.
2150 (wildcard_expand): Unescape parts copied without globbing.
2151 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2152 (grub_script_arglist_to_argv): Don't unescape expansions.
2154 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2156 * include/grub/net.h (grub_net_card): New member txbufsize.
2157 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2158 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2159 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2160 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2162 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2163 compatible property to check for macs. Set
2164 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2165 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2166 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2167 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2168 (send_card_buffer): Use txbuf.
2169 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2170 nested function out of the parent while on it.
2172 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2174 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2176 (grub_ieee1275_net_config_real): Fix config pointer.
2178 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2180 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2181 filename parsing to non-block devices.
2183 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2185 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2187 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2189 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2192 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2194 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2195 UUID search command even if hints probing failed.
2197 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2199 * po/POTFILES.in: Regenerated.
2201 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2203 Speed-up video on fuloong.
2205 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2207 (grub_pci_device_unmap_range): Handle non-cached address.
2208 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2210 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2211 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2212 (grub_video_sis315pro_set_active_render_target): Removed.
2213 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2214 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2215 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2217 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2220 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2222 * docs/grub.texi (Multi-boot manual config): New section.
2224 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2226 Avoid slow read-back from VRAM.
2228 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2230 * grub-core/video/fb/video_fb.c
2231 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2232 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2233 (front_target): Remove front_target. Add pages.
2234 (grub_video_fb_init): Skip setting front_pages.
2235 (grub_video_fb_fini): Likewise.
2236 (doublebuf_blit_update_screen): Use pages.
2237 (grub_video_fb_doublebuf_blit_init): Likewise.
2238 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2239 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2240 (grub_video_fb_setup): Prefer doublebuffing.
2242 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2244 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2247 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2251 * tests/util/grub-shell.in: Handle loongson.
2252 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2254 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2255 Reboot instead of shutdown if REBOOT is defined.
2257 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2259 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2260 sized ports since unlike on real hardware qemu supports only 32-bit
2263 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2265 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2266 * util/grub-mkrescue.in: Handle loongson.
2268 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2270 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2271 Set is_part appropriately.
2272 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2273 names. Canonicalize partition without full disk.
2275 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2277 Revert usb-quiesce since it's wrong.
2279 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2280 (grub_ofdisk_init): Don't do quiesce.
2282 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2284 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2285 PowerMac workaround to Xserves as well.
2286 Information supplied by: Benjamin Herrenschmidt.
2288 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2290 Don't assume that beginning address is also the entry point on ppc.
2292 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2293 (grub_linux_boot): Use linux_entry.
2294 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2295 (grub_linux_load64): Likewise.
2297 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2299 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2301 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2303 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2304 needlessly lose the console.
2306 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2308 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2311 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2313 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2314 than current grub_get_rtc() not implemented when booted with
2315 coreboot without TSC.
2317 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2318 Add machine/time.h to kernel headers on loongson.
2319 * grub-core/Makefile.core.def (kernel): Remove
2320 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2321 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2322 (grub_get_rtc): Likewise.
2323 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2324 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2325 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2326 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2327 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2328 rather than installing known non-working time source.
2329 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2330 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2331 * include/grub/time.h: Don't include machine/time.h.
2332 * include/grub/efi/time.h: Removed.
2333 * include/grub/i386/efi/time.h: Likewise.
2334 * include/grub/i386/ieee1275/time.h: Likewise.
2335 * include/grub/powerpc/ieee1275/time.h: Likewise.
2336 * include/grub/sparc64/ieee1275/time.h: Likewise.
2337 * include/grub/x86_64/efi/time.h: Likewise.
2339 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2341 Remove dot on i and j when combining with above diacritics.
2343 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2345 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2346 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2347 with dotless variants when any combining above is present.
2349 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2351 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2352 text and not binary.
2354 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2356 Stop polling as soon as we have the packet we were waiting for.
2358 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2360 * grub-core/net/arp.c (have_pending): New var.
2361 (pending_req): Likewise.
2362 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2364 (grub_net_arp_receive): Set have_pending.
2365 * grub-core/net/dns.c (recv_data): New field stop.
2366 (recv_hook): Set stop.
2367 (grub_net_dns_lookup): Init stop and use as stop condition.
2368 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2370 * grub-core/net/net.c (grub_net_poll_cards): New argument
2371 stop_condition. Stop when it goes true.
2372 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2374 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2376 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2378 Keep TX and RX buffers on EFI rather than always allocate new ones.
2380 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2381 card. All users updated.
2382 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2383 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2384 (get_card_packet): Likewise.
2385 (grub_efinet_findcards): Init new fields.
2387 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2389 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2390 compilation error on sparc64.
2392 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2394 Use ITC on IA64 rather than broken routine based on daytime.
2396 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2398 (grub_get_rtc) [__ia64__]: Likewise.
2399 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2400 (get_itc): New function.
2401 (grub_rtc_get_time_ms): Likewise.
2402 (grub_machine_init): Calibrate ITC.
2403 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2404 Keep only on non-ia64. Don't export since it's broken and used only
2405 if TSC is unavailable.
2407 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2409 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2411 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2412 Skip if parent is unused.
2414 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2416 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2418 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2420 Fix wildcard escaping.
2422 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2423 * grub-core/script/execute.c (wildcard_escape): .. to here.
2425 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2426 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2428 * grub-core/script/execute.c (gettext_append): Always escape.
2429 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2430 * grub-core/script/yylex.l: Don't cut away the escaping.
2431 * tests/grub_script_echo1.in: Add tests with wildcard.
2433 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2435 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2436 (ftdi_hw_configure): Likewise.
2437 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2439 (real_config): Handle 1.5 stop bits.
2440 (pl2303_hw_configure): Likewise.
2442 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2444 * Makefile.am: Add ppc linux bootcheck.
2445 * grub-core/tests/boot/linux-ppc.cfg: New file.
2446 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2448 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2450 * tests/grub_script_expansion.in: Skip network protocols.
2452 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2454 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2456 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2458 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2462 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2464 ESCC serial driver for conducting sautomated tests in qemu.
2465 Not tested on real hardware.
2467 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2468 * grub-core/term/ieee1275/escc.c: New file.
2469 * grub-core/Makefile.core.def (escc): New module.
2471 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2473 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2475 (serial_hw_fetch): Don't read invalid handle.
2476 (serial_hw_put): Don't write into invalid handle.
2478 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2480 Add a 1.5 stop bits value.
2482 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2483 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2484 GRUB_SERIAL_STOP_BITS_1_5.
2486 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2488 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2489 value rather than let it uninited.
2491 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2493 * grub-core/commands/wildcard.c (+check_file): New function.
2494 (wildcard_expand): Don't expand to non-existing files, expand with
2495 suffix and not attempt to expand if not needed.
2497 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2499 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2500 out of partitions containing other partitions.
2502 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2504 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2505 on some qemu versions with GRUB.
2507 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2509 (grub_openbsd_bootarg_pcibios): New struct.
2510 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2513 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2515 * tests/util/grub-shell.in: Trim firmware output on EFI.
2517 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2519 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2520 and coreboot since it's already in kernel.
2522 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2524 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2525 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2526 to here. New return value start. All users updated.
2527 Recursively scan linear mappings.
2528 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2530 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2531 Use grub_util_get_dm_node_linear_info.
2532 * util/getroot.c (convert_system_partition_to_system_disk): Use
2533 grub_util_info rather than grub_dprintf.
2534 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2536 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2538 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2540 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2541 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2543 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2545 * include/grub/types.h (grub_set_unaligned64): New function.
2546 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2549 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2551 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2552 (grub_ofdisk_fini): Quiesce USB devices.
2554 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2556 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2559 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2561 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2563 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2565 * grub-core/disk/pata.c (grub_pata_pio_read)
2566 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2567 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2569 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2571 Extend automated tests to qemu-mips.
2573 * Makefile.am: reorganise tests and enable qemu-mips.
2574 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2575 * grub-core/tests/boot/linux.init-mips.S: New file.
2576 * tests/partmap_test.in: Handle ata0 disks.
2577 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2580 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2582 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2584 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2587 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2589 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2590 (grub_halt): Likewise.
2591 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2593 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2595 * grub-core/term/serial.c (grub_serial_register)
2596 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2597 the behaviour in line with x86 platforms.
2599 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2601 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2602 (grub_ata_strncpy): Likewise.
2603 (grub_ata_identify): Add missing byteswaps.
2605 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2607 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2609 (screen_read_char): Likewise.
2610 (grub_vga_text_cls): Likewise.
2612 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2614 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2616 (make_file_path): Likewise.
2618 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2620 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2622 Tested by: Paulo Flabiano Smorigo.
2623 Crucial information about API supplied by: Coleen <Last name unknown>.
2624 Reviewed by: Coleen <Last name unknown>.
2626 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2628 * util/grub-mkimage.c: Disable -Wcast-align.
2630 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2632 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2635 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2637 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2639 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2641 * util/grub-probe.c (escape_of_path): Fix double free.
2643 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2645 * grub-core/commands/videoinfo.c (hook): Show pitch.
2647 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2649 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2651 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2653 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2654 (probe): Add ieee1275 to OFW devices.
2656 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2658 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2660 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2662 Handle IBM OFW path.
2664 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2666 (of_path_of_scsi): Handle vdevice.
2668 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2670 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2671 Allocate in multiples of 16 to avoid adding a few bytes free region the
2674 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2676 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2677 Allocate in multiples of 16 to avoid adding a few bytes free region the
2679 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2681 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2683 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2685 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2686 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2688 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2690 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2692 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2694 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2695 resulted in \\ at the end of the line.
2697 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2699 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2700 (grub_parser_cmdline_state): Likewise.
2701 (grub_parser_split_cmdline): Likewise.
2703 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2705 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2706 /dev/root and /dev/dm-*.
2708 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2710 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2711 fix partially stale display.
2713 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2715 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2718 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2720 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2721 Fix MBR remapping workaround.
2722 (grub_util_biosdisk_read) [__linux__]: Likewise.
2724 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2726 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2728 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2730 * configure.ac: Bump to beta6.
2732 2012-05-31 Christer Weinigel <christer@weinigel.se>
2734 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2736 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2738 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2739 (grub_cmd_linux): Likewise.
2741 2012-05-31 Christer Weinigel <christer@weinigel.se>
2745 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2746 (GRUB_EHCI_MULT_TWO): Likewise.
2747 (GRUB_EHCI_MULT_THREE): Likewise.
2748 (GRUB_EHCI_CMASK_MASK): New enum value.
2749 (GRUB_EHCI_SMASK_MASK): Likewise.
2750 (GRUB_EHCI_CMASK_OFF): Likewise.
2751 (GRUB_EHCI_SMASK_OFF): Likewise.
2752 (grub_ehci_pci_iter): Enable periodic schedule.
2753 (grub_ehci_parse_notrun): Likewise.
2754 (grub_ehci_restore_hw): Likewise.
2755 (grub_ehci_setup_qh): Set flags for low speed transfers.
2756 (grub_ehci_find_qh): Use periodic list for low speed.
2757 (grub_ehci_setup_transfer): Check periodic queue as well.
2758 (grub_ehci_check_transfer): Likewise.
2759 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2761 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2763 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2766 2012-05-31 Peter Jones <pjones@redhat.com>
2768 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2769 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2770 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2772 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2774 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2775 uninited variable. Allocate at least setup_sects.
2777 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2779 Fix handling of EFI with big memory maps.
2781 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2782 (real_mode_mem): Likewise.
2783 (real_mode_target): Likewise.
2784 (real_mode_pages): Likewise.
2785 (prot_mode_pages): Likewise.
2786 (linux_params): New var.
2787 (linux_cmdline): Likewise.
2788 (free_pages): Don't set real mode variables.
2789 (allocate_pages): Don't allocate real mode memory.
2790 (grub_e820_add_region): Remove the limit.
2791 (grub_linux_boot): Allocate and copy real mode memory.
2792 (grub_linux_unload): Free linux_cmdline.
2793 (grub_cmd_linux): Use temporary storage for parameters.
2794 (grub_cmd_initrd): Likewise.
2795 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2796 (linux_kernel_params): Make it 1K big.
2798 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2800 * Makefile.util.def: Remove -Wno-format.
2801 * grub-core/Makefile.core.def: Likewise.
2803 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2805 * tests/cmp_unit_test.c: Add missing failure message.
2806 * tests/example_unit_test.c: Likewise.
2807 * tests/printf_unit_test.c: Likewise.
2809 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2811 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2812 relaxation of protective MBR requirements.
2814 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2816 * configure.ac: Add condition for COND_HOST_XNU.
2817 * Makefile.util.def (10_xnu): New script.
2818 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2820 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2822 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2825 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2827 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2828 Binary on other platforms stays identical.
2830 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2832 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2835 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2837 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2839 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2841 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2842 rather than defining size_t ourselves to avoid conflict.
2844 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2846 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2847 initialisation to avoid __bzero reference.
2849 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2851 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2853 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2854 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2855 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2856 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2857 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2859 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2861 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2862 * grub-core/kern/misc.c: Likewise.
2863 * grub-core/loader/i386/xnu.c: Likewise.
2864 * include/grub/i386/tsc.h: Likewise.
2865 * include/grub/symbol.h: Likewise.
2867 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2869 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2870 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2873 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2875 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2876 Implement Apple flavour.
2877 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2879 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2881 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2882 (memmove) [__APPLE__]: Likewise.
2883 (memcpy) [__APPLE__]: Likewise.
2884 (memset) [__APPLE__]: Likewise.
2885 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2886 (memmove) [__APPLE__]: Likewise.
2887 (memcpy) [__APPLE__]: Likewise.
2888 (memset) [__APPLE__]: Likewise.
2890 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2892 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2895 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2897 * grub-core/normal/main.c (read_config_file): Provide config_file and
2899 * util/grub.d/41_custom.in: Use config_directoy when available.
2901 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2903 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2904 (grub_bfs_dir): Likewise.
2906 2012-05-27 Peter Jones <pjones@redhat.com>
2908 The old code gives arguments to a printf function which can't work
2909 correctly, and the compiler complains.
2911 * grub-core/tests/example_functional_test.c (example_test): Add
2913 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2914 * include/grub/test.h (grub_test_assert_helper): New declaration.
2915 (grub_test_assert): Use grub_test_assert_helper.
2917 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2919 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2920 (exfctest): ... this to avoid overlong filenames.
2923 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2925 Handle "." and ".." on squashfs.
2927 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2928 Make inode numbers into stack.
2929 (grub_squash_read_symlink): Use stack.
2930 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2931 (make_root_node): Fill stack.
2932 (grub_squash_open): Use stack.
2934 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2936 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2939 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2941 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2942 stderr on test calls.
2944 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2946 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2948 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2950 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2952 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2954 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2957 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2959 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2960 (grub_hfsplus_iterate_dir): Add "." and "..".
2962 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2964 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2965 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2967 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2969 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2970 (find_path): Handle "." and "..".
2972 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2974 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2975 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2976 (grub_affs_iterate_dir): Handle hardlinks.
2978 2012-05-26 Matthew Garrett <mjg@redhat.com>
2980 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2981 (grub_efi_console_fini): Likewise.
2982 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2983 (grub_video_gop_fill_mode_info): Rename to ...
2984 (grub_video_gop_fill_real_mode_info): ... this.
2985 (grub_video_gop_fill_mode_info): New function.
2986 (grub_video_gop_setup): Setup double framebuffer.
2987 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2989 (grub_video_gop_swap_buffers): Copy framebuffer.
2990 (grub_video_gop_fini): Free offscreen buffer.
2991 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2993 (grub_efi_gop_blt_pixel): New struct.
2995 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
2997 * gentpl.py: Remove error disabling for objconv.
2999 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3001 * configure.ac: Remove -Wunitialized as it's not available on older
3004 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3006 Fix extent overflow comparator.
3008 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
3009 (grub_hfsplus_read_block): Set type.
3010 (grub_hfsplus_cmp_extkey): Compare type.
3012 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
3014 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
3016 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3018 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
3021 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3023 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
3024 (dejavu_bold_14.pf2): New target.
3026 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3028 * configure.ac: Fix djvu font detection.
3030 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3032 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
3033 ext* instead of ext2.
3035 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3037 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
3040 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
3042 * docs/grub-dev.texi: Remove dot from .png.
3044 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3046 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
3047 protective entry in any slot.
3048 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
3049 if protective entry is found in any slot.
3051 Protective entry in non-first slot make no sense but is a widespread
3054 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3056 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3058 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3060 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3062 (grub_reiserfs_open): Don't free root.
3064 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3066 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3067 after freeing for safety.
3069 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3071 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3072 Reported by: Jordan Uggla.
3074 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3076 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3077 actual implementation. Specifically, clarify that the grub menu will
3078 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3081 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3083 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3086 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3088 Remove unjustified hard dependency of normal.mod on gfxterm.
3090 * include/grub/term.h (grub_term_output): New member fullscreen.
3091 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3092 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3093 (grub_gfxterm): Set .fullscreen.
3094 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3095 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3097 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3099 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3100 mentioning possible problems with non-ASCII (non-compliant) ISOs.
3101 Mention case-insensitive AFFS, SFS and JFS.
3103 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3105 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3107 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3109 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3112 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3114 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3115 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3117 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3119 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3120 (grub_jfs_mount): Fill caseins.
3121 (grub_jfs_find_file): Respect caseins.
3123 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3125 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3128 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3130 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3131 New argument origpath. All users updated.
3133 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3135 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3136 (read_attr): Ensure that we read start of possibly compressed block.
3138 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3140 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3141 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3144 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3146 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3147 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3148 (dejavu.pf2): Replace with ...
3149 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3152 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3154 * util/grub.d/20_linux_xen.in: Add missing line.
3156 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3158 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3159 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3160 (grub_utf16_to_utf8): Likewise.
3162 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3164 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3165 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3166 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3167 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3168 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3169 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3171 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3173 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3176 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3178 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3179 (grub_udf_read_symlink): Handle read_string failure.
3181 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3183 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3186 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3188 Fix handling of UDF symlinks.
3190 * grub-core/fs/udf.c (read_string): New argument outbuf.
3192 (grub_ufs_read_symlink): Rename to ...
3193 (grub_udf_read_symlink): ... this. All users updated.
3194 Handle symlinks with more than one component.
3196 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3198 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3199 symlinks. Replace leading colon with a slash.
3201 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3203 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3206 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3208 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3209 match in inner node.
3211 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3213 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3214 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3215 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3216 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3217 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3218 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3219 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3220 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3221 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3223 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3225 Use grub-probe and not cmp to check that disk is empty.
3227 * util/grub-install.in: Use grub-probe for zero-check.
3228 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3229 (probe): Handle PRINT_ZERO_CHECK.
3230 (argp_parser): Handle -t zero_check.
3232 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3234 Flush block cache on adding disk to device map.
3236 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3237 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3239 (read_device_map): Likewise.
3240 (open_device): Flush on opening.
3242 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3244 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3245 (handle_symlink): Fix off-by-one error.
3246 Canonicalize the target.
3247 (grub_cpio_dir): Canonicalize the name.
3250 (grub_cpio_open): Canonicalize the name.
3252 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3254 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3257 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3259 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3260 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3262 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3264 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3265 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3268 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3270 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3273 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3275 Fix UFS1 big file support.
3277 * grub-core/fs/ufs.c (INODE): Removed.
3278 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3280 (INODE_MODE): Simplify.
3281 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3282 (grub_ufs_lookup_symlink): Don't use INODE.
3284 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3286 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3288 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3289 (grub_minix_data): Replace log_block_size with block_size.
3290 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3291 (grub_minix_mount): Fill block_size.
3293 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3295 * configure.ac: Bump to beta5.
3297 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3299 Fix wrapped HFS+ handling.
3301 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3302 blocks_start. All users updated.
3303 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3305 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3307 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3309 Fix long symlinks on reiserfs.
3311 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3312 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3313 (grub_reiserfs_iterate_dir): Save size for non-directories.
3314 (grub_reiserfs_open): Don't reread stat block as we already know the
3316 (grub_reiserfs_read): Split into...
3317 (grub_reiserfs_read_real): ... and ...
3318 (grub_reiserfs_read): ...this.
3320 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3322 Fix non-indexed JFS.
3324 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3325 (grub_jfs_data): New field namecomponentlen.
3326 (grub_jfs_mount): Fill namecomponentlen.
3327 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3329 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3331 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3332 * tests/grub_script_echo1.in: Add tests.
3334 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3336 * util/grub-install.in: Ignore empty devicetree directory.
3338 2012-05-08 Bean <bean123ch@gmail.com>
3340 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3342 (free_rsm): Free header as well.
3343 (free_old_fragments): Fix memory leak.
3344 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3345 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3346 (destroy_pq): Likewise.
3347 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3349 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3351 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3352 resulting hash as a precaution.
3354 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3356 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3357 '_' in variable names.
3358 * grub-core/net/net.c (grub_net_network_level_interface_register):
3361 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3363 Fix AFFS with non-512B blocks.
3365 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3366 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3367 (grub_affs_data): Replace blocksize with log_blocksize.
3368 (grub_affs_read_block): Fix non-512B blocks.
3369 (grub_affs_read_symlink): Likewise.
3370 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3371 (grub_affs_read): Fix non-512B blocks.
3372 (grub_affs_label): Likewise.
3373 (grub_affs_mtime): Likewise.
3374 (grub_affs_mount): Fix block detection routine.
3376 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3378 Add filesystem mtime to AFFS.
3380 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3381 (aftime2ctime): New function.
3382 (grub_affs_dir): Use aftime2ctime.
3383 (grub_affs_label): Fix return value.
3384 (grub_affs_mtime): New function.
3385 (grub_affs_fs): Add mtime.
3387 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3389 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3392 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3394 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3397 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3399 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3401 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3403 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3405 (FLAGS_CASE_SENSITIVE): New enum value.
3406 (cache_entry): New struct.
3407 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3408 cache_size and cache.
3409 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3410 Add log_blocksize and fshelp_flags.
3411 (grub_sfs_read_extent): Handle non-512 blocks.
3412 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3413 (grub_sfs_read_file): Handle non-512 blocks.
3414 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3416 (grub_sfs_read_symlink): Handle non-512 blocks.
3417 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3418 (grub_sfs_dir): Free cache.
3419 (grub_sfs_close): Likewise.
3421 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3423 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3426 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3428 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3430 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3432 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3434 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3436 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3437 (grub_sfs_read_extent): Likewise.
3438 (grub_sfs_read_block): Likewise.
3439 (grub_sfs_mount): Likewise.
3440 (grub_sfs_iterate_dir): Likewise.
3441 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3442 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3444 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3446 Fix errors on compressed NTFS with 512B clusters.
3448 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3450 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3452 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3453 Relax check for inline extents.
3454 (ntfscomp): Return correct -1 on error and not 0.
3456 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3458 * util/grub-install.in: Fix handling of prefix containing spaces.
3460 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3462 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3463 (grub_squash_read_data): Fix offset byte-swapping.
3465 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3467 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3468 per common usage and preffered in several parts of code.
3469 (grub_memcmp): Likewise.
3470 (grub_strncmp): Likewise.
3471 * include/grub/misc.h (grub_strcasecmp): Likewise.
3472 (grub_strncasecmp): Likewise.
3473 * Makefile.util.def (cmp_test): New test.
3474 (grub_script_strcmp): Likewise.
3475 * tests/cmp_unit_test.c: New file.
3476 * tests/grub_script_strcmp.in: Likewise.
3477 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3479 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3481 * include/grub/pci.h: Move enums into no-asm part.
3483 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3485 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3487 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3489 * util/getroot.c (find_hurd_root_device): Try to make error message
3490 and comments to translators clearer.
3492 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3494 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3496 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3498 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3501 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3503 * docs/grub.cfg: Update.
3505 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3507 * docs/grub.texi (PXE): Remove not present variables.
3509 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3511 * grub-core/net/net.c (defserver_set_env): New function.
3512 (defserver_get_env): Likewise.
3513 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3515 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3517 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3520 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3522 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3523 * grub-core/kern/emu/hostdisk.c: Likewise.
3525 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3527 Handle hurd userspace partitions.
3529 * util/getroot.c (find_hurd_root_device): New function.
3530 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3532 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3534 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3536 Reported by: Bastian Blank.
3538 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3540 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3541 crossing page boundary.
3543 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3545 Fix B-tree search in BFS, especially in presence of non-ASCII
3548 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3549 (find_in_b_tree): Use standard bsearch + btree algorithm.
3551 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3553 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3556 2012-05-03 Matthew Garrett <mjg@redhat.com>
3557 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3559 Suspend broadcom cards in order to stop their DMA.
3561 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3562 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3563 (pci): Don't build on x86 EFI.
3564 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3565 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3567 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3568 stop_broadcom if running on EFI.
3569 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3570 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3571 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3572 (grub_pci_find_capability): New proto.
3574 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3576 * docs/grub.texi: Remove dot from the extension as it apparently
3577 doesn't work with some makeinfo versions.
3579 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3581 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3582 with GRUB expectance.
3584 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3586 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3588 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3590 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3591 zero after directory block since last entry may be not 0-terminated if
3592 it ends on block boundary. Use continue instead of if spanning whole
3595 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3597 Support 4K sectors UDF inline files.
3599 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3600 (grub_udf_extended_file_entry): Likewise.
3601 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3603 (get_fshelp_size): New function.
3604 (grub_udf_read_icb): Read whole block.
3605 (grub_udf_iterate_dir): Likewise.
3606 (grub_udf_dir): Likewise.
3607 (grub_udf_open): Likewise.
3609 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3611 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3613 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3615 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3616 inline symlinks in addition to workaround.
3618 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3620 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3622 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3624 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3626 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3628 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3630 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3632 Fix reiserfs big seek times.
3634 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3635 exact. All users updated.
3636 (grub_reiserfs_read): Use nearest btree search for seeking.
3637 Fix return value on error.
3639 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3641 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3643 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3644 * docs/grub.texi: Update menuentry description.
3646 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3648 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3649 crash when embedding onto filesystem.
3651 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3653 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3656 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3658 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3660 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3662 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3665 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3666 2012-05-01 Bean <bean123ch@gmail.com>
3668 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3670 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3672 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3673 Special behaviour for len = 0 to read whole file isn't used anywhere and
3674 can cause buffer ovewrflows in several places.
3676 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3678 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3680 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3682 Handle RAIDZ on non-512B sectors.
3684 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3685 max_children_ashift.
3686 (fill_vdev_info_real): Fill max_children_ashift.
3687 (read_device): Use max_children_ashift.
3689 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3691 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3693 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3695 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3697 * docs/grub.texi: Update device.map parts.
3699 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3701 Don't scan into non-diskfilter devices having diskfilter names.
3703 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3704 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3706 (scan_disk_hook): New function.
3708 2012-04-29 Bean <bean123ch@gmail.com>
3710 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3713 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3715 * configure.ac: Detect starfield theme font path
3716 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3718 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3720 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3721 geometry on serial consoles.
3723 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3725 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3726 because of network consoles.
3728 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3730 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3733 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3735 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3738 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3740 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3741 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3743 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3745 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3746 Allocate at lest 8192 for temporary buffer as required for lzo.
3748 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3750 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3751 to cluster_bits, since it's already added in.
3752 (grub_fat_read_data): Likewise.
3754 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3756 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3757 as long as cluster size is multiple of 512 bytes.
3759 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3761 * util/grub-mkrescue.in: Fix locale directory.
3763 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3765 * grub-core/kern/emu/hostdisk.c (map): Make static.
3767 2012-04-23 Bean <bean123ch@gmail.com>
3769 * util/grub-fstest.c (fstest): Add missing break.
3771 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3775 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3776 not define nr variable.
3777 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3778 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3779 grub_find_device): Do not define.
3781 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3783 Fix kfreebsd compile and behaviour.
3785 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3787 * util/getroot.c: Fix wait.h include.
3788 (grub_guess_root_devices): Error if grub_find_device fails.
3789 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3790 (grub_util_get_dev_abstraction): Likewise.
3791 (grub_util_pull_device): Likewise.
3792 (grub_util_get_grub_dev): Likewise.
3793 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3795 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3797 Fix and unify wholedisk detection.
3799 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3800 is_part. All users updated.
3801 (device_is_wholedisk): Removed.
3802 (grub_util_biosdisk_get_grub_dev): Use is_part.
3804 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3806 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3809 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3811 * configure.ac: Bump to beta4.
3813 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3815 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3816 --fs-uuid --set UUID syntax.
3818 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3820 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3823 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3825 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3827 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3829 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3831 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3833 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3835 2012-04-18 Bean <bean123ch@gmail.com>
3837 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3840 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3842 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3844 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3845 corresponding to GRUB partitions.
3846 (grub_util_biosdisk_write): Likewise.
3848 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3850 Scan mdraid before LVM.
3852 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3853 (grub_diskfilter_register_front): ... this.
3854 (grub_diskfilter_register_back): New function.
3855 All users of grub_diskfilter_register updated.
3857 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3859 * util/grub-install.in: Fix an automatic target detection bug.
3861 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3863 * util/grub-install.in: New option --efi-directory.
3865 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3867 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3868 boot services if we have no other choice.
3870 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3872 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3874 * tests/util/grub-shell.in: Update to --directory.
3876 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3878 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3880 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3882 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3883 (grub_minix_read_file): Likewise.
3884 (grub_minix_read_inode): Likewise.
3885 (grub_minix_find_file): Likewise.
3886 (grub_minix_dir): Likewise.
3888 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3890 * util/grub-setup.c (setup): Fix partition handling and blocklist
3893 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3895 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3896 redundant buggy overlap check.
3898 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3900 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3903 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3905 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3906 kh.loadflags on pre-2.00 kernels.
3908 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3910 Terminate UNDI and PXE before launching the payload to avoid problems
3913 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3914 (grub_loader_flags): ... this. All users updated.
3915 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3916 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3917 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3918 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3920 (grub_pxe_restore): Likewise.
3921 (fini_hnd): New var.
3922 (GRUB_MOD_INIT): Register shutdown hook.
3923 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3924 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3925 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3926 (grub_loader_set): Rename second argument to flags.
3928 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3930 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3932 (grub_get_num_of_utf8_bytes): New function.
3933 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3934 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3936 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3937 (grub_ucs4_to_utf8): Change return type.
3939 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3941 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3943 * grub-core/fs/bfs.c (hop_level): Likewise.
3944 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3946 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3948 * grub-core/lib/adler32.c: Recode due to license unclearness.
3950 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3952 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3953 (test_header): Likewise.
3955 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3957 Fix --help formatting.
3959 * util/grub-mkconfig_lib.in (print_option_help): New function.
3960 (grub_fmt): Likewise.
3961 * util/grub-install.in: Use print_option_help and grub_fmt.
3962 * util/grub-kbdcomp.in: Likewise.
3963 * util/grub-mkconfig.in: Likewise.
3964 * util/grub-mknetdir.in: Likewise.
3965 * util/grub-mkrescue.in: Likewise.
3966 * util/grub-mkstandalone.in: Likewise.
3967 * util/grub-reboot.in: Likewise.
3968 * util/grub-set-default.in: Likewise.
3969 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3971 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3973 * linguas.sh: Remove autogenerated *.po.
3975 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3977 * po/README: Move language fetcing to ...
3978 * linguas.sh: ... here.
3979 * po/README: Point to linguas.sh.
3981 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3983 * po/README: Exclude ko.po due to disclaimer problems.
3985 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3987 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3989 (grub_gettext_translate_real): Handle 0th string.
3990 (grub_gettext_translate): Ensure that "" isn't translated.
3992 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3994 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3995 TRANSLATORS comment.
3996 (grub_diskfilter_print_partmap): Propagate changing of error into
3999 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4001 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
4002 to uint64_t to prevent overflow.
4003 (grub_diskfilter_lv): Increase start_extent and extent_count
4004 to uint64_t to prevent overflow.
4006 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4008 * configure.ac: Increase version.
4010 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4012 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
4014 * po/Rules-translit: New file.
4015 * po/arabic.sed: Likewise.
4016 * po/cyrillic.sed: Likewise.
4017 * po/greek.sed: Likewise.
4018 * po/hebrew.sed: Likewise.
4019 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
4020 * po/Makefile.in.in: Add extra_dist4.
4022 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4024 Handle big-endian minixfs (fixes minixfs tests on bigendian).
4026 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
4027 modify names. Introduce MODE_BIGENDIAN.
4028 * grub-core/fs/minix_be.c: New file.
4029 * grub-core/fs/minix2_be.c: Likewise
4030 * grub-core/fs/minix3_be.c: Likewise.
4031 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
4033 * grub-core/Makefile.core.def (minix_be): New module.
4034 (minix2_be): Likewise.
4035 (minix3_be): Likewise.
4037 2012-04-01 Felix <email@hamburg.de>
4039 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
4040 (devs): Add MBP 2011.
4042 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4044 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
4046 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/normal/cmdline.c (print_completion): New field
4050 (grub_cmdline_get): Handle width properly.
4052 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4054 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4056 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4058 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
4059 after 29th of February.
4061 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4063 Fix exfat endianness handling.
4065 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4066 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4067 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4068 Byte-swap utf16 when necessary.
4069 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4071 2012-03-31 Anton Blanchard <anton@samba.org>
4072 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4074 Fix btrfs endianness handling.
4076 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4077 (lower_bound): Make root uint64_t. Use root in le.
4078 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4079 (find_path): Fix template key init.
4080 (grub_btrfs_dir): Fix mtime byteswap.
4081 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4083 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4085 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4086 recursion_depth. Break infinite resursions. All users updated.
4088 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4090 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4092 Reported by: Peter Jones.
4094 2012-03-31 Anton Blanchard <anton@samba.org>
4096 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4099 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4101 * util/grub-install.in: Fix nvram call for PreP.
4103 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4105 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4106 the error when some elements are missing into a warning.
4108 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4110 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4112 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
4114 * docs/grub.texi (Invoking grub-probe): New section.
4115 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4117 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4119 Fix tab and wide character handling in editor and menu.
4121 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4122 agglomerate control characters with combining marks.
4123 (bidi_line_wrap): Allow break on tab.
4124 (grub_unicode_get_comb_start): New function.
4125 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4127 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4129 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4130 fixed_tab_size. All users updated.
4131 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4132 (grub_term_getcharwidth): Handle \t.
4133 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4136 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4138 Handle big-endian mdraid.
4140 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4141 * grub-core/Makefile.core.def (mdraid09_be): New module.
4142 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4143 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4144 * grub-core/disk/mdraid_linux_be.c: New file.
4146 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4148 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4150 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4152 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4153 missing quotes which caused confusion among translators.
4155 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4157 * util/grub-mkconfig_lib.in: Fix typo.
4159 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4161 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4163 * tests/grub_script_leading_whitespace.in: New file.
4164 * Makefile.util.def (grub_script_leading_whitespace): New test.
4166 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4168 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4171 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4173 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4174 starts with control character.
4176 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4178 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4180 (grub_gdb_outbuf): Likewise.
4182 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4184 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4185 zero terminator. Fixes a crash.
4187 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4189 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4191 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4192 images independently of preffered adderss field.
4194 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4196 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4197 * grub-core/commands/regexp.c: Likewise.
4198 * grub-core/loader/i386/linux.c: Likewise.
4199 * grub-core/partmap/msdos.c: Likewise.
4200 * grub-core/script/execute.c: Likewise.
4201 * grub-core/term/gfxterm.c: Likewise.
4203 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4205 Add variable parsing in $"..." and fix several mismatches with bash.
4207 * Makefile.util.def (grub_script_gettext): New test.
4208 * grub-core/script/execute.c (parse_string): New function.
4209 (gettext_append): Likewise.
4210 (grub_script_arglist_to_argv): Use gettext_append.
4211 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4212 * tests/grub_script_gettext.in: New file.
4214 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4216 Fix handling of leading spaces in scripts.
4218 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4220 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4221 other than skipping \r. All users updated.
4222 * tests/grub_script_echo1.in: Add space-related tests.
4223 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4225 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4227 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4229 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4231 * configure.ac: Bump up the version to beta2.
4233 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4235 Fix gettext reload bugs (e.g. inability to disable gettext
4238 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4239 main_context and secondary_context. All functions updated.
4240 (grub_gettext_translate): Rename to ...
4241 (grub_gettext_translate_real): ... this. Return NULL on failed
4243 (grub_gettext_translate): Handle secondary context.
4244 (grub_gettext_delete_list): Close file and zero-out the context.
4245 (grub_mofile_open): Don't call grub_gettext_delete_list.
4247 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4248 if locale="" to avoid pointless error message.
4249 (grub_gettext_env_write_lang): Update lang even if load fails.
4250 Handle secondary context.
4251 (grub_gettext_reread_prefix): New function.
4252 (read_main): Likewise.
4253 (read_secondary): Likewise.
4254 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4255 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4256 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4257 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4259 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4261 * configure.ac: Decrease warning level to avoid spurious warnings and
4262 to be able to compile with GCC 4.2.
4263 * Makefile.util.def: Remove -Wno-error=logical-op.
4265 2012-03-10 William Bittner <william.bittner@gmail.com>
4267 * util/import_unicode.py: Add missing brackets around string for
4270 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4272 Fix efi chainloader on network root.
4274 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4276 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4279 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4281 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4282 unused show_text member.
4283 * docs/grub.texi: Document "text" property.
4285 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4287 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4290 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4292 Fix IMSM handling on Fedora.
4294 * util/getroot.c (grub_util_is_imsm): New function.
4295 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4297 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4299 * Makefile.am: Strip gold section.
4300 * conf/Makefile.common: Likewise.
4301 * gentpl.py: Likewise.
4302 * grub-core/Makefile.core.def: Likewise.
4303 * grub-core/genmod.sh.in: Likewise.
4305 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4307 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4308 * util/grub.d/20_linux_xen.in: Likewise.
4309 Based on Debian patch.
4311 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4313 * util/grub.d/10_linux.in: Fix syntax error resulting in
4314 Richard Laager's patch.
4315 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4317 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4319 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4322 2012-03-10 Richard Laager <rlaager@wiktel.com>
4324 * util/grub.d/10_linux.in: Fix ZFS root passing.
4326 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4328 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4329 * grub-core/commands/xnu_uuid.c: Likewise.
4330 * grub-core/loader/efi/appleloader.c: Likewise.
4331 * grub-core/script/execute.c: Likewise.
4332 * grub-core/script/main.c: Likewise.
4333 * util/grub-mkfont.c: Likewise.
4335 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4337 * util/grub-mkfont.c (options): Use more appropriate "select" that
4338 "set" for face index.
4340 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4342 * util/grub-editenv.c (options): Gettextize command summaries.
4344 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4346 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4347 "out of memory" error messagge.
4349 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4351 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4352 of diskfilter for diskfilter on diskfilter support.
4354 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4356 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4358 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4360 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4363 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4365 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4367 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4369 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4371 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4373 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4376 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4378 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4380 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4382 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4384 * util/grub-install.in: Fix and gettextize error message.
4386 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4388 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4390 * util/grub-mount.c (options): Likewise.
4392 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4394 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4396 * grub-core/commands/search_wrap.c (options): Likewise.
4398 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4400 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4402 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4404 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4406 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4409 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4411 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4412 "temporary" since it's used in identifier and is limited in space.
4414 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4416 * po/POTFILES.in: Regenerate. Include *.h since they contain
4417 translatable strings as well.
4419 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4421 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4422 byte-swap on big-endian.
4423 Reported by: Lennart Sorensen
4425 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4427 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4428 (allocate_pages): Improve dprintf.
4429 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4430 code32_start. Fill code32_start and kernel_alignment in params.
4431 (grub_cmd_initrd): Use prot_init_space.
4433 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4435 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4437 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4439 * util/grub-install.in: Add missing dot at the end of sentence.
4441 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4443 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4444 * grub-core/commands/videotest.c: Likewise.
4445 * grub-core/loader/i386/linux.c: Likewise.
4447 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4449 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4451 Reported by: Milo Casagrande.
4453 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4455 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4456 * grub-core/commands/gptsync.c: Likewise.
4457 * grub-core/commands/hashsum.c: Likewise.
4458 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4459 * grub-core/commands/legacycfg.c: Likewise.
4460 * grub-core/io/gzio.c: Likewise.
4461 * grub-core/net/net.c: Likewise.
4462 * grub-core/term/gfxterm.c: Likewise.
4463 * grub-core/term/terminfo.c: Likewise.
4464 * grub-core/tests/test_blockarg.c: Likewise.
4465 * grub-core/video/video.c: Likewise.
4466 * util/grub-install.in: Likewise.
4467 * util/grub-mkfont.c: Likewise.
4469 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4471 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4473 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4475 * grub-core/commands/search_wrap.c (options): Fix a typo.
4476 Reported by: David Prévot.
4478 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4480 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4483 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4485 * util/grub-script-check.c (main): Fix a syntax error message which was
4488 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4490 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4492 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4494 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4497 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4499 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4501 * util/grub-mount.c (options): Likewise.
4503 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4505 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4507 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4509 * grub-core/net/http.c: Add TRANSLATORS comments.
4510 * grub-core/normal/cmdline.c: Likewise.
4511 * grub-core/normal/misc.c: Likewise.
4512 * grub-core/partmap/msdos.c: Likewise.
4513 * grub-core/parttool/msdospart.c: Likewise.
4514 * grub-core/script/execute.c: Likewise.
4515 * grub-core/script/main.c: Likewise.
4516 * grub-core/term/terminfo.c: Likewise.
4517 * grub-core/video/bitmap.c: Likewise.
4518 * util/grub-install.in: Likewise.
4519 * util/grub-mkimage.c: Likewise.
4520 * util/grub-mklayout.c: Likewise.
4521 * util/grub-setup.c: Likewise.
4523 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4525 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4526 with similar messages in grub-fstest.
4528 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4530 * util/grub-install.in: Unify "option requires an argument" message
4531 with similar messages in other files.
4532 * util/grub-mkconfig.in: Likewise.
4534 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4536 * util/grub-set-default.in: Replace printf with gettext_printf (the
4537 string in in question is already translated from grub-reboot)
4539 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4541 * configure.ac: Bump up the version to beta1.
4543 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4545 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4546 case when min_align = 0.
4548 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4550 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4551 and fix a case when line_start overflows.
4553 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4555 * util/grub-reboot.in (usage): Mention id posibility.
4556 * util/grub-set-default.in (usage): Likewise.
4558 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4560 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4561 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4562 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4563 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4564 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4565 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4566 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4568 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4570 * grub-core/commands/menuentry.c (options): Remove
4571 GRUB_ARG_OPTION_REPEATABLE.
4572 Reported by: Andreas Vogel
4574 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4576 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4578 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4580 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4583 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4585 Use sort -V by the idea of Georgi Georgiev.
4587 * util/grub-mkconfig_lib.in (version_sort): New function.
4588 (version_test_numeric): Use version_sort.
4590 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4592 Use submenus in grub-mkconfig.
4594 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4595 * util/grub-mkconfig_lib.in (grub_quote): New function.
4596 (gettext_printf): Use gettext and not gettext_quoted to fix several
4598 * util/grub.d/10_hurd.in: Use submenus.
4599 * util/grub.d/10_kfreebsd.in: Likewise.
4600 * util/grub.d/10_linux.in: Likewise.
4601 * util/grub.d/10_netbsd.in: Likewise.
4602 * util/grub.d/20_linux_xen.in: Likewise.
4603 * util/grub.d/30_os-prober.in: Likewise.
4604 * util/grub.d/10_illumos.in: Add missing quoting.
4605 * util/grub.d/10_windows.in: Likewise.
4607 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4609 Fix menu title instability bug.
4611 * grub-core/commands/menuentry.c (options): New option --id.
4612 (grub_normal_add_menu_entry): New argument id. All users updated.
4613 (grub_cmd_menuentry): Handle --id.
4614 (grub_menu_init): Accept unknown arguments.
4615 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4616 feature_menuentry_options.
4617 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4619 (get_entry_number): Match with id as well.
4620 * include/grub/menu.h (grub_menu_entry): New member id.
4621 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4622 * util/grub.d/00_header.in: Define menuentry_id_option.
4623 * util/grub.d/10_hurd.in: Define id.
4624 * util/grub.d/10_illumos.in: Likewise.
4625 * util/grub.d/10_kfreebsd.in: Likewise.
4626 * util/grub.d/10_linux.in: Likewise.
4627 * util/grub.d/10_netbsd.in: Likewise.
4628 * util/grub.d/10_windows.in: Likewise.
4629 * util/grub.d/20_linux_xen.in: Likewise.
4630 * util/grub.d/30_os-prober.in: Likewise.
4632 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4634 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4635 "scope" with "body".
4637 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4639 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4640 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4641 prot_size and prot_file_size.
4643 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4645 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4646 All users updated. If easily=1 require raid-5/-6 to be full.
4647 (is_node_readable): Likewise.
4648 (scan_devices): Scan incomplete but readable LVs at the end.
4649 (grub_diskfilter_memberlist): Pull missing devices.
4650 (insert_array): Skip scanning until device is complete or scan is
4652 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4654 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4655 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4657 2012-03-03 Matthew Garrett <mjg@redhat.com>
4658 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4660 Avoid EFI boot services when loading Linux.
4662 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4663 avoid_efi_bootservices. All users updated.
4664 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4665 argument avoid_efi_bootservices. All users updated.
4666 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4667 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4668 align, min_align, relocatable, prefered_address. All users updated.
4669 Allocate avoiding boot services if kernel is relocatable.
4670 (grub_cmd_linux): Check if kernel is relocatable.
4671 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4672 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4673 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4674 avoid_efi_boot_services.
4675 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4676 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4677 (linux_kernel_params): Likewise.
4679 2012-03-03 Matthew Garrett <mjg@redhat.com>
4680 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4684 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4686 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4687 modes. Set gop_handle.
4688 (grub_video_gop_get_edid): New function.
4689 (grub_gop_get_preferred_mode): Likewise.
4690 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4691 (grub_video_efi_gop_adapter): Set .get_edid.
4692 * include/grub/efi/edid.h: New file.
4693 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4695 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4697 * util/grub-install.in: Load efivars unconditionally.
4699 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4701 * po/Rules-piglatin: Change suffix from .po-update-en to
4702 .po-update-en-piglatin.
4704 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4708 * po/piglatin.sed: New file.
4709 * po/en@piglatin.header: Likewise.
4710 * po/Rules-piglatin: Likewise.
4711 * po/README: Add en@piglatin to autogenerated languages.
4713 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4715 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4717 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4718 "Check" since we don't check anything.
4719 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4721 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4722 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4723 (grub_md_sha512_real): Likewise.
4725 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4727 * grub-core/commands/gptsync.c: Fix typographic quoting.
4728 * grub-core/commands/ieee1275/suspend.c: Likewise.
4729 * grub-core/commands/parttool.c: Likewise.
4730 * grub-core/commands/search_wrap.c: Likewise.
4731 * grub-core/commands/videoinfo.c: Likewise.
4732 * grub-core/gfxmenu/gui_label.c: Likewise.
4733 * grub-core/hello/hello.c: Likewise.
4734 * grub-core/kern/emu/main.c: Likewise.
4735 * grub-core/net/net.c: Likewise.
4736 * grub-core/normal/menu.c: Likewise.
4737 * grub-core/normal/menu_text.c: Likewise.
4738 * grub-core/normal/misc.c: Likewise.
4739 * util/grub-editenv.c: Likewise.
4740 * util/grub-install.in: Likewise.
4741 * util/grub-kbdcomp.in: Likewise.
4742 * util/grub-mkconfig.in: Likewise.
4743 * util/grub-mknetdir.in: Likewise.
4744 * util/grub-mkrescue.in: Likewise.
4745 * util/grub-mkstandalone.in: Likewise.
4746 * util/grub-reboot.in: Likewise.
4747 * util/grub-set-default.in: Likewise.
4748 * util/grub-setup.c: Likewise.
4749 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4751 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4753 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4754 * grub-core/commands/keystatus.c: Likewise.
4755 * grub-core/commands/loadenv.c: Likewise.
4756 * grub-core/commands/probe.c: Likewise.
4757 * grub-core/commands/regexp.c: Likewise.
4758 * grub-core/commands/true.c: Likewise.
4759 * grub-core/commands/videoinfo.c: Likewise.
4760 * grub-core/disk/cryptodisk.c: Likewise.
4761 * grub-core/disk/ldm.c: Likewise.
4762 * grub-core/disk/loopback.c: Likewise.
4763 * grub-core/disk/luks.c: Likewise.
4764 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4765 * grub-core/kern/disk.c: Likewise.
4766 * grub-core/kern/emu/hostdisk.c: Likewise.
4768 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4770 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4771 * util/grub-install.in: Add missing quote in the comment.
4773 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4775 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4776 * grub-core/commands/lsmmap.c: Likewise.
4777 * grub-core/commands/minicmd.c: Likewise.
4778 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4779 * grub-core/commands/regexp.c: Likewise.
4780 * grub-core/gdb/gdb.c: Likewise.
4781 * grub-core/term/gfxterm.c: Likewise.
4782 * util/grub-mkconfig.in: Likewise.
4783 * util/grub-mkfont.c: Likewise.
4784 * util/grub-mklayout.c: Likewise.
4785 * util/grub-mknetdir.in: Likewise.
4786 * util/grub-mkrescue.in: Likewise.
4787 * util/grub.d/30_os-prober.in: Likewise.
4789 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4791 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4792 with "Direct color" and "Packed" with "Packed pixel".
4793 (grub_cmd_videoinfo): Simplify legend.
4795 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4797 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4798 absolutely unclear error message.
4800 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4802 * util/grub-mkstandalone.in: Remove confusing leftover print.
4804 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4806 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4808 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4809 (GRUB_MOD_INIT): Likewise.
4810 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4812 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4814 * util/grub-install.in (usage): Likewise.
4815 Spell ID in whole letters.
4816 Add missing ending dot.
4818 * util/grub-reboot.in: Fix capitalisation.
4819 * util/grub-set-default.in: Likewise.
4821 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4823 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4824 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4825 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4826 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4827 Disable -Werror for -Wdeprecated-declarations.
4828 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4829 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4830 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4831 (grub_util_get_grub_dev): Make luks handling dependent on
4832 HAVE_DEVICE_MAPPER and not __linux__.
4833 (get_win32_path): Fix format security.
4834 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4835 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4836 Don't try grub_find_zpool_from_dir.
4837 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4838 #ifdef-out paresdir.
4840 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4842 * util/grub-pe2elf.c (usage): Add missing noreturn.
4843 (write_section_data): Rename name to shname to avoid shadowing.
4844 (write_symbol_table): Rename name to symname to avoid shadowing.
4845 Fix write_reloc_section call.
4847 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4849 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4850 to ensure that it's after the last byte of .text.
4852 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4854 * util/ieee1275/ofpath.c (my_isdigit): New function.
4855 (trailing_digits): Use my_isdigit.
4856 (strip_trailing_digits): Likewise.
4858 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4860 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4861 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4863 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4865 * grub-core/kern/i386/pc/startup.S: Define __start.
4867 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4869 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4870 strip already transforms he format.
4872 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4874 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4876 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4878 * util/grub-install.in: Add missing gettext init.
4879 * util/grub-kbdcomp.in: Likewise.
4880 * util/grub-mkconfig.in: Likewise.
4881 * util/grub-mknetdir.in: Likewise.
4882 * util/grub-mkrescue.in: Likewise.
4883 * util/grub-mkstandalone.in: Likewise.
4884 * util/grub-reboot.in: Likewise.
4885 * util/grub-set-default.in: Likewise.
4886 * util/grub.d/00_header.in: Likewise.
4887 * util/grub.d/10_hurd.in: Likewise.
4888 * util/grub.d/10_windows.in: Likewise.
4889 * util/grub.d/30_os-prober.in: Likewise.
4890 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4892 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4894 * po/Rules-swiss: Fix header comment.
4896 2012-02-29 Andreas Vogel <anvoit>
4898 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4899 resulted in leak of arguments.
4901 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4903 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4904 reed_solomon_size const definition instead of computing it since
4905 Apple assembler doesn't support the later.
4907 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4909 * gentpl.py (kernel): Rewrite Apple part.
4911 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4913 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4915 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4917 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4919 (load_image): Likewise.
4921 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4923 * configure.ac: Fix a typo in previous commit.
4925 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4927 Don't add -Wl,-N on Apple platform.
4929 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4930 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4932 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4934 * grub-core/Makefile.core.def (lzma_decompress): Use
4935 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4937 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4939 * grub-core/genmod.sh.in: Rewrite the Apple part.
4941 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4943 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4946 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4948 * acinclude.m4 (grub_CHECK_PIC): New test.
4949 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4951 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4953 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4954 to avoid the warning.
4956 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4958 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4959 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4960 after. All users updated.
4962 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4964 Use the common size routine in hostfs so we can read disks as well.
4966 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4967 (grub_util_get_fd_size): ... this. Return size in bytes.
4969 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4970 grub_util_get_fd_size.
4972 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4974 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4975 Add blocksize retrieval.
4977 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4979 * configure.ac: Restore CFLAGS after efiemu check.
4981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4983 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4986 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4988 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4990 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4992 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4993 (grub_cmd_halt): Likewise.
4995 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4997 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
4998 for local arithmetics.
4999 Break %sp init into 2 instructions.
5000 Add 0 byte at the end.
5002 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5004 * grub-core/disk/diskfilter.c (read_segment): Initialise err
5007 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5009 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
5012 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5014 * grub-core/disk/ldm.c (make_vg): Init part.name.
5015 (grub_ldm_detect): Silence spurious warning.
5016 (grub_util_is_ldm): Likewise.
5018 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5020 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
5021 sane value to avoid a spurious warning.
5023 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5025 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
5026 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
5028 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5030 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
5031 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
5033 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5035 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
5036 hardcoding the relevant info.
5038 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5040 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
5041 missing const qualifiers.
5042 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
5044 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5046 * util/getroot.c [__APPLE__]: Add missing includes.
5047 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
5049 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5051 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5053 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5055 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5058 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5060 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5062 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5064 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5065 and grub_file_close call.
5067 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5069 Add LZSS Mach-O support (needed for new xnu kernelcache).
5071 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5072 * grub-core/loader/lzss.c: New file.
5073 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5074 on Mach-O open failure.
5075 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5076 Don't free cmdsXX in uncompressedXX is set.
5077 (grub_macho_file): Init new fields.
5078 New argument is_64bit. All users updated.
5079 Handle compressed. Error out if no suitable architecture is found.
5081 (grub_macho_open): New argument is_64bit. All users updated.
5082 * grub-core/loader/macho32.c: Add defines for new fields.
5083 * grub-core/loader/macho64.c: Likewise.
5084 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5085 (grub_macho_parse): Handle compressed.
5086 Defer actual processing if compressed.
5087 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5088 "filename". All users updated.
5089 (grub_macho_size): New argument "filename". All users updated.
5090 (grub_macho_get_entry_point): Likewise.
5091 (grub_macho_load): Handle compressed.
5092 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5093 (GRUB_MACHO_LZSS_OFFSET): New define.
5094 (grub_decompress_lzss): New proto.
5095 * include/grub/machoload.h (grub_macho_file): New fields to handle
5097 (grub_macho_contains_macho64): Remove proto.
5098 (grub_macho_contains_macho32): Likewise.
5099 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5101 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5103 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5105 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5109 * Makefile.am (starfield_theme_files): New var.
5110 (starfield_DATA): Use starfield_theme_files.
5111 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5112 Add bootcheck-related files.
5113 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5114 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5115 and font_char_metrics.txt.
5116 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5117 (setjmp): Add lib/ia64/longjmp.S.
5118 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5119 * po/POTFILES.in: Regenerate.
5120 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5121 DISTFILES.common.extra1.
5122 * util/devicemap.c: Removed.
5123 * grub-core/lib/i386/relocator_backward.S: Likewise.
5124 * util/import_gcry.py: Remove unused files. Add extra_dist for
5127 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5129 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5130 grub_gettext_delete_list before changing grub_gettext_max to avoid
5131 running out of array bounds.
5133 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5135 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5136 grub_vga_text_init/grub_vga_text_fini.
5138 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5140 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5142 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5144 * configure.ac: Bump to 2.00~beta0.
5146 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5148 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5149 missing initialisation.
5151 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5153 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5155 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5157 Support v2 xnu boot arguments.
5159 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5160 New argument fsbfreq_out.
5161 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5162 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5164 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5166 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5167 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5168 (grub_xnu_boot_params): Rename to ...
5169 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5170 (grub_xnu_boot_params_v2): New struct.
5172 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5174 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5175 zeroing of CRC field before computing CRC.
5177 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5179 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5180 Change order of allocations to decrease fragmentation.
5182 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5184 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5186 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5188 Use write-combining MTRR to speed up video with buggy BIOSes.
5190 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5191 (cpuid): New define.
5194 (mtrr_base): Likewise.
5195 (mtrr_mask): Likewise.
5196 (grub_vbe_enable_mtrr_entry): New function.
5197 (grub_vbe_enable_mtrr): Likewise.
5198 (grub_vbe_disable_mtrr): Likewise.
5199 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5200 control off to BIOS.
5201 (grub_video_vbe_init): Fill mtrr.
5202 (grub_video_vbe_fini): Disable mtrr.
5203 (grub_video_vbe_get_info_and_fini): Likewise.
5204 (grub_video_vbe_setup): Enable mtrr.
5206 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5208 * include/grub/partition.h (grub_partition_map): Change prototype of
5209 embed to take a maximum value for nsectors.
5210 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5211 * include/grub/fs.h (grub_fs): Likewise.
5212 * grub-core/partmap/msdos.c (embed_signatures): New array.
5213 (pc_partition_map_embed): Check for and avoid sectors matching any
5214 of the signatures in embed_signatures, up to max_nsectors.
5215 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5216 returned sector map to max_nsectors.
5217 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5218 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5219 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5220 * util/grub-setup.c (setup): Allow for the embedding area being
5221 split into multiple blocklists. Tell dest_partmap->embed the
5222 maximum number of sectors we care about.
5224 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5226 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5227 Specify blocklist_install and reserver_first_sector for all fs.
5228 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5231 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5233 * util/grub-install.in: Clarify strings.
5234 Fix source dir check.
5236 2012-02-27 Richard Laager <rlaager@wiktel.com>
5238 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5239 "zfs" and "fuse.zfs" as synonyms.
5241 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5243 * configure.ac: Put platform and target_cpu substitutions back since
5244 they are used for directories.
5246 2012-02-27 Richard Laager <rlaager@wiktel.com>
5247 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5249 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5250 * util/grub.d/20_linux_xen.in: Likewise.
5252 2012-02-27 Richard Laager <rlaager@wiktel.com>
5254 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5257 2012-02-27 Richard Laager <rlaager@wiktel.com>
5259 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5262 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5264 Don't use insecure popen in getroot.
5266 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5267 (exec_pipe): ... here.
5268 (find_root_devices_from_poolname): Use exec_pipe.
5270 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5272 Remove platform and target_cpu replacement.
5274 * configure.ac: Remove platform and target_cpu substitutions.
5275 * tests/util/grub-shell.in: Use modinfo.
5276 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5279 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5281 Autodetect platform in grub-install but allow override.
5283 * util/grub-install.in: Autodetect platform. Support --target and
5284 --directory. Read platform from modinfo.sh.
5286 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5288 Support btrfs multi-volume probe.
5290 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5291 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5292 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5293 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5294 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5295 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5296 grub_find_root_devices_from_btrfs if on btrfs.
5298 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5300 Remove any awareness of *.c util files about target.
5302 * Makefile.util.def (grub-setup): Split to ...
5303 (grub-bios-setup): ... and this.
5304 (grub-sparc64-setup): ... and this.
5305 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5306 * docs/man/grub-setup.h2m: Split into ...
5307 * docs/man/grub-sparc64-setup.h2m: ... this.
5308 * docs/man/grub-bios-setup.h2m: ... and this.
5309 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5310 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5311 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5312 (grub_target_addr_t): Remove.
5313 (grub_target_size_t): Remove.
5314 (grub_target_ssize_t): Remove.
5315 * util/grub-install.in: Use new grub-*-setup.
5316 * util/grub-mkimagexx.c (Elf_Word): New define.
5317 (Elf_Half): Likewise.
5318 (Elf_Section): Likewise.
5319 (ELF_ST_TYPE): Likewise.
5320 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5321 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5323 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5325 Replace grub_target_addr with more appropriate types.
5327 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5328 grub_target_addr with grub_addr.
5329 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5330 grub_target_addr with grub_port.
5331 (grub_cmd_write): Likewise.
5332 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5333 grub_target_addr with grub_addr.
5334 (grub_cmd_write): Likewise.
5335 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5337 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5339 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5340 const qualifier for vendor_guid.
5342 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5344 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5346 (efiemu_memequal): Likewise.
5347 (find_variable): Likewise.
5349 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5351 Fix missing console prototype on qemu-mips.
5353 * include/grub/mips/qemu_mips/console.h: New file.
5355 2012-02-27 Matthew Garrett <mjg@redhat.com>
5356 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5358 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5359 * include/grub/efi/efi.h: Likewise.
5360 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5361 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5362 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5363 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5364 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5365 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5367 2012-02-27 Matthew Garrett <mjg@redhat.com>
5369 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5371 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5373 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5376 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5378 * configure.ac: Remove inappropriate use of program_transform_name
5379 on grubdir and bootdir but allow explicit specification of those
5382 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5384 * util/grub-mknetdir.in (grub_prefix): Removed.
5385 (subdir): Use @bootdirname@ and @grubdirname@.
5387 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5389 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5391 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5393 * po/POTFILES.in: Regenerated.
5395 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5397 Remove improper use of program_transform_name on pkglibrootdir.
5399 * configure.ac (pkglibrootdir): Removed.
5400 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5401 * util/grub-mkimage.c: Likewise.
5403 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5405 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5408 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5410 * util/grub-install.in: Use file identifier if no UUID is available
5411 or user explicitly prompted for it.
5413 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5415 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5416 (freebsd_get_zfs): New function.
5417 (grub_freebsd_boot): Pass zfs UUID.
5418 (grub_cmd_freebsd): Set zfs UUID.
5420 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5422 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5425 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5427 Add configure flag to control libzfs integration.
5429 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5431 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5433 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5435 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5438 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5440 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5441 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5442 be used on non-modules.
5444 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5445 Rename to grub_boot_init.
5446 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5447 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5448 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5449 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5450 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5451 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5452 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5453 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5455 (grub_machine_init): Remove empty inits.
5456 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5458 (grub_machine_init): Remove empty inits.
5459 * grub-core/term/arc/console.c: Remove explicit proto.
5460 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5461 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5462 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5463 grub_at_keyboard_fini.
5464 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5465 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5466 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5468 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5469 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5470 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5472 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5473 * grub-core/term/serial.c (GRUB_MOD_INIT)
5474 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5475 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5477 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5478 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5479 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5481 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5482 (GRUB_MOD_FINI): Likewise.
5483 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5484 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5485 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5486 grub_video_radeon_fuloong2e_fini.
5487 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5488 [LOONGSON]: Rename to grub_video_sis315pro_init.
5489 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5490 grub_video_sis315pro_fini.
5491 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5492 [LOONGSON]: Rename to grub_video_sm712_init.
5493 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5494 grub_video_sm712_fini.
5495 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5496 (grub_at_keyboard_fini): Likewise.
5497 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5498 Don't declare grub_{modname}_init.
5499 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5500 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5502 (grub_keylayouts_fini) [!EMU]: Likewise.
5503 * include/grub/serial.h (grub_serial_init) [!EMU]:
5505 (grub_serial_fini) [!EMU]: Likewise.
5506 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5508 (grub_terminfo_fini) [!EMU]: Likewise.
5509 * include/grub/video.h (grub_font_init) [!EMU]:
5511 (grub_font_fini) [!EMU]: Likewise.
5512 (grub_gfxterm_init) [!EMU]: Likewise.
5513 (grub_gfxterm_fini) [!EMU]: Likewise.
5514 (grub_video_sm712_init) [!EMU]: Likewise.
5515 (grub_video_sm712_fini) [!EMU]: Likewise.
5516 (grub_video_sis315pro_init) [!EMU]: Likewise.
5517 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5518 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5519 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5521 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5523 Make nand a prefix for nand devices.
5525 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5527 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5529 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5530 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5532 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5534 * include/grub/env.h (grub_env_find): Remove prototype.
5535 * grub-core/kern/env.c (grub_env_find): Make static.
5536 (grub_env_set): Remove useless set.
5538 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5540 * grub-core/kern/i386/realmode.S: Remove useless align.
5542 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5544 * include/grub/dl.h (grub_dl_load_file): Don't export.
5546 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5548 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5551 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5553 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5555 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5556 not reloading whole superblock but only the part which is really needed.
5557 Remove useless grub_errors.
5558 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5561 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5563 Don't export grub_get_rtc.
5565 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5566 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5568 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5570 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5572 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5574 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5575 argument since it can be deduced from diskfilter. All users updated.
5577 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5581 * include/grub/list.h (grub_prio_list): Removed.
5582 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5583 GRUB_COMMAND_PRIO_MASK.
5584 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5585 GRUB_COMMAND_FLAG_ACTIVE.
5586 (grub_prio_list_insert): Removed.
5587 (grub_prio_list_remove): Likewise.
5588 (GRUB_AS_PRIO_LIST): Likewise.
5589 (GRUB_AS_PRIO_LIST_P): Likewise.
5590 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5591 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5592 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5593 * grub-core/kern/command.c (grub_register_command_prio): Inline
5595 (grub_unregister_command): Likewise.
5597 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5599 Fix interrupt mixup from previous commit.
5601 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5602 (grub_realidt): New var.
5603 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5605 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5607 (grub_relocator16_boot): Set grub_relocator16_idt.
5608 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5609 (LOCAL(realidt)): ... this.
5610 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5611 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5612 (grub_realidt): New variable.
5614 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5616 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5617 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5618 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5619 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5621 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5622 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5623 * po/POTFILES.in: Regenerate.
5625 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5627 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5630 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5632 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5634 (add_length): Likewise.
5636 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5637 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5639 GDB serial and backtrace support.
5641 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5642 (prot_to_real): Likewise.
5643 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5644 * grub-core/Makefile.core.def (backtrace): New module.
5646 * grub-core/gdb/cstub.c: New file.
5647 * grub-core/gdb/gdb.c: Likewise.
5648 * grub-core/gdb/i386/idt.c: Likewise.
5649 * grub-core/gdb/i386/machdep.S: Likewise.
5650 * grub-core/gdb/i386/signal.c: Likewise.
5651 * grub-core/lib/i386/backtrace.c: Likewise.
5652 * grub-core/lib/backtrace.c: Likewise.
5653 * include/grub/backtrace.h: Likewise.
5654 * include/grub/gdb.h: Likewise.
5655 * include/grub/i386/gdb.h: Likewise.
5657 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5659 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5661 (add_length): Likewise.
5662 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5663 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5665 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5666 __argp_get_display_len.
5668 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5670 $"..." support in scripts.
5672 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5673 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5674 * grub-core/script/yylex.l: Likewise.
5675 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5678 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5680 * gentpl.py: Remove obsolete pkglib_DATA handling.
5682 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5684 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5687 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5688 * util/grub-kbdcomp.in: Likewise.
5689 * util/grub-mkconfig.in: Likewise.
5690 * util/grub-mkconfig_lib.in: Likewise.
5691 * util/grub-mknetdir.in: Likewise.
5692 * util/grub-mkrescue.in: Likewise.
5693 * util/grub-mkstandalone.in: Likewise.
5694 * util/grub-reboot.in: Likewise.
5695 * util/grub-set-default.in: Likewise.
5696 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5698 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5702 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5703 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5704 used for backward compatibility.
5706 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5708 Add new all_video module.
5710 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5711 * grub-core/Makefile.core.def (all_video): New module.
5712 * grub-core/genmoddep.awk: Generate dependency of all_video from
5714 * grub-core/lib/fake_module.c: New file.
5715 * grub-core/normal/main.c (features): Add feature_all_video_module.
5716 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5717 don't do explicit search again.
5718 insmod all_video in load_video if available.
5720 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5722 Another round of string clarification and adding TRANSLATORS comments.
5724 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5726 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5728 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5730 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5732 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5733 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5735 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5737 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5738 trailing newline implicitly. All users updated.
5740 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5742 Implement serial on IEEE1275 and EFI.
5744 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5745 on emu. Mention arc and emu as the only platforms without serial
5747 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5749 * grub-core/term/efi/serial.c: New file.
5750 * grub-core/term/ieee1275/serial.c: Likewise.
5751 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5752 specification if no ns8250 driver is available.
5753 (grub_cmd_serial): Likewise.
5754 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5755 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5756 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5757 (grub_efi_parity_type_t): New type.
5758 (grub_efi_stop_bits_t): Likewise.
5759 (grub_efi_serial_io_interface): New struct.
5760 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5761 available for all interfaces.
5762 Add EFI and IEEE1275 fields.
5763 (grub_ofserial_init): New proto.
5764 (grub_efiserial_init): Likeiwse.
5765 * util/grub.d/00_header.in: Don't check for the presence of serial
5768 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5770 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5771 name as if it was an alias.
5773 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5775 * grub-core/commands/lsacpi.c (options): Fix typo.
5777 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5779 Convert grub-emu to argp.
5781 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5783 * util/argp_common.c: Rename to ...
5784 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5785 Add missing includes.
5786 * grub-core/kern/emu/main.c: Convert to argp.
5787 * po/POTFILES.in: Regenerate.
5788 * util/grub-install.in (usage): Make first letter lowcase in messages
5790 * util/grub-setup.c (options): Likewise.
5792 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5794 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5795 Put back accidently commented-out code.
5797 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5799 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5800 loop check using Brent algorithm.
5801 (grub_hfsplus_btree_search): Likewise.
5803 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5805 * util/grub-install.in: Fix usage of wrong device for PreP install.
5807 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5809 * conf/Makefile.common (CFLAGS_GNULIB): Add
5810 -Wno-unsafe-loop-optimizations.
5811 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5813 * grub-core/commands/legacycfg.c: Add pragma to skip
5814 -Wunsafe-loop-optimizations.
5815 (check_password_md5_real): Fix loop counter type.
5816 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5818 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5819 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5821 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5822 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5823 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5825 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5826 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5827 avoid possible infinite loops.
5828 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5829 and -Wunsafe-loop-optimizations.
5830 * grub-core/script/yylex.l: Likewise.
5831 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5832 (print_glyphs): Avoid infinite loops.
5833 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5835 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5837 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5838 to avoid infinite loop.
5839 (disp_acpi_rsdt_table): Likewise.
5841 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5843 * grub-core/font/font.c (grub_font_load): Add support for default
5844 path for fonts ($prefix/fonts).
5845 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5846 for checking if string is a path.
5847 * grub-core/normal/main.c (features): Add feature_default_font_path.
5848 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5849 * util/grub.d/00_header.in: Use default directory if possible.
5850 * util/grub-install.in: Install unicode.pf2.
5852 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5854 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5855 * po/Rules-swiss: New file.
5856 * po/swiss.sed: Likewise.
5858 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5860 * grub-core/fs/btrfs.c (find_device): Fix typos.
5861 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5862 * util/grub-mkrelpath.c (argp_parser): Likewise.
5863 Reported by: Yuri Chornoivan.
5865 2012-02-23 Dalet Omega <daletomega@gmail.com>
5867 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5868 for usual informative messages.
5870 2012-02-23 Dalet Omega <daletomega@gmail.com>
5874 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5875 * conf/Makefile.common: Define starfielddir.
5876 * configure.ac: Configure starfield.
5877 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5878 * themes/starfield/README: Likewise.
5879 * themes/starfield/blob_w.png: Likewise.
5880 * themes/starfield/boot_menu_c.png: Likewise.
5881 * themes/starfield/boot_menu_e.png: Likewise.
5882 * themes/starfield/boot_menu_n.png: Likewise.
5883 * themes/starfield/boot_menu_ne.png: Likewise.
5884 * themes/starfield/boot_menu_nw.png: Likewise.
5885 * themes/starfield/boot_menu_s.png: Likewise.
5886 * themes/starfield/boot_menu_se.png: Likewise.
5887 * themes/starfield/boot_menu_sw.png: Likewise.
5888 * themes/starfield/boot_menu_w.png: Likewise.
5889 * themes/starfield/slider_c.png: Likewise.
5890 * themes/starfield/slider_n.png: Likewise.
5891 * themes/starfield/slider_s.png: Likewise.
5892 * themes/starfield/src/blob_nw.xcf: Likewise.
5893 * themes/starfield/src/bootmenu/: Likewise.
5894 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5895 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5896 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5897 * themes/starfield/src/slider_c.xcf: Likewise.
5898 * themes/starfield/src/slider_n.xcf: Likewise.
5899 * themes/starfield/src/slider_s.xcf: Likewise.
5900 * themes/starfield/src/terminalbox/: Likewise.
5901 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5902 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5903 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5904 * themes/starfield/starfield.png: Likewise.
5905 * themes/starfield/terminal_box_c.png: Likewise.
5906 * themes/starfield/terminal_box_e.png: Likewise.
5907 * themes/starfield/terminal_box_n.png: Likewise.
5908 * themes/starfield/terminal_box_ne.png: Likewise.
5909 * themes/starfield/terminal_box_nw.png: Likewise.
5910 * themes/starfield/terminal_box_s.png: Likewise.
5911 * themes/starfield/terminal_box_se.png: Likewise.
5912 * themes/starfield/terminal_box_sw.png: Likewise.
5913 * themes/starfield/terminal_box_w.png: Likewise.
5914 * themes/starfield/theme.txt: Likewise.
5916 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5918 * util/grub.d/00_header.in: Add missing export theme.
5920 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5922 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5924 Reported by: Eren D.
5926 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5928 * conf/Makefile.common (grubdatadir): Removed.
5929 (Makefile.am): Move eveything grubdata to pkgdata.
5931 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5933 * grub-core/commands/acpihalt.c (get_sleep_type):
5934 Remove unused variable.
5936 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5938 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5939 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5940 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5941 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5942 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5943 i18n with gettext no-op.
5944 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5945 GRUB_ACPI_OPCODE_STRING_CONST.
5946 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5947 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5949 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5951 * po/POTFILES.in: Regenerate.
5953 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5955 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5956 -Wno-error=missing-noreturn.
5958 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5960 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5961 condition to avoid possibly infinite loops.
5962 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5963 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5965 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5967 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5968 condition to avoid possibly infinite loops.
5970 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5972 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5975 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5977 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5979 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5981 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5983 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5985 * util/bin2h.c (usage): Add missing attribute noreturn.
5987 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5989 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5990 if the size isn't divisible by 512.
5992 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5994 Make list_push and list_remove functions rather than inline functions
5995 to decrease size and avoid aliasing violations.
5997 * include/grub/list.h (grub_list_push): Move to ...
5998 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
5999 * include/grub/list.h (grub_list_remove): Move to ...
6000 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
6002 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6004 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
6005 and -Wunused-result.
6007 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6009 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
6010 Reported by: Seth Goldberg
6012 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6014 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
6016 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6018 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
6019 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
6021 * docs/grub.texi (Simple configuration): Document
6022 GRUB_CMDLINE_GNUMACH.
6024 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
6026 * conf/Makefile.common (platform_SCRIPTS): New variable.
6027 (platform_PROGRAMS): Likewise.
6028 * gentpl.py: Mark *,module and *.image for install.
6029 * grub-core/gdb_grub.in: Add a notice of expected environment.
6030 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
6031 (gmodule.pl): Likewise.
6033 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
6035 Replace grub_checkkey with grub_getkey_noblock.
6037 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
6038 (grub_getkey_noblock): ... this. All users updated.
6040 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
6042 * grub-core/kern/emu/console.c: Move to ...
6043 * grub-core/term/emu/console.c: ...here.
6044 (grub_ncurses_getkey): Fix return value if no key is detected.
6046 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6048 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
6049 (grub_unit_test_fini): Likewise.
6050 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
6052 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6054 * include/grub/test.h (GRUB_UNIT_TEST)
6056 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6058 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6059 Better error handling.
6060 (grub_script_return): Likewise.
6061 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6063 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6065 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6066 rimplicit redifinition.
6068 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6070 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6073 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6075 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6076 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6079 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6081 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6082 as GRUB_ERR_BUG. Don't malloc if no device is available.
6084 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6086 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6087 Mark calling with invalid term as GRUB_ERR_BUG.
6089 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6091 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6092 packets rather than raising an error.
6094 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6096 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6099 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6101 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6102 diagnostic to dprintf.
6103 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6105 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6107 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6110 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6112 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6113 (grub_ntfs_iterate_dir): Likewise.
6115 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6117 Efiemu stylistic fixes and gettext.
6119 * grub-core/efiemu/i386/loadcore32.c
6120 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6121 * grub-core/efiemu/i386/loadcore64.c
6122 (grub_arch_efiemu_relocate_symbols64): Likewise.
6123 * grub-core/efiemu/i386/pc/cfgtables.c
6124 (grub_machine_efiemu_init_tables): Likewise.
6125 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6126 (grub_efiemu_loadcore_initXX): Add a filename argument.
6128 Improved error message.
6129 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6130 Add a filename argument.
6132 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6133 Reclassify double relocation as GRUB_ERR_BUG.
6135 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6137 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6140 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6142 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6145 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6147 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6149 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6151 Improve string. Gettextize.
6153 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6155 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6157 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6159 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6161 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6162 [GRUB_UTIL]: New function.
6163 (insert_array) [GRUB_UTIL]: Store partmaps.
6164 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6166 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6167 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6168 (probe_abstraction): Print diskfilter and not raid.
6169 Reported by: Lennart Sorensen
6171 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6173 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6174 * util/grub-mkimagexx.c (MASK3): New define.
6175 (add_value_to_slot_20b): Use MASK3.
6176 (add_value_to_slot_21): Likewise.
6177 (relocate_addresses): Fix format specification.
6178 (load_image): Explicitly init symtab_section.
6180 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6182 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6183 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6185 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6187 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6189 Reported by: Lennart Sorensen
6191 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6193 * gentpl.py: Add missing license header.
6194 * docs/grub.texi: Update copyright year.
6196 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6198 Source grub-mkconfig_lib from the build directory at build time.
6199 Suggested by: Vladimir Serbinenko.
6201 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6202 * util/grub-install.in: Define pkgdatadir if not already set, and source
6203 grub-mkconfig_lib from there.
6204 * util/grub-kbdcomp.in: Likewise.
6205 * util/grub-mkconfig.in: Likewise.
6206 * util/grub-mknetdir.in: Likewise.
6207 * util/grub-mkrescue.in: Likewise.
6208 * util/grub-mkstandalone.in: Likewise.
6209 * util/grub-reboot.in: Likewise.
6210 * util/grub-set-default.in: Likewise.
6211 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6213 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6215 Increase warning level.
6217 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6218 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6219 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6220 (TARGET_CFLAGS): Likewise.
6221 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6222 * grub-core/Makefile.core.def (decompressor_xz): Add
6223 -Wno-unreachable-code.
6224 (normal): Add -Wno-redundant-decls.
6225 (xzio): Add -Wno-unreachable-code.
6226 (lzopio): Add -Wno-redundant-decls -Wno-error.
6227 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6228 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6229 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6230 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6231 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6232 * grub-core/kern/i386/coreboot/init.c: Add exception to
6233 -Wsuggest-attribute=noreturn.
6234 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6235 * grub-core/kern/ia64/dl_helper.c: Likewise.
6236 * grub-core/kern/mips/dl.c: Likewise.
6237 * grub-core/kern/sparc64/dl.c: Likewise.
6238 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6239 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6241 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6242 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6243 * grub-core/loader/mips/linux.c: Likewise.
6244 * grub-core/loader/multiboot_elfxx.c: Likewise.
6245 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6246 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6247 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6248 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6250 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6251 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6254 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6256 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6259 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6261 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6262 Avoid improper use of strings.
6263 (grub_cmd_legacy_initrdnounzip): Likewise.
6265 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6267 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6269 (grub_util_info): Likewise.
6270 (grub_util_error): Likewise.
6272 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6274 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6275 * util/grub-fstest.c (fstest): Likewise.
6277 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6279 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6280 (grub_md_sha512_real): Likewise.
6281 (grub_util_get_geli_uuid): Likewise.
6282 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6283 (grub_util_biosdisk_open): Fix format specification.
6284 Respect format security.
6285 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6286 (xrealloc): Likewise.
6287 (xasprintf): Likewise.
6289 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6291 * util/import_gcry.py: Include grub/crypto.h in init.c.
6293 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6295 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6296 (generate_image): Make prefix a const char *.
6297 Fix format specifications. Respect format security.
6298 Avoid void * arithmetics.
6300 (argp_parser): Remove unused variable. Respect format security.
6301 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6302 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6303 (count_funcs): Remove unused variable.
6304 (relocate_addresses): Fix format specification.
6305 Disable x86-64 with elf32. Remove unused variables.
6306 (add_fixup_entry): Avoid shadowing.
6307 (make_reloc_section): Fix format specification.
6309 (locate_sections): Fix format specifications.
6310 (load_image): Avoid shadowing.
6312 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6314 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6315 Fix format specifications. Respect format security.
6316 Don't translate already translated grub_errmsg.
6317 (argp_parser): Remove unused variable
6319 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6321 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6323 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6325 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6326 (main): Likewise. Use xmalloc. Respect format security.
6328 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6330 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6332 (argp_parser): Remove unused variable.
6334 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6336 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6337 (add_pixel): Make static.
6338 (add_font): Likewise.
6339 (write_string_section): Make name and str a const char *.
6340 (write_be16_section): Make name a const char *.
6341 (print_glyphs): Make static.
6342 (write_font_ascii_bitmap): Likewise.
6343 (write_font_width_spec): Likewise.
6344 (write_font_pf2): Likewise.
6345 (argp_parser): Remove unused variable.
6346 Respect format security.
6347 (main): Avoid shadowing. Respect format security.
6349 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6351 * util/grub-editenv.c (argp_parser): Make static.
6352 (create_envblk_file): Use xmalloc.
6353 (open_envblk_file): Likewise.
6354 Resepect format security.
6355 (set_variables): Respect format security.
6357 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6359 * util/getroot.c (grub_find_device): Respect format security.
6360 (get_mdadm_uuid): Remove unused variable.
6361 (grub_util_pull_device): Dont call gettext on already translated
6363 (find_system_device): Remove unused variable.
6364 (grub_util_get_grub_dev): Likewise.
6365 (grub_make_system_path_relative_to_its_root): Respect format security.
6367 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6369 * util/grub-fstest.c (execute_command): Make first argument
6371 (read_file): Avoid shadowing.
6372 Reuse underlying error message if device open fails.
6373 (cmd_cmp): Respect format security.
6374 (root): Make const char *.
6375 (fstest): Remove args argument and use global copy.
6376 Respect format security.
6377 (argp_parser): Make static.
6378 (main): Make default_root const char *.
6380 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6382 * util/grub-mount.c (root): Make const char *.
6383 (execute_command): Make first argument a const char *.
6384 (fuse_init): Respect format security.
6385 (argp_parser): Make static. Remove unused variable.
6386 (main): Make default_root a const char *.
6387 Respect format security.
6389 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6391 * util/grub-probe.c (probe): Don't call gettext on already translated
6393 Remove unused variables.
6394 (argp_parser): Remove unused variable.
6396 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6398 * util/grub-script-check.c (argp_parser): Remove unused variable.
6399 (main): Rename read to curread to avoid shadowing.
6401 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6403 * util/misc.c (grub_util_write_image_at): Fix format specification.
6404 (grub_util_write_image): Likewise.
6405 (grub_script_execute_argument_to_string): Removed (unused).
6406 (grub_script_execute_menuentry): Likewise.
6407 (grub_putchar): Likewise.
6409 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6411 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6412 (FUNCTION) [GRUB_UTIL]: Likewise.
6413 (VARIABLE) [GRUB_UTIL]: Likewise.
6415 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6417 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6418 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6420 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6422 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6425 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6427 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6428 (LzmaEnc_SaveState): Removed (unused).
6429 (LzmaEnc_RestoreState): Likewise.
6430 (LzmaEnc_InitPriceTables): Made static.
6431 (LzmaEnc_Construct): Likewise.
6432 (LzmaEnc_FreeLits): Likewise.
6433 (LzmaEnc_Destruct): Likewise.
6434 (LzmaEnc_Init): Likewise.
6435 (LzmaEnc_InitPrices): Likewise.
6436 (LzmaEnc_Finish): Likewise.
6437 (LzmaEnc_PrepareForLzma2): Removed (unused).
6438 (LzmaEnc_MemPrepare): Likewise.
6439 (LzmaEnc_GetNumAvailableBytes): Likewise.
6440 (LzmaEnc_GetCurBuf): Likewise.
6441 (LzmaEnc_CodeOneMemBlock): Likewise.
6443 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6445 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6446 (grub_util_ldm_embed): Likewise.
6448 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6450 * util/grub-editenv.c (print_var): Rename name to varname to
6452 (main): Rename index to curindex to avoid shadowing.
6453 Make filename a const char *.
6455 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6457 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6458 to arg_getline to avoid shadowing.
6460 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6462 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6463 disk_ to avoid shadowing.
6465 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6467 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6468 curindex to avoid shadowing.
6470 (MatchFinder_GetNumAvailableBytes): Make static.
6472 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6474 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6477 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6479 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6480 argument from encrypt to do_encrypt to avoid shadowing.
6482 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6484 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6485 incorrect nesting of #if's.
6487 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6489 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6490 checks which are always false on some platforms.
6491 (grub_cmd_lsacpi): Likewise.
6492 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6493 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6496 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6498 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6499 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6501 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6503 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6504 re_dfa_t to avoid breaking alignment invariants.
6505 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6506 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6508 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6510 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6511 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6513 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6515 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6518 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6520 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6521 conserve alignment invariants.
6522 (grub_ehci_ehcc_read16): Likewise.
6523 (grub_ehci_oper_read32): Likewise.
6524 (grub_ehci_oper_write32): Likewise.
6525 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6526 Conserve alignment invariants.
6528 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6530 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6531 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6534 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6536 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6537 Remove unused variable.
6539 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6541 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6544 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6546 * include/grub/net.h: Remove double declarations.
6548 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6550 Remove "payload" command in ia64 Linux loader since I couldn't
6551 find any evidence of it being used for anything.
6552 Replace "relocate" command with an environment variable
6554 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6556 (ia64_boot_payload): Removed.
6557 (last_payload): Likewise.
6558 (RELOCATE_OFF): Likewise.
6559 (RELOCATE_ON): Likewise.
6560 (RELOCATE_FORCE): Likewise.
6561 (relocate): Likewise.
6562 (free_pages): Don't free payloads.
6563 (grub_load_elf64): Use common error messages.
6564 Use "linux_relocate" variable.
6565 Increase the space after boot_params.
6566 (grub_cmd_payload): Removed.
6567 (grub_cmd_relocate): Likewise.
6568 (grub_cmd_fpswa): Improve messages.
6569 (cmd_payload): Removed.
6570 (cmd_relocate): Likewise.
6571 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6572 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6574 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6576 Convert UHCI to DMA framework.
6578 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6579 (grub_uhci_pci_iter): Fill new members
6580 (grub_alloc_td): Use P2V and V2P functions.
6581 (grub_free_queue): Likewise.
6582 (grub_alloc_qh): Likewise.
6583 (grub_uhci_setup_transfer): Likewise.
6584 (grub_uhci_check_transfer): Likewise.
6586 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6588 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6589 Remove assignment in if while on it.
6591 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6593 * util/grub-mkstandalone.in: Fix modules directory.
6595 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6597 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6599 (argp_parser): Accept "auto" as compression specification.
6601 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6603 Fix `help' with unloaded modules.
6605 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6606 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6607 (grub_dyncmd_dispatcher): Small stylistic fix.
6608 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6609 explicit help is requested.
6611 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6613 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6614 Explicitly init restart while on it.
6616 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6618 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6621 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6623 * util/grub-mknetdir.in: Use . rather than source for POSIX
6626 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6628 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6630 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6632 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6635 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6637 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6640 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6642 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6644 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6646 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6647 iteration of partitions.
6649 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6651 Improve gettext support. Stylistic fixes and error handling fixes while
6654 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6656 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6657 part. Instead setup the correct stack in RM.
6658 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6660 * include/grub/i386/relocator_private.h: New file.
6662 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6664 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6666 * util/grub-fstest.c (options): Add missing DEVICE part.
6668 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6670 Clarify and unify messages.
6672 * grub-core/commands/hashsum.c (options): Unify messages.
6673 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6674 literal-only message as translatable.
6675 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6676 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6677 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6679 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6680 key, not the key used to unlock. Clarify what it's used for.
6681 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6682 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6683 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6684 * util/grub-editenv.c (options): Unify "verbose" message.
6685 * util/grub-fstest.c (read_file): Unify error message.
6686 (fstest): Add quotes around commands.
6687 (options): Unify "verbose" message.
6688 * util/grub-install.in: Add quotes around variable name.
6689 * util/grub-kbdcomp.in: Unify error message.
6690 * util/grub-mkfont.c (main): Likewise.
6691 * util/grub-mkrescue.in: Likewise.
6692 * util/grub-mklayout.c (options): Unify "verbose" message.
6693 * util/grub-mkstandalone.in: Unify help and verbose messages.
6694 * util/grub-mount.c (options): Unify "verbose" message.
6695 * util/grub-probe.c (options): Likewise.
6696 * util/grub-script-check.c (options): Likewise.
6697 * util/grub-setup.c (setup): Unify no-terminator message.
6698 (options): Use DEVICE and not DEV.
6699 Unify "verbose" message.
6700 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6702 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6704 Improve and unify messages.
6706 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6707 name. All users updated.
6708 Print filename in error.
6709 (read_device_map): Print filename in error.
6710 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6711 (grub_util_get_os_disk): Likewise.
6712 (grub_util_biosdisk_get_grub_dev): Likewise.
6713 (grub_util_check_block_device): Likewise.
6714 (grub_util_check_char_device): Likewise.
6715 (grub_make_system_path_relative_to_its_root): Likewise.
6716 * util/grub-editenv.c (create_envblk_file): Likewise.
6717 (open_envblk_file): Likewise.
6718 (write_envblk): Likewise.
6719 * util/grub-fstest.c (cmd_cp): Likewise.
6720 (cmd_cat): Likewise.
6721 (cmd_cmp): Likewise.
6722 * util/grub-menulst2cfg.c (main): Likewise.
6723 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6724 (write_font_width_spec): Likewise.
6725 (write_font_pf2): Likewise.
6726 * util/grub-mkimage.c (generate_image): New argument outname.
6728 Remove unreacheable message.
6729 (options): Unify messages.
6730 (help_filter): Likewise.
6731 * util/grub-mklayout.c (usage): Removed (unused).
6732 (main): Print filename in error.
6733 * util/grub-mkrescue.in: Fix wrong quoting.
6734 * util/grub-setup.c (setup): Print filename in error.
6735 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6736 (check_sas): Likewise.
6737 * util/misc.c (grub_util_get_fp_size): Removed.
6738 (grub_util_get_image_size): Print filename in error.
6739 (grub_util_read_at): Removed.
6740 (grub_util_read_image): Print filename in error.
6741 (grub_util_load_image): Likewise.
6742 (grub_util_write_image_at): New argument filename. All users updated.
6743 Print filename in error.
6744 (grub_util_write_image): New argument filename. All users updated.
6745 Print filename in error.
6746 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6747 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6749 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6751 * grub-core/Makefile.core.def (pxechain): New module.
6752 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6753 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6755 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6756 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6758 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6760 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6761 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6762 * include/grub/err.h (grub_error_saved): New struct.
6763 (grub_errmsg): Make array size explicit.
6764 * include/grub/misc.h (grub_error_save): New function.
6765 (grub_error_load): Likewise.
6766 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6767 (grub_error_push): Update `errno' member name.
6768 (grub_error_pop): Likewise
6769 * grub-core/net/tftp.c (tftp_data): New member save_err.
6770 (tftp_receive): Save error.
6771 (tftp_open): Restore error.
6773 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6775 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6776 to real mode down to execute A20-related code in protected mode as
6779 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6781 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6782 NULL when the argument `level' has an unexpected value.
6784 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6786 Move platform-dependent files from $prefix to $prefix/$platform.
6788 * config.h.in (GRUB_TARGET_CPU): New definition.
6789 (GRUB_PLATFORM): Likewise.
6790 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6791 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6792 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6793 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6794 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6795 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6796 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6797 * grub-core/normal/term.c (read_terminal_list): Likewise.
6798 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6800 (grub_gettext_init_ext): Likewise.
6801 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6803 * util/grub-install.in: Update directories.
6804 * util/grub-mknetdir.in: Likewise.
6805 * util/grub-mkrescue.in: Likewise.
6807 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6809 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6810 grub_error framework. All users updated.
6812 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6814 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6815 lists (by always binsearching), improve caching (cache strings
6816 used for binsearch, not only results), improve
6817 maintainability (by using more structured binary search) and correct
6820 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6822 * grub-core/script/execute.c (grub_script_return): Fix warning.
6824 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6826 * grub-core/script/execute.c (grub_script_return): Fix potential
6828 Reported by: Jim Meyering.
6830 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6832 * po/POTFILES.in: Regenerate.
6833 * util/grub-install.in: Gettextize the strings missed in first pass.
6835 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6837 * Makefile.util.def (grub-mkdevicemap): Removed.
6838 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6839 * include/grub/util/deviceiter.h: Removed.
6840 * util/deviceiter.c: Likewise.
6841 * util/getroot.c (grub_util_get_os_disk): New function.
6842 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6843 replacement for EFI.
6844 * util/grub-mkdevicemap.c: Removed.
6845 * util/grub-probe.c (probe): Handle PRINT_DISK.
6846 (argp_parser): Handle -t disk.
6848 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6850 * util/grub-mkfont.c: Migrate to argp.
6851 * util/grub-mklayout.c: Likewise.
6852 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6853 * util/grub-mkrelpath.c: Likewise.
6854 * util/grub-probe.c: Likewise.
6855 * util/grub-script-check.c: Likewise.
6857 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6859 * util/grub-reboot.in: Add missing datarootdir.
6860 Add missing newline.
6861 * util/grub-set-default.in: Add missing datarootdir.
6862 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6863 * util/grub-mkrescue.in: Likewise.
6865 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6867 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6869 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6871 * util/grub-kbdcomp.in: Add decent help and gettextize.
6872 * docs/man/grub-kbdcomp.h2m: New file.
6874 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6876 Migrate grub-mkimage.c to argp.
6878 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6879 (grub-setup): Likewise.
6880 * util/grub-setup.c (print_version): Move to ...
6881 * util/argp_common.c (print_version): ... here.
6882 * util/grub-setup.c (argp_program_version_hook): Move to ...
6883 * util/argp_common.c (argp_program_version_hook): ... here.
6884 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6886 * util/grub-mkimage.c (main): Migrate to argp.
6888 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6890 * util/grub-mkrescue.in: Use same message as
6891 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6892 for better translations.
6894 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6896 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6897 options with generic grub-mkrescue.in with the goal of future
6900 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6902 * grub-core/kern/mm.c: Add missing include of i18n.h
6903 * grub-core/lib/relocator.c: Likewise.
6905 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6907 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6909 (allocate_pages): Check return value.
6910 Replace fatal with error.
6911 (grub_linux_boot): Replace printf with dprintf.
6912 Check find_mmap_size return value.
6913 Replace fatal with error.
6914 Don't call grub_machine_fini.
6915 (grub_load_elf64): Replace printf with dprintf.
6916 (grub_cmd_linux): Likewise.
6917 (grub_cmd_initrd): Likewise.
6918 (grub_cmd_payload): Likewise.
6920 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6922 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6924 * grub-core/video/radeon_fuloong2e.c
6925 (grub_video_radeon_fuloong2e_setup): Likewise.
6926 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6927 * grub-core/video/video.c (grub_video_set_mode): Don't override
6928 standard out of memory message.
6930 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6932 NetBSD disk wedge support.
6934 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6935 [__NetBSD__]: Handle NetBSD disk wedges.
6936 * util/getroot.c (convert_system_partition_to_system_disk)
6937 [__NetBSD__]: Likewise.
6939 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6941 * util/grub-mkconfig.in: Use umask rather than chmod to create
6942 grub.cfg.new to avoid insecure grub.cfg.
6944 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6946 * grub-core/commands/ls.c: Gettextize.
6947 * grub-core/commands/setpci.c: Likewise.
6948 * grub-core/commands/videotest.c: Likewise.
6949 * grub-core/disk/geli.c: Likewise.
6950 * grub-core/kern/mm.c: Likewise.
6951 * grub-core/lib/relocator.c: Likewise.
6952 * grub-core/loader/efi/appleloader.c: Likewise.
6953 * grub-core/loader/i386/xnu.c: Likewise.
6954 * grub-core/loader/ia64/efi/linux.c: Likewise.
6955 * grub-core/loader/xnu.c: Likewise.
6956 * grub-core/net/dns.c: Likewise.
6957 * grub-core/net/net.c: Likewise.
6958 * grub-core/script/lexer.c: Likewise.
6959 * grub-core/script/parser.y: Likewise.
6960 * grub-core/script/yylex.l: Likewise.
6961 * util/getroot.c: Likewise.
6962 * util/grub-setup.c: Likewise.
6964 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6966 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6969 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6971 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6973 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6975 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6977 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6978 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6980 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6982 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6983 * util/grub-install.in: Gettextize.
6984 * util/grub-mkconfig.in: Likewise.
6985 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6987 (grub_warn): Gettextize.
6988 * util/grub-mknetdir.in: Gettextize.
6989 * util/grub-mkrescue.in: Likewise.
6990 * util/grub-mkstandalone.in: Likewise.
6991 * util/grub-reboot.in: Likewise.
6992 * util/grub-set-default.in: Likewise.
6993 * util/grub.d/00_header.in: Likewise.
6994 * util/grub.d/10_hurd.in: Likewise.
6995 * util/grub.d/10_kfreebsd.in: Likewise.
6996 * util/grub.d/10_linux.in: Likewise.
6997 * util/grub.d/10_netbsd.in: Likewise.
6998 * util/grub.d/10_windows.in: Likewise.
6999 * util/grub.d/20_linux_xen.in: Likewise.
7000 * util/grub.d/30_os-prober.in: Likewise.
7001 * po/POTFILES-shell.in: Regenerate.
7003 2012-02-03 Richard Laager <rlaager@wiktel.com>
7005 * util/grub-mkimage.c (main): Fix format-security warning.
7006 * util/grub-mkrelpath.c (main): Likewise.
7007 * util/grub-probe.c (main): Likewise.
7009 2012-02-03 Richard Laager <rlaager@wiktel.com>
7011 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
7013 Put back lost PRINT_DRIVE.
7015 2012-02-03 Richard Laager <rlaager@wiktel.com>
7017 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
7018 (grub_guess_root_devices): Replace strlen with sizeof.
7020 (find_root_devices_from_poolname): Remove unused variable.
7023 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7025 Support install on multi-device filesystems.
7027 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
7028 (grub_guess_root_devices): ...this. Return char **. All users updated.
7029 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
7031 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
7032 (find_root_devices_from_poolname): ... here.
7033 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
7035 (grub_guess_root_device): Rename to ...
7036 (grub_guess_root_devices): ... this. Return char **. All users updated.
7037 * util/grub-install.in: Handle multi-device filesystems.
7038 * util/grub-probe.c (probe). Make device_names a char **. Add delim
7039 argument. All users updated.
7040 Handle multi-device filesystems.
7041 Use 'delim' as separator.
7042 Remove device check to allow filesystems on file.
7043 (main): Support -0 argument. Handle multi-device.
7044 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
7045 Fix a cross-device check while on it.
7046 (arguments): Remove root_dev.
7047 (argp_parser): Remove -r.
7048 (main): Remove root_dev.
7050 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7052 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7054 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7056 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7058 Reported by: NODA, Kai <nodakai>.
7060 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7064 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7066 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7067 (grub_ehci_setup_qh): Likewise.
7068 (grub_ehci_find_qh): Likewise.
7069 (grub_ehci_transaction): Likewise.
7070 (grub_ehci_setup_transfer): Likewise.
7071 (grub_ehci_check_transfer): Likewise.
7072 (grub_ehci_portstatus): Likewise.
7073 (grub_ehci_detect_dev): Likewise.
7074 (grub_ehci_transfer_controller_data): New field td_last_phys.
7075 (grub_ehci_setup_transfer): Fill td_last_phys.
7076 (grub_ehci_check_transfer): Use td_last_phys.
7078 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7080 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7081 if no submenu is present.
7083 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7087 * include/grub/usb.h (grub_usbms_protocol_t): New values
7088 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7089 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7090 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7091 (grub_usbms_dev): Add subclass, protocol and intrpt.
7092 Remove in_maxsz and out_maxsz.
7093 (grub_usbms_reset): Rename to ...
7094 (grub_usbms_bo_reset): .. this.
7095 (grub_usbms_cbi_cmd): New function.
7096 (grub_usbms_cbi_reset): Likewise.
7097 (grub_usbms_reset): Likewise.
7098 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7099 (grub_usbms_transfer): Rename to ...
7100 (grub_usbms_transfer_bo): ... this.
7101 (grub_usbms_transfer_cbi): Likewise.
7102 (grub_usbms_transfer): Likewise.
7104 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7105 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7107 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7108 the support for the CS5536 modification thereos and few bugfixes.
7110 * grub-core/Makefile.core.def (ehci): New module.
7111 * grub-core/bus/usb/ehci.c: New file.
7112 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7113 port and hubaddr. All users updated.
7114 Save port and hubaddr into dev structure.
7115 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7117 * include/grub/pci.h (grub_dma_phys2virt): New function.
7118 (grub_dma_virt2phys): Likewise.
7119 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7121 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7123 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7124 check as some mkfs implementations omit it.
7126 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7128 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7130 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7132 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7133 Add new member volname2.
7134 (grub_jfs_label): Use volname2 if available.
7136 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7138 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7139 over last_mounted as seen in image generated by mkfs.nilfs2.
7140 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7142 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7144 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7145 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7146 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7148 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7150 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7153 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7155 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7156 subvolume name (by removing a bogus and useless check).
7158 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7160 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7163 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7165 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7166 (grub_scsi_read_capacity10): ... this.
7167 (grub_scsi_read_capacity16): New function.
7168 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7170 Fix off-by-one error.
7171 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7173 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7174 (grub_scsi_read_capacity10): ... this.
7175 (grub_scsi_read_capacity_data): Rename to ...
7176 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7177 (grub_scsi_read_capacity16): New struct.
7178 (grub_scsi_read_capacity16_data): Likewise.
7179 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7180 grub_scsi_cmd_read_capacity10.
7181 New command grub_scsi_cmd_read_capacity16.
7183 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7187 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7188 (grub_scsi_write16): Likewise.
7189 (grub_scsi_read): Use read16 when necessary.
7190 (grub_scsi_write): Likewise.
7191 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7192 (grub_scsi_write16): Likewise.
7193 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7195 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7197 SCSI write support (for usbms mainly).
7199 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7201 (grub_scsi_write): Implement.
7202 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7204 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7206 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7209 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7211 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7213 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7215 * po/POTFILES.in: Regenerate.
7217 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7219 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7220 with grub_printf to avoid unnecessary fatal failure.
7222 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7224 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7225 (INT_MAX): Likewise.
7226 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7227 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7228 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7232 (strncpy): Likewise.
7234 (strncat): Likewise.
7235 (strcoll): Likewise.
7236 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7237 (GRUB_INT_MAX): Likewise.
7239 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7241 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7243 (optimize_utf8): Likewise.
7244 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7246 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7248 * grub-core/boot/i386/pc/lnxboot.S: Use
7249 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7250 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7252 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7254 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7256 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7258 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7259 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7260 now to avoid double free.
7261 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7263 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7264 * util/grub-probe.c (escape_of_path): Always return a new copy.
7265 (print_full_name): Escape path.
7266 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7267 Fix hints on abstractions.
7269 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7271 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7272 Don't add "root" line if no compatibility hont is available.
7273 Suggested by: Seth Goldberg.
7275 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7277 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7278 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7279 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7280 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7282 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7284 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7286 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7288 * util/grub-pe2elf.c (ehdr): Make static.
7290 (num_sections): Likewise.
7293 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7295 Eliminate ofpath limits and possible overflows.
7297 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7298 (OF_PATH_MAX): Removed.
7299 (MAX_DISK_CAT): New const.
7300 (find_obppath): Use allocated rather than preallocated buffer.
7301 Return result. Argument of_path removed. All users updated.
7303 (xrealpath): New function.
7304 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7305 Allocate rather than use preallocated buffer. All users updated.
7306 (__of_path_common): Use allocated rather than preallocatecd buffer.
7307 Return result. Argument of_path removed. All users updated.
7308 (vendor_is_ATA): Read only needed part form the file.
7309 (check_sas): Allocate depending on contents rather than fixed.
7310 (main) [STANDALONE]: Handle NULL result.
7312 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7314 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7316 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7318 Cryptodisk write support.
7320 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7321 (grub_cryptodisk_decrypt): Moved logic to ...
7322 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7323 (grub_cryptodisk_write): Implement.
7324 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7325 (grub_util_fd_write): ... this. Make global.
7326 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7328 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7330 * include/grub/list.h (grub_list_remove): Don't crash if element is
7333 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7335 Rename ofconsole to console.
7337 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7338 as sysnonym to console.
7339 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7340 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7341 Rename grub_ofconsole_ to grub_console_. All users updated
7342 (grub_console_term_output): Rename "ofconsole" to "console".
7343 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7346 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7348 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7350 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7351 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7352 GRUB_DISK_DEVICE_FILE_ID.
7354 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7356 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7357 and improve performance.
7359 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7361 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7362 missing ieee1275/ prefix on whole disk.
7364 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7366 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7367 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7369 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7371 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7373 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7375 Merge common RAID and LVM logic to an abstract diskfilter.
7376 Add LDM support using the same framework.
7378 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7379 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7380 (libgrubmods): Remove grub-core/disk/raid.c and
7381 grub-core/partmap/gpt.c.
7382 * grub-core/Makefile.core.def (ldm): New module.
7383 (raid): Renamed to diskfilter. All users updated.
7384 * grub-core/disk/raid.c: Moved to ...
7385 * grub-core/disk/diskfilter.c: ... here.
7386 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7388 (find_array): Renamed to ...
7389 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7390 (grub_is_array_readable): Renamed to ...
7391 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7392 (insert_array): New argument id.
7393 (is_node_readable): New function.
7394 (scan_device): Rename to ...
7395 (scan_disk): .. this. Restrict to one disk.
7396 (scan_devices): New function.
7397 (grub_diskfilter_iterate): Support multi-LV.
7398 Skip invisible and nameless LVs.
7399 (grub_diskfilter_memberlist): Support multi-LV.
7400 (grub_diskfilter_read_node): New function.
7401 (grub_raid_read): Most of logic moved to ...
7402 (read_segment): ... here
7403 (read_lv): New function.
7404 (grub_diskfilter_get_vg_by_uuid): New function.
7405 (grub_diskfilter_make_raid): Likewise.
7406 * grub-core/disk/ldm.c: New file.
7407 * grub-core/disk/lvm.c (vg_list): Removed.
7408 (lv_count): Likewise.
7409 (scan_depth): Likewise.
7410 (is_lv_readable): Likewise.
7411 (grub_lvm_getvalue): Advance pointer past the number.
7413 (do_lvm_scan): Refactored into ...
7414 (grub_lvm_detect): ... this. Support raid.
7415 (grub_lvm_iterate): Removed.
7416 (grub_lvm_memberlist): Likewise.
7417 (grub_lvm_open): Likewise.
7418 (grub_lvm_close): Likewise.
7419 (read_lv): Likewise.
7420 (read_node): Likewise.
7421 (is_node_readable): Likewise.
7422 (is_lv_readable): Likewise.
7423 (grub_lvm_read): Likewise.
7424 (grub_lvm_write): Likewise.
7425 (grub_lvm_dev): Use diskfilter
7426 (GRUB_MOD_INIT): Likewise.
7427 (GRUB_MOD_FINI): Likewise.
7428 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7430 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7431 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7432 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7433 grub_diskfilter_read_node.
7435 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7436 grub_diskfilter_read_node.
7437 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7438 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7439 (grub_disk_dev_iterate): Move from here...
7440 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7441 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7443 (grub_hostdisk_find_partition_start): Likewise.
7444 (grub_hostdisk_os_dev_to_grub_drive): New function.
7445 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7446 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7447 * util/getroot.c (make_device_name): ... here.
7448 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7450 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7451 * grub-core/kern/emu/hostdisk.c
7452 (convert_system_partition_to_system_disk): Move to ...
7453 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7454 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7455 * util/getroot.c (device_is_wholedisk): ... here.
7456 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7457 * util/getroot.c (find_system_device): ... here.
7458 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7460 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7461 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7463 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7465 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7467 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7468 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7469 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7471 * include/grub/raid.h: Renamed to ...
7472 * include/grub/diskfilter.h: ... this.
7473 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7474 (GRUB_RAID_LAYOUT_*): Make into array.
7475 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7476 (grub_diskfilter_vg): New struct.
7477 (grub_diskfilter_pv_id): Likewise.
7478 (grub_raid_member): Removed.
7479 (grub_raid_array): Likewise.
7480 (grub_diskfilter_pv): New struct.
7481 (grub_diskfilter_lv): Likewise.
7482 (grub_diskfilter_segment): Likewise.
7483 (grub_diskfilter_node): Likewise.
7484 (grub_diskfilter_get_vg_by_uuid): New proto.
7485 (grub_raid_register): Inline.
7486 (grub_diskfilter_unregister): Likewise.
7487 (grub_diskfilter_make_raid): New proto.
7488 (grub_diskfilter_vg_register): Likewise.
7489 (grub_diskfilter_read_node): Likewise.
7490 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7491 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7492 (grub_util_is_ldm): Likewise.
7493 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7494 (grub_hostdisk_find_partition_start): Likewise.
7495 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7496 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7498 (grub_gpt_partition_map_iterate): New proto.
7499 * include/grub/lvm.h (grub_lvm_vg): Removed.
7500 (grub_lvm_pv): Likewise.
7501 (grub_lvm_lv): Likewise.
7502 (grub_lvm_segment): Likewise.
7503 (grub_lvm_node): Likewise.
7504 * util/getroot.c [...]
7505 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7506 (probe_abstraction): Likewise.
7507 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7508 (main): Remove dead logic.
7510 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7512 Simplify root device discover and don't fail when trying to open
7515 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7517 (get_diskname_from_path): Likewise.
7518 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7521 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7523 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7525 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7527 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7530 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7532 * util/grub-install.in: Add missing \.
7533 Reported by: gentoofan
7535 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7537 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7538 (direct_read): Use correct compressed size.
7539 (grub_squash_read_data): Likewise.
7541 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7543 * docs/grub.texi (Platform limitations): New section.
7544 (Platform-specific operations): Likewise.
7545 * docs/grub-dev.texi (Porting): Likewise.
7547 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7549 IEEE1275 disk write support.
7551 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7553 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7554 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7555 and seek loginc to ...
7556 (grub_ofdisk_prepare): ... here.
7557 (grub_ofdisk_write): Implement.
7559 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7561 ARC disk write support.
7563 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7564 (reopen): New argument writable. All users updated.
7565 Handle required access mode.
7566 (grub_arcdisk_write): Implement.
7567 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7568 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7570 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7572 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7573 (read_sblock): Don't attempt to read superblocks outside the disk size.
7575 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7577 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7578 first superblock to find the second one when possible.
7580 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7582 * util/grub-install.in: Fix an ARC bug.
7583 Print a warning if no platform-specific setup is available.
7585 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7587 Use static allocation rather than scratch pointer in reed_solomon.
7588 It decreases its size significantly and avoids a variable in .text.
7590 * grub-core/lib/reed_solomon.c (scratch): Removed.
7591 (chosenstat): New const or static array.
7597 (errvals): Likewise.
7599 (pol_evaluate): Replace x with log_x argument. All users updated.
7600 (syndroms): Removed.
7601 (gauss_solve): Use statically allocated arrays.
7602 (rs_recover): Likewise.
7603 Calculate syndroms directly.
7604 (decode_block): Use statically allocated arrays.
7605 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7606 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7608 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7610 Eliminate fixed limit on reed solomon decoder length.
7612 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7613 rather than hardcoding the address.
7614 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7615 no_reed_solomon_length.
7616 Move gate_a20 to no-reed-solomon part.
7617 Don't force a particular size of no reed-solomon part.
7618 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7620 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7621 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7623 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7625 * grub-core/commands/wildcard.c (match_files): Handle filenames
7626 without explicit device.
7627 (wildcard_expand): Don't add explicit device if not already present.
7628 * tests/grub_script_echo1.in: Add a new expansion test.
7630 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7632 Replace single-linked with double-linked lists. It results in more
7633 compact and more efficient code.
7635 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7636 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7637 (grub_list_remove): Moved from here ...
7638 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7639 (grub_prio_list_insert): Set prev.
7640 * include/grub/list.h (grub_list): Add prev. All users updated.
7642 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7644 Handle newer autotools. Add some missing quotes while on it.
7646 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7647 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7648 (pkgdata_DATA): ... here.
7649 * Makefile.util.def (update-grub_lib): Removed.
7650 * conf/Makefile.common (pkglib_DATA): Removed.
7651 (pkglib_SCRIPTS): Likewise.
7652 (pkgdata_DATA): New variable.
7653 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7656 Remove unused variable while on it.
7657 * tests/util/grub-shell.in: Likewise.
7658 * util/grub-install.in: Likewise.
7659 * util/grub-mkconfig.in: Likewise.
7660 * util/grub-mknetdir.in: Likewise.
7661 * util/grub-mkrescue.in: Likewise.
7662 * util/grub-mkstandalone.in: Likewise.
7663 * util/grub.d/00_header.in: Likewise.
7664 * util/grub.d/10_hurd.in: Likewise.
7665 * util/grub.d/10_illumos.in: Likewise.
7666 * util/grub.d/10_kfreebsd.in: Likewise.
7667 * util/grub.d/10_linux.in: Likewise.
7668 * util/grub.d/10_netbsd.in: Likewise.
7669 * util/grub.d/10_windows.in: Likewise.
7670 * util/grub.d/20_linux_xen.in: Likewise.
7671 * util/grub.d/30_os-prober.in: Likewise.
7672 * util/update-grub_lib.in: Removed.
7674 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7676 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7677 a workaround for intel problem.
7679 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7680 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7681 2012-01-23 pfsmorigo
7683 * util/grub-install.in: Support dd'in into PreP partition.
7684 * util/grub-probe.c (probe): Support discovering partition type.
7685 (main): Support -t msdos_parttype.
7687 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7689 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7690 infinite recursion using counter.
7691 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7692 init to skip it if the magic check fails.
7693 (dec_stream_header): Init s->crc32.
7695 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7696 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7697 2012-01-22 Richard Laager <rlaager@wiktel.com>
7699 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7701 (find_bestub): Determine correct size.
7702 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7703 (scan_disk): Align the size down.
7704 Call check pool before find_bestub to have ashift.
7706 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7708 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7709 dprintf in no-malloc zone.
7711 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7713 * configure.ac: Add back in test for limits.h.
7715 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7717 Support 4K-sector NTFS.
7719 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7720 (grub_ntfs_data): Remove blocksize.
7721 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7722 Remove data argument. All users updated.
7724 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7726 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7727 being in .text to avoid dprel references.
7728 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7729 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7730 (grub_arch_highmemsize): Likewise.
7731 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7732 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7733 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7735 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7737 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7739 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7740 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7742 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7744 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7746 (grub_set_datetime_cmos): Likewise.
7748 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7750 Make XZ compression parameters dependent on target and not host CPU.
7752 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7753 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7755 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7757 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7758 set but not used variable.
7760 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7762 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7763 created when no uuid support is compiled into mkfs.reiser.
7765 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7767 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7768 (utf8_to_macroman): Do the opposite.
7769 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7771 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7773 * configure.ac: Refise build qemu_mips w/o unifont.
7775 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7777 Eliminate grub_min/grub_max prone to overflow usage.
7779 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7780 (poll_nonroot_hub): Likewise.
7781 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7782 (grub_affs_label): Likewise.
7783 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7784 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7785 (grub_hfs_label): Likewise.
7786 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7787 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7788 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7789 (zap_leaf_array_get): Likewise.
7790 (dnode_get_path): Likewise.
7791 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7792 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7793 * grub-core/script/execute.c (grub_script_break): Likewise.
7794 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7796 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7797 * include/grub/misc.h (grub_min): Removed.
7798 (grub_max): Likewise.
7800 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7802 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7805 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7807 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7809 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7811 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7813 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7815 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7816 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7818 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7820 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7821 rather than a hack for grub_strncasemap.
7823 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7825 Support multiple initrds
7826 Note: part of this was accidently committed in r3739.
7828 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7830 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7831 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7832 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7833 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7834 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7836 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7838 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7839 disks with unknown size.
7840 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7842 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7844 Remove defines pertaining to arbitrary limits not affecting GRUB
7847 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7848 (EXT2_MAX_SYMLINKCNT): Likewise.
7849 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7850 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7851 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7852 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7853 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7854 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7855 (DN_MAX_OBJECT_SHIFT): Likewise.
7856 (DN_MAX_OFFSET_SHIFT): Likewise.
7857 (DN_MAX_OBJECT): Likewise.
7858 (DNODES_PER_LEVEL_SHIFT): Likewise.
7859 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7860 (SPA_MAXBLOCKSIZE): Likewise.
7861 (SPA_BLOCKSIZES): Likewise.
7862 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7863 (MZAP_MAX_BLKSZ): Likewise.
7865 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7867 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7868 handle NULL appropriately.
7871 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7875 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7877 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7878 * configure.ac: Fix efiemu check.
7880 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7882 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7884 Reported by: adamwill
7886 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7888 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7890 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7892 Fix handling of wide characters in gfxterm.
7894 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7895 (clear_char): Likewise.
7896 (paint_char): Skip code == NULL chars.
7897 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7899 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7901 * grub-core/normal/charset.c: Move comment to right place.
7903 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7905 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7906 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7907 (grub_affs_mount): Revert the correct version checking.
7909 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7911 * docs/grub.texi (Unicode): Mention several other unsupported features.
7913 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7915 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7916 case statements as compile-time one.
7917 (direct_read): Prevent spurious warnings.
7918 (grub_squash_read_data): Likewise.
7920 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7922 Various squash4 fixes and LZO and XZ support.
7924 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7925 Add xzembed source files.
7926 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7927 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7928 (grub_squash_inode): New subtype long_dir.
7929 (SQUASH_TYPE_LONG_DIR): New inode type.
7930 (COMPRESSION): New enum.
7931 (XZBUFSIZ): New const.
7932 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7933 (read_chunk): Use data->decompress.
7934 (zlib_decompress): New function.
7935 (lzo_decompress): Likewise.
7936 (xz_decompress): Likewise.
7937 (squash_mount): Set new data fields.
7938 (grub_squash_iterate_dir): Handle long dir.
7939 (squash_unmount): Free xzdec and xzbuf.
7940 (grub_squash_open): Check ino type.
7941 (direct_read): Stylistic fixes. Use data->decompress.
7942 (grub_squash_read_data): Likewise.
7943 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7944 (get_byte): Likewise.
7945 (grub_zlib_disk_read): Removed.
7946 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7947 (GRUB_POSIX_BOOL_DEFINED): New define.
7948 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7949 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7950 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7951 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7953 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7955 Don't override more informative errors.
7957 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7958 * grub-core/font/font.c (open_section): Likewise.
7959 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7960 filename. Don't override errors.
7961 (grub_cmd_openbsd_ramdisk): Don't override errors.
7962 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7963 (grub_cmd_initrd): Likewise.
7964 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7965 (grub_cmd_initrd): Likewise.
7966 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7967 (grub_cmd_linux): Likewise.
7968 (grub_cmd_initrd): Likewise.
7969 (grub_cmd_payload): Likewise.
7970 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7971 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7972 (grub_cmd_module): Likewise.
7973 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7974 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7975 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7976 (grub_cmd_xnu_mkext): Likewise.
7977 (grub_cmd_xnu_ramdisk): Likewise.
7978 (grub_xnu_check_os_bundle_required): Likewise.
7979 (grub_xnu_load_kext_from_dir): Likewise.
7980 (grub_cmd_xnu_kextdir): Likewise.
7981 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7983 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7985 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7986 as 1024 in block size field. Found on one of my test images.
7987 Small optimisation while on it.
7989 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7991 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7992 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7993 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7994 performance fixes while on it.
7995 (grub_sfs_close): Fix memory leak while on it.
7996 (grub_sfs_label): Convert Latin1 to UTF-8.
7998 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8000 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
8001 space to avoid overflows.
8002 (grub_hfs_label): Convert from macroman to UTF-8.
8004 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8006 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
8008 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8010 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
8012 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8014 * unicode: Import Unicode 6.0 data.
8016 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8018 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
8021 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8023 Avoid cutting in the middle of UTF-8 character.
8025 * include/grub/charset.h (grub_getend): New function.
8026 * grub-core/script/function.c (grub_script_function_find): Use
8028 * grub-core/normal/completion.c (add_completion): Likewise.
8030 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8032 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
8033 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
8034 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
8035 (GRUB_UNICODE_TAG_END): Likewise.
8036 (GRUB_UNICODE_LAST_VALID): Likewise.
8038 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8040 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
8041 len and make it smaller. All users updated.
8042 * util/import_unicode.py: Put length and not end character.
8045 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8047 Make better Unicode-compliant and unify some UTF-8 code pathes.
8049 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
8051 (grub_is_valid_utf8): Use grub_utf8_process.
8052 Check resulting code range.
8053 (grub_utf8_to_ucs4): Use grub_utf8_process.
8054 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8057 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8059 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8061 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8063 * docs/grub.texi (Filesystems): Mention AFS.
8065 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8067 * docs/grub.texi (Filesystems): Clarify restrictions.
8068 (Regexp): Mention non-Unicode regexp behaviour.
8069 (Other): Mention non-Unicode matching behaviour.
8071 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8073 Make HFS implementation use MacRoman.
8075 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8076 (macroman): New const array.
8077 (macroman_to_utf8): New function.
8078 (utf8_to_macroman): Likewise.
8079 (grub_hfs_find_dir): Use utf8_to_macroman.
8080 (grub_hfs_dir): Use macroman_to_utf8.
8081 Set case_insensitive.
8083 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8085 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8087 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8089 Integrate hints into autogeneration scripts.
8091 * docs/grub.texi (Filesystems): Add a hostdisk example.
8092 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8093 (grub-probe): Add ofpath.
8094 * gentpl.py: Remove group nosparc64.
8095 * grub-core/commands/search.c (cache_entry): New struct.
8097 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8098 * grub-core/commands/search_wrap.c (options): Add platform-specific
8100 (grub_cmd_search): Handle platform-specific hints.
8101 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8102 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8103 (grub_util_biosdisk_data): Likewise.
8104 (grub_util_biosdisk_open): Set device_map.
8105 (read_device_map): Handle "" as indication of no map.
8107 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8108 (grub_util_biosdisk_get_compatibility_hint): New function.
8109 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8110 * include/grub/emu/hostdisk.h
8111 (grub_util_biosdisk_get_compatibility_hint): New proto.
8112 * util/grub-install.in: Don't call grub-mkdevicemap.
8113 Add platform-specific hint to load.cfg.
8114 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8115 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8116 hints. Set root preliminary to compatibility hint, not to OS name.
8117 * util/grub-probe.c (PRINT_*): Add hints.
8118 (print): Make static.
8119 (escape_of_path): New function.
8120 (guess_bios_drive): Likewise.
8121 (guess_efi_drive): Likewise.
8122 (guess_baremetal_drive): Likewise.
8123 (print_full_name): Likewise.
8124 (probe): Handle hints.
8126 * util/ieee1275/devicemap.c: Removed.
8127 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8129 (grub_util_devname_to_ofpath): Return NULL on failure.
8131 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8133 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8135 * po/POTFILES.in: Regenerated.
8137 Allow purely long options
8139 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8140 (SHORT_ARG_USAGE): Likewise.
8141 (grub_arg_show_help): Compare opt with help_options.
8142 (parse_option): Receive opt as argument. If makes big simplificatons.
8145 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8147 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8148 Restructure to avoid warning.
8150 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8152 * util/grub-install.in: Account for possible escaped comma in device
8155 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8157 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8160 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8162 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8163 allocation and zero-setting.
8164 (grub_ieee1275_get_devname): Check that alias is complete.
8166 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8168 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8171 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8173 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8175 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8176 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8177 Add ieee1275 prefix.
8179 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8181 * docs/grub.texi (Filesystems): Update.
8183 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8185 Support odc, newc and bigendian cpio formats.
8187 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8188 * grub-core/Makefile.core.def (newc): New module.
8190 (cpio_be): Likewise.
8191 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8194 (head) [MODE_ODC]: Adapt for the format.
8195 (head) [MODE_NEWC]: Likewise.
8196 (head) [!MODE_*]: Write fields of interest as arrays.
8197 (MAGIC_USTAR): Removed.
8198 (read_number) [MODE_NEWC]: Change to hex.
8199 (read_number) [!MODE_*]: Parse binary arrays.
8200 (grub_cpio_find_file): Factor out the code for better structure and
8201 always use read_number.
8202 (grub_cpio_mount): Use MAGIC and MAGIC2.
8203 (grub_cpio_dir): Exit on first hook non-0 return.
8204 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8205 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8206 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8207 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8208 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8209 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8210 * grub-core/fs/newc.c: New file.
8211 * grub-core/fs/odc.c: Likewise.
8212 * grub-core/fs/cpio_be.c: Likewise.
8214 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8216 Fix handling of tar numbers occupying the whole field.
8218 * grub-core/fs/cpio.c (read_number): New function.
8219 (grub_cpio_find_file): Use read_number instead of strtoull.
8221 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8223 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8224 occupying the whole field size.
8226 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8228 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8230 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8232 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8234 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8236 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8239 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8241 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8242 (mountinfo_entry): Increase the field size to take escaping into
8244 (find_root_device_from_libzfs): Add one byte to size of strings for
8247 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8249 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8251 * util/grub-setup.c (setup): Likewise.
8253 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8255 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8258 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8260 * docs/grub.texi (Internationalisation): New section.
8262 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8264 * docs/grub.texi (Loopback booting): New section.
8266 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
8268 * util/grub-mkstandalone.in: Fix minor typo errors.
8270 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8272 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8274 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8275 net/icmp.c and net/icmp6.c.
8277 (priority_queue): Likewise.
8278 * grub-core/io/bufio.c: Rewritten.
8279 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8280 TYPE_WITH_CONFIGFILE_OPTION.
8281 (legacy_commands): Add bootp and dhcp.
8282 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8283 (grub_legacy_parse): Likewise.
8284 * grub-core/lib/priority_queue.c: New file.
8285 * grub-core/net/arp.c: Add missing license header.
8286 (arp_find_entry): Removed.
8287 (arp_find_entry): Likewise.
8288 (grub_net_arp_resolve): Rename to ...
8289 (grub_net_arp_send_request): ...this.
8290 (grub_net_arp_receive): New card argument.
8291 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8292 Set router and DNS server.
8293 (grub_net_configure_by_dhcp_ack): Handle routing information.
8294 (grub_cmd_bootp): Set checksum.
8295 (grub_bootp_init): Remove net_dhcp.
8296 * grub-core/net/dns.c: New file.
8297 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8299 (get_card_packet): Handle allocation.
8300 (grub_efinet_findcards): Set mtu.
8301 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8302 (get_card_packet): Handle allocation.
8304 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8305 (GRUB_MOD_INIT): Set mtu.
8306 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8308 (get_card_packet): Handle allocation.
8309 (grub_ofnet_findcards): Set mtu.
8310 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8312 (grub_net_recv_ethernet_packet): Handle IPv6.
8313 * grub-core/net/http.c: New file.
8314 * grub-core/net/icmp.c: Likewise.
8315 * grub-core/net/icmp6.c: Likewise.
8316 * grub-core/net/ip.c (ip6addr): New type.
8318 (reassemble): Likewise.
8319 (cmp): New function.
8320 (reassembles): New variable.
8321 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8323 (send_fragmented): New function.
8324 (grub_net_send_ip_packet): Rename to ...
8325 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8327 (grub_net_recv_ip_packets): Rename to ...
8328 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8329 (free_rsm): New function.
8330 (free_old_fragments): Likewise.
8331 (grub_net_recv_ip4_packets): New function.
8332 (grub_net_send_ip6_packet): Likewise.
8333 (grub_net_send_ip_packet): Likewise.
8334 (grub_net_recv_ip6_packets): Likewise.
8335 (grub_net_recv_ip_packets): Likewise.
8336 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8337 (LINK_LAYER_CACHE_SIZE): New const.
8338 (link_layer_find_entry): New function.
8339 (grub_net_link_layer_add_address): Likewise.
8340 (grub_net_link_layer_resolve_check): Likewise.
8341 (grub_net_link_layer_resolve): Likewise.
8342 (grub_net_ipv6_get_slaac): Likewise.
8343 (grub_net_ipv6_get_link_local): Likewise.
8344 (grub_cmd_ipv6_autoconf): Likewise.
8345 (parse_ip): Handle one number representation.
8346 (parse_ip6): New functoion.
8347 (match_net): Handle IPv6.
8348 (grub_net_resolve_address): Handle IPv6 and DNS.
8349 (grub_net_resolve_net_address): Handle IPv6.
8350 (route_cmp): New function.
8351 (grub_net_route_address): Find best route.
8352 (grub_net_addr_to_str): Handle IPv6.
8353 (grub_net_addr_cmp): New function.
8354 (grub_net_add_addr): Register local route.
8355 (print_net_address): Handle net address.
8356 (grub_net_poll_cards): Retransmit TCP.
8357 (grub_net_poll_cards_idle_real): Likewise.
8358 (have_ahead): New function.
8359 (grub_net_seek_real): Use underlying seek.
8360 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8361 * grub-core/net/tcp.c: New file.
8362 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8363 (cmp): New function.
8365 (tftp_receive): Handle unordered input.
8366 (destroy_pq): New function.
8367 (tftp_close): Close pq.
8368 * grub-core/net/udp.c: Put missing license header.
8369 (grub_net_udp_socket): New function.
8370 (udp_socket_register): Likewise.
8371 (grub_net_udp_close): Likewise.
8372 (grub_net_recv_udp_packet): Check checksum.
8373 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8374 * include/grub/misc.h (grub_memchr): New function.
8375 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8376 (grub_net_card_driver): Return buf in recv.
8377 (grub_net_slaac_mac_list): New struct.
8378 (grub_network_level_protocol_id): Add ipv6.
8379 (grub_net_network_level_addr): Likewise.
8380 (grub_net_network_level_net_addr): Likewise.
8381 (grub_net_app_protocol): Add seek.
8382 (grub_net_socket): Removed.
8383 (grub_net_sockets): Likewise.
8384 (grub_net_socket_register): Likewise.
8385 (grub_net_socket_unregister): Likewise.
8386 (FOR_NET_SOCKETS): Likewise.
8387 (grub_net_add_addr): Add const.
8388 (GRUB_NET_BOOTP_*): New enum.
8389 (grub_net_addr_cmp): New proto.
8390 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8391 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8392 (grub_net_hwaddr_to_str): NEw proto.
8393 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8394 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8395 (grub_dns_init): New proto.
8396 (grub_dns_fini): Likewise.
8397 (grub_net_tcp_retransmit): Likewise.
8398 (grub_net_link_layer_add_address): Likewise.
8399 (grub_net_link_layer_resolve_check): Likewise.
8400 (grub_net_link_layer_resolve): Likewise.
8401 (grub_net_dns_lookup): Likewise.
8402 (grub_net_add_dns_server): Likewise.
8403 (grub_net_remove_dns_server): Likewise.
8404 (GRUB_NET_TRIES): New const.
8405 (GRUB_NET_INTERVAL): Likewise.
8406 * include/grub/net/arp.h: Mostly rewritten.
8407 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8408 * include/grub/net/ip.h: Mostly rewritten.
8409 * include/grub/net/netbuff.h: Indent.
8410 * include/grub/net/tcp.h: New file.
8411 * include/grub/net/udp.h: Mostly rewritten.
8412 * include/grub/priority_queue.h: New file.
8413 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8414 (grub_swap_bytes64_compile_time): Likewise.
8415 (grub_cpu_to_be16_compile_time): Likewise.
8416 (grub_cpu_to_be32_compile_time): Likewise.
8417 (grub_cpu_to_be64_compile_time): Likewise.
8418 (grub_be_to_cpu64_compile_time): Likewise.
8420 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8422 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8423 UINT_TO_PTR with cast.
8425 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8427 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8430 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8432 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8435 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8437 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8440 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8442 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8443 Add missing const attribute.
8444 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8446 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8449 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8451 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8453 (serpent_setkey): Likewise.
8454 (serpent_encrypt_internal): Likewise.
8455 (serpent_decrypt_internal): Likewise.
8456 (serpent_encrypt): Don't put an alignment-increasing cast.
8457 (serpent_decrypt): Likewise.
8458 (serpent_test): Likewise.
8460 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8462 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8464 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8466 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8468 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8470 (PTR_TO_UINT64): Likewise.
8471 (PTR_TO_UINT32): Likewise.
8473 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8475 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8477 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8480 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8482 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8483 text_width > available width a bit more gracefully.
8485 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8487 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8488 current address calculation.
8490 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8492 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8494 (encode_block): Likewise.
8496 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8498 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8501 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8503 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8504 non-RS part to avoid RS messing with GDT.
8505 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8506 Increase to suit in realmode routines.
8508 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8510 * grub-core/kern/i386/realmode.S: Increase alignment.
8511 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8513 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8515 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8517 (syndroms): Compute 0 syndrom.
8518 (rs_recover): Use 0 syndrom.
8520 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8522 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8524 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8526 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8529 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8531 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8533 (get_top_pad): Likewise.
8534 (get_right_pad): Likewise.
8535 (get_bottom_pad): Likewise.
8537 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8539 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8541 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8543 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8544 attribute as the structure isn't guaranteed to be properly aligned.
8545 (grub_efi_pci_device_path): Likewise.
8546 (grub_efi_pccard_device_path): Likewise.
8547 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8548 specify the size of `memory_type'.
8549 (grub_efi_vendor_device_path): Likewise.
8550 (grub_efi_controller_device_path): Likewise.
8551 (grub_efi_acpi_device_path): Likewise.
8552 (grub_efi_expanded_acpi_device_path): Likewise.
8553 (grub_efi_atapi_device_path): Likewise.
8554 (grub_efi_scsi_device_path): Likewise.
8555 (grub_efi_fibre_channel_device_path): Likewise.
8556 (grub_efi_1394_device_path): Likewise.
8557 (grub_efi_usb_device_path): Likewise.
8558 (grub_efi_usb_class_device_path): Likewise.
8559 (grub_efi_i2o_device_path): Likewise.
8560 (grub_efi_mac_address_device_path): Likewise.
8561 (grub_efi_ipv4_device_path): Likewise.
8562 (grub_efi_ipv6_device_path): Likewise.
8563 (grub_efi_infiniband_device_path): Likewise.
8564 (grub_efi_uart_device_path): Likewise.
8565 (grub_efi_vendor_messaging_device_path): Likewise.
8566 (grub_efi_hard_drive_device_path): Likewise.
8567 (grub_efi_cdrom_device_path): Likewise.
8568 (grub_efi_vendor_media_device_path): Likewise.
8569 (grub_efi_file_path_device_path): Likewise.
8570 (grub_efi_protocol_device_path): Likewise.
8571 (grub_efi_piwg_device_path): Likewise.
8572 (grub_efi_bios_device_path): Likewise.
8574 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8576 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8577 (grub_ucs4_to_utf8_alloc): Likewise.
8578 (grub_ucs4_to_utf8): Likewise.
8579 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8580 (grub_ucs4_to_utf8_alloc): Likewise.
8582 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8584 AFFS never uses unicode.
8586 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8587 (grub_latin1_to_utf8): New inline function.
8588 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8590 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8592 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8595 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8597 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8598 (grub_squash_dirent_header): Likewise.
8599 (read_chunk): Don't double swap.
8600 (grub_squash_iterate_dir): Fix swap sizes.
8602 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8604 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8608 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8609 (grub_hfs_iterate_dir): Likewise.
8611 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8613 Fix video on platforms where unaligned access is forbidden.
8614 Make several optimisations while on it.
8616 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8617 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8618 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8619 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8621 (grub_video_fbblit_replace_16bit_1bit):
8622 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8623 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8624 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8625 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8626 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8627 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8628 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8629 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8630 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8631 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8632 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8633 (grub_video_fbblit_replace_index_RGB888): Likewise.
8634 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8635 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8636 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8637 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8638 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8639 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8640 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8642 (grub_video_fbblit_blend_XXX565_1bit):
8643 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8644 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8645 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8647 * grub-core/video/fb/video_fb.c (common_blitter)
8648 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8649 (grub_video_fb_create_render_target_from_pointer)
8650 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8651 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8652 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8654 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8656 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8658 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8659 HH22 and HM10 relocations.
8661 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8663 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8665 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8667 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8668 allocation succeeded.
8670 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8672 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8673 argument a u8 pointer. All users updated.
8674 Handle unaligned buffers.
8676 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8678 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8679 add_part to workaround compiler bug.
8681 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8683 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8685 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8687 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8688 Reserve alignment invariants.
8689 (grub_multiboot_load): Likewise.
8690 (retrieve_video_parameters): Likewise.
8691 (grub_multiboot_make_mbi): Likewise.
8693 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8695 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8698 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8700 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8701 (grub_pata_pio_write): Likewise.
8703 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8705 Add noreturn attributes and remove unreachable code.
8707 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8709 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8710 code. Mark as noreturn.
8711 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8712 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8713 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8715 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8716 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8717 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8718 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8719 * include/grub/kernel.h (grub_main): Mark as noreturn.
8720 * include/grub/reader.h (grub_rescue_run): Likewise.
8722 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8724 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8725 redundant declaration.
8727 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8729 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8730 redundant declaration.
8731 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8733 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8735 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8736 to ensure alignment.
8737 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8738 alignment. Ensure tmp alignment.
8739 (grub_cmd_hdparm): Ensure buf alignment.
8740 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8741 to ensure alignment.
8742 (grub_ata_dumpinfo): Ensure text alignment.
8743 (grub_atapi_identify): Preserve alignment invariant.
8744 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8746 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8748 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8749 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8750 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8751 * include/grub/misc.h (grub_reboot)
8752 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8753 (grub_halt) [__mips__]: Likewise.
8755 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8757 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8758 Remove redundant declaration.
8759 (grub_mmap_get_post64): Likewise.
8760 (grub_mmap_get_upper): Likewise.
8761 (grub_mmap_get_lower): Likewise.
8763 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8765 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8766 uint32_t * to ensure alignment.
8767 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8769 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8771 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8772 uint16_t * to ensure alignment.
8773 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8776 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8778 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8779 to ensure alignment.
8780 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8782 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8784 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8785 Handle unaligned pointers.
8788 (fixup): Use byte access instead of v16at.
8789 (find_attr): Fix imporper usage of v32at.
8790 (read_data): Likewise.
8791 (list_file): Handle byte-swapping and unaligned strings.
8792 (grub_ntfs_label): Likewise.
8794 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8796 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8797 as it's not necessarily aligned.
8799 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8801 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8802 redundant declaration.
8803 (grub_serial_init): Likewise.
8804 (grub_terminfo_init): Likewise.
8806 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8808 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8810 (ZAP_HASH_IDX): Likewise.
8811 (ZAP_LEAF_HASH_SHIFT): Likewise.
8812 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8813 (LEAF_HASH): Likewise.
8814 (ZAP_LEAF_NUMCHUNKS): Likewise.
8815 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8816 alignment invariants. Return pointer. All users updated.
8817 (ZAP_LEAF_ENTRY): Make into inline function.
8820 (xor_out): Use grub_crypto_xor.
8821 (dnode_get_path): Use grub_get_unaligned.
8822 (nvlist_find_value): Likewise.
8823 (grub_zfs_nvlist_lookup_uint64): Likewise.
8824 (grub_zfs_nvlist_lookup_string): Likewise.
8825 (get_nvlist_size): Likewise.
8826 (grub_zfs_open): Likewise.
8827 (fill_fs_info): Likewise.
8828 (grub_zfs_dir): Likewise.
8829 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8830 alignment invariants.
8831 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8832 necessarily aligned.
8834 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8836 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8838 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8840 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8841 arithmetic to conserve alignment invariants.
8843 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8845 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8846 redundant declaration.
8847 (grub_efiemu_mm_obtain_request): Likewise.
8848 (grub_efiemu_prepare): Likewise.
8850 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8852 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8855 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8857 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8858 case of aunaligned recptr.
8859 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8861 (grub_hfsplus_btree_search): Handle unaligned index.
8863 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8865 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8866 to get freetag and skip.
8868 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8870 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8872 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8873 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8875 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8877 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8878 name for checksum and fix allocation algorithm.
8880 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8882 * include/grub/types.h (grub_properly_aligned_t): New type.
8883 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8884 (grub_get_unaligned16): Add explicit casts.
8885 (grub_get_unaligned32): Likewise.
8886 (grub_get_unaligned64): Likewise.
8887 (grub_set_unaligned16): New function.
8888 (grub_set_unaligned32): Likewise.
8890 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8892 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8894 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8896 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8897 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8898 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8900 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8902 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8905 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8907 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8908 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8910 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8912 Unify and improve RAID and crypto xor.
8914 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8915 changed to grub_crypto_xor
8916 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8917 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8918 Use bigger types when possible.
8920 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8922 * grub-core/disk/raid.c (scan_devices): Fix condition.
8924 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8926 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8927 Make name a const ptr.
8929 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8931 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8932 first argument a const pointer.
8933 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8934 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8936 (grub_children_iterate): Likewise.
8937 (grub_machine_mmap_iterate): Remove redundant declaration.
8939 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8941 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8942 (grub_cmd_acpi) [!x86]: Disable EBDA.
8944 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8946 Enable UTF8 in gnulib regexp.
8948 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8949 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8950 (isupper): Use grub_isupper.
8951 (isascii): New inline function.
8952 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8953 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8954 * grub-core/normal/charset.c (grub_utf8_process): New function.
8955 (grub_utf8_to_utf16): Use grub_utf8_process.
8956 (grub_encode_utf8_character): New function.
8957 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8958 * include/grub/charset.h (grub_utf8_process): New declaration.
8959 (grub_encode_utf8_character): Likewise.
8960 * include/grub/misc.h (grub_islower): New inline function.
8961 (grub_isupper): Likewise.
8962 (grub_strchrsub): Moved down to fix the definitions.
8964 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8966 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8969 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8971 * include/grub/loader.h (grub_loader_register_preboot_hook):
8972 Use struct preboot * and not void * for handle. All users updated.
8973 (grub_loader_unregister_preboot_hook): Likewise.
8975 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8977 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8978 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8979 UTF-16-BE. All users updated.
8980 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8981 (grub_hfsplus_iterate_dir): Likewise.
8982 (grub_hfsplus_label): Likewise.
8984 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8986 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8988 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8990 Add missing const qualifiers.
8992 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8993 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8994 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8995 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
8996 (grub_lvm_check_flag): Likewise.
8997 * grub-core/efiemu/i386/coredetect.c
8998 (grub_efiemu_get_default_core_name): Likewise
8999 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9000 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
9001 * grub-core/fs/ntfs.c (fixup): Likewise.
9002 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
9003 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
9004 (fzap_lookup): Likewise.
9005 (zap_lookup): Likewise.
9006 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
9007 * grub-core/lib/legacy_parse.c (check_option): Likewise.
9008 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
9009 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
9010 (grub_freebsd_add_meta_module): Likewise.
9011 (grub_cmd_freebsd_module): Likewise.
9012 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
9013 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
9014 (grub_xnu_writetree_get_size): Likewise.
9015 (grub_xnu_writetree_toheap_real): Likewise.
9016 (grub_xnu_find_key): Likewise.
9017 (grub_xnu_create_key): Likewise.
9018 (grub_xnu_create_value): Likewise.
9019 (grub_xnu_register_memory): Likewise.
9020 (grub_xnu_check_os_bundle_required): Likewise.
9021 (grub_xnu_scan_dir_for_kexts): Likewise.
9022 (grub_xnu_load_kext_from_dir): Likewise.
9023 * grub-core/normal/color.c (color_list): Likewise.
9024 * grub-core/normal/completion.c (current_word): Likewise.
9025 * grub-core/normal/menu_entry.c (insert_string): Likewise.
9026 * grub-core/term/serial.c (grub_serial_find): Likewise.
9027 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
9028 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
9030 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
9031 (grub_freebsd_add_meta_module): Likewise.
9032 * include/grub/lib/arg.h (grub_arg_option): Likewise.
9033 * include/grub/net.h (grub_net_card_driver): Likewise.
9034 (grub_net_card): Likewise.
9035 (grub_net_app_protocol): Likewise.
9036 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
9037 * include/grub/serial.h (grub_serial_find): Likewise.
9038 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
9039 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
9040 (grub_xnu_create_value): Likewise.
9041 (grub_xnu_find_key): Likewise.
9042 (grub_xnu_scan_dir_for_kexts): Likewise.
9043 (grub_xnu_load_kext_from_dir): Likewise.
9045 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
9046 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
9047 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
9049 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
9051 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
9053 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9055 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9057 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9058 (read_device): Fix size calculation.
9060 2011-11-25 Robert Millan <rmh@gnu.org>
9062 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9063 (find_root_device_from_libzfs): Add zpool output parser to be used
9064 as fallback when libzfs isn't available.
9066 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9068 * po/Makefile.in.in: Add missing escape-continuation.
9070 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9072 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9074 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9076 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9078 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9080 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9082 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9084 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9086 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9088 * grub-core/lib/adler32.c: Add missing license specification.
9089 * grub-core/lib/crc64.c: Likewise.
9090 * grub-core/loader/i386/pc/plan9.c: Likewise.
9091 * grub-core/partmap/plan.c: Likewise.
9093 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9095 Add facility to debug GRUB with gdb under qemu.
9097 * grub-core/gdb_grub.in: New file.
9098 * grub-core/gmodule.pl.in: Likewise.
9099 * grub-core/Makefile.core.def (gmodule.pl): New script.
9100 (gdb_grub): Likewise.
9102 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9104 * util/grub-mount.c (argp_parser): Accept relative pathes.
9105 * util/grub-fstest.c (argp_parser): Likewise.
9107 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9111 * Makefile.util.def (libgrubmods): Add
9112 grub-core/partmap/plan.c.
9113 * docs/grub.texi: Notice Plan9 support.
9114 * grub-core/Makefile.core.def (plan9): New module.
9115 (part_plan): Likewise.
9116 * grub-core/loader/i386/pc/plan9.c: New file.
9117 * grub-core/partmap/plan.c: Likewise.
9118 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9120 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9121 * include/grub/mm.h (grub_extend_alloc): New inline function.
9123 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9125 Make Reed-Solomon faster by using power of generator representation of
9128 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9129 (gf_double_t): Likewise.
9130 (gf_invert): Removed.
9131 (gf_powx): New array.
9132 (gf_powx_inv): Likewise.
9133 (scratch): Move higher.
9134 (gf_reduce): Removed.
9136 (gf_invert): Likewise.
9137 (init_inverts): Replaced with ...
9138 (init_powx): ...this. All users updated.
9139 (pol_evaluate): Replace multiplications with additions.
9140 (rs_encode): Likewise.
9141 (gauss_eliminate): Call gf_invert.
9142 (grub_reed_solomon_add_redundancy): Call init_powx.
9143 (grub_reed_solomon_recover): Call init_powx unconditionally.
9145 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9147 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9149 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9151 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9152 disk->partiton for safety.
9154 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9156 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9158 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9160 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9162 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9164 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9166 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9168 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9170 Fix spaces handling in proc/self/mountinfo.
9172 * util/getroot.c (unescape): New function.
9173 (grub_find_root_device_from_mountinfo): Use unescape.
9175 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9177 Support ZFS embedding.
9179 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9180 (grub_zfs_fs): Register grub_zfs_embed.
9182 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9184 Fix MIPS compilation.
9186 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9187 * include/grub/offsets.h: Rename decompressor fields from
9188 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9189 * util/grub-mkimage.c (image_targets): Use new names.
9191 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9193 Defer multiboot device parsing until we're in compressed part.
9195 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9196 bsd_part. setdevice has fallen into disuse.
9197 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9198 (bsd_part): Likewise.
9199 (boot_dev): New variable.
9200 (multiboot_trampoline): Don't parse multiboot device.
9201 Pass multiboot device in %edx.
9202 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9204 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9206 * grub-core/kern/i386/pc/startup.S: Save edx.
9207 (grub_boot_drive): Removed.
9208 (grub_install_dos_part): Likewise.
9209 (grub_install_bsd_part): Likewise.
9210 (grub_boot_device): New variable.
9211 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9212 (grub_install_bsd_part): Likewise.
9213 (grub_boot_drive): Likewise.
9214 (grub_boot_device): New variable.
9215 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9217 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9218 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9219 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9220 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9221 * util/grub-install.in: Remove redundant condition.
9223 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9225 Fix bug introduced by previous commit.
9227 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9229 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9231 Use decompressors framework on i386-pc. It increases core size
9232 by 46 bytes but improves compatibility and maintainability.
9234 * grub-core/Makefile.core.def (lzma_decompress): New image.
9235 (kernel): Add i386_pc_ldflags.
9236 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9237 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9238 to real_to_prot, prot_to_real and device info.
9239 * include/grub/offsets.h: Renamed decompressor offsets.
9240 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9241 (image_target_desc): Remove raw_size and rename decompressor fields.
9242 (compress_kernel): Handle lzma.
9243 (generate_image): Handle decompressors on i386-pc.
9245 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9247 * configure.ac: Add -fno-asynchronous-unwind-tables.
9249 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9251 Move assembly code to C by using intwrap. It increases core size
9252 by 88 bytes but improves compatibility and maintainability.
9254 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9255 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9256 ... here. Translated to C.
9257 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9258 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9259 ... here. Translated to C.
9260 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9261 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9262 ... here. Translated to C.
9263 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9264 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9265 ... here. Translated to C.
9266 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9267 * grub-core/term/i386/pc/console.c (grub_console_cls):
9268 ... here. Translated to C.
9269 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9270 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9271 ... here. Translated to C.
9272 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9273 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9275 * grub-core/term/i386/pc/console.c (int10_9): New function.
9276 (grub_console_putchar): Likewise.
9277 * include/grub/i386/pc/console.h: Removed the not anymore shared
9280 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9282 Move grub_chainloader_real_boot out of the kernel.
9284 * grub-core/Makefile.am: Remove machine/loader.h.
9285 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9287 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9289 (grub_relocator16_keep_a20_enabled): Likewise.
9290 (grub_relocator16_boot): Fill new variables.
9291 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9292 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9294 (grub_chainloader_unload): Likewise.
9295 (grub_chainloader_cmd): Likewise.
9296 * include/grub/i386/pc/loader.h: Removed.
9297 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9298 and esi. All initialisers updated.
9300 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9301 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
9303 * Makefile.util.def (grub-mount): New util.
9304 * .bzrignore: Add grub-mount.
9305 * configure.ac: Check for fuse and enable grub-mount if available.
9306 * docs/man/grub-mount.h2m: New file.
9307 * util/grub-mount.c: Likewise.
9309 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9311 * grub-core/commands/efi/fixvideo.c: Gettextize.
9312 * grub-core/commands/hashsum.c: Likewise.
9313 * grub-core/commands/i386/cmostest.c: Likewise.
9314 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9315 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9316 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9317 * grub-core/commands/lsmmap.c: Likewise.
9318 * grub-core/commands/menuentry.c: Likewise.
9319 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9320 * grub-core/commands/setpci.c: Likewise.
9321 * grub-core/loader/i386/bsd.c: Likewise.
9322 * grub-core/loader/i386/linux.c: Likewise.
9323 * util/getroot.c: Likewise.
9324 * util/grub-editenv.c: Likewise.
9325 * util/grub-fstest.c: Likewise.
9326 * util/grub-mkfont.c: Likewise.
9327 * util/grub-mkimage.c: Likewise.
9328 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9329 * util/grub-pe2elf.c: Likewise.
9330 * util/grub-probe.c: Likewise.
9331 * util/grub-setup.c: Likewise.
9332 * util/ieee1275/ofpath.c: Likewise.
9333 * util/misc.c: Likewise.
9334 * util/raid.c: Likewise.
9336 2011-11-11 Robert Millan <rmh@gnu.org>
9338 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9339 __attribute__((unused)) from `os_dev', which *is* being used.
9341 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9343 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9345 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9346 GRUB_IA64_DL_GOT_ALIGN.
9347 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9348 GRUB_IA64_DL_TRAMP_ALIGN.
9350 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9352 Replace grub_fatal with normal errors in i386 linux loader.
9354 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9355 (allocate_pages): Check find_efi_mmap_size return value.
9356 (grub_e820_add_region): Return error.
9357 (grub_linux_boot): Check mmap return value.
9359 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9361 * grub-core/commands/acpihalt.c: Gettextized.
9362 * grub-core/commands/cacheinfo.c: Likewise.
9363 * grub-core/commands/cmp.c: Likewise.
9364 * grub-core/commands/efi/loadbios.c: Likewise.
9365 * grub-core/commands/gptsync.c: Likewise.
9366 * grub-core/commands/ieee1275/suspend.c: Likewise.
9367 * grub-core/commands/legacycfg.c: Likewise.
9368 * grub-core/commands/memrw.c: Likewise.
9369 * grub-core/commands/minicmd.c: Likewise.
9370 * grub-core/commands/parttool.c: Likewise.
9371 * grub-core/commands/time.c: Likewise.
9372 * grub-core/commands/videoinfo.c: Likewise.
9373 * grub-core/disk/geli.c: Likewise.
9374 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9375 * grub-core/disk/luks.c: Likewise.
9376 * grub-core/disk/lvm.c: Likewise.
9377 * grub-core/font/font_cmd.c: Likewise.
9378 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9379 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9380 * grub-core/gfxmenu/view.c: Likewise.
9381 * grub-core/kern/emu/hostdisk.c: Likewise.
9382 * grub-core/kern/emu/main.c: Likewise.
9383 * grub-core/kern/emu/misc.c: Likewise.
9384 * grub-core/kern/emu/mm.c: Likewise.
9385 * grub-core/kern/mips/arc/init.c: Likewise.
9386 * grub-core/kern/mips/loongson/init.c: Likewise.
9387 * grub-core/kern/partition.c: Likewise.
9388 * grub-core/lib/i386/halt.c: Likewise.
9389 * grub-core/lib/mips/arc/reboot.c: Likewise.
9390 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9391 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9392 * grub-core/loader/i386/xnu.c: Likewise.
9393 * grub-core/loader/multiboot.c: Likewise.
9394 * grub-core/net/bootp.c: Likewise.
9395 * grub-core/net/net.c: Likewise.
9396 * grub-core/normal/term.c: Likewise.
9397 * grub-core/partmap/bsdlabel.c: Likewise.
9398 * grub-core/parttool/msdospart.c: Likewise.
9399 * grub-core/term/gfxterm.c: Likewise.
9400 * grub-core/term/terminfo.c: Likewise.
9401 * grub-core/video/i386/pc/vbe.c: Likewise.
9402 * util/grub-menulst2cfg.c: Likewise.
9403 * util/grub-mkdevicemap.c: Likewise.
9404 * util/grub-mklayout.c: Likewise.
9405 * util/grub-mkrelpath.c: Likewise.
9406 * util/grub-script-check.c: Likewise.
9407 * util/ieee1275/grub-ofpathname.c: Likewise.
9408 * util/resolve.c: Likewise.
9410 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9412 Support %1$d syntax.
9414 * tests/printf_unit_test.c: New file.
9415 * Makefile.util.def (printf_test): New test.
9416 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9418 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9420 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9423 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9425 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9427 * grub-core/font/font.c (grub_font_load): Likewise.
9429 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9431 * util/grub-macho2img.c: Add comment concerning gettext.
9432 * grub-core/lib/legacy_parse.c: Likewise.
9434 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9436 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9437 (grub_xvasprintf): Likewise.
9439 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9441 Add const keyword to grub_env_get and gettextize week days.
9443 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9444 (grub_read_hook_datetime): Return const char *.
9445 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9447 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9449 (grub_get_weekday_name): Return const char *. Call gettext.
9450 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9451 char * and len as the argument. All users updated.
9452 (grub_script_argv_split_append): Receive const char *.
9453 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9454 * include/grub/env.h (grub_env_get): Likewise.
9455 (grub_env_read_hook_t): Return const char *.
9456 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9457 (grub_script_argv_split_append): Likewise.
9459 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9461 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9463 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9465 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9466 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9468 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9470 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9473 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9475 Fix mips compilation.
9477 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9479 (hashes): Use in embed decoder as well (for sizes).
9480 (dec_stream_header): Fix embed decompressor logic.
9481 (dec_stream_footer): Likewise.
9483 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9485 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9486 an error and not a fatal on unrecognised relocation types.
9488 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9490 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9491 Issue error rather than printf on unknown arguments.
9493 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9495 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9498 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9500 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9503 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9505 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9506 leftover debug printf.
9508 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9510 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9512 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9514 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9517 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9519 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9521 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9523 Allow all modules to perform serial IO
9525 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9526 * include/grub/serial.h (grub_serial_port_configure): New inline
9528 (grub_serial_port_fetch): Likewise.
9529 (grub_serial_port_put): Likewise.
9530 (grub_serial_port_fini): Likewise.
9531 (grub_serial_find): New proto.
9533 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9535 Put symlink at the end of the node and fix a potential
9538 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9539 Make symlink into an array.
9540 (set_rockridge): Set have_symlink and alloc_dirents.
9541 (grub_iso9660_read_symlink): Use new layout.
9542 (grub_iso9660_iterate_dir): Fix memory corruption.
9544 (grub_iso9660_dir): Set have_symlink.
9545 (grub_iso9660_open): Likewise.
9547 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9549 Remove local keyword.
9551 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9552 (version_test_gt): Likewise.
9553 (version_find_latest): Likewise.
9554 (gettext_printf): Likewise.
9555 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9557 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9559 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9561 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9563 Fix ZFS memory and resource leaks.
9565 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9568 (fill_vdev_info): New parameter inserted. All users updated.
9569 (check_pool_label): Likewise.
9570 (scan_disk): Likewise.
9571 (scan_devices): Close non-inserted disks.
9572 (fzap_iterate): Free l.
9573 (unmount_device): Free children descripto memory.
9575 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9577 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9578 argument (access out of bounds).
9580 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9582 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9585 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9587 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9590 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9592 Fix several memory leaks.
9594 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9595 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9596 (grub_cpio_dir): Likewise.
9597 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9598 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9599 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9600 (grub_romfs_label): Likewise.
9601 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9602 (squash_unmount): New function.
9603 (grub_squash_dir): Fix memory leak.
9604 (grub_squash_open): Likewise.
9605 (grub_squash_read): Likewise.
9606 (grub_squash_mtime): Likewise.
9607 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9608 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9609 * util/grub-fstest.c (fstest): Likewise.
9611 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9613 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9614 avoid accessing beyond the array.
9616 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9618 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9620 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9624 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9625 (GRUB_AFFS_FLAG_FFS): Removed.
9626 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9627 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9628 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9629 (grub_fshelp_node): Make block 32-bit.
9630 Add block_cache and last_block_cache.
9631 (grub_affs_read_block): Fill and use block cache.
9632 (grub_affs_read_file): Removed.
9633 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9635 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9637 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9639 (grub_affs_close): Free block cache.
9640 (grub_affs_read): Use grub_fshelp_read_file directly.
9642 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9644 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9647 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9649 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9651 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9654 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9656 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9658 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9659 byteswap when needed.
9661 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9663 Fix FreeBSD compilation.
9665 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9666 to avoid circular dependency.
9667 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9668 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9669 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9671 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9673 Fix ZFS crypto error types.
9675 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9676 (grub_gcm_decrypt): Likewise.
9677 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9680 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9684 * Makefile.util.def (10_illumos): New script.
9685 * configure.ac: Set COND_HOST_ILLUMOS.
9686 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9687 Support Illumos calls.
9688 (find_partition_start) [__sun__]: Likewise.
9689 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9690 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9691 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9692 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9694 * util/grub-probe.c (probe) [__sun__]: Do character check.
9695 * util/grub.d/10_illumos.in: New file.
9697 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9699 Support escaped commas in hostdisk.
9701 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9702 (find_grub_drive): Use unescape_cmp.
9703 (make_device_name): Escape commas.
9705 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9707 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9709 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9711 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9714 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9716 Support trampoline jumps on powerpc.
9718 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9720 (grub_dl_load_segments): Set mod->sz.
9721 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9723 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9725 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9727 (trampoline): New struct.
9728 (trampoline_template): New const.
9729 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9730 * include/grub/dl.h (grub_dl): Add sz element.
9731 [__powerpc__]: Follow __ia64__.
9732 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9733 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9734 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9735 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9737 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9741 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9742 * grub-core/Makefile.core.def (zfscrypt): New module.
9743 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9744 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9745 it. All users updated.
9746 (grub_zfs_decrypt): New var.
9747 (grub_zfs_load_key): Likewise.
9748 (zio_checksum_functions): Add SHA256+MAC.
9749 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9750 (zio_read): Handle encrypted blocks.
9751 (zap_verify): Remove incorrect check.
9752 (fzap_iterate): Handle non-standard fzap.
9753 (zap_iterate): Likewise.
9754 (zap_iterate_u64): New function.
9755 (dnode_get_fullpath): Load keys.
9756 * grub-core/fs/zfs/zfscrypt.c: New file.
9757 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9758 (grub_crypto_ecb_encrypt): Make input const.
9759 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9760 (grub_crypto_ecb_encrypt): Make input const.
9761 (GRUB_CIPHER_AES): New macro.
9762 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9763 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9764 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9765 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9766 prefix. All users updated.
9767 (grub_zfs_add_key): New proto.
9768 (grub_zfs_decrypt): Likewise.
9769 (grub_zfs_load_key): Likewise.
9770 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9771 * util/grub-fstest.c (options): Add -K option.
9772 (argp_parser): Likewise.
9774 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9776 Support zle compression on ZFS.
9778 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9779 (decomp_table): Add zle.
9780 * include/grub/zfs/zio.h (zio_compress): Add zle.
9782 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9784 Support BtrFS embedding.
9786 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9787 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9788 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9789 * util/grub-setup.c (setup): Use fs embedding if available.
9790 Add additional sanity check.
9792 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9794 * util/grub-install.in: Fix condition for config_opt.
9796 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9798 Support third redundancy strip on raidz3.
9800 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9801 Return error on singularity. All users updated.
9802 (read_device): Don't stop on 3rd failure on raidz3.
9804 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9806 Support case-insensitive ZFS subvolumes.
9808 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9810 (zap_hash): Likewise.
9811 (name_cmp): New function.
9812 (zap_leaf_array_equal): New parameter case_insensitive.
9814 (zap_leaf_lookup): Likewise.
9815 (fzap_lookup): Likewise.
9816 (zap_lookup): Likewise.
9817 (dnode_get_path): New parameter case_insensitive. Retrieve case
9818 sensitiviness of a volume. All users updated.
9819 (dnode_get_fullpath): New parameter case_insensitive.
9821 (grub_zfs_dir): Set info.case_insensitiveness.
9823 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9825 Support second redundancy strip on raidz(2,3).
9827 * grub-core/fs/zfs/zfs.c (powx): New array.
9828 (powx_inv): Likewise.
9830 (xor_out): New function.
9832 (recovery): Likewise.
9833 (read_device): Use second redundancy strip.
9835 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9837 Use a power of generator representation of GF(256) multiplication group
9838 to save space time and complexity.
9840 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9841 (raid6_table2): Likewise.
9843 (powx_inv): Likewise.
9845 (grub_raid_block_mul): Replace with ...
9846 (grub_raid_block_mulx): ...this.
9847 (grub_raid6_init_table): Rewritten.
9848 (grub_raid6_recover): Use power of generator representation.
9850 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9852 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9853 for the right device.
9855 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9857 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9858 expected by grub-mkimage and it's more clear since there is no implicit
9861 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9863 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9865 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9867 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9869 * util/grub-mkrescue.in: Fix handling xorriso option.
9871 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9873 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9876 2011-11-03 crocket <crockabiscuit@gmail.com>
9878 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9880 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9882 XZ CRC64 and SHA256 support.
9884 * Makefile.util.def (libgrubmods): Add crc64.c.
9885 * grub-core/Makefile.core.def (crc64): New module.
9886 * grub-core/lib/crc64.c: New file.
9887 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9888 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9890 (MAX_HASH_SIZE): New define.
9891 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9892 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9893 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9894 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9895 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9896 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9897 Handle non-crc32 hashes.
9898 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9899 (dec_stream_header): Handle non-crc32 hashes.
9900 (dec_stream_footer): Likewise.
9901 (dec_block_header): Likewise.
9902 (dec_main): Likewise.
9903 (xz_dec_init): Likewise.
9904 (xz_dec_reset): Likewise.
9905 (xz_dec_end): Likewise.
9906 * util/import_gcry.py: Add CRC64 line.
9908 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9910 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9913 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9915 Make reiserfs label retrieval similar to other *_label functions.
9917 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9918 (REISERFS_MAX_LABEL_LENGTH): Removed.
9919 (REISERFS_LABEL_OFFSET): Likewise.
9920 (grub_reiserfs_label): Rewritten.
9922 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9924 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9927 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9929 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9931 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9933 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9934 drive failure on both raidz and raidz2.
9936 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9938 Fix RAIDZ(2) for >= 5 devices.
9940 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9941 asize argument. All users updated.
9943 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9947 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9948 (fill_vdev_info_real): Set ashift.
9949 (read_device): Rewrite RAIDZ part based on reverse engineering.
9951 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9953 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9954 don't report potentially unavialiable fields in debug output.
9955 (find_path): Fix double-free and memory leak.
9957 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9961 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9962 (grub_ufs_fs): Always set .label.
9964 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9968 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9969 (grub_ufs_data): New field log2_blksz.
9970 (grub_ufs_read_file): Use shifts.
9971 (grub_ufs_mount): Check block size and logarithm it.
9973 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9975 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9978 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9980 Handle symlinks and long names on tar and cpio.
9982 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9983 (ATTR_FILE): Likewise.
9984 (ATTR_DIR): Likewise.
9985 (ATTR_LNK): Likewise.
9986 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9987 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9989 (grub_cpio_mount): Zero-fill data.
9990 (handle_symlink): New function.
9991 (grub_cpio_dir): Handle symlinks.
9992 (grub_cpio_open): Likewise.
9993 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9995 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9997 Fix iso9660 filename limitations and fix memory leaks.
9999 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
10000 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
10002 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10004 Fix JFS file name length limitations.
10006 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
10007 (grub_jfs_diropen): Fix maximum filename length.
10008 (grub_jfs_getent): Fix filename length.
10009 (grub_jfs_lookup_symlink): Fix size checks.
10011 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10013 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
10016 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10018 Leverage BFS implementation to read AFS.
10020 * Makefile.util.def (libgrubmods): Add afs.c.
10021 * grub-core/Makefile.core.def (afs): New module
10022 * grub-core/fs/afs.c: New file.
10023 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
10025 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10027 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
10029 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10031 * grub-core/fs/bfs.c: Run indent.
10033 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10035 BFS implementation based on the specification.
10037 * grub-core/fs/bfs.c: New file.
10038 * Makefile.util.def (libgrubmods): Add bfs.c.
10039 * grub-core/Makefile.core.def (bfs): New module.
10041 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10043 * util/grub-fstest.c (cmd_cp): Clarify error message.
10044 (cmd_cmp): Likewise.
10046 2011-10-30 Yves Blusseau <blusseau@zetam.org>
10048 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
10051 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10053 Remove afs and befs because of copyright problem.
10055 * grub-core/fs/afs.c: Removed.
10056 * grub-core/fs/afs_be.c: Removed.
10057 * grub-core/fs/befs.c: Removed.
10058 * grub-core/fs/befs_be.c: Removed.
10059 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10060 * grub-core/Makefile.core.def (afs): Removed.
10061 (afs_be): Likewise.
10063 (befs_be): Likewise.
10065 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10067 Prefer rockridge over Joliet.
10069 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10071 (set_rockridge): ... here.
10072 (grub_iso9660_mount): Check rockridge on the primary label when
10073 discovering. Ignore Joliet if Rockridge is present.
10075 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10077 Use shifts in nilfs2.
10079 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10080 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10081 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10082 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10083 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10084 (grub_nilfs2_entries_per_block): Replaced with ...
10085 (grub_nilfs2_log_entries_per_block_log): ... this.
10086 (grub_nilfs2_blocks_per_group): Replaced with ...
10087 (grub_nilfs2_blocks_per_group_log): ... this.
10088 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10089 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10090 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10091 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10092 (grub_nilfs2_palloc_entry_offset): Replaced ...
10093 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10094 (grub_nilfs2_dat_translate): Use shifts.
10095 (grub_nilfs2_read_inode): Likewise.
10096 (GRUB_MOD_INIT): Ensure that logs are correct.
10098 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10100 Use shifts in minix filesystem.
10102 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10103 (GRUB_MINIX_ZONE2SECT): Likewise.
10104 (grub_minix_data): Replace block_size with log_block_size.
10105 (grub_minix_read_file): Use shifts.
10106 (grub_minix_mount): Check block size and take a logarithm.
10108 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10110 Use shifts in squash4.
10112 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10113 (squash_mount): Check block size and take logarithm.
10114 (direct_read): Use shifts.
10116 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10118 Correct befs block counting logic.
10120 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10121 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10122 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10123 (grub_afs_read_inode): Use block_shift.
10124 (RANGE_SHIFT): New definition.
10125 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10126 unexpected conditions, use shifts and appropriate types.
10127 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10129 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10131 * grub-core/disk/raid.c (scan_devices): Check partition.
10132 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10134 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10136 Support BFS (befs) UUID.
10138 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10139 (grub_afs_small_data_element_header): New struct.
10140 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10141 (grub_afs_read_attribute) [MODE_BFS]: New function.
10142 (grub_afs_iterate_dir): Allocate for complete inode.
10143 (grub_afs_mount): Likewise.
10144 (grub_afs_uuid) [MODE_BFS]: New function.
10145 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10147 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10149 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10150 (zfs_unmount): Fix memory leak.
10152 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10154 Support NTFS reparse points.
10156 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10157 (symlink_descriptor): New struct.
10158 (grub_ntfs_read_symlink): New function.
10159 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10160 (grub_ntfs_open): Likewise.
10162 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10164 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10166 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10168 fstest xnu_uuid subcommand.
10170 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10171 grub-core/commands/xnu_uuid.c.
10172 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10173 (fstest): Handle xnu_uuid.
10174 (options): Document xnu_uuid.
10175 (argp_parser): Parse xnu_uuid.
10177 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10179 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10180 -l argument. Add newline at the end if printing.
10181 (GRUB_MOD_INIT): Document -l.
10183 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10185 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10187 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10189 ZFS multi-device and version 33 support.
10191 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10192 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10193 (grub_zfs_data): Add multidev-ice-related fields.
10194 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10195 (dva_get_offset): Make dva const.
10196 (zfs_fetch_nvlist): New function.
10197 (fill_vdev_info_real): Likewise.
10198 (fill_vdev_info): Likewise.
10199 (check_pool_label): Likewise.
10200 (scan_disk): Likewise.
10201 (scan_devices): Likewise.
10202 (read_device): Likewise.
10203 (read_dva): Likewise.
10204 (zio_read_gang): Use read_dva.
10205 (zio_read_data): Likewise.
10206 (zap_leaf_lookup): Add missing endian conversion.
10207 (zap_verify): Add missing endian conversion. All users updated.
10208 (fzap_lookup): Likewise.
10209 (fzap_iterate): Likewise.
10210 (dnode_get_path): Handle SA bonus.
10211 (nvlist_find_value): Make input const. All users updated.
10212 (unmount_device): New function.
10213 (zfs_unmount): Use unmount_device.
10214 (zfs_mount): Use scan_disk.
10215 (zfs_mtime): New function.
10216 (grub_zfs_open): Handle system attributes.
10217 (fill_fs_info): Likewise.
10218 (grub_zfs_dir): Likewise.
10219 (grub_zfs_fs): Add mtime.
10220 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10221 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10222 (SA_MTIME_OFFSET): Likewise.
10223 (SA_SYMLINK_OFFSET): Likewise.
10224 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10225 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10226 (fstest): Support zfsinfo.
10227 (argp_parser): Likewise.
10229 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10231 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10234 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10238 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10239 sharing the same block. Iterate over correct number of indices.
10240 (dnode_get_path): Handle symlinks correctly.
10242 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10244 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10246 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10248 Read label on HFS+.
10250 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10251 (grub_hfsplus_btree_search): Fix types.
10252 (grub_hfsplus_label): Implement.
10254 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10256 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10258 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10260 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10262 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10264 Fix symlink handling on iso9660.
10266 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10268 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10269 (grub_iso9660_read_symlink): Moved most of code ...
10270 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10272 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10274 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10275 Use union to avoid breaking strict-aliasing rules.
10277 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10279 Support multi-extent iso files.
10281 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10283 (grub_fshelp_node): Revamp. All users updated.
10284 (FLAG_*): New enum.
10285 (read_node): New function.
10286 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10288 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10289 (get_node_size): New function.
10290 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10292 Fix memory leak on . and ..
10293 (grub_iso9660_read): Use read_node.
10294 (grub_iso9660_close): Free node.
10296 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10298 Fix tar 4G limit and handle paths containing dot.
10300 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10301 (canonicalize): New function.
10302 (grub_cpio_find_file): Use canonicalize. Store offs in
10304 (grub_cpio_dir): Use grub_disk_addr_t.
10305 (grub_cpio_open): Likewise.
10307 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10309 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10311 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10313 (grub_squash_inode): Add long_file and block_size.
10314 (grub_squash_cache_inode): New struct.
10315 (grub_squash_dirent): Make types into enum.
10316 (SQUASH_TYPE_LONG_REGULAR): New type.
10317 (grub_squash_frag_desc): Add field size.
10318 (SQUASH_BLOCK_FLAGS): New enum.
10319 (grub_squash_data): Use grub_squash_cache_inode.
10320 (grub_fshelp_node): Make ino_chunk 64-bit.
10321 (read_chunk): Minor argument change. All users updated.
10322 (squash_mount): Use correct le_to_cpu.
10323 (grub_squash_open): Handle LONG_REGULAR.
10324 (direct_read): New function.
10325 (grub_squash_read_data): Handle blocks correctly.
10327 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10329 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10331 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10333 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10335 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10337 Fix 2G limit on ZFS.
10339 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10341 (uberblock_verify): Likewise.
10342 (dmu_read): Likewise.
10343 (grub_zfs_read): Likewise. Remove invalid cast.
10345 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10347 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10348 (grub_jfs_blkno): Fix incorrect shift.
10349 (grub_jfs_read_file): Use more appropriate types.
10351 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10353 Support triple indirect on minix2 and minix3.
10355 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10356 Declare triple_indir_zone.
10357 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10360 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10364 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10365 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10366 Rename ctime to mtime. All users updated.
10367 (grub_minix_get_file_block): Fix types and double indirect computations.
10369 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10371 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10372 if no label is found.
10373 (grub_fat_iterate_dir): Fix file size type.
10374 (grub_fat_iterate_dir): Likewise.
10376 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10378 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10380 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10381 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10383 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10385 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10387 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10389 * util/import_gcry.py: Accept space between # and include.
10391 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10393 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10395 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10397 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10399 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10400 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10402 * grub-core/script/yylex.l: Add fine-grained #pragma.
10404 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10406 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10407 New inline function.
10408 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10410 (memset) [GRUB_UTIL]: Likewise.
10411 (memcmp) [GRUB_UTIL]: Likewise.
10413 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10415 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10416 inline function rather than a define.
10418 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10420 * util/grub-setup.c: Add missing include.
10422 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10424 * util/ieee1275/grub-ofpathname.c: Add missing include.
10426 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10428 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10429 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10432 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10434 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10437 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10439 * util/grub-install.in: Add datarootdir as per automake manual
10441 * util/grub-mknetdir.in: Likewise.
10443 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10445 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10447 * util/grub.d/10_kfreebsd.in: Likewise.
10448 * util/grub.d/10_linux.in: Likewise.
10449 * util/grub.d/10_netbsd.in: Likewise.
10450 * util/grub.d/10_windows.in: Likewise.
10451 * util/grub.d/20_linux_xen.in: Likewise.
10453 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10455 Remove redundant grub_kernel_image_size.
10457 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10459 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10460 the small code. It moves it only by few bytes but simplifies the code.
10461 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10463 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10464 (grub_kernel_image_size): Removed.
10465 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10466 (grub_kernel_image_size): Removed.
10467 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10468 compiled with Apple toolchain.
10469 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10470 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10471 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10472 (grub_total_module_size): Likewise.
10473 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10475 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10476 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10477 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10478 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10479 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10480 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10481 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10482 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10484 (grub_total_module_size): Removed.
10485 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10486 (image_targets): Likewise.
10487 Set .compressed_size to no field on sparc.
10488 (generate_image): Remove kernel_image_size handling.
10490 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10492 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10493 NULL pointer dereference.
10495 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10497 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10498 done with a dedicated section.
10500 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10501 Ensure the correct position of boot_path.
10502 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10503 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10505 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10506 * include/grub/boot.h: Removed. All references removed.
10507 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10509 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10511 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10513 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10516 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10518 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10520 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10522 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10523 Don't add the bogus brackets.
10525 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10529 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10530 * grub-core/Makefile.core.def (exfat): New module.
10531 * grub-core/fs/exfat.c: New file.
10532 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10533 (GRUB_FAT_ATTR_*): Make into an enum.
10534 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10535 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10536 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10537 (GRUB_FAT_MAXFILE): Removed.
10538 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10539 (grub_current_fat_bpb_t): New type.
10540 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10541 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10542 (grub_fat_dir_node_t): New type.
10543 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10544 (fat_log2) [MODE_EXFAT]: Removed.
10545 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10546 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10547 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10548 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10549 (grub_fat_label) [MODE_EXFAT]: New function.
10550 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10551 reserved_first_sector to 0.
10553 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10555 Move grub_reboot out of the kernel.
10557 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10558 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10559 * grub-core/lib/efi/reboot.c: ... here.
10560 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10561 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10562 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10563 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10564 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10565 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10566 * grub-core/lib/ieee1275/reboot.c: ... here.
10567 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10568 * grub-core/lib/mips/arc/reboot.c: ... here.
10569 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10570 * grub-core/lib/mips/loongson/reboot.c: ...here.
10571 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10572 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10573 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10574 * include/grub/i386/reboot.h: New file.
10575 * include/grub/mips/loongson/ec.h: Fix includes.
10576 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10577 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10578 * grub-core/lib/i386/reboot.c: New file.
10580 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10582 Make grub_prefix into module to fix the arbitrary limit and save
10585 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10586 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10587 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10588 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10589 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10590 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10591 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10592 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10593 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10594 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10595 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10596 * include/grub/ia64/efi/kernel.h: Removed.
10597 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10598 (grub_prefix): Removed.
10599 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10600 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10601 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10602 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10603 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10604 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10605 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10606 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10607 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10608 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10609 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10610 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10611 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10612 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10613 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10614 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10615 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10616 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10617 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10618 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10619 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10620 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10621 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10622 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10623 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10624 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10625 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10626 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10627 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10629 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10631 (image_targets): Likewise.
10632 (generate_image): Put prefix as a module.
10634 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10636 Replace grub_module_iterate with FOR_MODULES.
10638 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10639 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10640 (grub_efi_modules_addr): ...this.
10641 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10642 (grub_efi_init): Set grub_modbase.
10643 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10644 (grub_modbase): New variable.
10645 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10646 (grub_modbase): New variable.
10647 (grub_machine_init): Set grub_modbase.
10648 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10649 (grub_modbase): New variable.
10650 (grub_machine_init): Set grub_modbase.
10651 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10652 (grub_modbase): New variable.
10653 (grub_machine_init): Set grub_modbase.
10654 * grub-core/kern/main.c (grub_module_iterate): Remove.
10655 (grub_modules_get_end): Use grub_modbase.
10656 (grub_load_modules): Use FOR_MODULES.
10657 (grub_load_config): Likewise.
10658 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10659 (grub_modbase): New variable.
10660 (grub_machine_init): Set grub_modbase.
10661 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10662 (grub_modbase): New variable.
10663 (grub_machine_init): Set grub_modbase.
10664 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10666 (grub_modbase): New variable.
10667 (grub_machine_init): Set grub_modbase.
10668 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10669 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10670 (grub_module_iterate): Likewise.
10671 (grub_modbase): New variable declaration.
10672 (FOR_MODULES): New macro.
10674 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10676 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10677 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10679 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10681 Fix few obvious type discrepancies.
10683 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10684 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10685 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10687 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10688 and connected types.
10689 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10691 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10692 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10693 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10694 and connected types.
10696 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10698 Fix python 3.x incompatibilities.
10700 * gentpl.py: Put brackets around print strings.
10701 * util/import_gcry.py: Open explicitly as utf-8.
10702 Use in instead of has_key.
10704 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10706 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10707 (GRUB_XFS_INO_AGBITS): Make into inline function.
10708 (GRUB_XFS_INO_INOINAG): Likewise.
10709 (GRUB_XFS_INO_AG): Likewise.
10710 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10711 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10712 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10713 (GRUB_XFS_EXTENT_SIZE): Likewise.
10714 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10715 (GRUB_XFS_NEXT_DIRENT): Likewise.
10716 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10717 (grub_xfs_read_file): Fix offset type.
10719 2011-10-15 Robert Millan <rmh@gnu.org>
10721 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10723 2011-10-15 Robert Millan <rmh@gnu.org>
10725 Fix build problem on FreeBSD and GNU/kFreeBSD.
10727 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10729 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10731 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10733 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10735 (grub_hfsplus_btree_recoffset): Likewise.
10736 (grub_hfsplus_btree_recptr): Likewise.
10737 (grub_hfsplus_find_block): Likewise.
10738 (grub_hfsplus_btree_search): Likewise.
10739 (grub_hfsplus_read_block): Likewise.
10740 (grub_hfsplus_read_file): Likewise.
10741 (grub_hfsplus_mount): Likewise.
10742 (grub_hfsplus_btree_iterate_node): Likewise.
10743 (grub_hfsplus_btree_search): Likewise.
10744 (grub_hfsplus_iterate_dir): Likewise.
10745 (grub_hfsplus_read): A small code simplification.
10747 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10749 * grub-core/kern/emu/hostdisk.c
10750 (convert_system_partition_to_system_disk): Don't assume that children
10751 of mapper nodes are mapper nodes.
10753 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10755 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10756 * include/grub/misc.h (grub_isxdigit): New function.
10757 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10758 switched to grub_isxdigit.
10759 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10760 number starting with a letter.
10762 2011-10-09 Robert Millan <rmh@gnu.org>
10764 LVM support for FreeBSD and GNU/kFreeBSD.
10766 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10768 (LVM_DEV_MAPPER_STRING): Move from here ...
10769 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10770 * util/getroot.c: Include `<grub/util/lvm.h>'.
10771 (grub_util_get_dev_abstraction): Enable
10772 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10773 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10774 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10775 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10777 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10779 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10780 when LVM abstraction is required for ${GRUB_DEVICE}.
10782 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10784 Add support for LZO compression in GRUB:
10785 - import of minilzo library,
10786 - LZO decompression for btrfs,
10787 - lzop files decompression.
10789 * grub-core/io/lzopio.c: New file.
10790 * grub-core/lib/adler32.c: Likewise.
10791 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10792 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10793 * grub-core/lib/minilzo/minilzo.c: Likewise.
10794 * grub-core/lib/minilzo/minilzo.h: Likewise.
10795 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10796 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10797 grub-core/lib/minilzo/minilzo.c to common.
10798 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10799 cflags in cppflags.
10800 * grub-core/Makefile.core.def (btrfs): Likewise.
10801 * grub-core/Makefile.core.def (lzopio): New module.
10802 (adler32): Likewise.
10803 * grub-core/fs/btrfs.c: Include minilzo.h.
10804 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10805 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10806 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10807 (grub_btrfs_lzo_decompress): New function.
10808 (grub_btrfs_extent_read): Add support for LZO compression type.
10809 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10810 (GRUB_USHRT_MAX): Likewise.
10811 (GRUB_UINT_MAX): Likewise.
10812 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10813 (UINT_MAX): Likewise.
10814 (CHAR_BIT): Likewise.
10815 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10816 grub-core/lib/posix_wrap/limits.h
10817 (UCHAR_MAX): Likewise.
10818 * include/grub/file.h (grub_file_filter_id): New compression filter
10819 GRUB_FILE_FILTER_LZOPIO.
10820 * include/grub/file.h (grub_file_filter_id): Set
10821 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10822 * include/grub/types.h (grub_get_unaligned16): New function.
10823 (grub_get_unaligned32): Likewise.
10824 (grub_get_unaligned64): Likewise.
10825 * util/import_gcry.py (cryptolist): Add adler32.
10827 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10829 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10830 in perspective decreases the complexity of build system and fixes
10831 compilation right now.
10833 2011-10-01 Ales Nesrsta <starous@volny.cz>
10835 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10836 (fixed problem related to using UHCI with coreboot).
10838 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10840 * gentpl.py: Use Autogen macros so that the output template file
10841 (Makefile.tpl) size is reduced.
10843 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10845 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10848 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10850 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10851 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10853 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10855 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10858 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10860 Remove extra declaration of sleep for mingw32.
10862 * util/misc.c (sleep) [__MINGW32__]: Removed.
10863 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10865 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10867 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10869 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10871 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10872 (grub_netbsd_btinfo_bootwedge): New struct.
10873 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10875 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10877 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10879 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10882 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10884 Fix incorrect identifiers in bash-completion.
10886 * util/bash-completion.d/grub-completion.bash.in
10887 (_grub_mkpasswd-pbkdf2): Rename to ...
10888 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10889 (_grub_script-check): Rename to ...
10890 (_grub_script_check): ... this. All users updated.
10892 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10894 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10895 Return 0 if disk isn't biosdisk.
10897 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10899 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10901 * Makefile.util.def (grub-fstest): Likewise.
10903 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10905 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10906 Get sector size from disk label.
10908 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10910 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10911 */README* as well as README*.
10912 Reported by: Axel Beckert.
10914 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10916 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10917 case of less than 256 MiB of RAM.
10919 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10921 * grub-core/commands/wildcard.c (make_regex): Handle @.
10923 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10925 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10927 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10929 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10930 AC_LANG_CONFTEST macros.
10932 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10934 Add grub-fstest option to uncompress data for commands.
10936 * util/grub-fstest.c (uncompress): New var.
10937 (options): New option -u.
10939 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10941 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10942 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10944 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10946 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10947 file type was not recognized correctly (not gzip or corrupted).
10949 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10951 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10952 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10954 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10956 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10958 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10959 video_radeon_fuloong2e.
10960 * grub-core/video/radeon_fuloong2e.c: New file.
10961 * include/grub/video.h (grub_video_id_t): Add new ID
10962 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10964 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10966 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10968 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10969 that PRID matches the detected subplatform and reset the subplatform
10972 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10974 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10976 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10978 Fix PCI iterating on functions >= 4.
10980 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10981 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10983 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10984 (grub_pci_read): Fix bitmask.
10985 (grub_pci_read_word): Likewise.
10986 (grub_pci_read_byte): Likewise.
10987 (grub_pci_write): Likewise.
10988 (grub_pci_write_word): Likewise.
10989 (grub_pci_write_byte): Likewise.
10991 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10993 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10994 can still be specified in TARGET_CFLAGS)
10996 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10998 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
11000 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
11001 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
11002 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
11003 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
11004 (FULOONG): Rename to ...
11005 (FULOONG2F): ... this. All users updated.
11006 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
11007 (machtype_fuloong2f_str): ... this.
11008 (machtype_fuloong2e_str): New string.
11009 Check for machtype_fuloong2e_str.
11010 * grub-core/loader/mips/linux.c (loongson_machtypes)
11011 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
11012 * grub-core/term/serial.c (loongson_defserial)
11013 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
11014 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
11015 loongson_defserial.
11016 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
11018 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
11019 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
11020 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
11021 to IMAGE_FULOONG2F_FLASH. All users updated.
11022 (image_targets): Rename images.
11023 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
11025 2011-08-19 Szymon Janc <szymon@janc.net.pl>
11027 Make enable of disk cache statistics code configurable.
11029 * configure.ac: --enable-cache-stats added.
11030 * config.h.in (DISK_CACHE_STATS): New define.
11031 * grub-core/Makefile.core.def (cacheinfo): New command.
11032 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
11033 * grub-core/commands/cacheinfo.c: New file.
11034 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
11035 moved to cacheinfo.c.
11036 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
11038 * include/grub/disk.h: Likewise.
11040 2011-08-19 Szymon Janc <szymon@janc.net.pl>
11042 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
11043 * grub-core/Makefile.am: Likewise.
11045 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11047 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
11050 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11052 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11054 (grub_jfs_lookup_symlink): Use correct starting inode.
11056 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11058 * util/grub-setup.c (main): Add missing gcry initialisation.
11060 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11062 Don't accept text modes on EFI when booting Linux.
11064 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11065 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11067 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
11068 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11070 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11071 use of "/path/.." as in grub-install for EFI as well as handling
11072 symlinks correctly.
11073 Fixes Debian bug #637768.
11075 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11077 * util/grub-probe.c: Remove duplicate #include.
11079 2011-08-10 Robert Millan <rmh@gnu.org>
11081 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11083 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11085 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11086 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11088 2011-08-03 Robert Millan <rmh@gnu.org>
11090 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11091 la_array as packed.
11092 Reported by: Zachary Bedell
11094 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11096 * configure.ac: The Loongson port requires grub-mkfont due to its
11097 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11100 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11102 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11103 processing arguments (otherwise help2man fails when GRUB has not yet
11106 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11108 New script grub-mkstandalone.
11110 * Makefile.util.def (grub-mkstandalone): New script.
11111 * docs/man/grub-mkstandalone.h2m: New file.
11112 * util/grub-mkstandalone.in: Likewise.
11114 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11116 Support ATA disks with 4K sectors.
11118 * include/grub/ata.h (grub_ata): New member log_sector_size.
11119 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11120 (grub_ata_identify): Read sector size.
11121 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11123 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11125 * util/grub-install.in: Don't use uhci outside of x86.
11127 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11129 * util/grub-mkrescue.in: Add missing quotes.
11131 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11133 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11136 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11138 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11140 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11142 * include/grub/video.h: add missing EXPORT_FUND on
11143 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11145 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11147 * include/grub/mips/kernel.h: Fix define conflict.
11149 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11151 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11154 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
11156 Preferred resolution detection for VBE.
11158 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11159 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11160 the Flat Panel extension, in line with the X.org VESA driver.
11161 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11163 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11164 (grub_vbe_bios_read_edid): Likewise.
11165 (grub_vbe_get_preferred_mode): Likewise.
11166 (grub_video_vbe_setup): When the mode is "auto", try to get the
11167 preferred mode from VBE, and use the largest mode that is no larger
11168 than the preferred mode (some BIOSes expose a preferred mode that is
11169 not in their mode list!). If this fails, fall back to 640x480 as a
11170 safe conservative choice.
11171 (grub_video_vbe_get_edid): New function.
11172 (grub_video_vbe_adapter): Add get_edid.
11173 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11174 (struct grub_video_adapter): Add get_edid.
11175 (grub_video_edid_checksum): Add prototype.
11176 (grub_video_edid_preferred_mode): Likewise.
11177 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11180 * grub-core/commands/videoinfo.c (print_edid): New function.
11181 (grub_cmd_videoinfo): Print EDID if available.
11183 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11184 is more appropriate on a wider range of platforms than 640x480.
11185 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11188 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11190 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11192 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11194 * po/POTFILES.in: Regenerate.
11196 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11198 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11199 incorrect memory usage.
11201 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11203 * util/grub-install.in: Source grub-mkconfig_lib.
11205 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11207 Remove getroot.c from core on emu platform.
11209 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11211 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11213 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11214 * util/getroot.c (get_win32_path): ... here.
11215 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11216 * util/getroot.c (fini_libzfs): ... here.
11217 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11218 * util/getroot.c (grub_get_libzfs_handle): ... here.
11219 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11221 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11222 * grub-core/kern/emu/misc.c
11223 (grub_make_system_path_relative_to_its_root): Moved from here...
11224 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11225 * grub-core/kern/emu/getroot.c: Moved from here ...
11226 * util/getroot.c: ... here. All users updated.
11227 * grub-core/kern/emu/raid.c: Moved from here ...
11228 * util/raid.c: ... here. All users updated.
11230 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11232 * po/POTFILES.in: Regenerate.
11234 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11236 Fix compilation on GNU/Linux.
11238 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11240 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11241 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11242 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11244 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11245 2011-07-07 Michael Gorven <michael@gorven.za.net>
11246 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11248 LUKS and GELI support.
11250 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11251 grub-core/disk/luks.c, grub-core/disk/geli.c,
11252 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11253 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11254 grub-core/lib/arg.c.
11255 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11256 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11257 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11258 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11259 (grub-bin2h): Add libgcry.a.
11260 (grub-mkimage): Likewise.
11261 (grub-mkrelpath): Likewise.
11262 (grub-script-check): Likewise.
11263 (grub-editenv): Likewise.
11264 (grub-mkpasswd-pbkdf2): Likewise.
11265 (grub-pe2elf): Likewise.
11266 (grub-fstest): Likewise.
11267 (grub-mkfont): Likewise.
11268 (grub-mkdevicemap): Likewise.
11269 (grub-probe): Likewise.
11270 (grub-ofpath): Likewise.
11271 (grub-mklayout): Likewise.
11272 (example_unit_test): Likewise.
11273 (grub-menulst2cfg): Likewise.
11274 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11275 * grub-core/Makefile.core.def (cryptodisk): New module.
11278 * grub-core/disk/AFSplitter.c: New file.
11279 * grub-core/disk/cryptodisk.c: Likewise.
11280 * grub-core/disk/geli.c: Likewise.
11281 * grub-core/disk/luks.c: Likewise.
11282 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11284 (grub_util_get_dm_abstraction): New function.
11285 (grub_util_follow_gpart_up): Likewise.
11286 (grub_util_get_geom_abstraction): Likewise.
11287 (grub_util_get_dev_abstraction): Use new functions.
11288 (grub_util_pull_device): Pull GELI and LUKS.
11289 (grub_util_get_grub_dev): Handle LUKS and GELI.
11290 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11291 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11292 (follow_geom_up): Removed.
11293 (grub_util_fd_seek): New function.
11294 (open_device): Use grub_util_fd_seek.
11295 (nread): Rename to ..
11296 (grub_util_fd_read): ... this. All users updated.
11297 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11298 (grub_crypto_cbc_decrypt): Likewise.
11299 (grub_crypto_hmac_write): Likewise.
11300 (grub_crypto_hmac_buffer): Likewise.
11301 (grub_password_get): Extend to util.
11302 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11303 New member modname.
11304 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11305 * include/grub/cryptodisk.h: New file.
11306 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11307 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11309 (grub_util_follow_gpart_up): New proto.
11310 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11311 (grub_util_fd_read): Likewise.
11312 (grub_cryptodisk_cheat_mount): Likewise.
11313 (grub_util_cryptodisk_print_uuid): Likewise.
11314 (grub_util_get_fd_sectors): Likewise.
11315 * util/grub-fstest.c (mount_crypt): New var.
11316 (fstest): Mount crypto if requested.
11317 (options): New option -C.
11318 (argp_parser): Parse -C.
11319 (main): Init and fini gcry.
11320 * util/grub-install.in: Support cryptodisk install.
11321 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11322 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11324 (prepare_grub_to_access_device): Likewise.
11325 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11326 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11327 (probe_cryptodisk_uuid): New function.
11328 (probe_abstraction): Likewise.
11329 (probe): Use new functions.
11330 * util/import_gcry.py: Create Makefile.utilgcry.def.
11331 Add modname member.
11333 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11335 Lazy device scanning.
11337 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11338 (grub-setup): Remove util/raid.c.
11339 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11340 * grub-core/disk/lvm.c (scan_depth): New variable.
11341 (grub_lvm_iterate): Rescan if necessary.
11342 (find_lv): New function based on grub_lvm_open.
11343 (grub_lvm_open): Use find_lv. Rescan on error.
11344 (is_node_readable): New function.
11345 (is_lv_readable): Likewise.
11346 (grub_lvm_scan_device): Skip already found disks.
11347 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11348 Stop if searched device is found and readable.
11349 * grub-core/disk/raid.c (inscnt): New variable.
11350 (scan_depth): Likewise.
11351 (scan_devices): New function based on grub_raid_register. Abort if
11352 looked for device is found.
11353 (grub_raid_iterate): Rescan if needed.
11354 (find_array): NEw function based on -grub_raid_open.
11355 (grub_raid_open): Use find_array and rescan.
11356 (insert_array): Set became_readable_at.
11357 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11358 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11360 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11361 (grub_util_pull_device): New function.
11362 (grub_util_get_grub_dev): Call grub_util_pull_device.
11363 * util/raid.c: Moved to ..
11364 * grub-core/kern/emu/raid.c: ... here.
11365 (grub_util_raid_getmembers): New parameter "bootable".
11366 All users updated. Support 1.x.
11367 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11369 * include/grub/disk.h (grub_disk_pull_t): New enum.
11370 (grub_disk_dev): Change iterate prototype.
11372 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11374 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11375 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11376 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11377 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11379 * include/grub/util/raid.h: Removed.
11381 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11383 * po/POTFILES.in: Regenerate.
11385 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11387 Unify sparc init with other ieee1275.
11389 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11390 instead of kern/sparc64/ieee1275/init.c.
11391 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11392 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11393 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11394 grub/machine/kernel.h.
11395 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11396 (grub_claim_heap) [__sparc__]: Use sparc version.
11397 (grub_machine_init): Moved args parsing to
11398 (grub_parse_cmdline): ...this.
11399 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11400 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11402 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11404 Move BOOTP to separate file.
11406 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11407 * grub-core/net/net.c: Move all BOOTP functions to
11408 * grub-core/net/bootp.c: ... here.
11410 Use frame interface on PXE.
11412 * grub-core/Makefile.core.def (pxecmd): Removed.
11413 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11414 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11415 * grub-core/i386/pc/pxe.c: Moved from here ...
11416 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11417 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11418 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11420 EFI network support.
11422 * grub-core/Makefile.core.def (efinet): New module.
11423 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11425 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11427 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11428 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11429 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11430 * grub-core/net/drivers/efi/efinet.c: New file.
11431 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11432 (grub_efi_net_config): New extern var.
11434 Various cleanups and bugfixes.
11436 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11438 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11439 disk declared as partition.
11440 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11442 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11443 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11444 (grub_debug_zalloc): Likewise.
11445 (grub_debug_realloc): Likewise.
11446 (grub_debug_memalign): Likewise.
11447 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11448 Check that target is IPv4.
11449 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11450 local-mac-address as fallback.
11451 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11453 * grub-core/net/ip.c (ipchksum): Rename to ...
11454 (grub_net_ip_chksum): ... this. All users updated.
11455 (grub_net_recv_ip_packets): Special handling for DHCP.
11456 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11458 Unify prefix handling
11460 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11461 (grub_machine_get_bootlocation): ... this.
11462 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11463 (grub_machine_get_bootlocation): ... this.
11464 (grub_prefix): New variable.
11466 (root_dev): New variable.
11468 (main): Use new variables.
11469 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11471 (grub_machine_get_bootlocation): ... this.
11472 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11473 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11474 (grub_machine_get_bootlocation): ... this.
11475 (grub_machine_set_prefix): Removed.
11476 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11477 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11479 (grub_machine_get_bootlocation): ... this.
11480 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11481 (grub_set_prefix_and_root): ... this. All users updated.
11482 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11484 (grub_machine_get_bootlocation): ... this.
11485 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11486 (grub_machine_get_bootlocation): New proto.
11487 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11489 Less intrusive and more reliable seek on network implementation.
11491 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11492 (grub_file_seek): Don't call grub_file_net_seek.
11493 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11494 (grub_net_fs_read_real): .. this.
11495 (grub_net_seek_real): Use net->offset.
11496 (grub_net_fs_read): Seek if necessary.
11498 Unify IEEE1275 netwotk config with the other platforms.
11500 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11502 (grub_machine_get_bootlocation): Support network.
11503 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11504 Support type and device parsing.
11505 (grub_ieee1275_get_device_type): New function.
11506 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11508 (grub_ieee1275_net_config_real): ... this.
11509 (grub_ofnet_probecards): Removed.
11510 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11511 * include/grub/ieee1275/ofnet.h: Removed.
11512 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11514 (grub_ieee1275_get_device_type): New function.
11516 Unify network device closing across platforms and make more robust.
11518 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11520 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11522 * grub-core/net/net.c (grub_net_network_level_interface_register):
11524 (grub_net_card_unregister): Close all interfaces.
11525 (receive_packets): Don't poll if no iterfaces are registered.
11527 (grub_net_fini_hw): New function.
11528 (grub_net_restore_hw): Likewise.
11529 (fini_hnd): New variable.
11530 (GRUB_MOD_INIT): Register preboot hook.
11531 (GRUB_MOD_FINI): Run and unregister preboot hook.
11533 Poll network cards when idle.
11535 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11536 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11537 * grub-core/net/net.c (receive_packets): Save last poll time.
11538 (grub_net_poll_cards_idle_real): New function.
11539 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11540 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11541 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11543 Rename ofnet interfaces.
11545 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11546 (grub_ofnet_findcards): Use ofnet_%s names.
11548 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11550 Cleanup socket opening.
11552 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11553 (grub_net_fs_close): Likewise.
11554 (grub_net_fs_read_real): Use eof member.
11555 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11556 (+grub_net_udp_close): New inline function.
11558 * include/grub/net/tftp.h: Moved to the top of ...
11559 * grub-core/net/tftp.c: ... here.
11560 * include/grub/net/ip.h: Moved mostly to the top of ...
11561 * grub-core/net/ip.c: ... here.
11562 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11563 * grub-core/net/ethernet.c: ... here.
11565 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11567 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11570 * include/grub/net/ip.h (ipv4_ini): Removed.
11571 (ipv4_fini): Likewise.
11573 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11574 (grub_net_send_ip_packets): Likewise.
11576 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11578 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11579 grub_read_cmos prototype.
11581 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11583 VGA text support in qemu-mips
11585 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11586 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11587 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11589 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11590 * grub-core/kern/vga_init.c: ... this.
11591 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11592 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11593 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11595 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11596 GRUB_MACHINE_PCI_IO_BASE.
11598 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11600 MIPS qemu flash support.
11602 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11604 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11605 (grub_machine_init): Probe memory if its size isn't known.
11606 * util/grub-mkimage.c (image_targets): Add flash targets.
11607 (generate_image): Handle flash targets.
11609 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11611 MIPS qemu at_keyboard support.
11613 * gentpl.py (videoinkernel): Add qemu-mips.
11614 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11615 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11616 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11618 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11619 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11620 * grub-core/term/serial.c (grub_serial_register)
11621 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11623 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11625 CMOS support on sparc.
11627 * gentpl.py (cmos): Add powerpc and sparc.
11628 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11630 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11631 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11632 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11633 grub_set_datetime_cmos.
11634 * grub-core/lib/ieee1275/cmos.c: New file.
11635 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11636 (find_rtc): Set no_ieee1275_rtc on error.
11637 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11638 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11639 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11640 fail. Move value to argument. All users updated
11641 (grub_cmos_write): Likewise.
11642 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11643 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11644 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11645 grub_get_datetime_cmos and grub_set_datetime_cmos.
11647 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11649 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11650 sourcing grub-mkconfig_lib.
11651 * util/update-grub_lib.in: Likewise.
11652 * util/grub.d/00_header.in: Likewise.
11653 * util/grub.d/10_hurd.in: Likewise.
11654 * util/grub.d/10_kfreebsd.in: Likewise.
11655 * util/grub.d/10_linux.in: Likewise.
11656 * util/grub.d/10_netbsd.in: Likewise.
11657 * util/grub.d/10_windows.in: Likewise.
11658 * util/grub.d/20_linux_xen.in: Likewise.
11659 * util/grub.d/30_os-prober.in: Likewise.
11661 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11663 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11664 default_bg_color rather than black.
11665 (grub_gfxterm_fullscreen): Likewise.
11666 (grub_gfxterm_background_color_cmd): Save new background color in
11669 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11671 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11673 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11675 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11678 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11680 Chainloading on coreboot support.
11682 * grub-core/Makefile.core.def (chain): Add coreboot.
11683 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11685 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11687 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11690 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11692 Implement time command.
11694 * grub-core/Makefile.core.def (time): New module.
11695 * grub-core/commands/time.c: New file.
11696 * grub-core/script/parser.y: Remove "time" keyword.
11697 * grub-core/script/yylex.l: Likewise.
11699 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11701 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11703 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11705 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11706 when handling leftovers.
11708 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11710 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11711 so that help2man doesn't fail.
11713 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11715 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11716 type in pointers on sparc64.
11717 (get_card_packet): Likewise.
11719 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11721 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11723 (grub_cmd_videoinfo): Fetch current video mode.
11725 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11727 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11728 because of underlying system restrictions.
11730 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11732 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11735 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11737 Coreboot video support.
11739 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11741 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11742 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11744 * grub-core/kern/i386/int.S: ... here.
11745 * grub-core/video/i386/pc/vbe.c: Updated includes.
11746 * grub-core/video/i386/pc/vga.c: Likewise.
11747 * include/grub/i386/coreboot/memory.h
11748 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11749 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11750 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11751 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11752 Disable interrupts.
11753 * include/grub/i386/pc/vga.h: Removed. All users updated.
11755 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11757 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11758 definitions for dprintf.
11759 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11761 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11763 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11765 (get_card_packet): Likewise.
11767 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11769 Display the path of the file when file is not found
11771 * grub-core/fs/fat.c: Display the filename when file is not found.
11772 * grub-core/fs/fshelp.c: Likewise.
11773 * grub-core/fs/hfs.c: Likewise.
11774 * grub-core/fs/jfs.c: Likewise.
11775 * grub-core/fs/minix.c: Likewise.
11776 * grub-core/fs/ufs.c: Likewise.
11777 * grub-core/fs/btrfs.c: Likewise.
11778 * grub-core/commands/i386/pc/play.c: Likewise.
11780 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11782 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11783 pointer checks before calling grub_free().
11784 * grub-core/commands/wildcard.c (match_devices): Likewise.
11785 * grub-core/commands/wildcard.c (match_files): Likewise.
11786 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11787 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11788 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11789 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11790 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11791 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11792 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11793 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11794 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11796 2011-06-25 Patrick <p55@mailinator.com>
11798 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11800 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11802 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11803 (grub_pxe_send): Likewise.
11804 (GRUB_MOD_INIT): Fix types.
11806 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11808 * grub-core/io/xzio.c: Fix code style issues
11810 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11811 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11813 Network infrastructure.
11814 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11816 * include/grub/net/arp.h: New file.
11817 * include/grub/net/device.h: Likewise.
11818 * include/grub/net/ethernet.h: Likewise.
11819 * include/grub/net/ip.h: Likewise.
11820 * include/grub/net/netbuff.h: Likewise.
11821 * include/grub/net/tftp.h: Likewise.
11822 * include/grub/net/udp.h: Likewise.
11823 * include/grub/ieee1275/ofnet.h: Likewise.
11824 * include/grub/emu/export.h: Likewise.
11825 * include/grub/net.h: Likewise.
11826 * grub-core/net/arp.c: Likewise.
11827 * grub-core/net/ethernet.c: Likewise.
11828 * grub-core/net/ip.c: Likewise.
11829 * grub-core/net/udp.c: Likewise.
11830 * grub-core/net/tftp.c: Likewise.
11831 * grub-core/net/netbuff.c: Likewise.
11832 * grub-core/net/net.c: Likewise.
11833 * grub-core/net/drivers/emu/emunet.c: Likewise.
11834 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11835 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11837 * grub-core/Makefile.core.def (net): New module.
11840 (emunet): Likewise.
11841 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11843 * grub-core/kern/device.c (grub_net_open) : New variable.
11844 (grub_device_open): Handle network device.
11845 (grub_device_close): Likewise.
11846 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11847 (grub_grubnet_fini): Likewise.
11848 (grub_file_seek): Seek in network device.
11849 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11850 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11852 (grub_machine_fini): Call grub_grubnet_fini.
11853 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11855 (grub_ieee1275_get_aliasdevname): New function.
11856 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11857 Add unofficial Solaris network info.
11858 (grub_multiboot_make_mbi): Likewise.
11859 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11860 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11861 * include/grub/device.h (grub_fs): Removed.
11862 * include/grub/err.h (grub_err_t): Add network-related values.
11863 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11864 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11865 (grub_ieee1275_get_aliasdevname): New proto.
11866 * include/grub/net.h: Rewritten.
11868 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11870 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11873 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11875 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11876 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11877 it truncates the output.
11878 Reported by: Ximin Luo.
11880 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11882 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11884 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11886 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11887 partmap before abstraction.
11889 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11891 * util/grub-mkconfig_lib.in: Add missing quotes.
11893 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11895 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11896 old method if mountinfo would return /dev/root and /dev/root doesn't
11899 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11903 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11904 (decomp_table): Add zlib entries.
11905 (zio_read): USe 8 bits for compression function rather than 3.
11906 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11908 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11910 * grub-core/disk/ahci.c: Add missing license statements.
11911 * grub-core/fs/romfs.c: Likewise.
11912 * grub-core/lib/ia64/setjmp.S: Likewise.
11913 * grub-core/loader/i386/pc/freedos.c: Likewise.
11914 * grub-core/loader/ia64/efi/linux.c: Likewise.
11915 * grub-core/video/colors.c: Likewise.
11916 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11918 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11922 * grub-core/Makefile.core.def (ata_pthru): Removed.
11923 (ahci): New module.
11925 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11927 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11929 (grub_hdparm_do_check_powermode_cmd): Likewise.
11930 (grub_hdparm_do_smart_cmd): Likewise.
11931 (grub_hdparm_set_val_cmd): Likewise.
11932 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11933 * grub-core/disk/ahci.c: New file.
11934 * grub-core/disk/ata.c: Factor out the low-level part into ...
11935 * grub-core/disk/pata.c: ... here.
11936 * grub-core/disk/ata_pthru.c: Contents moved to ...
11937 * grub-core/disk/pata.c: ... here.
11938 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11939 (grub_scsi_iterate): Use grub_scsi_names.
11940 (grub_scsi_open): Likewise.
11941 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11942 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11943 (grub_ata_regs_t): New struct.
11944 (grub_disk_ata_pass_through_parms): Likewise.
11945 (grub_ata_device): Renamed to ...
11946 (grub_ata): ... this.
11947 (grub_ata_dev): New struct.
11948 Removed all low-level inline functions.
11949 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11950 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11951 iterate hooks and open. All users updated.
11952 * util/grub-install.in: Handle AHCI disk module.
11954 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11956 Add support for DRI and RSTn markers in JPEG files.
11958 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11959 (JPEG_MARKER_RST0): Likewise.
11960 (JPEG_MARKER_RST1): Likewise.
11961 (JPEG_MARKER_RST2): Likewise.
11962 (JPEG_MARKER_RST3): Likewise.
11963 (JPEG_MARKER_RST4): Likewise.
11964 (JPEG_MARKER_RST5): Likewise.
11965 (JPEG_MARKER_RST6): Likewise.
11966 (JPEG_MARKER_RST7): Likewise.
11967 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11968 (grub_jpeg_decode_dri): New function.
11969 (grub_jpeg_decode_sos): Move image data related part into
11970 grub_jpeg_decode_data function.
11971 (grub_jpeg_decode_data): New function.
11972 (grub_jpeg_reset): New function.
11973 (grub_jpeg_decode_jpeg): Handle new markers.
11975 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11977 * util/ieee1275/ofpath.c (check_sas): Close fd.
11978 (main): Free of_path.
11979 Reported by: David Volgyes <dvolgyes>.
11981 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11983 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11984 Reported by: David Volgyes <dvolgyes>.
11986 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11988 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11990 Reported by: David Volgyes <dvolgyes>.
11992 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11994 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
11996 Reported by: David Volgyes <dvolgyes>.
11998 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12000 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
12001 Prevent memory leak.
12003 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12005 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
12006 (main): Close file.
12007 Reported by: David Volgyes <dvolgyes>.
12009 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12011 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
12012 to continue if allocation is failed.
12014 Reported by: David Volgyes <dvolgyes>.
12016 2011-06-23 David Volgyes <dvolgyes>
12018 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
12021 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12023 Fix spurious warning.
12025 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
12026 (acorn_partition_map_find): Use .bin member.
12028 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12030 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
12031 /dev/root as a valid device.
12033 2011-06-23 Jim Meyering <meyering@redhat.com>
12035 Avoid NULL deref in grub_device_open.
12037 * grub-core/kern/device.c (grub_device_open): Don't dereference
12038 a NULL pointer upon failed grub_env_get.
12040 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12042 Support non-512B sectors and agglomerate reads.
12044 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
12045 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
12046 (disk_io_guid): Removed.
12047 (make_devices): Locate solely by BlockIO.
12048 (grub_efidisk_open): Fill log_sector_size and total_sectors.
12049 (grub_efidisk_read): Use read_blocks.
12050 (grub_efidisk_write): Use write_blocks.
12051 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12053 (get_safe_sectors): Handle non-512B sectors.
12054 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12056 (grub_biosdisk_write): Handle non-512B sectors.
12057 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12058 (grub_scsi_read): Remove special non-512B block handling (now handled
12060 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12061 and do sanity checks.
12062 (grub_disk_adjust_range): Handle non-512B sectors.
12063 (transform_sector): New function.
12064 (grub_disk_read_small): Likewise.
12065 (grub_disk_read): Rewritten.
12066 (grub_disk_write): Handle non-512B sectors.
12067 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12069 (open_device): Use log_sector_size.
12070 (grub_util_biosdisk_read): Likewise.
12071 (grub_util_biosdisk_write): Likewise.
12072 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12074 (pc_partition_map_embed): Likewise.
12075 * include/grub/disk.h (grub_disk): New field log_sector_size.
12076 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12077 (GRUB_DISK_CACHE_BITS): Increased to 6.
12078 * util/grub-fstest.c (fstest): New command testload.
12079 (argp_parser): Likewise.
12081 2011-06-16 Robert Millan <rmh@gnu.org>
12083 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12084 `ata' driver on kernel of FreeBSD 9.
12086 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12087 (get_ataraid_disk_name): New functions.
12088 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12089 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12090 get_ataraid_disk_name() and get_ada_disk_name().
12092 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
12094 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12097 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
12099 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12100 `ftp.gnu.org' for `alpha.gnu.org'.
12102 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12104 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12105 partitions under /dev/disk/by-id/.
12107 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12109 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12110 after ten consecutive open failures. Scanning all the way up to
12111 10000 is excessive and can cause serious performance problems in
12112 some configurations.
12113 Fixes Ubuntu bug #787461.
12115 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12117 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12120 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
12121 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12123 Don't stat devices unless we have to.
12125 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12126 dir == /dev/mapper.
12127 (grub_guess_root_device): Use already known os_dev if possible.
12128 * grub-core/kern/emu/hostdisk.c
12129 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12130 if device is known to be a dm one.
12132 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
12134 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12135 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12136 Reported by: Pawel Tecza.
12138 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12140 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12141 (lsefisystab): Likewise.
12143 (lsefimmap): Likewise.
12144 (hdparm): Enable on qemu-mips.
12145 (setjmp): Add ia64 nodist.
12146 (serial): Simplify tags.
12148 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12150 * Makefile.util.def (grub-ofpathname): Install manual page.
12152 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12154 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12156 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12158 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12160 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12162 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12165 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12167 Use full 64-bit division.
12169 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12170 (grub_divmod64): ... this.
12171 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12174 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12176 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12179 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12181 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12182 to avoid accidents when debugging with 'sh -x'.
12183 * grub-core/gensyminfo.sh.in: Likewise.
12184 * tests/example_scripted_test.in: Likewise.
12185 * tests/grub_cmd_regexp.in: Likewise.
12186 * tests/grub_script_blanklines.in: Likewise.
12187 * tests/grub_script_dollar.in: Likewise.
12188 * tests/grub_script_expansion.in: Likewise.
12189 * tests/grub_script_final_semicolon.in: Likewise.
12190 * tests/partmap_test.in: Likewise.
12191 * tests/util/grub-shell-tester.in: Likewise.
12192 * tests/util/grub-shell.in: Likewise.
12194 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12196 Move gfxmenu color handling to video, so that gfxterm can use it
12199 * grub-core/gfxmenu/named_colors.c: Move to ...
12200 * grub-core/video/colors.c: ... here. Rename
12201 grub_gui_get_named_color to grub_video_get_named_color.
12202 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12203 * grub-core/video/colors.c (my_isxdigit): ... here.
12204 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12206 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12207 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12209 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12211 * include/grub/gui.h (grub_gui_color_t): Move to ...
12212 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12213 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12214 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12215 * include/grub/gui.h (grub_gui_map_color): Move to ...
12216 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12217 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12219 * include/grub/video.h (grub_video_get_named_color): ... here.
12220 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12221 * include/grub/video.h (grub_video_parse_color): ... here.
12223 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12225 (gfxmenu): Remove gfxmenu/named_colors.c.
12226 (video) [videomodules]: Add video/colors.c.
12228 Add a background_color command.
12230 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12232 (GRUB_MOD_INIT): Register background_color command.
12233 (GRUB_MOD_FINI): Unregister background_color command.
12234 (redraw_screen_rect): Allow blend/replace of text layer to be
12235 controlled independently from whether there is a background bitmap.
12236 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12239 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12241 Patch BPB in ntldr and chainloader --bpb.
12243 * grub-core/fs/fat.c: Include grub/fat.h.
12244 (grub_fat_bpb): Moved to ...
12245 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12246 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12248 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12250 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12252 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12254 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12255 (GRUB_MOD_INIT): Show --bpb.
12256 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12257 * grub-core/normal/main.c (features): New variable.
12258 (GRUB_MOD_INIT): Set feature_* variables.
12259 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12261 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12263 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12265 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12268 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12270 FreeDOS direct loading support.
12272 * docs/grub.texi (Supported OS): Add FreeDOS.
12273 * grub-core/Makefile.core.def (freedos): New module.
12274 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12276 (grub_relocator16_boot): Handle %ebx.
12277 * grub-core/lib/i386/relocator16.S: Likewise.
12278 * grub-core/loader/i386/pc/freedos.c: New file.
12280 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12282 Long Linux command line support.
12284 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12285 (maximal_cmdline_size): New variable.
12286 (allocate_pages): Use maximal_cmdline_size.
12287 (grub_cmd_linux): Set and use maximal_cmdline_size.
12288 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12289 (allocate_pages): Use maximal_cmdline_size.
12290 (grub_cmd_linux): Set and use maximal_cmdline_size.
12291 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12292 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12295 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12296 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12298 Improve devmapper support
12300 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12301 (grub_util_is_lvm): New function.
12302 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12303 than lvm if not dmraid.
12304 Handle mapped md nodes.
12305 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12306 (grub_util_device_is_mapped): ... this. Make always available. All users
12308 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12309 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12311 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12313 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12315 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12317 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12318 * grub-core/modinfo.sh.in: New file.
12319 * grub-core/Makefile.core.def (modinfo.sh): New script.
12320 * util/grub-mknetdir.in: Use modinfo.sh.
12321 * util/grub-mkrescue.in: Likewise.
12323 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12325 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12326 Fix potential usage of Elf32 instead of Elf64 when compiling on
12327 32-bit architecture. Add endianness macros while on it.
12329 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12331 Use mipsel- rather than mips- in directories involving mipsel ports to
12332 allow both endiannesses coexist.
12334 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12335 mips. All conditions adjusted.
12336 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12338 * util/grub-install.in: Adjust conditions to take renaming into account.
12339 * util/grub-mkimage.c (image_targets): Likewise. New target
12340 mips-qemu_mips-elf for bigendian mips.
12342 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12344 Avoid unnecessary copying on MIPS.
12346 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12347 early if src == dest.
12348 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12349 compression is none.
12351 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12353 Reduce memory footprint on SGI by putting modules before the kernel
12354 as opposed to after.
12356 * grub-core/Makefile.core.def (kernel): Increase linking address.
12357 (none_decompress): Likewise.
12358 (xz_decompress): Likewise.
12359 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12361 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12363 (grub_arch_modules_addr): New function.
12364 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12365 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12366 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12368 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12369 (grub_total_modules_size): ... this. Make global.
12370 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12371 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12373 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12374 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12375 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12376 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12377 * util/grub-mkimage.c (image_target_desc): New flag
12378 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12379 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12380 (generate_image): Handle images with modules before kernel.
12382 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12384 Prevent potential loss of memory map by overwrite on qemu-mips.
12386 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12387 Save ram size in $s4.
12388 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12389 All users changed to grub_arch_memsize.
12390 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12392 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12393 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12394 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12397 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12399 * .bzrignore: Remove grub-dumpbios.
12401 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12403 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12404 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12405 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12406 existing options which append).
12407 * docs/grub.texi (Simple configuration): Document new options.
12408 Reported by: Ian Jackson. Fixes Debian bug #617538.
12410 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12412 * util/grub-fstest.c (cmd_cat): New function.
12413 (fstest): Handle CMD_CAT.
12414 (options): Add cat.
12415 (argp_parser): Handle cat.
12417 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12419 * Makefile.util.def (grub-bin2h): Don't install.
12420 * docs/man/grub-bin2h.h2m: Remove.
12422 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12424 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12427 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12429 Reenable qemu-mips port.
12431 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12432 Fix small arc bug while on it.
12433 * gentpl.py: Handle qemu_mips.
12434 * grub-core/Makefile.am: Likewise.
12435 * grub-core/Makefile.core.def: Likewise.
12436 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12437 inappropriate includes.
12438 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12439 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12440 * grub-core/kern/main.c (grub_modules_get_end)
12441 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12442 * grub-core/kern/mips/qemu-mips: Moved to ..
12443 * grub-core/kern/mips/qemu_mips: ... this.
12444 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12445 (grub_machine_init): Call terminfo_init and serial_init.
12446 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12447 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12449 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12451 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12452 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12453 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12454 * include/grub/mips/qemu_mips/cmos.h: New file.
12455 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12456 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12458 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12459 Use correct mips-style address.
12460 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12461 (GRUB_TICKS_PER_SECOND): Removed.
12462 (grub_get_rtc): Likewise.
12463 (grub_cpu_idle): Likewise.
12464 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12466 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12467 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12468 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12469 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12470 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12471 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12472 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12473 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12475 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12479 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12480 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12482 * configure.ac: New target mips-arc.
12483 * gentpl.py: Likewise.
12484 * grub-core/Makefile.am: Likewise.
12485 * grub-core/Makefile.core.def: Likewise.
12486 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12487 (none_decompress): Likewise.
12488 (lsdev): New module.
12489 (datetime): Use lib/arc/datetime.c on ARC.
12490 (part_dvh): New module.
12491 * grub-core/commands/arc/lsdev.c: New file.
12492 * grub-core/disk/arc/arcdisk.c: Likewise.
12493 * grub-core/kern/mips/arc/init.c: Likewise.
12494 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12496 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12498 (grub_arch_dl_relocate_symbols): Likewise.
12499 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12500 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12501 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12503 * grub-core/lib/arc/datetime.c: New file.
12504 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12505 pci.h on non-loongson.
12506 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12507 (grub_linux_boot): Set unused registers to 0.
12508 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12509 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12510 * grub-core/mmap/mips/uppermem.c: ...here.
12511 * grub-core/partmap/dvh.c: New file.
12512 * grub-core/term/arc/console.c: Likewise.
12513 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12514 (grub_terminfo_set_current): Add terminal "arc".
12515 (grub_terminfo_readkey): Support ARC sequences.
12516 * include/grub/arc/arc.h: New file.
12517 * include/grub/arc/console.h: Likewise.
12518 * include/grub/disk.h (grub_disk_dev_id): Add
12519 GRUB_DISK_DEVICE_ARCDISK_ID.
12520 * include/grub/mips/arc/kernel.h: New file.
12521 * include/grub/mips/arc/memory.h: Likewise.
12522 * include/grub/mips/arc/time.h: Likewise.
12523 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12524 * include/grub/mips/kernel.h (grub_halt): ... here.
12525 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12527 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12528 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12529 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12530 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12532 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12534 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12535 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12536 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12537 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12538 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12539 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12540 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12541 (grub_phys_addr_t): Moved from here ...
12542 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12543 (grub_vtop): Moved from here ...
12544 * include/grub/mips/memory.h (grub_vtop): ... here.
12545 (grub_map_memory): Moved from here ...
12546 * include/grub/mips/memory.h (grub_map_memory): ... here.
12547 (grub_unmap_memory): Moved from here ...
12548 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12549 (grub_machine_mmap_iterate): Moved from here ...
12550 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12551 (grub_mmap_get_lower): Moved from here ...
12552 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12553 (grub_mmap_get_upper): Moved from here ...
12554 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12555 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12557 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12558 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12560 * include/grub/mips/time.h (grub_get_rtc): ... here.
12561 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12563 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12564 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12566 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12567 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12569 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12570 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12571 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12572 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12573 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12574 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12575 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12576 (GRUB_MACHINE_LINK_ADDR): Likewise.
12577 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12579 * util/grub-install.in: Run dvhtool on ARC.
12580 * util/grub-mkimage.c (image_targets): Add mips-arc.
12581 (generate_image): Handle ECOFF output for mips-arc.
12583 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12585 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12588 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12590 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12591 after enabling port.
12593 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12595 Skip incorrect USB devices.
12597 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12599 * include/grub/usb.h (grub_usb_err_t): New enum value
12600 GRUB_USB_ERR_BADDEVICE.
12602 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12604 Fuloong video init support.
12606 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12608 (grub_vga_read_arx): New function.
12609 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12611 (framebuffer): New members io, mmioptr and mmiobase.
12612 (read_sis_cmd): New function.
12613 (write_sis_cmd): Likewise.
12614 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12615 rather than 640x400.
12616 * grub-core/video/sis315_init.c: New file.
12618 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12620 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12622 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12623 to grub_dl_register_symbol.
12625 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12627 Fix compilation errors.
12629 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12630 potentially unused.
12631 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12632 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12633 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12634 to loongson machines.
12636 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12638 Several FS mtime support.
12640 * grub-core/fs/affs.c (grub_affs_time): New struct.
12641 (grub_affs_file): New field mtime.
12642 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12643 type. Removed 'size'. New field 'di'. All users updated.
12644 (grub_affs_mount): Simplify checsum checking.
12645 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12646 (grub_affs_dir): Handle mtime.
12647 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12648 (grub_cpio_dir): Likewise.
12649 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12650 (grub_hfs_filerec): New field mtime.
12651 (grub_hfs_dir): Handle mtime.
12652 (grub_hfs_mtime): New function.
12653 (grub_hfs_fs): Register grub_hfs_mtime.
12654 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12655 (grub_iso9660_dir): New field mtime.
12656 (grub_fshelp_node): New field dirent.
12657 (iso9660_to_unixtime): New function.
12658 (iso9660_to_unixtime2): Likewise.
12659 (grub_iso9660_read_symlink): Use node->dirent.
12660 (grub_iso9660_iterate_dir): Likewise.
12661 (grub_iso9660_dir): Set mtime.
12662 (grub_iso9660_mtime): New function.
12663 (grub_iso9660_fs): Register grub_iso9660_mtime.
12664 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12665 (grub_jfs_inode): New fields atime, ctime and mtime.
12666 (grub_jfs_dir): Set mtime.
12667 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12668 * grub-core/fs/ntfs.c (list_file): Set mtime.
12669 (grub_ntfs_dir): Likewise.
12670 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12671 (grub_reiserfs_iterate_dir): Set mtime.
12672 (grub_reiserfs_dir): Likewise.
12673 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12674 (grub_fshelp_node): Likewise.
12675 (grub_sfs_iterate_dir): Set mtime.
12676 (grub_sfs_dir): Likewise.
12677 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12678 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12679 (grub_xfs_inode): New fields atime, mtime, ctime.
12680 (grub_xfs_dir): Set mtime.
12681 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12682 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12683 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12685 Support UDF symlinks.
12687 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12688 (grub_ufs_read_symlink): New function. All users updated.
12690 Check amiga partmap checksum.
12692 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12693 (grub_amiga_partition): Likewise.
12694 (amiga_partition_map_checksum): New function.
12695 (amiga_partition_map_iterate): Check checksum.
12697 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12701 * Makefile.util.def (libgrubmods.a): Add romfs.
12702 * grub-core/Makefile.core.def (romfs): New module.
12703 * grub-core/fs/romfs.c: New file.
12705 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12707 Squashfs v4 support.
12709 * Makefile.util.def (libgrubmods.a): Add squash4.
12710 * grub-core/Makefile.core.def (squash4): New module.
12711 * grub-core/fs/squash4.c: New file.
12712 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12713 disk_input_start, disk_input.
12714 (get_byte): Handle disk_input.
12715 (grub_zlib_disk_read): New function.
12716 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12718 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12719 2011-05-15 Feiran Zheng <famcool@gmail.com>
12721 * Makefile.util.def (libgrubmods.a): Add minix3.
12722 * grub-core/Makefile.core.def (minix3): New module.
12723 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12724 (GRUB_MINIX_BSIZE): Removed.
12725 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12726 (grub_minix_ino_t): New type.
12727 (grub_minix_le_to_cpu_ino): New macro.
12728 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12729 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12730 (grub_minix_data): New field block_size.
12731 (grub_minix_read_file): Handle 64-bit correctly.
12732 * grub-core/fs/minix3.c: New file.
12734 2011-05-15 Tristan Gingold <gingold@free.fr>
12735 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12736 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12740 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12741 * configure.ac: Add ia64-efi target.
12742 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12743 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12744 * gentpl.py: Add ia64_efi platform.
12745 Rename x86_efi to efi and Add ia64-efi. All users updated.
12746 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12747 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12748 Remove kern/generic/rtc_get_time_ms.c on EFI.
12749 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12750 kern/ia64/dl_helper.c on ia64-efi.
12751 Add kern/emu/cache.c on emu.
12752 (linux): Use on loader/ia64/efi/linux.c on ia64.
12753 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12754 whether symbol is a function.
12755 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12756 (grub_symbol): New field 'isfunc'.
12757 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12758 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12759 (grub_dl_load_segments): Place all sections into the same region.
12760 [__ia64__]: Create trampolines and got.
12761 [GRUB_MACHINE_EMU]: Call mprotect.
12762 (grub_dl_resolve_symbols): Resolve symbol type as well.
12763 [__ia64__]: Create function descriptors.
12764 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12765 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12766 (grub_get_rtc): New function.
12767 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12768 * grub-core/kern/emu/cache.S: Renamed to ...
12769 * grub-core/kern/emu/cache_s.S: ... this.
12770 [__ia64__]: Add a nop.
12771 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12772 [__ia64__]: New function.
12773 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12774 * grub-core/kern/ia64/dl.c: New file.
12775 * grub-core/kern/ia64/dl_helper.c: Likewise.
12776 * grub-core/kern/ia64/efi/init.c: New file.
12777 * grub-core/kern/ia64/efi/startup.S: Likewise.
12778 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12779 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12780 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12781 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12782 * grub-core/loader/ia64/efi/linux.c: New file.
12783 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12784 (GRUB_MOD_DEP): Likewise.
12785 (grub_dl) [__ia64__]: New fields got and tramp.
12786 (grub_dl): New field 'base'.
12787 (grub_dl_register_symbol): New argument isfunc. All users updated.
12788 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12789 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12790 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12791 (grub_ia64_dl_get_tramp_got_size): New proto.
12792 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12793 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12794 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12795 * include/grub/efi/api.h: Skip call wrappers on ia64.
12796 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12797 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12798 * include/grub/elf.h (ELF_ST_INFO): New definition.
12799 * include/grub/ia64/efi/kernel.h: New file.
12800 * include/grub/ia64/efi/memory.h: Likewise.
12801 * include/grub/ia64/efi/time.h: Likewise.
12802 * include/grub/ia64/kernel.h: Likewise.
12803 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12804 * include/grub/ia64/time.h: New file.
12805 * include/grub/ia64/types.h: Likewise.
12806 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12807 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12809 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12810 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12811 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12812 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12814 (EFI64_HEADER_SIZE): New definition. All users updated.
12815 (image_targets): Add ia64-efi.
12816 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12817 jumpers_addr. All users updated.
12818 Create function descriptors.
12819 (count_funcs): New function.
12820 (unaligned_uint32): New struct.
12821 (MASK20): New definition.
12822 (MASK19): Likewise.
12823 (MASKF21): Likewise.
12824 (add_value_to_slot_20b): New function.
12825 (add_value_to_slot_21_real): Likewise.
12826 (add_value_to_slot_21): Likewise.
12827 (ia64_kernel_trampoline): New struct.
12828 (nopm): New variable.
12830 (make_trampoline): New function.
12831 (relocate_addresses): Handle ia64.
12832 (make_reloc_section): Likewise.
12833 (load_image): Likewise.
12835 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12837 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12838 warning. Move variables before code while on it.
12840 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12844 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12845 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12846 * grub-core/boot/mips/loongson/fuloong.S: New file.
12847 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12848 Explicitly init CS5536.
12849 [FULOONG]: Don't use serial until CS5536 is available.
12850 Set GPIO based on dumps.
12851 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12852 [FULOONG]: Handle GPIO and memory controller differences.
12853 Parse machine type in $a2.
12854 * grub-core/boot/mips/startup_raw.S: Determine and save the
12856 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12857 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12858 init on architecture type.
12859 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12860 SIS315E. Don't init at_keyboard on fuloong.
12861 (grub_halt): Support Fuloong.
12862 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12863 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12864 (loongson_machtypes): New array.
12865 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12867 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12868 config. All users updated. Handle CS5536 serial.
12869 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12870 default port on machine type. Register serial as inactive.
12871 * grub-core/video/sis315pro.c: New file.
12872 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12874 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12875 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12876 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12877 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12878 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12879 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12881 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12882 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12884 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12885 (grub_arch_machine): New extern var.
12886 * include/grub/mips/loongson/serial.h
12887 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12888 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12889 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12890 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12891 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12892 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12893 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12894 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12895 * include/grub/term.h (grub_term_register_input_inactive): New inline
12897 (grub_term_register_output_inactive): Likewise.
12898 * include/grub/video.h (grub_video_driver_id): New value
12899 GRUB_VIDEO_DRIVER_SIS315PRO.
12900 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12901 New field "names". All users updated.
12902 New field value IMAGE_FULOONG_FLASH.
12903 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12905 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12907 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12908 and add some clarification.
12910 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12912 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12913 platforms if kernel is compressed.
12915 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12917 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12918 unused modules since currently referrence counter isn't reliable and
12919 there isn't much memory to recover there anyway.
12921 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12923 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12924 rather than resetting it to allow modules to reference themselves
12927 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12929 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12930 counter on dependencies since grub_dl_unref already handles this.
12932 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12934 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12935 on error if not already done.
12937 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12939 Fix few potential memory misusage.
12941 * grub-core/font/font.c (load_font_index): Don't free char_index to
12943 (grub_font_load): Zero-fill font at alloc for safety.
12944 Close file on error.
12945 (free_font): Free bmp_idx.
12947 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12949 * docs/grub.texi (Installation): Fix several outdated claims.
12951 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12953 Handle module_license on windows.
12955 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12957 (insert_string): Make argument const char * instead of char *.
12958 (write_section_data): Handle long section names.
12959 Handle module_license.
12961 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12963 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12964 handle class-free menuentries.
12965 (grub_normal_add_menu_entry): Add a check to be sure.
12967 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12969 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12972 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12974 * configure.ac: Bump version to 1.99.
12976 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12978 Give ATA device a bit more time on first try in order to allow disks
12981 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12982 if dev->present is 1. Reset dev->present on failure.
12983 (grub_ata_device_initialize): Set dev->present to 1.
12984 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12985 (grub_ata_device): New member 'present'.
12987 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12989 * util/grub-mkimage.c (generate_image): Update hash.
12991 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12993 Flush caches on DMA memory.
12995 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
12996 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
12997 (grub_dma_free): Likewise.
12998 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
13000 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13002 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
13003 to avoid asm treating ld and sd as macros.
13005 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13007 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
13010 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13012 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
13013 grub_decompress_core since later would fail if grub_decompress_core
13016 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13018 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
13019 R_MIPS_JALR since it's used by newer compiler.
13021 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
13023 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
13025 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13027 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
13028 file_path to 0 for surety.
13029 (grub_chainloader_boot): Set exit_data to NULL.
13030 Unset the loader once done.
13031 (grub_cmd_chainloader): Fix confusing error message if file is empty.
13033 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13035 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
13036 unknown key into a dprintf.
13038 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13040 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
13041 on first non-existant partition.
13043 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13045 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
13047 Reported by: Mark Korenberg.
13049 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13051 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13054 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13056 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13057 before closing to ensure that it will be readable by grub-setup.
13059 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13061 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13062 (devpath_1): Use MAKE_PIWG_PATH.
13063 (devpath_2): Likewise.
13064 (devpath_3): Likewise.
13065 (devpath_4): Likewise.
13066 (devpath_5): Likewise.
13067 (devpath_6): Likewise.
13069 The appleldr.mod was checked that to be binary identical to previous
13072 2011-05-05 Zach <mikezackles>
13074 Support 2010 Macbooks.
13076 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13077 (devs): Add devpath_6.
13079 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13081 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13082 /dev/random. /dev/urandom is good enough for our purposes (salting).
13084 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13086 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13088 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13090 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13093 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13095 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13096 and not 0 on failure.
13098 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13100 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13101 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13102 disk; otherwise grub_fs_probe will not fall back to the next
13104 (grub_pxefs_open): Likewise, for consistency.
13105 Reported and tested by: Ezekiel Grave.
13107 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13109 * tests/partmap_test.in: Don't hardcode path to parted.
13110 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13112 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
13114 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13115 of `ls' to find out which devices are available.
13117 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13119 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13120 than source address for efi mmap buffer.
13122 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13124 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13125 wrong action on non-detecting the magic.
13127 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13129 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13130 already supplied by another part of the module (fixes compilation on
13133 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13135 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13136 match the one used by mdadm.
13138 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13140 * po/README: Add instructions for creating po/LINGUAS.
13142 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13144 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13147 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13148 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13149 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13150 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13151 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13152 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13153 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13154 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13155 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13156 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13157 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13158 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13159 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13160 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13161 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13162 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13163 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13164 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13165 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13166 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13167 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13168 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13170 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13172 * grub-core/kern/emu/getroot.c
13173 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13174 test that was incorrectly reintroduced in r3214.
13175 Reported by: Ian Dall. Fixes Savannah bug #33133.
13177 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13179 Fix stack pointer handling in 16-bit relocator.
13181 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13182 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13183 Fixes Ubuntu bug #683904.
13185 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13187 * configure.ac: Bump version to 1.99~rc2.
13189 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13191 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13192 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13193 * grub-core/lib/x86_64/setjmp.S: Likewise.
13194 * grub-core/lib/mips/setjmp.S: Likewise.
13195 * grub-core/lib/powerpc/setjmp.S: Likewise.
13196 * grub-core/lib/sparc64/setjmp.S: Likewise.
13198 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13200 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13201 * grub-core/lib/efi/datetime.c: Likewise.
13203 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13205 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13207 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13208 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13209 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13211 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13213 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13215 (grub_gfxterm_term_init): Likewise.
13217 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13219 Take into account the decorations the computing menu entry width.
13221 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13222 (grub_gfxmenu_create_box): Register get_border_width.
13223 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13225 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13228 2011-04-18 Endres Puschner <code@e7p.de>
13230 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13231 Don't skip first class.
13233 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13235 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13237 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13239 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13241 Complete 64-bit division support.
13243 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13244 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13245 * include/grub/misc.h (grub_divmod64): Rename to ...
13246 (grub_divmod64_full): ... this.
13247 (grub_divmod64): New inline function.
13249 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13251 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13253 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13255 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13256 performing the necessary test.
13258 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13260 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13261 (kfreebsd.elf): Likewise.
13262 (pc-chainloader.elf): Likewise.
13263 (ntldr.elf): Likewise.
13265 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13267 Identify RAID by its UUID rather than (guessed) name.
13269 * grub-core/disk/raid.c (ascii2hex): New function.
13270 (grub_raid_open): Accept mduuid/%s specification.
13271 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13272 (get_mdadm_uuid): ... this.
13273 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13275 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13277 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13280 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13282 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13284 * util/grub.d/20_linux_xen.in: Likewise.
13286 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13288 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13289 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13291 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13292 Build a list of relevant visible mounts using the mnt_id and
13293 parent_mnt_id fields, and then scan that list at the end.
13295 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13297 * docs/grub.texi (normal): New section.
13298 (normal_exit): New section.
13299 (Embedded configuration): Add reference to normal.
13300 (GRUB only offers a rescue shell): Likewise.
13301 * docs/grub-dev.texi (Error Handling): Fix typo.
13303 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13305 * NEWS: Drop obsolete entry about probe-only btrfs support.
13307 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13309 * util/import_gcry.py: Fix typo.
13311 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13313 * NEWS: Add btrfs support.
13315 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13316 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13318 BtrFS support. Written by me (Vladimir) with important bugfixes and
13319 even more important testing by Colin.
13321 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13322 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13323 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13324 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13325 mem_input_off and mem_input. All users updated to accept in-RAM input.
13326 (gzio_seek): New function.
13327 (test_zlib_header): Likewise.
13328 (grub_gzio_read): Likewise.
13329 (grub_zlib_decompress): Likewise.
13330 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13331 Accept partial and non-virtual mounts.
13332 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13333 avoid receiving /dev/dm-X as device.
13334 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13335 Handle bind and partial mounts.
13336 * grub-core/lib/crc.c: New file.
13337 * include/grub/deflate.h: Likewise.
13338 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13340 * include/grub/lib/crc.h: New file.
13342 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13344 Implement automatic module license checking according to new GNU
13347 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13348 (grub_dl_load_core): Use grub_dl_check_license.
13349 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13350 (GRUB_MOD_LICENSE): Likewise.
13351 (GRUB_MOD_DUAL_LICENSE): Likewise.
13352 All modules updated.
13354 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13356 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13357 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13359 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13361 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13363 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13365 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13367 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13370 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13372 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13373 parenthesis in the middle of the filename.
13375 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13377 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13378 rather than trying to put initrd way too high.
13379 Reported by: Ryan Lortie <desrt@desrt.ca>
13381 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13383 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13384 improperly removed string.
13386 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13388 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13390 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13391 (open_device) Likewise.
13392 (grub_util_biosdisk_close): Likewise.
13393 Reported by: Mark Korenberg.
13395 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13397 * util/grub-mkconfig_lib.in: Add missing quotes.
13399 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13401 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13404 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13406 Dynamically count the number of lines for the lower banner.
13408 * grub-core/normal/menu_entry.c (per_term_screen): New member
13410 (print_down): Use num_entries.
13411 (update_screen): Likewise.
13412 (grub_menu_entry_run): Set num_entries.
13413 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13415 (grub_print_message_indented): Move real part to ...
13416 (grub_print_message_indented_real): ... here. Additional argument
13418 (draw_border): Additional argument num_entries.
13419 (print_message): Additional argument dry_run.
13420 (print_entries): Receive menu viewer data.
13421 (grub_menu_init_page): New argment num_entries.
13422 (menu_text_set_chosen_entry): Use num_entries.
13423 (grub_menu_try_text): Likewise.
13424 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13426 (grub_ucs4_count_lines): New function.
13427 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13428 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13429 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13430 (grub_term_border_height): Likewise.
13431 (grub_term_num_entries): Likewise.
13433 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13435 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13436 Remove now unused string.
13438 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13440 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13442 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13444 (Comment): Fix typo.
13445 (Getting started): General copy-editing.
13446 (Typical Development Experience): Likewise.
13447 (Error Handling): Likewise.
13448 (Video API): Likewise.
13450 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13452 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13455 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13457 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13460 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13462 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13463 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13466 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13468 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13469 grub_strcpy since the lines aren't necessarily 0-terminated.
13471 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13473 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13476 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13478 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13479 (GRUB_MOD_INIT): DEVICE isn't optional.
13481 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13483 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13484 word on new line if it's too long anyway. Fixes a hang.
13486 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13488 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13490 * util/grub-setup.c (main): Reuse md device name if available.
13491 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13492 not GRUB name as argument.
13493 Based on patch by: Florian Wagner <fwagner>.
13495 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13497 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13498 Place mbi on low memory for better compatibility.
13500 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13502 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13504 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13505 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13507 * autogen.sh: Ensure that collate and ctype locale is C.
13508 * conf/Makefile.common: Likewise.
13510 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13512 * grub-core/normal/menu.c: Add missing include.
13514 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13516 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13518 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13520 * util/grub-mkconfig.in: Ignore emacsen backup.
13522 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13524 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13526 (grub_util_biosdisk_close): Likewise.
13528 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13530 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13531 const attribute and use grub_isdigit.
13533 2011-04-06 Andrey <dev_null@ukr.net>
13535 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13538 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13540 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13541 useful grub_dprintf's.
13543 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13545 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13547 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13549 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13551 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13553 Output errors if theme loading failed.
13555 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13556 grub_gfxterm_fullscreen on error paths to ...
13557 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13558 theme loading error.
13560 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13562 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13563 space for older compilers.
13564 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13566 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13568 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13569 and report them as not RAID members since they are useless for GRUB.
13570 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13572 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13574 Increase LVM implementation robustness in order not to crash on
13575 configurations like pvmove. Previously code assumed that in some places
13576 only lvs or only pvs are used whereas it seems that they are used
13579 * grub-core/disk/lvm.c (read_node): New function.
13580 (read_lv): Use read_node.
13581 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13582 Match volumes only at the end when all lvs are found. Take both
13583 pvs (first) and lvs (second) into account.
13584 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13585 mirror_* into node_*. All users updated.
13586 (grub_lvm_stripe): Merge this ...
13587 (grub_lvm_mirror): ... and this ...
13588 (grub_lvm_node): ... into this. All users updated.
13590 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13592 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13593 of function to allow further scanning for LVMs.
13595 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13597 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13598 on failed seek as it breaks open fd reusage.
13600 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13602 * util/grub-install.in: Add a recommendation to use --recheck before
13605 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13607 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13610 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13612 GRUB developper manual based on existing Internals section and
13613 contributions by the various authors with active copyright assignment.
13615 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13616 * docs/font_char_metrics.png: New file.
13617 * docs/font_char_metrics.txt: Likewise.
13618 * docs/grub-dev.texi: Likewise.
13619 * docs/grub.texi (Internals): Move from here ...
13620 * docs/grub-dev.texi: ... here.
13622 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13624 Store the loopback device as data on loopback grub_disk structures,
13625 rather than the file it points to. This fixes use of freed memory
13626 if an existing loopback device is replaced.
13628 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13629 disk->data, not dev->file.
13630 (grub_loopback_read): Adjust file assignment to match.
13631 Fixes Ubuntu bug #742967.
13633 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13635 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13636 when replacing an existing device.
13638 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13640 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13641 memory corruptions.
13643 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13645 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13646 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13647 (grub_jfs_read_inode): Likewise.
13648 (grub_jfs_opendir): Likewise. Remove now useless casts.
13649 (grub_jfs_getent): Likewise.
13650 Make ino a grub_uint32_t rather than int.
13651 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13652 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13653 division and module with bit operations.
13654 (grub_jfs_find_file): Make ino a grub_uint32_t.
13655 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13657 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13659 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13660 warning. (This was in fact always initialised before use, but GCC
13661 wasn't smart enough to prove that.)
13662 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13664 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13666 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13668 (efi_wrap_1): Likewise.
13669 (efi_wrap_2): Likewise.
13670 (efi_wrap_3): Likewise.
13671 (efi_wrap_4): Likewise.
13672 (efi_wrap_5): Likewise.
13673 (efi_wrap_6): Likewise.
13674 (efi_wrap_10): Likewise.
13675 Based on information by: Red Hat/Peter Jones.
13677 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13679 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13680 set-but-not-used variable.
13682 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13684 * docs/grub.texi (Simple configuration): Be more explicit about
13685 GRUB_DEFAULT, and add an example.
13686 Reported by: Leslie Rhorer.
13688 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13690 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13693 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13695 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13696 * util/grub.d/20_linux_xen.in: Likewise.
13698 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13700 * util/grub.d/10_linux.in: Try alternative config filenames where
13701 we parse config file.
13702 * util/grub.d/20_linux_xen.in: Likewise.
13704 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13706 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13707 * util/grub.d/20_linux_xen.in: Likewise.
13709 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13711 * grub-core/disk/raid.c (insert_array): Add few potentially
13712 useful grub_util_info.
13713 (grub_raid_register): Likewise.
13715 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13717 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13718 Preserve partition number in mdadm code path.
13720 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13722 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13723 few potentially useful grub_util_info.
13725 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13727 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13729 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13731 * docs/grub.texi (default): Use @example rather than nested
13732 itemized lists to avoid breaking gendocs.
13734 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13736 * docs/grub.texi (Future): Update.
13738 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13740 * docs/grub.texi (Environment): New chapter.
13741 (Changes from GRUB Legacy): Link to "Environment block" section for
13742 details of limitations.
13743 (Simple configuration): Likewise. Link to documentation of gfxmode
13744 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13746 (Shell-like scripting): Note that normal variables are stored in the
13748 (gettext): Link to documentation of lang and locale_dir.
13749 (list_env): New section.
13750 (load_env): New section.
13751 (save_env): New section.
13753 (Reporting bugs): Fix typo.
13755 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13757 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13760 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13762 * grub-core/term/at_keyboard.c (set_scancodes)
13763 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13765 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13767 * docs/grub.texi (Menu-specific commands): Remove some semantics
13768 that were true in GRUB Legacy but not in GRUB 2.
13769 (submenu): New section.
13770 (false): New section.
13771 (read): New section.
13772 (true): New section.
13774 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13776 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13778 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13780 * docs/grub.texi (Simple configuration): Explain some of the
13781 current limitations of grub-mkconfig.
13782 Reported by: Leslie Rhorer.
13784 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13786 Old macs search for boot.efi rather than for bootia32.efi.
13788 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13789 * util/grub-mkrescue.in: Likewise.
13790 Suggested by: Peter Jones.
13792 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13794 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13796 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13798 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13799 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13800 (grub_lvm_mirror): New struct.
13801 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13802 (grub_lvm_iterate): Iterate only visible volumes.
13803 (grub_lvm_read): Factor out to ..
13804 (read_lv): ... this. Support mirrors.
13805 (grub_lvm_read): New wrapper function.
13806 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13807 stripped or mirrored.
13809 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13811 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13813 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13815 * docs/grub.texi (loopback): New section.
13817 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13819 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13822 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13824 * docs/grub.texi (BIOS installation): New section, partly based on
13825 previous text in other sections.
13826 (Installing GRUB using grub-install): Replace BIOS discussion with a
13828 (Images): Likewise.
13830 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13832 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13833 [HAVE_DIOCGDINFO]: Add safety checks.
13835 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13837 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13838 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13840 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13842 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13843 real_sb->size is zero (e.g. RAID-0), get the disk size from
13844 real_sb->data_size instead.
13845 Fixes Ubuntu bug #743136.
13847 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13849 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13850 printf clauses for printing size and start.
13852 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13854 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13855 Reported and tested by: Timothy Nikkel.
13857 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13859 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13860 (dirty_region_add_real): ... this.
13861 (dirty_region_add): Don't discard margin refresh when performing
13864 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13866 * grub-core/lib/relocator.c (allocate_regstart)
13867 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13868 terminals are capabple of malloc-free operation.
13869 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13870 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13872 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13874 * util/grub-setup.c: Copy the partition table zone if floppy support
13875 is disabled, even if no partition table is found.
13877 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13878 during POST if an invalid partition table is contained in the PBR
13879 of the active partition when GRUB is installed to a partition.
13881 2011-03-28 Colin Watson <cjwatson@debian.org>
13883 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13886 2011-03-28 Colin Watson <cjwatson@debian.org>
13888 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13889 to be specific about what kind of RAID device we're scanning for.
13891 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13893 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13894 return freed string.
13896 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13898 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13900 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13902 Use libgeom on FreeBSD to detect partitions.
13904 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13905 (grub-mkrelpath): Likewise.
13906 (grub-script-check): Likewise.
13907 (grub-editenv): Likewise.
13908 (grub-mkpasswd-pbkdf2): Likewise.
13909 (grub-fstest): Likewise.
13910 (grub-mkfont): Likewise.
13911 (grub-mkdevicemap): Likewise.
13912 (grub-probe): Likewise.
13913 (grub-setup): Likewise.
13914 (grub-ofpathname): Likewise.
13915 (grub-mklayout): Likewise.
13916 (example_unit_test): Likewise.
13917 (grub-menulst2cfg): Likewise.
13918 * grub-core/Makefile.core.def (grub-emu): Likewise.
13919 (grub-emu-lite): Likewise.
13920 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13921 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13922 define HAVE_DIOCGDINFO.
13923 (follow_geom_up) [FreeBSD]: New function.
13924 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13925 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13926 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13927 unconditionally of HAVE_DIOCGDINFO.
13929 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13931 Fix FreeBSD compilation problem.
13933 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13934 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13936 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13938 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13939 Switch back to page zero before loading a kernel, since some kernel
13940 drivers expect that.
13941 Thanks to: Felix Kuehling.
13943 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13945 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13946 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13947 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13949 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13951 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13952 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13954 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13956 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13957 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13958 malloc is disabled.
13960 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13962 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13963 for modules headers when counting the needed allocation size.
13965 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13967 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13968 if no ASCII character is found to prevent crash.
13970 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13972 * grub-core/video/bitmap.c (match_extension): Ignore case.
13974 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13976 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13978 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13980 * grub-core/script/parser.y: Declare "time" as valid argument.
13982 2011-03-23 Peter Jones <pjones@redhat.com>
13984 Fix incorrect assert failure reporting.
13986 * grub-core/tests/example_functional_test.c (example_test): Add
13988 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13989 (failure_start): ...this. Check that malloc succeeded.
13990 Don't call xvasprintf. Return failure struct.
13991 (failure_append_vtext): New function.
13992 (failure_append_text): Likewise.
13993 (add_failure): Likewise.
13994 (grub_test_assert_helper): Likewise.
13995 * include/grub/test.h (grub_test_assert_helper): New declaration.
13996 (grub_test_assert): Macro rewritten.
13998 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14000 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
14002 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14004 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
14006 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14008 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
14009 into GRUB-style one.
14011 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14013 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
14014 error and not grub_errno.
14015 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
14017 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14019 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
14020 GRUB_USB_SPEED_NONE in case of failure and not the error code.
14022 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14024 * grub-core/efiemu/i386/pc/cfgtables.c
14025 (grub_machine_efiemu_init_tables): Make declaration a prototype.
14026 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
14027 (grub_xnu_unlock): Likewise.
14028 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
14030 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14032 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
14033 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
14034 * grub-core/commands/hashsum.c (aliases): Likewise.
14035 * grub-core/commands/setpci.c (pci_registers): Likewise.
14036 * grub-core/disk/usbms.c (attach_hook): Likewise.
14037 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
14038 (zio_checksum_table): Likewise.
14039 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
14040 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
14041 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
14042 * grub-core/lib/relocator.c (leftovers): Likewise.
14043 (extra_blocks): Likewise.
14044 * grub-core/loader/i386/bsd.c (relocator): Likewise.
14045 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
14046 (modules_last): Likewise.
14047 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
14048 (devices): Likewise.
14049 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
14050 (modules_last): Likewise.
14051 * grub-core/normal/auth.c (users): Likewise.
14052 * grub-core/normal/context.c (initial_menu): Likewise.
14053 (current_menu): Likewise.
14054 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14055 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14056 (grub_serial_terminfo_input_template): Likewise.
14057 (grub_serial_terminfo_output_template): Likewise.
14058 (grub_serial_terminfo_input): Likewise.
14059 (grub_serial_terminfo_output): Likewise.
14060 (registered): Likewise.
14061 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14063 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14065 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14066 grub_video_mode_type_t.
14067 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14068 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14069 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14071 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14073 * util/grub-install.in: Correct the x86-64 name as x86_64.
14075 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
14077 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14078 initial chunk read from the kernel always includes GRUB's multiboot
14079 header, which is now outside the first sector.
14081 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14083 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14084 cached mmap_size, so that this works correctly when called multiple
14086 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14088 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14090 * docs/grub.texi (Simple configuration): Tidy up formatting.
14092 2011-03-07 Szymon Janc <szymon@janc.net.pl>
14094 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14095 Set-but-not-used variable removed.
14097 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14099 Workaround yet another IEEE1275 bug.
14101 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14102 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14103 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14104 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14106 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14107 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14109 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14111 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14114 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
14116 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14117 empty, since in that case we can only generate either nothing or a
14118 syntactically invalid configuration file.
14119 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14121 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14123 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14124 (Making a GRUB bootable CD-ROM): Likewise.
14125 (Invoking grub-mkrescue): New section.
14126 Reported by: Yann Dirson. Fixes Debian bug #612585.
14128 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14130 * util/grub-install.in: Remove unnecessary brackets from tr
14132 * util/grub.d/10_hurd.in: Likewise.
14133 * util/grub.d/10_kfreebsd.in: Likewise.
14134 * util/grub.d/10_linux.in: Likewise.
14135 * util/grub.d/20_linux_xen.in: Likewise.
14136 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14138 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
14140 * include/grub/file.h (not_easly_seekable): Rename to ...
14141 (not_easily_seekable): ... this. Update all users.
14143 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
14145 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14148 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14150 * util/grub-mkimage.c (generate_image): Refuse to create the images
14151 bigger than the actual flash (512K) in Loongson machines. 512K is also
14152 the biggest chip supported by them.
14154 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14156 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14158 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
14160 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14161 super_offset field.
14163 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14165 * util/grub-install.in: Ignore install device on platforms
14166 where it doesn't make sense. Always use UUIDs except on pc, efi and
14168 Reported by: Daniel Kahn Gillmor.
14170 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14172 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14174 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14176 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14177 (iterate_real): Don't rely on partition being non-NULL.
14179 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14181 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14182 supported platforms. Put a compile time assert for this rather than
14183 generate a warning with 32-bit shift.
14185 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14187 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14188 logical expression more readable.
14190 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14192 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14193 even if some elements have a name.
14194 Reported by: Alexander GQ Gerasiov.
14196 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14198 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14199 path unreadable if `grub-probe -t abstraction' fails, for example if
14200 memberlist fails on an LVM volume group.
14201 Reported by: Darius Jahandarie.
14203 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14205 * docs/grub.texi (Simple configuration): Document
14206 GRUB_PRELOAD_MODULES.
14208 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
14210 * .bzrignore: Remove nonexistent grub-pbkdf2.
14212 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14214 * configure.ac: Bump version to 1.99~rc1.
14216 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14218 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14221 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14223 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14226 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14228 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14230 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14232 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14235 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14237 Fix compilation on cygwin.
14239 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14240 -R .drectve on cygwin.
14241 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14242 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14243 (COND_CYGWIN): New condition.
14244 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14245 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14246 not @TARGET_OBJ2ELF@.
14247 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14248 type to determine whether aux is to be used.
14250 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14252 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14253 realpath'ed device string.
14254 Handle floppy (somewhat).
14255 Issue error in unknown case rather than garbage.
14256 Reported by: Axel Beckert.
14258 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14260 * util/grub.d/00_header.in (load_video): Handle the case when no video
14262 Thanks to: Axel Beckert.
14264 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14266 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14267 variable. Fixes problem on big endian platforms.
14269 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14271 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14272 It doesn't work well there.
14274 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14276 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14278 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14279 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14282 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14284 Use alias->path rather than buggy "canon".
14286 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14287 (ofdisk_hash_add): New argument curcan. All users updated.
14289 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14291 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14293 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14295 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14296 loadmask before doing any calculations. Use correct type for offset.
14297 (grub_linux_load64): Likewise.
14299 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14301 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14303 (console_grub_equivalences_unshift): Likewise.
14304 Reported by: Daniel Dehennin.
14306 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14308 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14309 (set_env_limn_ro): Likewise.
14310 (GRUB_MOD_INIT): Likewise.
14311 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14312 ARRAY_SIZE while on it.
14313 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14314 * grub-core/normal/context.c (grub_env_export): Move from here ...
14315 * grub-core/kern/env.c (grub_env_export): ... here.
14316 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14318 * grub-core/kern/main.c (grub_main): Export root and prefix.
14319 * include/grub/env.h (grub_env_export): Export.
14320 Reported by: Seth Goldberg.
14322 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14324 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14325 Take into account space used by ELF sections and multiboot palette.
14326 Reported by: Grégoire Sutre.
14328 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14332 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14334 Pass more appropriate video id to Linux.
14336 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14337 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14339 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14340 shift params->lfb_size.
14341 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14343 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14345 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14347 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14349 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14350 separator and pass bootpath/devid even if only one of them is available.
14351 Reported by: Seth Goldberg.
14353 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14355 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14356 implementations bug on them.
14358 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14360 (filter_memory_map): Likewise.
14362 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14364 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14365 Reported by: nebuchadnezzar.
14367 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14369 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14370 Reported by: nebuchadnezzar.
14372 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14374 Submenu default support.
14376 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14377 auto_boot. All users updated.
14379 Handle chosen and default with submenus.
14380 (grub_menu_execute_with_fallback): Declared static.
14381 Don't notify failure if autobooted. Upper level does it.
14382 (menuentry_eq): New function.
14383 (get_entry_number): Use menuentry_eq.
14384 (show_menu): New parameter "autobooted". All users updated.
14385 (grub_show_menu): Likewise.
14386 * include/grub/normal.h (grub_show_menu): Likewise.
14387 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14388 (grub_menu_execute_with_fallback): Likewise.
14390 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14392 * util/grub-mklayout.c (usage): Update help text.
14394 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14396 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14398 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14400 * util/grub-menulst2cfg.c (main): Trim the line.
14402 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14404 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14405 (grub_machine_init): Don't check amount of low memory as reportedly
14406 INT 12h can be broken and if low memory is too low we wouldn't have
14407 gotten into grub_machine_init anyway.
14409 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14411 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14412 (grub_machine_mmap_iterate): Take low memory into account
14414 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14416 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14418 Reported by: TiCPU.
14420 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14422 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14425 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14427 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14428 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14430 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14432 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14433 openbsd and netbsd types being in part_bsd module.
14435 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14437 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14438 (_FILE_OFFSET_BITS): Likewise.
14439 Reported by: Seth Goldberg.
14441 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14443 * configure.ac: Check for libdevmapper header.
14445 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14447 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14449 (fzap_lookup): Likewise.
14450 (dnode_get): Likewise.
14451 (make_mdn): Likewise.
14452 (zfs_mount): Likewise.
14453 (fzap_iterate): Use temporary pointer to avoid aliasing.
14454 (grub_zfs_read): Likewise.
14455 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14456 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14457 pointers to avoid aliasing.
14458 (grub_cmd_xnu_kernel64): Likewise.
14459 (grub_xnu_load_driver): Likewise.
14461 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14463 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14465 (grub_cmd_terminal_output): Likewise.
14466 Reported and tested by: Grégoire Sutre.
14468 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14470 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14472 Reported and tested by: Grégoire Sutre.
14474 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14476 * configure.ac: Do CPU substitution even if it's specified explicitly.
14477 Reported and tested by: Alain Greppin.
14479 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14481 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14482 Reported and tested by: Alain Greppin.
14484 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14486 Satisfy some bison versions need for inttypes.h.
14488 * grub-core/lib/posix_wrap/inttypes.h: New file.
14489 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14490 (int16_t): Likewise.
14491 (int32_t): Likewise.
14492 (int64_t): Likewise.
14493 Reported and tested by: Alain Greppin.
14495 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14497 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14498 Silence spurious warning.
14499 Reported and tested by: Alain Greppin.
14501 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14503 * docs/grub.texi (Support automatic decompression): Update with xz
14504 decompression support.
14506 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14508 Improve loaders' kernel command line handling.
14510 * grub-core/lib/cmdline.c: New file.
14511 * include/grub/lib/cmdline.h: Likewise.
14512 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14513 grub_create_loader_cmdline to create kernel command line.
14514 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14515 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14516 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14517 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14518 (linux): Add lib/cmdline.c on common.
14520 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14522 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14523 inopos might be unaligned.
14525 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14527 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14528 endian transformations.
14529 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14530 Based on report by: Doug Nazar.
14532 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14534 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14535 array->members[i].start_sector.
14536 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14538 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14540 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14541 Reported and tested by: Grégoire Sutre.
14543 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14545 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14546 avoid causing test failures by clearing the screen.
14548 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14550 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14551 Fix prefix check to handle the case where dir ends with a slash
14552 (most significantly, "/" itself).
14553 Reported by: Michael Vogt.
14555 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14557 Run terminfo_cls on initing terminfo output to clear the screen and
14558 move the cursor to (0,0).
14560 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14561 Call grub_terminfo_output_init.
14562 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14563 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14564 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14566 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14568 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14571 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14573 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14576 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14578 The E820 type 5 is BADRAM, not EXEC_CODE.
14580 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14581 (GRUB_E820_BADRAM): New define.
14582 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14583 into reserved. Propagate BADRAM.
14584 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14585 (GRUB_E820_BADRAM): New define.
14587 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14589 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14590 Ignore the memory post-4G.
14591 (grub_relocator_firmware_alloc_region): Additional debug statement.
14593 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14595 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14597 Reported by: David Pravec.
14599 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14601 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14604 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14606 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14608 (grub_reed_solomon_recover): Likewise.
14610 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14612 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14614 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14616 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14619 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14621 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14622 descriptions of extract_legacy_entries_source and
14623 extract_legacy_entries_configfile.
14624 Reported by: Seung Soo, Ha.
14626 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14628 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14629 on devices that do not implement function 0.
14631 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14633 * grub-core/fs/hfsplus.c: Make parent unsigned.
14634 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14636 (grub_hfsplus_cmp_extkey): Likewise
14638 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14640 * util/grub-install.in: Correctly use bootloader_id and not
14641 GRUB_DISTRIBUTOR on efibootmgr line.
14643 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14645 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14647 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14649 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14650 Xen and reorder menu item wording to make it clearer that this entry
14651 will launch Xen. Print separate messages when loading Xen and
14654 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14656 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14657 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14658 loop in case of incorrect amiga partmap.
14660 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14662 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14663 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14666 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14668 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14670 Reported by: crocket
14672 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14674 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14676 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14678 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14680 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14682 (grub_cmd_xnu_kextdir): Likewise.
14683 (grub_cmd_xnu_splash): Likewise.
14685 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14687 Avoid using Reed-Solomon with 0 redundancy.
14689 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14690 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14692 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14693 (grub_reed_solomon_recover): Likewise.
14695 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14697 Don't use disk subsystem in freebsd_boot.
14699 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14700 (freebsd_biosdev): Likewise.
14701 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14702 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14704 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14706 Handling of files of unknown size is currently limited. They can't be
14707 used e.g. for initrd or modules. Moreover gzip handling of not
14708 easily seekable files is buggy. Disable unknown file size for now. May
14709 be inefficient but works.
14711 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14712 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14714 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14716 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14719 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14721 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14723 2010-12-25 Shea Levy <shlevy>
14725 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14727 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14729 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14730 Windows Server 2008.
14731 Reported by: Devin Giddings.
14733 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14735 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14736 writing an error message because of async power management.
14737 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14738 (grub_reboot): Likewise.
14740 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14742 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14743 keep unit tests from failing when they shouldn't.
14745 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14747 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14748 previous patch increased the size of the RS code by 20 bytes (at
14749 least with gcc-4.4), so increase this by 20 bytes to match.
14750 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14752 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14754 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14755 scratch area. Make sure to initialise chosen in standalone mode as
14756 well as non-standalone.
14757 Reported by: Robert Hooker and Andy Whitcroft.
14758 Tested by: Andy Whitcroft.
14760 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14762 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14763 constructing a new unescaped string and passing it to grub_xputs in
14764 one go, rather than passing characters to grub_printf one at a time.
14766 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14768 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14769 initialising utf16.
14771 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14773 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14774 comment. Add an extra layer of quotation, requiring the output of
14775 this function to be used in a printf format string.
14776 (gettext_printf): New function.
14777 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14778 Extract translatable strings from here-documents and use a temporary
14779 variable instead, so that xgettext can find them.
14780 * util/grub.d/10_kfreebsd.in: Likewise.
14781 * util/grub.d/10_linux.in: Likewise.
14782 * util/grub.d/20_linux_xen.in: Likewise.
14784 * po/grub.d.sed: New file.
14785 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14786 arguments. Set c-format flags on all strings extracted from
14787 util/grub.d/ (xgettext refuses to include these itself for strings
14788 it extracted from a shell file, but these really are c-format).
14790 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14792 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14793 Avoid next pointing to nowhere.
14795 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14797 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14798 rather than assuming than rootblock is exactly in the middle.
14799 (grub_affs_label): Likewise.
14801 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14803 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14804 reserved_first_sector to 0.
14805 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14806 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14807 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14809 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14811 Fix handling of UTF-16 UDF labels.
14813 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14814 (read_string): .. here.
14815 (grub_udf_label): Use read_string.
14817 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14819 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14820 editor under argument scope.
14821 Reported by: Jordan Uggla
14823 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14825 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14827 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14829 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14830 line, and other keys scroll an entire page (previous handling was
14831 for \r and \n to scroll a page and other keys to scroll two lines).
14833 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14835 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14836 Set ptrdest to correct get_physical_target_address rather than
14837 incorrect get_virtual_current_address.
14839 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14841 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14842 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14844 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14846 * .bzrignore: Ignore grub-core/rs_decoder.S.
14848 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14850 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14851 .mo/.mo.gz opening sequence to ...
14852 (grub_mofile_open_lang): ... here.
14853 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14854 * util/grub.d/00_header.in (grub_lang): Include country part of
14856 Reported by: Mario Limonciello.
14858 2010-12-09 Robert Millan <rmh@gnu.org>
14860 * NEWS: Document addition of ZFS support.
14862 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14864 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14865 rather than `/ 2', as the latter requires -Wa,--divide which would
14866 require bumping our minimum binutils version.
14868 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14870 * util/grub-script-check.c (main): Print script line number on
14873 2010-12-01 Robert Millan <rmh@gnu.org>
14875 * grub-core/fs/zfs/zfs.c: New file.
14876 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14877 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14878 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14879 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14881 * include/grub/zfs/dmu.h: Likewise.
14882 * include/grub/zfs/dmu_objset.h: Likewise.
14883 * include/grub/zfs/dnode.h: Likewise.
14884 * include/grub/zfs/dsl_dataset.h: Likewise.
14885 * include/grub/zfs/dsl_dir.h: Likewise.
14886 * include/grub/zfs/sa_impl.h: Likewise.
14887 * include/grub/zfs/spa.h: Likewise.
14888 * include/grub/zfs/uberblock_impl.h: Likewise.
14889 * include/grub/zfs/vdev_impl.h: Likewise.
14890 * include/grub/zfs/zap_impl.h: Likewise.
14891 * include/grub/zfs/zap_leaf.h: Likewise.
14892 * include/grub/zfs/zfs.h: Likewise.
14893 * include/grub/zfs/zfs_acl.h: Likewise.
14894 * include/grub/zfs/zfs_znode.h: Likewise.
14895 * include/grub/zfs/zil.h: Likewise.
14896 * include/grub/zfs/zio.h: Likewise.
14897 * include/grub/zfs/zio_checksum.h: Likewise.
14899 * Makefile.util.def: Build ZFS into libgrubmods.
14900 * grub-core/Makefile.core.def: Build zfs.mod.
14902 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14904 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14906 * grub-core/commands/wildcard.c (match_files): Likewise.
14908 2010-11-30 Robert Millan <rmh@gnu.org>
14910 * grub-core/loader/i386/bsd.c
14911 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14912 whether kernel is loaded using grub_loader_is_loaded(), rather
14913 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14914 certain error conditions.
14916 2010-11-30 Robert Millan <rmh@gnu.org>
14918 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14919 (grub_cmd_echo): Call grub_refresh() after printing a message.
14921 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14923 Avoid using tricks for initialising endian variables.
14925 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14927 (GRUB_MOD_INIT): Don't byte-swap.
14928 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14929 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14930 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14931 (grub_swap_bytes32_compile_time): Likewise.
14932 (grub_cpu_to_le32_compile_time): Likewise.
14933 (grub_cpu_to_le16_compile_time): Likewise.
14935 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14937 * util/grub-setup.c (setup): Stop recommending --force. People who
14938 understand the dangers of blocklists are able to find this option
14939 anyway and the ones who don't shouldn't use it anyway.
14941 2010-11-26 Robert Millan <rmh@gnu.org>
14943 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14946 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14948 Fix LVM-on-RAID probing.
14950 * util/grub-probe.c (probe): Remember which disk was detected as
14951 RAID (perhaps an LVM physical volume). Use that disk's raidname
14952 rather than that of the top-level disk.
14954 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14956 Fix cmdline argument quotes for setparams command of menuentry
14959 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14960 quotes for arguments.
14961 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14962 grub_strchrsub function instead.
14964 * include/grub/misc.h (grub_strchrsub): New function.
14966 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14968 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14969 effort by skipping "." and ".." entries up-front.
14970 Suggested by: Michael Lazarev.
14972 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14974 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14975 ldflags to ldadd, to fix link line ordering.
14976 (none_decompress): Likewise.
14978 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14980 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14982 (grub-emu-lite): Remove kern/emu/cache.S.
14984 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14986 * util/deviceiter.c (compare_devices): If the by-id link for a
14987 device couldn't be resolved, fall back to sorting by the by-id link
14988 rather than segfaulting.
14989 Reported and tested by: Daniel Mierswa.
14991 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14993 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14994 ldflags, to fix link line ordering.
14996 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14998 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
14999 linkers are picky about this.
15001 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
15003 * grub-core/Makefile.am (command.lst): Adjust sed expression
15004 ordering so that extended and priority commands aren't treated as
15007 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
15009 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15010 Remove byte-swapping function calls, which are not valid in
15011 structure initialisers.
15012 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
15014 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
15015 grub_gpt_partition_type_bios_boot.
15017 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
15019 Fix test program build on GNU/kFreeBSD.
15021 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
15022 $(LIBNVPAIR)' library dependencies.
15024 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
15026 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
15028 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
15030 * util/grub-install.in: Remove excessive quoting that broke
15031 installations to RAID devices.
15033 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15035 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
15036 bootloader version instead of 0.
15038 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15040 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
15043 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15045 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
15046 retrieve the metadat sector if size isn't known.
15047 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15049 2010-11-18 Robert Millan <rmh@gnu.org>
15051 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15052 with grub_memcmp().
15054 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15056 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15058 Reported by: Jordan Uggla.
15060 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15062 Make better UTF compliant.
15064 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15065 sequences as incorrect.
15066 (grub_is_valid_utf8): Likewise.
15067 (grub_utf8_to_ucs4): Likewise.
15068 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15069 (grub_ucs4_to_utf8_alloc): Likewise.
15070 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15072 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15074 Make legacy_source behave like source.
15076 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15078 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15080 2010-11-16 Colin Watson <cjwatson@debian.org>
15082 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15083 (-Wunused implies -Wunused-parameter, but not vice versa).
15085 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
15087 * configure.ac: Make error messages less confusing by testing for
15088 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15089 accepted, but produces a diagnostic if something else is wrong).
15091 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15093 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15094 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15096 (grub_keyboard_controller_init)
15097 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15098 read the initial state since controller isn't inited yet.
15100 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15102 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15103 allocate_regbeg may need to create new chunk header.
15105 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15107 Fix quoting in legacy parser.
15109 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15111 (grub_legacy_parse): Likewise.
15112 Reported by: Jordan Uggla.
15113 Tested by: Jordan Uggla.
15115 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15117 Don't add -lgcc on i386 and x86_64.
15119 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15120 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15121 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15123 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15125 * configure.ac: Add -Wno-trampolines when supported.
15127 2010-11-14 Modestas Vainius <modax@debian.org>
15129 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15132 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15134 Add generic logical block size support for UDF.
15136 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15137 (GRUB_UDF_BLKSZ): Removed.
15138 (struct grub_udf_data): New field "lbshift" to hold the logical block
15139 size of the file system in log2 format. All users updated.
15140 (sblocklist): Change type to unsigned.
15141 (grub_udf_mount): Change type of "sblklist" to unsigned.
15142 Move AVDP search before VRS recognition, because the latter requires
15143 knowledge of the logical block size, which is detected during the
15145 Detect and validate logical block size during AVDP search, adding
15146 support for block sizes 512, 1024 and 4096.
15147 Make VRS recognition independent of block size.
15149 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15151 Properly handle deleted files on UDF.
15153 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15154 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15157 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15159 Support reading files larger than 2 GiB.
15161 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15162 "offset" to grub_off_t.
15163 (grub_udf_read_file): Likewise for parameter "pos".
15165 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15167 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15169 (Simple configuration): Refer to Changes from GRUB Legacy about
15170 save_env availability.
15172 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15174 * util/grub-install.in: Ignore empty partition table detection
15175 instead of trying to include part_ module.
15177 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15179 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15180 LVM on RAID support.
15182 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15184 Properly define WORDS_BIGENDIAN in wrapped environments.
15186 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15188 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15190 Reported by: Manoel Rebelo Abranches.
15191 Tested by: Manoel Rebelo Abranches.
15193 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15195 * util/grub-mkconfig.in: Fix quoting.
15197 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15199 Support big ext2 files.
15201 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15202 (grub_ext2_read_block): Support triple indirect blocks.
15203 (grub_ext2_read_file): Use 64-bit types and read size_high.
15204 (grub_ext2_open): Read size_high.
15205 Reported by: Ximin Luo.
15206 Tested by: Manoel Rebelo Abranches.
15208 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15210 * util/grub-install.in: Handle filenames containing spaces.
15211 Reported by: Jordan Uggla.
15212 Tested by: Jordan Uggla.
15214 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15216 * util/grub-mkconfig.in (grub_script_check): New variable.
15217 Use grub_script_check instead of grub-script-check.
15218 Reported by: Barry Jackson.
15220 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15222 * docs/grub.texi (menu): Correct the order.
15223 Reported by: D. Hugh Redelmeier.
15225 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15227 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15230 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15232 * include/grub/elfload.h (grub_elf32_size): New parameter.
15234 Return maximum segments alignment.
15235 (grub_elf64_size): Likewise.
15236 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15237 Return maximum segments alignment.
15238 (grub_elf64_size): Likewise.
15239 * grub-core/loader/powerpc/ieee1275/linux.c:
15240 (grub_linux_claimmap_iterate): New function. Uses the
15241 "available" property in the "memory" node for memory allocation
15242 for kernel in the PowerPC loader.
15243 (grub_linux_load32): Correctly find linux entry point offset.
15244 (grub_linux_load64): Likewise.
15246 2010-11-07 Robert Millan <rmh@gnu.org>
15248 On mips-yeeloong, build with -march=loongson2f when this flag is
15249 available (GCC >= 4.4).
15250 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15252 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15253 or otherwise add -march=mips3.
15255 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15257 Suppress shell expansion on echo '*' and echo "*" like cases.
15258 Reported by: Jordan Uggla.
15260 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15261 string arguments before shell expansion.
15262 * tests/grub_cmd_echo.in: New testcases.
15264 2010-11-07 Robert Millan <rmh@gnu.org>
15266 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15269 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15271 * grub-core/kern/emu/hostdisk.c
15272 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15274 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15276 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15277 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15278 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15280 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15282 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15284 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15286 * util/grub-install.in: Replace useless recomendation to pass
15287 --modules with a recomendation to report a bug.
15289 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15291 Properly register serial terminfo.
15292 Reported by: Jordan Uggla
15294 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15296 (grub_serial_terminfo_output_template): Likewise.
15297 (grub_cmd_serial): Register "serial" with terminfo.
15298 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15299 grub_serial_terminfo_output.
15301 2010-11-05 Robert Millan <rmh@gnu.org>
15303 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15306 2010-11-05 Robert Millan <rmh@gnu.org>
15308 On Yeeloong, pass machine type information to Linux.
15310 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15311 (LOONGSON_MACHTYPE): New macro, set to
15312 "machtype=lemote-yeeloong-2f-8.9inches".
15313 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15314 additional argument to Linux.
15316 2010-11-04 Robert Millan <rmh@gnu.org>
15318 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15319 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15320 (its SATA disks are detected as slaveless IDE master drives on
15322 Reported by Carsten Aulbert.
15324 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15326 * util/bin2h.c (main): Fix spelling error in generated output.
15328 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15330 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15332 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15334 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15335 vga= option is supplied.
15337 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15339 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15340 * util/grub.d/10_kfreebsd.in: Likewise.
15341 * util/grub.d/10_linux.in: Likewise.
15342 * util/grub.d/20_linux_xen.in: Likewise.
15344 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15346 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15347 argument as an argument to no-argument option.
15349 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15351 * util/grub.d/10_linux.in: Add missing load_video with explicit
15352 GRUB_GFXPAYLOAD_LINUX.
15354 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15356 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15358 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15360 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15361 elements with invlid index.
15362 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15363 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15365 * include/grub/raid.h (grub_raid_member): New struct.
15366 (grub_raid_array): Transform devices and start_sector into usage of
15367 grub_raid_member. All users updated
15368 (allocated_devs): New member.
15370 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15372 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15375 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15377 NetBSD build fix for getline function conflict from gnulib.
15379 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15380 components that depend on gnulib headers.
15381 (libgrubmods.a): Renamed from earlier libgrub.a.
15382 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15384 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15386 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15387 install rather than creating a broken install.
15389 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15391 * util/grub-setup.c (argp): Remove misleading example of installing to
15394 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15396 * util/grub-setup.c (setup): Clarify the error message.
15398 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15400 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15402 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15404 * grub-core/kern/emu/misc.c
15405 (grub_make_system_path_relative_to_its_root)
15406 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15408 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15410 * grub-core/kern/emu/misc.c
15411 (grub_make_system_path_relative_to_its_root): Revert r2882.
15413 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15415 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15416 useless field head. All users updated.
15417 (free_subchunk): Correct handling of IN_REGION subchunk.
15419 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15421 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15422 (Supported kernels): Likewise.
15424 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15426 Make mktemp invocations portable.
15428 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15429 exit if mktemp fails.
15430 * tests/grub_script_blockarg.in: Likewise.
15431 * tests/partmap_test.in: Likewise.
15432 * tests/util/grub-shell-tester.in: Likewise.
15433 * tests/util/grub-shell.in: Likewise.
15434 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15435 * Makefile.am: Likewise, and chain shell commands with `&&'
15437 * util/grub-mkrescue.in: Use the same explicit template as above, and
15438 exit if mktemp fails.
15440 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15442 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15443 Linux kernel, reported by Dennis Schridde.
15445 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15447 * grub-core/normal/auth.c (grub_auth_check_authentication):
15448 Set-but-not-used variable removed.
15450 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15452 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15453 32-bit linux protocol.
15455 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15457 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15458 cursor shape for sanity.
15460 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15462 * docs/grub.texi (Installation): Document buggy BIOS install.
15464 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15466 * docs/grub.texi (Installation): Indent.
15468 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15470 * util/grub-setup.c (setup): New parameter allow_floppy.
15471 (arguments): New member allow_floppy.
15472 (argp_parser): Handle --allow-floppy.
15473 (main): Pass allow_floppy.
15474 * util/grub-install.in: New option --allow-floppy passed though to
15477 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15479 * util/grub-install.in: Handle partitionless disks.
15481 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15483 * util/grub-setup.c (setup): Don't clean blocklists before readability
15486 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15488 * docs/grub.texi (Installation): Document embedding zone. Remove
15489 obsolete grub-install example.
15491 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15493 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15494 Set-but-not-used variable ifdef'ed.
15495 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15496 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15498 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15499 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15500 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15501 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15502 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15503 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15504 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15505 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15506 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15507 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15508 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15511 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15513 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15514 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15517 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15519 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15520 synonym to _S5_. Needed for some DSDTs.
15522 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15524 Userspace ACPI parser debugging.
15526 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15527 headers and add relevant defines. Don't include standard headers.
15528 (main) [GRUB_DSDT_TEST]: New function.
15529 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15530 Don't declare functions.
15532 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15534 Remove dead grub_efi_mm_fini.
15536 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15537 (ALLOCATED_PAGES_SIZE): Likewise.
15538 (MAX_ALLOCATED_PAGES): Likewise.
15539 (allocated_pages): Likewise.
15540 (grub_efi_allocate_pages): Don't record allocated pages.
15541 (grub_efi_free_pages): Likewise.
15542 (grub_efi_mm_init): Likewise.
15543 (grub_efi_mm_fini): Removed.
15545 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15547 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15548 (grub_efi_mm_init): Take into account the memory map size increase.
15550 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15552 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15553 (serial_hw_put): Wait based on real time rather than port reads. Don't
15555 * include/grub/serial.h (grub_serial_port): New field broken.
15557 2010-10-16 Robert Millan <rmh@gnu.org>
15559 * grub-core/kern/emu/misc.c
15560 (grub_make_system_path_relative_to_its_root): Fix premature return
15561 when processing non-root ZFS filesystems.
15562 Reported by Sergio Talens-Oliag.
15564 2010-10-15 Robert Millan <rmh@gnu.org>
15566 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15567 guarantee compressed ones are processed first.
15569 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15571 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15572 grub_efiemu_autocore.
15574 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15576 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15578 (grub_console_getkey): Use correct jae opcode rather than ja.
15580 2010-10-12 Robert Millan <rmh@gnu.org>
15582 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15583 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15584 variable. All references updated.
15586 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15588 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15590 Correctly distinguish mdraid flavours.
15592 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15593 (insert_array): New argument raid.
15594 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15595 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15596 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15598 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15600 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15601 handling of special keys.
15603 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15605 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15606 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15608 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15610 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15611 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15613 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15614 Use right endpoint when querying descriptor.
15616 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15618 Clear out 0x80 color bit on EFI.
15620 Reported by: decoder and meta tech.
15622 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15623 (grub_console_setcolorstate): Clear out 0x80 bit.
15624 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15625 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15626 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15628 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15630 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15633 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15635 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15636 mo_file after freeing.
15638 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15640 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15642 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15644 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15647 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15649 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15652 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15654 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15656 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15657 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15658 and terminfo.h when needed.
15659 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15660 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15661 (terminfo): Enable only on terminfokernel.
15662 (extcmd): Likewise.
15663 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15664 * include/grub/lib/arg.h: Likewise.
15665 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15666 incorrect usage of ->.
15668 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15670 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15671 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15673 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15675 Fix coreboot compilation.
15677 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15678 Take VBE info into account even if only text is supported.
15679 (fill_vbe_info): Take into account the case when only VGA text
15681 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15682 on coreboot, multiboot and qemu.
15684 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15686 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15688 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15690 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15692 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15695 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15697 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15698 if they were BSD-style.
15700 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15702 * grub-core/boot/i386/pc/lnxboot.S: Replace
15703 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15704 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15706 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15708 Write embedding zone using Reed-Solomon.
15710 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15711 * grub-core/Makefile.am (rs_decoder.S): New target.
15712 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15713 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15714 (multiboot): Move to RS part.
15715 (post_reed_solomon): New label.
15716 (grub_boot_drive): Move to non-RS part since it's modified in memory
15718 Include rs_decoder.S.
15719 * grub-core/lib/reed_solomon.c: New file.
15720 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15722 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15723 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15724 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15725 * include/grub/partition.h (grub_partition_map): Change prototype of
15726 embed to allow returning additional sectors.
15727 * include/grub/reed_solomon.h: New file.
15728 * util/grub-setup.c (setup): Handle Reed-Solomon.
15730 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15732 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15733 i386 and x86-64 definedness tests.
15735 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15737 Fix generation of kernel_syms.lst
15739 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15742 2010-09-26 Robert Millan <rmh@gnu.org>
15744 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15746 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15747 the pool is an array of devices, iterate through it and return the
15748 first device that passes a stat() test (instead of blindly returning
15751 2010-09-26 Robert Millan <rmh@gnu.org>
15753 Build fixes for GNU/kFreeBSD.
15755 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15756 to programs that require ZFS conversion.
15757 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15758 kernels that don't have FLOPPY_MAJOR.
15760 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15762 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15764 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15766 Fix grub-emu build.
15768 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15769 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15770 mdraid09 and mdraid1x.
15772 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15774 Re-enable grub-extras.
15776 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15777 avoid confusing Automake. Run autogen only twice, once for the top
15778 level and once for grub-core. Add Makefile.util.def and
15779 Makefile.core.def from extra modules to the appropriate autogen
15780 invocations. If Makefile.common exists in an extra module, include
15781 it in both Makefile.util.am and grub-core/Makefile.core.am;
15782 similarly, include any Makefile.util.common file in Makefile.util.am
15783 and any Makefile.core.common file in grub-core/Makefile.core.am.
15784 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15785 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15786 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15787 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15789 * gentpl.py (gvar_add): Turn GVARS into a set.
15790 (global_variable_initializers): Sort global variables on output.
15791 (vars_init): New function.
15792 (first_time): Likewise.
15793 (library): Ensure that non-global variable initialisations are
15794 emitted before the first time we emit code for a library block.
15795 Append to variables rather than setting them. Only emit
15796 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15797 each conditional path.
15798 (program): installdir() emits an Autogen macro, so must be passed to
15799 var_add rather than gvar_add.
15801 (script): Likewise.
15802 (rules): New function, centralising handling for different target
15803 types. Set up Guile association lists for first_time and vars_init,
15804 and send most output to a diversion so that variable initialisations
15805 can be emitted first.
15806 (module_rules): Use new rules function.
15807 (kernel_rules): Likewise.
15808 (image_rules): Likewise.
15809 (library_rules): Likewise.
15810 (program_rules): Likewise.
15811 (script_rules): Likewise.
15812 (data_rules): Likewise.
15814 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15816 * .bzrignore: Add contrib and grub-core/contrib. Remove
15817 grub-core/Makefile.gcry.am.
15819 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15821 * grub-core/lib/LzFind.c: Add missing include.
15822 * grub-core/lib/LzmaEnc.c: Likewise.
15823 * grub-core/script/lexer.c: Likewise.
15824 * grub-core/script/yylex.l: Likewise.
15825 * util/grub-macho2img.c: Likewise.
15826 * util/grub-menulst2cfg.c: Likewise.
15827 * util/grub-mklayout.c: Likewise.
15828 * util/grub-mkpasswd-pbkdf2.c
15829 * util/grub-mkrelpath.c: Likewise.
15830 * util/resolve.c: Likewise.
15832 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15834 * Makefile.util.def (example_unit_test): Add
15835 grub-core/gnulib/libgnu.a.
15837 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15839 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15841 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15843 Support xz compression on yeeloong.
15845 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15846 * configure.ac: Check for LZMA.
15847 * grub-core/Makefile.core.def (xz_decompress): New target.
15848 (none_decompress): Likewise.
15849 * grub-core/boot/decompressor/minilib.c: New file.
15850 * grub-core/boot/decompressor/none.c: Likewise.
15851 * grub-core/boot/decompressor/xz.c: Likewise.
15852 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15853 * grub-core/kern/mips/cache_flush.S: Likewise.
15854 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15855 * grub-core/kern/mips/startup.S: Move first stage to ...
15856 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15858 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15859 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15860 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15861 Allocate statically.
15862 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15863 Allocate statically or use scratch. Don't check CRC32.
15864 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15865 Allocate statically. Don't check CRC32.
15866 * include/grub/decompressor.h: New file.
15867 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15869 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15870 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15871 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15872 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15873 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15874 * util/grub-mkimage.c (grub_compression_t): New type.
15875 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15876 (image_target_desc): New field default_compression.
15877 (image_targets): Adjust yeeloong targets.
15878 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15879 (compress_kernel): New parameter comp.
15880 (generate_image): Likewise. Handle new compression case.
15881 (options): New option --compression
15883 (main): Handle new option.
15885 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15887 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15889 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15891 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15892 typo in __i386__ conditional.
15894 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15896 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15899 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15901 Implement EFI and ACPI multiboot2 extensions.
15903 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15904 new tags as supported.
15905 (acpiv2_size): New function.
15906 (grub_multiboot_get_mbi_size): Take new tags into account.
15907 (grub_multiboot_make_mbi): Add new tags.
15908 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15910 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15912 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15913 Added missing configuration of USB device.
15915 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15917 * grub-core/normal/menu_entry.c (run): Make sure we always return
15920 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15922 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15923 NumberOfPages is UINT64 according to the UEFI specification, not
15924 UINTN. Fix printf format.
15926 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15928 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15929 `err' to grub_usb_err_t.
15930 Reported and tested by: KESHAV P.R.
15932 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15934 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15935 tpart non-const, so that we can assign to it. (Since this is a
15936 typedef, the constness refers to the pointer rather than what it
15939 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15941 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15942 $(top_srcdir)/grub-core/gnulib as well as
15943 $(top_builddir)/grub-core/gnulib.
15944 Reported by: KESHAV P.R.
15946 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15948 * util/grub-install.in: Fix the bootloader ID option to be
15949 consistently --bootloader-id, not --bootloader_id.
15950 Reported by: KESHAV P.R.
15952 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15954 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15955 check hash checksum." consistently translatable.
15957 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15959 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15962 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15964 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15965 (GRUB_MOD_INIT): Register sha1sum command.
15966 (GRUB_MOD_FINI): Unregister sha1sum command.
15968 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15970 Keep boot and grub directory names in sync with utils scripts
15972 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15973 * config.h.in: Add previous macros.
15974 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15975 * util/grub-install.in: Use $bootdir and $grubdir variables.
15977 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15979 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15980 convert partition names to disk names if the new `convert' parameter
15982 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15983 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15984 disk in its own right. This can happen with Xen disk images.
15986 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15988 * util/grub-editenv.c: Update strings to avoid warnings when generating
15990 * util/grub-setup.c: Likewise.
15992 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15994 * configure.ac: Change version to 1.99~beta0.
15996 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15998 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16000 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
16002 * include/multiboot.h: Resynced with specification.
16003 * include/multiboot2.h: Likewise.
16005 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
16007 Fix po directory handling.
16009 * configure.ac: Create po/Makefile.in rather than po/Makefile.
16010 * grub-core/gnulib/Makefile.am: Import gettext module.
16011 * m4/gnulib-cache.m4: Likewise.
16012 * m4/gnulib-comp.m4: Likewise.
16013 * m4/gettext.m4: New file, from gnulib.
16014 * m4/glibc2.m4: Likewise.
16015 * m4/iconv.m4: Likewise.
16016 * m4/intdiv0.m4: Likewise.
16017 * m4/intl.m4: Likewise.
16018 * m4/intldir.m4: Likewise.
16019 * m4/intlmacosx.m4: Likewise.
16020 * m4/intmax.m4: Likewise.
16021 * m4/inttypes-pri.m4: Likewise.
16022 * m4/lcmessage.m4: Likewise.
16023 * m4/lib-ld.m4: Likewise.
16024 * m4/lib-link.m4: Likewise.
16025 * m4/lib-prefix.m4: Likewise.
16026 * m4/lock.m4: Likewise.
16027 * m4/nls.m4: Likewise.
16028 * m4/po.m4: Likewise.
16029 * m4/printf-posix.m4: Likewise.
16030 * m4/progtest.m4: Likewise.
16031 * m4/threadlib.m4: Likewise.
16032 * m4/uintmax_t.m4: Likewise.
16033 * m4/visibility.m4: Likewise.
16034 * po/Makefile.am: Remove.
16035 * po/Makefile.in.in: New file, from gettext.
16036 ($(DOMAIN).pot-update): Support POTFILES-shell.
16037 * po/Makevars: New file.
16038 * po/POTFILES-shell: Rename to ...
16039 * po/POTFILES-shell.in: ... this. Update.
16040 * po/POTFILES: Rename to ...
16041 * po/POTFILES.in: ... this. Update.
16042 * po/Rules-quot: New file, from gettext.
16043 * po/boldquot.sed: Likewise.
16044 * po/en@boldquot.header: Likewise.
16045 * po/en@quot.header: Likewise.
16046 * po/insert-header.sin: Likewise.
16047 * po/quot.sed: Likewise.
16048 * po/remove-potcdate.sin: Likewise.
16050 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16052 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16054 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16056 * util/grub.d/20_linux_xen.in: Use submenus.
16058 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16062 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16063 parameter submenu. All users updated.
16064 * grub-core/normal/main.c (free_menu): Rename to ...
16065 (grub_normal_free_menu): ... this. Made global.
16066 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16068 * grub-core/normal/menu_entry.c (screen): New field submenu.
16069 (make_screen): Set submenu.
16070 (run): Open new context if requested.
16071 * include/grub/menu.h (grub_menu_entry): New field submenu.
16072 * include/grub/normal.h (grub_normal_free_menu): New proto.
16074 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16076 Menu entries extractor.
16078 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16080 (GRUB_MOD_INIT): Register new variants.
16081 (GRUB_MOD_FINI): Unregister new variants.
16082 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16083 into grub_cmd_legacy_source.
16084 (grub_cmd_legacy_source): Implement extractor variants.
16085 (GRUB_MOD_INIT): Register new variants.
16086 (GRUB_MOD_FINI): Unregister new variants.
16087 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16089 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16090 search as an extractor.
16091 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16092 test as an extractor.
16093 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16095 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16096 (grub_env_new_context): New function.
16097 (grub_env_context_open): Likewise.
16098 (grub_env_extractor_open): Likewise.
16099 (grub_env_extractor_close): Likewise.
16100 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16101 grub_extractor_level.
16102 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16103 * include/grub/env.h (grub_env_extractor_open): New proto.
16104 (grub_env_extractor_close): Likewise.
16105 * include/grub/normal.h (grub_extractor_level): New external variable.
16107 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16109 Make cutmem accept a region specification.
16110 Suggested by: Samuel Thibault
16112 * grub-core/mmap/mmap.c (parsemem): New function.
16113 (grub_cmd_cutmem): Handle new arguments.
16115 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16117 New command cutmem.
16119 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16120 (GRUB_MOD_INIT): Register new command.
16121 (GRUB_MOD_FINI): Unregister new command.
16123 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16125 Support some annoying BSD and Minix subpartitions.
16127 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16128 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16129 Properly handle concatenation.
16130 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16131 * grub-core/normal/completion.c (iterate_partition): Likewise.
16132 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16133 contain partition. All users updated.
16134 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16136 (grub_openbsdlabel_partition_map): Likewise.
16137 (bsdlabel_partition_map_iterate): Rename to ..
16138 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16139 (bsdlabel_partition_map_iterate): New function.
16140 (netopenbsdlabel_partition_map_iterate): Likewise.
16141 (netbsdlabel_partition_map_iterate): Likewise.
16142 (openbsdlabel_partition_map_iterate): Likewise.
16143 (GRUB_MOD_INIT): Register new partmaps.
16144 (GRUB_MOD_FINI): Unregister new partmaps.
16145 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16146 (grub_partition_msdos_iterate): ... this. All users updated.
16147 Don't support embedding other than in a minix partition.
16148 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16150 * include/grub/partition.h (grub_partition): New field msdostype.
16151 * util/grub-install.in: Handle openbsd and netbsd types being in
16154 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16156 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16158 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16159 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16160 (mdraid09): ... this.
16161 (mdraid1x): New module.
16162 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16163 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16165 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16167 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16170 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16172 * grub-core/commands/efi/lsefimmap.c: Correct header.
16175 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16177 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16178 as printf format strings; the translations might contain '%' which
16179 could cause a crash.
16181 * util/grub-fstest.c (argp_parser): Likewise.
16182 * util/grub-setup.c (argp_parser): Likewise.
16185 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16187 Use argp in grub-fstest.
16189 * util/grub-fstest.c: Don't include getopt.h.
16191 (root): New variable.
16192 (args_count): Likewise.
16194 (num_disks): Likewise.
16195 (images): Likewise.
16197 (debug_str): Likewise.
16199 (options): Transformed to argp.
16201 (main): Split argument parsing into ...
16202 (argp_parser): ... this. Changed to argp format.
16203 (argp): New variable.
16204 (main): Use argp_parse.
16206 2010-09-20 Tristan Gingold <gingold@free.fr>
16207 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
16208 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16210 * grub-core/commands/efi/lsefimmap.c: New file.
16211 * grub-core/Makefile.core.def (lsefimmap): New module.
16212 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16214 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16216 Pause the execution (10s max) if any errors are displayed so the user
16217 has a chance to see them.
16219 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16220 (grub_print_error): Increment grub_err_printed_errors.
16221 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16222 execution if any errors were displayed.
16223 (show_menu): Remove old code for pause.
16224 * grub-core/normal/menu_entry.c (run): Likewise.
16225 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16227 (grub_normal_get_char_counter): Likewise.
16228 * include/grub/err.h (grub_err_printed_errors): New external variable.
16229 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16231 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16233 Support multiboot VBE info.
16235 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16236 Take VBE info into account.
16237 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16238 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16239 Call fill_vbe_info when appropriate.
16240 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16241 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16243 (grub_multiboot_get_mbi_size): Take new tags into account.
16244 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16245 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16246 Call fill_vbe_tag when appropriate.
16247 (grub_multiboot_make_mbi): Properly align tags.
16248 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16250 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16252 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16254 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16256 Suport manual terminal geometry specification.
16258 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16259 Save state in grub_ofconsole_terminfo_output.
16260 (grub_ofconsole_term): Use grub_terminfo_getwh.
16261 (grub_ofconsole_getwh): Removed.
16262 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16263 (grub_serial_term): Use grub_terminfo_getwh.
16264 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16265 (options): New struct.
16266 (OPTION_*): New enum.
16267 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16268 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16270 (grub_terminfo_getwh): New proto.
16271 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16273 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16275 Handle legacy "terminal" command.
16277 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16279 (legacy_commands): Add terminal and title.
16280 (grub_legacy_parse): Handle terminal. Simplify title handling.
16282 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16284 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16285 parameters overflow.
16287 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16289 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16292 * docs/grub.texi (Shell-like scripting): Document `!'.
16293 (Network): Simplify using new i386-pc-pxe format. Mention
16298 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16300 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16301 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16304 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16306 * grub-core/commands/efi/lsefisystab.c: Correct header.
16307 * grub-core/commands/efi/lssal.c: Likewise.
16308 * grub-core/commands/testload.c: Likewise.
16310 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16312 * util/grub-mkrescue.in: Add explicit root argument to --set to
16313 prevent the UUID being interpreted as an argument to --set (matches
16314 previous change to prepare_grub_to_access_device).
16316 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16318 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16319 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16320 the verbosity of later #ifs.
16321 (find_partition_start): Define this function on FreeBSD too.
16322 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16324 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16327 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16329 * util/grub-editenv.c: Use argp instead of getopt.
16331 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16333 * util/grub-setup.c: Use argp instead of getopt.
16335 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16337 Use gnulib-tool to create gnulib source files.
16339 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16340 grub-core/gnulib directories
16341 * .bzignore: Add **/.deps and autogenerated gnulib files
16342 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16343 of gnulib macros, add grub-core/gnulib/Makefile
16344 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16345 include m4 directory to aclocal.
16346 * Makefile.util.def: Remove direct compilation of gnulib source files
16347 and use the new grub-core/gnulib/libgnu.a.
16348 * build-aux/config.rpath: move config.rpath from top directory to
16350 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16352 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16353 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16354 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16356 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16359 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16361 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16362 grub-core/genmod.sh and grub-core/gensyminfo.sh
16364 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16366 Add a test for echo command options.
16368 * tests/grub_cmd_echo.in: New test.
16369 * Makefile.util.def: Rules for new test.
16371 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16373 Remove crc.mod and move crc command to hashsum.mod.
16374 Remove lib/crc.c - users updated to use gcrypt implementation.
16376 * grub-core/commands/crc.c: Removed.
16377 * grub-core/Makefile.core.def (crc): Module removed.
16378 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16379 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16380 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16381 * grub-core/lib/crc.c: Removed.
16382 * include/grub/lib/crc.h: Removed.
16383 * Makefile.util.def (crc): Remove lib/crc.c
16384 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16385 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16386 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16387 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16388 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16389 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16391 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16393 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16395 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16397 Split config.h for util and core.
16399 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16400 (ADDR32): Likewise.
16401 (DATA32): Likewise.
16402 (BSS_START_SYMBOL): Likewise.
16403 (END_SYMBOL): Likewise.
16404 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16405 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16406 * config.h.in: New file.
16407 * configure.ac: Use config-util.h as config define file.
16408 Rename MACHINE into GRUB_MACHINE. All users updated.
16409 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16411 (NESTED_FUNC_ATTR): Likewise.
16412 Substitue new variables.
16413 (COND_HAVE_ASM_USCORE): New conditional.
16414 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16415 (kernel_syms.lst): Use ASM_PREFIX.
16416 * grub-core/kern/emu/console.c: Include config-util.h.
16417 * grub-core/kern/emu/misc.c: Likewise.
16418 * grub-core/kern/emu/mm.c: Likewise.
16419 * include/grub/emu/misc.h: Likewise.
16420 * include/grub/libgcc.h: Likewise.
16422 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16424 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16426 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16427 Fix GRUB_TERM_KEY_* constants usage.
16428 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16430 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16432 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16434 * grub-core/bus/usb/uhci.c: Remove empty define.
16435 (grub_uhci_check_transfer): Add missing cast.
16436 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16438 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16440 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16442 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16444 * grub-core/Makefile.core.def (legacycfg): Add
16445 lib/i386/pc/vesa_modes_table.c on emu.
16447 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16449 Reduce number of temporary files generated by build system.
16451 * grub-core/gencmdlist.sh: Removed.
16452 * grub-core/genfslist.sh: Removed.
16453 * grub-core/genhandlerlist.sh: Removed.
16454 * grub-core/genmodsrc.sh: Removed.
16455 * grub-core/genpartmaplist.sh: Removed.
16456 * grub-core/genparttoollist.sh: Removed.
16457 * grub-core/gentermiinallist.sh: Removed.
16458 * grub-core/genvideolist.sh: Removed.
16460 * grub-core/genmod.sh.in: New file.
16461 * grub-core/gensyminfo.sh.in: New file.
16463 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16464 * conf/Makefile.extra-dist: Update with new files.
16465 * gentpl.py: Remove rules related to unnecessary temporary files.
16466 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16468 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16470 * grub-core/bus/usb/uhci.c: Remove empty #define.
16471 * grub-core/genmoddep.awk: Updated with new syminfo format.
16472 * util/bash-completion.d/Makefile.am: Add config.log to
16475 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16477 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16479 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16481 * util/grub-mkconfig.in: Check the config script for syntax errors
16484 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16485 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16487 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16489 * util/grub-install.in: Add EFI and IEEE1275 support.
16490 * util/i386/efi/grub-install.in: Removed.
16491 * util/ieee1275/grub-install.in: Likewise.
16493 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16495 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16496 (grub_cmd_cmosclean): Likewise.
16497 (GRUB_MOD_INIT): Register command cmosclean.
16498 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16499 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16501 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16502 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16503 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16505 Add keyboard layouts support.
16507 * Makefile.util.def (grub-mklayout): New file.
16508 (grub-kbdcomp): New script.
16509 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16510 Add keyboard_layouts.h.
16511 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16512 commands/boot.c on yeeloong.
16513 (keylayouts): New module.
16514 * grub-core/bus/usb/ohci.c
16515 * grub-core/bus/usb/uhci.c
16516 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16517 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16518 (attach_root_port): Likewise.
16519 (poll_nonroot_hub): Likewise.
16520 (grub_usb_poll_devices): Likewise.
16521 (detach_device): Close transfer.
16522 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16524 (grub_usb_bulk_setup_readwrite): Likewise.
16525 (grub_usb_bulk_finish_readwrite): Likewise.
16526 * grub-core/commands/keylayouts.c: New file.
16527 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16528 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16530 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16531 support scancode 2.
16532 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16533 * include/grub/keyboard_layouts.h: New file.
16534 * util/grub-mklayout.c: New file.
16535 * util/grub-kbdcomp.in: Likewise.
16537 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16539 Unify memory types.
16541 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16542 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16544 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16545 (grub_upper_mem): Likewise.
16546 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16547 * include/grub/memory.h (grub_memory_type_t): New enum.
16550 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16552 * grub-core/Makefile.core.def (lsapm): New module.
16553 * grub-core/commands/i386/pc/lsapm.c: New file.
16554 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16555 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16557 * include/grub/i386/pc/apm.h: New file.
16558 * include/multiboot.h (multiboot_apm_info): New struct.
16560 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16562 GRUB-legacy configuration file support.
16564 * Makefile.util.def (grub-menulst2cfg): New util.
16565 * docs/man/grub-menulst2cfg.h2m: New file.
16566 * grub-core/Makefile.core.def (legacycfg): New module.
16567 * grub-core/commands/legacycfg.c: New file.
16568 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16569 (grub_normal_add_menu_entry): ... this.
16570 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16571 (grub_normal_set_password): ...this.
16572 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16573 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16574 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16575 * grub-core/lib/legacy_parse.c: New file.
16576 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16577 * include/grub/i386/pc/vesa_modes_table.h: New file.
16578 * include/grub/legacy_parse.h: Likewise.
16579 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16580 * util/grub-menulst2cfg.c: New file.
16582 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16584 * grub-core/kern/emu/hostdisk.c
16585 (convert_system_partition_to_system_disk): Initialise node.
16587 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16589 * grub-core/kern/emu/hostdisk.c
16590 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16592 Reported and based on patch by: Modestas Vainius.
16594 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16596 Fix DM-RAID probing with recent versions of device-mapper udev
16599 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16600 canonicalise device paths under /dev/mapper/.
16601 (convert_system_partition_to_system_disk): Compare the
16602 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16603 path, since device nodes under /dev/mapper/ are often symlinks.
16605 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16607 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16609 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16611 * configure.ac: Avoid some annoying error messages if freetype-config
16612 program is not found.
16614 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16616 Support RAID on virtio devices, and others.
16618 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16620 [__MINGW32__] (grub_find_device): ... this.
16621 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16622 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16623 reasonable default if dir is NULL.
16624 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16626 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16627 (grub_guess_root_device): Update callers.
16628 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16630 * util/raid.c (grub_util_getdiskname): Remove.
16631 (grub_util_raid_getmembers): Use grub_find_device rather than
16632 grub_util_getdiskname.
16634 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16636 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16637 needing to be compiled with serial support.
16638 (ls): Indicate that multiple files are accepted.
16639 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16640 indicate that multiple files are accepted.
16642 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16644 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16645 libgrub_a_init.c, and util/bash-completion.d/grub.
16647 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16649 * util/grub-setup.c (setup): Fix incorrect container semantics.
16651 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16653 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16655 Reported by: J. Nick Terry
16657 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16659 Move embedding routines to partmap sources files.
16661 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16662 [GRUB_UTIL]: New variable.
16663 (gpt_partition_map_iterate): Set part.parent.
16664 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16665 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16666 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16668 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16669 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16670 (grub_partition_map) [GRUB_UTIL]: New field embed.
16671 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16672 (setup): Use ->embed.
16674 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16676 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16678 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16679 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16681 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16683 Add function to get completions from usage.
16685 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16686 completions from usage. Use LC_ALL=C to get options properly.
16688 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16690 * grub-core/gnulib/basename-lgpl.c: Imported.
16691 * grub-core/gnulib/basename.c: Likewise.
16692 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16693 * grub-core/gnulib/dirname.c: Likewise.
16694 * grub-core/gnulib/dirname.h: Likewise.
16695 * grub-core/gnulib/stripslash.c: Likewise.
16697 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16699 * grub-core/gnulib/error.c: Resynced.
16700 * grub-core/gnulib/getopt.c: Likewise.
16701 * grub-core/gnulib/getopt_int.h: Likewise.
16702 * grub-core/gnulib/regex.h: Likewise.
16703 * grub-core/gnulib/regex_internal.c: Likewise.
16704 * grub-core/gnulib/regex_internal.h: Likewise.
16706 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16708 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16709 CRC calculations and validity checks.
16710 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16713 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16715 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16717 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16719 Fix incorrect echo options handling.
16720 Reported by: Yves Blusseau.
16722 * include/grub/command.h (grub_command_flags_t): New flags
16723 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16724 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16725 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16727 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16729 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16731 (GRUB_COMMAND_FLAG_MENU): Likewise.
16732 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16733 (GRUB_COMMAND_FLAG_TITLE): Removed.
16734 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16735 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16736 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16737 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16738 (grub_command_flags_t): New enum. All users updated.
16740 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16742 Fix solaris compilation.
16744 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16745 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16746 (grub-emu-list): Likewise.
16748 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16750 Remove deprecated root command.
16752 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16755 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16757 * util/i386/pc/grub-setup.c: Merge this ...
16758 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16759 * util/grub-setup.c: ... into this.
16760 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16763 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16765 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16768 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16770 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16773 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16775 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16776 explicit root argument to set to prevent UUID to be interpreted as
16779 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16781 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16783 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16785 Don't export grub_gate_a20.
16787 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16788 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16790 (grub_gate_a20): ... this. All users updated.
16791 * include/grub/i386/pc/init.h: Removed. All users updated.
16793 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16795 Create euro.pf2 which supports most European languages.
16797 * Makefile.am (grubdata_DATA): Add euro.pf2.
16798 (euro.pf2): New target.
16799 (CLEANFILES): Add euro.pf2.
16801 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16803 * configure.ac: Disable emu-usb by default to prevent inadvertent
16806 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16808 Disable usbserial on grub-emu since our libusb code isn't good enough
16811 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16812 (usbserial_pl2303): Likewise.
16813 (usbserial_ftdi): Likewise.
16815 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16817 * include/grub/disk.h (grub_disk): Remove has_partitions.
16819 * disk/loopback.c (grub_loopback): Remove has_partitions.
16821 (options): Remove partitions. All users updated.
16822 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16823 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16824 actual partition table is found.
16826 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16828 Remove readability checks (too many false negatives).
16830 * util/grub-install.in: Remove readability checks.
16831 * util/grub-mkconfig.in: Likewise.
16832 * util/grub.d/10_hurd.in: Likewise.
16833 * util/grub.d/10_kfreebsd.in: Likewise.
16834 * util/grub.d/10_linux.in: Likewise.
16835 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16838 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16840 Enable acpi shutdown on all ACPI platforms.
16842 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16843 on coreboo, multiboot and EFI.
16844 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16845 (grub_acpi_halt): Likewise.
16846 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16847 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16848 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16849 * grub-core/lib/i386/halt.c (grub_halt)
16850 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16852 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16854 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16857 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16859 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16860 * grub-core/video/efi_uga.c: Likewise.
16862 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16864 Filter devaliases and never open same device twice.
16866 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16867 (last_ihandle): Likewise.
16868 (ofdisk_hash_ent): New member shortest.
16869 (ofdisk_hash_add): Add canonical path too.
16870 (scan): New function.
16871 (grub_ofdisk_iterate): Iterate over hashed entries.
16872 (compute_dev_path): Don't add :0.
16873 (grub_ofdisk_open): Don't really open the disk.
16874 (grub_ofdisk_close): Avoid closing unrelated disk.
16875 (grub_ofdisk_read): Implement reopen logic.
16876 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16878 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16881 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16885 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16886 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16887 right address. Add sparc64_ieee1275_ldflags.
16888 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16889 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16890 to grub_host_to_target_addr
16891 (load_image): Likewise.
16893 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16895 * grub-core/normal/completion.c (complete_file): Handle device
16897 Fix based on patch by Doug Nazar.
16899 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16901 grub-mknetdir script.
16903 * Makefile.util.def (grub-mknetdir): New module.
16904 * tests/util/grub-shell.in: Support boot=net
16905 * util/grub-mknetdir.in: New file.
16907 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16909 videoinfo on non-vbe.
16911 * grub-core/Makefile.core.def (vbeinfo): Removed.
16912 (vbetest): Removed.
16913 (videoinfo): New module.
16914 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16915 * grub-core/commands/i386/pc/vbetest.c: Removed.
16916 * grub-core/commands/videoinfo.c: New file.
16917 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16919 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16921 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16922 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16923 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16924 mode_number. New parameter mode. All users updated.
16925 (grub_video_gop_iterate): New function.
16926 (grub_video_efi_gop): New member iterate.
16927 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16928 (grub_vbe_set_video_mode): Remove setting useless fields.
16929 (vbe2videoinfo): New function.
16930 (grub_video_vbe_iterate): Likewise.
16931 (grub_video_vbe_setup): Use vbe2videoinfo.
16932 (grub_video_vbe_print_adapter_specific_info): New function.
16933 (grub_video_vbe_adapter): New fields iterate and
16934 print_adapter_specific_info.
16935 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16937 (grub_video_mode_info): New field mode_number.
16938 (grub_video_adapter): New fields iterate and
16939 print_adapter_specific_info.
16941 2010-09-13 Tristan Gingold <gingold@free.fr>
16942 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16943 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16945 * grub-core/commands/efi/lsefisystab.c: New file.
16946 * grub-core/commands/efi/lssal.c: Likewise.
16947 * grub-core/Makefile.core.def (lsacpi): New module.
16948 (lsefisystab): Likewise.
16949 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16950 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16951 (grub_efi_sal_system_table): New struct.
16952 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16953 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16954 (grub_efi_sal_system_table_platform_features): Likewise.
16955 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16956 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16957 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16958 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16960 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16962 Support explicit user claim that a device is BIOS-visible.
16964 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16965 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16966 * grub-core/kern/emu/hostdisk.c
16967 (convert_system_partition_to_system_disk): Support mdX.
16968 (find_system_device): New parameter add. All users updated.
16969 (grub_util_biosdisk_is_present): New function.
16970 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16973 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16975 Search hints support.
16977 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16980 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16982 Bash completion script for util commands
16984 * Makefile.am: Add util/bash-completion.d directory
16985 * configure.ac: Likewise.
16986 * util/bash-completion.d/Makefile.am: New file.
16987 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16989 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16991 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16992 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16993 Reported by: Yves Blusseau.
16995 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16997 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
16998 partition size and offset.
17000 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17002 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
17004 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17006 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
17008 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17010 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
17011 (grub_xvasprintf): Likewise.
17013 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17015 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
17017 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17019 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
17020 args ending with NULL.
17022 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17024 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
17027 2010-09-11 Szymon Janc <szymon@janc.net.pl>
17029 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
17031 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17033 Shutdown using ACPI.
17035 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
17036 * grub-core/commands/acpihalt.c: New file.
17037 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
17038 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
17039 (grub_acpi_halt): New proto.
17040 (GRUB_ACPI_SLP_EN): New const.
17041 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
17042 (GRUB_ACPI_OPCODE_*): New enum.
17043 (GRUB_ACPI_EXTOPCODE_*): Likewise.
17045 2010-09-11 Tristan Gingold <gingold@free.fr>
17046 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
17047 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17049 * commands/lsacpi.c: New file.
17050 * grub-core/Makefile.core.def (lsacpi): New module.
17051 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17052 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17053 (grub_acpi_madt_entry_header): New struct.
17054 (grub_acpi_madt): Likewise.
17055 (grub_acpi_madt_entry_interrupt_override): Likewise.
17056 (grub_acpi_madt_entry_sapic): Likewise.
17057 (grub_acpi_madt_entry_lsapic): Likewise.
17058 (grub_acpi_madt_entry_platform_int_source): Likewise.
17059 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17060 (PRIuGRUB_UINT32_T): Likewise.
17061 (PRIxGRUB_UINT64_T): Likewise.
17063 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17065 Implement loading palette on ieee1275_fb.
17067 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17068 (have_setcolors): Likewise.
17069 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17070 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17071 (grub_video_ieee1275_set_palette): Implement.
17073 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17074 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
17076 * util/grub-install.in (grub_partition): New variable.
17077 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17078 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17079 Fixes a bug reported by Yves Blusseau.
17081 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17085 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17086 =grub_cpu_flush_cache on all mips and not only yeeloong.
17087 * configure.ac (COND_mips): New conditional.
17088 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17090 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17091 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17092 [GRUB_LINKER_HAVE_INIT]: New function.
17093 (grub_emu_post_init): Likewise.
17094 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17095 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17096 * include/grub/cache.h (_mips): Include mips/cache.h.
17097 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17098 LVM and RAID prototypes.
17099 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17100 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17103 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17105 * util/grub-install.in: Don't try to verify core.img until after
17106 running grub-mkimage to create it.
17108 2010-09-10 Robert Millan <rmh@gnu.org>
17110 * util/grub.d/10_hurd.in: Add misc readability checks.
17111 * util/grub.d/10_kfreebsd.in: Likewise.
17112 * util/grub.d/10_linux.in: Likewise.
17114 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17116 * util/grub-install.in: ${imgext} won't be defined here until the
17117 install branch is merged. For the meantime, only verify core.img on
17118 i386-pc and sparc64-ieee1275 platforms.
17120 2010-09-10 Robert Millan <rmh@gnu.org>
17122 Solaris support in grub_find_zpool_from_dir(). Thanks
17123 Seth Goldberg for referring to getextmntent() facility.
17125 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17127 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17129 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17130 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17131 method for finding zpool name.
17133 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17135 grub-fstest needs the host and hostfs modules while other utilities
17136 actively require those modules to be absent, so grub-fstest needs
17137 its own initialisation and finalisation code.
17139 * Makefile.am (grub_fstest.pp): New target.
17140 (grub_fstest_init.lst): Likewise.
17141 (grub_fstest_init.c): Likewise.
17142 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17144 2010-09-10 Robert Millan <rmh@gnu.org>
17146 * configure.ac: Check for `struct statfs.f_fstypename' and
17147 `struct statfs.f_mntfromname'.
17149 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17150 kFreeBSD-specific code.
17152 2010-09-10 Robert Millan <rmh@gnu.org>
17154 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17155 on ZFS. Now non-main filesystems are supported as / too.
17157 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
17159 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17160 and grub-core/disk/host.c to ...
17161 (grub-fstest): ... here. Having the host disk implementation
17162 present confuses grub-probe and other utility programs.
17164 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17165 when writing to a file, not when writing to stdout.
17167 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17169 * tests/partmap_test.in: New test for partitions.
17170 * Makefile.util.def: Rules for new test.
17172 2010-09-09 Robert Millan <rmh@gnu.org>
17174 * util/grub-probe.c (probe): Fix a pair of unhandled error
17177 2010-09-09 Robert Millan <rmh@gnu.org>
17179 Basic Btrfs support (detection and UUID).
17181 * grub-core/fs/btrfs.c: New file.
17182 * Makefile.util.def (library): Register btrfs.c.
17183 * grub-core/Makefile.core.def: Likewise.
17185 2010-09-08 Robert Millan <rmh@gnu.org>
17187 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17188 with (optional) parameters to specify device and relative path.
17189 * util/grub-install.in: Use is_path_readable_by_grub() to
17190 verify readability of a few critical files.
17191 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17192 verify readability of grub.cfg.new.
17194 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17196 Split minix.mod into minix.mod and minix2.mod.
17198 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17199 * grub-core/Makefile.core.def (minix2): New module.
17200 * grub-core/fs/minix.c: Use definitions instead of runtime version
17202 * grub-core/fs/minix2.c: New file.
17204 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17206 Add new --boot-directory option to replace --root-directory
17208 * util/grub-install.in: Add new --boot-directory option
17209 * util/grub-reboot.in: Likewise.
17210 * util/grub-set-default.in: Likewise.
17212 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17214 * util/grub-mkconfig.in: Use new variable.
17216 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17218 * configure.ac: Define some useful variables.
17220 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17222 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17223 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17224 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17225 Use terminfo and don't use cursor-on/cursor-off unless it's known
17227 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17228 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17230 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
17232 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17233 starts with "(,", fill the drive containing the loaded image in
17234 between those two characters, but expect that a full partition
17235 specification including partition map names will follow.
17237 2010-09-08 Robert Millan <rmh@gnu.org>
17239 * configure.ac: Remove `--enable-grub-fstest' option.
17240 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17242 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17243 `grub-fstest' instead of `grub-probe' for readability verification.
17244 * util/grub-probe.c (probe): Remove readability verification kludge.
17246 2010-09-08 Robert Millan <rmh@gnu.org>
17248 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17249 initializing `GRUB_FS'.
17251 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17253 Not command (!) support to GRUB script.
17255 * tests/grub_script_not.in: New test.
17256 * Makefile.util.def: Rules for new test.
17258 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17259 ! command as a special case.
17260 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17262 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17264 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17267 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17269 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17271 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17273 * docs/grub.texi (Shell-like scripting): Documentation for break,
17274 continue, shift and return commands.
17276 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17278 Rename CD-ROM to cd on BIOS.
17280 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17282 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17284 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17286 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17287 * util/grub-probe.c (main): Likewise.
17288 * util/i386/pc/grub-setup.c (main): Likewise.
17289 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17290 Reported and debugged by: alexxy
17292 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17294 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17297 2010-09-05 Jo Shields <directhex@apebox.org>
17299 * util/grub.d/30_os-prober.in: Add missing classes.
17301 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17303 * docs/grub.texi (Theme file format): Document new position format.
17305 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17307 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17308 a table. Use @code instead of @verbatim.
17310 2010-09-05 Colin D Bennett <colin@gibibit.com>
17312 Gfxmenu documentation.
17314 * docs/grub.texi (Theme file format): New chapter.
17316 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17318 * grub-core/Makefile.core.def (xzio): New module.
17319 * grub-core/io/xzio.c: New file.
17320 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17321 * grub-core/lib/xzembed/xz_config.h: Likewise.
17322 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17323 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17324 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17325 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17326 * grub-core/lib/xzembed/xz_private.h: Likewise.
17327 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17328 * include/grub/file.h (grub_file_filter_id): New compression filter
17329 GRUB_FILE_FILTER_XZIO.
17331 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17333 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17334 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17337 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17339 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17340 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17342 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17344 Uncompressed checksum support.
17346 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17347 (check_list): New parameter uncompress.
17348 (grub_cmd_hashsum): Handle --uncompress.
17350 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17352 Reintroduce testload.
17354 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17356 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17357 (GRUB_MOD_INIT): New function.
17358 (GRUB_MOD_FINI): Likewise.
17359 * grub-core/Makefile.core.def (testload): New module.
17361 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17363 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17364 (uint8_t): New type.
17365 (uint16_t): Likewise.
17366 (uint32_t): Likewise.
17367 (uint64_t): Likewise.
17369 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17371 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17373 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17375 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17377 (grub_gzfile_open): Removed. All users updated.
17378 (GRUB_MOD_INIT): New function.
17379 (GRUB_MOD_FINI): Likewise.
17380 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17381 (grub_file_filters_enabled): Likewise.
17382 (grub_file_open): Handle filters.
17383 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17384 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17385 * include/grub/file.h (grub_file_filter_id_t): New type.
17386 (grub_file_filter_t): Likewise.
17387 (grub_file_filters_all): New extern variable.
17388 (grub_file_filters_enabled): Likewise.
17389 (grub_file_filter_register): New inline function.
17390 (grub_file_filter_unregister): Likewise.
17391 (grub_file_filter_disable): Likewise.
17392 (grub_file_filter_disable_compression): Likewise.
17393 * include/grub/gzio.h: Removed.
17395 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17397 Filename expansion support for wildcards in GRUB script.
17399 * tests/grub_script_expansion.in: New test.
17400 * Makefile.util.def: Rule for new test.
17402 * grub-core/commands/wildcard.c: New file, implements filename
17403 expansion support for GRUB script.
17404 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17405 * grub-core/script/argv.c: Cosmetic changes.
17406 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17407 Refactored to perform wildcard expansion on arguments.
17408 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17411 * tests/util/grub-shell.in: Fix quoting for read input.
17413 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17415 Support for updating environment variables with matched substrings
17418 * tests/grub_cmd_regexp.in: New test.
17419 * Makefile.util.def: Rule for new test.
17421 * grub-core/commands/regexp.c: New option -s to update environment
17422 variables with regexp matches.
17424 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17426 * include/grub/file.h (grub_file): New member not_easly_seekable.
17427 (grub_file_seekable): New inline function.
17428 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17430 (grub_gzio_open): Set not_easly_seekable.
17431 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17432 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17434 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17436 Support for options to appear multiple times on cmdline.
17438 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17439 * grub-core/commands/extcmd.c: Support for repeatable option.
17440 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17441 repeatable option support.
17443 Refactor menuentry into a regular command.
17445 * grub-core/commands/menuentry.c: New file, menuentry command
17447 * grub-core/Makefile.core.def: Rule update for normal.mod.
17448 * grub-core/normal/main.c: Moved menuentry creation to
17449 grub-core/commands/menuentry.c.
17450 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17451 (grub_menu_execute_entry_real): Removed.
17452 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17454 (grub_script_execute_menuentry): Removed.
17455 * grub-core/script/parser.y (menuentry): Removed.
17456 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17457 * grub-core/script/yylex.l (menuentry): Removed.
17458 * include/grub/menu.h (grub_menu_init): New prototype.
17459 (grub_menu_fini): New prototype.
17460 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17461 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17462 (grub_script_execute_sourcecode): New prototype.
17464 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17466 "return" command for GRUB script functions.
17468 * tests/grub_script_return.in: New test.
17469 * Makefile.util.def: Rules for new test.
17471 * grub-core/script/execute.c (grub_script_return): New function.
17472 * grub-core/script/main.c: Register/unregister return commaond.
17473 * include/grub/script_sh.h (grub_script_return): New prototype.
17475 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17477 "setparams" command to update positional parameters.
17479 * tests/grub_script_setparams.in: New test.
17480 * Makefile.util.def: Rules for new test.
17482 * grub-core/script/argv.c (grub_script_argv_make): New function.
17483 * grub-core/script/execute.c (replace_scope): New function.
17484 (grub_script_setparams): New function.
17485 * grub-core/script/lexer.c: Remove unused variables.
17486 * grub-core/script/main.c: Register/unregister setparams command.
17487 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17488 (grub_script_setparams): New prototype.
17490 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17492 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17495 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17497 Support for passing block of commands as an argument to extcmds.
17499 * Makefile.util.def: Rules for new test.
17500 * tests/grub_script_blockarg.in: New test.
17501 * grub-core/tests/test_blockarg.c: New file, block argument
17502 command used in the test.
17504 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17505 (grub_register_extcmd_prio): New function prototype.
17506 (grub_extcmd_dispatcher): New function prototype.
17507 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17509 * include/grub/script_sh.h (struct grub_script): New members
17510 `children', `next_siblings' and `refcnt' for block arguments and
17511 reference counting.
17512 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17513 (grub_script_arg): New member `script' for block argument.
17514 (grub_script_argv): New member `script' for block argument.
17515 (grub_parser_param): New member `scripts' for block argument.
17516 (grub_script_mem_free): New extern function prototype.
17517 (grub_script_ref): New function prototype.
17518 (grub_script_unref): New function prototype.
17520 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17521 extcmd form to support block arguments.
17522 * grub-core/script/argv.c: Block arguments support.
17523 * grub-core/script/execute.c: Likewise.
17524 * grub-core/script/lexer.c: Likewise.
17525 * grub-core/script/main.c: Likewise.
17526 * grub-core/script/script.c: Likewise.
17527 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17530 * grub-core/commands/acpi.c: Update extcmd implementations with
17531 grub_extcmd_context_t.
17532 * grub-core/commands/cat.c: Likewise.
17533 * grub-core/commands/echo.c: Likewise.
17534 * grub-core/commands/extcmd.c: Likewise.
17535 * grub-core/commands/hashsum.c: Likewise.
17536 * grub-core/commands/hdparm.c: Likewise.
17537 * grub-core/commands/help.c: Likewise.
17538 * grub-core/commands/hexdump.c: Likewise.
17539 * grub-core/commands/i386/cpuid.c: Likewise.
17540 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17541 * grub-core/commands/i386/pc/halt.c: Likewise.
17542 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17543 * grub-core/commands/iorw.c: Likewise.
17544 * grub-core/commands/keystatus.c: Likewise.
17545 * grub-core/commands/loadenv.c: Likewise.
17546 * grub-core/commands/ls.c: Likewise.
17547 * grub-core/commands/lspci.c: Likewise.
17548 * grub-core/commands/memrw.c: Likewise.
17549 * grub-core/commands/probe.c: Likewise.
17550 * grub-core/commands/search_wrap.c: Likewise.
17551 * grub-core/commands/setpci.c: Likewise.
17552 * grub-core/commands/sleep.c: Likewise.
17553 * grub-core/disk/loopback.c: Likewise.
17554 * grub-core/hello/hello.c: Likewise.
17555 * grub-core/loader/i386/bsd.c: Likewise.
17556 * grub-core/loader/xnu.c: Likewise.
17557 * grub-core/term/gfxterm.c: Likewise.
17558 * grub-core/term/serial.c: Likewise.
17559 * grub-core/tests/lib/functional_test.c: Likewise.
17561 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17563 Multi-line quoted strings support.
17565 * grub-core/script/lexer.c (append_newline): Removed.
17566 (grub_script_lexer_yywrap): Refactored.
17567 (grub_script_lexer_init): Refactored.
17568 * grub-core/script/yylex.l (yywrap): New function.
17569 (grub_lexer_resplit): New function.
17570 (grub_lexer_unput): New function.
17571 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17573 * tests/grub_script_echo1.in: Added few more testcases.
17575 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17577 * grub-core/kern/misc.c: Don't add abort alias in utils.
17578 Reported by: echoline.
17580 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17582 Add missing files into "make dist" tarball for other platforms.
17584 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17585 * conf/Makefile.common (dist_noinst_DATA): New variable.
17586 * conf/Makefile.extra-dist: Added missing make dist files.
17587 * grub-core/Makefile.core.def: Likewise.
17589 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17591 Compress grub_prefix.
17593 * grub-core/boot/i386/pc/lnxboot.S: Use
17594 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17595 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17596 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17597 GRUB_MACHINE_PREFIX_END. All users updated.
17598 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17599 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17601 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17602 * util/grub-mkimage.c (image_target_desc): Change data_end to
17603 prefix_end. All users updated.
17605 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17607 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17609 (grub_openbsd_boot): Likewise.
17610 (grub_netbsd_boot): Likewise.
17611 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17612 (grub_xnu_boot): Likewise.
17614 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17616 * configure.ac: Clean LIBS variable after tests.
17618 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17620 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17622 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17624 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17625 echo if libdevmapper will be used.
17627 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17629 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17630 constant for the same file.
17632 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17634 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17636 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17638 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17641 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17643 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17644 required by the boot protocol.
17646 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17647 ebp and edi members.
17648 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17649 state.ebp and state.edi.
17650 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17651 %ebp and %edi according to grub_relocator32_ebp and
17652 grub_relocator32_edi respectively.
17653 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17656 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17658 Add i386-pc-pxe image target.
17660 * util/grub-mkimage.c (image_target_desc): New enum value
17662 (image_targets): New target i386-pc-pxe.
17663 (generate_image): Handle i386-pc-pxe image.
17665 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17669 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17670 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17672 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17673 (grub_pxe_pxenv): Correct type.
17675 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17677 * NEWS: Document most of the important changes since 1.98.
17679 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17681 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17682 generated manual page) a little.
17684 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17686 * docs/grub.texi: Add myself as an author.
17688 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17690 * Makefile.util.def (libgrub.a): Add missing sunpc.
17691 Reported by: Seth Goldberg.
17693 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17695 Interrupt wrapping and code simplifications.
17697 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17698 x86_noieee1275 which are functionaly equivalent in this case.
17699 (grub-install): Make source on each platform explicit. Enable on
17701 * gentpl.py (x86_efi_pc): Removed group.
17702 (x86_noefi): Likewise.
17703 (i386_noefi): Likewise.
17704 (x86_noieee1275): Likewise.
17705 (i386_noieee1275): Likewise.
17706 (i386_noefi_noieee1275): Likewise.
17707 (i386_pc_qemu_coreboot): Likewise.
17708 (i386_coreboot_multiboot): Likewise.
17709 (i386_pc_coreboot_multiboot_qemu): Likewise.
17710 (x86_noefi_mips): Likewise.
17711 (noieee1275): Likewise.
17712 (ieee1275_mips): Likewise.
17713 (noemu_noieee1275): Likewise.
17716 (videoinkernel): Likewise.
17717 (videomodules): Likewise.
17718 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17719 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17720 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17721 include/grub/loader.h, include/grub/msdos_partition.h,
17722 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17723 include/grub/machine/console.h, include/grub/machine/vga.h,
17724 include/grub/machine/vbe.h, include/grub/machine/init.h,
17725 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17726 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17727 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17728 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17729 * grub-core/Makefile.core.def (kernel): Explicit the source for
17730 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17731 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17732 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17733 Use videoinkernel tag.
17734 (usb): Enable on all usb.
17735 (usbserial_common): Likewise.
17736 (usbserial_pl2303): Likewise.
17737 (usbserial_ftdi): Likewise.
17738 (uhci): Enable on all x86.
17739 (ohci): Enable on all pci.
17740 (cmostest): Enable on all CMOS.
17741 (acpi): Include commands/acpi.c on all platforms.
17742 (halt): Add relevant lib/*/halt.c.
17743 (hdparm): Enable on all pci.
17745 (usbtest): Enable on all usb.
17746 (ata): Enable on all pci.
17747 (ata_pthru): Likewise.
17748 (usbms): Enable on all usb.
17749 (usb_keyboard): Likewise.
17750 (font): Use tag videomodules.
17752 (datetime): Use tag cmos. Enable on all noemu.
17753 (mmap): Use tags common and x86.
17754 (gfxterm): Use tag videomodules.
17755 (bitmap): Likewise.
17756 (bitmap_scale): Likewise.
17757 (video_fb): Likewise.
17759 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17760 adjust padding accordingly. All users updated.
17761 (grub_ohci_transaction): Fix bad format specification.
17762 (GRUB_MOD_INIT): Add asserts for struct size.
17763 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17764 (grub_alloc_td): Likewise.
17765 (grub_free_queue): Likewise.
17766 (grub_uhci_transfer): Likewise.
17767 (grub_uhci_transaction): Fix bad format specification.
17768 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17769 (grub_usb_bulk_readwrite): Likewise.
17770 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17771 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17773 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17775 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17776 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17777 Transformed into C.
17778 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17779 Moved from here ...
17780 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17781 ... here. Transformed into C. Made static.
17782 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17783 Moved from here ...
17784 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17785 ... here. Transformed into C. Made static.
17786 * grub-core/kern/i386/pc/startup.S
17787 (grub_biosdisk_check_int13_extensions): Moved from here ...
17788 * grub-core/disk/i386/pc/biosdisk.c
17789 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17791 * grub-core/kern/i386/pc/startup.S
17792 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17793 * grub-core/disk/i386/pc/biosdisk.c
17794 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17795 Transformed into C. Made static.
17796 * grub-core/kern/i386/pc/startup.S
17797 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17798 * grub-core/disk/i386/pc/biosdisk.c
17799 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17800 Transformed into C. Made static.
17801 * grub-core/kern/i386/pc/startup.S
17802 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17803 * grub-core/disk/i386/pc/biosdisk.c
17804 (grub_biosdisk_get_diskinfo_standard): ... here.
17805 Transformed into C. Made static.
17806 * grub-core/kern/i386/pc/startup.S
17807 (grub_biosdisk_get_num_floppies): Moved from here ...
17808 * grub-core/disk/i386/pc/biosdisk.c
17809 (grub_biosdisk_get_num_floppies): ... here.
17810 Transformed into C. Made static.
17811 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17813 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17814 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17815 Transformed into C. Made static.
17816 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17817 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17818 Transformed into C. Made static.
17819 * grub-core/kern/i386/ieee1275/init.c: Removed.
17820 * grub-core/kern/i386/misc.S: Likewise.
17821 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17822 Splitted from here ...
17823 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17824 Transformed into C. Made static. All users updated.
17825 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17826 Transformed into C. Made static. All users updated.
17827 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17829 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17830 Transformed into C. Made static. All users updated.
17831 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17833 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17834 Transformed into C. Made static. All users updated.
17835 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17836 Removed (replaced by C version).
17837 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17839 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17840 Transformed into C. Made static.
17841 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17843 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17844 ... here. Transformed into C.
17845 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17847 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17848 ... here. Transformed into C.
17849 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17851 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17852 ... here. Transformed into C. Made static.
17853 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17855 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17856 ... here. Transformed into C.
17857 * grub-core/kern/i386/pc/startup.S
17858 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17859 * grub-core/video/i386/pc/vbe.c
17860 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17861 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17863 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17864 ... here. Transformed into C.
17865 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17867 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17868 ... here. Transformed into C.
17869 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17871 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17872 ... here. Transformed into C.
17873 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17875 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17876 ... here. Transformed into C.
17877 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17879 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17880 ... here. Transformed into C. Made static.
17881 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17883 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17884 ... here. Transformed into C. Made static.
17885 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17888 ... here. Transformed into C. Made static.
17889 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17890 pxe_rm_entry as third argument.
17891 (grub_bios_interrupt): New function.
17892 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17893 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17894 of calling grub_stop.
17895 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17896 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17897 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17898 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17899 * grub-core/lib/i386/halt.c: Moved from here ...
17900 * grub-core/lib/i386/halt.c: ... here.
17901 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17902 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17903 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17905 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17906 * include/grub/i386/coreboot/init.h: Removed.
17907 * include/grub/i386/multiboot/init.h: Likewise.
17908 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17909 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17910 * include/grub/i386/pc/int.h: New file.
17911 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17912 (grub_pxe_scan): Removed.
17913 (grub_pxe_call): Update prototype.
17914 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17916 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17917 * include/grub/i386/qemu/init.h: Removed.
17918 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17920 (grub_halt): Likewise.
17921 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17922 (grub_reboot): Likewise.
17923 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17924 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17925 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17927 2010-08-30 Robert Millan <rmh@gnu.org>
17929 * NEWS: Document addition of ZFS support in `grub-install' and
17932 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17934 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17937 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17939 Remove leftover embedding of font objects.
17941 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17942 * util/grub-install.in (font): Removed.
17943 * util/grub-mkimage.c (generate_image): Remove font support. All users
17946 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17948 Remove leftover embedding of font objects.
17950 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17951 * util/grub-install.in (font): Removed.
17952 * util/grub-mkimage.c (generate_image): Remove font support. All users
17955 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17957 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17958 Reported by: Ian Turner
17960 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17962 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17963 timeout to avoid indefinite boot stalling.
17965 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17967 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17968 (grub_env_write_color_highlight): Likewise.
17970 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17972 * grub-core/normal/term.c (print_more): Return to normal and not
17973 to standard state after printing "---MORE---".
17975 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17977 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17978 Mask out the bit 0x80 since it has other meaning that specifiing color.
17980 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17982 New relocator. Allows for more kernel support and more straightforward
17985 * Makefile.am (BOOTTARGET): New variable.
17986 (QEMU32): Likewise.
17987 (linux.init.x86_64): New target.
17988 (linux.init.i386): Likewise.
17989 (multiboot.elf): Likewise.
17990 (kfreebsd.elf): Likewise.
17991 (kfreebsd.aout): Likewise.
17992 (pc-chainloader.elf): Likewise.
17993 (pc-chainloader.bin): Likewise.
17994 (ntldr.elf): Likewise.
17995 (ntldr.bin): Likewise.
17996 (multiboot2.elf): Likewise.
17997 (kfreebsd.init.x86_64): Likewise.
17998 (kfreebsd.init.i386): Likewise.
17999 (knetbsd.init.i386): Likewise.
18000 (kopenbsd.init.i386): Likewise.
18001 (knetbsd.init.x86_64): Likewise.
18002 (kopenbsd.init.x86_64): Likewise.
18003 (linux-initramfs.i386): Likewise.
18004 (linux-initramfs.x86_64): Likewise.
18005 (kfreebsd-mfsroot.i386.img): Likewise.
18006 (knetbsd.image.i386): Likewise.
18007 (kopenbsd.image.i386): Likewise.
18008 (kopenbsd.image.x86_64): Likewise.
18009 (knetbsd.miniroot-image.i386.img): Likewise.
18010 (kfreebsd-mfsroot.x86_64.img): Likewise.
18011 (knetbsd.image.x86_64): Likewise.
18012 (knetbsd.miniroot-image.x86_64.img): Likewise.
18013 (kfreebsd-mfsroot.i386.gz): Likewise.
18014 (bootcheck-kfreebsd-i386): Likewise.
18015 (kfreebsd-mfsroot.x86_64.gz): Likewise.
18016 (bootcheck-kfreebsd-x86_64): Likewise.
18017 (knetbsd.miniroot-image.i386.gz): Likewise.
18018 (bootcheck-knetbsd-i386): Likewise.
18019 (bootcheck-kopenbsd-i386): Likewise.
18020 (bootcheck-kopenbsd-x86_64): Likewise.
18021 (knetbsd.miniroot-image.x86_64.gz): Likewise.
18022 (bootcheck-knetbsd-x86_64): Likewise.
18023 (bootcheck-linux-i386): Likewise.
18024 (bootcheck-linux-x86_64): Likewise.
18025 (bootcheck-linux16-i386): Likewise.
18026 (bootcheck-linux16-x86_64): Likewise.
18027 (bootcheck-multiboot): Likewise.
18028 (bootcheck-multiboot2): Likewise.
18029 (bootcheck-kfreebsd-aout): Likewise.
18030 (bootcheck-pc-chainloader): Likewise.
18031 (bootcheck-ntldr): Likewise.
18032 (CLEANFILES): Add new targets.
18033 (BOOTCHECKS): New variable.
18034 (.PHONY): Add bootchecks.
18035 (SUCCESSFUL_BOOT_STRING): New variable.
18036 (BOOTCHECK_TIMEOUT): Likewise.
18037 (bootcheck): New target
18038 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
18039 * configure.ac: Correct efiemu excuse.
18040 * docs/grub.texi (Supported kernels): New chapter.
18041 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
18042 include/grub/mm_private.h. Simplify inclusion of
18043 include/grub/boot.h, include/grub/loader.h
18044 and include/grub/msdos_partition.h
18045 (KERNEL_HEADER_FILES) [i386_coreboot]:
18046 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
18047 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
18048 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
18049 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
18050 include/grub/machine/loader.h.
18051 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18052 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18054 (pci.mod): Enable on i386-multiboot.
18055 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18056 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18058 (relocator.mod): Rewritten.
18059 (aout.mod): Enable on all x86.
18060 (bsd.mod): Likewise.
18061 (ntldr.mod): New module.
18062 (linux.mod): Use loader/i386/linux.c on all x86.
18063 (xnu.mod): Enable on all x86.
18064 (vga_text.mod): disable on EFI and QEMU.
18065 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18066 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18067 * grub-core/efiemu/loadcore.c: Likewise.
18068 * grub-core/efiemu/main.c: Likewise.
18069 (grub_efiemu_exit_boot_services): Removed.
18070 (grub_efiemu_finish_boot_services): Likewise.
18071 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18073 * grub-core/efiemu/i386/nocfgtables.c: New file.
18074 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18075 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18076 (grub_efi_finish_boot_services): Moved from here ...
18077 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18078 Fille finish memory map and related data.
18079 (finish_mmap_buf): New variable.
18080 (grub_efi_uintn_t finish_mmap_size): Likewise.
18081 (grub_efi_uintn_t finish_key): Likewise.
18082 (grub_efi_uintn_t finish_desc_size): Likewise.
18083 (grub_efi_uint32_t finish_desc_version): Likewise.
18084 (grub_efi_is_finished): Likewise.
18085 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18087 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18088 (grub_elf64_phdr_iterate): Likewise.
18089 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18090 (grub_os_area_size): Likewise.
18091 (grub_machine_init): Don't reserve os area.
18092 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18093 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18094 * grub-core/kern/i386/loader.S: Removed.
18095 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18096 (grub_os_area_size): Likewise.
18097 (grub_machine_init): Don't reserve os area.
18098 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18099 Don't call grub_dl_unload_all.
18100 Don't include loader.S.
18101 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18102 Declare the memory after _end as available.
18103 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
18104 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
18105 (GRUB_MM_ALLOC_MAGIC): Moved from here...
18106 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18107 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18108 * include/grub/mm_private.h (grub_mm_header): ... here.
18109 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18110 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
18111 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18112 (grub_mm_region): ..here. Removed addr. Added pre_size.
18114 * grub-core/kern/mm.c (base): Renamed to ...
18115 (grub_mm_base): ... this. Made global.
18116 (grub_real_malloc): Alloc from end of region.
18117 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18118 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18119 * grub-core/kern/powerpc/cache_flush.S: ... here.
18120 * grub-core/lib/efi/relocator.c: New file.
18121 * grub-core/lib/i386/relocator.c: Rewritten.
18122 * grub-core/lib/i386/relocator16.S: New file.
18123 * grub-core/lib/i386/relocator32.S: Likewise.
18124 * grub-core/lib/i386/relocator64.S: Likewise.
18125 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18126 * grub-core/lib/i386/relocator_common.S: New file.
18127 * grub-core/lib/ieee1275/relocator.c: Likewise.
18128 * grub-core/lib/mips/relocator.c: Rewritten.
18129 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18130 stylistic adjustments.
18131 * grub-core/lib/powerpc/relocator.c: New file.
18132 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18133 * grub-core/lib/relocator.c: Rewritten.
18134 * grub-core/lib/x86_64/relocator_asm.S: New file.
18135 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18136 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18137 (bsd_tag): New struct.
18138 (tags): New variable.
18139 (tags_last): Likewise.
18140 (netbsd_module): New struct.
18141 (netbsd_mods): New variable.
18142 (netbsd_mods_last): Likewise.
18143 (openbsd_opts): New parameter "serial".
18144 (OPENBSD_SERIAL_ARG): New definition.
18145 (netbsd_opts): New parameter "serial".
18146 (NETBSD_SERIAL_ARG): New definition.
18147 (grub_freebsd_add_meta): Reorganised into ...
18148 (grub_bsd_add_meta): ...this. All users updated.
18149 (grub_freebsd_add_mmap): Reorganised into ...
18150 (generate_e820_mmap): ...this...
18151 (grub_bsd_add_mmap): ...and this. All users updated.
18152 (grub_freebsd_list_modules): Use tags.
18153 (grub_netbsd_add_meta_module): New function.
18154 (grub_netbsd_list_modules): Likewise.
18155 (grub_freebsd_boot): Use relocator and finish EFI.
18156 (grub_openbsd_boot): Likewise.
18157 (grub_netbsd_setup_video): New function.
18158 (grub_netbsd_add_modules): Likewise.
18159 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18161 (grub_bsd_unload): Unload tags.
18162 (grub_bsd_load_aout): Use relocator.
18163 (grub_bsd_elf32_size_hook): New function.
18164 (grub_bsd_elf32_hook): Use relocator.
18165 (grub_bsd_elf64_size_hook): New function.
18166 (grub_bsd_elf64_hook): Use relocator.
18167 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18168 (grub_bsd_load): Zero-out openbsd_ramdisk.
18169 (grub_bsd_load): Use relocator.
18170 (grub_cmd_openbsd): Support serial.
18171 (grub_cmd_netbsd): Support modules.
18172 (grub_cmd_freebsd_module): Use relocator.
18173 (grub_netbsd_module_load): New function.
18174 (grub_cmd_netbsd_module): Likewise.
18175 (grub_cmd_openbsd_ramdisk): Likewise.
18176 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18178 (GRUB_MOD_FINI): Unregister new commands.
18179 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18180 (grub_freebsd_load_elfmodule_obj): Use relocator.
18181 (grub_freebsd_load_elfmodule): Likewise.
18182 (grub_freebsd_load_elf_meta): Likewise.
18183 (grub_netbsd_load_elf_meta): New function.
18184 (grub_openbsd_find_ramdisk): Likewise.
18185 * grub-core/loader/i386/bsd_helper.S: Removed.
18186 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18187 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18188 * grub-core/loader/i386/efi/linux.c: Likewise.
18189 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18190 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18191 (DEFAULT_VIDEO_MODE): Likewise.
18192 (real_mode_target): New variable.
18193 (prot_mode_target): Likewise.
18194 (initrd_mem_target): Likewise.
18195 (relocator): Likewise.
18196 (efi_mmap_buf): Likewise.
18197 (efi_mmap_size): Likewise.
18198 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18199 (free_pages): Use relocator.
18200 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18201 (grub_linux_setup_video): Return error.
18202 (grub_linux_trampoline_start): Removed.
18203 (grub_linux_trampoline_end): Likewise.
18204 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18205 andd video parameters depending on firmware.
18206 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18207 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18208 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18209 (grub_cmd_initrd): Use relocator.
18210 * grub-core/loader/i386/linux_trampoline.S: Removed.
18211 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18212 (elf_sec_entsize): Likewise.
18213 (elf_sec_shstrndx): Likewise.
18214 (elf_sections): Likewise.
18215 (grub_multiboot_load): Use relocator.
18216 (grub_multiboot_get_mbi_size): Account for sections.
18217 (grub_multiboot_make_mbi): Use relocator and support sections.
18218 (grub_multiboot_add_elfsyms): New function.
18219 (grub_multiboot_free_mbi): Free sections.
18220 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18221 (grub_linux_real_target): Likewise.
18222 (grub_linux_real_chunk): Likewise.
18223 (grub_linux16_prot_size): Likewise.
18224 (grub_linux16_boot): Use relocator.
18225 (grub_linux_unload): Unload relocator.
18226 (grub_cmd_linux): Use relocator.
18227 (grub_cmd_initrd): Likewise.
18228 * grub-core/loader/i386/pc/ntldr.c: New file.
18229 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18230 Don't try to guess CPU frequency.
18231 (grub_xnu_set_video): Stretch bitmap.
18232 (grub_xnu_boot): Use relocator.
18233 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18234 (grub_linux_unload): Free relocator.
18235 (grub_linux_load32): Use relocator.
18236 (grub_linux_load64): Likewise.
18237 (grub_cmd_initrd): Likewise.
18238 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18239 (grub_multiboot_unload): Unload relocator.
18240 (grub_cmd_multiboot): Use relocator.
18241 (grub_cmd_module): Likewise.
18242 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18243 Use relocator and support sections.
18244 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18245 (elf_sec_entsize): Likewise.
18246 (elf_sec_shstrndx): Likewise.
18247 (elf_sections): Likewise.
18248 (grub_multiboot_load): Use relocator.
18249 (grub_multiboot_get_mbi_size): Account for sections.
18250 (grub_multiboot_make_mbi): Use relocator and support sections.
18251 (grub_multiboot_add_elfsyms): New function.
18252 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18253 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18254 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18255 Prototype changed. All users updated.
18256 (grub_xnu_align_heap): Simplified.
18257 (grub_xnu_writetree_toheap): Likewise.
18258 (grub_xnu_unload): Unload relocator.
18259 (grub_cmd_xnu_kernel): Use relocator.
18260 (grub_cmd_xnu_kernel64): Likewise.
18261 (grub_xnu_register_memory): Simplified.
18262 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
18263 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18265 (grub_console_checkkey): Likewise.
18266 (grub_console_getkey): Likewise.
18267 (grub_console_getwh): Likewise.
18268 (grub_console_getxy): Likewise.
18269 (grub_console_gotoxy): Likewise.
18270 (grub_console_cls): Likewise.
18271 (grub_console_setcolorstate): Likewise.
18272 (grub_console_setcursor): Likewise.
18273 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18274 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18275 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18276 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18277 * grub-core/tests/boot/kernel-8086.S: Likewise.
18278 * grub-core/tests/boot/kernel-i386.S: Likewise.
18279 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18280 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18281 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18282 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18283 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18284 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18285 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18286 * grub-core/tests/boot/linux.cfg: Likewise.
18287 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18288 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18289 * grub-core/tests/boot/linux16.cfg: Likewise.
18290 * grub-core/tests/boot/multiboot.cfg: Likewise.
18291 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18292 * grub-core/tests/boot/ntldr.cfg: Likewise.
18293 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18294 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18295 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18297 * include/grub/dl.h (grub_dl_unload_all): Removed.
18298 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18299 (grub_efi_finish_boot_services): Change prototype.
18300 (grub_efi_is_finished): New variable.
18301 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18303 (grub_efiemu_finish_boot_services): Removed.
18304 (grub_machine_efiemu_init_tables): New prototype.
18305 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18306 (grub_elf64_phdr_iterate): Likewise.
18307 * include/grub/i386/bsd.h: Include relocator.h.
18308 (freebsd_tag_header): New struct.
18309 (grub_openbsd_bios_mmap): Removed.
18310 (grub_unix_real_boot): Removed.
18311 (grub_freebsd_load_elfmodule32): Changed prototype.
18312 (grub_freebsd_load_elfmodule_obj64): Likewise.
18313 (grub_freebsd_load_elf_meta32): Likewise.
18314 (grub_freebsd_load_elf_meta64): Likewise.
18315 (grub_freebsd_add_meta): Removed.
18316 (grub_netbsd_load_elf_meta32): New prototype.
18317 (grub_netbsd_load_elf_meta64): Likewise.
18318 (grub_bsd_add_meta): Likewise.
18319 (grub_openbsd_ramdisk_descriptor): New struct.
18320 (grub_openbsd_find_ramdisk32): New prototype.
18321 (grub_openbsd_find_ramdisk64): Likewise.
18322 * include/grub/i386/coreboot/loader.h: Removed.
18323 * include/grub/i386/efi/loader.h: Likewise.
18324 * include/grub/i386/ieee1275/loader.h: Likewise.
18325 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18327 * include/grub/i386/loader.h: Removed.
18328 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18330 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18331 (grub_phys_addr_t): New type.
18332 (grub_vtop): New inline function.
18333 (grub_map_memory): Likewise.
18334 (grub_unmap_memory): Likewise.
18335 * include/grub/i386/multiboot/loader.h: Removed.
18336 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18337 (NETBSD_BTINFO_CONSOLE): New definition.
18338 (NETBSD_BTINFO_SYMTAB): Likewise.
18339 (NETBSD_BTINFO_MODULES): Likewise.
18340 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18341 (grub_netbsd_bootinfo): New struct.
18342 (grub_netbsd_btinfo_common): Use explicit bitsize.
18343 (grub_netbsd_btinfo_mmap_entry): Removed.
18344 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18345 (grub_netbsd_btinfo_bootdisk): New struct.
18346 (grub_netbsd_btinfo_symtab): Likewise.
18347 (grub_netbsd_btinfo_serial): Likewise.
18348 (grub_netbsd_btinfo_modules): Likewise.
18349 (grub_netbsd_btinfo_framebuf): Likewise.
18350 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18351 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18353 (grub_openbsd_bootargs): Use explicit bitsize.
18354 (grub_openbsd_bootarg_console): New struct.
18355 (GRUB_OPENBSD_COM_MAJOR): New definition.
18356 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18357 * include/grub/i386/pc/efiemu.h: Removed.
18358 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18359 * include/grub/i386/qemu/loader.h: Removed.
18360 * include/grub/i386/relocator.h: Rewritten.
18361 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18362 * include/grub/mips/memory.h: New file.
18363 * include/grub/mips/multiboot.h: Rewritten.
18364 * include/grub/mips/relocator.h: Rewritten.
18365 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18366 (grub_vtop): New function.
18367 (grub_map_memory): Likewise.
18368 (grub_unmap_memory): Likewise.
18369 * include/grub/misc.h (ALIGN_DOWN): New definition.
18370 * include/grub/mm.h (grub_mm_check_real): New proto.
18371 (GRUB_MM_CHECK): New definition.
18372 * include/grub/mm_private.h: New file.
18373 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18374 (grub_multiboot_get_mbi_size): Removed.
18375 (grub_multiboot_make_mbi): Change prottype.
18376 (grub_multiboot_set_accepts_video): New proto.
18377 (grub_multiboot_add_elfsyms): Likewise.
18378 (grub_multiboot_payload_eip): New variable.
18379 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18381 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18383 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18384 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18385 * include/grub/powerpc/ieee1275/loader.h: Removed.
18386 * include/grub/powerpc/memory.h: New file.
18387 * include/grub/powerpc/relocator.h: Likewise.
18388 * include/grub/relocator.h: Likewise.
18389 * include/grub/relocator_private.h: Likewise.
18390 * include/grub/sparc64/ieee1275/loader.h: Removed.
18391 * include/grub/x86_64/memory.h: New file.
18392 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18393 (grub_xnu_heap_malloc): Likewise.
18394 (grub_xnu_heap_real_start): Removed.
18395 (grub_xnu_heap_start): Likewise.
18396 (grub_xnu_relocator): New variable.
18397 (grub_xnu_heap_target_start): Likewise.
18398 * tests/util/grub-shell.in: Support non-pc.
18399 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18401 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18403 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18405 (grub_bidi_logical_to_visual): Check that malloc succeded.
18406 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18408 (grub_xputs_normal): Likewise.
18410 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18412 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18415 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18417 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18419 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18421 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18423 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18425 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18428 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18430 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18432 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18434 * grub-core/normal/term.c (print_more): Fix a memory leak.
18435 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18436 (grub_xputs_normal): Likewise.
18438 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18440 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18441 the begining of the string
18443 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18445 * grub-core/script/script.c (grub_script_parse): Free parsed on
18448 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18450 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18453 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18455 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18458 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18460 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18461 (scroll_up): Fix a memory leak.
18463 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18465 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18468 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18470 Handle USB pendrives exposed as floppies.
18472 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18474 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18475 Check for partitions on all devices.
18477 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18479 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18480 (readkey): Likewise.
18482 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18484 Multiple variable names support to "export" command.
18486 * normal/context.c (grub_cmd_export): "export" command supports
18487 multiple variable names.
18489 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18491 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18492 --target=drive output to Mach device name.
18494 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18496 New Automake based build system for GRUB.
18498 * ABOUT-NLS: New file.
18499 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18500 in Makefile.util.def file.
18501 * Makefile.util.def: New file. Autogen build definitions file for
18503 * conf/Makefile.common: New file. Common variables for GRUB host
18504 utils and target modules.
18505 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18506 * docs/Makefile.am: New file. Automake file for docs.
18507 * gentpl.py: New file. Python script to generate Autogen
18509 * grub-core/Makefile.am: New file. GRUB target modules' rules
18510 that doesn't fit in Makefile.core.def file.
18511 * grub-core/Makefile.core.def: New file. Autogen build
18512 definitions file for GRUB target modules.
18513 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18514 specific setjmp.S file.
18515 * po/Makefile.am: New file.
18517 * .bzrignore: New ignores.
18518 * INSTALL: New requirements, without Ruby.
18519 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18520 * autogen.sh: Updated to invoke autogen as necessary.
18521 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18522 and defines for Automake conditionals.
18523 * geninit.sh: Refactoring.
18525 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18527 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18530 * include/grub/test.h: Fix functional test modules' naming.
18531 * grub-core/tests/example_functional_test.c: Fix test module name.
18533 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18534 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18535 * util/grub-editenv.c: Likewise.
18536 * util/grub-fstest.c: Likewise.
18537 * util/grub-mkdevicemap.c: Likewise.
18538 * util/grub-mkfont.c: Likewise.
18539 * util/grub-mkimage.c: Likewise.
18540 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18541 * util/grub-probe.c: Likewise.
18542 * util/grub-script-check.c: Likewise.
18543 * util/i386/pc/grub-setup.c: Likewise.
18544 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18546 * tests/util/grub-shell.in: Fix override directory path.
18547 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18548 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18550 * util/lvm.c: Update #includes.
18551 * util/raid.c: Likewise.
18552 * util/resolve.c: Likewise.
18553 * grub-core/bus/emu/pci.c: Likewise.
18554 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18555 * grub-core/lib/posix_wrap/string.h: Likewise.
18556 * grub-core/kern/emu/main.c: Likewise.
18558 * grub-core/gensymlist.sh: New file. Script for generating kernel
18560 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18562 * grub-core/gentrigtables.c: Fix unused variable warnings.
18564 * Makefile.in: Removed.
18565 * conf/any-emu.rmk: Removed.
18566 * conf/common.rmk: Removed.
18567 * conf/i386-coreboot.rmk: Removed.
18568 * conf/i386-efi.rmk: Removed.
18569 * conf/i386-ieee1275.rmk: Removed.
18570 * conf/i386-multiboot.rmk: Removed.
18571 * conf/i386-pc.rmk: Removed.
18572 * conf/i386-qemu.rmk: Removed.
18573 * conf/i386.rmk: Removed.
18574 * conf/mips-yeeloong.rmk: Removed.
18575 * conf/mips.rmk: Removed.
18576 * conf/powerpc-ieee1275.rmk: Removed.
18577 * conf/sparc64-ieee1275.rmk: Removed.
18578 * conf/tests.rmk: Removed.
18579 * conf/x86-efi.rmk: Removed.
18580 * conf/x86_64-efi.rmk: Removed.
18581 * gendistlist.sh: Removed.
18582 * geninitheader.sh: Removed.
18583 * genkernsyms.sh.in: Removed.
18584 * genmk.rb: Removed.
18585 * gensymlist.sh.in: Removed.
18586 * mkinstalldirs: Removed.
18588 * grub-core/boot: ... to here.
18590 * grub-core/bus: ... to here.
18591 * commands: Moved ...
18592 * grub-core/commands: ... to here.
18594 * grub-core/disk: ... to here.
18595 * efiemu: Moved ...
18596 * grub-core/efiemu: ... to here.
18598 * grub-core/font: ... to here.
18600 * grub-core/fs: ... to here.
18601 * gencmdlist.sh: Moved ...
18602 * grub-core/gencmdlist.sh: ... to here.
18603 * genemuinit.sh: Moved ...
18604 * grub-core/genemuinit.sh: ... to here.
18605 * genemuinitheader.sh: Moved ...
18606 * grub-core/genemuinitheader.sh: ... to here.
18607 * genfslist.sh: Moved ...
18608 * grub-core/genfslist.sh: ... to here.
18609 * genhandlerlist.sh: Moved ...
18610 * grub-core/genhandlerlist.sh: ... to here.
18611 * genmoddep.awk: Moved ...
18612 * grub-core/genmoddep.awk: ... to here.
18613 * genmodsrc.sh: Moved ...
18614 * grub-core/genmodsrc.sh: ... to here.
18615 * genpartmaplist.sh: Moved ...
18616 * grub-core/genpartmaplist.sh: ... to here.
18617 * genparttoollist.sh: Moved ...
18618 * grub-core/genparttoollist.sh: ... to here.
18619 * genterminallist.sh: Moved ...
18620 * grub-core/genterminallist.sh: ... to here.
18621 * gentrigtables.c: Moved ...
18622 * grub-core/gentrigtables.c: ... to here.
18623 * genvideolist.sh: Moved ...
18624 * grub-core/genvideolist.sh: ... to here.
18625 * gettext: Moved ...
18626 * grub-core/gettext: ... to here.
18627 * gfxmenu: Moved ...
18628 * grub-core/gfxmenu: ... to here.
18629 * gnulib: Moved ...
18630 * grub-core/gnulib: ... to here.
18632 * grub-core/hello: ... to here.
18634 * grub-core/hook: ... to here.
18636 * grub-core/io: ... to here.
18638 * grub-core/kern: ... to here.
18640 * grub-core/lib: ... to here.
18641 * loader: Moved ...
18642 * grub-core/loader: ... to here.
18644 * grub-core/mmap: ... to here.
18645 * normal: Moved ...
18646 * grub-core/normal: ... to here.
18647 * partmap: Moved ...
18648 * grub-core/partmap: ... to here.
18649 * parttool: Moved ...
18650 * grub-core/parttool: ... to here.
18651 * script: Moved ...
18652 * grub-core/script: ... to here.
18654 * grub-core/term: ... to here
18655 * tests/example_functional_test.c: Moved ...
18656 * grub-core/tests/example_functional_test.c: ... to here.
18657 * tests/lib/functional_test.c: Moved ...
18658 * grub-core/tests/lib/functional_test.c: ... to here.
18659 * tests/lib/test.c: Moved ...
18660 * grub-core/tests/lib/test.c: ... to here.
18662 * grub-core/video: ... to here.
18664 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18666 Replace --enable-grub-emu-modules with grub-emu-lite.
18668 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18671 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18672 * kern/emu/full.c: New file. For grub-emu specific initialization.
18673 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18674 * kern/emu/main.c: Call initialization function grub_emu_init.
18676 * Makefile.in: Include grub-emu-lite in install.
18677 * commands/parttool.c: Use grub_no_autoload to differentiate
18678 between grub-emu and grub-emu-lite.
18679 * include/grub/misc.h: New variable grub_no_autoload.
18681 * conf/any-emu.rmk: New rules for grub-emu-lite.
18682 * configure.ac: Remove --enable-grub-emu-modules.
18683 * genmk.rb: Cleanup unnecessary rules.
18684 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18686 * normal/main.c: Don't load list files on grub-emu-lite.
18687 * util/misc.c (grub_arch_sync_caches): Removed.
18689 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18691 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18692 grub-mkimage rather than grub-mkelfimage.
18693 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18695 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18697 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18698 a key after CapsLock or NumLock. It's just a qemu bug.
18700 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18702 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18703 needed by libusb wrapper.
18705 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18707 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18709 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18711 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18712 --nounzip is passed.
18714 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18716 USB hotunplugging and USB serial support.
18718 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18719 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18720 (grub_uhci_transfer): Respect timeout and set *actual.
18721 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18722 non-standard length.
18723 (grub_usb_device_attach): Autoload modules.
18724 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18725 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18726 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18728 (grub_usb_add_hub): Fill nports and children.
18729 (attach_root_port): Receive hub instead of controller.
18730 All users updated. Fill hub->devices.
18731 (grub_usb_root_hub): Allocate hub->devices.
18732 (detach_device): New function.
18733 (poll_nonroot_hub): Fill children and detach devices.
18734 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18735 actual arguments. All users updated.
18736 (grub_usb_bulk_read_extended): New function.
18737 * bus/usb/serial/common.c: New file.
18738 * bus/usb/serial/ftdi.c: Likewise.
18739 * bus/usb/serial/pl2303.c: Likewise.
18740 * commands/terminal.c (handle_command): Support wildcard.
18741 * commands/usbtest.c: Output "Unknown" instead of empty string.
18742 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18743 (usbserial_common_mod_SOURCES): New variable.
18744 (usbserial_common_mod_CFLAGS): Likewise.
18745 (usbserial_common_mod_LDFLAGS): Likewise.
18746 (pkglib_MODULES): Add usbserial_pl2303.mod.
18747 (usbserial_pl2303_mod_SOURCES): New variable.
18748 (usbserial_pl2303_mod_CFLAGS): Likewise.
18749 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18750 (pkglib_MODULES): Add usbserial_ftdi.mod.
18751 (usbserial_ftdi_mod_SOURCES): New variable.
18752 (usbserial_ftdi_mod_CFLAGS): Likewise.
18753 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18754 (pkglib_MODULES): Add serial.mod.
18755 (serial_mod_SOURCES): New variable.
18756 (serial_mod_CFLAGS): Likewise.
18757 (serial_mod_LDFLAGS): Likewise.
18758 * conf/i386-pc.rmk: Likewise.
18759 * conf/mips-yeeloong.rmk: Likewise.
18760 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18761 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18762 * disk/usbms.c (first_available_slot): New variable.
18763 (grub_usbms_attach): Don't reuse free slots due to potential cache
18765 * include/grub/serial.h: Moved to ..
18766 * include/grub/ns8250.h: ...this.
18767 * include/grub/serial.h: New file.
18768 * include/grub/term.h (grub_term_poll_usb): New variable.
18769 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18770 readkey. All users updated.
18771 (grub_terminfo_output_state): Pass term to put.
18772 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18773 (grub_usb_controller_dev): Add timeout and actual arguments to
18774 transfer. All users updated.
18775 (grub_usb_interface): New field detach_data.
18776 (grub_usb_device): New fields children and nports.
18777 (grub_usb_ep_type_t): New type.
18778 (grub_usb_get_ep_type): New function.
18779 (grub_usb_bulk_read_extended): Likewise.
18780 * include/grub/usbdesc.h (grub_usb_desc): New type.
18781 * include/grub/usbserial.h: New file.
18782 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18783 * kern/term.c (grub_term_poll_usb): New variable.
18784 (grub_getkey): Call grub_term_poll_usb if set.
18785 (grub_checkkey): Likewise.
18786 (grub_getkeystatus): Likewise.
18787 * term/serial.c: Moved controller-specific parts to ...
18788 * term/ns8250.c: ... here.
18789 * term/serial.c: Mostly rewritten.
18790 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18793 2010-08-20 Robert Millan <rmh@gnu.org>
18795 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18796 a separate module and maybe other interesting combinations.
18798 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18799 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18800 (kfreebsd_entry): Add generic filesystem module load routine.
18801 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18803 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18805 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18806 "numcenter" (I misunderstood the purpose of this entry).
18807 * docs/grub.texi (sendkey): Likewise.
18809 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18811 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18812 status flag options; simply omitting the option is equivalent and
18813 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18814 (keysym_table): Rename "num5numlock" to "numlock".
18815 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18816 can uniformly say that only the last of multiple `sendkey'
18817 invocations has any effect.
18818 * docs/grub.texi (sendkey): New section.
18820 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18822 * commands/i386/pc/sendkey.c (options): Fix three typos.
18824 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18826 Implement sendkey support.
18828 * commands/i386/pc/sendkey.c: New file.
18829 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18830 (sendkey_mod_SOURCES): New variable.
18831 (sendkey_mod_CFLAGS): Likewise.
18832 (sendkey_mod_LDFLAGS): Likewise.
18834 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18836 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18837 fix warnings from Autoconf.
18839 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18841 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18842 to avoid false positives with some assemblers that output things
18843 like "someprefix_func" as part of their output.
18845 2010-08-15 Robert Millan <rmh@gnu.org>
18847 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18849 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18850 grub_get_libzfs_handle() errors.
18852 2010-08-14 Robert Millan <rmh@gnu.org>
18854 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18855 filesystem is not ZFS.
18857 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18859 Fix for misspelled color names defaulting to black/black (bug
18860 reported by Doug Nazar)
18862 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18863 status to prototype.
18864 * normal/color.c (grub_parse_color_name_pair): Return failure
18866 (grub_env_write_color_normal): Ignore bad color names.
18867 (grub_env_write_color_highlight): Likewise.
18868 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18870 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18872 "shift" command support to GRUB script.
18874 * include/grub/script_sh.h (grub_script_shift): New prototype.
18875 * script/execute.c (grub_script_shift): New function.
18876 * script/main.c (grub_script_init): Register shift command.
18877 (grub_script_fini): Unregister shift command.
18878 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18880 * tests/grub_script_shift.in: New testcase.
18881 * conf/tests.rmk: Rules for new testcase.
18883 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18885 "continue" command support to GRUB script.
18887 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18888 (grub_script_break): Continue support.
18889 * script/main.c (grub_script_init): Register continue command.
18890 (grub_script_fini): Unregister continue command.
18892 * tests/grub_script_continue.in: New testcase.
18893 * conf/tests.rmk: Rules for new testcase.
18895 2010-08-12 BVK Chaitanya <bvk@dbook>
18897 "break" command support to GRUB script.
18899 * conf/common.rmk: Rule updates to grub-script-check.
18900 * include/grub/misc.h (grub_min): New function.
18901 * include/grub/script_sh.h (grub_script_init): New prototype.
18902 (grub_script_fini): New prototype.
18903 (grub_script_break): New prototype.
18904 * script/main.c (grub_script_init): New function.
18905 (grub_script_fini): New function.
18906 * script/execute.c (grub_script_break): New function.
18907 * normal/main.c: Calls to grub_script_{init,fini}.
18908 * util/grub-script-check.c (grub_script_break): New function.
18910 * tests/grub_script_break.in: New testcase.
18911 * conf/tests.rmk: Rules for new test case.
18913 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18915 Function parameters support to GRUB script.
18917 * script/yylex.l (VARIABLE): Regular expression update.
18918 * script/function.c (grub_script_function_call): Moved ...
18919 * script/execute.c (grub_script_function_call): ... to here.
18920 (grub_script_execute_arglist_to_argv): Removed.
18921 (grub_script_arglist_to_argv): New function.
18922 * script/argv.c: New file.
18923 (grub_script_argv_free): New function.
18924 (grub_script_argv_next): Likewise.
18925 (grub_script_argv_append): Likewise.
18926 (grub_script_argv_split_append): Likewise.
18927 * include/grub/script_sh.h (grub_script_argv): New struct.
18928 (grub_script_argv_free): New function.
18929 (grub_script_argv_next): Likewise.
18930 (grub_script_argv_append): Likewise.
18931 (grub_script_argv_split_append): Likewise.
18933 * conf/common.rmk (normal.mod): New source script/argv.c.
18935 * tests/grub_script_echo1.in: More tests.
18936 * tests/grub_script_vars1.in: Likewise.
18937 * tests/grub_script_functions.in: New test case.
18938 * conf/tests.rmk: Rules for new testcase.
18940 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18942 Remove grub_script_cmdblock struct.
18944 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18945 * script/parser.y: Likewise.
18946 * script/execute.c: Rename cmdblock suffix to cmdlist.
18947 * script/script.c: Likewise.
18948 * util/grub-script-check.c: Likewise.
18950 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18952 * .bzrignore: add grub-macho2img
18954 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18956 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18958 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18960 Remove the dump of sm712 initialisation sequence.
18962 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18963 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18964 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18965 (GRUB_VGA_CR_*): Added many registers.
18966 (GRUB_VGA_SR_*): Likewise.
18967 (GRUB_VGA_GR_*): Likewise.
18968 (grub_vga_write_arx): New function.
18969 (grub_video_hw_config): New struct.
18970 (grub_vga_set_geometry): New function.
18971 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18972 GRUB_PCI_CLASS_SUBCLASS_VGA.
18973 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18974 * video/sm712.c (grub_sm712_write_reg): New function
18975 (grub_sm712_read_reg): Likewise.
18976 (grub_sm712_sr_write): Likewise.
18977 (grub_sm712_gr_write): Likewise.
18978 (grub_sm712_cr_write): Likewise.
18979 (grub_sm712_write_arx): Likewise.
18980 (grub_sm712_cr_shadow_write): Likewise.
18981 (grub_sm712_write_dda_lookup): Likewise.
18982 (grub_video_sm712_setup): Initialise the video rather then
18983 blindly replay the dump.
18984 (main) [TEST]: Add a routine to be able to compile as standalone for
18986 * video/sm712_init.c (sm712_init): Removed.
18987 (sm712_sr_seq1): New array.
18988 (sm712_sr_seq2): Likewise.
18990 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18992 * include/grub/vga.h: Add missing grub/pci.h include.
18994 2010-08-10 Yves Blusseau <blusseau@zetam.org>
18996 * util/grub-macho2img.c (main): fix typo
18998 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19000 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
19001 (grub_vga_gr_read): Likewise.
19002 (grub_vga_cr_write): Likewise.
19003 (grub_vga_cr_read): Likewise.
19004 (grub_vga_sr_write): Likewise.
19005 (grub_vga_sr_read): Likewise.
19006 (grub_vga_palette_read): Likewise.
19007 (grub_vga_palette_write): Likewise.
19008 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
19009 (grub_sm712_sr_read): New function.
19010 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
19011 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
19013 2010-08-09 Robert Millan <rmh@gnu.org>
19015 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
19016 out unused variables on non-ZFS build.
19018 2010-08-08 Robert Millan <rmh@gnu.org>
19020 Fix path generation for sub-filesystems in ZFS.
19022 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
19025 2010-08-08 Robert Millan <rmh@gnu.org>
19027 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
19029 2010-08-08 Robert Millan <rmh@gnu.org>
19031 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
19032 exist, issue a proper error message (rely on `ls' for translated
19035 2010-08-08 Robert Millan <rmh@gnu.org>
19037 Fix grub-probe invocation.
19039 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
19041 2010-08-04 Robert Millan <rmh@gnu.org>
19043 * configure.ac: Remove checks for getfsstat() and getmntany().
19044 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
19045 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
19046 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
19047 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
19048 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
19050 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
19051 via find_mount_point_from_dir() and getfsstat() / getmntany().
19053 2010-08-04 Robert Millan <rmh@gnu.org>
19055 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19056 (grub_find_zpool_from_mount_point): Merge into ...
19057 (grub_find_zpool_from_dir): ... this.
19058 * kern/emu/misc.c: Likewise.
19061 (grub_make_system_path_relative_to_its_root): Replace
19062 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19063 with grub_find_zpool_from_dir().
19064 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19066 2010-08-04 Robert Millan <rmh@gnu.org>
19068 Support OpenSolaris in ZFS device resolution.
19070 * configure.ac: Check for getmntany().
19071 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19072 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19075 2010-08-03 Robert Millan <rmh@gnu.org>
19077 Fix grub-emu build.
19079 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19080 * include/grub/emu/misc.h: ... here.
19082 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19083 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19085 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19086 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19087 (grub_get_libzfs_handle): Move to ...
19088 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19089 (grub_get_libzfs_handle): ... here.
19091 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19093 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19094 as command name case.
19096 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
19098 * disk/raid.c (insert_array): Select unique numbers for named arrays
19099 as well, for use as keys in the disk cache.
19101 2010-08-01 Robert Millan <rmh@gnu.org>
19103 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19104 kFreeBSD device name, except on ZFS where the filesystem label is
19106 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19107 `/boot/zfs/zpool.cache'.
19108 Set mountfrom kernel variable using ${kfreebsd_device}.
19110 2010-08-01 Robert Millan <rmh@gnu.org>
19112 Make it even harder to use uninitialized `libzfs_handle' (and
19113 make the interface a bit simpler).
19115 * include/grub/util/misc.h (grub_util_init_libzfs)
19116 (libzfs_handle): Remove.
19117 (grub_get_libzfs_handle): New prototype.
19119 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19121 (grub_util_init_libzfs): Remove.
19122 (grub_get_libzfs_handle): New function.
19124 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19125 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19126 accessing `libzfs_handle' directly.
19128 2010-08-01 Robert Millan <rmh@gnu.org>
19130 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19131 (grub_find_zpool_from_mount_point): New function prototypes.
19133 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19134 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19136 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19137 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19138 `static' attribute.
19140 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19141 finding zpool from mount point into ...
19142 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19144 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19145 requested path is part of a ZFS pool, use
19146 grub_find_zpool_from_mount_point() to detect its filesystem name,
19147 and generate a path with `/fsname@path' syntax.
19149 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19151 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19152 (void) rather than () so that this is a proper prototype.
19154 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19156 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19158 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19160 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19161 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19163 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19165 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19167 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19169 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19171 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19173 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19174 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19175 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19176 disable gfxpayload.
19177 (Shell-like scripting): Add real content.
19178 (Serial terminal): Suggest `terminal_input serial; terminal_output
19179 serial' rather than putting the two commands on separate lines,
19180 since console input will be inoperative after the first command.
19181 (menuentry): Document --class, --users, and --hotkey options.
19182 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19183 Vladimir Serbinenko).
19185 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19186 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19188 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19190 2010-08-01 Robert Millan <rmh@gnu.org>
19192 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19193 (grub_find_zpool_from_mount_point): New function prototypes.
19195 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19196 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19198 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19199 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19200 `static' attribute.
19202 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19203 finding zpool from mount point into ...
19204 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19206 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19207 requested path is part of a ZFS pool, use
19208 grub_find_zpool_from_mount_point() to detect its filesystem name,
19209 and generate a path with `/fsname@path' syntax.
19211 2010-08-01 Robert Millan <rmh@gnu.org>
19213 Prevent accidental use of uninitialized libzfs_handle.
19215 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19216 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19217 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19219 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19221 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19222 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19224 2010-08-01 Robert Millan <rmh@gnu.org>
19226 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
19228 2010-07-31 Robert Millan <rmh@gnu.org>
19230 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19232 2010-07-31 Robert Millan <rmh@gnu.org>
19234 * kern/emu/misc.c: Add missing license header.
19236 2010-07-31 Robert Millan <rmh@gnu.org>
19238 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19240 * include/grub/util/libnvpair.h: Include `<config.h>'.
19241 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19242 declaring libnvpair prototypes ourselves.
19243 * include/grub/util/libzfs.h: Include `<config.h>'.
19244 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19245 declaring libzfs prototypes ourselves.
19247 (libzfs_handle): Moved to ...
19248 * include/grub/util/misc.h (libzfs_handle): ... here.
19249 Include `<grub/util/libzfs.h>'.
19251 2010-07-30 Robert Millan <rmh@gnu.org>
19253 * include/grub/emu/misc.h: Add missing license header.
19255 2010-07-30 Robert Millan <rmh@gnu.org>
19257 Enable `grub-probe -t device' resolution on ZFS.
19259 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19260 * include/grub/util/libnvpair.h: New file.
19261 * include/grub/util/libzfs.h: New file.
19263 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19264 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19265 `<grub/util/libnvpair.h>'.
19266 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19268 (find_mount_point_from_dir): New static function.
19269 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19271 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19272 find_root_device_from_libzfs() before ressorting to find_root_device().
19274 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19276 * util/misc.c: Include `<grub/util/libzfs.h>'.
19277 (grub_util_init_libzfs): New function.
19278 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19279 [HAVE_LIBZFS] (fini_libzfs): New static function.
19280 (grub_util_init_libzfs): New function.
19281 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19283 2010-07-30 Robert Millan <rmh@gnu.org>
19285 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19286 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19287 `warn_unused_result' attribute.
19288 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19289 (grub_xasprintf, grub_xvasprintf): Likewise.
19290 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19292 2010-07-29 Robert Millan <rmh@gnu.org>
19294 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19295 (probe): Handle `PRINT_FS_LABEL'.
19296 (main): Handle `-t fs_label'.
19298 2010-07-29 Robert Millan <rmh@gnu.org>
19300 * configure.ac: Remove grub-mkisofs checks.
19302 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19304 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19305 Reported by: Lennart Sorensen.
19307 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19309 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19310 prior to terminal_input/terminal_output separation. It's been over 1.5
19311 years and those versions weren't widely deployed.
19313 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
19315 * disk/raid.c (insert_array): Don't count named arrays when looking
19316 for unused array numbers.
19317 Reported and tested by: Michael Guntsche.
19319 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19321 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19322 implementation of this so that grub-emu links again, with a note
19323 that this should support hotplugging in the future.
19325 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19327 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19329 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19331 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19333 (grub_loopback_close): Remove empty function.
19334 (grub_loopback_dev): Remove close method.
19336 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19338 Disable EFI cursor when the EFI console becomes inactive.
19340 * term/efi/console.c (grub_efi_console_init): New function.
19341 (grub_efi_console_fini): New function.
19342 (grub_console_term_output): Register init and fini methods.
19344 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19346 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19349 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19351 * disk/loopback.c (grub_loopback): Replace filename with file.
19352 (delete_loopback): Handle new semantics.
19353 (grub_cmd_loopback): Likewise.
19354 (grub_loopback_iterate): Likewise.
19355 (grub_loopback_close): Likewise.
19357 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19359 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19361 Reported by: Tito Keitel.
19363 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19365 * docs/grub.texi (Naming convention): Document new naming convention.
19367 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19368 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19370 Generate device.map in something closer to the old ordering.
19372 * util/deviceiter.c (struct device): New declaration.
19373 (compare_file_names): Rename to ...
19374 (compare_devices): ... this. Sort by kernel name in preference to
19375 the stable by-id name, but keep the latter as a fallback comparison.
19376 Update header comment.
19377 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19378 of `struct device' rather than of plain file names.
19380 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19382 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19385 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19387 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19389 (setv1table): Likewise.
19391 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19393 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19394 removing the homehost if present.
19395 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19396 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19397 removing the homehost if present.
19398 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19400 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19402 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19403 parameter. Set its pointer target to 0.
19404 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19405 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19406 `data_offset' value from the superblock for 1.x metadata.
19407 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19408 data on the device.
19409 (insert_array): Record the start sector of data on the device.
19410 (grub_raid_register): Pass start_sector parameters to
19411 grub_raid_list->detect and insert_array.
19412 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19414 (struct grub_raid): Add start_sector parameter to `detect'.
19416 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19417 __attribute__ ((packed)), leaving a comment.
19418 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19419 (grub_mdraid_detect_09): ... here and ...
19420 (grub_mdraid_detect_1x): ... here.
19422 2010-07-20 Peter Henn <peter.henn@web.de>
19424 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19425 chunk size and disk size, which are already given as sector counts
19426 as distinct from the 0.90 units. Fetch the correct device number
19427 from the role table instead of using the table index.
19429 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19431 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19432 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19433 (WriteMostly1): New macro.
19434 Set array->name to NULL for metadata format 0.90. Add support for
19435 metadata 1.x. Fix some comments.
19436 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19438 * util/getroot.c (grub_util_get_grub_dev): Add support for
19439 /dev/md/name style devices.
19441 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19443 * .bzrignore: Ignore 20_linux_xen.
19445 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19447 * util/import_unicode.py: Remove unnecessary imports.
19449 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19451 Hotplugging and USB hub support.
19453 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19454 (grub_ohci): Likewise.
19455 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19456 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19457 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19458 (GRUB_OHCI_CTRL_EDS): Likewise.
19459 (GRUB_OHCI_BULK_EDS): Likewise.
19460 (GRUB_OHCI_TDS): Likewise.
19461 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19462 (grub_ohci_ed_phys2virt): New function.
19463 (grub_ohci_virt_to_phys): Likewise.
19464 (grub_ohci_td_phys2virt): Likewise.
19465 (grub_ohci_td_virt2phys): Likewise.
19466 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19468 (grub_ohci_find_ed): New function.
19469 (grub_ohci_alloc_td): Likewise.
19470 (grub_ohci_free_td): Likewise.
19471 (grub_ohci_free_tds): Likewise.
19472 (grub_ohci_transfer): Use previously allocated memory.
19473 (grub_ohci_portstatus): Reset status changed bit.
19474 (grub_ohci_detect_dev): Supply status changed.
19475 (grub_ohci_fini_hw): Free memory.
19476 (grub_ohci_restore_hw): Reallocate memory.
19477 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19478 Reset status change.
19479 (grub_uhci_detect_dev): Supply status_change.
19480 * bus/usb/usb.c (attach_hooks): New var.
19481 (grub_usb_device_attach): New function.
19482 (grub_usb_register_attach_hook_class): Likewise.
19483 (grub_usb_unregister_attach_hook_class): Likewise.
19484 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19485 (grub_usb_add_hub): Reset connection changed bit.
19486 (attach_root_port): New function.
19487 (grub_usb_root_hub): Likewise.
19488 (poll_nonroot_hub): Likewise.
19489 (grub_usb_poll_devices): Likewise.
19490 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19491 * disk/usbms.c (grub_usbms_open): Use device hooks.
19492 (grub_usbms_iterate) :Poll devices.
19493 (grub_usbms_finddevs): Split into ...
19494 (grub_usbms_attach): ... this ...
19495 (grub_usbms_attach): ... and this.
19496 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19498 (grub_usb_interface): New fields attached and detach_hook.
19499 (grub_usb_attach_hook_class): New type.
19500 (grub_usb_attach_desc): New struct.
19501 (grub_usb_register_attach_hook_class): New function.
19502 (grub_usb_unregister_attach_hook_class): Likewise.
19503 (grub_usb_poll_devices): Likewise.
19504 (grub_usb_device_attach): Likewise.
19505 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19506 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19508 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19510 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19511 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19512 delta determination style. Works with most NetBSD partitions too.
19514 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19516 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19517 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19519 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19521 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19523 2010-07-14 Anton Blanchard <anton@samba.org>
19525 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19528 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19530 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19532 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19534 * kern/partition.c (grub_partition_check_containment): New function to
19535 check that a partition is physically contained in a parent. Since
19536 offsets are relative (and non-negative), this reduces to checking that
19537 the partition ends before its parent.
19538 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19539 (grub_partition_iterate): Likewise.
19540 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19542 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19543 partitions that start before their parent, and add debug printfs.
19545 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19547 * Makefile.in (.SUFFIX): Spell correctly, as ...
19548 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19549 bare module name without `.mod', e.g. `test') tried to invoke a
19552 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19554 * README: Point to the Info manual.
19556 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19558 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19559 2nd superblock position from partition size.
19561 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19563 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19564 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19565 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19568 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19570 Restructure SCSI .id handling.
19571 Reported and tested by: Aleš Nesrsta.
19573 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19574 (grub_atapi_dev): Changed .name to "ata". New field .id.
19575 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19576 (grub_usbms_dev): New field .id.
19577 * disk/scsi.c (grub_scsi_iterate): Generate name.
19578 (grub_scsi_open): Parse name.
19579 * include/grub/scsi.h (grub_make_scsi_id): New function.
19580 (grub_scsi_dev): Change iterate and open to number instead of naming
19581 busses. All users updated.
19582 (grub_scsi): Remove name. Add .bus.
19584 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19586 * commands/help.c (grub_cmd_help): Fix a typo.
19588 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19590 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19591 Reported and tested by: Colin Watson.
19593 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19595 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19598 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19600 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19602 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19604 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19607 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19609 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19610 and disk/raid6_recover.c.
19611 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19612 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19614 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19616 * term/gfxterm.c (repaint_schedulded): Rename to ...
19617 (repaint_scheduled): ... this. Update all callers.
19618 (repaint_was_schedulded): Rename to ...
19619 (repaint_was_scheduled): ... this. Update all callers.
19621 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19623 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19624 which we expect to be handled by upper layers.
19626 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19628 * bus/usb/usbhub.c: #include time.h header.
19630 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19632 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19633 entry_name also for entries without stat blocks (e.g. ".."); fixes
19634 corruption of the first entry in a directory.
19636 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19638 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19639 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19640 doesn't work otherwise.
19642 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19644 * docs/grub.texi (Features): Update list of supported file systems.
19645 (GNU/Linux): Update for GRUB 2.
19646 (Serial terminal): Remove mention of --disable-serial, which was a
19647 GRUB Legacy configure option. Update instructions to use
19648 `terminal_input' and `terminal_output' rather than `terminal'.
19649 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19650 configuration' and `Installing GRUB using grub-install'.
19651 (Menu entry editor): Update for GRUB 2.
19652 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19653 Document new -a, -u, and -v options.
19654 (initrd): New section.
19655 (initrd16): New section.
19656 (linux): New section.
19657 (linux16): New section.
19658 (search): The `var' argument to `--set' is optional.
19659 (GRUB only offers a rescue shell): Go into a little more detail on
19662 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19664 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19666 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19668 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19669 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19671 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19673 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19674 install_prefix, in line with install_dos_part and install_bsd_part.
19675 Add new prefix variable, which is copied to install_prefix after
19676 comparing core.img in memory with the one read from disk in the
19677 no-embedding case, and use that rather than overwriting
19678 install_prefix immediately when installing to a partition.
19679 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19682 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19684 * configure.ac: Avoid == in test command, it's not portable.
19685 * util/grub.d/30_os-prober.in: Likewise.
19687 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19689 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19691 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19693 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19694 multiple (top-level) partmaps.
19696 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19698 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19699 Reported by: Tino Keitel.
19701 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19703 Bidi and diacritics support.
19705 * Makefile.in (widthspec.bin): New target.
19706 (widthspec.h): Likewise.
19707 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19708 * autogen.sh: Generate unidata.c.
19709 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19710 * commands/ls.c (grub_ls_list_devices): Likewise.
19711 (grub_ls_list_files): Likewise.
19712 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19713 (grub_mini_cmd_lsmod): Likewise.
19714 * commands/read.c: Likewise.
19715 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19716 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19717 * lib/arg.c (grub_arg_show_help): Likewise.
19718 * lib/crypto.c (grub_password_get): Likewise.
19719 * normal/auth.c (grub_username_get): Likewise.
19720 * normal/misc.c (grub_normal_print_device_info): Likewise.
19721 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19722 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19723 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19724 (normal/charset.c_DEPENDENCIES): New variable.
19725 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19726 (pkglib_MODULES): Remove charset.mod.
19727 (charset_mod_SOURCES): Removed.
19728 (charset_mod_CFLAGS): Likewise.
19729 (charset_mod_LDFLAGS): Likewise.
19730 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19731 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19733 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19734 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19735 (kernel_img_HEADERS): Add terminfo.h.
19736 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19737 Fill ->font. Reverse ascii bitmaps.
19738 (grub_font_get_xheight): New function.
19739 * font/font.c (grub_font_get_string_width): Moved from here ...
19740 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19741 * font/font.c (grub_font_draw_string): Moved from here ...
19742 * gfxmenu/font.c (grub_font_draw_string): ... here.
19743 * font/font.c (grub_font_dup_glyph): New function.
19744 (grub_font_blit_glyph): Likewise.
19745 (grub_font_blit_glyph_mirror): Likewise.
19746 (blit_comb): Likewise.
19747 (grub_font_construct_dry_run): Likewise.
19748 (grub_font_get_constructed_device_width): Likewise.
19749 (grub_font_construct_glyph): Likewise.
19750 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19751 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19752 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19753 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19754 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19755 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19756 (grub_font_get_xheight): New proto.
19757 (grub_font_get_constructed_device_width): Likewise.
19758 (grub_font_construct_glyph): Likewise.
19759 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19760 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19761 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19762 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19763 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19764 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19765 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19766 (grub_console_getcharwidth): Likewise.
19767 * include/grub/misc.h (grub_xputs): New proto.
19768 (grub_puts): Inlined.
19769 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19770 (grub_normal_get_line_counter): Removed.
19771 (grub_install_newline_hook): Likewise.
19772 (grub_normal_get_char_counter): New proto.
19773 (grub_normal_reset_more): Likewise.
19774 (grub_xputs_normal): Likewise.
19775 * include/grub/powerpc/ieee1275/console.h: Removed.
19776 * include/grub/sparc64/ieee1275/console.h: Likewise.
19777 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19778 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19779 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19780 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19781 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19782 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19783 (grub_term_input): Pass reference to self. All users updated.
19784 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19785 Pass reference to self. New fields normal_color, highlight_color and
19786 data. All users updated.
19787 (grub_putchar): Removed.
19788 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19789 (grub_unicode_estimate_width): New function.
19790 (grub_term_getcharwidth): Add defaults.
19791 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19792 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19793 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19794 (grub_cls): Remove EXPORT_FUNC.
19795 (grub_setcolorstate): Inline.
19796 (grub_newline_hook): Removed.
19797 * include/grub/terminfo.h: Rewritten. All users updated.
19798 * include/grub/unicode.h: New file.
19799 * include/grub/video.h (grub_video_signed_rect): New type.
19800 * kern/emu/console.c (grub_console_highlight_color): Removed.
19801 (grub_console_normal_color): Likewise.
19802 (grub_console_standard_color): Made static.
19803 (grub_ncurses_putchar): Remove mapping.
19804 (grub_ncurses_getcharwidth): Removed.
19805 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19806 (grub_ncurses_setcolor): Removed.
19807 (grub_ncurses_getcolor): Likewise.
19808 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19809 (grub_console_putchar): ... this.
19810 (grub_console_putchar): Handle argument difference.
19811 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19812 console_init_early and console_init_lately.
19813 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19814 * kern/misc.c (grub_puts): Removed.
19815 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19816 (grub_vsnprintf_real): Remove str = NULL support.
19817 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19818 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19819 * kern/term.c (grub_putcode): Renamed to ...
19820 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19821 (grub_putchar): Removed.
19822 (grub_xputs_dumb): New function.
19823 (grub_xputs): New variable.
19824 * lib/charset.c: Move from here ...
19825 * normal/charset.c: ... to here.
19826 (grub_ucs4_to_utf8): New function.
19827 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19828 (join_types): New variable.
19829 (unpack_join): New function.
19830 (bidi_types): New variable.
19831 (unpack_bidi): New function.
19832 (get_bidi_type): Likewise.
19833 (get_join_type): Likewise.
19834 (is_mirrored): Likewise.
19835 (grub_unicode_get_comb_type): Likewise.
19836 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19837 (is_type_after): Likewise.
19838 (grub_unicode_aglomerate_comb): Likewise.
19839 (bidi_line_wrap): Likewise.
19840 (grub_bidi_line_logical_to_visual): Likewise.
19841 (grub_bidi_logical_to_visual): Likewise.
19842 (grub_unicode_mirror_code): Likewise.
19843 (grub_unicode_shape_code): Likewise.
19844 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19845 Don't use grub_putchar.
19846 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19847 (grub_normal_reader_init): Likewise.
19848 (grub_xputs_saved): New variable.
19849 (GRUB_MOD_INIT): Set grub_xputs.
19850 (GRUB_MOD_FINI): Restore grub_xputs.
19851 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19852 (menu_init): Avoid printing gfxmenu error.
19853 (show_menu): Use grub_normal_get_char_counter.
19854 * normal/menu_entry.c (update_screen): Fix out-of-array.
19855 (complete): Avoid NULL dereferencing.
19856 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19857 * normal/menu_text.c (print_spaces): Removed.
19858 (grub_print_ucs4): Likewise.
19859 (grub_print_message_indented): Use grub_print_ucs4.
19860 (print_message): Use grub_putcode.
19861 (print_entry): Hanlde diacritics.
19862 * normal/term.c (term_state): New type.
19863 (grub_more_lines): Removed.
19864 (term_states): New variable.
19865 (grub_normal_line_counter): Renamed to ..
19866 (grub_normal_char_counter): ...this. All users updated.
19867 (grub_normal_get_line_counter): Renamed to ...
19868 (grub_normal_get_char_counter): ... this.
19869 (grub_normal_reset_more): New function.
19870 (process_newline): Removed.
19871 (print_more): New function.
19872 (grub_install_newline_hook): Removed.
19873 (map_code): New function.
19874 (grub_puts_terminal): Use grub_print_ucs4.
19875 (putglyph): New function.
19876 (putcode_real): Likewise.
19877 (grub_putcode): Use putcode_real.
19878 (get_maxwidth): New function.
19879 (get_startwidth): Likewise.
19880 (print_ucs4_terminal): Likewise.
19881 (find_term_state): Likewise.
19882 (put_glyphs_terminal): Likewise.
19883 (print_backlog): Likewise.
19884 (print_ucs4_real): Likewise.
19885 (grub_print_ucs4): Likewise.
19886 (grub_xputs_normal): Likewise.
19887 * term/efi/console.c (grub_console_putchar): Output diacritics.
19888 (grub_console_getcharwidth): Removed.
19889 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19890 * term/gfxterm.c (clear_char): Free chars.
19891 (scroll_up): Avoid leaking memory.
19892 (grub_gfxterm_putchar): Support diacritics.
19893 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19894 * term/i386/pc/console.c (grub_console_term_output): Declare as
19895 GRUB_TERM_CODE_TYPE_VGA.
19896 * term/i386/pc/vga.c (grub_vga_term): Declare as
19897 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19898 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19899 GRUB_TERM_CODE_TYPE_VGA.
19900 * term/i386/vga_common.c (map_char): Removed.
19901 (grub_console_putchar): Likewise.
19902 (grub_console_getcharwidth): Likewise.
19903 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19904 (colors): Reordered to match terminfo.
19905 (grub_ofconsole_normal_color): Removed.
19906 (grub_ofconsole_writeesc): Likewise.
19907 (grub_ofconsole_highlight_color): Likewise.
19908 (grub_ofconsole_getcharwidth): Likewise.
19909 (grub_ofconsole_setcolorstate): Likewise.
19910 (grub_ofconsole_setcolor): Likewise.
19911 (grub_ofconsole_getcolor): Likewise.
19912 (grub_ofconsole_readkey): Renamed to ...
19913 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19915 (grub_ofconsole_checkkey): Removed.
19916 (grub_ofconsole_getkey): Likewise.
19917 (grub_ofconsole_getxy): Likewise.
19918 (grub_ofconsole_gotoxy): Likewise.
19919 (grub_ofconsole_cls): Likewise.
19920 (grub_ofconsole_refresh): Likewise.
19921 (grub_ofconsole_terminfo_input): New struct.
19922 (grub_ofconsole_terminfo_output): Likewise.
19923 (grub_ofconsole_term_input): Use terminfo.
19924 (grub_ofconsole_term_output): Likewise.
19925 (grub_console_init): Split into ...
19926 (grub_console_init_early): ...this and ...
19927 (grub_console_init_lately): ...this. Use terminfo.
19928 (grub_ofconsole_putchar): Renamed to ...
19929 (put): ... this. Remove mapping.
19930 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19931 * term/serial.c: Simplify using terminfo.
19934 (keep_track): Likewise.
19935 (registered): Likewise.
19936 (input_buf): Likewise.
19937 (npending): Likewise.
19938 (serial_translate_key_sequence): Likewise.
19939 (fill_input_buf): Likewise.
19940 (grub_serial_checkkey): Likewise.
19941 (grub_serial_getkey): Likewise.
19942 (grub_serial_getxy): Likewise.
19943 (grub_serial_gotoxy): Likewise.
19944 (grub_serial_putchar): Likewise.
19945 (grub_serial_cls): Likewise.
19946 (grub_serial_setcolorstate): Likewise.
19947 (grub_serial_setcursor): Likewise.
19948 (serial_hw_init): Use serial_hw_fetch.
19949 (grub_serial_terminfo_input): New variable.
19950 (grub_serial_terminfo_output): Likewise.
19951 (grub_serial_term_input): Use terminfo.
19952 (grub_serial_term_output): Likewise.
19953 * term/terminfo.c (putstr): Use put.
19954 (grub_terminfo_all_free): New function
19955 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19956 (grub_terminfo_output_register): New function.
19957 (grub_terminfo_output_unregister): Likewise.
19958 (grub_terminfo_getxy): Likewise.
19959 (grub_terminfo_readkey): Likewise.
19960 (grub_terminfo_checkkey): Likewise.
19961 (grub_terminfo_getkey): Likewise.
19962 (grub_terminfo_input_init): Likewise.
19963 (print_terminfo): Likewise.
19964 (grub_cmd_terminfo): Handle encoding.
19965 (grub_terminfo_gotoxy): Track position.
19966 (grub_terminfo_cls): Likewise.
19967 (grub_terminfo_putchar): Likewise.
19968 (grub_terminfo_setcolorstate): Handle colors
19969 (grub_terminfo_cursor_on): This ...
19970 (grub_terminfo_cursor_off): ... and this merged into ...
19971 (grub_terminfo_setcursor): ... this.
19972 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19973 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19974 * unicode/BidiMirroring.txt: Likewise.
19975 * unicode/UnicodeData.txt: Likewise.
19976 * unicode/COPYING: Likewise.
19977 * util/grub-editenv.c (grub_putchar): Removed.
19978 (grub_xputs_real): New function.
19979 (grub_xputs): New variable.
19980 * util/grub-fstest.c (grub_putchar): Removed.
19981 (grub_xputs_real): New function.
19982 (grub_xputs): New variable.
19983 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19984 (grub_xputs_real): New function.
19985 (grub_xputs): New variable.
19986 * util/grub-probe.c (grub_putchar): Removed.
19987 (grub_xputs_real): New function.
19988 (grub_xputs): New variable.
19989 * util/grub-script-check.c (grub_putchar): Removed.
19990 (grub_xputs_real): New function.
19991 (grub_xputs): New variable.
19992 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19993 (grub_xputs_real): New function.
19994 (grub_xputs): New variable.
19995 * util/import_unicode.py: New file.
19996 * util/grub-mkfont.c (ft_errmsgs): New array.
19997 (grub_glyph_info): Make bitmap a pointer.
19998 (file_formats): New type WIDTH_SPEC.
19999 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
20000 (options): Add width-spec.
20002 (add_char): Renamed to ...
20003 (add_glyph): ... this.
20004 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
20005 (glyph_replace): New type.
20006 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
20007 (add_char): New function.
20008 (add_subst): Likewise.
20009 (process_cursive): Likewise.
20010 (add_font): Handle GSUB.
20011 (write_font_width_spec): New function.
20012 (main): Sort glyphs.
20013 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
20014 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
20015 * kern/term.c (grub_cls): Moved from here...
20016 * normal/term.c (grub_cls): ... here.
20018 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20020 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
20021 suitable for using within the format argument of printf when
20022 converting grub_size_t.
20023 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
20024 "x" to convert grub_size_t arguments.
20026 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20028 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
20030 (list_get_minimal_size): Take selection box into account.
20032 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20034 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
20037 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20039 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
20040 devices when iterating over /dev/disk/by-id; they will be handled
20041 later if appropriate, which they aren't always (e.g. LVM).
20043 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20045 * include/grub/misc.h (grub_reboot): Declare as noreturn.
20046 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
20048 (grub_halt): Likewise.
20049 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
20051 (grub_halt): Don't return, even if all of shut-down, power-off, and
20054 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20056 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20057 arguments, not three.
20059 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20061 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20062 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20063 LVM-on-RAID is handled correctly.
20065 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20067 * docs/grub.texi (Changes from GRUB Legacy): New section.
20068 (Future): Fix typo.
20070 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20072 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20073 grub.d/README accidentally ends up executable for one reason or
20074 another. Ignore it.
20076 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20078 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20079 (gpt_partition_map_iterate): Support non-512B sectors.
20081 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20083 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20084 Tested by: Seth Goldberg.
20086 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20088 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20089 Properly align mbi.
20090 Reported by: Seth Goldberg.
20092 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20094 * util/grub-mkrescue.in: Avoid module duplication.
20096 2010-07-01 Sean Finney <seanius@seanius.net>
20098 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20100 2010-07-01 Sean Finney <seanius@seanius.net>
20102 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20104 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20106 * disk/lvm.c (grub_lvm_checkvalue): New function.
20107 (grub_lvm_check_flag): Likewise.
20109 2010-07-01 Robert Millan <rmh@gnu.org>
20111 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20112 Support 'p' as partition separator on kernel of FreeBSD (used
20114 (grub_util_biosdisk_get_grub_dev): Likewise.
20116 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20118 Yeeloong firmware port.
20120 * boot/mips/yeeloong/fwstart.S: New file.
20121 * bus/cs5536.c (gpiodump): New const.
20122 (set_io_space): New function.
20123 (set_iod): Likewise.
20124 (set_p2d): Likewise.
20125 (grub_cs5536_init_geode): Likewise.
20126 * commands/mips/yeeloong/lsspd.c: New file.
20127 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20128 (serial_mod_SOURCES): New variable.
20129 (serial_mod_CFLAGS): Likewise.
20130 (serial_mod_LDFLAGS): Likewise.
20131 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20132 term/terminfo.c and term/tparm.c.
20133 (pkglib_IMAGES): Add fwstart.img.
20134 (fwstart_img_SOURCES): New variable.
20135 (fwstart_img_CFLAGS): Likewise.
20136 (fwstart_img_ASFLAGS): Likewise.
20137 (fwstart_img_LDFLAGS): Likewise.
20138 (fwstart_img_FORMAT): Likewise.
20139 (pkglib_MODULES): Add lsspd.mod.
20140 (lsspd_mod_SOURCES): New variable.
20141 (lsspd_mod_CFLAGS): Likewise.
20142 (lsspd_mod_LDFLAGS): Likewise.
20143 (pkglib_MODULES): Add halt.mod.
20144 (halt_mod_SOURCES): New variable.
20145 (halt_mod_CFLAGS): Likewise.
20146 (halt_mod_LDFLAGS): Likewise.
20147 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20148 (serial_mod_SOURCES): Removed.
20149 (serial_mod_CFLAGS): Likewise.
20150 (serial_mod_LDFLAGS): Likewise.
20151 * disk/ata.c (check_device): New function.
20152 (grub_ata_device_initialize): Use check_device.
20153 (grub_ata_iterate): Recheck devices.
20154 (grub_ata_open): Likewise.
20155 (grub_atapi_iterate): Likewise.
20156 (grub_atapi_open): Likewise.
20157 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20158 (GRUB_ATA_CH1_PORT1): Likewise.
20159 (GRUB_ATA_CH0_PORT2): Likewise.
20160 (GRUB_ATA_CH1_PORT2): Likewise.
20161 * include/grub/mips/loongson.h: New file.
20162 * include/grub/mips/yeeloong/ec.h: Likewise.
20163 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20164 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20165 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20166 * include/grub/misc.h (grub_halt): Declare as noreturn.
20167 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20168 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20169 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20170 (UART_ENABLE_DTRRTS): Likewise.
20171 (UART_ENABLE_MODEM): Removed.
20172 (UART_ENABLE_OUT2): New const.
20173 * include/grub/term.h (grub_term_register_input_active): New function.
20174 (grub_term_register_output_active): Likewise.
20175 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20177 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20178 (init_pci): New function.
20179 (grub_machine_init): Execute platform init when firmware. Init serial.
20180 (grub_halt): Implement.
20181 (grub_exit): Likewise.
20182 (grub_reboot): Likewise.
20183 * term/serial.c (serial_hw_init): Update macros.
20184 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20185 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20186 (image_targets): New target mipsel-yeeloong-flash.
20187 (generate_image): Support IMAGE_YEELOONG_FLASH.
20188 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20189 (grub_video_sm712_setup): Init card.
20190 (grub_video_sm712_set_palette): Removed.
20191 * video/sm712_init.c: New file.
20193 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
20195 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20196 PATH when running help2man and then run it on the unadorned
20197 executable names, rather than passing $(builddir)/* paths to
20198 help2man. This avoids the build directory ending up in generated
20201 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20203 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20204 to avoid accidents when debugging with 'sh -x'.
20205 * util/grub-mkrescue.in: Likewise.
20206 * util/grub.d/00_header.in: Likewise.
20207 * util/grub.d/10_hurd.in: Likewise.
20208 * util/grub.d/10_kfreebsd.in: Likewise.
20209 * util/grub.d/10_linux.in: Likewise.
20210 * util/grub.d/10_netbsd.in: Likewise.
20211 * util/grub.d/10_windows.in: Likewise.
20212 * util/grub.d/20_linux_xen.in: Likewise.
20213 * util/grub.d/30_os-prober.in: Likewise.
20214 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20216 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20218 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20219 last character in the buffer.
20220 Reported by: Vladimir Serbinenko.
20222 2010-06-29 Robert Millan <rmh@gnu.org>
20224 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20225 (Command-line and menu entry commands): Document `badram' command.
20227 2010-06-28 Robert Millan <rmh@gnu.org>
20229 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20230 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20231 command using ${GRUB_BADRAM} as parameter.
20233 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20235 * docs/grub.texi (Device map): New section.
20236 (Themes): New section (stub).
20237 * Makefile.in (docs/grub.info): The info documentation now builds
20238 without errors. Make sure it stays that way.
20240 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20242 Use normal parser for menu entries.
20243 Reported by: Thomas Frauendorfer
20245 * include/grub/parser.h (grub_parser_execute): Don't export.
20246 * normal/menu.c (grub_menu_execute_entry_real): New function.
20247 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20249 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20251 * docs/grub.texi (Embedded configuration): New section (replacing
20252 old "Preset Menu" stub).
20253 (Images): New section.
20254 (configfile): Note that any menu entries defined in `file' are shown
20257 2010-06-28 Josh Triplett <josh@joshtriplett.org>
20259 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20261 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20263 * util/grub-install.in: Add --debug-image= option.
20265 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20267 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20270 * util/deviceiter.c (check_device): Rename to ...
20271 (check_device_readable_unique): ... this. Update all callers.
20272 Maintain and check a list of which devices (by canonicalized name)
20273 have already been seen.
20274 (clear_seen_devices): New function.
20275 (compare_file_names) [__linux__]: New function.
20276 (grub_util_iterate_devices): Clear the list of seen devices on exit
20277 and (just in case) on entry.
20278 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20279 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20280 seen-devices list, superseded by general code in check_device.
20282 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20284 * commands/cat.c (options): New variable.
20285 (grub_cmd_cat): Parse options. If the --dos option is given, print
20286 DOS-style "\r\n" line endings as simple newlines (Debian bug
20288 (GRUB_MOD_INIT): Use extcmd.
20289 (GRUB_MOD_FINI): Likewise.
20290 * docs/grub.texi (cat): Document --dos.
20292 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20294 XEN with Linux grub-mkconfig support.
20296 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20297 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20298 GRUB_CMDLINE_XEN_DEFAULT.
20299 * util/grub.d/20_linux_xen.in: New file.
20301 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20303 Initialise VGA video on qemu ourselves.
20305 * boot/i386/qemu/boot.S: Don't call 0xc000.
20306 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20307 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20308 (kernel_img_HEADERS): Add pci.h.
20309 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20310 * configure.ac: Force unifont on qemu and yeeloong.
20311 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20312 (grub_vga_palette_write): Use correct register.
20313 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20314 Call grub_qemu_init_cirrus.
20315 * kern/i386/qemu/init.c: New file.
20316 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20318 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20320 2010-06-26 Pavel Roskin <proski@gnu.org>
20322 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20325 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20327 * docs/grub.texi (Simple configuration): Explain that
20328 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20329 set to `true' to disable their respective recovery entries, not
20332 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20334 Make the `source' command slightly faster.
20336 * normal/main.c (grub_normal_execute): Don't re-read list files when
20339 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20341 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20342 field position and mask size to red fields from mode_info, not
20344 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20345 Remove redundant tag->common.framebuffer_type assignment.
20346 Reported by: Seth Goldberg.
20348 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20350 Sync up other versions of the Linux loader with Robert Millan's
20351 change of 2010-01-09, "Make loader output a bit more user-friendly".
20353 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20355 (grub_cmd_linux): Likewise.
20356 (grub_cmd_initrd): Likewise.
20357 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20358 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20360 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20362 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20363 larger than MEMORY_MAP_SIZE.
20365 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20367 Fix parallel build.
20369 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20371 * script/parser.y: #include grub_script.tab.h header.
20373 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20375 Support >3GiB and <16MiB RAM in i386-qemu.
20377 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20378 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20379 (grub_lower_mem): Removed.
20380 (grub_upper_mem): Likewise.
20381 (mem_size): Made static.
20382 (above_4g): New variable.
20383 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20384 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20387 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20389 Cirrus 5446 and Bochs video cards support.
20391 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20393 (video_cirrus_mod_SOURCES): New variable.
20394 (video_cirrus_mod_CFLAGS): Likewise.
20395 (video_cirrus_mod_LDFLAGS): Likewise.
20396 (video_bochs_mod_SOURCES): Likewise.
20397 (video_bochs_mod_CFLAGS): Likewise.
20398 (video_bochs_mod_LDFLAGS): Likewise.
20399 * include/grub/vga.h: New file.
20400 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20401 (grub_video_fb_set_page_t): New type.
20402 (grub_video_fb_setup): New prototype.
20403 (grub_video_fb_swap_buffers): Likewise.
20404 (grub_video_fb_get_info_and_fini): Likewise.
20405 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20406 (CRTC_DATA_PORT): Likewise.
20407 (CRTC_CURSOR): Likewise.
20408 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20409 (CRTC_CURSOR_ADDR_LOW): Likewise.
20410 (CRTC_CURSOR_DISABLE): Likewise.
20411 (update_cursor): Use grub_vga_cr_write.
20412 (grub_vga_text_setcursor): Likewise.
20413 * video/bochs.c: New file.
20414 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20415 (palette): Likewise.
20416 (palette_size): Likewise.
20417 (framebuffer): New variable.
20418 (grub_video_fb_init): Use 'framebuffer'.
20419 (grub_video_fb_fini): Likewise.
20420 (grub_video_fb_get_info): Likewise.
20421 (grub_video_fb_get_palette): Likewise.
20422 (grub_video_fb_set_palette): Likewise.
20423 (grub_video_fb_set_viewport): Likewise.
20424 (grub_video_fb_get_viewport): Likewise.
20425 (grub_video_fb_map_color): Likewise.
20426 (grub_video_fb_map_rgb): Likewise.
20427 (grub_video_fb_map_rgba): Likewise.
20428 (grub_video_fb_unmap_color): Likewise.
20429 (grub_video_fb_unmap_color_int): Likewise.
20430 (grub_video_fb_fill_rect): Likewise.
20431 (grub_video_fb_blit_bitmap): Likewise.
20432 (grub_video_fb_blit_render_target): Likewise.
20433 (grub_video_fb_scroll): Likewise.
20434 (grub_video_fb_create_render_target): Likewise.
20435 (grub_video_fb_doublebuf_blit_init): Likewise.
20436 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20437 (doublebuf_pageflipping_update_screen): New function.
20438 (doublebuf_pageflipping_init): Likewise.
20439 (grub_video_fb_setup): Likewise.
20440 (grub_video_fb_swap_buffers): Likewise.
20441 (grub_video_fb_get_info_and_fini): Likewise.
20442 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20444 (doublebuf_pageflipping_commit): Restructured into ...
20445 (doublebuf_pageflipping_set_page): ... this.
20446 (doublebuf_pageflipping_update_screen): Removed.
20447 (doublebuf_pageflipping_init): Likewise.
20448 (double_buffering_init): Likewise.
20449 (grub_video_vbe_setup): Use grub_video_fb_setup.
20450 (grub_video_vbe_swap_buffers): Removed.
20451 (grub_video_vbe_set_active_render_target): Likewise.
20452 (grub_video_vbe_get_active_render_target): Likewise.
20453 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20454 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20455 grub_video_fb_set_active_render_target and
20456 grub_video_fb_get_active_render_target.
20457 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20458 (SEQUENCER_DATA_PORT): Likewise.
20459 (MAP_MASK_REGISTER): Likewise.
20460 (CRTC_ADDR_PORT): Likewise.
20461 (CRTC_DATA_PORT): Likewise.
20462 (START_ADDR_HIGH_REGISTER): Likewise.
20463 (START_ADDR_LOW_REGISTER): Likewise.
20464 (GRAPHICS_ADDR_PORT): Likewise.
20465 (GRAPHICS_DATA_PORT): Likewise.
20466 (READ_MAP_REGISTER): Likewise.
20467 (INPUT_STATUS1_REGISTER): Likewise.
20468 (INPUT_STATUS1_VERTR_BIT): Likewise.
20469 (get_map_mask): Use grub_vga_sr_read.
20470 (set_map_mask): Use grub_vga_sr_write.
20471 (set_read_map): Use grub_vga_gr_write.
20472 (set_start_address): Use grub_vga_cr_write.
20473 * video/sm712.c (framebuffer): Remove leftover fields.
20475 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20477 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20478 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20479 instead. Replace the gfxterm backend check with a check that
20480 ${GRUB_PREFIX}/video.lst is non-empty.
20481 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20483 (load_video): New generated function. Call it before loading
20484 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20485 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20486 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20487 * docs/grub.texi (Simple configuration): Document
20488 GRUB_VIDEO_BACKEND.
20490 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20492 Use video functions in linux and xnu loaders.
20494 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20495 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20496 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20497 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20498 loader/i386/pc/linux.c.
20499 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20500 (find_line_len): Removed.
20501 (find_framebuf): Likewise.
20502 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20503 * loader/i386/efi/xnu.c: Removed.
20504 * loader/i386/pc/xnu.c: Moved from here...
20505 * loader/i386/xnu.c: ...here.
20507 Enable priorities in video drivers.
20509 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20510 (grub_video_adapter): New field prio.
20511 (grub_video_register): Respect prio when inserting.
20512 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20513 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20514 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20515 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20516 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20517 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20518 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20522 * include/grub/video.h (grub_video_driver_id_t): New value
20523 GRUB_VIDEO_DRIVER_SDL.
20524 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20526 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20528 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20529 argument to printf.
20530 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20532 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20534 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20535 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20537 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20539 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20540 directly, and recommend grub-install instead.
20541 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20543 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20545 Fix i386-pc prefix handling with nested partitions (Debian bug
20546 #585068). Note that the case where the core image is booted using
20547 multiboot and relocated from its original location still requires
20550 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20551 with "(,", fill the boot drive in between those two characters, but
20552 expect that a full partition specification including partition map
20554 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20555 specified, write a prefix without the drive name but including a
20556 full partition specification.
20558 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20560 * util/grub-mkconfig.in: Ignore non-option arguments, for
20561 compatibility with older versions (before 2010-06-12) which did the
20562 same. In particular, this makes it easier to ship an update-grub
20563 wrapper which is compatible with that used with GRUB Legacy (Debian
20566 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20568 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20569 for manual page generation.
20571 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20573 * po/POTFILES: Remove leftover commands/handler.c.
20575 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20577 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20578 left this script non-functional.
20580 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20582 * docs/man/grub-emu.h2m: New file.
20584 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20586 * docs/grub.texi (Commands): Document reduced command set in rescue
20588 (cpuid): New section.
20590 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20592 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20593 new partition naming style.
20594 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20596 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20598 Add "-o grub.iso" like cmdline options support.
20600 * util/grub-install.in: Improve cmdline option parsing.
20601 * util/grub-mkconfig.in: Likewise.
20602 * util/grub-mkrescue.in: Likewise.
20603 * util/grub-reboot.in: Likewise.
20604 * util/grub-set-default.in: Likewise.
20605 * util/i386/efi/grub-install.in: Likewise.
20606 * util/ieee1275/grub-install.in: Likewise.
20607 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20609 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20611 * .bzrignore: Ignore 41_custom.
20613 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20615 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20617 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20619 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20620 prototype declarations.
20622 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20623 generating fs, partmap, and video lists.
20624 * include/grub/fs.h (grub_fs_register): Omit prototype if
20625 GRUB_LST_GENERATOR is defined.
20626 * include/grub/partition.h (grub_partition_map_register): Likewise.
20627 * include/grub/video.h (grub_video_register): Likewise.
20629 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20631 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20633 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20635 * util/grub-mkrescue.in: Support --xorriso argument.
20637 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20639 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20640 Suggested by: Thomas Schmitt.
20642 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20644 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20645 Suggested by: Thomas Schmitt.
20647 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20649 custom.cfg support.
20651 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20652 * util/grub.d/41_custom.in: New file.
20654 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20656 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20657 been merged back into normal.
20659 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20661 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20662 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20664 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20666 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20667 when generating manual pages.
20668 * docs/man/grub-bin2h.h2m: New file.
20669 * docs/man/grub-editenv.h2m: New file.
20670 * docs/man/grub-fstest.h2m: New file.
20671 * docs/man/grub-install.h2m: New file.
20672 * docs/man/grub-macho2img.h2m: New file.
20673 * docs/man/grub-mkconfig.h2m: New file.
20674 * docs/man/grub-mkdevicemap.h2m: New file.
20675 * docs/man/grub-mkfont.h2m: New file.
20676 * docs/man/grub-mkimage.h2m: New file.
20677 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20678 * docs/man/grub-mkrelpath.h2m: New file.
20679 * docs/man/grub-mkrescue.h2m: New file.
20680 * docs/man/grub-ofpathname.h2m: New file.
20681 * docs/man/grub-pe2elf.h2m: New file.
20682 * docs/man/grub-probe.h2m: New file.
20683 * docs/man/grub-reboot.h2m: New file.
20684 * docs/man/grub-script-check.h2m: New file.
20685 * docs/man/grub-set-default.h2m: New file.
20686 * docs/man/grub-setup.h2m: New file.
20688 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20690 Use FOR_* macros instead of *_iterate whenever possible.
20692 * commands/handler.c: Removed.
20693 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20694 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20695 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20696 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20697 (grub_probe_SOURCES): Remove kern/parser.c.
20698 (util/grub-script-check.c_DEPENDENCIES): Removed.
20699 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20700 and grub_script_check_init.c.
20701 (grub_script_check_init.lst): Removed.
20702 (grub_script_check_init.h): Likewise.
20703 (grub_script_check_init.c): Likewise.
20704 (pkglib_MODULES): Remove handler.mod and sh.mod.
20705 (handler_mod_SOURCES): Removed.
20706 (handler_mod_CFLAGS): Likewise.
20707 (handler_mod_LDFLAGS): Likewise.
20708 (normal_mod_SOURCES): Remove normal/handler.c.
20709 Add script/main.c, script/script.c, script/execute.c,
20710 script/function.c, script/lexer.c, grub_script.tab.c
20711 and grub_script.yy.c.
20712 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20713 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20714 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20715 (grub_setup_SOURCES): Remove kern/parser.c.
20716 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20717 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20718 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20719 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20720 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20721 (grub_setup_SOURCES): Remove kern/parser.c.
20722 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20723 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20724 * include/grub/command.h (grub_command_iterate): Removed.
20725 (FOR_COMMANDS): New macro.
20726 * include/grub/dl.h (grub_dl): New member next.
20727 (grub_dl_iterate): Removed.
20728 (grub_dl_head): New variable declaration.
20729 (FOR_DL_MODULES): New macro.
20730 * include/grub/fs.h: Include list.h.
20731 (grub_fs): Make next first element.
20732 (grub_fs_list): New variable declaration.
20733 (grub_fs_register): Make inline.
20734 (grub_fs_unregister): Likewise.
20735 (grub_fs_iterate): Removed.
20736 (FOR_FILESYSTEMS): New macro.
20737 * include/grub/handler.h: Removed.
20738 * include/grub/list.h (grub_list_hook_t): Removed.
20739 (grub_list_test_t): Likewise.
20740 (grub_list_pop): Likewise.
20741 (grub_list_iterate): Likewise.
20742 (grub_list_insert): Likewise.
20743 (FOR_LIST_ELEMENTS): New macro.
20744 * include/grub/parser.h (grub_parser_class): Removed.
20745 (grub_parser_register): Likewise.
20746 (grub_parser_unregister): Likewise.
20747 (grub_parser_get_current): Likewise.
20748 (grub_parser_set_current): Likewise.
20749 (grub_register_rescue_parser): Likewise.
20750 (grub_rescue_parse_line): New function.
20751 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20752 * include/grub/script_sh.h (grub_script_function_list): New variable
20754 (FOR_SCRIPT_FUNCTIONS): New macro.
20755 (grub_script_function_iterate): Removed.
20756 (grub_normal_parse_line): New prototype.
20757 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20758 (FOR_DISABLED_TERM_INPUTS): Likewise.
20759 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20760 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20761 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20763 (grub_video_register): Inline.
20764 (grub_video_unregister): Likewise.
20765 (grub_video_adapter_list): New variable declaration.
20766 (grub_video_iterate): Removed.
20767 (FOR_VIDEO_ADAPTERS): New macro.
20768 * kern/dl.c (grub_dl_list): Removed. All users updated.
20769 (grub_dl_iterate): Removed.
20770 * kern/fs.c (grub_fs_list): Make global.
20771 (grub_fs_register): Removed.
20772 (grub_fs_unregister): Likewise.
20773 (grub_fs_iterate): Likewise.
20774 * kern/handler.c: Removed.
20775 * kern/list.c (grub_list_pop): Removed.
20776 (grub_list_iterate): Likewise.
20777 (grub_list_insert): Likewise.
20778 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20779 (grub_prio_list_insert): Don't use grub_list_insert.
20780 * kern/main.c (grub_register_rescue_parser): Don't call
20781 grub_register_rescue_parser.
20782 * kern/parser.c (grub_parser_class): Removed.
20783 (grub_parser_execute): Use grub_rescue_parse_line.
20784 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20785 (grub_rescue_parser): Removed.
20786 (grub_register_rescue_parser): Likewise.
20787 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20788 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20789 (grub_auth_check_authentication): Likewise.
20790 * normal/completion.c (iterate_command): Removed.
20791 (grub_normal_do_completion): Use FOR_COMMANDS.
20792 * normal/handler.c: Removed.
20793 * normal/main.c (read_config_file): Remove parser changing.
20794 (grub_normal_execute): Don't call read_handler_list.
20795 (grub_normal_read_line_real): Statically allocate prompt.
20796 (grub_cmdline_run): Use grub_normal_parse_line.
20797 (GRUB_MOD_FINI): Don't call free_handler_list.
20798 * normal/menu_entry.c (run): Likewise.
20799 * script/function.c (grub_script_function_list): Make global.
20800 (grub_script_function_iterate): Removed.
20801 * script/main.c (grub_normal_parse_line): Make global.
20802 (grub_sh_parser): Removed.
20803 (GRUB_MOD_INIT): Likewise.
20804 (GRUB_MOD_FINI): Likewise.
20805 * tests/lib/functional_test.c (grub_functional_test): Use
20807 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20808 (grub_test_run): Use FOR_LIST_ELEMENTS.
20809 * tests/lib/unit_test.c (main): Likewise.
20810 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20812 * util/grub-fstest.c (grub_term_input_class): Removed.
20813 (grub_term_output_class): Likewise.
20814 * util/grub-probe.c: Likewise.
20815 * util/i386/pc/grub-setup.c: Likewise.
20816 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20817 * util/grub-script-check.c (main): Don't call grub_init_all and
20819 * video/video.c (grub_video_adapter_list): Make global.
20820 (grub_video_register): Removed.
20821 (grub_video_unregister): Likewise.
20822 (grub_video_iterate): Likewise.
20824 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20826 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20827 reported by Henrique Ferreiro.
20829 2010-06-09 Robert Millan <rmh@gnu.org>
20831 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20832 ones, when both are available.
20834 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20836 Make --version uniform and avoid hard-coded program name.
20838 * util/grub-mkimage.c (main): Use `program_name' instead of
20840 * util/i386/pc/grub-setup.c (main): Likewise.
20841 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20842 * util/grub-install.in: Save the basename of $0 in $self, and use the
20843 latter in informational messages. Use the same format for --version
20844 as the binary programs.
20845 * util/grub-mkconfig.in: Likewise.
20846 * util/grub-mkrescue.in: Likewise.
20847 * util/grub-reboot.in: Likewise.
20848 * util/grub-set-default.in: Likewise.
20849 * util/i386/efi/grub-install.in: Likewise.
20850 * util/ieee1275/grub-install.in: Likewise.
20851 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20853 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20855 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20856 embedding area. Use <= instead of == when checking for non-emptiness.
20858 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20860 * configure.ac: Add `.' to the directories searched for unifont.
20862 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20864 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20867 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20869 * docs/grub.texi (History): Expand to cover GRUB 2.
20870 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20871 commands, not `terminal'.
20872 (serial): Likewise.
20873 (terminal_input): New section.
20874 (terminal_output): New section.
20875 (uppermem): New section (stub).
20876 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20878 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20880 * docs/grub.texi (Security): Menu entries are unrestricted by
20881 default, not restricted to superusers as I had previously thought.
20882 Reword to account for this.
20884 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20886 * kern/emu/misc.c (device_mapper_null_log): New function.
20887 (grub_device_mapper_supported): New function.
20888 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20890 * kern/emu/hostdisk.c (find_partition_start): Check whether
20891 device-mapper is supported before trying to use it.
20892 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20894 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20896 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20897 (File name syntax): Likewise.
20898 (help): --all is no longer supported in GRUB 2. Be more precise
20899 about pattern matching.
20901 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20903 * normal/completion.c (grub_normal_do_completion): When completing
20904 arguments to "set" and the current word contains an equals sign,
20905 skip to after the equals sign before starting completion.
20907 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20909 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20911 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20913 * docs/grub.texi (Network): New section.
20914 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20915 `(nd)' as in GRUB Legacy.
20916 (pxe_unload): New section.
20918 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20920 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20921 in the rescue shell, so recommend using `set' instead. Thanks,
20924 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20926 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20927 (password): New section.
20928 (password_pbkdf2): New section.
20929 (search): New section.
20930 (Security): New section.
20931 (Troubleshooting): New section, currently very incomplete.
20932 (Invoking grub-mkpasswd-pbkdf2): New section.
20933 (Internals): New section, currently very incomplete.
20935 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20937 * util/grub.d/00_header.in: Add some more quoting (of
20938 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20940 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20942 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20944 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20945 to `count', fixing variable shadowing that broke the -c option.
20947 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20949 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20950 in case they contain spaces.
20952 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20954 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20955 "part_" to partmap module names, in line with grub-install.
20956 Reported by: Jindřich Makovička (Debian bug #584426).
20958 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20960 * util/grub-mkimage.c: Make target-related error messages slightly
20961 more helpful; -O talks about "format". Explicitly point to the use
20962 of -O if no target is specified.
20963 Reported by: Didier Raboud (Debian bug #584415).
20965 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20967 * INSTALL: Document several build requirements for optional features
20968 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20970 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20972 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20973 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20974 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20976 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20978 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20979 Thanks to Jordan Uggla for spotting this.
20981 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20983 Finally make USB usable.
20985 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20986 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20987 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20988 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20989 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20990 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20991 (GRUB_OHCI_FSMPS): Likewise.
20992 (GRUB_OHCI_PERIODIC_START): Likewise.
20993 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20994 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20995 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
20996 (GRUB_OHCI_SET_PORT_RESET): Likewise.
20997 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
20998 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
20999 (grub_ohci_transaction): Likewise.
21000 (grub_ohci_transfer): Improve condition detection algorithms.
21001 Handle toggle property. Program the transactions correctly.
21002 Improve error handling. Various important fixups.
21003 (grub_ohci_portstatus): Put register writes in right order.
21004 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
21005 (grub_uhci_transfer): Don't show "failed" message on success.
21006 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
21008 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
21009 determine its size.
21010 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
21011 before initialization is completed. Use IN direction for empty
21012 transfers. Use last_trans and compute toggle.
21013 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
21014 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
21015 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
21016 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
21017 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
21018 (grub_usb_device): Increase toggle to 256.
21019 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
21020 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
21021 GRUB_USBMS_SUBCLASS_SFF8070.
21022 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
21023 (grub_scsi_inquiry): New member page and alloc_length.
21024 (grub_scsi_request_sense): New structure.
21025 (grub_scsi_request_sense_data): Likewise.
21026 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
21028 * disk/scsi.c (grub_scsi_request_sense): New function.
21029 (grub_scsi_test_unit_ready): Likewise.
21030 (grub_scsi_inquiry): Fill new fields.
21031 (grub_scsi_read_capacity): Likewise.
21032 (grub_scsi_read10): Add request sense at the end.
21033 (grub_scsi_read12): Likewise.
21034 (grub_scsi_write10): Likewise.
21035 (grub_scsi_write12): Likewise.
21036 (grub_scsi_open): Add Test Unit Ready.
21037 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
21038 Support additional subclasses. Con't clear halt yet. Activate the
21039 proper config. Calculate LUNs correctly.
21040 (grub_usbms_transfer): Various important fixups.
21042 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21044 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
21045 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
21046 (grub_ohci_fini_hw): New function.
21047 (grub_ohci_restore_hw): Likewise.
21048 (GRUB_MOD_INIT(ohci)): Register preboot hook.
21049 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
21050 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
21052 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21054 Dedicated DMA allocations.
21056 * bus/pci.c (grub_memalign_dma32): New function
21057 (grub_dma_free): Likewise.
21058 (grub_dma_get_virt): Likewise.
21059 (grub_dma_get_phys): Likewise.
21060 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21061 (grub_ohci_pci_iter): Use dma32_alloc.
21062 (grub_ohci_transfer): Likewise.
21063 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21064 (grub_usb_bulk_readwrite): Likewise.
21065 * include/grub/pci.h: Add declarations.
21067 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21071 * bus/cs5536.c: New file.
21072 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21073 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21074 (cs5536_mod_SOURCES): New variable.
21075 (cs5536_mod_CFLAGS): Likewise.
21076 (cs5536_mod_LDFLAGS): Likewise.
21077 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21079 (kernel_img_SOURCES): Add bus/cs5536.c.
21080 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21082 (usb_mod_SOURCES): New variable.
21083 (usb_mod_CFLAGS): New variable.
21084 (usb_mod_LDFLAGS): New variable.
21085 (usbtest_mod_SOURCES): New variable.
21086 (usbtest_mod_CFLAGS): New variable.
21087 (usbtest_mod_LDFLAGS): New variable.
21088 (ohci_mod_SOURCES): New variable.
21089 (ohci_mod_CFLAGS): New variable.
21090 (ohci_mod_LDFLAGS): New variable.
21091 (usbms_mod_SOURCES): New variable.
21092 (usbms_mod_CFLAGS): New variable.
21093 (usbms_mod_LDFLAGS): New variable.
21094 (usb_keyboard_mod_SOURCES): New variable.
21095 (usb_keyboard_mod_CFLAGS): New variable.
21096 (usb_keyboard_mod_LDFLAGS): New variable.
21097 * include/grub/smbus.h: New file.
21098 * include/grub/cs5536.h: New file.
21100 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21102 * util/grub.d/00_header.in: Add safety check to make sure that
21103 ${locale_dir} exists before trying to probe it.
21105 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21107 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21108 per the GNU Coding Standards; this is now too obscure to be worth
21111 (chainloader): Remove cross-reference to `SCO UnixWare'.
21113 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21115 * docs/grub.texi (Chain-loading): New section.
21116 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21117 adjusted for GRUB 2.
21118 (SCO UnixWare): Likewise.
21120 (chainloader): Add reference to `Block list syntax'.
21121 (drivemap): New section.
21122 (parttool): New section.
21124 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21126 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21128 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21129 (Installing GRUB using grub-install): Remove reference to the grub
21130 shell; mention `grub-mkimage' and `grub-setup' instead.
21131 (Invoking grub-install): Likewise.
21132 (Interface): Add reference to `Menu entry editor'.
21133 (serial): Remove `--device' option.
21135 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21137 * docs/grub.texi (Configuration): New section, documenting
21138 configuration file generation using grub-mkconfig. I've left a slot
21139 for documenting the full shell scripting format but have not yet
21140 started on writing that up.
21141 (Invoking grub-mkconfig): New section.
21143 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21145 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21146 (GNU GRUB manual): Likewise.
21147 (General commands): Update description of `terminfo' for GRUB 2.
21149 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21151 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21152 (GRUB_MOD_INIT): Fix capitalisation.
21153 * docs/grub.texi (Command-line and menu entry commands): Document
21154 gettext and gptsync commands.
21156 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21158 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21159 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21161 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
21163 Add btrfs probing support, currently only in the single-device case.
21165 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21167 (grub_guess_root_device): Call find_root_device_from_mountinfo
21168 before looking in /dev.
21170 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21172 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21173 GRUB_DISK_SIZE_UNKNOWN.
21174 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21176 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
21178 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21179 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21180 corrupted or not synced properly.
21182 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21184 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21185 Reported by: Seth Goldberg.
21187 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21189 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21191 Reported by: Seth Goldberg.
21193 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21195 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21196 Reported by: Seth Goldberg.
21198 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21200 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21201 64-bit address as signed on MIPS.
21203 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21205 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21206 to the empty string.
21208 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21210 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21212 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21213 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21214 * kern/misc.c (__enable_execute_stack): Disable on
21217 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21219 Make grub-probe work with symbolic links under /dev/mapper as well
21220 as with real block devices. The Linux world seems to be (at best)
21221 in transition here, and GRUB shouldn't get caught in the middle.
21223 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21226 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21228 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21229 input files (in which case exit zero).
21231 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21233 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21234 return NULL for various reasons even if it has a maximum-length
21235 buffer: for example, there might be a symlink loop, or the path
21236 might exceed PATH_MAX. If this happens, return NULL.
21238 2010-05-27 Robert Millan <rmh@gnu.org>
21240 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21241 partmap module to handle cross-partmap setups.
21242 Reported by Orestes Mas. Gràcies!
21244 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21246 * util/grub-mkrescue.in: Initialise override_dir rather than
21247 assuming that it's unset or empty in the environment.
21249 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21251 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21252 variable index into p_index to suppress a warning with -Wshadow.
21254 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21256 * INSTALL: Added flex >= 2.5.35 requirement.
21258 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21260 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21262 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21266 * commands/i386/cmostest.c: New file.
21267 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21268 (cmostest_mod_SOURCES): New variable.
21269 (cmostest_mod_CFLAGS): Likewise.
21270 (cmostest_mod_LDFLAGS): Likewise.
21271 * conf/i386-pc.rmk: Likewise.
21272 * docs/grub.texi (Vendor power-on keys): New section.
21273 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21274 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21275 and GRUB_BUTTON_CMOS_ADDRESS.
21276 * util/grub.d/00_header.in: Handle powering-on by separate button.
21278 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21280 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21281 Removed drawing_scrollbar argument. All users updated
21283 Reported by Jo Shields
21285 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21287 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21288 buffer since gfxterm handles double repaint.
21290 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21292 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21293 * term/gfxterm.c (real_scroll): Likewise.
21295 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21297 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21298 before calling BIOS.
21300 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21302 * include/grub/i18n.h: Always enable grub_gettext.
21304 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21306 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21307 partition naming style.
21309 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
21311 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21312 not the first option.
21314 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21316 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21318 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21320 * util/misc.c: Move inclusion of <limits.h> to ...
21321 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21323 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21325 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21326 Fix merge error in NetBSD code.
21327 (find_partition_start) [__NetBSD__]: Likewise.
21329 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21331 Fix grub-mkrescue usage unit testing.
21333 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21335 2010-05-18 Christian Franke <franke@computer.org>
21337 * util/grub.d/10_windows.in: Use path names instead of
21338 drive letters to prevent warning from Cygwin 1.7.
21339 Add drivemap command to menuentry if needed.
21341 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21343 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21344 gnumach and gnumach.gz.
21346 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21348 * include/grub/i18n.h (gettext): Inline instead of using #define.
21349 (grub_gettext): Likewise.
21352 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21354 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21355 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21356 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21357 (main): Add a slash after pkglibdirroot.
21359 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21361 * util/grub-install.in: Add missing "in" keyword.
21363 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21365 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21366 Reported by: Seth Goldberg.
21368 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21370 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21372 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21374 * configure.ac: Check for Linux device-mapper support.
21376 * util/hostdisk.c (device_is_mapped): New function.
21377 (find_partition_start): New function, partly broken out from
21378 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21379 device-mapper support added.
21380 (linux_find_partition): Use find_partition_start.
21381 (convert_system_partition_to_system_disk): Add `st' argument.
21382 Support Linux /dev/mapper/* devices if device-mapper support is
21383 available; only DM-RAID devices are understood at present.
21384 (find_system_device): Add `st' argument. Pass it to
21385 convert_system_partition_to_system_disk.
21386 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21387 find_system_device and convert_system_partition_to_system_disk. Use
21388 find_partition_start.
21390 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21391 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21392 * util/deviceiter.c [__linux__]: Define MINOR.
21393 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21394 * util/mkdevicemap.c (grub_putchar): New function.
21395 (grub_getkey): New function.
21396 (grub_refresh): New function.
21397 (main): Set debug=all if -v -v is used.
21399 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21401 Fix build with non-GNU libcs.
21403 * util/misc.c (canonicalize_file_name): Move to ...
21404 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21405 grub_make_system_path_relative_to_its_root.
21407 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21409 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21410 we handle finding grub-mkimage. Default to finding grub-mkimage in
21411 ${bindir} with program_transform_name applied, and provide a
21412 --grub-mkimage option to override this.
21414 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21416 Remove grub-mkisofs.
21418 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21419 (grub_mkisofs_SOURCES): Removed.
21420 (grub_mkisofs_CFLAGS): Removed.
21421 * util/mkisofs/defaults.h: Removed.
21422 * util/mkisofs/eltorito.c: Likewise.
21423 * util/mkisofs/exclude.h: Likewise.
21424 * util/mkisofs/hash.c: Likewise.
21425 * util/mkisofs/include/: Likewise.
21426 * util/mkisofs/include/fctldefs.h: Likewise.
21427 * util/mkisofs/include/mconfig.h: Likewise.
21428 * util/mkisofs/include/prototyp.h: Likewise.
21429 * util/mkisofs/include/statdefs.h: Likewise.
21430 * util/mkisofs/iso9660.h: Likewise.
21431 * util/mkisofs/joliet.c: Likewise.
21432 * util/mkisofs/match.c: Likewise.
21433 * util/mkisofs/match.h: Likewise.
21434 * util/mkisofs/mkisofs.c: Likewise.
21435 * util/mkisofs/mkisofs.h: Likewise.
21436 * util/mkisofs/msdos_partition.h: Likewise.
21437 * util/mkisofs/multi.c: Likewise.
21438 * util/mkisofs/name.c: Likewise.
21439 * util/mkisofs/rock.c: Likewise.
21440 * util/mkisofs/tree.c: Likewise.
21441 * util/mkisofs/write.c: Likewise.
21443 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21445 Unify grub-mkimage accross platforms.
21447 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21448 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21449 (grub_mkelfimage_SOURCES): Removed.
21450 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21451 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21452 (bin_UTILITIES): Add grub-mkimage.
21453 (grub_mkimage_SOURCES): New variable.
21454 (kernel_img_HEADERS): Remove machine/kernel.h.
21455 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21456 (pkglib_PROGRAMS): Add kernel.img.
21457 (kernel_img_HEADERS): Add machine/kernel.h.
21458 (kernel_img_FORMAT): Removed.
21459 (bin_UTILITIES): Remove grub-mkimage.
21460 (grub_mkimage_SOURCES): Removed.
21461 (grub_mkimage_CFLAGS): Likewise.
21462 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21463 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21464 (pkglib_PROGRAMS): Add kernel.img.
21465 (bin_UTILITIES): Remove grub-mkimage.
21466 (grub_mkimage_SOURCES): Removed.
21467 (grub_mkimage_CFLAGS): Likewise.
21468 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21469 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21470 (pkglib_PROGRAMS): Add kernel.img.
21471 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21472 (pkglib_PROGRAMS): Add kernel.img.
21473 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21474 (grub_mkimage_SOURCES): Removed.
21475 (grub_mkimage_CFLAGS): Likewise.
21476 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21477 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21478 (pkglib_PROGRAMS): Add kernel.img.
21479 (bin_UTILITIES): Remove grub-mkimage.
21480 (grub_mkimage_SOURCES): Removed.
21481 (grub_mkimage_CFLAGS): Likewise.
21482 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21483 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21484 (grub_mkimage_SOURCES): Removed.
21485 (grub_mkimage_CFLAGS): Likewise.
21486 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21487 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21488 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21489 (grub_pe32_optional_header): ... this.
21490 (grub_pe64_optional_header): ... and this. All users updated.
21491 (GRUB_PE32_PE32_MAGIC): Split into ..
21492 (GRUB_PE32_PE32_MAGIC): .. this.
21493 (GRUB_PE32_PE64_MAGIC): .. and this.
21494 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21495 * include/grub/elf.h (PT_GNU_STACK): New definition.
21496 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21497 * include/grub/i386/efi/kernel.h: Likewise.
21498 * include/grub/i386/kernel.h: Likewise.
21499 * include/grub/i386/pc/kernel.h: Likewise.
21500 * include/grub/i386/qemu/boot.h: Likewise.
21501 * include/grub/mips/kernel.h: Likewise.
21502 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21503 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21504 * include/grub/powerpc/kernel.h: Likewise.
21505 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21506 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21507 * include/grub/sparc64/kernel.h: Likewise.
21508 * include/grub/x86_64/efi/kernel.h: Likewise.
21509 * include/grub/x86_64/kernel.h: Likewise.
21510 * include/grub/offsets.h: New file.
21511 * include/grub/kernel.h (grub_module_info): Split into ...
21512 (grub_module_info32): ... this.
21513 (grub_module_info64): ... and this.
21514 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21515 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21516 (grub_boot_blocklist): Moved from here ...
21517 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21518 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21519 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21520 * include/grub/types.h (grub_target_to_host16): Removed.
21521 (grub_target_to_host32): Likewise.
21522 (grub_target_to_host64): Likewise.
21523 (grub_host_to_target16): Likewise.
21524 (grub_host_to_target32): Likewise.
21525 (grub_host_to_target64): Likewise.
21526 (grub_host_to_target_addr): Likewise.
21528 Support grub-mkrescue for efi, coreboot and qemu.
21530 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21531 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21532 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21533 * util/grub-mkrawimage.c: Moved from here ...
21534 * util/grub-mkimage.c: ... here. All users updated.
21535 (ALIGN_ADDR): Use image_target.
21536 (TARGET_NO_FIELD): New const.
21537 (image_target_desc): New type.
21538 (image_targets): New array.
21539 (grub_target_to_host64): Use image_target.
21540 (grub_target_to_host32): Likewise.
21541 (grub_target_to_host16): Likewise.
21542 (grub_host_to_target64): Likewise.
21543 (grub_host_to_target32): Likewise.
21544 (grub_host_to_target16): Likewise.
21545 (grub_host_to_target_addr): Likewise.
21546 (generate_image): Handle multiimage.
21547 (main): Require -O parameter. All users updated.
21548 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21549 util/efi/grub-mkimage.c
21550 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21551 New option --rom-directory.
21553 * util/i386/efi/grub-mkimage.c: Removed.
21554 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21555 (grub_target_to_host32): Likewise.
21556 (grub_target_to_host64): Likewise.
21557 (grub_host_to_target16): Likewise.
21558 (grub_host_to_target32): Likewise.
21559 (grub_host_to_target64): Likewise.
21560 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21561 (grub_target_to_host32): Likewise.
21562 (grub_target_to_host64): Likewise.
21563 (grub_host_to_target16): Likewise.
21564 (grub_host_to_target32): Likewise.
21565 (grub_host_to_target64): Likewise.
21567 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21569 Source tree is reorganized for emu build.
21571 * include/grub/util/console.h: Move from here...
21572 * include/grub/emu/console.h: ...to here.
21573 * include/grub/util/getroot.h: Move from here...
21574 * include/grub/emu/getroot.h: ...to here.
21575 * include/grub/util/hostdisk.h: Move from here...
21576 * include/grub/emu/hostdisk.h: ...to here.
21577 * util/console.c: Move from here...
21578 * kern/emu/console.c: ...to here.
21579 * util/getroot.c: Move from here...
21580 * kern/emu/getroot.c: ...to here.
21581 * util/grub-emu.c: Move from here...
21582 * kern/emu/main.c: ...to here.
21583 * util/hostdisk.c: Move from here...
21584 * kern/emu/hostdisk.c: ...to here.
21585 * util/hostfs.c: Move from here...
21586 * kern/emu/hostfs.c: ...to here.
21587 * util/mm.c: Move from here...
21588 * kern/emu/mm.c: ...to here.
21589 * util/pci.c: Move from here...
21590 * bus/emu/pci.c: ...to here.
21591 * util/sdl.c: Move from here...
21592 * video/emu/sdl.c: ...to here.
21593 * util/time.c: Move from here...
21594 * kern/emu/time.c: ...to here.
21595 * util/usb.c: Move from here...
21596 * bus/usb/emu/usb.c: ...to here.
21598 * include/grub/emu/misc.h: New header for grub-emu functions.
21599 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21601 * conf/any-emu.rmk: Rule updates for above renames.
21602 * conf/common.rmk: Likewise.
21603 * conf/i386-pc.rmk: Likewise.
21604 * conf/i386-qemu.rmk: Likewise.
21605 * conf/mips.rmk: Likewise.
21606 * conf/sparc64-ieee1275.rmk: Likewise.
21607 * conf/x86-efi.rmk: Likewise.
21609 * disk/lvm.h: #include updates for above renames.
21610 * util/grub-mkrelpath.c: Likewise.
21611 * util/grub-probe.c: Likewise.
21612 * util/i386/pc/grub-setup.c: Likewise.
21613 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21614 * kern/emu/console.c: Likewise.
21615 * kern/emu/getroot.c: Likewise.
21616 * kern/emu/hostdisk.c: Likewise.
21617 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21619 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21620 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21621 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21622 * util/misc.c: Remove grub-emu functions.
21624 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21627 Reported by: Thorsten Grützmacher.
21629 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21631 (circprog_set_property): Register and unregister timeout hook.
21632 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21633 (label_destroy): Free template. and unregister hook.
21634 (label_set_state): New function.
21635 (label_set_property): Handle templates and hooks.
21636 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21638 (progress_bar_set_property): Register and unregister timeout hook.
21639 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21640 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21641 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21642 (update_timeout_visit): Removed.
21643 (update_timeouts): New function.
21644 (redraw_timeouts): Likewise.
21645 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21646 (grub_gfxmenu_clear_timeout): Likewise.
21647 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21648 (grub_gfxmenu_timeout_notify): Likewise.
21649 (grub_gfxmenu_timeout_notifications): New external variable.
21650 (grub_gfxmenu_timeout_register): New function.
21651 (grub_gfxmenu_timeout_unregister): Likewise.
21653 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21655 Transform (broken) vga terminal into (working) vga video driver.
21657 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21658 video/i386/pc/vga.c.
21659 * include/grub/video.h (grub_video_driver_id):
21660 Add GRUB_VIDEO_DRIVER_VGA.
21661 * term/i386/pc/vga.c: Renamed to ...
21662 * video/i386/pc/vga.c: ...this
21663 (DEBUG_VGA): Removed.
21664 (CHAR_WIDTH): Likewise.
21665 (CHAR_HEIGHT): Likewise.
21666 (TEXT_WIDTH): Likewise.
21667 (TEXT_HEIGHT): Likewise.
21668 (DEFAULT_FG_COLOR): Likewise.
21669 (DEFAULT_BG_COLOR): Likewise.
21670 (colored_char): Likewise.
21673 (cursor_state): Likewise.
21674 (fg_color): Likewise.
21675 (bg_color): Likewise.
21676 (text_buf): Likewise.
21679 (framebuffer): New variable.
21680 (set_read_map): Disabled.
21681 (setup): New variable.
21682 (is_target): Likewise.
21683 (grub_vga_mod_init): Likewise.
21684 (grub_vga_mod_fini): Likewise.
21685 (check_vga_mem): Likewise.
21686 (write_char): Likewise.
21687 (write_cursor): Likewise.
21688 (scroll_up): Likewise.
21689 (grub_vga_putchar): Likewise.
21690 (grub_vga_getcharwidth): Likewise.
21691 (grub_vga_getwh): Likewise.
21692 (grub_vga_getxy): Likewise.
21693 (grub_vga_gotoxy): Likewise.
21694 (grub_vga_cls): Likewise.
21695 (grub_vga_setcolorstate): Likewise.
21696 (grub_vga_setcursor): Likewise.
21697 (grub_video_vga_init): New function.
21698 (grub_video_vga_setup): Likewise.
21699 (grub_video_vga_fini): Likewise.
21700 (update_target): Likewise.
21701 (grub_video_vga_blit_bitmap): Likewise.
21702 (grub_video_vga_blit_render_target): Likewise.
21703 (grub_video_vga_set_active_render_target): Likewise.
21704 (grub_video_vga_get_active_render_target): Likewise.
21705 (grub_video_vga_swap_buffers): Likewise.
21706 (grub_video_vga_set_palette): Likewise.
21707 (grub_video_vga_get_info_and_fini): Likewise.
21708 (grub_vga_term): Removed.
21709 (grub_video_vga_adapter): New variable.
21710 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21711 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21713 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21715 * video/readers/jpeg.c: Indented.
21717 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21719 Various jpeg cleanups.
21721 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21722 (grub_jpeg_decode_quan_table): Use sizeof.
21723 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21725 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21727 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21728 tables. Ignore non-last ac bit.
21729 (grub_jpeg_decode_quan_table): Likewise.
21731 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21733 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21734 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21735 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21736 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21737 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21738 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21740 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21742 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21745 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21747 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21749 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21751 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21754 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21756 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21759 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21761 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21764 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21766 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21768 2010-05-01 Christian Franke <franke@computer.org>
21770 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21771 Remove broken Cygwin path conversion.
21772 * util/misc.c: [__CYGWIN__] Add include and define.
21773 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21775 (make_system_path_relative_to_its_root): Simplify loop, replace early
21777 [__CYGWIN__] Add conversion to win32 path.
21778 Include "/" case in trailing slash removal.
21780 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21782 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21783 Reported by: Seth Goldberg
21785 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21787 * commands/help.c (grub_cmd_help): Fix a typo.
21788 Reported by: Seth Goldberg
21790 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21792 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21794 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21795 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21796 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21797 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21798 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21799 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21800 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21801 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21802 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21803 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21804 * normal/context.c (GRUB_MOD_INIT): Likewise.
21805 * normal/main.c (GRUB_MOD_INIT): Likewise.
21806 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21807 * term/serial.c (GRUB_MOD_INIT): Likewise.
21808 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21810 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21812 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21815 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21817 * commands/iorw.c: New file.
21818 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21819 (iorw_mod_SOURCES): New variable.
21820 (iorw_mod_CFLAGS): Likewise.
21821 (iorw_mod_LDFLAGS): Likewise.
21823 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21827 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21828 * normal/main.c (hotkey_aliases): New variable.
21829 (grub_normal_add_menu_entry): Parse "--hotkey".
21830 * normal/menu_text.c (run_menu): Handle hotkeys.
21832 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21834 * kern/i386/coreboot/init.c (grub_machine_init): Call
21835 grub_machine_mmap_init on qemu.
21837 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21839 * boot/i386/qemu/boot.S: Add a missing .code16.
21841 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21843 Use LBIO on coreboot.
21845 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21846 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21847 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21849 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21850 grub_machine_mmap_init on coreboot.
21851 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21852 GRUB_LINUXBIOS_MEMBER_LINK.
21853 (grub_machine_mmap_iterate): Fix declaration.
21854 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21856 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21858 Split coreboot and multiboot ports.
21860 * conf/i386-multiboot.rmk: New file.
21861 * configure.ac: Add multiboot port.
21862 * include/grub/i386/multiboot/boot.h: New file.
21863 * include/grub/i386/multiboot/console.h: Likewise.
21864 * include/grub/i386/multiboot/init.h: Likewise.
21865 * include/grub/i386/multiboot/kernel.h: Likewise.
21866 * include/grub/i386/multiboot/loader.h: Likewise.
21867 * include/grub/i386/multiboot/memory.h: Likewise.
21868 * include/grub/i386/multiboot/serial.h: Likewise.
21869 * include/grub/i386/multiboot/time.h: Likewise.
21870 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21871 * loader/multiboot.c: Likewise.
21872 * loader/multiboot_mbi2.c: Likewise.
21873 * util/grub-mkrescue.in: Generate multiboot rescue.
21875 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21877 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21879 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21881 Merge handling of input and output terminals. Fix a hang.
21883 * commands/terminal.c (abstract_terminal): New struct.
21884 (handle_command): New function. Based on grub_cmd_terminal_input.
21885 (grub_cmd_terminal_input): Use handle_command.
21886 (grub_cmd_terminal_output): Use handle_command.
21888 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21890 Fix comment handling.
21892 * tests/grub_script_comments.in: New testcase.
21893 * conf/tests.rmk: Rules for new testcase.
21894 * script/yylex.l: Updated flex rules.
21896 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21898 * docs/grub.texi (play): Document that zero pitches produce rests.
21899 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21902 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21904 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21907 2010-04-26 Christian Franke <franke@computer.org>
21909 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21910 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21911 (grub_get_prefix): Remove function.
21912 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21913 make_system_path_relative_to_its_root ().
21914 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21916 2010-04-24 Christian Franke <franke@computer.org>
21918 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21919 (kernel_img_LDFLAGS): Remove -static-libgcc.
21921 2010-04-24 Christian Franke <franke@computer.org>
21923 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21924 and CHECK_END_SYMBOL if grub-emu is built.
21925 Unset TARGET_OBJ2ELF if grub-emu is built
21926 without module support.
21928 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21932 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21933 (grub_fstest_SOURCES): Likewise.
21934 (pkglib_MODULES): Add nilfs2.mod.
21935 (nilfs2_mod_SOURCES): New variable.
21936 (nilfs2_mod_CFLAGS): Likewise.
21937 (nilfs2_mod_LDFLAGS): Likewise.
21938 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21939 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21940 * fs/nilfs2.c: New file.
21942 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21944 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21947 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21949 Add grub-mkconfig support for NetBSD.
21951 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21952 * util/grub-mkconfig.in: export new NetBSD specific variables.
21953 * po/POTFILES-shell: added 10_netbsd.in.
21954 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21956 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21958 Fix emu build with grub-emu-pci and grub-emu-modules.
21960 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21962 * include/grub/libpciaccess.h: New file.
21963 * conf/any-emu.rmk: Update kernel headers for emu build.
21965 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21967 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21969 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21971 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21973 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21975 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21976 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21977 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21978 util/ieee1275/ofpath.c.
21979 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21980 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21981 * include/grub/sparc64/ieee1275/boot.h
21982 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21983 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21984 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21985 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21987 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21988 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21989 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21992 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21994 * util/grub-mkconfig.in: Corrected two == equality tests.
21995 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
21996 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
21997 expect a number appended to it.
21998 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
21999 expects a number appended to it.
22001 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22003 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
22005 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22007 * util/hostdisk.c (make_device_name): Change to new partition naming.
22009 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
22011 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
22013 2010-04-17 Christian Franke <franke@computer.org>
22015 * Makefile.in: Add missing localedir setting.
22017 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
22019 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
22020 mistake in r2156. Noticed by Anthony Fok.
22022 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
22024 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22026 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
22028 Fix a spurious, uninitialized variable warning.
22030 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
22031 Initialize variable, shdr.
22032 (grub_freebsd_load_elfmodule): Likewise.
22033 (grub_freebsd_load_elf_meta): Likewise.
22035 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
22037 Fix for escaped dollar in double quoted strings.
22039 * script/yylex.l: Updated flex rules.
22040 * conf/tests.rmk: Rule for new testcase.
22041 * tests/grub_script_dollar.in: New testcase.
22043 2010-04-13 Carles Pina i Estany <carles@pina.cat>
22044 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
22046 Enclose all translated strings in grub.cfg in single quotes, and
22047 escape them appropriately (Ubuntu bug #552921).
22049 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
22050 * util/grub.d/10_hurd.in: Use it.
22051 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22052 * util/grub.d/10_linux.in (linux_entry): Likewise.
22054 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22056 Fix cygwin compilation.
22058 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22059 * include/grub/misc.h (__register_frame_info)
22060 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22061 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22062 * kern/misc.c (__register_frame_info)
22063 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22064 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22066 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22068 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22070 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22072 Unify libgcc processing.
22074 * Makefile.in (kernel_img_LDFLAGS): New variable.
22075 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22076 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22078 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22079 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22080 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22081 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22082 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22083 overwriting. Remove -lgcc and -static-libgcc
22084 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22085 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22086 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22087 (kernel_img_LDFLAGS): Append instead of overwriting.
22088 Remove -lgcc and -static-libgcc
22089 * conf/sparc64-ieee1275.rmk: Likewise.
22090 * include/grub/powerpc/libgcc.h: Move to ...
22091 * include/grub/libgcc.h: .. this.
22092 * include/grub/libgcc.h: Don't export most of the function on x86.
22093 (__bswapsi2): New export.
22094 (__bswapdi2): Likewise.
22095 * include/grub/mips/libgcc.h: Removed.
22096 * include/grub/sparc64/libgcc.h: Likewise.
22098 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22100 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22101 disk_info_msg (conflicts with gettexting into languages with cases).
22103 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22105 Add grub-probe support for NetBSD.
22107 * util/getroot.c (find_root_device): Convert block device to
22108 character device on NetBSD.
22109 * util/probe.c (probe): Require character device on NetBSD.
22110 * util/hostdisk.c: NetBSD specific headers.
22111 (configure_device_driver): new function to tune device driver
22112 parameters (currently only for NetBSD floppy driver).
22113 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22114 via disklabel ioctl).
22115 (open_device): call configure_device_driver on NetBSD.
22116 (convert_system_partition_to_system_disk): NetBSD specific code.
22117 (device_is_wholedisk): Likewise.
22118 (grub_util_biosdisk_get_grub_dev): Likewise.
22119 (make_device_name): Fixed a typo in bsd_part_str.
22120 * configure.ac: check for opendisk() and getrawpartition() on
22121 NetBSD and set LIBUTIL.
22122 * Makefile.in: add LIBUTIL to LIBS.
22124 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22128 * util/grub-script-check.c: Better help message.
22130 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22134 * configure.ac: Flex version check.
22135 * conf/common.rmk: Add -Wno-error to sh.mod.
22136 * script/yylex.l: Remove all #pragma.
22138 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22140 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22142 Reported by: Seth Goldberg.
22144 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22146 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22147 Rename "module" to "module2".
22148 Reported by: Seth Goldberg.
22150 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22152 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22154 Reported by: Seth Goldberg.
22156 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22158 * lib/posix_wrap/locale.h: Add missing file.
22159 Reported by: Seth Goldberg.
22161 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22163 grub-emu module load support.
22165 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22166 NO_DYNAMIC_MODULES switched to this.
22167 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22168 (CFLAGS): Likewise.
22169 * conf/any-emu.rmk: Generate symlist.
22170 (kernel_img_HEADERS): Add util/datetime.h.
22171 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22172 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22173 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22174 kern/$(target_cpu)/cache.S.
22175 * configure.ac (grub-emu-modules): New option.
22176 * genmk.rb: Handle multiple source lists.
22177 * include/grub/sdl.h: New file.
22178 * include/grub/libusb.h: Likewise.
22179 * util/grub-emu.c (main): Hanle (host) root.
22180 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22181 GRUB_ERR_UNKNOWN_DEVICE.
22182 * util/misc.c: Move mm functions to ...
22183 * util/mm.c: ... here. All users updated.
22185 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22187 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22188 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22190 (maintainer-clean): Remove libgcrypt-grub.
22192 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22194 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22196 2010-04-09 EFI Coder <eficoder@hotmail.com>
22198 * normal/menu_text.c (print_message): Clean up the message and show
22199 the Fn information when on EFI
22200 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22202 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22204 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22206 * normal/crypto.c (read_crypto_list): Likewise.
22207 * normal/dyncmd.c (read_command_list): Likewise.
22208 * normal/term.c (read_terminal_list): Likewise.
22209 * normal/main.c (read_lists): Use explicit prefix.
22210 (read_lists_hook): Use read_lists.
22211 (grub_normal_execute): Likewise.
22213 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22215 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22216 Reported by: Thomas Schmitt.
22217 Add -no-emul-boot to grub-mkisofs parameters.
22219 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22221 * font/font.c: Indented.
22223 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22225 Elif support to GRUB script (by Deepak Vankadaru).
22227 * tests/grub_script_if.in: New testcase.
22228 * conf/tests.rmk: Rule for new testcase.
22229 * script/parser.y: Grammar rules for elif.
22231 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22233 While and until loops support to GRUB script.
22235 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22236 (grub_script_create_cmdwhile): New function prototype.
22237 (grub_script_execute_cmdwhile): New function prototype.
22238 * script/execute.c (grub_script_execute_cmdwhile): New function.
22239 * script/parser.y (command): New commands.
22240 (whilecmd): New grammar rule.
22241 (untilcmd): New grammar rule.
22242 * script/script.c (grub_script_create_cmdwhile): New function.
22243 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22246 * tests/grub_script_while1.in: New testcase.
22247 * conf/tests.rmk: Rule for new testcase.
22249 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22251 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22254 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
22256 GRUB_BACKGROUND support.
22258 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22259 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22261 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22263 Load fonts and modules for gfxmenu in grub-mkconfig.
22264 Idea by: Mario Vazquez
22266 * util/grub.d/00_header.in: Load pf2 and image modules.
22268 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22270 grub-mkconfig multiple terminal support.
22272 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22273 * util/grub.d/00_header.in: Likewise.
22275 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22277 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22278 we use cd $(srcdir).
22280 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
22282 * util/grub.d/10_linux.in: Only use the first word of
22283 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22284 spaces in GRUB_DISTRIBUTOR.
22285 * util/grub.d/10_kfreebsd.in: Likewise.
22286 * util/grub.d/10_hurd.in: Likewise.
22288 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22290 Fix unit testing framework for Qemu 0.12.
22292 * tests/util/grub-shell.in: Remove -serial stdio option.
22294 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22296 POSIX header file wrappers.
22298 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22300 * lib/posix_wrap/ctype.h: Likewise.
22301 * lib/posix_wrap/errno.h: Likewise.
22302 * lib/posix_wrap/langinfo.h: Likewise.
22303 * lib/posix_wrap/limits.h: Likewise.
22304 * lib/posix_wrap/localcharset.h: Likewise.
22305 * lib/posix_wrap/stdint.h: Likewise.
22306 * lib/posix_wrap/stdio.h: Likewise.
22307 * lib/posix_wrap/stdlib.h: Likewise.
22308 * lib/posix_wrap/string.h: Likewise.
22309 * lib/posix_wrap/sys/types.h: Likewise.
22310 * lib/posix_wrap/unistd.h: Likewise.
22311 * lib/posix_wrap/wchar.h: Likewise.
22312 * lib/posix_wrap/wctype.h: Likewise.
22313 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22314 (grub_script.yy.h): Likewise.
22315 * script/yylex.l: Remove POSIX emulation #defines.
22316 * Makefile.in (POSIX_CFLAGS): New variable.
22317 (GNULIB_UTIL_CFLAGS): Likewise.
22321 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22322 (regexp_mod_SOURCES): New variable.
22323 (regexp_mod_CFLAGS): Likewise.
22324 (regexp_mod_LDFLAGS): Likewise.
22325 * commands/regexp.c: New file.
22326 * gnulib/regcomp.c: New file. Imported from gnulib.
22327 * gnulib/regex.c: Likewise.
22328 * gnulib/regex_internal.c: Likewise.
22329 * gnulib/regex_internal.h: Likewise.
22330 * gnulib/regexec.c: Likewise.
22331 * gnulib/regex.h: Likewise.
22333 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22335 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22336 unsupported video mode types.
22338 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22340 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22342 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22344 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22345 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22347 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22349 Remove unused grub_vga_get_font.
22351 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22352 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22354 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22356 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22357 * include/grub/misc.h: Likewise.
22359 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22361 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22362 for which failure is fatal.
22364 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22366 * util/grub-install.in: Use mkdir -p to create grub directory.
22367 * util/i386/efi/grub-install.in: Likewise.
22368 * util/ieee1275/grub-install.in: Likewise.
22370 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22372 * Makefile.in (LEX): new variable.
22374 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22376 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22377 `=' and added double quotes on operands of this equality test.
22379 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22381 * Makefile.in (uninstall): Remove a leftover debug echo.
22382 Reported by: Grégoire Sutre
22384 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22386 MIPS multiboot2 support.
22388 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22389 (multiboot2_mod_SOURCES): New variable.
22390 (multiboot2_mod_CFLAGS): Likewise.
22391 (multiboot2_mod_LDFLAGS): Likewise.
22392 (multiboot2_mod_ASFLAGS): Likewise.
22393 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22395 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22396 (MULTIBOOT_MBI_REGISTER): Likewise.
22397 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22398 (MULTIBOOT_ELF32_MACHINE): Likewise.
22399 (MULTIBOOT_ELF64_MACHINE): Likewise.
22400 * include/grub/mips/multiboot.h: New file.
22401 * include/grub/video.h (grub_video_driver_id): New type
22402 GRUB_VIDEO_DRIVER_SM712.
22403 (grub_video_get_info_and_fini): Export.
22404 (grub_video_get_palette): Likewise.
22405 (grub_video_get_driver_id): Likewise.
22406 * include/multiboot2.h: Resynced with spec.
22407 * loader/i386/multiboot.c: Moved from here ...
22408 * loader/multiboot.c: ... here. All users updated.
22409 (grub_multiboot_boot): Use platform-specific macros.
22410 * loader/i386/multiboot_elfxx.c: Moved from here ...
22411 * loader/multiboot_elfxx.c: ... here. All users updated.
22412 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22413 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22414 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22416 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22418 Import gnulib argp module.
22420 * gnulib/argp-ba.c: New file.
22421 * gnulib/argp-eexst.c: Likewise.
22422 * gnulib/argp-fmtstream.c: Likewise.
22423 * gnulib/argp-fmtstream.h: Likewise.
22424 * gnulib/argp-fs-xinl.c: Likewise.
22425 * gnulib/argp-help.c: Likewise.
22426 * gnulib/argp-namefrob.h: Likewise.
22427 * gnulib/argp-parse.c: Likewise.
22428 * gnulib/argp-pin.c: Likewise.
22429 * gnulib/argp-pv.c: Likewise.
22430 * gnulib/argp-pvh.c: Likewise.
22431 * gnulib/argp-version-etc.c: Likewise.
22432 * gnulib/argp-version-etc.h: Likewise.
22433 * gnulib/argp-xinl.c: Likewise.
22434 * gnulib/argp.h: Likewise.
22436 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22438 * kern/device.c (grub_device_iterate): Clear errors after failed
22441 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22443 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22444 returned by firmware.
22446 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22448 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22449 compilation on coreboot and qemu
22451 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22453 * include/multiboot2.h: Resync with spec.
22455 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22457 Multiboot2 tag support
22459 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22460 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22461 Remove loader/multiboot_loader.c.
22462 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22463 (grub_multiboot2_real_boot): Likewise.
22464 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22465 (grub_get_multiboot_mmap_count): New proto.
22466 (grub_fill_multiboot_mmap): Likewise.
22467 (grub_multiboot_set_video_mode): Likewise.
22468 (grub_multiboot_set_console): Likewise.
22469 (grub_multiboot_load): Likewise.
22470 (grub_multiboot_load_elf): Likewise.
22471 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22472 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22473 * include/multiboot.h: Resynced with specification.
22474 * include/multiboot2.h: Resynced with specification.
22475 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22476 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22477 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22478 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22480 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22481 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22482 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22484 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22486 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22487 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22489 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22490 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22491 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22493 * loader/i386/multiboot_mbi2.c: New file.
22495 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22497 Resync with gnulib.
22499 * Makefile.in (GNULIB_CFLAGS): New variable.
22500 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22501 (grub_script_check_CFLAGS): New variable.
22502 * gnulib/alloca.h: Resync with gnulib.
22503 * gnulib/error.c: Likewise.
22504 * gnulib/error.h: Likewise.
22505 * gnulib/fnmatch.c: Likewise.
22506 * gnulib/fnmatch_loop.c: Likewise.
22507 * gnulib/getdelim.c: Likewise.
22508 * gnulib/getline.c: Likewise.
22509 * gnulib/getopt.c: Likewise.
22510 * gnulib/getopt1.c: Likewise.
22511 * gnulib/getopt_int.h: Likewise.
22512 * gnulib/gettext.h: Likewise.
22513 * gnulib/progname.c: Likewise.
22514 * gnulib/progname.h: Likewise.
22516 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22518 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22519 which is the case with --disabled-nls.
22521 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22522 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22523 * util/misc.c: Likewise.
22524 * util/mkisofs/mkisofs.c: Likewise.
22525 * util/mkisofs/mkisofs.h: Likewise.
22527 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22529 Simplify Apple CC support.
22531 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22532 Add 0 byte at the end not to have a symbol with empty target.
22533 * mmap/i386/pc/mmap_helper.S: Likewise.
22534 * genmk.rb: Ignore errors 2030 and 2050.
22535 * kern/i386/pc/startup.S: Use LOCAL when possible.
22537 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22539 Testcase and the fix for final semicolon on cmdline.
22541 * tests/grub_script_final_semicolon.in: New testcase.
22542 * conf/tests.rmk: Rules for the new testcase.
22543 * script/parser.y: Grammar fix.
22545 2010-03-26 BVK Chaitanya <bvk@localhost>
22547 Blank lines testcase for GRUB script.
22549 * tests/grub_script_blanklines.in: New testcase.
22550 * conf/tests.rmk: Rules for the new testcase.
22552 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22554 Don't use __FILE__.
22556 * genmk.rb: Add -DGRUB_FILE to all C targets.
22557 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22558 * include/grub/list.h: Likewise.
22559 * include/grub/misc.h: Likewise.
22560 * include/grub/mm.h: Likewise.
22561 * include/grub/test.h: Likewise.
22562 * kern/mm.c: Likewise.
22563 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22565 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22567 Sunpc partitions support.
22569 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22570 (grub_fstest_SOURCES): Likewise.
22571 (pkglib_MODULES): Add part_sunpc.mod.
22572 (part_sunpc_mod_SOURCES): New variable.
22573 (part_sunpc_mod_CFLAGS): Likewise.
22574 (part_sunpc_mod_LDFLAGS): Likewise.
22575 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22576 * partmap/sunpc.c: New file.
22578 2010-03-26 BVK Chaitanya <bvk@localhost>
22580 For loop support to GRUB script.
22582 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22583 (grub_script_create_cmdfor): New function prototype.
22584 (grub_script_execute_cmdfor): New function prototype.
22585 * script/execute.c (grub_script_execute_cmdfor): New function.
22586 * script/parser.y (command): New for command.
22587 (forcmd): New grammar rule.
22588 * script/script.c (grub_script_create_cmdfor): New function.
22589 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22591 * tests/grub_script_for1.in: New testcase.
22592 * conf/tests.rmk: Rules for new testcase.
22594 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22598 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22599 'partition' is NULL, grub_partition_get_start already does that.
22600 * commands/loadenv.c (check_blocklists): Likewise.
22601 (write_blocklists): Likewise.
22602 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22603 (grub_fstest_SOURCES): Likewise.
22604 (pkglib_MODULES): Add part_bsd.mod.
22605 (part_bsd_mod_SOURCES): New variable.
22606 (part_bsd_mod_CFLAGS): Likewise.
22607 (part_bsd_mod_LDFLAGS): Likewise.
22608 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22609 (grub_emu_SOURCES): Likewise.
22610 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22611 * include/grub/bsdlabel.h: New file.
22612 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22614 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22615 (grub_partition_map_list): New variable.
22616 (grub_partition_map_register): Inline.
22617 (grub_partition_map_unregister): Likewise.
22618 (FOR_PARTITION_MAPS): New macro.
22619 (grub_partition_map_iterate): Removed.
22620 (grub_partition_get_start): Handle nested partitions.
22621 * include/grub/msdos_partition.h: Remove bsd-related entries.
22622 (grub_pc_partition): Remove.
22623 * kern/disk.c (grub_disk_close): Free partition data.
22624 (grub_disk_adjust_range): Handle nested partitions.
22625 * kern/partition.c (grub_partition_map_probe): New function.
22626 (grub_partition_probe): Parse name to number, handle subpartitions.
22627 (get_partmap): New function.
22628 (grub_partition_iterate): Handle subpartitions.
22629 (grub_partition_get_name): Likewise.
22630 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22631 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22632 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22633 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22635 (acorn_partition_map_probe): Remove.
22636 (acorn_partition_map_get_name): Likewise.
22637 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22639 Set 'index' to 0 since there can be only one partition entry per sector.
22640 (amiga_partition_map_probe): Remove.
22641 (amiga_partition_map_get_name): Likewise.
22642 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22644 Set 'offset' and 'index' to real positions of partitions.
22645 (apple_partition_map_probe): Remove.
22646 (apple_partition_map_get_name): Likewise.
22647 * partmap/bsdlabel.c: New file.
22648 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22650 Allocate 'data' so it can be correctly freed.
22651 Set 'index' to offset inside sector.
22652 (gpt_partition_map_probe): Remove.
22653 (gpt_partition_map_get_name): Likewise.
22654 * partmap/msdos.c (grub_partition_parse): Remove.
22655 (pc_partition_map_iterate): Don't force raw access.
22657 Make 'ext_offset' a local variable.
22658 (pc_partition_map_probe): Remove.
22659 (pc_partition_map_get_name): Remove.
22660 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22662 (sun_partition_map_probe): Remove.
22663 (sun_partition_map_get_name): Likewise.
22664 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22665 (grub_pcpart_type): Likewise.
22666 * util/hostdisk.c (open_device): Handle new numbering scheme.
22667 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22668 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22669 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22670 * util/grub-install.in: Insert all subpartition modules.
22671 * util/ieee1275/grub-install.in: Likewise.
22673 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22675 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22678 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22680 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22682 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22684 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22685 match where 'make install' puts them.
22686 * util/i386/efi/grub-install.in: Likewise.
22688 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22690 * .bzrignore: Add gentrigtables, grub-script-check,
22691 grub_script_check_init.c, grub_script_check_init.h, and
22694 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22696 * kern/parser.c: Indented.
22698 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22700 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22702 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22704 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22705 alpha_mask_size == 0 case.
22707 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22709 GRUB shell lexer and parser improvements.
22711 * conf/any-emu.rmk: Build rule updates.
22712 * conf/common.rmk: Likewise.
22713 * conf/i386-coreboot.rmk: Likewise.
22714 * conf/i386-efi.rmk: Likewise.
22715 * conf/i386-ieee1275.rmk: Likewise.
22716 * conf/i386-pc.rmk: Likewise.
22717 * conf/powerpc-ieee1275.rmk: Likewise.
22718 * conf/x86_64-efi.rmk: Likewise.
22720 * configure.ac: Configure check for flex.
22722 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22724 (grub_lexer_param): Struct member updates.
22725 (grub_parser_param): Likewise.
22726 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22727 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22728 (grub_script_lexer_init): Prototype update.
22729 (grub_script_lexer_record_start): Likewise.
22730 (grub_script_lexer_record_stop): Likewise.
22731 (grub_script_lexer_yywrap): New function prototype.
22732 (grub_script_lexer_fini): Likewise.
22733 (grub_script_execute_argument_to_string): Removed by...
22734 (grub_script_execute_argument_to_argv): ...better version.
22736 * script/execute.c (ROUND_UPTO): New macro.
22737 (grub_script_execute_cmdline): Out of memory fixes.
22738 (grub_script_execute_menuentry): Likewise.
22739 (grub_script_execute_argument_to_string): Removed. Update all
22741 (grub_script_execute_argument_to_argv): ...better version.
22742 * script/function.c (grub_script_function_create): Use
22743 grub_script_execute_argument_to_argv instead of
22744 grub_script_execute_argument_to_string.
22746 * script/lexer.c (check_varstate): Removed.
22747 (check_textstate): Removed.
22748 (grub_script_lexer_record_start): Likewise.
22749 (grub_script_lexer_record_stop): Likewise.
22750 (recordchar): Replaced with...
22751 (grub_script_lexer_record): ...new function.
22752 (nextchar): Removed.
22753 (grub_script_lexer_init): Rewritten.
22754 (grub_script_yylex): Rewritten.
22755 (append_newline): New function.
22756 (grub_script_lexer_yywrap): New function.
22757 (grub_script_lexer_fini): New function.
22758 (grub_script_yyerror): Sets error flag.
22760 * script/yylex.l: New file.
22761 (grub_lexer_yyfree): Wrapper for flex yyffre.
22762 (grub_lexer_yyalloc): Likewise.
22763 (grub_lexer_yyrealloc): Likewise.
22764 * script/parser.y: Refactored.
22766 * script/script.c (grub_script_arg_add): Out of memory fixes.
22767 (grub_script_add_arglist): Likewise.
22768 (grub_script_create_cmdline): Likewise.
22769 (grub_script_create_cmdmenu): Likewise.
22770 (grub_script_add_cmd): Likewise.
22771 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22772 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22775 * tests/grub_script_echo1.in: New testcase.
22776 * tests/grub_script_vars1.in: New testcase.
22777 * tests/grub_script_echo_keywords.in: New testcase.
22779 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22781 Remove some redundancy in build system.
22783 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22784 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22785 (TARGET_LDFLAGS): Add -nostdlib.
22786 (TARGET_IMG_LDFLAGS): Likewise.
22787 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22788 anything since mmap isn't available.
22789 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22791 (pkglib_MODULES): Remove reboot.mod.
22792 (reboot_mod_SOURCES): Removed.
22793 (reboot_mod_CFLAGS): Likewise.
22794 (reboot_mod_LDFLAGS): Likewise.
22795 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22796 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22797 (DEFSYMFILES): Add kernel_syms.lst.
22798 (kernel_img_HEADERS): Add common headers.
22799 (symlist.c): New target.
22800 (kernel_syms.lst): Likewise.
22801 (pkglib_MODULES): Add memdisk.mod.
22802 (memdisk_mod_SOURCES): New variable.
22803 (memdisk_mod_CFLAGS): Likewise.
22804 (memdisk_mod_LDFLAGS): Likewise.
22805 (pkglib_MODULES): Add reboot.mod.
22806 (reboot_mod_SOURCES): New variable.
22807 (reboot_mod_CFLAGS): Likewise.
22808 (reboot_mod_LDFLAGS): Likewise.
22809 (pkglib_MODULES): Add date.mod.
22810 (date_mod_SOURCES): New variable.
22811 (date_mod_CFLAGS): Likewise.
22812 (date_mod_LDFLAGS): Likewise.
22813 (pkglib_MODULES): Add datehook.mod.
22814 (datehook_mod_SOURCES): New variable.
22815 (datehook_mod_CFLAGS): Likewise.
22816 (datehook_mod_LDFLAGS): Likewise.
22817 (pkglib_MODULES): Add lsmmap.mod.
22818 (lsmmap_mod_SOURCES): New variable.
22819 (lsmmap_mod_CFLAGS): Likewise.
22820 (lsmmap_mod_LDFLAGS): Likewise.
22821 (pkglib_MODULES): Add boot.mod.
22822 (boot_mod_SOURCES): New variable.
22823 (boot_mod_CFLAGS): Likewise.
22824 (boot_mod_LDFLAGS): Likewise.
22825 * conf/i386-coreboot.rmk: Removed redundant parts.
22826 * conf/i386-ieee1275.rmk: Likewise.
22827 * conf/i386-pc.rmk: Likewise.
22828 * conf/mips-yeeloong.rmk: Likewise.
22829 * conf/mips.rmk: Likewise.
22830 * conf/powerpc-ieee1275.rmk: Likewise.
22831 * conf/sparc64-ieee1275.rmk: Likewise.
22832 * conf/x86_64-efi.rmk: Likewise.
22833 * conf/i386-coreboot.rmk: Moved qemu parts ..
22834 * conf/i386-qemu.rmk: ... here
22835 * conf/i386-efi.rmk: Moved common parts to...
22836 * conf/x86-efi.rmk: ... here.
22837 * conf/i386.rmk: Added modules common to all x86 variants.
22838 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22839 * disk/memdisk.c: Remove grub/machine/kernel.h.
22840 * gensymlist.sh.in: Include symbol.h.
22841 * hook/datehook.c: Correct module name.
22842 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22843 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22844 * include/grub/i386/efi/serial.h: New file.
22845 * include/grub/x86_64/efi/serial.h: Likewise.
22846 * util/time.c: Likewise.
22847 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22849 2010-03-14 Colin King <colin.king@ubuntu.com>
22850 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22852 Shrink the pre-partition-table part of boot.img by eight bytes.
22854 * boot/i386/pc/boot.S (ERR): New macro.
22855 (chs_mode): Use ERR.
22856 (geometry_error): Likewise.
22857 (hd_probe_error): Remove. This is only used once, so we wrwite
22859 (read_error): Instead of printing read_error_string, just set up
22860 %si and fall through to ...
22861 (error_message): ... this new function, also used by ERR.
22863 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22865 Speed up consecutive hostdisk operations on the same device.
22867 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22868 (grub_util_biosdisk_open): Initialise disk->data.
22869 (struct linux_partition_cache): New structure.
22870 (linux_find_partition): Cache partition start positions; these are
22871 expensive to compute on every read and write.
22872 (open_device): Cache open file descriptor in disk->data, so that we
22873 don't have to reopen it and flush the buffer cache for consecutive
22874 operations on the same device.
22875 (grub_util_biosdisk_close): New function.
22876 (grub_util_biosdisk_dev): Set `close' member.
22878 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22879 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22880 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22881 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22882 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22884 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22886 Compile parts of grub-emu as modules.
22888 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22889 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22890 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22891 (all-local): Add $(GRUB_EMU).
22892 (install-local): Install $(GRUB_EMU).
22893 (uninstall): Uninstall $(GRUB_EMU).
22894 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22895 * kern/dl.c: Likewise.
22896 * commands/sleep.c: Not include machine/time.h.
22897 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22898 (COMMON_CFLAGS): Likewise.
22899 (sbin_UTILITIES): Remove grub-emu.
22900 (grub_emu_SOURCES): Removed.
22901 (kernel_img_RELOCATABLE): New variable.
22902 (pkglib_PROGRAMS): Add kernel.img.
22903 (kernel_img_SOURCES): New variable
22904 (kernel_img_CFLAGS): Likewise.
22905 (kernel_img_LDFLAGS): Likewise.
22906 (TARGET_NO_STRIP): Likewise.
22907 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22908 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22909 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22910 (grub-emu): New target.
22911 (GRUB_EMU): New variable.
22912 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22913 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22914 * loader/xnu.c: Likewise.
22915 * include/grub/pci.h: Likewise.
22916 * genemuinit.sh: New file.
22917 * genemuinitheader.sh: Likewise.
22918 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22919 Support TARGET_NO_DYNAMIC_MODULES.
22920 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22921 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22922 * disk/loopback.c: Likewise.
22923 * font/font_cmd.c: Likewise.
22924 * partmap/acorn.c: Likewise.
22925 * partmap/amiga.c: Likewise.
22926 * partmap/apple.c: Likewise.
22927 * partmap/gpt.c: Likewise.
22928 * partmap/msdos.c: Likewise.
22929 * partmap/sun.c: Likewise.
22930 * parttool/msdospart.c: Likewise.
22931 * term/gfxterm.c: Likewise.
22932 * video/bitmap.c: Likewise.
22933 * video/readers/jpeg.c: Likewise.
22934 * video/readers/png.c: Likewise.
22935 * video/readers/tga.c: Likewise.
22936 * video/video.c: Likewise.
22937 * util/grub-emu.c (read_command_list): Removed.
22938 (main): Don't call util_init_nls.
22939 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22940 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22942 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22944 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22945 date.mod, datehook.mod.
22946 (datetime_mod_SOURCES): New variable.
22947 (datetime_mod_CFLAGS): Likewise.
22948 (datetime_mod_LDFLAGS): Likewise.
22949 (date_mod_SOURCES): Likewise.
22950 (date_mod_CFLAGS): Likewise.
22951 (date_mod_LDFLAGS): Likewise.
22952 (datehook_mod_SOURCES): Likewise.
22953 (datehook_mod_CFLAGS): Likewise.
22954 (datehook_mod_LDFLAGS): Likewise.
22955 * conf/sparc64-ieee1275.rmk: Likewise.
22956 * lib/ieee1275/datetime.c: New file.
22958 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22960 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22961 (ieee1275_fb_mod_SOURCES): New variable.
22962 (ieee1275_fb_mod_CFLAGS): Likewise.
22963 (ieee1275_fb_mod_LDFLAGS): Likewise.
22964 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22966 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22967 (HEAP_MAX_ADDR): Likewise.
22968 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22970 Correct stop condition.
22971 (grub_ieee1275_devices_iterate): New function.
22972 * video/ieee1275.c: New file.
22974 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22976 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22978 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22980 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22981 SCRATCH_PAD_DISKBOOT as scratch.
22982 (bootit): Pass Openfirmware pointer in %o4.
22983 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22985 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22986 with util/grub-mkrawimage.c.
22987 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22988 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22989 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22990 (grub_aout_load) [GRUB_UTIL]: Likewise.
22991 * include/grub/kernel.h (grub_modules_get_end): New proto.
22992 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22993 (SCRATCH_PAD_BOOT): New definition.
22994 (SCRATCH_PAD_DISKBOOT): Likewise.
22995 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
22996 * include/grub/sparc64/ieee1275/ieee1275.h
22997 (grub_ieee1275_original_stack): New variable
22998 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23000 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
23001 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
23002 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
23003 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
23004 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
23005 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
23006 (grub_platform_image_format_t): New type.
23007 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
23008 * kern/main.c (grub_modules_get_end)
23009 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
23010 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
23011 (codestart): Switch stacks.
23012 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
23014 (grub_heap_init): Use grub_modules_get_end.
23015 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
23017 * util/grub-mkrawimage.c (generate_image): Support sparc64.
23019 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
23021 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
23023 * util/grub-mkrescue.in: Base ISO UUID on UTC.
23025 2010-03-08 Matt Kraai <kraai@ftbfs.org>
23027 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
23030 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
23032 * genmoddep.awk: Output all missing symbols and not only first.
23034 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23036 * NEWS: Put the date of 1.98 release.
23038 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23040 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
23043 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23045 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
23046 completition in the middle of string.
23048 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23050 * util/grub-mkrescue.in: Use mktemp with explicit template.
23052 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23054 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23056 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23058 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23061 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23063 Fix FreeBSD compilation.
23065 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23066 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23068 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23070 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23072 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23074 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23076 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23078 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23080 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23082 Support relative image path in theme file.
23084 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23085 (image_set_property): Handle theme_dir and relative path.
23087 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23089 * configure.ac: Alias amd64 to x86_64.
23091 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23093 * NEWS: mention multiboot on EFI.
23095 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23097 * kern/main.c (grub_load_modules): Handle errors from init functions of
23100 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23102 * normal/autofs.c (autoload_fs_module): Handle errors.
23104 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23106 Disable linux.mod on qemu-mips since it's not functional and leads
23107 to compilation failure.
23109 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23110 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23111 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23112 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23113 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23114 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23115 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23116 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23117 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23118 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23119 Reported by: BVK Chaitanya
23121 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23123 * INSTALL: Add gettext as a dependency and add qemu to a new section
23124 "Prerequisites for make-check".
23126 2010-03-04 Christian Franke <franke@computer.org>
23128 * util/grub-pe2elf.c: Add missing include "progname.h".
23130 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23132 * normal/crypto.c (read_crypto_list): Fix a typo.
23133 Reported by: Seth Goldberg.
23135 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23137 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
23138 Reported by: Seth Goldberg.
23140 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23142 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23145 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23147 * genmk.rb: Remove terminal*.lst in make clean.
23148 Reported by: Seth Goldberg.
23150 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23152 * util/i386/efi/grub-install.in: Copy gettext files.
23154 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23156 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23158 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23160 Wait for user entry basing on presence of output rather than on errors.
23162 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23163 (grub_install_newline_hook): Likewise.
23164 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23165 * normal/menu.c (show_menu): Check line_counter to determine presence
23167 * normal/term.c (grub_normal_line_counter): New variable.
23168 (grub_normal_get_line_counter): New function.
23169 (grub_install_newline_hook): Likewise.
23171 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23173 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23175 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23177 * configure.ac: Update version to 1.98.
23179 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23181 * util/grub.d/10_linux.in (linux_entry): Don't default to
23182 gfxpayload=keep if Linux doesn't support video handover.
23184 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23186 Don't compile video modules on yeeloong since video subsystem is part
23189 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23190 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23191 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23192 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23193 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23194 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23195 * include/grub/bitmap_scale.h: Likewise.
23196 * include/grub/bufio.h: Likewise.
23197 * include/grub/font.h: Likewise.
23198 * include/grub/gfxterm.h: Likewise.
23199 * include/grub/video.h: Likewise.
23200 * include/grub/vbe.h: Don't include video_fb.h.
23201 * video/i386/pc/vbe.c: Include video_fb.h.
23202 * commands/i386/pc/vbetest.c: Include video.h.
23204 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23206 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23207 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23208 default entry if GRUB_SAVEDEFAULT=true. This allows using
23209 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23210 saving a new default on every boot.
23212 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23214 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23215 * normal/term.c (read_terminal_list): Likewise.
23216 * normal/main.c (grub_normal_init_page): Likewise.
23217 (grub_normal_read_line_real): Likewise.
23219 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23221 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23223 Reported by: Seth Goldberg.
23225 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23227 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23228 duplicate declaration of `start'.
23230 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23232 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23234 Reported by: Georgy Buranov
23236 2010-02-20 Carles Pina i Estany <carles@pina.cat>
23238 * util/grub-mkrawimage.c (usage): Change string formatting to
23241 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23243 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23246 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23248 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23249 Reported by: Michael Suchanek.
23251 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
23253 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23254 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23256 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23258 Remove any reference to non-free fonts.
23260 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23261 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23262 uses non-free components.
23263 * font/font.c (grub_font_get_name): Remove example name.
23264 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23265 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23266 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23267 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23269 2010-02-16 Georgy Buranov <gburanov@gmail.com>
23271 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23273 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23275 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23277 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23279 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23281 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23283 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23285 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23287 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23288 * docs/grub.texi (Command-line and menu entry commands): Document play
23291 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23293 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23294 parse arguments as inline tempo and notes. Move code for playing notes
23296 (play): ... new function.
23298 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23300 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23301 grub_uint16_t instead of short.
23302 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23303 disk from little endian to cpu endianness.
23305 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23307 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23308 GRUB_TICKS_PER_SECOND instead of 120.
23310 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23312 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23313 escape sequence after \e.
23315 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23317 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23318 non-ASCII characters.
23320 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23322 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23323 set root in single quotes to prevent \, from being unescaped.
23325 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23327 Prevent unknown commands from stopping menuentry execution.
23329 * script/execute.c (grub_script_execute_cmdline): Print error after
23332 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23334 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23335 Reported by: Pavel Pisa.
23337 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23339 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23341 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23343 Merge grub_ieee1275_map_physical into grub_map and rename to
23346 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23347 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23349 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23350 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23352 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23354 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23356 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23357 opening and not after.
23359 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23361 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23364 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23366 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23367 (alloc_phys): Use ALIGN_UP instead of align_addr.
23369 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23371 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23373 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23375 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23377 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23379 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23382 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23384 Fix over-4GiB seek on sparc64.
23386 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23387 Replace pos_i and pos_lo with pos. All users updated.
23388 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23390 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23392 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23395 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23397 * util/grub-mkrawimage.c (main): Call set_program_name.
23399 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23401 Properly align 64-bit targets.
23403 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23404 (generate_image): Use ALIGN_ADDR.
23406 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23408 Properly create cross-endian images.
23410 * include/grub/types.h (grub_host_to_target_addr): New macro
23411 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23413 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23415 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23417 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23419 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23421 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23422 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23423 (grub_linux_boot): Divide by 64K when on VESA.
23425 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23427 Support GRUB_GFXPAYLOAD_LINUX.
23429 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23430 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23432 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23434 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23435 to show messages instead of discarding them.
23436 Process errors after executing command and not before. Keep old method
23439 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23441 * configure.ac: Check for ft2build.h.
23443 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23445 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23447 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23449 * genkernsyms.sh.in: Use TARGET_CC.
23451 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23455 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23457 * include/grub/multiboot2.h: Remove leftover file.
23458 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23459 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23461 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23463 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23465 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23467 Fix warnings in grub-emu when compiling with maximum warning options.
23469 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23470 (grub_arch_modules_addr): Return 0 and not NULL.
23471 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23472 (xstrdup): Use newstr instead of dup.
23473 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23474 of disk to dsk to avoid shadowing.
23475 (find_free_slot): Fix prototype.
23476 * util/getroot.c (grub_util_is_dmraid): Make static.
23477 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23478 Add missing prototype.
23479 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23481 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23483 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23486 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23488 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23491 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23493 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23494 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23495 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23496 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23497 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23498 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23500 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23502 * include/grub/err.h (grub_err_printf): Don't export.
23504 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23506 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23508 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23510 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23511 * kern/misc.c (grub_gettext_dummy): Make static.
23513 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23515 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23517 * kern/term.c (grub_putchar): Likewise.
23519 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23521 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23522 buggy hook call and memory leak.
23524 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23526 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23528 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23530 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23532 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23534 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23536 Return grub_errno on allocation error.
23538 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23540 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23542 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23544 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23545 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23547 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23549 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23551 (grub_pxefs_open): Likewise.
23553 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23555 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23556 * util/grub.d/10_kfreebsd.in: Likewise.
23557 * util/grub.d/10_linux.in: Likewise.
23559 2010-02-06 Colin D Bennett <colin@gibibit.com>
23561 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23562 (gfxmenu_mod_SOURCES): New variable.
23563 (gfxmenu_mod_CFLAGS): Likewise.
23564 (gfxmenu_mod_LDFLAGS): Likewise.
23565 * include/grub/term.h (grub_term_set_current_output): Declare
23567 * docs/gfxmenu-theme-example.txt: New file.
23568 * gfxmenu/gfxmenu.c: Likewise.
23569 * gfxmenu/gui_box.c: Likewise.
23570 * gfxmenu/gui_canvas.c: Likewise.
23571 * gfxmenu/gui_circular_progress.c: Likewise.
23572 * gfxmenu/gui_image.c: Likewise.
23573 * gfxmenu/gui_label.c: Likewise.
23574 * gfxmenu/gui_list.c: Likewise.
23575 * gfxmenu/gui_progress_bar.c: Likewise.
23576 * gfxmenu/gui_string_util.c: Likewise.
23577 * gfxmenu/gui_util.c: Likewise.
23578 * gfxmenu/icon_manager.c: Likewise.
23579 * gfxmenu/model.c: Likewise.
23580 * gfxmenu/named_colors.c: Likewise.
23581 * gfxmenu/theme_loader.c: Likewise.
23582 * gfxmenu/view.c: Likewise.
23583 * gfxmenu/widget-box.c: Likewise.
23584 * include/grub/gfxmenu_model.h: Likewise.
23585 * include/grub/gfxmenu_view.h: Likewise.
23586 * include/grub/gfxwidgets.h: Likewise.
23587 * include/grub/gui.h: Likewise.
23588 * include/grub/gui_string_util.h: Likewise.
23589 * include/grub/icon_manager.h: Likewise.
23591 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23593 Agglomerate scrolling in gfxterm.
23595 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23596 (grub_virtual_screen_setup): Initialise 'total_screen'.
23597 (write_char): Split to ...
23598 (paint_char): ... this ...
23599 (write_char): ... and this.
23600 (paint_char): Handle delayed scrolling.
23601 (draw_cursor): Likewise.
23602 (scroll_up): Split to ...
23603 (real_scroll): ... this ...
23604 (scroll_up): ... and this.
23605 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23607 (grub_gfxterm_refresh): Call real_scroll.
23609 2010-02-06 Colin D Bennett <colin@gibibit.com>
23611 * include/grub/misc.h (grub_iscntrl): New inline function.
23612 (grub_isalnum): Likewise.
23613 (grub_strtol): Likewise.
23615 2010-02-06 Colin D Bennett <colin@gibibit.com>
23617 * normal/menu_text.c (get_entry_number): Move from here ...
23618 * normal/menu.c (get_entry_number): ... moved here.
23619 * include/grub/menu.h (grub_menu_get_default_entry_index):
23621 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23622 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23623 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23624 (grub_menu_viewer_should_return): Likewise.
23625 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23626 * normal/menu_text.c (run_menu): Enable menu switching.
23627 * normal/menu_viewer.c (should_return): New variable.
23628 (menu_viewer_changed): Likewise.
23629 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23630 (grub_menu_viewer_should_return): New function.
23631 (menuviewer_write_hook): Likewise.
23632 (grub_menu_viewer_init): Likewise.
23634 2010-02-06 Colin D Bennet <colin@gibibit.com>
23635 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23637 Support for gfxterm in a window.
23639 * include/grub/gfxterm.h: New file.
23640 * include/grub/video.h (struct grub_video_rect): New declaration.
23641 (grub_video_rect_t): Likewise.
23642 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23643 (refcount): New variable.
23644 (render_target): Likewise.
23645 (window): Likewise.
23646 (repaint_callback): Likewise.
23647 (grub_virtual_screen_setup): Use 'render_target'.
23648 (init_window): New function.
23649 (grub_gfxterm_init_window): Likewise.
23650 (grub_gfxterm_init): Check reference counter.
23652 (destroy_window): New function.
23653 (grub_gfxterm_destroy_window): Likewise.
23654 (grub_gfxterm_fini): Check reference counter.
23655 Use destroy_window.
23656 (redraw_screen_rect): Restore viewport.
23657 Use 'render_target' and 'window'.
23658 Call 'repaint_callback'.
23659 (write_char): Use 'render_target'.
23660 (draw_cursor): Likewise.
23661 (scroll_up): Restore viewport.
23662 Use 'render_target' and 'window'.
23663 Call 'repaint_callback'.
23664 (grub_gfxterm_cls): Likewise.
23665 (grub_gfxterm_refresh): Use 'window'.
23666 (grub_gfxterm_set_repaint_callback): New function.
23667 (grub_gfxterm_background_image_cmd): Use 'window'.
23668 (grub_gfxterm_get_term): New function.
23669 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23671 2010-02-06 Colin D Bennett <colin@gibibit.com>
23673 Bitmap scaling support.
23675 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23676 (bitmap_scale_mod_SOURCES): New variable.
23677 (bitmap_scale_mod_CFLAGS): Likewise.
23678 (bitmap_scale_mod_LDFLAGS): Likewise.
23679 * include/grub/bitmap_scale.h: New file.
23680 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23681 (background_image_cmd_options): New variable.
23682 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23683 (cmd): Rename and change type to ...
23684 (background_image_cmd_handle): ... this. All users updated.
23685 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23686 * video/bitmap_scale.c: New file.
23688 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23692 * Makefile.in (LIBSDL): New variable.
23693 (enable_grub_emu_sdl): Likewise.
23694 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23695 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23696 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23697 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23698 * util/sdl.c: New file.
23700 2010-02-06 Colin D Bennett <colin@gibibit.com>
23701 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23703 Double buffering support.
23705 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23706 * include/grub/video.h: Update comment.
23707 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23709 (grub_video_fb_doublebuf_blit_init): New prototype.
23710 * term/gfxterm.c (scroll_up): Support double buffering.
23711 (grub_gfxterm_refresh): Likewise.
23712 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23713 (grub_video_fb_doublebuf_blit_init): Likewise.
23714 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23715 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23716 'displayed_page', 'render_page' and 'update_screen'.
23717 (grub_video_vbe_fini): Free offscreen buffer.
23718 (doublebuf_pageflipping_commit): New function.
23719 (doublebuf_pageflipping_update_screen): Likewise.
23720 (doublebuf_pageflipping_init): Likewise.
23721 (double_buffering_init): Likewise.
23722 (grub_video_vbe_setup): Enable doublebuffering.
23723 (grub_video_vbe_swap_buffers): Implement.
23724 (grub_video_vbe_set_active_render_target): Handle double buffering.
23725 (grub_video_vbe_get_active_render_target): Likewise.
23726 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23727 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23728 (grub_video_vbe_enable_double_buffering): Likewise.
23729 (grub_video_vbe_swap_buffers): Use update_screen.
23730 (grub_video_set_mode): Use double buffering.
23732 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23734 * maintainance/gentrigtables.py: Remove.
23735 * lib/trig.c: Likewise.
23737 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23739 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23741 (trigtables.c): New rule.
23742 (gentrigtables): Likewise.
23743 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23745 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23747 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23750 2010-02-06 Colin D Bennet <colin@gibibit.com>
23752 Trigonometry support.
23754 * include/grub/trig.h: New file.
23755 * lib/trig.c: Likewise.
23756 * maintainance/gentrigtables.py: Likewise.
23757 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23758 (trig_mod_SOURCES): New variable.
23759 (trig_mod_CFLAGS): Likewise.
23760 (trig_mod_LDFLAGS): Likewise.
23762 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23764 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23767 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23769 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23772 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23774 * util/hostdisk.c (open_device): Don't use partition device when reading
23775 before the partition.
23776 (grub_util_biosdisk_read): Don't read from partition and before the
23777 partition in single operation.
23778 (grub_util_biosdisk_write): Don't write to partition and before the
23779 partition in single operation.
23781 2010-02-03 Torsten Landschoff <torsten@debian.org>
23783 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23786 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23788 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23790 (grub_biosdisk_write): Refuse to write to CDROM.
23792 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23794 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23796 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23798 * font/font.c (find_glyph): Check that bmp_idx is available before
23800 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23801 with (font == NULL).
23803 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23805 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23807 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23809 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23810 * util/grub-script-check.c (getline): Fix empty lines case.
23812 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23814 * Makefile.in (check): Exit with fail status when one of the tests
23816 * tests/example_functional_test.c (example_test): Fix reversed assert.
23817 * tests/example_unit_test.c (example_test): Likewise.
23819 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23821 * util/grub.d/10_linux.in: This script does not use any of the
23822 contents of gettext.sh, only the external command `gettext', so stop
23823 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23824 the same prefix as GRUB.)
23825 * util/grub.d/10_kfreebsd.in: Likewise.
23827 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23829 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23832 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23834 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23837 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23839 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23840 having a 4KiB and not 32KiB buffer size.
23842 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23844 * util/hostfs.c: Include `<errno.h>'.
23845 (grub_hostfs_read): Handle errors from fseeko() and fread().
23847 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23849 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23850 loop when using read hooks on files whose size isn't sector-aligned.
23852 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23854 Remove unused parameter.
23856 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23857 (grub_iso9660_open): Remove initialization of `data->length'.
23859 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23861 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23862 memleak conditions.
23864 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23866 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23867 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23869 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23871 * util/bin2h.c (usage): Fix warning (space after backslash).
23873 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23875 * font/font.c: Include `grub/fontformat.h.
23876 Remove font file format constants.
23877 (grub_font_load): Use the new macros.
23878 * include/grub/fontformat.h: New file.
23879 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23880 (write_font_pf2): Use the new macros.
23882 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23884 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23887 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23889 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23891 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23892 (_start): Macroify `0x7F'.
23894 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23895 (make_install_device): Use "(pxe)" as fallback prefix when booting
23898 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23900 * configure.ac: Reset LIBS after check for libgcc symbols.
23902 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23904 * util/hostdisk.c (open_device): Add trailing newline to debug
23907 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23909 * configure.ac: Check for `limits.h'.
23910 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23912 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23914 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23915 capitalize error strings.
23917 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23919 * util/grub.d/10_hurd.in: Add a recovery mode.
23921 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23923 * configure.ac: Check for libgcc symbols with -nostdlib.
23925 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23927 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23929 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23931 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23932 stack since heap may be unavailable at that point.
23933 (grub_ofconsole_gotoxy): Likewise.
23935 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23937 * configure.ac: Check for _restgpr_14_x.
23938 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23939 and _savegpr_* prototypes.
23941 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23943 Use generic grub_reboot() for i386-efi.
23945 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23946 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23947 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23949 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23951 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23952 presence of "prefix" variable as it breaks when normal.mod is
23955 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23957 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23958 stack since heap is unavailable at that point.
23960 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23962 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23963 (grub_freebsd_bootinfo): Rewritten.
23964 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23966 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23968 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23970 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23972 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23975 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23977 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23978 around for handling "/" to the correct fix. Fix a memory leak. Use
23979 xstrdup instead of strdup.
23981 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23983 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23985 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23987 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23989 * font/font.c (struct grub_font): New member 'bmp_idx'.
23990 (font_init): Initialise 'bmp_idx'.
23991 (load_font_index): Fill 'bmp_idx'.
23992 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23994 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23996 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
23999 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24001 Move context handling out of the kernel.
24003 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
24004 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
24005 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
24006 * conf/i386-efi.rmk: Likewise.
24007 * conf/i386-ieee1275.rmk: Likewise.
24008 * conf/i386-pc.rmk: Likewise.
24009 * conf/powerpc-ieee1275.rmk: Likewise.
24010 * conf/sparc64-ieee1275.rmk: Likewise.
24011 * conf/x86_64-efi.rmk: Likewise.
24012 * include/grub/env.h: Include grub/menu.h.
24013 (grub_env_var_type): Removed.
24014 (grub_env_var): Replaced field 'type' with 'global'.
24015 (grub_env_find): New prototype.
24016 (grub_env_context_open): Remove EXPORT_FUNC.
24017 (grub_env_context_close): Likewise.
24018 (grub_env_export): Likewise.
24019 (grub_env_set_data_slot): Removed.
24020 (grub_env_get_data_slot): Likewise.
24021 (grub_env_unset_data_slot): Likewise.
24022 (grub_env_unset_menu): New prototype.
24023 (grub_env_set_menu): Likewise.
24024 (grub_env_get_menu): Likewise.
24025 * include/grub/env_private.h: New file.
24026 * include/grub/normal.h (grub_context_init): New prototype.
24027 (grub_context_fini): Likewise.
24028 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
24029 * normal/context.c (grub_cmd_export): ... to here.
24030 * kern/env.c: Include env_private.h.
24031 (HASHSZ): Moved to include/grub/env_private.h.
24032 (grub_env_context): Likewise.
24033 (grub_env_sorted_var): Likewise.
24034 (current_context): Renamed from this ...
24035 (grub_current_context): ...to this. 'static' removed. All users updated.
24036 (grub_env_find): Removed 'static'.
24037 (grub_env_context_open): Moved to normal/context.c.
24038 (grub_env_context_close): Likewise.
24039 (grub_env_export): Likewise.
24040 (mangle_data_slot_name): Removed.
24041 (grub_env_set_data_slot): Likewise.
24042 (grub_env_get_data_slot): Likewise.
24043 (grub_env_unset_data_slot): Likewise.
24044 * kern/main.c (grub_set_root_dev): Don't export root.
24045 It will be done later.
24046 (grub_main): Don't export prefix.
24047 It will be done later.
24048 * normal/context.c: New file.
24049 * normal/main.c (free_menu): Use grub_env_unset_menu.
24050 (grub_normal_add_menu_entry): Use grub_env_get_menu.
24051 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24052 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24053 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24055 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24059 * commands/setpci.c: New file.
24060 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24061 (setpci_mod_SOURCES): New variable.
24062 (setpci_mod_CFLAGS): Likewise.
24063 (setpci_mod_LDFLAGS): Likewise.
24065 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24067 Byte-addressable PCI configuration space.
24069 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24071 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24072 GRUB_PCI_REG_CACHELINE.
24073 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24074 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24075 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24076 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24077 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24078 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24079 grub_pci_make_address.
24080 (lock_rom_area): Likewise.
24081 * commands/lspci.c (grub_lspci_iter): Use macroses
24082 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24083 of grub_pci_make_address.
24084 * disk/ata.c (grub_ata_pciinit): Likewise.
24085 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24086 (GRUB_PCI_REG_VENDOR): Likewise.
24087 (GRUB_PCI_REG_DEVICE): Likewise.
24088 (GRUB_PCI_REG_COMMAND): Likewise.
24089 (GRUB_PCI_REG_STATUS): Likewise.
24090 (GRUB_PCI_REG_REVISION): Likewise.
24091 (GRUB_PCI_REG_CLASS): Likewise.
24092 (GRUB_PCI_REG_CACHELINE): Likewise.
24093 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24094 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24095 (GRUB_PCI_REG_BIST): Likewise.
24096 (GRUB_PCI_REG_ADDRESSES): Likewise.
24097 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24098 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24099 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24100 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24101 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24102 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24103 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24104 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24105 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24106 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24107 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24108 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24109 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24110 (GRUB_PCI_REG_MIN_GNT): Likewise.
24111 (GRUB_PCI_REG_MAX_LAT): Likewise.
24112 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24113 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24114 * video/efi_uga.c (find_framebuf): Likewise.
24115 * video/sm712.c (grub_video_sm712_setup): Likewise.
24116 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24119 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24121 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24122 can be reliably determined to be supported.
24124 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24126 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24127 that VESA is supported.
24128 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24131 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24133 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24135 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24137 * util/misc.c (make_system_path_relative_to_its_root): Work around
24138 special-casing of "/", as previous incarnation of this routine did.
24140 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24142 Fix any-emu compilation.
24144 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24145 * grub_bin2h_SOURCES: New variable.
24147 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24149 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24151 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24153 * util/grub.d/00_header.in: Fix handling of locale_dir.
24155 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24157 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24158 as possible unifont location (Gentoo).
24159 Reported by: Alexander Brüning
24161 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24163 Don't try to generate lists for kernel.img.
24165 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24166 (pkglib_MODULES): Remove kernel.img.
24167 (kernel_img_EXPORTS): Removed.
24168 (kernel_img_RELOCATABLE): New variable.
24169 * conf/x86_64-efi.rmk: Likewise.
24170 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24172 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24174 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24175 grub_xasprintf or grub_snprintf.
24176 (grub_vsprintf): Likewise.
24177 (grub_snprintf): New proto.
24178 (grub_vsnprintf): Likewise.
24179 (grub_xasprintf): Likewise.
24180 (grub_xvasprintf): Likewise.
24181 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24182 (grub_sprintf): Removed.
24183 (grub_vsnprintf): New function.
24184 (grub_snprintf): Likewise.
24185 (grub_xvasprintf): Likewise.
24186 (grub_xasprintf): Likewise.
24187 (grub_vsprintf): Renamed to ...
24188 (grub_vsnprintf_real): ...this. New argument max_len.
24190 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24192 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24193 fix grub-script-check warning.
24195 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24197 * include/grub/font.h (grub_font_load): Fix prototype.
24199 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24201 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24203 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24205 * include/grub/x86_64/at_keyboard.h: New file.
24207 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24209 * loader/mips/linux.c: Include missing grub/i18n.h.
24211 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24213 * normal/menu.c (notify_execution_failure): Clarify error message.
24215 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24217 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24218 return value (and revert all return statements). Update users.
24220 2010-01-20 Dan Merillat <debian@dan.merillat.org>
24222 * kern/device.c (grub_device_iterate): Allocate new part_ent
24223 structure based on sizeof (*p) rather than sizeof (p->next), to
24224 account for structure padding.
24226 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24227 disk is NULL, which might happen for LVM physical volumes with no
24230 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24232 * loader/mips/linux.c (grub_cmd_initrd)
24233 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24235 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24237 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24238 (grub_video_video_init, grub_video_bitmap_init)
24239 (grub_font_manager_init, grub_term_gfxterm_init)
24240 (grub_at_keyboard_init): New extern declarations.
24241 (grub_machine_init): Initialize gfxterm and at_keyboard.
24243 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24245 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24246 `gfxterm.mod' into core image.
24248 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24249 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24250 (kernel_img_FORMAT): Copy to ...
24252 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24253 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24254 (kernel_img_FORMAT): ... here, and ...
24256 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24257 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24258 (kernel_img_FORMAT): ... here.
24260 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24261 and input (at_keyboard) terminals in kernel.
24262 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24264 (pkglib_MODULES): Remove `pci.mod'.
24265 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24266 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24267 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24268 (at_keyboard_mod_LDFLAGS): Remove variables.
24270 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
24272 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24274 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24276 * include/grub/mips/libgcc.h: Only export symbols for functions
24277 that libgcc provides.
24279 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24283 * bus/bonito.c: New file.
24284 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24285 GRUB_PCI_NUM_DEVICES.
24286 * term/i386/pc/serial.c: Move to ...
24287 * term/serial.c: ... here. All users updated.
24288 * util/i386/pc/grub-mkimage.c: Move to ...
24289 * util/grub-mkrawimage.c: ... here. All users updated.
24290 * term/i386/pc/at_keyboard.c: Move to ...
24291 * term/at_keyboard.c: ... here. All users updated.
24292 * conf/mips-qemu-mips.rmk: New file.
24293 * conf/mips-yeeloong.rmk: Likewise.
24294 * conf/mips.rmk: Likewise.
24295 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24297 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24299 (grub_ata_pciinit): Support CS5536.
24300 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24301 * font/font_cmd.c (loadfont_command): Open file before passing it to
24303 (pseudo_file_read): New function.
24304 (pseudo_file_close): Likewise.
24305 (pseudo_fs): New structure.
24306 (load_font_module): New function.
24307 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24308 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24309 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24310 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24311 * include/grub/i386/at_keyboard.h: Split into ...
24312 * include/grub/at_keyboard.h: ... this ...
24313 * include/grub/i386/at_keyboard.h: ... and this.
24314 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24316 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24318 (grub_elf64_size): Likewise.
24319 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24321 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24322 * include/grub/i386/coreboot/serial.h: Rewritten.
24323 * include/grub/i386/ieee1275/serial.h: Include
24324 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24325 * include/grub/i386/pc/serial.h: Moved from here ...
24326 * include/grub/serial.h: ... to here. All users updated.
24327 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24328 (GRUB_PCI_NUM_BUS): Likewise.
24329 (GRUB_PCI_NUM_DEVICES): Likewise.
24330 (grub_pci_device_map_range): Add missing volatile keyword.
24331 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24332 * include/grub/mips/at_keyboard.h: New file.
24333 * include/grub/mips/cache.h: Likewise.
24334 * include/grub/mips/io.h: Likewise.
24335 * include/grub/mips/kernel.h: Likewise.
24336 * include/grub/mips/libgcc.h: Likewise.
24337 * include/grub/mips/pci.h: Likewise.
24338 * include/grub/mips/qemu-mips/boot.h: Likewise.
24339 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24340 * include/grub/mips/qemu-mips/loader.h: Likewise.
24341 * include/grub/mips/qemu-mips/memory.h: Likewise.
24342 * include/grub/mips/qemu-mips/serial.h: Likewise.
24343 * include/grub/mips/qemu-mips/time.h: Likewise.
24344 * include/grub/mips/relocator.h: Likewise.
24345 * include/grub/mips/time.h: Likewise.
24346 * include/grub/mips/types.h: Likewise.
24347 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24348 * include/grub/mips/yeeloong/boot.h: Likewise.
24349 * include/grub/mips/yeeloong/kernel.h: Likewise.
24350 * include/grub/mips/yeeloong/loader.h: Likewise.
24351 * include/grub/mips/yeeloong/memory.h: Likewise.
24352 * include/grub/mips/yeeloong/pci.h: Likewise.
24353 * include/grub/mips/yeeloong/serial.h: Likewise.
24354 * include/grub/mips/yeeloong/time.h: Likewise.
24355 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24356 * kern/elf.c (grub_elf32_size): New parameter. All users
24358 (grub_elf64_size): Likewise.
24359 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24360 Load modules before saying "Welcome to GRUB!".
24361 Call grub_refresh after saying "Welcome to GRUB!".
24362 * kern/mips/cache.S: New file.
24363 * kern/mips/cache_flush.S: Likewise.
24364 * kern/mips/dl.c: Likewise.
24365 * kern/mips/init.c: Likewise.
24366 * kern/mips/qemu-mips/init.c: Likewise.
24367 * kern/mips/startup.S: Likewise.
24368 * kern/mips/yeeloong/init.c: Likewise.
24369 * kern/term.c (grub_putcode): Handle NULL terminal.
24370 (grub_getcharwidth): Likewise.
24371 (grub_getkey): Likewise.
24372 (grub_checkkey): Likewise.
24373 (grub_getkeystatus): Likewise.
24374 (grub_getxy): Likewise.
24375 (grub_getwh): Likewise.
24376 (grub_gotoxy): Likewise.
24377 (grub_cls): Likewise.
24378 (grub_setcolorstate): Likewise.
24379 (grub_setcolor): Likewise.
24380 (grub_getcolor): Likewise.
24381 (grub_refresh): Likewise.
24382 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24383 (write_jump): Add hatch nop.
24384 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24385 * lib/mips/setjmp.S: New file.
24386 * loader/mips/linux.c: Likewise.
24387 * term/i386/pc/at_keyboard.c: Move from here ...
24388 * term/at_keyboard.c: ... to here.
24389 * term/i386/pc/serial.c: Moved from here ...
24390 * term/serial.c: ... to here. All users updated.
24391 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24392 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24393 (serial_translate_key_sequence): Avoid deadlock.
24394 (grub_serial_getkey): Handle backspace.
24395 (grub_serial_putchar): Fix newline handling.
24396 * util/i386/pc/grub-mkimage.c: Move from here ...
24397 * util/grub-mkrawimage.c: ... to here. All users updated.
24398 (generate_image): New parameters 'font_path' and 'format'.
24399 Support embedding font.
24400 Use grub_host_to_target* instead of grub_cpu_to_le*.
24401 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24402 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24403 (options): New option "--font".
24405 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24406 (main): Handle "--font".
24407 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24408 (grub_virtual_screen_setup): Set bg_color_display.
24409 (redraw_screen_rect): Use bg_color_display instead of incorrect
24411 (grub_gfxterm_cls): Likewise.
24412 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24413 Support embedding config file.
24414 (add_segments): Likewise.
24415 (options): New option "--config".
24416 (main): Handle "--config".
24417 * video/sm712.c: New file.
24419 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24421 Fix parallel builds.
24423 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24424 font.c depend on ascii.h).
24426 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24428 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24430 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24432 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24433 By default: disabled.
24434 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24437 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24439 * font/font.c: Update copyright years.
24440 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24442 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24444 * font/font.c: Include `ascii.h'.
24445 (ASCII_BITMAP_SIZE): New macro.
24446 (ascii_font_glyph): Define.
24447 (ascii_glyph_lookup): New function.
24448 (grub_font_get_string_width): Change comment. If glyph not found, use
24449 ascii_glyph_lookup.
24450 (grub_font_get_glyph_with_fallback): If glyph not available returns
24451 ascii_glyph_lookup.
24452 * util/grub-mkfont.c (file_formats): New enum.
24453 (options): Add `ascii-bitmaps' new option.
24454 (usage): Add `asii-bitmaps' new option.
24455 (write_font_ascii_bitmap): New function.
24456 (write_font): Rename to ...
24457 (write_font_p2): ... this. Remove print_glyphs call.
24458 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24459 used. Call print_glyphs.
24460 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24462 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24464 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24465 (grub_bin2h_SOURCES): New variable.
24466 * util/bin2h.c: New file.
24468 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24470 * include/multiboot.h: Resynced with spec.
24471 * include/multiboot2.h: Likewise.
24472 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24473 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24475 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24477 * include/grub/term.h (grub_term_register_input,
24478 grub_term_register_output): Check return of terminal init()
24479 routines, and abort if errors are raised.
24481 * commands/terminal.c: Update copyright year.
24483 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24485 * commands/terminal.c (grub_cmd_terminal_input)
24486 (grub_cmd_terminal_output): Check return of terminal init()
24487 routines, and abort if errors are raised.
24489 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24491 * include/grub/i386/bsd.h: Fix include pathes.
24493 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24495 Add missing *BSD copyright headers.
24497 * include/grub/aout.h: Add BSD licence.
24498 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24499 * include/grub/i386/freebsd_linker.h: ... here,
24500 * include/grub/i386/freebsd_reboot.h: ... here,
24501 * include/grub/i386/netbsd_bootinfo.h: ... here,
24502 * include/grub/i386/netbsd_reboot.h: ... here,
24503 * include/grub/i386/openbsd_bootarg.h: ... here,
24504 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24505 licence to each file.
24507 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24509 * acinclude.m4: Remove `nop' assembly instruction; it's not
24510 implemented by all architectures.
24512 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24514 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24515 ELILO. This is no longer necessary.
24517 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24519 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24521 * util/grub-script-check.c: grub-script-check tool.
24522 * conf/common.rmk: Make rules for grub-script-check.
24524 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24526 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24527 spotting it back in 2008. Shame on me for forgetting he did.
24529 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24531 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24533 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24534 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24535 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24536 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24537 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24538 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24540 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24542 * include/grub/test.h: Add license header.
24543 * tests/example_functional_test.c: Likewise.
24544 * tests/example_unit_test.c: Likewise.
24545 * tests/lib/functional_test.c: Likewise.
24546 * tests/lib/test.c: Likewise.
24547 * tests/lib/unit_test.c: Likewise.
24549 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24551 Use flag-based instead of hook-based video mode selection and "auto"
24554 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24555 (grub_video_set_mode): Changed prototype. All users updated.
24556 (grub_video_check_mode_flag): New inline function.
24557 * video/video.c (parse_modespec): New function.
24558 (grub_video_set_mode): Parse flags and keywords.
24560 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24562 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24565 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24567 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24569 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24571 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24573 * util/grub-emu.c (usage): Likewise.
24574 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24575 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24576 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24577 * util/i386/pc/grub-setup.c (usage): Likewise.
24579 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24581 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24583 (grub_util_info): Likewise.
24584 (grub_util_error): Likewise.
24585 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24586 and/or new lines in `grub_util_warna', `grub_util_info',
24587 `grub_util_error' calls.
24588 * util/getroot.c: Likewise.
24589 * util/grub-editenv.c: Likewise.
24590 * util/grub-emu.c: Likewise.
24591 * util/grub-fstest.c: Likewise.
24592 * util/grub-mkdevicemap.c: Likewise.
24593 * util/grub-mkfont.c: Likewise.
24594 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24595 * util/grub-mkrelpath.c: Likewise.
24596 * util/grub-pe2elf.c: Likewise.
24597 * util/grub-probe.c: Likewise.
24598 * util/hostdisk.c: Likewise.
24599 * util/i386/efi/grub-mkimage.c: Likewise.
24600 * util/i386/pc/grub-mkimage.c: Likewise.
24601 * util/i386/pc/grub-setup.c: Likewise.
24602 * util/ieee1275/ofpath.c: Likewise.
24603 * util/mkisofs/eltorito.c: Likewise.
24604 * util/mkisofs/rock.c: Likewise.
24605 * util/mkisofs/write.c: Likewise.
24606 * util/raid.c: Likewise.
24607 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24608 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24610 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24612 Enable multiboot on non-pc.
24614 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24615 multiboot.mod and multiboot2.mod to ...
24616 * conf/i386.rmk (pkglib_MODULES): ... here.
24617 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24619 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24620 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24622 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24623 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24625 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24626 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24628 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24629 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24631 (ata_mod_SOURCES): Removed.
24632 (ata_mod_CFLAGS): Likewise.
24633 (ata_mod_LDFLAGS): Likewise.
24634 (relocator_mod_SOURCES): Removed.
24635 (relocator_mod_CFLAGS): Likewise.
24636 (relocator_mod_ASFLAGS): Likewise.
24637 (relocator_mod_LDFLAGS): Likewise.
24639 * include/grub/x86_64/multiboot.h: New file.
24640 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24643 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24645 Video multiboot support.
24647 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24649 * include/multiboot.h: Resynced with multiboot specification.
24650 * include/multiboot2.h: Likewise.
24651 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24652 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24653 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24654 (HAS_VGA_TEXT): Likewise.
24655 (accepts_video): New variable.
24656 (grub_multiboot_set_accepts_video): New function.
24657 (grub_multiboot_get_mbi_size): Account for video structures.
24658 (set_video_mode): New function.
24659 (retrieve_video_parameters): Likewise.
24660 (grub_multiboot_make_mbi): Fill video fields.
24662 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24666 * include/grub/video.h (grub_video_driver_id): New type.
24667 (grub_video_adapter): New member 'id'. All users updated.
24668 (grub_video_get_driver_id): New proto.
24669 * video/video.c (grub_video_get_driver_id): New function.
24671 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24673 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24676 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24678 * normal/cmdline.c (print_completion): Gettextizze.
24680 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24682 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24684 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24686 * gettext/gettext.c (grub_gettext_translate): Push and pop
24688 (grub_gettext_delete_list): Change comment style.
24689 * kern/err.c (grub_error): Gettextizze.
24690 (grub_fatal): Gettextizze.
24692 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24694 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24695 (grub_linux16_real_boot): ... this.
24696 * kern/i386/loader.S: Likewise.
24697 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24698 (grub_linux16_boot): New function. Switches to text mode and calls
24699 grub_linux16_real_boot().
24701 * loader/i386/bsd.c: Include `<grub/video.h>'.
24702 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24703 text mode before calling grub_unix_real_boot().
24705 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24706 (grub_multiboot_boot): Switch to text mode before calling
24707 grub_relocator32_boot().
24709 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24710 (grub_chainloader_boot): Switch to text mode before calling
24711 grub_chainloader_real_boot().
24713 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24714 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24716 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24719 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24720 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24722 * util/grub.d/00_header.in: Define a "savedefault" function for use
24724 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24726 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24727 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24729 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24730 saved_entry if boot_once is unset.
24731 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24732 previous saved entry (i.e. grub-reboot).
24734 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24736 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24738 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24740 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24742 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24744 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24746 * util/grub-reboot.in: Fix --version output.
24747 * util/grub-set-default.in: Likewise.
24749 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24751 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24754 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24756 * util/grub.d/00_header.in: Quote the value assigned to `default',
24757 in case it contains spaces.
24759 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24761 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24762 `save_default_entry' call from the macosx case to the linux case.
24764 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24765 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24767 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24768 in `chosen' environment variable.
24769 * normal/menu_text.c (get_entry_number): Check if the variable
24770 matches the title of a menu entry.
24771 (run_menu): Pass menu to get_entry_number.
24773 * util/grub-reboot.in: New file.
24774 * util/grub-set-default.in: New file.
24775 * conf/common.rmk (grub-reboot): New utility.
24776 (grub-set-default): New utility.
24778 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24779 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24780 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24781 move it to `saved_entry' for the next boot. Load environment on
24783 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24784 * util/grub.d/10_hurd.in: Likewise.
24785 * util/grub.d/10_linux.in (linux_entry): Likewise.
24786 * util/grub.d/10_windows.in: Likewise.
24787 * util/grub.d/30_os-prober.in: Likewise.
24789 * util/grub-install.in: Create environment block.
24790 * util/i386/efi/grub-install.in: Likewise.
24791 * util/ieee1275/grub-install.in: Likewise.
24792 * util/sparc64/ieee1275/grub-install.in: Likewise.
24794 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24796 Unit testing framework for GRUB.
24798 * Makefile.in: Test framework build rules for 'make check'.
24799 * conf/tests.rmk: Build rules for individual tests and framework.
24801 * include/grub/test.h: Header file for whitebox tests.
24802 * tests/lib/functional_test.c: Framework support for whitebox
24804 * tests/lib/test.c: Common whitebox testing code for unit and
24806 * tests/lib/unit_test.c: Framework support for whitebox unit
24809 * tests/util/grub-shell-tester.in: Support utility for grub-script
24811 * tests/util/grub-shell.in: Utility to execute grub-script
24812 commands in a Qemu instance.
24814 * tests/example_functional_test.c: Example whitebox functional
24816 * tests/example_grub_script_test.in: Example grub-script test.
24817 * tests/example_scripted_test.in: Example scripted test.
24818 * tests/example_unit_test.c: Example whitebox unit test.
24820 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24822 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24823 Add loader/i386/multiboot_mbi.c.
24824 (multiboot2_mod_SOURCES): Likewise.
24825 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24826 (multiboot2_mod_SOURCES): Likewise.
24827 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24828 (grub_multiboot_make_mbi): Likewise.
24829 (grub_multiboot_free_mbi): Likewise.
24830 (grub_multiboot_init_mbi): Likewise.
24831 (grub_multiboot_add_module): Likewise.
24832 (grub_multiboot_set_bootdev): Likewise.
24833 * loader/i386/multiboot.c (mbi): Removed.
24834 (mbi_dest): Likewise.
24835 (alloc_mbi): New variable.
24836 (grub_multiboot_payload_size): Removed. All users updated.
24837 (grub_multiboot_pure_size): New variable.
24838 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24839 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24840 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24841 (grub_fill_multiboot_mmap): Likewise.
24842 (grub_multiboot_get_bootdev): Likewise.
24843 (grub_multiboot): Use multiboot_mbi functions.
24844 * loader/i386/multiboot_mbi.c: New file.
24846 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24848 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24849 it would result in module crash.
24851 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24853 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24854 (grub_ofconsole_getwh): Split to ...
24855 (grub_ofconsole_getwh): ... this.
24856 (grub_ofconsole_dimensions): ...and this.
24857 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24859 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24861 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24863 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24865 * loader/i386/pc/multiboot2.c: Removed stalled file.
24867 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24869 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24870 Reported by: Grégoire Sutre
24872 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24874 * util/misc.c (canonicalize_file_name): New function.
24875 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24876 instead of realpath().
24878 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24880 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24881 and make it clearer that it's optional. Based on confusion
24884 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24886 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24887 in premature implicit newline.
24889 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24891 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24892 which resulted in garbled command line at the end of screen.
24894 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24896 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24897 initialization with similar approach as with other Linux loaders.
24899 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24901 Fix i386-ieee1275 build.
24903 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24904 and grub_term_height() for video_{width,height} initialization.
24906 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24908 Fix grub-emu build.
24910 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24912 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24913 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24915 Support for multiple terminals.
24917 * Makefile.in (pkglib_DATA): terminal.lst.
24918 (terminal.lst): New target.
24919 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24920 (GRUB_MOD_INIT(handler)): Likewise.
24921 (GRUB_MOD_FINI(handler)): Likewise.
24922 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24923 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24924 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24925 (grub_cmd_sleep): Use grub_term_save_pos.
24926 * commands/terminal.c: New file.
24927 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24928 commands/terminal.c and lib/charset.c.
24929 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24930 (pkglib_MODULES): Add terminal.mod.
24931 (terminal_mod_SOURCES): New variable.
24932 (terminal_mod_CFLAGS): Likewise.
24933 (terminal_mod_LDFLAGS): Likewise.
24934 * genhandlerlist.sh: Don't handle terminals.
24935 * genmk.rb: Generate terminal-*.lst.
24936 * genterminallist.sh: New file.
24937 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24938 (grub_is_valid_utf8): Likewise.
24939 (grub_utf8_to_ucs4_alloc): Likewise.
24940 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24941 (grub_menu_register_viewer): Changed argument.
24942 (grub_menu_try_text): New proto.
24943 (grub_gfxmenu_try_hook): New declaration.
24944 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24945 (grub_menu_init_page): Additional argument term.
24946 (grub_normal_init_page): Likewise.
24947 (grub_cmdline_get): Arguments simplified.
24948 (grub_utf8_to_ucs4_alloc): Removed.
24949 (grub_print_ucs4): Additional argument term.
24950 (grub_getstringwidth): Likewise.
24951 (grub_print_message_indented): Likewise.
24952 (grub_menu_text_register_instances): New proto.
24953 (grub_show_menu): Likewise.
24954 (read_terminal_list): Likewise.
24955 (grub_set_more): Likewise.
24956 * include/grub/parser.h: Include handler.h.
24957 * include/grub/reader.h: Rewritten.
24958 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24959 (GRUB_TERM_WIDTH): Changed to function.
24960 (GRUB_TERM_HEIGHT): Likewise.
24961 (GRUB_TERM_BORDER_WIDTH): Likewise.
24962 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24963 (GRUB_TERM_NUM_ENTRIES): Likewise.
24964 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24965 (GRUB_TERM_CURSOR_X): Likewise.
24966 (grub_term_input_class): Likewise.
24967 (grub_term_output_class): Likewise.
24968 (grub_term_outputs_disabled): New declaration.
24969 (grub_term_inputs_disabled): Likewise.
24970 (grub_term_outputs): Likewise.
24971 (grub_term_inputs): Likewise.
24972 (grub_term_register_input): Rewritten.
24973 (grub_term_register_output): Likewise.
24974 (grub_term_unregister_input): Likewise.
24975 (grub_term_unregister_output): Likewise.
24976 (FOR_ACTIVE_TERM_INPUTS): New macro.
24977 (FOR_DISABLED_TERM_INPUTS): Likewise.
24978 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24979 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24980 * include/grub/terminfo.h: Add oterm argument to all protypes.
24981 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24982 Use grub_rescue_run.
24983 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24985 * kern/reader.c: Removed. All users updated.
24986 * kern/rescue_reader.c (grub_rescue_init): Removed.
24987 (grub_rescue_reader): Likewise.
24988 (grub_register_rescue_reader): Likewise.
24989 (grub_rescue_run): New function based on kern/reader.c.
24990 * kern/term.c: Adapted for multiterm.
24991 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24992 (grub_is_valid_utf8): Likewise.
24993 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24994 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
24996 * loader/i386/linux.c (grub_linux_boot): Likewise.
24997 * normal/auth.c (grub_username_get): New function.
24998 (grub_auth_check_authentication): Use grub_username_get.
24999 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
25000 * normal/color.c: Adapt for multiterm.
25001 * normal/main.c (read_config_file): Don't use grub_reader_loop.
25002 (grub_normal_init_page): Additional argument term.
25003 (read_lists): Call read_terminal_lists.
25004 (grub_enter_normal_mode): Call grub_cmdline_run.
25005 Handle grub_normal_exit_level.
25006 (grub_cmd_normal): Make reentrant.
25007 (grub_cmd_normal_exit): New function.
25008 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
25009 * normal/menu.c: Adapt for multiterm.
25010 * normal/menu_entry.c: Likewise.
25011 * normal/menu_text.c: Likewise.
25012 * normal/menu_viewer.c: Removed. All users updated.
25013 * normal/term.c: New file.
25014 * util/console.c: Change order of includes to workaround a bug in
25016 * term/terminfo.c: New argument oterm on all exported functions.
25018 * util/grub-editenv.c (grub_term_input_class): Removed.
25019 (grub_term_output_class): Likewise.
25021 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25023 Make loader output a bit more user-friendly.
25025 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
25026 is being loaded. Likewise for the Hurd.
25028 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
25029 that kernel of FreeBSD ${version} is being loaded.
25031 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
25033 (grub_cmd_initrd): Likewise.
25034 * util/grub.d/10_linux.in (linux_entry): Print message indicating
25035 that Linux ${version} is being loaded. Likewise for initrd.
25037 2010-01-09 Carles Pina i Estany <carles@pina.cat>
25039 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
25041 2010-01-08 Carles Pina i Estany <carles@pina.cat>
25043 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
25044 (GRUB_MOD_INIT): Gettextizze.
25045 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
25046 (GRUB_MOD_INIT): Gettextizze.
25047 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
25048 (grub_cmd_linux): Capitalise Linux.
25049 (GRUB_MOD_INIT): Gettextizze.
25050 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
25051 (grub_cmd_linux): Capitalise Linux.
25052 (GRUB_MOD_INIT): Gettextizze.
25053 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25054 (grub_cmd_linux): Capitalise Linux.
25055 (GRUB_MOD_INIT): Gettextizze.
25056 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25057 (GRUB_MOD_INIT): Gettextizze.
25058 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25059 (grub_cmd_linux): Capitalise Linux.
25060 (GRUB_MOD_INIT): Gettextizze.
25061 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25062 (grub_cpu_xnu_init): Gettextizze.
25063 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25064 (GRUB_MOD_INIT): Gettextizze.
25065 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25066 (GRUB_MOD_INIT): Gettextizze.
25067 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25068 (grub_linux_load64): Capitalise Linux.
25069 (GRUB_MOD_INIT): Gettextizze.
25070 * loader/xnu.c: Include `<grub/i18n.h>'.
25071 (GRUB_MOD_INIT): Gettextizze.
25072 * po/POTFILES: Add `loader/efi/appleloader.c',
25073 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25074 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25075 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25076 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25077 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25078 and `loader/xnu.c'.
25080 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25082 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25084 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25086 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25087 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25088 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25090 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25092 Reset Multiboot 2 support. New loader implements the draft in
25093 /branches/multiboot2 and shares as much code as possible with the
25094 production Multiboot 1 implementation.
25096 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25097 * loader/multiboot2.c: Likewise.
25098 * loader/i386/multiboot_helper.S: Likewise.
25099 * include/multiboot2.h: Replace with latest version from the draft
25100 in /branches/multiboot2.
25102 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25103 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25104 and `loader/multiboot2.c'.
25105 (pkglib_MODULES): Add `multiboot2.mod'.
25106 (multiboot2_mod_SOURCES): New variable.
25107 (multiboot2_mod_LDFLAGS): Likewise.
25108 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25110 * conf/i386-pc.rmk: Likewise.
25112 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25113 (multiboot_mod_SOURCES): Remove variable.
25114 (multiboot_mod_LDFLAGS): Likewise.
25115 (multiboot_mod_CFLAGS): Likewise.
25117 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25118 `<multiboot2.h>' instead of `<multiboot.h>'.
25119 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25120 (MULTIBOOT_HEADER_MAGIC): New macros.
25122 * loader/multiboot_loader.c (module_version_status): Remove variable.
25123 (find_multi_boot2_header): Remove function.
25124 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25125 logic. Always check for the Multiboot version we're compiling for.
25126 (grub_cmd_module_loader): Likewise.
25127 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25128 command instead of `multiboot'.
25130 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25132 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25133 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25136 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25137 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25139 Fix breakage introduced with previous commit.
25141 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25143 * normal/handler.c (read_handler_list): Revert part of previous commit
25144 affecting this file.
25145 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25146 (grub_normal_execute): ... here.
25148 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25150 Merge prefix-redefinition-fix branch.
25152 * normal/autofs.c (read_fs_list): Make function capable of being
25153 run multiple times, gracefuly replacing the previous data
25155 * normal/dyncmd.c (read_command_list): Likewise.
25156 * normal/handler.c (read_handler_list): Likewise.
25157 * normal/main.c (read_lists): New function. Calls all the
25158 list reading functions.
25159 (grub_normal_execute): Use read_lists() instead of calling all
25160 list reading functions explicitly. Register read_lists() as a
25161 variable hook attached to ${prefix}.
25163 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25165 Merge crypto branch.
25167 * Makefile.in (pkglib_DATA): Add crypto.lst.
25168 (crypto.lst): New target.
25169 * commands/hashsum.c: New file.
25170 * commands/password.c (check_password): Use grub_crypto_memcmp.
25171 * commands/password_pbkdf2.c: New file.
25172 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25173 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25174 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25175 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25176 -I$(srcdir)/lib/libgcrypt_wrap.
25177 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25178 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25179 password_pbkdf2.mod.
25180 (crypto_mod_SOURCES): New variable.
25181 (crypto_mod_CFLAGS): Likewise.
25182 (crypto_mod_LDFLAGS): Likewise.
25183 (hashsum_mod_SOURCES): New variable.
25184 (hashsum_mod_CFLAGS): Likewise.
25185 (hashsum_mod_LDFLAGS): Likewise.
25186 (pbkdf2_mod_SOURCES): New variable.
25187 (pbkdf2_mod_CFLAGS): Likewise.
25188 (pbkdf2_mod_LDFLAGS): Likewise.
25189 (password_pbkdf2_mod_SOURCES): New variable.
25190 (password_pbkdf2_mod_CFLAGS): Likewise.
25191 (password_pbkdf2_mod_LDFLAGS): Likewise.
25192 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25193 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25194 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25195 Include conf/gcry.rmk.
25196 * include/grub/auth.h: Rewritten.
25197 * include/grub/crypto.h: New file.
25198 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25199 * include/grub/normal.h (read_crypto_list): New prototype.
25200 * lib/crypto.c: New file.
25201 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25202 * lib/pbkdf2.c: Likewise.
25203 * normal/auth.c (grub_auth_strcmp): Removed.
25204 (grub_iswordseparator): Likewise.
25205 (grub_auth_strword): Likewise.
25206 (is_authenticated): Use grub_strword.
25207 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25208 and grub_strword. Pass entered password to authentication callback.
25209 * normal/crypto.c: New file.
25210 * normal/main.c: Call read_crypto_list.
25211 * util/grub-mkpasswd-pbkdf2.c: New file.
25212 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25214 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25216 Fix descent and ascent calculation.
25218 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25219 (options): New option "asce".
25221 (add_char): Ignore invalid glyphs for descent calculation.
25222 Calculate ascent from actual content.
25223 (print_glyphs): Use 'asce'.
25224 (write_font): Likewise. Allow ascent override.
25225 (main): Handle "asce" option.
25227 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25229 * kern/err.c: Include `<grub/i18n.h>'.
25230 (grub_print_error): Add full stop. Gettextizze.
25231 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25232 (grub_bsd_load_elf): Capitalise ELF.
25233 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25234 (grub_cmd_freebsd_module): Likewise.
25235 (grub_cmd_freebsd_module_elf): Likewise.
25236 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25238 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25240 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25241 * commands/search_file.c (HELP_MESSAGE): New macro.
25242 * commands/search_label.c (HELP_MESSAGE): Likewise.
25243 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25244 * po/POTFILES: Add `commands/search_file.c',
25245 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25246 `commands/search.c'.
25248 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25250 * config.rpath: Update from Gnulib.
25252 2010-01-05 Yves Blusseau <blusseau@zetam.org>
25254 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25256 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25258 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25260 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25262 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25263 arguments to fread so that we get a return value in bytes, rather
25264 than something that will normally be rounded down to 0.
25265 Adjust error handling to avoid producing garbage when size_t is not
25266 the same size as long long.
25268 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25270 * util/mkisofs/write.c (padblock_write): Check return value of
25273 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25275 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25278 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25280 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25282 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25283 instead of manual alignment.
25284 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25285 verbose). Avoid attempts to read past end of the device
25286 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25287 but GRUB_DISK_CACHE_SIZE may exceed that).
25289 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25291 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25292 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25295 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25297 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25299 (grub_efi_piwg_device_path): New structure
25300 (grub_efi_piwg_device_path_t): New type.
25301 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25302 (devpath_1): Transform to a structure. All users updated.
25303 (devpath_2): Likewise.
25304 (devpath_3): Likewise.
25305 (devpath_4): Likewise.
25306 (devpath_5): Likewise.
25308 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25310 * loader/efi/appleloader.c: Restored. Update all users.
25312 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25314 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25316 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25317 (struct boot_blocklist): Move from here ...
25318 * include/grub/i386/pc/boot.h [ASM_FILE]
25319 (struct grub_boot_blocklist): ... to here. Update all users.
25320 (setup): Only initialize `start' member of `first_block'
25321 structure. Add assert() calls to verify the other members.
25323 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25324 (generate_image): Fix broken blocklist length initialization.
25325 Add assert() call to verify blocklist `segment' field.
25327 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25329 * loader/efi/appleloader.c: Remove. Update all users.
25331 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25333 * boot/i386/pc/boot.S: Update copyright year.
25334 * boot/i386/pc/cdboot.S: Likewise.
25335 * boot/i386/pc/diskboot.S: Likewise.
25336 * boot/i386/pc/lnxboot.S: Likewise.
25337 * boot/i386/pc/pxeboot.S: Likewise.
25338 * bus/pci.c: Likewise.
25339 * commands/cmp.c: Likewise.
25340 * commands/help.c: Likewise.
25341 * commands/hexdump.c: Likewise.
25342 * commands/i386/pc/halt.c: Likewise.
25343 * commands/i386/pc/play.c: Likewise.
25344 * commands/i386/pc/vbeinfo.c: Likewise.
25345 * commands/ls.c: Likewise.
25346 * commands/test.c: Likewise.
25347 * disk/dmraid_nvidia.c: Likewise.
25348 * disk/i386/pc/biosdisk.c: Likewise.
25349 * disk/ieee1275/nand.c: Likewise.
25350 * disk/ieee1275/ofdisk.c: Likewise.
25351 * disk/lvm.c: Likewise.
25352 * disk/raid.c: Likewise.
25353 * disk/raid6_recover.c: Likewise.
25354 * disk/scsi.c: Likewise.
25355 * fs/affs.c: Likewise.
25356 * fs/cpio.c: Likewise.
25357 * fs/ext2.c: Likewise.
25358 * fs/hfs.c: Likewise.
25359 * fs/iso9660.c: Likewise.
25360 * fs/ntfs.c: Likewise.
25361 * fs/sfs.c: Likewise.
25362 * fs/udf.c: Likewise.
25363 * fs/ufs.c: Likewise.
25364 * fs/xfs.c: Likewise.
25365 * gencmdlist.sh: Likewise.
25366 * genmk.rb: Likewise.
25367 * include/grub/disk.h: Likewise.
25368 * include/grub/efi/api.h: Likewise.
25369 * include/grub/efi/efi.h: Likewise.
25370 * include/grub/efi/pe32.h: Likewise.
25371 * include/grub/elf.h: Likewise.
25372 * include/grub/fs.h: Likewise.
25373 * include/grub/i386/at_keyboard.h: Likewise.
25374 * include/grub/i386/pc/memory.h: Likewise.
25375 * include/grub/i386/pc/vbe.h: Likewise.
25376 * include/grub/i386/pci.h: Likewise.
25377 * include/grub/i386/tsc.h: Likewise.
25378 * include/grub/ieee1275/ieee1275.h: Likewise.
25379 * include/grub/ntfs.h: Likewise.
25380 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25381 * include/grub/sparc64/libgcc.h: Likewise.
25382 * include/grub/symbol.h: Likewise.
25383 * include/grub/types.h: Likewise.
25384 * include/multiboot2.h: Likewise.
25385 * io/gzio.c: Likewise.
25386 * kern/device.c: Likewise.
25387 * kern/disk.c: Likewise.
25388 * kern/efi/efi.c: Likewise.
25389 * kern/efi/mm.c: Likewise.
25390 * kern/elf.c: Likewise.
25391 * kern/file.c: Likewise.
25392 * kern/i386/dl.c: Likewise.
25393 * kern/i386/pc/init.c: Likewise.
25394 * kern/i386/pc/startup.S: Likewise.
25395 * kern/ieee1275/ieee1275.c: Likewise.
25396 * kern/ieee1275/init.c: Likewise.
25397 * kern/main.c: Likewise.
25398 * kern/mm.c: Likewise.
25399 * kern/powerpc/dl.c: Likewise.
25400 * kern/sparc64/dl.c: Likewise.
25401 * kern/x86_64/dl.c: Likewise.
25402 * lib/hexdump.c: Likewise.
25403 * loader/efi/appleloader.c: Likewise.
25404 * loader/i386/ieee1275/linux.c: Likewise.
25405 * loader/i386/pc/chainloader.c: Likewise.
25406 * loader/i386/pc/linux.c: Likewise.
25407 * loader/i386/pc/multiboot2.c: Likewise.
25408 * loader/ieee1275/multiboot2.c: Likewise.
25409 * loader/multiboot2.c: Likewise.
25410 * loader/multiboot_loader.c: Likewise.
25411 * loader/powerpc/ieee1275/linux.c: Likewise.
25412 * normal/completion.c: Likewise.
25413 * normal/menu_entry.c: Likewise.
25414 * partmap/apple.c: Likewise.
25415 * util/grub.d/10_hurd.in: Likewise.
25416 * util/hostfs.c: Likewise.
25417 * video/readers/png.c: Likewise.
25419 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25421 * include/grub/misc.h (GNUC_PREREQ): New macro.
25422 (ATTRIBUTE_ERROR): New macro.
25423 * include/grub/list.h (grub_bad_type_cast_real): Use
25426 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25428 * normal/menu_text.c (print_message): Change messages.
25430 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25432 * normal/menu_entry.c (store_completion): Gettextizze.
25434 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25436 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25438 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25440 * po/POTFILES: Sort correctly.
25442 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25444 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25445 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25446 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25448 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25449 summary. Gettextizze the strings.
25450 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25451 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25452 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25454 (GRUB_MOD_INIT): Remove command name from summary.
25455 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25457 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25458 * term/i386/pc/serial.c (options): Add full stops.
25459 (GRUB_MOD_INIT): Remove command name from the summary.
25461 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25463 * commands/acpi.c: Gettextizze help strings and/or options. Include
25464 `grub/i18n.h' if needed.
25465 * commands/blocklist.c: Likewise.
25466 * commands/boot.c: Likewise.
25467 * commands/cat.c: Likewise.
25468 * commands/cmp.c: Likewise.
25469 * commands/configfile.c: Likewise.
25470 * commands/crc.c: Likewise.
25471 * commands/date.c: Likewise.
25472 * commands/echo.c: Likewise.
25473 * commands/efi/fixvideo.c: Likewise.
25474 * commands/efi/loadbios.c: Likewise.
25475 * commands/gptsync.c: Likewise.
25476 * commands/halt.c: Likewise.
25477 * commands/handler.c: Likewise.
25478 * commands/hdparm.c: Likewise.
25479 * commands/hexdump.c: Likewise.
25480 * commands/i386/cpuid.c: Likewise.
25481 * commands/i386/pc/drivemap.c: Likewise.
25482 * commands/i386/pc/halt.c: Likewise.
25483 * commands/i386/pc/pxecmd.c: Likewise.
25484 * commands/i386/pc/vbeinfo.c: Likewise.
25485 * commands/i386/pc/vbetest.c: Likewise.
25486 * commands/ieee1275/suspend.c: Likewise.
25487 * commands/keystatus.c: Likewise.
25488 * commands/loadenv.c: Likewise.
25489 * commands/ls.c: Likewise.
25490 * commands/lsmmap.c: Likewise.
25491 * commands/lspci.c: Likewise.
25492 * commands/memrw.c: Likewise.
25493 * commands/minicmd.c: Likewise.
25494 * commands/parttool.c: Likewise.
25495 * commands/password.c: Likewise.
25496 * commands/probe.c: Likewise.
25497 * commands/read.c: Likewise.
25498 * commands/reboot.c: Likewise.
25499 * commands/search.c: Likewise.
25500 * commands/sleep.c: Likewise.
25501 * commands/test.c: Likewise.
25502 * commands/true.c: Likewise.
25503 * commands/usbtest.c: Likewise.
25504 * commands/videotest.c: Likewise.
25505 * commands/xnu_uuid.c: Likewise.
25506 * disk/loopback.c: Likewise.
25507 * hello/hello.c: Likewise.
25508 * loader/i386/bsd.c: Likewise.
25509 * term/i386/pc/serial.c: Likewise.
25510 * po/POTFILES: Add new files.
25512 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25514 * term/i386/pc/at_keyboard.c
25515 (keyboard_controller_wait_untill_ready): Rename to ...
25516 (keyboard_controller_wait_until_ready): ... this. Update all users.
25518 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25520 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25521 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25522 string using string width.
25523 * normal/menu_text.c (grub_print_message_indented): Use
25524 grub_print_spaces and not print_spaces.
25525 (print_timeout): Likewise.
25526 (print_spaces): Move to...
25527 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25529 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25531 Import from Gnulib.
25533 * gnulib/getdelim.c: New file.
25534 * gnulib/getline.c: Likewise.
25536 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25538 * include/grub/list.h (grub_assert_fail): Removed.
25539 (grub_bad_type_cast_real): New function.
25540 (grub_bad_type_cast): New macro.
25541 (GRUB_AS_LIST): Use grub_bad_type_cast.
25542 (GRUB_AS_LIST_P): Likewise.
25543 (GRUB_AS_NAMED_LIST): Likewise.
25544 (GRUB_AS_NAMED_LIST_P): Likewise.
25545 (GRUB_AS_PRIO_LIST): Likewise.
25546 (GRUB_AS_PRIO_LIST_P): Likewise.
25547 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25549 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25551 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25554 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25556 * configure.ac: Check for TARGET_CFLAGS initialization before we
25557 initialize it ourselves (sigh).
25558 Move a few modifications to TARGET_CFLAGS to be unconditional
25559 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25562 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25563 * term/i386/pc/at_keyboard.c
25564 (keyboard_controller_wait_untill_ready): Likewise.
25565 (keyboard_controller_led): Rename `led_status' paramter to avoid
25568 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25570 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25573 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25575 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25577 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25579 * normal/menu_text.c (grub_print_message_indented): Prevent
25580 past-the-end-of-array dereference.
25582 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25584 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25585 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25587 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25589 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25590 * normal/main.c (grub_normal_read_line): Remove a space from the
25593 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25595 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25596 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25597 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25598 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25599 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25600 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25601 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25603 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25605 * video/readers/jpeg.c (cmd): Declare.
25606 (grub_cmd_jpegtest): Use `grub_command_t' type.
25607 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25609 (GRUB_MOD_FINI): Use `cmd' to unregister.
25610 * video/readers/png.c (cmd): Declare.
25611 (grub_cmd_pngtest): Use `grub_command_t' type.
25612 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25614 (GRUB_MOD_FINI): Use `cmd' to unregister.
25615 * video/readers/tga.c (cmd): Declare.
25616 (grub_cmd_tgatest): Use `grub_command_t' type.
25617 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25619 (GRUB_MOD_FINI): Use `cmd' to unregister.
25621 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25623 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25625 * kern/corecmd.c (grub_register_core_commands): Likewise.
25626 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25627 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25628 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25629 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25630 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25631 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25632 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25633 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25634 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25635 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25636 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25637 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25638 * normal/handler.c (insert_handler): Likewise.
25639 * normal/main.c (GRUB_MOD_INIT): Likewise.
25640 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25642 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25644 * commands/help.c (grub_cmd_help): Print the command name before the
25646 (GRUB_MOD_INIT): Remove command name from the summary.
25647 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25649 * lib/arg.c (find_long): Print the command name before the summary.
25650 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25652 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25653 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25654 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25655 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25656 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25657 * commands/date.c (GRUB_MOD_INIT): Likewise.
25658 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25659 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25660 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25661 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25662 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25663 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25664 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25665 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25666 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25667 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25668 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25669 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25670 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25671 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25672 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25673 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25674 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25675 * commands/password.c (GRUB_MOD_INIT): Likewise.
25676 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25677 * commands/read.c (GRUB_MOD_INIT): Likewise.
25678 * commands/search.c (GRUB_MOD_INIT): Likewise.
25679 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25680 * commands/test.c (GRUB_MOD_INIT): Likewise.
25681 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25682 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25683 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25684 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25685 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25686 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25687 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25688 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25689 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25690 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25691 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25692 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25693 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25694 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25696 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25698 Use search command for preliminar UUID search.
25700 * commands/search.c: Split into ...
25701 * commands/search_wrap.c: ...this
25702 * commands/search.c: ...and this.
25703 * commands/search_file.c: New file.
25704 * commands/search_label.c: New file.
25705 * commands/search_uuid.c: New file.
25706 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25707 Add commands/search_wrap.c, commands/search_file.c,
25708 commands/search_label.c and commands/search_uuid.c.
25709 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25710 (search_mod_SOURCES): Set to commands/search_wrap.c.
25711 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25713 (search_fs_file_mod_SOURCES): New variable.
25714 (search_fs_file_mod_CFLAGS): Likewise.
25715 (search_fs_file_mod_LDFLAGS): Likewise.
25716 (search_label_mod_SOURCES): Likewise.
25717 (search_label_mod_CFLAGS): Likewise.
25718 (search_label_mod_LDFLAGS): Likewise.
25719 (search_fs_uuid_mod_SOURCES): New variable.
25720 (search_fs_uuid_mod_CFLAGS): Likewise.
25721 (search_fs_uuid_mod_LDFLAGS): Likewise.
25722 (fs_file_mod_SOURCES): Removed.
25723 (fs_file_mod_CFLAGS): Likewise.
25724 (fs_file_mod_LDFLAGS): Likewise.
25725 (fs_uuid_mod_SOURCES): Removed.
25726 (fs_uuid_mod_CFLAGS): Likewise.
25727 (fs_uuid_mod_LDFLAGS): Likewise.
25728 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25729 Set to util/grub-install.in.
25730 * disk/fs_file.c: Removed.
25731 * disk/fs_uuid.c: Likewise.
25732 * include/grub/search.h: New file.
25733 * util/grub-install.in: Handle sparc64.
25734 Create and use load.cfg.
25735 * util/sparc64/ieee1275/grub-install.in: Removed.
25737 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25739 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25740 Ignore return status if CF is cleared.
25741 (grub_biosdisk_get_diskinfo_standard): Likewise.
25743 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25745 * term/i386/pc/at_keyboard.c
25746 (keyboard_controller_wait_untill_ready): New function.
25747 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25748 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25749 for keyboard polling, rather than duplicate the same loop. This
25750 saves a few bytes in code size.
25752 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25754 Support for (pxe[:server[:gateway]]) syntax and
25755 use environment variable for PXE.
25757 * commands/i386/pc/pxecmd.c (options): Removed.
25758 (print_ip): Removed.
25759 (grub_cmd_pxe): Removed
25760 (grub_cmd_pxe_unload): New function.
25761 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25762 (grub_pxe_your_ip): Made static.
25763 (grub_pxe_default_server_ip): Likewise.
25764 (grub_pxe_default_gateway_ip): Likewise.
25765 (grub_pxe_blksize): Likewise.
25766 (parse_ip): New function.
25767 (grub_pxe_open): Support server and gateway specification.
25768 (grub_pxe_close): Free disk->data.
25769 (grub_pxefs_open): Use disk->data.
25770 (grub_pxefs_read): Likewise.
25771 (grub_env_write_readonly): New function.
25772 (set_mac_env): Likewise.
25773 (set_env_limn_ro): Likewise.
25774 (parse_dhcp_vendor): Likewise.
25775 (grub_pxe_detect): Set the environment variables.
25776 (set_ip_env): New function.
25777 (write_ip_env): Likewise.
25778 (grub_env_write_pxe_default_server): Likewise.
25779 (grub_env_write_pxe_default_gateway): Likewise.
25780 (grub_env_write_pxe_blocksize): Likewise.
25781 (GRUB_MOD_INIT(pxe)): Set environment variables.
25782 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25783 (grub_pxe_mac_addr_t): ... this. All users updated.
25784 (grub_pxe_your_ip): Removed.
25785 (grub_pxe_server_ip): Likewise.
25786 (grub_pxe_gateway_ip): Likewise.
25787 (grub_pxe_blksize): Likewise.
25789 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25791 * commands/help.c: Include `<grub/i18n.h>'.
25792 (grub_cmd_help): Gettextizze.
25793 (GRUB_MOD_INIT): Likewise.
25794 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25795 (GRUB_MOD_INIT): Gettextizze.
25796 * commands/search.c: Include `<grub/i18n.h>'.
25797 (options): Gettextizze.
25798 (GRUB_MOD_INIT): Gettextizze.
25799 * lib/arg.c: Include `<grub/i18n.h>'.
25800 (help_options): Gettextizze.
25801 (find_long): Likewise.
25802 (grub_arg_show_help): Likewise.
25803 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25804 (read_command_list): Gettextizze.
25805 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25806 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25808 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25810 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25811 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25812 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25813 (led_status): New variable.
25814 (keyboard_controller_led): New function.
25815 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25816 update led status for caps lock, num lock and scroll lock.
25818 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25820 * util/hostdisk.c (open_device): Fix a comment.
25822 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25824 * util/grub-install.in (host_os): New variable.
25825 * util/i386/efi/grub-install.in (host_os): Likewise.
25827 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25829 * util/mkisofs/write.c (padblock_write): Abort when given an
25830 excedingly large embed image, instead of silently truncating it.
25832 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25834 * include/multiboot.h: Indentation fixes.
25836 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25838 * include/multiboot.h (struct multiboot_aout_symbol_table)
25839 (struct multiboot_elf_section_header_table): New structure
25840 declarations (stolen from GRUB Legacy).
25841 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25844 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25845 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25848 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25850 * include/multiboot.h: Make comments src2texi-friendly.
25852 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25854 For consistency with [multiboot]/docs/boot.S.
25856 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25857 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25858 (MULTIBOOT_MAGIC2): Rename from this ...
25859 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25861 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25863 * include/multiboot.h: Remove `<grub/types.h>'.
25864 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25865 types. Update all users.
25867 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25869 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25870 `couldn't' and `can not' by `cannot'.
25871 * commands/i386/pc/drivemap.c: Likewise.
25872 * disk/ata.c: Likewise.
25873 * disk/ieee1275/nand.c: Likewise.
25874 * fs/affs.c: Likewise.
25875 * fs/fat.c: Likewise.
25876 * fs/hfs.c: Likewise.
25877 * fs/hfsplus.c: Likewise.
25878 * fs/iso9660.c: Likewise.
25879 * fs/jfs.c: Likewise.
25880 * fs/minix.c: Likewise.
25881 * fs/reiserfs.c: Likewise.
25882 * fs/sfs.c: Likewise.
25883 * fs/udf.c: Likewise.
25884 * fs/ufs.c: Likewise.
25885 * fs/xfs.c: Likewise.
25886 * loader/powerpc/ieee1275/linux.c: Likewise.
25887 * loader/sparc64/ieee1275/linux.c: Likewise.
25888 * util/grub-probe.c: Likewise.
25889 * util/misc.c: Likewise.
25891 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25893 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25895 * commands/acpi.c: Likewise.
25896 * commands/blocklist.c: Likewise.
25897 * commands/efi/loadbios.c: Likewise.
25898 * commands/i386/pc/drivemap.c: Likewise.
25899 * commands/loadenv.c: Likewise.
25900 * commands/memrw.c: Likewise.
25901 * commands/password.c: Likewise.
25902 * commands/videotest.c: Likewise.
25903 * disk/ata.c: Likewise.
25904 * disk/ata_pthru.c: Likewise.
25905 * disk/dmraid_nvidia.c: Likewise.
25906 * disk/ieee1275/nand.c: Likewise.
25907 * disk/ieee1275/ofdisk.c: Likewise.
25908 * disk/loopback.c: Likewise.
25909 * disk/lvm.c: Likewise.
25910 * disk/mdraid_linux.c: Likewise.
25911 * disk/raid.c: Likewise.
25912 * disk/raid6_recover.c: Likewise.
25913 * disk/scsi.c: Likewise.
25914 * efiemu/main.c: Likewise.
25915 * efiemu/mm.c: Likewise.
25916 * efiemu/pnvram.c: Likewise.
25917 * efiemu/symbols.c: Likewise.
25918 * font/font.c: Likewise.
25919 * fs/cpio.c: Likewise.
25920 * fs/hfsplus.c: Likewise.
25921 * fs/iso9660.c: Likewise.
25922 * fs/jfs.c: Likewise.
25923 * fs/minix.c: Likewise.
25924 * fs/ntfs.c: Likewise.
25925 * fs/ntfscomp.c: Likewise.
25926 * fs/reiserfs.c: Likewise.
25927 * fs/ufs.c: Likewise.
25928 * fs/xfs.c: Likewise.
25929 * gettext/gettext.c: Likewise.
25930 * include/grub/auth.h: Likewise.
25931 * kern/elf.c: Likewise.
25932 * kern/file.c: Likewise.
25933 * kern/ieee1275/init.c: Likewise.
25934 * kern/ieee1275/mmap.c: Likewise.
25935 * kern/ieee1275/openfw.c: Likewise.
25936 * kern/powerpc/dl.c: Likewise.
25937 * kern/sparc64/dl.c: Likewise.
25938 * lib/arg.c: Likewise.
25939 * loader/i386/bsd.c: Likewise.
25940 * loader/i386/bsdXX.c: Likewise.
25941 * loader/i386/efi/linux.c: Likewise.
25942 * loader/i386/efi/xnu.c: Likewise.
25943 * loader/i386/ieee1275/linux.c: Likewise.
25944 * loader/i386/linux.c: Likewise.
25945 * loader/i386/multiboot.c: Likewise.
25946 * loader/i386/pc/linux.c: Likewise.
25947 * loader/i386/pc/multiboot2.c: Likewise.
25948 * loader/i386/xnu.c: Likewise.
25949 * loader/ieee1275/multiboot2.c: Likewise.
25950 * loader/macho.c: Likewise.
25951 * loader/machoXX.c: Likewise.
25952 * loader/multiboot2.c: Likewise.
25953 * loader/multiboot_loader.c: Likewise.
25954 * loader/powerpc/ieee1275/linux.c: Likewise.
25955 * loader/sparc64/ieee1275/linux.c: Likewise.
25956 * loader/xnu.c: Likewise.
25957 * loader/xnu_resume.c: Likewise.
25958 * mmap/i386/pc/mmap.c: Likewise.
25959 * normal/menu_viewer.c: Likewise.
25960 * partmap/acorn.c: Likewise.
25961 * partmap/amiga.c: Likewise.
25962 * partmap/apple.c: Likewise.
25963 * script/lexer.c: Likewise.
25964 * term/gfxterm.c: Likewise.
25965 * term/i386/pc/serial.c: Likewise.
25966 * term/i386/pc/vga.c: Likewise.
25967 * term/ieee1275/ofconsole.c: Likewise.
25968 * term/terminfo.c: Likewise.
25969 * video/bitmap.c: Likewise.
25970 * video/efi_gop.c: Likewise.
25971 * video/efi_uga.c: Likewise.
25972 * video/fb/video_fb.c: Likewise.
25973 * video/i386/pc/vbe.c: Likewise.
25974 * video/readers/tga.c: Likewise.
25975 * video/video.c: Likewise.
25977 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25979 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25980 * commands/lspci.c: Likewise.
25981 * commands/probe.c: Likewise.
25982 * commands/xnu_uuid.c: Likewise.
25983 * conf/i386-coreboot.rmk: Likewise.
25984 * conf/i386-efi.rmk: Likewise.
25985 * conf/i386-ieee1275.rmk: Likewise.
25986 * conf/i386-pc.rmk: Likewise.
25987 * conf/powerpc-ieee1275.rmk: Likewise.
25988 * conf/sparc64-ieee1275.rmk: Likewise.
25989 * conf/x86_64-efi.rmk: Likewise.
25990 * fs/i386/pc/pxe.c: Likewise.
25991 * gettext/gettext.c: Likewise.
25992 * include/grub/efi/graphics_output.h: Likewise.
25993 * include/grub/i386/pc/memory.h: Likewise.
25994 * kern/env.c: Likewise.
25995 * kern/i386/qemu/startup.S: Likewise.
25996 * lib/i386/pc/biosnum.c: Likewise.
25997 * lib/i386/relocator.c: Likewise.
25998 * lib/i386/relocator_asm.S: Likewise.
25999 * lib/relocator.c: Likewise.
26000 * loader/i386/bsd.c: Likewise.
26001 * loader/i386/multiboot.c: Likewise.
26002 * loader/i386/pc/chainloader.c: Likewise.
26003 * loader/i386/xnu.c: Likewise.
26004 * loader/xnu.c: Likewise.
26005 * normal/main.c: Likewise.
26006 * normal/menu_text.c: Likewise.
26007 * util/getroot.c: Likewise.
26008 * util/grub-mkconfig_lib.in: Likewise.
26009 * util/grub.d/00_header.in: Likewise.
26010 * util/i386/pc/grub-mkimage.c: Likewise.
26011 * util/mkisofs/eltorito.c: Likewise.
26012 * util/mkisofs/exclude.h: Likewise.
26013 * util/mkisofs/hash.c: Likewise.
26014 * util/mkisofs/iso9660.h: Likewise.
26015 * util/mkisofs/joliet.c: Likewise.
26016 * util/mkisofs/mkisofs.c: Likewise.
26017 * util/mkisofs/mkisofs.h: Likewise.
26018 * util/mkisofs/multi.c: Likewise.
26019 * util/mkisofs/name.c: Likewise.
26020 * util/mkisofs/rock.c: Likewise.
26021 * util/mkisofs/tree.c: Likewise.
26022 * util/mkisofs/write.c: Likewise.
26023 * video/efi_gop.c: Likewise.
26025 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
26027 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
26030 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26032 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
26033 * genmk.rb (class SCRIPT): Modify the target file instead of source.
26035 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26037 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
26038 (GRUB_MOD_INIT(memrw)): Update help line.
26040 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26042 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
26043 Use grub_extcmd_t. All users updated.
26044 (options): New variable.
26045 (grub_cmd_read): Restructure for readability. Support "-v" option.
26046 (grub_cmd_write): Restructure for readability.
26048 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26050 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
26052 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26054 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26055 with the actual contents of the correspondending make variable.
26056 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26057 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26058 specifying `*.lst' and `efiemu??.o'
26060 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26062 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26063 after function name.
26064 Noticed by Rene Engelhard <rene@debian.org>.
26066 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26068 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26069 (options): New variable.
26070 (iospace): Likewise.
26071 (grub_lspci_iter): List IO spaces if "-i" was given.
26072 (grub_cmd_lspci): Parse options.
26073 (GRUB_MOD_INIT(lspci)): Use extcmd.
26074 (GRUB_MOD_FINI(lspci)): Likewise.
26076 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26078 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26079 `function' keyword.
26080 Patch by Tony Mancill <tmancill@debian.org>.
26082 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26084 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26085 (grub_uhci_portstatus): Likewise.
26086 (grub_uhci_portstatus): Add necessary delay.
26087 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
26089 2009-12-21 Carles Pina i Estany <carles@pina.cat>
26091 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26092 (GRUB_MOD_INIT): Likewise.
26093 * commands/boot.c (GRUB_MOD_INIT): Likewise.
26094 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26095 * commands/echo.c (options): Fix capitalizations and/or full stops.
26096 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26097 (enable_rom_area): Likewise.
26098 (GRUB_MOD_INIT): Likewise.
26099 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26100 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26101 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26102 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26103 * commands/hexdump.c (options): Likewise.
26104 * commands/i386/cpuid.c (options): Likewise.
26105 (GRUB_MOD_INIT): Likewise.
26106 * commands/i386/pc/drivemap.c (options): Likewise.
26107 (GRUB_MOD_INIT): Likewise.
26108 * commands/i386/pc/halt (options): Likewise.
26109 (GRUB_MOD_INIT): Likewise.
26110 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26111 * commands/i386/pc/pxecmd.c (options): Likewise.
26112 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26113 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26114 * commands/keystatus.c (options): Likewise.
26115 (GRUB_MOD_INIT): Likewise.
26116 * commands/loadenv.c (options): Likewise.
26117 * commands/ls.c (options): Likewise.
26118 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26119 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26120 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26121 * commands/parttool.c (helpmsg): Likewise.
26122 * commands/probe.c (options): Likewise.
26123 * commands/read.c (GRUB_MOD_INIT): Likewise.
26124 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26125 * commands/search.c (options): Likewise.
26126 * commands/sleep.c (options): Likewise.
26127 * commands/test.c (GRUB_MOD_INIT): Likewise.
26128 * commands/true.c (GRUB_MOD_INIT): Likewise.
26129 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26130 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26131 * lib/arg.c (help_options): Likewise.
26132 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26134 * po/POTFILES: Add `commands/loadenv.c'.
26136 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
26138 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
26139 instead of specifying them explicit.
26141 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26143 * NEWS: Add grub-probe support for GNU/Hurd.
26145 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26147 * NEWS: gettext was added after 1.97.
26149 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26151 * util/mkisofs/msdos_partition.h: New file (based on
26152 include/grub/msdos_partition.h).
26153 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26154 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26155 (ld_options, main): Recognize --protective-msdos-label.
26156 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26157 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26158 (padblock_write): If `use_protective_msdos_label' is set, patch a
26159 protective DOS-style label in the output image.
26161 * util/grub-mkrescue.in: Use --protective-msdos-label.
26163 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26165 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26168 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26170 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26172 (ld_options, main): Recognize `--embedded-boot'.
26173 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26175 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26176 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26177 (padblock_write): Likewise. Rewrite to support embedded boot image.
26179 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26180 for BIOS-based disk boot instead of only ElTorito.
26182 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26184 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26185 build (not needed for bootstrap).
26187 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26189 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26190 from i386-pc build (not needed for bootstrap).
26191 Rewrite a pair of strings.
26193 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26195 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26197 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
26199 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26201 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26203 * kern/env.c (grub_env_context_open): Mark exported variable for
26206 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26208 * kern/env.c (grub_env_export): Create nonexistent variables before
26211 2009-12-20 Carles Pina i Estany <carles@pina.cat>
26213 * include/grub/auth.h: Include `<grub/i18n.h>'.
26214 (GRUB_GET_PASSWORD): Gettextizze string.
26215 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26217 (grub_utf8_to_ucs4_alloc): Fix indentation.
26218 (grub_print_ucs4): Likewise.
26219 (grub_getstringwidth): Likewise.
26220 (print_message_indented): New declaration.
26221 * normal/auth.c: Include `<grub/i18n.h>'.
26222 (grub_auth_check_authentication): Gettexttize string.
26223 * normal/cmdline.c: Include `<grub/i18n.h>'.
26224 (grub_cmdline_get): Gettextizze.
26225 * normal/color.c: Include `<grub/i18n.h>'.
26226 (grub_parse_color_name_pair): Gettexttize strings.
26227 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26228 string (use `print_message_indented').
26229 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26230 `include/grub/normal.h'.
26231 (print_message_indented): Renamed to ...
26232 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26233 used in normal/main.c).
26234 (print_message): Use `grub_print_message_indented' instead of
26235 `print_message_indented'.
26236 (print_timeout): Likewise.
26237 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26238 (grub_normal_print_device_info): Gettexttize strings.
26239 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26241 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26243 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26244 of arguments. Return number of tokens and not arguments. All users
26247 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26249 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26250 non-MSDOS paritions.
26252 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26254 * include/grub/types.h (UNUSED): Removed since it conflicts with
26255 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26256 Reported by Grégoire Sutre.
26258 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26260 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26261 (grub_print_ucs4_alloc): Likewise.
26262 (grub_getstringwidth): Likewise.
26263 * normal/main.c (grub_normal_init_page): Gettextize version string.
26264 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26265 (getstringwidth): Renamed to ...
26266 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26267 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26268 (grub_print_ucs4): Remove `static' qualifer (now used in
26270 * po/POTFILES: Add normal/main.c.
26272 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26274 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26275 (print_message_indented): Add `margin_left' and `margin_right'
26277 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26279 (print_timeout): Use `print_message_indented' to print the message.
26280 Deletes `second_stage' parameter.
26281 (run_menu): Update `print_timeout' calls.
26283 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26285 Fix console palette on OpenFirmware.
26287 * term/ieee1275/ofconsole.c (MAX): Removed.
26288 (colors): Redone based on VGA palette.
26289 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26290 colors are supported.
26291 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26293 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26295 Fix potential EfiEmu double prepare.
26297 * efiemu/main.c (prepared): New variable
26298 (grub_efiemu_unload): Set prepare to '0'.
26299 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26301 set_virtual_address_map support.
26303 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26305 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26307 (grub_efiemu_crc32): Likewise.
26308 (grub_efiemu_crc64): Likewise.
26309 (grub_efiemu_set_virtual_address_map): Likewise.
26310 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26312 (grub_autoefi_set_virtual_address_map): Likewise.
26313 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26314 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26315 Restructure flow to accomodate it.
26316 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26317 (grub_efiemu_crc): Recompute CRC32.
26318 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26319 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26320 * efiemu/symbols.c (relocated_handle): New variable.
26321 (grub_efiemu_free_syms): Free relocated_handle.
26322 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26323 (grub_efiemu_write_sym_markers): New function.
26324 (grub_efiemu_set_virtual_address_map): Likewise.
26326 Newer XNU parameters.
26328 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26329 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26330 (grub_xnu_fill_devicetree): New prototype.
26331 (grub_xnu_heap_real_start): New variable.
26332 * loader/xnu.c (get_name_ptr): New function.
26333 (grub_xnu_load_driver): Fill namelen and name.
26335 64-bit xnu support.
26337 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26338 and 'loader/macho64.c'.
26339 * conf/i386-pc.rmk: Likewise.
26340 * conf/x86_64-efi.rmk: Likewise.
26341 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26342 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26343 * include/grub/macho.h (grub_macho_segment64): New structure.
26344 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26345 (grub_macho_size32): ... to this.
26346 (grub_macho32_get_entry_point): Renamed from ...
26347 (grub_macho_get_entry_point32): ... to this.
26348 (grub_macho_contains_macho64): New prototype.
26349 (grub_macho_size64): Likewise.
26350 (grub_macho_get_entry_point64): Likewise.
26351 (grub_macho32_load): Renamed from ...
26352 (grub_macho_load32): ... to this.
26353 (grub_macho32_filesize): Renamed from ...
26354 (grub_macho_filesize32): ... to this.
26355 (grub_macho32_readfile): Renamed from ...
26356 (grub_macho_readfile32): ... to this.
26357 (grub_macho_filesize64): New prototype.
26358 (grub_macho_readfile64): Likewise.
26359 (grub_macho_parse32): Likewise.
26360 (grub_macho_parse64): Likewise.
26361 * loader/macho.c: Split into ...
26362 * loader/machoXX.c: ... and this. Replace 32 with XX.
26363 * loader/macho32.c: New file.
26364 * loader/macho64.c: Likewise.
26365 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26366 (grub_cmd_xnu_kernel): Make 32-bit only.
26367 (grub_cmd_xnu_kernel64): New function.
26368 (grub_xnu_load_driver): Support Mach-O 64.
26369 (grub_cmd_xnu_mkext): Likewise.
26370 * util/grub.d/30_os-prober.in (osx_entry): New function.
26371 Generate entries for 64-bit boot too.
26373 Eliminate ad-hoc tree format in XNU and EfiEmu.
26375 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26376 * efiemu/pnvram.c: Rewritten to use environment variables.
26379 Inline utf16_to_utf8.
26381 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26382 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26384 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26386 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26387 * commands/usbtest.c (grub_usb_get_string): ... move here.
26388 (usb_print_str): Fix error handling.
26389 * include/grub/usb.h (grub_usb_get_string): Remove.
26391 UTF-8 to UTF-16 transformation.
26393 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26394 (charset_mod_SOURCES): New variable.
26395 (charset_mod_CFLAGS): Likewise.
26396 (charset_mod_LDFLAGS): Likewise.
26397 * include/grub/utf.h: New file.
26398 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26400 Support for device properties.
26402 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26403 (grub_xnu_devprop_device_header): Likewise.
26404 (grub_xnu_devprop_device_descriptor): Likewise.
26405 (grub_xnu_devprop_add_device): New prototype.
26406 (grub_xnu_devprop_remove_device): Likewise.
26407 (grub_xnu_devprop_remove_property): Likewise.
26408 (grub_xnu_devprop_add_property_utf8): Likewise.
26409 (grub_xnu_devprop_add_property_utf16): Likewise.
26410 (grub_cpu_xnu_init): Likewise.
26411 (grub_cpu_xnu_fini): Likewise.
26412 (grub_cpu_xnu_unload): Likewise.
26413 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26414 (property_descriptor): Likewise.
26415 (devices): New variable.
26416 (grub_xnu_devprop_remove_property): New function.
26417 (grub_xnu_devprop_add_device): Likewise.
26418 (grub_xnu_devprop_remove_device): Likewise.
26419 (grub_xnu_devprop_add_property): Likewise.
26420 (grub_xnu_devprop_add_property_utf8): Likewise.
26421 (grub_xnu_devprop_add_property_utf16): Likewise.
26422 (hextoval): Likewise.
26423 (grub_cpu_xnu_fill_devprop): Likewise.
26424 (grub_cmd_devprop_load): Likewise.
26425 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26426 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26427 (cmd_devprop_load): New variable.
26428 (grub_cpu_xnu_init): New function.
26429 (grub_cpu_xnu_fini): Likewise.
26430 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26431 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26432 (grub_cmd_xnu_devtree): Likewise.
26433 (hextoval): New function.
26434 (unescape): Likewise.
26435 (grub_xnu_fill_devicetree): Likewise.
26437 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26438 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26440 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26442 Workaround for broken ATI VBE.
26444 * video/i386/pc/vbe.c (last_set_mode): New variable.
26445 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26446 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26447 (grub_video_vbe_setup): Don't check for reserved flag.
26449 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26451 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26452 the `find' command.
26454 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26456 UUID support for HFS.
26458 * fs/hfs.c (grub_hfs_uuid): New function.
26459 (grub_hfs_fs): New value .uuid.
26460 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26462 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26464 Fix a segfault with parsing unknown long options.
26466 * util/grub-mkrelpath.c (options): Zero terminate it.
26468 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26470 * include/grub/misc.h (grub_puts): New declaration.
26471 (grub_puts_): Likewise.
26472 * kern/misc.c (grub_puts): New definition.
26473 (grub_puts_): Likewise.
26475 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26477 * util/grub-probe.c (probe): Improve error message.
26479 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26481 * loader/i386/multiboot_elfxx.c
26482 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26485 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26487 Relocator framework
26489 * loader/i386/xnu_helper.S: Removed. All users updated.
26490 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26491 (relocator_mod_SOURCES): New variable.
26492 (relocator_mod_CFLAGS): Likewise.
26493 (relocator_mod_LDFLAGS): Likewise.
26494 (relocator_mod_ASFLAGS): Likewise.
26495 * conf/x86_64.rmk: Likewise.
26496 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26497 (grub_multiboot_payload_entry_offset): Likewise.
26498 (grub_multiboot_forward_relocator): Likewise.
26499 (grub_multiboot_forward_relocator_end): Likewise.
26500 (grub_multiboot_backward_relocator): Likewise.
26501 (grub_multiboot_backward_relocator_end): Likewise.
26502 (grub_multiboot_payload_eip): New variable.
26503 (grub_multiboot_payload_orig): Likewise.
26504 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26505 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26506 * include/grub/i386/memory.h
26507 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26508 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26509 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26510 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26511 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26512 * include/grub/i386/relocator.h: New file.
26513 * include/grub/x86_64/relocator.h: Likewise.
26514 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26515 (XNU_RELOCATOR): New macro.
26516 (grub_xnu_launcher_start): Remove.
26517 (grub_xnu_launcher_end): Likewise.
26518 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26519 (grub_xnu_heap_real_start): Remove.
26520 (grub_xnu_heap_start): Change to void *. All users updated.
26521 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26522 * lib/i386/relocator.c: New file.
26523 * lib/i386/relocator_asm.S: Likewise.
26524 * lib/i386/relocator_backward.S: Likewise.
26525 * lib/mips/relocator.c: Likewise.
26526 * lib/mips/relocator_asm.S: Likewise.
26527 * lib/relocator.c: Likewise.
26528 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26530 (playground): Likewise.
26531 (grub_multiboot_payload_orig): New variable.
26532 (grub_multiboot_payload_dest): Likewise.
26533 (grub_multiboot_payload_size): Likewise.
26534 (grub_multiboot_payload_eip): Likewise.
26535 (grub_multiboot_payload_esp): Likewise.
26536 (grub_multiboot_boot): Use grub_relocator32_boot.
26537 (grub_multiboot_unload): Free relocators.
26538 (grub_multiboot): Setup stack. Use relocators.
26539 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26540 (grub_multiboot_load_elfXX): Use relocators.
26541 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26542 (grub_multiboot_payload_size): Likewise.
26543 (grub_multiboot_payload_dest): Likewise.
26544 (grub_multiboot_payload_entry_offset): Likewise.
26545 (grub_multiboot_forward_relocator): Likewise.
26546 (grub_multiboot_backward_relocator): Likewise.
26547 (grub_multiboot_real_boot): Likewise.
26548 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26549 (grub_xnu_entry_point): Likewise.
26550 (grub_xnu_arg1): Likewise.
26551 (grub_xnu_stack): Likewise.
26552 (grub_xnu_launch): Removed.
26553 (grub_xnu_boot_resume): New function.
26554 (grub_xnu_boot): Use relocators.
26555 * loader/i386/xnu_helper.S: Removed.
26556 * loader/xnu.c (grub_xnu_heap_start): New variable.
26557 (grub_xnu_heap_size): Likewise.
26558 (grub_xnu_heap_malloc): Use relocators.
26559 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26561 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26563 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26566 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26568 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26569 GRUB_ERR_NONE before calling grub_env_set.
26571 2009-12-12 Robert Millan <rmh@aybabtu.com>
26573 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26574 * genmk.rb (video): New variable.
26575 (CLEANFILES, VIDEOFILES): Add #{video}.
26576 (#{video}): New target rule.
26577 * genvideolist.sh: New file.
26578 * Makefile.in (pkglib_DATA): Add video.lst.
26579 (video.lst): New target rule.
26580 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26582 * util/grub.d/30_os-prober.in: Replace `vbe' with
26583 ${GRUB_VIDEO_BACKEND}.
26585 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26587 * THANKS: Add David Miller.
26589 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26591 libpciaccess support.
26593 * Makefile.in (LIBPCIACCESS): New variable.
26594 (enable_grub_emu_pci): Likewise.
26595 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26596 util/pci.c and commands/lspci.c.
26597 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26598 * configure.ac (grub-emu-pci): New option.
26599 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26600 (grub_pci_device_unmap_range): Likewise.
26601 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26602 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26603 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26604 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26605 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26606 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26607 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26608 * include/grub/pciutils.h: New file.
26609 * util/pci.c: Likewise.
26611 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26613 * util/misc.c: Don't include <errno.h> twice.
26615 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26617 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26618 name in an error message.
26619 (grub_biosdisk_rw): Likewise.
26621 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26623 Eliminate NTFS 4Gib barrier.
26625 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26626 (read_run_data): Likewise.
26627 (grub_ntfs_read_run_list): Likewise.
26628 (grub_ntfs_read_block): Likewise.
26629 (grub_ntfs_iterate_dir): Likewise.
26630 (read_mft): Likewise.
26631 (read_data): Likewise.
26633 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26634 to avoid 64-bit division
26635 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26636 (grub_ntfs_rlst): Use grub_disk_addr_t.
26638 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26640 Eliminate grub-fstest 4Gib barrier.
26642 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26643 (read_file): Fix error reporting.
26645 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26647 Eliminate hexdump 4Gib barrier.
26649 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26650 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26652 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26654 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26657 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26659 Remove miscellaneous files in distclean target.
26661 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26663 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26665 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26666 if they're already set. This resolves the conflict between my
26667 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26668 fixing the --grub-probe option again.
26669 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26670 change on 2009-10-06, so that we now once again source
26671 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26673 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26675 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26676 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26677 `util/devicemap.c'.
26679 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26681 * include/grub/misc.h (grub_printf_): New declaration.
26682 * kern/misc.c (grub_printf_): New definition.
26683 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26684 instead of `grub_printf' and `_'.
26685 * normal/menu_entry.c (store_completion): Likewise.
26687 (grub_menu_entry_run): Likewise.
26688 * normal/menu_text.c (grub_wait_after_message): Likewise.
26689 (notify_booting): Likewise.
26690 (notify_fallback): Likewise.
26691 (notify_execution_failure): Likewise.
26693 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26695 * configure.ac: Check for vasprintf.
26696 * util/misc.c (asprintf): Move allocation from here ...
26697 (vasprintf): ... to here. New function.
26698 (xasprintf): New function.
26699 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26701 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26702 * util/grub-mkfont.c (write_font): Likewise.
26703 * util/grub-probe.c (probe): Likewise.
26704 * util/hostdisk.c (make_device_name): Likewise.
26706 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26708 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26709 anything even prefixed with 'cdrom' as a cdrom.
26711 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26713 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26716 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26718 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26719 grub_gettext_msg_list.
26720 (grub_gettext_gettranslation_from_position): Return const char *
26722 (grub_gettext_translate): Add the translated strings into a list,
26723 returns from the list if existing there.
26724 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26725 (grub_gettext_delete_list): Delete the list.
26726 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26727 lang environment variable is changed.
26728 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26730 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26732 Rename kernel.mod to kernel.img.
26734 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26735 (kernel_mod_EXPORTS): Rename to ...
26736 (kernel_img_EXPORTS): ... this.
26737 (kernel_mod_SOURCES): Rename to ...
26738 (kernel_img_SOURCES): ... this.
26739 (kernel_mod_HEADERS): Rename to ...
26740 (kernel_img_HEADERS): ... this. All users updated.
26741 (kernel_mod_CFLAGS): Rename to ...
26742 (kernel_img_CFLAGS): ... this.
26743 (kernel_mod_ASFLAGS): Rename to ...
26744 (kernel_img_ASFLAGS): ... this.
26745 (kernel_mod_LDFLAGS): Rename to ...
26746 (kernel_img_LDFLAGS): ... this.
26747 * conf/x86_64-efi.rmk: Likewise.
26748 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26749 (read_kernel_image): ... this. All users updated.
26750 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26752 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26754 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26755 (print_spaces): New function.
26756 (grub_print_ucs4): New function.
26757 (getstringwidth): New function.
26758 (print_message_indented): New function.
26759 (print_message): Gettexttize strings using print_message_indented.
26760 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26762 (get_entry_number): Gettextize and uses dynamic terminal width.
26763 (notify_booting, notify_fallback, notify_execution_failure):
26765 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26768 (grub_menu_entry_run): Likewise.
26769 * PO/POTFILES: Add normal/menu_entry.c.
26771 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26773 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26775 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26777 * util/grub-install.in: Install gettext .mo files.
26778 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26780 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26782 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26785 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26787 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26788 non-firmware-dependant one in realmode.S takes precedence.
26790 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26792 * commands/halt.c: Replace misc arch-specific headers with
26794 * commands/reboot.c: Likewise.
26795 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26797 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26798 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26799 (kernel_img_SOURCES): ... to here.
26801 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26802 * include/grub/i386/pc/init.h: Likewise.
26803 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26804 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26806 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26808 * include/grub/i386/halt.h: Remove.
26809 * include/grub/i386/reboot.h: Likewise.
26811 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26813 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26815 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26816 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26817 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26819 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26820 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26821 (usage): Add missing comma in printf.
26823 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26825 Use the same reboot approach on i386 coreboot and qemu as we do on
26828 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26829 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26830 * kern/i386/reboot.c: Remove.
26831 * include/grub/i386/reboot.h (grub_reboot): Export function.
26832 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26833 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26834 0xf000:0xfff0 instead of 0xffff:0x0000.
26835 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26836 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26838 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26840 Fix $srcdir != $objdir build.
26842 * Makefile.in (po/%.po): Rewrite as ...
26843 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26845 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26847 Fix GNU/Hurd grub-install crash.
26848 * util/grub-probe.c (probe): Try to access `path' only when it is not
26851 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26853 Correct module naming.
26855 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26856 (GRUB_MOD_INIT(efi_uga)): ... to this
26857 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26858 (GRUB_MOD_FINI(efi_uga)): ... to this
26859 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26860 (GRUB_MOD_INIT(efi_gop)): ... to this
26861 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26862 (GRUB_MOD_FINI(efi_gop)): ... to this
26864 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26866 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26868 (usage): Translate `arg' strings using gettext().
26869 Thanks to Jordi Mallach for the suggestion.
26871 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26873 GOP support. Based on patch from Bean
26874 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26876 * video/efi_gop.c: New file.
26877 * include/grub/efi/graphics_output.h: Likewise.
26878 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26879 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26881 * conf/x86_64-efi.rmk: Likewise.
26883 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26885 Rename efi_fb to efi_uga.
26887 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26889 (efi_fb_mod_SOURCES): Rename this ...
26890 (efi_uga_mod_SOURCES): ... to this.
26891 (efi_fb_mod_CFLAGS): Rename this ...
26892 (efi_uga_mod_CFLAGS): ... to this.
26893 (efi_fb_mod_LDFLAGS): Rename this ...
26894 (efi_uga_mod_LDFLAGS): ... to this.
26895 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26897 (efi_fb_mod_SOURCES): Rename this ...
26898 (efi_uga_mod_SOURCES): ... to this.
26899 (efi_fb_mod_CFLAGS): Rename this ...
26900 (efi_uga_mod_CFLAGS): ... to this.
26901 (efi_fb_mod_LDFLAGS): Rename this ...
26902 (efi_uga_mod_LDFLAGS): ... to this.
26903 * video/efi_fb.c: Move this ...
26904 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26906 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26908 * po/README: New file. Explain our PO file workflow.
26910 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26912 * po/ChangeLog: Remove. Move relevant entries back to ...
26913 * ChangeLog: ... here.
26914 * po/ca.po: Remove (now handled by TLP).
26915 * po/id.po: Likewise.
26916 * po/zh_CN.po: Likewise.
26917 * Makefile.in (LINGUAS): Initialize in a way that supports
26920 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26922 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26923 reliing on po/LINGUAS.
26924 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26925 (po/%.po): ... this.
26927 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26929 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26930 (main): Use `program_name' instead of nonexistent `progname'.
26932 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26934 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26935 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26937 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26939 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26941 * conf/i386-efi.rmk: Likewise.
26942 * conf/i386-ieee1275.rmk: Likewise.
26943 * conf/powerpc-ieee1275.rmk: Likewise.
26944 * conf/sparc64-ieee1275.rmk: Likewise.
26945 * conf/x86_64-efi.rmk: Likewise.
26947 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26949 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26951 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26953 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26955 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26957 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26958 (grub_mkdevicemap_SOURCES): New variable.
26959 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26960 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26961 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26962 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26963 (grub_mkdevicemap_SOURCES): Remove.
26964 * conf/i386-efi.rmk: Likewise.
26965 * conf/i386-ieee1275.rmk: Likewise.
26966 * conf/i386-pc.rmk: Likewise.
26967 * conf/powerpc-ieee1275.rmk: Likewise.
26968 * conf/sparc64-ieee1275.rmk: Likewise.
26969 * conf/x86_64-efi.rmk: Likewise.
26970 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26971 (usage): Fix strings to use `program_name'.
26972 (main): Initialize gettext.
26973 * util/grub-editenv.c: Likewise.
26974 * util/grub-emu.c: Likewise.
26975 * util/grub-fstest.c: Likewise.
26976 * util/grub-mkdevicemap.c: Likewise.
26977 * util/grub-mkfont.c: Likewise.
26978 * util/grub-mkrelpath.c: Likewise.
26979 * util/grub-pe2elf.c: Likewise.
26980 * util/grub-probe.c: Likewise.
26981 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26982 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26983 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26985 * util/misc.c: Include `"progname.h"'.
26986 (progname): Remove variable.
26987 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26989 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26991 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26992 printf and print a newline after the menuentry header line.
26993 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26995 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26997 autoconf >= 2.60 support $(localedir).
26999 * INSTALL: Note that autoconf 2.60 is required.
27000 * configure.ac (AC_PREREQ): Bump to 2.60.
27001 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
27002 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27004 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
27006 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
27009 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27011 * normal/main.c (grub_normal_read_line): Fix off-by-one
27014 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27016 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
27017 "parser.grub" in grub_command_execute() call.
27019 2009-11-24 Carles Pina i Estany <carles@pina.cat>
27021 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
27022 * conf/i386-efi.rmk: Likewise.
27023 * conf/i386-ieee1275.rmk: Likewise.
27024 * conf/i386-pc.rmk: Likewise.
27025 * conf/powerpc-ieee1275.rmk: Likewise.
27026 * conf/sparc64-ieee1275.rmk: Likewise.
27027 * conf/x86_64-efi.rmk: Likewise.
27028 * gettext/gettex.c: Include <grub/i18n.h>.
27029 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
27031 * include/grub/i18n.h: ... to here
27032 * include/grub/i18n.h: ... to here.
27033 * kern/misc.c: Include <grub/i18n.h>
27034 (grub_gettext_dummy): Move above user.
27036 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27038 * util/Makefile.in (install-local): Convert a `for' into a normal
27041 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
27043 * autogen.sh: Add automake call.
27044 * config.guess: Remove.
27045 * config.sub: Likewise.
27046 * install-sh: Likewise.
27048 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27050 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
27052 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27054 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27055 function to a normal shell `for'.
27057 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27059 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27061 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27063 * util/grub-mkrelpath.c: New file.
27064 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27065 (grub_mkrelpath_SOURCES): New variable.
27066 * include/grub/util/misc.h: New function prototype.
27067 * util/misc.c (make_system_path_relative_to_its_root): New function.
27069 * util/grub-mkconfig_lib.in (bindir): New variable.
27070 (grub_mkrelpath): Likewise.
27071 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27073 * util/probe.c (probe): Make the file path relative to its root.
27074 Change a info message to use the GRUB path. Enable again the
27075 check if we can read the file with GRUB facilities.
27077 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27080 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27082 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27085 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27087 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27090 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27092 * util/getroot.c (grub_util_is_dmraid): New function.
27093 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27094 devices as normal ones, not as LVM.
27096 2009-11-23 Carles Pina i Estany <carles@pina.cat>
27098 * conf/common.rmk: Add grub-gettext_lib target and updates
27099 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27101 * gettext/gettext.c: New file. (Reads mo files).
27102 * include/grub/file.h (grub_file_pread): New prototype.
27103 * include/grub/i18n.h (_): New prototype.
27104 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27106 * kern/misc.c (grub_gettext_dummy): New function.
27107 * normal/menu_text.c: Include <grub/i18n.h>.
27108 * normal/menu_text.c (print_timeout): Gettexttize string.
27109 * normal/menu_text.c (print_message): Gettexttize string.
27110 * po/POTFILES: Add `normal/menu_text.c'.
27111 * po/ca.po: Add new translations.
27112 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27113 gettext module and defines locale_dir and lang in grub.cfg.
27114 * NEWS: Add gettext support.
27116 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27118 * util/hostdisk.c: Include `<grub/i18n.h>'.
27119 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27120 (make_device_name): Rewrite using asprintf.
27121 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27122 (find_system_device): If a device is not found, generate one just
27123 by reusing the OS path name.
27124 (read_device_map): Make it permissible for device.map not to exist.
27126 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27128 * script/sh/execute.c: Move from here ...
27129 * script/execute.c: ... to here. Update all users.
27130 * script/sh/function.c: Move from here ...
27131 * script/function.c: ... to here. Update all users.
27132 * script/sh/lexer.c: Move from here ...
27133 * script/lexer.c: ... to here. Update all users.
27134 * script/sh/main.c: Move from here ...
27135 * script/main.c: ... to here. Update all users.
27136 * script/sh/parser.y: Move from here ...
27137 * script/parser.y: ... to here. Update all users.
27138 * script/sh/script.c: Move from here ...
27139 * script/script.c: ... to here. Update all users.
27141 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27143 * configure.ac: Detect all `emu' platforms. Define
27144 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27145 --enable-grub-emu logic. Disable include/grub/machine
27146 symlink on `emu' platforms.
27148 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27149 * gensymlist.sh.in: Likewise.
27151 * include/grub/i386/coreboot/machine.h: Remove file.
27152 * include/grub/i386/efi/machine.h: Likewise.
27153 * include/grub/i386/ieee1275/machine.h: Likewise.
27154 * include/grub/i386/pc/machine.h: Likewise.
27155 * include/grub/i386/qemu/machine.h: Likewise.
27156 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27157 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27158 * include/grub/x86_64/efi/machine.h: Likewise.
27160 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27161 * commands/halt.c: Likewise.
27162 * commands/reboot.c: Likewise.
27163 * include/grub/autoefi.h: Likewise.
27164 * include/grub/i386/at_keyboard.h: Likewise.
27165 * include/grub/i386/kernel.h: Likewise.
27166 * include/grub/i386/loader.h: Likewise.
27167 * include/grub/i386/pc/memory.h: Likewise.
27168 * kern/dl.c: Likewise.
27169 * kern/i386/coreboot/init.c: Likewise.
27170 * loader/i386/bsd.c: Likewise.
27171 * loader/i386/linux.c: Likewise.
27172 * loader/multiboot_loader.c: Likewise.
27173 * term/i386/pc/serial.c: Likewise.
27174 * term/usb_keyboard.c: Likewise.
27176 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27177 `<grub/machine/machine.h>'
27178 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27179 * util/misc.c: Remove `<grub/machine/machine.h>' and
27180 `<grub/machine/time.h>'.
27182 * Makefile.in (enable_grub_emu): Remove variable.
27183 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27185 * conf/any-emu.rmk: New file.
27186 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27187 (grub_emu_init.c): Move from here ...
27188 * conf/any-emu.rmk: ... to here.
27190 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27191 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27192 * conf/any-emu.rmk: ... to here.
27194 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27196 * include/grub/parser.h (grub_parser_register): Document need
27197 of `name' parameter.
27198 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27199 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27202 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27204 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27206 * include/grub/i18n.h (N_): New macro.
27207 * util/mkisofs/mkisofs.h: Likewise.
27208 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27210 (usage): Use gettext() to translate help strings when printing them.
27212 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27214 Based on patch from Bean
27215 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27217 * video/efi_fb.c: New file.
27218 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27219 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27221 * conf/x86_64-efi.rmk: Likewise.
27223 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27225 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27226 * util/i386/pc/grub-setup.c: Likewise.
27228 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27230 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27232 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27233 file_get_storage_info to implement grub_guess_root_device.
27235 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27237 * Makefile.in (target): Use make's builtin $(shell) function
27238 instead of calling directly $(SHELL) to create the locale directories,
27239 inside the $(foreach) function.
27241 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27243 * util/grub-mkrescue.in: Print an error and usage if output option
27244 has not been given.
27246 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27248 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27249 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27250 root and /boot are on different devices.
27252 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27254 Fix build for srcdir != objdir.
27256 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27257 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27259 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27260 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27261 reference for input.
27263 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27265 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27266 or hardlinking it). Remove -J option, Joliet is not compatible with
27267 multiple source directories.
27269 2009-11-21 Carles Pina i Estany <carles@pina.cat>
27270 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27272 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27273 (process_input_dir): New function. Process an arbitrary input
27275 Misc adjustments to support both "override mode" and system-wide mode.
27277 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27279 * configure.ac (UNIFONT_BDF): Rename to ...
27280 (FONT_SOURCE): ... this. Update all users.
27282 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27284 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27285 to the list of unifont files to look for.
27287 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27289 Patch from Joe Auricchio <jauricchio@gmail.com>
27290 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27291 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27292 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27294 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27296 * Makefile.in (install-local): Add a missing backslash.
27298 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27300 * include/grub/x86_64/io.h: New file.
27302 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27304 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27305 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27306 Include `"progname.h"'.
27307 (main): Initialize gettext.
27308 * util/i386/pc/grub-setup.c: Gettexttize.
27309 * util/i386/pc/grub-mkimage.c: Likewise.
27311 * Makefile.in (po/*.po): Redefine as ...
27312 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27314 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27316 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27318 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27319 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27320 (program_name): Remove.
27321 (main): Initialize gettext support.
27322 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27323 Include `<libintl.h>'.
27326 * util/mkisofs/eltorito.c: Gettexttize.
27327 * util/mkisofs/joliet.c: Likewise.
27328 * util/mkisofs/mkisofs.c: Likewise.
27329 * util/mkisofs/multi.c: Likewise.
27330 * util/mkisofs/rock.c: Likewise.
27331 * util/mkisofs/tree.c: Likewise.
27332 * util/mkisofs/write.c: Likewise.
27334 * po/POTFILES: Update with new files.
27336 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27338 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27339 * util/mkisofs/iso9660.h: Likewise.
27340 * util/mkisofs/joliet.c: Likewise.
27341 * util/mkisofs/mkisofs.c: Likewise.
27342 * util/mkisofs/mkisofs.h: Likewise.
27343 * util/mkisofs/rock.c: Likewise.
27344 * util/mkisofs/tree.c: Likewise.
27345 * util/mkisofs/write.c: Likewise.
27347 * util/mkisofs/eltorito.c (rcsid): Remove.
27348 * util/mkisofs/hash.c: Likewise.
27349 * util/mkisofs/joliet.c: Likewise.
27350 * util/mkisofs/name.c: Likewise.
27351 * util/mkisofs/rock.c: Likewise.
27352 * util/mkisofs/tree.c: Likewise.
27353 * util/mkisofs/write.c: Likewise.
27355 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27357 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27358 instead of static allocation.
27359 * util/mkisofs/match.h: Likewise.
27361 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27363 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27364 and `util/grub.d/10_linux.in'.
27365 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27366 translatable Shell files.
27368 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27370 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27372 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27374 * INSTALL: Document Automake is needed for bootstrap.
27375 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27376 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27377 Add gettext initialization.
27378 (kfreebsd_entry): Make menuentry output translatable.
27380 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27382 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27383 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27384 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27385 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27386 (LINGUAS): Auto-generate using `po/LINGUAS'.
27387 * po/LINGUAS: New file.
27389 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27391 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27393 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27394 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27395 bindtextdomain() calls for gettext initialization.
27397 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27399 * gnulib/progname.c: New file (imported from Gnulib).
27400 * gnulib/progname.h: Likewise.
27401 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27402 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27403 (usage): Replace `progname' with `program_name'.
27404 (main): Use set_program_name() for program name initialization.
27406 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27408 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27410 * Makefile.in (CPPFLAGS): ... to here.
27412 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27414 * aclocal.m4: Move from here ...
27415 * acinclude.m4: ... to here.
27416 * autogen.sh: Add call to `aclocal'.
27417 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27419 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27421 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27422 (LINGUAS): New variable.
27423 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27424 (install-local): Install MO files.
27425 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27426 * include/grub/i18n.h: New file.
27427 * po/POTFILES: New file.
27428 * po/ca.po: New file.
27429 * util/grub.d/10_linux.in (bindir): New variable.
27430 Add gettext initialization.
27431 (linux_entry): Make menuentry output translatable.
27432 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27433 (usage): Make --help output translatable.
27434 (main): Initialize gettext.
27436 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27438 * import_gcry.py: New file (written by Vladimir with minor
27440 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27442 * INSTALL: Document that Python is required for bootstrap.
27444 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27446 Import ciphers from libgcrypt 1.4.4.
27448 * lib/libgcrypt/cipher/ChangeLog
27449 * lib/libgcrypt/cipher/ac.c
27450 * lib/libgcrypt/cipher/arcfour.c
27451 * lib/libgcrypt/cipher/bithelp.h
27452 * lib/libgcrypt/cipher/blowfish.c
27453 * lib/libgcrypt/cipher/camellia-glue.c
27454 * lib/libgcrypt/cipher/camellia.c
27455 * lib/libgcrypt/cipher/camellia.h
27456 * lib/libgcrypt/cipher/cast5.c
27457 * lib/libgcrypt/cipher/cipher.c
27458 * lib/libgcrypt/cipher/crc.c
27459 * lib/libgcrypt/cipher/des.c
27460 * lib/libgcrypt/cipher/dsa.c
27461 * lib/libgcrypt/cipher/ecc.c
27462 * lib/libgcrypt/cipher/elgamal.c
27463 * lib/libgcrypt/cipher/hash-common.c
27464 * lib/libgcrypt/cipher/hash-common.h
27465 * lib/libgcrypt/cipher/hmac-tests.c
27466 * lib/libgcrypt/cipher/md.c
27467 * lib/libgcrypt/cipher/md4.c
27468 * lib/libgcrypt/cipher/md5.c
27469 * lib/libgcrypt/cipher/primegen.c
27470 * lib/libgcrypt/cipher/pubkey.c
27471 * lib/libgcrypt/cipher/rfc2268.c
27472 * lib/libgcrypt/cipher/rijndael-tables.h
27473 * lib/libgcrypt/cipher/rijndael.c
27474 * lib/libgcrypt/cipher/rmd.h
27475 * lib/libgcrypt/cipher/rmd160.c
27476 * lib/libgcrypt/cipher/rsa.c
27477 * lib/libgcrypt/cipher/seed.c
27478 * lib/libgcrypt/cipher/serpent.c
27479 * lib/libgcrypt/cipher/sha1.c
27480 * lib/libgcrypt/cipher/sha256.c
27481 * lib/libgcrypt/cipher/sha512.c
27482 * lib/libgcrypt/cipher/tiger.c
27483 * lib/libgcrypt/cipher/twofish.c
27484 * lib/libgcrypt/cipher/whirlpool.c
27486 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27488 Fix build for systems without error().
27490 * gnulib/error.c: New file (imported from Gnulib).
27491 * gnulib/error.h: Likewise.
27492 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27493 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27494 (this variable is now used by error()).
27496 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27498 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27499 instead of relying that char is signed.
27501 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27503 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27504 blocksize different from specified.
27505 (grub_pxefs_read): Likewise.
27507 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27509 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27511 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27512 (grub_ata_readwrite): Likewise. Update 2 format strings.
27513 (grub_atapi_read): Likewise.
27515 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27516 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27517 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27518 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27519 (ata_mod_LDFLAGS): Move from here ...
27520 * conf/i386.rmk: ... to here ...
27521 * conf/x86_64-efi.rmk: ... and here.
27522 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27523 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27525 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27527 Relicense multiboot.h, with RMS' blessing.
27529 * include/multiboot.h: Change to X11 license.
27531 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27533 Support --version in grub-mkisofs.
27535 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27536 (OPTION_VERSION): New macro.
27537 (ld_options): Recognize --version.
27538 (usage): Move `program_name' from here ...
27539 (program_name): ... to here. Add `static' qualifier.
27540 (main): Recognize `OPTION_VERSION'.
27542 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27544 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27545 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27547 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27549 Fix help2man generation for mkisofs.
27551 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27552 (usage): Send output to stdout (rather than stderr).
27554 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27556 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27557 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27558 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27559 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27560 (bin_SCRIPTS): Add `grub-mkfloppy'.
27561 (grub_mkfloppy_SOURCES): New variable.
27563 * util/grub-mkrescue.in: New file.
27564 * util/i386/pc/grub-mkfloppy.in: New file.
27566 * util/i386/coreboot/grub-mkrescue.in: Remove.
27567 * util/i386/pc/grub-mkrescue.in: Remove.
27569 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27571 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27573 * include/multiboot.h (struct multiboot_header): ... to here. Update
27575 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27577 * include/multiboot.h (struct multiboot_info): ... to here. Update
27579 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27581 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27583 * include/grub/multiboot.h (struct grub_mod_list): Move
27585 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27588 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27590 * include/multiboot2.h (multiboot_word): Rename from this ...
27591 (multiboot2_word): ... to this. Update all users.
27592 (multiboot_header): Rename from this ...
27593 (multiboot2_header): ... to this. Update all users.
27594 (multiboot_tag_header): Rename from this ...
27595 (multiboot2_tag_header): ... to this. Update all users.
27596 (multiboot_tag_start): Rename from this ...
27597 (multiboot2_tag_start): ... to this. Update all users.
27598 (multiboot_tag_name): Rename from this ...
27599 (multiboot2_tag_name): ... to this. Update all users.
27600 (multiboot_tag_module): Rename from this ...
27601 (multiboot2_tag_module): ... to this. Update all users.
27602 (multiboot_tag_memory): Rename from this ...
27603 (multiboot2_tag_memory): ... to this. Update all users.
27604 (multiboot_tag_unused): Rename from this ...
27605 (multiboot2_tag_unused): ... to this. Update all users.
27606 (multiboot_tag_end): Rename from this ...
27607 (multiboot2_tag_end): ... to this. Update all users.
27609 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27611 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27612 this platform we should support Multiboot1 first.
27614 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27615 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27616 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27618 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27620 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27621 of write calls (converting them to fwrite() if they aren't already).
27622 (get_torito_desc): Likewise.
27623 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27625 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27627 * util/i386/pc/grub-install.in: Move from here ...
27628 * util/grub-install.in: ... to here. Update all users.
27630 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27632 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27634 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27636 Support for El Torito without floppy emulation.
27638 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27639 (init_boot_catalog): Improve error handling.
27640 (get_torito_desc): Don't use floppy emulation unless requested by
27641 user. Patch boot information table when requested via
27642 `-boot-info-table'.
27643 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27644 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27645 (use_boot_info_table): New variables.
27646 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27647 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27648 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27649 `--eltorito-emul-floppy'.
27650 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27651 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27652 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27653 (use_boot_info_table, get_731): New prototypes.
27654 * util/mkisofs/write.c (get_731): New function.
27656 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27658 Fix the generation of the man page.
27660 * util/pc/i386/grub-install.in: Source
27661 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27663 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27665 Large file support for grub-mkisofs.
27667 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27668 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27669 (session_start): Upgrade type to `uint64_t'. Update all users.
27670 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27671 (struct directory_entry): Upgrade type of `starting_block' and
27672 `size' to `uint64_t'. Update all users.
27673 (struct deferred): Remove unused structure.
27674 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27676 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27677 file is larger than `UINT32_MAX'.
27678 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27679 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27681 (struct deferred_write): Upgrade type of `extent' and `size' to
27682 `uint64_t'. Update all users.
27683 (last_extent_written): Upgrade type to `uint64_t'. Update all
27685 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27686 Update all users. Upgrade type of `remain' to `int64_t' and
27687 `use' to `size_t'. Use error() to handle fread() errors.
27688 (write_files): Rely on write_one_file() rather than calling
27689 xfwrite() directly.
27691 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27693 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27695 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27697 * util/mkisofs/fnmatch.c: Remove.
27698 * util/mkisofs/getopt1.c: Likewise.
27699 * util/mkisofs/getopt.c: Likewise.
27700 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27701 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27702 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27703 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27704 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27706 * configure.ac: Detect `mingw32msvc' host_os.
27707 Check for lstat(), getuid() and getgid().
27709 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27710 instances of `u_char' with `uint8_t'.
27712 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27713 [!HAVE_GETUID] (getuid): New function (stub).
27714 [!HAVE_GETGID] (getgid): Likewise.
27715 [!HAVE_LSTAT] (lstat): Likewise.
27716 [!S_IROTH] (S_IROTH): New macro (dummy).
27717 [!S_IRGRP] (S_IRGRP): Likewise.
27719 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27721 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27722 conditional expression).
27724 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27726 Import from Gnulib.
27728 * gnulib/fnmatch.c: New file.
27729 * gnulib/fnmatch.h: Likewise.
27730 * gnulib/fnmatch_loop.c: Likewise.
27731 * gnulib/getopt.c: Likewise.
27732 * gnulib/getopt.h: Likewise.
27733 * gnulib/getopt1.c: Likewise.
27734 * gnulib/getopt_int.h: Likewise.
27735 * gnulib/gettext.h: Likewise.
27737 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27739 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27740 * normal/handler.c (read_handler_list): Likewise.
27742 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27746 * kern/command.c (grub_register_command_prio): Use
27747 grub_zalloc() instead of explicitly zeroing data.
27748 * kern/list.c: Include `<grub/mm.h>'.
27749 (grub_named_list_find): Replace `0' with `NULL'.
27750 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27751 (fs_module_list): Change type to `grub_named_list_t'. Update all
27753 * normal/dyncmd.c (read_command_list): Add space between function
27754 call and parenthesis.
27755 * normal/handler.c (read_handler_list): Likewise.
27757 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27759 * normal/auth.c (punishment_delay): Moved from here ...
27760 (grub_auth_strcmp): ... to here (inside function).
27762 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27764 * include/grub/list.h (struct grub_named_list): Remove `const'
27765 qualifier from `name'.
27766 (struct grub_prio_list): Likewise.
27768 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27770 * normal/auth.c: Include `<grub/time.h>'.
27771 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27773 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27775 * normal/auth.c (punishment_delay): New variable.
27776 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27777 (grub_auth_check_authentication): Punish failed login attempts with
27778 an incremental (2^N) delay.
27780 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27782 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27783 path with $(srcdir).
27785 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27787 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27789 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27791 * util/i386/coreboot/grub-mkrescue.in: New file.
27792 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27795 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27796 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27797 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27799 * util/mkisofs/defaults.h: New file.
27800 * util/mkisofs/eltorito.c: Likewise.
27801 * util/mkisofs/exclude.h: Likewise.
27802 * util/mkisofs/fnmatch.c: Likewise.
27803 * util/mkisofs/getopt.c: Likewise.
27804 * util/mkisofs/getopt1.c: Likewise.
27805 * util/mkisofs/hash.c: Likewise.
27806 * util/mkisofs/include/fctldefs.h: Likewise.
27807 * util/mkisofs/include/mconfig.h: Likewise.
27808 * util/mkisofs/include/prototyp.h: Likewise.
27809 * util/mkisofs/include/statdefs.h: Likewise.
27810 * util/mkisofs/iso9660.h: Likewise.
27811 * util/mkisofs/joliet.c: Likewise.
27812 * util/mkisofs/match.c: Likewise.
27813 * util/mkisofs/match.h: Likewise.
27814 * util/mkisofs/mkisofs.c: Likewise.
27815 * util/mkisofs/mkisofs.h: Likewise.
27816 * util/mkisofs/multi.c: Likewise.
27817 * util/mkisofs/name.c: Likewise.
27818 * util/mkisofs/rock.c: Likewise.
27819 * util/mkisofs/tree.c: Likewise.
27820 * util/mkisofs/write.c: Likewise.
27822 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27824 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27827 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27829 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27830 `grub-mkimage' (and use $0 when possible).
27832 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27834 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27835 error message for excessively large memory map.
27837 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27839 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27842 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27844 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27845 message for coreboot users.
27847 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27849 Fix build with GNU gold.
27851 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27852 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27853 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27855 * aclocal.m4: Likewise.
27857 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27859 * configure.ac (AC_PREREQ): Bump to 2.59d.
27860 * INSTALL: Make it more clear when Autoconf and Ruby are
27861 needed and when to run `./autogen.sh'.
27863 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27865 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27868 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27870 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27872 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27874 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27875 giving it to GNU Mach.
27877 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27879 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27880 GNU partition number to get internal GRUB partition number.
27882 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27884 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27885 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27887 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27889 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27890 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27893 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27895 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27897 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27901 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27902 `-isystem=$(srcdir)/include'.
27904 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27906 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27907 checked (grub-install doesn't currently rely on it).
27909 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27913 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27914 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27915 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27916 * conf/i386-ieee1275.rmk: Likewise.
27917 * conf/i386-pc.rmk: Likewise.
27918 * conf/powerpc-ieee1275.rmk: Likewise.
27919 * conf/sparc64-ieee1275.rmk: Likewise.
27920 * conf/x86_64-efi.rmk: Likewise.
27922 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27924 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27926 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27928 * include/grub/misc.h: Stop checking for APPLE_CC.
27930 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27932 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27933 doesn't cause an infinite call loop.
27935 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27937 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27940 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27942 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27944 * Makefile.in: Likewise.
27946 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27948 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27950 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27952 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27954 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27956 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27958 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27960 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27962 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27964 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27966 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27967 in $(MAKEINFO) invocation. This makes it clear in output that
27968 errors are being ignored.
27970 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27972 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27974 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27975 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27976 * conf/i386-ieee1275.rmk: Likewise.
27977 * conf/i386-pc.rmk: Likewise.
27978 * conf/powerpc-ieee1275.rmk: Likewise.
27979 * conf/sparc64-ieee1275.rmk: Likewise.
27980 * conf/x86_64-efi.rmk: Likewise.
27982 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27984 * util/grub-editenv.c (main): If only a command is given, use
27985 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27986 (usage): FILENAME is now optional and has a default.
27988 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27990 Improve grub-mkconfig performance when there are several menu
27991 entries on a single filesystem.
27993 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27994 prepare_grub_to_access_device.
27995 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
27996 * util/grub.d/30_os-prober.in: Likewise.
27998 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28000 * util/grub.d/10_freebsd.in: Remove.
28001 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
28002 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
28004 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28006 * docs/grub.cfg: Fix example usage of *BSD loaders.
28008 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28010 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
28011 grub_util_error() call.
28013 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28015 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
28016 `reserved_first_sector' member.
28017 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
28018 `reserved_first_sector' to 1.
28019 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
28020 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
28021 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
28022 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
28023 filesystems which begin at first sector.
28024 (options): New option --skip-fs-probe.
28025 (main): Handle --skip-fs-probe and pass it to setup().
28027 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28029 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
28030 (memset): Fix function prototype.
28032 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28033 2009-10-25 Vasily Averin <vvs@parallels.com>
28035 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
28036 `dirent.direntlen == 0'.
28038 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28040 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
28042 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
28044 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28046 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
28047 `__trampoline_setup' and `__ucmpdi2'.
28048 * include/grub/powerpc/libgcc.h: Only export symbols for functions
28049 that libgcc provides.
28051 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28053 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28054 * include/grub/sparc64/libgcc.h (memset): Likewise.
28055 * include/grub/misc.h (memset, memcmp): New function prototypes.
28057 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28059 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28061 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28063 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28065 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28066 * docs/grub.cfg: Compensate for recent change in multiboot
28067 loader (since 2009-08-14 it won't pass filename to payload).
28068 * util/grub.d/10_hurd.in: Likewise.
28070 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
28072 * config.guess: Update to latest version from config git
28074 * config.sub: Likewise.
28076 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28078 Fix build on sparc64.
28080 * configure.ac: Perform checks for libgcc symbols before
28081 adding `-nostdlib' to LDFLAGS.
28083 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28085 Let user specify OpenBSD root device.
28087 * loader/i386/bsd.c (openbsd_root): New variable.
28088 (openbsd_opts): New option 'root'.
28089 (OPENBSD_ROOT_ARG): New macro.
28090 (grub_openbsd_boot): Use 'openbsd_root'.
28091 (grub_cmd_openbsd): Fill 'openbsd_root'.
28093 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28095 * NEWS: Misc adjustments.
28097 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28099 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28101 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28103 * configure.ac: Bump version to 1.97.
28105 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
28107 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28108 -mno-3dnow on x86 architectures. Some toolchains enable these
28109 features by default, but they rely on registers that aren't enabled
28110 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28112 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28114 Make entry text a bit more readable.
28116 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28118 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28120 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28122 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28124 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28127 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28129 * configure.ac: Add missing dollar.
28131 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28133 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28135 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28136 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28138 * include/grub/sparc64/libgcc.h: Likewise. Use
28139 preprocessor conditionals.
28141 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28143 * conf/common.rmk (grub-dumpbios): Remove rule.
28144 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28145 * util/grub-dumpbios.in: Remove file.
28147 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28149 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28150 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28152 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28153 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28156 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28157 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28158 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28159 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28162 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28164 * term/tparm.c: Switch to GPLv3.
28166 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28168 * include/grub/i386/cpuid.h: Add header protection.
28170 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28172 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28174 * include/grub/i386/cpuid.h: New file.
28175 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28176 (has_longmode): Rename to ...
28177 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28178 `static' attribute.
28179 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28180 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28181 on a CPU that doesn't implement AMD64 instruction set.
28183 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28185 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28186 that version.texi is rebuilt on version number changes.
28188 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28190 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28193 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28195 * util/i386/pc/grub-install.in: Source
28196 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28197 that the --grub-probe option will work.
28198 * util/sparc64/ieee1275/grub-install.in: Likewise.
28200 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28202 * configure.ac: Bump version to 1.97~beta4.
28204 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28206 Resync grub-mkdevicemap in x86_64-efi.
28208 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28209 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28210 `util/devicemap.c'.
28212 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
28214 * util/grub-editenv.c (create_envblk_file): Write new block with a
28215 .new suffix and then rename it into place, to ensure atomic
28218 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28220 Do not automatically install headers.
28222 * Makefile.in (include_DATA): Remove. Update all users.
28224 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28226 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28227 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28229 * util/osdetect.lua: Remove.
28230 * script/lua/lauxlib.c: Likewise.
28231 * script/lua/ldebug.c: Likewise.
28232 * script/lua/grub_main.c: Likewise.
28233 * script/lua/lauxlib.h: Likewise.
28234 * script/lua/ldebug.h: Likewise.
28235 * script/lua/ltablib.c: Likewise.
28236 * script/lua/liolib.c: Likewise.
28237 * script/lua/lstrlib.c: Likewise.
28238 * script/lua/lualib.h: Likewise.
28239 * script/lua/ldo.c: Likewise.
28240 * script/lua/ldump.c: Likewise.
28241 * script/lua/ldo.h: Likewise.
28242 * script/lua/loslib.c: Likewise.
28243 * script/lua/lundump.c: Likewise.
28244 * script/lua/grub_lib.c: Likewise.
28245 * script/lua/ldblib.c: Likewise.
28246 * script/lua/lundump.h: Likewise.
28247 * script/lua/lmem.c: Likewise.
28248 * script/lua/grub_lib.h: Likewise.
28249 * script/lua/lmathlib.c: Likewise.
28250 * script/lua/lstate.c: Likewise.
28251 * script/lua/ltm.c: Likewise.
28252 * script/lua/lvm.c: Likewise.
28253 * script/lua/lmem.h: Likewise.
28254 * script/lua/lstate.h: Likewise.
28255 * script/lua/ltm.h: Likewise.
28256 * script/lua/ltable.c: Likewise.
28257 * script/lua/lvm.h: Likewise.
28258 * script/lua/llex.c: Likewise.
28259 * script/lua/lgc.c: Likewise.
28260 * script/lua/grub_lua.h: Likewise.
28261 * script/lua/loadlib.c: Likewise.
28262 * script/lua/lfunc.c: Likewise.
28263 * script/lua/lopcodes.c: Likewise.
28264 * script/lua/lparser.c: Likewise.
28265 * script/lua/ltable.h: Likewise.
28266 * script/lua/llex.h: Likewise.
28267 * script/lua/lgc.h: Likewise.
28268 * script/lua/lfunc.h: Likewise.
28269 * script/lua/lbaselib.c: Likewise.
28270 * script/lua/lopcodes.h: Likewise.
28271 * script/lua/lparser.h: Likewise.
28272 * script/lua/lzio.c: Likewise.
28273 * script/lua/linit.c: Likewise.
28274 * script/lua/lobject.c: Likewise.
28275 * script/lua/llimits.h: Likewise.
28276 * script/lua/lstring.c: Likewise.
28277 * script/lua/lzio.h: Likewise.
28278 * script/lua/lapi.c: Likewise.
28279 * script/lua/lcode.c: Likewise.
28280 * script/lua/lua.h: Likewise.
28281 * script/lua/lobject.h: Likewise.
28282 * script/lua/lstring.h: Likewise.
28283 * script/lua/lapi.h: Likewise.
28284 * script/lua/lcode.h: Likewise.
28285 * script/lua/luaconf.h: Likewise.
28287 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
28289 * docs/grub.texi (Command-line and menu entry commands): Document
28290 date and echo commands.
28292 2009-09-24 Pavel Roskin <proski@gnu.org>
28294 * include/grub/kernel.h (struct grub_module_header): Remove
28295 `grub_module_header_types'. Make `type' unsigned. Make `size'
28296 32-bit on all platforms.
28297 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28298 8-bit field. Use grub_host_to_target32() for `size'.
28299 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28300 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28301 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28303 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28305 Fix "lost keypress" bug in at_keyboard.
28307 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28308 Checks for readyness of input buffer (without flushing it).
28309 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28310 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28312 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28314 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28315 size check within GRUB_MACHINE_PCBIOS section.
28317 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28319 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28321 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28322 KEYBOARD_ISREADY check.
28323 (grub_at_keyboard_checkkey): Rename to ...
28324 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28325 Remove gratuitous cast.
28327 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28329 * configure.ac: Call AC_PROG_MKDIR_P.
28330 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28331 version.texi in $(builddir) rather than $(srcdir).
28332 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28333 to makeinfo's @include search path.
28335 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28337 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28339 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28341 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28344 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28346 Build info documentation. Some code borrowed from Automake.
28348 * configure.ac: Check for makeinfo.
28349 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28350 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28352 (MOSTLYCLEANFILES): Add vti.tmp.
28353 (docs/version.texi, docs/stamp-vti): Update automatically.
28354 (docs/grub.info): Build info documentation. Use --force and ignore
28356 (all-local): Add $(INFOS).
28357 (install-local): Install info files.
28358 (uninstall): Uninstall info files.
28359 * docs/version.texi: Remove from revision control. This file is
28360 automatically generated on build now.
28361 * gendistlist.sh: Add `*.info'.
28363 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28365 * kern/term.c: Fix indentation.
28367 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28369 * util/hostdisk.c: Fix a comment.
28371 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28373 Fix regression introduced in r2539.
28375 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28378 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28380 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28381 os-prober. Under normal operation, it does not print anything to
28382 stderr; if it does, we need to debug it, and throwing away stderr
28383 makes that excessively difficult.
28385 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28387 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28389 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28391 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28392 AC_LANG_PROGRAM from autoconf.
28393 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28394 prototypes (fixes warning).
28396 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28397 `--disable-werror' was used.
28399 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28401 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28402 uninitialized `lastaddr'.
28404 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28406 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28408 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28410 * commands/test.c (get_fileinfo): Return immediately if
28411 grub_fs_probe fails.
28413 2009-09-14 José Martínez <xosemp@gmail.com>
28415 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28417 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28419 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28422 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28424 * configure.ac: Remove --enable-grub-pe2elf. Only build
28425 grub-pe2elf when needed by the build system itself.
28426 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28428 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28430 * configure.ac: Bump version to 1.97~beta3.
28431 * docs/version.texi: Likewise.
28433 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28435 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28436 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28438 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28439 (grub_linux_setup_video): ... to here (with some adjustments).
28441 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28443 Fix memory corruption issue (spotted by Colin Watson).
28445 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28446 causing returned size to be stored in an incorrect memory location.
28447 Fix use of uninitialized value when storing the returned size.
28449 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28451 Change clean rules to properly remove files
28453 * genmk.rb: add new clean rules
28454 * Makefile.in (clean): add the new targets
28455 (mostlyclean): likewise
28457 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28459 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28461 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28462 non-resident files.
28464 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28466 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28467 part of bug #27349.
28469 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28471 * util/grub-mkconfig.in: Make the created config mode 400 and
28472 print a warning if it fails.
28474 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28476 * util/grub.d/40_custom.in: Ask user to type custom entries below
28477 comment, rather than below 'exec tail' line.
28479 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28481 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28482 visible in grub.cfg.
28484 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28486 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28489 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28491 * docs/grub.cfg: Add an example menu entry for memtest86+.
28493 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28495 * config.guess: Update to latest version from config git.
28496 * config.sub: Likewise.
28498 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28500 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28501 unknown-command case. Fixes bug #27320.
28503 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28505 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28506 `help' if the command exists.
28508 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28510 * INSTALL: Require GCC 4.1.3 or later.
28512 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28514 * Makefile.in (RMKFILES): add i386-qemu.rmk
28515 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28516 $(srcdir)/stamp-h.in
28518 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28520 * util/grub-probe.c (probe): Comment out buggy codepath, which
28521 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28522 should be re-enabled after 1.97.
28524 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28526 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28529 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28531 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28532 unnecessary calls to grub_error.
28534 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28536 * NEWS: Mention `keystatus' and Unicode fonts.
28538 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28540 * configure.ac: Bump version to 1.97~beta2.
28541 * docs/version.texi: Likewise.
28543 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28545 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28546 containing unwind information in some cases where it previously did
28547 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28548 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28551 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28553 Embedding loadenv module into grub-emu
28555 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28557 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28558 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28559 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28560 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28561 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28562 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28564 2009-09-03 Magnus Granberg <zorry@ume.nu>
28566 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28567 include -fPIE in the default specs.
28568 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28571 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28573 * INSTALL: Note that GNU Bison 2.3 or later is required.
28575 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28577 * kern/i386/pc/startup.S: Fix typo.
28579 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28581 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28584 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28586 * docs/grub.texi (Naming convention): Describe one-based partition
28588 (Device syntax): Likewise.
28589 (File name syntax): Likewise.
28590 (Block list syntax): Likewise.
28591 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28593 (File name syntax): Likewise.
28594 (Command-line and menu entry commands): Document acpi, blocklist,
28595 crc, export, insmod, keystatus, ls, set, and unset commands.
28597 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28599 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28600 to avoid implying that only one of --shift, --ctrl, or --alt may be
28603 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28605 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28606 rather than comparing against S_IFREG, which will almost never work.
28608 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28610 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28611 (write_blocklists): Likewise.
28613 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28615 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28616 argument to grub_printf.
28618 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28620 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28623 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28625 * kern/file.c (grub_file_read): Spelling fix
28627 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28629 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28630 loading of headers in some cases.
28632 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28634 * configure.ac: Bump version to 1.97~beta1.
28635 * docs/version.texi: Likewise.
28637 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28639 * include/grub/i386/xnu.h: Add license header.
28640 include grub/err.h explicitly.
28642 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28644 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28645 to `ufs' in the vfs.root.mountfrom kernel parameter.
28647 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28649 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28651 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28652 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28654 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28655 `ARRAY_SIZE' macro.
28657 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28659 * kern/file.c (grub_file_read): Check offset.
28660 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28661 * fs/jfs.c (grub_jfs_read_file): Likewise.
28662 * fs/ntfs.c (grub_ntfs_read): Likewise.
28663 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28664 * fs/minix.c (grub_minix_read_file): Correct offset check.
28665 * fs/ufs.c (grub_ufs_read_file): Likewise.
28667 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28669 * term/i386/pc/console.c (bios_data_area): Cast
28670 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28672 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28674 1-bit optimised blitters.
28676 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28678 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28679 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28680 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28681 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28682 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28683 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28684 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28686 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28687 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28688 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28689 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28690 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28691 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28692 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28694 * video/video.c (grub_video_get_blit_format): Return
28695 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28697 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28699 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28700 the first argument to grub_printf.
28702 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28703 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28705 Add `getkeystatus' terminal method. Add a new `keystatus' command
28708 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28709 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28710 modifier key bitmasks.
28711 (struct grub_term_input): Add `getkeystatus' member.
28712 (grub_getkeystatus): Add prototype.
28713 * kern/term.c (grub_getkeystatus): New function.
28715 * include/grub/i386/pc/memory.h
28716 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28717 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28719 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28720 (grub_console_term_input): Set `getkeystatus' member.
28721 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28723 (grub_usb_keyboard_getreport): Likewise.
28724 (grub_usb_keyboard_checkkey): Likewise.
28725 (grub_usb_keyboard_getkeystatus): New function.
28726 (grub_usb_keyboard_term): Set `getkeystatus' member.
28728 * commands/keystatus.c: New file.
28729 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28730 (keystatus_mod_SOURCES): New variable.
28731 (keystatus_mod_CFLAGS): Likewise.
28732 (keystatus_mod_LDFLAGS): Likewise.
28733 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28734 commands/keystatus.c.
28735 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28736 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28737 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28738 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28739 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28740 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28742 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28744 Split befs.mod and afs.mod into *_be.mod and *.mod
28746 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28747 (grub_fstest_SOURCES): Likewise.
28748 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28749 (afs_be_mod_SOURCES): New variable.
28750 (afs_be_mod_CFLAGS): Likewise.
28751 (afs_be_mod_LDFLAGS): Likewise.
28752 (befs_be_mod_SOURCES): Likewise.
28753 (befs_be_mod_CFLAGS): Likewise.
28754 (befs_be_mod_LDFLAGS): Likewise.
28755 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28756 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28757 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28758 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28759 (grub_emu_SOURCES): Likewise.
28760 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28761 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28762 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28763 * fs/afs_be.c: New file.
28764 * fs/befs_be.c: New file.
28765 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28766 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28767 (U16): Replaced with ...
28768 (grub_afs_to_cpu16): ...this. All users updated.
28769 (U32): Replaced with ...
28770 (grub_afs_to_cpu32): ...this. All users updated.
28771 (U64): Replaced with ...
28772 (grub_afs_to_cpu64): ...this. All users updated.
28773 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28774 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28775 (grub_afs_validate_sblock): Check only one endianness.
28776 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28777 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28778 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28779 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28780 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28781 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28782 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28783 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28785 2009-08-26 Bean <bean123ch@gmail.com>
28787 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28789 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28790 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28791 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28793 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28795 NetBSD memory map support.
28797 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28798 (grub_netbsd_btinfo_mmap_header): New structure.
28799 (grub_netbsd_btinfo_mmap_entry): Likewise.
28800 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28802 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28804 Enable bsd.mod on coreboot.
28806 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28807 (bsd_mod_SOURCES): New variable.
28808 (bsd_mod_CFLAGS): Likewise.
28809 (bsd_mod_LDFLAGS): Likewise.
28810 (bsd_mod_ASFLAGS): Likewise.
28811 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28812 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28814 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28816 Cleanup NetBSD root support.
28818 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28819 grub_bsd_get_device.
28822 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28824 * util/grub.d/00_header.in: Move check for the video backend of
28825 gfxterm from here ...
28826 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28827 a suitable video backend.
28829 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28831 Fix breakage in grub-setup.
28833 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28834 "msdos_partition_map".
28836 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28838 Fix breakage in normal/auth.c.
28840 * normal/auth.c (grub_iswordseparator): New function.
28842 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28844 Authentication support.
28846 * commands/password.c: New file.
28847 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28848 (password_mod_SOURCES): New variable.
28849 (password_mod_CFLAGS): Likewise.
28850 (password_mod_LDFLAGS): Likewise.
28851 (normal_mod_SOURCES): Add normal/auth.c.
28852 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28854 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28855 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28856 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28858 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28859 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28860 * include/grub/auth.h: New file.
28861 * include/grub/err.h (grub_err_t): New enum value
28862 GRUB_ERR_ACCESS_DENIED.
28863 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28865 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28866 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28868 * normal/auth.c: New file.
28869 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28870 (grub_cmdline_run): Don't allow to go to command line without
28872 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28873 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28874 menuentry without superuser rights.
28875 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28876 user isn't a superuser.
28878 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28880 Save space by inlining misc.c functions.
28882 * kern/misc.c (grub_iswordseparator): Made static.
28883 * kern/misc.c (grub_strcat): Moved from here ...
28884 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28885 * kern/misc.c (grub_strncat): Moved from here ...
28886 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28887 * kern/misc.c (grub_strcasecmp): Moved from here ...
28888 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28889 * kern/misc.c (grub_strncasecmp): Moved from here ...
28890 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28891 * kern/misc.c (grub_isalpha): Moved from here ...
28892 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28893 * kern/misc.c (grub_isdigit): Moved from here ...
28894 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28895 * kern/misc.c (grub_isgraph): Moved from here ...
28896 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28897 * kern/misc.c (grub_tolower): Moved from here ...
28898 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28900 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28902 * script/sh/function.c (grub_script_function_find): Cut error message
28903 not to flood terminal.
28904 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28906 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28908 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28910 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28911 `report' grub_uint8_t *.
28912 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28913 Use a 50-millisecond timeout rather than just repeating
28914 grub_usb_keyboard_getreport 50 times.
28915 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28917 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28919 Rename *_partition_map to part_*
28921 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28922 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28923 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28924 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28926 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28928 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28929 * util/grub-probe.c (probe_partmap): Don't transform partition name
28930 to get module name.
28932 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28934 Fix OpenBSD and NetBSD support.
28936 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28937 memory address conflict.
28938 (OPENBSD_MMAP_ACPI): New definition.
28939 (OPENBSD_MMAP_NVS): Likewise.
28940 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28941 and OPENBSD_MMAP_NVS.
28942 Add memory map terminator
28943 Explicit cast when calling grub_unix_real_boot.
28944 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28946 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28948 Let user specify NetBSD root device.
28950 * loader/i386/bsd.c (netbsd_root): New variable.
28951 (netbsd_opts): New option 'root'.
28952 (NETBSD_ROOT_ARG): New macro.
28953 (grub_netbsd_boot): Use 'netbsd_root'.
28954 (grub_bsd_unload): Free 'netbsd_root'.
28955 (grub_cmd_netbsd): Fill 'netbsd_root'.
28957 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28959 Support for 64-bit NetBSD.
28961 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28962 point when booting non-FreeBSD.
28964 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28966 Support --no-smp and --no-acpi for NetBSD.
28968 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28969 (NETBSD_AB_NOACPI): Likewise.
28970 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28971 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28973 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28975 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28977 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28978 errors. Call grub_error when needed.
28980 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28982 * commands/search.c (search_fs): Try searching without autoload first.
28983 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28984 filesystem module explicitly for faster booting.
28986 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28988 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28990 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28992 * util/grub.d/30_os-prober.in: Disable os-prober if
28993 `GRUB_DISABLE_OS_PROBER' was set to true.
28995 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
28997 * partmap/pc.c: Rename to ...
28998 * partmap/msdos.c: ... this. Update all users.
28999 (grub_pc_partition_map): Rename to ...
29000 (grub_msdos_partition_map): ... this. Update all users.
29002 * parttool/pcpart.c: Rename to ...
29003 * parttool/msdospart.c: ... this. Update all users.
29005 * include/grub/pc_partition.h: Rename to ...
29006 * include/grub/msdos_partition.h: ... this. Update all users.
29007 (grub_pc_partition_bsd_entry): Rename to ...
29008 (grub_msdos_partition_bsd_entry): ... this. Update all users.
29009 (grub_pc_partition_disk_label): Rename to ...
29010 (grub_msdos_partition_disk_label): ... this. Update all users.
29011 (grub_pc_partition_entry): Rename to ...
29012 (grub_msdos_partition_entry): ... this. Update all users.
29013 (grub_pc_partition_mbr): Rename to ...
29014 (grub_msdos_partition_mbr): ... this. Update all users.
29015 (grub_pc_partition): Rename to ...
29016 (grub_msdos_partition): ... this. Update all users.
29017 (grub_pc_partition_is_empty): Rename to ...
29018 (grub_msdos_partition_is_empty): ... this. Update all users.
29019 (grub_pc_partition_is_extended): Rename to ...
29020 (grub_msdos_partition_is_extended): ... this. Update all users.
29021 (grub_pc_partition_is_bsd): Rename to ...
29022 (grub_msdos_partition_is_bsd): ... this. Update all users.
29024 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
29025 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
29026 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
29027 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
29028 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
29029 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
29030 (gpt_mod_LDFLAGS): Rename to ...
29031 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
29032 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
29033 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
29034 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
29035 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
29036 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
29037 (part_gpt_mod_LDFLAGS): ... this.
29038 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
29039 `pcpart.mod' to `msdospart.mod'.
29040 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
29042 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
29043 (msdospart_mod_LDFLAGS): ... this.
29045 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29047 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
29048 (openbsd_opts): Likewise.
29049 (netbsd_opts): Likewise.
29050 (freebsd_flags): Added 0 terminator.
29051 (openbsd_flags): Likewise.
29052 (netbsd_flags): Likewise.
29053 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29054 (grub_cmd_freebsd): Transformed into extended command.
29055 (grub_cmd_openbsd): Likewise.
29056 (grub_cmd_netbsd): Likewise.
29057 (cmd_freebsd): Changed type to grub_extcmd_t.
29058 (cmd_openbsd): Likewise.
29059 (cmd_netbsd): Likewise.
29060 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29061 grub_cmd_openbsd as extended commands.
29062 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29063 cmd_netbsd and cmd_openbsd
29065 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29067 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29069 2009-08-21 Pavel Roskin <proski@gnu.org>
29071 * Makefile.in (install-local): When checking if a file is in the
29072 build directory, use "test -e" to detect symlinks.
29074 * Makefile.in (install-local): Remove all files in
29075 $(DESTDIR)$(pkglibdir) before installing new files there.
29077 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29079 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29082 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29084 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29085 explicitly specified by the user.
29087 2009-08-18 Pavel Roskin <proski@gnu.org>
29089 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29090 grub_uint8_t pointer for data.
29091 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29093 * video/fb/fbutil.c: Remove unnecessary casts.
29095 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29099 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29100 (grub_vbe_set_video_mode): Save active mode info
29101 only after setting the mode.
29102 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29105 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29107 Rename variables for clarity.
29109 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29110 (active_vbe_mode_info): ... this. All users updated.
29111 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29113 (initial_mode): Rename to ...
29114 (initial_vbe_mode): ... this. All users updated.
29115 (mode_in_use): Rename to ..
29116 (vbe_mode_in_use): ... this. All users updated.
29117 (mode_list): Rename to ..
29118 (vbe_mode_list): ... this. All users updated.
29119 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29120 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29121 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29122 'mode_list_size' to 'vbe_mode_list_size'.
29123 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29124 'best_mode_info' to 'best_vbe_mode_info' and
29125 'best_mode' to 'best_vbe_mode'
29127 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29129 Remove duplicate grub_video_fb_get_video_ptr.
29131 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29132 (grub_video_fb_get_video_ptr): ... this.
29133 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29134 * video/fb/fbutil.c: Add comment about addressing.
29135 (get_data_ptr): Rename to ...
29136 (grub_video_fb_get_video_ptr): ... this. All users updated.
29137 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29139 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29141 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29142 grub_dprintf() that was just added.
29144 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29146 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29147 (DEFAULT_VIDEO_MODE): Remove macros.
29148 (grub_linux_boot): Remove assumption that Linux has FB support,
29149 and use "text" as default video mode.
29151 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29153 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29155 * fs/fat.c (grub_fat_read_data): Likewise.
29157 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29159 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29161 (grub_module): Likewise.
29163 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29165 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29166 mbi->cmdline but free playground.
29168 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29170 Handle group offset on UFS1.
29172 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29173 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29175 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29177 Split ufs.mod into ufs1.mod and ufs2.mod.
29179 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29180 (grub_fstest_SOURCES): Likewise.
29181 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29182 (ufs_mod_SOURCES): Remove.
29183 (ufs_mod_CFLAGS): Likewise.
29184 (ufs_mod_LDFLAGS): Likewise.
29185 (ufs1_mod_SOURCES): New variable.
29186 (ufs1_mod_CFLAGS): Likewise.
29187 (ufs1_mod_LDFLAGS): Likewise.
29188 (ufs2_mod_SOURCES): New variable.
29189 (ufs2_mod_CFLAGS): Likewise.
29190 (ufs2_mod_LDFLAGS): Likewise.
29191 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29192 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29194 (grub_emu_SOURCES): Likewise.
29195 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29196 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29197 (grub_setup_SOURCES): Likewise.
29198 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29199 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29200 (grub_setup_SOURCES): Likewise.
29201 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29203 * fs/ufs2.c: New file.
29204 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29206 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29210 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29211 subsystem at the end.
29212 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29213 (video_fb_mod_SOURCES): New variable.
29214 (video_fb_mod_CFLAGS): Likewise.
29215 (video_fb_mod_LDFLAGS): Likewise.
29216 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29217 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29218 * video/i386/pc/vbeblit.c: Moved from here ...
29219 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29220 * video/i386/pc/vbefill.c: Moved from here ...
29221 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29222 * video/i386/pc/vbeutil.c: Moved from here ...
29223 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29224 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29225 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29226 * include/grub/i386/pc/vbefill.h: Moved from here ...
29227 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29228 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29229 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29230 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29231 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29232 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29233 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29234 (grub_video_adapter): Added 'get_info_and_fini'.
29235 (grub_video_get_info_and_fini): New prototype.
29236 (grub_video_set_mode): make modestring const char *.
29237 * loader/i386/linux.c (grub_linux_setup_video): Use
29238 grub_video_get_info_and_fini.
29239 (grub_linux_boot): Move modesetting just before booting.
29240 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29241 grub_video_get_info_and_fini.
29242 * video/i386/pc/vbe.c: Moved framebuffer part ...
29243 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29244 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29245 grub_video_fbstd_colors and grub_video_fb_set_palette.
29246 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29247 grub_video_fb_init.
29248 (grub_video_vbe_fini): Use grub_video_fb_fini.
29249 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29250 render_target and use grub_video_fb_set_active_render_target and
29251 grub_video_fb_set_palette.
29252 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29253 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29254 (grub_video_vbe_adapter): Use framebuffer.
29255 * video/video.c (grub_video_get_info_and_fini): New function.
29256 (grub_video_set_mode): Make modestring const char *.
29257 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29258 values are already initialised.
29260 2009-08-14 Pavel Roskin <proski@gnu.org>
29262 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29264 * boot/i386/pc/diskboot.S: Likewise.
29265 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29266 sectors allow compilation on MacOSX.
29267 * conf/i386-pc.rmk: Enable unconditional compilation of
29270 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
29272 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29273 * util/grub.d/00_header.in: Enter interruptible sleep if
29274 GRUB_HIDDEN_TIMEOUT is set.
29276 2009-08-13 Yves Blusseau <blusseau@zetam.org>
29278 * include/grub/symbol.h: Add the LOCAL macro.
29279 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29280 starting with "L_".
29282 2009-08-13 Pavel Roskin <proski@gnu.org>
29284 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29285 any modern compilers we support.
29287 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29288 Use local labels starting with "L_" so that Apple assembler
29289 knows they are local.
29291 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29293 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29294 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29295 (bsd_kernel_types): ... this enum.
29297 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29298 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29299 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29301 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29302 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29303 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29306 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29308 * util/grub-dumpdevtree: Moved from here ...
29309 * util/i386/efi/grub-dumpdevtree: ... to here.
29310 (hexify): New function. Converts a string to its hex version.
29311 Generate hex versions of "efi" and "device-properties" by calling
29312 hexify() on the ASCII strings rather than by hardcoding numbers.
29314 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29316 * fs/jfs.c: Update copyright year.
29318 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29320 * util/grub.d/00_header.in: Fix a comment.
29321 * util/grub.d/10_linux.in: Likewise.
29322 * util/grub.d/10_windows.in: Likewise.
29323 * util/grub.d/10_hurd.in: Likewise.
29325 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29327 * util/grub-mkconfig.in: Allow the user to specify the used font
29330 2009-08-08 Pavel Roskin <proski@gnu.org>
29332 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29333 available, xfs.mod needs it now.
29335 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29336 the "g" modifier in sed when the intention is to strip something
29337 once. This fixes comparison of kernels with multiple dashes.
29339 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29340 on it. Add missing space before closing bracket. Fix
29341 misleading formatting.
29343 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29345 * docs/grub.texi: Major overhaul. Remove all sections that are
29346 specific to GRUB Legacy, or mostly composed of Legacy-specific
29349 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29351 * docs/version.texi: New file. Provides version information for
29354 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29356 * docs/grub.texi: Update CVS information to SVN.
29357 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29359 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29361 * util/grub-mkconfig.in: Remove a wrong `fi'.
29363 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29365 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29366 (grub_jfs_uuid): New function.
29367 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29369 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29371 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29373 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29374 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29376 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29378 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29379 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29382 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29383 not just "vmlinu[zx]".
29384 Moved from here ...
29385 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29388 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29389 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29392 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29394 * util/grub.d/10_freebsd.in: Use an absolute device path for
29395 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29397 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29399 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29400 handling of multiple abstraction modules.
29402 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29404 Fix a bug resulting in black screen when loading Linux using a
29407 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29410 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29411 (grub_vbe_bios_getset_dac_palette_width): New function.
29412 (grub_vbe_bios_get_dac_palette_width)
29413 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29414 grub_vbe_bios_getset_dac_palette_width()).
29416 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29417 check for return status.
29418 (grub_vbe_get_video_mode_info): When getting information for a packed
29419 mode (<= 8 bpp), obtain DAC palette width using
29420 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29421 {red,green,blue}_mark_size.
29423 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29425 * commands/search.c (options): Fix help output to match actual code.
29427 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29429 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29432 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29434 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29435 on XFS or ReiserFS.
29437 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29439 Support Apple partition map with sector size different from 512 bytes.
29441 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29442 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29443 and 'apart.partmap_size'.
29445 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29446 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29450 * commands/i386/cpuid.c (options): New variable.
29451 (grub_cmd_cpuid): Return real error.
29452 (GRUB_MOD_INIT(cpuid)): Declare options.
29454 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29456 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29459 2009-07-31 Bean <bean123ch@gmail.com>
29461 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29463 (grub_fshelp_node): Move inode field to the end.
29464 (grub_xfs_data): Remove inode field.
29465 (grub_xfs_inode_block): Calculate inode size using sblock.
29466 (grub_xfs_inode_offset): Likewise.
29467 (grub_xfs_read_inode): Calculate inode size using sblock.
29468 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29469 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29470 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29471 to match inode size.
29472 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29473 not accessible when data is null.
29474 (grub_xfs_open): Likewise.
29476 2009-07-31 Bean <bean123ch@gmail.com>
29478 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29479 Don't change pv->disk if it's already set.
29481 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29482 (grub_raid_register): ... here.
29483 (grub_raid_rescan): Removed.
29485 * include/grub/raid.h (grub_raid_rescan): Removed.
29487 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29488 (fstest): Replace grub_raid_rescan with module fini function followed
29491 * util/grub-probe.c: Add include file <grub/raid.h>.
29492 (probe_raid_level): New function.
29493 (probe): Detect abstraction by walking the disk device, support two
29494 level of abstraction (LVM on RAID) when detecting partition map.
29496 2009-07-31 Pavel Roskin <proski@gnu.org>
29498 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29499 to grub_zalloc(), it was erroneous.
29500 Reported by Bean <bean123ch@gmail.com>
29502 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29504 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29505 embedding zone, not only the first one.
29507 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29509 * term/gfxterm.c (clear_char): New function.
29510 (grub_virtual_screen_setup): Use clear_char.
29511 (scroll_up): Likewise.
29512 (grub_virtual_screen_cls): Likewise.
29514 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29516 * util/deviceiter.c (get_acceleraid_disk_name): New static
29518 (grub_util_iterate_devices): Handle Accelraid devices.
29519 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29521 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29523 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29524 separator for the suggested gfxpayload string (';' collides with the
29525 parser and needs escaping).
29527 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29529 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29530 Clear direction flag before jumping to OS.
29531 (grub_multiboot2_real_boot): Likewise.
29533 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29535 * util/i386/pc/grub-install: Fix parsing of --disk-module
29538 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29540 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29543 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29545 * util/grub-mkconfig.in (package_version): New variable.
29546 Use it do display the version.
29548 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29550 * kern/file.c (grub_file_open): Revert to previous check with
29553 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29555 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29556 from help line. It's out of sync with code.
29558 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29560 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29561 entries on failed boot.
29563 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29565 * kern/file.c (grub_file_open): Fix an error check.
29567 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29569 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29570 partition map couldn't be identified.
29572 2009-07-23 Pavel Roskin <proski@gnu.org>
29574 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29575 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29576 case of little endian words becomes just an optimization.
29577 Respect const modifier.
29578 (md5_final): Use code that doesn't depend on endianness.
29580 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29581 to avoid loss of upper bits if align is unsigned and shorter
29584 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29586 UUID support for UFS
29588 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29589 (grub_ufs_uuid): New function.
29590 (grub_ufs_fs): add .uuid
29592 2009-07-21 Pavel Roskin <proski@gnu.org>
29594 * kern/dl.c (grub_dl_check_header): Make static.
29596 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29598 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29599 add drivemap for Vista. It breaks Windows 7.
29601 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29603 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29606 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29610 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29611 (grub_fstest_SOURCES): Likewise.
29612 (pkglib_MODULES): Add befs.mod.
29613 (befs_mod_SOURCES): New variable.
29614 (befs_mod_CFLAGS): Likewise.
29615 (befs_mod_LDFLAGS): Likewise.
29616 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29617 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29618 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29619 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29620 (grub_setup_SOURCES): Likewise.
29621 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29622 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29623 (grub_setup_SOURCES): Likewise.
29624 * fs/befs.c: New file.
29625 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29626 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29627 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29628 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29629 (B_KEY_INDEX_ALIGN): New declaration.
29630 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29631 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29632 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29633 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29634 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29635 (grub_afs_mount) [MODE_BFS]: Likewise.
29636 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29637 (grub_afs_fs): Use GRUB_AFS_FSNAME
29638 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29639 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29640 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29641 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29643 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29645 * util/getroot.c (find_root_device): Add support for MacOSX.
29646 * util/hostdisk.c: Likewise.
29648 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29650 * font/font.c (find_glyph): Check whether a font is present to avoid
29651 segmentation fault.
29653 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29655 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29657 2009-07-20 Pavel Roskin <proski@gnu.org>
29659 * configure.ac: Trim excessively wordy excuses.
29661 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29663 Add symlink, mtime and label support to AtheFS.
29665 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29666 (grub_afs_iterate_dir): Handle symlinks.
29667 (grub_afs_open): Use grub_afs_read_symlink.
29668 (grub_afs_dir): Likewise.
29670 (grub_afs_label): New function.
29671 (grub_afs_fs): Add grub_afs_label.
29672 (grub_afs_read_symlink): New function.
29674 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29676 Fix AtheFS support.
29678 * fs/afs.c: Fix comments style.
29679 (grub_afs_blockrun): Declare as packed.
29680 (grub_afs_datastream): Likewise.
29681 (grub_afs_bnode): Likewise.
29682 (grub_afs_btree): Likewise.
29683 (grub_afs_sblock): Likewise.
29684 Declare `name' as char.
29685 (grub_afs_inode): Declare as packed.
29686 Change void *vnode to grub_uint32_t unused.
29687 (grub_afs_iterate_dir): Check that key_size is positive.
29688 (grub_afs_mount): Don't read superblock twice.
29689 (grub_afs_dir): Don't free node in case of error,
29690 grub_fshelp_find_file already handles this.
29691 (grub_afs_open): Likewise.
29693 2009-07-19 Pavel Roskin <proski@gnu.org>
29695 * Makefile.in: Remove LIBLZO and enable_lzo.
29696 * conf/i386-pc.rmk: Remove lzo support.
29697 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29698 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29700 * kern/i386/pc/lzo1x.S: Remove.
29701 * kern/i386/pc/startup.S: Remove lzo support.
29702 * util/i386/pc/grub-mkimage.c: Likewise.
29704 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29706 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29707 * fs/xfs.c (grub_xfs_dir): Likewise.
29708 * fs/afs.c (grub_afs_dir): Likewise.
29709 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29710 (grub_iso9660_open): Likewise.
29711 * fs/jfs.c (grub_jfs_open): Likewise.
29712 * fs/ext2.c (grub_ext2_dir): Likewise.
29713 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29714 * script/sh/lexer.c (grub_script_yylex): Likewise.
29716 2009-07-16 Pavel Roskin <proski@gnu.org>
29718 * configure.ac: Never add "-c" to CFLAGS.
29720 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29722 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29723 grub_cv_cc_efiemu should be used.
29725 * configure.ac: Typo fixes.
29727 * kern/mm.c (grub_zalloc): New function.
29728 (grub_debug_zalloc): Likewise.
29729 * include/grub/mm.h: Declare grub_zalloc() and
29730 grub_debug_zalloc().
29731 * util/misc.c (grub_zalloc): New function.
29732 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29733 instead of grub_malloc(), remove unneeded initializations.
29734 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29735 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29736 * commands/parttool.c (grub_cmd_parttool): Likewise.
29737 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29738 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29739 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29740 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29741 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29742 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29743 (grub_cmd_efiemu_pnvram): Likewise.
29744 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29745 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29746 (grub_iso9660_iterate_dir): Likewise.
29747 * fs/jfs.c (grub_jfs_opendir): Likewise.
29748 * fs/ntfs.c (list_file): Likewise.
29749 (grub_ntfs_mount): Likewise.
29750 * kern/disk.c (grub_disk_open): Likewise.
29751 * kern/dl.c (grub_dl_load_core): Likewise.
29752 * kern/elf.c (grub_elf_file): Likewise.
29753 * kern/env.c (grub_env_context_open): Likewise.
29754 (grub_env_set): Likewise.
29755 (grub_env_set_data_slot): Likewise.
29756 * kern/file.c (grub_file_open): Likewise.
29757 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29758 * loader/i386/multiboot.c (grub_module): Likewise.
29759 * loader/xnu.c (grub_xnu_create_key): Likewise.
29760 (grub_xnu_create_value): Likewise.
29761 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29762 (read_config_file): Likewise.
29763 * normal/menu_entry.c (make_screen): Likewise.
29764 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29765 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29766 * script/sh/script.c (grub_script_parse): Likewise.
29767 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29768 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29769 * video/readers/png.c (grub_png_output_byte): Likewise.
29770 (grub_video_reader_png): Likewise.
29772 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29774 Enable all targets that can be built by default
29776 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29777 grub-mkfont and grub-fstest if they can be built
29779 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29781 Fix hang and segmentation fault in grub-emu-usb
29783 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29784 * util/usb.c (grub_libusb_devices): likewise
29785 (grub_libusb_init): rename to ...
29786 (GRUB_MOD_INIT (libusb)):...this
29787 (grub_libusb_fini): rename to ..
29788 (GRUB_MOD_FINI (libusb)):...this
29789 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29790 * include/grub/disk.h (grub_raid_init): removed, it's useless
29791 (grub_raid_fini): likewise
29792 (grub_lvm_init): likewise
29793 (grub_lvm_fini): likewise
29794 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29797 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29801 * Makefile.in (LIBUSB): new macro
29802 * genmk.rb (Utility/print_tail): new method
29803 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29804 (top level): call util.print_tail at the end.
29806 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29808 Make FreeBSD accept zpool.cache
29810 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29811 type is /boot/zfs/zpool.cache
29813 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29817 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29818 correct wrong typedef
29819 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29821 2009-07-15 Pavel Roskin <proski@gnu.org>
29823 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29824 * kern/disk.c (struct grub_disk_cache): Likewise.
29826 * commands/probe.c (options): Typo fix.
29828 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29829 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29831 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29833 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29834 the end of "Error" to make the message more readable.
29836 * boot/i386/pc/boot.S (kernel_segment): Remove.
29837 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29840 * boot/i386/pc/boot.S (boot_version): Remove.
29841 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29844 * include/grub/i386/pc/boot.h: Sort all offsets.
29845 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29846 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29847 * boot/i386/pc/boot.S: Assert location of every offset listed in
29848 include/grub/i386/pc/boot.h.
29850 2009-07-13 Pavel Roskin <proski@gnu.org>
29852 * include/grub/i386/coreboot/machine.h: Rename
29853 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29854 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29855 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29857 * kern/dl.c: Force native word size to suppress warnings when
29858 compiling grub-emu.
29860 * kern/device.c (grub_device_iterate): Change struct part_ent to
29861 hold the name, not a pointer to it. Use one grub_malloc() per
29862 partition, not two. Free partition_name if grub_malloc() fails.
29863 Set ents to NULL only before grub_partition_iterate() is called.
29865 2009-07-11 Bean <bean123ch@gmail.com>
29867 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29870 2009-07-10 Bean <bean123ch@gmail.com>
29871 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29873 * kern/ieee1275/openfw.c (grub_children_iterate)
29874 (grub_devalias_iterate): Fix size evaluation for property or path
29875 strings, which was broken since r2132.
29877 2009-07-07 Pavel Roskin <proski@gnu.org>
29879 * commands/search.c (search_file): Merge into ...
29880 (search_fs): ... this. Accept search type as argument.
29881 (grub_cmd_search): Pass search type to search_fs().
29883 * include/grub/util/console.h: New file.
29884 * util/console.c: Use it instead of grub/machine/console.h.
29885 * util/grub-emu.c: Likewise.
29887 * lib/arg.c (find_long_option): Remove.
29888 (find_long): Add `len' argument, make `s' const char *.
29889 (grub_arg_parse): Parse long options in place, not in a
29892 2009-07-06 Pavel Roskin <proski@gnu.org>
29894 * commands/search.c (search_fs): Fix potential NULL pointer
29897 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29900 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29902 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29905 2009-07-05 Pavel Roskin <proski@gnu.org>
29907 * include/grub/i386/linux.h (struct linux_kernel_params):
29908 Restore padding3, it's still needed.
29910 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29912 * util/osdetect.lua: Likewise.
29914 2009-07-05 Bean <bean123ch@gmail.com>
29916 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29918 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29919 (grub_lua_getenv): Likewise.
29920 (grub_lua_setenv): Likewise.
29921 (save_errno): New function.
29922 (push_result): Likewise.
29923 (grub_lua_enum_device): Likewise.
29924 (grub_lua_enum_file): Likewise.
29925 (grub_lua_file_open): Likewise.
29926 (grub_lua_file_close): Likewise.
29927 (grub_lua_file_seek): Likewise.
29928 (grub_lua_file_read): Likewise.
29929 (grub_lua_file_getline): Likewise.
29930 (grub_lua_file_getsize): Likewise.
29931 (grub_lua_file_getpos): Likewise.
29932 (grub_lua_file_eof): Likewise.
29933 (grub_lua_file_exist): Likewise.
29934 (grub_lua_add_menu): Likewise.
29936 * script/lua/grub_lua.h (isupper): New inline function.
29937 (islower): Likewise.
29938 (ispunct): Likewise.
29939 (isxdigit): Likewise.
29940 (strcspn): Change to normal function.
29941 (strpbkr): New function declaration.
29942 (memchr): Likewise.
29944 * script/lua/grub_main.c (scan_str): New function.
29945 (strcspn): Likewise.
29946 (strpbrk): Likewise.
29947 (memchr): Likewise.
29949 * script/lua/linit.c (lualibs): Enable the string library.
29951 * util/osdetect.lua: New file.
29953 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29955 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29956 `capabilities' member.
29958 2009-07-02 Pavel Roskin <proski@gnu.org>
29960 * genparttoollist.sh: Add missing newline at the end.
29962 2009-07-01 Pavel Roskin <proski@gnu.org>
29964 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29966 * util/hostdisk.c (open_device): Remove `const' from
29967 `sysctl_size', as sysctlbyname() can change it (in this case it
29968 doesn't actually happen).
29970 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29971 using signed long int constants.
29973 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29974 constant to avoid a warning on FreeBSD.
29976 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29979 * Makefile.in: Install include/grub/machine symlink.
29981 * Makefile.in: When installing symlinks, use "cp -fR", which
29982 works on FreeBSD and MacOSX.
29983 From Yves Blusseau <cl7m42e02@sneakemail.com>
29985 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29986 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29988 * util/misc.c: Move grub_reboot() and grub_halt() ...
29989 * util/grub-emu.c: ... here. Make main_env static.
29990 * include/grub/util/misc.h: Remove main_env.
29992 * kern/mm.c: Use correct format to print size_t.
29994 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29995 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
29996 * kern/powerpc/dl.c: Likewise.
29997 * kern/sparc64/dl.c: Likewise.
29998 * kern/x86_64/dl.c: Likewise.
30000 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30002 Fix grub-emu build on sparc64-ieee1275.
30004 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
30005 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
30007 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30009 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
30010 (grub_reboot, grub_halt): New functions.
30012 * util/i386/pc/misc.c: Delete. Update all users.
30013 * util/sparc64/ieee1275/misc.c: Likewise.
30014 * util/powerpc/ieee1275/misc.c: Likewise.
30016 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30018 * conf/i386.rmk (setjmp_mod_SOURCES)
30019 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
30020 * conf/common.rmk (setjmp_mod_SOURCES)
30021 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
30022 to use $(target_cpu).
30023 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
30024 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
30025 * conf/powerpc-ieee1275.rmk: Likewise.
30026 * conf/sparc64-ieee1275.rmk: Likewise.
30028 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
30029 $(target_cpu) for kern/$(target_cpu)/dl.c.
30030 * conf/i386-efi.rmk: Likewise.
30031 * conf/i386-ieee1275.rmk: Likewise.
30032 * conf/x86_64-efi.rmk: Likewise.
30033 * conf/i386-coreboot.rmk: Likewise.
30034 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
30035 $(target_cpu) for kern/$(target_cpu)/dl.c and for
30036 kern/$(target_cpu)/cache.S.
30037 * conf/sparc64-ieee1275.rmk: Likewise.
30039 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30041 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
30042 type to `grub_uint8_t', and adjust `padding9' accordingly.
30044 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30046 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
30048 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
30049 assembly in final jump, using register constraints.
30051 (grub_linux_boot): For text mode, initialize `have_vga' using
30052 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30054 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30055 right before the final jump.
30057 Set `video_mode' to 0x3.
30059 Document initialization of `video_page', `video_mode' and
30062 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30064 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30065 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
30066 and set GRUB_LINUX_FLAG_QUIET appropriately.
30068 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30070 Fix build on Debian / sparc.
30072 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30074 2009-06-28 Pavel Roskin <proski@gnu.org>
30076 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30079 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30081 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30083 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30086 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30090 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30091 file can't be opened. grub_file_open() is already supposed to set
30092 grub_errno / grub_errmsg appropriately.
30093 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30095 2009-06-27 Pavel Roskin <proski@gnu.org>
30096 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30098 * include/grub/dl.h: Include grub/elf.h.
30099 (struct grub_dl): Add symtab field.
30100 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30101 GRUB_MODULES_MACHINE_READONLY.
30102 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30103 of the header for read-only modules.
30104 (grub_dl_unload): Free mod->symtab for read-only modules.
30105 * kern/i386/dl.c: Use mod->symtab.
30106 * kern/powerpc/dl.c: Likewise.
30107 * kern/sparc64/dl.c: Likewise.
30108 * kern/x86_64/dl.c: Likewise.
30110 * conf/i386-qemu.rmk: New file.
30111 * kern/i386/qemu/startup.S: Likewise.
30112 * kern/i386/qemu/mmap.c: Likewise.
30113 * boot/i386/qemu/boot.S: Likewise.
30114 * include/grub/i386/qemu/time.h: Likewise.
30115 * include/grub/i386/qemu/serial.h: Likewise.
30116 * include/grub/i386/qemu/kernel.h: Likewise.
30117 * include/grub/i386/qemu/console.h: Likewise.
30118 * include/grub/i386/qemu/boot.h: Likewise.
30119 * include/grub/i386/qemu/init.h: Likewise.
30120 * include/grub/i386/qemu/machine.h: Likewise.
30121 * include/grub/i386/qemu/loader.h: Likewise.
30122 * include/grub/i386/qemu/memory.h: Likewise.
30124 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30125 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30126 [qemu] (pkglib_IMAGES): Add `boot.img'.
30127 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30128 [qemu] (boot_img_FORMAT): New variables.
30129 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30130 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30131 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30132 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30133 [qemu] (kernel_img_FORMAT): New variables.
30135 * configure.ac: Recognise `i386-qemu'.
30137 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30138 (for no compression).
30139 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30140 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30141 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30142 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30145 2009-06-27 Pavel Roskin <proski@gnu.org>
30147 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30149 * efiemu/prepare32.c: Likewise.
30150 * efiemu/prepare64.c: Likewise.
30152 2009-06-26 Pavel Roskin <proski@gnu.org>
30154 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30155 * include/grub/elf.h: Define symbols without "32" or "64" based
30156 on GRUB_TARGET_WORDSIZE.
30157 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30158 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30160 * efiemu/loadcore64.c: Likewise.
30161 * loader/i386/bsd32.c: Likewise.
30162 * loader/i386/bsd64.c: Likewise.
30163 * kern/dl.c: Remove own ELF definitions.
30164 * util/i386/efi/grub-mkimage.c: Likewise.
30166 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30168 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30169 segment 0x0 unconditionally, because the reference generated by
30170 GAS is an absolute address.
30172 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30174 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30175 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30177 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30179 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30180 indexes. Check for -f explicitly.
30181 (search_file): Improve error message.
30182 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
30184 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30186 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30187 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30189 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30191 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30192 * conf/i386-ieee1275.rmk: Likewise.
30193 * conf/i386-coreboot.rmk: Likewise.
30195 * kern/i386/pc/startup.S (grub_stop): Remove function.
30196 * kern/i386/ieee1275/startup.S: Likewise.
30197 * kern/i386/coreboot/startup.S: Likewise.
30198 * kern/i386/misc.S (grub_stop): New function.
30200 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30202 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30203 * kern/i386/realmode.S (real_to_prot): ... to here.
30205 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30207 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30209 (kernel_elf_SOURCES): Rename to ...
30210 (kernel_img_SOURCES): ... this.
30211 (kernel_elf_HEADERS): Rename to ...
30212 (kernel_img_HEADERS): ... this. Update all users.
30213 (kernel_elf_ASFLAGS): Rename to ...
30214 (kernel_img_ASFLAGS): ... this.
30215 (kernel_elf_CFLAGS): Rename to ...
30216 (kernel_img_CFLAGS): ... this.
30217 (kernel_elf_LDFLAGS): Rename to ...
30218 (kernel_img_LDFLAGS): ... this.
30219 * conf/i386-coreboot.rmk: Likewise.
30220 * conf/powerpc-ieee1275.rmk: Likewise.
30222 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30225 2009-06-21 Pavel Roskin <proski@gnu.org>
30227 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30228 to match nested functions.
30229 * loader/sparc64/ieee1275/linux.c: Likewise.
30231 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30233 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30235 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30236 all i386 platforms.
30238 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30240 Fix asm file handling on ELF, and remove workarounds.
30242 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
30243 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
30244 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30245 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30247 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30249 Load BSD ELF modules
30251 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30252 and loader/i386/bsd64.c
30253 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30254 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30255 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30256 (grub_freebsd_load_elfmodule32): New declaration
30257 (grub_freebsd_load_elfmoduleobj64): Likewise
30258 (grub_freebsd_load_elf_meta32): Likewise
30259 (grub_freebsd_load_elf_meta64): Likewise
30260 (grub_freebsd_add_meta): Likewise
30261 (grub_freebsd_add_meta_module): Likewise
30262 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30263 (grub_freebsd_add_meta_module): Likewise and move module-specific
30264 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30265 (grub_cmd_freebsd): Add elf-kernel specific parts
30266 based on grub_freebsd_add_meta_module
30267 (grub_cmd_freebsd_module): Add type parsing moved from
30268 grub_freebsd_add_meta_module
30269 (grub_cmd_freebsd_module_elf): New function
30270 (cmd_freebsd_module_elf): New variable
30271 (GRUB_MOD_INIT): Register freebsd_module_elf
30272 * loader/i386/bsd32.c: New file
30273 * loader/i386/bsd64.c: Likewise
30274 * loader/i386/bsdXX.c: Likewise
30275 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30276 (grub_elf64_load): Likewise
30277 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30279 (grub_elf64_load_hook_t): Likewise
30281 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
30283 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30285 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30286 don't write a menu entry for recovery mode.
30288 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30290 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30291 after it's no longer needed.
30293 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30295 * include/grub/i386/loader.h (grub_linux_prot_size)
30296 (grub_linux_tmp_addr, grub_linux_real_addr)
30297 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30298 GRUB_MACHINE_PCBIOS.
30299 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30300 common grub_util_info() call to ...
30301 (generate_image): ... here.
30302 Fix use of uninitialized memory, comparison of signed with
30303 unsigned integers and memory leak.
30304 Remove bogus module address message.
30306 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30308 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30310 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30312 2009-06-19 Pavel Roskin <proski@gnu.org>
30314 * configure.ac: Remove stray AC_MSG_CHECKING.
30316 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30318 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30320 2009-06-18 Pavel Roskin <proski@gnu.org>
30322 * conf/common.rmk: Add fs_file.mod.
30323 * disk/fs_file.c: New file.
30324 * include/grub/disk.h (enum grub_disk_dev_id): Add
30325 GRUB_DISK_DEVICE_FILE_ID.
30327 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30329 Fix build with Apple's toolchain. Part 2
30331 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30334 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30336 Fix build with Apple's toolchain. Part 1
30338 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30340 * configure.ac: remove a leftover AC_MSG_RESULT
30341 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30344 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30348 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30349 (decomp_block): initialize ch
30350 use grub_memcpy instead of memcpy
30352 2009-06-17 Pavel Roskin <proski@gnu.org>
30354 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30355 version, use declarations needed to use vga_text as the startup
30358 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30359 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30361 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30362 and grub_at_keyboard_fini(), it's done on module load and
30365 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30367 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30368 file can't be found.
30369 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30371 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30373 Fix newline handling
30375 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30376 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30377 (grub_script_yylex): don't segfault on unterminated script
30378 newline terminates command and variable
30380 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30382 avoid double grub_adjust_range call. Bug reported by David Simner
30384 * kern/disk.c (grub_disk_write): change to raw disk access before
30387 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30389 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30390 spaces, for the benefit of help2man.
30391 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30393 2009-06-16 Pavel Roskin <proski@gnu.org>
30395 * kern/i386/halt.c: Include grub/machine/init.h.
30396 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30398 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30400 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30401 drivemap menuentry.
30403 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30405 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30408 2009-06-16 Pavel Roskin <proski@gnu.org>
30410 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30411 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30412 save %dx, we only need %dl and we never change it.
30413 * boot/i386/pc/cdboot.S: Don't set the root drive.
30414 * boot/i386/pc/pxeboot.S: Likewise.
30415 * include/grub/i386/pc/boot.h: Remove
30416 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30417 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30418 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30419 * kern/i386/pc/init.c (make_install_device): Remove references
30420 to grub_root_drive.
30421 * kern/i386/pc/startup.S: Likewise.
30422 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30424 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30428 * commands/xnu_uuid.c: new file
30429 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30430 (xnu_uuid_mod_SOURCES): new variable
30431 (xnu_uuid_mod_CFLAGS): likewise
30432 (xnu_uuid_mod_LDFLAGS): likewise
30433 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30434 * conf/i386-ieee1275.rmk: likewise
30435 * conf/i386-pc.rmk: likewise
30436 * conf/powerpc-ieee1275.rmk: likewise
30437 * conf/sparc64-ieee1275.rmk: likewise
30438 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30440 2009-06-16 Pavel Roskin <proski@gnu.org>
30442 * configure.ac: Avoid '==' in test command, it's not portable.
30444 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30448 * commands/probe.c: new file
30449 * conf/common.rmk (pkglib_MODULES): add probe.mod
30450 (probe_mod_SOURCES): new variable
30451 (probe_mod_CFLAGS): likewise
30452 (probe_mod_LDFLAGS): likewise
30453 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30454 * conf/i386-ieee1275.rmk: likewise
30455 * conf/i386-pc.rmk: likewise
30456 * conf/powerpc-ieee1275.rmk: likewise
30457 * conf/sparc64-ieee1275.rmk: likewise
30459 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30461 Fix handling of string like \"hello\" and "a
30464 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30465 (grub_script_yylex): fix parsing of quoting, escaping and newline
30467 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30469 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30472 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30474 * util/grub-mkconfig.in: Fix parsing of --output option.
30476 2009-06-12 Pavel Roskin <proski@gnu.org>
30478 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30479 genmk.rb don't need to be generated or installed.
30481 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30483 * commands/i386/pc/drivemap_int13h.S: add more comments
30485 2009-06-11 Pavel Roskin <proski@gnu.org>
30487 * Makefile.in (uninstall): Uninstall manuals.
30489 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30490 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30491 and update-grub_lib in two places.
30492 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30494 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30495 a compiler warning.
30497 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30498 `entry_lo' to fix variable shadowing.
30500 2009-06-11 Christian Franke <franke@computer.org>
30502 * kern/misc.c (__enable_execute_stack): Add missing return type
30503 to prevent gcc warning.
30505 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30507 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30509 2009-06-11 Pavel Roskin <proski@gnu.org>
30511 * Makefile.in: Don't rely on any scripts being executable.
30512 Always use $(SHELL) to run shell scripts.
30514 * configure.ac: Always define ___main if using -nostdlib. This
30515 fixes tests on Cygwin.
30517 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30521 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30522 is in bytes and not in blocks
30524 2009-06-11 Pavel Roskin <proski@gnu.org>
30526 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30529 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30531 * util/grub.d/30_os-prober.in: Fix a comment. Source
30532 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30533 to set the root device. Place drivemap command in the generated
30536 2009-06-11 Pavel Roskin <proski@gnu.org>
30538 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30539 have long been resolved.
30541 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30543 * util/grub.d/10_linux.in: Capitalise "Linux".
30545 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30547 2009-06-11 Pavel Roskin <proski@gnu.org>
30549 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30550 fix a gcc warning and ensure that the function won't ever exit.
30552 * kern/i386/ieee1275/init.c: Add missing prototype for
30553 grub_stop_floppy().
30555 * loader/ieee1275/multiboot2.c [__i386__]: Include
30556 grub/cpu/multiboot.h.
30558 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30559 casts to short - they are not portable and cause warnings. Fix
30560 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30562 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30566 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30568 (grub_get_root_biosnumber_saved): new variable
30569 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30570 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30571 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30572 %dx after the call if necessary
30573 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30574 (boot_mod_SOURCES): remove
30575 (boot_mod_CFLAGS): remove
30576 (boot_mod_LDFLAGS): remove
30577 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30578 (boot_mod_SOURCES): new variable
30579 (boot_mod_CFLAGS): likewise
30580 (boot_mod_LDFLAGS): likewise
30581 * conf/i386-efi.rmk: likewise
30582 * conf/i386-ieee1275.rmk: likewise
30583 * conf/i386-pc.rmk: likewise
30584 * conf/powerpc-ieee1275.rmk: likewise
30585 * conf/sparc64-ieee1275.rmk: likewise
30586 * conf/x86_64-efi.rmk: likewise
30587 * include/grub/i386/pc/biosnum.h: new file
30588 * lib/i386/pc/biosnum.c: likewise
30589 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30590 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30591 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30593 2009-06-10 Pavel Roskin <proski@gnu.org>
30595 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30596 Use separate variables. Read only the file size at the end, but
30597 not the checksum that we don't use.
30599 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30600 Adjust all callers.
30602 * kern/ieee1275/openfw.c: Remove libc includes.
30603 * kern/ieee1275/cmain.c: Likewise.
30604 * include/grub/ieee1275/ieee1275.h: Likewise.
30606 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30609 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30611 * Makefile.in: Remove all trailing whitespace.
30612 * conf/i386-pc.rmk: Likewise.
30613 * conf/powerpc-ieee1275.rmk: Likewise.
30614 * conf/sparc64-ieee1275.rmk: Likewise.
30615 * docs/grub.texi: Likewise.
30616 * docs/texinfo.tex: Likewise.
30617 * disk/fs_uuid.c: Likewise.
30618 * disk/lvm.c: Likewise.
30619 * disk/scsi.c: Likewise.
30620 * disk/ata.c: Likewise.
30621 * disk/ieee1275/ofdisk.c: Likewise.
30622 * disk/i386/pc/biosdisk.c: Likewise.
30623 * disk/host.c: Likewise.
30624 * disk/raid.c: Likewise.
30625 * disk/efi/efidisk.c: Likewise.
30626 * disk/usbms.c: Likewise.
30627 * disk/memdisk.c: Likewise.
30628 * disk/loopback.c: Likewise.
30629 * kern/powerpc/dl.c: Likewise.
30630 * kern/device.c: Likewise.
30631 * kern/dl.c: Likewise.
30632 * kern/sparc64/dl.c: Likewise.
30633 * kern/ieee1275/ieee1275.c: Likewise.
30634 * kern/term.c: Likewise.
30635 * kern/fs.c: Likewise.
30636 * kern/i386/dl.c: Likewise.
30637 * kern/i386/pc/startup.S: Likewise.
30638 * kern/i386/pc/init.c: Likewise.
30639 * kern/i386/pc/mmap.c: Likewise.
30640 * kern/i386/pc/lzo1x.S: Likewise.
30641 * kern/i386/ieee1275/init.c: Likewise.
30642 * kern/i386/realmode.S: Likewise.
30643 * kern/i386/tsc.c: Likewise.
30644 * kern/partition.c: Likewise.
30645 * kern/corecmd.c: Likewise.
30646 * kern/file.c: Likewise.
30647 * kern/efi/efi.c: Likewise.
30648 * kern/efi/init.c: Likewise.
30649 * kern/efi/mm.c: Likewise.
30650 * kern/main.c: Likewise.
30651 * kern/err.c: Likewise.
30652 * kern/env.c: Likewise.
30653 * kern/disk.c: Likewise.
30654 * kern/generic/millisleep.c: Likewise.
30655 * kern/generic/rtc_get_time_ms.c: Likewise.
30656 * kern/misc.c: Likewise.
30657 * kern/parser.c: Likewise.
30658 * genmk.rb: Likewise.
30659 * configure.ac: Likewise.
30660 * boot/i386/pc/diskboot.S: Likewise.
30661 * boot/i386/pc/pxeboot.S: Likewise.
30662 * boot/i386/pc/boot.S: Likewise.
30663 * boot/i386/pc/lnxboot.S: Likewise.
30664 * boot/i386/pc/cdboot.S: Likewise.
30665 * parttool/pcpart.c: Likewise.
30666 * video/readers/tga.c: Likewise.
30667 * video/video.c: Likewise.
30668 * video/bitmap.c: Likewise.
30669 * lib/envblk.c: Likewise.
30670 * lib/i386/setjmp.S: Likewise.
30671 * fs/xfs.c: Likewise.
30672 * fs/afs.c: Likewise.
30673 * fs/fat.c: Likewise.
30674 * fs/ntfs.c: Likewise.
30675 * fs/udf.c: Likewise.
30676 * fs/affs.c: Likewise.
30677 * fs/iso9660.c: Likewise.
30678 * fs/hfs.c: Likewise.
30679 * fs/fshelp.c: Likewise.
30680 * fs/ext2.c: Likewise.
30681 * fs/jfs.c: Likewise.
30682 * fs/reiserfs.c: Likewise.
30683 * fs/hfsplus.c: Likewise.
30684 * fs/minix.c: Likewise.
30685 * fs/cpio.c: Likewise.
30686 * fs/sfs.c: Likewise.
30687 * fs/ufs.c: Likewise.
30688 * efiemu/prepare.c: Likewise.
30689 * efiemu/loadcore_common.c: Likewise.
30690 * efiemu/runtime/efiemu.sh: Likewise.
30691 * efiemu/runtime/efiemu.S: Likewise.
30692 * efiemu/runtime/efiemu.c: Likewise.
30693 * efiemu/pnvram.c: Likewise.
30694 * efiemu/main.c: Likewise.
30695 * efiemu/i386/pc/cfgtables.c: Likewise.
30696 * efiemu/i386/loadcore64.c: Likewise.
30697 * efiemu/i386/loadcore32.c: Likewise.
30698 * efiemu/loadcore.c: Likewise.
30699 * efiemu/symbols.c: Likewise.
30700 * efiemu/mm.c: Likewise.
30701 * include/grub/autoefi.h: Likewise.
30702 * include/grub/datetime.h: Likewise.
30703 * include/grub/term.h: Likewise.
30704 * include/grub/hfs.h: Likewise.
30705 * include/grub/lvm.h: Likewise.
30706 * include/grub/i386/tsc.h: Likewise.
30707 * include/grub/i386/linux.h: Likewise.
30708 * include/grub/i386/xnu.h: Likewise.
30709 * include/grub/i386/efiemu.h: Likewise.
30710 * include/grub/i386/pc/biosdisk.h: Likewise.
30711 * include/grub/i386/pc/memory.h: Likewise.
30712 * include/grub/i386/pc/vbe.h: Likewise.
30713 * include/grub/parttool.h: Likewise.
30714 * include/grub/video.h: Likewise.
30715 * include/grub/memory.h: Likewise.
30716 * include/grub/fs.h: Likewise.
30717 * include/grub/partition.h: Likewise.
30718 * include/grub/xnu.h: Likewise.
30719 * include/grub/efi/api.h: Likewise.
30720 * include/grub/efi/pe32.h: Likewise.
30721 * include/grub/efi/memory.h: Likewise.
30722 * include/grub/multiboot.h: Likewise.
30723 * include/grub/usbdesc.h: Likewise.
30724 * include/grub/multiboot2.h: Likewise.
30725 * include/grub/acpi.h: Likewise.
30726 * include/grub/efiemu/efiemu.h: Likewise.
30727 * include/grub/disk.h: Likewise.
30728 * include/grub/ieee1275/ieee1275.h: Likewise.
30729 * include/grub/net.h: Likewise.
30730 * include/grub/machoload.h: Likewise.
30731 * include/grub/macho.h: Likewise.
30732 * include/multiboot.h: Likewise.
30733 * genmoddep.awk: Likewise.
30734 * normal/main.c: Likewise.
30735 * normal/menu_entry.c: Likewise.
30736 * normal/menu_viewer.c: Likewise.
30737 * normal/completion.c: Likewise.
30738 * normal/cmdline.c: Likewise.
30739 * normal/misc.c: Likewise.
30740 * normal/datetime.c: Likewise.
30741 * bus/usb/usbtrans.c: Likewise.
30742 * bus/usb/ohci.c: Likewise.
30743 * bus/usb/uhci.c: Likewise.
30744 * bus/usb/usb.c: Likewise.
30745 * mmap/efi/mmap.c: Likewise.
30746 * mmap/i386/pc/mmap_helper.S: Likewise.
30747 * mmap/i386/pc/mmap.c: Likewise.
30748 * mmap/i386/mmap.c: Likewise.
30749 * mmap/i386/uppermem.c: Likewise.
30750 * mmap/mmap.c: Likewise.
30751 * commands/acpi.c: Likewise.
30752 * commands/echo.c: Likewise.
30753 * commands/blocklist.c: Likewise.
30754 * commands/loadenv.c: Likewise.
30755 * commands/usbtest.c: Likewise.
30756 * commands/boot.c: Likewise.
30757 * commands/parttool.c: Likewise.
30758 * commands/search.c: Likewise.
30759 * commands/cat.c: Likewise.
30760 * commands/i386/pc/play.c: Likewise.
30761 * commands/i386/pc/drivemap.c: Likewise.
30762 * commands/i386/pc/vbeinfo.c: Likewise.
30763 * commands/i386/pc/acpi.c: Likewise.
30764 * commands/i386/pc/vbetest.c: Likewise.
30765 * commands/ls.c: Likewise.
30766 * commands/cmp.c: Likewise.
30767 * commands/test.c: Likewise.
30768 * commands/efi/acpi.c: Likewise.
30769 * commands/gptsync.c: Likewise.
30770 * commands/help.c: Likewise.
30771 * partmap/amiga.c: Likewise.
30772 * partmap/apple.c: Likewise.
30773 * partmap/acorn.c: Likewise.
30774 * partmap/pc.c: Likewise.
30775 * partmap/sun.c: Likewise.
30776 * partmap/gpt.c: Likewise.
30777 * script/sh/lexer.c: Likewise.
30778 * script/sh/function.c: Likewise.
30779 * font/font.c: Likewise.
30780 * font/font_cmd.c: Likewise.
30781 * loader/powerpc/ieee1275/linux.c: Likewise.
30782 * loader/efi/chainloader.c: Likewise.
30783 * loader/multiboot_loader.c: Likewise.
30784 * loader/macho.c: Likewise.
30785 * loader/i386/multiboot.c: Likewise.
30786 * loader/i386/linux.c: Likewise.
30787 * loader/i386/pc/linux.c: Likewise.
30788 * loader/i386/pc/multiboot2.c: Likewise.
30789 * loader/i386/pc/chainloader.c: Likewise.
30790 * loader/i386/pc/xnu.c: Likewise.
30791 * loader/i386/bsd_trampoline.S: Likewise.
30792 * loader/i386/efi/linux.c: Likewise.
30793 * loader/i386/multiboot_elfxx.c: Likewise.
30794 * loader/i386/bsd_helper.S: Likewise.
30795 * loader/i386/bsd.c: Likewise.
30796 * loader/i386/linux_trampoline.S: Likewise.
30797 * loader/i386/xnu_helper.S: Likewise.
30798 * loader/i386/xnu.c: Likewise.
30799 * loader/i386/bsd_pagetable.c: Likewise.
30800 * loader/i386/multiboot_helper.S: Likewise.
30801 * loader/xnu.c: Likewise.
30802 * loader/xnu_resume.c: Likewise.
30803 * io/gzio.c: Likewise.
30804 * term/efi/console.c: Likewise.
30805 * term/terminfo.c: Likewise.
30806 * term/ieee1275/ofconsole.c: Likewise.
30807 * term/i386/pc/serial.c: Likewise.
30808 * term/i386/pc/vesafb.c: Likewise.
30809 * term/i386/pc/vga.c: Likewise.
30810 * term/usb_keyboard.c: Likewise.
30811 * term/gfxterm.c: Likewise.
30812 * aclocal.m4: Likewise.
30813 * util/lvm.c: Likewise.
30814 * util/grub.d/30_os-prober.in: Likewise.
30815 * util/grub.d/10_hurd.in: Likewise.
30816 * util/console.c: Likewise.
30817 * util/grub-macho2img.c: Likewise.
30818 * util/grub-probe.c: Likewise.
30819 * util/hostfs.c: Likewise.
30820 * util/i386/pc/grub-mkimage.c: Likewise.
30821 * util/i386/pc/grub-setup.c: Likewise.
30822 * util/i386/efi/grub-mkimage.c: Likewise.
30823 * util/grub-mkconfig.in: Likewise.
30824 * util/raid.c: Likewise.
30825 * util/resolve.c: Likewise.
30826 * util/grub-mkdevicemap.c: Likewise.
30827 * util/grub-emu.c: Likewise.
30828 * util/getroot.c: Likewise.
30829 * util/hostdisk.c: Likewise.
30830 * util/usb.c: Likewise.
30831 * util/grub-editenv.c: Likewise.
30832 * util/misc.c: Likewise.
30834 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30836 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30837 `genparttoollist.sh'.
30838 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30839 Add `*.sh' to the list find searches for and change `mdate.sh'
30842 2009-06-10 Pavel Roskin <proski@gnu.org>
30844 * include/grub/multiboot2.h: Provide compatibility defines for
30846 * include/multiboot2.h: Include stdint.h only if needed, using
30848 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30850 * loader/ieee1275/multiboot2.c: Likewise.
30851 * loader/multiboot2.c: Likewise.
30852 * loader/multiboot_loader.c: Likewise.
30854 * configure.ac: Use -nostdlib when probing for the target. It
30855 should not be required to have libc for the target.
30857 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30858 they fail without libc headers for the target.
30859 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30861 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30862 preprocessor conditionals.
30864 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30865 build system doesn't need to be aware of the tar.c internals.
30867 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30869 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30871 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30873 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30874 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30876 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30878 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30879 aren't available if ata.mod gets used.
30881 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30883 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30884 initialising controller.
30885 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30887 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30889 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30890 to choose between ata and biosdisk module on i386-pc.
30892 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30894 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30895 Subclass and Programming Interface fields in terms of the 3 byte
30896 Class Code register.
30897 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30899 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30900 interface is OHCI. Add grub_dprintf for symmetry with
30902 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30903 interface is UHCI. Add interf variable for programming
30904 interface. Print interface with class/subclass.
30906 * bus/usb/ohci.c: Set interf with correct field.
30908 * bus/usb/uhci.c: Remove unneeded doubled lines.
30909 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30910 Remove whitespace inside comment.
30912 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30914 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30915 as fallback an equivalent option without depth.
30917 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30919 Not fail if unable to retrieve C/H/S on LBA disks
30921 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30922 if unable to retrieve C/H/S on LBA disks
30924 2009-06-08 Pavel Roskin <proski@gnu.org>
30926 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30929 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30931 * Makefile.in (uninstall): Remove all $lib_DATA files.
30933 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30935 Bugfix: install on partitionless device
30937 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30940 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30942 * Makefile.in (uninstall): Remove all $include_DATA files.
30944 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30946 * commands/true.c: New file. Implement the true and false commands.
30947 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30948 (true_mod_SOURCES): New variable.
30949 (true_mod_CFLAGS): Likewise.
30950 (true_mod_LDFLAGS): Likewise.
30952 2009-06-05 Colin D Bennett <colin@gibibit.com>
30954 Optimized font character lookup using binary search instead of linear
30955 search. Fonts now are required to have the character index ordered by
30958 * font/font.c (load_font_index): Verify that fonts have ordered
30960 (find_glyph): Use binary search instead of linear search to find a
30961 character in a font.
30963 2009-06-05 Michael Scherer <misc@mandriva.org>
30965 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30966 uses case sensitive btree.
30967 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30968 only for case insensitive filesystems.
30970 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30972 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30973 * conf/common.rmk (search_mod_CFLAGS): likewise
30975 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30977 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30978 compensate a compiler bug
30980 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30982 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30985 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30987 Definitions for creating asm symbols with Apple's CC
30989 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30990 [APPLE_CC] (VARIABLE): likewise
30992 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30994 Disable lnxboot.img when compiled
30997 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
30998 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
30999 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
31000 [! APPLE_CC] (CODE_LENG): skip
31001 [! APPLE_CC] (setup_sects): likewise
31002 [! APPLE_CC]: skip filling
31004 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31006 Address in trampolines based on 32-bit registers when compiled
31009 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
31011 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
31013 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31015 Avoid aliases when compiling with Apple's CC for PCBIOS machine
31017 * kern/misc.c [APPLE_CC] (memcpy): new function
31018 [APPLE_CC] (memmove): likewise
31019 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
31020 (memcpy): define alias conditionally on !APPLE_CC
31023 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
31024 APPLE_CC are defined
31025 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
31026 (grub_assert_fail): make prototype conditional
31028 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31030 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
31032 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
31034 (CLEANFILES): add grub-macho2img
31035 (grub_macho2img_SOURCES): new variable
31036 * kern/i386/pc/startup.S (bss_start): new variable
31037 (bss_end): likewise
31038 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
31039 * util/grub-macho2img.c: new file
31041 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31043 Use objconv when compiling with Apple's CC
31045 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
31046 (efiemu64.o): likewise
31047 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
31048 when compiling with Apple's CC
31049 (efiemu64_s.o): likewise
31050 * configure.ac: check for objconv when compiling with Apple's CC
31051 * genmk.rb: use objconv for modules when compiled with Apple's CC
31053 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31055 Define segment as well as section when compiling with
31058 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31059 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31060 (efiemu_convert_pointer): likewise
31061 (efiemu_set_virtual_address_map): likewise
31062 (efiemu_convert_pointer): likewise
31063 (efiemu_getcrc32): likewise
31064 (init_crc32_table): likewise
31065 (reflect): likewise
31066 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31067 (GRUB_MOD_DEP): likewise
31069 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31071 Allow a compilation without -mcmodel=large
31073 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31074 when compiled without -mcmodel=large
31075 (filter_memory_map): remove memory post 4 GiB when compiled
31076 without -mcmodel=large
31077 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
31078 TARGET_CFLAGS when -mcmodel=large isn't supported
31080 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31082 Remove nested functions in efiemu core
31084 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
31086 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31088 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31090 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31092 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31094 (grub_cpu_is_tsc_supported): likewise
31095 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
31097 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31099 Absolute addressing through constant with Apple's cc
31101 * kern/i386/pc/startup.S: Define necessary constants
31102 and address through it when using ABS with Apple's CC
31103 * boot/i386/pc/diskboot.S: likewise
31104 * boot/i386/pc/boot.S: likewise
31105 * boot/i386/pc/lnxboot.S: likewise
31106 * boot/i386/pc/cdboot.S: likewise
31107 * mmap/i386/pc/mmap_helper.S: likewise
31108 * commands/i386/pc/drivemap_int13h.S: likewise
31110 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31112 Check if compiler is apple cc
31114 * Makefile.in (ASFLAGS): new variable
31115 (TARGET_ASFLAGS): likewise
31116 (TARGET_MODULE_FORMAT): likewise
31117 (TARGET_APPLE_CC): likewise
31118 (OBJCONV): likewise
31119 (TARGET_IMG_CFLAGS): likewise
31120 (TARGET_CPPFLAGS): add includedir
31121 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31122 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31123 Check for linker script only if compiler isn't Apple's CC
31124 (TARGET_MODULE_FORMAT): set
31125 (TARGET_APPLE_CC): likewise
31126 (TARGET_ASFLAGS): likewise
31127 (ASFLAGS): likewise
31128 Check for objcopy only if compiler isn't Apple's CC
31129 Check for BSS symbol only if compiler isn't Apple's CC
31130 * genmk.rb: adapt nm options if we use Apple's utils
31131 * aclocal.m4 (grub_apple_cc): new test
31132 (grub_apple_target_cc): likewise
31134 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31136 Simplify sed expressions and improve awk
31138 * Makefile.in (install-local): simplify sed expression
31139 * gencmdlist.sh: likewise
31140 * genmoddep.awk: avoid adding module as a dependency of itself
31142 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31144 Add missing start symbols
31146 * boot/i386/pc/boot.S: add start
31147 * boot/i386/pc/pxeboot.S: likewise
31149 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31151 Fix wrong assumptions with grub-mkimage on EFI
31153 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
31154 (relocate_addresses): consider both r_addend and value at offset
31155 (make_mods_section): zerofill modinfo and header
31156 (convert_elf): write prefix here
31158 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31160 Use .asciz instead of .string
31162 * i386/pc/diskboot.S: use .asciz instead of .string
31163 * i386/pc/boot.S: likewise
31164 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31165 (GRUB_MOD_NAME): likewise
31167 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31171 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31172 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31173 (grub_video_setup): remove
31174 (grub_video_set_mode): new prototype
31175 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31177 (linux_vesafb_res): compile only on PCBIOS
31178 (grub_linux_boot): support gfxpayload
31179 * loader/i386/pc/xnu.c (video_hook): new function
31180 (grub_xnu_set_video): support gfxpayload
31181 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31182 (DEFAULT_VIDEO_HEIGHT): likewise
31183 (DEFAULT_VIDEO_FLAGS): likewise
31184 (DEFAULT_VIDEO_MODE): new definition
31185 (video_hook): new function
31186 (grub_gfxterm_init): use grub_video_set_mode
31187 * util/grub.d/30_os-prober.in: remove explicit modesetting before
31189 * video/video.c (grub_video_setup): removed
31190 (grub_video_set_mode): new function based on grub_gfxterm_init and
31193 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31195 Avoid calling biosdisk in drivemap
31197 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31198 (revparse_biosdisk): likewise
31199 (list_mappings): derive name from id directly
31200 (grub_cmd_drivemap): use tryparse_diskstring
31202 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31206 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31207 (grub_lexer_param): add tokenonhold
31208 (grub_script_create_cmdline): remove cmdline. All callers updated
31209 (grub_script_function_create): make functionname
31210 grub_script_arg. All callers updated
31211 (grub_script_execute_argument_to_string): new prototype
31212 * kern/parser.c (state_transitions): reorder
31213 (grub_parser_cmdline_state): fix a bug and make more compact
31214 * script/sh/execute.c (grub_script_execute_argument_to_string):
31216 (grub_script_execute_cmdline): use new format
31217 * script/sh/function.c (grub_script_function_create): make functionname
31218 grub_script_arg. All callers updated
31219 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
31220 (grub_script_yylex): remove
31221 (grub_script_yylex2): renamed to ...
31222 (grub_script_yylex): ...renamed
31223 parse the expressions like a${b}c
31224 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31225 (GRUB_PARSER_TOKEN_VAR): remove
31226 (GRUB_PARSER_TOKEN_NAME): likewise
31227 ("if"): declare as typeless
31228 ("while"): likewise
31229 ("function"): likewise
31234 (argument): likewise
31235 (script): accept empty scripts and make exit on error
31236 (arguments): use GRUB_PARSER_TOKEN_ARG
31237 (function): likewise
31238 (command): move error handling to script
31239 (menuentry): move grub_script_lexer_ref before
31240 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
31241 argument. All callers updated
31243 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31245 Prevent GRUB from probing floppies during boot.
31247 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31248 * commands/search.c (options): Add --no-floppy.
31249 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31250 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31251 --no-floppy when searching for UUIDs.
31253 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31255 Simplify the code duplication in commands/search.c.
31257 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31258 (search_fs): ... this. Update all users.
31260 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
31262 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31264 2009-05-28 Pavel Roskin <proski@gnu.org>
31266 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31267 Remove the original symlink explicitly.
31269 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31270 just one slash. That's how grub_fshelp_find_file() does it.
31272 2009-05-26 Pavel Roskin <proski@gnu.org>
31274 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31277 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31280 2009-05-25 Christian Franke <franke@computer.org>
31282 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31284 (grub_atapi_identify): Add wait after drive select.
31285 (grub_ata_identify): Do more strict status register check before
31286 calling grub_atapi_identify (). Suppress error message if status
31287 register is 0x00 after command failure. Add status register
31288 check after PIO read to avoid bogus identify due to stuck DRQ.
31289 Thanks to Pavel Roskin for testing.
31290 (grub_device_initialize): Remove unsafe status register check.
31291 Thanks to 'phcoder' for problem report and patch.
31292 Prevent sign extension in debug message.
31294 2009-05-23 Colin D Bennett <colin@gibibit.com>
31296 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31297 definition file, and functions defined in `normal/menu.c' have had
31298 their prototypes moved to `include/grub/menu.h' for consistency.
31300 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31302 (grub_menu_get_entry): Likewise.
31303 (grub_menu_get_timeout): Likewise.
31304 (grub_menu_set_timeout): Likewise.
31305 (grub_menu_execute_entry): Likewise.
31306 (grub_menu_execute_with_fallback): Likewise.
31307 (grub_menu_entry_run): Likewise.
31309 * include/grub/normal.h: Re-ordered and grouped function
31310 prototypes by file that the function is defined in.
31311 (grub_menu_execute_callback): Removed; moved to menu.h.
31312 (grub_menu_get_entry): Likewise.
31313 (grub_menu_get_timeout): Likewise.
31314 (grub_menu_set_timeout): Likewise.
31315 (grub_menu_execute_entry): Likewise.
31316 (grub_menu_execute_with_fallback): Likewise.
31317 (grub_menu_entry_run): Likewise.
31318 (grub_menu_addentry): Renamed from this ...
31319 (grub_normal_add_menu_entry): ... to this.
31321 * normal/main.c (grub_menu_addentry): Renamed from this ...
31322 (grub_normal_add_menu_entry): ... to this.
31324 * script/sh/execute.c (grub_script_execute_menuentry): Update
31325 reference to renamed grub_menu_addentry function.
31327 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31329 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31331 2009-05-22 Pavel Roskin <proski@gnu.org>
31333 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31334 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31335 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31336 compiling for the i386 targets, but not for the utilities.
31338 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31340 (grub_root_drive): Likewise.
31341 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31343 (grub_root_drive): Change size to byte.
31344 (grub_start_addr): Remove.
31345 (grub_end_addr): Likewise.
31346 (grub_apm_bios_info): Likewise.
31348 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31350 * normal/i386: Remove.
31351 * normal/powerpc: Likewise.
31352 * normal/sparc64: Likewise.
31353 * normal/x86_64: Likewise.
31355 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31357 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31358 * loader/i386/linux_trampoline.S: Fix indentation
31359 * loader/i386/xnu_helper.S: Likewise
31361 2009-05-18 Colin D Bennett <colin@gibibit.com>
31363 Display error messages when parsing a Lua statement fails.
31364 Previously, executing a syntactically invalid statement like
31365 ")foo" or "bar;" would silently fail.
31367 * script/lua/grub_main.c (handle_lua_error): New function.
31368 (grub_lua_parse_line): Improved reporting of Lua parser and
31371 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31373 Remove -Werror which causes build to fail on some systems
31375 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31376 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31377 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31379 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31381 trampoline for linux on 64-bit platform
31383 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31384 loader/i386/efi/linux_trampoline.S
31385 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31387 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31389 * loader/i386/linux_trampoline.S: moved here
31390 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31392 (jumpvector): removed
31393 (grub_linux_trampoline_start): new declaration
31394 (grub_linux_trampoline_end): likewise
31395 (grub_linux_boot): use trampoline when on 64-bit platform
31396 * loader/i386/linux.c: likewise
31398 2009-05-16 Pavel Roskin <proski@gnu.org>
31400 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31401 const to avoid a warning.
31402 (grub_lua_setenv): Likewise.
31403 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31404 lmsg to fix a warning.
31406 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31408 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31409 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31410 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31411 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31412 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31413 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31414 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31415 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31417 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31419 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31421 2009-05-16 Bean <bean123ch@gmail.com>
31423 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31424 (lua_mod_SOURCES): New variable.
31425 (lua_mod_CFLAGS): Likewise.
31426 (lua_mod_LDFLAGS): Likewise.
31428 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31429 (setjmp_mod_SOURCES): New variable.
31430 (setjmp_mod_CFLAGS): Likewise.
31431 (setjmp_LDFLAGS): Likewise.
31433 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31434 (setjmp_mod_SOURCES): New variable.
31435 (setjmp_mod_CFLAGS): Likewise.
31436 (setjmp_LDFLAGS): Likewise.
31438 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31439 (setjmp_mod_SOURCES): New variable.
31440 (setjmp_mod_CFLAGS): Likewise.
31441 (setjmp_LDFLAGS): Likewise.
31443 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31444 (setjmp_mod_SOURCES): New variable.
31445 (setjmp_mod_CFLAGS): Likewise.
31446 (setjmp_LDFLAGS): Likewise.
31448 * normal/i386/setjmp.S: Moved from here ...
31449 * lib/i386/setjmp.S: ... Moved here
31450 * normal/x86_64/setjmp.S: Moved from here ...
31451 * lib/x86_64/setjmp.S: ... Moved here
31452 * normal/powerpc/setjmp.S: Moved from here ...
31453 * lib/powerpc/setjmp.S: ... Moved here
31454 * normal/sparc64/setjmp.S: Moved from here ...
31455 * lib/sparc64/setjmp.S: ... Moved here
31457 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31458 returns_twice in mingw.
31460 * script/lua/grub_lib.c: New file.
31461 * script/lua/grub_lib.h: Likewise.
31462 * script/lua/grub_lua.h: Likewise.
31463 * script/lua/grub_main.c: Likewise.
31464 * script/lua/lapi.c: Likewise.
31465 * script/lua/lapi.h: Likewise.
31466 * script/lua/lauxlib.c: Likewise.
31467 * script/lua/lauxlib.h: Likewise.
31468 * script/lua/lbaselib.c: Likewise.
31469 * script/lua/lcode.c: Likewise.
31470 * script/lua/lcode.h: Likewise.
31471 * script/lua/ldblib.c: Likewise.
31472 * script/lua/ldebug.c: Likewise.
31473 * script/lua/ldebug.h: Likewise.
31474 * script/lua/ldo.c: Likewise.
31475 * script/lua/ldo.h: Likewise.
31476 * script/lua/ldump.c: Likewise.
31477 * script/lua/lfunc.c: Likewise.
31478 * script/lua/lfunc.h: Likewise.
31479 * script/lua/lgc.c: Likewise.
31480 * script/lua/lgc.h: Likewise.
31481 * script/lua/linit.c: Likewise.
31482 * script/lua/liolib.c: Likewise.
31483 * script/lua/llex.c: Likewise.
31484 * script/lua/llex.h: Likewise.
31485 * script/lua/llimits.h: Likewise.
31486 * script/lua/lmathlib.c: Likewise.
31487 * script/lua/lmem.c: Likewise.
31488 * script/lua/lmem.h: Likewise.
31489 * script/lua/loadlib.c: Likewise.
31490 * script/lua/lobject.c: Likewise.
31491 * script/lua/lobject.h: Likewise.
31492 * script/lua/lopcodes.c: Likewise.
31493 * script/lua/lopcodes.h: Likewise.
31494 * script/lua/loslib.c: Likewise.
31495 * script/lua/lparser.c: Likewise.
31496 * script/lua/lparser.h: Likewise.
31497 * script/lua/lstate.c: Likewise.
31498 * script/lua/lstate.h: Likewise.
31499 * script/lua/lstring.c: Likewise.
31500 * script/lua/lstring.h: Likewise.
31501 * script/lua/lstrlib.c: Likewise.
31502 * script/lua/ltable.c: Likewise.
31503 * script/lua/ltable.h: Likewise.
31504 * script/lua/ltablib.c: Likewise.
31505 * script/lua/ltm.c: Likewise.
31506 * script/lua/ltm.h: Likewise.
31507 * script/lua/lua.h: Likewise.
31508 * script/lua/luaconf.h: Likewise.
31509 * script/lua/lualib.h: Likewise.
31510 * script/lua/lundump.c: Likewise.
31511 * script/lua/lundump.h: Likewise.
31512 * script/lua/lvm.c: Likewise.
31513 * script/lua/lvm.h: Likewise.
31514 * script/lua/lzio.c: Likewise.
31515 * script/lua/lzio.h: Likewise.
31517 2009-05-16 Bean <bean123ch@gmail.com>
31519 * include/grub/kernel.h (grub_module_header_types): Add type
31522 * kern/main.c (grub_load_config): New function.
31523 (grub_main): Call grub_load_config to read boot config.
31525 * grub-mkimage (generate_image): New parameter config_path.
31526 (options): New option --config.
31527 (main): Parse --config option, and pass it to generate_image.
31529 2009-05-14 Christian Franke <franke@computer.org>
31531 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31532 This fixes build on Cygwin.
31534 2009-05-14 Pavel Roskin <proski@gnu.org>
31536 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31537 jump. This saves two bytes, so the typical case of 2 swapped
31538 drives would fit 32 bytes.
31540 2009-05-13 Pavel Roskin <proski@gnu.org>
31542 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31543 grub_uint32_t to avoid a warning.
31545 * loader/i386/linux.c (allocate_pages): When assigning
31546 real_mode_mem, cast through grub_size_t to fix a warning. The
31547 code already makes sure that the value would fit a pointer.
31548 (grub_linux_setup_video): Cast render_target->data to
31549 grub_size_t to fix a warning.
31551 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31553 * commands/i386/pc/drivemap.c: New file - implement drivemap
31555 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31556 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31558 2009-05-13 Pavel Roskin <proski@gnu.org>
31560 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31561 embedding_area_exists.
31563 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31565 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31566 it easier to understand / work with.
31567 Improve warning messages for cases where there's no embedding area,
31568 or when it is too small (or core.img too large).
31570 2009-05-13 Pavel Roskin <proski@gnu.org>
31572 * loader/i386/pc/multiboot2.c: Add necessary includes for
31573 grub_multiboot2_real_boot().
31575 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31576 PX record is always little-endian. We only need the lower 2
31579 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31580 facilitate code reuse.
31581 (grub_cpio_mount): Use "struct head", not a char buffer. This
31582 fixes a warning reported by gcc 4.4.
31584 * kernel/disk.c (grub_disk_read): Use void pointer for the
31586 (grub_disk_write): Use const void pointer for the buffer.
31587 Adjust all callers. Remove unnecessary casts.
31589 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31591 * util/i386/pc/grub-install.in: Update copyright year.
31593 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31597 * commands/gptsync.c: new file
31598 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31599 (gptsync_mod_SOURCES): new variable
31600 (gptsync_mod_CFLAGS): likewise
31601 (gptsync_mod_LDFLAGS): likewise
31602 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31604 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31605 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31606 * conf/i386-ieee1275.rmk: likewise
31607 * conf/i386-pc.rmk: likewise
31608 * conf/powerpc-ieee1275.rmk: likewise
31610 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31614 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31615 (grub_dl_ref): likewise
31617 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31619 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31620 split in two functions (one for msdos and one for gpt).
31622 2009-05-08 Pavel Roskin <proski@gnu.org>
31624 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31627 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31628 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31629 Initialize them with -1. Add sanity check for bad1. Eliminate
31632 2009-05-08 David S. Miller <davem@davemloft.net>
31634 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31636 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31638 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31641 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31643 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31644 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31646 2009-05-05 David S. Miller <davem@davemloft.net>
31648 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31650 2009-05-05 Pavel Roskin <proski@gnu.org>
31652 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31653 of grub_dl_ref() and grub_dl_unref().
31654 * commands/parttool.c: Remove preprocessor conditionals around
31655 grub_dl_ref() and grub_dl_unref().
31656 * fs/affs.c: Likewise.
31657 * fs/afs.c: Likewise.
31658 * fs/cpio.c: Likewise.
31659 * fs/ext2.c: Likewise.
31660 * fs/fat.c: Likewise.
31661 * fs/hfs.c: Likewise.
31662 * fs/hfsplus.c: Likewise.
31663 * fs/iso9660.c: Likewise.
31664 * fs/jfs.c: Likewise.
31665 * fs/minix.c: Likewise.
31666 * fs/ntfs.c: Likewise.
31667 * fs/reiserfs.c: Likewise.
31668 * fs/sfs.c: Likewise.
31669 * fs/udf.c: Likewise.
31670 * fs/ufs.c: Likewise.
31671 * fs/xfs.c: Likewise.
31672 * include/grub/dl.h: Likewise.
31673 * loader/xnu.c: Likewise.
31675 2009-05-04 Pavel Roskin <proski@gnu.org>
31677 * commands/acpi.c: Remove unused variable my_mod.
31678 * partmap/amiga.c: Likewise.
31679 * partmap/apple.c: Likewise.
31680 * partmap/gpt.c: Likewise.
31681 * partmap/pc.c: Likewise.
31682 * partmap/sun.c: Likewise.
31683 * term/gfxterm.c: Likewise.
31684 * term/i386/pc/vesafb.c: Likewise.
31685 * term/i386/pc/vga.c: Likewise.
31687 2009-05-04 David S. Miller <davem@davemloft.net>
31689 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31690 pointer args to grub_ieee1275_get_property().
31692 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31694 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31695 devices, and do not traverse down under controller nodes.
31697 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31698 (grub_ofdisk_open): Use it to un-escape "," characters.
31699 * kern/disk.c (find_part_sep): New.
31700 (grub_disk_open): Use it to find the first non-escaped ','
31701 character in the disk name.
31702 * util/ieee1275/devicemap.c (escape_of_path): New.
31703 (grub_util_emit_devicemap_entry): Use it.
31704 * util/sparc64/ieee1275/grub-install.in: Update script to
31705 strip partition specifiers properly by not triggering on
31706 '\' escaped ',' characters.
31708 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31710 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31712 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31714 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31715 on documentation from Wikipedia).
31717 2009-05-04 Pavel Roskin <proski@gnu.org>
31719 * disk/ata.c: Spelling fixes.
31720 * disk/raid.c: Likewise.
31721 * disk/usbms.c: Likewise.
31722 * disk/dmraid_nvidia.c: Likewise.
31723 * kern/ieee1275/openfw.c: Likewise.
31724 * kern/ieee1275/init.c: Likewise.
31725 * kern/ieee1275/cmain.c: Likewise.
31726 * boot/i386/pc/cdboot.S: Likewise.
31727 * video/readers/png.c: Likewise.
31728 * video/i386/pc/vbe.c: Likewise.
31729 * fs/udf.c: Likewise.
31730 * fs/hfs.c: Likewise.
31731 * fs/reiserfs.c: Likewise.
31732 * efiemu/runtime/efiemu.c: Likewise.
31733 * efiemu/main.c: Likewise.
31734 * efiemu/mm.c: Likewise.
31735 * include/grub/elf.h: Likewise.
31736 * include/grub/xnu.h: Likewise.
31737 * include/grub/usbdesc.h: Likewise.
31738 * include/grub/usb.h: Likewise.
31739 * include/grub/script_sh.h: Likewise.
31740 * include/grub/lib/LzmaEnc.h: Likewise.
31741 * include/grub/efiemu/efiemu.h: Likewise.
31742 * include/grub/command.h: Likewise.
31743 * normal/menu.c: Likewise.
31744 * normal/main.c: Likewise.
31745 * normal/datetime.c: Likewise.
31746 * bus/usb/uhci.c: Likewise.
31747 * mmap/i386/uppermem.c: Likewise.
31748 * mmap/mmap.c: Likewise.
31749 * commands/acpi.c: Likewise.
31750 * commands/test.c: Likewise.
31751 * partmap/apple.c: Likewise.
31752 * font/font.c: Likewise.
31753 * loader/sparc64/ieee1275/linux.c: Likewise.
31754 * loader/macho.c: Likewise.
31755 * loader/i386/bsd_trampoline.S: Likewise.
31756 * loader/i386/bsd.c: Likewise.
31757 * loader/xnu.c: Likewise.
31758 * term/i386/pc/vesafb.c: Likewise.
31759 * term/usb_keyboard.c: Likewise.
31760 * util/resolve.c: Likewise.
31761 * util/getroot.c: Likewise.
31763 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31765 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31767 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31769 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31772 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31774 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31775 parameter only available on BIOS.
31777 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31779 Removed wrong semicolon in declaration
31781 * grub/misc.h (grub_dprintf): remove semicolon
31783 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31785 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31786 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31787 is done by grub_cmd_linux() now).
31788 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31789 restore video to text mode.
31790 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31791 indicates lack of "vga=" parameter. "vga=0" is mapped to
31792 `GRUB_LINUX_VID_MODE_NORMAL'.
31794 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31796 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31797 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31798 and `normal/script.c'. Add `kern/rescue_reader.c',
31799 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31800 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31801 `grub_script.tab.c'.
31803 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31804 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31805 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31806 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31807 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31809 * Makefile.in: Remove duplicated 2008 in Copyright line.
31811 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31813 * util/misc.c (grub_util_warn): New function. Emits a warning
31815 * include/grub/util/misc.h (grub_util_warn): New declaration.
31817 * util/i386/pc/grub-install.in: Understand --force and pass it down
31820 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31822 (setup): Improve error messages and add warnings when requested to
31823 install in odd layouts. Refuse to install using blocklists unless
31826 2009-05-04 martin f. krafft <madduck@madduck.net>
31828 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31830 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31832 Updated copyright year
31834 * fs/hfsplus.c: updated copyright year
31836 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31840 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31841 in the space previously used by unused3
31842 (grub_hfsplus_uuid): new function
31843 (grub_hfsplus_fs): added uuid field
31845 2009-05-03 Pavel Roskin <proski@gnu.org>
31847 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31848 suppress warnings. It's no longer needed.
31849 * disk/host.c: Likewise.
31850 * disk/ata_pthru.c: Likewise.
31851 * disk/loopback.c: Likewise.
31852 * hook/datehook.c: Likewise.
31853 * parttool/pcpart.c: Likewise.
31854 * fs/i386/pc/pxe.c: Likewise.
31855 * fs/ntfscomp.c: Likewise.
31856 * efiemu/main.c: Likewise.
31857 * mmap/mmap.c: Likewise.
31858 * commands/crc.c: Likewise.
31859 * commands/hexdump.c: Likewise.
31860 * commands/hdparm.c: Likewise.
31861 * commands/acpi.c: Likewise.
31862 * commands/echo.c: Likewise.
31863 * commands/minicmd.c: Likewise.
31864 * commands/blocklist.c: Likewise.
31865 * commands/memrw.c: Likewise.
31866 * commands/loadenv.c: Likewise.
31867 * commands/usbtest.c: Likewise.
31868 * commands/lsmmap.c: Likewise.
31869 * commands/boot.c: Likewise.
31870 * commands/parttool.c: Likewise.
31871 * commands/configfile.c: Likewise.
31872 * commands/search.c: Likewise.
31873 * commands/ieee1275/suspend.c: Likewise.
31874 * commands/cat.c: Likewise.
31875 * commands/i386/pc/pxecmd.c: Likewise.
31876 * commands/i386/pc/play.c: Likewise.
31877 * commands/i386/pc/halt.c: Likewise.
31878 * commands/i386/pc/vbeinfo.c: Likewise.
31879 * commands/i386/pc/vbetest.c: Likewise.
31880 * commands/lspci.c: Likewise.
31881 * commands/date.c: Likewise.
31882 * commands/handler.c: Likewise.
31883 * commands/ls.c: Likewise.
31884 * commands/test.c: Likewise.
31885 * commands/cmp.c: Likewise.
31886 * commands/efi/loadbios.c: Likewise.
31887 * commands/efi/fixvideo.c: Likewise.
31888 * commands/halt.c: Likewise.
31889 * commands/help.c: Likewise.
31890 * commands/reboot.c: Likewise.
31891 * hello/hello.c: Likewise.
31892 * script/sh/main.c: Likewise.
31893 * loader/xnu.c: Likewise.
31894 * term/terminfo.c: Likewise.
31895 * term/i386/pc/serial.c: Likewise.
31896 * term/usb_keyboard.c: Likewise.
31898 2009-05-03 David S. Miller <davem@davemloft.net>
31900 * normal/menu.c: Include grub/parser.h
31902 2009-05-03 Pavel Roskin <proski@gnu.org>
31904 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31906 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31907 Suggested by Javier Martín <lordhabbit@gmail.com>
31909 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31910 efiemu??.o doesn't exist.
31911 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31914 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31916 FreeBSD 64-bit support
31918 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31919 and loader/i386/bsd_trampoline.S
31920 (bsd_mod_ASFLAGS): new variable
31921 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31922 (FREEBSD_MODTYPE_KERNEL64): likewise
31923 (grub_bsd64_trampoline_start): likewise
31924 (grub_bsd64_trampoline_end): likewise
31925 (grub_bsd64_trampoline_selfjump): likewise
31926 (grub_bsd64_trampoline_gdt): likewise
31927 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31928 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31929 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31930 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31931 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31933 * loader/i386/bsd_pagetable.c: new file
31934 * loader/i386/bsd_trampoline.S: likewise
31935 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31936 (ALIGN_VAR): likewise
31937 (entry_hi): new variable
31938 (kern_end_mdofs): likewise
31939 (is_64bit): likewise
31940 (grub_freebsd_add_meta): use ALIGN_VAR
31941 (grub_e820_mmap): new declaration
31942 (grub_freebsd_add_mmap): new function
31943 (grub_freebsd_add_meta_module): support 64 bit kernels
31944 (grub_freebsd_list_modules): use ALIGN_VAR
31945 (gdt_descriptor): new declaration
31946 (grub_freebsd_boot): support 64 bit kernels
31947 (grub_bsd_elf64_hook): new function
31948 (grub_bsd_load_elf): support elf64
31950 2009-05-03 Bean <bean123ch@gmail.com>
31952 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31953 after we get the result of if statement.
31955 2009-05-03 Bean <bean123ch@gmail.com>
31957 * Makefile.in (enable_efiemu): New variable.
31959 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31961 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31963 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31964 path, add -mno-red-zone option.
31965 (efiemu64_s.o): Likewise.
31966 (efiemu64.o): Use macro $^ for source file.
31968 * configure.ac (--enable-efiemu): New option.
31970 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31974 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31975 (pkglib_MODULES): add xnu.mod
31976 (xnu_mod_SOURCES): new variable
31977 (xnu_mod_CFLAGS): likewise
31978 (xnu_mod_LDFLAGS): likewise
31979 (xnu_mod_ASFLAGS): likewise
31980 * conf/i386-pc.rmk: likewise
31981 * conf/x86_64-efi.rmk: likewise
31982 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31984 * include/grub/i386/macho.h: new file
31985 * include/grub/i386/xnu.h: likewise
31986 * include/grub/macho.h: likewise
31987 * include/grub/machoload.h: likewise
31988 * include/grub/x86_64/macho.h: likewise
31989 * include/grub/x86_64/xnu.h: likewise
31990 * include/grub/xnu.h: likewise
31991 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31992 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31993 * loader/i386/efi/xnu.c: new file
31994 * loader/i386/pc/xnu.c: likewise
31995 * loader/i386/xnu.c: likewise
31996 * loader/i386/xnu_helper.S: likewise
31997 * loader/macho.c: likewise
31998 * loader/xnu.c: likewise
31999 * loader/xnu_resume.c: likewise
32000 * util/grub-dumpdevtree: likewise
32001 * include/grub/i386/pit.h: include grub/err.h
32002 (grub_pit_wait): export
32003 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
32005 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32009 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
32010 _linux_efi, linux_efi.
32011 new files in grub-emu
32012 new targets efiemu32.o and efiemu64.o
32013 * loader/linux_normal_efiemu.c: likewise
32014 * loader/i386/efi/linux.c: added preliminary efiemu support
32015 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
32017 * include/grub/autoefi.h: new file
32018 * include/grub/i386/efiemu.h: likewise
32019 * include/grub/i386/pc/efiemu.h: likewise
32020 * include/grub/efi/api.h: add LL suffix when necessary
32021 new definitions relating to tables
32022 * include/grub/efiemu/efiemu.h: new file
32023 * include/grub/efiemu/runtime.h: likewise
32024 * efiemu/prepare.c: likewise
32025 * efiemu/loadcore_common.c: likewise
32026 * efiemu/loadcore64.c: likewise
32027 * efiemu/runtime/efiemu.sh: likewise
32028 * efiemu/runtime/efiemu.S: likewise
32029 * efiemu/runtime/efiemu.c: likewise
32030 * efiemu/runtime/config.h: likewise
32031 * efiemu/prepare32.c: likewise
32032 * efiemu/main.c: likewise
32033 * efiemu/modules/pnvram.c: likewise
32034 * efiemu/modules/i386: likewise
32035 * efiemu/modules/i386/pc: likewise
32036 * efiemu/modules/acpi.c: likewise
32037 * efiemu/i386/pc/cfgtables.c: likewise
32038 * efiemu/i386/loadcore64.c: likewise
32039 * efiemu/i386/loadcore32.c: likewise
32040 * efiemu/prepare64.c: likewise
32041 * efiemu/loadcore.c: likewise
32042 * efiemu/symbols.c: likewise
32043 * efiemu/mm.c: likewise
32044 * efiemu/loadcore32.c: likewise
32046 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32050 * commands/acpi.c: new file
32051 * commands/i386/pc/acpi.c: likewise
32052 * commands/efi/acpi.c: likewise
32053 * include/grub/acpi.h: likewise
32054 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32055 (acpi_mod_SOURCES): new variable
32056 (acpi_mod_CFLAGS): likewise
32057 (acpi_mod_LDFLAGS): likewise
32058 * conf/i386-efi.rmk: likewise
32059 * conf/x86_64-efi.rmk: likewise
32061 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32063 Missing part from mmap patch
32065 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32066 (grub_mmap_unregister)
32067 (grub_mmap_free_and_unregister): use grub_mmap_register
32069 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32073 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32074 * loader/i386/linux.c (find_mmap_size): likewise
32075 (allocate_pages): likewise
32076 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32077 (grub_fill_multiboot_mmap): likewise
32078 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32079 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32080 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32081 (OPENBSD_MMAP_RESERVED): likewise
32082 * include/grub/i386/pc/memory.h: include grub/memory.h
32083 (grub_lower_mem): removed
32084 (grub_upper_mem): likewise
32085 (GRUB_MACHINE_MEMORY_ACPI): new definition
32086 (GRUB_MACHINE_MEMORY_NVS): likewise
32087 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32088 (GRUB_MACHINE_MEMORY_HOLE): likewise
32089 (grub_machine_mmap_register): likewise
32090 (grub_machine_mmap_unregister): likewise
32091 (grub_machine_get_upper): likewise
32092 (grub_machine_get_lower): likewise
32093 (grub_machine_get_post64): likewise
32094 * include/grub/i386/efi/memory.h: new file
32095 * include/grub/x86_64/efi/memory.h: likewise
32096 * include/grub/efi/memory.h: likewise
32097 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32098 (mmap_mod_SOURCES): new variable
32099 (mmap_mod_LDFLAGS): likewise
32100 (mmap_mod_ASFLAGS): likewise
32101 * conf/i386-coreboot.rmk: likewise
32102 * conf/i386-ieee1275.rmk: likewise
32103 * conf/i386-efi.rmk: likewise
32104 * conf/x86_64-efi.rmk: likewise
32105 * include/grub/types.h (UINT_TO_PTR): new macro
32106 (PTR_TO_UINT32): likewise
32107 (PTR_TO_UINT64): likewise
32108 * include/grub/memory.h: new file
32109 * mmap/i386/pc/mmap.c: likewise
32110 * mmap/i386/pc/mmap_helper.S: likewise
32111 * mmap/i386/uppermem.c: likewise
32112 * mmap/mmap.c: likewise
32113 * mmap/efi/mmap.c: likewise
32114 * kern/i386/coreboot/init.c (grub_machine_init): don't use
32116 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32117 (grub_upper_mem): likewise
32118 (grub_machine_init): don't use grub_upper_mem,
32119 make grub_lower_mem local
32120 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32121 grub_mmap_iterate and grub_mmap_get_upper
32122 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32124 2009-05-02 Bean <bean123ch@gmail.com>
32126 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32127 script/sh/parser.y.
32128 (pkglib_MODULES): Add normal.mod and sh.mod.
32129 (normal_SOURCES): New variable.
32130 (normal_mod_CFLAGS): Likewise.
32131 (normal_mod_LDFLAGS): Likewise.
32132 (sh_mod_SOURCES): Likewise.
32133 (sh_mod_CFLAGS): Likewise.
32134 (sh_mod_LDFLAGS): Likewise.
32136 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32137 script/sh/lexer.c_DEPENDENCIES.
32138 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32139 kern/rescue_reader.c and kern/rescue_parser.c.
32140 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32141 (grub_emu_SOURCES): Change source files.
32142 (pkglib_MODULES): Remove normal.mod.
32143 (normal_SOURCES): Removed.
32144 (normal_mod_CFLAGS): Likewise.
32145 (normal_mod_LDFLAGS): Likewise.
32146 * conf/i386-coreboot.rmk: Likewise.
32147 * conf/i386-efi.rmk: Likewise.
32148 * conf/i386-ieee1276.rmk: Likewise.
32149 * conf/powerpc-ieee1275.rmk: Likewise.
32150 * conf/sparc64-ieee1275.rmk: Likewise.
32151 * conf/x86_64-efi.rmk: Likewise.
32153 * include/grub/command.h (grub_command_execute): New inline function.
32155 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32157 * include/grub/normal.h: Remove <grub/setjmp.h>.
32158 (grub_fs_module_list): Moved to normal/autofs.c.
32159 (grub_exit_env): Removed.
32160 (grub_command_execute): Likewise.
32161 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32163 (read_command_list): New function declaration.
32164 (read_fs_list): Likewise.
32166 * include/parser.h: Include <grub/reader.h>.
32167 (grub_parser_split_cmdline): Change type of getline parameter.
32168 (grub_parser): New structure.
32169 (grub_parser_class): New variable.
32170 (grub_parser_execute): New function declaration.
32171 (grub_register_rescue_parser): Likewise.
32172 (grub_parser_register): New inline function.
32173 (grub_parser_unregister): Likewise.
32174 (grub_parser_get_current): Likewise.
32175 (grub_parser_set_current): Likewise.
32177 * include/grub/reader.h: New file.
32178 * kern/reader.c: Likewise.
32179 * kern/rescue_parser.c: Likewise.
32180 * kern/rescue_reader.c: Likewise.
32181 * normal/autofs.c: Likewise.
32182 * normal/dyncmd.c: Likewise.
32184 * include/grub/rescue.h: Removed.
32185 * normal/command.h: Likewise.
32187 * include/grub/script.h: Moved to ...
32188 * include/grub/script_sh.h: ... Moved here.
32189 * normal/execute.c: Moved to ...
32190 * script/sh/execute.c: ... Moved here.
32191 * normal/function.c: Moved to ...
32192 * script/sh/function.c: ... Moved here.
32193 * normal/lexer.c: Moved to ...
32194 * script/sh/lexer.c: ... Moved here.
32195 * normal/parser.y: Moved to ...
32196 * script/sh/parser.y: ... Moved here.
32197 * normal/script.c: Moved to ...
32198 * script/sh/script.c: ... Moved here.
32200 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32202 (grub_exit_env): Removed.
32203 (fs_module_list): Moved to normal/autofs.c.
32204 (grub_file_getline): Don't handle comment here.
32205 (free_menu): Skip removed field entry->commands.
32206 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32208 (read_config_file): Removed nested parameter, change getline function.
32209 (grub_enter_normal_mode): Removed.
32210 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32211 (read_command_list): Likewise.
32212 (autoload_fs_module): Moved to normal/autofs.c.
32213 (read_fs_list): Likewise.
32214 (reader_nested): New variable.
32215 (grub_normal_execute): Run parser.sh to switch to sh parser.
32216 (grub_cmd_rescue): Removed.
32217 (cmd_normal): Removed.
32218 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32220 (grub_cmdline_run): New function.
32221 (grub_normal_reader_init): Likewise.
32222 (grub_normal_read_line): Likewise.
32223 (grub_env_write_pager): Likewise.
32224 (cmdline): New variable.
32225 (grub_normal_reader): Likewise.
32226 (GRUB_MOD_INIT): Register normal reader and set as current, register
32227 pager hook, register normal command with grub_register_command_prio,
32228 so that it won't show up in command.lst.
32229 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32230 grub_fs_autoload_hook.
32232 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32233 (grub_menu_execute_entry): Replace grub_script_execute with
32234 grub_parser_execute, change parameter to grub_command_execute.
32236 * normal/menu_text.c: Remove <grub/script.h>.
32238 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32239 and <grub/parser.h>.
32240 (run): Change editor_getline to use new parser interface. Change
32241 parameter to grub_command_execute.
32243 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32244 <grub/reader.h> and <grub/parser.h>.
32245 (grub_load_normal_mode): Execute normal command.
32246 (grub_main): Call grub_register_core_commands,
32247 grub_register_rescue_parser and grub_register_rescue_reader, use
32248 grub_reader_loop to enter input loop.
32250 * kern/parser.c (grub_parser_split_cmdline): Change type of
32252 (grub_parser_class): New variable.
32253 (grub_parser_execute): New function.
32255 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32256 * loader/multiboot2.c: Likewise.
32257 * loader/sparc64/ieee1275/linux.c: Likewise.
32259 * util/grub-emu.c (read_command_list): New dummy function.
32261 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32263 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32264 count to 16 for CCISS and IDA.
32266 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32268 * normal/menu_text.c (grub_wait_after_message): Print a newline
32269 after waiting for user input.
32271 * loader/i386/linux.c: Include `<grub/normal.h>'.
32272 (grub_cmd_linux): Improve the error message about `ask' mode, by
32273 waiting for user input so it's not missed (we can do this, since
32274 user requested interaction).
32276 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32278 Added missing lst to grub-mkrescue
32280 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32281 and ${input_dir}/parttool.lst
32283 2009-04-30 David S. Miller <davem@davemloft.net>
32285 * util/hostdisk.c (device_is_wholedisk): New function.
32286 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32287 zero only if device_is_wholedisk() returns true.
32289 * util/hostdisk.c (convert_system_partition_to_system_disk):
32290 Handle virtual disk devices named /dev/vdiskX as found on sparc
32293 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32294 lettered partition specifier is found, convert to numbered.
32296 2009-04-29 David S. Miller <davem@davemloft.net>
32298 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32299 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32301 * normal/command.c: Add missing newline at end of file.
32303 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32305 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32306 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32307 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32308 ihandles have a 32-bit type but need to be stored in a "void *".
32310 2009-04-28 Pavel Roskin <proski@gnu.org>
32312 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32313 not disk. Adjust all dependencies.
32314 (grub_fs_uuid_close): Use grub_device_close(), not
32317 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32318 parent's partition, don't copy it by reference, as it gets freed
32321 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32323 Preboot hooks support
32325 * commands/boot.c (struct grub_preboot_t): new declaration
32326 (preboots_head): new variable
32327 (preboots_tail): likewise
32328 (grub_loader_register_preboot_hook): new function
32329 (grub_loader_unregister_preboot_hook): likewise
32330 (grub_loader_set): launch preboot hooks
32331 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32332 (grub_loader_register_preboot_hook): new declaration
32333 (grub_loader_unregister_preboot_hook): likewise
32335 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32339 * disk/scsi.c (grub_scsi_open): added missing cast when
32340 calling grub_dprintf
32342 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32344 Bug and warning fixes
32346 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32348 * commands/test.c (test_parse): fixed bug with file tests and corrected
32349 declaration of find_file
32351 2009-04-26 Pavel Roskin <proski@gnu.org>
32353 * Makefile.in: Don't install empty manual pages if help2man is
32354 missing. Use help2man option for output, not shell redirection.
32356 2009-04-26 David S. Miller <davem@davemloft.net>
32358 * util/grub-mkdevicemap.c (make_device_map): Add missing
32359 NESTED_FUNC_ATTR to process_device().
32361 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32365 * commands/test.c: rewritten to use bash-like test
32367 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32369 Parttool autoloading and improvements
32371 * Makefile.in (pkglib_DATA): add parttool.lst
32372 (parttool.lst): new target
32373 * genmk.rb: generate parttool-*
32374 (CLEANFILES): add #{parttool}
32375 (PARTTOOLFILES): new variable
32376 * genparttoollist.sh: new file
32377 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32378 (grub_pcpart_type): likewise
32379 * commands/parttool.c (helpmsg): new variable
32380 (grub_cmd_parttool): output help if not enough arguments are supplied
32382 (GRUB_MOD_INIT(parttool)): use helpmsg
32384 2009-04-24 David S. Miller <davem@davemloft.net>
32386 Avoiding opening same device multiple times in device iterator.
32388 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32389 and use it to build a list of partitions in iterate_disk() and
32390 iterate_partition().
32392 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32395 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32396 grub_devalias_iterate() result instead of unconditional 0.
32397 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32398 Also, capture hook return value, either directly or via
32399 grub_children_iterate(), and propagate to caller.
32400 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32401 grub_children_iterate): Return value is now 'int' instead of
32403 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32404 like a proper iterator, stopping when hooks return non-zero.
32405 (grub_devalias_iterate): Likewise.
32407 2009-04-23 David S. Miller <davem@davemloft.net>
32409 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32411 2009-04-22 David S. Miller <davem@davemloft.net>
32413 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32414 is larger than address_cells, use that value for address_cells too.
32416 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32417 IEEE1275_MAX_PATH_LEN): Define.
32418 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32419 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32420 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32421 'devtype'. Explicitly NULL terminate devalias expansion.
32423 * util/sparc64/ieee1275/misc.c: New file.
32424 * util/sparc64/ieee1275/grub-setup.c: New file.
32425 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32426 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32427 * util/sparc64/ieee1275/grub-install.in: New file.
32428 * util/ieee1275/ofpath.c: New file.
32429 * util/ieee1275/devicemap.c: New file.
32430 * util/devicemap.c: New file.
32431 * util/deviceiter.c: New file.
32432 * kern/sparc64/ieee1275/init.c: New file.
32433 * include/grub/util/ofpath.h: New file.
32434 * include/grub/util/deviceiter.h: New file.
32435 * util/grub-mkdevicemap.c: Include deviceiter.h.
32436 Implement using grub_util_emit_devicemap_entry and
32437 grub_util_iterate_devices.
32438 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32439 util/devicemap.c into grub-mkdevicemap
32440 * conf/i386-efi.rmk: Likewise.
32441 * conf/i386-ieee1275.rmk: Likewise.
32442 * conf/i386-pc.rmk: Likewise.
32443 * conf/powerpc-ieee1275.rmk: Likewise.
32444 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32445 images and installation utilities. Build kernel as image
32446 instead of as elf binary. Use common rules as much as possible.
32448 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32450 Correct GPT definition
32452 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32455 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32457 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32459 2009-04-19 David S. Miller <davem@davemloft.net>
32461 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32462 (grub_rescue_cmd_linux): Rename to...
32463 (grub_cmd_linux): and fix prototype.
32464 (grub_rescue_cmd_initrd): Rename to...
32465 (grub_cmd_initrd): and fix prototype.
32466 (cmd_linux, cmd_initrd): New.
32467 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32468 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32470 2009-04-17 Pavel Roskin <proski@gnu.org>
32472 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32474 (grub_ohci_transfer): Likewise.
32476 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32478 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32479 return without a value. Fix inconsistent indentation.
32481 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32482 match struct grub_fs.
32484 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32485 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32486 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32487 * commands/lspci.c (grub_lspci_iter): Likewise.
32489 2009-04-16 Bean <bean123ch@gmail.com>
32491 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32494 2009-04-15 Pavel Roskin <proski@gnu.org>
32496 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32497 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32498 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32501 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32503 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32504 that no multiple data or metadata areas are supported and `Unknown
32507 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32509 Move loader out of the kernel
32511 * kern/loader.c: moved to ...
32512 * commands/boot.c: ... moved here
32513 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32514 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32515 * include/grub/kernel.h (grub_machine_fini): export
32516 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32517 (grub_loader_set): likewise
32518 (grub_loader_unset): likewise
32519 (grub_loader_boot): likewise
32520 * conf/common.rmk: new module boot.mod
32521 (pkglib_MODULES): add boot.mod
32522 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32523 (grub_emu_SOURCES): likewise
32524 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32525 (grub_emu_SOURCES): likewise
32526 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32527 (grub_emu_SOURCES): likewise
32528 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32529 (grub_emu_SOURCES): likewise
32530 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32531 (grub_emu_SOURCES): likewise
32532 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32533 (grub_emu_SOURCES): likewise
32534 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32535 (grub_emu_SOURCES): likewise
32537 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32539 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32541 * kern/misc.c (grub_itoa): Removed function
32542 (grub_ltoa): likewise
32543 (grub_vsprintf): use grub_lltoa
32545 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32549 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32550 * conf/i386-coreboot.rmk: likewise
32551 * conf/i386-ieee1275.rmk: likewise
32552 * conf/powerpc-ieee1275.rmk: likewise
32554 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32556 * INSTALL: Add that `./autogen.sh' needs to be run before
32559 2009-04-14 Bean <bean123ch@gmail.com>
32561 * Makefile.in (pkglib_DATA): Add handler.lst.
32562 (handler.lst): New rule.
32564 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32565 * conf/i386-coreboot.rmk: Likewise.
32566 * conf/i386-ieee1275.rmk: Likewise.
32567 * conf/i386-efi.rmk: Likewise.
32568 * conf/x86_64-efi.rmk: Likewise.
32569 * conf/powerpc-ieee1275.rmk: Likewise.
32570 * conf/sparc64-ieee1275.rmk: Likewise.
32572 * genhandlerlist.sh: New file.
32574 * genmk.rb: Add rules to generate handler.lst.
32576 * include/grub/normal.h (grub_file_getline): New function definition.
32577 (read_handler_list): Likewise.
32578 (free_handler_list): Likewise.
32580 * include/grub/term.h (grub_term_register_input): Add name parameter
32581 for auto generation of handler.lst.
32582 (grub_term_register_output): Likewise.
32584 * normal/handler.c: New file.
32586 * normal/main.c (get_line): Renamed to grub_file_getline.
32587 (read_config_file): Use the newly renamed grub_file_getline.
32588 (read_command_list): Likewise.
32589 (read_fs_list): Likewise.
32590 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32591 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32593 * term/efi/console.c (grub_console_init): Add name parameter for auto
32594 generation of handler.lst.
32595 * term/gfxterm.c: Likewise.
32596 * term/i386/pc/at_keyboard.c: Likewise.
32597 * term/i386/pc/console.c: Likewise.
32598 * term/i386/pc/serial.c: Likewise.
32599 * term/i386/pc/vesafb.c: Likewise.
32600 * term/i386/pc/vga.c: Likewise.
32601 * term/i386/pc/vga_text.c: Likewise.
32602 * term/ieee1275/ofconsole.c: Likewise.
32603 * term/usb_keyboard.c: Likewise.
32605 2009-04-14 Bean <bean123ch@gmail.com>
32607 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32608 properly with null character.
32610 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32612 * configure: Remove.
32613 * config.h.in: Likewise.
32614 * stamp-h.in: Likewise.
32615 * DISTLIST: Likewise.
32616 * conf/common.mk: Likewise.
32617 * conf/i386-coreboot.mk: Likewise.
32618 * conf/i386-efi.mk: Likewise.
32619 * conf/i386-ieee1275.mk: Likewise.
32620 * conf/i386.mk: Likewise.
32621 * conf/i386-pc.mk: Likewise.
32622 * conf/powerpc-ieee1275.mk: Likewise.
32623 * conf/sparc64-ieee1275.mk: Likewise.
32624 * conf/x86_64-efi.mk: Likewise.
32626 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32629 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32630 David S. Miller <davem@davemloft.net>
32632 * util/hostdisk.c (make_device_name): Fix buffer length
32635 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32637 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32638 <sys/param.h> and <sys/sysctl.h>.
32639 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32640 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32641 opening the device and reset them afterwards.
32643 2009-04-13 Pavel Roskin <proski@gnu.org>
32645 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32646 Reported by John Stanley <jpsinthemix@verizon.net>
32648 2009-04-13 Robert Millan <rmh@aybabtu.com>
32650 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32651 that name for menuentries when appropriate.
32653 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32655 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32657 2009-04-13 Robert Millan <rmh@aybabtu.com>
32659 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32660 to Linux, simply abort telling the user it's no longer supported.
32662 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32664 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32665 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32666 `freebsd_loadenv' only when devices.hints exist.
32668 2009-04-13 Pavel Roskin <proski@gnu.org>
32670 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32672 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32674 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32676 (grub_drive): Likewise.
32678 2009-04-13 David S. Miller <davem@davemloft.net>
32680 * kern/sparc64/ieee1275/ieee1275.c: New file.
32681 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32682 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32683 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32684 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32685 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32686 grub_ieee1275_alloc_physmem): Declare new exported functions.
32688 * include/grub/sparc64/ieee1275/loader.h: New file.
32689 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32690 * include/grub/sparc64/kernel.h: Likewise.
32691 * loader/sparc64/ieee1275/linux.c: Likewise.
32693 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32694 (grub_fstest_SOURCES): Likewise.
32696 * util/hostdisk.c (make_device_name): Do not make any assumptions
32697 about the length of drive names.
32699 * kern/dl.c (grub_dl_load_file): Close file immediately when
32700 we are done using it.
32702 2009-04-12 David S. Miller <davem@davemloft.net>
32704 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32705 values. Noticed by Pavel Roskin.
32707 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32710 * genmk.rb: Add more flexible image type specification, also
32711 pass --strip-unneeded to objcopy.
32712 * conf/i386-pc.rmk: Use *_FORMAT.
32713 * conf/i386-pc.mk: Rebuilt.
32715 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32716 (OFDISK_HASH_SZ): Define.
32717 (ofdisk_hash): New hash table.
32718 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32719 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32720 instead of device phandle which is not unique.
32722 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32723 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32724 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32725 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32726 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32727 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32728 GRUB_KERNEL_MACHINE_DATA_END): Define.
32729 (grub_kernel_image_size, grub_total_module_size): Declare.
32731 2009-04-12 Pavel Roskin <proski@gnu.org>
32733 * configure.ac: Change the logic when we check for target tools.
32734 Do it when the target is specified and it's different from the
32735 specified value of the host.
32737 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32739 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32740 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32741 GNU/kFreeBSD. Check if a device is a character device. Use
32742 DIOCGMEDIASIZE to get the size.
32743 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32744 support for GNU/kFreeBSD.
32745 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32746 is a character device instead of a block device. Add support for
32747 FreeBSD device names.
32749 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32750 is a character device instead of a block device.
32752 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32753 is a character device instead of a block device.
32755 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32757 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32758 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32759 FreeBSD. Check if a device is a character device. Use
32760 DIOCGMEDIASIZE to get the size.
32761 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32762 support for FreeBSD.
32763 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32764 is a character device instead of a block device. Add support for
32765 FreeBSD device names.
32767 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32768 a character device instead of a block device.
32769 (grub_util_check_char_device): New function.
32771 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32772 a character device instead of a block device.
32774 * include/grub/util/getroot.h (grub_util_check_char_device): New
32777 2009-04-11 David S. Miller <davem@davemloft.net>
32779 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32781 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32782 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32783 function, if present.
32784 (__bswapdi2): Likewise.
32786 * include/grub/sparc64/ieee1275/boot.h: New file.
32787 * boot/sparc64/ieee1275/boot.S: Likewise.
32788 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32790 * kern/misc.c (grub_ltoa): New function.
32791 (grub_vsprintf): Use it to format 'long' integers.
32793 2009-04-10 David S. Miller <davem@davemloft.net>
32795 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32796 slots are of type grub_ieee1275_cell_t.
32797 (grub_nand_read): Likewise.
32798 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32799 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32800 macros are used to compare values in arg/ret block of the call.
32801 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32802 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32803 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32804 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32805 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32806 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32807 grub_ieee1275_close, grub_ieee1275_set_property,
32808 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32809 grub_ieee1275_cell_t.
32810 * kern/ieee1275/openfw.c (grub_map): Likewise.
32811 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32812 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32814 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32815 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32816 (grub_devalias_iterate): Likewise.
32818 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32822 * fs/ufs.c (INODE_NBLOCKS): new definition
32823 (struct grub_ufs_dirent): added fields for non-BSD dirents
32824 (grub_ufs_get_file_block): fixed double indirect handling
32825 (grub_ufs_lookup_symlink): use more robust way to determine whether
32827 (grub_ufs_find_file): support for non-BSD dirents
32828 (grub_ufs_dir): support for non-BSD dirents
32830 2009-04-10 Bean <bean123ch@gnail.com>
32832 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32833 attribute, otherwise the size would be wrong for i386 platform.
32835 * include/grub/pci.h (grub_pci_read_word): New inline function.
32836 (grub_pci_read_byte): Likewise.
32837 (grub_pci_write): Likewise.
32838 (grub_pci_write_word): Likewise.
32839 (grub_pci_write_byte): Likewise.
32841 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32843 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32844 (find_framebuf): Scan pci to locate the frame buffer address.
32846 * commands/efi/fixvideo.c: New file.
32848 * commands/efi/loadbios.c: Likewise.
32850 * commands/memrw.c: Likewise.
32852 * util/grub-dumpbios.in: Likewise.
32854 * conf/common.rmk (grub-dumpbios): New utility.
32855 (pkglib_MODULES): New module memrw.mod.
32856 (memrw_mod_SOURCE): New macro.
32857 (memrw_mod_CFLAGS): Likewise.
32858 (memrw_mod_LDFLAGS): Likewise.
32860 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32862 (loadbios_mod_SOURCE): New macro.
32863 (loadbios_mod_CFLAGS): Likewise.
32864 (loadbios_mod_LDFLAGS): Likewise.
32865 (fixvideo_mod_SOURCE): Likewise.
32866 (fixvideo_mod_CFLAGS): Likewise.
32867 (fixvideo_mod_LDFLAGS): Likewise.
32869 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32871 (loadbios_mod_SOURCE): New macro.
32872 (loadbios_mod_CFLAGS): Likewise.
32873 (loadbios_mod_LDFLAGS): Likewise.
32874 (fixvideo_mod_SOURCE): Likewise.
32875 (fixvideo_mod_CFLAGS): Likewise.
32876 (fixvideo_mod_LDFLAGS): Likewise.
32878 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32880 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32882 2009-04-07 David S. Miller <davem@davemloft.net>
32884 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32885 support for R_SPARC_OLO10 relocations. Fix compile warning for
32886 R_SPARC_WDISP30 case.
32887 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32889 2009-04-06 Pavel Roskin <proski@gnu.org>
32891 * include/grub/misc.h (ARRAY_SIZE): New macro.
32892 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32894 * loader/i386/linux.c (allocate_pages): Use free_pages().
32895 (grub_linux_unload): Don't use free_pages().
32896 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32897 wrong index. Treat all other modes as text modes.
32898 (grub_cmd_linux): Initialize vid_mode unconditionally to
32899 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32901 * commands/help.c (print_command_help): Use cmd->prio, not
32902 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32904 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32908 * parttool/pcpart.c: new file
32909 * commands/parttool.c: likewise
32910 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32911 (parttool_mod_SOURCES): new variable
32912 (parttool_mod_CFLAGS): likewise
32913 (parttool_mod_LDFLAGS): likewise
32914 (pcpart_mod_SOURCES): likewise
32915 (pcpart_mod_CFLAGS): likewise
32916 (pcpart_mod_LDFLAGS): likewise
32917 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32918 and parttool/pcpart.c
32919 * conf/i386-efi.rmk: likewise
32920 * conf/i386-ieee1275.rmk: likewise
32921 * conf/i386-pc.rmk: likewise
32922 * conf/powerpc-ieee1275.rmk: likewise
32923 * conf/sparc64-ieee1275.rmk: likewise
32924 * conf/x86_64-ieee1275.rmk: likewise
32926 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32928 Support for mtime and further expandability of dir command
32930 * include/grub/lib/datetime.h: moved to ...
32931 * include/grub/datetime.h: ... moved here and added
32932 declaration of grub_unixtime2datetime. All users updated
32933 * include/grub/fs.h: new syntax for dir and mtime functions in
32935 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32936 and GRUB_FSHELP_FLAGS_MASK
32937 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32938 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32939 (grub_ext2_mtime): new function
32940 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32941 (grub_hfsplus_mtime): new function
32942 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32943 (GRUB_UFS_ATTR_FILE): likewise
32944 (GRUB_UFS_ATTR_LNK): likewise
32945 (struct grub_ufs_sblock): new fields mtime
32946 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32948 (grub_ufs_dir): mtime support
32949 (grub_ufs_mtime): new function
32950 * fs/affs.c (grub_affs_dir): use new dir syntax
32951 * fs/afs.c (grub_afs_dir): likewise
32952 * fs/cpio.c (grub_cpio_dir): likewise
32953 * fs/fat.c (grub_fat_find_dir): likewise
32954 * fs/hfs.c (grub_hfs_dir): likewise
32955 * fs/iso9660.c (grub_iso9660_dir): likewise
32956 * fs/jfs.c (grub_jfs_dir): likewise
32957 * fs/minix.c (grub_minix_dir): likewise
32958 * fs/ntfs.c (grub_ntfs_dir): likewise
32959 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32960 * fs/sfs.c (grub_sfs_dir): likewise
32961 * fs/xfs.c (grub_xfs_dir): likewise
32962 * util/hostfs.c (grub_hostfs_dir): likewise
32963 * lib/datetime.c: moved to ...
32964 * normal/datetime.c: ... moved here
32965 (grub_unixtime2datetime): new function
32966 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32967 * normal/completion.c (iterate_dir): use new dir syntax
32968 * normal/misc.c (grub_normal_print_device_info): tell the
32969 last modification time of a volume
32970 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32971 * conf/common.rmk: added lib/datetime.c to ls.mod
32972 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32973 (normal_mod_SOURCES): likewise
32974 (datetime_mod_SOURCES): Removed lib/datetime.c
32975 * conf/i386-efi.rmk: likewise
32976 * conf/i386-ieee1275.rmk: likewise
32977 * conf/i386-pc.rmk: likewise
32978 * conf/powerpc-ieee1275.rmk: likewise
32979 * conf/sparc64-ieee1275.rmk: likewise
32980 * conf/x86_64-efi.rmk: likewise
32982 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32984 Trim trailing spaces in FAT label and support mtools-like labels
32986 * fs/fat.c (grub_fat_iterate_dir): New function based
32987 on grub_fat_find_dir
32988 (grub_fat_find_dir): use grub_fat_iterate_dir
32989 (grub_fat_label): likewise
32991 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32993 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32995 remove extraneous kernel_elf_HEADERS
32997 2009-04-04 Bean <bean123ch@gnail.com>
32999 * include/grub/util/misc.h: Add dummy function fsync for mingw.
33001 * util/misc.c: Likewise.
33003 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33005 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
33006 instead of grub_printf.
33008 2009-04-03 Robert Millan <rmh@aybabtu.com>
33010 * loader/i386/linux.c (grub_linux_setup_video): Fill
33011 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
33012 values from `mode info' structure instead of hardcoded
33015 2009-04-01 Pavel Roskin <proski@gnu.org>
33017 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
33019 * genmk.rb: Likewise.
33020 * configure.ac: Likewise.
33022 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
33024 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
33025 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
33027 2009-04-01 David S. Miller <davem@davemloft.net>
33029 * normal/sparc64/setjmp.S: Fix setjmp implementation.
33030 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
33031 (grub_setjmp): Mark with 'returns_twice' attribute.
33032 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
33033 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
33034 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
33036 2009-04-01 Robert Millan <rmh@aybabtu.com>
33038 Reapply fix from 2008-07-28 which was accidentally reverted; also
33039 perform the same fix to a similar check in same function.
33041 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
33042 with the same number are found, just use issue a warning with
33043 grub_dprintf(), as this error has been reported to be non-fatal.
33045 2009-03-31 Pavel Roskin <proski@gnu.org>
33047 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
33048 for cross-compilation.
33050 2009-03-30 Robert Millan <rmh@aybabtu.com>
33052 Fix i386-ieee1275 build.
33054 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33055 Remove declaration.
33057 2009-03-30 Pavel Roskin <proski@gnu.org>
33059 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33060 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33061 zero-terminated, rely only on the strlen value. Fix comparison
33062 of strings differing in length.
33064 2009-03-30 Robert Millan <rmh@aybabtu.com>
33066 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33067 checking for abi version. Improve error messages on BIOS to notify
33068 user about `linux16' command.
33070 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33074 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33075 in case of collision
33076 * disk/scsi.c (grub_scsi_open): free scsi in case of error
33078 2009-03-29 Robert Millan <rmh@aybabtu.com>
33080 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33081 set `vid_mode' accordingly.
33082 (grub_linux_boot): Process `vid_mode' and set video mode.
33084 2009-03-29 Robert Millan <rmh@aybabtu.com>
33086 * util/grub.d/10_linux.in (linux_entry): New function.
33087 Factorize generation of Linux boot entries.
33089 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33091 Make the format of Environment Block plain text. The boot loader
33092 part is not tested well yet.
33094 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33096 (envblk): Likewise.
33097 (usage): Remove "info" and "clear". Add "unset". Update the
33098 description of "set", as this does not delete variables any
33100 (create_envblk_file): Complete rewrite.
33101 (open_envblk_file): Likewise.
33102 (cmd_info): Removed.
33103 (cmd_list): Likewise.
33104 (cmd_set): Likewise.
33105 (cmd_clear): Likewise.
33106 (list_variables): New function.
33107 (write_envblk): Likewise.
33108 (set_variables): Likewise.
33109 (unset_variables): Likewise.
33110 (main): Complete rewrite.
33112 * commands/loadenv.c (buffer): Removed.
33113 (envblk): Likewise.
33114 (open_envblk_file): New function.
33115 (read_envblk_file): Complete rewrite.
33116 (grub_cmd_load_env): Likewise.
33117 (grub_cmd_list_env): Likewise.
33118 (struct blocklist): New struct.
33119 (free_blocklists): New function.
33120 (check_blocklists): Likewise.
33121 (write_blocklists): Likewise.
33122 (grub_cmd_save_env): Complete rewrite.
33124 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33125 a plain text signature.
33126 (GRUB_ENVBLK_MAXLEN): Removed.
33127 (struct grub_envblk): Complete rewrite.
33128 (grub_envblk_find): Removed.
33129 (grub_envblk_insert): Likewise.
33130 (grub_envblk_open): New prototype.
33131 (grub_envblk_set): Likewise.
33132 (grub_envblk_delete): Put const to VALUE.
33133 (grub_envblk_iterate): Put const to NAME and VALUE.
33134 (grub_envblk_close): New prototype.
33135 (grub_envblk_buffer): New inline function.
33136 (grub_envblk_size): Likewise.
33138 * lib/envblk.c: Include grub/mm.h.
33139 (grub_env_find): Removed.
33140 (grub_envblk_open): New function.
33141 (grub_envblk_close): Likewise.
33142 (escaped_value_len): Likewise.
33143 (find_next_line): Likewise.
33144 (grub_envblk_insert): Removed.
33145 (grub_envblk_set): New function.
33146 (grub_envblk_delete): Complete rewrite.
33147 (grub_envblk_iterate): Likewise.
33149 2009-03-28 Robert Millan <rmh@aybabtu.com>
33151 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33152 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33153 variables. Use 16-bit loader.
33154 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33156 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33157 (grub_linux16_boot): ... this. Update all users.
33158 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33159 (grub_linux_boot): ... this. Update all users.
33161 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33162 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33163 commands to `linux16' and `initrd16'.
33164 (GRUB_MOD_FINI(linux)): Rename to ...
33165 (GRUB_MOD_FINI(linux16)): ... this.
33167 2009-03-24 Pavel Roskin <proski@gnu.org>
33169 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33170 not just for compilation.
33172 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33174 Move multiboot helper out of kernel
33176 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33177 `loader/i386/multiboot_helper.S'.
33178 * conf/i386-coreboot.rmk: Likewise
33179 * conf/i386-ieee1275.rmk: Likewise
33181 * kern/i386/loader.S: Move multiboot helpers from here...
33182 * loader/i386/multiboot_helper.S: ...moved here
33183 * include/grub/i386/loader.h: Move declarations of multiboot
33184 helpers from here...
33185 * include/grub/i386/multiboot.h: ...moved here
33186 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33188 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33190 * kern/env.c (grub_env_context_open): Added an argument to specify
33191 whether a new context inherits exported variables from current
33192 one. This is useful when making a sandbox to interpret a config
33194 All callers updated.
33196 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33198 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33200 * kern/env.c (grub_env_context_close): Fix memory leaks.
33202 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33204 * normal/main.c (grub_normal_execute): Added an argument
33205 BATCH to specify if an interactive interface should be provided
33206 after reading a config file.
33207 All callers updated.
33208 (read_command_list): Prevent being executed twice.
33209 (read_fs_list): Likewise.
33211 * include/grub/normal.h (grub_normal_execute): Updated the
33214 2009-03-22 Pavel Roskin <proski@gno.org>
33216 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33218 * kern/i386/pc/startup.S: Likewise.
33219 * kern/i386/efi/startup.S: Likewise.
33220 * kern/i386/ieee1275/startup.S: Likewise.
33221 * kern/i386/coreboot/startup.S: Likewise.
33222 * kern/x86_64/efi/startup.S: Likewise.
33224 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33225 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33226 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33228 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33230 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33232 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33234 Use vaddr of correct segment for entry_point.
33236 2009-03-21 Bean <bean123ch@gmail.com>
33238 * commands/blocklist.c: Add include file <grub/command.h>, remove
33239 <grub/normal.h> and <grub/arg.h>.
33240 (grub_cmd_blocklist): Use the new command interface.
33241 (GRUB_MOD_INIT): Likewise.
33242 (GRUB_MOD_FINI): Likewise.
33243 * commands/boot.c: Likewise.
33244 * commands/cat.c: Likewise.
33245 * commands/cmp.c: Likewise.
33246 * commands/configfile.c: Likewise.
33247 * commands/crc.c: Likewise.
33248 * commands/echo.c: Likewise.
33249 * commands/halt.c: Likewise.
33250 * commands/handler.c: Likewise.
33251 * commands/hdparm.c: Likewise.
33252 * commands/help.c: Likewise.
33253 * commands/hexdump.c: Likewise.
33254 * commands/loadenv.c: Likewise.
33255 * commands/ls.c: Likewise.
33256 * commands/lsmmap.c: Likewise.
33257 * commands/lspci.c: Likewise.
33258 * commands/loadenv.c: Likewise.
33259 * commands/read.c: Likewise.
33260 * commands/reboot.c: Likewise.
33261 * commands/search.c: Likewise.
33262 * commands/sleep.c: Likewise.
33263 * commands/test.c: Likewise.
33264 * commands/usbtest.c: Likewise.
33265 * commands/videotest.c: Likewise.
33266 * commands/i386/cpuid.c: Likewise.
33267 * commands/i386/pc/halt.c: Likewise.
33268 * commands/i386/pc/play.c: Likewise.
33269 * commands/i386/pc/pxecmd.c: Likewise.
33270 * commands/i386/pc/vbeinfo.c: Likewise.
33271 * commands/i386/pc/vbetest.c: Likewise.
33272 * commands/ieee1275/suspend.c: Likewise.
33273 * disk/loopback.c: Likewise.
33274 * font/font_cmd.c: Likewise.
33275 * hello/hello.c: Likewise.
33276 * loader/efi/appleloader.c: Likewise.
33277 * loader/efi/chainloader.c: Likewise.
33278 * loader/i386/bsd.c: Likewise.
33279 * loader/i386/efi/linux.c: Likewise.
33280 * loader/i386/ieee1275/linux.c: Likewise.
33281 * loader/i386/linux.c: Likewise.
33282 * loader/i386/pc/chainloader.c: Likewise.
33283 * loader/i386/pc/linux.c: Likewise.
33284 * loader/powerpc/ieee1275/linux.c: Likewise.
33285 * loader/multiboot_loader.c: Likewise.
33286 * term/gfxterm.c: Likewise.
33287 * term/i386/pc/serial.c: Likewise.
33288 * term/terminfo.c: Likewise.
33290 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33291 * term/i386/pc/vga.c: Likewise.
33292 * video/readers/jpeg.c: Likewise.
33293 * video/readers/png.c: Likewise.
33294 * video/readers/tga.c: Likewise.
33296 * util/grub-fstest (cmd_loopback): Removed.
33297 (cmd_blocklist): Likewise.
33298 (cmd_ls): Likewise.
33299 (grub_register_command): Likewise.
33300 (grub_unregister_command): Likewise.
33301 (execute_command): Use grub_command_find to locate command and execute
33304 * include/grub/efi/chainloader.h: Removed.
33305 * loader/efi/chainloader_normal.c: Likewise.
33306 * loader/i386/bsd_normal.c: Likewise.
33307 * loader/i386/pc/chainloader_normal.c: Likewise.
33308 * loader/i386/pc/multiboot_normal.c: Likewise.
33309 * loader/linux_normal.c: Likewise.
33310 * loader/multiboot_loader_normal.c: Likewise.
33311 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33313 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33314 and grub_register_command_p1.
33316 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33317 kern/command.c, lib/arg.c and commands/extcmd.c.
33318 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33319 (minicmd_mod_SOURCES): New variable.
33320 (minicmd_mod_CFLAGS): Likewise.
33321 (minicmd_mod_LDFLAGS): Likewise.
33322 (extcmd_mod_SOURCES): Likewise.
33323 (extcmd_mod_CFLAGS): Likewise.
33324 (extcmd_mod_LDFLAGS): Likewise.
33325 (boot_mod_SOURCES): Removed.
33326 (boot_mod_CFLAGS): Likewise.
33327 (boot_mod_LDFLAGS): Likewise.
33329 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33331 (kernel_img_HEADERS): Add command.h.
33332 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33333 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33335 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33336 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33337 remove the corresponding normal mode command.
33338 (normal_mod_SOURCES): Remove normal/arg.c.
33339 * conf/i386-coreboot.rmk: Likewise.
33340 * conf/i386-efi.rmk: Likewise.
33341 * conf/i386-ieee1275.rmk: Likewise.
33342 * conf/powerpc-ieee1275.rmk: Likewise.
33343 * conf/x86_64-efi.rmk: Likewise.
33345 * include/grub/arg.h: Move from here ...
33346 * include/grub/lib/arg.h: ... to here.
33348 * normal/arg.c: Move from here ...
33349 * lib/arg.c: ... to here.
33351 * commands/extcmd.c: New file.
33352 * commands/minicmd.c: Likewise.
33353 * include/grub/command.h: Likewise.
33354 * include/grub/extcmd.h: Likewise.
33355 * kern/command.c: Likewise.
33356 * kern/corecmd.c: Likewise.
33358 * kern/list.c (grub_list_iterate): Return int instead of void.
33359 (grub_list_insert): New function.
33360 (grub_prio_list_insert): Likewise.
33362 * kern/rescue.c (grub_rescue_command): Removed.
33363 (grub_rescue_command_list): Likewise.
33364 (grub_rescue_register_command): Likewise.
33365 (grub_rescue_unregister_command): Likewise.
33366 (grub_rescue_cmd_boot): Move to minicmd.c
33367 (grub_rescue_cmd_help): Likewise.
33368 (grub_rescue_cmd_info): Likewise.
33369 (grub_rescue_cmd_boot): Likewise.
33370 (grub_rescue_cmd_testload): Likewise.
33371 (grub_rescue_cmd_dump): Likewise.
33372 (grub_rescue_cmd_rmmod): Likewise.
33373 (grub_rescue_cmd_lsmod): Likewise.
33374 (grub_rescue_cmd_exit): Likewise.
33375 (grub_rescue_print_devices): Moved to corecmd.c.
33376 (grub_rescue_print_files): Likewise.
33377 (grub_rescue_cmd_ls): Likewise.
33378 (grub_rescue_cmd_insmod): Likewise.
33379 (grub_rescue_cmd_set): Likewise.
33380 (grub_rescue_cmd_unset): Likewise.
33381 (attempt_normal_mode): Use grub_command_find to get normal module.
33382 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33383 commands, remove grub_rescue_register_command calls.
33385 * normal/command.c (grub_register_command): Removed.
33386 (grub_unregister_command): Likewise.
33387 (grub_command_find): Likewise.
33388 (grub_iterate_commands): Likewise.
33389 (rescue_command): Likewise.
33390 (export_command): Moved to corecmd.c.
33391 (set_command): Removed.
33392 (unset_command): Likewise.
33393 (insmod_command): Likewise.
33394 (rmmod_command): Likewise.
33395 (lsmod_command): Likewise.
33396 (grub_command_init): Likewise.
33398 * normal/completion.c (iterate_command): Use cmd->prio to check for
33400 (complete_arguments): Use grub_extcmd_t structure to find options.
33401 (grub_normal_do_completion): Change function grub_iterate_commands to
33402 grub_command_iterate.
33404 * normal/execute.c (grub_script_execute_cmd): No need to parse
33407 * normal/main.c (grub_dyncmd_dispatcher): New function.
33408 (read_command_list): Register unload commands as dyncmd.
33409 (grub_cmd_normal): Use new command interface, register rescue,
33410 unregister normal at entry, register normal, unregister rescue at exit.
33412 * include/grub/list.h (grub_list_test_t): New type.
33413 (grub_list_iterate): Return int instead of void.
33414 (grub_list_insert): New function.
33415 (GRUB_AS_NAMED_LIST_P): New macro.
33416 (GRUB_AS_PRIO_LIST): Likewise.
33417 (GRUB_AS_PRIO_LIST_P): Likewise.
33418 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33419 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33420 (grub_prio_list): New structure.
33421 (grub_prio_list_insert): New function.
33422 (grub_prio_list_remove): New inline function.
33424 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33425 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33426 (GRUB_COMMAND_FLAG_MENU): Likewise.
33427 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33428 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33429 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33430 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33431 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33432 (grub_command): Likewise.
33433 (grub_register_command): Likewise.
33434 (grub_command_find): Likewise.
33435 (grub_iterate_commands): Likewise.
33436 (grub_command_init): Likewise.
33437 (grub_arg_parse): Likewise.
33438 (grub_arg_show_help): Likewise.
33440 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33441 (grub_rescue_unregister_command): Likewise.
33443 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33444 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33445 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33447 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33448 grub_rescue_cmd_initrd.
33449 * include/grub/i386/loader.h: Likewise.
33450 * include/grub/x86_64/loader.h: Likewise.
33452 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33454 2009-03-21 Bean <bean123ch@gmail.com>
33456 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33457 instead of stat in mingw environment.
33459 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33461 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33463 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33466 2009-03-21 Bean <bean123ch@gmail.com>
33468 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33469 out of range error.
33471 2009-03-18 Michel Dänzer <michel@daenzer.net>
33473 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33474 checking inode flags for EXT4_EXTENTS_FLAG.
33476 2009-03-18 Robert Millan <rmh@aybabtu.com>
33478 * loader/i386/linux.c: Include `<grub/video.h>' and
33479 `<grub/i386/pc/vbe.h>'..
33480 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33481 (grub_linux32_boot): Attempt to configure video settings with
33482 grub_linux_setup_video().
33483 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33484 to avoid grub_console_fini() which would step out of graphical mode
33487 2009-03-14 Robert Millan <rmh@aybabtu.com>
33489 Fix build on powerpc.
33490 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33492 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33494 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33495 background image command.
33497 2009-03-12 Colin D Bennett <colin@gibibit.com>
33499 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33500 (grub_gfxterm_putchar): Extract pairs of identical calls to
33501 draw_cursor out of conditional blocks.
33503 2009-03-11 Pavel Roskin <proski@gnu.org>
33505 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33506 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33508 2009-03-11 Robert Millan <rmh@aybabtu.com>
33510 * loader/i386/multiboot_elfxx.c
33511 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33513 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33515 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33518 2009-03-11 Robert Millan <rmh@aybabtu.com>
33520 * loader/i386/multiboot.c (code_size): New variable.
33521 (grub_multiboot): Define offsets by adding to `code_size' rather
33522 than subtracting from `grub_multiboot_payload_size'. Provide
33523 4-byte alignment to MBI and others by increasing
33524 `boot_loader_name_length' appropriately.
33526 * loader/i386/multiboot_elfxx.c
33527 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33529 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33531 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33534 2009-03-08 Robert Millan <rmh@aybabtu.com>
33536 Make loader/i386/linux.c usable on i386-pc again.
33538 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33540 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33543 2009-03-07 Bean <bean123ch@gmail.com>
33545 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33548 2009-03-06 Robert Millan <rmh@aybabtu.com>
33550 Fix display issue on terminals with screen size other than 80x25
33551 (e.g. gfxterm with resolution higher than 640x480).
33553 * normal/main.c (grub_normal_init_page): Display title text in a
33554 position relative to the center of the terminal instead of relying
33555 on a hardcoded offset.
33557 2009-03-04 Robert Millan <rmh@aybabtu.com>
33559 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33562 * Makefile.in (host_kernel): New variable.
33563 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33564 scripts instead of just the windows one.
33565 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33567 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33569 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33571 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33572 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33573 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33574 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33575 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33576 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33578 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33580 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33581 or if there's no space for the disk label and print the partition number on a
33584 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33586 * util/misc.c: Include <time.h>.
33587 (grub_millisleep): New function.
33589 2009-03-04 Bean <bean123ch@gmail.com>
33591 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33592 another option -mno-red-zone.
33594 * commands/handler.c: Change module description.
33596 * kern/handler.c: Add missing space at the end of description line.
33598 * kern/list.c: Likewise.
33600 2009-03-03 Robert Millan <rmh@aybabtu.com>
33602 Move more components to the relocation area, and fix mbi pointer
33603 handling to use the destination rather than the origin (thanks to
33604 Vladimir Serbinenko for spotting).
33606 * loader/i386/multiboot.c (mbi_dest): New variable.
33607 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33608 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33611 2009-03-01 Bean <bean123ch@gmail.com>
33613 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33614 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33615 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33616 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33618 * loader/i386/efi/linux.c (acpi_guid): New variable.
33619 (acpi_guid): Likewise.
33620 (EBDA_SEG_ADDR): New constant.
33621 (LOW_MEM_ADDR): Likewise.
33622 (FAKE_EBDA_SEG): Likewise.
33623 (fake_bios_data): New function.
33624 (grub_linux_boot): Call fake_bios_data.
33626 2009-03-01 Bean <bean123ch@gmail.com>
33628 * commands/terminal.c: Removed.
33630 * commands/handler.c: New file.
33632 * include/grub/list.h: Likewise.
33634 * include/grub/handler.h: Likewise.
33636 * kern/list.c: Likewise.
33638 * kern/handler.c: Likewise.
33640 * kern/term.h: Include header file <grub/handler.h>.
33641 (grub_term_input): Move next field to the beginning.
33642 (grub_term_output): Likewise.
33643 (grub_term_input_class): New variable.
33644 (grub_term_output_class): Likewise.
33645 (grub_term_register_input): Changed to inline function.
33646 (grub_term_register_output): Likewise.
33647 (grub_term_unregister_input): Likewise.
33648 (grub_term_unregister_output): Likewise.
33649 (grub_term_set_current_input): Likewise.
33650 (grub_term_set_current_output): Likewise.
33651 (grub_term_get_current_input): Likewise.
33652 (grub_term_get_current_output): Likewise.
33653 (grub_term_iterate_input): Removed.
33654 (grub_term_iterate_output): Likewise.
33656 * kern/term.c (grub_term_list_input): Removed.
33657 (grub_term_list_output): Likewise.
33658 (grub_term_input_class): New variable.
33659 (grub_term_output_class): Likewise.
33660 (grub_cur_term_input): Change variable as macro.
33661 (grub_cur_term_output): Likewise.
33662 (grub_term_register_input): Removed.
33663 (grub_term_register_output): Likewise.
33664 (grub_term_unregister_input): Likewise.
33665 (grub_term_unregister_output): Likewise.
33666 (grub_term_set_current_input): Likewise.
33667 (grub_term_set_current_output): Likewise.
33668 (grub_term_iterate_input): Likewise.
33669 (grub_term_iterate_output): Likewise.
33670 (grub_term_get_current_input): Likewise.
33671 (grub_term_get_current_output): Likewise.
33673 * util/grub-editenv.c: Include header file <grub/handler.h>.
33674 (grub_term_get_current_input): Removed.
33675 (grub_term_get_current_output): Likewise.
33676 (grub_term_input_class): New variable.
33677 (grub_term_output_class): Likewise.
33679 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33680 (grub_term_get_current_output): Likewise.
33681 (grub_term_input_class): New variable.
33682 (grub_term_output_class): Likewise.
33684 * util/grub-probe.c (grub_term_get_current_input): Removed.
33685 (grub_term_get_current_output): Likewise.
33686 (grub_term_input_class): New variable.
33687 (grub_term_output_class): Likewise.
33689 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33690 (grub_term_get_current_output): Likewise.
33691 (grub_term_input_class): New variable.
33692 (grub_term_output_class): Likewise.
33694 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33695 (terminal_mod_SOURCES): Likewise.
33696 (terminal_mod_CFLAGS): Likewise.
33697 (terminal_mod_LDFLAGS): Likewise.
33699 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33701 (kernel_img_SOURCES): Add list.c and handler.c.
33702 (kernel_img_HEADERS): Add list.h and handler.h.
33704 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33706 (kernel_mod_SOURCES): Add list.c and handler.c.
33707 (kernel_mod_HEADERS): Add list.h and handler.h.
33709 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33711 (kernel_elf_SOURCES): Add list.c and handler.c.
33712 (kernel_elf_HEADERS): Add list.h and handler.h.
33714 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33716 (kernel_elf_SOURCES): Add list.c and handler.c.
33717 (kernel_elf_HEADERS): Add list.h and handler.h.
33719 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33721 (kernel_mod_SOURCES): Add list.c and handler.c.
33722 (kernel_mod_HEADERS): Add list.h and handler.h.
33724 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33726 (kernel_elf_SOURCES): Add list.c and handler.c.
33727 (kernel_elf_HEADERS): Add list.h and handler.h.
33729 2009-02-27 Robert Millan <rmh@aybabtu.com>
33731 Factorize elf32 / elf64 code in Multiboot loader. This will
33732 prevent it from getting out of sync again.
33734 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33735 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33736 grub_multiboot_load_elf64): Move from here ...
33737 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33738 grub_multiboot_load_elf): ... to here (new file).
33740 2009-02-27 Robert Millan <rmh@aybabtu.com>
33742 * util/grub.d/10_linux.in: Rename "single-user mode" to
33745 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33747 Don't leak in SCSI code.
33748 * disk/scsi.c (grub_scsi_close): free `scsi'.
33750 2009-02-27 Robert Millan <rmh@aybabtu.com>
33752 * loader/i386/pc/multiboot.c: Move from here ...
33753 * loader/i386/multiboot.c: ... to here. Update all users.
33755 2009-02-27 Robert Millan <rmh@aybabtu.com>
33757 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33758 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33760 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33762 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33765 2009-02-27 Robert Millan <rmh@aybabtu.com>
33767 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33768 `0x' qualifier as 0 when base is specified as parameter).
33770 2009-02-24 Bean <bean123ch@gmail.com>
33772 * configure.ac: Check for -mcmodel=large in x86_64 target.
33774 * include/grub/efi/api.h (efi_call_10): New macro.
33775 (efi_wrap_10): New function.
33777 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33778 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33779 (GRUB_PE32_REL_BASED_LOW): Likewise.
33780 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33781 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33782 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33783 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33784 (GRUB_PE32_REL_BASED_REL): Likewise.
33785 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33786 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33787 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33789 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33792 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33793 (efi_wrap_10): New function.
33795 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33797 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33798 MB/MBP model (NV chipset).
33799 (devdata_devs): Add devpath_5 to the list.
33801 * load/i386/efi/linux.c (video_base): Remove variable.
33802 (RGB_MASK): New macro.
33803 (RGB_MAGIC): Likewise.
33804 (LINE_MIN): Likewise.
33805 (LINE_MAX): Likewise.
33806 (FBTEST_STEP): Likewise.
33807 (FBTEST_COUNT): Likewise.
33808 (fb_list): New variable.
33809 (grub_find_video_card): Remove function.
33810 (find_framebuf): New function.
33811 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33814 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33815 problem for x86_64.
33817 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33819 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33821 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33824 2009-02-22 Robert Millan <rmh@aybabtu.com>
33826 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33827 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33828 in our relocation, instead of using it directly from heap. Also
33829 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33831 2009-02-21 Robert Millan <rmh@aybabtu.com>
33833 Implement USB keyboard support (based on patch by Marco Gerards)
33835 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33836 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33837 (usb_keyboard_mod_LDFLAGS): New variables.
33839 * term/usb_keyboard.c: New file.
33841 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33843 Corrected wrong declaration
33845 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33847 2009-02-14 Christian Franke <franke@computer.org>
33849 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33850 (grub_lspci_iter): Print class code and programming interface byte.
33852 2009-02-14 Christian Franke <franke@computer.org>
33854 * gendistlist.sh: Ignore `.svn' directories.
33856 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33858 * fs/fat.c: Add 2009 to Copyright line.
33860 2009-02-14 Christian Franke <franke@computer.org>
33862 * commands/hdparm.c: New file. Provides `hdparm' command
33863 which sends ATA commands via grub_disk_ata_pass_through ().
33865 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33867 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33868 and <grub/cpu/io.h> to include/grub/ata.h.
33869 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33870 (GRUB_CDROM_SECTOR_SIZE): Remove.
33871 (GRUB_ATA_*): Move to include/grub/ata.h.
33872 (GRUB_ATAPI_*): Likewise.
33873 (enum grub_ata_commands): Likewise.
33874 (enum grub_ata_timeout_milliseconds): Likewise.
33875 (struct grub_ata_device): Likewise.
33876 (grub_ata_regset): Likewise.
33877 (grub_ata_regget): Likewise.
33878 (grub_ata_regset2): Likewise.
33879 (grub_ata_regget2): Likewise.
33880 (grub_ata_check_ready): Likewise.
33881 (grub_ata_wait_not_busy): Remove static, exported in
33882 include/grub/ata.h.
33883 (grub_ata_wait_drq): Likewise.
33884 (grub_ata_pio_read): Likewise.
33886 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33887 function for hdparm.mod.
33889 * include/grub/ata.h: New file, contains declarations from
33891 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33893 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33894 (grub_disk_ata_pass_through): New exported variable.
33896 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33898 2009-02-13 Colin D Bennett <colin@gibibit.com>
33900 Support multiple fallback entries, and provide an API to support
33901 executing default+fallback menu entries. Renamed the `terminal' menu
33904 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33905 variable declaration.
33906 (grub_menu_execute_callback): New structure declaration.
33907 (grub_menu_execute_callback_t): New typedef.
33908 (grub_menu_execute_with_fallback): New function declaration.
33909 (grub_menu_get_entry): Likewise.
33910 (grub_menu_get_timeout): Likewise.
33911 (grub_menu_set_timeout): Likewise.
33913 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33915 * normal/menu.c (grub_wait_after_message): Moved to
33916 `normal/menu_text.c'.
33917 (draw_border): Likewise.
33918 (print_message): Likewise.
33919 (print_entry): Likewise.
33920 (print_entries): Likewise.
33921 (grub_menu_init_page): Likewise.
33922 (get_entry_number): Likewise.
33923 (print_timeout): Likewise.
33924 (run_menu): Likewise.
33925 (grub_menu_execute_entry): Likewise.
33926 (show_text_menu): Likewise.
33927 (get_and_remove_first_entry_number): New function.
33928 (grub_menu_execute_with_fallback): Likewise.
33929 (get_entry): Renamed to ...
33930 (grub_menu_get_entry): .. this and made it global.
33931 (get_timeout): Renamed to ...
33932 (grub_menu_get_timeout): ... this and made it global.
33933 (set_timeout): Renamed to ...
33934 (grub_menu_set_timeout): ... this and made it global.
33935 (grub_normal_terminal_menu_viewer): Renamed to ...
33936 (grub_normal_text_menu_viewer): ... this.
33938 * normal/menu_text.c: New file. Extracted text-menu-specific code
33939 from normal/menu.c.
33941 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33942 (normal_mod_SOURCES): Likewise.
33944 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33945 (normal_mod_SOURCES): Likewise.
33947 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33948 (normal_mod_SOURCES): Likewise.
33950 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33951 (normal_mod_SOURCES): Likewise.
33953 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33954 (normal_mod_SOURCES): Likewise.
33956 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33957 (normal_mod_SOURCES): Likewise.
33959 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33960 (normal_mod_SOURCES): Likewise.
33962 2009-02-11 Robert Millan <rmh@aybabtu.com>
33964 * util/grub.d/00_header.in: Update old reference to `font' command.
33966 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33968 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33970 Based on patch from Javier Martín.
33972 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33974 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33975 to avoid false positives with FAT.
33976 (grub_fstest_SOURCES): Likewise.
33977 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33978 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33979 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33980 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33981 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33982 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33984 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33986 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33987 bpb.version_specific.fat12_or_fat16.fstype and
33988 bpb.version_specific.fat32.fstype.
33990 2009-02-08 Robert Millan <rmh@aybabtu.com>
33992 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33994 2009-02-08 Robert Millan <rmh@aybabtu.com>
33996 * Makefile.in (host_os, host_cpu): New variables.
33997 (target_os): Remove. Update all users.
33999 2009-02-08 Marco Gerards <marco@gnu.org>
34001 * Makefile.in (enable_grub_emu_usb): New variable.
34002 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
34003 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
34004 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
34005 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
34006 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
34007 `usbtest.mod' and `usbms.mod'.
34008 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
34009 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
34010 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
34011 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
34012 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
34015 * disk/usbms.c: New file.
34017 * include/grub/usb.h: Likewise.
34019 * include/grub/usbtrans.h: Likewise.
34021 * include/grub/usbdesc.h: Likewise.
34023 * bus/usb/usbtrans.c: Likewise.
34025 * bus/usb/ohci.c: Likewise.
34027 * bus/usb/uhci.c: Likewise.
34029 * bus/usb/usbhub.c: Likewise.
34031 * bus/usb/usb.c: Likewise.
34033 * commands/usbtest.c: Likewise.
34035 * util/usb.c: Likewise.
34037 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
34039 * configure.ac: Test for libusb presence.
34041 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
34043 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
34045 * kern/mm.c: Add more comments.
34047 2009-02-08 Robert Millan <rmh@aybabtu.com>
34049 Patch from Javier Martín.
34050 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
34051 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34053 2009-02-08 Robert Millan <rmh@aybabtu.com>
34055 * fs/cpio.c: Split tar functionality to ...
34056 * fs/tar.c: ... here (new file). Update all users.
34058 2009-02-07 Robert Millan <rmh@aybabtu.com>
34060 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34061 backward-incompatible features.
34063 Based on patch from Javier Martín, with some adjustments.
34065 2009-02-07 Michael Scherer <misc@mandriva.org>
34067 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34069 2009-02-07 Robert Millan <rmh@aybabtu.com>
34071 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34072 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34073 after the RAID stuff.
34075 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34077 Fixes problem when running vbetest command as reported by
34078 Vladimir Serbinenko <phcoder@gmail.com>.
34080 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34082 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
34084 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34085 /dev/md/NpN style mdraid devices.
34087 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34089 * util/unifont2pff.rb: Remove.
34091 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34093 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34096 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34098 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34099 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34100 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34101 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34102 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34103 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34104 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34106 2009-02-02 Christian Franke <franke@computer.org>
34108 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34110 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
34112 * INSTALL: Note that we now require at least autoconf 2.59 and
34113 that LZO is optional.
34115 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34117 Base on patch on bug #24154 created by Tomas Tintera
34118 <trosos@seznam.cz>.
34120 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34122 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34124 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
34125 <bero@arklinux.org>.
34127 * normal/parser.y (script_init): Add missing semicolon.
34129 2009-01-31 Colin D Bennett <colin@gibibit.com>
34131 * normal/main.c: Add include to grub/menu_viewer.h.
34132 (free_menu_entry_classes): Added.
34133 (grub_normal_menu_addentry): Added class property handling.
34134 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34135 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34137 * normal/menu_viewer.c: New file.
34139 * normal/menu.c (run_menu_entry): Renamed to ...
34140 (grub_menu_execute_entry): ... this and made it as global.
34141 (grub_menu_run): Renamed to ...
34142 (show_text_menu): ... this and made it local.
34143 (show_text_menu): Adapt to new function names.
34144 (grub_normal_terminal_menu_viewer): New global variable.
34146 * include/grub/menu.h: New file.
34148 * include/grub/menu_viewer.h: New file.
34150 * include/grub/normal.h: Added include to grub/menu.h.
34151 (grub_menu_entry): Moved to include/grub/menu.h.
34152 (grub_menu_entry_t): Likewise.
34153 (grub_menu): Likewise.
34154 (grub_menu_t): Likewise.
34155 (grub_normal_terminal_menu_viewer): Added.
34156 (grub_menu_execute_entry): Likewise.
34157 (grub_menu_run): Removed.
34159 * DISTLIST: Added include/grub/menu.h.
34160 Added include/grub/menu_viewer.h.
34161 Added normal/menu_viewer.c.
34163 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34165 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34166 arglist for menutitle arguments.
34168 * normal/main.c (grub_normal_menu_addentry): Likewise.
34170 * normal/parser.y (menuentry): Likewise.
34172 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34174 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34175 (grub_script_create_cmdmenu): Likewise.
34177 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34179 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34182 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34184 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34186 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34188 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34190 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34192 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34194 2009-01-30 Christian Franke <franke@computer.org>
34196 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34197 in option help text.
34199 2009-01-27 Pavel Roskin <proski@gnu.org>
34201 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34203 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34205 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34207 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34209 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34210 unregister function.
34212 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34214 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34216 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34218 * util/grub-mkfont.c (usage): Fix typo.
34220 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34222 2009-01-26 Daniel Mierswa <impulze@impulze.org>
34224 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34226 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34228 * kern/misc.c (grub_strcasecmp): New function.
34229 (grub_strcasecmp): Use grub_size_t instead of int for length.
34231 * include/grub/misc.h: Update function prototypes.
34233 2009-01-26 Robert Millan <rmh@aybabtu.com>
34235 * configure.ac: Fix cross-compilation check.
34237 2009-01-22 Christian Franke <franke@computer.org>
34239 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34240 (precision) digit string. Allow `.format2' without `format1' (width).
34241 Limit input chars for `%s' output to `format2' if specified. This is
34242 compatible with standard printf ().
34244 2009-01-22 Christian Franke <franke@computer.org>
34246 * disk/ata.c (grub_ata_wait_status): Replace by ...
34247 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34248 other status bits may be invalid while BSY is asserted.
34249 (grub_ata_check_ready): New function.
34250 (grub_ata_cmd): Removed.
34251 (grub_ata_wait_drq): New function.
34252 (grub_ata_strncpy): Remove inline.
34253 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34254 and error check now done by grub_ata_wait_drq ().
34255 (grub_ata_pio_write): Likewise.
34256 (grub_atapi_identify): Set DEV before check for !BSY. Use
34257 grub_ata_wait_drq () to wait for data.
34258 (grub_ata_device_initialize): Add status register check to
34259 detect missing SATA slave devices. Add debug messages.
34260 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34261 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34262 transfer loop by grub_ata_pio_write ().
34263 (grub_ata_identify): Set DEV before check for !BSY. Use
34264 grub_ata_wait_drq () to wait for data.
34265 (grub_ata_setaddress): Set DEV before check for !BSY.
34266 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34267 read/write in one loop. Fix invalid command on write. Fix incomplete
34268 command on (size % batch) == 0. Add missing error check after write of
34269 last block. Add debug messages.
34270 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34272 2009-01-19 Christian Franke <franke@computer.org>
34274 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34275 (GRUB_ATAPI_IREASON_*): Likewise.
34276 (grub_ata_pio_write): Fix timeout error return.
34277 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34278 (grub_atapi_wait_drq): New function.
34279 (grub_atapi_packet): New parameter `size'.
34280 Use grub_atapi_wait_drq () and direct write instead of
34281 grub_ata_pio_write ().
34282 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34283 reads the number of bytes requested by the device for each DRQ
34285 (grub_atapi_write): Remove old implementation, return not
34286 implemented instead.
34288 2009-01-19 Christian Franke <franke@computer.org>
34290 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34291 of 512 to calculate data size.
34292 (grub_scsi_read12): Likewise.
34293 (grub_scsi_write10): Likewise.
34294 (grub_scsi_write12): Likewise.
34295 (grub_scsi_read): Adjust size according to blocksize.
34296 Add checks for invalid blocksize and unaligned transfer.
34298 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34300 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34302 * term/gfxterm.c (write_char): Fix background rendering for wide
34305 2009-01-19 Robert Millan <rmh@aybabtu.com>
34307 * config.guess: Update to latest version from config git.
34308 * config.sub: Likewise.
34310 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
34312 * Makefile.in: Change font compilation to use new grub-mkfont instead
34315 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34316 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34317 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34318 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34319 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34320 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34321 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34322 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34323 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34325 2009-01-16 Christian Franke <franke@computer.org>
34327 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34328 (enum grub_ata_timeout_milliseconds): New enum.
34329 (grub_ata_wait_status): Add parameter milliseconds.
34330 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34331 recovery from timed-out commands.
34332 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34333 return grub_errno instead of REG_ERROR.
34334 (grub_ata_pio_write): Add parameter milliseconds.
34335 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34336 Pass milliseconds to grub_ata_wait_status () and
34337 grub_ata_pio_read ().
34338 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34339 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34340 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34341 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34342 It is not suitable for device detection, because DEV bit is ignored,
34343 the command may run too long, and not all devices set the signature
34345 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34346 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34347 Fix device selection, DEV bit must be set first to address the registers
34348 of the correct device.
34349 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34350 grub_ata_pio_read/write ().
34351 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34352 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34354 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34356 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34358 2009-01-13 Bean <bean123ch@gmail.com>
34360 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34362 2009-01-13 Bean <bean123ch@gmail.com>
34364 * Makefile.in: (enable_grub_mkfont): New variable.
34365 (freetype_cflags): Likewise.
34366 (freetype_libs): Likewise.
34368 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34369 (grub_mkfont_SOURCES): New variable.
34370 (grub_mkfont_CFLAGS): Likewise.
34371 (grub_mkfont_LDFLAGS): Likewise.
34373 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34374 library if `--enable-grub-mkfont' is requested.
34375 (enable_grub_mkfont): New variable.
34376 (freetype_cflags): Likewise.
34377 (freetype_libs): Likewise.
34379 * util/grub-mkfont.c: New file.
34381 2009-01-12 Christian Franke <franke@computer.org>
34383 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34384 mode check. Fix setting of compat_use[].
34386 2009-01-10 Robert Millan <rmh@aybabtu.com>
34388 Update a few copyright years which we forgot to do in 2008 (only for
34389 files whose changes made in 2008 were copyright-significant)
34391 * Makefile.in: Add 2008 to Copyright line.
34392 * disk/ieee1275/ofdisk.c: Likewise.
34393 * disk/efi/efidisk.c: Likewise.
34394 * kern/dl.c: Likewise.
34395 * kern/sparc64/ieee1275/init.c: Likewise.
34396 * kern/mm.c: Likewise.
34397 * kern/efi/mm.c: Likewise.
34398 * boot/i386/pc/boot.S: Likewise.
34399 * genfslist.sh: Likewise.
34400 * fs/iso9660.c: Likewise.
34401 * fs/hfs.c: Likewise.
34402 * fs/jfs.c: Likewise.
34403 * fs/minix.c: Likewise.
34404 * fs/ufs.c: Likewise.
34405 * gensymlist.sh.in: Likewise.
34406 * genkernsyms.sh.in: Likewise.
34407 * include/grub/misc.h: Likewise.
34408 * include/grub/types.h: Likewise.
34409 * include/grub/symbol.h: Likewise.
34410 * include/grub/elf.h: Likewise.
34411 * include/grub/kernel.h: Likewise.
34412 * include/grub/disk.h: Likewise.
34413 * include/grub/dl.h: Likewise.
34414 * include/grub/i386/linux.h: Likewise.
34415 * include/grub/i386/pc/biosdisk.h: Likewise.
34416 * include/grub/efi/api.h: Likewise.
34417 * include/grub/efi/pe32.h: Likewise.
34418 * include/grub/util/misc.h: Likewise.
34419 * normal/execute.c: Likewise.
34420 * normal/arg.c: Likewise.
34421 * normal/completion.c: Likewise.
34422 * normal/lexer.c: Likewise.
34423 * normal/parser.y: Likewise.
34424 * normal/misc.c: Likewise.
34425 * commands/i386/pc/vbeinfo.c: Likewise.
34426 * commands/hexdump.c: Likewise.
34427 * commands/terminal.c: Likewise.
34428 * commands/ls.c: Likewise.
34429 * commands/help.c: Likewise.
34430 * partmap/pc.c: Likewise.
34431 * loader/efi/chainloader.c: Likewise.
34432 * loader/multiboot_loader.c: Likewise.
34433 * loader/i386/pc/multiboot2.c: Likewise.
34434 * term/efi/console.c: Likewise.
34435 * term/i386/pc/serial.c: Likewise.
34436 * util/lvm.c: Likewise.
34437 * util/console.c: Likewise.
34438 * util/i386/efi/grub-mkimage.c: Likewise.
34439 * util/raid.c: Likewise.
34441 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34443 * commands/videotest.c: Removed include to grub/machine/memory.h.
34445 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34446 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34447 (video_mod_SOURCES): Removed.
34448 (video_mod_CFLAGS): Likewise.
34449 (video_mod_LDFLAGS): Likewise.
34450 (gfxterm_mod_SOURCES): Likewise.
34451 (gfxterm_mod_CFLAGS): Likewise.
34452 (gfxterm_mod_LDFLAGS): Likewise.
34453 (videotest_mod_SOURCES): Likewise.
34454 (videotest_mod_CFLAGS): Likewise.
34455 (videotest_mod_LDFLAGS): Likewise.
34456 (bitmap_mod_SOURCES): Likewise.
34457 (bitmap_mod_CFLAGS): Likewise.
34458 (bitmap_mod_LDFLAGS): Likewise.
34459 (tga_mod_SOURCES): Likewise.
34460 (tga_mod_CFLAGS): Likewise.
34461 (tga_mod_LDFLAGS): Likewise.
34462 (jpeg_mod_SOURCES): Likewise.
34463 (jpeg_mod_CFLAGS): Likewise.
34464 (jpeg_mod_LDFLAGS): Likewise.
34465 (png_mod_SOURCES): Likewise.
34466 (png_mod_CFLAGS): Likewise.
34467 (png_mod_LDFLAGS): Likewise.
34469 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34470 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34471 (video_mod_SOURCES): Added.
34472 (video_mod_CFLAGS): Likewise.
34473 (video_mod_LDFLAGS): Likewise.
34474 (videotest_mod_SOURCES): Likewise.
34475 (videotest_mod_CFLAGS): Likewise.
34476 (videotest_mod_LDFLAGS): Likewise.
34477 (bitmap_mod_SOURCES): Likewise.
34478 (bitmap_mod_CFLAGS): Likewise.
34479 (bitmap_mod_LDFLAGS): Likewise.
34480 (tga_mod_SOURCES): Likewise.
34481 (tga_mod_CFLAGS): Likewise.
34482 (tga_mod_LDFLAGS): Likewise.
34483 (jpeg_mod_SOURCES): Likewise.
34484 (jpeg_mod_CFLAGS): Likewise.
34485 (jpeg_mod_LDFLAGS): Likewise.
34486 (png_mod_SOURCES): Likewise.
34487 (png_mod_CFLAGS): Likewise.
34488 (png_mod_LDFLAGS): Likewise.
34489 (gfxterm_mod_SOURCES): Likewise.
34490 (gfxterm_mod_CFLAGS): Likewise.
34491 (gfxterm_mod_LDFLAGS): Likewise.
34493 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34494 grub/machine/console.h.
34496 2009-01-04 Jerone Young <jerone@gmail.com>
34498 Make on screen instructions clearer
34500 Based on patch created by Jidanni <jidanni@jidanni.org>
34502 * normal/menu.c: print clearer instructions on the screen
34504 2009-01-02 Colin D Bennett <colin@gibibit.com>
34508 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34509 build system and fixed gfxterm.c to work with different sized fonts.
34511 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34513 * configure: Re-generated.
34515 * DISTLIST: Removed font/manager.c.
34517 Added font/font_cmd.c.
34519 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34522 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34524 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34526 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34528 * normal/menu.c: Likewise.
34530 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34531 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34533 * include/grub/font.h: Replaced with new file.
34535 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34536 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34537 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34538 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34539 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34540 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34541 fg_red, fg_green, fg_blue, fg_alpha.
34542 (grub_video_adapter): Removed blit_glyph.
34543 (grub_video_blit_glyph): Removed.
34545 * font/manager.c: Removed file.
34547 * font/font.c: New file.
34549 * font/font_cmd.c: Likewise.
34551 * video/video.c (grub_video_blit_glyph): Removed.
34553 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34554 (grub_video_vbe_map_rgba): Likewise.
34555 (grub_video_vbe_unmap_color_int): Likewise.
34556 (grub_video_vbe_blit_glyph): Removed.
34557 (grub_video_vbe_adapter): Removed blit_glyph.
34559 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34560 (get_pixel): Likewise.
34561 (set_pixel): Likewise.
34563 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34565 * term/gfxterm.c: Adapted to new font engine.
34567 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34569 * term/i386/pc/vga.c: Likewise.
34571 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34573 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34575 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34577 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34579 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34581 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34583 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34585 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34587 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34589 * util/grub.d/00_header.in: Changed to use new loadfont command.
34591 * util/grub-mkconfig_lib.in: Changed font extension.
34593 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34595 * util/getroot.c (grub_util_get_grub_dev): Add support for
34596 /dev/md/dNNpNN style partitionable mdraid devices.
34598 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34600 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34601 at a time limit of the PXE TFTP API correctly.
34602 (grub_pxefs_close): Likewise.
34604 2008-11-29 Robert Millan <rmh@aybabtu.com>
34606 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34607 grub_ata_device_initialize() calls.
34609 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34611 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34613 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34615 2008-11-28 Robert Millan <rmh@aybabtu.com>
34617 Fix build on powerpc-ieee1275. Based on patch created by
34618 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34619 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34620 `kern/ieee1275/mmap.c'.
34621 * include/grub/powerpc/ieee1275/memory.h: New file.
34623 Provide grub-install on coreboot.
34624 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34625 (grub_install_SOURCES): New variable.
34626 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34627 usable on coreboot.
34629 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34631 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34632 to `grub_term_input_t'.
34633 (grub_term_get_current_output): Change return type to
34634 `grub_term_output_t'.
34636 2008-11-22 Robert Millan <rmh@aybabtu.com>
34638 Fix breakage on coreboot due to declaration mismatch.
34639 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34640 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34641 grub_vga_text_cls().
34643 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34644 comments. Avoid copying one more byte than necessary (just in case).
34646 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34647 to 0x200000 (avoids trouble with some OFW implementations, and matches
34648 with the one in Yaboot).
34649 Reported by Manoel Abranches
34651 2008-11-20 Robert Millan <rmh@aybabtu.com>
34653 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34654 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34656 * util/grub-mkconfig_lib.in (grub_warn): New function.
34657 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34658 warnings, to obtain consistent formatting.
34659 * util/grub.d/00_header.in: Likewise.
34660 * util/update-grub_lib.in: Likewise.
34662 * loader/i386/linux.c (allocate_pages): Fix a warning.
34663 Move comment text to `#error' stanza.
34665 Harmonize ieee1275's grub_available_iterate() with the generic
34666 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34667 build problem on i386-ieee1275):
34668 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34669 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34670 parameter `type'. Update all users of this function.
34671 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34672 `kern/ieee1275/mmap.c'.
34673 * kern/ieee1275/init.c
34674 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34676 (grub_machine_mmap_iterate): ... this.
34677 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34678 return type to `grub_err_t'. Update all implementations of this
34679 function prototype.
34680 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34683 Add `lsmmap' command (lists firmware-provided memory map):
34684 * commands/lsmmap.c: New file.
34685 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34686 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34688 * conf/powerpc-ieee1275.rmk: Likewise.
34689 * conf/i386-coreboot.rmk: Likewise.
34690 * conf/i386-ieee1275.rmk: Likewise.
34692 2008-11-19 Robert Millan <rmh@aybabtu.com>
34694 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34695 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34696 constraints to initrd allocation (based on code from
34697 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34698 for Linux to find it.
34700 2008-11-14 Robert Millan <rmh@aybabtu.com>
34702 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34703 order to cope with duplicate slashes.
34705 2008-11-14 Robert Millan <rmh@aybabtu.com>
34707 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34708 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34709 don't want to mess with lower memory, because it is used in the Linux
34712 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34713 an appropriate place in lower memory, between 0x10000 and 0x90000,
34714 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34715 is in our heap (probably as a result of it being corrupted during
34716 decompression). Add #error instance with comment to explain why this
34717 loader isn't currently usable on PC/BIOS.
34719 2008-11-14 Robert Millan <rmh@aybabtu.com>
34721 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34722 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34724 2008-11-12 Robert Millan <rmh@aybabtu.com>
34726 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34728 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34729 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34731 * include/grub/i386/pc/memory.h: ... to here.
34733 2008-11-12 Robert Millan <rmh@aybabtu.com>
34735 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34738 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34739 (grub_console_cur_color, grub_console_real_putchar)
34740 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34741 (grub_console_setcolorstate, grub_console_setcolor)
34742 (grub_console_getcolor): Move from here ...
34743 * include/grub/i386/vga_common.h: ... to here (new file).
34745 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34746 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34747 `<grub/i386/io.h>'.
34748 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34749 `<grub/i386/vga_common.h>'.
34751 2008-11-12 Robert Millan <rmh@aybabtu.com>
34753 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34754 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34755 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34757 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34758 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34760 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34761 grub_console_init() with call to grub_vga_text_init().
34762 (grub_machine_fini): Replace call to
34763 grub_console_fini() with call to grub_vga_text_fini() and
34764 grub_at_keyboard_fini().
34766 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34767 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34768 (grub_console_setcolorstate, grub_console_setcolor)
34769 (grub_console_getcolor): New function prototypes.
34771 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34772 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34773 (grub_vga_text_setcursor): Static-ize.
34774 (grub_vga_text_term): New structure.
34775 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34777 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34778 (grub_console_cur_color, grub_console_standard_color)
34779 (grub_console_normal_color, grub_console_highlight_color)
34780 (map_char, grub_console_putchar, grub_console_getcharwidth)
34781 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34782 (grub_console_getcolor): Move from here ...
34783 * term/i386/vga_common.c: ... to here (same function names).
34785 2008-11-12 Robert Millan <rmh@aybabtu.com>
34787 Use newly-added Multiboot support in coreboot.
34789 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34790 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34792 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34793 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34794 (codestart): Store the MBI in `startup_multiboot_info' when we're
34795 being loaded using Multiboot.
34797 * kern/i386/coreboot/init.c (grub_machine_init): Move
34798 grub_at_keyboard_init() call to beginning of function (useful for
34799 debugging). Call grub_machine_mmap_init() before attempting to use
34800 grub_machine_mmap_iterate().
34801 (grub_lower_mem, grub_upper_mem): Move from here ...
34802 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34805 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34806 function prototype.
34808 2008-11-12 Robert Millan <rmh@aybabtu.com>
34810 Fix a regression introduced by the at_keyboard.mod split. Because
34811 some terminals are default on some platforms and non-default on
34812 others, the first terminal being registered determines which is
34813 going to be default.
34815 * kern/term.c (grub_term_register_input): If this is the first
34816 terminal being registered, set it as the current one.
34817 (grub_term_register_output): Likewise.
34819 * term/efi/console.c (grub_console_init): Do not call
34820 grub_term_set_current_output() or grub_term_set_current_input().
34821 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34822 * term/i386/pc/console.c (grub_console_init): Likewise.
34823 (grub_console_fini): Do not call grub_term_set_current_input()
34824 (but leave grub_term_set_current_output() to restore text mode).
34826 2008-11-10 Robert Millan <rmh@aybabtu.com>
34828 * util/grub.d/00_header.in: Add backward compatibility check for
34829 versions of terminal.mod that don't understand `terminal_input' or
34832 2008-11-09 Robert Millan <rmh@aybabtu.com>
34834 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34835 `terminal_input' / `terminal_output', not `terminal'.
34837 2008-11-08 Robert Millan <rmh@aybabtu.com>
34839 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34840 (DISTCLEANFILES): Add `build_env.mk'.
34842 2008-11-08 Robert Millan <rmh@aybabtu.com>
34844 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34845 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34846 members. Update all users.
34847 * util/console.c (grub_ncurses_term): Split in ...
34848 (grub_ncurses_term_input): ... this, and ...
34849 (grub_ncurses_term_output): ... this. Update all users.
34850 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34852 2008-11-08 Robert Millan <rmh@aybabtu.com>
34854 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34855 (PKGDATA): Add $(pkgdata_SRCDIR).
34856 (pkglib_BUILDDIR): New variable.
34857 (pkgdata_SRCDIR): New variable.
34858 (build_env.mk): New target.
34859 (include_DATA): New variable.
34860 (install-local): Install $(include_DATA) files in $(includedir).
34862 2008-11-07 Pavel Roskin <proski@gnu.org>
34864 * gendistlist.sh: Use C locale for sorting to ensure consistent
34865 output on all systems.
34867 * util/grub.d/00_header.in: Remove incorrect space before
34870 2008-11-07 Robert Millan <rmh@aybabtu.com>
34872 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34874 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34875 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34876 (based on find_multi_boot1_header).
34877 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34878 using find_multi_boot2_header(), and abort if neither Multiboot or
34879 Multiboot headers were found.
34881 2008-11-07 Robert Millan <rmh@aybabtu.com>
34883 Modularize at_keyboard.mod:
34885 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34886 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34887 (at_keyboard_mod_LDFLAGS): New variables.
34889 Actual terminal split:
34891 * include/grub/term.h (struct grub_term): Split in ...
34892 (struct grub_term_input): ... this, and ...
34893 (struct grub_term_output): ... this. Update all users.
34894 (grub_term_set_current): Split in ...
34895 (grub_term_set_current_input): ... this, and ...
34896 (grub_term_set_current_output): ... this.
34897 (grub_term_get_current): Split in ...
34898 (grub_term_get_current_input): ... this, and ...
34899 (grub_term_get_current_output): ... this.
34900 (grub_term_register): Split in ...
34901 (grub_term_register_input): ... this, and ...
34902 (grub_term_register_output): ... this.
34903 (grub_term_unregister): Split in ...
34904 (grub_term_unregister_input): ... this, and ...
34905 (grub_term_unregister_output): ... this.
34906 (grub_term_iterate): Split in ...
34907 (grub_term_iterate_input): ... this, and ...
34908 (grub_term_iterate_output): ... this.
34910 * kern/term.c (grub_term_list): Split in ...
34911 (grub_term_list_input): ... this, and ...
34912 (grub_term_list_output): ... this. Update all users.
34913 (grub_cur_term): Split in ...
34914 (grub_cur_term_input): ... this, and ...
34915 (grub_cur_term_output): ... this. Update all users.
34916 (grub_term_set_current): Split in ...
34917 (grub_term_set_current_input): ... this, and ...
34918 (grub_term_set_current_output): ... this.
34919 (grub_term_get_current): Split in ...
34920 (grub_term_get_current_input): ... this, and ...
34921 (grub_term_get_current_output): ... this.
34922 (grub_term_register): Split in ...
34923 (grub_term_register_input): ... this, and ...
34924 (grub_term_register_output): ... this.
34925 (grub_term_unregister): Split in ...
34926 (grub_term_unregister_input): ... this, and ...
34927 (grub_term_unregister_output): ... this.
34928 (grub_term_iterate): Split in ...
34929 (grub_term_iterate_input): ... this, and ...
34930 (grub_term_iterate_output): ... this.
34932 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34933 a check for input and one for output (and only attempt to get keys
34934 from user when input works).
34936 * util/grub-probe.c (grub_term_get_current): Split in ...
34937 (grub_term_get_current_input): ... this, and ...
34938 (grub_term_get_current_output): ... this.
34939 * util/grub-fstest.c: Likewise.
34940 * util/i386/pc/grub-setup.c: Likewise.
34941 * util/grub-editenv.c: Likewise.
34943 Portability adjustments:
34945 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34946 `term/i386/pc/at_keyboard.c'.
34947 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34948 grub_keyboard_controller_init() (now handled by terminal .init).
34949 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34950 grub_at_keyboard_init().
34951 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34952 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34953 at_keyboard.mod via input terminal interface).
34954 * include/grub/i386/coreboot/console.h: Convert into a stub for
34955 `<grub/i386/pc/console.h>'.
34957 Migrate full terminals to new API:
34959 * term/efi/console.c (grub_console_term): Split into ...
34960 (grub_console_term_input): ... this, and ...
34961 (grub_console_term_output): ... this. Update all users.
34962 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34963 (grub_ofconsole_init): Split into ...
34964 (grub_ofconsole_init_input): ... this, and ...
34965 (grub_ofconsole_init_output): ... this.
34966 (grub_ofconsole_term): Split into ...
34967 (grub_ofconsole_term_input): ... this, and ...
34968 (grub_ofconsole_term_output): ... this. Update all users.
34969 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34970 (grub_serial_term_input): ... this, and ...
34971 (grub_serial_term_output): ... this. Update all users.
34972 * term/i386/pc/console.c (grub_console_term): Split into ...
34973 (grub_console_term_input): ... this, and ...
34974 (grub_console_term_output): ... this. Update all users.
34975 (grub_console_term_input): Only enable it on PC/BIOS platform.
34976 (grub_console_init): Remove grub_keyboard_controller_init() call.
34978 Migrate input terminals to new API:
34980 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34981 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34982 i386-specific anyway).
34983 (grub_console_checkkey): Rename to ...
34984 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34986 (grub_keyboard_controller_orig): New variable.
34987 (grub_console_getkey): Rename to ...
34988 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34990 (grub_keyboard_controller_init): Static-ize. Save original
34991 controller value so that it can be restored ...
34992 (grub_keyboard_controller_fini): ... here (new function).
34993 (grub_at_keyboard_term): New structure.
34994 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
34997 Migrate output terminals to new API:
34999 * term/i386/pc/vga.c (grub_vga_term): Change type to
35000 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35001 members. Update all users.
35002 * term/gfxterm.c (grub_video_term): Change type to
35003 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35004 members. Update all users.
35005 * include/grub/i386/pc/console.h (grub_console_checkkey)
35006 (grub_console_getkey): Do not export (no longer needed by gfxterm,
35009 Migrate `terminal' command and userland tools to new API:
35011 * commands/terminal.c (grub_cmd_terminal): Split into ...
35012 (grub_cmd_terminal_input): ... this, and ...
35013 (grub_cmd_terminal_output): ... this.
35014 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
35015 `terminal_input' and `terminal_output'.
35016 * util/grub.d/00_header.in: Adjust `terminal' calls to new
35017 `terminal_input' / `terminal_output' API.
35018 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
35019 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
35020 provided ${GRUB_TERMINAL}, convert it).
35022 2008-11-04 Robert Millan <rmh@aybabtu.com>
35024 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
35026 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
35028 2008-11-03 Bean <bean123ch@gmail.com>
35030 * kern/elf.c (grub_elf32_load): Revert to previous code.
35031 (grub_elf64_load): Likewise.
35033 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
35035 2008-11-01 Robert Millan <rmh@aybabtu.com>
35037 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
35038 (TARGET_CPPFLAGS): Likewise.
35039 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
35041 2008-11-01 Carles Pina i Estany <carles@pina.cat>
35043 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
35045 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
35047 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
35048 addition of objects until the code is not going to be able to fail.
35050 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
35052 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35053 (add a missing NULL check, and correct them by moving the pointer
35054 operations after the actual check).
35056 2008-10-29 Robert Millan <rmh@aybabtu.com>
35058 * util/i386/pc/grub-install.in: Handle empty string as output from
35059 make_system_path_relative_to_its_root().
35061 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35063 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35064 circular metadata worst case scenario. If the metadata is circular
35065 then copy the wrap in place.
35066 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35067 project lib/format_text/layout.h
35068 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35070 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35072 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
35074 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35076 * util/update-grub_lib.in: Mention filename in warning message.
35078 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35080 * NEWS: Update for rename of update-grub to grub-mkconfig.
35082 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35084 * util/update-grub_lib.in: Copy to ...
35085 * util/grub-mkconfig_lib.in: ... this. Update all users.
35086 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
35087 * util/update-grub.in: Rename to ...
35088 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35089 option. Add `--output' option to allow users to specify the generated
35090 configuration file. Default to stdout.
35091 (update_grub_dir): Rename to ...
35092 (grub_mkconfig_dir): ... this.
35093 (grub_cfg): Default to an empty string.
35094 * conf/common.rmk (update-grub): Rename to ...
35095 (grub-mkconfig): ... this.
35096 (update-grub_lib): Copy to ...
35097 (grub-mkconfig_lib): ... this.
35098 (update-grub_SCRIPTS): Copy to ...
35099 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35100 (update-grub_DATA): Rename to ...
35101 (grub-mkconfig_DATA): ... this.
35103 2008-09-28 Robert Millan <rmh@aybabtu.com>
35105 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35106 to `modified'. Add the real `created' field.
35107 (grub_iso9660_uuid): Use `modified' rather than `created' for
35108 constructing the UUID.
35110 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
35112 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35113 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35115 2008-09-28 Bean <bean123ch@gmail.com>
35117 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35118 Thanks to Christian Franke for finding this bug.
35120 2008-09-25 Robert Millan <rmh@aybabtu.com>
35122 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35123 instances of grub_util_get_disk_name() (see previous commit).
35125 2008-09-25 Robert Millan <rmh@aybabtu.com>
35127 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35128 `util/i386/get_disk_name.c'.
35129 * conf/i386-efi.rmk: Likewise.
35130 * conf/x86_64-efi.rmk: Likewise.
35131 * conf/i386-coreboot.rmk: Likewise.
35132 * conf/i386-ieee1275.rmk: Likewise.
35133 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35134 `util/ieee1275/get_disk_name.c'.
35135 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35136 * util/ieee1275/get_disk_name.c: Remove file.
35137 * util/i386/get_disk_name.c: Remove file.
35138 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35139 "hd%d" for device.map entries, rather than using
35140 grub_util_get_disk_name().
35142 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35144 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35146 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35148 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35150 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35152 (GRUB_TERM_PPAGE): Changed to 0x4900.
35154 2008-09-24 Robert Millan <rmh@aybabtu.com>
35156 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35157 macros (they were i386-pc specific).
35158 * include/grub/sparc64/ieee1275/console.h: Likewise.
35159 * include/grub/efi/console.h: Likewise.
35161 2008-09-22 Bean <bean123ch@gmail.com>
35163 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35164 resident and in attribute list.
35166 * include/grub/ntfs.h (BMP_LEN): Removed.
35168 2008-09-22 Bean <bean123ch@gmail.com>
35170 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
35171 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35173 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35174 error occurs, as grub_disk_open will call grub_disk_close, which will
35175 call p->close (scsi).
35177 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35179 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35180 (AC_PREREQ): Bumped to 2.59.
35181 (AC_TRY_COMPILE): Replace obsolete macro with ...
35182 (AC_COMPILE_IFELSE): ... this.
35183 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35184 (AC_LINK_IFELSE): ... this.
35186 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35188 * autogen.sh: Add a call to `gendistlist.sh'.
35190 2008-09-19 Christian Franke <franke@computer.org>
35192 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35193 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35194 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35195 Export __enable_execute_stack() to modules.
35196 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35199 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35201 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35204 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35206 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
35207 #include <grub/util/hostdisk.h>.
35209 2008-09-08 Robert Millan <rmh@aybabtu.com>
35211 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35212 segments when their filesz is zero (grub_file_read() interprets
35213 zero-size as "read until EOF", which results in memory corruption).
35214 Use `lowest_segment' rather than 0 for calculating the current
35215 segment load address.
35217 2008-09-08 Robert Millan <rmh@aybabtu.com>
35219 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35220 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35221 clobbered useful information.
35223 2008-09-08 Robert Millan <rmh@aybabtu.com>
35225 * include/grub/util/biosdisk.h: Move to ...
35226 * include/grub/util/hostdisk.h: ... here. Update all users.
35227 * util/biosdisk.c: Move to ...
35228 * util/hostdisk.c: ... here. Update all users.
35230 2008-09-07 Robert Millan <rmh@aybabtu.com>
35232 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35234 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35235 and length can be stored directly in the `mbi->mmap_addr' and
35236 `mbi->mmap_length' struct fields.
35238 2008-09-07 Robert Millan <rmh@aybabtu.com>
35240 * conf/i386.rmk: New file. Provides declaration for building
35242 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35243 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35245 Include `conf/i386.mk'.
35246 * conf/i386-efi.rmk: Likewise.
35247 * conf/x86_64-efi.rmk: Likewise.
35248 * conf/i386-coreboot.rmk: Likewise.
35249 * conf/i386-ieee1275.rmk: Likewise.
35251 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35253 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35254 Adds optimization support for BGR based modes.
35256 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35257 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35258 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35259 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35260 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35261 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35262 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35263 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35264 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35265 (grub_video_i386_vbeblit_index_index): Likewise.
35266 (grub_video_i386_vbeblit_replace_directN): Added.
35267 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35268 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35269 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35270 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35271 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35272 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35273 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35274 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35275 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35276 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35277 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35278 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35279 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35281 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35282 (grub_video_i386_vbefill_R8G8B8): Likewise.
35283 (grub_video_i386_vbefill_index): Likewise.
35284 (grub_video_i386_vbefill_direct32): Added.
35285 (grub_video_i386_vbefill_direct24): Likewise.
35286 (grub_video_i386_vbefill_direct16): Likewise.
35287 (grub_video_i386_vbefill_direct8): Likewise.
35289 * include/grub/video.h (grub_video_blit_format): Removed
35290 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35291 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35292 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35293 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35294 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
35296 * video/video.c (grub_video_get_blit_format): Updated to use new
35297 blit formats. Added handling for 16 bit color modes.
35299 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
35301 (common_blitter): Updated to use new blitters.
35303 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35305 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35306 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35307 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35308 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35309 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35310 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35311 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35312 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35313 (grub_video_i386_vbeblit_index_index): Likewise.
35314 (grub_video_i386_vbeblit_replace_directN): Added.
35315 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35316 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35317 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35318 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35319 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35320 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35321 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35322 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35323 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35324 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35325 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35326 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35327 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35329 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35330 (grub_video_i386_vbefill_R8G8B8): Likewise.
35331 (grub_video_i386_vbefill_index): Likewise.
35332 (grub_video_i386_vbefill_direct32): Added.
35333 (grub_video_i386_vbefill_direct24): Likewise.
35334 (grub_video_i386_vbefill_direct16): Likewise.
35335 (grub_video_i386_vbefill_direct8): Likewise.
35337 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35340 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35343 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35346 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35349 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35351 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35354 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35356 * fs/iso9660.c (grub_iso9660_date): New structure.
35357 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35358 (grub_iso9660_uuid): New function.
35360 2008-09-05 Bean <bean123ch@gmail.com>
35362 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35364 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35365 insensitive bit for names in Win32 and Win32 & DOS namespace.
35367 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35369 * include/grub/types.h (LONG_MAX): Likewise.
35371 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35373 * util/getroot.c: Include <config.h>.
35374 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35375 add support for /dev/md/N devices and handle LVM double dash escaping.
35377 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35379 * config.guess: Update to latest version from config git.
35380 * config.sub: Likewise.
35382 2008-09-03 Robert Millan <rmh@aybabtu.com>
35384 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35385 `disk->total_sectors'.
35387 2008-09-01 Colin D Bennett <colin@gibibit.com>
35389 * include/grub/normal.h: Fixed incorrect comment for
35390 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35392 2008-09-01 Colin D Bennett <colin@gibibit.com>
35394 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35395 values with defines.
35397 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35398 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35399 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35400 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35401 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35402 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35403 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35404 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35405 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35406 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35407 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35408 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35409 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35410 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35411 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35412 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35413 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35414 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35415 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35417 2008-08-31 Robert Millan <rmh@aybabtu.com>
35419 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35421 (grub_multiboot): Fix a few warnings.
35423 2008-08-31 Robert Millan <rmh@aybabtu.com>
35425 * loader/i386/pc/multiboot.c: Update comment not to say that
35426 boot_device support is unimplemented.
35428 2008-08-31 Robert Millan <rmh@aybabtu.com>
35430 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35431 or memory map support are unimplemented.
35433 2008-08-31 Colin D Bennett <colin@gibibit.com>
35435 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35437 2008-08-31 Colin D Bennett <colin@gibibit.com>
35439 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35440 total video memory in 'vbeinfo' output; show color format details for
35443 2008-08-30 Pavel Roskin <proski@gnu.org>
35445 * util/genmoddep.c: Remove for real this time.
35446 * DISTLIST: Remove util/genmoddep.c.
35448 2008-08-30 Robert Millan <rmh@aybabtu.com>
35450 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35451 as required by Multiboot spec (it was already 4-byte aligned, but
35454 2008-08-29 Pavel Roskin <proski@gnu.org>
35456 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35457 * kern/powerpc/ieee1275/startup.S: ... this.
35458 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35459 * DISTLIST: Likewise.
35461 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35462 grub/cpu/kernel.h. Add start label for consistency with other
35463 platforms. Add grub_prefix immediately after start. Add jump
35464 to the code after grub_prefix.
35465 * include/grub/powerpc/kernel.h: Provide valid values for
35466 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35468 2008-08-29 Bean <bean123ch@gmail.com>
35470 * configure.ac: Change host_os to cygwin for mingw.
35471 (asprintf): New check for function.
35473 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35474 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35476 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35477 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35478 sync, sleep and grub_util_get_disk_size for mingw.
35480 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35481 to get size in mingw.
35482 (open_device): Use flag O_BINARY if it's defined.
35483 (find_root_device): Add dummy code for mingw.
35485 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35486 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35487 (get_scsi_disk_name): Return 0 for mingw.
35489 * util/hostfs.c: #include <grub/util/misc.h>.
35490 (grub_hostfs_open): Use "rb" flag to open file, use
35491 grub_util_get_disk_size to get disk size for mingw.
35493 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35494 (asprintf): New function if HAVE_ASPRINTF is not set.
35495 (sync): New function for mingw.
35497 (grub_util_get_disk_size): Likewise.
35499 2008-08-28 Pavel Roskin <proski@gnu.org>
35501 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35504 2008-08-28 Robert Millan <rmh@aybabtu.com>
35506 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35508 2008-08-28 Robert Millan <rmh@aybabtu.com>
35510 Change find_grub_drive() syntax so it doesn't prevent it from
35511 detecting NULL names as errors.
35513 * util/biosdisk.c (find_grub_drive): Move free slot search code
35515 (find_free_slot): ... to here.
35516 (read_device_map): Use find_free_slot() to search for free slots.
35518 2008-08-27 Marco Gerards <marco@gnu.org>
35520 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35521 (scsi_mod_SOURCES): New variable.
35522 (scsi_mod_CFLAGS): Likewise
35523 (scsi_mod_LDFLAGS): Likewise.
35525 * disk/scsi.c: New file.
35527 * include/grub/scsi.h: Likewise.
35529 * include/grub/scsicmd.h: Likewise.
35531 * disk/ata.c: Include <grub/scsi.h>.
35532 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35534 (grub_ata_iterate): Skip ATAPI devices.
35535 (grub_ata_open): Only handle ATAPI devices.
35536 (struct grub_atapi_read): Removed.
35537 (grub_atapi_readsector): Likewise.
35538 (grub_ata_read): No longer handle ATAPI devices.
35539 (grub_ata_write): Likewise.
35540 (grub_atapi_iterate): New function.
35541 (grub_atapi_read): Likewise.
35542 (grub_atapi_write): Likewise.
35543 (grub_atapi_open): Likewise.
35544 (grub_atapi_close): Likewise.
35545 (grub_atapi_dev): New variable.
35546 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35547 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35549 * include/grub/disk.h (enum grub_disk_dev_id): Add
35550 `GRUB_DISK_DEVICE_SCSI_ID'.
35552 2008-08-26 Robert Millan <rmh@aybabtu.com>
35554 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35555 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35558 2008-08-23 Bean <bean123ch@gmail.com>
35560 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35561 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35562 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35563 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35565 (raid5rec_mod_SOURCES): New macro.
35566 (raid5rec_mod_CFLAGS): Likewise.
35567 (raid5rec_mod_LDFLAGS): Likewise.
35568 (raid6rec_mod_SOURCES): Likewise.
35569 (raid6rec_mod_CFLAGS): Likewise.
35570 (raid6rec_mod_LDFLAGS): Likewise.
35571 (mdraid_mod_SOURCES): Likewise.
35572 (mdraid_mod_CFLAGS): Likewise.
35573 (mdraid_mod_LDFLAGS): Likewise.
35574 (dm_nv_mod_SOURCES): Likewise.
35575 (dm_nv_mod_CFLAGS): Likewise.
35576 (dm_nv_mod_LDFLAGS): Likewise.
35578 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35579 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35580 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35582 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35583 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35585 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35587 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35589 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35591 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35593 * disk/raid5_recover.c: New file.
35595 * disk/raid6_recover.c: Likewise.
35597 * disk/mdraid_linux.c: Likewise.
35599 * disk/dmraid_nvidia.c: Likewise.
35601 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35604 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35605 calculate the size of raid device.
35606 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35607 different layout of raid5.
35608 (grub_raid_scan_device): Remove code specific to mdraid.
35609 (grub_raid_list): New variable.
35610 (free_array): New function.
35611 (grub_raid_register): Likewise.
35612 (grub_raid_unregister): Likewise.
35613 (grub_raid_rescan): Likewise.
35614 (GRUB_MOD_INIT): Don't iterate device here.
35615 (GRUB_MOD_FINI): Use free_array to release resource.
35617 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35618 (grub_raid5_recover_func_t): New function variable type.
35619 (grub_raid6_recover_func_t): Likewise.
35620 (grub_raid5_recover_func): New variable.
35621 (grub_raid6_recover_func): Likewise.
35622 (grub_raid_register): New function.
35623 (grub_raid_unregister): Likewise.
35624 (grub_raid_rescan): Likewise.
35625 (grub_raid_block_xor): Likewise.
35627 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35628 (CMD_CRC): New macro.
35630 (read_file): Handle device as well as file.
35631 (cmd_crc): New function.
35632 (fstest): Handle multiple disks.
35633 (options): Remove part, raw and long, add root and diskcount.
35634 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35635 (main): Find the first non option entry and ignore subsequent options,
35636 add handling for the new options, support multiple disks.
35638 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35640 2008-08-23 Bean <bean123ch@gmail.com>
35642 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35644 * genfslist.sh: Ignore kernel.mod.
35646 * genpartmaplist.sh: Likewise.
35648 2008-08-23 Robert Millan <rmh@aybabtu.com>
35650 * util/getroot.c (find_root_device): Skip anything that starts with
35651 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35653 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35655 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35656 * util/grub.d/00_header.in: Allow the administrator to change default
35657 gfxmode via ${GRUB_GFXMODE}.
35659 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35661 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35663 2008-08-21 Robert Millan <rmh@aybabtu.com>
35665 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35667 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35668 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35670 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35672 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35673 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35675 2008-08-19 Robert Millan <rmh@aybabtu.com>
35677 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35678 (struct grub_virtual_screen): Remove `cursor_color'.
35679 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35681 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35683 2008-08-18 Robert Millan <rmh@aybabtu.com>
35685 Unify (identical) linux_normal.c files.
35686 * loader/i386/efi/linux_normal.c: Move from here ...
35687 * loader/linux_normal.c: ... to here. Update all users.
35688 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35689 * loader/i386/ieee1275/linux_normal.c: Likewise.
35691 2008-08-18 Robert Millan <rmh@aybabtu.com>
35693 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35694 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35695 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35696 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35697 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35699 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35700 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35701 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35702 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35703 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35704 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35705 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35706 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35707 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35708 portably using grub_getxy().
35709 Replace `-EFI' with `-bzImage' in boot message.
35711 2008-08-17 Robert Millan <rmh@aybabtu.com>
35713 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35715 2008-08-17 Robert Millan <rmh@aybabtu.com>
35717 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35719 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35720 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35721 (grub_machine_mmap_iterate): New function declaration.
35722 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35724 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35727 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35728 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35729 Move e820 parsing from here ...
35730 * kern/i386/pc/mmap.c: New file.
35731 (grub_machine_mmap_iterate): ... to here.
35733 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35734 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35735 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35736 (grub_available_iterate): Redeclare to return `void', and redeclare
35737 its hook to use grub_uint64_t as addr and size parameters, and rename
35739 (grub_machine_mmap_iterate): ... this. Update all users.
35741 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35742 to make it more readable. Rename to ...
35743 (grub_machine_mmap_iterate): ... this.
35745 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35746 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35747 (grub_multiboot): Allocate an extra region after the payload, and fill
35748 it with a Multiboot memory map. Adjust a.out loader to calculate size
35749 with the extra space.
35750 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35751 with the extra space.
35753 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35755 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35757 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35759 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35760 mdate-sh to the list `find' searches for.
35761 * DISTLIST: Regenerated.
35763 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35765 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35766 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35767 genmoddep.awk, gensymlist.sh.in.
35768 (DISTDIRS): Add bus, docs, hook, lib.
35769 * DISTLIST: Regenerated.
35770 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35772 2008-08-16 Robert Millan <rmh@aybabtu.com>
35774 * disk/raid.c (grub_raid_init): Handle/report errors set by
35775 grub_device_iterate().
35776 * disk/lvm.c (grub_lvm_init): Likewise.
35778 2008-08-15 Bean <bean123ch@gmail.com>
35780 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35782 (datetime_mod_SOURCES): New macro.
35783 (datetime_mod_CFLAGS): Likewise.
35784 (datetime_mod_LDFLAGS): Likewise.
35785 (date_mod_SOURCES): Likewise.
35786 (date_mod_CFLAGS): Likewise.
35787 (date_mod_LDFLAGS): Likewise.
35788 (datehook_mod_SOURCES): Likewise.
35789 (datehook_mod_CFLAGS): Likewise.
35790 (datehook_mod_LDFLAGS): Likewise.
35792 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35794 (datetime_mod_SOURCES): New macro.
35795 (datetime_mod_CFLAGS): Likewise.
35796 (datetime_mod_LDFLAGS): Likewise.
35797 (date_mod_SOURCES): Likewise.
35798 (date_mod_CFLAGS): Likewise.
35799 (date_mod_LDFLAGS): Likewise.
35800 (datehook_mod_SOURCES): Likewise.
35801 (datehook_mod_CFLAGS): Likewise.
35802 (datehook_mod_LDFLAGS): Likewise.
35804 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35806 (datetime_mod_SOURCES): New macro.
35807 (datetime_mod_CFLAGS): Likewise.
35808 (datetime_mod_LDFLAGS): Likewise.
35809 (date_mod_SOURCES): Likewise.
35810 (date_mod_CFLAGS): Likewise.
35811 (date_mod_LDFLAGS): Likewise.
35812 (datehook_mod_SOURCES): Likewise.
35813 (datehook_mod_CFLAGS): Likewise.
35814 (datehook_mod_LDFLAGS): Likewise.
35816 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35818 (datetime_mod_SOURCES): New macro.
35819 (datetime_mod_CFLAGS): Likewise.
35820 (datetime_mod_LDFLAGS): Likewise.
35821 (date_mod_SOURCES): Likewise.
35822 (date_mod_CFLAGS): Likewise.
35823 (date_mod_LDFLAGS): Likewise.
35824 (datehook_mod_SOURCES): Likewise.
35825 (datehook_mod_CFLAGS): Likewise.
35826 (datehook_mod_LDFLAGS): Likewise.
35828 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35830 (datetime_mod_SOURCES): New macro.
35831 (datetime_mod_CFLAGS): Likewise.
35832 (datetime_mod_LDFLAGS): Likewise.
35833 (date_mod_SOURCES): Likewise.
35834 (date_mod_CFLAGS): Likewise.
35835 (date_mod_LDFLAGS): Likewise.
35836 (datehook_mod_SOURCES): Likewise.
35837 (datehook_mod_CFLAGS): Likewise.
35838 (datehook_mod_LDFLAGS): Likewise.
35840 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35842 * commands/date.c: New file.
35844 * hook/datehook.c: Likewise.
35846 * include/grub/lib/datetime.h: Likewise.
35848 * include/grub/i386/cmos.h: Likewise.
35850 * lib/datetime.c: Likewise.
35852 * lib/i386/datetime.c: Likewise.
35854 * lib/efi/datetime.c: Likewise.
35856 2008-08-14 Robert Millan <rmh@aybabtu.com>
35858 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35859 (grub_mkelfimage_SOURCES): New variable.
35860 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35862 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35863 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35864 * conf/powerpc-ieee1275.rmk: Likewise.
35865 * conf/i386-ieee1275.rmk: Likewise.
35867 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35868 * kern/i386/coreboot/init.c: Likewise.
35870 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35871 with `<grub/cpu/kernel.h>'.
35872 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35874 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35875 * kern/i386/coreboot/startup.S: Likewise.
35877 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35878 (GRUB_MOD_GAP): Remove.
35879 * include/grub/powerpc/kernel.h: New file.
35880 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35881 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35882 * include/grub/i386/kernel.h: New file.
35883 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35884 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35885 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35887 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35889 Use --directory when invoking grub_mkimage.
35891 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35892 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35893 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35894 and GRUB_KERNEL_CPU_PREFIX.
35896 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35898 * include/grub/err.h (grub_err_printf): New function prototype.
35899 * util/misc.c (grub_err_printf): New function.
35900 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35902 * kern/err.c (grub_print_error): Use grub_err_printf.
35904 2008-08-13 Robert Millan <rmh@aybabtu.com>
35906 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35908 2008-08-13 Robert Millan <rmh@aybabtu.com>
35910 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35913 2008-08-12 Robert Millan <rmh@aybabtu.com>
35915 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35916 of the relocation code from here ...
35917 (grub_multiboot): ... to here.
35918 (forward_relocator, backward_relocator): Move from here ...
35919 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35920 (grub_multiboot_backward_relocator): ... to here.
35921 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35922 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35923 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35924 (grub_multiboot_forward_relocator_end)
35925 (grub_multiboot_backward_relocator)
35926 (grub_multiboot_backward_relocator_end): New variables.
35928 2008-08-12 Bean <bean123ch@gmail.com>
35930 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35932 2008-08-11 Robert Millan <rmh@aybabtu.com>
35934 * kern/i386/linuxbios/startup.S: Move from here ...
35935 * kern/i386/coreboot/startup.S: ... to here.
35937 * kern/i386/linuxbios/init.c: Move from here ...
35938 * kern/i386/coreboot/init.c: ... to here.
35940 * kern/i386/linuxbios/table.c: Move from here ...
35941 * kern/i386/coreboot/mmap.c: ... to here.
35943 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35945 2008-08-11 Robert Millan <rmh@aybabtu.com>
35947 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35948 errors. Leave it to the upper layer to handle them.
35950 2008-08-09 Christian Franke <franke@computer.org>
35952 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35953 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35954 Install `grub.d/10_windows' only on Cygwin.
35955 * configure.ac: Add subst of `target_os'.
35956 Check `target_os' also before setting TARGET_OBJ2ELF.
35957 Add `--enable-grub-pe2elf'.
35959 2008-08-08 Robert Millan <rmh@aybabtu.com>
35961 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35962 (grub_last_time): Change type to grub_uint64_t.
35963 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35964 (grub_disk_close): Likewise.
35966 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35967 (run_menu): Migrate code from to using grub_get_time_ms().
35969 * util/misc.c (grub_get_time_ms): New function.
35971 2008-08-08 Marco Gerards <marco@gnu.org>
35973 * disk/ata.c (grub_ata_regget): Change return type to
35975 (grub_ata_regget2): Likewise.
35976 (grub_ata_wait_status): New function.
35977 (grub_ata_wait_busy): Removed function, updated all users to use
35978 `grub_ata_wait_status'.
35979 (grub_ata_wait_drq): Likewise.
35980 (grub_ata_cmd): New function.
35981 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35983 (grub_ata_pio_write): Add error handling.
35984 (grub_atapi_identify): Likewise.
35985 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35987 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35988 handling. Actually use the detected registers. Reorder the
35989 detection logic such that it is easier to read.
35990 (grub_ata_pciinit): Do not assign the same ID to each controller.
35991 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35993 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35995 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
35997 2008-08-08 Marco Gerards <marco@gnu.org>
36001 2008-08-07 Bean <bean123ch@gmail.com>
36003 * include/grub/x86_64/pci.h: New file.
36005 2008-08-07 Christian Franke <franke@computer.org>
36007 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
36008 (TIMER2_GATE): Likewise.
36009 (grub_pit_wait): Add enable/disable of the timer2 gate
36010 bit of port 0x61. This fixes a possible infinite loop.
36012 2008-08-07 Bean <bean123ch@gmail.com>
36014 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
36015 kern/i386/tsc.c and kern/i386/pit.c.
36017 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
36020 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
36023 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
36025 2008-08-07 Bean <bean123ch@gmail.com>
36027 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
36029 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
36031 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
36032 multiple inclusion. Add #include <grub/types.h>.
36034 2008-08-06 Christian Franke <franke@computer.org>
36036 * conf/common.rmk: Build and install `10_windows'.
36037 * util/grub.d/10_windows.in: New script.
36039 2008-08-06 Pavel Roskin <proski@gnu.org>
36041 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
36043 2008-08-06 Robert Millan <rmh@aybabtu.com>
36045 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
36046 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
36048 2008-08-06 Bean <bean123ch@gmail.com>
36050 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
36051 (grub_pxefs_fs_int): Remove dummy definition.
36052 (grub_pxefs_open): Use data->block_size to store the current block
36054 (grub_pxefs_read): Use block size stored in data->block_size. As the
36055 value of grub_pxe_blksize can be changed after the file is opened.
36057 2008-08-06 Bean <bean123ch@gmail.com>
36059 * fs/i386/pc/pxe.c (curr_file): new variable.
36060 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36061 require the dummy internal file system anymore.
36062 (grub_pxefs_read): Removed.
36063 (grub_pxefs_close): Likewise.
36064 (grub_pxefs_fs_int): Likewise.
36065 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36066 connection when we switch file.
36067 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36069 2008-08-06 Robert Millan <rmh@aybabtu.com>
36071 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36073 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36074 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36076 * kern/i386/halt.c: New file.
36077 * kern/i386/reboot.c: Likewise.
36078 * include/grub/i386/reboot.h: Likewise.
36079 * include/grub/i386/halt.h: Likewise.
36081 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36082 Include `<grub/cpu/halt.h>'.
36083 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36084 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36086 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36087 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36088 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36089 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36090 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36091 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36093 * include/grub/i386/at_keyboard.h: ... to here.
36095 2008-08-05 Robert Millan <rmh@aybabtu.com>
36097 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36098 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36099 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36100 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36101 `kern/generic/millisleep.c'.
36103 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36104 instead of grub_get_rtc().
36105 (grub_tsc_init): Initialize `tsc_boot_time'.
36107 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36108 (grub_machine_init): Use grub_tsc_init() rather than
36109 installing an RTC-based handler via grub_install_get_time_ms().
36111 * kern/i386/pit.c: New file.
36112 * include/grub/i386/pit.h: Likewise.
36114 2008-08-05 Bean <bean123ch@gmail.com>
36116 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36118 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36119 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36120 (pxe_mod_SOURCES): New macro.
36121 (pxe_mod_CFLAGS): Likewise.
36122 (pxe_mod_LDFLAGS): Likewise.
36123 (pxecmd_mod_SOURCES): Likewise.
36124 (pxecmd_mod_CFLAGS): Likewise.
36125 (pxecmd_mod_LDFLAGS): Likewise.
36127 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36128 (grub_pxe_call): Likewise.
36130 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36132 * commands/i386/pc/pxecmd.c: New file.
36134 * fs/i386/pc/pxe.c: Likewise.
36136 * include/grub/i386/pc/pxe.h: Likewise.
36138 2008-08-05 Bean <bean123ch@gmail.com>
36140 * util/console.c (grub_console_cur_color): New variable.
36141 (grub_console_standard_color): Likewise.
36142 (grub_console_normal_color): Likewise.
36143 (grub_console_highlight_color): Likewise.
36144 (color_map): Likewise.
36145 (use_color): Likewise.
36146 (NUM_COLORS): New macro.
36147 (grub_ncurses_setcolorstate): Handle color properly.
36148 (grub_ncurses_setcolor): Don't change color here, just remember the
36149 settings, color will be set in grub_ncurses_setcolorstate.
36150 (grub_ncurses_getcolor): New function.
36151 (grub_ncurses_init): Initialize color pairs.
36152 (grub_ncurses_term): New member grub_ncurses_getcolor.
36154 2008-08-05 Colin D Bennett <colin@gibibit.com>
36156 High resolution timer support. Implemented for x86 CPUs using TSC.
36157 Extracted generic grub_millisleep() so it's linked in only as needed.
36158 This requires a Pentium compatible CPU; if the RDTSC instruction is
36159 not supported, then it falls back on the generic grub_get_time_ms()
36160 implementation that uses the machine's RTC.
36162 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36163 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36164 `kern/generic/millisleep.c'.
36166 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36167 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36169 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36170 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36172 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36174 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36175 `kern/generic/millisleep.c'.
36177 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36179 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36181 * kern/generic/rtc_get_time_ms.c: New file.
36183 * kern/generic/millisleep.c: New file.
36185 * kern/misc.c: Don't include
36186 <kern/time.h> anymore.
36187 (grub_millisleep_generic): Removed.
36189 * commands/sleep.c (grub_interruptible_millisleep): Uses
36190 grub_get_time_ms() instead of grub_get_rtc().
36192 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36194 (grub_cpu_is_cpuid_supported): New inline function.
36195 (grub_cpu_is_tsc_supported): New inline function.
36196 (grub_tsc_init): New function prototype.
36197 (grub_tsc_get_time_ms): New function prototype.
36199 * kern/i386/tsc.c (grub_get_time_ms): New file.
36201 * include/grub/time.h: Include <grub/types.h.
36202 (grub_millisleep_generic): Removed.
36203 (grub_get_time_ms): New prototype.
36204 (grub_install_get_time_ms): New prototype.
36205 (grub_rtc_get_time_ms): New prototype.
36207 * kern/time.c (grub_get_time_ms): New function.
36208 (grub_install_get_time_ms): New function.
36210 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36211 <grub/time.h> anymore.
36212 (grub_millisleep): Removed.
36213 (grub_machine_init): Call grub_tsc_init.
36215 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36216 get_time_ms() implementation.
36218 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36219 (ieee1275_get_time_ms): New function.
36220 (grub_machine_init): Install get_time_ms() implementation.
36222 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36223 (grub_machine_init): Call grub_tsc_init().
36224 (grub_millisleep): Removed.
36226 * kern/ieee1275/init.c (grub_millisleep): Removed.
36227 (grub_machine_init): Install ieee1275_get_time_ms()
36229 (ieee1275_get_time_ms): New function.
36230 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36233 2008-08-05 Marco Gerards <marco@gnu.org>
36235 * disk/ata.c: Include <grub/pci.h>.
36236 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36237 (grub_ata_initialize): Rewritten.
36238 (grub_ata_device_initialize): New function.
36240 2008-08-04 Pavel Roskin <proski@gnu.org>
36242 * kern/main.c: Include grub/mm.h.
36244 2008-08-04 Robert Millan <rmh@aybabtu.com>
36246 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36247 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36248 corruption problem).
36250 2008-08-04 Robert Millan <rmh@aybabtu.com>
36252 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36253 warnings introduced in my last commit.
36255 2008-08-03 Robert Millan <rmh@aybabtu.com>
36257 Make PCI available on all i386 architectures.
36259 * include/grub/i386/pc/pci.h: Move from here ...
36260 * include/grub/i386/pci.h: ... to here.
36262 * include/grub/i386/pc/pci.h: Remove.
36263 * include/grub/i386/efi/pci.h: Remove.
36264 * include/grub/x86_64/efi/pci.h: Remove.
36266 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36267 `<grub/cpu/pci.h>'.
36269 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36270 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36271 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36273 * conf/i386-ieee1275.rmk: Likewise.
36275 2008-08-03 Robert Millan <rmh@aybabtu.com>
36277 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36278 (grub_console_setcursor): Make it possible to set cursor off.
36280 2008-08-03 Robert Millan <rmh@aybabtu.com>
36282 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36283 of modules instead of assuming which platform provides what.
36284 * util/update-grub.in: Likewise.
36286 2008-08-03 Robert Millan <rmh@aybabtu.com>
36288 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36289 instead of `grub_install_dos_part' to determine whether a drive needs
36290 to be prepended to prefix (`grub_install_dos_part' is not reliable,
36291 because it can be overridden when loading GRUB via Multiboot).
36293 2008-08-02 Robert Millan <rmh@aybabtu.com>
36295 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36297 2008-08-02 Robert Millan <rmh@aybabtu.com>
36299 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36300 of informational grub_dprintf() calls.
36302 2008-08-02 Robert Millan <rmh@aybabtu.com>
36304 * disk/memdisk.c (memdisk_size): Don't initialize.
36305 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36307 * include/grub/i386/pc/kernel.h
36308 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36309 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36310 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36311 (grub_arch_memdisk_size): Remove.
36313 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36314 field (was only used to transfer a constant). Add `type' field to
36315 support multiple module types.
36316 (grub_module_iterate): New function.
36318 * kern/device.c (grub_device_open): Do not hide error messages
36319 when grub_disk_open() fails. Use grub_print_error() instead.
36321 * kern/i386/pc/init.c (grub_arch_modules_addr)
36322 (grub_arch_memdisk_size): Remove functions.
36323 (grub_arch_modules_addr): Return the module address in high memory
36324 (now that it isn't copied anymore).
36326 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36327 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36328 decompression routine (grub_total_module_size already includes that
36329 now). Don't copy modules back to low memory.
36331 * kern/main.c: Include `<grub/mm.h>'.
36332 (grub_load_modules): Split out (and use) ...
36333 (grub_module_iterate): ... this function, which iterates through
36334 module objects and runs a hook.
36335 Comment out grub_mm_init_region() call, as it would cause non-ELF
36336 modules to be overwritten.
36338 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36339 the memdisk image in its own region, make it part of the module list.
36340 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36341 (main): Parse --memdisk|-m option, and pass user-provided path as
36342 parameter to generate_image().
36343 (add_segments): Pass `memdisk_path' down to load_modules().
36344 (load_modules): Embed memdisk image in module section when requested.
36345 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36346 `header.type' instead of `header.offset'.
36348 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36349 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36350 (memdisk_mod_LDFLAGS): New variables.
36351 * conf/i386-coreboot.rmk: Likewise.
36352 * conf/i386-ieee1275.rmk: Likewise.
36354 2008-08-02 Robert Millan <rmh@aybabtu.com>
36356 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36357 (backward_relocator): New variables. Used to allocate and relocate
36358 the payload, respectively.
36359 (grub_multiboot_load_elf32): Load into heap instead of requested
36360 address, install the appropriate relocator code in each bound of
36361 the payload, and set the entry point such that
36362 grub_multiboot_real_boot() will jump to one of them.
36364 * kern/i386/loader.S (grub_multiboot_payload_size)
36365 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36366 (grub_multiboot_payload_entry_offset): New variables.
36367 (grub_multiboot_real_boot): Set cpu context to what the relocator
36368 expects, and jump to the relocator instead of the payload.
36370 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36371 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36372 (grub_multiboot_payload_entry_offset): Export.
36374 2008-08-01 Bean <bean123ch@gmail.com>
36376 * normal/menu_entry.c (editor_getline): Don't return the original
36377 string as result, as it will be released by lexer once it has done
36380 2008-08-01 Robert Millan <rmh@aybabtu.com>
36382 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36383 within menuentries, not before them.
36384 util/grub.d/10_hurd.in: Likewise.
36386 2008-08-01 Bean <bean123ch@gmail.com>
36388 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36389 (bufio_mod_SOURCES): New macro.
36390 (bufio_mod_CFLAGS): Likewise.
36391 (bufio_mod_LDFLAGS): Likewise.
36393 * include/grub/bufio.h: New file.
36395 * io/bufio.c: Likewise.
36397 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36398 (grub_video_reader_png): Use grub_buffile_open to open file.
36400 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36401 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36403 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36404 (grub_video_reader_tga): Use grub_buffile_open to open file.
36406 * font/manager.c: Include <grub/bufio.h>.
36407 (add_font): Use grub_buffile_open to open file.
36409 2008-07-31 Robert Millan <rmh@aybabtu.com>
36411 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36412 ELF segments, use a macro for arbitrarily accessing any of them instead
36413 of preparing a pointer that allows access to one at a time.
36414 (grub_multiboot_load_elf64): Likewise.
36416 2008-07-31 Bean <bean123ch@gmail.com>
36418 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36419 GRUB_KERNEL_MACHINE_DATA_END.
36421 2008-07-30 Robert Millan <rmh@aybabtu.com>
36423 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36424 Increase from 0x50 to 0x60.
36425 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36426 use UUIDs to identify the root drive for them. If that's not
36428 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36429 check, for cross-disk installs.
36431 2008-07-30 Robert Millan <rmh@aybabtu.com>
36433 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36434 is non-empty, use it to set the `prefix' environment variable instead
36435 of the usual approach.
36436 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36437 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36438 environment variable instead of dummy make_install_device().
36440 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36441 (start): Insert a data section, with `grub_prefix' variable.
36442 * kern/i386/linuxbios/startup.S: Likewise.
36444 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36445 New variable reference.
36446 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36447 New macro. Defines offset of `grub_prefix' within startup.S (relative
36449 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36450 section within startup.S (relative to `start').
36451 * include/grub/i386/coreboot/kernel.h: Likewise.
36453 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36454 Overwrite grub_prefix with its contents, at the beginning of the
36456 (main): Understand -p|--prefix.
36458 2008-07-30 Robert Millan <rmh@aybabtu.com>
36460 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36462 2008-07-30 Robert Millan <rmh@aybabtu.com>
36464 * term/i386/pc/vga_text.c (grub_console_cls): Use
36465 grub_console_gotoxy() to go back to beginning of the screen.
36466 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36468 2008-07-29 Christian Franke <franke@computer.org>
36470 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36471 Add conversion of emulated mount points on Cygwin.
36473 2008-07-29 Christian Franke <franke@computer.org>
36475 * util/update-grub.in: Add a check for admin
36477 Remove old `grub.cfg.new' before creation.
36478 Add `-f' to `mv' to handle the different filesystem
36479 semantics of Windows.
36481 2008-07-29 Bean <bean123ch@gmail.com>
36483 * normal/main.c (get_line): Fix buffer overflow bug.
36485 2008-07-28 Robert Millan <rmh@aybabtu.com>
36487 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36488 (struct grub_apple_header): New struct. Describes the layout of
36489 the partmap header.
36490 (apple_partition_map_iterate): Check the header magic as well as the
36491 partition magic (which was already being checked).
36493 2008-07-28 Pavel Roskin <proski@gnu.org>
36495 * genmk.rb: Add a warning to the beginning of the output that
36496 it's a generated file and should not be edited.
36498 2008-07-28 Robert Millan <rmh@aybabtu.com>
36500 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36501 with the same number are found, just use issue a warning with
36502 grub_dprintf(), as this error has been reported to be non-fatal.
36504 2008-07-27 Robert Millan <rmh@aybabtu.com>
36506 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36509 2008-07-27 Bean <bean123ch@gmail.com>
36511 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36512 (grub_fat_find_dir): Ignore case when comparing filename.
36514 2008-07-27 Bean <bean123ch@gmail.com>
36516 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36517 smallino, as it's more descriptive, and i8count can be confused with
36518 the other field count.
36519 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36522 2008-07-27 Bean <bean123ch@gmail.com>
36524 * commands/crc.c: New file.
36526 * lib/crc.c: Likewise.
36528 * include/grub/lib/crc.h: Likewise.
36530 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36532 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36533 (hexdump): Move this function to ...
36535 * lib/hexdump.c: ... here.
36537 * include/grub/hexdump.h: Renamed to ...
36539 * include/grub/lib/hexdump.h: ... this.
36541 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36543 * util/grub-editenv.c: Likewise.
36545 * include/envblk.h: Renamed to ...
36547 * include/lib/envblk.h: ... this.
36549 * util/envblk.c: Renamed to ...
36551 * lib/envblk.c: ... this.
36553 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36555 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36556 (pkglib_MODULES): Add crc.mod.
36557 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36558 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36559 (crc_mod_SOURCES): New macro.
36560 (crc_mod_CFLAGS): Likewise.
36561 (crc_mod_LDFLAGS): Likewise.
36563 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36565 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36567 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36569 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36571 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36573 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36575 * commands/help.c: Include <grub/term.h>.
36576 (TERM_WIDTH): Removed. Updated all users.
36578 2008-07-27 Pavel Roskin <proski@gnu.org>
36580 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36581 spurious warnings about a comment within a comment.
36583 2008-07-25 Robert Millan <rmh@aybabtu.com>
36585 * util/getroot.c (find_root_device): Skip devices that match
36586 /dev/dm-[0-9]. This lets the real device be found for any type of
36587 abstraction (LVM, EVMS, RAID..).
36588 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36589 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36590 device is found first, find_root_device() will now skip it.
36592 2008-07-24 Pavel Roskin <proski@gnu.org>
36594 * include/grub/types.h: Use __builtin_bswap32() and
36595 __builtin_bswap64() with gcc 4.3 and newer.
36597 2008-07-24 Christian Franke <franke@computer.org>
36599 * util/i386/pc/grub-install.in: If `--debug' is specified,
36600 pass `--verbose' to grub-setup.
36601 Abort script if make_system_path_relative_to_its_root() fails.
36603 2008-07-24 Bean <bean123ch@gmail.com>
36605 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36606 variable `target_platform' should be `platform'.
36608 2008-07-24 Bean <bean123ch@gmail.com>
36610 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36611 (grub_png_init_fixed_block): New function.
36612 (grub_png_decode_image_data): Handle fixed huffman code compression.
36614 2008-07-24 Bean <bean123ch@gmail.com>
36616 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36617 (grub_pe2elf_SOURCES): New macro.
36618 (CLEANFILES): Add grub-pe2elf.
36620 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36621 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36622 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36623 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36624 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36625 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36626 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36627 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36628 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36629 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36630 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36631 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36632 (GRUB_PE32_DT_FUNCTION): Likewise.
36633 (GRUB_PE32_REL_I386_DIR32): Likewise.
36634 (GRUB_PE32_REL_I386_REL32): Likewise.
36635 (grub_pe32_symbol): New structure.
36636 (grub_pe32_reloc): Likewise.
36638 * util/grub-pe2elf.c: New file.
36640 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36641 start symbol in non pc platform.
36643 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36645 The following patches are from Christian Franke.
36647 * include/grub/dl.h: Remove .previous, gas supports this only
36650 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36651 Remove .type, gas supports this only for ELF format.
36653 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36654 nullbytes in symbol table. This fixes an infinite loop if table is
36657 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36658 TARGET_IMG_LDFLAGS and EXEEXT.
36660 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36661 TARGET_IMG_LDFLAGS_AC.
36662 (grub_CHECK_STACK_ARG_PROBE): New function.
36664 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36666 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36668 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36669 to set TARGET_IMG_LD* accordingly.
36670 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36671 Add call to grub_CHECK_STACK_ARG_PROBE.
36672 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36674 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36676 * genmk.rb: Add EXEEXT to CLEANFILES.
36678 2008-07-23 Robert Millan <rmh@aybabtu.com>
36680 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36681 define the codes for arrows and lines used for the menu).
36682 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36685 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36686 fonts, because the latter are too slow.
36688 2008-07-21 Bean <bean123ch@gmail.com>
36690 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36691 a20. Run keyboard test last, as it will cause macbook to halt.
36693 2008-07-18 Pavel Roskin <proski@gnu.org>
36695 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36696 load foreign architecture modules correctly anyway. Keep
36697 support for loading host architecture modules, whether we
36698 compile them or not.
36700 2008-07-17 Pavel Roskin <proski@gnu.org>
36702 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36703 change target_cpu. The compiler default can mismatch target_cpu
36706 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36707 * kern/efi/efi.c: Likewise.
36709 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36710 target compiler is functional.
36711 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36714 * configure.ac: Default to efi platform for x86_64-apple. Allow
36715 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36716 adjustments from the rest, only do them if target is not
36717 explicitly given. Merge other adjustments with the final sanity
36718 check. Remove an extraneous check for supported CPU. Be
36719 specific which CPU and which platform is not supported.
36721 * configure.ac: Default to pc platform for x86_64.
36723 2008-07-17 Robert Millan <rmh@aybabtu.com>
36725 Partial LinuxBIOS -> Coreboot rename.
36727 * conf/i386-linuxbios.rmk: Renamed to ...
36728 * conf/i386-coreboot.rmk: ... this.
36729 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36730 * configure.ac: Accept "coreboot" as input platform (but maintain
36731 compatibility with "linuxbios").
36732 * include/grub/i386/linuxbios: Renamed to ...
36733 * include/grub/i386/coreboot: ... this.
36735 2008-07-17 Bean <bean123ch@gmail.com>
36737 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36738 (appleldr_mod_SOURCE): New variable.
36739 (appleldr_mod_CFLAGS): Likewise.
36740 (appleldr_mod_LDFLAGS): Likewise.
36741 (pci_mod_SOURCES): Likewise.
36742 (pci_mod_CFLAGS): Likewise.
36743 (pci_mod_LDFLAGS): Likewise.
36744 (lspci_mod_SOURCES): Likewise.
36745 (lspci_mod_CFLAGS): Likewise.
36746 (lspci_mod_LDFLAGS): Likewise.
36748 * conf/x86_64-efi.rmk: New file.
36750 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36752 (grub_efidisk_write): Likewise.
36754 * include/efi/api.h (efi_call_0): New macro.
36755 (efi_call_1): Likewise.
36756 (efi_call_2): Likewise.
36757 (efi_call_3): Likewise.
36758 (efi_call_4): Likewise.
36759 (efi_call_5): Likewise.
36760 (efi_call_6): Likewise.
36762 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36763 grub_rescue_cmd_chainloader.
36765 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36766 (grub_pe32_optional_header): Change some fields based on i386 or
36768 (GRUB_PE32_PE32_MAGIC): Likewise.
36770 * include/grub/efi/uga_draw.h: New file.
36772 * include/grub/elf.h (STN_ABS): New constant.
36773 (R_X86_64_NONE): Relocation constant for x86_64.
36774 (R_X86_64_64): Likewise.
36775 (R_X86_64_PC32): Likewise.
36776 (R_X86_64_GOT32): Likewise.
36777 (R_X86_64_PLT32): Likewise.
36778 (R_X86_64_COPY): Likewise.
36779 (R_X86_64_GLOB_DAT): Likewise.
36780 (R_X86_64_JUMP_SLOT): Likewise.
36781 (R_X86_64_RELATIVE): Likewise.
36782 (R_X86_64_GOTPCREL): Likewise.
36783 (R_X86_64_32): Likewise.
36784 (R_X86_64_32S): Likewise.
36785 (R_X86_64_16): Likewise.
36786 (R_X86_64_PC16): Likewise.
36787 (R_X86_64_8): Likewise.
36788 (R_X86_64_PC8): Likewise.
36790 * include/grub/i386/efi/pci.h: New file.
36792 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36793 Change it value based on platform.
36794 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36795 (GRUB_E820_RAM): Likewise.
36796 (GRUB_E820_RESERVED): Likewise.
36797 (GRUB_E820_ACPI): Likewise.
36798 (GRUB_E820_NVS): Likewise.
36799 (GRUB_E820_EXEC_CODE): Likewise.
36800 (GRUB_E820_MAX_ENTRY): Likewise.
36801 (grub_e820_mmap): New structure.
36802 (linux_kernel_header): Change the efi field according to different
36803 kernel version, also field from linux_kernel_header.
36805 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36807 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36808 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36809 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36810 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36811 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36812 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36813 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36814 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36815 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36816 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36818 * include/grub/x86_64/efi/kernel.h: New file.
36820 * include/grub/x86_64/efi/loader.h: Likewise.
36822 * include/grub/x86_64/efi/machine.h: Likewise.
36824 * include/grub/x86_64/efi/pci.h: Likewise.
36826 * include/grub/x86_64/efi/time.h: Likewise.
36828 * include/grub/x86_64/linux.h: Likewise.
36830 * include/grub/x86_64/setjmp.h: Likewise.
36832 * include/grub/x86_64/time.h: Likewise.
36834 * include/grub/x86_64/types.h: Likewise.
36836 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36837 GRUB_TARGET_SIZEOF_VOID_P.
36839 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36840 (grub_efi_locate_handle): Likewise.
36841 (grub_efi_open_protocol): Likewise.
36842 (grub_efi_set_text_mode): Likewise.
36843 (grub_efi_stall): Likewise.
36844 (grub_exit): Likewise.
36845 (grub_reboot): Likewise.
36846 (grub_halt): Likewise.
36847 (grub_efi_exit_boot_services): Likewise.
36848 (grub_get_rtc): Likewise.
36850 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36851 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36852 (grub_efi_allocate_pages): Wrap efi calls.
36853 (grub_efi_free_pages): Wrap efi calls.
36854 (grub_efi_get_memory_map): Wrap efi calls.
36856 * kern/x86_64/dl.c: New file.
36858 * kern/x86_64/efi/callwrap.S: Likewise.
36860 * kern/x86_64/efi/startup.S: Likewise.
36862 * loader/efi/appleloader.c: Likewise.
36864 * loader/efi/chainloader.c (cmdline): New variable.
36865 (grub_chainloader_unload): Wrap efi calls.
36866 (grub_chainloader_boot): Likewise.
36867 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36870 * loader/efi/chainloader_normal.c (chainloader_command):
36871 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36874 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36876 (grub_e820_add_region): New function.
36877 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36879 (grub_find_video_card): New function.
36880 (grub_linux_setup_video): New function.
36881 (grub_rescue_cmd_linux): Probe for video information.
36883 * normal/x86_64/setjmp.S: New file.
36885 * term/efi/console.c (map_char): New function.
36886 (grub_console_putchar): Map unicode char.
36887 (grub_console_checkkey): Wrap efi calls.
36888 (grub_console_getkey): Likewise.
36889 (grub_console_getwh): Likewise.
36890 (grub_console_gotoxy): Likewise.
36891 (grub_console_cls): Likewise.
36892 (grub_console_setcolorstate): Likewise.
36893 (grub_console_setcursor): Likewise.
36895 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36897 2008-07-16 Pavel Roskin <proski@gnu.org>
36899 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36902 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36903 pointer, not an integer. This fixes a warning and prevents
36904 precision loss on 64-bit systems.
36905 (relocate_addresses): Remove unneeded cast.
36907 2008-07-15 Pavel Roskin <proski@gnu.org>
36909 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36911 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36913 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36914 Fix comparison between signed and unsigned.
36916 * include/grub/i386/ieee1275/console.h: Declare
36917 grub_console_init() and grub_console_fini().
36919 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36920 It's empty and unused.
36922 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36923 beginning to avoid warnings with some compilers.
36925 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36926 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36928 2008-07-14 Pavel Roskin <proski@gnu.org>
36930 * kern/env.c (grub_register_variable_hook): Don't copy empty
36931 string, it leaks memory. Pass "" to grub_env_set(), it should
36932 handle constant strings.
36934 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36935 * commands/cmp.c (grub_cmd_cmp): Likewise.
36936 * kern/dl.c (grub_dl_flush_cache): Likewise.
36937 (grub_dl_load_core): Likewise.
36938 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36939 (grub_elf64_load_phdrs): Likewise.
36941 2008-07-13 Pavel Roskin <proski@gnu.org>
36943 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36944 between signed and unsigned.
36945 (LzmaEnc_Finish): Fix warning about an unused parameter.
36947 2008-07-13 Bean <bean123ch@gmail.com>
36949 * Makefile.in (enable_lzo): New rule.
36951 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36953 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36955 * boot/i386/pc/lnxboot.S: #include <config.h>.
36957 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36958 its value according to the compression algorithm used, lzo or lzma.
36960 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36961 compression algorithm according to configure macro.
36963 * kern/i386/pc/startup.S (codestart): Likewise.
36965 * kern/i386/pc/lzma_decode.S: New file.
36967 * include/grub/lib/LzFind.h: Likewise.
36969 * include/grub/lib/LzHash.h: Likewise.
36971 * include/grub/lib/LzmaDec.h: Likewise.
36973 * include/grub/lib/LzmaEnc.h: Likewise.
36975 * include/grub/lib/LzmaTypes.h: Likewise.
36977 * lib/LzFind.c: Likewise.
36979 * lib/LzmaDec.c: Likewise.
36981 * lib/LzmaEnc.c: Likewise.
36983 2008-07-13 Bean <bean123ch@gmail.com>
36985 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36986 (grub_ext4_extent_header): New structure.
36987 (grub_ext4_extent): Likewise.
36988 (grub_ext4_extent_idx): Likewise.
36989 (grub_ext4_find_leaf): New function.
36990 (grub_ext2_read_block): Handle extents.
36992 2008-07-12 Robert Millan <rmh@aybabtu.com>
36994 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
36996 2008-07-11 Robert Millan <rmh@aybabtu.com>
36998 * util/grub.d/40_custom.in: New file. Example on how to add custom
36999 entries to /etc/grub.d.
37000 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
37001 40_custom (implicitly, by merging all the grub.d rules).
37003 2008-07-11 Pavel Roskin <proski@gnu.org>
37005 * commands/read.c (grub_getline): Fix invalid memory access.
37006 Don't add newline to the variable value.
37008 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
37009 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
37010 (serial_hw_get_port): Check validity of the port number.
37011 (grub_cmd_serial): Check return value of serial_hw_get_port().
37013 2008-07-07 Pavel Roskin <proski@gnu.org>
37015 * boot/i386/pc/diskboot.S (notification_string): Replace
37016 "Loading kernel" with just "loading". This is shorter, less
37017 confusing and saves a few bytes for possible future changes.
37019 2008-07-05 Pavel Roskin <proski@gnu.org>
37021 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
37022 size for ATAPI devices, they are undefined. Output sector
37023 number in decimal form.
37025 * disk/ata.c: Use named constants for status bits.
37027 2008-07-04 Pavel Roskin <proski@gnu.org>
37029 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
37030 grub_addr_t before casting it to the void pointer to fix a
37031 warning. Non-addressable regions are discarded earlier.
37032 (grub_arch_modules_addr): Cast _end to grub_addr_t.
37033 * kern/i386/linuxbios/table.c: Include grub/misc.h.
37034 (check_signature): Don't shadow table_header.
37035 (grub_linuxbios_table_iterate): Cast numeric constants to
37036 grub_linuxbios_table_header_t.
37037 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
37040 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
37043 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
37044 pointer, which can cause warnings. Support 64-bit addresses.
37046 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
37047 of sizeof(long). This fixes PowerPC image generation on x86_64.
37049 2008-07-04 Robert Millan <rmh@aybabtu.com>
37051 This fixes a performance issue when pc & gpt partmap iterators
37052 didn't abort iteration even after our hook found what it was
37053 looking for (often causing expensive probes of non-existent drives).
37055 Some callers relied on previous buggy behaviour, since they would
37056 raise an error when their own hooks caused early abortion of its
37059 * kern/device.c (grub_device_open): Improve error message.
37060 * disk/lvm.c (grub_lvm_open): Likewise.
37061 * disk/raid.c (grub_raid_open): Likewise.
37063 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37064 when hook requests it, independently of grub_errno.
37065 (pc_partition_map_probe): Do not fail when find_func() caused
37066 early abortion of pc_partition_map_iterate().
37068 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37069 when hook requests it, independently of grub_errno.
37070 (gpt_partition_map_probe): Do not fail when find_func() caused
37071 early abortion of gpt_partition_map_iterate().
37073 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37074 when hook requests it, independently of grub_errno. Do not fail when
37075 part_map_iterate_hook() caused early abortion of p->iterate().
37077 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37078 when grub_partition_iterate() returned with non-zero.
37080 2008-07-03 Pavel Roskin <proski@gnu.org>
37082 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37083 like we do in grub_ata_pio_read().
37084 (grub_ata_readwrite): Always write individual sectors. Fix the
37085 sector count for the remainder.
37086 (grub_ata_write): Enable writing to ATA devices. Correctly
37087 report error for ATAPI devices.
37089 2008-07-02 Pavel Roskin <proski@gnu.org>
37091 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37094 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37095 for every read sector, we already increment it for the whole
37096 batch. This fixes reading more than 256 sectors at once.
37098 * util/grub-editenv.c (cmd_info): Cast argument to long
37099 explicitly. ptrdiff_t reduces to int on i386.
37101 * util/grub-editenv.c (main): Be specific which parameter is
37104 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37105 (memdisk): Make memdisk_orig_addr a pointer.
37107 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37108 for file offsets, use grub_off_t instead. Fix printf format
37111 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37112 there. Real unexpected warnings should not drown in the noise
37113 about known problems.
37115 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37116 grub_disk_addr_t for memory addresses.
37118 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37119 explicitly to fix a warning.
37121 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37123 * Makefile.in (MODULE_LDFLAGS): New variable.
37124 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37125 the linker accepts --build-id=none.
37126 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37128 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37130 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37131 those in Linux XFS code. Provide a way to access 64-bit parent
37133 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37134 the end of struct grub_xfs_dir_header.
37136 2008-07-02 Bean <bean123ch@gmail.com>
37138 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37139 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37140 and GRUB_IEEE1275_FLAG_NO_ANSI.
37142 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37143 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37144 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37146 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37147 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37149 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37150 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37152 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37153 esc sequence on non ANSI terminal.
37154 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37156 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37159 2008-07-02 Bean <bean123ch@gmail.com>
37161 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37162 (grub_editenv_SOURCES): New variable.
37163 (pkglib_MODULES): Add loadenv.mod.
37164 (loadenv_mod_SOURCES): New variable.
37165 (loadenv_mod_CFLAGS): Likewise.
37166 (loadenv_mod_LDFLAGS): Likewise.
37168 * include/grub/envblk.h: New file.
37170 * util/envblk.c: New file.
37172 * util/grub-editenv.c: New file.
37174 * commands/loadenv.c: New file.
37176 2008-07-01 Pavel Roskin <proski@gnu.org>
37178 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37179 not unsigned char. This fixes warnings and is consistent with
37182 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37184 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37186 * term/tparm.c (analyze): Always set *popcount.
37188 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37189 cast to fix a warning.
37191 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37192 cast to suppress a warning.
37194 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37195 grub_fshelp_read_file() expects.
37197 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37198 write uuid as a 32-bit value in CPU byte order, so declare and
37201 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37202 long if the format specifier expects it.
37203 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37204 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37205 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37206 long to fix a warning.
37207 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37208 grub_dprintf() arguments to fix warnings.
37210 2008-06-30 Pavel Roskin <proski@gnu.org>
37212 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37213 install_bsd_part immediately before core.img is embedded or
37214 modified on disk. This fixes core.img verification if core.img
37215 cannot be embedded.
37217 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37218 core_path to calculate the blocklist.
37219 Patch from Javier Martín <lordhabbit@gmail.com>
37221 2008-06-29 Robert Millan <rmh@aybabtu.com>
37223 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37224 block to disk block.
37225 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37226 Patch from Niels Böhm <bitbucket@arcor.de>
37228 2008-06-29 Robert Millan <rmh@aybabtu.com>
37230 * util/update-grub_lib.in (font_path): Search for fonts in
37231 /boot/grub first, which is more likely to be readable (we aren't
37232 deciding where fonts live, just looking for them).
37234 2008-06-26 Pavel Roskin <proski@gnu.org>
37236 * util/biosdisk.c (read_device_map): Don't leave dead map
37237 entries for devices failing stat() check.
37239 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37240 core_path_dev for the core.img path on the target device.
37242 2008-06-26 Robert Millan <rmh@aybabtu.com>
37244 * disk/fs_uuid.c: New file.
37245 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37246 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37247 (fs_uuid_mod_LDFLAGS): New variables.
37248 * include/grub/disk.h (grub_disk_dev_id): Add
37249 `GRUB_DISK_DEVICE_UUID_ID'.
37250 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37251 implement iterate().
37253 2008-06-26 Robert Millan <rmh@aybabtu.com>
37255 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37256 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37257 Linux image includes no initrd.
37259 2008-06-21 Javier Martín <lordhabbit@gmail.com>
37261 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37262 call to resolve the core image location that effectively appended the
37265 2008-06-21 Robert Millan <rmh@aybabtu.com>
37267 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37270 * util/grub.d/10_hurd.in: ... to here ...
37271 * util/grub.d/10_linux.in: ... and here.
37273 2008-06-19 Robert Millan <rmh@aybabtu.com>
37275 * kern/main.c (grub_main): Export `prefix' variable immediately
37276 after it has been set by grub_machine_set_prefix().
37278 2008-06-19 Robert Millan <rmh@aybabtu.com>
37280 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37281 search result when not saving to variable, not the other way around.
37282 When saving to variable, abort iteration as soon as a match is found.
37284 2008-06-19 Robert Millan <rmh@aybabtu.com>
37286 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37287 check for partition that provides /boot/grub. Its logic is flawed,
37288 as it prevents prepare_grub_to_access_device() from being called
37291 2008-06-19 Robert Millan <rmh@aybabtu.com>
37293 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37294 "insmod" command directly when abstraction modules are needed,
37295 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
37296 since it had already been processed).
37298 2008-06-19 Pavel Roskin <proski@gnu.org>
37300 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37301 changed. This is needed in case GRUB_LIBDIR changes.
37302 * conf/i386-ieee1275.rmk: Likewise.
37303 * conf/i386-linuxbios.rmk: Likewise.
37304 * conf/i386-pc.rmk: Likewise.
37305 * conf/powerpc-ieee1275.rmk: Likewise.
37307 2008-06-18 Pavel Roskin <proski@gnu.org>
37309 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37310 kernel_elf_symlist.c to symlist.c for consistency with other
37311 architectures. Update all users.
37312 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37314 2008-06-18 Robert Millan <rmh@aybabtu.com>
37316 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37319 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37320 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37321 a RAID device, run setup() for all members independently on whether
37322 LVM abstraction is being used.
37323 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37324 If grub-mkimage has set `*install_dos_part == -2', don't override this
37326 Perform *install_dos_part adjustments independently on whether
37327 we're embedding or not.
37328 Clarify error message when image is too big for embedding.
37329 Remove duplicate *install_dos_part stanza.
37331 2008-06-17 Robert Millan <rmh@aybabtu.com>
37333 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37334 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37336 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37337 values in grub_ofconsole_normal_color and
37338 grub_ofconsole_highlight_color (they're not directly related to
37339 background and foreground).
37340 (grub_ofconsole_setcolorstate): Extract background and foreground
37341 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37343 2008-06-17 Robert Millan <rmh@aybabtu.com>
37345 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37346 /boot/grub for the check in last commit, not /boot (they could be
37347 different partitions).
37349 2008-06-16 Robert Millan <rmh@aybabtu.com>
37351 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37352 asked to setup access for the same partition that provides /boot,
37353 don't bother using UUIDs since our root already has the value we
37356 2008-06-16 Robert Millan <rmh@aybabtu.com>
37358 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37360 Patch from Sven Mueller <sven@debian.org>.
37362 2008-06-16 Robert Millan <rmh@aybabtu.com>
37364 * util/update-grub.in: Check for $EUID instead of $UID.
37365 Reported by Vincent Zweije.
37367 2008-06-16 Bean <bean123ch@gmail.com>
37369 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37370 (grub_ext2_read_block): Likewise.
37371 (grub_ext2_read_inode): Likewise.
37372 (grub_ext2_mount): Likewise.
37373 (grub_ext2_close): Likewise.
37374 (grub_ext3_get_journal): Removed.
37376 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37377 (grub_reiserfs_read_symlink): Likewise.
37378 (grub_reiserfs_mount): Likewise.
37379 (grub_reiserfs_open): Likewise.
37380 (grub_reiserfs_read): Likewise.
37381 (grub_reiserfs_close): Likewise.
37382 (grub_reiserfs_get_journal): Removed.
37384 * fs/fshelp.c (grub_fshelp_read): Removed.
37385 (grub_fshelp_map_block): Likewise.
37387 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37388 (grub_fshelp_journal): Likewise.
37389 (grub_fshelp_read): Likewise.
37390 (grub_fshelp_map_block): Likewise.
37392 2008-06-16 Pavel Roskin <proski@gnu.org>
37394 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37395 floating point anymore.
37396 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37398 2008-06-15 Pavel Roskin <proski@gnu.org>
37400 * commands/ls.c (grub_ls_list_files): Use integer calculations
37401 for human readable format, avoid floating point use.
37402 * kern/misc.c (grub_ftoa): Remove.
37403 (grub_vsprintf): Remove floating point support.
37405 2008-06-15 Robert Millan <rmh@aybabtu.com>
37407 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37409 Reported by Max Vozeler.
37411 2008-06-15 Robert Millan <rmh@aybabtu.com>
37413 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37414 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37416 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37417 the beginning of the prefix.
37419 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37420 It is assumed that if we have a memdisk, grub-mkimage has set
37421 grub_prefix to include the "(memdisk)" drive in it.
37423 2008-06-15 Robert Millan <rmh@aybabtu.com>
37425 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37426 Initialize keyboard controller after registering the terminal, so that
37427 grub_printf() can be called from grub_keyboard_controller_init().
37429 2008-06-15 Robert Millan <rmh@aybabtu.com>
37431 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37432 extent-btree which is written as big endian on disk.
37433 Reported by Alain Greppin <al@chilibi.org>.
37435 2008-06-14 Robert Millan <rmh@aybabtu.com>
37437 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37438 * util/i386/pc/grub-install.in (modules): Likewise.
37440 2008-06-13 Pavel Roskin <proski@gnu.org>
37442 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37444 2008-06-13 Bean <bean123ch@gmail.com>
37446 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37448 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37450 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37451 to indicate sparse block.
37453 2008-06-12 Pavel Roskin <proski@gnu.org>
37455 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37456 number, grub_fshelp_read() does it for us.
37458 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37459 linear disk read with journal translation.
37460 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37461 * include/grub/fshelp.h: Declare grub_fshelp_read().
37463 2008-06-09 Pavel Roskin <proski@gnu.org>
37465 * fs/minix.c (grub_minix_mount): Handle error reading
37468 2008-06-08 Robert Millan <rmh@aybabtu.com>
37470 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37471 don't append the RAID prefix afterwards.
37472 Reported by Clint Adams.
37474 2008-06-08 Robert Millan <rmh@aybabtu.com>
37476 Based on description from Pavel:
37477 * kern/disk.c (grub_disk_check_range): Rename to ...
37478 (grub_disk_adjust_range): ... this. Add a comment explaining the
37479 tasks performed by this function.
37481 2008-06-08 Robert Millan <rmh@aybabtu.com>
37483 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37484 `num_serial' (for consistency with other variables).
37485 (struct grub_ntfs_data): Add `uuid' member.
37486 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37487 (grub_ntfs_uuid): New function.
37488 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37490 2008-06-07 Pavel Roskin <proski@gnu.org>
37492 * util/biosdisk.c (open_device): Revert last change to the
37493 function, it broke installation. The sector needs to be
37494 different dependent on which device is opened.
37496 2008-06-06 Robert Millan <rmh@aybabtu.com>
37498 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37499 rest of GRUB, and breakage doesn't happen if its value were modified.
37501 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37502 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37503 a constant (same value).
37504 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37505 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37507 2008-06-06 Robert Millan <rmh@aybabtu.com>
37509 * util/biosdisk.c (open_device): Do not modify sector offset when
37510 accessing a partition. kern/disk.c already handles this for us.
37512 2008-06-06 Robert Millan <rmh@aybabtu.com>
37514 * util/grub-emu.c (grub_machine_init): Move code in this function from
37516 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37517 segfault in case grub_printf() is called).
37519 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37520 grub_probe. Update all users not to explicitly add it again.
37521 (grub_device): New variable; contains corresponding device for grubdir.
37522 (fs_module, partmap_module, devabstraction_module): Pass
37523 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37526 2008-06-05 Robert Millan <rmh@aybabtu.com>
37528 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37529 is found, print it (same layout as with labels).
37531 2008-06-04 Robert Millan <rmh@aybabtu.com>
37533 * util/biosdisk.c (get_drive): Rename to ...
37534 (find_grub_drive): ... this. Update all users.
37536 (get_os_disk): Rename to ...
37537 (convert_system_partition_to_system_disk): ... this. Update all users.
37539 (find_drive): Rename to ...
37540 (find_system_device): ... this. Update all users.
37542 2008-06-04 Robert Millan <rmh@aybabtu.com>
37544 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37545 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37546 (make_device_map): Likewise.
37548 2008-06-01 Robert Millan <rmh@aybabtu.com>
37550 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37551 before dereferencing it.
37553 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37554 union with fat12/fat16-specific ones. Add some new fields, including
37555 `num_serial' for both versions.
37556 (struct grub_fat_data): Add `uuid' member.
37557 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37558 names. Initialize `data->uuid' using `num_serial'.
37559 (grub_fat_uuid): New function.
37560 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37562 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37563 (grub_reiserfs_uuid): New function.
37564 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37567 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37568 (grub_xfs_uuid): New function.
37569 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37571 2008-06-01 Robert Millan <rmh@aybabtu.com>
37573 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37574 code that is backward compatible with pre-uuid search command.
37576 2008-05-31 Robert Millan <rmh@aybabtu.com>
37578 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37579 floppies after everything else, to ensure floppy drive isn't accessed
37580 unnecessarily (patch from Bean).
37582 2008-05-31 Robert Millan <rmh@aybabtu.com>
37584 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37585 not print device names when we were asked to set a variable.
37587 2008-05-31 Robert Millan <rmh@aybabtu.com>
37589 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37590 using "cursor-on" and "cursor-off" commands (understood at least by
37591 the Open Firmware flavour on OLPC).
37593 2008-05-31 Michael Gorven <michael@gorven.za.net>
37595 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37596 on and off sequences.
37598 2008-05-31 Robert Millan <rmh@aybabtu.com>
37600 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37601 * util/update-grub.in: Likewise.
37603 2008-05-30 Pavel Roskin <proski@gnu.org>
37605 * util/biosdisk.c (linux_find_partition): Simplify logic and
37606 make the code more universal. Keep special processing for
37607 devfs, but use a simple rule for all other devices. If the
37608 device ends with a number, append 'p' and the partition number.
37609 Otherwise, append only the partition number.
37611 2008-05-30 Robert Millan <rmh@aybabtu.com>
37613 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37614 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37615 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37616 the `root' parameter to Linux.
37618 2008-05-30 Robert Millan <rmh@aybabtu.com>
37620 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37621 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37622 --fs_uuid with --fs-uuid.
37623 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37624 all filesystems support them).
37626 2008-05-30 Robert Millan <rmh@aybabtu.com>
37628 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37629 grub_printf() flags, since we're printing in units of 2 bytes.
37631 2008-05-30 Robert Millan <rmh@aybabtu.com>
37633 * util/grub.d/00_header.in: Remove obsolete comment referencing
37634 convert_system_path_to_grub_path().
37635 * util/update-grub.in: Likewise.
37636 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37637 (convert_system_path_to_grub_path): Add a warning message explaining
37638 that this function is deprecated. Rely on is_path_readable_by_grub()
37639 for the readability checks.
37640 (font_path): Use is_path_readable_by_grub() for the readability
37641 check rather than convert_system_path_to_grub_path().
37643 2008-05-30 Robert Millan <rmh@aybabtu.com>
37645 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37646 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37647 converting it first.
37648 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37649 grub.cfg for access to font file, and afterwards call it again to set
37652 2008-05-30 Robert Millan <rmh@aybabtu.com>
37654 * commands/search.c (options): Add --fs_uuid option.
37655 (search_fs_uuid): New function.
37656 (grub_cmd_search): Fix --set argument passing.
37657 Use search_fs_uuid() when requested via --fs_uuid.
37658 (grub_search_init): Update help message.
37659 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37660 and redeclare it as an array of 16-bit words.
37661 (grub_ext2_uuid): New function.
37662 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37663 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37664 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37665 (GRUB_DEVICE_BOOT_UUID): New variables.
37666 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37667 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37669 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37670 just assume `root' variable has the right value.
37671 * util/grub.d/10_linux.in: Likewise.
37672 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37674 (main): Recognise `-t fs_uuid' argument.
37676 2008-05-30 Robert Millan <rmh@aybabtu.com>
37678 * util/biosdisk.c (map): Redefine structure to hold information
37679 about GRUB drive name.
37680 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37682 (call_hook): Remove.
37683 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37684 member. Assume drive has partitions.
37685 (grub_util_biosdisk_open): Access device names via `.device' struct
37687 (open_device): Likewise.
37688 (find_drive): Likewise.
37689 (read_device_map): Adjust map[] usage to match the new struct
37690 definition. Don't check for duplicates (still possible, but not cheap
37692 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37693 (make_device_name): Remove assumption of BIOS-like drive names.
37695 2008-05-30 Pavel Roskin <proski@gnu.org>
37697 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37698 compiling execute.c doesn't need grub_script.tab.h anymore.
37699 (normal/command.c_DEPENDENCIES): Likewise.
37700 (normal/function.c_DEPENDENCIES): Likewise.
37701 * conf/i386-ieee1275.rmk: Likewise.
37702 * conf/i386-linuxbios.rmk: Likewise.
37703 * conf/i386-pc.rmk: Likewise.
37704 * conf/powerpc-ieee1275.rmk: Likewise.
37705 * conf/sparc64-ieee1275.rmk: Likewise.
37707 2008-05-29 Pavel Roskin <proski@gnu.org>
37709 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37710 when scanning metadata for volume group name.
37712 * include/grub/script.h: Don't include grub_script.tab.h. It's
37713 a generated file, which may only be included from the files with
37714 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37715 use union YYSTYPE, as the later allows forward declaration.
37716 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37718 2008-05-29 Robert Millan <rmh@aybabtu.com>
37720 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37721 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37722 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37723 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37726 2008-05-29 Robert Millan <rmh@aybabtu.com>
37728 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37729 control key combinations.
37731 2008-05-29 Robert Millan <rmh@aybabtu.com>
37733 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37734 * util/ieee1275/grub-install.in: ... to here.
37735 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37736 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37737 (grub_install_SOURCES): Likewise.
37739 2008-05-29 Robert Millan <rmh@aybabtu.com>
37741 * fs/affs.c: Update copyright year.
37742 * fs/ext2.c: Likewise.
37743 * fs/fshelp.c: Likewise.
37744 * fs/hfsplus.c: Likewise.
37745 * fs/ntfs.c: Likewise.
37746 * fs/xfs.c: Likewise.
37747 * include/grub/fshelp.h: Likewise.
37748 * util/grub-mkdevicemap.c: Likewise.
37750 2008-05-28 Robert Millan <rmh@aybabtu.com>
37752 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37753 might need to be fatfs to support some firmware implementations
37756 2008-05-28 Robert Millan <rmh@aybabtu.com>
37758 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37760 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37761 (make_device_map): Likewise.
37763 2008-05-20 Bean <bean123ch@gmail.com>
37765 * fs/fshelp.c (grub_fshelp_map_block): New function.
37766 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37767 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37769 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37770 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37771 (grub_fshelp_journal): New structure.
37772 (grub_fshelp_map_block): New function prototype.
37773 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37774 (grub_fshelp_map_block): Likewise.
37776 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37777 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37778 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37779 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37780 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37781 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37782 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37783 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37784 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37785 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37786 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37787 (grub_ext2_sblock): New members for journal support.
37788 (grub_ext3_journal_header): New structure.
37789 (grub_ext3_journal_revoke_header): Likewise.
37790 (grub_ext3_journal_block_tag): Likewise.
37791 (grub_ext3_journal_sblock): Likewise.
37792 (grub_fshelp_node): New members logfile and journal.
37793 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37794 grub_fshelp_map_block to get real block number.
37795 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37797 (grub_ext2_read_inode): Likewise.
37798 (grub_ext3_get_journal): New function.
37799 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37800 (grub_ext2_close): Release memory used by journal.
37802 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37803 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37804 (grub_reiserfs_transaction_header): Renamed to
37805 grub_reiserfs_description_block, replace field data with real_blocks.
37806 (grub_reiserfs_commit_block): New structure.
37807 (grub_reiserfs_data): New member journal.
37808 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37810 (grub_reiserfs_read_symlink): Likewise.
37811 (grub_reiserfs_iterate_dir): Likewise.
37812 (grub_reiserfs_open): Likewise.
37813 (grub_reiserfs_read): Likewise.
37814 (grub_reiserfs_get_journal): New function.
37815 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37816 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37817 using grub_reiserfs_get_journal.
37818 (grub_reiserfs_close): Release memory used by journal.
37820 * fs/affs.c (grub_affs_read_block): Change block type to
37821 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37823 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37825 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37827 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37829 * fs/udf.c (grub_udf_read_block): Change block type to
37830 grub_disk_addr_t. Use type cast to avoid warning.
37832 * fs/xfs.c (grub_xfs_read_block): Likewise.
37834 2008-05-16 Christian Franke <franke@computer.org>
37836 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37837 to ensure that break with ESC will always work.
37838 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37839 Remove ESC from keyboard queue.
37841 2008-05-16 Christian Franke <franke@computer.org>
37843 * util/biosdisk.c: [__CYGWIN__] Add includes.
37844 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37845 (get_os_disk): Move variable declarations to OS specific
37846 parts to avoid warning.
37847 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37848 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37849 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37851 * util/getroot.c: [__CYGWIN__] Add includes.
37852 (strip_extra_slashes): Fix "/" case.
37853 [__CYGWIN__] (get_win32_path): New function.
37854 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37855 [__CYGWIN__] (find_root_device): Disable.
37856 [__CYGWIN__] (get_bootsec_serial): New function.
37857 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37858 [__linux__] (grub_guess_root_device): Add early returns to simplify
37860 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37861 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37862 check for Linux only.
37864 2008-05-15 Bean <bean123ch@gmail.com>
37866 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37867 keyboard hang problem in apple's intel mac.
37869 2008-05-09 Robert Millan <rmh@aybabtu.com>
37871 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37873 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37874 (make_device_map): Likewise.
37875 Reported by Aurelien Jarno <aurel32@debian.org>
37877 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37879 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37880 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37881 (make_device_map): Output entries for xvd type disks.
37883 2008-05-07 Robert Millan <rmh@aybabtu.com>
37885 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37887 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37888 (make_device_map): Likewise.
37889 Reported by Roland Dreier <rdreier@cisco.com>
37891 2008-05-07 Robert Millan <rmh@aybabtu.com>
37893 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37894 grub_strstr() call. Correct a few mistakes in failure path handling.
37896 2008-05-06 Robert Millan <rmh@aybabtu.com>
37898 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37899 Do not print a trailing slash (therefore, the root directory is an
37901 (convert_system_path_to_grub_path): Do not remove trailing slash
37902 from make_system_path_relative_to_its_root() output.
37904 * util/i386/pc/grub-install.in: Add trailing slash to output from
37905 make_system_path_relative_to_its_root().
37907 2008-05-06 Robert Millan <rmh@aybabtu.com>
37909 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37910 ensures that output lines aren't intermangled with those sent to
37911 stderr (via grub_util_info()).
37912 * util/grub-probe.c (grub_refresh): Likewise.
37913 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37915 2008-05-05 Christian Franke <franke@computer.org>
37917 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37918 Add Cygwin device names.
37919 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37920 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37921 (check_device): Return error instead of success on empty name.
37922 (make_device_map): Move label inside linux specific code to
37923 prevent compiler warning.
37925 2008-04-30 Robert Millan <rmh@aybabtu.com>
37927 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37928 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37930 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37932 2008-04-29 Robert Millan <rmh@aybabtu.com>
37934 * docs/grub.cfg: New file (example GRUB configuration).
37936 2008-04-26 Robert Millan <rmh@aybabtu.com>
37938 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37939 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37940 and `disk/ieee1275/nand.c'.
37942 2008-04-25 Bean <bean123ch@gmail.com>
37944 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37947 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37948 change the buffer size to 4096 for cdrom device.
37950 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37952 (_linux_mod_SOURCES): New variable.
37953 (_linux_mod_CFLAGS): Likewise.
37954 (_linux_mod_LDFLAGS): Likewise.
37955 (linux_mod_SOURCES): Likewise.
37956 (linux_mod_CFLAGS): Likewise.
37957 (linux_mod_LDFLAGS): Likewise.
37958 (nand_mod_SOURCES): Likewise.
37959 (nand_mod_CFLAGS): Likewise.
37960 (nand_mod_LDFLAGS): Likewise.
37962 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37963 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37964 type property. (nand device in olpc don't have this property)
37966 * include/grub/disk.h (grub_disk_dev_id): New macro
37967 GRUB_DISK_DEVICE_NAND_ID.
37969 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37970 function prototype.
37971 (grub_rescue_cmd_initrd): Likewise.
37973 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37974 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37975 ofw_cif_handler and ofw_idt, adjust padding number.
37977 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37978 GRUB_MACHINE_IEEE1275 is defined.
37980 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37981 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37983 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37984 on nested function heap_init.
37985 (grub_upper_mem): New variable for i386-ieee1275.
37986 (grub_get_extended_memory): New function for i386-ieee1275.
37987 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37989 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37990 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37993 * loader/i386/ieee1275/linux.c: New file.
37995 * loader/i386/ieee1275/linux_normal.c: New file.
37997 * disk/ieee1275/nand.c: New file.
37999 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
38001 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
38003 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
38005 2008-04-18 Robert Millan <rmh@aybabtu.com>
38007 Restructures early code path on ieee1275 to unify grub_main() as
38008 the first C function that is executed in every platform.
38010 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
38011 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
38013 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
38014 * kern/ieee1275/cmain.c (cmain): Rename to ...
38015 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
38016 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
38019 2008-04-18 Robert Millan <rmh@aybabtu.com>
38021 * util/update-grub.in: Fix syntax error when setting
38022 `GRUB_PRELOAD_MODULES'.
38023 Reported by Stephane Chazelas <stephane@artesyncp.com>
38025 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
38027 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
38028 section into account, newer toolchains generate unique build ids
38029 * configure.ac: remove the test for --build-id=none acceptance,
38030 we want build ids to be preserved
38031 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
38032 far from other sections don't cause the raw binary images grow
38035 2008-04-15 Robert Millan <rmh@aybabtu.com>
38037 * disk/lvm.c: Update copyright year.
38038 * kern/misc.c: Likewise.
38040 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38042 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
38043 there is no memory left for physical volume name.
38045 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38047 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
38048 volume name mapping to support bigger than 9 character names properly.
38050 2008-04-13 Robert Millan <rmh@aybabtu.com>
38052 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38053 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38055 2008-04-13 Christian Franke <franke@computer.org>
38057 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38058 to create a floppy emulation boot CD when non emulation mode
38060 Enable Joliet CD filesystem extension.
38062 2008-04-13 Robert Millan <rmh@aybabtu.com>
38064 * kern/misc.c (grub_strncat): Fix off-by-one error.
38065 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38067 * kern/env.c (grub_env_context_close): Clear current context, not
38069 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38071 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38073 2008-04-13 Robert Millan <rmh@aybabtu.com>
38075 Improve robustness when handling LVM.
38077 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
38078 (and leave `*p' unmodified).
38079 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38081 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38082 iterating through it.
38083 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38085 (grub_lvm_scan_device): Check the return value (and fail gracefully
38086 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38087 Don't assume `vg->pvs != NULL' when iterating through it.
38089 2008-04-13 Robert Millan <rmh@aybabtu.com>
38091 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38092 * genmk.rb (partmap): New variable.
38093 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38094 (#{partmap}): New target rule.
38095 * genpartmaplist.sh: New file.
38096 * Makefile.in (pkglib_DATA): Add partmap.lst.
38097 (partmap.lst): New target rule.
38098 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38099 modules (including all partition maps), instead of preloading them.
38101 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38103 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38104 `linux-boot-prober' (if installed) to detect other operating
38105 systems which are installed on the computer and add them to
38107 * conf/common.rmk: Build and install 30_os-prober.
38109 2008-04-12 Robert Millan <rmh@aybabtu.com>
38111 * kern/powerpc/ieee1275/init.c: Move from here ...
38112 * kern/ieee1275/init.c: ... to here. Update all users.
38114 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38115 * kern/ieee1275/cmain.c: ... to here. Update all users.
38117 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38118 * kern/ieee1275/openfw.c: ... to here. Update all users.
38120 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38121 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38123 2008-04-10 Pavel Roskin <proski@gnu.org>
38125 * configure.ac: Always use "_cv_" in cache variables for
38126 compatibility with Autoconf 2.62.
38128 2008-04-07 Robert Millan <rmh@aybabtu.com>
38130 Revert grub/machine/init.h addition by Pavel (since it breaks on
38131 i386-ieee1275 and others):
38132 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38133 * util/powerpc/ieee1275/misc.c: Likewise.
38135 2008-04-07 Robert Millan <rmh@aybabtu.com>
38137 * util/grub-probe.c (probe): Improve error message.
38139 2008-04-07 Robert Millan <rmh@aybabtu.com>
38141 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38142 (this prevents the presence of a bogus entry from ruining the whole
38145 2008-04-06 Pavel Roskin <proski@gnu.org>
38147 * util/biosdisk.c: Include grub/util/biosdisk.h.
38148 * util/grub-fstest.c (execute_command): Make static.
38149 * util/grub-mkdevicemap.c (check_device): Likewise.
38150 * util/i386/pc/misc.c: Include grub/machine/init.h.
38151 * util/powerpc/ieee1275/misc.c: Likewise.
38152 * util/lvm.c: Include grub/util/lvm.h.
38153 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38155 * util/raid.c: Include grub/util/raid.h.
38156 (grub_util_getdiskname): Make static.
38158 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38159 grub_hostfs_fini(), as they are called from grub_init_all() and
38160 grub_fini_all() respectively. This fixes an infinite loop in
38161 grub-fstest due to double registration of hostfs.
38162 Reported by Christian Franke <Christian.Franke@t-online.de>
38164 2008-04-05 Pavel Roskin <proski@gnu.org>
38166 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38167 all 8 functions. Otherwise, probe function 0 only.
38169 2008-04-04 Pavel Roskin <proski@gnu.org>
38171 * commands/lspci.c (grub_lspci_iter): Print the bus number
38174 * commands/lspci.c (grub_pci_classes): Fix typos.
38175 (grub_lspci_iter): Don't print func twice. Print vendor ID
38176 before device ID, as it's normally done.
38178 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38179 Fix signedness warnings.
38180 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38182 * util/ieee1275/get_disk_name.c: Include config.h so that
38183 _GNU_SOURCE is defined and getline() is declared. Mark an
38184 unused argument as such. Fix a signedness warning.
38186 2008-04-02 Pavel Roskin <proski@gnu.org>
38188 * genkernsyms.sh.in: Use more robust assignments for CC and
38189 srcdir. Quote srcdir.
38190 * gensymlist.sh.in: Likewise. Assert at the compile time that
38191 the symbol table is not empty.
38193 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38194 * fs/cpio.c (grub_cpio_read): Likewise.
38196 2008-04-01 Pavel Roskin <proski@gnu.org>
38198 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38199 * disk/host.c (grub_host_open): Likewise.
38200 * disk/loopback.c (grub_loopback_open): Likewise.
38201 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38202 disk->id as in disk/host.c, not a multi-character constant.
38204 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38205 later is obsolete, potentially dangerous and sets a bad example.
38206 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38207 * util/misc.c (grub_util_get_image_size): Likewise.
38209 * disk/loopback.c (options): Improve help for "--partitions".
38211 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38212 options to align them with the short options, e.g. "echo -e".
38214 2008-03-31 Bean <bean123ch@gmail.com>
38216 * video/reader/png.c (grub_png_data): New member is_16bit and
38218 (grub_png_decode_image_header): Detect 16 bit png image.
38219 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38220 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38221 (grub_video_reader_png): Release memory occupied by image_data.
38223 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38225 (grub_nfs_mount): Skip the test for sector per cluster.
38227 * include/grub/ntfs.h (MAX_SPC): Removed.
38229 2008-03-31 Bean <bean123ch@gmail.com>
38231 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38232 (grub_probe_SOURCES): Add fs/afs.c.
38233 (grub_fstest_SOURCES): Likewise.
38234 (afs_mod_SOURCES): New variable.
38235 (afs_mod_CFLAGS): Likewise.
38236 (afs_mod_LDFLAGS): Likewise.
38238 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38239 (grub_emu_SOURCES): Likewise.
38241 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38243 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38245 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38247 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38249 * fs/afs.c: New file.
38251 2008-03-30 Pavel Roskin <proski@gnu.org>
38253 * disk/host.c: Include grub/misc.h to fix a warning.
38254 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38255 warnings about implicit declarations.
38257 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38259 * include/grub/i386/loader.h: Change declaration of
38260 grub_linux_boot() to match what grub_loader_set() expects.
38261 * util/getroot.c (grub_guess_root_device): Return const char* to
38263 * util/grub-probe.c (probe): Fix a warning about uninitialized
38264 abstraction_name variable.
38265 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38266 second argument as unused to fix a warning.
38268 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38269 missing grub_error() call.
38271 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38272 2.60 and newer uses it to define datadir.
38274 * commands/sleep.c: Fix warning about implicit declaration.
38275 * disk/memdisk.c: Likewise.
38276 * loader/aout.c: Likewise.
38277 * loader/i386/bsd_normal.c: Likewise.
38278 * util/grub-probe.c: Likewise.
38280 * commands/i386/cpuid.c (has_longmode): Make static.
38281 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38282 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38284 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38285 GDT. This is more robust, as %ds can change.
38286 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38287 calling real_to_prot().
38288 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38290 2008-03-28 Pavel Roskin <proski@gnu.org>
38292 * kern/i386/pc/startup.S: Assert that uncompressed functions
38293 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38294 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38295 code, as they push parts of the code (error handlers) beyond
38296 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38297 code as correctness and size.
38299 2008-03-28 Pavel Roskin <proski@gnu.org>
38301 * kern/i386/pc/startup.S
38302 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38303 data block address to the real mode, keep offset minimal. This
38304 works around a bug in AWARD BIOS on old Athlon systems, which
38305 makes CD detection hang.
38307 2008-03-26 Pavel Roskin <proski@gnu.org>
38309 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38311 * include/grub/normal.h: Add grub_parse_color_name_pair()
38314 2008-03-24 Bean <bean123ch@gmail.com>
38316 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38317 (cd_count): Removed.
38318 (cd_drive): New variable.
38319 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38320 (grub_biosdisk_call_hook): Likewise.
38321 (grub_biosdisk_iterate): Change cdrom detection method.
38322 (grub_biosdisk_open): Replace cd_start with cd_drive.
38323 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38324 detect cdrom device.
38326 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38328 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38329 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38330 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38331 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38332 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38333 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38334 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38335 (grub_biosdisk_cdrp): New structure.
38336 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38338 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38340 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38343 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38346 2008-03-20 Robert Millan <rmh@aybabtu.com>
38348 Remove 2 TiB limit in ata.mod.
38349 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38350 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38351 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38352 grub_uint64_t instead of grub_uint32_t.
38354 2008-03-05 Bean <bean123ch@gmail.com>
38356 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38357 (grub_multiboot): Set boot device.
38359 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38361 2008-03-02 Bean <bean123ch@gmail.com>
38363 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38366 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38368 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38371 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38374 * docs/fdl.texi: New file.
38376 * docs/mdate-sh: New file. Copied from gnulib.
38377 * docs/texinfo.tex: Likewise.
38379 * config.guess: Updated from gnulib.
38380 * install-sh: Likewise.
38382 2008-02-28 Robert Millan <rmh@aybabtu.com>
38384 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38385 (aout_mod_SOURCES): New variable.
38386 (aout_mod_CFLAGS): Likewise.
38387 (aout_mod_LDFLAGS): Likewise.
38389 * conf/i386-ieee1275.rmk: Likewise.
38391 2008-02-28 Robert Millan <rmh@aybabtu.com>
38393 * util/update-grub.in: Reorganise terminal validity check. Accept
38394 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38395 Based on suggestion by Franklin PIAT.
38397 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38399 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38401 * util/getroot.c (grub_util_check_block_device): New function that
38402 returns the given argument if it is a block device and returns NULL else.
38403 * util/grub-probe.c (argument_is_device): New variable.
38404 (probe): Promote device_name from a variable to an argument. Receive
38405 device_name from grub_util_check_block_device() if path is NULL and from
38406 grub_guess_root_device() else. Do not free() device_name anymore.
38407 (options): Introduce new parameter '-d, --device'.
38408 (main): Add description of the new parameter to the help screen.
38409 Rename path variable to argument. Set argument_is_device if the '-d'
38410 option is given. Pass argument to probe() depending on
38411 argument_is_device.
38413 2008-02-24 Bean <bean123ch@gmail.com>
38415 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38416 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38417 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38418 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38419 (GRUB_ISO9660_VOLDESC_END): Likewise.
38420 (grub_iso9660_primary_voldesc): New member escape.
38421 (grub_iso9660_data): New member joliet.
38422 (grub_iso9660_convert_string): New function.
38423 (grub_iso9660_mount): Detect joliet extension.
38424 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38425 (grub_iso9660_iso9660_label): Likewise.
38427 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38428 (grub_setup_SOURCES): Add fs/udf.c.
38429 (grub_fstest_SOURCES): Likewise.
38430 (udf_mod_SOURCES): New variable.
38431 (udf_mod_CFLAGS): Likewise.
38432 (udf_mod_LDFLAGS): Likewise.
38434 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38435 (grub_emu_SOURCES): Likewise.
38437 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38439 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38441 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38443 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38445 * fs/udf.c: New file.
38447 2008-02-24 Robert Millan <rmh@aybabtu.com>
38449 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38450 (normal/lexer.c_DEPENDENCIES): New variables.
38451 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38452 (normal/lexer.c_DEPENDENCIES): Likewise.
38453 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38454 (normal/lexer.c_DEPENDENCIES): Likewise.
38455 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38456 (normal/lexer.c_DEPENDENCIES): Likewise.
38457 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38458 (normal/lexer.c_DEPENDENCIES): Likewise.
38459 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38460 (normal/lexer.c_DEPENDENCIES): Likewise.
38462 2008-02-23 Robert Millan <rmh@aybabtu.com>
38464 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38465 since they were intended to be in hex. This didn't break previously
38466 because of a bug in gpt_partition_map_iterate() (see below).
38468 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38469 when checking the validity of GPT header.
38470 Remove `partno', since it always provides the same information as `i'.
38472 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38474 * include/grub/efi/time.h: Fix a wrong comment.
38476 2008-02-19 Pavel Roskin <proski@gnu.org>
38478 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38481 2008-02-19 Bean <bean123ch@gmail.com>
38483 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38484 (aout_mod_SOURCES): New variable.
38485 (aout_mod_CFLAGS): Likewise.
38486 (aout_mod_LDFLAGS): Likewise.
38487 (_bsd_mod_SOURCES): New variable.
38488 (_bsd_mod_CFLAGS): Likewise.
38489 (_bsd_mod_LDFLAGS): Likewise.
38490 (bsd_mod_SOURCES): New variable.
38491 (bsd_mod_CFLAGS): Likewise.
38492 (bsd_mod_LDFLAGS): Likewise.
38494 * include/grub/aout.h: New file.
38496 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38498 * include/grub/i386/bsd.h: New file.
38500 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38503 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38504 function is called, so that it's possible to change it inside the hook.
38505 (grub_elf64_load): Likewise.
38506 (grub_elf_file): Don't close the file if elf header is not found.
38507 (grub_elf_close): Close the file if grub_elf_file fails (The new
38508 grub_elf_file won't close it).
38509 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38510 (grub_elf64_size): Likewise.
38512 * kern/i386/loader.S (grub_unix_real_boot): New function.
38514 * loader/aout.c: New file.
38516 * loader/i386/bsd.c: New file.
38518 * loader/i386/bsd_normal.c: New file.
38520 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38522 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38523 can test other formats.
38525 2008-02-19 Robert Millan <rmh@aybabtu.com>
38527 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38528 (grub_gpt_partition_type_empty): Redefine with macro from
38529 `<grub/gpt_partition.h>'.
38530 (gpt_partition_map_iterate): Adjust partition type comparison.
38532 Export `entry' as partmap-specific `part.data' struct.
38533 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38535 * include/grub/gpt_partition.h (grub_gpt_header)
38536 (grub_gpt_partentry): ... to here (new file).
38538 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38540 (grub_gpt_partition_type_bios_boot): New const variable, defined
38541 with macro from `<grub/gpt_partition.h>'.
38543 (setup): Replace `first_start' with `embed_region', which keeps
38544 track of the embed region (and is partmap-agnostic).
38546 Replace find_first_partition_start() with find_usable_region(),
38547 which finds a usable region for embedding using partmap-specific
38548 knowledge (supports PC/MSDOS and GPT).
38550 Fix all assumptions that the embed region start at sector 1, using
38551 `embed_region.start' from now on. Similarly, use `embed_region.end'
38552 rather than `first_start' to calculate available size.
38554 In grub_util_info() message, replace "into after the MBR" with an
38555 indication of the specific sector our embed region starts at.
38557 2008-02-19 Robert Millan <rmh@aybabtu.com>
38559 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38560 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38561 `commands/reboot.c'.
38562 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38563 (halt_mod_SOURCES): Likewise.
38564 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38565 (halt_mod_SOURCES): Likewise.
38567 2008-02-17 Christian Franke <franke@computer.org>
38569 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38571 2008-02-17 Robert Millan <rmh@aybabtu.com>
38573 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38574 set `first_start' to 0 for non-PC/MSDOS partition maps.
38576 2008-02-16 Robert Millan <rmh@aybabtu.com>
38578 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38579 do not assume partition map is PC/MSDOS before performing checks that
38580 are specific to that layout.
38582 2008-02-13 Robert Millan <rmh@aybabtu.com>
38584 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38585 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38586 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38588 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38590 * configure.ac: Only a cosmetic change on the handling of
38591 -fno-stack-protector.
38593 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38595 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38596 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38598 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38599 (halt_mod_SOURCES): New variable.
38600 (halt_mod_CFLAGS): Likewise.
38601 (halt_mod_LDFLAGS): Likewise.
38602 (reboot_mod_SOURCES): Likewise.
38603 (reboot_mod_CFLAGS): Likewise.
38604 (reboot_mod_LDFLAGS): Likewise.
38606 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38607 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38609 (halt_mod_SOURCES): Likewise.
38610 (reboot_mod_SOURCES): Likewise.
38612 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38613 commands/i386/pc/reboot.c by commands/reboot.c.
38614 (reboot_mod_SOURCES): Likewise.
38616 * commands/i386/pc/reboot.c: merge this file ...
38618 * commands/ieee1275/reboot.c: ... and this file ...
38620 * commands/reboot.c: ... to this file.
38621 Add some precompiler directive to include the correct header for
38624 * commands/ieee1275/halt.c: move this file ...
38626 * commands/halt.c: ... to here.
38627 Add some precompiler directive to include the correct header for
38630 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38631 (grub_halt): Likewise.
38633 * kern/efi/efi.c (grub_reboot): New function.
38634 (grub_halt): Likewise.
38636 2008-02-12 Robert Millan <rmh@aybabtu.com>
38638 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38639 /dev (like it is done for /dev/mapper). This doesn't provide support
38640 for EVMS, but at least it is now easy to identify the problem when it
38643 2008-02-11 Robert Millan <rmh@aybabtu.com>
38645 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38646 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38647 comparing it with -1, not 0.
38649 2008-02-10 Robert Millan <rmh@aybabtu.com>
38651 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38653 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38654 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38656 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38657 `disk/lvm.c' to the end of the list.
38658 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38659 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38661 2008-02-10 Robert Millan <rmh@aybabtu.com>
38663 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38664 grub_print_error() instead. This will let user know why we're entering
38666 Based on suggestions from Sam Morris.
38668 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38670 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38671 on remaining N args, instead of "--" arg N times.
38673 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38675 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38676 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38677 pattern for unknown glyphs.
38679 2008-02-09 Robert Millan <rmh@aybabtu.com>
38681 * configure.ac: Probe for `help2man'.
38682 * Makefile.in (builddir): New variable.
38683 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38684 or otherwise add a few flags/options to it.
38685 (install-local): For every executable utility or script that is
38686 installed, invoke $(HELP2MAN) to install a manpage based on --help
38689 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38690 that it doesn't prevent --help from working in build tree.
38692 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38693 with `bug-grub@gnu.org'.
38694 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38695 * util/update-grub.in (usage): New function.
38696 Implement proper argument check, with support for --help and --version
38697 (as well as existing -y).
38699 2008-02-09 Christian Franke <franke@computer.org>
38701 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38702 avoid overwriting previous output.
38703 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38705 2008-02-09 Robert Millan <rmh@aybabtu.com>
38707 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38710 2008-02-09 Robert Millan <rmh@aybabtu.com>
38712 * commands/sleep.c: New file.
38713 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38714 (sleep_mod_SOURCES): New variable.
38715 (sleep_mod_CFLAGS): Likewise.
38716 (sleep_mod_LDFLAGS): Likewise.
38718 2008-02-09 Robert Millan <rmh@aybabtu.com>
38720 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38721 situations in which we can deduce the RAID size and the superblock
38724 2008-02-09 Robert Millan <rmh@aybabtu.com>
38726 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38727 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38728 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38730 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38731 and return a grub_diskmemberlist_t composed of physical array members.
38732 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38734 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38736 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38737 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38738 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38740 * util/grub-probe.c (probe): Move partmap probing code from here ...
38741 (probe_partmap): ... to here.
38742 (probe): Use probe_partmap() once for the disk we're probing, and
38743 additionally, when such disk contains a memberlist() struct member,
38744 once for each disk that is contained in the structure returned by
38747 2008-02-09 Robert Millan <rmh@aybabtu.com>
38749 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38750 environment variable to 'all' in order to obtain debug output from
38752 * util/i386/pc/grub-setup.c (main): Likewise.
38754 2008-02-08 Robert Millan <rmh@aybabtu.com>
38756 * disk/raid.c (grub_raid_scan_device): Check for
38757 `array->device[sb.this_disk.number]' rather than for
38758 `array->device[sb.this_disk.number]->name', since the latter is not
38759 guaranteed to be accessible.
38761 2008-02-08 Robert Millan <rmh@aybabtu.com>
38763 * disk/raid.c: Update copyright.
38764 * fs/cpio.c: Likewise.
38765 * include/grub/raid.h: Likewise.
38766 * loader/i386/pc/multiboot.c: Likewise.
38767 * util/hostfs.c: Likewise.
38769 2008-02-08 Robert Millan <rmh@aybabtu.com>
38771 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38772 to a grub_disk_t array.
38773 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38775 (grub_raid_scan_device): Replace `device[x].name' accesses with
38776 `device[x]->name'. Simplify initialization of `array->device[x]'.
38778 2008-02-08 Robert Millan <rmh@aybabtu.com>
38780 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38781 grub_dprintf() calls.
38782 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38785 2008-02-07 Christian Franke <franke@computer.org>
38787 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38788 instead of fseek and ftell to support large files.
38789 (grub_hostfs_read): Likewise.
38791 2008-02-07 Robert Millan <rmh@aybabtu.com>
38793 Patch from Jeroen Dekkers.
38794 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38795 failure, since successfully reading all array members might not be
38798 2008-02-06 Robert Millan <rmh@aybabtu.com>
38800 * util/grub-probe.c (probe): Simplify partmap probing (with the
38801 assumption that the first word up to the underscore equals to
38804 2008-02-06 Christian Franke <franke@computer.org>
38806 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38807 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38808 last block of a cpio or tar stream.
38809 Check for "TRAILER!!!" instead of any empty data
38810 block to detect last block of a cpio stream.
38811 (grub_cpio_dir): Fix constness of variable np.
38812 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38813 cpio or tar trailer is detected. This fixes a crash
38814 on open of a non existing file.
38816 2008-02-05 Bean <bean123ch@gmail.com>
38818 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38820 (grub_multiboot_load_elf64): Likewise.
38821 (grub_multiboot): Initialize mbi structure.
38823 * util/grub-fstest.c: Don't include unused header file script.h.
38825 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38827 (grub_fstest_SOURCES): Likewise.
38829 2008-02-05 Robert Millan <rmh@aybabtu.com>
38831 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38832 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38833 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38834 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38836 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38837 (translation_table): Replace hardcoded values with macros
38838 provided by `<grub/term.h>'.
38840 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38841 (keyboard_map): Correct/add a few values, with macros provided
38842 by `<grub/term.h>'.
38843 (keyboard_map_shift): Zero values that don't differ from their
38844 `keyboard_map' equivalents.
38845 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38846 Discard the second scan code that is always sent by Caps lock.
38847 Only use `keyboard_map_shift' when it provides a non-zero value,
38848 otherwise fallback to `keyboard_map'.
38850 2008-02-04 Bean <bean123ch@gmail.com>
38852 * Makefile.in (enable_grub_fstest): New variable.
38854 * conf/common.rmk (grub_fstest_init.lst): New rule.
38855 (grub_fstest_init.h): Likewise.
38856 (grub_fstest_init.c): Likewise.
38857 (util/grub-fstest.c_DEPENDENCIES): New variable.
38858 (grub_fstest_SOURCES): Likewise.
38860 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38862 * util/grub-fstest.c: New file.
38864 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38866 Make grub-setup handle a separate root device.
38868 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38869 so that the root device can be compared with the destination
38871 When embedding the core image, if the root and destination devices
38872 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38874 When not embedding, set ROOT_DRIVE to 0xFF.
38876 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38878 Add support for having a grub directory in a different drive. This
38879 is still only the data handling part.
38881 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38882 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38883 (grub_root_drive): New variable.
38885 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38886 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38887 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38890 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38892 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38894 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38896 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38897 is bogus, because PXE booting does not specify any drive
38900 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38901 am not sure if this is really correct.
38903 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38904 is always identical to the boot drive when booting from a CD.
38906 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38908 (root_drive): New variable.
38909 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38910 (setup_sectors): Push %dx right after popping it, because %dh will
38912 (copy_buffer): Restore %dx.
38914 2008-02-03 Robert Millan <rmh@aybabtu.com>
38916 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38917 use `cdboot.img' for cdrom images.
38919 2008-02-03 Robert Millan <rmh@aybabtu.com>
38921 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38922 only setup gfxterm when `font' command has succeeded.
38924 2008-02-03 Robert Millan <rmh@aybabtu.com>
38926 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38927 (grub_rescue_cmd_multiboot_loader)
38928 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38930 2008-02-03 Pavel Roskin <proski@gnu.org>
38932 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38933 %edx and %esi from stack only after grub_gate_a20() is called.
38934 grub_gate_a20() clobbers %edx.
38936 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38938 * configure.ac (AC_INIT): Bumped to 1.96.
38940 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38941 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38942 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38943 video/readers/png.c.
38945 2008-02-03 Bean <bean123ch@gmail.com>
38947 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38948 (cdboot_img_SOURCES): New variable.
38949 (cdboot_img_ASFLAGS): New variable.
38950 (cdboot_img_LDFLAGS): New variable.
38952 * boot/i386/pc/cdboot.S: New file.
38954 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38955 (cd_count): Likewise.
38956 (grub_biosdisk_get_drive): Add support for cd device.
38957 (grub_biosdisk_call_hook): Likewise.
38958 (grub_biosdisk_iterate): Likewise.
38959 (grub_biosdisk_open): Likewise.
38960 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38961 (grub_biosdisk_rw): Support reading from cd device.
38962 (GRUB_MOD_INIT): Iterate cd devices.
38964 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38965 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38966 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38968 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38970 2008-02-02 Robert Millan <rmh@aybabtu.com>
38972 * commands/read.c: New file.
38973 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38974 (read_mod_SOURCES): New variable.
38975 (read_mod_CFLAGS): Likewise.
38976 (read_mod_LDFLAGS): Likewise.
38978 2008-02-02 Robert Millan <rmh@aybabtu.com>
38980 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38981 determining whether menu has to be displayed.
38983 2008-02-02 Marco Gerards <marco@gnu.org>
38985 * bus/pci.c: New file.
38987 * include/grub/pci.h: Likewise.
38989 * include/grub/i386/pc/pci.h: Likewise.
38991 * commands/lspci.c: Likewise.
38993 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38995 (pci_mod_SOURCES): New variable.
38996 (pci_mod_CFLAGS): Likewise.
38997 (pci_mod_LDFLAGS): Likewise.
38998 (lspci_mod_SOURCES): Likewise.
38999 (lspci_mod_CFLAGS): Likewise.
39000 (lspci_mod_LDFLAGS): Likewise.
39002 2008-02-02 Bean <bean123ch@gmail.com>
39004 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
39005 (grub_ufs_get_file_block): Fix indirect block calculation problem.
39007 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
39008 (grub_xfs_btree_node): New structure.
39009 (grub_xfs_btree_root): New structure.
39010 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
39011 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
39012 (GRUB_XFS_EXTENT_BLOCK): Likewise.
39013 (GRUB_XFS_EXTENT_SIZE): Likewise.
39014 (grub_xfs_read_block): Support btree format type.
39015 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
39016 Use directory block as basic unit.
39018 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
39020 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
39021 __attribute__ ((__regparm__ (1))).
39023 2008-02-01 Robert Millan <rmh@aybabtu.com>
39025 Correct a mistake in previous commit.
39027 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
39029 (normal/command.c_DEPENDENCIES): New variable.
39031 2008-02-01 Robert Millan <rmh@aybabtu.com>
39033 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
39035 (normal/command.c_DEPENDENCIES): New variable.
39036 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
39037 * conf/i386-ieee1275.rmk: Likewise.
39038 * conf/i386-linuxbios.rmk: Likewise.
39039 * conf/i386-pc.rmk: Likewise.
39040 * conf/sparc64-ieee1275.rmk: Likewise.
39041 * conf/powerpc-ieee1275.rmk: Likewise.
39042 (grub_emu_SOURCES): Add `fs/fshelp.c'.
39044 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
39046 2008-02-01 Robert Millan <rmh@aybabtu.com>
39048 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
39049 call at beginning of function.
39051 2008-01-31 Pavel Roskin <proski@gnu.org>
39053 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
39054 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39055 (grub_mkrescue_SOURCES): Likewise.
39056 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39058 2008-01-30 Robert Millan <rmh@aybabtu.com>
39060 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39061 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39062 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39063 (grub_probe_SOURCES): ... to here.
39065 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39066 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39067 * conf/i386-ieee1275.rmk: Likewise.
39068 * conf/i386-linuxbios.rmk: Likewise.
39069 * conf/powerpc-ieee1275.rmk: Likewise.
39071 2008-01-30 Tristan Gingold <gingold@free.fr>
39073 * kern/rescue.c: Silently accept empty lines.
39075 2008-01-29 Bean <bean123ch@gmail.com>
39077 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39078 (real_code_2): Code cleanup and change comment style.
39079 (move_memory): Avoid using 32-bit address mode.
39081 2008-01-29 Bean <bean123ch@gmail.com>
39083 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39084 (png_mod_SOURCES): New variable.
39085 (png_mod_CFLAGS): Likewise.
39086 (png_mod_LDFLAGS): Likewise.
39088 * video/readers/png.c: New file.
39090 2008-01-28 Robert Millan <rmh@aybabtu.com>
39092 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39093 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39094 `ifndef GRUB_MOD_GAP' hack.
39095 * util/elf/grub-mkimage.c (add_segments): Likewise.
39097 2008-01-27 Robert Millan <rmh@aybabtu.com>
39099 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39100 `GRUB_MOD_GAP' for platforms in which it's not defined.
39101 * util/elf/grub-mkimage.c (add_segments): Likewise.
39103 2008-01-27 Robert Millan <rmh@aybabtu.com>
39105 Get grub-emu to build again (including parallel builds).
39107 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39109 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39110 (normal/execute.c_DEPENDENCIES): ... this, ...
39111 (grub-emu_DEPENDENCIES): ... and this.
39113 * conf/i386-efi.rmk: Likewise.
39114 * conf/i386-linuxbios.rmk: Likewise.
39115 * conf/i386-ieee1275.rmk: Likewise.
39116 * conf/powerpc-ieee1275.rmk: Likewise.
39117 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39119 2008-01-27 Robert Millan <rmh@aybabtu.com>
39121 * NEWS: Add a few items.
39123 2008-01-27 Robert Millan <rmh@aybabtu.com>
39125 Fix parallel builds with grub-emu. Based on earlier commit for
39126 grub-probe and grub-setup.
39128 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39129 (util/grub-emu.c_DEPENDENCIES): ... this.
39130 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39131 (util/grub-emu.c_DEPENDENCIES): ... this.
39132 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39133 (util/grub-emu.c_DEPENDENCIES): ... this.
39134 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39135 (util/grub-emu.c_DEPENDENCIES): ... this.
39136 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39137 (util/grub-emu.c_DEPENDENCIES): ... this.
39139 2008-01-27 Pavel Roskin <proski@gnu.org>
39141 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39142 to create a gap between _end and the modules added to the image
39143 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39144 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39145 * util/elf/grub-mkimage.c (add_segments): Likewise.
39147 2008-01-26 Pavel Roskin <proski@gnu.org>
39149 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39150 just return an error.
39152 2008-01-26 Bean <bean123ch@gmail.com>
39154 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39155 (grub_reiserfs_get_item): Save offset of the next item.
39156 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39158 2008-01-25 Robert Millan <rmh@aybabtu.com>
39160 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39161 make all filesystem sources appear together (possibly fixing omissions
39163 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39164 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39165 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39166 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39168 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39170 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39171 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39172 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39173 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39175 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39176 (probe): Add a sanity check to make sure of our ability to read
39177 requested files when probing for filesystem type.
39179 * genmk.rb: Update copyright year (2007).
39181 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39182 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39183 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39184 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39185 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39186 : Remove function prototypes.
39188 2008-01-25 Robert Millan <rmh@aybabtu.com>
39190 Revert my previous commits (based on wrong assumption of how grub_errno
39193 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
39194 * kern/file.c (grub_file_open): Likewise.
39196 2008-01-24 Pavel Roskin <proski@gnu.org>
39198 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39199 that hang if GRUB tries to setup colors.
39200 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39201 colors for firmwares that don't support it.
39202 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39203 Recognize Open Hack'Ware, set flags to work around its
39206 2008-01-24 Robert Millan <rmh@aybabtu.com>
39208 * kern/file.c (grub_file_open): Do not account previous failures of
39209 unrelated functions when grub_errno is checked for.
39210 Reported by Oleg Strikov.
39212 2008-01-24 Bean <bean123ch@gmail.com>
39214 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39215 (grub_ufs_sblock): New member volume name.
39216 (grub_ufs_find_file): Fix string copy bug.
39217 (grub_ufs_label): Implement this function properly.
39219 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39220 (grub_hfs_iterate_records): Use the correct file number for extents
39221 and catalog file. Fix problem in next index calculation.
39222 (grub_hfs_find_node): Replace recursive function call with loop.
39223 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39225 2008-01-23 Robert Millan <rmh@aybabtu.com>
39227 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39228 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39229 (grub_multiboot2_real_boot): New function prototype.
39231 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39232 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39234 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39235 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39237 2008-01-23 Robert Millan <rmh@aybabtu.com>
39239 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39240 #ifdef'ed out grub_printf().
39242 2008-01-23 Robert Millan <rmh@aybabtu.com>
39244 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39245 grub_dprintf calls, since they make "debug=all" mode unusable.
39246 (grub_console_checkkey): Likewise.
39248 2008-01-23 Robert Millan <rmh@aybabtu.com>
39250 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39251 `term/i386/pc/at_keyboard.c'.
39252 (pkglib_MODULES): Add `serial.mod'.
39253 (serial_mod_SOURCES): New variable.
39254 (serial_mod_CFLAGS): Likewise.
39255 (serial_mod_LDFLAGS): Likewise.
39257 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39258 `<grub/powerpc/ieee1275/console.h>'.
39259 (grub_keyboard_controller_init): New function prototype.
39260 (grub_console_checkkey): Likewise.
39261 (grub_console_getkey): Likewise.
39263 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39266 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39267 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39269 2008-01-23 Robert Millan <rmh@aybabtu.com>
39271 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39272 present, "(memdisk)/boot/grub" becomes the default prefix.
39274 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39275 a memdisk tarball with all the modules. Add --overlay=DIR option that
39276 allows users to overlay additional files into the image.
39278 2008-01-23 Robert Millan <rmh@aybabtu.com>
39280 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39281 and `machine/memory.h'.
39282 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39283 (_multiboot_mod_SOURCES): New variable.
39284 (_multiboot_mod_CFLAGS): Likewise.
39285 (_multiboot_mod_LDFLAGS): Likewise.
39286 (multiboot_mod_SOURCES): Likewise.
39287 (multiboot_mod_CFLAGS): Likewise.
39288 (multiboot_mod_LDFLAGS): Likewise.
39290 * include/grub/i386/ieee1275/loader.h: New file.
39292 * include/grub/i386/ieee1275/machine.h: Likewise.
39294 * include/grub/i386/ieee1275/memory.h: Likewise.
39296 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39297 variable declaration.
39298 (grub_os_area_size): Likewise.
39300 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39301 (grub_lower_mem, grub_upper_mem): New variables.
39302 (grub_stop_floppy): New function (just to make
39303 grub_multiboot2_real_boot() happy).
39305 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39306 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39307 (grub_stop): New function.
39308 Include `"../realmode.S"' and `"../loader.S"'.
39310 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39311 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39313 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39314 rely on grub_multiboot2_real_boot() for final boot.
39316 2008-01-22 Robert Millan <rmh@aybabtu.com>
39318 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39319 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39320 device that doesn't look like an SD card.
39321 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39322 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39323 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39324 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39327 2008-01-22 Robert Millan <rmh@aybabtu.com>
39329 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39330 avoid claiming over our own code.
39332 2008-01-22 Bean <bean123ch@gmail.com>
39334 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39335 (jpeg_mod_SOURCES): New variable.
39336 (jpeg_mod_CFLAGS): Likewise.
39337 (jpeg_mod_LDFLAGS): Likewise.
39339 * video/readers/jpeg.c : New file.
39341 2008-01-22 Bean <bean123ch@gmail.com>
39343 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39344 there are no more items.
39346 2008-01-21 Robert Millan <rmh@aybabtu.com>
39348 * kern/mm.c (grub_mm_init_region): Improve debug message.
39350 2008-01-21 Robert Millan <rmh@aybabtu.com>
39352 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39353 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39355 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39357 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39358 Indicates start of upper memory.
39359 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39360 (generate_image): Abort when image size is big enough to corrupt
39363 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39364 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39365 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39366 instead of hardcoding 0xA0000.
39367 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39368 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39369 instead of hardcoding 0xA0000.
39371 2008-01-21 Robert Millan <rmh@aybabtu.com>
39373 * disk/memdisk.c (memdisk_size): New variable.
39374 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39376 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39377 image to dynamic memory.
39378 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39379 `memdisk_size'. Free memdisk block.
39381 2008-01-21 Robert Millan <rmh@aybabtu.com>
39383 Fix detection of very small filesystems (like tar).
39385 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39386 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39387 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39388 a problem with this disk).
39390 2008-01-21 Robert Millan <rmh@aybabtu.com>
39392 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39393 on grub_biosdisk_rw_standard() error.
39395 2008-01-21 Robert Millan <rmh@aybabtu.com>
39397 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39399 * kern/elf.c: Likewise.
39400 * kern/ieee1275/ieee1275.c: Likewise.
39401 * kern/powerpc/ieee1275/openfw.c: Likewise.
39402 * term/ieee1275/ofconsole.c: Likewise.
39404 2008-01-21 Robert Millan <rmh@aybabtu.com>
39406 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39408 * include/grub/kernel.h (grub_arch_memdisk_addr)
39409 (grub_arch_memdisk_size): Moved from here ...
39411 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39412 (grub_arch_memdisk_size): ... to here.
39414 2008-01-21 Robert Millan <rmh@aybabtu.com>
39416 Mostly based on bugfix from Bean.
39418 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39419 attribute with hook() parameter.
39420 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39422 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39423 attribute with hook() parameter.
39424 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39427 2008-01-21 Robert Millan <rmh@aybabtu.com>
39429 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39430 (pkglib_MODULES): Add `memdisk.mod'.
39431 (memdisk_mod_SOURCES): New variable.
39432 (memdisk_mod_CFLAGS): Likewise.
39433 (memdisk_mod_LDFLAGS): Likewise.
39435 * disk/memdisk.c: New file.
39437 * include/grub/disk.h (grub_disk_dev_id): Add
39438 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39440 * include/grub/i386/pc/kernel.h
39441 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39442 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39443 (grub_kernel_image_size): New variable declaration.
39444 (grub_total_module_size): Likewise.
39445 (grub_memdisk_image_size): Likewise.
39447 * include/grub/i386/pc/memory.h
39448 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39450 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39451 (grub_arch_memdisk_addr): New variable declaration.
39452 (grub_arch_memdisk_size): Likewise.
39454 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39455 (grub_arch_memdisk_size): Likewise.
39457 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39458 (codestart): Replace hardcoded `0x100000' with
39459 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39461 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39462 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39463 not NULL, append the contents of the file it refers to, at the end of
39464 the compressed kernel image. Initialize `grub_memdisk_image_size'
39465 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39466 (options): Add "memdisk"|'m' option.
39467 (main): Parse --memdisk|-m option, and pass user-provided path as
39468 parameter to generate_image().
39470 2008-01-20 Robert Millan <rmh@aybabtu.com>
39472 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39473 grub_dprintf() calls from here ...
39474 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39476 2008-01-20 Robert Millan <rmh@aybabtu.com>
39478 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39480 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39482 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39483 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39484 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39485 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39487 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39488 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39490 2008-01-19 Robert Millan <rmh@aybabtu.com>
39492 Get rid of confusing function (superseded by
39493 `grub_ieee1275_get_integer_property')
39494 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39496 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39498 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39499 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39500 in native endianness from grub_ieee1275_get_integer_property().
39502 2008-01-19 Robert Millan <rmh@aybabtu.com>
39504 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39505 command after "shut-down", since implementations differ on which
39506 the command for halt is.
39508 2008-01-19 Robert Millan <rmh@aybabtu.com>
39510 * include/grub/i386/linuxbios/console.h: Add header protection.
39511 (grub_keyboard_controller_init): New function prototype.
39512 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39513 (KEYBOARD_COMMAND_READ): Likewise.
39514 (KEYBOARD_COMMAND_WRITE): Likewise.
39515 (KEYBOARD_SCANCODE_SET1): Likewise.
39516 (grub_keyboard_controller_write): New function.
39517 (grub_keyboard_controller_read): Likewise.
39518 (grub_keyboard_controller_init): Likewise.
39520 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39521 (grub_console_init): On coreboot/LinuxBIOS, call
39522 grub_keyboard_controller_init().
39524 2008-01-19 Robert Millan <rmh@aybabtu.com>
39526 PowerPC changes provided by Pavel Roskin.
39528 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39529 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39530 don't rely on cmain() doing it.
39531 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39532 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39534 2008-01-16 Robert Millan <rmh@aybabtu.com>
39536 * include/grub/i386/linuxbios/memory.h
39537 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39538 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39539 receive `table_header' as argument. Instead, probe for it in the
39540 known memory ranges where it can be present.
39541 (grub_available_iterate): Do not pass a fixed `table_header' address
39542 to grub_linuxbios_table_iterate().
39544 2008-01-15 Robert Millan <rmh@aybabtu.com>
39546 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39547 * conf/i386-ieee1275.rmk: New file.
39548 * include/grub/i386/ieee1275/console.h: Likewise.
39549 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39550 * include/grub/i386/ieee1275/kernel.h: Likewise.
39551 * include/grub/i386/ieee1275/time.h: Likewise.
39552 * kern/i386/ieee1275/init.c: Likewise.
39553 * kern/i386/ieee1275/startup.S: Likewise.
39555 2008-01-15 Robert Millan <rmh@aybabtu.com>
39557 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39558 when pointers are 32-bit (but still do set it to one when they are
39561 2008-01-15 Robert Millan <rmh@aybabtu.com>
39563 * include/grub/ieee1275/ieee1275.h
39564 (grub_ieee1275_get_integer_property): New function prototype.
39566 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39567 (grub_ieee1275_get_integer_property): New function. Wraps around
39568 grub_ieee1275_get_property() to handle endianness.
39570 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39571 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39573 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39574 (grub_map): Likewise.
39575 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39577 2008-01-15 Bean <bean123ch@gmail.com>
39579 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39580 (grub_script_execute_cmdline): Reset grub_errno.
39582 * normal/main.c (read_config_file): Reset grub_errno.
39584 * normal/parse.y (script_init): New.
39585 (script): Move function and menuentry here.
39587 (command): Add delimiter at the end of command.
39588 (commands): Adjust to match the new command.
39589 (commandblock): Remove grub_script_lexer_record_start.
39590 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39591 (if): Use the new commands.
39593 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39595 2008-01-15 Robert Millan <rmh@aybabtu.com>
39597 * normal/menu.c (run_menu): Move timeout message from here ...
39598 (print_timeout): ... to here.
39599 (run_menu): Use print_timeout() once during initial draw to print
39600 the whole message, and again in every clock tick to update only
39601 the number of seconds.
39603 2008-01-15 Robert Millan <rmh@aybabtu.com>
39605 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39606 actual size of `available' from grub_ieee1275_get_property(), and
39607 restrict parsing to that bound.
39609 2008-01-15 Christian Franke <franke@computer.org>
39611 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39612 (argp_program_version): Remove variable.
39613 (argp_program_bug_address): Likewise.
39614 (options): Convert from struct argp_option to struct option.
39615 (struct arguments): Remove.
39616 (parse_opt): Remove.
39617 (usage): New function.
39618 (main): Replace struct args members by simple variables.
39619 Replace argp_parse() by getopt_long().
39620 Add switch to evaluate options.
39621 Add missing "(...)" around root_dev in prefix string.
39623 2008-01-14 Robert Millan <rmh@aybabtu.com>
39625 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39626 for grub_ieee1275_exit(), in order to improve portability.
39628 2008-01-14 Robert Millan <rmh@aybabtu.com>
39630 * util/grub.d/10_linux.in (prefix): Define.
39631 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39633 2008-01-13 Pavel Roskin <proski@gnu.org>
39635 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39636 grub_errno if no errors have been detected.
39638 2008-01-12 Robert Millan <rmh@aybabtu.com>
39640 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39641 (grub_util_get_dev_abstraction): New function prototype.
39643 * util/getroot.c: Include `<grub/util/getroot.h>'
39644 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39645 (grub_util_get_dev_abstraction): ... here (new function).
39647 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39648 `PRINT_ABSTRACTION'.
39649 (probe): Probe for abstraction type when requested.
39650 (main): Understand `--target=abstraction'.
39652 * util/i386/efi/grub-install.in: Add abstraction module to core
39653 image when it is found to be necessary.
39654 * util/i386/pc/grub-install.in: Likewise.
39655 * util/powerpc/ieee1275/grub-install.in: Likewise.
39657 * util/update-grub_lib.in (font_path): Return system path without
39658 converting to GRUB path.
39659 * util/update-grub.in: Convert system path returned by font_path()
39660 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39661 abstraction module is needed for loading fonts (if any). Export
39662 that as `GRUB_PRELOAD_MODULES'.
39663 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39666 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39668 Remove some unused code from reiserfs.
39670 * fs/reiserfs.c (struct grub_reiserfs_key)
39671 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39672 (struct grub_reiserfs_node_body): Removed.
39673 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39675 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39677 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39679 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39681 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39683 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39685 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39686 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39687 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39689 2008-01-10 Robert Millan <rmh@aybabtu.com>
39691 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39692 Determines if a file is garbage left by packaging systems, etc.
39693 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39694 for processing /etc/grub.d scripts.
39695 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39696 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39697 as a condition for processing Linux images.
39699 2008-01-10 Pavel Roskin <proski@gnu.org>
39701 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39702 to compile reiserfs.c on PowerPC.
39704 2008-01-10 Robert Millan <rmh@aybabtu.com>
39706 * kern/device.c (grub_device_iterate): Do not abort device iteration
39707 when one of the devices cannot be opened.
39708 * kern/disk.c (grub_disk_open): Do not account previous failures of
39709 unrelated functions when grub_errno is checked for.
39711 2008-01-08 Robert Millan <rmh@aybabtu.com>
39713 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39714 `! grub_linux_is_bzimage', change order of address comparison to make
39715 it more intuitive, and improve "too big zImage" error message.
39717 2008-01-08 Robert Millan <rmh@aybabtu.com>
39719 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39720 `$(update-grub_DATA)'.
39721 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39724 2008-01-07 Robert Millan <rmh@aybabtu.com>
39726 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39727 which instruction is modified by grub-setup during installation
39728 (since it wasn't obvious by only looking at this file).
39730 2008-01-07 Robert Millan <rmh@aybabtu.com>
39732 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39733 listing actual TODO items.
39735 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39737 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39739 (grub_reiserfs_get_key_offset): Likewise.
39740 (grub_reiserfs_set_key_offset): Likewise.
39741 (grub_reiserfs_set_key_type): Likewise.
39742 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39744 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39745 better to remove the bitfield version completely.
39747 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39749 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39750 allocated from the heap, due to the fshelp implementation.
39751 (grub_reiserfs_dir): Free NODE, due to the same reason.
39753 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39755 Mostly from Vincent Pelletier:
39757 * fs/reiserfs.c: New file.
39759 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39760 (reiserfs_mod_SOURCES): New variable.
39761 (reiserfs_mod_CFLAGS): Likewise.
39762 (reiserfs_mod_LDFLAGS): Likewise.
39764 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39765 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39766 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39769 2008-01-06 Robert Millan <rmh@aybabtu.com>
39771 * normal/color.c: Remove `<grub/env.h>'.
39773 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39775 * include/grub/normal.h: Include <grub/env.h>.
39777 2008-01-05 Robert Millan <rmh@aybabtu.com>
39779 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39780 usage example with `(hd0,1)'.
39781 Reported by Samuel Thibault.
39783 2008-01-05 Robert Millan <rmh@aybabtu.com>
39785 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39786 (grub_linux_boot_zimage): Rename to ...
39787 (grub_linux_boot): ... this.
39788 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39789 (grub_linux_boot_zimage): Conditionalize zImage copy.
39791 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39792 (grub_linux_boot_bzimage): Remove prototype.
39793 (grub_linux_boot_zimage): Rename to ...
39794 (grub_linux_boot): ... this.
39796 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39797 (grub_linux_boot): Remove function.
39799 2008-01-05 Robert Millan <rmh@aybabtu.com>
39801 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39802 (grub_env_write_color_highlight): Likewise.
39803 (grub_wait_after_message): Likewise.
39805 * normal/color.c: New file.
39807 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39808 (normal_mod_DEPENDENCIES): Likewise.
39810 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39811 (normal_mod_DEPENDENCIES): Likewise.
39813 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39814 (normal_mod_DEPENDENCIES): Likewise.
39816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39817 (normal_mod_DEPENDENCIES): Likewise.
39819 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39820 for waiting after a message is printed.
39821 * normal/main.c (read_config_file): Likewise.
39822 (grub_normal_init): Register grub_env_write_color_normal() and
39823 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39824 `color_highlight' variables as global.
39826 * normal/menu.c (grub_wait_after_message): New function.
39827 (grub_color_menu_normal): New variable. Replaces ...
39828 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39829 (grub_color_menu_highlight): New variable. Replaces ...
39830 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39831 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39832 `GRUB_TERM_COLOR_STANDARD'.
39833 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39834 `normal_code' and `highlight_code' to `old_color_normal' and
39835 `old_color_highlight', respectively.
39836 (grub_menu_init_page): Update colors when drawing the menu, based on
39837 `menu_color_normal' and `menu_color_highlight' variables.
39838 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39839 a message is printed.
39841 2008-01-05 Robert Millan <rmh@aybabtu.com>
39843 * kern/env.c (grub_env_context_open): Propagate hooks for global
39844 variables to new context.
39846 * kern/main.c (grub_set_root_dev): Export `root' variable.
39848 2008-01-05 Robert Millan <rmh@aybabtu.com>
39850 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39851 discs unconditionally, since udev and others have options to provide
39854 2008-01-05 Robert Millan <rmh@aybabtu.com>
39856 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39858 2008-01-04 Christian Franke <franke@computer.org>
39860 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39863 2008-01-03 Pavel Roskin <proski@gnu.org>
39865 * kern/i386/linuxbios/init.c: Put "void" to all function
39866 declarations with no arguments.
39867 * kern/powerpc/ieee1275/init.c: Likewise.
39868 * term/i386/pc/at_keyboard.c: Likewise.
39869 * term/i386/pc/vga_text.c: Likewise.
39870 * util/grub-mkdevicemap.c: Likewise.
39872 2008-01-02 Robert Millan <rmh@aybabtu.com>
39874 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39875 message when loaded image is out of bounds.
39876 (grub_multiboot_load_elf64): Likewise.
39878 2008-01-02 Pavel Roskin <proski@gnu.org>
39880 * util/grub.d/10_linux.in: Try version without ".old" when
39881 looking for initrd. It's better to use initrd from the newer
39882 kernel of the same version than no initrd at all.
39884 2008-01-01 Robert Millan <rmh@aybabtu.com>
39886 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39888 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39890 * include/grub/video.h: Added grub_video_unmap_color and
39891 grub_video_get_active_render_target.
39892 (grub_video_adapter): Added unmap_color and get_active_render_target.
39894 * video/video.c: Added grub_video_unmap_color and
39895 grub_video_get_active_render_target.
39896 (grub_video_get_info): Changed method to accept NULL pointer as an
39897 argument to allow detection of active video adapter.
39899 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39900 grub_video_vbe_unmap_color_int.
39901 Added grub_video_vbe_unmap_color and
39902 grub_video_vbe_get_active_render_target.
39903 (grub_video_vbe_adapter): Added unmap_color and
39904 get_active_render_target.
39906 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39907 with grub_video_vbe_unmap_color_int.
39909 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39910 (DEFAULT_NORMAL_COLOR): Likewise.
39911 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39912 (DEFAULT_FG_COLOR): Removed.
39913 (DEFAULT_BG_COLOR): Likewise.
39914 (DEFAULT_CURSOR_COLOR): Changed value.
39915 (grub_virtual_screen): Added standard_color_setting,
39916 normal_color_setting, highlight_color_setting and term_color.
39917 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39918 (bitmap_width): Added.
39919 (bitmap_height): Likewise.
39920 (bitmap): Likewise.
39921 (set_term_color): Likewise.
39922 (grub_virtual_screen_setup): Changed to use new terminal coloring
39924 (grub_gfxterm_init): Added init for bitmap.
39925 (grub_gfxterm_fini): Added destroy for bitmap.
39926 (redraw_screen_rect): Updated to use background bitmap and new
39928 (scroll_up): Added optimization for case when there is no bitmap.
39929 (grub_gfxterm_cls): Fixed to use correct background color.
39930 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39932 (grub_virtual_screen_setcolor): Likewise.
39933 (grub_virtual_screen_getcolor): Added.
39934 (grub_gfxterm_background_image_cmd): Likewise.
39935 (grub_video_term): Added setcolor and getcolor.
39936 (MOD_INIT): Added registration of background_image command.
39937 (MOD_TERM): Added unregistration for background_image command.
39939 2007-12-30 Pavel Roskin <proski@gnu.org>
39941 * loader/multiboot_loader.c: Fix multiboot command
39942 unregistration. Fix all typos in the word "multiboot".
39944 2007-12-29 Pavel Roskin <proski@gnu.org>
39946 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39947 support for initrd names used in Fedora.
39949 2007-12-26 Bean <bean123ch@gmail.com>
39951 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39952 (cpio_mod_SOURCES): New variable.
39953 (cpio_mod_CFLAGS): Likewise.
39954 (cpio_mod_LDFLAGS): Likewise.
39956 * fs/cpio.c: New file.
39958 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39960 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39962 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39964 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39966 2007-12-25 Robert Millan <rmh@aybabtu.com>
39968 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39969 (grub_getcolor): New function.
39971 * kern/term.c (grub_getcolor): New function.
39972 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39973 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39974 (print_entry): Set normal and highlight colors to
39975 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39976 respectively, before printing and restore them to old
39978 (grub_menu_init_page): Likewise. Fill an additional colored space
39979 that would otherwise be left blank.
39981 * term/efi/console.c (grub_console_getcolor): New function.
39982 (struct grub_console_term.getcolor): New variable.
39983 * term/i386/pc/console.c (grub_console_getcolor): New function.
39984 (struct grub_console_term.getcolor): New variable.
39985 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39986 (struct grub_console_term.getcolor): New variable.
39988 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39989 (struct grub_console_term.setcolor): Remove variable.
39990 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39991 (struct grub_console_term.setcolor): Remove variable.
39992 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39993 (struct grub_console_term.setcolor): Remove variable.
39994 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39995 (struct grub_console_term.setcolor): Remove variable.
39997 2007-12-25 Robert Millan <rmh@aybabtu.com>
39999 * configure.ac: Search for possible unifont.hex locations, and
40000 define UNIFONT_HEX if found.
40002 * Makefile.in (UNIFONT_HEX): Define variable.
40003 (DATA): Rename to ...
40004 (PKGLIB): ... this. Update all users.
40005 (PKGDATA): New variable.
40006 (pkgdata_IMAGES): Rename to ...
40007 (pkglib_IMAGES): ... this. Update all users.
40008 (pkgdata_MODULES): Rename to ...
40009 (pkglib_MODULES): ... this. Update all users.
40010 (pkgdata_PROGRAMS): Rename to ...
40011 (pkglib_PROGRAMS): ... this. Update all users.
40012 (pkgdata_DATA): Rename to ...
40013 (pkglib_DATA): ... this. Update all users.
40014 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
40015 (unicode.pff, ascii.pff): New rules.
40016 (all-local): Add `$(PKGDATA)' dependency.
40017 (install-local): Process `$(PKGDATA)'.
40019 * util/update-grub_lib.in (font_path): Search for *.pff files in
40020 a few more locations, including `${pkgdata}'.
40022 2007-12-23 Robert Millan <rmh@aybabtu.com>
40024 Patch from Bean <bean123ch@gmail.com>:
40025 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
40028 2007-12-21 Bean <bean123ch@gmail.com>
40030 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
40031 (ntfscomp_mod_SOURCES): New variable.
40032 (ntfscomp_mod_CFLAGS): Likewise.
40033 (ntfscomp_mod_LDFLAGS): Likewise.
40035 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
40036 (grub_probe_SOURCES): Likewise.
40037 (grub_emu_SOURCES): Likewise.
40039 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40040 (grub_emu_SOURCES): Likewise.
40042 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40043 (grub_emu_SOURCES): Likewise.
40045 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40046 (grub_emu_SOURCES): Likewise.
40048 * fs/ntfs.c (grub_ntfscomp_func): New variable.
40049 (read_run_list): Renamed to grub_ntfs_read_run_list.
40050 (decomp_nextvcn): Moved to ntfscomp.c.
40051 (decomp_getch): Likewise.
40052 (decomp_get16): Likewise.
40053 (decomp_block): Likewise.
40054 (read_block): Likewise.
40055 (read_data): Partially moved to ntfscomp.c.
40056 (fixup): Change unsigned to grub_uint16_t.
40057 (read_mft): Change unsigned long to grub_uint32_t.
40058 (read_attr): Likewise.
40059 (read_data): Likewise.
40060 (read_run_data): Likewise.
40061 (read_run_list): Likewise.
40062 (read_mft): Likewise.
40064 * fs/ntfscomp.c: New file.
40066 * include/grub/ntfs.h: New file.
40068 2007-12-16 Robert Millan <rmh@aybabtu.com>
40070 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40071 IDE disk check, since Linux is known to support 20 IDE disks.
40072 Reported by Colin Watson.
40074 2007-12-15 Bean <bean123ch@gmail.com>
40076 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40077 (lnxboot_img_SOURCES): New variable.
40078 (lnxboot_img_ASFLAGS): Likewise.
40079 (lnxboot_img_LDFLAGS): Likewise.
40081 * boot/i386/pc/lnxboot.S: New file.
40083 2007-11-24 Pavel Roskin <proski@gnu.org>
40085 * configure.ac: Test if '--build-id=none' is supported by the
40086 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40087 objcopy to generate incorrect binary files (binutils
40088 2.17.50.0.18-1 as shipped by Fedora 8).
40089 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40090 linking, so that build ID doesn't break the test.
40092 2007-11-24 Pavel Roskin <proski@gnu.org>
40094 * include/grub/i386/time.h: use "void" in the argument list
40095 of grub_cpu_idle().
40096 * include/grub/powerpc/time.h: Likewise.
40097 * include/grub/sparc64/time.h: Likewise.
40099 2007-11-18 Christian Franke <franke@computer.org>
40101 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40102 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40103 This fixes the problem that function keys did not work in grub-emu.
40105 2007-11-18 Christian Franke <franke@computer.org>
40107 * disk/host.c (grub_host_open): Remove attribute unused from
40108 name parameter. Add check for "host". This fixes the problem
40109 that grub-emu does not find partitions.
40111 2007-11-18 Christian Franke <franke@computer.org>
40113 * util/hostfs.c (is_dir): New function.
40114 (grub_hostfs_dir): Handle missing dirent.d_type case.
40115 (grub_hostfs_read): Add missing fseek().
40116 (grub_hostfs_label): Clear label pointer. This fixes a crash
40117 of grub-emu on "ls (host)".
40119 2007-11-18 Christian Franke <franke@computer.org>
40121 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40122 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40123 to 64 bit boundary by default.
40125 2007-11-18 Bean <bean123ch@gmail.com>
40127 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40128 (hexdump_mod_SOURCES): New variable.
40129 (hexdump_mod_CFLAGS): Likewise.
40130 (hexdump_mod_LDFLAGS): Likewise.
40132 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40134 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40136 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40138 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40140 * include/grub/hexdump.h: New file.
40142 * commands/hexdump.c: New file.
40144 2007-11-10 Robert Millan <rmh@aybabtu.com>
40146 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40147 in grub_outb() calls.
40148 (beep_on): Likewise.
40150 2007-11-10 Christian Franke <franke@computer.org>
40152 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40153 (grub_menu_run): Likewise.
40155 2007-11-10 Robert Millan <rmh@aybabtu.com>
40157 * include/grub/i386/efi/machine.h: New file.
40158 * include/grub/i386/linuxbios/machine.h: Likewise.
40159 * include/grub/i386/pc/machine.h: Likewise.
40160 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40161 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40163 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40164 (serial_hw_io_addr): New variable.
40165 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40166 instead of `(unsigned short *) 0x400'.
40168 2007-11-10 Bean <bean123ch@gmail.com>
40170 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40172 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40174 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40175 (vga_mod_SOURCES): Added.
40176 (vga_mod_CFLAGS): Likewise.
40177 (vga_mod_LDFLAGS): Likewise.
40179 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40181 (set_map_mask): Likewise.
40182 (set_read_map): Likewise.
40183 (set_read_address): Likewise.
40184 (vga_font): Removed variable.
40185 (get_vga_glyph): Removed function.
40186 (invalidate_char): Likewise.
40187 (write_char): Changed to use grub_font_get_glyph() for font
40189 (grub_vga_putchar): Likewise.
40190 (grub_vga_getcharwidth): Likewise.
40192 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40194 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40196 (pxeboot_img_LDFLAGS): Likewise.
40197 (diskboot_img_LDFLAGS): Likewise.
40198 (kernel_img_LDFLAGS): Likewise.
40200 2007-11-06 Robert Millan <rmh@aybabtu.com>
40202 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40203 in grub_outb() calls.
40204 (serial_hw_init): Likewise.
40206 2007-11-05 Robert Millan <rmh@aybabtu.com>
40208 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40209 spaces. Skip non-regular files.
40211 2007-11-05 Robert Millan <rmh@aybabtu.com>
40213 * kern/disk.c (grub_disk_firmware_fini)
40214 (grub_disk_firmware_is_tainted): New variables.
40216 * include/grub/disk.h (grub_disk_firmware_fini)
40217 (grub_disk_firmware_is_tainted): Likewise.
40219 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40220 (grub_disk_biosdisk_fini): ... to here.
40221 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40222 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40223 is set. Register grub_disk_biosdisk_fini() in
40224 `grub_disk_firmware_fini'.
40226 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40227 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40228 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40229 to finish existing firmware disk interface.
40231 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40232 (ata_mod_SOURCES): New variable.
40233 (ata_mod_CFLAGS): Likewise.
40234 (ata_mod_LDFLAGS): Likewise.
40236 2007-11-05 Robert Millan <rmh@aybabtu.com>
40238 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40239 (grub_ata_wait): Reimplement using grub_millisleep().
40241 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40242 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40244 2007-11-03 Marco Gerards <marco@gnu.org>
40246 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40247 (CRTC_ADDR_PORT): New macro.
40248 (CRTC_DATA_PORT): Likewise.
40249 (CRTC_CURSOR): Likewise.
40250 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40251 (CRTC_CURSOR_ADDR_LOW): Likewise.
40252 (update_cursor): New function.
40253 (grub_console_real_putchar): Call `update_cursor'.
40254 (grub_console_gotoxy): Likewise.
40255 (grub_console_cls): Set the default color when clearing the
40257 (grub_console_setcursor): Implemented.
40259 2007-11-03 Marco Gerards <marco@gnu.org>
40261 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40263 (grub_ata_pio_write): Likewise.
40265 (grub_atapi_identify): Wait after issuing an ATA command.
40266 (grub_atapi_packet): Likewise.
40267 (grub_ata_identify): Likewise.
40268 (grub_ata_readwrite): Likewise.
40270 2007-11-03 Marco Gerards <marco@gnu.org>
40272 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40273 (grub_ata_pio_write): Likewise.
40274 (grub_ata_readwrite): Use `grub_error', instead of
40275 returning `grub_errno'.
40277 2007-11-03 Marco Gerards <marco@gnu.org>
40279 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40280 grub_ata_pio_write once for every single sector, instead of for
40283 2007-10-31 Robert Millan <rmh@aybabtu.com>
40285 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40287 * conf/i386-linuxbios.rmk: New file.
40289 * kern/i386/pc/hardware.c: Likewise.
40290 * term/i386/pc/at_keyboard.c: Likewise.
40291 * term/i386/pc/vga_text.c: Likewise.
40293 * include/grub/i386/linuxbios/boot.h: Likewise.
40294 * include/grub/i386/linuxbios/console.h: Likewise.
40295 * include/grub/i386/linuxbios/init.h: Likewise.
40296 * include/grub/i386/linuxbios/kernel.h: Likewise.
40297 * include/grub/i386/linuxbios/loader.h: Likewise.
40298 * include/grub/i386/linuxbios/memory.h: Likewise.
40299 * include/grub/i386/linuxbios/serial.h: Likewise.
40300 * include/grub/i386/linuxbios/time.h: Likewise.
40302 * kern/i386/linuxbios/init.c: Likewise.
40303 * kern/i386/linuxbios/startup.S: Likewise.
40304 * kern/i386/linuxbios/table.c: Likewise.
40306 2007-10-31 Marco Gerards <marco@gnu.org>
40308 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40309 (ata_mod_SOURCES): New variable.
40310 (ata_mod_CFLAGS): Likewise.
40311 (ata_mod_LDFLAGS): Likewise.
40313 * disk/ata.c: New file.
40315 * include/grub/disk.h (grub_disk_dev_id): Add
40316 `GRUB_DISK_DEV_ATA_ID'.
40318 2007-10-31 Robert Millan <rmh@aybabtu.com>
40320 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40321 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40323 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40324 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40326 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40329 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40331 2007-10-27 Robert Millan <rmh@aybabtu.com>
40333 * include/grub/types.h (ULONG_MAX): Define macro.
40335 2007-10-22 Robert Millan <rmh@aybabtu.com>
40337 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40339 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40341 2007-10-22 Robert Millan <rmh@aybabtu.com>
40343 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40344 (pkgdata_MODULES): Add `biosdisk.mod'.
40345 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40348 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40349 (grub_biosdisk_init): Replace with ...
40350 (GRUB_MOD_INIT(biosdisk)): ... this.
40351 (grub_biosdisk_fini): Replace with ...
40352 (GRUB_MOD_FINI(biosdisk)): ... this.
40354 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40355 (grub_machine_init): Remove call to grub_biosdisk_init().
40356 (grub_machine_fini): Remove call to grub_machine_fini().
40358 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40360 2007-10-22 Robert Millan <rmh@aybabtu.com>
40362 * include/grub/time.h: New file.
40363 * include/grub/i386/time.h: Likewise.
40364 * include/grub/powerpc/time.h: Likewise.
40365 * include/grub/sparc64/time.h: Likewise.
40367 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40369 (KERNEL_MACHINE_TIME_HEADER): ... this.
40370 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40372 (KERNEL_MACHINE_TIME_HEADER): ... this.
40373 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40375 (KERNEL_MACHINE_TIME_HEADER): ... this.
40377 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40378 (grub_millisleep): New function.
40379 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40380 (grub_millisleep): New function.
40381 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40382 Remove `grub/machine/time.h' include.
40383 (grub_millisleep): New function.
40384 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40385 Remove `grub/machine/time.h' include.
40386 (grub_millisleep): New function.
40388 * include/grub/misc.h (grub_div_roundup): New function.
40390 * kern/misc.c: Include `<grub/time.h>'.
40391 (grub_millisleep_generic): New function.
40393 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40395 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40397 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40398 `machine/time.h'. Add `time.h'.
40399 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40401 2007-10-21 Robert Millan <rmh@aybabtu.com>
40403 * include/grub/misc.h (grub_max): New function.
40405 2007-10-21 Robert Millan <rmh@aybabtu.com>
40407 * util/misc.c (grub_util_info): Call fflush() before returning.
40409 2007-10-20 Robert Millan <rmh@aybabtu.com>
40411 * genmk.rb (Image): Copy `extra_flags' from here ...
40412 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40414 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40415 to `argc' and `args' arguments.
40417 2007-10-17 Robert Millan <rmh@aybabtu.com>
40419 * kern/i386/loader.S: New file.
40421 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40422 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40423 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40424 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40425 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40426 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40427 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40428 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40429 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40430 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40431 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40432 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40433 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40434 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40436 * kern/i386/realmode.S: New file.
40438 * kern/i386/pc/startup.S (protstack): Moved from here ...
40439 * kern/i386/realmode.S (protstack)... to here.
40440 * kern/i386/pc/startup.S (gdt): Moved from here ...
40441 * kern/i386/realmode.S (gdt)... to here.
40442 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40443 * kern/i386/realmode.S (prot_to_real)... to here.
40445 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40446 `kern/i386/realmode.S'.
40448 2007-10-17 Robert Millan <rmh@aybabtu.com>
40450 * include/grub/i386/loader.h: New file.
40452 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40453 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40454 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40455 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40456 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40457 * include/grub/i386/loader.h (grub_linux_prot_size)
40458 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40459 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40460 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40461 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40463 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40465 2007-10-15 Robert Millan <rmh@aybabtu.com>
40467 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40468 filesystem when dev->disk is unset.
40469 Do probe for filesystem even when dev->disk->has_partitions is set.
40470 In case a filesystem is found, always report it.
40471 In case it isn't, if dev->disk->has_partitions is set, report that
40472 a partition table was found instead of reporting that no filesystem
40473 could be identified.
40475 2007-10-12 Robert Millan <rmh@aybabtu.com>
40477 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40478 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40480 * include/grub/types.h (grub_host_to_target16): New macro.
40481 (grub_host_to_target32): Likewise.
40482 (grub_host_to_target64): Likewise.
40483 (grub_target_to_host16): Likewise.
40484 (grub_target_to_host32): Likewise.
40485 (grub_target_to_host64): Likewise.
40487 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40488 Renamed from to ...
40489 (GRUB_MOD_ALIGN): ...this. Update all users.
40491 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40492 grub_host_to_target32.
40493 Replace grub_be_to_cpu32 with grub_target_to_host32.
40494 (load_modules): Likewise.
40495 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40496 Replace grub_be_to_cpu32 with grub_target_to_host32.
40497 Replace grub_cpu_to_be16 with grub_host_to_target16.
40498 Replace grub_cpu_to_be32 grub_host_to_target32.
40500 2007-10-12 Robert Millan <rmh@aybabtu.com>
40502 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40503 * util/elf/grub-mkimage.c: ... here.
40505 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40506 `util/powerpc/ieee1275/grub-mkimage.c'.
40508 2007-10-07 Robert Millan <rmh@aybabtu.com>
40510 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40511 and make it easier to figure out.
40512 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40513 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40514 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40515 leave us with less than HEAP_MIN_SIZE total heap.
40516 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40518 2007-10-03 Robert Millan <rmh@aybabtu.com>
40520 * include/grub/i386/io.h: New file.
40521 * commands/i386/pc/play.c (inb): Removed.
40523 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40525 * term/i386/pc/serial.c (inb): Removed.
40527 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40529 * term/i386/pc/vga.c (inb): Removed.
40531 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40534 2007-10-02 Robert Millan <rmh@aybabtu.com>
40536 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40537 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40538 Reported by Marcin Kurek.
40540 2007-09-07 Robert Millan <rmh@aybabtu.com>
40542 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40543 SmartFirmware version updates (as released by Sven Luther), and avoid
40544 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40545 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40548 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40550 From Hitoshi Ozeki:
40551 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40552 when merging two regions.
40554 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40556 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40557 * normal/completion.c (grub_normal_do_completion): Likewise.
40558 Reported by Hitoshi Ozeki.
40560 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40562 Do not use devices at boot in chainloading.
40564 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40565 (boot_part_addr): Likewise.
40566 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40567 with BOOT_DRIVE and BOOT_PART_ADDR.
40568 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40569 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40571 2007-08-29 Robert Millan <rmh@aybabtu.com>
40573 Patch from Simon Peter <dn.tlp@gmx.net>:
40574 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40575 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40576 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40577 util/i386/pc/grub-setup.c_DEPENDENCIES.
40578 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40579 util/grub-probe.c_DEPENDENCIES.
40580 * conf/powerpc-ieee1275.rmk: Likewise.
40582 2007-08-28 Robert Millan <rmh@aybabtu.com>
40584 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40585 to tell grub-mkdevicemap how to name devices.
40586 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40589 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40590 util/i386/get_disk_name.c.
40591 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40592 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40593 util/ieee1275/get_disk_name.c.
40595 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40597 * DISTLIST: Add util/i386/get_disk_name.c and
40598 util/ieee1275/get_disk_name.c.
40600 * util/grub-mkdevicemap.c: Replace device naming logic with
40601 grub_util_get_disk_name() calls.
40603 2007-08-20 Robert Millan <rmh@aybabtu.com>
40605 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40606 (so that it works for both plural and singular quantities).
40608 2007-08-05 Robert Millan <rmh@aybabtu.com>
40610 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40611 so that [xz] isn't taken into account when determining order.
40613 2007-08-02 Marco Gerards <marco@gnu.org>
40615 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40616 `include/multiboot2.h', `include/grub/elfload.h',
40617 `include/multiboot.h', `include/grub/multiboot.h',
40618 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40619 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40620 `kern/elf.c', `loader/multiboot_loader.c',
40621 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40622 `loader/i386/pc/multiboot2.c',
40623 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40624 `util/i386/pc/grub-mkrescue.in'. Remove
40625 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40626 `include/grub/i386/pc/util/biosdisk.h' and
40627 `include/grub/powerpc/ieee1275/multiboot.h'.
40629 2007-08-02 Bean <bean123ch@gmail.com>
40631 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40632 (ntfs_mod_SOURCES): New variable.
40633 (ntfs_mod_CFLAGS): Likewise.
40634 (ntfs_mod_LDFLAGS): Likewise.
40636 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40637 (grub_probe_SOURCES): Likewise.
40638 (grub_emu_SOURCES): Likewise.
40640 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40641 (grub_emu_SOURCES): Likewise.
40643 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40644 (grub_emu_SOURCES): Likewise.
40646 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40648 * fs/ntfs.c: New file.
40650 2007-08-02 Bean <bean123ch@gmail.com>
40652 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40654 * file.h (grub_file): Likewise.
40656 * fshelp.h (grub_fshelp_read_file): Likewise.
40658 * util/i386/pc/grub-setup.c (setup): Likewise.
40659 (save_first_sector): Likewise.
40660 (save_blocklists): Likewise.
40662 * fs/affs.c (grub_affs_read_file): Likewise.
40664 * fs/ext2.c (grub_ext2_read_file): Likewise.
40666 * fs/fat.c (grub_fat_read_data): Likewise.
40668 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40670 * fs/hfs.c (grub_hfs_read_file): Likewise.
40672 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40674 * fs/jfs.c (grub_jfs_read_file): Likewise.
40676 * fs/minix.c (grub_minix_read_file): Likewise.
40678 * fs/sfs.c (grub_sfs_read_file): Likewise.
40680 * fs/ufs.c (grub_ufs_read_file): Likewise.
40682 * fs/xfs.c (grub_xfs_read_file): Likewise.
40684 * command/blocklist.c (read_blocklist): Likewise.
40685 (print_blocklist): Likewise.
40687 2007-08-02 Marco Gerards <marco@gnu.org>
40689 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40692 * disk/host.c: New file.
40694 * util/hostfs.c: Likewise.
40696 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40697 return `GRUB_ERR_BAD_FS'.
40698 * fs/sfs.c (grub_sfs_mount): Likewise.
40699 * fs/xfs.c (grub_xfs_mount): Likewise.
40701 * include/grub/disk.h (enum grub_disk_dev_id): Add
40702 `GRUB_DISK_DEVICE_HOST_ID'.
40704 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40706 2007-07-24 Jerone Young <jerone@gmail.com>
40708 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40709 modules for compilation.
40710 * conf/powerpc-ieee1275.rmk: Likewise.
40712 * include/multiboot.h: Move multiboot definitions to one file. Rename
40713 many definitions to not get grub specific.
40714 * include/multiboot2.h: Create header with multiboot 2 definitions.
40715 * include/grub/multiboot.h: Header for grub specific function
40716 prototypes and definitions.
40717 * include/grub/multiboot2.h: Likewise.
40718 * include/grub/multiboot_loader.h: Likewise.
40719 * include/grub/i386/pc/multiboot.h: Removed.
40720 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40722 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40723 and 2 to allow for one multiboot and module commands.
40724 * loader/multiboot2.c: Add multiboot2 functionality.
40725 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40726 and definition names.
40727 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40729 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40730 ieee1275 specific multiboot2 code.
40732 * kern/i386/pc/startup.S: Change headers and definition names for
40733 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40735 2007-07-22 Robert Millan <rmh@aybabtu.com>
40737 * geninitheader.sh: Process file specified in first parameter rather
40738 than hardcoding grub_modules_init.lst.
40739 * geninit.sh: Likewise. Also, construct header name dynamically rather
40740 than hardcoding grub_modules_init.h.
40742 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40743 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40744 grub_probe_init.[ch] and grub_setup_init.[ch].
40746 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40747 grub_modules_init.h with grub_emu_init.h.
40748 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40749 grub_probe_init.[ch] files.
40750 * conf/i386-efi.rmk: Likewise.
40751 * conf/i386-pc.rmk: Likewise.
40752 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40753 grub_setup_init.[ch] files.
40755 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40756 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40757 to initialize modules rather than a list of hardcoded functions.
40758 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40759 grub_init_all() to initialize modules rather than a list of hardcoded
40762 2007-07-22 Robert Millan <rmh@aybabtu.com>
40764 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40765 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40767 2007-07-22 Robert Millan <rmh@aybabtu.com>
40769 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40770 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40771 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40772 flag when running on SmartFirmware.
40773 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40774 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40777 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40778 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40779 rather than decreasing it.
40781 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40782 there's not enough space to do it, fail in the same way as when it
40783 can't be done because there are no partitions.
40785 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40786 when nvsetenv failed.
40788 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40790 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40791 because this rule is automatically generated.
40792 (grub-mkrescue): Removed for the same reason as above.
40794 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40796 Migrate to GNU General Public License Version 3.
40798 * COPYING: Replaced with the plain text version of GPLv3.
40800 * config.guess: Updated from gnulib.
40801 * config.sub: Likewise.
40803 * geninit.sh: Output a GPLv3 copyright notice.
40804 * geninitheader.sh: Likewise.
40805 * genmodsrc.sh: Likewise.
40806 * gensymlist.sh.in: Likewise.
40808 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40809 * boot/i386/pc/diskboot.S: Likewise.
40810 * boot/i386/pc/pxeboot.S: Likewise.
40811 * commands/blocklist.c: Likewise.
40812 * commands/boot.c: Likewise.
40813 * commands/cat.c: Likewise.
40814 * commands/cmp.c: Likewise.
40815 * commands/configfile.c: Likewise.
40816 * commands/echo.c: Likewise.
40817 * commands/help.c: Likewise.
40818 * commands/ls.c: Likewise.
40819 * commands/search.c: Likewise.
40820 * commands/terminal.c: Likewise.
40821 * commands/test.c: Likewise.
40822 * commands/videotest.c: Likewise.
40823 * commands/i386/cpuid.c: Likewise.
40824 * commands/i386/pc/halt.c: Likewise.
40825 * commands/i386/pc/play.c: Likewise.
40826 * commands/i386/pc/reboot.c: Likewise.
40827 * commands/i386/pc/vbeinfo.c: Likewise.
40828 * commands/i386/pc/vbetest.c: Likewise.
40829 * commands/ieee1275/halt.c: Likewise.
40830 * commands/ieee1275/reboot.c: Likewise.
40831 * commands/ieee1275/suspend.c: Likewise.
40832 * disk/loopback.c: Likewise.
40833 * disk/lvm.c: Likewise.
40834 * disk/raid.c: Likewise.
40835 * disk/efi/efidisk.c: Likewise.
40836 * disk/i386/pc/biosdisk.c: Likewise.
40837 * disk/ieee1275/ofdisk.c: Likewise.
40838 * font/manager.c: Likewise.
40839 * fs/affs.c: Likewise.
40840 * fs/ext2.c: Likewise.
40841 * fs/fat.c: Likewise.
40842 * fs/fshelp.c: Likewise.
40843 * fs/hfs.c: Likewise.
40844 * fs/hfsplus.c: Likewise.
40845 * fs/iso9660.c: Likewise.
40846 * fs/jfs.c: Likewise.
40847 * fs/minix.c: Likewise.
40848 * fs/sfs.c: Likewise.
40849 * fs/ufs.c: Likewise.
40850 * fs/xfs.c: Likewise.
40851 * hello/hello.c: Likewise.
40852 * include/grub/acorn_filecore.h: Likewise.
40853 * include/grub/arg.h: Likewise.
40854 * include/grub/bitmap.h: Likewise.
40855 * include/grub/boot.h: Likewise.
40856 * include/grub/cache.h: Likewise.
40857 * include/grub/device.h: Likewise.
40858 * include/grub/disk.h: Likewise.
40859 * include/grub/dl.h: Likewise.
40860 * include/grub/elfload.h: Likewise.
40861 * include/grub/env.h: Likewise.
40862 * include/grub/err.h: Likewise.
40863 * include/grub/file.h: Likewise.
40864 * include/grub/font.h: Likewise.
40865 * include/grub/fs.h: Likewise.
40866 * include/grub/fshelp.h: Likewise.
40867 * include/grub/gzio.h: Likewise.
40868 * include/grub/hfs.h: Likewise.
40869 * include/grub/kernel.h: Likewise.
40870 * include/grub/loader.h: Likewise.
40871 * include/grub/lvm.h: Likewise.
40872 * include/grub/misc.h: Likewise.
40873 * include/grub/mm.h: Likewise.
40874 * include/grub/net.h: Likewise.
40875 * include/grub/normal.h: Likewise.
40876 * include/grub/parser.h: Likewise.
40877 * include/grub/partition.h: Likewise.
40878 * include/grub/pc_partition.h: Likewise.
40879 * include/grub/raid.h: Likewise.
40880 * include/grub/rescue.h: Likewise.
40881 * include/grub/script.h: Likewise.
40882 * include/grub/setjmp.h: Likewise.
40883 * include/grub/symbol.h: Likewise.
40884 * include/grub/term.h: Likewise.
40885 * include/grub/terminfo.h: Likewise.
40886 * include/grub/tparm.h: Likewise.
40887 * include/grub/types.h: Likewise.
40888 * include/grub/video.h: Likewise.
40889 * include/grub/efi/api.h: Likewise.
40890 * include/grub/efi/chainloader.h: Likewise.
40891 * include/grub/efi/console.h: Likewise.
40892 * include/grub/efi/console_control.h: Likewise.
40893 * include/grub/efi/disk.h: Likewise.
40894 * include/grub/efi/efi.h: Likewise.
40895 * include/grub/efi/pe32.h: Likewise.
40896 * include/grub/efi/time.h: Likewise.
40897 * include/grub/i386/linux.h: Likewise.
40898 * include/grub/i386/setjmp.h: Likewise.
40899 * include/grub/i386/types.h: Likewise.
40900 * include/grub/i386/efi/kernel.h: Likewise.
40901 * include/grub/i386/efi/loader.h: Likewise.
40902 * include/grub/i386/efi/time.h: Likewise.
40903 * include/grub/i386/pc/biosdisk.h: Likewise.
40904 * include/grub/i386/pc/boot.h: Likewise.
40905 * include/grub/i386/pc/chainloader.h: Likewise.
40906 * include/grub/i386/pc/console.h: Likewise.
40907 * include/grub/i386/pc/init.h: Likewise.
40908 * include/grub/i386/pc/kernel.h: Likewise.
40909 * include/grub/i386/pc/loader.h: Likewise.
40910 * include/grub/i386/pc/memory.h: Likewise.
40911 * include/grub/i386/pc/multiboot.h: Likewise.
40912 * include/grub/i386/pc/serial.h: Likewise.
40913 * include/grub/i386/pc/time.h: Likewise.
40914 * include/grub/i386/pc/vbe.h: Likewise.
40915 * include/grub/i386/pc/vbeblit.h: Likewise.
40916 * include/grub/i386/pc/vbefill.h: Likewise.
40917 * include/grub/i386/pc/vbeutil.h: Likewise.
40918 * include/grub/i386/pc/vga.h: Likewise.
40919 * include/grub/ieee1275/ieee1275.h: Likewise.
40920 * include/grub/ieee1275/ofdisk.h: Likewise.
40921 * include/grub/powerpc/libgcc.h: Likewise.
40922 * include/grub/powerpc/setjmp.h: Likewise.
40923 * include/grub/powerpc/types.h: Likewise.
40924 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40925 * include/grub/powerpc/ieee1275/console.h: Likewise.
40926 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40927 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40928 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40929 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40930 * include/grub/powerpc/ieee1275/time.h: Likewise.
40931 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40932 * include/grub/sparc64/libgcc.h: Likewise.
40933 * include/grub/sparc64/setjmp.h: Likewise.
40934 * include/grub/sparc64/types.h: Likewise.
40935 * include/grub/sparc64/ieee1275/console.h: Likewise.
40936 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40937 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40938 * include/grub/sparc64/ieee1275/time.h: Likewise.
40939 * include/grub/util/biosdisk.h: Likewise.
40940 * include/grub/util/getroot.h: Likewise.
40941 * include/grub/util/lvm.h: Likewise.
40942 * include/grub/util/misc.h: Likewise.
40943 * include/grub/util/raid.h: Likewise.
40944 * include/grub/util/resolve.h: Likewise.
40945 * io/gzio.c: Likewise.
40946 * kern/device.c: Likewise.
40947 * kern/disk.c: Likewise.
40948 * kern/dl.c: Likewise.
40949 * kern/elf.c: Likewise.
40950 * kern/env.c: Likewise.
40951 * kern/err.c: Likewise.
40952 * kern/file.c: Likewise.
40953 * kern/fs.c: Likewise.
40954 * kern/loader.c: Likewise.
40955 * kern/main.c: Likewise.
40956 * kern/misc.c: Likewise.
40957 * kern/mm.c: Likewise.
40958 * kern/parser.c: Likewise.
40959 * kern/partition.c: Likewise.
40960 * kern/rescue.c: Likewise.
40961 * kern/term.c: Likewise.
40962 * kern/efi/efi.c: Likewise.
40963 * kern/efi/init.c: Likewise.
40964 * kern/efi/mm.c: Likewise.
40965 * kern/i386/dl.c: Likewise.
40966 * kern/i386/efi/init.c: Likewise.
40967 * kern/i386/efi/startup.S: Likewise.
40968 * kern/i386/pc/init.c: Likewise.
40969 * kern/i386/pc/lzo1x.S: Likewise.
40970 * kern/i386/pc/startup.S: Likewise.
40971 * kern/ieee1275/ieee1275.c: Likewise.
40972 * kern/powerpc/cache.S: Likewise.
40973 * kern/powerpc/dl.c: Likewise.
40974 * kern/powerpc/ieee1275/cmain.c: Likewise.
40975 * kern/powerpc/ieee1275/crt0.S: Likewise.
40976 * kern/powerpc/ieee1275/init.c: Likewise.
40977 * kern/powerpc/ieee1275/openfw.c: Likewise.
40978 * kern/sparc64/cache.S: Likewise.
40979 * kern/sparc64/dl.c: Likewise.
40980 * kern/sparc64/ieee1275/init.c: Likewise.
40981 * kern/sparc64/ieee1275/openfw.c: Likewise.
40982 * loader/efi/chainloader.c: Likewise.
40983 * loader/efi/chainloader_normal.c: Likewise.
40984 * loader/i386/efi/linux.c: Likewise.
40985 * loader/i386/efi/linux_normal.c: Likewise.
40986 * loader/i386/pc/chainloader.c: Likewise.
40987 * loader/i386/pc/chainloader_normal.c: Likewise.
40988 * loader/i386/pc/linux.c: Likewise.
40989 * loader/i386/pc/linux_normal.c: Likewise.
40990 * loader/i386/pc/multiboot.c: Likewise.
40991 * loader/i386/pc/multiboot_normal.c: Likewise.
40992 * loader/powerpc/ieee1275/linux.c: Likewise.
40993 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40994 * normal/arg.c: Likewise.
40995 * normal/cmdline.c: Likewise.
40996 * normal/command.c: Likewise.
40997 * normal/completion.c: Likewise.
40998 * normal/execute.c: Likewise.
40999 * normal/function.c: Likewise.
41000 * normal/lexer.c: Likewise.
41001 * normal/main.c: Likewise.
41002 * normal/menu.c: Likewise.
41003 * normal/menu_entry.c: Likewise.
41004 * normal/misc.c: Likewise.
41005 * normal/parser.y: Likewise.
41006 * normal/script.c: Likewise.
41007 * normal/i386/setjmp.S: Likewise.
41008 * normal/powerpc/setjmp.S: Likewise.
41009 * normal/sparc64/setjmp.S: Likewise.
41010 * partmap/acorn.c: Likewise.
41011 * partmap/amiga.c: Likewise.
41012 * partmap/apple.c: Likewise.
41013 * partmap/gpt.c: Likewise.
41014 * partmap/pc.c: Likewise.
41015 * partmap/sun.c: Likewise.
41016 * term/gfxterm.c: Likewise.
41017 * term/terminfo.c: Likewise.
41018 * term/efi/console.c: Likewise.
41019 * term/i386/pc/console.c: Likewise.
41020 * term/i386/pc/serial.c: Likewise.
41021 * term/i386/pc/vesafb.c: Likewise.
41022 * term/i386/pc/vga.c: Likewise.
41023 * term/ieee1275/ofconsole.c: Likewise.
41024 * util/biosdisk.c: Likewise.
41025 * util/console.c: Likewise.
41026 * util/genmoddep.c: Likewise.
41027 * util/getroot.c: Likewise.
41028 * util/grub-emu.c: Likewise.
41029 * util/grub-mkdevicemap.c: Likewise.
41030 * util/grub-probe.c: Likewise.
41031 * util/lvm.c: Likewise.
41032 * util/misc.c: Likewise.
41033 * util/raid.c: Likewise.
41034 * util/resolve.c: Likewise.
41035 * util/update-grub.in: Likewise.
41036 * util/update-grub_lib.in: Likewise.
41037 * util/grub.d/00_header.in: Likewise.
41038 * util/grub.d/10_hurd.in: Likewise.
41039 * util/grub.d/10_linux.in: Likewise.
41040 * util/i386/efi/grub-install.in: Likewise.
41041 * util/i386/efi/grub-mkimage.c: Likewise.
41042 * util/i386/pc/grub-install.in: Likewise.
41043 * util/i386/pc/grub-mkimage.c: Likewise.
41044 * util/i386/pc/grub-mkrescue.in: Likewise.
41045 * util/i386/pc/grub-setup.c: Likewise.
41046 * util/i386/pc/misc.c: Likewise.
41047 * util/powerpc/ieee1275/grub-install.in: Likewise.
41048 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
41049 * util/powerpc/ieee1275/misc.c: Likewise.
41050 * video/bitmap.c: Likewise.
41051 * video/video.c: Likewise.
41052 * video/i386/pc/vbe.c: Likewise.
41053 * video/i386/pc/vbeblit.c: Likewise.
41054 * video/i386/pc/vbefill.c: Likewise.
41055 * video/i386/pc/vbeutil.c: Likewise.
41056 * video/readers/tga.c: Likewise.
41058 2007-07-02 Robert Millan <rmh@aybabtu.com>
41060 * conf/i386-efi.rmk: Replace obsolete reference to
41061 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41062 with util/getroot.c.
41063 * conf/powerpc-ieee1275.rmk: Likewise.
41064 * conf/sparc64-ieee1275.rmk: Likewise.
41066 * util/grub-emu.c (main): Fix unchecked pointer handling.
41068 2007-07-02 Robert Millan <rmh@aybabtu.com>
41070 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41071 invocation to fail, in order to support partition-less media.
41073 * util/i386/pc/grub-install.in: Likewise.
41075 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41076 which fs or partmap modules are needed (akin to its sister scripts).
41078 Also use grub-probe to get rid of unportable /proc/mounts check.
41080 Print the same informational message that the other scripts do, before
41083 2007-06-23 Robert Millan <rmh@aybabtu.com>
41085 * util/update-grub_lib.in (font_path): New function. Determine whether
41086 a font file can be found and, if so, echo the GRUB path to it.
41088 * util/update-grub.in: Handle multiple terminals depending on user
41089 input, platform availability and font file presence. Propagate
41090 variables of our findings to /etc/grub.d/ children.
41092 * util/grub.d/00_header.in: Handle multiple terminals, based on
41093 environment setup by update-grub.
41095 2007-06-23 Robert Millan <rmh@aybabtu.com>
41097 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
41099 2007-06-21 Robert Millan <rmh@aybabtu.com>
41101 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41102 indicate end of data section in kernel image.
41103 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41104 GRUB_KERNEL_MACHINE_DATA_END.
41106 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41108 * kern/i386/efi/startup.S: Likewise.
41110 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41111 during image generation. Implement --prefix option to override this
41113 * util/i386/efi/grub-mkimage.c: Likewise.
41115 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41116 code to make path relative to its root into a separate function.
41118 * util/i386/pc/grub-install.in: Use newly provided
41119 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41120 pass the result to grub-install --prefix.
41122 2007-06-13 Robert Millan <rmh@aybabtu.com>
41124 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41125 DEFAULT_DEVICE_MAP.
41126 * util/grub-emu.c: Use above definitions from misc.h instead of
41128 * util/grub-mkdevicemap.c: Likewise.
41129 * util/i386/pc/grub-setup.c: Likewise.
41130 * util/grub-probe.c: Likewise.
41131 (probe): Abort with grub_util_error() when either
41132 grub_guess_root_device or grub_util_get_grub_dev fails.
41134 2007-06-12 Robert Millan <rmh@aybabtu.com>
41136 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41137 "pager" assignment.
41138 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41140 * util/grub-probe.c (probe): Likewise for "drive_name".
41142 2007-06-11 Robert Millan <rmh@aybabtu.com>
41144 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41145 not just the cdrom one.
41147 2007-06-11 Robert Millan <rmh@aybabtu.com>
41149 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41150 Add --pkglibdir=DIR option to override pkglibdir.
41151 Mention --image-type=TYPE in help output.
41152 Fix --grub-mkimage (it was a no-op).
41153 Abort gracefully when no parameter is given.
41155 2007-06-11 Robert Millan <rmh@aybabtu.com>
41157 * util/i386/pc/grub-mkrescue.in: New file.
41158 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41159 * Makefile.in: Handle bin_SCRIPTS.
41161 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41163 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41164 list of video modes.
41166 2007-06-06 Robert Millan <rmh@aybabtu.com>
41168 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41169 file doesn't exist, or if it is in a filesystem grub can't read.
41171 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41172 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41173 header comment to fit in 80 columns when the variables are resolved.
41175 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41176 could be identified by update-grub. Remove redundant check for
41177 unifont.pff existence (since convert_system_path_to_grub_path now
41180 2007-06-04 Robert Millan <rmh@aybabtu.com>
41182 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41184 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41186 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41188 2007-06-04 Robert Millan <rmh@aybabtu.com>
41190 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41192 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41193 grub_apple_partition_map_fini.
41196 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41197 to access >2 TiB disks).
41199 Print disk->total_sectors with %llu instead of %lu, since this
41200 variable is always 64-bit (prevents wrong disk size from being displayed
41201 on either >2 TiB disk or big-endian CPU).
41203 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41204 into a generic case that supports all (sane) partition maps.
41206 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41209 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41210 and grub_apple_partition_map_fini() after that.
41212 2007-06-01 Robert Millan <rmh@aybabtu.com>
41214 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41216 * util/grub.d/00_header.in: Only enable gfxterm when
41217 convert_system_path_to_grub_path() succeeds.
41219 2007-05-20 Robert Millan <rmh@aybabtu.com>
41221 * util/update-grub_lib.in: New file.
41222 * DISTLIST: Add update-grub_lib.in.
41223 * conf/common.rmk: Generate update-grub_lib and install it in
41225 * Makefile.in: Add install routine for $(lib_DATA).
41227 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41228 function provided by update-grub_lib to support arbitrary paths of
41230 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41231 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41233 2007-05-19 Robert Millan <rmh@aybabtu.com>
41235 * commands/i386/cpuid.c: New module.
41236 * DISTLIST: Add it.
41237 * conf/i386-efi.rmk: Enable cpuid.mod.
41238 * conf/i386-pc.rmk: Likewise.
41240 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41242 * kern/disk.c (grub_disk_read): Check return value of
41245 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41247 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41249 * disk/raid.c (grub_raid_open): Likewise.
41251 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41253 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41254 stack instead of on the heap.
41256 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41257 before doing a read on it.
41259 * configure.ac: Only use -fno-stack-protector for the target
41262 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41264 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41265 __attribute_ ((unused)) to mode_type argument.
41267 * util/getroot.c (grub_guess_root_device): Fix #endif.
41269 * kern/misc.c (memcmp): Fix prototype.
41271 * include/grub/partition.h [GRUB_UTIL]
41272 (grub_gpt_partition_map_init): Add prototype.
41273 (grub_gpt_partition_map_fini): Likewise.
41275 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41276 at the right place.
41278 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41279 (grub_fat_read_data): Likewise.
41280 (grub_fat_find_dir): Likewise.
41282 * font/manager.c (find_glyph): Make table a const.
41283 (grub_font_get_glyph): Remove bitmap from if statement.
41285 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41287 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41288 code, first search for device in /dev/mapper, then in /dev.
41289 (grub_util_get_grub_dev): New function.
41290 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41292 * util/grub-probe.c (probe): Remove check for RAID, call
41293 grub_util_get_grub_dev() instead of
41294 grub_util_biosdisk_get_grub_dev().
41295 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41296 grub_util_biosdisk_get_grub_dev().
41297 * util/i386/pc/grub-setup.c (main): Likewise.
41299 2007-05-16 Robert Millan <rmh@aybabtu.com>
41301 * DISTLIST: Update for the latest changes.
41302 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41303 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41304 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41305 grub/util/biosdisk.h.
41306 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41307 grub/util/biosdisk.h.
41309 2007-05-16 Robert Millan <rmh@aybabtu.com>
41311 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41313 2007-05-16 Robert Millan <rmh@aybabtu.com>
41315 * util/i386/efi/grub-install.in: New.
41316 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41317 newly added grub-install.
41318 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41320 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41321 grub/util/biosdisk.h.
41322 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41323 grub/util/biosdisk.h.
41325 2007-05-16 Robert Millan <rmh@aybabtu.com>
41327 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41328 * include/grub/util/biosdisk.h: ... here.
41329 * util/i386/pc/biosdisk.c: Moved to ...
41330 * util/biosdisk.c: ... here.
41331 * util/i386/pc/getroot.c: Moved to ...
41332 * util/getroot.c: ... here.
41333 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41334 * util/grub-mkdevicemap.c: ... here.
41335 * util/i386/pc/grub-probe.c: Moved to ...
41336 * util/grub-probe.c: ... here.
41338 2007-05-15 Robert Millan <rmh@aybabtu.com>
41340 * util/update-grub.in: Remove duplicated line in grub.cfg header
41343 2007-05-13 Robert Millan <rmh@aybabtu.com>
41345 * util/update-grub.in: Fix a few assumptions about the devices holding
41346 /, /boot and /boot/grub being the same.
41347 * util/grub.d/00_header.in: Likewise.
41348 * util/grub.d/10_hurd.in: Likewise.
41349 * util/grub.d/10_linux.in: Likewise.
41351 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41352 patterns. Use that to define the `.old' suffix as older than `'.
41354 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41356 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41357 the grub.cfg header message.
41359 2007-05-11 Robert Millan <rmh@aybabtu.com>
41361 * util/update-grub.in: Create device.map if it doesn't already exist,
41362 before attempting to run grub-probe.
41363 Check for grub-probe and grub-mkdevicemap with the same code
41364 grub-install is using.
41367 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41369 * Makefile.in: Add the datarootdir autoconf variable.
41371 2007-05-09 Robert Millan <rmh@aybabtu.com>
41373 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41374 fail gracefully if dev->disk->partition == NULL.
41376 2007-05-07 Robert Millan <rmh@aybabtu.com>
41378 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41379 determine partition map module.
41380 * util/i386/pc/grub-install.in: Use this feature to decide which
41381 partition module to load, instead of hardcoding pc and gpt.
41383 2007-05-07 Robert Millan <rmh@aybabtu.com>
41385 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41386 source directory differs from build directory.
41388 2007-05-05 Robert Millan <rmh@aybabtu.com>
41390 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41393 2007-05-05 Robert Millan <rmh@aybabtu.com>
41395 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41397 2007-05-05 Robert Millan <rmh@aybabtu.com>
41399 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41400 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41402 2007-05-05 Robert Millan <rmh@aybabtu.com>
41404 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41405 (grub_probe_SOURCES): Likewise.
41406 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41407 GPT and initialize dos_part and bsd_part accordingly.
41408 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41410 (main): Activate gpt module for use during partition identification,
41411 and deactivate it afterwards.
41412 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41413 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41414 partition identification, and deactivate it afterwards.
41416 2007-05-05 Robert Millan <rmh@aybabtu.com>
41418 * term/i386/pc/console.c (grub_console_fini): Call
41419 grub_term_set_current() before grub_term_unregister().
41421 2007-05-04 Robert Millan <rmh@aybabtu.com>
41423 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41424 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41425 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41426 and update-grub_DATA.
41427 * conf/common.rmk: Build and install update-grub components.
41428 * conf/common.mk: Regenerate.
41429 * util/update-grub.in: New. Core of update-grub.
41430 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41431 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41432 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41433 * util/grub.d/README: New. Document grub.d directory layout.
41435 2007-05-01 Robert Millan <rmh@aybabtu.com>
41437 * util/grub-emu.c: Move initialization functions
41438 grub_util_biosdisk_init() and grub_init_all() before
41439 grub_util_biosdisk_get_grub_dev(), which relies on them.
41441 2007-04-19 Robert Millan <rmh@aybabtu.com>
41443 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41446 2007-04-18 Jerone Young <jerone@gmail.com>
41448 * kernel/elf.c: Add missing parenthesis for conditional statement
41451 2007-04-10 Jerone Young <jerone@gmail.com>
41453 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41454 continue on and look for device node with real device name.
41456 2007-04-10 Jerone Young <jerone@gmail.com>
41458 * configure.ac: Add argument for autoconf to use transformation
41460 * Makefile.in: Add autoconf package transformation code.
41461 * util/i386/pc/grub-install.in: Likewise.
41462 * util/powerpc/ieee1275/grub-install.in: Likewise.
41464 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41466 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41467 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41468 (EXT2_REVISION): Likewise.
41469 (EXT2_INODE_SIZE): Likewise.
41470 (struct grub_ext2_block_group): Added a missing member
41472 (grub_ext2_read_inode): Divide by the inode size in a superblock
41473 instead of 128 to obtain INODES_PER_BLOCK.
41474 Use the macro EXT2_INODE_SIZE instead of directly using
41475 SBLOCK->INODE_SIZE.
41477 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41479 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41480 superblock instead of the structure size to compute an
41481 offset. This fixes the problem that GRUB could not read a
41482 filesystem when inode size is different from 128-byte.
41484 2007-03-05 Marco Gerards <marco@gnu.org>
41486 * normal/main.c (read_config_file): When "menu" is not set, create
41487 an initial context.
41489 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41491 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41492 (HEAP_LIMIT): New macro.
41493 (grub_claim_heap): Claim memory up to `heaplimit'.
41495 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41497 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41498 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41499 (_start): Likewise.
41500 (grub_arch_modules_addr): Return address after `_end'.
41501 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41502 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41503 (add_segments): Calculate `_end' from phdr size and location.
41504 (ALIGN_UP): Moved to ...
41505 * include/grub/misc.h: here.
41506 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41508 (GRUB_IEEE1275_MODULE_BASE): Removed.
41510 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41512 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41515 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41517 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41519 (grub_elf64_load_hook_t): Likewise.
41520 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41523 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41525 * kern/mm.c: Update copyright.
41526 (grub_mm_debug): Correct syntax error.
41527 (grub_mm_dump_free): New function.
41528 (grub_debug_free): Call `grub_free'.
41529 * include/grub/mm.h: Update copyright.
41530 (grub_mm_dump_free): Add declaration.
41532 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41534 * include/grub/ieee1275/ieee1275.h: Update copyright.
41535 * kern/powerpc/ieee1275/init.c: Likewise.
41536 * kern/powerpc/ieee1275/openfw.c: Likewise.
41538 * loader/powerpc/ieee1275/linux.c: Likewise.
41539 * include/grub/elfload.h: Likewise.
41540 * kern/elf.c: Likewise.
41541 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41543 (grub_elf64_load): Likewise.
41544 (grub_elf32_load_segment): Move to a nested function.
41545 (grub_elf64_load_segment): Likewise.
41547 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41549 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41551 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41552 (grub_heap_len): Likewise.
41553 (HEAP_SIZE): New macro.
41554 (grub_claim_heap): New function.
41555 (grub_machine_init): Don't claim heap directly. Call
41557 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41558 (grub_available_iterate): New function.
41560 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41562 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41563 * configure.ac: Use it for testing the HOST and TARGET compilers.
41565 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41567 * Makefile.in (enable_grub_emu): New variable.
41568 * configure.ac (--enable-grub-emu): New option.
41569 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41570 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41571 * conf/i386-pc.rmk: Likewise.
41572 * conf/powerpc-ieee1275.rmk: Likewise.
41573 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41575 2006-12-12 Marco Gerards <marco@gnu.org>
41577 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41579 * kern/env.c (grub_env_unset): Don't free the member `value' when
41580 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41583 * normal/main.c (current_menu): Removed.
41584 (free_menu): Unset the `menu' environment variable.
41585 (grub_normal_menu_addentry): Make use of the environment variable
41586 `menu', instead of using the global `current_menu'. Allocate
41587 memory for the sourcecode of this entry.
41588 (read_config_file): New argument `nested', changed all callers.
41589 Only in the case of a new context, initialize a new menu. Set the
41590 `menu' environment variable.
41591 (grub_normal_execute): Don't set and unset the environment
41592 variable `menu' here anymore. Only free the menu when leaving the
41595 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41598 2006-12-11 Marco Gerards <marco@gnu.org>
41600 * normal/menu_entry.c (run): Fix off by one bug so the last line
41601 is executed. Move the loader check to outside the loop.
41603 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41605 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41607 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41609 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41610 the number of sectors. Reported by Andrey Shuvikov
41611 <mr_hyro@yahoo.com>.
41613 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41615 * kern/disk.c (grub_disk_read): When there is a read error, always
41616 try to read only the necessary data.
41618 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41620 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41622 [GRUB_UTIL] (grub_raid_fini): Likewise.
41623 [GRUB_UTIL] (grub_lvm_init): Likewise.
41624 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41625 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41626 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41627 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41628 and grub_raid_fini().
41630 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41632 * include/grub/types.h (__unused): Rename to UNUSED.
41633 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41634 (grub_elf64_size): Likewise.
41636 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41638 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41639 grub_error_push and grub_error_pop in the error-handling path.
41640 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41643 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41645 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41646 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41647 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41648 (kernel_elf_SOURCES): Likewise.
41649 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41650 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41651 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41652 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41653 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41654 (elf_mod_SOURCES): New variable.
41655 (elf_mod_CFLAGS): Likewise.
41656 (elf_mod_LDFLAGS): Likewise.
41657 * include/grub/types.h (__unused): New macro.
41658 * include/grub/elfload.h: New file.
41659 * kern/elf.c: Likewise.
41660 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41661 (ELF32_LOADMASK): New macro.
41662 (ELF64_LOADMASK): Likewise.
41663 (vmlinux): Removed.
41664 (grub_linux_load32): New function.
41665 (grub_linux_load64): Likewise.
41666 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41667 Use grub_elf_t instead of grub_file_t.
41669 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41671 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41672 `catch_result' to struct set_color_args.
41674 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41676 * normal/menu.c: Include grub/script.h.
41677 * normal/menu_entry.c: Likewise.
41678 * include/grub/normal.h: Do not include grub/script.h.
41680 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41682 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41684 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41686 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41688 (grub_disk_close): Print debug messages when closing a disk.
41689 (grub_disk_read): Print debug messages when disk read fails.
41690 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41692 * kern/partition.c: Include misc.h.
41693 (grub_partition_iterate): Print debug messages when detecting
41696 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41698 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41700 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41702 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41704 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41705 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41707 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41709 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41710 instead of sizeof(lv). Patch by Michael Guntsche.
41712 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41714 * disk/lvm.c: Rename VGS to VG_LIST.
41715 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41716 (grub_lvm_open): Likewise.
41717 Thanks to Michael Guntsche for finding this bug.
41719 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41721 * configure.ac (AC_INIT): Bumped to 1.95.
41723 2006-10-14 Robert Millan <rmh@aybabtu.com>
41725 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41726 with "/dev/.static/dev/md".
41728 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41730 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41731 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41732 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41733 DRIVE_NAME are always freed.
41735 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41736 DOS_PART, as a DOS partition is counted from one instead of zero
41737 now. Reported by Robert Millan.
41739 2006-10-14 Robert Millan <rmh@aybabtu.com>
41741 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41742 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41743 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41744 string returned by grub_guess_root_device.
41745 * util/i386/pc/grub-setup.c: Likewise.
41746 * util/i386/pc/grub-probefs.c: Likewise.
41748 * util/i386/pc/grub-probefs.c: Rename to ...
41749 * util/i386/pc/grub-probe.c: ... this.
41750 * DISTLIST: Remove grub-probefs, add grub-probe.
41751 * conf/i386-efi.rmk: Likewise.
41752 * conf/i386-pc.rmk: Likewise.
41753 * util/i386/pc/grub-install.in: Likewise.
41755 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41756 choose which information we want to print.
41758 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41760 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41761 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41762 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41763 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41764 video/readers/tga.c and video/i386/pc/vbeutil.c.
41766 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41768 Added support for RAID and LVM.
41770 * disk/lvm.c: New file.
41771 * disk/raid.c: Likewise.
41772 * include/grub/lvm.h: Likewise.
41773 * include/grub/raid.h: Likewise.
41774 * include/grub/util/lvm.h: Likewise.
41775 * include/grub/util/raid.h: Likewise.
41776 * util/lvm.c: Likewise.
41777 * util/raid.c: Likewise.
41779 * include/grub/disk.h (grub_disk_dev_id): Add
41780 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41781 (grub_disk_get_size): New prototype.
41782 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41783 returns a partition.
41784 (grub_disk_get_size): New function.
41786 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41787 verbatim if grub_install_dos_part is -2.
41789 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41792 * util/i386/pc/grub-setup.c (setup): New argument
41793 MUST_EMBED. Force embedding of GRUB when the argument is
41794 true. Close FILE before returning.
41795 (main): Add support for RAID and LVM.
41797 * conf/common.rmk: Add RAID and LVM modules.
41798 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41800 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41802 * kern/misc.c (grub_strstr): New function.
41803 * include/grub/misc.h (grub_strstr): New prototype.
41805 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41807 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41809 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41811 * kern/misc.c (grub_strtoull): Guess the base only if not
41814 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41816 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41819 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41821 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41823 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41824 Remove `flags' argument. All callers changed.
41825 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41826 (IEEE1275_IHANDLE_INVALID): New variable.
41827 (IEEE1275_CELL_INVALID): New variable.
41828 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41829 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41830 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41831 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41832 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41833 codes from Open Firmware. All callers updated.
41834 (grub_ieee1275_next_property): Directly return Open Firmware return
41836 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41837 Standardize error checking from `grub_ieee1275_get_property'.
41838 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41839 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41841 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41843 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41844 `instance_to_package_args' to `instance_to_path_args'.
41846 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41847 `grub_ieee1275_chosen'.
41849 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41850 `grub_ieee1275_interpret'.
41852 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41854 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41856 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41858 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41859 (__cmpdi): Likewise.
41861 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41862 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41865 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41867 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41868 to type `grub_ssize_t'.
41869 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41871 2006-09-22 Marco Gerards <marco@gnu.org>
41873 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41876 2006-09-22 Marco Gerards <marco@gnu.org>
41878 * commands/echo.c: New file.
41880 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41882 * conf/common.rmk (echo_mod_SOURCES): New variable.
41883 (echo_mod_CFLAGS): Likewise.
41884 (echo_mod_LDFLAGS): Likewise.
41886 2006-09-22 Marco Gerards <marco@gnu.org>
41888 * normal/main.c (get_line): Malloc memory instead of using
41889 preallocated memory. Removed the arguments `cmdline' and
41890 `max_len'. Updated all callers.
41892 2006-09-22 Marco Gerards <marco@gnu.org>
41894 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41895 (normal_mod_DEPENDENCIES): Likewise.
41897 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41898 (normal_mod_DEPENDENCIES): Likewise.
41900 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41902 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41904 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41906 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41907 (normal_mod_DEPENDENCIES): Likewise.
41908 * conf/i386-pc.mk: Regenerate.
41909 * conf/i386-efi.mk: Likewise
41910 * conf/common.mk: Likewise.
41911 * conf/powerpc-ieee1275.mk: Likewise.
41912 * conf/sparc64-ieee1275.mk: Likewise.
41914 2006-09-22 Robert Millan <rmh@aybabtu.com>
41916 Sync with i386 version.
41917 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41918 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41920 2006-09-21 Robert Millan <rmh@aybabtu.com>
41922 Import from GRUB Legacy (lib/device.c):
41923 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41924 (init_device_map) [__linux__]: Add support for I2O devices.
41926 2006-09-14 Marco Gerards <marco@gnu.org>
41928 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41931 2006-09-14 Robert Millan <rmh@aybabtu.com>
41933 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41936 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41938 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41939 before adding it to device.map.
41941 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41943 * genmk.rb: Let GCC generate dependencies the first time it
41944 compiles a file; using the -MD option.
41945 * conf/common.mk: Regenerate.
41946 * conf/i386-pc.mk: Likewise.
41947 * conf/i386-efi.mk: Likewise.
41948 * conf/powerpc-ieee1275.mk: Likewise.
41949 * conf/sparc64-ieee1275.mk: Likewise.
41951 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41953 Move the prototypes of grub_setjmp and grub_longjmp to
41954 cpu/setjmp.h, so that each architecture may specify different
41957 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41958 (grub_longjmp): Likewise.
41959 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41960 (grub_longjmp): Likewise.
41961 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41962 (grub_longjmp): Likewise.
41964 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41965 [!GRUB_UTIL] (grub_longjmp): Removed.
41967 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41969 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41970 "color!" method does not return any value.
41972 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41974 * include/grub/bitmap.h: New file.
41976 * include/grub/i386/pc/vbeutil.h: Likewise.
41978 * video/bitmap.c: Likewise.
41980 * video/readers/tga.c: Likewise.
41982 * video/i386/pc/vbeutil.c: Likewise.
41984 * commands/videotest.c: Code cleanup and updated to reflect to new
41987 * term/gfxterm.c: Likewise.
41989 * video/video.c: Likewise.
41991 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41992 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41993 (bitmap_mod_SOURCES): New entry.
41994 (bitmap_mod_CFLAGS): Likewise.
41995 (bitmap_mod_LDFLAGS): Likewise.
41996 (tga_mod_SOURCES): Likewise.
41997 (tga_mod_CFLAGS): Likewise.
41998 (tga_mod_LDFLAGS): Likewise.
42000 * include/grub/video.h (grub_video_blit_operators): New enum type.
42001 (grub_video_render_target): Changed as forward declaration and moved
42002 actual definition to be video driver specific.
42003 (grub_video_adapter.blit_bitmap): Added blitting operator.
42004 (grub_video_adapter.blit_render_target): Likewise.
42005 (grub_video_blit_bitmap): Likewise.
42006 (grub_video_blit_render_target): Likewise.
42008 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
42009 driver specific render target definition.
42010 (grub_video_vbe_map_rgba): Added driver internal helper.
42011 (grub_video_vbe_unmap_color): Updated to use
42012 grub_video_i386_vbeblit_info.
42013 (grub_video_vbe_get_video_ptr): Likewise.
42015 * include/grub/i386/pc/vbeblit.h
42016 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
42017 grub_video_i386_vbeblit_info.
42018 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42019 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42020 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42021 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42022 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42023 (grub_video_i386_vbeblit_index_index): Likewise.
42024 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
42025 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42026 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42027 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
42029 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
42032 * video/i386/pc/vbeblit.c: Updated to reflect changes on
42033 include/grub/i386/pc/vbeblit.h.
42035 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
42036 Updated to use grub_video_i386_vbeblit_info.
42037 (grub_video_i386_vbefill_R8G8B8): Likewise.
42038 (grub_video_i386_vbefill_index): Likewise.
42039 (grub_video_i386_vbefill): Added generic filler.
42041 * video/i386/pc/vbefill.c: Updated to reflect changes on
42042 include/grub/i386/pc/vbefill.h.
42044 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
42045 grub_video_i386_vbeblit_info.
42046 (grub_video_vbe_unmap_color): Likewise.
42047 (grub_video_vbe_blit_glyph): Likewise.
42048 (grub_video_vbe_scroll): Likewise.
42049 (grub_video_vbe_draw_pixel): Removed function.
42050 (grub_video_vbe_get_pixel): Likewise.
42051 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42052 updated code to use it.
42053 (common_blitter): Added common blitter for render target and bitmap.
42054 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42055 (grub_video_vbe_blit_render_target): Likewise.
42057 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
42059 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42060 is in text mode if there is no console control protocol instance
42063 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42065 * include/grub/video.h: Code cleanup.
42067 * include/grub/i386/pc/vbe.h: Likewise.
42069 * video/i386/pc/vbe.c: Likewise.
42071 * video/i386/pc/vbeblit.c: Likewise.
42073 * video/i386/pc/vbefill.c: Likewise.
42075 * video/video.c: Likewise. Also added more comments.
42077 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42079 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42080 (struct grub_biosdisk_dap): Likewise.
42082 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42083 linkage settings for all functions.
42085 2006-07-12 Marco Gerards <marco@gnu.org>
42087 * configure.ac (--enable-mm-debug): Fix typo.
42089 * genkernsyms.sh.in: Use proper quoting for `CC'.
42091 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42093 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42094 (normal_mod_ASFLAGS): Remove "-m32".
42096 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42098 * util/misc.c: Include config.h.
42099 [!HAVE_MEMALIGN]: Do not include malloc.h.
42100 (grub_memalign): Use posix_memalign, if present. Then, use
42101 memalign, if present. Otherwise, emit an error.
42103 * util/grub-emu.c: Do not include malloc.h.
42105 * include/grub/util/misc.h: Include unistd.h. This is required for
42106 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42107 D. Eades III <hde@foobar-qux.org>.
42109 * configure.ac (AC_GNU_SOURCE): Added.
42110 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42113 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42115 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42116 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42118 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42120 * include/grub/types.h (grub_host_addr_t): Rename to
42121 grub_target_addr_t.
42122 (grub_host_off_t): Rename to grub_target_off_t.
42123 (grub_host_size_t): Rename to grub_target_size_t.
42124 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42125 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42127 * include/grub/kernel.h (struct grub_module_header): Change type
42128 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42129 (grub_module_info): Likewise.
42131 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42133 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42134 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42135 Velazquez <jesus.velazquez@gmail.com>.
42137 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42139 Count partitions from 1 instead of 0 in the string representation
42140 of partitions. Still use 0-based internally.
42142 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42143 (sun_partition_map_iterate): Use grub_partition_t instead of
42144 struct grub_partition *. Cast DESC->START_CYLINDER to
42145 grub_uint64_t after converting the endian.
42146 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42147 (sun_partition_map_get_name): Add 1 to P->INDEX.
42149 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42151 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42153 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42154 zero instead of one.
42155 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42156 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42158 * partmap/apple.c (apple_partition_map_iterate): Change the type
42159 of POS to unsigned.
42160 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42161 (apple_partition_map_get_name): Add 1 into P->INDEX.
42163 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42164 of POS to unsigned.
42165 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42166 calculate the offset of a partition.
42167 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42168 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42170 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42171 SECTOR to grub_disk_addr_t.
42172 (acorn_partition_map_iterate): Likewise.
42173 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42174 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42176 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42178 * kern/i386/pc/init.c (make_install_device): Add 1 into
42179 GRUB_INSTALL_DOS_PART.
42181 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42184 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42186 Clean up the code to support 64-bit addressing in disks and
42187 files. This change is not enough for filesystems yet.
42189 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42190 type of "start" to grub_uint64_t.
42191 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42192 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42193 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42196 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42197 to grub_disk_addr_t.
42199 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42202 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42204 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42207 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42209 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42211 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42213 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42214 to grub_off_t, to detect an error from grub_file_seek.
42215 (grub_multiboot_load_elf32): Likewise.
42217 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42218 maximum unsigned long value when an overflow is detected.
42219 (grub_strtoull): New function.
42220 (grub_divmod64): Likewise.
42221 (grub_lltoa): use grub_divmod64.
42223 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42225 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42226 the pointer to next character. Use grub_strtoull instead of
42228 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42229 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42232 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
42233 return value is signed.
42234 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42235 test if OFFSET is less than zero, as OFFSET is unsigned now.
42237 * kern/disk.c (struct grub_disk_cache): Change the type of
42238 "sector" to grub_disk_addr_t.
42239 (grub_disk_cache_get_index): Change the type of SECTOR to
42240 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42241 unsigned after shifting.
42242 (grub_disk_cache_invalidate): Change the type of SECTOR to
42244 (grub_disk_cache_unlock): Likewise.
42245 (grub_disk_cache_store): Likewise.
42246 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42247 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42248 grub_disk_addr_t and grub_uint64_t, respectively.
42249 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42250 body, as the value of OFFSET is tweaked by
42251 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42252 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42254 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42255 body, as the value of OFFSET is tweaked by
42256 grub_disk_check_range. Change the types of LEN and N to
42259 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42260 and "saved_offset" to grub_off_t.
42261 (test_header): Cast BUF to char *.
42262 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42264 (grub_gzio_read): Change the types of OFFSET and SIZE to
42265 grub_off_t and grub_size_t, respectively.
42267 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42269 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42270 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42271 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42272 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42273 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42275 * include/grub/types.h (grub_off_t): Unconditionally set to
42277 (grub_disk_addr_t): Changed to grub_uint64_t.
42279 * include/grub/partition.h (struct grub_partition): Change the
42280 types of "start", "len" and "offset" to grub_disk_addr_t,
42281 grub_uint64_t and grub_disk_addr_t, respectively.
42282 (grub_partition_get_start): Return grub_disk_addr_t.
42283 (grub_partition_get_len): Return grub_uint64_t.
42285 * include/grub/misc.h (grub_strtoull): New prototype.
42286 (grub_divmod64): Likewise.
42288 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42289 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42290 grub_off_t, respectively.
42291 All callers and references changed.
42293 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42294 grub_size_t in "read".
42295 All callers and references changed.
42297 * include/grub/file.h (struct grub_file): Change the types of
42298 "offset" and "size" to grub_off_t and grub_off_t,
42299 respectively. Change the type of SECTOR to grub_disk_addr_t in
42301 (grub_file_read): Change the type of LEN to grub_size_t.
42302 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42304 (grub_file_size): Return grub_off_t.
42305 (grub_file_tell): Likewise.
42306 All callers and references changed.
42308 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42309 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42311 (struct grub_disk): Change the type of "total_sectors" to
42312 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
42314 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42315 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42316 (grub_disk_write): Likewise.
42317 All callers and references changed.
42319 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42320 char * for grub_strncmp to silence gcc.
42321 (grub_iso9660_mount): Likewise.
42322 (grub_iso9660_mount): Likewise.
42323 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42325 (grub_iso9660_iterate_dir): Likewise.
42326 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42328 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42329 LEN to grub_disk_addr_t and grub_size_t, respectively.
42331 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42333 * fs/jfs.c (grub_jfs_read_file): Likewise.
42335 * fs/minix.c (grub_jfs_read_file): Likewise.
42337 * fs/sfs.c (grub_jfs_read_file): Likewise.
42339 * fs/ufs.c (grub_jfs_read_file): Likewise.
42341 * fs/xfs.c (grub_jfs_read_file): Likewise.
42343 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42344 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42347 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42348 BLKNR to -1 instead of returning GRUB_ERRNO.
42349 (grub_ext2_read_file): Change the types of SECTOR and
42350 LEN to grub_disk_addr_t and grub_size_t, respectively.
42352 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42353 LEN to grub_disk_addr_t and grub_size_t, respectively.
42355 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42358 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42359 string. Do not cast SECTOR explicitly.
42361 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42362 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42363 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42364 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42365 over 2TB and LBA mode is not supported, raise an error.
42366 (get_safe_sectors): New function.
42367 (grub_biosdisk_read): Use get_safe_sectors.
42368 (grub_biosdisk_write): Likewise.
42370 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42371 (grub_efidisk_write): Likewise.
42373 * disk/loopback.c (delete_loopback): Cosmetic changes.
42374 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42376 (grub_loopback_open): Likewise.
42377 (grub_loopback_read): Likewise. Also, change the type of POS to
42378 grub_off_t, and fix the usage of grub_memset.
42380 * commands/i386/pc/play.c: Include grub/machine/time.h.
42382 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42385 * commands/configfile.c: Include grub/env.h.
42387 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42388 GRUB_ERRNO directly instead. Change the type of POS to
42389 grub_off_t. Follow the coding standard.
42391 * commands/blocklist.c: Include grub/partition.h.
42392 (grub_cmd_blocklist): Return an error if the underlying device is
42393 not a disk. Take the starting sector of a partition into account,
42394 if a partition is used.
42396 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42398 (lba_mode): Support 64-bit addresses.
42399 (chs_mode): Likewise.
42400 (copy_buffer): Adapted to the new offsets of a length field and a
42402 (blocklist_default_start): Allocate 64-bit space.
42404 * boot/i386/pc/boot.S (force_lba): Removed.
42405 (boot_drive): Moved to under KERNEL_SECTOR.
42406 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42408 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42410 (lba_mode): Refactored to support a 64-bit address. More size
42412 (setup_sectors): Likewise.
42414 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42416 * DISTLIST: Added include/grub/i386/linux.h. Removed
42417 include/grub/i386/pc/linux.h
42419 * configure.ac (AC_INIT): Bumped to 1.94.
42421 * config.guess: Updated from gnulib.
42422 * config.sub: Likewise.
42423 * install-sh: Likewise.
42424 * mkinstalldirs: Likewise.
42426 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42428 * conf/common.rmk (grub_modules_init.lst): Depended on
42429 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42432 * genmk.rb (PModule::rule): Reverted the previous change.
42434 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42436 * conf/common.rmk (grub_modules_init.lst): Depends on
42437 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42438 that the target does not exist before producing.
42439 (grub_modules_init.h): Remove the target before generating.
42440 (grub_emu_init.c): Likewise.
42442 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42444 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42446 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42447 for the target-specific tests. Make sure that we also have the
42448 up-to-date target variables for those tests.
42450 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42452 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42453 (PModule::rule): Likewise.
42455 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42457 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42458 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42459 target-specific flags should be prefixed.
42460 (PModule::rule): Likewise.
42462 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42464 * configure.ac (CMP): Check if cmp is available explicitly.
42466 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42468 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42469 (target_cpu): New variable.
42470 (pkglibdir): Use target_cpu instead of host_cpu.
42472 * util/i386/pc/grub-install.in (host_cpu): Removed.
42473 (target_cpu): New variable.
42474 (pkglibdir): Use target_cpu instead of host_cpu.
42476 * util/genmoddep.c: Removed.
42478 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42479 instead of GRUB_HOST_SIZEOF_VOID_P.
42480 * kern/dl.c: Likewise.
42482 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42484 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42485 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42486 (GRUB_TARGET_SIZEOF_LONG): ... this.
42487 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42488 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42489 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42491 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42492 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42493 (GRUB_TARGET_SIZEOF_LONG): ... this.
42494 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42495 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42496 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42498 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42499 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42500 (GRUB_TARGET_SIZEOF_LONG): ... this.
42501 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42502 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42504 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42505 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42506 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42507 instead of GRUB_HOST_SIZEOF_LONG.
42508 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42509 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42510 GRUB_CPU_WORDS_BIGENDIAN.
42511 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42512 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42515 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42516 (genmoddep_SOURCES): Likewise.
42517 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42518 (genmoddep_SOURCES): Likewise.
42519 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42520 (genmoddep_SOURCES): Likewise.
42521 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42523 (genmoddep_SOURCES): Likewise.
42525 * genmoddep.awk: New file.
42527 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42528 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42529 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42530 (PModule::rule): Likewise.
42531 (Program::rule): Likewise.
42532 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42533 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42536 * configure.ac: Rewritten intensively to use host and target
42537 instead of build and host, respectively.
42539 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42540 (host_cpu): Removed.
42541 (target_cpu): New variable.
42542 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42543 (BUILD_CC): Removed.
42544 (BUILD_CFLAGS): Likewise.
42545 (BUILD_CPPFLAGS): Likewise.
42546 (TARGET_CC): New variable.
42547 (TARGET_CFLAGS): Likewise.
42548 (TARGET_CPPFLAGS): Likewise.
42549 (TARGET_LDFLAGS): Likewise.
42551 (include): Use target_cpu instead of host_cpu.
42552 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42554 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42556 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42558 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42559 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42560 field 'false' to 'exec_on_false'.
42561 (grub_script_create_cmdif): Renamed argument names to reflect above
42564 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42566 * normal/script.c (grub_script_create_cmdif): Likewise.
42568 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42570 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42572 (grub_hfsplus_btree_recptr): Likewise.
42573 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42574 FILEBLOCK both to pass a block number and store next block
42576 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42577 overflow file correctly. Specify errors appropriately, because
42578 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42579 grub_hfsplus_btree_recptr to get the pointer to a found key.
42580 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42583 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42585 (_linux_mod_SOURCES): New variable.
42586 (_linux_mod_CFLAGS): Likewise.
42587 (_linux_mod_LDFLAGS): Likewise.
42588 (linux_mod_SOURCES): Likewise.
42589 (linux_mod_CFLAGS): Likewise.
42590 (linux_mod_LDFLAGS): Likewise.
42592 * DISTLIST: Added loader/i386/efi/linux.c,
42593 loader/i386/efi/linux_normal.c and
42594 include/grub/i386/efi/loader.h.
42596 * loader/i386/efi/linux.c: New file.
42597 * loader/i386/efi/linux_normal.c: Likewise.
42598 * include/grub/i386/efi/loader.h: Likewise.
42600 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42602 * commands/blocklist.c: New file.
42604 * DISTLIST: Added commands/blocklist.c.
42606 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42607 color for the background, and a darker color for the foreground.
42608 (grub_console_checkkey): Return READ_KEY.
42609 (grub_console_cls): Set the background to
42610 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42612 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42614 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42615 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42617 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42620 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42621 BG. The spec is wrong again.
42623 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42625 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42627 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42628 commands/blocklist.c.
42629 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42631 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42632 (blocklist_mod_SOURCES): New variable.
42633 (blocklist_mod_CFLAGS): Likewise.
42634 (blocklist_mod_LDFLAGS): Likewise.
42636 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42638 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42640 (lba_mode): Use %eax more intensively to reduce the code size.
42642 2006-05-20 Marco Gerards <marco@gnu.org>
42644 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42646 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42648 (script): Accept leading newlines.
42649 (newlines): New rule to describe 0 or more newlines.
42650 (commands): Accept `command' with trailing newline. Fixed the
42651 order in which arguments were passed to `grub_script_add_cmd'.
42652 Accept commands separated by newlines.
42653 (function): Changed to accept newlines.
42654 (menuentry) Rewritten.
42656 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42657 front of the list, instead of to the end.
42659 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42661 * util/i386/pc/grub-install.in (bindir): New variable.
42662 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42663 Shaver <lbgwjl@gmail.com>.
42665 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42667 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42668 grub/machine/linux.h
42669 * loader/i386/pc/linux.c: Likewise.
42671 * include/grub/i386/pc/linux.h: Moved to ...
42672 * include/grub/i386/linux.h: ... here.
42674 * include/grub/i386/linux.h (struct linux_kernel_params): New
42677 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42679 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42681 (grub_video_vbe_blit_glyph): Likewise.
42682 (grub_video_vbe_blit_bitmap): Likewise.
42683 (grub_video_vbe_blit_render_target): Likewise.
42685 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42687 * configure.ac (--with-platform): Properly quote the square
42690 2006-05-08 Marco Gerards <marco@gnu.org>
42692 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42694 (kernel_elf_HEADERS): ...to this. Updated all users.
42695 (grubof_symlist.c): Renamed from this...
42696 (kernel_elf_symlist.c): ...to this. Updated all users.
42697 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42698 (grubof_SOURCES): Renamed from this...
42699 (kernel_elf_SOURCES): ...to this.
42700 (grubof_HEADERS): Renamed from this...
42701 (kernel_elf_HEADERS): ...to this.
42702 (grubof_CFLAGS): Renamed from this...
42703 (kernel_elf_CFLAGS): ...to this.
42704 (grubof_ASFLAGS): Renamed from this...
42705 (kernel_elf_ASFLAGS): ...to this.
42706 (grubof_LDFLAGS): Renamed from this...
42707 (kernel_elf_LDFLAGS): ...to this.
42709 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42711 (kernel_elf_HEADERS): ...to this. Updated all users.
42712 (grubof_symlist.c): Renamed from this...
42713 (kernel_elf_symlist.c): ...to this. Updated all users.
42714 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42715 (grubof_SOURCES): Renamed from this...
42716 (kernel_elf_SOURCES): ...to this.
42717 (grubof_HEADERS): Renamed from this...
42718 (kernel_elf_HEADERS): ...to this.
42719 (grubof_CFLAGS): Renamed from this...
42720 (kernel_elf_CFLAGS): ...to this.
42721 (grubof_ASFLAGS): Renamed from this...
42722 (kernel_elf_ASFLAGS): ...to this.
42723 (grubof_LDFLAGS): Renamed from this...
42724 (kernel_elf_LDFLAGS): ...to this.
42726 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42727 `kernel.elf' instead of `grubof'.
42729 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42731 Add --with-platform to configure. Use pkglibdir instead of
42732 pkgdatadir. This is reported by Roger Leigh.
42734 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42735 (host_vendor): Likewise.
42736 (host_os): Likewise.
42737 (pkgdatadir): Likewise.
42738 (platform): New variable.
42739 (pkglibdir): Likewise.
42740 Use PKGLIBDIR instead of PKGDATADIR.
42742 * util/i386/pc/grub-install.in (datadir): Removed.
42743 (host_vendor): Likewise.
42744 (host_os): Likewise.
42745 (pkgdatadir): Likewise.
42746 (platform): New variable.
42747 (pkglibdir): Likewise.
42748 Use PKGLIBDIR instead of PKGDATADIR.
42750 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42751 instead of GRUB_DATADIR.
42753 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42755 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42758 * configure.ac (--with-platform): New option.
42759 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42761 * Makefile.in: Include a makefile based on PLATFORM instead of
42763 (pkgdatadir): Not appended by the machine type.
42764 (pkglibdir): Appended by the machine type.
42765 (host_vendor): Removed.
42766 (platform): New variable.
42767 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42768 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42769 (uninstall): Likewise.
42771 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42773 Use the environment context in the menu. Remove the commands
42774 "default" and "timeout", and use variables instead.
42776 * normal/menu.c: Include grub/env.h.
42777 (print_entry): Cast TITLE to silence gcc.
42778 (get_timeout): New function.
42779 (set_timeout): Likewise.
42780 (get_entry_number): Likewise.
42781 (run_menu): Use a default entry, a fallback entry and a timeout
42782 in the environment variables "default", "fallback" and
42783 "timeout". Also, tweak the default entry if it is not within the
42784 current menu entries.
42785 (grub_menu_run): Use a fallback entry in the environment variable
42788 * normal/main.c (read_config_file): Do not initialize
42789 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42791 (grub_normal_execute): Use a data slot to store the menu.
42793 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42794 fallback_entry and timeout.
42795 (struct grub_menu_list): Removed.
42796 (grub_menu_list_t): Likewise.
42797 (struct grub_context): Likewise.
42798 (grub_context_t): Likewise.
42799 (grub_context_get): Likewise.
42800 (grub_context_get_current_menu): Likewise.
42801 (grub_context_push_menu): Likewise.
42802 (grub_context_pop_menu): Likewise.
42803 (grub_default_init): Likewise.
42804 (grub_default_fini): Likewise.
42805 (grub_timeout_init): Likewise.
42806 (grub_timeout_fini): Likewise.
42808 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42810 (normal_mod_SOURCES): Removed normal/context.c.
42812 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42813 commands/default.c, commands/timeout.c and normal/context.c.
42814 (normal_mod_SOURCES): Removed normal/context.c.
42816 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42817 commands/timeout.c and normal/context.c.
42818 (normal_mod_SOURCES): Removed normal/context.c.
42820 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42821 commands/default.c, commands/timeout.c and normal/context.c.
42822 (normal_mod_SOURCES): Removed normal/context.c.
42824 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42826 (default_mod_SOURCES): Removed.
42827 (default_mod_CFLAGS): Likewise.
42828 (default_mod_LDFLAGS): Likewise.
42829 (timeout_mod_SOURCES): Removed.
42830 (timeout_mod_CFLAGS): Likewise.
42831 (timeout_mod_LDFLAGS): Likewise.
42833 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42836 * commands/default.c: Removed.
42837 * commands/timeout.c: Likewise.
42838 * normal/context.c: Likewise.
42840 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42842 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42844 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42846 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42847 "next" to "prev" for readability.
42848 (struct grub_env_sorted_var): New struct.
42849 (grub_env_context): Renamed to ...
42850 (initial_context): ... this.
42851 (grub_env_var_context): Renamed to ...
42852 (current_context): ... this.
42853 (grub_env_find): Look only at CURRENT_CONTEXT.
42854 (grub_env_context_open): Rewritten to copy exported variables from
42856 (grub_env_context_close): Rewritten according to the new
42857 scheme. Also, add an assertion to prevent the initial context from
42859 (grub_env_insert): Removed the code for the sorted list.
42860 (grub_env_remove): Likewise.
42861 (grub_env_export): Simply mark the variable with
42862 GRUB_ENV_VAR_GLOBAL.
42863 (grub_env_set): A cosmetic change for naming consistency.
42864 (grub_env_get): Likewise.
42865 (grub_env_unset): Likewise.
42866 (grub_env_iterate): Rewritten to sort variables within this
42868 (grub_register_variable_hook): Fixed for naming consistency. Call
42869 grub_env_find again, only if NAME is not found at the first time.
42870 (mangle_data_slot_name): New function.
42871 (grub_env_set_data_slot): Likewise.
42872 (grub_env_get_data_slot): Likewise.
42873 (grub_env_unset_data_slot): Likewise.
42875 * include/grub/env.h (grub_env_var_type): New enum.
42876 (GRUB_ENV_VAR_LOCAL): New constant.
42877 (GRUB_ENV_VAR_GLOBAL): Likewise.
42878 (GRUB_ENV_VAR_DATA): Likewise.
42879 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42881 (grub_env_set): Replace VAR with NAME for consistency.
42882 (grub_register_variable_hook): Likewise.
42883 (grub_env_export): Specify the name of the argument.
42884 (grub_env_set_data_slot): New prototype.
42885 (grub_env_get_data_slot): Likewise.
42886 (grub_env_unset_data_slot): Likewise.
42888 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42890 Extend the loader so that GRUB can accept a loader which comes
42891 back to GRUB when a loaded image exits. Also, this change adds
42892 support for a chainloader on EFI.
42894 * term/efi/console.c: Include grub/misc.h.
42895 (grub_console_checkkey): Display a scan code on the top for
42896 debugging. This will be removed once the EFI port gets stable.
42897 Correct the scan code mapping.
42899 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42900 allocate memory from larger regions, in order to reduce the number
42901 of allocated regions. Otherwise, the MacOSX loader panics.
42902 (filter_memory_map): Avoid less than 1MB for compatibility with
42904 (add_memory_regions): Allocate from the tail of a region, if
42905 possible, to avoid allocating a region near to 1MB, for the MacOSX
42908 * kern/efi/init.c (grub_efi_set_prefix): Specify
42909 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42911 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42912 argument IMAGE_HANDLE and specify it to get a loaded image.
42913 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42914 grub_efi_get_loaded_image.
42915 (grub_efi_get_filename): Divide the length by the size of
42917 (grub_efi_get_device_path): New function.
42918 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42919 the length by the size of grub_efi_char16_t for a file path device
42922 * kern/loader.c (grub_loader_noreturn): New variable.
42923 (grub_loader_set): Accept a new argument NORETURN. Set
42924 GRUB_LOADER_NORETURN to NORETURN.
42925 All callers changed.
42926 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42929 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42931 (grub_efi_get_loaded_image): Take an argument to specify an image
42934 * include/grub/loader.h (grub_loader_set): Added one more argument
42937 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42938 instead of grub_efi_open_protocol.
42939 (grub_efidisk_get_device_name): Likewise.
42940 (grub_efidisk_close): Print a newline.
42941 (grub_efidisk_get_device_handle): Fixed to use
42942 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42943 GRUB_EFI_DEVICE_PATH_TYPE.
42945 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42946 * kern/efi/efi.c (device_path_guid): ... here.
42948 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42950 (kernel_mod_HEADERS): Added efi/disk.h.
42951 (_chain_mod_SOURCES): New variable.
42952 (_chain_mod_CFLAGS): Likewise.
42953 (_chain_mod_LDFLAGS): Likewise.
42954 (chain_mod_SOURCES): Likewise.
42955 (chain_mod_CFLAGS): Likewise.
42956 (chain_mod_LDFLAGS): Likewise.
42958 * DISTLIST: Added include/grub/efi/chainloader.h,
42959 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42961 * include/grub/efi/chainloader.h: New file.
42962 * loader/efi/chainloader.c: Likewise.
42963 * loader/efi/chainloader_normal.c: Likewise.
42965 2006-04-30 Marco Gerards <marco@gnu.org>
42967 * commands/configfile.c (grub_cmd_source): New function.
42968 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42969 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42971 2006-04-30 Marco Gerards <marco@gnu.org>
42973 * normal/execute.c (grub_script_execute_cmd): Change the return
42974 type to `grub_err_t'. Correctly return the error.
42975 (grub_script_execute_cmdline): In case a command line is not a
42976 command or a function, try to interpret it as an assignment.
42978 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42980 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42981 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42982 skip a node whose name is obviously invalid as UTF-16,
42983 i.e. contains a NUL character. Stop the iteration when the last
42984 directory entry is found. Instead of using the return value of
42985 grub_hfsplus_btree_iterate_node, store the value in RET and use
42986 it, because the iterator can be stopped by the last directory
42989 2006-04-30 Marco Gerards <marco@gnu.org>
42991 * include/grub/env.h (grub_env_export): New prototype. Reported
42992 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42994 2006-04-30 Marco Gerards <marco@gnu.org>
42996 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
42997 size of the extents in a catalog file record.
42999 2006-04-29 Marco Gerards <marco@gnu.org>
43001 * commands/configfile.c (grub_cmd_configfile): Execute the
43002 configfile within its own context.
43004 * include/grub/env.h (grub_env_context_open): New prototype.
43005 (grub_env_context_close): Likewise.
43007 * kern/env.c (grub_env): Removed.
43008 (grub_env_sorted): Likewise.
43009 (grub_env_context): New variable.
43010 (grub_env_var_context): Likewise.
43011 (grub_env_find): Search both the active context and the global
43013 (grub_env_context_open): New function.
43014 (grub_env_context_close): Likewise.
43015 (grub_env_insert): Likewise.
43016 (grub_env_remove): Likewise.
43017 (grub_env_export): Likewise.
43018 (grub_env_set): Changed to use helper functions to avoid code
43020 (grub_env_iterate): Rewritten so both the current context and the
43021 global context are being used.
43023 * normal/command.c (export_command): New function.
43024 (grub_command_init): Register the `export' function.
43026 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
43028 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
43029 explicitly to suppress gcc's warnings.
43030 * fs/fat.c (grub_fat_find_dir): Likewise.
43031 (grub_fat_label): Likewise.
43032 * fs/xfs.c (grub_xfs_read_inode): Likewise.
43033 (grub_xfs_mount): Likewise.
43034 (grub_xfs_label): Likewise.
43035 * fs/affs.c (grub_affs_mount): Likewise.
43036 (grub_affs_label): Likewise.
43037 (grub_affs_iterate_dir): Likewise.
43038 * fs/sfs.c (grub_sfs_mount): Likewise.
43039 (grub_sfs_iterate_dir): Likewise.
43040 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
43041 * fs/hfs.c (grub_hfs_mount): Likewise.
43042 (grub_hfs_cmp_catkeys): Likewise.
43043 (grub_hfs_find_dir): Likewise.
43044 (grub_hfs_dir): Likewise.
43045 (grub_hfs_label): Likewise.
43046 * fs/jfs.c (grub_jfs_mount): Likewise.
43047 (grub_jfs_opendir): Likewise.
43048 (grub_jfs_getent): Likewise.
43049 (grub_jfs_lookup_symlink): Likewise.
43050 (grub_jfs_label): Likewise.
43051 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43052 (grub_hfsplus_iterate_dir): Likewise.
43053 (grub_hfsplus_btree_iterate_node): Made static.
43055 * util/grub-emu.c (prefix): New variable.
43056 (grub_machine_set_prefix): New function.
43057 (main): Do not set the environment variable "prefix" here. Only
43058 set PREFIX, which is used later by grub_machine_set_prefix.
43060 * include/grub/video.h: Do not include grub/symbol.h.
43061 (grub_video_register): Not exported. This symbol is not defined in
43063 (grub_video_unregister): Likewise.
43064 (grub_video_iterate): Likewise.
43065 (grub_video_setup): Likewise.
43066 (grub_video_restore): Likewise.
43067 (grub_video_get_info): Likewise.
43068 (grub_video_get_blit_format): Likewise.
43069 (grub_video_set_palette): Likewise.
43070 (grub_video_get_palette): Likewise.
43071 (grub_video_set_viewport): Likewise.
43072 (grub_video_get_viewport): Likewise.
43073 (grub_video_map_color): Likewise.
43074 (grub_video_map_rgb): Likewise.
43075 (grub_video_map_rgba): Likewise.
43076 (grub_video_fill_rect): Likewise.
43077 (grub_video_blit_glyph): Likewise.
43078 (grub_video_blit_bitmap): Likewise.
43079 (grub_video_blit_render_target): Likewise.
43080 (grub_video_scroll): Likewise.
43081 (grub_video_swap_buffers): Likewise.
43082 (grub_video_create_render_target): Likewise.
43083 (grub_video_delete_render_target): Likewise.
43084 (grub_video_set_active_render_target): Likewise.
43086 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43088 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43090 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43091 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43092 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43093 instead of $(srcdir)/genkernsyms.sh.
43095 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43096 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43097 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43098 instead of $(srcdir)/genkernsyms.sh.
43100 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43101 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43102 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43103 instead of $(srcdir)/genkernsyms.sh.
43105 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43106 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43107 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43108 instead of $(srcdir)/genkernsyms.sh.
43110 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43113 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43115 (gensymlist.sh): New target.
43116 (genkernsyms.sh): Likewise.
43118 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43119 genkernsyms.sh.in and gensymlist.sh.in.
43121 * genkernsyms.sh: Removed.
43122 * gensymlist.sh: Likewise.
43124 * genkernsyms.sh.in: New file.
43125 * gensymlist.sh.in: Likewise.
43127 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43129 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43130 clobber "prefix", since we may have already set it manually.
43132 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43134 * kern/misc.c (abort): New alias for grub_abort.
43136 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43138 A new machine-specific function "grub_machine_set_prefix" is
43139 defined. This is called after loading modules, so that a prefix
43140 initialization can use modules. Also, this change adds an
43141 intensive debugging feature for the memory manager via the
43142 configure option "--enable-mm-debug".
43144 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43147 * kern/sparc64/ieee1275/init.c (abort): Removed.
43148 (grub_stop): Likewise.
43149 (grub_exit): New function.
43150 (grub_set_prefix): Renamed to ...
43151 (grub_machine_set_prefix): ... this.
43152 (grub_machine_init): Do not call grub_set_prefix.
43154 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43155 (grub_machine_set_prefix): ... this.
43156 (grub_machine_init): Do not call grub_set_prefix.
43158 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43159 (grub_machine_init): Do not set the prefix here.
43161 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43163 * kern/efi/init.c: Include grub/mm.h.
43164 (grub_efi_set_prefix): New function.
43166 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43167 (grub_efi_get_filename): New function.
43168 (grub_print_device_path): Renamed to ...
43169 (grub_efi_print_device_path): ... this.
43171 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43172 [MM_DEBUG] (grub_realloc): Likewise.
43173 [MM_DEBUG] (grub_free): Likewise.
43174 [MM_DEBUG] (grub_memalign): Likewise.
43175 [MM_DEBUG] (grub_mm_debug): New variable.
43176 [MM_DEBUG] (grub_debug_malloc): New function.
43177 [MM_DEBUG] (grub_debug_free): New function.
43178 [MM_DEBUG] (grub_debug_realloc): New function.
43179 [MM_DEBUG] (grub_debug_memalign): New function.
43181 * kern/misc.c (grub_abort): Print a newline to distinguish
43184 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43185 grub_set_root_dev after loading modules. This is necessary when
43186 setting a prefix depends on modules.
43188 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43189 (grub_efi_print_device_path): ... this.
43190 (grub_efi_get_filename): New prototype.
43191 (grub_efi_set_prefix): Likewise.
43193 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43195 (grub_efidisk_get_device_handle): New prototype.
43196 (grub_efidisk_get_device_name): Likewise.
43198 * include/grub/mm.h: Include config.h.
43199 (MM_DEBUG): Removed.
43200 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43201 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43202 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43203 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43204 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43205 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43206 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43207 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43208 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43210 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43212 * disk/efi/efidisk.c: Include grub/partition.h.
43213 (iterate_child_devices): New function.
43214 (add_device): First, compare only last device path nodes, so that
43215 devices are sorted by the types.
43216 (grub_efidisk_get_device_handle): New function.
43217 (grub_efidisk_get_device_name): Likewise.
43219 * configure.ac (--enable-mm-debug): New option to enable the
43220 memory manager debugging feature. This makes the binary much
43221 bigger, so is disabled by default.
43223 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43225 Use grub_abort instead of grub_stop, and grub_exit must be
43226 define in each architecture now. Also, this change adds support
43229 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43230 (grub_getkey): New function.
43231 (grub_term_get_current): Likewise.
43233 * util/i386/pc/grub-setup.c: Include grub/term.h.
43234 (grub_getkey): New function.
43235 (grub_term_get_current): Likewise.
43237 * util/misc.c (grub_stop): Renamed to ...
43238 (grub_exit): ... this.
43240 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43241 (grub_exit): ... this.
43242 (grub_machine_init): Use grub_abort instead of abort.
43243 (grub_stop): Removed.
43245 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43248 * kern/i386/pc/startup.S (grub_exit): New function.
43249 (cold_reboot): New label.
43251 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43252 (grub_efi_init): Call grub_efidisk_init.
43253 (grub_efi_fini): Call grub_efidisk_fini.
43255 * kern/efi/efi.c: Include grub/mm.h.
43256 (grub_efi_console_control_guid): Renamed to ...
43257 (console_control_guid): ... this.
43258 (grub_efi_loaded_image_guid): Renamed to ...
43259 (loaded_image_guid): ... this.
43260 (grub_efi_locate_handle): New function.
43261 (grub_efi_open_protocol): Likewise.
43262 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43263 GRUB_EFI_CONSOLE_CONTROL_GUID.
43264 (grub_efi_exit): Removed.
43265 (grub_stop): Likewise.
43266 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43267 (grub_exit): New function.
43268 (grub_print_device_path): Likewise.
43270 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43271 (grub_enter_rescue_mode): Register "exit".
43273 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43274 (grub_abort): New function.
43276 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43278 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43280 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43282 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43283 (grub_print_device_path): New prototype.
43284 (grub_efi_locate_handle): Likewise.
43285 (grub_efi_open_protocol): Likewise.
43287 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43288 * disk/efi/efidisk.c: Likewise.
43290 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43292 * include/grub/efi/console_control.h
43293 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43295 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43296 last 8 bytes as an array.
43297 (GRUB_EFI_DISK_IO_GUID): New macro.
43298 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43299 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43300 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43302 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43303 (struct grub_efi_device_path): Rename the member "sub_type" to
43305 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43306 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43307 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43308 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43309 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43310 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43311 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43312 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43313 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43314 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43315 (struct grub_efi_pci_device_path): New structure.
43316 (grub_efi_pci_device_path_t): New type.
43317 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43318 (struct grub_efi_pccard_device_path): New structure.
43319 (grub_efi_pccard_device_path_t): New type.
43320 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43321 (struct grub_efi_memory_mapped_device_path): New structure.
43322 (grub_efi_memory_mapped_device_path_t): New type.
43323 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43324 (struct grub_efi_vendor_device_path): New structure.
43325 (grub_efi_vendor_device_path_t): New type.
43326 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43327 (struct grub_efi_controller_device_path): New structure.
43328 (grub_efi_controller_device_path_t): New type.
43329 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43330 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43331 (struct grub_efi_acpi_device_path): New structure.
43332 (grub_efi_acpi_device_path_t): New type.
43333 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43334 (struct grub_efi_expanded_acpi_device_path): New structure.
43335 (grub_efi_expanded_acpi_device_path_t): New type.
43336 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43337 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43338 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43339 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43340 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43341 (struct grub_efi_atapi_device_path): New structure.
43342 (grub_efi_atapi_device_path_t): New type.
43343 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43344 (struct grub_efi_fibre_channel_device_path): New structure.
43345 (grub_efi_fibre_channel_device_path_t): New type.
43346 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43347 (struct grub_efi_1394_device_path): New structure.
43348 (grub_efi_1394_device_path_t): New type.
43349 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43350 (struct grub_efi_usb_device_path): New structure.
43351 (grub_efi_usb_device_path_t): New type.
43352 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43353 (struct grub_efi_usb_class_device_path): New structure.
43354 (grub_efi_usb_class_device_path_t): New type.
43355 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43356 (struct grub_efi_i2o_device_path): New structure.
43357 (grub_efi_i2o_device_path_t): New type.
43358 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43359 (struct grub_efi_mac_address_device_path): New structure.
43360 (grub_efi_mac_address_device_path_t): New type.
43361 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43362 (struct grub_efi_ipv4_device_path): New structure.
43363 (grub_efi_ipv4_device_path_t): New type.
43364 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43365 (struct grub_efi_ipv6_device_path): New structure.
43366 (grub_efi_ipv6_device_path_t): New type.
43367 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43368 (struct grub_efi_infiniband_device_path): New structure.
43369 (grub_efi_infiniband_device_path_t): New type.
43370 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43371 (struct grub_efi_uart_device_path): New structure.
43372 (grub_efi_uart_device_path_t): New type.
43373 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43374 (struct grub_efi_vendor_messaging_device_path): New structure.
43375 (grub_efi_vendor_messaging_device_path_t): New type.
43376 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43377 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43378 (struct grub_efi_hard_drive_device_path): New structure.
43379 (grub_efi_hard_drive_device_path_t): New type.
43380 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43381 (struct grub_efi_cdrom_device_path): New structure.
43382 (grub_efi_cdrom_device_path_t): New type.
43383 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43384 (struct grub_efi_vendor_media_device_path): New structure.
43385 (grub_efi_vendor_media_device_path_t): New type.
43386 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43387 (struct grub_efi_file_path_device_path): New structure.
43388 (grub_efi_file_path_device_path_t): New type.
43389 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43390 (struct grub_efi_protocol_device_path): New structure.
43391 (grub_efi_protocol_device_path_t): New type.
43392 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43393 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43394 (struct grub_efi_bios_device_path): New structure.
43395 (grub_efi_bios_device_path_t): New type.
43396 (struct grub_efi_disk_io): New structure.
43397 (grub_efi_disk_io_t): New type.
43398 (struct grub_efi_block_io_media): New structure.
43399 (grub_efi_block_io_media_t): New type.
43400 (struct grub_efi_block_io): New structure.
43401 (grub_efi_block_io_t): New type.
43403 * include/grub/misc.h (grub_stop): Removed.
43404 (grub_exit): New prototype.
43405 (grub_abort): Likewise.
43407 * include/grub/disk.h (enum grub_disk_dev_id): Added
43408 GRUB_DISK_DEVICE_EFIDISK_ID.
43410 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43411 disk/efi/efidisk.c.
43412 (kernel_syms.lst): Remove the target if an error occurs.
43414 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43416 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43417 as it was simply too buggy.
43419 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43421 * kern/misc.c (grub_lltoa): New function.
43422 (grub_vsprintf): Added support for the long long suffix,
43425 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43427 * Makefile.in (LDFLAGS): Add variable.
43428 (LD): Remove variable.
43429 * configure.ac: Add -m32 to LDFLAGS.
43430 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43431 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43432 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43433 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43434 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43436 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43437 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43438 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43440 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43442 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43443 length for unknown glyph.
43445 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43447 Add support for pre-loaded modules into the EFI port.
43449 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43450 completely. Accept one more argument DIR. The caller has changed.
43452 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43454 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43455 (grub_efi_loaded_image_guid): New variable.
43456 (grub_efi_get_loaded_image): New function.
43457 (grub_arch_modules_addr): Likewise.
43459 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43462 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43463 (struct grub_efi_loaded_image): New structure.
43464 (grub_efi_loaded_image_t): New type.
43466 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43468 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43469 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43470 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43472 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43474 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43476 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43478 * DISTLIST: Added include/grub/efi/console.h,
43479 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43480 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43482 * include/grub/efi/console.h: New file.
43483 * include/grub/efi/time.h: Likewise.
43484 * include/grub/i386/efi/kernel.h: Likewise.
43485 * kern/efi/init.c: Likewise.
43486 * kern/efi/mm.c: Likewise.
43487 * term/efi/console.c: Likewise.
43489 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43490 (grub_stop): Removed.
43491 (grub_get_rtc): Likewise.
43492 (grub_machine_init): Simply call grub_efi_init.
43493 (grub_machine_fini): Call grub_efi_fini.
43495 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43496 (grub_efi_output_string): Removed.
43497 (grub_efi_stall): New function.
43498 (grub_stop): Likewise.
43499 (grub_get_rtc): Likewise.
43501 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43502 (grub_efi_stall): New prototype.
43503 (grub_efi_allocate_pages): Likewise.
43504 (grub_efi_free_pages): Likewise.
43505 (grub_efi_get_memory_map): Likewise.
43506 (grub_efi_mm_init): Likewise.
43507 (grub_efi_mm_fini): Likewise.
43508 (grub_efi_init): Likewise.
43509 (grub_efi_fini): Likewise.
43511 * include/grub/i386/efi/time.h: Do not include
43512 grub/symbol.h. Include grub/efi/time.h.
43513 (GRUB_TICKS_PER_SECOND): Removed.
43514 (grub_get_rtc): Likewise.
43516 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43517 Added padding. The EFI spec is buggy.
43518 (GRUB_EFI_BLACK): New macro.
43519 (GRUB_EFI_BLUE): Likewise.
43520 (GRUB_EFI_GREEN): Likewise.
43521 (GRUB_EFI_CYAN): Likewise.
43522 (GRUB_EFI_RED): Likewise.
43523 (GRUB_EFI_MAGENTA): Likewise.
43524 (GRUB_EFI_BROWN): Likewise.
43525 (GRUB_EFI_LIGHTGRAY): Likewise.
43526 (GRUB_EFI_BRIGHT): Likewise.
43527 (GRUB_EFI_DARKGRAY): Likewise.
43528 (GRUB_EFI_LIGHTBLUE): Likewise.
43529 (GRUB_EFI_LIGHTGREEN): Likewise.
43530 (GRUB_EFI_LIGHTCYAN): Likewise.
43531 (GRUB_EFI_LIGHTRED): Likewise.
43532 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43533 (GRUB_EFI_YELLOW): Likewise.
43534 (GRUB_EFI_WHITE): Likewise.
43535 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43536 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43537 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43538 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43539 (GRUB_EFI_BACKGROUND_RED): Likewise.
43540 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43541 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43542 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43543 (GRUB_EFI_TEXT_ATTR): Likewise.
43545 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43546 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43547 (kernel_mod_HEADERS): Added efi/time.h.
43549 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43551 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43552 include/grub/efi/api.h, include/grub/efi/console_control.h,
43553 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43554 include/grub/i386/efi/time.h, kern/efi/efi.c,
43555 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43556 and util/i386/efi/grub-mkimage.c.
43558 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43560 * genmk.rb (PModule#rule): Do not export symbols if
43561 #{prefix}_EXPORTS is set to "no".
43563 * conf/i386-efi.mk: New file.
43564 * conf/i386-efi.rmk: Likewise.
43565 * include/grub/efi/api.h: Likewise.
43566 * include/grub/efi/console_control.h: Likewise.
43567 * include/grub/efi/efi.h: Likewise.
43568 * include/grub/efi/pe32.h: Likewise.
43569 * include/grub/i386/efi/time.h: Likewise.
43570 * kern/efi/efi.c: Likewise.
43571 * kern/i386/efi/init.c: Likewise.
43572 * kern/i386/efi/startup.S: Likewise.
43573 * util/i386/efi/grub-mkimage.c: Likewise.
43575 2006-04-17 Marco Gerards <marco@gnu.org>
43577 * include/grub/script.h: Include <grub/parser.h> and
43578 "grub_script.tab.h".
43579 (struct grub_lexer_param): New struct.
43580 (struct grub_parser_param): Likewise.
43581 (grub_script_create_arglist): Pass the state in an argument.
43582 (grub_script_add_arglist): Likewise.
43583 (grub_script_create_cmdline): Likewise.
43584 (grub_script_create_cmdblock): Likewise.
43585 (grub_script_create_cmdif): Likewise.
43586 (grub_script_create_cmdmenu): Likewise.
43587 (grub_script_add_cmd): Likewise.
43588 (grub_script_arg_add): Likewise.
43589 (grub_script_lexer_ref): Likewise.
43590 (grub_script_lexer_deref): Likewise.
43591 (grub_script_lexer_record_start): Likewise.
43592 (grub_script_lexer_record_stop): Likewise.
43593 (grub_script_mem_record): Likewise.
43594 (grub_script_mem_record_stop): Likewise.
43595 (grub_script_malloc): Likewise.
43596 (grub_script_yylex): Likewise.
43597 (grub_script_yyparse): Likewise.
43598 (grub_script_yyerror): Likewise.
43599 (grub_script_yylex): Likewise.
43600 (grub_script_lexer_init): Return the state.
43602 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43603 (grub_script_lexer_done): Likewise.
43604 (grub_script_lexer_getline): Likewise.
43605 (grub_script_lexer_refs): Likewise.
43606 (script): Likewise.
43607 (newscript): Likewise.
43608 (record): Likewise.
43609 (recording): Likewise.
43610 (recordpos): Likewise.
43611 (recordlen): Likewise.
43612 (grub_script_lexer_init): Return the state instead of setting
43614 (grub_script_lexer_ref): Use the newly added argument for state
43615 instead of globals.
43616 (grub_script_lexer_deref): Likewise.
43617 (grub_script_lexer_record_start): Likewise.
43618 (grub_script_lexer_record_stop): Likewise.
43619 (recordchar): Likewise.
43620 (nextchar): Likewise.
43621 (grub_script_yylex2): Likewise.
43622 (grub_script_yylex): Likewise.
43623 (grub_script_yyerror): Likewise.
43625 * normal/parser.y (func_mem): Removed variable.
43626 (menu_entry): Likewise.
43628 (%lex-param): New parser option.
43629 (%parse-param): Likewise.
43630 (script): Always return the AST.
43631 (argument): Pass the state around.
43632 (arguments): Likewise.
43633 (grubcmd): Likewise.
43634 (commands): Likewise.
43635 (function): Likewise.
43636 (menuentry): Likewise.
43637 (if_statement): Likewise.
43640 * normal/script.c (grub_script_memused): Removed variable.
43641 (grub_script_parsed): Likewise.
43642 (grub_script_malloc): Added a state argument. Use that instead of
43644 (grub_script_mem_record): Likewise.
43645 (grub_script_mem_record_stop): Likewise.
43646 (grub_script_arg_add): Likewise.
43647 (grub_script_add_arglist): Likewise.
43648 (grub_script_create_cmdline): Likewise.
43649 (grub_script_create_cmdif): Likewise.
43650 (grub_script_create_cmdmenu): Likewise.
43651 (grub_script_add_cmd): Likewise.
43652 (grub_script_parse): Setup the state before calling the parser.
43654 2006-04-16 Marco Gerards <marco@gnu.org>
43656 * normal/command.c (grub_command_init): Remove the title command.
43658 * normal/lexer.c (grub_script_yylex): Renamed from this...
43659 (grub_script_yylex2): ... to this.
43660 (grub_script_yylex): New function. Temporary
43661 introduced to filter some tokens.
43662 (grub_script_yyerror): Print a newline.
43664 * normal/main.c (read_config_file): Output information about the
43665 lines that contain errors. Wait for a key after all lines have
43666 been processed. Don't return an empty menu.
43668 * normal/parser.y (func_mem): Don't initialize.
43669 (menu_entry): Likewise.
43670 (err): New variable.
43671 (script): Don't return anything when an error was encountered.
43672 (ws, returns): Removed rules.
43673 (argument): Disabled concatenated variable support.
43674 (arguments): Remove explicit separators.
43675 (grubcmd): Likewise.
43676 (function): Likewise.
43677 (menuentry): Likewise.
43679 (commands): Likewise. Add error handling.
43681 * normal/script.c (grub_script_create_cmdline): If
43682 `grub_script_parsed' is 0, assume the parser encountered an error.
43684 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43686 * configure.ac: Add support for EFI. Fix the typo
43687 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43689 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43691 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43692 foreign multibyte characters should be shown correctly.
43694 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43696 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43698 (read_config_file): Made it to close file before returning.
43700 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43702 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43703 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43704 video/i386/pc/vbefill.c.
43706 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43707 video/i386/pc/vbefill.c.
43709 * include/grub/video.h (grub_video_blit_format): New enum.
43710 (grub_video_mode_info): Added new member blit_format.
43711 (grub_video_get_blit_format): New function prototype.
43713 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43714 function prototype.
43715 (grub_video_vbe_map_rgb): Likewise.
43716 (grub_video_vbe_unmap_color): Likewise.
43718 * include/grub/i386/pc/vbeblit.h: New file.
43720 * include/grub/i386/pc/vbefill.h: New file.
43722 * video/video.c (grub_video_get_blit_format): New function.
43723 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43724 (grub_video_vbe_map_rgb): Likewise.
43725 (grub_video_vbe_unmap_color): Likewise.
43727 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43729 (grub_video_vbe_blit_render_target): Changed to use more optimized
43731 (grub_video_vbe_setup): Added detection for optimized settings.
43732 (grub_video_vbe_create_render_target): Likewise.
43734 * video/i386/pc/vbeblit.c: New file.
43736 * video/i386/pc/vbefill.c: New file.
43738 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43740 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43743 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43744 parsing to support both hex and dec ranges. If filename was missing
43745 show usage information.
43747 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43749 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43750 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43752 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43753 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43754 (video_mod_SOURCES): Added.
43755 (video_mod_CFLAGS): Likewise.
43756 (video_mod_LDFLAGS): Likewise.
43757 (gfxterm_mod_SOURCES): Likewise.
43758 (gfxterm_mod_CFLAGS): Likewise.
43759 (gfxterm_mod_LDFLAGS): Likewise.
43760 (videotest_mod_SOURCES): Likewise.
43761 (videotest_mod_CFLAGS): Likewise.
43762 (videotest_mod_LDFLAGS): Likewise.
43763 (vesafb_mod_SOURCES): Removed.
43764 (vesafb_mod_CFLAGS): Likewise.
43765 (vesafb_mod_LDFLAGS): Likewise.
43766 (vga_mod_SOURCES): Likewise.
43767 (vga_mod_CFLAGS): Likewise.
43768 (vga_mod_LDFLAGS): Likewise.
43770 * commands/videotest.c: New file.
43772 * font/manager.c (fill_with_default_glyph): Modified to use
43774 (grub_font_get_glyph): Likewise.
43775 (fontmanager): Renamed from this...
43776 (font_manager): ... to this.
43778 * include/grub/font.h (grub_font_glyph): Added new structure.
43779 (grub_font_get_glyph): Modified to use grub_font_glyph.
43781 * include/grub/misc.h (grub_abs): Added as inline function.
43783 * include/grub/video.h: New file.
43785 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43786 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43787 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43788 (grub_vbe_get_controller_info): Renamed from this...
43789 (grub_vbe_bios_get_controller_info): ... to this.
43790 (grub_vbe_get_mode_info): Renamed from this...
43791 (grub_vbe_bios_get_mode_info): ... to this.
43792 (grub_vbe_set_mode): Renamed from this...
43793 (grub_vbe_bios_set_mode): ... to this.
43794 (grub_vbe_get_mode): Renamed from this...
43795 (grub_vbe_bios_get_mode): ... to this.
43796 (grub_vbe_set_memory_window): Renamed from this...
43797 (grub_vbe_bios_set_memory_window): ... to this.
43798 (grub_vbe_get_memory_window): Renamed from this...
43799 (grub_vbe_bios_get_memory_window): ... to this.
43800 (grub_vbe_set_scanline_length): Renamed from this...
43801 (grub_vbe_set_scanline_length): ... to this.
43802 (grub_vbe_get_scanline_length): Renamed from this...
43803 (grub_vbe_bios_get_scanline_length): ... to this.
43804 (grub_vbe_set_display_start): Renamed from this...
43805 (grub_vbe_bios_set_display_start): ... to this.
43806 (grub_vbe_get_display_start): Renamed from this...
43807 (grub_vbe_bios_get_display_start): ... to this.
43808 (grub_vbe_set_palette_data): Renamed from this...
43809 (grub_vbe_bios_set_palette_data): ... to this.
43810 (grub_vbe_set_pixel_rgb): Removed.
43811 (grub_vbe_set_pixel_index): Likewise.
43813 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43815 (grub_vbe_bios_get_controller_info): ... to this.
43816 (grub_vbe_get_mode_info): Renamed from this...
43817 (grub_vbe_bios_get_mode_info): ... to this.
43818 (grub_vbe_set_mode): Renamed from this...
43819 (grub_vbe_bios_set_mode): ... to this.
43820 (grub_vbe_get_mode): Renamed from this...
43821 (grub_vbe_bios_get_mode): ... to this.
43822 (grub_vbe_set_memory_window): Renamed from this...
43823 (grub_vbe_bios_set_memory_window): ... to this.
43824 (grub_vbe_get_memory_window): Renamed from this...
43825 (grub_vbe_bios_get_memory_window): ... to this.
43826 (grub_vbe_set_scanline_length): Renamed from this...
43827 (grub_vbe_set_scanline_length): ... to this.
43828 (grub_vbe_get_scanline_length): Renamed from this...
43829 (grub_vbe_bios_get_scanline_length): ... to this.
43830 (grub_vbe_set_display_start): Renamed from this...
43831 (grub_vbe_bios_set_display_start): ... to this.
43832 (grub_vbe_get_display_start): Renamed from this...
43833 (grub_vbe_bios_get_display_start): ... to this.
43834 (grub_vbe_set_palette_data): Renamed from this...
43835 (grub_vbe_bios_set_palette_data): ... to this.
43836 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43837 getting corrupted after calling it. Added more pushes and pops.
43838 (grub_vbe_bios_set_mode): Likewise.
43839 (grub_vbe_bios_get_mode): Likewise.
43840 (grub_vbe_bios_get_memory_window): Likewise.
43841 (grub_vbe_bios_set_scanline_length): Likewise.
43842 (grub_vbe_bios_get_scanline_length): Likewise.
43843 (grub_vbe_bios_get_display_start): Likewise.
43844 (grub_vbe_bios_set_palette_data): Likewise.
43846 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43847 (cl_insert): Likewise.
43848 (cl_delete): Likewise.
43850 * term/gfxterm.c: New file.
43852 * term/i386/pc/vesafb.c: Removed file.
43854 * video/video.c: New file.
43856 * video/i386/pc/vbe.c (real2pm): Added new function.
43857 (grub_video_vbe_draw_pixel): Likewise.
43858 (grub_video_vbe_get_video_ptr): Likewise.
43859 (grub_video_vbe_get_pixel): Likewise
43860 (grub_video_vbe_init): Likewise.
43861 (grub_video_vbe_fini): Likewise.
43862 (grub_video_vbe_setup): Likewise.
43863 (grub_video_vbe_get_info): Likewise.
43864 (grub_video_vbe_set_palette): Likewise.
43865 (grub_video_vbe_get_palette): Likewise.
43866 (grub_video_vbe_set_viewport): Likewise.
43867 (grub_video_vbe_get_viewport): Likewise.
43868 (grub_video_vbe_map_color): Likewise.
43869 (grub_video_vbe_map_rgb): Likewise.
43870 (grub_video_vbe_map_rgba): Likewise.
43871 (grub_video_vbe_unmap_color): Likewise.
43872 (grub_video_vbe_fill_rect): Likewise.
43873 (grub_video_vbe_blit_glyph): Likewise.
43874 (grub_video_vbe_blit_bitmap): Likewise.
43875 (grub_video_vbe_blit_render_target): Likewise.
43876 (grub_video_vbe_scroll): Likewise.
43877 (grub_video_vbe_swap_buffers): Likewise.
43878 (grub_video_vbe_create_render_target): Likewise.
43879 (grub_video_vbe_delete_render_target): Likewise.
43880 (grub_video_vbe_set_active_render_target): Likewise.
43881 (grub_vbe_set_pixel_rgb): Remove function.
43882 (grub_vbe_set_pixel_index): Likewise.
43883 (index_color_mode): Remove static variable.
43884 (active_mode): Likewise.
43885 (framebuffer): Likewise.
43886 (bytes_per_scan_line): Likewise.
43887 (grub_video_vbe_adapter): Added new static variable.
43888 (framebuffer): Likewise.
43889 (render_target): Likewise.
43890 (initial_mode): Likewise.
43891 (mode_in_use): Likewise.
43892 (mode_list): Likewise.
43894 2006-03-10 Marco Gerards <marco@gnu.org>
43896 * configure.ac (AC_INIT): Bumped to 1.93.
43898 * DISTLIST: Added `include/grub/hfs.h'.
43900 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43902 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43903 18H, which might help the BIOS falling back to next boot media.
43905 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43907 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43908 Poe Chen <poe.poechen@gmail.com>.
43910 2006-01-17 Marco Gerards <marco@gnu.org>
43912 * include/grub/normal.h: Include <grub/script.h>.
43913 (grub_command_list): Removed struct.
43914 (grub_command_list_t): Removed type.
43915 (grub_menu_entry): Remove members `num' and `command_list'. Add
43916 members `commands' and `sourcecode'.
43917 * include/grub/script.h: Add inclusion guards.
43918 (grub_script_cmd_menuentry): New struct.
43919 (grub_script_execute_menuentry): New prototype.
43920 (grub_script_lexer_record_start): Likewise.
43921 (grub_script_lexer_record_stop): Likewise.
43922 * normal/execute.c (grub_script_execute_menuentry): New function.
43923 * normal/lexer.c (record, recording, recordpos, recordlen): New
43925 (grub_script_lexer_record_start): New function.
43926 (grub_script_lexer_record_stop): Likewise.
43927 (recordchar): Likewise.
43928 (nextchar): Likewise.
43929 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43930 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43931 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43932 (current_menu): New variable.
43933 (free_menu): Mainly rewritten.
43934 (grub_normal_menu_addentry): New function.
43935 (read_config_file): Rewritten.
43936 * normal/menu.c (run_menu_entry): Mainly rewritten.
43937 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43939 (run): Mainly rewritten.
43940 * normal/parser.y (menu_entry): New variable.
43941 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43942 (menuentry): New rule.
43943 (command): Add `menuentry'.
43944 (if_statement): Allow additional returns before `fi'.
43945 * normal/script.c (grub_script_create_cmdmenu): New function.
43947 2006-01-03 Marco Gerards <marco@gnu.org>
43949 * INSTALL: GNU Bison is required.
43950 * configure.ac: Rewritten the test to detect Bison.
43951 * Makefile.in (YACC): New variable. Reported by Xun Sun
43952 <xun.sun.cn@gmail.com>.
43954 2006-01-03 Marco Gerards <marco@gnu.org>
43956 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43957 the HFS+ filesystem to filesystem blocks.
43958 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43959 GCC warning is silenced.
43961 2006-01-03 Marco Gerards <marco@gnu.org>
43963 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43964 read from disk from big endian to host byte order.
43966 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43968 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43970 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43971 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43972 embedded HFS+ filesystem.
43973 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43974 (grub_hfs_sblock): Move from here...
43975 * include/grub/hfs.h: To here... New file.
43976 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43978 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43980 (grub_hfsplus_volheader): Change type of member `magic' to
43982 (grub_hfsplus_data): Add new member `embedded_offset'.
43983 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43985 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43986 Calculate the offset.
43988 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43990 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43992 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43994 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43996 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
43997 ENV->NAME is NULL after allocating ENV->VALUE.
43999 2005-12-25 Marco Gerards <marco@gnu.org>
44001 * kern/env.c (grub_env_set): Rewritten the error handling code.
44003 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44005 * geninit.sh: Made more robust, and more portable.
44007 2005-12-25 Marco Gerards <marco@gnu.org>
44009 Add support for Apple HFS+ filesystems.
44011 * fs/hfsplus.c: New file.
44013 * DISTLIST: Added `fs/hfsplus.c'.
44015 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
44016 (hfsplus_mod_SOURCES): New variable.
44017 (hfsplus_mod_CFLAGS): Likewise.
44018 (hfsplus_mod_LDFLAGS): Likewise.
44019 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
44020 (grub_setup_SOURCES): Likewise.
44021 (grub_mkdevicemap_SOURCES): Likewise.
44022 (grub_emu_SOURCES): Likewise.
44023 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44025 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
44027 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
44029 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44031 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
44032 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
44033 include/grub/parser.h, include/grub/script.h, kern/parser.c,
44034 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
44035 normal/lexer.c, normal/parser.y, normal/script.c, and
44037 Removed kern/sparc64/cache.c.
44039 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
44040 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
44043 * configure.ac (AC_INIT): Bumped to 1.92.
44045 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
44047 * kern/err.c (grub_error_push): Added new function to support error
44049 (grub_error_pop): Likewise.
44050 (grub_error_stack_items): New local variable to support error stacks.
44051 (grub_error_stack_pos): Likewise.
44052 (grub_error_stack_assert): Likewise.
44053 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44055 (grub_print_error): Added support to print errors from error stack.
44057 * include/grub/err.h (grub_error_push): Added function prototype.
44058 (grub_error_pop): Likewise.
44060 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44062 * configure.ac: Accept `powerpc64' as host_cpu.
44063 (amd64): Rename to `biarch32'.
44065 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44066 non-cacheline-aligned addresses.
44068 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44069 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44070 if `size' is non-zero.
44072 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
44074 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44075 and `cd' to make sure the filename is not prefixed with a
44077 (pkgdata_MODULES): Add `gpt.mod'.
44078 (gpt_mod_SOURCES): New variable.
44079 (gpt_mod_CFLAGS): Likewise.
44080 (gpt_mod_LDFLAGS): Likewise.
44082 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44084 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44087 * partmap/gpt.c: New file.
44089 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44090 GPT partition map is detected.
44092 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44094 * commands/i386/pc/play.c: New file.
44095 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44096 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44099 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
44101 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44102 ((unused))' to silence gcc warning.
44104 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44106 * configure.ac: Correct `AC_PROG_YACC' test.
44108 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44110 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44111 check before installing files.
44113 2005-11-22 Mike Small <smallm@panix.com>
44115 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44116 number regex so multidigit numbers are recognized correctly.
44118 2005-11-22 Mike Small <smallm@panix.com>
44120 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44121 debugging message before attempting to claim memory.
44122 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44123 multiple addresses in case of failure.
44125 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44127 * term/tparm.c (get_space): Remove empty `if' statement.
44129 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44131 * kern/parser.c (check_varstate): Rename `state' to 's'.
44133 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44135 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44136 variable definitions to the beginning of each function. Sort stack
44138 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44139 `buf' argument to `char *'.
44141 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44143 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44144 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44145 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44146 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44147 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44148 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44149 configfile.mod, search.mod, gzio.mod and test.mod.
44150 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44151 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44152 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44153 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44154 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44155 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44156 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44157 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44158 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44159 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44160 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44161 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44162 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44163 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44164 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44165 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44166 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44167 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44168 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44169 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44170 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44171 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44172 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44174 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44176 (pkgdata_MODULES): Add test.mod.
44178 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44180 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44181 appending to variables with "+=".
44182 (PModule): Use full pathname to generate *.lst filenames.
44184 * Makefile.in: Fixed list rules moved from genmk.rb.
44185 (.DELETE_ON_ERROR): New special target.
44186 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44188 * conf/i386-pc.rmk: Include conf/common.mk.
44189 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44190 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44191 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44192 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44193 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44194 configfile.mod, search.mod, gzio.mod and test.mod.
44195 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44196 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44197 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44198 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44199 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44200 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44201 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44202 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44203 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44204 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44205 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44206 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44207 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44208 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44209 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44210 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44211 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44212 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44213 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44214 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44215 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44216 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44217 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44219 * conf/common.rmk: ... to here. New file.
44221 * conf/common.mk: New file.
44223 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44225 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44226 (grub_script.tab.c): ... here.
44228 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44229 (grub_script.tab.c): ... here.
44231 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44232 (grub_script.tab.c): ... here.
44234 * normal/command.c (grub_command_find): Fixed a memory leak of
44235 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44237 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44239 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44240 "@" which marks the start of a comment on ARM.
44241 (VARIABLE): Likewise.
44243 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44245 Add support for Linux/ADFS partition tables.
44247 * partmap/acorn.c: New file.
44249 * include/grub/acorn_filecore.h: Likewise.
44251 * DISTLIST: Added `partmap/acorn.c' and
44252 `include/grub/acorn_filecore.h'.
44254 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44256 (pkgdata_MODULES): Add `acorn.mod'.
44257 (acorn_mod_SOURCES): New variable.
44258 (acorn_mod_CFLAGS): Likewise.
44260 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44262 (pkgdata_MODULES): Add `acorn.mod'.
44263 (acorn_mod_SOURCES): New variable.
44264 (acorn_mod_CFLAGS): Likewise.
44266 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44267 (pkgdata_MODULES): Add `acorn.mod'.
44268 (acorn_mod_SOURCES): New variable.
44269 (acorn_mod_CFLAGS): Likewise.
44270 (acorn_mod_LDFLAGS): Likewise.
44272 * include/types.h (grub_disk_addr_t): New typedef.
44274 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
44276 * geninit.sh: New file.
44278 * geninitheader.sh: Likewise.
44280 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44281 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44282 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44283 * commands/configfile.c (grub_configfile_init)
44284 (grub_configfile_fini): Likewise.
44285 * commands/default.c (grub_default_init, grub_default_fini):
44287 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44288 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44289 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44290 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44292 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44293 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44295 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
44296 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
44298 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44300 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
44302 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44303 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44304 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44305 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44306 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44307 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44308 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44309 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44310 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44311 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44312 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44313 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44314 * partmap/amiga.c (grub_amiga_partition_map_init)
44315 (grub_amiga_partition_map_fini): Likewise.
44316 * partmap/apple.c (grub_apple_partition_map_init)
44317 (grub_apple_partition_map_fini): Likewise.
44318 * partmap/pc.c (grub_pc_partition_map_init)
44319 (grub_pc_partition_map_fini): Likewise.
44320 * partmap/sun.c (grub_sun_partition_map_init,
44321 grub_sun_partition_map_fini): Likewise.
44322 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44325 * util/grub-emu.c: Include <grub_modules_init.h>.
44326 (main): Don't initialize and de-initialize any modules directly,
44327 use `grub_init_all' and `grub_fini_all' instead.
44329 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44330 `grub_vesafb_mod_init'.
44331 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44333 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44334 `grub_vga_mod_init'. Updated all users.
44335 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44337 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44338 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44341 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44342 Generate a function to initialize the module in utilities.
44343 Updated all callers.
44344 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44345 initialize the module in utilities. Updated all callers.
44347 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44349 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44350 escape sequence and a literal ^L to clear the screen.
44352 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44353 when returning from Open Firmware.
44355 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44357 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44358 (grub_ofconsole_height): Likewise.
44359 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44360 manually insert a '\n'.
44361 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44362 `grub_ofconsole_height'. Return early if these are already set.
44364 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44366 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44367 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44368 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44369 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44370 and `normal/script.c'.
44371 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44372 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44373 (test_mod_SOURCES): New variable.
44374 (test_mod_CFLAGS): Likewise.
44375 (test_mod_LDFLAGS): Likewise.
44376 (pkgdata_MODULES): Add `test.mod'.
44377 (grub_script.tab.c): New rule.
44378 (grub_script.tab.h): Likewise.
44380 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44382 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44383 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44384 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44385 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44386 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44387 (test_mod_SOURCES): New variable.
44388 (test_mod_CFLAGS): Likewise.
44389 (pkgdata_MODULES): Add `test.mod'.
44390 (grub_script.tab.c): New rule.
44391 (grub_script.tab.h): Likewise.
44393 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44395 Add initial scripting support.
44397 * commands/test.c: New file.
44398 * include/grub/script.h: Likewise.
44399 * normal/execute.c: Likewise.
44400 * normal/function.c: Likewise.
44401 * normal/lexer.c: Likewise.
44402 * normal/parser.y: Likewise.
44403 * normal/script.c: Likewise.
44405 * configure.ac: Add `AC_PROG_YACC' test.
44407 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44408 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44409 `normal/function.c' and `normal/script.c'.
44410 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44411 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44412 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44414 (pkgdata_MODULES): Add `test.mod'.
44415 (grub_script.tab.c): New rule.
44416 (grub_script.tab.h): Likewise.
44418 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44420 * include/grub/normal.h (grub_test_init): New prototype.
44421 (grub_test_fini): Likewise.
44423 * normal/command.c: Include <grub/script.h>.
44424 (grub_command_execute): Rewritten.
44426 * util/grub-emu.c (main): Call `grub_test_init' and
44429 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44431 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44433 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44434 there are no pending characters.
44436 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44438 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44439 `grub_strndup' to drop device arguments. Replace unnecessary
44440 `grub_strndup' with `grub_strdup'.
44442 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44444 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44445 `debug' environment variable has been set.
44447 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44449 * Makefile.in (install-local): Use $(DATA).
44450 (uninstall): Likewise.
44451 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44452 (sbin_UTILITIES): ... to here.
44453 (sbin_SCRIPTS): New variable.
44454 (grub_install_SOURCES): New variable.
44455 * util/powerpc/ieee1275/grub-install.in: New file.
44456 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44458 (add_segments): Call `grub_util_get_path'.
44460 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44462 From Timothy Baldwin:
44463 * commands/ls.c (grub_ls_list_files): Close FILE with
44465 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44467 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44469 * include/grub/parser.h: New file.
44471 * kern/parser.c: Likewise.
44473 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44474 (grub_setup_SOURCES): Likewise.
44475 (grub_probefs_SOURCES): Likewise.
44476 (grub_emu_SOURCES): Likewise.
44477 (kernel_img_HEADERS): Add `parser.h'.
44479 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44480 (grub_emu_SOURCES): Add `kern/parser.c'.
44481 (grubof_SOURCES): Likewise.
44483 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44484 (grubof_SOURCES): Add `kern/parser.c'.
44486 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44488 * kern/misc.c (grub_split_cmdline): Removed function.
44490 * kern/rescue.c: Include <grub/parser.h>.
44491 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44492 of `grub_split_cmdline'.
44494 * normal/command.c: Include <grub/parser.h>.
44495 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44496 of `grub_split_cmdline'.
44498 * normal/completion.c: Include <grub/parser.h>.
44499 (cmdline_state): New variable.
44500 (iterate_dir): End the filename with a quote depending on the
44501 command line state.
44502 (get_state): new function.
44503 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44504 split the arguments and determine the current argument. When the
44505 argument string is not quoted, escape all spaces.
44507 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44509 * normal/sparc64/setjmp.S: New file.
44511 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44513 * include/grub/sparc64/libgcc.h: New file.
44514 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44515 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44516 normal/sparc64/setjmp.c.
44518 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44520 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44521 * kern/sparc64/cache.S: New file.
44522 * kern/sparc64/cache.c: Removed.
44523 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44524 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44526 (COMMON_LDFLAGS): Add -melf64_sparc.
44527 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44528 (grubof_SOURCES): Use cache.S instead of cache.c.
44529 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44530 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44531 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44533 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44534 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44535 (linux_mod_CFLAGS): Commented out.
44536 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44537 out because module isn't built.
44538 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44539 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44540 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44541 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44542 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44543 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44544 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44545 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44546 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44547 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44548 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44549 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44550 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44551 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44553 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44555 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44556 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44557 longer, because HFS should not be used on PC.
44559 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44561 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44562 consistently within the loop.
44564 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44566 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44567 directory can not be read.
44569 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44571 * configure.ac (AC_INIT): Increase the version number to 1.91.
44573 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44574 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44575 term/i386/pc/serial.c.
44577 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44579 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44580 file size must be permitted.
44582 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44583 between %ah and %al.
44585 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44587 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44589 Call the hook with a NUL-terminated filename.
44590 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44593 * kern/term.c (cursor_state): New variable.
44594 (grub_term_set_current): Reset the cursor state on a new
44596 (grub_setcursor): Rewritten to use CURSOR_STATE.
44597 (grub_getcursor): New function.
44599 * include/grub/term.h (grub_getcursor): New prototype.
44601 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44602 integers on ARM. Reported by Timothy Baldwin
44603 <T.E.Baldwin99@members.leeds.ac.uk>.
44605 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44607 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44609 (grub_sfs_dir): Likewise.
44611 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44613 Add support for the SFS filesystem.
44615 * fs/sfs.c: New file.
44617 * DISTLIST: Added `fs/sfs.c'.
44619 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44620 (grub_probefs_SOURCES): Likewise.
44621 (grub_emu_SOURCES): Likewise.
44622 (pkgdata_MODULES): Add `sfs.mod'.
44623 (sfs_mod_SOURCES): New variable.
44624 (sfs_mod_CFLAGS): Likewise.
44625 (sfs_mod_LDFLAGS): Likewise.
44627 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44628 (pkgdata_MODULES): Add `sfs.mod'.
44629 (sfs_mod_SOURCES): New variable.
44630 (sfs_mod_CFLAGS): Likewise.
44632 * util/grub-emu.c (main): Call `grub_sfs_init' and
44635 * include/grub/fs.h (grub_sfs_init): New prototype.
44636 (grub_sfs_fini): Likewise.
44638 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44640 Add support for the AFFS filesystem.
44642 * fs/affs.c: New file.
44644 * DISTLIST: Added `fs/affs.c'.
44646 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44647 (grub_probefs_SOURCES): Likewise.
44648 (grub_emu_SOURCES): Likewise.
44649 (pkgdata_MODULES): Add `affs.mod'.
44650 (affs_mod_SOURCES): New variable.
44651 (affs_mod_CFLAGS): Likewise.
44652 (affs_mod_LDFLAGS): Likewise.
44654 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44655 (pkgdata_MODULES): Add `affs.mod'.
44656 (affs_mod_SOURCES): New variable.
44657 (affs_mod_CFLAGS): Likewise.
44659 * util/grub-emu.c (main): Call `grub_affs_init' and
44662 * include/grub/fs.h (grub_affs_init): New prototype.
44663 (grub_affs_fini): Likewise.
44665 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44667 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44669 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44671 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44674 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44677 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44678 (COMMON_LDFLAGS): New variable.
44679 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44680 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44681 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44682 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44683 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44684 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44685 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44686 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44687 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44688 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44689 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44690 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44691 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44692 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44693 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44695 (normal_mod_ASFLAGS): Add `-m32'.
44697 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44698 (grub_host_size_t, grub_host_ssize_t): New types.
44699 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44700 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44701 `GRUB_HOST_SIZEOF_VOID_P'.
44703 * include/grub/kernel.h (struct grub_module_header): Type of
44704 member offset changed to `grub_host_off_t'. Type of member size
44705 changed to `grub_host_size_t'.
44706 (struct grub_module_info): Type of member offset changed to
44707 `grub_host_off_t'. Type of member size changed to
44708 `grub_host_size_t'.
44710 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44712 Make GRUB's kernel compliant to Multiboot Specification.
44714 * kern/i386/pc/startup.S (multiboot_header): New label.
44715 (multiboot_entry): Likewise.
44716 (multiboot_trampoline): Likewise.
44718 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44719 Increased to 0x4A0.
44721 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44722 put parentheses after a question mark.
44723 [!GRUB_UTIL] (my_mod): New variable.
44725 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44727 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44729 Adds support for the XFS filesystem. Btrees are not supported
44732 * fs/xfs.c: New file.
44734 * DISTLIST: Added `fs/xfs.c'.
44736 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44737 (grub_probefs_SOURCES): Likewise.
44738 (grub_emu_SOURCES): Likewise.
44739 (pkgdata_MODULES): Add `xfs.mod'.
44740 (xfs_mod_SOURCES): New variable.
44741 (xfs_mod_CFLAGS): Likewise.
44743 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44744 (pkgdata_MODULES): Add `xfs.mod'.
44745 (xfs_mod_SOURCES): New variable.
44746 (xfs_mod_CFLAGS): Likewise.
44748 * util/grub-emu.c (main): Call `grub_xfs_init' and
44751 * include/grub/fs.h (grub_xfs_init): New prototype.
44752 (grub_xfs_fini): Likewise.
44755 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44757 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44758 color modes, allow greater than 16 colors to be configured as
44761 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44763 * normal/completion.c (complete_arguments): Add the qualifier
44764 const into OPTIONS.
44766 From Omniflux <omniflux+lists@omniflux.com>:
44767 * include/grub/terminfo.h: New file.
44768 * include/grub/tparm.h: Likewise.
44769 * include/grub/i386/pc/serial.h: Likewise.
44770 * term/terminfo.c: Likewise.
44771 * term/tparm.c: Likewise.
44772 * term/i386/pc/serial.c: Likewise.
44773 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44775 (terminfo_mod_SOURCES): New variable.
44776 (terminfo_mod_CFLAGS): Likewise.
44777 (serial_mod_SOURCES): Likewise.
44778 (serial_mod_CFLAGS): Likewise.
44780 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44782 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44783 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44784 and kern/powerpc/ieee1275/cmain.c, respectively.
44786 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44787 * kern/powerpc/ieee1275/crt0.S: ... here.
44789 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44790 * kern/powerpc/ieee1275/cmain.c: ... here.
44792 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44793 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44794 instead of boot/powerpc/ieee1275/crt0.S and
44795 boot/powerpc/ieee1275/cmain.c, respectively.
44797 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44798 sectors. It was not used anyway.
44800 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44802 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44803 `unused parameter' warning.
44805 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44807 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44809 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44812 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44814 * include/grub/normal.h (enum grub_completion_type): Added
44815 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44817 * normal/cmdline.c (print_completion): Handle
44818 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44819 * normal/menu_entry.c (store_completion): Likewise.
44821 * normal/completion.c (complete_arguments): New function.
44822 (grub_normal_do_completion): Call `complete_arguments' when the
44823 current words start with a dash.
44825 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44827 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44828 `gzio.mod' instead of `io.mod').
44830 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44832 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44833 (DISTDIRS): Added io and video.
44834 Rewrite the search routine to make an output consistently.
44836 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44837 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44838 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44839 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44840 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44841 util/powerpc/ieee1275/misc.c.
44843 * include/grub/gzio.h: New file.
44844 * io/gzio.c: Likewise.
44846 * kern/file.c (grub_file_close): Call grub_device_close only if
44847 FILE->DEVICE is not NULL.
44849 * include/grub/mm.h [!NULL] (NULL): New macro.
44851 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44853 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44854 (pkgdata_MODULES): Added gzio.mod.
44855 (gzio_mod_SOURCES): New variable.
44856 (gzio_mod_CFLAGS): Likewise.
44858 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44859 (pkgdata_MODULES): Added gzio.mod.
44860 (gzio_mod_SOURCES): New variable.
44861 (gzio_mod_CFLAGS): Likewise.
44863 * commands/cat.c: Include grub/gzio.h.
44864 (grub_cmd_cat): Use grub_gzfile_open instead of
44867 * commands/cmp.c: Include grub/gzio.h.
44868 (grub_cmd_cmp): Use grub_gzfile_open instead of
44871 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44872 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44874 (grub_rescue_cmd_module): Likewise.
44876 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44878 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44879 kern/sparc64/ieee1275/init.c because it contains _start.
44880 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44882 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44884 * configure.ac: Add support for sparc64 host with ieee1275
44886 * configure: Generated from configure.ac.
44887 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44889 (grub_ofdisk_read): Likewise.
44890 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44891 pointers as (void *) to remove a warning.
44892 (grub_ofdisk_close): Likewise.
44893 (grub_ofdisk_read): Likewise.
44894 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44895 returns, so make it return void to remove a warning.
44896 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44897 Corresponding prototype change.
44898 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44899 values, and cast the pointers as (void *) to remove a warning.
44900 (grub_mm_dump): Likewise.
44901 * conf/sparc64-ieee1275.mk: New file.
44902 * conf/sparc64-ieee1275.rmk: Likewise.
44903 * include/grub/sparc64/setjmp.h: Likewise.
44904 * include/grub/sparc64/types.h: Likewise.
44905 * include/grub/sparc64/ieee1275/console.h: Likewise.
44906 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44907 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44908 * include/grub/sparc64/ieee1275/time.h: Likewise.
44909 * kern/sparc64/cache.c: Likewise.
44910 * kern/sparc64/dl.c: Likewise.
44911 * kern/sparc64/ieee1275/init.c: Likewise.
44912 * kern/sparc64/ieee1275/openfw.c: Likewise.
44914 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44916 * util/console.c (grub_ncurses_putchar): If C is greater than
44917 0x7f, set C to a question mark.
44918 (grub_ncurses_getcharwidth): New function.
44919 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44922 * normal/menu.c (print_entry): Made aware of Unicode. First,
44923 convert TITLE to UCS-4, and predict the cursor position by
44926 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44928 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44930 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44932 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44933 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44936 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44937 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44938 grub_strcpy and grub_strlen. Take it into account that a space
44939 character is inserted as a delimiter.
44941 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44943 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44944 invalid magic in the error.
44946 * commands/search.c: New file.
44948 * util/grub-emu.c (main): Call grub_search_init and
44951 * kern/rescue.c (grub_rescue_print_disks): Removed.
44952 (grub_rescue_print_devices): New function.
44953 (grub_rescue_cmd_ls): Use grub_device_iterate with
44954 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44955 grub_rescue_print_disks.
44957 * kern/partition.c (grub_partition_iterate): Return the result of
44958 PARTMAP->ITERATE instead of GRUB_ERRNO.
44960 * kern/device.c: Include grub/partition.h.
44961 (grub_device_iterate): New function.
44963 * include/grub/partition.h (grub_partition_iterate): Return int
44964 instead of grub_err_t.
44966 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44968 [GRUB_UTIL] (grub_search_fini): Likewise.
44970 * include/grub/device.h (grub_device_iterate): New prototype.
44972 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44974 (pkgdata_MODULES): Added search.mod.
44975 (search_mod_SOURCES): New variable.
44976 (search_mod_CFLAGS): Likewise.
44978 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44979 (pkgdata_MODULES): Added search.mod.
44980 (search_mod_SOURCES): New variable.
44981 (search_mod_CFLAGS): Likewise.
44983 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44984 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44985 All callers changed.
44987 * DISTLIST: Added commands/search.c.
44989 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44991 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44993 (grub_getcharwidth): New function.
44995 * kern/misc.c (grub_utf8_to_ucs4): New function.
44997 * include/grub/term.h (struct grub_term): Added a new member
44999 (grub_getcharwidth): New prototype.
45001 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
45003 * term/i386/pc/console.c (map_char): New function. Segregated from
45004 grub_console_putchar.
45005 (grub_console_putchar): Use map_char.
45006 (grub_console_getcharwidth): New function.
45007 (grub_console_term): Specified grub_console_getcharwidth as
45010 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
45011 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
45013 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
45015 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
45016 on grub_strtoul completely.
45017 (write_char): Declare local variables in the beginning of the
45019 (grub_vesafb_getcharwidth): New function.
45020 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
45023 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
45025 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
45026 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
45027 commands/i386/pc/vbetest.c.
45029 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
45030 call grub_vbe_get_controller_info again, because the returned
45031 information is volatile.
45032 (grub_vbe_set_video_mode): Mostly rewritten.
45033 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
45034 grub_vbe_status_t correctly.
45035 (grub_vbe_get_video_mode_info): Likewise.
45036 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
45037 several if statements.
45039 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
45040 * commands/i386/pc/vbeinfo.c: ... this.
45042 * commands/i386/pc/vbe_test.c: Renamed to ...
45043 * commands/i386/pc/vbetest.c: ... this.
45045 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
45047 (grub_cmd_vbeinfo): ... this. Save video modes before
45048 iterating. Skip a video mode, if it is not available, not enough
45049 information is given or it is monochrome. Show the memory
45050 model. Leave the interpretation of MODEVAR to grub_strtoul
45052 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45053 (GRUB_MOD_FINI): Likewise.
45055 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45056 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45057 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45058 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45059 grub_strtoul completely.
45060 (real2pm): Removed.
45061 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45062 (GRUB_MOD_FINI): Likewise.
45064 * normal/misc.c: Include grub/mm.h.
45066 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45067 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45068 (vbe_list_modes_mod_SOURCES): Removed.
45069 (vbe_list_modes_mod_CFLAGS): Likewise.
45070 (vbe_test_mod_SOURCES): Likewise.
45071 (vbe_test_mod_CFLAGS): Likewise.
45072 (vbeinfo_mod_SOURCES): New variable.
45073 (vbeinfo_mod_CFLAGS): Likewise.
45074 (vbetest_mod_SOURCES): Likewise.
45075 (vbetest_mod_CFLAGS): Likewise.
45077 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45079 * normal/misc.c: New file.
45081 * DISTLIST: Added normal/misc.c.
45083 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45084 DISK to HOOK. Call HOOK with DISK.
45085 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45086 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45087 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45089 * normal/menu_entry.c (struct screen): Added a new member
45090 "completion_shown".
45091 (completion_buffer): New global variable.
45092 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45093 (store_completion): New function.
45094 (complete): Likewise.
45095 (clear_completions): Likewise.
45096 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45097 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45098 a tab, call complete.
45100 * normal/completion.c (disk_dev): Removed.
45101 (print_simple_completion): Likewise.
45102 (print_partition_completion): Likewise.
45103 (print_func): New global variable.
45104 (add_completion): Do not take the arguments WHAT or PRINT any
45105 longer. Added a new argument TYPE. Instead of printing directly,
45106 call PRINT_FUNC if not NULL.
45107 All callers changed.
45108 (complete_device): Use a local variable DEV instead of
45109 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45110 (grub_normal_do_completion): Take a new argument HOOK. Do not
45111 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45112 empty string, return NULL instead.
45113 All callers changed.
45115 * normal/cmdline.c (print_completion): New function.
45117 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45119 All callers changed.
45121 * kern/disk.c (grub_print_partinfo): Removed.
45123 * include/grub/partition.h (struct grub_partition_map): Add a new
45124 argument DISK into HOOK of ITERATE.
45125 (grub_partition_iterate): Add a new argument DISK to HOOK.
45127 * include/grub/normal.h (enum grub_completion_type): New enum.
45128 (grub_completion_type_t): New type.
45129 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45130 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45131 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45132 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45133 (grub_normal_do_completion): Added a new argument HOOK.
45134 (grub_normal_print_device_info): New prototype.
45136 * include/grub/disk.h (grub_print_partinfo): Removed.
45138 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45139 (normal_mod_SOURCES): Likewise.
45140 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45141 (normal_mod_SOURCES): Likewise.
45143 * commands/ls.c (grub_ls_list_disks): Use
45144 grub_normal_print_device_info instead of grub_print_partinfo. Free
45146 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45147 duplicating the code.
45149 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45151 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
45152 follow GCS more precisely.
45153 * commands/i386/pc/vbe_test.c: Likewise.
45154 * include/grub/i386/pc/vbe.h: Likewise.
45155 * term/i386/pc/vesafb.c: Likewise.
45156 * video/i386/pc/vbe.c: Likewise.
45158 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45160 * DISTLIST: Added term/i386/pc/vesafb.c
45161 DISTLIST: Added video/i386/pc/vbe.c
45162 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45163 DISTLIST: Added commands/i386/pc/vbe_test.c.
45164 * commands/i386/pc/vbe_list_modes.c: New file.
45165 * commands/i386/pc/vbe_test.c: Likewise.
45166 * term/i386/pc/vesafb.c: Likewise.
45167 * video/i386/pc/vbe.c: Likewise.
45168 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45169 (grub_vbe_probe) Added prototype.
45170 (grub_vbe_set_video_mode) Likewise.
45171 (grub_vbe_get_video_mode) Likewise.
45172 (grub_vbe_get_video_mode_info) Likewise.
45173 (grub_vbe_set_pixel_rgb) Likewise.
45174 (grub_vbe_set_pixel_index) Likewise.
45175 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45176 (pkgdata_MODULES): Added vesafb.mod.
45177 (pkgdata_MODULES): Added vbe_list_modes.mod.
45178 (pkgdata_MODULES): Added vbe_test.mod.
45179 (vbe_mod_SOURCES): Added.
45180 (vbe_mod_CFLAGS): Likewise.
45181 (vesafb_mod_SOURCES): Likewise.
45182 (vesafb_mod_CFLAGS): Likewise.
45183 (vbe_list_modes_mod_SOURCES): Likewise.
45184 (vbe_list_modes_mod_CFLAGS): Likewise.
45185 (vbe_test_mod_SOURCES): Likewise.
45186 (vbe_test_mod_CFLAGS): Likewise.
45188 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45190 * normal/command.c (grub_command_execute): If INTERACTIVE is
45191 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45192 CMDLINE. Disable the pager if INTERACTIVE is true.
45193 All callers are changed.
45195 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45196 before reading a config file.
45197 * normal/main.c (read_config_file): Even if a command is not
45198 found, register it if it is within an entry.
45200 * util/grub-emu.c: Include sys/types.h and unistd.h.
45201 (options): Added --hold.
45202 (struct arguments): Added a new member "hold".
45203 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45205 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45206 cleared by a debugger, if it is not zero.
45208 * include/grub/normal.h (grub_command_execute): Add an argument
45211 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45213 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45215 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45217 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45218 program with another one, because the old one didn't detect a bug
45219 in gcc-3.4. Always use regparm 2, because the new test is still
45220 not enough for gcc-4.0. Someone must investigate a simple test
45221 case which detects a bug in gcc-4.0.
45223 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45225 * DISTLIST: Added normal/completion.c.
45227 * normal/completion.c: New file.
45229 * term/i386/pc/console.c (grub_console_getwh): New function.
45230 (grub_console_term): Assign grub_console_getwh to getwh.
45232 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45233 function is defined in normal/completion.c as
45234 grub_normal_do_completion.
45235 (grub_cmdline_get): Use grub_normal_do_completion instead of
45238 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45239 returns non-zero, otherwise return 0.
45240 (grub_partition_iterate): First, probe the partition map. Then,
45241 call ITERATE only for this partition map.
45243 * kern/misc.c (grub_strncmp): Rewritten.
45245 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45246 returns non-zero. Otherwise return 0.
45248 * include/grub/partition.h (grub_partition_map_iterate): Return
45249 int instead of void.
45251 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45253 * include/grub/misc.h (grub_strncmp): Change the type of N to
45256 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45259 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
45260 unsigned explicitly before comparing it with I.
45262 * kern/main.c (grub_env_write_root): Add the attribute unused into
45265 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45266 normal/completion.c.
45267 (normal_mod_SOURCES): Likewise.
45268 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45269 (normal_mod_SOURCES): Likewise.
45271 * normal/command.c (grub_iterate_commands): If ITERATE returns
45272 non-zero, return one immediately.
45274 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45276 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45277 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45279 (grub_vbe_get_controller_info): New function.
45280 (grub_vbe_get_mode_info): Likewise.
45281 (grub_vbe_set_mode): Likewise.
45282 (grub_vbe_get_mode): Likewise.
45283 (grub_vbe_set_memory_window): Likewise.
45284 (grub_vbe_get_memory_window): Likewise.
45285 (grub_vbe_set_scanline_length): Likewise.
45286 (grub_vbe_get_scanline_length): Likewise.
45287 (grub_vbe_set_display_start): Likewise.
45288 (grub_vbe_get_display_start): Likewise.
45289 (grub_vbe_set_palette_data): Likewise.
45290 * include/grub/i386/pc/vbe.h: New file.
45292 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45294 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45295 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45296 * DISTLIST: Likewise.
45297 * kern/ieee1275/of.c: Moved to ...
45298 * kern/ieee1275/ieee1275.c: ... here.
45300 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45302 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45303 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45304 Pass 0 as `end' parameter to grub_strtoul().
45306 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45308 * include/grub/powerpc/ieee1275/console.h: Do not include
45309 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45311 (grub_console_cur_color): Remove i386-specific prototype.
45312 (grub_console_real_putchar): Likewise.
45313 (grub_console_checkkey): Likewise.
45314 (grub_console_getkey): Likewise.
45315 (grub_console_getxy): Likewise.
45316 (grub_console_gotoxy): Likewise.
45317 (grub_console_cls): Likewise.
45318 (grub_console_setcursor): Likewise.
45319 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45320 Include <grub/machine/console.h>.
45321 * term/ieee1275/ofconsole.c: Likewise.
45323 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45325 * Makefile.in (LIBLZO): New variable.
45327 * configure.ac: Check for LZO version 2.
45329 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45330 lzo/lzo1x.h instead of lzo1x.h.
45332 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45335 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45336 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45338 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45339 copying the data from PARTITION to P.
45341 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45343 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45344 negative, unload the module.
45346 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45347 map is "pc_partition_map" but not "pc".
45348 (usage): Fix the description. The options are --boot-image and
45349 --core-image but not --boot-file or --core-file.
45350 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45351 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45354 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45355 --core-file. Specify INSTALL_DEVICE as an argument.
45357 * util/console.c: Include config.h.
45358 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45359 [HAVE_NCURSES_H]: Include ncurses.h.
45360 [HAVE_CURSES_H]: Include curses.h.
45361 [!A_NORMAL] (A_NORMAL): Defined as zero.
45362 [!A_STANDOUT] (A_STANDOUT): Likewise.
45364 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45366 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45368 * configure.ac: Check for curses libraries and headers.
45370 * Makefile.in (LIBCURSES): New variable.
45372 * genmk.rb (Script::rule): Set the executable bits.
45374 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45375 name of the PC partition map is "pc_partition_map" but not "pc".
45377 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45379 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45380 (modules): Likewise.
45381 (usage): Added descriptions for --modules and --grub-probefs.
45382 Handle --modules and --grub-probefs. Save the arguments in MODULES
45383 and GRUB_PROBEFS, respectively.
45384 Auto-detect a filesystem module against GRUBDIR. If the result is
45385 empty and modules are not specified explicitly, abort the
45386 installation. Add the result to MODULES.
45388 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45389 disk/powerpc/ieee1275/ofdisk.c,
45390 include/grub/powerpc/ieee1275/init.h and
45391 term/powerpc/ieee1275/ofconsole.c.
45392 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45393 term/ieee1275/ofconsole.c.
45395 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45397 * COPYING: Upgraded to the latest version. Only the address of the
45398 FSF office has changed.
45400 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45402 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45403 kern/ieee1275.c with kern/ieee1275/of.c.
45405 * kern/ieee1275.c: Moved to ...
45406 * kern/ieee1275/of.c: ... here.
45408 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45410 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45413 * config.guess: Updated to the latest version from gnulib.
45414 * config.sub: Likewise.
45415 * install.sh: Likewise.
45416 * mkinstalldirs: Likewise.
45418 * include/grub/console.h: Removed. This file is arch-specific. Do
45419 not put this in include/grub.
45421 * include/grub/i386/pc/console.h: Resurrected.
45423 * util/console.c: Include grub/machine/console.h instead of
45425 * util/grub-emu.c: Likewise.
45427 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45429 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45432 From Vincent Pelletier <subdino2004@yahoo.fr>
45433 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45434 Redefined to use grub_getwh.
45435 (grub_term): New member named getwh.
45436 (grub_getwh): New prototype.
45437 * kern/term.c (grub_getwh): New function.
45438 * term/i386/pc/console.c (grub_console_getwh): New function.
45439 (grub_console_term): New member `getwh'.
45440 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45441 (grub_vga_term): New member `getwh'.
45442 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45444 (grub_ofconsole_getw): New function.
45445 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45446 (grub_ofconsole_term): New field named getwh and new initial
45449 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45451 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45452 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45453 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45454 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45455 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45456 of <grub/machine/ieee1275.h>.
45457 * commands/ieee1275/reboot.c: Likewise.
45458 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45459 * kern/ieee1275.c: ... to here. All users updated. Change all
45460 parameter structs to use new type `grub_ieee1275_cell_t'.
45461 * term/powerpc/ieee1275/ofconsole.c: Move ...
45462 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45463 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45464 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45465 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45467 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45468 Remove unused prototypes. All users updated.
45469 * include/grub/powerpc/ieee1275/console.h: Removed.
45470 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45471 `grub_ieee1275_cell_t'.
45472 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45473 Cast comparisons with -1 to the correct type.
45474 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45475 type to match `grub_ieee1275_entry_fn'.
45477 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45479 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45481 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45482 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45484 (grub_probefs_SOURCES): New variable.
45486 * util/i386/pc/grub-probefs.c: New file.
45488 * util/i386/pc/grub-setup.c (main): Call
45489 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45490 grub_hfs_init and grub_jfs_init to initialize the system. Call
45491 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45492 grub_pc_partition_map_fini to finish the system.
45494 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45496 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45498 (grub_multiboot_load_elf32): Likewise.
45499 (grub_multiboot_is_elf64): Likewise.
45500 (grub_multiboot_load_elf64): Likewise.
45501 (grub_multiboot_load_elf): Likewise.
45502 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45503 an ELF32 or ELF64 file.
45504 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45506 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45507 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45508 NULL before calling FS->LABEL.
45509 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45510 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45511 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45512 before calling FS->LABEL.
45514 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45516 * util/i386/pc/grub-install.in (datadir): New variable.
45518 (pkgdatadir): New variable.
45519 (pkglibdir): Removed.
45521 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45523 * DISTLIST: Added util/i386/pc/grub-install.in.
45525 * util/i386/pc/grub-install.in: New file.
45527 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45528 (grub_install_SOURCES): Likewise.
45530 * genmk.rb: Added support for scripts.
45531 (Script): New class.
45532 (scripts): New variable.
45534 * Makefile.in (install-local): Install sbin_SCRIPTS by
45536 (uninstall): Remove sbin_SCRIPTS.
45538 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45539 device, try to get a GRUB device by
45540 grub_util_biosdisk_get_grub_dev.
45543 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45544 description for --device-map.
45546 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45548 Change the semantics of variable hooks. They now return strings
45549 instead of error values.
45551 * util/i386/pc/grub-setup.c: Include grub/env.h.
45552 (setup): Use grub_device_set_root instead of grub_env_set.
45554 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45555 grub_env_get instead of grub_device_set_root and
45556 grub_device_get_root, respectively.
45558 * kern/main.c (grub_env_write_root): New function.
45559 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45560 grub_env_set instead of grub_device_set_root.
45562 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45564 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45565 rather than calling ENV->WRITE_HOOK afterwards.
45566 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45567 passing a pointer of a pointer.
45568 (grub_register_variable_hook): Change the types of "read_hook" and
45569 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45571 Allocate the default empty string on the heap, because this string
45572 may be freed later.
45574 * kern/device.c: Include grub/env.h.
45575 (grub_device_set_root): Removed.
45576 (grub_device_get_root): Likewise.
45577 (grub_device_open): Use grub_env_get instead of
45578 grub_device_get_root.
45580 * include/grub/env.h (grub_env_read_hook_t): New type.
45581 (grub_env_write_hook_t): Likewise.
45582 (grub_env_var): Change the types of "read_hook" and "write_hook"
45583 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45584 (grub_register_variable_hook): Likewise.
45586 * include/grub/device.h (grub_device_set_root): Removed.
45587 (grub_device_set_root): Likewise.
45589 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45590 make sure that DIRNAME terminates with '/', so that
45591 grub_fat_find_dir will fail if PATH is not a directory.
45593 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45595 Use the qualifier auto for print_files and print_files_long.
45596 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45598 Put a newline only if there is no error.
45599 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45602 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45604 * kern/partition.c (grub_partition_probe): Initialize PART to
45605 NULL. Otherwise, when no partition map is registered, this returns
45608 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45610 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45611 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45614 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45616 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45617 information on each device, if it does not have partitions. Print
45618 "Device" instead of "Disk", because this function is not specific
45621 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45622 static to ensure that it is put on the memory rather than a
45625 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45627 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45628 (grub_cat_init): Likewise.
45629 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45630 (options): Likewise.
45631 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45632 (grub_configfile_init): Likewise.
45633 * font/manager.c (GRUB_MOD_INIT): Likewise.
45634 * commands/help.c (GRUB_MOD_INIT): Likewise.
45635 (grub_help_init): Likewise.
45636 * normal/command.c (grub_command_init): Likewise.
45637 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45638 * disk/loopback.c (grub_loop_init): Likewise.
45639 (GRUB_MOD_INIT): Likewise.
45640 * commands/ls.c (grub_ls_init): Likewise.
45641 (GRUB_MOD_INIT): Likewise.
45642 (options): Likewise.
45643 * commands/boot.c (grub_boot_init): Likewise.
45644 (GRUB_MOD_INIT): Likewise.
45645 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45646 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45647 (GRUB_MOD_INIT): Likewise.
45648 * commands/cmp.c (grub_cmp_init): Likewise.
45649 (GRUB_MOD_INIT): Likewise.
45651 * normal/arg.c: Use <> instead of "" to include header files.
45652 (SHORT_ARG_HELP): New macro.
45653 (SHORT_ARG_USAGE): Likewise.
45654 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45655 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45657 (find_short): Check if C is 'h' or 'u' explicitly.
45658 (grub_arg_show_help): Use space characters instead of tabs. Treat
45659 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45660 are shown with --help and --usage only if they are not used for
45661 the command itself.
45662 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45665 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45666 const into "longarg". Change the type of "shortarg" to int.
45668 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45670 * boot/i386/pc/boot.S (boot_drive_check): New label.
45672 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45675 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45676 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45678 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45680 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45681 When turning off Gate A20, skip the check and return immediately,
45682 because this is not fatal usually.
45684 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45686 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45687 be 0x7C00 instead of 0x8000.
45689 * boot/i386/pc/pxeboot.S: Rewritten.
45691 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45693 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45696 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45698 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45699 robustness. This routine now supports a BIOS call and System
45700 Control Port A to modify the gate A20.
45702 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45703 Increased to 0x440.
45705 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45707 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45708 device path and resulting ihandle.
45709 (grub_ofdisk_close): dprintf the ihandle being closed.
45710 (grub_ofdisk_read): dprintf function parameters.
45711 * kern/mm.c (grub_mm_init_region): Likewise.
45712 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45713 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45714 size, and boot arguments.
45715 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45716 before loading into memory.
45717 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45718 before loading into memory.
45720 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45722 * kern/mm.c: Added much documentation.
45723 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45724 8, set to 5 instead of 8.
45726 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45728 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45730 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45731 (grub_mkdevicemap_SOURCES): New variable.
45733 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45734 lib/device.c of GRUB Legacy.
45736 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45738 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45739 instead of PATH is NULL.
45741 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45743 * commands/cmp.c (BUFFER_SIZE): New macro.
45744 (grub_cmd_cmp): Close the right file at the right time. Compare
45745 only data just read. Don't report files of different size as
45746 identical. Dynamically allocate buffers. Move variable
45747 declarations at the beginning of function.
45749 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45751 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45754 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45756 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45757 when backspace is pressed at beginning of line.
45759 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45761 * DISTLIST: Added genfslist.sh.
45763 * normal/main.c (fs_module_list): New variable.
45764 (autoload_fs_module): New function.
45765 (read_fs_list): Likewise.
45766 (grub_normal_execute): Call read_fs_list.
45768 * kern/fs.c (grub_fs_autoload_hook): New variable.
45769 (grub_fs_probe): Added support for auto-loading.
45771 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45772 (grub_fs_module_list_t): New type.
45774 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45775 (grub_fs_autoload_hook): New prototype.
45777 * genfslist.sh: New file.
45779 * genmk.rb: Added a rule to generate a filesystem list.
45781 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45783 * configure.ac: Fix the test for cross-compiling.
45785 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45786 define GRUB_UTIL anymore.
45788 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45789 so this function works on other systems than just big endian.
45790 (load_modules): Likewise.
45791 (add_segments): Likewise.
45793 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45795 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45796 contains `l' modifier, get a long from va_arg().
45798 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45800 * kern/mm.c (grub_free): If the next free block which is being
45801 merged is the first free block, set the first block to the block
45803 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45805 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45807 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45808 `grub_ieee1275_chosen'.
45810 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45812 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45813 (grub_ieee1275_chosen): New variable.
45814 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45816 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45817 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45818 Rename first argument to `phandle' for consistency.
45819 (grub_ieee1275_get_property_length): Likewise.
45820 (grub_ieee1275_next_property): Likewise. Change type of first argument
45821 to grub_ieee1275_phandle_t.
45822 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45823 Move export next to declaration.
45824 (grub_ieee1275_chosen): New variable.
45825 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45826 Correct cosmetic typo.
45827 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45828 `grub_ieee1275_chosen'.
45829 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45830 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45831 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45832 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45833 `grub_ieee1275_chosen'.
45835 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45837 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45839 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45840 /chosen/bootargs as "variable=value" pairs.
45842 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45844 * include/grub/misc.h (grub_dprintf): New macro.
45845 (grub_real_dprintf): New prototype.
45846 (grub_strword): Likewise.
45847 (grub_iswordseparator): Likewise.
45848 * kern/misc.c (grub_real_dprintf): New function.
45849 (grub_strword): Likewise.
45850 (grub_iswordseparator): Likewise.
45852 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45854 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45855 (roundup): Remove macro.
45856 (grub_ieee1275_flags): Make static.
45857 (grub_ieee1275_realmode): Remove.
45858 (grub_ieee1275_test_flag): New function.
45859 (grub_ieee1275_set_flag): Likewise.
45860 (find_options): Rename to `grub_ieee1275_find_options'; update
45861 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45862 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45863 (cmain): New prototype.
45864 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45865 `grub_ieee1275_flags' directly.
45866 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45867 machine/biosdisk.h.
45868 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45869 Don't include grub/machine/init.h.
45870 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45871 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45873 (grub_ieee1275_realmode): Likewise.
45874 (grub_ieee1275_flag): New enum.
45875 (grub_ieee1275_test_flag): New prototype.
45876 (grub_ieee1275_set_flag): New prototype.
45877 * include/grub/powerpc/ieee1275/init.h: Remove file.
45878 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45879 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45880 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45881 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45883 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45884 `grub_ieee1275_test_flag'.
45885 (grub_ieee1275_encode_devname): Likewise.
45887 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45889 * include/grub/powerpc/ieee1275/ieee1275.h
45890 (grub_ieee1275_encode_devname): New prototype.
45891 (grub_ieee1275_get_filename): Likewise.
45892 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45894 (grub_set_prefix): Likewise.
45895 (grub_machine_init): Call grub_set_prefix.
45896 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45897 (grub_parse_type): New enum.
45898 (grub_ieee1275_get_devargs): New function.
45899 (grub_ieee1275_get_devname): Likewise.
45900 (grub_ieee1275_parse_args): Likewise.
45901 (grub_ieee1275_get_filename): Likewise.
45902 (grub_ieee1275_encode_devname): Likewise.
45904 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45906 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45907 `grub_loader_unset'.
45909 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45911 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45912 instead of grub_ieee1275_interpret.
45913 (grub_halt_init): New function.
45914 (grub_halt_fini): Likewise.
45915 (GRUB_MOD_INIT): Correct message grammar.
45916 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45917 instead of grub_ieee1275_interpret.
45918 (grub_reboot_init): New function.
45919 (grub_reboot_fini): Likewise.
45920 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45921 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45922 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45923 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45924 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45926 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45928 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45930 (grub_halt): Likewise.
45931 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45932 (cmain): Remove __attribute__((unused)).
45933 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45934 (grub_heap_len): Likewise.
45935 (grub_machine_fini): New function.
45936 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45937 (grub_halt): Likewise.
45938 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45940 * util/powerpc/ieee1275/misc.c: New file.
45942 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45944 * DISTLIST: New file.
45945 * gendistlist.sh: Likewise.
45947 * Makefile.in (COMMON_DISTFILES): Removed.
45948 (BOOT_DISTFILES): Likewise.
45949 (CONF_DISTFILES): Likewise.
45950 (DISK_DISTFILES): Likewise.
45951 (FS_DISTFILES): Likewise.
45952 (INCLUDE_DISTFILES): Likewise.
45953 (KERN_DISTFILES): Likewise.
45954 (LOADER_DISTFILES): Likewise.
45955 (TERM_DISTFILES): Likewise.
45956 (UTIL_DISTFILES): Likewise.
45957 (DISTFILES): Likewise.
45958 (uninstall): Uninstall files in $(pkgdata_DATA).
45959 (DISTLIST): New target.
45960 (distdir): Use the contents of the file DISTLIST to get a list of
45963 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45965 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45966 descriptor. This is ported from GRUB Legacy.
45968 * gencmdlist.sh: Added an extra semicolon to make it work with
45969 old sed versions. Reported by Robert Bihlmeyer
45970 <robbe@orcus.priv.at>.
45972 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45974 Automatic loading of commands is supported.
45976 * normal/main.c (read_command_list): New function.
45977 (grub_normal_execute): Call read_command_list.
45979 * normal/command.c (grub_register_command): Return zero or CMD.
45980 Allocate CMD->NAME from the heap.
45981 Initialize CMD->MODULE_NAME to zero.
45982 Find the same name as well. If the same command is found and it is
45983 a dummy command, overwrite members. If it is not a dummy command,
45985 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45986 (grub_command_find): If a dummy command is found, load a module
45987 and retry to find a command only once.
45989 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45990 make sure that each command is loaded.
45992 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45994 (struct grub_command): Remove const from the member `name'.
45995 Add a new member `module_name'.
45996 (grub_register_command): Return grub_command_t.
45998 * commands/help.c (grub_cmd_help): Call grub_command_find to make
45999 sure that each command is loaded.
46001 * genmk.rb (PModule::rule): Specify a module name without the
46002 suffix ".mod" to gencmdlist.sh.
46004 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46006 * gencmdlist.sh: New file.
46008 * genmk.rb (PModule::rule): Generate a rule for a command list.
46010 Generate command.lst from $(COMMANDFILES).
46012 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
46013 (DATA): Added $(pkgdata_DATA).
46014 (install-local): Install files in $(pkgdata_DATA).
46016 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46018 * term/i386/pc/vga.c (debug_command): Removed.
46019 (GRUB_MOD_INIT): Do not register the command "debug".
46021 From Hollis Blanchard:
46022 * commands/configfile.c: New file.
46023 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46024 commands/configfile.c.
46025 (pkgdata_MODULES): Added configfile.mod.
46026 (configfile_mod_SOURCES): New variable.
46027 (configfile_mod_CFLAGS): Likewise.
46028 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46029 commands/configfile.c.
46030 (pkgdata_MODULES): Added configfile.mod.
46031 (configfile_mod_SOURCES): New variable.
46032 (configfile_mod_CFLAGS): Likewise.
46033 * util/grub-emu.c (main): Call grub_configfile_init and
46034 grub_configfile_fini.
46035 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
46037 [GRUB_UTIL] (grub_configfile_fini): Likewise.
46039 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46041 * normal/arg.c (grub_arg_show_help): Do not show the bug report
46044 * commands/help.c (grub_cmd_help): Do not print newlines after
46045 the last command in print_command_help.
46047 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46049 * commands/default.h: New file.
46050 * commands/timeout.h: Likewise.
46051 * normal/context.c: Likewise.
46053 * util/misc.c: Do not include sys/times.h.
46054 Include sys/time.h and grub/machine/time.h.
46055 (grub_get_rtc): Rewritten with gettimeofday.
46057 * util/grub-emu.c (main): Call grub_default_init and
46058 grub_timeout_init before grub_normal_init, and call
46059 grub_timeout_fini and grub_default_fini after grub_main.
46061 * util/console.c (grub_ncurses_checkkey): Return the read
46064 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46067 * normal/main.c (read_config_file): Push MENU. If this fails,
46068 print an error and wait for a user input.
46069 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46070 If a menu is empty or an error occurs, pop MENU.
46071 (grub_normal_execute): Pop and free MENU after grub_menu_run
46074 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46076 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46078 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46080 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46082 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46085 * include/grub/normal.h (struct grub_menu_list): New struct.
46086 (grub_menu_list_t): New type.
46087 (struct grub_context): New struct.
46088 (grub_context_t): New type.
46089 (grub_register_command): Got rid of EXPORT_FUNC.
46090 (grub_unregister_command): Likewise.
46091 (grub_context_get): New prototype.
46092 (grub_context_get_current_menu): Likewise.
46093 (grub_context_push_menu): Likewise.
46094 (grub_context_pop_menu): Likewise.
46095 [GRUB_UTIL] (grub_default_init): Likewise.
46096 [GRUB_UTIL] (grub_default_fini): Likewise.
46097 [GRUB_UTIL] (grub_timeout_init): Likewise.
46098 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46100 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46101 commands/timeout.c and normal/context.c.
46102 (pkgdata_MODULES): Added default.mod and timeout.mod.
46103 (normal_mod_SOURCES): Added normal/context.c.
46104 (default_mod_SOURCES): New variable.
46105 (default_mod_CFLAGS): Likewise.
46106 (timeout_mod_SOURCES): Likewise.
46107 (timeout_mod_CFLAGS): Likewise.
46108 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46110 (pkgdata_MODULES): Added default.mod and timeout.mod.
46111 (normal_mod_SOURCES): Added normal/context.c.
46112 (default_mod_SOURCES): New variable.
46113 (default_mod_CFLAGS): Likewise.
46114 (timeout_mod_SOURCES): Likewise.
46115 (timeout_mod_CFLAGS): Likewise.
46117 * Makefile.in (all-local): Added $(MKFILES).
46119 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46121 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46122 (grub_emu_SOURCES): Likewise.
46123 (pkgdata_MODULES): Add `sun.mod'.
46124 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46125 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46127 (pkgdata_MODULES): Add `sun.mod'.
46128 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46129 * include/grub/partition.h (grub_sun_partition_map_init): New
46131 (grub_sun_partition_map_fini): Likewise.
46132 * partmap/sun.c: New file.
46133 * util/grub-emu.c (main): Initialize and de-initialize the sun
46134 partitionmap support.
46136 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46138 This implements an Emacs-like menu entry editor.
46140 * normal/menu_entry.c: New file.
46142 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46143 characters to ASCII.
46144 (saved_char): New variable.
46145 (grub_ncurses_checkkey): Rewritten completely.
46146 (grub_ncurses_getkey): Likewise.
46147 (grub_ncurses_init): Call raw instead of cbreak.
46149 * normal/menu.c (print_entry): Do not put a space.
46150 (init_page): Renamed to ...
46151 (grub_menu_init_page): ... this. All callers changed.
46152 (edit_menu_entry): Removed.
46153 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46155 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46157 * kern/misc.c (grub_vprintf): Call grub_refresh.
46159 * normal/menu.c (DISP_LEFT): Renamed to ...
46160 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46161 * normal/menu.c (DISP_UP): Renamed to ...
46162 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46163 * normal/menu.c (DISP_RIGHT): Renamed to ...
46164 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46165 * normal/menu.c (DISP_DOWN): Renamed to ...
46166 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46167 * normal/menu.c (DISP_HLINE): Renamed to ...
46168 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46169 * normal/menu.c (DISP_VLINE): Renamed to ...
46170 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46171 * normal/menu.c (DISP_UL): Renamed to ...
46172 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46173 * normal/menu.c (DISP_UR): Renamed to ...
46174 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46175 * normal/menu.c (DISP_LL): Renamed to ...
46176 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46177 * normal/menu.c (DISP_LR): Renamed to ...
46178 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46179 * normal/menu.c (TERM_WIDTH): Renamed to ...
46180 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46181 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46182 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46183 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46184 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46185 * normal/menu.c (TERM_MARGIN): Renamed to ...
46186 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46187 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46188 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46189 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46190 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46191 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46192 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46193 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46194 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46195 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46196 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46197 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46198 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46199 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46200 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46201 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46202 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46203 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46204 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46205 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46206 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46207 All callers changed.
46209 * include/grub/normal.h: New prototype.
46211 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46212 normal/menu_entry.c.
46213 (normal_mod_SOURCES): Likewise.
46214 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46215 (normal_mod_SOURCES): Likewise.
46217 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46219 * include/grub/normal.h (grub_halt_init): New prototype.
46220 (grub_halt_fini): Likewise.
46221 (grub_reboot_init): Likewise.
46222 (grub_reboot_fini): Likewise.
46224 * util/grub-emu.c: Include signal.h.
46225 (main_env): New global variable.
46226 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46228 (grub_machine_fini): New function.
46229 (main): Call grub_halt_init and grub_reboot_init before
46230 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46231 Call setjmp with MAIN_ENV to go back afterwards.
46232 Call grub_machine_fini right before return.
46234 * include/grub/util/misc.h: Include setjmp.h.
46235 (main_env): New prototype.
46237 * include/grub/kernel.h (grub_machine_fini): New prototype.
46238 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46239 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46241 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46242 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46243 * term/i386/pc/console.c (grub_console_fini): Likewise.
46245 * util/i386/pc/misc.c: New file.
46247 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46248 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46249 commands/i386/pc/reboot.c.
46251 2005-02-14 Guillem Jover <guillem@hadrons.org>
46253 * include/grub/dl.h (grub_dl_check_header): New prototype.
46254 (grub_arch_dl_check_header): Change return type to grub_err_t,
46255 remove size parameter and export function. Update all callers.
46256 * kern/dl.c (grub_dl_check_header): New function.
46257 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46258 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46259 are inside the core.
46260 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46261 independent ELF header checks.
46262 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46263 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46264 `grub_dl_check_header' instead of explicit checks. Check for the
46266 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46267 `grub_dl_check_header' instead of explicit checks. Remove arch
46268 specific ELF header checks.
46270 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46273 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46275 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46276 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46278 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46280 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
46281 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
46282 (part_map_iterate): Clear `grub_errno' and return 0 if
46283 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
46284 * partmap/amiga.c (amiga_partition_map_iterate): Return
46285 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46286 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46288 2005-02-01 Guillem Jover <guillem@hadrons.org>
46290 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46293 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46295 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46297 (grub_rescue_cmd_linux): New prototype.
46298 (grub_rescue_cmd_initrd): Likewise.
46299 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46301 (grub_linux_release_mem): Release the memory for the initrd.
46302 (grub_load_linux): Renamed from this...
46303 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46304 Changed `entry' not to be static. Loop over memory regions to
46305 find another one when the default fails.
46306 (grub_rescue_cmd_initrd): New function.
46307 (grub_linux_init): Remove function.
46308 (grub_linux_fini): Likewise.
46309 (GRUB_MOD_INIT): Register `initrd'.
46310 (GRUB_MOD_FINI): Unregister `initrd'.
46311 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46313 (grub_linux_normal_fini): Likewise.
46314 (GRUB_MOD_INIT): Register `initrd'.
46315 (GRUB_MOD_FINI): Unregister `initrd'.
46317 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46319 * commands/help.c: New file.
46320 * normal/arg.c (show_help): Renamed to...
46321 (grub_arg_show_help): ... this.
46322 * commands/i386/pc/halt.c: New file.
46323 * commands/i386/pc/reboot.c: Likewise.
46324 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46325 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46326 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46327 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46329 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46331 (pkgdata_MODULES): Add `help.mod'.
46332 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46333 * grub/i386/pc/init.h (grub_reboot): New prototype.
46334 (grub_halt): Likewise.
46335 * include/grub/normal.h (grub_arg_show_help): New prototype.
46336 (grub_help_init): Likewise.
46337 (grub_help_fini): Likewise.
46338 * util/grub-emu.c (main): Initialize and deinitialize the help
46341 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46343 * normal/command.c (grub_command_init): Fixed the description of
46344 the `set' and `unset' commands.
46346 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46348 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46350 * commands/ieee1275/halt.c: New file.
46351 * commands/ieee1275/reboot.c: Likewise.
46352 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46353 `__attribute__ ((unused))'. Some GCS related fixed.
46354 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46355 (grub_suspend_fini): Likewise.
46356 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46358 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46359 (halt_mod_CFLAGS): New variables.
46360 * include/grub/powerpc/ieee1275/ieee1275.h
46361 (grub_ieee1275_interpret): New prototype.
46363 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46365 * include/grub/misc.h (memmove): New prototype.
46366 (memcpy): Likewise.
46368 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46370 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46371 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46373 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46375 * kern/misc.c (grub_strndup): Function rewritten.
46377 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46379 * normal/menu.c (TERM_WIDTH): Macro redefined.
46380 (TERM_TOP_BORDER_Y): Likewise.
46381 (draw_border): Replaced while-loop by a for-loop. Make the number
46382 of lines consistent with the number of lines displayed in
46383 print_entries. Added a margin below the rectangle.
46384 (print_entry): Make the entry fit in the rectangle.
46385 (print_entries): Display the scroll arrows next to the right
46388 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46390 * fs/minix.c (grub_minix_find_file): Reserve more space for
46391 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46392 `grub_strncpy' to copy `path' into it.
46394 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46396 Add the loopback device, a device via which files can be accessed
46399 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46400 (pkgdata_MODULES): Add loopback.mod.
46401 (loopback_mod_SOURCES): New variable.
46402 (loopback_mod_CFLAGS): Likewise.
46403 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46405 (pkgdata_MODULES): Add loopback.mod.
46406 (loopback_mod_SOURCES): New variable.
46407 (loopback_mod_CFLAGS): Likewise.
46408 * disk/loopback.c: new file.
46409 * include/grub/normal.h (grub_loop_init): New prototype.
46410 (grub_loop_fini): New prototype.
46411 * util/grub-emu.c (main): Initialize and de-initialize loopback
46413 * include/grub/disk.h (grub_disk_dev_id): Add
46414 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46416 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46418 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46420 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46421 (suspend_mod_SOURCES): New variable.
46422 (suspend_mod_CFLAGS): Likewise.
46423 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46425 * commands/ieee1275/suspend.c: New file.
46427 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46429 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46430 ((unused))' to `__attribute__ ((used))'.
46431 (GRUB_MOD_FINI): Likewise.
46432 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46433 * genmk.rb (PModule): Assign space to common symbols when linking
46436 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46438 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46439 `unsigned' arguments to `grub_size_t'.
46440 (grub_malloc): Likewise.
46441 (grub_realloc): Likewise.
46442 (grub_memalign): Likewise.
46443 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46444 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46445 * util/misc.c (grub_malloc): Likewise.
46446 (grub_realloc): Likewise.
46447 * kern/mm.c (get_header_from_pointer): Change the casts to
46448 `unsigned' into a cast to `grub_size_t'.
46450 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46451 point to `currnode' when `currnode' is changed.
46453 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46454 Schottelius <nico-linux@schottelius.org>.
46456 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46458 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46459 (note_path): Remove variable.
46460 (GRUB_IEEE1275_NOTE_NAME): New macro.
46461 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46462 (grub_ieee1275_note_hdr): New structure.
46463 (grub_ieee1275_note_desc): Likewise.
46464 (grub_ieee1275_note): Likewise.
46465 (load_note): Remove `dir' argument. All callers updated. Remove
46466 `note_img' and `path'. Do not load a file from `note_path'.
46467 Initialize a struct grub_ieee1275_note and write that to `out'.
46468 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46470 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46472 * util/misc.c (grub_util_read_image): Revert last change. It
46473 called `grub_util_read_at', which seeks from the beginning of the
46476 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46478 * TODO: Add note about endianness in grub-mkimage.
46479 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46481 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46482 (grub_mkimage_SOURCES): New target.
46483 * include/grub/kernel.h (grub_start_addr): Remove variable.
46484 (grub_end_addr): Likewise.
46485 (grub_total_module_size): Likewise.
46486 (grub_kernel_image_size): Likewise.
46487 (GRUB_MODULE_MAGIC): New constant.
46488 (grub_module_info): New structure.
46489 (grub_arch_modules_addr): New prototype.
46490 (grub_get_end_addr): Remove prototype.
46491 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46492 * include/grub/powerpc/ieee1275/kernel.h: New file.
46493 * include/grub/util/misc.h (grub_util_get_fp_size): New
46495 (grub_util_read_at): Likewise.
46496 (grub_util_write_image_at): Likewise.
46497 * kern/main.c (grub_get_end_addr): Remove function.
46498 (grub_load_modules): Call grub_arch_modules_addr instead of using
46499 grub_end_addr. Look for a grub_module_info struct in memory. Use
46500 the grub_module_info fields instead of calling grub_get_end_addr
46501 as loop conditions. Move grub_add_unused_region code here.
46502 (grub_add_unused_region): Remove function.
46503 * kern/i386/pc/init.c: Include grub/cache.h.
46504 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46505 one call to add_mem_region.
46506 (grub_arch_modules_addr): New function.
46507 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46508 (grub_total_module_size): Likewise.
46509 Include grub/machine/kernel.h.
46510 (grub_arch_modules_addr): New function.
46511 * util/grub-emu.c (grub_end_addr): Remove variable.
46512 (grub_total_module_size): Likewise.
46513 (grub_arch_modules_addr): New function.
46514 * util/misc.c: Include unistd.h.
46515 (grub_util_get_fp_size): New function.
46516 (grub_util_read_at): Likewise.
46517 (grub_util_write_image_at): Likewise.
46518 (grub_util_read_image): Call grub_util_read_at.
46519 (grub_util_write_image): Call grub_util_write_image_at.
46520 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46521 additional memory in kernel_img for a struct grub_module_info.
46522 Fill in that grub_module_info.
46523 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46525 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46527 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46529 * include/grub/powerpc/ieee1275/ieee1275.h
46530 (grub_ieee1275_milliseconds): New prototype.
46531 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46533 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46534 grub_ieee1275_milliseconds.
46536 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46538 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46540 (find_options): New function.
46541 (cmain): Call find_options.
46542 * include/grub/powerpc/ieee1275/ieee1275.h
46543 (grub_ieee1275_realmode): New extern variable.
46544 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46545 grub_map if grub_ieee1275_realmode is false.
46547 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46549 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46550 lines are inserted and make it work like readline. Reported by
46551 Vincent Pelletier <subdino2004@yahoo.fr>.
46553 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46555 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46557 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46558 `kern/powerpc/cache.S'.
46560 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46562 * genmk.rb: Handle the `Program' class in the main loop. Written
46563 by Johan Rydberg <jrydberg@gnu.org>.
46564 (Program): New class.
46565 (programs): New variable.
46566 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46567 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46568 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46569 (help_arch): Function removed.
46570 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46571 `powerpc/libgcc.h' and `loader.h'.
46572 (pkgdata_PROGRAMS): New variable.
46573 (sbin_UTILITIES): Variable removed.
46574 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46575 (grubof_SOURCES): Variable re-defined so it only includes the
46576 core functionality.
46577 (grubof_CFLAGS): Remove `-DGRUBOF'.
46578 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46579 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46580 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46581 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46582 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46583 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46584 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46585 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46586 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46587 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46588 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46589 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46590 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46591 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46592 (pc_mod_CFLAGS): New variables.
46593 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46594 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46595 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46596 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46598 * include/grub/i386/pc/init.h (grub_os_area_addr)
46599 (rub_os_area_size): ... to here.
46600 * include/grub/powerpc/ieee1275/ieee1275.h
46601 (grub_ieee1275_entry_fn): Export symbol.
46602 * include/grub/powerpc/ieee1275/init.h: New file.
46603 * include/grub/powerpc/libgcc.h: Likewise.
46604 * include/grub/cache.h: Likewise.
46605 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46606 <hollis@penguinppc.org>.
46607 * kern/dl.c: Include <grub/cache.h>.
46608 (grub_dl_flush_cache): New function.
46609 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46611 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46612 (grub_console_init): Removed prototypes.
46613 (grub_machine_init): Don't initialize the modules anymore.
46614 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46616 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46617 Macro undef removed.
46618 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46619 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46620 relocation `R_PPC_REL32'. Return an error when the relocation is
46622 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46623 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46624 * util/misc.c (grub_arch_sync_caches): Likewise.
46626 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46628 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46629 `symlist.c', add `grubof_symlist.c'.
46630 (symlist.c): Variable removed.
46631 (grubof_HEADERS): Variable added.
46632 (grubof_symlist.c): New target.
46633 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46634 `kernel_img_HEADERS'.
46635 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46636 * kern/powerpc/dl.c: New file.
46637 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46639 (grub_arch_dl_relocate_symbols): Likewise.
46640 (grub_register_exported_symbols): Likewise.
46642 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46644 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46645 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46646 to fail instead. Reported by Vincent Pelletier
46647 <subdino2004@yahoo.fr>.
46649 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46650 it is not allocated. Reported by Vincent Pelletier
46651 <subdino2004@yahoo.fr>.
46653 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46654 output so the output looks better.
46656 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46658 Modulize the partition map support and add support for the amiga
46661 * commands/ls.c: Include <grub/partition.h> instead of
46662 <grub/machine/partition.h>.
46663 * kern/disk.c: Likewise.
46664 * kern/rescue.c: Likewise.
46665 * loader/i386/pc/chainloader.c: Likewise.
46666 * normal/cmdline.c: Likewise.
46667 * kern/powerpc/ieee1275/init.c: Likewise.
46668 (grub_machine_init): Call `grub_pc_partition_map_init',
46669 `grub_amiga_partition_map_init' and
46670 `grub_apple_partition_map_init'.
46671 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46672 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46673 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46674 `partition.h' and `pc_partition.h'.
46675 (grub_setup_SOURCES): Remove
46676 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46677 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46678 (grub_emu_SOURCES): Likewise.
46679 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46680 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46681 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46682 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46683 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46684 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46685 (grubof_SOURCES): Likewise.
46686 * disk/i386/pc/partition.c: File removed.
46687 * disk/powerpc/ieee1275/partition.c: Likewise.
46688 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46689 * include/grub/i386/pc/partition.h: Likewise.
46690 * kern/partition.c: New file.
46691 * partmap/amiga.c: Likewise.
46692 * partmap/apple.c: Likewise.
46693 * partmap/pc.c: Likewise.
46694 * include/grub/partition.h: Likewise..
46695 * include/grub/pc_partition.h: Likewise.
46696 * util/grub-emu.c: Include <grub/partition.h> instead of
46697 <grub/machine/partition.h>.
46698 (main): Call `grub_pc_partition_map_init',
46699 `grub_amiga_partition_map_init' and
46700 `grub_apple_partition_map_init' and deinitialize afterwards.
46701 * util/i386/pc/biosdisk.c: Include `#include
46702 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46703 `<grub/machine/partition.h>'.
46704 * util/i386/pc/grub-setup.c: Likewise.
46705 * util/i386/pc/biosdisk.c: Likewise.
46706 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46707 partition information in case of a PC partition.
46708 * util/i386/pc/grub-setup.c: Include `#include
46709 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46710 `<grub/machine/partition.h>'.
46711 (setup): Only access the PC specific partition information in case
46714 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46716 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46717 (grub_longjmp): Likewise.
46718 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46720 * normal/powerpc/setjmp.S: New file.
46721 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46722 `normal/powerpc/setjmp.S'.
46723 (grubof_CFLAGS): Add `-DGRUBOF'.
46724 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46725 [GRUB_UTIL && !GRUBOF].
46727 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46729 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46730 property named `name'. Correctly handle the error returned by
46731 `grub_ieee1275_finddevice' if a device can not be opened.
46733 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46735 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46736 `actual' for negativity.
46737 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46740 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46742 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46743 (PAGE_OFFSET): New macro.
46744 (CRTC_ADDR_PORT): Likewise.
46745 (CRTC_DATA_PORT): Likewise.
46746 (START_ADDR_HIGH_REGISTER): Likewise.
46747 (START_ADDR_LOW_REGISTER): Likewise.
46748 (GRAPHICS_ADDR_PORT): Likewise.
46749 (GRAPHICS_DATA_PORT): Likewise.
46750 (READ_MAP_REGISTER): Likewise.
46751 (INPUT_STATUS1_REGISTER): Likewise.
46752 (INPUT_STATUS1_VERTR_BIT): Likewise.
46753 (page): New variable.
46754 (wait_vretrace): New function.
46755 (set_read_map): Likewise.
46756 (set_start_address): Likewise.
46757 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46759 (check_vga_mem): Take the page into account.
46760 (write_char): Likewise.
46761 (write_cursor): Likewise.
46762 (scroll_up): Likewise. Copy the page to the page that is not
46763 shown and switch between both pages.
46764 (grub_vga_putchar): Fix off by one error.
46765 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46768 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46770 Add support for iso9660 (including rockridge).
46772 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46773 (iso9660_mod_SOURCES): New variable.
46774 (iso9660_mod_CFLAGS): Likewise.
46775 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46776 * include/grub/fs.h (grub_iso9660_init): New prototype.
46777 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46778 * fs/iso9660.c: New file.
46780 * include/grub/misc.h (grub_strncat): New prototype.
46781 * kern/misc.c (grub_strncat): New function.
46783 * fs/hfs.c (grub_hfs_mount): Translate the error
46784 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46785 * fs/jfs.c (grub_jfs_mount): Likewise.
46786 * fs/ufs.c (grub_ufs_mount): Likewise.
46788 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46790 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46791 which initialized BAT registers.
46792 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46793 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46795 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46796 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46798 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46799 (grub_mapclaim): Likewise.
46800 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46801 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46804 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46806 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46807 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46808 -ffreestanding and -msoft-float.
46810 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46812 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46813 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46814 set in grub_ieee1275_flags.
46816 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46818 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46820 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46821 grub_console_init first.
46822 Change the memory range used for grub_ieee1275_claim and
46823 grub_mm_init_region.
46824 Print an error message if the claim fails.
46825 Include <grub/misc.h>.
46827 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46829 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46830 Call grub_children_iterate for device nodes of type `scsi',
46832 (grub_ofdisk_open): Remove manual device alias resolution.
46833 Fix memory leak when device cannot be opened.
46834 * include/grub/powerpc/ieee1275/ieee1275.h
46835 (grub_children_iterate): New prototype.
46836 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46838 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46839 Return -1 if args.size was -1.
46841 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46843 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46844 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46845 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46846 Open Firmware's memory for it; claim memory from _start to _end.
46847 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46848 (_end): New extern.
46849 (_start): Zero BSS from __bss_start to _end.
46850 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46852 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46854 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46856 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46857 -1 if args.base was -1.
46859 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46861 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46862 escape sequence instead of a literal ^L. Also call
46863 grub_ofconsole_gotoxy.
46865 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46867 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46868 void * arguments to grub_addr_t. All callers updated. Also make
46869 the `result' argument optional.
46870 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46871 All callers updated.
46873 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46875 * commands/ls.c (grub_ls_list_files): Use the string following the
46876 initial ')', if present, as the filesystem path.
46877 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46879 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46881 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46883 Make the source code of the menu interface more readable.
46885 * normal/menu.c: Include grub/mm.h.
46886 (TERM_WIDTH): New macro.
46887 (TERM_HEIGHT): Likewise.
46888 (TERM_INFO_HEIGHT): Likewise.
46889 (TERM_MARGIN): Likewise.
46890 (TERM_SCROLL_WIDTH): Likewise.
46891 (TERM_TOP_BORDER_Y): Likewise.
46892 (TERM_LEFT_BORDER_X): Likewise.
46893 (TERM_BORDER_WIDTH): Likewise.
46894 (TERM_MESSAGE_HEIGHT): Likewise.
46895 (TERM_BORDER_HEIGHT): Likewise.
46896 (TERM_NUM_ENTRIES): Likewise.
46897 (TERM_FIRST_ENTRY_Y): Likewise.
46898 (TERM_ENTRY_WIDTH): Likewise.
46899 (TERM_CURSOR_X): Likewise.
46900 (draw_border): Use macros instead of magic numbers.
46901 (print_entry): Likewise.
46902 (print_entries): Likewise.
46903 (run_menu): Likewise. Also, handle the key 'e'.
46904 (run_menu_entry): Ignore empty command lines.
46905 (print_message): Added a new argument EDIT. If EDIT is true,
46906 print a different message.
46907 (init_page): Likewise.
46908 (edit_menu_entry): New function. Not implemented yet.
46910 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46912 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46913 can be loaded from normal mode.
46915 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46917 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46918 (multiboot_mod_CFLAGS): New variables.
46919 * loader/i386/pc/linux_normal.c: New file.
46920 * loader/i386/pc/multiboot_normal.c: Likewise.
46922 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46923 attribute `unused'.
46925 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46926 `fdiro' to read the mode information from instead of `diro'.
46928 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46929 looking up a symlink.
46931 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46933 * normal/command.c (grub_command_execute): Don't parse the
46934 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46935 flags of the command.
46937 * normal/menu.c (grub_menu_run): Fix typo.
46939 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46941 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46943 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46944 `y + 1' instead of `y - 1'.
46946 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46948 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46950 From Hollis Blanchard <hollis@penguinppc.org>:
46951 * kern/misc.c (memmove): New alias for grub_memmove.
46952 (memcmp): New alias for grub_memcmp.
46953 (memset): New alias for grub_memset.
46954 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46955 Change "int handle" to "grub_ieee1275_phandle_t handle".
46956 * include/grub/powerpc/ieee1275/ieee1275.h
46957 (grub_ieee1275_get_property): Likewise.
46959 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46961 Added normal mode command `chainloader' as module chain.mod, which
46962 depends on normal.mod and _chain.mod.
46964 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46965 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46966 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46968 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46969 but arguments parsing moved to ...
46970 (grub_chainloader_cmd): ... here. New function.
46971 * include/grub/i386/pc/chainloader.h: New file.
46972 * loader/i386/pc/chainloader_normal.c: Likewise.
46974 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46976 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46977 (grub_mkimage_LDFLAGS): Likewise.
46978 (grub_emu_SOURCES): Likewise.
46979 (kernel_img_HEADERS): Added fshelp.h.
46980 * fs/ext2.c: Include <grub/fshelp.h>.
46981 (FILETYPE_REG): New macro.
46982 (FILETYPE_INO_REG): Likewise.
46983 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46985 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46987 (grub_fshelp_node): New struct.
46988 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46990 (grub_ext2_get_file_block): Removed function.
46991 (grub_ext2_read_block): New function.
46992 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46993 This function was written.
46994 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46995 (grub_ext2_find_file): Removed function.
46996 (grub_ext2_read_symlink): New function.
46997 (grub_ext2_iterate_dir): Likewise.
46998 (grub_ext2_open): Rewritten.
46999 (grub_ext2_dir): Rewritten.
47000 * include/grub/fshelp.h: New file.
47001 * fs/fshelp.c: Likewise.
47003 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
47005 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
47006 (print_message): Add a missing newline.
47007 (run_menu): Added timeout support.
47008 (run_menu_entry): New local function.
47009 (grub_menu_run): Added support for booting.
47011 * kern/loader.c (grub_loader_is_loaded): New function.
47013 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
47014 (grub_get_rtc): Exported.
47016 * include/grub/i386/pc/time.h: Include grub/symbol.h.
47017 (grub_get_rtc): Exported.
47019 * include/grub/normal.h (struct grub_command_list): Remove
47020 constant from the member `command'.
47022 * include/grub/loader.h (grub_loader_is_loaded): Declared.
47024 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
47026 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
47028 2004-08-28 Marco Gerards <metgerards@student.han.nl>
47030 Add support for the JFS filesystem.
47032 * fs/jfs.c: New file.
47033 * include/grub/fs.h (grub_jfs_init): New prototype.
47034 (grub_jfs_fini): New prototype.
47035 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
47036 (grub_emu_SOURCES): Likewise.
47037 (pkgdata_MODULES): Add jfs.mod.
47038 (jfs_mod_SOURCES): New variable.
47039 (jfs_mod_CFLAGS): Likewise.
47040 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
47041 (grubof_SOURCES): Likewise.
47042 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
47044 * fs/fat.c (grub_fat_find_dir): Convert the filename little
47045 endian to the host endian.
47046 (grub_fat_utf16_to_utf8): Move function from there...
47047 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
47048 the endianness of the source string anymore.
47049 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
47051 2004-08-24 Marco Gerards <metgerards@student.han.nl>
47053 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47054 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47055 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47056 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
47058 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47059 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47060 for `node_found' and `it_dir'.
47061 (grub_hfs_dir): Add prototype for `dir_hook'.
47063 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47064 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47065 and `indir32' to silence a gcc warning.
47067 * include/grub/fs.h (grub_hfs_init): New prototype.
47068 (grub_hfs_fini): Likewise.
47071 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47073 Each disk device has its own id now. This is useful to make use
47074 of multiple disk devices.
47076 * include/grub/disk.h (grub_disk_dev_id): New enum.
47077 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47078 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47080 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47081 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47083 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47084 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47086 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47087 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47089 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47090 "id" which is used by the cache manager.
47092 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47095 2004-08-18 Marco Gerards <metgerards@student.han.nl>
47097 * fs/hfs.c: New file.
47098 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47099 (grub_emu_SOURCES): Likewise.
47100 (pkgdata_MODULES): Add hfs.mod.
47101 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47102 (grubof_SOURCES): Likewise.
47103 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47105 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47106 * kern/misc.c (grub_strncasecmp): Add function.
47108 2004-08-14 Marco Gerards <metgerards@student.han.nl>
47110 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47113 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47114 (grub_ext2_dir): In case the directory entry type is unknown, read
47117 2004-08-02 Peter Bruin <pjbruin@dds.nl>
47119 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47120 grub_load_linux instead of grub_rescue_cmd_linux as second
47121 argument of grub_rescue_register_command.
47123 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47125 2004-07-27 Marco Gerards <metgerards@student.han.nl>
47127 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47129 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47130 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47131 `loader/powerpc/ieee1275/linux.c',
47132 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47133 * include/grub/powerpc/ieee1275/ieee1275.h
47134 (grub_ieee1275_release): New prototype.
47135 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47136 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47137 normal, boot, linux and linux_normal.
47138 * loader/powerpc/ieee1275/linux.c: New file.
47139 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47141 2004-07-12 Marco Gerards <metgerards@student.han.nl>
47143 * normal/arg.c (grub_arg_parse): Correct error handling after
47144 reallocating the argumentlist (check if `argl' is not null instead
47145 of checking if `args' is not null).
47146 * kern/mm.c (grub_realloc): Return the same pointer when using the
47147 same region, instead of returning the header address.
47149 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47151 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47152 one block instead of two when looking for the initial partition.
47153 (grub_partition_probe): Initialize the local variable `p' with 0.
47154 Use base 10 for the grub_strtoul call.
47155 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47156 need for one local variable.
47157 (grub_strtoul): Don't add the new value to `num', instead of that
47160 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47162 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47163 (pxeboot_img_SOURCES): New variable.
47164 (pxeboot_img_ASFLAGS): Likewise.
47165 (pxeboot_img_LDFLAGS): Likewise.
47166 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47167 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47168 <lode_leroy@hotmail.com>.
47170 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47172 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47173 there was no input.
47175 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47177 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47178 the history buffer logic.
47180 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47182 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47183 (FILETYPE_INO_SYMLINK): New macros.
47184 (grub_ext2_find_file): Check if the node is a directory using the
47185 inode stat information instead of using the filetype in the
47186 dirent. Exclude the first character of an absolute symlink.
47187 (grub_ext2_dir): Mask out the filetype part of the mode member of
47190 2004-05-24 Marco Gerards <metgerards@student.han.nl>
47192 Add support for UFS version 1 and 2. Add support for the minix
47193 filesystem version 1 and 2, both the variants with 14 and 30 long
47196 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47198 (grub_emu_SOURCES): Likewise.
47199 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47200 (ufs_mod_SOURCES): New variable.
47201 (ufs_mod_CFLAGS): Likewise.
47202 (minix_mod_SOURCES): Likewise.
47203 (minix_mod_CFLAGS): Likewise.
47204 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47206 (grubof_SOURCES): Likewise.
47207 * fs/ufs.c: New file.
47208 * fs/minix.c: New file.
47209 * include/grub/fs.h (grub_ufs_init): New prototype.
47210 (grub_ufs_fini): Likewise.
47211 (grub_minix_init): Likewise.
47212 (grub_minix_fini): Likewise.
47213 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47216 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47218 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47219 commands/ls.c, commands/terminal.c, commands/boot.c,
47220 commands/cmp.c and commands/cat.c.
47221 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47223 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47226 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47228 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47229 and grub_, respectively. Because the conversion is trivial and
47230 mechanical, I omit the details here. Please refer to the CVS
47231 if you need more information.
47233 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47235 * include/pupa: Renamed to ...
47236 * include/grub: ... this.
47237 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47238 * util/i386/pc/grub-mkimage.c: ... this.
47239 * util/i386/pc/pupa-setup.c: Renamed to ...
47240 * util/i386/pc/grub-setup.c: ... this.
47241 * util/pupa-emu.c: Renamed to ...
47242 * util/grub-emu.c: ... this.
47244 2004-03-29 Marco Gerards <metgerards@student.han.nl>
47246 Add support for the newworld apple macintosh (PPC). This has been
47247 tested on the powerbook 2000 only. It only adds support for
47248 generic ieee1275 functions, console and disk support. This should
47249 be easy to port to other architectures with support for Open
47252 * configure.ac: Accept the powerpc as host_cpu. In the case of
47253 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47254 specific tests are only executed while building for the i386.
47255 Inverse test for crosscompile.
47256 * genmk.rb (Utility): Allow assembler files.
47257 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47258 * conf/powerpc-ieee1275.rmk: New file.
47259 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47260 * disk/powerpc/ieee1275/partition.c: Likewise.
47261 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47262 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47263 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47264 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47265 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47266 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47267 * include/pupa/powerpc/ieee1275/loader.h
47268 * include/pupa/powerpc/setjmp.h: Likewise.
47269 * include/pupa/powerpc/types.h: Likewise.
47270 * kern/powerpc/ieee1275/init.c: Likewise.
47271 * kern/powerpc/ieee1275/openfw.c: Likewise.
47272 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47274 These files were written by Johan Rydberg
47275 (jrydberg@night.trouble.net) and I only modified them slightly.
47277 * boot/powerpc/ieee1275/cmain.c: New file.
47278 * boot/powerpc/ieee1275/crt0.S: Likewise.
47279 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47280 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47282 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47284 * Makefile.in: Update copyright.
47285 * genmodsrc.sh: Likewise.
47286 * gensymlist.sh: Likewise.
47287 * term/i386/pc/vga.c: Indent correctly.
47289 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47290 bugreporting address.
47291 * util/i386/pc/pupa-setup.c (usage): Likewise,
47292 (main): Call pupa_ext2_init and pupa_ext2_fini.
47294 * fs/fat.c (log2): Renamed to ...
47295 (fat_log2): ... this.
47296 All callers changed.
47297 * kern/misc.c (memcpy): Alias to pupa_memmove.
47298 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47300 * util/console.c (pupa_ncurses_fini): Return 0.
47302 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47303 Move fail label here.
47304 [__GNU__]: Don't warn when using stat.
47305 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47306 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47307 long int. Use strtol instead of strtoul.
47309 2004-03-14 Marco Gerards <metgerards@student.han.nl>
47311 * commands/boot.c: New file.
47312 * commands/cat.c: Likewise.
47313 * commands/cmp.c: Likewise.
47314 * commands/ls.c: Likewise.
47315 * commands/terminal.c: Likewise.
47316 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47317 (pupa_register_command): Changed interface to match the new
47319 (pupa_command_execute): Changed (almost rewritten) so it uses
47320 pupa_split_command. Added support for setting variables using the
47322 (rescue_command): Changed to work with the new argument parser.
47323 (terminal_command): Moved from here to commands/terminal.c.
47324 (set_command): New function.
47325 (unset_command): New function.
47326 (insmod_command): New function.
47327 (rmmod_command): New function.
47328 (lsmod_command): New function.
47329 (pupa_command_init): Don't initialize the command terminal
47330 anymore. Initialize the commands set, unset, insmod, rmmod and
47332 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47333 (kernel_img_HEADERS): Add arg.h and env.h.
47334 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47335 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47336 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47338 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47340 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47341 (boot_mod_SOURCES): New variable.
47342 (terminal_mod_SOURCES): Likewise.
47343 (ls_mod_SOURCES): Likewise.
47344 (cmp_mod_SOURCES): Likewise.
47345 (cat_mod_SOURCES): Likewise.
47347 * normal/arg.c: New file.
47348 * kern/env.c: Likewise.
47349 * include/pupa/arg.h: Likewise.
47350 * include/pupa/env.h: Likewise.
47351 * font/manager.c (font_command): Changed to match argument parsing
47353 (PUPA_MOD_INIT): Likewise.
47354 * hello/hello.c (pupa_cmd_hello): Likewise.
47355 (PUPA_MOD_INIT): Likewise.
47356 * include/pupa/disk.h: Include <pupa/device.h>.
47357 (pupa_print_partinfo): New prototype.
47358 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47359 (pupa_dl_get_prefix): Likewise.
47360 * include/pupa/misc.h: Include <pupa/err.h>.
47361 (pupa_isgraph): New prototype.
47362 (pupa_isdigit): Likewise.
47363 (pupa_split_cmdline): Likewise.
47364 * include/pupa/normal.h: Include <pupa/arg.h>.
47365 (pupa_command): Changed the prototype of the member `func' to
47366 match the argument parsing interface. Added member `options'.
47367 (pupa_register_command): Updated to match function.
47368 (pupa_arg_parse): New prototype.
47369 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47370 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47371 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47372 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47373 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47374 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47375 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47376 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47377 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47378 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47379 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47380 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47381 * kern/disk.c: Include <pupa/file.h>.
47382 (pupa_print_partinfo): New function.
47383 * kern/dl.c: Include <pupa/env.h>.
47384 (pupa_dl_dir): Variable removed.
47385 (pupa_dl_load): Use the environment variable `prefix' instead of
47386 the variable pupa_dl_dir.
47387 (pupa_dl_set_prefix): Function removed.
47388 (pupa_dl_get_prefix): Likewise.
47389 * kern/i386/pc/init.c: Include <pupa/env.h>.
47390 (pupa_machine_init): Use the environment variable `prefix' instead of
47391 using pupa_dl_set_prefix to set the prefix.
47392 * kern/main.c: Include <pupa/env.h>.
47393 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47394 using pupa_dl_get_prefix to get the prefix.
47395 * kern/misc.c: Include <pupa/env.h>.
47396 (pupa_isdigit): New function.
47397 (pupa_isgraph): Likewise.
47398 (pupa_ftoa): Likewise.
47399 (pupa_vsprintf): Added support for printing values of the type
47400 `double'. Make it possible to format variable output when using
47401 formatting like `%1.2%f'.
47402 (pupa_split_cmdline): New function.
47403 * kern/rescue.c: Include <pupa/env.h>.
47404 (next_word): Removed function.
47405 (pupa_rescue_cmd_prefix): Likewise.
47406 (pupa_rescue_cmd_set): New function.
47407 (pupa_rescue_cmd_unset): New function.
47408 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47409 split the command line instead of splitting it here. Added
47410 support for setting variables using the syntax `foo=bar'. Don't
47411 initialize the prefix command anymore. Initialized the set and
47413 * normal/cmdline.c: Include <pupa/env.h>.
47414 (pupa_tab_complete): Added prototypes for print_simple_completion,
47415 print_partition_completion, add_completion, iterate_commands,
47416 iterate_dev, iterate_part and iterate_dir. Moved code to print
47417 partition information from here to kern/disk.c.
47418 (pupa_cmdline_run): Don't check if the function exists anymore.
47419 * normal/main.c: Include <pupa/env.h>.
47420 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47421 instead of using pupa_dl_get_prefix to get the prefix.
47422 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47423 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47425 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47426 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47427 ((unused))' to silence a gcc warning.
47428 (pupa_vga_setcolor): Likewise.
47429 (debug_command): Changed to match argument parsing
47431 * util/pupa-emu.c: Include <pupa/env.h>.
47432 (options): Added 0's for unused fields to silence a gcc warning.
47434 (main): Use the environment variable `prefix' instead of using
47435 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47436 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47439 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47440 * util/misc.c: Include <malloc.h>.
47441 (pupa_malloc): Rewritten so errors are correctly reported.
47442 (pupa_realloc): Likewise.
47443 (pupa_memalign): Likewise.
47444 (pupa_mm_init_region): Declare unused variables with
47445 `__attribute__ ((unused))' to silence a gcc warning.
47446 * normal/i386/setjmp.S: Remove tab at the end of the file to
47447 silence a gcc warning.
47448 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47449 variables with `__attribute__ ((unused))' to silence a gcc
47451 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47452 local variable i unsigned to silence a gcc warning.
47454 * kern/term.c: Include <pupa/misc.h>.
47455 (pupa_more_lines): New variable.
47456 (pupa_more): Likewise.
47457 (pupa_putcode): When the pager is active pause at the end of every
47459 (pupa_set_more): New function.
47460 * include/pupa/term.h (pupa_set_more): New prototype.
47463 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47465 Now this project is GRUB 2 rather than PUPA. The location of
47466 the CVS repository was moved to GRUB's.
47468 * configure.ac: Use bug-grub as the reporting address.
47469 Use GRUB instead of PUPA.
47470 Change the version number to 1.90.
47472 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47474 * genkernsyms.sh: Updated copyright information.
47475 * genmk.rb: Likewise.
47476 * genmodsrc.sh: Likewise.
47477 * gensymlist.sh: Likewise.
47478 * boot/i386/pc/boot.S: Likewise.
47479 * boot/i386/pc/diskboot.S: Likewise.
47480 * disk/i386/pc/biosdisk.c: Likewise.
47481 * disk/i386/pc/partition.c: Likewise.
47482 * font/manager.c: Likewise.
47483 * fs/ext2.c: Likewise.
47484 * fs/fat.c: Likewise.
47485 * include/pupa/boot.h: Likewise.
47486 * include/pupa/device.h: Likewise.
47487 * include/pupa/disk.h: Likewise.
47488 * include/pupa/dl.h: Likewise.
47489 * include/pupa/elf.h: Likewise.
47490 * include/pupa/err.h: Likewise.
47491 * include/pupa/file.h: Likewise.
47492 * include/pupa/font.h: Likewise.
47493 * include/pupa/fs.h: Likewise.
47494 * include/pupa/kernel.h: Likewise.
47495 * include/pupa/loader.h: Likewise.
47496 * include/pupa/misc.h: Likewise.
47497 * include/pupa/mm.h: Likewise.
47498 * include/pupa/net.h: Likewise.
47499 * include/pupa/normal.h: Likewise.
47500 * include/pupa/rescue.h: Likewise.
47501 * include/pupa/setjmp.h: Likewise.
47502 * include/pupa/symbol.h: Likewise.
47503 * include/pupa/term.h: Likewise.
47504 * include/pupa/types.h: Likewise.
47505 * include/pupa/i386/setjmp.h: Likewise.
47506 * include/pupa/i386/types.h: Likewise.
47507 * include/pupa/i386/pc/biosdisk.h: Likewise.
47508 * include/pupa/i386/pc/boot.h: Likewise.
47509 * include/pupa/i386/pc/console.h: Likewise.
47510 * include/pupa/i386/pc/init.h: Likewise.
47511 * include/pupa/i386/pc/kernel.h: Likewise.
47512 * include/pupa/i386/pc/linux.h: Likewise.
47513 * include/pupa/i386/pc/loader.h: Likewise.
47514 * include/pupa/i386/pc/memory.h: Likewise.
47515 * include/pupa/i386/pc/multiboot.h: Likewise.
47516 * include/pupa/i386/pc/partition.h: Likewise.
47517 * include/pupa/i386/pc/time.h: Likewise.
47518 * include/pupa/i386/pc/vga.h: Likewise.
47519 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47520 * include/pupa/util/getroot.h: Likewise.
47521 * include/pupa/util/misc.h: Likewise.
47522 * include/pupa/util/resolve.h: Likewise.
47523 * kern/device.c: Likewise.
47524 * kern/disk.c: Likewise.
47525 * kern/dl.c: Likewise.
47526 * kern/err.c: Likewise.
47527 * kern/file.c: Likewise.
47528 * kern/fs.c: Likewise.
47529 * kern/loader.c: Likewise.
47530 * kern/main.c: Likewise.
47531 * kern/misc.c: Likewise.
47532 * kern/mm.c: Likewise.
47533 * kern/rescue.c: Likewise.
47534 * kern/term.c: Likewise.
47535 * kern/i386/dl.c: Likewise.
47536 * kern/i386/pc/init.c: Likewise.
47537 * kern/i386/pc/lzo1x.S: Likewise.
47538 * kern/i386/pc/startup.S: Likewise.
47539 * loader/i386/pc/chainloader.c: Likewise.
47540 * loader/i386/pc/linux.c: Likewise.
47541 * loader/i386/pc/multiboot.c: Likewise.
47542 * normal/cmdline.c: Likewise.
47543 * normal/command.c: Likewise.
47544 * normal/main.c: Likewise.
47545 * normal/menu.c: Likewise.
47546 * normal/i386/setjmp.S: Likewise.
47547 * term/i386/pc/console.c: Likewise.
47548 * term/i386/pc/vga.c: Likewise.
47549 * util/console.c: Likewise.
47550 * util/genmoddep.c: Likewise.
47551 * util/misc.c: Likewise.
47552 * util/pupa-emu.c: Likewise.
47553 * util/resolve.c: Likewise.
47554 * util/unifont2pff.rb: Likewise.
47555 * util/i386/pc/biosdisk.c: Likewise.
47556 * util/i386/pc/getroot.c: Likewise.
47557 * util/i386/pc/pupa-mkimage.c: Likewise.
47558 * util/i386/pc/pupa-setup.c: Likewise.
47560 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47562 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47563 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47564 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47565 reading and reset it after reading.
47566 (pupa_ext2_close): Return PUPA_ERR_NONE.
47568 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47570 (struct linux_kernel_header): Add kernel_version and
47572 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47573 pupa_file_read succeeds.
47574 (pupa_rescue_cmd_initrd): Implement.
47576 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47578 * fs/ext2.c (pupa_ext2_label): New function.
47579 (pupa_ext2_fs): Added label.
47580 * fs/fat.c (pupa_fat_label): New function.
47581 (pupa_fat_fs): Added label.
47582 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47584 * kern/misc.c (pupa_strndup): New function.
47585 * include/pupa/misc.h (pupa_strndup): New prototype.
47587 * include/pupa/normal.h: Include <pupa/err.h>.
47588 (pupa_set_history): New prototype.
47589 (pupa_iterate_commands): New prototype.
47590 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47591 <pupa/disk.h>, <pupa/file.h>.
47592 (hist_size): New variable.
47593 (hist_lines): Likewise.
47594 (hist_end): Likewise.
47595 (hist_used): Likewise.
47596 (pupa_set_history): New function.
47597 (pupa_history_get): Likewise.
47598 (pupa_history_add): Likewise.
47599 (pupa_history_replace): Likewise.
47600 (pupa_tab_complete): Likewise.
47601 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47602 completion shows partitionnames while completing partitions, this
47603 feature was suggested by Jeff Bailey.
47604 * normal/command.c (pupa_iterate_commands): New function.
47605 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47606 (pupa_normal_init): Initialize history buffer.
47607 (PUPA_MOD_INIT): Likewise.
47608 (pupa_normal_fini): Free the history buffer.
47609 (PUPA_MOD_FINI): Likewise.
47611 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47614 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47615 * configure.ac [i386]: Check for regparam bug.
47616 (NESTED_FUNC_ATTR) [! i386]: Defined.
47618 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47620 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47621 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47622 (pupa_emu_SOURCES): New variable.
47623 (pupa_emu_LDFLAGS): Likewise.
47624 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47625 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47626 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47627 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47628 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47629 (pupa_jmp_buf): New typedef.
47630 (pupa_setjmp) [PUPA_UTIL]: New macro.
47631 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47632 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47633 (pupa_refresh): New prototype.
47634 * include/pupa/util/getroot.h: New file.
47635 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47637 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47638 (pupa_rescue_cmd_cat): Likewise.
47639 (pupa_rescue_cmd_ls): Likewise.
47640 (pupa_rescue_cmd_testload): Likewise.
47641 (pupa_rescue_cmd_lsmod): Likewise.
47642 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47643 * normal/menu.c (run_menu): Likewise.
47644 * kern/term.c (pupa_cls): Likewise.
47645 (pupa_refresh): New function.
47646 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47647 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47648 * util/console.c: New file.
47650 * util/i386/pc/getroot.c: New file.
47651 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47652 (pupa_putchar): New function.
47653 (pupa_refresh): Likewise.
47654 (xgetcwd): Function moved to ...
47655 (strip_extra_slashes): Likewise.
47656 (get_prefix): Likewise.
47657 * util/i386/pc/getroot.c: ... here.
47658 (find_root_device): Function moved and renamed to...
47659 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47660 Changed all callers.
47661 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47663 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47664 Changed all callers.
47665 * util/misc.c (pupa_memalign): New function.
47666 (pupa_mm_init_region): Likewise.
47667 (pupa_register_exported_symbols): Likewise.
47668 (pupa_putchar): Function removed.
47669 * util/pupa-emu.c: New file.
47671 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47673 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47674 (_multiboot_mod_SOURCES): New variable.
47675 (_multiboot_mod_CFLAGS): Likewise.
47676 * loader/i386/pc/multiboot.c: New file.
47677 * include/pupa/i386/pc/multiboot.h: Likewise.
47678 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47679 (pupa_multiboot_real_boot): New function.
47680 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47681 (pupa_multiboot_real_boot): New prototype.
47682 (pupa_rescue_cmd_multiboot): Likewise
47683 (pupa_rescue_cmd_module): Likewise.
47685 * kern/loader.c (pupa_loader_set): Continue when
47686 pupa_loader_unload_func() fails.
47687 (pupa_loader_unset): New function.
47688 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47690 * kern/misc.c (pupa_stpcpy): New function.
47691 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47693 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47695 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47696 for available extensions.
47698 * include/pupa/i386/pc/time.h: New file.
47699 * kern/disk.c: Include <pupa/machine/time.h>.
47700 (PUPA_CACHE_TIMEOUT): New macro.
47701 (pupa_last_time): New variable.
47702 (pupa_disk_open): Flush the cache when there was a timeout.
47703 (pupa_disk_close): Reset the timer.
47704 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47706 * util/misc.c: Include <sys/times.h>
47707 (pupa_get_rtc): New function.
47709 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47711 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47713 (pupa_ext2_get_file_block): Use blocks member.
47715 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47716 first block. Return -1 instead of pupa_errno on error.
47718 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47720 * README: In the pupa-mkimage example use _chain instead of chain
47721 and ext2 instead of fat.
47722 * TODO: Replace ext2fs with jfs as an example. Add an item for
47723 adding journal playback for ext2fs.
47724 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47725 (pkgdata_MODULES): Added ext2.mod.
47726 (ext2_mod_SOURCES): New variable.
47727 (ext2_mod_CFLAGS): Likewise.
47728 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47729 * include/pupa/misc.h (pupa_strncpy): New prototype.
47730 (pupa_strcat): Likewise.
47731 (pupa_strncmp): Likewise.
47732 * kern/misc.c (pupa_strcat): Enable function.
47733 (pupa_strncpy): New function.
47734 (pupa_strncmp): Likewise.
47735 * fs/ext2.c: New file.
47737 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47738 when the read failed before retrying.
47739 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47740 (_FILE_OFFSET_BITS): Likewise.
47741 * configure.ac: Added AC_SYS_LARGEFILE.
47743 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47745 * genmk.rb (PModule#rule): Make sure to get only symbol names
47746 from the output of nm.
47747 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47749 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47751 I forgot to check in these changes for a long time. This adds
47752 incomplete support for VGA console, and this is still very
47753 buggy. Also, a lot of consideration is required for I18N,
47754 UNICODE, and VGA font issues. Therefore, assume that this is
47755 such that "better than nothing".
47757 * font/manager.c: New file.
47758 * include/pupa/font.h: Likewise.
47759 * include/pupa/i386/pc/vga.h: Likewise.
47760 * term/i386/pc/vga.c: Likewise.
47761 * util/unifont2pff.rb: Likewise.
47763 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47764 (pkgdata_MODULES): Added vga.mod and font.mod.
47765 (vga_mod_SOURCES): New variables.
47766 (vga_mod_CFLAGS): Likewise.
47767 (font_mod_SOURCES): Likewise.
47768 (font_mod_CFLAGS): Likewise.
47770 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47772 * include/pupa/term.h: Include pupa/err.h.
47773 (struct pupa_term): Added init and fini.
47774 Changed the argument of putchar to pupa_uint32_t.
47776 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47777 (pupa_console_real_putchar): New prototype.
47778 (pupa_console_putchar): Removed.
47779 (pupa_console_checkkey): Exported.
47780 (pupa_console_getkey): Likewise.
47782 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47785 * kern/term.c (pupa_term_set_current): Rewritten.
47786 (pupa_putchar): Likewise.
47787 (pupa_putcode): New function.
47789 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47790 (pupa_console_real_putchar): ... this.
47791 (pupa_vga_set_mode): New function.
47792 (pupa_vga_get_font): Likewise.
47794 * normal/command.c: Include pupa/term.h.
47795 (terminal_command): New function.
47796 (pupa_command_init): Register the command "terminal".
47798 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47799 (DISP_UP): Likewise.
47800 (DISP_RIGHT): Likewise.
47801 (DISP_DOWN): Likewise.
47802 (DISP_HLINE): Likewise.
47803 (DISP_VLINE): Likewise.
47804 (DISP_UL): Likewise.
47805 (DISP_UR): Likewise.
47806 (DISP_LL): Likewise.
47807 (DISP_LR): Likewise.
47809 * term/i386/pc/console.c (pupa_console_putchar): New function.
47811 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47813 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47814 FIX. Reverse the path_list.
47816 * include/pupa/normal.h: Export pupa_register_command and
47817 pupa_unregister_command.
47819 * hello/hello.c (pupa_cmd_hello): New module.
47820 * conf/i386-pc.rmk: Added hello.mod.
47822 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47824 * kern/i386/pc/lzo1x.S: New file.
47826 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47827 (compress_kernel): New variable.
47828 (generate_image): Heavily modified to support compressing a
47829 large part of the core image.
47831 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47833 (pupa_util_load_image): New function.
47835 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47836 (pupa_compressed_size): New variable.
47837 (codestart): Enable Gate A20 here.
47838 Decompress the compressed part of the core image.
47839 Rearrange the code to put functions and variables which are
47840 required for initialization in the non-compressed part.
47843 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47846 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47848 * include/pupa/i386/pc/kernel.h
47849 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47850 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47851 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47852 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47853 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47855 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47857 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47858 (Utility#rule): Likewise.
47860 * configure.ac: Check if LZO is available.
47862 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47864 * include/pupa/normal.h: New file.
47865 * include/pupa/setjmp.h: Likewise.
47866 * include/pupa/i386/setjmp.h: Likewise.
47867 * normal/cmdline.c: Likewise.
47868 * normal/command.c: Likewise.
47869 * normal/main.c: Likewise.
47870 * normal/menu.c: Likewise.
47871 * normal/i386/setjmp.S: Likewise.
47873 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47874 (pupa_rescue_cmd_initrd): Likewise.
47876 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47879 * kern/i386/pc/startup.S (translation_table): New variable.
47880 (translate_keycode): New function.
47881 (pupa_console_getkey): Call translate_keycode.
47883 * kern/rescue.c (attempt_normal_mode): New function.
47884 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47885 it failed, print a message.
47887 * kern/mm.c (pupa_real_malloc): Print more information when a
47888 free magic is broken.
47889 (pupa_free): If the first free header is not free actually, set
47892 * kern/main.c (pupa_load_normal_mode): Just load the module
47894 (pupa_main): Don't print the message
47895 "Entering into rescue mode..." here.
47897 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47899 (pupa_rescue_cmd_initrd): Likewise.
47900 (pupa_rescue_cmd_initrd): Likewise.
47902 * include/pupa/symbol.h (FUNCTION): Specify the type.
47903 (VARIABLE): Likewise.
47905 * include/pupa/err.h (pupa_err_t): Added
47906 PUPA_ERR_UNKNOWN_COMMAND.
47908 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47909 (pupa_dl_get_prefix): Likewise.
47911 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47912 Added _chain.mod and _linux.mod instead of chain.mod and
47914 (chain_mod_SOURCES): Renamed to ...
47915 (_chain_mod_SOURCES): ... this.
47916 (chain_mod_CFLAGS): Renamed to ...
47917 (_chain_mod_CFLAGS): ... this.
47918 (linux_mod_SOURCES): Renamed to ...
47919 (_linux_mod_SOURCES): ... this.
47920 (linux_mod_CFLAGS): Renamed to ...
47921 (_linux_mod_CFLAGS): ... this.
47922 (normal_mod_SOURCES): New variable.
47923 (normal_mod_CFLAGS): Likewise.
47924 (normal_mod_ASFLAGS): Likewise.
47926 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47928 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47931 * kern/dl.c (pupa_dl_ref): Refer depending modules
47933 (pupa_dl_unref): Unrefer depending modules recursively.
47934 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47935 a module is unloaded before one depending on that module is
47937 (pupa_dl_unload): Unload depending modules explicitly,
47940 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47942 * include/pupa/i386/pc/linux.h: New file.
47943 * loader/i386/pc/linux.c: Likewise.
47945 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47947 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47948 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47949 of PUPA_CHAINLOADER_BOOT_SECTOR.
47951 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47952 (pupa_linux_prot_size): New variable.
47953 (pupa_linux_tmp_addr): Likewise.
47954 (pupa_linux_real_addr): Likewise.
47955 (pupa_linux_boot_zimage): New function.
47956 (pupa_linux_boot_bzimage): Likewise.
47958 * kern/i386/pc/init.c (struct mem_region): New structure.
47959 (MAX_REGIONS): New macro.
47960 (mem_regions): New variable.
47961 (num_regions): Likewise.
47962 (pupa_os_area_addr): Likewise.
47963 (pupa_os_area_size): Likewise.
47964 (pupa_lower_mem): Likewise.
47965 (pupa_upper_mem): Likewise.
47966 (add_mem_region): New function.
47967 (compact_mem_regions): Likewise.
47968 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47969 the size of the conventional memory and that of so-called upper
47970 memory (before the first memory hole).
47971 Instead of adding each found region to free memory, use
47972 add_mem_region and add them after removing overlaps.
47973 Also, add only 1/4 of the upper memory to free memory. The rest
47974 is used for loading OS images. Maybe this is ad hoc, but this
47975 makes it much easier to relocate OS images when booting.
47977 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47978 (pupa_enter_rescue_mode): Don't register initrd and module.
47980 * kern/mm.c: Include pupa/dl.h.
47982 * kern/main.c: Include pupa/file.h and pupa/device.h.
47984 * kern/loader.c (pupa_loader_load_module_func): Removed.
47985 (pupa_loader_load_module): Likewise.
47987 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47990 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47991 (pupa_linux_tmp_addr): Likewise.
47992 (pupa_linux_real_addr): Likewise.
47993 (pupa_linux_boot_zimage): Likewise.
47994 (pupa_linux_boot_bzimage): Likewise.
47996 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
47997 (pupa_upper_mem): Likewise.
47998 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
47999 module is too dangerous.
48001 * include/pupa/loader.h (pupa_os_area_addr): Declared.
48002 (pupa_os_area_size): Likewise.
48003 (pupa_loader_set): Remove the first argument. Loader doesn't
48004 manage modules or initrd any longer.
48005 (pupa_loader_load_module): Removed.
48007 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
48008 (linux_mod_SOURCES): New variable.
48009 (linux_mod_CFLAGS): Likewise.
48011 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
48013 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
48014 the length of a blocklist correctly.
48016 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
48017 Use ioctl only if the OS file is a block device.
48018 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
48019 not very useful for normal files.
48021 * kern/main.c (pupa_set_root_dev): New function.
48022 (pupa_load_normal_mode): Likewise.
48023 (pupa_main): Call those above.
48025 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
48028 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
48030 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
48032 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
48033 (setup): Configure the installed partition information and the
48036 * loader/i386/pc/chainloader.c (my_mod): New variable.
48037 (pupa_chainloader_unload): New function.
48038 (pupa_rescue_cmd_chainloader): Refer itself.
48039 (PUPA_MOD_INIT): Save its own module in MY_MOD.
48041 * kern/i386/pc/startup.S (install_partition): Removed.
48042 (version_string): Likewise.
48043 (config_file): Likewise.
48044 (pupa_install_dos_part): New variable.
48045 (pupa_install_bsd_part): Likewise.
48046 (pupa_prefix): Likewise.
48047 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
48049 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
48051 (make_install_device): New function.
48052 (pupa_machine_init): Set the dl prefix.
48054 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48055 (buf): Renamed to ...
48056 (linebuf): ... this.
48057 (pupa_rescue_cmd_prefix): New function.
48058 (pupa_rescue_cmd_insmod): Likewise.
48059 (pupa_rescue_cmd_rmmod): Likewise.
48060 (pupa_rescue_cmd_lsmod): Likewise.
48061 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48064 * kern/mm.c (pupa_memalign): If failed even after invalidating
48065 disk caches, unload unneeded modules and retry.
48067 * kern/misc.c (pupa_memmove): New function.
48068 (pupa_memcpy): Removed.
48069 (pupa_strcpy): New function.
48070 (pupa_itoa): Made static.
48072 * kern/dl.c (pupa_dl_iterate): New function.
48073 (pupa_dl_ref): Likewise.
48074 (pupa_dl_unref): Likewise.
48075 (pupa_dl_unload): Return if succeeded or not.
48076 (pupa_dl_unload_unneeded): New function.
48077 (pupa_dl_unload_all): Likewise.
48078 (pupa_dl_init): Renamed to ...
48079 (pupa_dl_set_prefix): ... this.
48080 (pupa_dl_get_prefix): New function.
48082 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48083 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48084 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48085 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48086 (pupa_install_dos_part): Declared.
48087 (pupa_install_bsd_part): Likewise.
48088 (pupa_prefix): Likewise.
48089 (pupa_boot_drive): Likewise.
48091 * include/pupa/types.h: Fix a typo.
48093 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48095 (pupa_memmove): Declared.
48096 (pupa_strcpy): Likewise.
48098 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48099 pupa_mod_init takes one argument, its own module.
48100 (pupa_dl_unload_unneeded): Declared.
48101 (pupa_dl_unload_all): Likewise.
48102 (pupa_dl_ref): Likewise.
48103 (pupa_dl_unref): Likewise.
48104 (pupa_dl_iterate): Likewise.
48105 (pupa_dl_init): Renamed to ...
48106 (pupa_dl_set_prefix): ... this.
48107 (pupa_dl_get_prefix): Declared.
48109 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
48110 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
48112 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48113 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48115 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48116 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48118 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48120 * util/i386/pc/pupa-setup.c (setup): Define the internal
48121 function find_first_partition_start at the top level, because GCC
48122 3.0.x cannot compile internal functions in deeper scopes
48124 (find_root_device): Use lstat instead of stat.
48125 Don't follow symbolic links.
48126 Fix the path-constructing code.
48128 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48129 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48130 by a BLKGETSIZE ioctl first, because block devices don't fill
48131 the member st_mode of the structure stat on Linux.
48132 [__linux__] (linux_find_partition): Use a temporary buffer
48133 REAL_DEV for the working space. Copy it to DEV before returning.
48134 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48135 buffer cache consistent.
48136 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48137 strncmp. The previous value was merely wrong.
48138 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48140 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48141 FAT size is 12. The previous value was merely wrong.
48143 * kern/main.c (pupa_main): Don't split the starting message from
48146 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48147 LF, because BIOS goes crazy about character attributes in this
48150 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48152 * include/i386/pc/util/biosdisk.h: New file.
48153 * util/i386/pc/biosdisk.c: Likewise.
48154 * util/i386/pc/pupa-setup.c: Likewise.
48156 * Makefile.in (INCLUDE_DISTFILES): Added
48157 include/pupa/i386/pc/util/biosdisk.h.
48158 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48159 directory util/i386/pc.
48160 (install-local): Added a rule for sbin_UTILITIES.
48161 (uninstall): Likewise.
48163 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48165 * util/misc.c (xrealloc): New function.
48166 (pupa_malloc): Likewise.
48167 (pupa_free): Likewise.
48168 (pupa_realloc): Likewise.
48169 (pupa_stop): Likewise.
48170 (pupa_putchar): Likewise.
48172 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48174 * include/pupa/util/misc.h (xrealloc): Declared.
48176 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48178 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48179 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48181 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48182 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48184 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48185 way should be implemented.
48186 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48188 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48189 the size of NAME for safety.
48190 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48193 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48194 (pupa_setup_SOURCES): Likewise.
48196 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48198 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48200 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48201 bunch of pushl's from pusha, because this destroys the return
48204 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48206 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48207 This means that any missing prototypes could be fatal. Also, you
48208 must take care when writing assembly code. See the comments at
48209 the beginning of startup.S, for more details.
48211 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48212 compilation mechanism.
48213 (pupa_chainloader_real_boot): Likewise.
48214 (pupa_biosdisk_rw_int13_extensions): Likewise.
48215 (pupa_biosdisk_rw_standard): Likewise.
48216 (pupa_biosdisk_check_int13_extensions): Likewise.
48217 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48218 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48219 (pupa_get_memsize): Likewise.
48220 (pupa_get_mmap_entry): Likewise.
48221 (pupa_console_putchar): Likewise.
48222 (pupa_console_setcursor): Likewise.
48223 (pupa_getrtsecs): Use pushl instead of push.
48225 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48226 memory instead of the stack for a mmap entry, because some
48227 BIOSes may ignore the maximum size and overflow.
48229 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48231 * genmk.rb (PModule#rule): Compile automatically generated
48232 sources with module-specific CFLAGS as well as other sources.
48234 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48236 * configure.ac: Check ld.
48237 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48238 respectively, before checking endianness and sizes.
48240 * Makefile.in (LD): New variable.
48242 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48244 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48246 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48248 * Changelog: New file.