1 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3 Use ACPI shutdown intests as traditional port was removed.
5 2013-04-11 Andrey Borzenkov <arvidjaar@gmail.com>
7 * util/grub.d/30_os-prober.in: Add onstr to entries for visual
10 2013-04-11 Vladimir Serbinenko <phcoder@gmail.com>
12 Fix missing PVs if they don't contain "interesting" LV. Closes #38677.
13 Fix few warining messages and leaks while on it.
15 2013-04-09 Andrey Borzenkov <arvidjaar@gmail.com>
17 * autogen.sh: Use "-h", not "-f", to test for existence of symbolic
18 links under grub-core/lib/libgcrypt-grub/mpi.
20 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
22 Fix ia64-efi image generation on big-endian machines. Deduplicate
23 some code while on it.
24 Reported by: Leif Lindholm.
26 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
28 * grub-core/Makefile.core.def: Add kern/elfXX.c to elf module
31 2013-04-08 Andrey Borzenkov <arvidjaar@gmail.com>
33 * grub-core/term/i386/pc/console.c: Fix cursor moving algorithm.
35 2013-04-08 Bryan Hundven <bryanhundven@gmail.com>
37 * docs/grub-dev.texi: Move @itemize after @subsection to satisfy
40 2013-04-08 Vladimir Serbinenko <phcoder@gmail.com>
42 * grub-core/normal/term.c: Few more fixes for menu entry editor
44 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
46 2013-04-07 Vladimir Serbinenko <phcoder@gmail.com>
48 * grub-core/normal/term.c: Few more fixes for menu entry editor
50 Reported by: Andrey Borzenkov <arvidjaar@gmail.com>
52 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
54 * conf/Makefile.extra-dist (EXTRA_DIST): Add
55 grub-core/lib/libgcrypt/src/gcrypt.h.in and util/import_gcrypth.sed.
57 2013-04-06 Andrey Borzenkov <arvidjaar@gmail.com>
59 * util/grub-install_header: Use @PACKAGE@.mo in message catalog name
60 instead of hardcoding grub.mo.
62 2013-04-05 Fedora Ninjas <grub2-owner@fedoraproject.org>
64 * util/grub.d/30_os-prober.in: Support btrrfs linux-prober extensions.
66 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
68 Use GRUB_PROPERLY_ALIGNED_ARRAY in grub-core/disk/cryptodisk.c and
69 grub-core/disk/geli.c.
71 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
73 * util/grub-mkfont.c: Prefer enum to #define.
75 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
77 * grub-core/commands/acpi.c: Use sizeof rather than hardcoding the size.
79 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
81 Replace 8 with GRUB_CHAR_BIT in several places when appropriate.
83 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
85 Add new defines GRUB_RSDP_SIGNATURE_SIZE and GRUB_RSDP_SIGNATURE.
87 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
89 * grub-core/commands/verify.c: Use GRUB_CHAR_BIT.
91 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
93 * include/grub/bsdlabel.h: Use enums.
95 2013-04-05 Vladimir Serbinenko <phcoder@gmail.com>
97 Move GRUB_CHAR_BIT to types.h.
99 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
101 * docs/grub.texi: Document more user commands.
103 2013-04-04 Andrey Borzenkov <arvidjaar@gmail.com>
105 * docs/grub.texi: Document menuentry --id option.
107 2013-04-04 Francesco Lavra <francescolavra.fl@gmail.com>
109 * util/grub-mkimage.c: Introduce new define EFI32_HEADER_SIZE.
111 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
113 Unify file copying setup across different install scripts. Add
114 options for performing partial install.
116 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
117 2013-04-04 Peter Jones <pjones@redhat.com>
119 * grub-core/disk/efi/efidisk.c: Handle partitions on non-512B disks.
121 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
123 Use TSC as a possible time source on i386-ieee1275.
125 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
127 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_readwrite_packetize):
130 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
132 * util/grub-setup.c (setup): Handle some corner cases.
134 2013-04-04 Vladimir Serbinenko <phcoder@gmail.com>
136 * grub-core/lib/posix_wrap/locale.h [GRUB_UTIL]: Include host locale.h.
138 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
140 * grub-core/commands/verify.c: Save verified file to avoid it being
141 tampered with after verification was done.
143 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
145 * grub-core/term/i386/pc/console.c (grub_console_getwh): Decrease
146 reported width by one to compensate for curesor algorithm problem.
148 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
150 Fix screen corruption in menu entry editor and simplify the code
153 2013-04-03 Andrey Borzenkov <arvidjaar@gmail.com>
155 * util/grub-mount.c (fuse_init): Return error if fuse_main
158 2013-04-03 Francesco Lavra <francescolavra.fl@gmail.com>
160 * include/grub/elf.h: Add missing ARM relocation codes and fix
163 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
165 * grub-core/gfxmenu/gui_progress_bar.c: Handle padding sizes.
167 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
168 2013-04-03 Vladimir Serbinenko <phcoder@gmail.com>
170 * grub-core/gfxmenu/gui_circular_progress.c: Take both width and height
171 into account when calculating radius.
173 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
175 * grub-core/gfxmenu/view.c: Fix off-by-one error.
177 2013-04-03 Vladimir Testov <vladimir.testov@rosalab.ru>
179 * grub-core/gfxmenu/gui_circular_progress.c: Fix off-by-one error.
181 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
183 * grub-core/partmap/apple.c (apple_partition_map_iterate): Add
184 missing closing bracket.
186 2013-04-01 Radosław Szymczyszyn <lavrin@gmail.com>
188 * INSTALL: Mention xorriso requirement.
190 2013-03-31 Andrey Borzenkov <arvidjaar@gmail.com>
192 * grub-core/commands/verify.c: Fix hash algorithms values for
193 the first three hashes - they start with 1, not with 0.
195 2013-03-26 Vladimir Serbinenko <phcoder@gmail.com>
197 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services):
198 Try terminating EFI services several times due to quirks in some
201 2013-03-26 Colin Watson <cjwatson@ubuntu.com>
203 * grub-core/commands/acpihalt.c (skip_ext_op): Add support for
204 skipping Event, Device, Processor, PowerRes, ThermalZone, and
205 BankField extended opcodes.
206 (get_sleep_type): Add minimal scope handling (just enough to
207 handle setting the scope to the root path).
208 (grub_acpi_halt): Parse any SSDTs as well as the DSDT.
209 * include/grub/acpi.h: Add enumeration values for Event, Device,
210 Processor, PowerRes, ThermalZone, and BankField extended opcodes.
212 2013-03-26 Vladimir Testov <vladimir.testov@rosalab.ru>
214 * grub-core/gfxmenu/font.c (grub_font_get_string_width): Fix
217 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
219 * grub-core/disk/ahci.c: Give more time for AHCI request.
221 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
223 * grub-core/normal/menu.c: Wait if there were errors shown at "boot"
226 2013-03-25 Vladimir Serbinenko <phcoder@gmail.com>
228 Replace the region at 0 from coreboot tables to available in BSD
231 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
233 * util/grub.d/20_linux_xen.in: Automatically add no-real-mode edd=off on
236 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
238 * grub-core/Makefile.core.def (vga): Disable on coreboot and multiboot
241 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
243 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
244 handling of multi-device filesystems.
246 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
248 * grub-core/Makefile.core.def (vbe): Disable on coreboot and multiboot
251 2013-03-24 Vladimir Serbinenko <phcoder@gmail.com>
253 Add new 'proc' filesystem framework and put luks_script into it.
255 2013-03-23 Vladimir Serbinenko <phcoder@gmail.com>
257 * grub-core/term/at_keyboard.c: Increase robustness on coreboot
260 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
262 * grub-core/fs/zfs/zfs.c: Fix incorrect handling of special volumes.
264 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
266 Add ability to generate newc additions on runtime.
268 2013-03-22 Vladimir Serbinenko <phcoder@gmail.com>
270 * grub-core/commands/i386/coreboot/cbls.c: Fix typos and wrong
273 2013-03-21 Vladimir Serbinenko <phcoder@gmail.com>
275 * po/POTFILES.in: Regenerate.
277 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
279 * grub-core/commands/verify.c (hashes): Add several hashes
282 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
284 Slight improve in USB-related boot-time checkpoints.
286 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
288 * grub-core/commands/boottime.c: Fix copyright header.
290 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
292 New commands cbmemc, lscoreboot, coreboot_boottime to inspect
293 coreboot tables content. Support for cbmemc.
295 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
297 Fix a conflict between ports structures with 2 controllers of
300 2013-03-20 Vladimir Serbinenko <phcoder@gmail.com>
302 * include/grub/boottime.h: Add missing file.
304 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
306 Initialize USB ports in parallel to speed-up boot.
308 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
310 Fix USB devices not being detected when requested
311 due to delayed attach.
313 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
315 Implement boot time analysis framework.
317 2013-03-19 Vladimir Serbinenko <phcoder@gmail.com>
319 Remove get_endpoint_descriptor and change all functions needing
320 descriptor to just receive it as argument rather than endpoint
323 2013-03-19 Aleš Nesrsta <starous@volny.cz>
325 Better estimate the maximum USB transfer size.
327 2013-03-17 Vladimir Serbinenko <phcoder@gmail.com>
329 Resend a packet if we got the wrong buffer in status.
331 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
333 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Use
334 multiplication rather than division.
336 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
338 * grub-core/lib/arg.c (grub_arg_list_alloc): Use shifts rather
341 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
343 * grub-core/commands/verify.c (grub_verify_signature): Use unsigned
344 operations to have intended shifts and not divisions.
346 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
348 * grub-core/loader/i386/pc/plan9.c (fill_disk): Fix types to use
349 intended shifts rather than division.
351 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
353 * include/grub/datetime.h (grub_datetime2unixtime): Fix unixtime
354 computation for some years before epoch. Avode confusing division
357 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
359 * grub-core/video/i386/pc/vbe.c
360 (grub_video_vbe_print_adapter_specific_info): Replace division by
363 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
365 Adjust types in gdb module to have intended unsigned shifts rather than
368 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
370 * grub-core/fs/hfs.c (grub_hfs_read_file): Avoid divmod64 since the
371 maximum size is 4G - 1 on hfs
373 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
375 Avoid costly 64-bit division in grub_get_time_ms on most platforms.
377 2013-03-10 Vladimir Serbinenko <phcoder@gmail.com>
379 * grub-core/fs/fshelp.c (grub_fshelp_log2blksize): Remove now unused
382 2013-03-07 Andrey Borzenkov <arvidjaar@gmail.com>
384 * grub-core/fs/iso9660.c (add_part): Remove always_inline attribute
385 causing gcc error with gcc 4.7.1.
387 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
389 * grub-core/commands/acpi.c (grub_acpi_create_ebda): Don't
390 dereference null pointer. While the code is technically correct, gcc
391 may eliminate a null check if pointer is already dereferenced.
393 2013-03-07 Nickolai Zeldovich <nickolai@csail.mit.edu>
395 * grub-core/normal/crypto.c (read_crypto_list): Fix incorrect
397 * grub-core/normal/term.c (read_terminal_list): Likewise.
399 2013-03-07 Vladimir Serbinenko <phcoder@gmail.com>
401 Lift up core size limits on some platforms. Fix potential memory
402 corruption with big core on small memory systems. Document remaining
405 2013-03-05 Vladimir Serbinenko <phcoder@gmail.com>
407 * grub-core/term/terminfo.c (grub_terminfo_cls): Issue an explicit
410 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
412 Remove all trampoline support. Add -Wtrampolines when
413 present. Remove symbols used for trampolines to make
414 link fail if trampolines are present.
416 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
418 * grub-core/script/execute.c (grub_script_arglist_to_argv): Move
419 append out of its parent.
421 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
423 * grub-core/commands/regexp.c (set_matches): Move setvar out of its
426 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
428 * grub-core/kern/env.c, include/grub/env.h: Change iterator through
429 all vars to a macro. All users updated.
431 2013-03-03 Vladimir Serbinenko <phcoder@gmail.com>
433 * grub-core/disk/ieee1275/nand.c: Fix compilation on
436 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
438 * include/grub/cmos.h: Handle high CMOS addresses on sparc64.
440 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
442 * include/grub/mips/loongson/cmos.h: Fix high CMOS addresses.
444 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
446 Move to more hookless approach in IEEE1275 devices handling.
448 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
450 * grub-core/kern/term.c (grub_term_normal_color),
451 (grub_term_highlight_color): Add back lost defaults.
453 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
455 Make elfload not use hooks. Opt for flags and iterators instead.
457 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
459 * grub-core/lib/ia64/longjmp.S: Fix the name of longjmp function.
460 * grub-core/lib/ia64/setjmp.S: Fix the name of setjmp function.
462 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
464 * grub-core/script/execute.c (gettext_append): Remove nested functions.
466 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
468 * grub-core/normal/charset.c (grub_bidi_logical_to_visual): Add
469 hook pass-through parameter. All users updated and unnested.
471 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
473 * grub-core/commands/loadenv.c (grub_cmd_list_env): Move print_var
476 2013-03-02 Vladimir Serbinenko <phcoder@gmail.com>
478 * grub-core/fs/hfs.c: Remove nested functions.
480 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
482 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Pass
484 (grub_hfsplus_iterate_dir): Move nested function out of its parent.
486 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
488 * util/grub-editenv.c (list_variables): Move print_var out of its
491 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
493 * grub-core/kern/emu/hostdisk.c (read_device_map): Remove nested
496 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
498 * grub-core/gentrigtables.c: Make tables const.
500 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
502 Remove nested functions from videoinfo iterators.
504 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
506 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Fix compilation
507 for 64-bit platforms.
509 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
511 * grub-core/disk/efi/efidisk.c: Transform iterate_child_devices into
512 a FOR_CHILDREN macro.
514 2013-03-01 Vladimir Serbinenko <phcoder@gmail.com>
516 * grub-core/kern/main.c (grub_set_prefix_and_root): Strip trailing
517 platform from firmware path.
519 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
521 Enable linux16 on non-BIOS systems for i.a. memtest.
523 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Handle hole at 0
525 * grub-core/Makefile.core.def (linux16): Enable on all x86 flavours.
527 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
529 * grub-core/kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate):
530 Fix end of table condition.
532 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
534 * grub-core/lib/arg.c (grub_arg_show_help): Move showargs
537 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
539 * grub-core/fs/jfs.c: Remove nested functions.
541 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
543 * grub-core/fs/minix.c: Remove nested functions.
545 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
547 * grub-core/fs/iso9660.c: Remove nested functions.
549 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
551 * grub-core/commands/parttool.c (grub_cmd_parttool): Move show_help out
554 2013-02-28 Vladimir Serbinenko <phcoder@gmail.com>
556 * util/grub-fstest.c: Remove nested functions.
558 2013-02-27 Vladimir Serbinenko <phcoder@gmail.com>
560 * grub-core/loader/machoXX.c: Remove nested functions.
562 2013-02-27 Colin Watson <cjwatson@ubuntu.com>
564 Remove nested functions from disk and file read hooks.
566 * include/grub/disk.h (grub_disk_read_hook_t): New type.
567 (struct grub_disk): Add read_hook_data member.
568 * include/grub/file.h (struct grub_file): Likewise.
569 * include/grub/fshelp.h (grub_fshelp_read_file): Add read_hook_data
574 2012-02-27 Andrey Borzenkov <arvidjaar@gmail.com>
576 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate):
577 Fix off by one error in enumerating extended partitions.
579 2013-02-26 Andrey Borzenkov <arvidjaar@gmail.com>
581 * grub-core/disk/efi/efidisk.c(grub_efidisk_get_device_name): Fix
582 memory leak if device name is not found.
584 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
586 * grub-core/normal/menu_entry.c (update_screen): remove
587 unused variable `off' which caused scroll down arrow to be always shown.
589 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
591 * grub-core/normal/menu_entry.c (insert_string): fix off by one
592 access to unallocated memory.
594 2013-02-25 Andrey Borzenkov <arvidjaar@gmail.com>
596 * Makefile.util.def: Add partmap/msdos.c to common library.
597 * include/grub/msdos_partition.h: Add GRUB_PC_PARTITION_TYPE_LDM
598 * grub-core/disk/ldm.c: Check for existence of
599 GRUB_PC_PARTITION_TYPE_LDM.
601 2013-02-25 Vladimir Serbinenko <phcoder@gmail.com>
603 * grub-core/normal/misc.c (grub_normal_print_device_info): Use KiB to display
604 sizes and display sector size.
606 2013-02-24 Vladimir Serbinenko <phcoder@gmail.com>
608 Implement new command cmosdump.
610 2013-02-19 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
612 Support Openfirmware disks with non-512B sectors.
614 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Get the block
616 * (grub_ofdisk_get_block_size): New function.
617 * (grub_ofdisk_prepare): Use the correct block size.
618 * (grub_ofdisk_read): Likewise.
619 * (grub_ofdisk_write): Likewise.
620 * include/grub/ieee1275/ofdisk.h (grub_ofdisk_get_block_size):
623 2013-02-06 Vladimir Serbinenko <phcoder@gmail.com>
625 * grub-core/commands/lsacpi.c: Fix types on 64-bit platform.
627 2013-02-04 Vladimir Serbinenko <phcoder@gmail.com>
629 * grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
632 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
634 * grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
637 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
639 Implement USBDebug (full USB stack variant).
641 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
643 * grub-core/commands/lsacpi.c: Show more info. Hide some boring parts
644 unless they have unexpected values.
646 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
648 * grub-core/bus/usb/usb.c (grub_usb_device_attach): Add missing
651 2013-02-01 Vladimir Serbinenko <phcoder@gmail.com>
653 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach): Fix missing
654 zero-out of port structure.
656 2013-01-30 Vladimir Serbinenko <phcoder@gmail.com>
658 * grub-core/fs/xfs.c (grub_xfs_read_block): Fix computation in presence
659 of extended attributes.
661 2013-01-27 Andrey Borzenkov <arvidjaar@gmail.com>
663 * util/grub-install.in: change misleading comment about
666 2013-01-27 Vladimir Serbinenko <phcoder@gmail.com>
668 * grub-core/normal/menu_text.c (grub_menu_init_page): Fix behaviour
669 when menu highlight color isn't set.
671 2013-01-27 C. Masloch <pushbx@38.de>
673 Improve FreeDOS direct loading support compatibility.
675 * include/grub/i386/relocator.h (grub_relocator16_state):
677 * grub-core/lib/i386/relocator.c (grub_relocator16_ebp): New extern
679 (grub_relocator16_boot): Handle %ebp.
680 * grub-core/lib/i386/relocator16.S: Likewise.
681 * grub-core/loader/i386/pc/freedos.c:
682 Load BPB to pass kernel which partition to load from.
683 Check that kernel file is not too large.
684 Set register dl to BIOS unit number as well.
686 2013-01-22 Colin Watson <cjwatson@ubuntu.com>
688 * util/grub-reboot.in (usage): Document the need for
690 * util/grub-set-default.in (usage): Likewise.
691 Reported by: Brian Candler. Fixes Ubuntu bug #1102925.
693 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
695 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Include sys/types.h rather
696 than defining WORDS_BIGENDIAN manually.
698 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
700 * include/grub/kernel.h (FOR_MODULES): Adjust to preserve alignment
703 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
705 * grub-core/font/font.c (blit_comb: do_blit): Make static instead of
707 (blit_comb: add_device_width): Likewise.
709 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
711 Remove nested functions from USB iterators.
713 * include/grub/usb.h (grub_usb_iterate_hook_t): New type.
714 (grub_usb_controller_iterate_hook_t): Likewise.
715 (grub_usb_iterate): Add hook_data argument.
716 (grub_usb_controller_iterate): Likewise.
717 (struct grub_usb_controller_dev.iterate): Likewise.
719 Update all implementations and callers.
721 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
723 * grub-core/normal/term.c (print_ucs4_terminal): Don't output right
724 margin when not needed.
726 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
728 Make color variables global instead of it being per-terminal.
730 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
732 * grub-core/commands/ls.c (grub_ls_print_devices): Add missing
735 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
737 Fix powerpc and sparc64 build failures caused by un-nesting memory
740 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
742 * grub-core/disk/arc/arcdisk.c (grub_arcdisk_iterate): Fix
743 parameter declarations.
745 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
747 * grub-core/commands/lsmmap.c: Fix unused variable on emu.
749 2013-01-21 Vladimir Serbinenko <phcoder@gmail.com>
751 Improve spkmomdem reliability by adding a separator between bytes.
753 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
755 * grub-core/partmap/msdos.c (embed_signatures): Add the signature of
756 an Acer registration utility with several sightings in the wild.
757 Reported by: Rickard Westman. Fixes Ubuntu bug #987022.
759 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
761 Remove nested functions from filesystem directory iterators.
763 * include/grub/fs.h (grub_fs_dir_hook_t): New type.
764 (struct grub_fs.dir): Add hook_data argument.
766 Update all implementations and callers.
768 2013-01-21 Colin Watson <cjwatson@ubuntu.com>
770 * docs/grub.texi (Multi-boot manual config): Fix typo for
773 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
775 * util/grub-mkimage.c (main): Postpone freeing arguments.output
776 until after its use in generate_image.
778 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
780 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Don't add the
781 initrd size to addr_min, since the initrd will be allocated after
784 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
786 * conf/Makefile.common: Fix autogen rules to pass definition
787 files on stdin; Makefile.util.am needs Makefile.utilgcry.def
789 2013-01-20 Leif Lindholm <leif.lindholm@arm.com>
791 * include/grub/elf.h: Update ARM definitions based on binutils.
793 2013-01-20 Aleš Nesrsta <starous@volny.cz>
795 Split long USB transfers into short ones.
797 2013-01-20 Andrey Borzenkov <arvidjaar@gmail.com>
799 * docs/grub.texi (Simple configuration): Clarify GRUB_HIDDEN_TIMEOUT
800 is interrupted by ESC.
802 2013-01-20 Vladimir Serbinenko <phcoder@gmail.com>
804 * util/grub-script-check.c (main): Uniform the error message.
806 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
808 Remove nested functions from ELF iterators.
810 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
812 Remove nested functions from device iterators.
814 * include/grub/arc/arc.h (grub_arc_iterate_devs_hook_t): New type.
815 (grub_arc_iterate_devs): Add hook_data argument.
816 * include/grub/ata.h (grub_ata_dev_iterate_hook_t): New type.
817 (struct grub_ata_dev.iterate): Add hook_data argument.
818 * include/grub/device.h (grub_device_iterate_hook_t): New type.
819 (grub_device_iterate): Add hook_data argument.
820 * include/grub/disk.h (grub_disk_dev_iterate_hook_t): New type.
821 (struct grub_disk_dev.iterate): Add hook_data argument.
822 (grub_disk_dev_iterate): Likewise.
823 * include/grub/gpt_partition.h (grub_gpt_partition_map_iterate):
825 * include/grub/msdos_partition.h (grub_partition_msdos_iterate):
827 * include/grub/partition.h (grub_partition_iterate_hook_t): New
829 (struct grub_partition_map.iterate): Add hook_data argument.
830 (grub_partition_iterate): Likewise.
831 * include/grub/scsi.h (grub_scsi_dev_iterate_hook_t): New type.
832 (struct grub_scsi_dev.iterate): Add hook_data argument.
836 2013-01-20 Colin Watson <cjwatson@ubuntu.com>
838 Fix typos for "developer" and "development".
840 2013-01-18 Vladimir Serbinenko <phcoder@gmail.com>
842 Add license header to spkmodem-recv.c.
844 2013-01-17 Vladimir Serbinenko <phcoder@gmail.com>
846 Rewrite spkmodem to use PIT for timing. Double the speed.
848 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
850 Add new command pcidump.
852 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
854 New terminal outputs using serial: morse and spkmodem.
856 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
858 Improve bidi handling in entry editor.
860 2013-01-16 Vladimir Serbinenko <phcoder@gmail.com>
862 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
863 argument to prevent name collision.
865 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
867 Remove nested functions from script reading and parsing.
869 * grub-core/kern/parser.c (grub_parser_split_cmdline): Add
870 getline_data argument, passed to getline.
871 * grub-core/kern/rescue_parser.c (grub_rescue_parse_line): Add
872 getline_data argument, passed to grub_parser_split_cmdline.
873 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Pass
874 lexerstate->getline_data to lexerstate->getline.
875 (grub_script_lexer_init): Add getline_data argument, saved in
876 lexerstate->getline_data.
877 * grub-core/script/main.c (grub_normal_parse_line): Add getline_data
878 argument, passed to grub_script_parse.
879 * grub-core/script/script.c (grub_script_parse): Add getline_data
880 argument, passed to grub_script_lexer_init.
881 * include/grub/parser.h (grub_parser_split_cmdline): Update
882 prototype. Update all callers to pass appropriate getline data.
883 (struct grub_parser.parse_line): Likewise.
884 (grub_rescue_parse_line): Likewise.
885 * include/grub/reader.h (grub_reader_getline_t): Add void *
887 * include/grub/script_sh.h (struct grub_lexer_param): Add
889 (grub_script_parse): Update prototype. Update all callers to pass
890 appropriate getline data.
891 (grub_script_lexer_init): Likewise.
892 (grub_normal_parse_line): Likewise.
894 * grub-core/commands/legacycfg.c (legacy_file_getline): Add unused
896 * grub-core/kern/parser.c (grub_parser_execute: getline): Make
897 static instead of nested. Rename to ...
898 (grub_parser_execute_getline): ... this.
899 * grub-core/kern/rescue_reader.c (grub_rescue_read_line): Add unused
901 * grub-core/normal/main.c (read_config_file: getline): Make static
902 instead of nested. Rename to ...
903 (read_config_file_getline): ... this.
904 (grub_normal_read_line): Add unused data argument.
905 * grub-core/script/execute.c (grub_script_execute_sourcecode:
906 getline): Make static instead of nested. Rename to ...
907 (grub_script_execute_sourcecode_getline): ... this.
908 * util/grub-script-check.c (main: get_config_line): Make static
911 2013-01-15 Colin Watson <cjwatson@ubuntu.com>
913 Remove nested functions from memory map iterators.
915 * grub-core/efiemu/mm.c (grub_efiemu_mmap_iterate): Add hook_data
916 argument, passed to hook.
917 * grub-core/kern/i386/coreboot/mmap.c
918 (grub_linuxbios_table_iterate): Likewise.
919 (grub_machine_mmap_iterate: iterate_linuxbios_table): Make static
921 (grub_machine_mmap_iterate): Add hook_data argument.
922 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_iterate):
923 Add hook_data argument, passed to hook.
924 * grub-core/kern/i386/pc/mmap.c (grub_machine_mmap_iterate):
926 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
928 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate):
930 * grub-core/kern/mips/arc/init.c (grub_machine_mmap_iterate):
932 * grub-core/kern/mips/loongson/init.c (grub_machine_mmap_iterate):
934 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_mmap_iterate):
936 * grub-core/mmap/efi/mmap.c (grub_efi_mmap_iterate): Likewise.
937 (grub_machine_mmap_iterate): Likewise.
938 * grub-core/mmap/mmap.c (grub_mmap_iterate): Likewise.
939 * include/grub/efiemu/efiemu.h (grub_efiemu_mmap_iterate): Update
941 * include/grub/memory.h (grub_memory_hook_t): Add data argument.
942 Remove NESTED_FUNC_ATTR from here and from all users.
943 (grub_mmap_iterate): Update prototype.
944 (grub_efi_mmap_iterate): Update prototype. Update all callers to
945 pass appropriate hook data.
946 (grub_machine_mmap_iterate): Likewise.
948 * grub-core/commands/acpi.c (grub_acpi_create_ebda: find_hook): Make
949 static instead of nested.
950 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap: hook): Likewise.
952 (lsmmap_hook): ... this.
953 * grub-core/efiemu/mm.c (grub_efiemu_mmap_init: bounds_hook):
955 (grub_efiemu_mmap_fill: fill_hook): Likewise.
956 * grub-core/kern/i386/coreboot/init.c (grub_machine_init:
957 heap_init): Likewise.
958 * grub-core/kern/i386/pc/init.c (grub_machine_init: hook): Likewise.
960 (mmap_iterate_hook): ... this.
961 * grub-core/kern/ieee1275/init.c (grub_claim_heap: heap_init):
963 * grub-core/lib/ieee1275/relocator.c
964 (grub_relocator_firmware_get_max_events: count): Likewise.
965 (grub_relocator_firmware_fill_events: fill): Likewise. Rename
967 (grub_relocator_firmware_fill_events_iter): ... this.
968 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align:
969 hook): Likewise. Rename to ...
970 (grub_relocator_alloc_chunk_align_iter): ... this.
971 * grub-core/loader/i386/bsd.c (generate_e820_mmap: hook): Likewise.
973 (generate_e820_mmap_iter): ... this.
974 * grub-core/loader/i386/linux.c (find_mmap_size: hook): Likewise.
976 (count_hook): ... this.
977 (grub_linux_boot: hook): Likewise. Rename to ...
978 (grub_linux_boot_mmap_find): ... this.
979 (grub_linux_boot: hook_fill): Likewise. Rename to ...
980 (grub_linux_boot_mmap_fill): ... this.
981 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap:
982 hook): Likewise. Rename to ...
983 (grub_fill_multiboot_mmap_iter): ... this.
984 * grub-core/loader/multiboot.c (grub_get_multiboot_mmap_count:
985 hook): Likewise. Rename to ...
986 (count_hook): ... this.
987 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap:
988 hook): Likewise. Rename to ...
989 (grub_fill_multiboot_mmap_iter): ... this.
990 * grub-core/loader/powerpc/ieee1275/linux.c
991 (grub_linux_claimmap_iterate: alloc_mem): Likewise.
992 * grub-core/loader/sparc64/ieee1275/linux.c (alloc_phys: choose):
993 Likewise. Rename to ...
994 (alloc_phys_choose): ... this.
995 (determine_phys_base: get_physbase): Likewise.
996 * grub-core/mmap/i386/mmap.c (grub_mmap_malign_and_register:
997 find_hook): Likewise.
998 * grub-core/mmap/i386/pc/mmap.c (preboot: fill_hook): Likewise.
999 (malloc_hook: count_hook): Likewise.
1000 * grub-core/mmap/i386/uppermem.c (grub_mmap_get_lower: hook):
1001 Likewise. Rename to ...
1002 (lower_hook): ... this.
1003 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1004 (upper_hook): ... this.
1005 (grub_mmap_get_post64: hook): Likewise. Rename to ...
1006 (post64_hook): ... this.
1007 * grub-core/mmap/mips/uppermem.c (grub_mmap_get_lower: hook):
1008 Likewise. Rename to ...
1009 (lower_hook): ... this.
1010 (grub_mmap_get_upper: hook): Likewise. Rename to ...
1011 (upper_hook): ... this.
1012 * grub-core/mmap/mmap.c (grub_mmap_iterate: count_hook): Likewise.
1013 (grub_mmap_iterate: fill_hook): Likewise.
1014 (fill_mask): Pass addr and mask within a single struct.
1015 (grub_cmd_badram: hook): Make static instead of nested. Rename
1017 (badram_iter): ... this.
1018 (grub_cmd_cutmem: hook): Likewise. Rename to ...
1019 (cutmem_iter): ... this.
1021 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1023 * grub-core/kern/emu/hostdisk.c (read_device_map): Explicitly
1024 delimit path in strings using quotes.
1025 * util/getroot.c (grub_guess_root_devices): Likewise.
1026 (grub_make_system_path_relative_to_its_root): Likewise.
1027 * util/grub-probe.c (probe): Likewise.
1028 * util/ieee1275/ofpath.c (find_obppath): Likewise.
1029 (xrealpath): Likewise.
1031 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1033 Fix compilation with older compilers.
1035 * grub-core/Makefile.core.def (mpi): Add mpi-inline.c.
1036 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h: Remove redundant
1038 * grub-core/lib/posix_wrap/string.h: Include sys/types.h.
1039 * grub-core/lib/posix_wrap/sys/types.h: Add common types.
1040 * grub-core/lib/xzembed/xz_dec_lzma2.c (dict_put): Replace byte
1042 * grub-core/lib/xzembed/xz_dec_stream.c (dec_vli): Likewise.
1043 * include/grub/crypto.h: Add type defines.
1044 * util/import_gcrypth.sed: Remove duplicate type defines.
1046 2013-01-13 Vladimir Serbinenko <phcoder@gmail.com>
1048 New command list_trusted.
1050 * grub-core/commands/verify.c (grub_cmd_list): New function.
1052 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
1054 * util/grub-mkimage.c (generate_image): Fix "size of public key"
1057 2013-01-13 Colin Watson <cjwatson@ubuntu.com>
1059 Remove nested functions from PCI iterators.
1061 * grub-core/bus/pci.c (grub_pci_iterate): Add hook_data argument,
1062 passed to hook. Update all callers to pass appropriate hook data.
1063 * grub-core/bus/emu/pci.c (grub_pci_iterate): Likewise.
1064 * include/grub/pci.h (grub_pci_iteratefunc_t): Add data argument.
1065 Remove NESTED_FUNC_ATTR from here and from all users.
1066 (grub_pci_iterate): Update prototype.
1067 * grub-core/bus/cs5536.c (grub_cs5536_find: hook): Make static
1068 instead of nested. Rename to ...
1069 (grub_cs5536_find_iter): ... this.
1070 * grub-core/kern/efi/mm.c (stop_broadcom: find_card): Likewise.
1071 * grub-core/kern/mips/loongson/init.c (init_pci: set_card):
1073 * grub-core/kern/vga_init.c (grub_qemu_init_cirrus: find_card):
1075 * grub-core/video/bochs.c (grub_video_bochs_setup: find_card):
1077 * grub-core/video/cirrus.c (grub_video_cirrus_setup: find_card):
1079 * grub-core/video/efi_uga.c (find_framebuf: find_card): Likewise.
1080 * grub-core/video/radeon_fuloong2e.c
1081 (grub_video_radeon_fuloong2e_setup: find_card): Likewise.
1082 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup:
1083 find_card): Likewise.
1084 * grub-core/video/sm712.c (grub_video_sm712_setup: find_card):
1087 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1089 * grub-core/commands/verify.c: Mark messages for translating.
1091 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1093 * grub-core/lib/libgcrypt_wrap/mem.c (gcry_x*alloc): Make out of memory
1096 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1098 * grub-core/lib/libgcrypt_wrap/mem.c (_gcry_log_bug): Make gcrypt bugs
1101 2013-01-12 Vladimir Serbinenko <phcoder@gmail.com>
1103 * autogen.sh: Do not try to delete nonexistant files.
1104 * util/import_gcrypth.sed: Add some missing header removals.
1106 2013-01-12 Colin Watson <cjwatson@ubuntu.com>
1108 Clean up dangling references to grub-setup.
1109 Fixes Ubuntu bug #1082045.
1111 * docs/grub.texi (Images): Refer generally to grub-install rather
1112 than directly to grub-setup.
1113 (Installing GRUB using grub-install): Remove direct reference to
1115 (Device map) Likewise.
1116 (Invoking grub-install): Likewise.
1117 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
1118 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
1119 * util/grub-install.in (usage): Likewise.
1121 * util/bash-completion.d/grub-completion.bash.in (_grub_setup):
1122 Apply to grub-bios-setup and grub-sparc64-setup rather than to
1124 * configure.ac: Remove grub_setup output variable.
1126 * docs/man/grub-bios-setup.h2m (NAME): Change name from grub-setup
1128 * docs/man/grub-sparc64-setup.h2m (NAME): Change name from
1129 grub-setup to grub-sparc64-setup.
1131 2013-01-11 Vladimir Serbinenko <phcoder@gmail.com>
1133 Import gcrypt public-key cryptography and implement signature checking.
1135 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1137 * grub-core/fs/ntfs.c: Ue more appropriate types.
1138 * grub-core/fs/ntfscomp.c: Likewise.
1139 * include/grub/ntfs.h: Likewise.
1141 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1143 Support Apple FAT binaries on non-Apple platforms.
1145 * include/grub/macho.h (GRUB_MACHO_FAT_EFI_MAGIC): New define.
1146 * include/grub/i386/macho.h (GRUB_MACHO_CPUTYPE_IS_HOST_CURRENT):
1148 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Parse
1151 2013-01-10 Vladimir Serbinenko <phcoder@gmail.com>
1153 * grub-core/kern/disk.c (grub_disk_write): Fix sector number on 4K
1156 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1158 * grub-core/io/bufio.c (grub_bufio_open): Use grub_zalloc instead of
1159 explicitly zeroing elements.
1160 * grub-core/io/gzio.c (grub_gzio_open): Likewise.
1161 * grub-core/io/lzopio.c (grub_lzopio_open): Remove explicit zeroing
1162 of elements in a structure already allocated using grub_zalloc.
1163 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
1165 2013-01-07 Colin Watson <cjwatson@ubuntu.com>
1167 * docs/grub.texi (grub_cpu): New subsection.
1168 (grub_platform): Likewise.
1170 2013-01-07 Vladimir Serbinenko <phcoder@gmail.com>
1172 * grub-core/fs/minix.c (grub_minix_read_file): Simplify arithmetics.
1174 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1176 * grub-core/fs/ext2.c (grub_ext2_read_block): Use shifts rather than
1179 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1181 * grub-core/fs/ntfs.c: Eliminate useless divisions in favor of shifts.
1182 * grub-core/fs/ntfscomp.c: Likewise.
1183 * include/grub/ntfs.h (grub_ntfs_data): Replace spc with log_spc.
1184 (grub_ntfs_comp): Likewise.
1186 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1188 * grub-core/fs/nilfs2.c (-grub_nilfs2_palloc_groups_per_desc_block):
1190 (grub_nilfs2_palloc_log_groups_per_desc_block): ... this. Return log
1191 of groups_per_block. All users updated.
1193 2013-01-05 Vladimir Serbinenko <phcoder@gmail.com>
1195 * grub-core/disk/diskfilter.c (grub_diskfilter_write): Call
1196 grub_error properly.
1197 * grub-core/disk/ieee1275/nand.c (grub_nand_write): Likewise.
1198 * grub-core/disk/loopback.c (grub_loopback_write): Likewise.
1200 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1202 * util/grub.d/10_kfreebsd.in: Correct the patch to zpool.cache as it's
1203 always in /boot/zfs.
1204 Reported by: Yuta Satoh.
1206 2013-01-03 Yuta Satoh <nigoro>
1208 * util/grub.d/10_kfreebsd.in: Fix improper references to grub-probe by
1211 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1213 * configure.ac: Extend -Wno-trampolines to host.
1215 2013-01-03 Vladimir Serbinenko <phcoder@gmail.com>
1217 * grub-core/fs/iso9660.c (grub_iso9660_susp_iterate): Avoid hang if
1220 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1222 * docs/grub.texi (Invoking grub-mkrelpath): New section.
1223 (Invoking grub-script-check): Likewise.
1225 2013-01-03 Colin Watson <cjwatson@ubuntu.com>
1227 * docs/grub.texi (Invoking grub-mount): New section.
1228 Reported by: Filipus Klutiero. Fixes Debian bug #666427.
1230 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1232 * grub-core/tests/lib/test.c (grub_test_run): Return non-zero on
1233 test failures, so that a failing unit test correctly causes 'make
1236 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1238 Fix failing printf test.
1240 * grub-core/kern/misc.c (grub_vsnprintf_real): Parse '-', '.', and
1241 '$' in the correct order when collecting type information.
1243 2013-01-02 Colin Watson <cjwatson@ubuntu.com>
1245 * docs/grub.texi (configfile): Explain environment variable
1247 (source): New section.
1248 Reported by: Arbiel Perlacremaz. Fixes Savannah bug #35564.
1250 2012-12-31 Colin Watson <cjwatson@ubuntu.com>
1252 Remove several trivially-unnecessary uses of nested functions.
1254 * grub-core/commands/i386/pc/sendkey.c
1255 (grub_cmd_sendkey: find_key_code, find_ascii_code): Make static
1257 * grub-core/commands/legacycfg.c (legacy_file: getline): Likewise.
1259 (legacy_file_getline): ... this.
1260 * grub-core/commands/loadenv.c (grub_cmd_load_env: set_var):
1262 * grub-core/kern/corecmd.c (grub_core_cmd_set: print_env): Likewise.
1263 * grub-core/kern/fs.c (grub_fs_probe: dummy_func): Likewise. Rename
1265 (probe_dummy_iter): ... this.
1266 * grub-core/kern/i386/coreboot/mmap.c
1267 (grub_linuxbios_table_iterate: check_signature): Likewise.
1268 * grub-core/kern/parser.c (grub_parser_split_cmdline:
1269 check_varstate): Likewise. Mark inline.
1270 * grub-core/lib/arg.c (find_short: fnd_short): Likewise. Pass
1271 an additional parameter.
1272 (find_long: fnd_long): Likewise. Pass two additional parameters.
1273 * grub-core/lib/crc.c (init_crc32c_table: reflect): Likewise.
1274 * grub-core/lib/crc64.c (init_crc64_table: reflect): Likewise.
1275 * grub-core/lib/ieee1275/cmos.c (grub_cmos_find_port: hook):
1276 Likewise. Rename to ...
1277 (grub_cmos_find_port_iter): ... this.
1278 * grub-core/lib/ieee1275/datetime.c (find_rtc: hook): Likewise.
1280 (find_rtc_iter): ... this.
1282 * grub-core/normal/menu_entry.c (run): Fold nested editor_getsource
1283 function directly into the function body, since it is only called
1286 2012-12-30 Colin Watson <cjwatson@ubuntu.com>
1288 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Remove incorrect
1289 __attribute__ ((unused)).
1290 * grub-core/video/bochs.c (find_card): Likewise.
1291 * grub-core/video/cirrus.c (find_card): Likewise.
1292 * grub-core/video/radeon_fuloong2e.c (find_card): Likewise.
1293 * grub-core/video/sis315pro.c (find_card): Likewise.
1294 * grub-core/video/sm712.c (find_card): Likewise.
1296 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1298 * util/grub-mkconfig.in: Accept GRUB_TERMINAL_OUTPUT=vga_text.
1299 Fixes Savannah bug #37821.
1301 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1303 Apply program name transformations at build-time rather than at
1304 run-time. Fixes Debian bug #696465.
1306 * acinclude.m4 (grub_TRANSFORM): New macro.
1307 * configure.ac: Create output variables with transformed names for
1309 * util/bash-completion.d/grub-completion.bash.in: Use
1310 pre-transformed variables for program names.
1311 * util/grub-install.in: Likewise.
1312 * util/grub-kbdcomp.in: Likewise.
1313 * util/grub-mkconfig.in: Likewise.
1314 * util/grub-mkconfig_lib.in: Likewise.
1315 * util/grub-mknetdir.in: Likewise.
1316 * util/grub-mkrescue.in: Likewise.
1317 * util/grub-mkstandalone.in: Likewise.
1318 * util/grub-reboot.in: Likewise.
1319 * util/grub-set-default.in: Likewise.
1320 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
1321 * tests/util/grub-shell-tester.in: Remove unused assignment.
1322 * tests/util/grub-shell.in: Likewise.
1323 * util/grub.d/00_header.in: Likewise.
1325 2012-12-28 Colin Watson <cjwatson@ubuntu.com>
1327 Backport gnulib fixes for C11. Fixes Savannah bug #37738.
1329 * grub-core/gnulib/stdio.in.h (gets): Warn on use only if
1331 * m4/stdio_h.m4 (gl_STDIO_H): Check for gets.
1333 2012-12-11 Vladimir Serbinenko <phcoder@gmail.com>
1335 * util/grub.d/20_linux_xen.in: Addmissing assignment to machine.
1336 Reported by: Eriks Latosheks <foresterlv>.
1338 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1340 * docs/grub.texi (Network): Update instructions on generating netboot
1343 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1345 * grub-core/disk/cryptodisk.c (grub_cmd_cryptomount): Strip brackets
1346 around device name if necessarry.
1348 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1350 * util/grub-install.in: Follow the symbolic link parameter added
1351 to the file command.
1353 2012-12-10 Andrey Borzenkov <arvidjaar@gmail.com>
1355 * util/grub-install.in: Remove stale TODO.
1357 2012-12-10 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1359 * grub-core/kern/ieee1275/init.c (grub_machine_get_bootlocation): Use
1360 dynamic allocation for the bootpath buffer.
1362 2012-12-10 Dr. Tilmann Bubeck <t.bubeck@reinform.de>
1364 * grub-core/gfxmenu/view.c (init_terminal): Avoid making terminal
1367 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1369 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Get font as
1370 argument rather than font name. All users updated.
1371 (grub_gfxterm_set_window): Likewise.
1373 2012-12-10 Vladimir Testov <vladimir.testov@rosalab.ru>
1375 * util/grub-mkfont.c (argp_parser): Fix a typo which prevented --asce
1378 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1380 * util/getroot.c (convert_system_partition_to_system_disk): Support
1383 2012-12-10 Vladimir Serbinenko <phcoder@gmail.com>
1385 * grub-core/fs/ufs.c (grub_ufs_dir): Stop if direntlen is 0 to avoid
1386 infinite loop on corrupted FS.
1388 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1390 Fix big-endian mtime.
1392 * grub-core/fs/ufs.c (grub_ufs_inode): Split improperly attached
1393 together sec and usec.
1394 (grub_ufs_dir): Use correct byteswapping for UFS time.
1396 2012-12-08 Vladimir Serbinenko <phcoder@gmail.com>
1398 Support big-endian UFS1.
1400 * Makefile.util.def (libgrubmods): Add ufs_be.c
1401 * grub-core/Makefile.core.def (ufs1_be): New module.
1402 * grub-core/fs/ufs_be.c: New file.
1403 * grub-core/fs/ufs.c: Declare grub_ufs_to_le* and use them throughout
1406 2012-11-28 Leif Lindholm <leif.lindholm@arm.com>
1408 * include/grub/types.h: Fix functionality unaffecting typo in
1409 GRUB_TARGET_WORDSIZE conditional macro.
1411 2012-11-28 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
1413 * grub-core/net/bootp.c (parse_dhcp_vendor): Fix double increment.
1415 2012-10-28 Grégoire Sutre <gregoire.sutre@gmail.com>
1417 * util/grub.d/10_netbsd.in: Fix tab indentation and make sure
1418 that /netbsd appears first (when it exists).
1420 2012-10-12 Christoph Junghans <ottxor@gentoo.org>
1422 * grub-core/Makefile.am (moddep.lst): Use $(AWK) rather than awk.
1423 Fixes Savannah bug #37558.
1425 2012-10-12 Colin Watson <cjwatson@ubuntu.com>
1427 * grub-core/commands/configfile.c (GRUB_MOD_INIT): Correct
1428 description of extract_entries_configfile.
1430 2012-10-05 Colin Watson <cjwatson@ubuntu.com>
1432 * grub-core/loader/i386/linux.c (allocate_pages): Fix spelling of
1434 (grub_cmd_linux): Likewise.
1435 * grub-core/net/icmp6.c (struct prefix_option): Fix spelling of
1436 preferred_lifetime. Update all users.
1438 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1440 * Makefile.util.def (grub-mknetdir): Move to $prefix/bin.
1441 Reported by: Daniel Kahn Gillmor. Fixes Debian bug #688799.
1443 2012-09-26 Colin Watson <cjwatson@ubuntu.com>
1445 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Redirect
1446 errors from grub-probe to /dev/null, not stdout.
1448 2012-09-26 Vladimir Serbinenko <phcoder@gmail.com>
1450 * grub-core/fs/affs.c (grub_affs_mount): Support AFFS bootblock in
1453 2012-09-24 Colin Watson <cjwatson@ubuntu.com>
1455 * util/grub-install.in: Make the error message if $source_dir
1456 doesn't exist more useful.
1458 2012-09-22 Colin Watson <cjwatson@ubuntu.com>
1460 Fix grub-emu build on FreeBSD.
1462 * Makefile.util.def (grub-mount): Add LIBGEOM to ldadd.
1463 * grub-core/net/drivers/emu/emunet.c: Only include Linux-specific
1465 (GRUB_MOD_INIT): Return immediately on non-Linux platforms; this
1466 implementation is currently Linux-specific.
1467 * util/getroot.c (exec_pipe): Define only on Linux or when either
1468 libzfs or libnvpair is unavailable.
1469 (find_root_devices_from_poolname): Remove unused path variable.
1471 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1473 * grub-core/partmap/msdos.c (pc_partition_map_embed): Revert
1474 incorrect off-by-one fix from 2011-02-12. A 62-sector core image
1475 should fit before end == 63.
1477 2012-09-19 Colin Watson <cjwatson@ubuntu.com>
1479 * util/grub-setup.c (write_rootdev): Remove unused core_img
1480 parameter. Update all callers.
1481 (setup): Define core_sectors only if GRUB_SETUP_BIOS, to appease
1482 'gcc -Wunused-but-set-variable'. Remove unnecessary nested #ifdef
1485 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1487 * util/grub-mkconfig_lib.in (grub_tab): New variable.
1488 (grub_add_tab): New function.
1489 * util/grub.d/10_hurd.in: Replace \t with $grub_tab orgrub_add_tab.
1490 * util/grub.d/10_illumos.in: Likewise.
1491 * util/grub.d/10_kfreebsd.in: Likewise.
1492 * util/grub.d/10_linux.in: Likewise.
1493 * util/grub.d/10_netbsd.in: Likewise.
1494 * util/grub.d/10_windows.in: Likewise.
1495 * util/grub.d/10_xnu.in: Likewise.
1496 * util/grub.d/20_linux_xen.in: Likewise.
1497 * util/grub.d/30_os-prober.in: Likewise.
1499 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1501 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
1502 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN on mac.
1503 * grub-core/term/ieee1275/console.c (grub_console_init_lately): Use
1504 ieee1275-nocursor if GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN is set.
1505 * grub-core/term/terminfo.c (grub_terminfo_set_current): Add new type
1507 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
1508 GRUB_IEEE1275_FLAG_CURSORONOFF_ANSI_BROKEN.
1510 2012-09-18 Vladimir Serbinenko <phcoder@gmail.com>
1512 * grub-core/loader/i386/linux.c (grub_cmd_linux): Fix incorrect
1514 Reported by: BURETTE, Bernard.
1516 2012-09-17 Colin Watson <cjwatson@ubuntu.com>
1518 * util/grub-mkconfig_lib.in (grub_quote): Remove outdated sentence
1521 2012-09-14 Colin Watson <cjwatson@ubuntu.com>
1523 * grub-core/term/terminfo.c: Only fix up powerpc key repeat on
1524 IEEE1275 machines. Fixes powerpc-emu compilation.
1525 * include/grub/terminfo.h: Likewise.
1527 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1529 * include/grub/efi/api.h (grub_efi_runtime_services): Make vendor_guid
1531 * grub-core/efiemu/runtime/efiemu.c (efiemu_memcpy): Make from a
1533 (efiemu_set_variable): Make vendor_guid a const pointer.
1535 2012-09-12 Vladimir Serbinenko <phcoder@gmail.com>
1537 Don't require grub-mkconfig_lib to generate manpages for programs.
1539 * gentpl.py (manpage): Additional argument adddeps. Add adddeps to
1540 dependencies, don't add grub-mkconfig_lib.
1541 (program): Pass empty adddeps.
1542 (script): Pass grub-mkconfig_lib as adddeps.
1544 2012-09-11 Vladimir Serbinenko <phcoder@gmail.com>
1546 * grub-core/disk/diskfilter.c (free_array) [GRUB_UTIL]: Fix memory leak.
1547 * util/getroot.c (grub_find_device): Likewise.
1548 (get_mdadm_uuid): Likewise.
1549 (grub_util_is_imsm): Likewise.
1550 (grub_util_pull_device): Likewise.
1551 * util/grub-probe.c (probe): Likewise.
1553 2012-09-10 Benoit Gschwind <gschwind>
1555 * grub-core/loader/efi/appleloader.c (devpath_8): New var.
1556 (devs): Add devpath_8.
1558 2012-09-08 Peter Jones <pjones@redhat.com>
1560 * grub-core/Makefile.core.def (efifwsetup): New module.
1561 * grub-core/commands/efi/efifwsetup.c: New file.
1562 * grub-core/kern/efi/efi.c (grub_efi_set_variable): New function
1563 * include/grub/efi/api.h (GRUB_EFI_OS_INDICATIONS_BOOT_TO_FW_UI):
1565 * include/grub/efi/efi.h (grub_efi_set_variable): New proto.
1567 2012-09-05 Jiri Slaby <jslaby@suse.cz>
1569 * configure.ac: Add SuSe path.
1571 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1575 2012-09-05 Colin Watson <cjwatson@ubuntu.com>
1577 * util/import_gcry.py: Sort cipher_files, to make build system
1578 generation more deterministic.
1580 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1582 * grub-core/disk/ieee1275/ofdisk.c (scan): Check function return value.
1583 * grub-core/lib/ieee1275/datetime.c (grub_get_datetime): Likewise.
1584 (grub_set_datetime): Likewise.
1586 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1588 * grub-core/script/yylex.l: Ignore unused-function and sign-compare
1591 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1593 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Add missing byteswap.
1595 2012-09-05 Vladimir Serbinenko <phcoder@gmail.com>
1597 * grub-core/fs/xfs.c (grub_xfs_read_block): Make keys a const pointer.
1599 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1601 * Makefile.am (EXTRA_DIST): Add linguas.sh. It's only strictly
1602 required for checkouts from bzr, but it may be useful for users or
1603 distributors wishing to update translations against a tarball
1604 distribution, and it can be helpful for the tarball to be a superset
1607 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1609 * Makefile.am (EXTRA_DIST): Add
1610 grub-core/tests/boot/linux.init-mips.S,
1611 grub-core/tests/boot/linux.init-ppc.S, and
1612 grub-core/tests/boot/linux-ppc.cfg.
1614 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1616 * grub-core/mmap/mips/loongson: Remove empty directory.
1618 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1620 * docs/man/grub-mkdevicemap.h2m: Remove, since grub-mkdevicemap is
1623 2012-09-04 Colin Watson <cjwatson@ubuntu.com>
1625 * .bzrignore: Add grub-bios-setup, grub-ofpathname, and
1628 2012-08-05 Grégoire Sutre <gregoire.sutre@gmail.com>
1630 * configure.ac: Strengthen the test for working -nostdinc -isystem.
1632 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1634 * po/POTFILES.in: Regenerated.
1636 2012-07-31 Grégoire Sutre <gregoire.sutre@gmail.com>
1638 * docs/grub.texi: Note that NetBSD/i386 is Multiboot-compliant.
1639 (NetBSD): New subsection.
1641 2012-07-22 Ales Nesrsta <starous@volny.cz>
1643 * grub-core/bus/usb/ehci.c: PCI iter. - added PCI bus master setting.
1644 * grub-core/bus/usb/ohci.c: PCI iter. - added PCI bus master setting.
1646 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1648 * util/grub-mkconfig_lib.in (grub_quote): Remove extra layer of escape.
1649 * util/grub.d/10_hurd.in: Add missing quoting.
1650 * util/grub.d/10_illumos.in: Likewise.
1651 * util/grub.d/10_kfreebsd.in: Likewise.
1652 * util/grub.d/10_linux.in: Likewise.
1653 * util/grub.d/20_linux_xen.in: Likewise.
1655 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1657 New command `lsefi'.
1659 * grub-core/Makefile.core.def (lsefi): New module.
1660 * grub-core/commands/efi/lsefi.c: New file.
1661 * include/grub/efi/api.h: Add more GUIDs.
1663 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1665 * grub-core/loader/i386/bsd.c (grub_bsd_elf32_size_hook): Fix mask.
1666 (grub_bsd_elf32_hook): Likewise.
1667 (grub_bsd_elf64_size_hook): Likewise.
1668 (grub_bsd_elf64_hook): Likewise.
1669 (grub_bsd_load_elf): Likewise.
1671 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1673 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Fix behaviour
1674 if hash function is unavailable.
1675 (dec_stream_header): Likewise.
1677 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1679 * grub-core/normal/autofs.c (autoload_fs_module): Save and restore
1682 2012-07-22 Vladimir Serbinenko <phcoder@gmail.com>
1684 Fix coreboot compilation.
1686 * grub-core/term/i386/pc/vga_text.c (grub_vga_text_init): Rename to ...
1687 (grub_vga_text_init_real): ... this.
1688 (grub_vga_text_fini): Rename to ...
1689 (grub_vga_text_fini_real): ... this.
1691 2012-07-07 Vladimir Serbinenko <phcoder@gmail.com>
1693 * grub-core/Makefile.am: Fix path to boot/i386/pc/startup_raw.S.
1695 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1697 * grub-core/lib/legacy_parse.c: Support clear and testload.
1699 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1701 * grub-core/term/efi/serial.c: Support 1.5 stop bits.
1703 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1705 * grub-core/fs/ext2.c: Experimental support for 64-bit.
1707 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1709 * grub-core/net/tftp.c (ack): Fix endianness problem.
1710 (tftp_receive): Likewise.
1711 Reported by: Michael Davidsaver.
1713 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1715 * gentpl.py: Make mans depend on grub-mkconfig_lib.
1717 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1719 * include/grub/list.h (FOR_LIST_ELEMENTS_SAFE): New macro.
1720 * include/grub/command.h (FOR_COMMANDS_SAFE): Likewise.
1721 * grub-core/commands/help.c (grub_cmd_help): Use FOR_COMMANDS_SAFE.
1723 2012-07-02 Vladimir Serbinenko <phcoder@gmail.com>
1725 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Don't decrease
1727 Reported by: Stuart Hayes.
1729 2012-06-28 Vladimir Serbinenko <phcoder@gmail.com>
1731 Add monochrome text support (mda_text, aka `hercules' in grub-legacy).
1733 * grub-core/Makefile.core.def (mda_text): New module.
1734 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Support `hercules'.
1735 * grub-core/term/i386/vga_common.c (grub_console_cur_color): Moved to ..
1736 * grub-core/term/i386/pc/vga_text.c (cur_color): ... here
1737 * grub-core/term/i386/pc/console.c (grub_console_cur_color): ... and
1739 * grub-core/term/i386/vga_common.c (grub_console_getwh): Moved to ..
1740 * grub-core/term/i386/pc/vga_text.c (grub_console_getwh): ... here
1741 * grub-core/term/i386/pc/console.c (grub_console_getwh): ... and
1743 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate): Moved
1745 * grub-core/term/i386/pc/vga_text.c (grub_console_setcolorstate):
1747 * grub-core/term/i386/pc/console.c (grub_console_setcolorstate): ... and
1749 * grub-core/term/i386/vga_common.c: Removed.
1750 * include/grub/i386/vga_common.h: Likewise.
1751 * include/grub/vga.h (grub_vga_cr_bw_write): New function.
1752 (grub_vga_cr_bw_read): Likewise.
1753 * include/grub/vgaregs.h (GRUB_VGA_IO_CR_BW_INDEX): New enum value.
1754 (GRUB_VGA_IO_CR_BW_DATA): Likewise.
1755 * grub-core/term/i386/pc/vga_text.c [MODE_MDA]: Call
1756 grub_vga_cr_bw_read/grub_vga_cr_bw_write instead of
1757 grub_vga_cr_read/grub_vga_cr_write.
1758 (grub_vga_text_setcolorstate) [MODE_MDA]: Ignore color.
1760 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1762 * configure.ac: Bump version to 2.00.
1763 * grub-core/normal/main.c (features): Add feature_200_final.
1765 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1766 2012-06-27 Jordan Uggla <jordan.uggla@gmail.com>
1768 * NEWS: Fix unclarity and language mistakes.
1770 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1772 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Increase
1773 additional size to 3 pages.
1774 Reported by: Stuart Hayes.
1776 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1778 * NEWS: Add 2.00 entry.
1780 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1782 * grub-core/commands/wildcard.c (check_file): Fix bad logic.
1783 put explicit "/" for empty path.
1784 (wildcard_expand): Improve dprintf.
1786 2012-06-27 Vladimir Serbinenko <phcoder@gmail.com>
1788 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Don't free oldnode if
1789 it's equal to currnode. This can happen with "" symlink.
1791 2012-06-27 Yves Blusseau <blusseau@zetam.org>
1793 * util/grub-mkconfig_lib.in: Fix print messages replacing builtin
1794 echo shell command by printf command.
1796 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1798 * grub-core/term/arc/console.c (grub_console_init_output): Add one since
1799 the value returned by firmware is the maximal position, not diumension.
1800 (grub_terminfo_output_state): Use a more sane fallback.
1802 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1804 * grub-core/term/terminfo.c (print_terminfo): Print terminal dimensions.
1806 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1808 * grub-core/kern/mips/arc/init.c (grub_machine_init): Set clock
1809 frequency to 150 MHz.
1811 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1815 * grub-core/lib/i386/relocator16.S: Use correct __APPLE__ and not
1817 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Fix gdtdesc
1819 * grub-core/lib/i386/relocator64.S [__APPLE__]: Assemble jmp manually.
1821 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1823 Handle slash in HFS label.
1825 * grub-core/fs/hfs.c (macroman_to_utf8): New argument slash_translate.
1826 (grub_hfs_dir): Tanslate slash.
1827 (grub_hfs_label): Don't translate slash.
1829 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1831 * grub-core/commands/ls.c (grub_ls_list_devices): Disable
1832 network protocol listing since it introduces problematic dependency on
1835 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1837 * util/grub-mkimage.c (generate_image): Add Yeeloong verified hash.
1839 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1841 Init video early on yeeloong to avoid being rebooted by watchdog.
1843 * grub-core/Makefile.am (gensm712): New target.
1844 (sm712_start.S): Likewise.
1845 (boot/mips/loongson/fwstart.S): Depend on sm712_start.S
1846 * grub-core/boot/mips/loongson/fwstart.S [!FULOONG2F]: Init SM712.
1847 * grub-core/video/sm712.c [GENINIT]: Generate compact init procedure
1849 * include/grub/vga.h: Move registry definitions to...
1850 * include/grub/vgaregs.h: ... here.
1852 2012-06-26 Vladimir Serbinenko <phcoder@gmail.com>
1854 * grub-core/boot/decompressor/minilib.c (grub_memcmp): Fix the compare
1857 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1859 * util/grub-install.in: Fix dvhtool invocation. Add arc to the list of
1860 platforms with firmware disk drivers in the core.
1862 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1864 * grub-core/disk/diskfilter.c (scan_disk) [GRUB_UTIL]: Put more
1865 informative verbose message.
1866 (read_lv): Handle 64-bit segment size.
1868 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1870 * grub-core/disk/lvm.c (grub_lvm_getvalue): Handle 64-bit values.
1872 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1874 * grub-core/fs/fat.c (grub_fat_iterate_dir_next): Don't stop on a space
1875 character but still remove trainling spaces.
1876 (grub_fat_label): Ignore archive flag.
1878 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1880 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Avoid unnecessarry
1881 cast between linux_kernel_header and linux_kernel_params.
1883 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1885 * include/grub/diskfilter.h (grub_raid5_recover_func_t): Use proper
1887 (grub_raid6_recover_func_t): Likewise.
1888 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Likewise.
1889 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
1891 2012-06-25 Vladimir Serbinenko <phcoder@gmail.com>
1893 * util/grub-mkimage.c (generate_image): Add Fuloong2F verified hash.
1895 2012-06-25 Grégoire Sutre <gregoire.sutre@gmail.com>
1899 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size)
1900 [__NetBSD__]: Add explicit cast before bitshift.
1902 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1904 * configure.ac: Bump to 2.00~rc1.
1906 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1908 * grub-core/boot/mips/loongson/fwstart.S: Add missing setting of high
1911 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1912 2012-06-23 Jordan Uggla <jordan.uggla@gmail.com>
1914 * docs/grub.texi: Fix search syntax.
1915 (Multi-boot manual config): Put msdos rather than GPT example.
1916 Grammar corrections.
1918 2012-06-23 Vladimir Serbinenko <phcoder@gmail.com>
1920 * docs/grub.texi (Multi-boot manual config): Use --set. Improve remark.
1922 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1924 * grub-core/kern/mm.c (grub_free): Fix agglomerating of free regions.
1926 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1928 * grub-core/kern/mm.c (get_header_from_pointer): Put a more informative
1929 message on double free. Put the value of magic in case of mismatch.
1931 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1933 Speed-up video on yeeloong.
1935 * grub-core/video/sm712.c (framebuffer): Remove render_target and
1937 (grub_video_sm712_video_fini): Unmap cached_ptr.
1938 (grub_video_sm712_setup): Use cache address and grub_video_fb_setup.
1939 (grub_video_sm712_set_active_render_target): Removed.
1940 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
1941 (grub_video_sm712_swap_buffers): Call grub_video_fb_swap_buffers and
1944 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1946 Avoid flushing the same line multiple times on loongson.
1948 * grub-core/kern/mips/cache.S [GRUB_MACHINE_MIPS_LOONGSON]:
1949 Step in 32 bytes and not 1 byte.
1950 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]:
1953 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1955 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle btrfs
1958 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1960 Implement flow control for http.
1962 * grub-core/net/http.c (parse_line): Handle response 206.
1963 (http_receive): Stall if too many packets are in the queue.
1964 (http_establish): Fix range header.
1965 (http_seek): Fix double free.
1966 (http_close): Likewise.
1967 (http_packets_pulled): New function.
1968 (grub_http_protocol): Set http_seek
1969 * grub-core/net/tcp.c (grub_net_tcp_socket): New field `i_stall'.
1970 (ack_real): Set window depending on i_stall.
1971 (grub_net_send_tcp_packet): Likewise.
1972 (grub_net_tcp_stall): New function.
1973 (grub_net_tcp_unstall): Likewise.
1974 * include/grub/net/tcp.h (grub_net_tcp_stall): New proto.
1975 (grub_net_tcp_unstall): Likewise.
1977 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1979 * grub-core/net/tftp.c: Decrease stall to 50 packets.
1981 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1983 * grub-core/net/net.c (grub_net_fs_open): Free resources on failed open.
1985 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1987 * tests/util/grub-shell.in: Fix a typo.
1989 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
1991 Implement flow control for tftp.
1993 * grub-core/net/net.c (receive_packets): Decrease the stop to 10
1994 packets but stop only if stop condition is satisfied.
1995 (grub_net_fs_read_real): Call packets_pulled after real read. Use
1996 `stall' instead of `eof' as stop condition.
1997 * grub-core/net/http.c (parse_line): Set `stall' on EOF.
1998 (http_err): Likewise.
1999 * grub-core/net/tftp.c (ack): Replace the first argument with data
2001 (tftp_receive): Stall if too many packets are in wait queue.
2002 (tftp_packets_pulled): New function.
2003 (grub_tftp_protocol): Set packets_pulled.
2004 * include/grub/net.h (grub_net_packets): New field count.
2005 (grub_net_put_packet): Increment count.
2006 (grub_net_remove_packet): Likewise.
2007 (grub_net_app_protocol): New field `packets_pulled'.
2008 (grub_net): New field `stall'.
2010 2012-06-22 Vladimir Serbinenko <phcoder@gmail.com>
2012 * grub-core/net/net.c (receive_packets): Stop after 100 packets to let
2013 sync part to handle them.
2015 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2017 * grub-core/kern/main.c (grub_set_prefix_and_root): Fix memory leak.
2018 * grub-core/net/drivers/ieee1275/ofnet.c
2019 (grub_ieee1275_net_config_real): Likewise.
2021 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2023 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Don't create
2024 the direct route for server/gateway.
2026 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2028 * grub-core/net/bootp.c (grub_net_configure_by_dhcp_ack): Prefer
2029 IP address to server name since we may not hame the DNS.
2031 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2033 * grub-core/net/dns.c (grub_cmd_nslookup): Init addresses to 0 to avoid
2034 freeing random buffer on failure.
2035 * grub-core/net/net.c (grub_net_resolve_address): Likewise.
2037 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2039 * grub-core/net/bootp.c (grub_cmd_bootp): Fix packet allocation size.
2041 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2043 * grub-core/net/drivers/emu/emunet.c (get_card_packet): Allocate the
2045 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Likewise.
2046 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Likewise.
2047 Handle malloc error correctly.
2049 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2051 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
2054 2012-06-21 Vladimir Serbinenko <phcoder@gmail.com>
2056 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix double
2059 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2061 * grub-core/net/dns.c (grub_cmd_nslookup): Use configured DNS servers if
2062 none is explicitly specified.
2064 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2066 * grub-core/net/dns.c (grub_net_add_dns_server): Don't erase old servers
2069 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2071 Respect netmask from bootp/dhcp.
2073 * grub-core/net/bootp.c (parse_dhcp_vendor): Parse mask.
2074 (grub_net_configure_by_dhcp_ack): Use mask and grub_net_add_ipv4_local.
2075 * grub-core/net/net.c (grub_net_add_addr): Split creating local route
2077 (grub_net_add_ipv4_local): ... this.
2078 (grub_cmd_addaddr): Use grub_net_add_ipv4_local.
2079 * include/grub/net.h (GRUB_NET_BOOTP_NETMASK): New enum value.
2080 (grub_net_add_ipv4_local): New proto.
2082 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2084 * grub-core/loader/i386/linux.c (grub_linux_boot): Setup video before
2085 determining EFI memory map size.
2087 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2089 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Escape commas.
2091 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2093 * grub-core/kern/main.c (grub_set_prefix_and_root): Skip escaped commas
2094 when looking for partition separator.
2096 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2098 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
2101 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2103 Restructure FAT driver to avoid hook in label reading as it hits a
2106 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_EOF.
2107 * grub-core/fs/fat.c (grub_fat_iterate_context): New struct.
2108 (grub_fat_iterate_dir): Split into ...
2109 (grub_fat_iterate_init): ... this, ...
2110 (grub_fat_iterate_fini): ... this, ...
2111 (grub_fat_iterate_dir_next): ... and this. All users updated.
2113 2012-06-20 Vladimir Serbinenko <phcoder@gmail.com>
2115 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
2116 GRUB_IEEE1275_FLAG_BROKEN_REPEAT.
2117 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
2118 GRUB_IEEE1275_FLAG_BROKEN_REPEAT on PowerBook3,3.
2119 * include/grub/terminfo.h (grub_terminfo_input_state) [__powerpc__]:
2120 New fields last_key and last_key_time.
2121 * grub-core/term/terminfo.c (grub_terminfo_getkey): Transform
2122 extended key-esc into extended key-extended key.
2124 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2126 Avoid unnecessary memcpy of whole video buffer.
2128 * grub-core/video/fb/video_fb.c (dirty): New struct.
2129 (framebuffer): Add members current_dirty and previous_dirty.
2130 (dirty): New function.
2131 (grub_video_fb_fill_rect): Update dirty.
2132 (common_blitter): Likewise.
2133 (grub_video_fb_scroll): Likewise.
2134 (doublebuf_blit_update_screen): Copy only dirty part.
2135 (doublebuf_pageflipping_update_screen): Likewise.
2136 (grub_video_fb_doublebuf_blit_init): Init dirty.
2137 (doublebuf_pageflipping_init): Likewise.
2138 (grub_video_fb_setup): Likewise.
2140 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2142 * grub-core/net/drivers/ieee1275/ofnet.c (search_net_devices): Decrease
2145 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2147 Fix wildcard regexp dot and other special characters handling.
2148 Reported by: Robert Mabee.
2150 * grub-core/commands/wildcard.c (isregexop): Add "|+{}[]?".
2151 (make_regex): Escape "|+{}[]". Transform '?' to '.?'.
2152 (split_path): Trigger expansion on '?'.
2153 (unescape): New function.
2154 (wildcard_expand): Unescape parts copied without globbing.
2155 * grub-core/script/execute.c (wildcard_escape): Escape '?'.
2156 (grub_script_arglist_to_argv): Don't unescape expansions.
2158 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2160 * include/grub/net.h (grub_net_card): New member txbufsize.
2161 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum values
2162 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2163 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN.
2164 * grub-core/net/drivers/efi/efinet.c (grub_efinet_findcards): Use
2166 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Use
2167 compatible property to check for macs. Set
2168 GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX and
2169 GRUB_IEEE1275_FLAG_VIRT_TO_REAL_BROKEN on macs.
2170 * grub-core/net/drivers/ieee1275/ofnet.c (card_open): Don't add suffix
2171 if GRUB_IEEE1275_FLAG_NO_OFNET_SUFFIX is set.
2172 (send_card_buffer): Use txbuf.
2173 (grub_ofnet_findcards): Allocate txbuf. Simplify code flow and move
2174 nested function out of the parent while on it.
2176 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2178 * grub-core/net/drivers/ieee1275/ofnet.c (get_card_packet): Fix packet
2180 (grub_ieee1275_net_config_real): Fix config pointer.
2182 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2184 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Extend
2185 filename parsing to non-block devices.
2187 2012-06-19 Vladimir Serbinenko <phcoder@gmail.com>
2189 * grub-core/kern/device.c (grub_device_open): Remove dead code.
2191 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2193 * include/grub/elf.h: Rename R_PPC to GRUB_R_PPC to avoid collisions.
2196 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2198 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Generate
2199 UUID search command even if hints probing failed.
2201 2012-06-18 Vladimir Serbinenko <phcoder@gmail.com>
2203 * po/POTFILES.in: Regenerated.
2205 2012-06-17 Vladimir Serbinenko <phcoder@gmail.com>
2207 Speed-up video on fuloong.
2209 * grub-core/bus/bonito.c (grub_pci_device_map_range_cached):
2211 (grub_pci_device_unmap_range): Handle non-cached address.
2212 * grub-core/video/sis315pro.c (framebuffer): Remove render_target and
2214 (grub_video_sis315pro_video_fini): Unmap direct_ptr.
2215 (grub_video_sis315pro_setup): Use cache address and grub_video_fb_setup.
2216 (grub_video_sis315pro_set_active_render_target): Removed.
2217 (grub_video_sis315pro_get_info_and_fini): Use uncached address.
2218 (grub_video_adapter): Use grub_video_fb_set_active_render_target.
2219 (grub_video_sis315pro_swap_buffers): Call grub_video_fb_swap_buffers and
2221 * include/grub/mips/loongson/pci.h (grub_pci_device_map_range_cached):
2224 2012-06-16 Vladimir Serbinenko <phcoder@gmail.com>
2226 * docs/grub.texi (Multi-boot manual config): New section.
2228 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2230 Avoid slow read-back from VRAM.
2232 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
2234 * grub-core/video/fb/video_fb.c
2235 (grub_video_fb_doublebuf_update_screen_t): ... here. Remove arguments.
2236 * grub-core/video/fb/video_fb.c (framebuf_t): New type.
2237 (front_target): Remove front_target. Add pages.
2238 (grub_video_fb_init): Skip setting front_pages.
2239 (grub_video_fb_fini): Likewise.
2240 (doublebuf_blit_update_screen): Use pages.
2241 (grub_video_fb_doublebuf_blit_init): Likewise.
2242 (doublebuf_pageflipping_init): Allocate offscreen buffer.
2243 (doublebuf_pageflipping_update_screen): Use offscreen buffer.
2244 (grub_video_fb_setup): Prefer doublebuffing.
2246 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2248 * grub-core/normal/main.c (GRUB_MOD_INIT): Ignore errors when loading
2251 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2255 * tests/util/grub-shell.in: Handle loongson.
2256 * tests/partmap_test.in: Add loongson to the list of platform using ATA
2258 * grub-core/tests/boot/linux.init-mips.S (SHUTDOWN_MAGIC3) [REBOOT]:
2259 Reboot instead of shutdown if REBOOT is defined.
2261 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2263 * grub-core/lib/mips/loongson/reboot.c (grub_reboot): Use 32-bit
2264 sized ports since unlike on real hardware qemu supports only 32-bit
2267 2012-06-15 Vladimir Serbinenko <phcoder@gmail.com>
2269 * Makefile.util.def (grub-mkrescue): Enable on loongson.
2270 * util/grub-mkrescue.in: Handle loongson.
2272 2012-06-14 Vladimir Serbinenko <phcoder@gmail.com>
2274 * util/getroot.c (convert_system_partition_to_system_disk) [__APPLE__]:
2275 Set is_part appropriately.
2276 (grub_util_biosdisk_get_grub_dev): Use is_part rather than comparing
2277 names. Canonicalize partition without full disk.
2279 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2281 Revert usb-quiesce since it's wrong.
2283 * grub-core/disk/ieee1275/ofdisk.c (quiesce): Removed.
2284 (grub_ofdisk_init): Don't do quiesce.
2286 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2288 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Apply
2289 PowerMac workaround to Xserves as well.
2290 Information supplied by: Benjamin Herrenschmidt.
2292 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2294 Don't assume that beginning address is also the entry point on ppc.
2296 * grub-core/loader/powerpc/ieee1275/linux.c (linux_entry): New variable.
2297 (grub_linux_boot): Use linux_entry.
2298 (grub_linux_load32): Fill linux_entry. Fix setting linux_addr.
2299 (grub_linux_load64): Likewise.
2301 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2303 * util/grub-install.in: Fix cross-disk check on non-PreP machines.
2305 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2307 * grub-core/term/ieee1275/console.c (grub_console_fini): Don't
2308 needlessly lose the console.
2310 2012-06-13 Vladimir Serbinenko <phcoder@gmail.com>
2312 * grub-core/normal/dyncmd.c (read_command_list): Don't access freed
2315 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2317 Remove non-functional EFI grub_get_rtc. Put a better fatal message
2318 than current grub_get_rtc() not implemented when booted with
2319 coreboot without TSC.
2321 * grub-core/Makefile.am: Exclude efi/time.h from kernel headers.
2322 Add machine/time.h to kernel headers on loongson.
2323 * grub-core/Makefile.core.def (kernel): Remove
2324 kern/generic/rtc_get_time_ms.c on qemu-multiboot-coreboot.
2325 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms): Removed.
2326 (grub_get_rtc): Likewise.
2327 * grub-core/kern/generic/rtc_get_time_ms.c: Include grub/machine/time.h.
2328 * grub-core/kern/i386/coreboot/init.c (grub_get_rtc): Removed.
2329 * grub-core/kern/i386/pc/init.c: Include grub/machine/init.h.
2330 * grub-core/kern/i386/tsc.c (grub_tsc_init)
2331 [!GRUB_MACHINE_PCBIOS && !GRUB_MACHINE_IEEE1275]: Call grub_fatal
2332 rather than installing known non-working time source.
2333 * grub-core/kern/ieee1275/init.c (grub_get_rtc): Removed.
2334 * grub-core/kern/mips/loongson/init.c: Include grub/machine/time.h.
2335 * include/grub/time.h: Don't include machine/time.h.
2336 * include/grub/efi/time.h: Removed.
2337 * include/grub/i386/efi/time.h: Likewise.
2338 * include/grub/i386/ieee1275/time.h: Likewise.
2339 * include/grub/powerpc/ieee1275/time.h: Likewise.
2340 * include/grub/sparc64/ieee1275/time.h: Likewise.
2341 * include/grub/x86_64/efi/time.h: Likewise.
2343 2012-06-11 Vladimir Serbinenko <phcoder@gmail.com>
2345 Remove dot on i and j when combining with above diacritics.
2347 * include/grub/unicode.h (GRUB_UNICODE_DOTLESS_LOWERCASE_I): New enum
2349 (GRUB_UNICODE_DOTLESS_LOWERCASE_J): Likewise.
2350 * grub-core/font/font.c (grub_font_construct_dry_run): Replace i and j
2351 with dotless variants when any combining above is present.
2353 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2355 * tests/grub_script_expansion.in: Explicitly tell grep that we handle
2356 text and not binary.
2358 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2360 Stop polling as soon as we have the packet we were waiting for.
2362 * include/grub/net.h (grub_net_poll_cards): New argument stop_condition.
2364 * grub-core/net/arp.c (have_pending): New var.
2365 (pending_req): Likewise.
2366 (grub_net_arp_send_request): Fill pending_req and use have_pending as
2368 (grub_net_arp_receive): Set have_pending.
2369 * grub-core/net/dns.c (recv_data): New field stop.
2370 (recv_hook): Set stop.
2371 (grub_net_dns_lookup): Init stop and use as stop condition.
2372 * grub-core/net/http.c (http_establish): Use headers_recv as stop
2374 * grub-core/net/net.c (grub_net_poll_cards): New argument
2375 stop_condition. Stop when it goes true.
2376 * grub-core/net/tcp.c (grub_net_tcp_open): Use `established' as stop
2378 * grub-core/net/tftp.c (tftp_open): Use `have_oack' as stop indicator.
2380 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2382 Keep TX and RX buffers on EFI rather than always allocate new ones.
2384 * include/grub/net.h (grub_net_card_driver): Allow driver to modify
2385 card. All users updated.
2386 (grub_net_card): New members txbuf, rcvbuf, rcvbufsize and txbusy.
2387 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Reuse buffer.
2388 (get_card_packet): Likewise.
2389 (grub_efinet_findcards): Init new fields.
2391 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2393 * grub-core/term/ieee1275/serial.c (do_real_config): Fix cast to fix
2394 compilation error on sparc64.
2396 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2398 Use ITC on IA64 rather than broken routine based on daytime.
2400 * grub-core/kern/efi/efi.c (grub_rtc_get_time_ms) [__ia64__]: Remove on
2402 (grub_get_rtc) [__ia64__]: Likewise.
2403 * grub-core/kern/ia64/efi/init.c (divisor): New variable.
2404 (get_itc): New function.
2405 (grub_rtc_get_time_ms): Likewise.
2406 (grub_machine_init): Calibrate ITC.
2407 * include/grub/efi/time.h (grub_get_rtc), (GRUB_TICKS_PER_SECOND):
2408 Keep only on non-ia64. Don't export since it's broken and used only
2409 if TSC is unavailable.
2411 2012-06-09 Vladimir Serbinenko <phcoder@gmail.com>
2413 * grub-core/disk/efi/efidisk.c (find_parent_device): Return the parent
2415 (name_devices): Replace #if 0 with #ifdef DEBUG_NAMES.
2416 Skip if parent is unused.
2418 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2420 * tests/partmap_test.in: Skip on ppc due to serious firmware bug.
2422 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2424 Fix wildcard escaping.
2426 * grub-core/commands/wildcard.c (wildcard_escape): Moved from here ...
2427 * grub-core/script/execute.c (wildcard_escape): .. to here.
2429 * grub-core/commands/wildcard.c (wildcard_unescape): Moved from here ...
2430 * grub-core/script/execute.c (wildcard_unescape): .. to here.
2432 * grub-core/script/execute.c (gettext_append): Always escape.
2433 (grub_script_arglist_to_argv): Always handle escaping/unescaping.
2434 * grub-core/script/yylex.l: Don't cut away the escaping.
2435 * tests/grub_script_echo1.in: Add tests with wildcard.
2437 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2439 * grub-core/bus/usb/serial/ftdi.c (real_config): Handle 1.5 stop bits.
2440 (ftdi_hw_configure): Likewise.
2441 * grub-core/bus/usb/serial/pl2303.c (GRUB_PL2303_STOP_BITS_1_5): New
2443 (real_config): Handle 1.5 stop bits.
2444 (pl2303_hw_configure): Likewise.
2446 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2448 * Makefile.am: Add ppc linux bootcheck.
2449 * grub-core/tests/boot/linux-ppc.cfg: New file.
2450 * grub-core/tests/boot/linux.init-ppc.S: Likewise.
2452 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2454 * tests/grub_script_expansion.in: Skip network protocols.
2456 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2458 * tests/util/grub-shell.in: Use escc-ch-a port on ppc.
2460 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2462 * util/powerpc/ieee1275/grub-mkrescue.in: Handle (and ignore)
2466 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2468 ESCC serial driver for conducting sautomated tests in qemu.
2469 Not tested on real hardware.
2471 * include/grub/serial.h (grub_serial_port): New field escc_desc.
2472 * grub-core/term/ieee1275/escc.c: New file.
2473 * grub-core/Makefile.core.def (escc): New module.
2475 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2477 * grub-core/term/ieee1275/serial.c (do_real_config): Set handle to
2479 (serial_hw_fetch): Don't read invalid handle.
2480 (serial_hw_put): Don't write into invalid handle.
2482 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2484 Add a 1.5 stop bits value.
2486 * grub-core/term/serial.c (grub_cmd_serial): Handle 1.5.
2487 * include/grub/serial.h (grub_serial_stop_bits_t): Add
2488 GRUB_SERIAL_STOP_BITS_1_5.
2490 2012-06-08 Vladimir Serbinenko <phcoder@gmail.com>
2492 * grub-core/commands/wildcard.c (wildcard_expand): Set default return
2493 value rather than let it uninited.
2495 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2497 * grub-core/commands/wildcard.c (+check_file): New function.
2498 (wildcard_expand): Don't expand to non-existing files, expand with
2499 suffix and not attempt to expand if not needed.
2501 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2503 * grub-core/disk/efi/efidisk.c (name_devices): Don't make disks
2504 out of partitions containing other partitions.
2506 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2508 Pass PCIINFO on BIOS to OpenBSD since otherwise it fails to boot
2509 on some qemu versions with GRUB.
2511 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_PCIBIOS): New
2513 (grub_openbsd_bootarg_pcibios): New struct.
2514 * grub-core/loader/i386/bsd.c (grub_openbsd_boot) [GRUB_MACHINE_PCBIOS]:
2517 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2519 * tests/util/grub-shell.in: Trim firmware output on EFI.
2521 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2523 * grub-core/Makefile.core.def (vga_text): Disable on muliboot
2524 and coreboot since it's already in kernel.
2526 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2528 * util/getroot.c (grub_util_get_dm_node_linear_info): Moved from here...
2529 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
2530 to here. New return value start. All users updated.
2531 Recursively scan linear mappings.
2532 * include/grub/emu/hostdisk.h (grub_util_get_dm_node_linear_info): New
2534 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
2535 Use grub_util_get_dm_node_linear_info.
2536 * util/getroot.c (convert_system_partition_to_system_disk): Use
2537 grub_util_info rather than grub_dprintf.
2538 (grub_util_biosdisk_get_grub_dev): Add a new grub_util_info.
2540 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2542 Move handling of GRUB_QEMU_OPTS to grub-shell so that make check works.
2544 * Makefile.am: Remove GRUB_QEMU_OPTS handling.
2545 * tests/util/grub-shell.in: Add GRUB_QEMU_OPTS handling.
2547 2012-06-07 Vladimir Serbinenko <phcoder@gmail.com>
2549 * include/grub/types.h (grub_set_unaligned64): New function.
2550 * util/grub-setup.c (write_rootdev): Use unaligned access functions.
2553 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2555 * grub-core/disk/ieee1275/ofdisk.c (quiesce): New function.
2556 (grub_ofdisk_fini): Quiesce USB devices.
2558 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2560 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_boot): Sync
2563 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2565 * util/grub-fstest.c (cmd_crc): Use grub_get_unaligned32 for safety.
2567 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2569 * grub-core/disk/pata.c (grub_pata_pio_read)
2570 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't byteswap even on mipseb.
2571 (grub_pata_pio_write) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
2573 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2575 Extend automated tests to qemu-mips.
2577 * Makefile.am: reorganise tests and enable qemu-mips.
2578 * configure.ac (COND_mipseb), (COND_mipsel): New conditions.
2579 * grub-core/tests/boot/linux.init-mips.S: New file.
2580 * tests/partmap_test.in: Handle ata0 disks.
2581 * tests/util/grub-shell.in: Handle qemu-mips. Make defaults work on
2584 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2586 * Makefile.util.def (grub-mkrescue) Anable on mips_qemu_mips and
2588 * util/grub-mkrescue.in: Handle qemu-mips and ia64. Add missing
2591 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2593 * grub-core/kern/mips/qemu_mips/init.c (grub_exit): Implement.
2594 (grub_halt): Likewise.
2595 * grub-core/lib/mips/qemu_mips/reboot.c (grub_reboot): Likewise.
2597 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2599 * grub-core/term/serial.c (grub_serial_register)
2600 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't autostart console in order to bring
2601 the behaviour in line with x86 platforms.
2603 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2605 * grub-core/commands/hdparm.c (le16_to_char): Always byte-swap strings.
2606 (grub_ata_strncpy): Likewise.
2607 (grub_ata_identify): Add missing byteswaps.
2609 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2611 * grub-core/term/i386/pc/vga_text.c (screen_write_char): Add missing
2613 (screen_read_char): Likewise.
2614 (grub_vga_text_cls): Likewise.
2616 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2618 * grub-core/loader/efi/chainloader.c (copy_file_path): Handle non-ASCII
2620 (make_file_path): Likewise.
2622 2012-06-06 Vladimir Serbinenko <phcoder@gmail.com>
2624 * grub-core/disk/ieee1275/ofdisk.c (scan): Support vscsi on IBM
2626 Tested by: Paulo Flabiano Smorigo.
2627 Crucial information about API supplied by: Coleen <Last name unknown>.
2628 Reviewed by: Coleen <Last name unknown>.
2630 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2632 * util/grub-mkimage.c: Disable -Wcast-align.
2634 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2636 * grub-core/genmod.sh.in: Enable objconv errors 2030, 2050 and 2031
2639 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2641 * grub-core/Makefile.am (rs_decoder.S): Add missing -ffreestanding.
2643 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2645 * util/grub-probe.c (escape_of_path): Fix double free.
2647 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2649 * grub-core/commands/videoinfo.c (hook): Show pitch.
2651 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2653 * util/grub.d/20_linux_xen.in: Skip xen-syms.
2655 2012-06-05 Vladimir Serbinenko <phcoder@gmail.com>
2657 * util/grub-probe.c (escape_of_path): Don't add ieee1275/.
2658 (probe): Add ieee1275 to OFW devices.
2660 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2662 * util/ieee1275/ofpath.c (of_path_of_scsi): Fix wrong format specifier.
2664 2012-06-04 Vladimir Serbinenko <phcoder@gmail.com>
2666 Handle IBM OFW path.
2668 * util/ieee1275/ofpath.c (find_obppath): Use devspec if obppath isn't
2670 (of_path_of_scsi): Handle vdevice.
2672 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2674 * grub-core/mmap/i386/pc/mmap.c (malloc_hook):
2675 Allocate in multiples of 16 to avoid adding a few bytes free region the
2678 2012-06-03 Vladimir Serbinenko <phcoder@gmail.com>
2680 * grub-core/commands/i386/pc/drivemap.c (install_int13_handler):
2681 Allocate in multiples of 16 to avoid adding a few bytes free region the
2683 * grub-core/mmap/i386/pc/mmap.c (malloc_hook): Likewise.
2685 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2687 * grub-core/video/efi_gop.c (grub_video_gop_setup): Reject invalid
2689 * grub-core/video/i386/pc/vbe.c (grub_vbe_get_preferred_mode): Likewise.
2690 * grub-core/video/video.c (grub_video_edid_preferred_mode): Likewise.
2692 2012-06-02 Isao Shimizu <isaoshimizu@gmail.com>
2694 * util/ieee1275/ofpath.c (check_sas): Fix sas path.
2696 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2698 * grub-core/normal/menu_entry.c (print_line): Fix off-by-one error which
2699 resulted in \\ at the end of the line.
2701 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2703 * grub-core/kern/parser.c (grub_parser_state_transitions): Handle \t.
2704 (grub_parser_cmdline_state): Likewise.
2705 (grub_parser_split_cmdline): Likewise.
2707 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2709 * util/getroot.c (grub_guess_root_devices): Don't canonicalise
2710 /dev/root and /dev/dm-*.
2712 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2714 * grub-core/normal/menu_entry.c (update_screen): Fix loop condition to
2715 fix partially stale display.
2717 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2719 * grub-core/normal/menu_entry.c (backward_char): Use right line for
2722 2012-06-02 Vladimir Serbinenko <phcoder@gmail.com>
2724 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write) [__linux__]:
2725 Fix MBR remapping workaround.
2726 (grub_util_biosdisk_read) [__linux__]: Likewise.
2728 2012-06-01 Vladimir Serbinenko <phcoder@gmail.com>
2730 * util/grub-install.in: Check for ieee1275 and not ieee1276.
2732 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2734 * configure.ac: Bump to beta6.
2736 2012-05-31 Christer Weinigel <christer@weinigel.se>
2738 * grub-core/normal/main.c (grub_file_getline): Fix off-by-one error.
2740 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2742 * grub-core/loader/i386/linux.c (grub_linux_boot): Use right version.
2743 (grub_cmd_linux): Likewise.
2745 2012-05-31 Christer Weinigel <christer@weinigel.se>
2749 * grub-core/bus/usb/ehci.c (GRUB_EHCI_MULT_ONE): Fix the value.
2750 (GRUB_EHCI_MULT_TWO): Likewise.
2751 (GRUB_EHCI_MULT_THREE): Likewise.
2752 (GRUB_EHCI_CMASK_MASK): New enum value.
2753 (GRUB_EHCI_SMASK_MASK): Likewise.
2754 (GRUB_EHCI_CMASK_OFF): Likewise.
2755 (GRUB_EHCI_SMASK_OFF): Likewise.
2756 (grub_ehci_pci_iter): Enable periodic schedule.
2757 (grub_ehci_parse_notrun): Likewise.
2758 (grub_ehci_restore_hw): Likewise.
2759 (grub_ehci_setup_qh): Set flags for low speed transfers.
2760 (grub_ehci_find_qh): Use periodic list for low speed.
2761 (grub_ehci_setup_transfer): Check periodic queue as well.
2762 (grub_ehci_check_transfer): Likewise.
2763 (grub_ehci_cancel_transfer): Cancel periodic transfer.
2765 2012-05-31 Paulo Flabiano Smorigo <pfsmorigo@br.ibm.com>
2767 * util/grub-install.in: Write core.elf in PReP even if the --no-nvram
2770 2012-05-31 Peter Jones <pjones@redhat.com>
2772 * include/grub/i386/linux.h (linux_kernel_params): Add v206.
2773 * grub-core/loader/i386/linux.c (grub_linux_boot): Use v206.
2774 (grub_cmd_linux) [__x86_64__]: Validate grub_efi_system_table.
2776 2012-05-31 Vladimir Serbinenko <phcoder@gmail.com>
2778 * grub-core/loader/i386/linux.c (grub_linux_boot): Fix overflow and
2779 uninited variable. Allocate at least setup_sects.
2781 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2783 Fix handling of EFI with big memory maps.
2785 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_OFFSET): Removed.
2786 (real_mode_mem): Likewise.
2787 (real_mode_target): Likewise.
2788 (real_mode_pages): Likewise.
2789 (prot_mode_pages): Likewise.
2790 (linux_params): New var.
2791 (linux_cmdline): Likewise.
2792 (free_pages): Don't set real mode variables.
2793 (allocate_pages): Don't allocate real mode memory.
2794 (grub_e820_add_region): Remove the limit.
2795 (grub_linux_boot): Allocate and copy real mode memory.
2796 (grub_linux_unload): Free linux_cmdline.
2797 (grub_cmd_linux): Use temporary storage for parameters.
2798 (grub_cmd_initrd): Likewise.
2799 * include/grub/i386/linux.h (GRUB_E820_MAX_ENTRY): Removed.
2800 (linux_kernel_params): Make it 1K big.
2802 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2804 * Makefile.util.def: Remove -Wno-format.
2805 * grub-core/Makefile.core.def: Likewise.
2807 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2809 * tests/cmp_unit_test.c: Add missing failure message.
2810 * tests/example_unit_test.c: Likewise.
2811 * tests/printf_unit_test.c: Likewise.
2813 2012-05-30 Vladimir Serbinenko <phcoder@gmail.com>
2815 * grub-core/commands/gptsync.c (grub_cmd_gptsync): Propagate the
2816 relaxation of protective MBR requirements.
2818 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2820 * configure.ac: Add condition for COND_HOST_XNU.
2821 * Makefile.util.def (10_xnu): New script.
2822 * util/grub.d/10_xnu.in: New file, extracted from 30_os_prober.in.
2824 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2826 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Add a workaround for
2829 2012-05-29 Vladimir Serbinenko <phcoder@gmail.com>
2831 * grub-core/gdb/i386/machdep.S: Make usable with Apple assembler.
2832 Binary on other platforms stays identical.
2834 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2836 * configure.ac: Remove APPLE_CC and add -Wl,-allow_stack_execute on
2839 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2841 * gentpl.py: Ignore error 2022 in objconv since it's irrelevant for us.
2843 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2845 * grub-core/lib/posix_wrap/sys/types.h [__APPLE__]: Include stddef
2846 rather than defining size_t ourselves to avoid conflict.
2848 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2850 * grub-core/fs/hfs.c (grub_hfs_dir): Use memset instead of
2851 initialisation to avoid __bzero reference.
2853 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2855 * grub-core/boot/i386/pc/startup_raw.S [__APPLE__]: Add Apple assembly
2857 * grub-core/commands/i386/pc/drivemap_int13h.S [__APPLE__]: Likewise.
2858 * grub-core/kern/i386/pc/startup.S [__APPLE__]: Likewise.
2859 * grub-core/lib/i386/relocator16.S [__APPLE__]: Likewise.
2860 * grub-core/lib/i386/relocator_common.S [__APPLE__]: Likewise.
2861 * grub-core/mmap/i386/pc/mmap_helper.S [__APPLE__]: Likewise.
2863 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2865 * grub-core/efiemu/runtime/efiemu.c: Replace APPLE_CC with __APPLE__.
2866 * grub-core/kern/misc.c: Likewise.
2867 * grub-core/loader/i386/xnu.c: Likewise.
2868 * include/grub/i386/tsc.h: Likewise.
2869 * include/grub/symbol.h: Likewise.
2871 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2873 * include/grub/list.h (grub_bad_type_cast_real): Remove return.
2874 * include/grub/misc.h (ATTRIBUTE_ERROR): Make into noreturn attribute
2877 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2879 * util/getroot.c (grub_util_biosdisk_get_grub_dev) [__APPLE__]:
2880 Implement Apple flavour.
2881 (convert_system_partition_to_system_disk) [__APPLE__]: Likewise.
2883 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2885 * include/grub/misc.h (memcmp) [__APPLE__]: Mark as regparm 0.
2886 (memmove) [__APPLE__]: Likewise.
2887 (memcpy) [__APPLE__]: Likewise.
2888 (memset) [__APPLE__]: Likewise.
2889 * grub-core/kern/misc.c (memcmp) [__APPLE__]: Likewise.
2890 (memmove) [__APPLE__]: Likewise.
2891 (memcpy) [__APPLE__]: Likewise.
2892 (memset) [__APPLE__]: Likewise.
2894 2012-05-28 Vladimir Serbinenko <phcoder@gmail.com>
2896 * grub-core/genmod.sh.in: Fix a bug in Apple part which caused
2899 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2901 * grub-core/normal/main.c (read_config_file): Provide config_file and
2903 * util/grub.d/41_custom.in: Use config_directoy when available.
2905 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2907 * grub-core/fs/bfs.c (iterate_in_b_tree): Add missing NESTED_FUNC_ATTR.
2908 (grub_bfs_dir): Likewise.
2910 2012-05-27 Peter Jones <pjones@redhat.com>
2912 The old code gives arguments to a printf function which can't work
2913 correctly, and the compiler complains.
2915 * grub-core/tests/example_functional_test.c (example_test): Add
2917 * grub-core/tests/lib/test.c (add_failure): Rewrite.
2918 * include/grub/test.h (grub_test_assert_helper): New declaration.
2919 (grub_test_assert): Use grub_test_assert_helper.
2921 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2923 * grub-core/Makefile.core.def (example_functional_test): Rename to ...
2924 (exfctest): ... this to avoid overlong filenames.
2927 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2929 Handle "." and ".." on squashfs.
2931 * grub-core/fs/squash4.c (grub_fshelp_node): New field stsize.
2932 Make inode numbers into stack.
2933 (grub_squash_read_symlink): Use stack.
2934 (grub_squash_iterate_dir): Use stack. Create "." and ".." nodes.
2935 (make_root_node): Fill stack.
2936 (grub_squash_open): Use stack.
2938 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2940 * grub-core/kern/emu/hostdisk.c (open_device): Set dest->dev to 0 after
2943 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2945 * util/grub-mkconfig_lib.in (print_option_help): Properly redirect
2946 stderr on test calls.
2948 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2950 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle "." and "..".
2952 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2954 * grub-core/fs/ntfs.c (list_file): Set mtime to correct value.
2956 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2958 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't skip "." and
2961 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2963 * grub-core/fs/hfsplus.c (grub_hfsplus_catfile): New field parentid.
2964 (grub_hfsplus_iterate_dir): Add "." and "..".
2966 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2968 * grub-core/fs/cpio.c (canonicalize): Handle "..".
2969 (grub_cpio_find_file) [MODE_USTAR]: Handle hardlinks.
2971 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2973 * grub-core/fs/btrfs.c (GRUB_BTRFS_ITEM_TYPE_INODE_REF): New enum value.
2974 (find_path): Handle "." and "..".
2976 2012-05-27 Vladimir Serbinenko <phcoder@gmail.com>
2978 * grub-core/fs/affs.c (grub_affs_file): New field hardlink.
2979 (GRUB_AFFS_FILETYPE_HARDLINK): New enum value.
2980 (grub_affs_iterate_dir): Handle hardlinks.
2982 2012-05-26 Matthew Garrett <mjg@redhat.com>
2984 * grub-core/term/efi/console.c (grub_efi_console_init): Set text mode.
2985 (grub_efi_console_fini): Likewise.
2986 * grub-core/video/efi_gop.c (framebuffer): New field offscreen.
2987 (grub_video_gop_fill_mode_info): Rename to ...
2988 (grub_video_gop_fill_real_mode_info): ... this.
2989 (grub_video_gop_fill_mode_info): New function.
2990 (grub_video_gop_setup): Setup double framebuffer.
2991 (grub_video_gop_get_info_and_fini): Use original framebuffer.
2993 (grub_video_gop_swap_buffers): Copy framebuffer.
2994 (grub_video_gop_fini): Free offscreen buffer.
2995 * include/grub/efi/graphics_output.h (grub_efi_gop_blt_operation_t):
2997 (grub_efi_gop_blt_pixel): New struct.
2999 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3001 * gentpl.py: Remove error disabling for objconv.
3003 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3005 * configure.ac: Remove -Wunitialized as it's not available on older
3008 2012-05-26 Vladimir Serbinenko <phcoder@gmail.com>
3010 Fix extent overflow comparator.
3012 * grub-core/fs/hfsplus.c (grub_hfsplus_extkey_internal): Add type.
3013 (grub_hfsplus_read_block): Set type.
3014 (grub_hfsplus_cmp_extkey): Compare type.
3016 2012-05-25 Vladimir Serbinenko <phcoder@gmail.com>
3018 * util/grub-fstest.c (cmd_cmp): Fix stat'ing of wrong file.
3020 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3022 * grub-core/fs/hfsplus.c (grub_hfsplus_label): Use found ptr rather
3025 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3027 * Makefile.am (starfield_DATA): Add dejavu_bold_14.pf2.
3028 (dejavu_bold_14.pf2): New target.
3030 2012-05-24 Vladimir Serbinenko <phcoder@gmail.com>
3032 * configure.ac: Fix djvu font detection.
3034 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3036 * grub-core/normal/misc.c (grub_normal_print_device_info): Dsiplay
3037 ext* instead of ext2.
3039 2012-05-23 Vladimir Serbinenko <phcoder@gmail.com>
3041 * grub-core/normal/term.c (read_terminal_list): Terminate the terminal
3044 2012-05-22 Jordan Uggla <jordan.uggla@gmail.com>
3046 * docs/grub-dev.texi: Remove dot from .png.
3048 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3050 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Accept
3051 protective entry in any slot.
3052 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Reject
3053 if protective entry is found in any slot.
3055 Protective entry in non-first slot make no sense but is a widespread
3058 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3060 * grub-core/fs/squash4.c (grub_squash_read_data): Add missing byte-swap.
3062 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3064 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
3066 (grub_reiserfs_open): Don't free root.
3068 2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
3070 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
3071 after freeing for safety.
3073 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3075 * grub-core/commands/sleep.c (do_print): Add missing grub_refresh.
3076 Reported by: Jordan Uggla.
3078 2012-05-21 Jordan Uggla <jordan.uggla@gmail.com>
3080 * docs/grub.texi Fix documentation of GRUB_HIDDEN_TIMOUNT to match the
3081 actual implementation. Specifically, clarify that the grub menu will
3082 be displayed for GRUB_TIMOUT seconds after the hidden timeout has
3085 2012-05-21 Benjamin Herrenschmidt <benh@kernel.crashing.org>
3087 * grub-core/kern/powerpc/dl.c (trampoline_template): Use r12 instead
3090 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3092 Remove unjustified hard dependency of normal.mod on gfxterm.
3094 * include/grub/term.h (grub_term_output): New member fullscreen.
3095 * include/grub/gfxterm.h (grub_gfxterm_fullscreen): Removed.
3096 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Make static.
3097 (grub_gfxterm): Set .fullscreen.
3098 * grub-core/normal/menu.c (menu_init): Use fullscreen.
3099 * grub-core/gfxmenu/gfxmenu.c (GRUB_MOD_INIT): Likewise.
3101 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3103 * docs/grub.texi (Internationalisation/Filesystems): Add precisions
3104 mentioning possible problems with non-ASCII (non-compliant) ISOs.
3105 Mention case-insensitive AFFS, SFS and JFS.
3107 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3109 * grub-core/fs/affs.c (grub_affs_mtime): Add missing grub_dl_ref.
3111 2012-05-21 Vladimir Serbinenko <phcoder@gmail.com>
3113 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3116 2012-05-18 Vladimir Serbinenko <phcoder@gmail.com>
3118 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Mark plain
3119 ISO9660 names as case-insensitive, lowercase it and remove trailing dot.
3121 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3123 * grub-core/fs/jfs.c (grub_jfs_data): New field caseins.
3124 (grub_jfs_mount): Fill caseins.
3125 (grub_jfs_find_file): Respect caseins.
3127 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3129 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Don't strrchr
3132 2012-05-17 Vladimir Serbinenko <phcoder@gmail.com>
3134 * grub-core/fs/fat.c (grub_fat_find_dir): Fix error message.
3135 New argument origpath. All users updated.
3137 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3139 * grub-core/fs/ntfs.c (read_data): Prevent overflow.
3140 (read_attr): Ensure that we read start of possibly compressed block.
3142 2012-05-15 Vladimir Serbinenko <phcoder@gmail.com>
3144 * include/grub/ntfs.h (grub_ntfs_comp_table_element): New struct.
3145 (grub_ntfs_comp): Use grub_ntfs_comp_table_element for comp_table.
3148 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3150 * Makefile.am (starfield_DATA): Replace dejavu.pf2 with dejavu_10.pf2,
3151 dejavu_12.pf2, dejavu_14.pf2 and dejavu_16.pf2.
3152 (dejavu.pf2): Replace with ...
3153 (dejavu_10.pf2), (dejavu_12.pf2), (dejavu_14.pf2), (dejavu_16.pf2):
3156 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3158 * util/grub.d/20_linux_xen.in: Add missing line.
3160 2012-05-14 Vladimir Serbinenko <phcoder@gmail.com>
3162 * include/grub/charset.h (GRUB_UTF16_UPPER_SURROGATE): Fix mask sizes.
3163 (GRUB_UTF16_LOWER_SURROGATE): Likewise.
3164 (grub_utf16_to_utf8): Likewise.
3166 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3168 * grub-core/disk/ieee1275/ofdisk.c (scan): Don't scan device tree if
3169 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS is set.
3170 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
3171 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS on IBM hardware.
3172 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
3173 GRUB_IEEE1275_FLAG_NO_TREE_SCANNING_FOR_DISKS.
3175 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3177 * grub-core/kern/fs.c (grub_fs_probe): Handle GRUB_ERR_OUT_OF_RANGE as
3180 2012-05-13 Vladimir Serbinenko <phcoder@gmail.com>
3182 * grub-core/fs/udf.c (read_string): Bail out on size=0.
3183 (grub_udf_read_symlink): Handle read_string failure.
3185 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3187 * grub-core/kern/emu/hostdisk.c (read_device_map): Improve TRANSLATORS
3190 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3192 Fix handling of UDF symlinks.
3194 * grub-core/fs/udf.c (read_string): New argument outbuf.
3196 (grub_ufs_read_symlink): Rename to ...
3197 (grub_udf_read_symlink): ... this. All users updated.
3198 Handle symlinks with more than one component.
3200 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3202 * grub-core/fs/affs.c (grub_affs_read_symlink): Fix handling of long
3203 symlinks. Replace leading colon with a slash.
3205 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3207 * grub-core/fs/jfs.c (grub_jfs_find_file): Handle multiple slashes in
3210 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3212 * grub-core/fs/bfs.c (find_in_b_tree) [MODE_AFS]: Fix handling of exact
3213 match in inner node.
3215 2012-05-12 Vladimir Serbinenko <phcoder@gmail.com>
3217 * grub-core/fs/bfs.c (mount): Improve filesystem detection reliability.
3218 * grub-core/fs/ext2.c (grub_ext2_mount): Likewise.
3219 * grub-core/fs/hfs.c (grub_hfs_mount): Likewise.
3220 * grub-core/fs/hfsplus.c (grub_hfsplus_mount): Likewise.
3221 * grub-core/fs/jfs.c (grub_jfs_mount): Likewise.
3222 * grub-core/fs/minix.c (grub_minix_mount): Likewise.
3223 * grub-core/fs/ntfs.c (grub_ntfs_mount): Likewise.
3224 * grub-core/fs/romfs.c (grub_romfs_mount): Likewise.
3225 * grub-core/fs/xfs.c (grub_xfs_mount): Likewise.
3227 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3229 Use grub-probe and not cmp to check that disk is empty.
3231 * util/grub-install.in: Use grub-probe for zero-check.
3232 * util/grub-probe.c (PRINT_ZERO_CHECK): New enum value.
3233 (probe): Handle PRINT_ZERO_CHECK.
3234 (argp_parser): Handle -t zero_check.
3236 2012-05-11 Vladimir Serbinenko <phcoder@gmail.com>
3238 Flush block cache on adding disk to device map.
3240 * grub-core/kern/emu/hostdisk.c (flush_initial_buffer): New function.
3241 (grub_hostdisk_os_dev_to_grub_drive): Call flush_initial_buffer on
3243 (read_device_map): Likewise.
3244 (open_device): Flush on opening.
3246 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3248 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle prefix.
3249 (handle_symlink): Fix off-by-one error.
3250 Canonicalize the target.
3251 (grub_cpio_dir): Canonicalize the name.
3254 (grub_cpio_open): Canonicalize the name.
3256 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3258 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix symlink
3261 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3263 * grub-core/fs/ufs.c (grub_ufs_find_file): Fix handling of double slash.
3264 * grub-core/fs/minix.c (grub_minix_find_file): Likewise.
3266 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3268 * util/grub-menulst2cfg.c (main): Check return value of fwrite.
3269 * util/grub-mklayout.c (write_file): Likewise. New argument fname.
3272 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3274 * util/grub.d/20_linux_xen.in: Update initrd list based on 10_linux.in
3277 2012-05-10 Vladimir Serbinenko <phcoder@gmail.com>
3279 Fix UFS1 big file support.
3281 * grub-core/fs/ufs.c (INODE): Removed.
3282 (INODE_SIZE): Always use 64-bit byte-swap since size field is always
3284 (INODE_MODE): Simplify.
3285 (grub_ufs_inode): Use uint64_t for size and not int64_t.
3286 (grub_ufs_lookup_symlink): Don't use INODE.
3288 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3290 Fix minixfs with non-power-of-two blocks since it's supported by minix.
3292 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use block_size.
3293 (grub_minix_data): Replace log_block_size with block_size.
3294 (grub_minix_read_file): Use block_size but avoid 64-bit division.
3295 (grub_minix_mount): Fill block_size.
3297 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3299 * configure.ac: Bump to beta5.
3301 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3303 Fix wrapped HFS+ handling.
3305 * grub-core/fs/fshelp.c (grub_fshelp_read_file): New argument
3306 blocks_start. All users updated.
3307 * grub-core/fs/hfsplus.c (grub_hfsplus_read_block): Don't add
3309 (grub_hfsplus_read_file): Pass embedding offset to fshelp_read_file.
3311 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3313 Fix long symlinks on reiserfs.
3315 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field size.
3316 (grub_reiserfs_read_symlink): Use grub_reiserfs_read_real.
3317 (grub_reiserfs_iterate_dir): Save size for non-directories.
3318 (grub_reiserfs_open): Don't reread stat block as we already know the
3320 (grub_reiserfs_read): Split into...
3321 (grub_reiserfs_read_real): ... and ...
3322 (grub_reiserfs_read): ...this.
3324 2012-05-09 Vladimir Serbinenko <phcoder@gmail.com>
3326 Fix non-indexed JFS.
3328 * grub-core/fs/jfs.c (grub_jfs_sblock): New field flags.
3329 (grub_jfs_data): New field namecomponentlen.
3330 (grub_jfs_mount): Fill namecomponentlen.
3331 (grub_jfs_getent): Use namecomponentlen rather than hardcoded 11.
3333 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3335 * grub-core/script/yylex.l: Ugly fix for "\\\n ".
3336 * tests/grub_script_echo1.in: Add tests.
3338 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3340 * util/grub-install.in: Ignore empty devicetree directory.
3342 2012-05-08 Bean <bean123ch@gmail.com>
3344 * grub-core/net/ip.c (reassemble): Make asm_buffer into asm_netbuff.
3346 (free_rsm): Free header as well.
3347 (free_old_fragments): Fix memory leak.
3348 * grub-core/net/netbuff.c (grub_netbuff_free): Make return void.
3349 * grub-core/net/tftp.c (tftp_receive): Fix memory leak.
3350 (destroy_pq): Likewise.
3351 * include/grub/net/netbuff.h (grub_netbuff_free): Make return void.
3353 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3355 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Align space for
3356 resulting hash as a precaution.
3358 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3360 * grub-core/net/bootp.c (set_env_limn_ro): Replace reserved ':' with
3361 '_' in variable names.
3362 * grub-core/net/net.c (grub_net_network_level_interface_register):
3365 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3367 Fix AFFS with non-512B blocks.
3369 * grub-core/fs/affs.c (grub_affs_rblock): Make type uint32_t.
3370 (AFFS_MAX_LOG_BLOCK_SIZE): New definition.
3371 (grub_affs_data): Replace blocksize with log_blocksize.
3372 (grub_affs_read_block): Fix non-512B blocks.
3373 (grub_affs_read_symlink): Likewise.
3374 (grub_affs_iterate_dir): Likewise. Fix freeing corruption.
3375 (grub_affs_read): Fix non-512B blocks.
3376 (grub_affs_label): Likewise.
3377 (grub_affs_mtime): Likewise.
3378 (grub_affs_mount): Fix block detection routine.
3380 2012-05-08 Vladimir Serbinenko <phcoder@gmail.com>
3382 Add filesystem mtime to AFFS.
3384 * grub-core/fs/affs.c (grub_affs_file): Make type unsigned.
3385 (aftime2ctime): New function.
3386 (grub_affs_dir): Use aftime2ctime.
3387 (grub_affs_label): Fix return value.
3388 (grub_affs_mtime): New function.
3389 (grub_affs_fs): Add mtime.
3391 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3393 * grub-core/fs/affs.c (grub_affs_read_symlink): Convert latin1 into
3396 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3398 * grub-core/fs/sfs.c (grub_sfs_read_symlink): Convert latin1 into
3401 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3403 * grub-core/fs/affs.c (grub_affs_iterate_dir): Mark as case insensitive.
3405 2012-05-07 Vladimir Serbinenko <phcoder@gmail.com>
3407 * grub-core/fs/sfs.c (grub_sfs_rblock): New fields createtime and
3409 (FLAGS_CASE_SENSITIVE): New enum value.
3410 (cache_entry): New struct.
3411 (grub_fshelp_node): Add fields cache_off, next_extent, cache_allocated,
3412 cache_size and cache.
3413 (grub_sfs_data): Remove blocksize. All users switched to log_blocksize.
3414 Add log_blocksize and fshelp_flags.
3415 (grub_sfs_read_extent): Handle non-512 blocks.
3416 (grub_sfs_read_block): Add cаche and handle non-512 blocks.
3417 (grub_sfs_read_file): Handle non-512 blocks.
3418 (grub_sfs_mount): Handle non-512 blocks. Fill log_blocksize and
3420 (grub_sfs_read_symlink): Handle non-512 blocks.
3421 (grub_sfs_iterate_dir): Init new fields. Mark as case-insensitive.
3422 (grub_sfs_dir): Free cache.
3423 (grub_sfs_close): Likewise.
3425 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3427 * grub-core/fs/bfs.c (read_bfs_file): Fix overflow with over 2TiB
3430 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3432 * grub-core/fs/affs.c (grub_affs_read_block): Fix theoretical overflow.
3434 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3436 * grub-core/commands/ls.c (grub_ls_list_files): Fix overflow.
3438 2012-05-06 Vladimir Serbinenko <phcoder@gmail.com>
3440 * grub-core/fs/sfs.c (grub_fshelp_node): Fix types.
3441 (grub_sfs_read_extent): Likewise.
3442 (grub_sfs_read_block): Likewise.
3443 (grub_sfs_mount): Likewise.
3444 (grub_sfs_iterate_dir): Likewise.
3445 (grub_sfs_read_symlink): Use strncpy instead of strcpy.
3446 (grub_sfs_read): Remove unnecessarry and wrong temporary variable.
3448 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3450 Fix errors on compressed NTFS with 512B clusters.
3452 * include/grub/ntfs.h (grub_ntfscomp_func_t): Use appropriately sized
3454 * grub-core/fs/ntfs.c (grub_ntfs_read): Return correct -1 on error and
3456 * grub-core/fs/ntfscomp.c (read_block): Use appropriately-sized types.
3457 Relax check for inline extents.
3458 (ntfscomp): Return correct -1 on error and not 0.
3460 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3462 * util/grub-install.in: Fix handling of prefix containing spaces.
3464 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3466 * grub-core/fs/squash4.c (grub_squash_inode): Fix offset field.
3467 (grub_squash_read_data): Fix offset byte-swapping.
3469 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3471 * grub-core/kern/misc.c (grub_strcmp): Use unsigned comparison as
3472 per common usage and preffered in several parts of code.
3473 (grub_memcmp): Likewise.
3474 (grub_strncmp): Likewise.
3475 * include/grub/misc.h (grub_strcasecmp): Likewise.
3476 (grub_strncasecmp): Likewise.
3477 * Makefile.util.def (cmp_test): New test.
3478 (grub_script_strcmp): Likewise.
3479 * tests/cmp_unit_test.c: New file.
3480 * tests/grub_script_strcmp.in: Likewise.
3481 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Add a comment.
3483 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3485 * include/grub/pci.h: Move enums into no-asm part.
3487 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3489 * grub-core/fs/bfs.c (bfs_strcmp) [MODE_AFS]: Use signed comparison.
3491 2012-05-04 Samuel Thibault <samuel.thibault@ens-lyon.org>
3493 * util/getroot.c (find_hurd_root_device): Try to make error message
3494 and comments to translators clearer.
3496 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3498 * grub-core/commands/menuentry.c: Fix typo in TRANSLATORS comments.
3500 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3502 * grub-core/kern/fs.c (grub_fs_probe) [GRUB_UTIL]: Add workaround for
3505 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3507 * docs/grub.cfg: Update.
3509 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3511 * docs/grub.texi (PXE): Remove not present variables.
3513 2012-05-04 Vladimir Serbinenko <phcoder@gmail.com>
3515 * grub-core/net/net.c (defserver_set_env): New function.
3516 (defserver_get_env): Likewise.
3517 (GRUB_MOD_INIT): Register net_default_server and pxe_default_server.
3519 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3521 * grub-core/kern/emu/hostdisk.c (read_device_map): Skip invalid Fedora
3524 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3526 * grub-core/commands/menuentry.c: Add TRANSLATORS comments.
3527 * grub-core/kern/emu/hostdisk.c: Likewise.
3529 2012-05-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
3531 Handle hurd userspace partitions.
3533 * util/getroot.c (find_hurd_root_device): New function.
3534 (grub_guess_root_devices): Use find_hurd_root_device on Hurd.
3536 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3538 * util/getroot.c (convert_system_partition_to_system_disk); Add etherd
3540 Reported by: Bastian Blank.
3542 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3544 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Fix offset when
3545 crossing page boundary.
3547 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3549 Fix B-tree search in BFS, especially in presence of non-ASCII
3552 * grub-core/fs/bfs.c (bfs_strcmp): New function.
3553 (find_in_b_tree): Use standard bsearch + btree algorithm.
3555 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3557 * util/grub-fstest.c (cmd_cmp): Avoid comparing devices, pipes
3560 2012-05-03 Matthew Garrett <mjg@redhat.com>
3561 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3563 Suspend broadcom cards in order to stop their DMA.
3565 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add pci.h on x86 EFI.
3566 * grub-core/Makefile.core.def (kernel): Add pci.c on x86 EFI.
3567 (pci): Don't build on x86 EFI.
3568 * grub-core/bus/pci.c (grub_pci_find_capability): New function.
3569 * grub-core/kern/efi/mm.c (stop_broadcom) [__i386__ || __x86_64__]:
3571 (grub_efi_finish_boot_services) [__i386__ || __x86_64__]: Call
3572 stop_broadcom if running on EFI.
3573 * include/grub/pci.h (GRUB_PCI_CLASS_NETWORK): New enum value.
3574 (GRUB_PCI_CAP_POWER_MANAGEMENT): Likewise.
3575 (GRUB_PCI_VENDOR_BROADCOM): Likewise.
3576 (grub_pci_find_capability): New proto.
3578 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3580 * docs/grub.texi: Remove dot from the extension as it apparently
3581 doesn't work with some makeinfo versions.
3583 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3585 * po/Makefile.in.in: Make msgfmt output in little-endian in accordance
3586 with GRUB expectance.
3588 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3590 * util/grub-fstest.c (cmd_cmp): Compare directories recursively.
3592 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3594 * grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Put a trailing
3595 zero after directory block since last entry may be not 0-terminated if
3596 it ends on block boundary. Use continue instead of if spanning whole
3599 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3601 Support 4K sectors UDF inline files.
3603 * grub-core/fs/udf.c (grub_udf_file_entry): Don't specify padding size.
3604 (grub_udf_extended_file_entry): Likewise.
3605 (grub_fshelp_node): Name the anonymous union. Put block at the end.
3607 (get_fshelp_size): New function.
3608 (grub_udf_read_icb): Read whole block.
3609 (grub_udf_iterate_dir): Likewise.
3610 (grub_udf_dir): Likewise.
3611 (grub_udf_open): Likewise.
3613 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3615 * grub-core/fs/ufs.c (grub_ufs_get_file_block): Support triple indirect.
3617 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3619 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Use proper check for
3620 inline symlinks in addition to workaround.
3622 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3624 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Handle read_inode errors.
3626 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3628 * grub-core/fs/xfs.c (GRUB_XFS_EXTENT_BLOCK): Fix bitmask.
3630 2012-05-03 Vladimir Serbinenko <phcoder@gmail.com>
3632 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Fix return value.
3634 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3636 Fix reiserfs big seek times.
3638 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): New argument
3639 exact. All users updated.
3640 (grub_reiserfs_read): Use nearest btree search for seeking.
3641 Fix return value on error.
3643 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3645 * grub-core/commands/legacycfg.c (legacy_file): Default to restricted
3647 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Likewise.
3648 * docs/grub.texi: Update menuentry description.
3650 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3652 * util/grub-setup.c (setup): Remove duplicate call to embed. Fixes
3653 crash when embedding onto filesystem.
3655 2012-05-02 Vladimir Serbinenko <phcoder@gmail.com>
3657 * util/getroot.c (find_root_devices_from_poolname): Handle spaces in the
3660 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3662 * grub-core/net/ip.c (handle_dgram): Fix undeclared variable.
3664 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3666 * grub-core/normal/autofs.c (read_fs_list): Revert accidental wrong
3669 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3670 2012-05-01 Bean <bean123ch@gmail.com>
3672 * grub-core/net/ip.c (handle_dgram): Fix DHCP mac comparison.
3674 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3676 * grub-core/kern/file.c (grub_file_read): Read nothing if len = 0.
3677 Special behaviour for len = 0 to read whole file isn't used anywhere and
3678 can cause buffer ovewrflows in several places.
3680 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3682 * grub-core/normal/autofs.c (read_fs_list): Fix memory leak.
3684 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3686 Handle RAIDZ on non-512B sectors.
3688 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member
3689 max_children_ashift.
3690 (fill_vdev_info_real): Fill max_children_ashift.
3691 (read_device): Use max_children_ashift.
3693 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3695 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Fix memory leak.
3697 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3699 * grub-core/kern/emu/hostdisk.c (read_device_map): Reject non-standard
3701 * docs/grub.texi: Update device.map parts.
3703 2012-05-01 Vladimir Serbinenko <phcoder@gmail.com>
3705 Don't scan into non-diskfilter devices having diskfilter names.
3707 * grub-core/disk/diskfilter.c (is_valid_diskfilter_name): New function.
3708 (scan_disk): New argument accept_diskfilter. Fix recursion depth
3710 (scan_disk_hook): New function.
3712 2012-04-29 Bean <bean123ch@gmail.com>
3714 * grub-core/net/drivers/efi/efinet.c (get_card_packet): Fix buffer
3717 2012-04-29 Mads Kiilerich <mads@kiilerich.com> (tiny)
3719 * configure.ac: Detect starfield theme font path
3720 /usr/share/fonts/dejavu/DejaVuSans.ttf for Fedora.
3722 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3724 * grub-core/term/ieee1275/console.c (grub_console_dimensions): Use 80x24
3725 geometry on serial consoles.
3727 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3729 * grub-core/term/terminfo.c (grub_terminfo_readkey): Increase timeout
3730 because of network consoles.
3732 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3734 * grub-core/term/terminfo.c (grub_terminfo_getkey): Fix incorrect queue
3737 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3739 * grub-core/disk/diskfilter.c (read_segment): Fix the case when disknr
3742 2012-04-26 Vladimir Serbinenko <phcoder@gmail.com>
3744 * grub-core/fs/nilfs2.c (grub_nilfs2_palloc_entry_offset_log):
3745 Fix argument to grub_nilfs2_palloc_bitmap_block_offset.
3747 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3749 * grub-core/fs/squash4.c (lzo_decompress): Set grub_errno on error.
3750 Allocate at lest 8192 for temporary buffer as required for lzo.
3752 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3754 * grub-core/fs/fat.c (grub_fat_mount): Don't add logical_sector_bits
3755 to cluster_bits, since it's already added in.
3756 (grub_fat_read_data): Likewise.
3758 2012-04-25 Vladimir Serbinenko <phcoder@gmail.com>
3760 * grub-core/fs/ntfs.c (grub_ntfs_mount): Support 256-byte sectors,
3761 as long as cluster size is multiple of 512 bytes.
3763 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3765 * util/grub-mkrescue.in: Fix locale directory.
3767 2012-04-23 Vladimir Serbinenko <phcoder@gmail.com>
3769 * grub-core/kern/emu/hostdisk.c (map): Make static.
3771 2012-04-23 Bean <bean123ch@gmail.com>
3773 * util/grub-fstest.c (fstest): Add missing break.
3775 2012-04-22 Samuel Thibault <samuel.thibault@ens-lyon.org>
3779 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_size) [__GNU__]: Do
3780 not define nr variable.
3781 * util/getroot.c [__GNU__] (strip_extra_slashes, xgetcwd, exec_pipe,
3782 find_root_devices_from_poolname, find_root_devices_from_libzfs,
3783 grub_find_device): Do not define.
3785 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3787 Fix kfreebsd compile and behaviour.
3789 * grub-core/kern/emu/hostdisk.c (grub_util_follow_gpart_up): Fix
3791 * util/getroot.c: Fix wait.h include.
3792 (grub_guess_root_devices): Error if grub_find_device fails.
3793 (grub_util_get_geom_abstraction): Fix shadowing and format-security.
3794 (grub_util_get_dev_abstraction): Likewise.
3795 (grub_util_pull_device): Likewise.
3796 (grub_util_get_grub_dev): Likewise.
3797 * util/lvm.c (grub_util_lvm_isvolume): Likewise.
3799 2012-04-21 Vladimir Serbinenko <phcoder@gmail.com>
3801 Fix and unify wholedisk detection.
3803 * util/getroot.c (convert_system_partition_to_system_disk): New argument
3804 is_part. All users updated.
3805 (device_is_wholedisk): Removed.
3806 (grub_util_biosdisk_get_grub_dev): Use is_part.
3808 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3810 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix opening
3813 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3815 * configure.ac: Bump to beta4.
3817 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3819 * grub-core/commands/search_wrap.c (grub_cmd_search): Handle old
3820 --fs-uuid --set UUID syntax.
3822 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3824 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_write): Fix message
3827 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3829 * conf/Makefile.common (LDFLAGS_PLATFORM): Use explicit -Wl.
3831 2012-04-18 Mads Kiilerich <mads@kiilerich.com>
3833 * grub-mkconfig_lib.in: Ignore *.rpmnew and *.rpmsave.
3835 2012-04-18 Mike Gilbert <floppym@gentoo.org>
3837 * util/grub.d/10_linux.in: Fix detection of genkernel initramfs.
3839 2012-04-18 Bean <bean123ch@gmail.com>
3841 * grub-core/disk/ata.c (grub_ata_strncpy): Put terminating zero at right
3844 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3846 * grub-core/kern/emu/hostdisk.c (open_device): New argument max. All
3848 (grub_util_biosdisk_read): Handle Linux partitions not exactly
3849 corresponding to GRUB partitions.
3850 (grub_util_biosdisk_write): Likewise.
3852 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3854 Scan mdraid before LVM.
3856 * include/grub/diskfilter.h (grub_diskfilter_register): Renamed to ..
3857 (grub_diskfilter_register_front): ... this.
3858 (grub_diskfilter_register_back): New function.
3859 All users of grub_diskfilter_register updated.
3861 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3863 * util/grub-install.in: Fix an automatic target detection bug.
3865 2012-04-18 Vladimir Serbinenko <phcoder@gmail.com>
3867 * util/grub-install.in: New option --efi-directory.
3869 2012-04-17 Vladimir Serbinenko <phcoder@gmail.com>
3871 * grub-core/loader/i386/linux.c (allocate_pages): Overwrite low memory
3872 boot services if we have no other choice.
3874 2012-04-14 Vladimir Serbinenko <phcoder@gmail.com>
3876 * util/grub-mknetdir.in: Rename --override-directory to --directory and
3878 * tests/util/grub-shell.in: Update to --directory.
3880 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3882 * grub-core/fs/zfs/zfs.c: Disable -Wstrict-aliasing.
3884 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3886 * grub-core/fs/minix.c (grub_minix_data): Fix ino type.
3887 (grub_minix_read_file): Likewise.
3888 (grub_minix_read_inode): Likewise.
3889 (grub_minix_find_file): Likewise.
3890 (grub_minix_dir): Likewise.
3892 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3894 * util/grub-setup.c (setup): Fix partition handling and blocklist
3897 2012-04-13 Vladimir Serbinenko <phcoder@gmail.com>
3899 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Remove
3900 redundant buggy overlap check.
3902 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3904 * tests/util/grub-shell.in: Set pkgdatadir when calling grub-mkrescue
3907 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3909 * grub-core/loader/i386/linux.c (grub_cmd_linux): Avoid accessing
3910 kh.loadflags on pre-2.00 kernels.
3912 2012-04-11 Vladimir Serbinenko <phcoder@gmail.com>
3914 Terminate UNDI and PXE before launching the payload to avoid problems
3917 * grub-core/commands/boot.c (grub_loader_noreturn): Rename to ...
3918 (grub_loader_flags): ... this. All users updated.
3919 (grub_loader_boot): Check for GRUB_LOADER_FLAG_NORETURN.
3920 * grub-core/loader/i386/pc/pxechainloader.c (grub_cmd_pxechain): Mark
3921 loader as GRUB_LOADER_FLAG_PXE_NOT_UNLOAD.
3922 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_shutdown): New
3924 (grub_pxe_restore): Likewise.
3925 (fini_hnd): New var.
3926 (GRUB_MOD_INIT): Register shutdown hook.
3927 (GRUB_MOD_FINI): Shutdown and unregister shutdown hook.
3928 * include/grub/loader.h (GRUB_LOADER_FLAG_NORETURN): New const.
3929 (GRUB_LOADER_FLAG_PXE_NOT_UNLOAD): Likewise.
3930 (grub_loader_set): Rename second argument to flags.
3932 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3934 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Return number of
3936 (grub_get_num_of_utf8_bytes): New function.
3937 (grub_ucs4_to_utf8_alloc): Use grub_get_num_of_utf8_bytes.
3938 * grub-core/normal/menu_entry.c (run): Convert entry to UTF-8 before
3940 * include/grub/charset.h (grub_get_num_of_utf8_bytes): New proto.
3941 (grub_ucs4_to_utf8): Change return type.
3943 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3945 * grub-core/commands/usbtest.c (usb_print_str): Silence spurious
3947 * grub-core/fs/bfs.c (hop_level): Likewise.
3948 * grub-core/net/bootp.c (grub_cmd_bootp): Likewise.
3950 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3952 * grub-core/lib/adler32.c: Recode due to license unclearness.
3954 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3956 * grub-core/io/lzopio.c (read_block_header): Fix incorrect byte swapping
3957 (test_header): Likewise.
3959 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3961 Fix --help formatting.
3963 * util/grub-mkconfig_lib.in (print_option_help): New function.
3964 (grub_fmt): Likewise.
3965 * util/grub-install.in: Use print_option_help and grub_fmt.
3966 * util/grub-kbdcomp.in: Likewise.
3967 * util/grub-mkconfig.in: Likewise.
3968 * util/grub-mknetdir.in: Likewise.
3969 * util/grub-mkrescue.in: Likewise.
3970 * util/grub-mkstandalone.in: Likewise.
3971 * util/grub-reboot.in: Likewise.
3972 * util/grub-set-default.in: Likewise.
3973 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
3975 2012-04-07 Vladimir Serbinenko <phcoder@gmail.com>
3977 * linguas.sh: Remove autogenerated *.po.
3979 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3981 * po/README: Move language fetcing to ...
3982 * linguas.sh: ... here.
3983 * po/README: Point to linguas.sh.
3985 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3987 * po/README: Exclude ko.po due to disclaimer problems.
3989 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3991 * grub-core/gettext/gettext.c (grub_gettext_pread): Fix the case when
3993 (grub_gettext_translate_real): Handle 0th string.
3994 (grub_gettext_translate): Ensure that "" isn't translated.
3996 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
3998 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add
3999 TRANSLATORS comment.
4000 (grub_diskfilter_print_partmap): Propagate changing of error into
4003 2012-04-04 Vladimir Serbinenko <phcoder@gmail.com>
4005 * include/grub/diskfilter.h (grub_diskfilter_vg): Increase extent_size
4006 to uint64_t to prevent overflow.
4007 (grub_diskfilter_lv): Increase start_extent and extent_count
4008 to uint64_t to prevent overflow.
4010 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4012 * configure.ac: Increase version.
4014 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4016 Introduce en@cyrillic en@hebrew en@arabic and en@greek.
4018 * po/Rules-translit: New file.
4019 * po/arabic.sed: Likewise.
4020 * po/cyrillic.sed: Likewise.
4021 * po/greek.sed: Likewise.
4022 * po/hebrew.sed: Likewise.
4023 * po/README: Add en@cyrillic en@hebrew en@arabic and en@greek.
4024 * po/Makefile.in.in: Add extra_dist4.
4026 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4028 Handle big-endian minixfs (fixes minixfs tests on bigendian).
4030 * grub-core/fs/minix.c: Replace le with minix. Add necessary defines,
4031 modify names. Introduce MODE_BIGENDIAN.
4032 * grub-core/fs/minix_be.c: New file.
4033 * grub-core/fs/minix2_be.c: Likewise
4034 * grub-core/fs/minix3_be.c: Likewise.
4035 * Makefile.util.def (libgrubmods): Add minix_be, minix2_be and
4037 * grub-core/Makefile.core.def (minix_be): New module.
4038 (minix2_be): Likewise.
4039 (minix3_be): Likewise.
4041 2012-04-01 Felix <email@hamburg.de>
4043 * grub-core/loader/efi/appleloader.c (devpath_7): New var.
4044 (devs): Add MBP 2011.
4046 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4048 * grub-core/font/font.c (blit_comb): Handle dagesh somewhat.
4050 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4052 * grub-core/normal/cmdline.c (print_completion): New field
4054 (grub_cmdline_get): Handle width properly.
4056 2012-04-01 Vladimir Serbinenko <phcoder@gmail.com>
4058 * grub-core/commands/lsacpi.c (options): Add missing terminator.
4060 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4062 * include/grub/datetime.h (grub_datetime2unixtime): Fix handling of days
4063 after 29th of February.
4065 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4067 Fix exfat endianness handling.
4069 * grub-core/fs/fat.c (grub_fat_data): Make fat_sector 32-bit.
4070 (grub_fat_mount) [MODE_EXFAT]: Fix bpb.num_reserved_sectors byte-swap.
4071 (grub_fat_iterate_dir) [MODE_EXFAT]: Fix attr byte-swap.
4072 Byte-swap utf16 when necessary.
4073 (grub_fat_label) [MODE_EXFAT]: Byte-swap utf16 when necessary.
4075 2012-03-31 Anton Blanchard <anton@samba.org>
4076 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4078 Fix btrfs endianness handling.
4080 * grub-core/fs/btrfs.c (key_cmp): Use grub_le_to_cpu for clarity.
4081 (lower_bound): Make root uint64_t. Use root in le.
4082 (grub_btrfs_read_logical): Fix template key init. Fix address byteswap.
4083 (find_path): Fix template key init.
4084 (grub_btrfs_dir): Fix mtime byteswap.
4085 * include/grub/types.h (grub_cpu_to_le64_compile_time): New macro.
4087 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4089 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): New argument
4090 recursion_depth. Break infinite resursions. All users updated.
4092 2012-03-31 Vladimir Serbinenko <phcoder@gmail.com>
4094 * util/getroot.c (convert_system_partition_to_system_disk): Fix use
4096 Reported by: Peter Jones.
4098 2012-03-31 Anton Blanchard <anton@samba.org>
4100 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Do not byteswap
4103 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4105 * util/grub-install.in: Fix nvram call for PreP.
4107 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4109 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Degrade
4110 the error when some elements are missing into a warning.
4112 2012-03-28 Vladimir Serbinenko <phcoder@gmail.com>
4114 * grub-core/normal/charset.c (bidi_line_wrap): Fix out-of-range swap.
4116 2012-03-28 Colin Watson <cjwatson@ubuntu.com>
4118 * docs/grub.texi (Invoking grub-probe): New section.
4119 Reported by: Filipus Klutiero. Fixes Debian bug #666031.
4121 2012-03-27 Vladimir Serbinenko <phcoder@gmail.com>
4123 Fix tab and wide character handling in editor and menu.
4125 * grub-core/normal/charset.c (grub_unicode_aglomerate_comb): Don't
4126 agglomerate control characters with combining marks.
4127 (bidi_line_wrap): Allow break on tab.
4128 (grub_unicode_get_comb_start): New function.
4129 * grub-core/normal/menu_entry.c: Restructure to handle wide characters
4131 * grub-core/normal/menu_text.c (print_entry): Replace \n, \r, \b and \e
4133 * grub-core/normal/term.c (print_ucs4_terminal): New argument
4134 fixed_tab_size. All users updated.
4135 * include/grub/term.h (GRUB_TERM_TAB_WIDTH): New const.
4136 (grub_term_getcharwidth): Handle \t.
4137 * include/grub/unicode.h (grub_unicode_glyph_dup): Fix allocation
4140 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4142 Handle big-endian mdraid.
4144 * Makefile.util.def (libgrubkern): Add mdraid_linux_be.c.
4145 * grub-core/Makefile.core.def (mdraid09_be): New module.
4146 * grub-core/disk/mdraid_linux.c: Use grub_md_to_cpu* and grub_cpu_to_md*
4147 rather than grub_le_to_cpu* and grub_cpu_to_le*.
4148 * grub-core/disk/mdraid_linux_be.c: New file.
4150 2012-03-26 Vladimir Serbinenko <phcoder@gmail.com>
4152 * grub-core/gettext/gettext.c (GRUB_MOD_INIT): Handle errors.
4154 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4156 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4157 missing quotes which caused confusion among translators.
4159 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4161 * util/grub-mkconfig_lib.in: Fix typo.
4163 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4165 * grub-core/script/argv.c (grub_script_argv_split_append): Skip leading
4167 * tests/grub_script_leading_whitespace.in: New file.
4168 * Makefile.util.def (grub_script_leading_whitespace): New test.
4170 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4172 * grub-core/kern/dl.c (grub_dl_add): Make global in order for gdb_grub
4175 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4177 * grub-core/fs/jfs.c (grub_jfs_label): Use first label if second one
4178 starts with control character.
4180 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4182 * grub-core/gdb/cstub.c (grub_gdb_inbuf): Increase the size to avoid
4184 (grub_gdb_outbuf): Likewise.
4186 2012-03-19 Vladimir Serbinenko <phcoder@gmail.com>
4188 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): Add
4189 zero terminator. Fixes a crash.
4191 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4193 * grub-core/loader/i386/linux.c (allocate_pages): Don't allocate
4195 (grub_cmd_linux): Use GRUB_LINUX_BZIMAGE_ADDR for non-relocatable
4196 images independently of preffered adderss field.
4198 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4200 * grub-core/commands/i386/pc/play.c: Improve TRANSLATORS comments.
4201 * grub-core/commands/regexp.c: Likewise.
4202 * grub-core/loader/i386/linux.c: Likewise.
4203 * grub-core/partmap/msdos.c: Likewise.
4204 * grub-core/script/execute.c: Likewise.
4205 * grub-core/term/gfxterm.c: Likewise.
4207 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4209 Add variable parsing in $"..." and fix several mismatches with bash.
4211 * Makefile.util.def (grub_script_gettext): New test.
4212 * grub-core/script/execute.c (parse_string): New function.
4213 (gettext_append): Likewise.
4214 (grub_script_arglist_to_argv): Use gettext_append.
4215 * grub-core/script/yylex.l: Fix slash and newline handling in $"...".
4216 * tests/grub_script_gettext.in: New file.
4218 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4220 Fix handling of leading spaces in scripts.
4222 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't strip leading
4224 * grub-core/normal/main.c (grub_file_getline): Remove all preprocessing
4225 other than skipping \r. All users updated.
4226 * tests/grub_script_echo1.in: Add space-related tests.
4227 * util/grub-menulst2cfg.c (main): Remove useless space skipping.
4229 2012-03-11 Vladimir Serbinenko <phcoder@gmail.com>
4231 * grub-core/commands/cat.c (grub_cmd_cat): Fix termination key check.
4233 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4235 * configure.ac: Bump up the version to beta2.
4237 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4239 Fix gettext reload bugs (e.g. inability to disable gettext
4242 * grub-core/gettext/gettext.c: Encapsulate all static variables in
4243 main_context and secondary_context. All functions updated.
4244 (grub_gettext_translate): Rename to ...
4245 (grub_gettext_translate_real): ... this. Return NULL on failed
4247 (grub_gettext_translate): Handle secondary context.
4248 (grub_gettext_delete_list): Close file and zero-out the context.
4249 (grub_mofile_open): Don't call grub_gettext_delete_list.
4251 (grub_gettext_init_ext): Call grub_gettext_init_ext. Skip loading
4252 if locale="" to avoid pointless error message.
4253 (grub_gettext_env_write_lang): Update lang even if load fails.
4254 Handle secondary context.
4255 (grub_gettext_reread_prefix): New function.
4256 (read_main): Likewise.
4257 (read_secondary): Likewise.
4258 (GRUB_MOD_INIT): Handle secondary context. Hook and export variables.
4259 (GRUB_MOD_FINI): Handle secondary context. Don't close file.
4260 * grub-core/normal/main.c (read_lists): Call grub_gettext_reread_prefix.
4261 * include/grub/normal.h (grub_gettext_reread_prefix): New proto.
4263 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4265 * configure.ac: Decrease warning level to avoid spurious warnings and
4266 to be able to compile with GCC 4.2.
4267 * Makefile.util.def: Remove -Wno-error=logical-op.
4269 2012-03-10 William Bittner <william.bittner@gmail.com>
4271 * util/import_unicode.py: Add missing brackets around string for
4274 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4276 Fix efi chainloader on network root.
4278 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Handle
4280 * grub-core/net/drivers/efi/efinet.c (grub_efinet_get_device_handle):
4283 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4285 * grub-core/gfxmenu/gui_progress_bar.c (grub_gui_progress_bar): Remove
4286 unused show_text member.
4287 * docs/grub.texi: Document "text" property.
4289 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4291 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Fix format
4294 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4296 Fix IMSM handling on Fedora.
4298 * util/getroot.c (grub_util_is_imsm): New function.
4299 (grub_util_get_dev_abstraction): Treat IMSM as simple device, not RAID.
4301 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4303 * Makefile.am: Strip gold section.
4304 * conf/Makefile.common: Likewise.
4305 * gentpl.py: Likewise.
4306 * grub-core/Makefile.core.def: Likewise.
4307 * grub-core/genmod.sh.in: Likewise.
4309 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4311 * util/grub.d/10_linux.in: Use stat if grub-probe on root fails.
4312 * util/grub.d/20_linux_xen.in: Likewise.
4313 Based on Debian patch.
4315 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4317 * util/grub.d/10_linux.in: Fix syntax error resulting in
4318 Richard Laager's patch.
4319 * util/grub.d/20_linux_xen.in: Propagate Richard Laager's patch.
4321 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4323 * tests/partmap_test.in: Replace qemu-img usage with dd to decrease
4326 2012-03-10 Richard Laager <rlaager@wiktel.com>
4328 * util/grub.d/10_linux.in: Fix ZFS root passing.
4330 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4332 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4333 * grub-core/commands/xnu_uuid.c: Likewise.
4334 * grub-core/loader/efi/appleloader.c: Likewise.
4335 * grub-core/script/execute.c: Likewise.
4336 * grub-core/script/main.c: Likewise.
4337 * util/grub-mkfont.c: Likewise.
4339 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4341 * util/grub-mkfont.c (options): Use more appropriate "select" that
4342 "set" for face index.
4344 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4346 * util/grub-editenv.c (options): Gettextize command summaries.
4348 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4350 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Use
4351 "out of memory" error messagge.
4353 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4355 * grub-core/disk/diskfilter.c (grub_diskfilter_memberlist): Add scanning
4356 of diskfilter for diskfilter on diskfilter support.
4358 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4360 * util/getroot.c (exec_pipe): Ensure that the child is not localised.
4362 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4364 * util/grub-install.in: Check for themes/starfield/theme.txt and not
4367 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4369 * grub-core/gnulib/regcomp.c (regerror): Fix out-of-range array lookup.
4371 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4373 * grub-core/gdb/i386/idt.c (grub_gdb_breakpoint): Remove old debug code.
4375 2012-03-10 Vladimir Serbinenko <phcoder@gmail.com>
4377 * grub-core/commands/hashsum.c (grub_cmd_hashsum): Remove dot at the end
4380 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4382 * util/grub-install.in: Fix install non-PreP IEEE1275 install.
4384 2012-03-09 Vladimir Serbinenko <phcoder@gmail.com>
4386 * grub-core/commands/i386/pc/sendkey.c (GRUB_MOD_INIT): Fix confusing
4388 * util/grub-install.in: Fix and gettextize error message.
4390 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4392 * util/grub-fstest.c (options): Replace N with NUM and S with STRING.
4394 * util/grub-mount.c (options): Likewise.
4396 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4398 * grub-core/commands/probe.c (options): Replace VAR with VARNAME and
4400 * grub-core/commands/search_wrap.c (options): Likewise.
4402 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4404 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning.
4406 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4408 * grub-core/boot/i386/pc/startup_raw.S (multiboot_trampoline): Fix
4410 * grub-core/kern/i386/realmode.S (realidt): Assume default BIOS IDT if
4413 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4415 * grub-core/net/net.c (grub_net_addr_to_str): Don't translate
4416 "temporary" since it's used in identifier and is limited in space.
4418 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4420 * po/POTFILES.in: Regenerate. Include *.h since they contain
4421 translatable strings as well.
4423 2012-03-08 Vladimir Serbinenko <phcoder@gmail.com>
4425 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
4426 byte-swap on big-endian.
4427 Reported by: Lennart Sorensen
4429 2012-03-07 Vladimir Serbinenko <phcoder@gmail.com>
4431 * grub-core/loader/i386/linux.c (prot_init_space): New variable.
4432 (allocate_pages): Improve dprintf.
4433 (grub_cmd_linux): Fill prot_init_space. Fix improper usage of
4434 code32_start. Fill code32_start and kernel_alignment in params.
4435 (grub_cmd_initrd): Use prot_init_space.
4437 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4439 * util/grub-mkstandalone.in: Propagate grub-mkimage.c change.
4441 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4443 * util/grub-install.in: Add missing dot at the end of sentence.
4445 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4447 * grub-core/commands/videoinfo.c: Add TRANSLATORS comments.
4448 * grub-core/commands/videotest.c: Likewise.
4449 * grub-core/loader/i386/linux.c: Likewise.
4451 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4453 * grub-core/commands/acpi.c (options): Fix a dot in the middle of the
4455 Reported by: Milo Casagrande.
4457 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4459 * grub-core/commands/acpi.c: Add TRANSLATORS comments.
4460 * grub-core/commands/gptsync.c: Likewise.
4461 * grub-core/commands/hashsum.c: Likewise.
4462 * grub-core/commands/i386/pc/sendkey.c: Likewise.
4463 * grub-core/commands/legacycfg.c: Likewise.
4464 * grub-core/io/gzio.c: Likewise.
4465 * grub-core/net/net.c: Likewise.
4466 * grub-core/term/gfxterm.c: Likewise.
4467 * grub-core/term/terminfo.c: Likewise.
4468 * grub-core/tests/test_blockarg.c: Likewise.
4469 * grub-core/video/video.c: Likewise.
4470 * util/grub-install.in: Likewise.
4471 * util/grub-mkfont.c: Likewise.
4473 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4475 * util/grub-mkimage.c (help_filter): Add missing capitalisation.
4477 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4479 * grub-core/commands/search_wrap.c (options): Fix a typo.
4480 Reported by: David Prévot.
4482 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4484 * util/grub-kbdcomp.in: Change "layout" to "keyboard layout" in
4487 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4489 * util/grub-script-check.c (main): Fix a syntax error message which was
4492 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4494 * util/grub-mkrescue.in (usage): Fix ROM capitalisation.
4496 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4498 * grub-core/commands/search_wrap.c (options): Fix wrong copy-paste in
4501 2012-03-06 Vladimir Serbinenko <phcoder@gmail.com>
4503 * util/grub-fstest.c (options): Remove OPTION_ARG_OPTIONAL from options
4505 * util/grub-mount.c (options): Likewise.
4507 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4509 * util/grub-mkimage.c (generate_image): Unify diskboot.img size message.
4511 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4513 * grub-core/net/http.c: Add TRANSLATORS comments.
4514 * grub-core/normal/cmdline.c: Likewise.
4515 * grub-core/normal/misc.c: Likewise.
4516 * grub-core/partmap/msdos.c: Likewise.
4517 * grub-core/parttool/msdospart.c: Likewise.
4518 * grub-core/script/execute.c: Likewise.
4519 * grub-core/script/main.c: Likewise.
4520 * grub-core/term/terminfo.c: Likewise.
4521 * grub-core/video/bitmap.c: Likewise.
4522 * util/grub-install.in: Likewise.
4523 * util/grub-mkimage.c: Likewise.
4524 * util/grub-mklayout.c: Likewise.
4525 * util/grub-setup.c: Likewise.
4527 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4529 * util/grub-mount.c (fuse_init): Unify cryptomount and loopback messages
4530 with similar messages in grub-fstest.
4532 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4534 * util/grub-install.in: Unify "option requires an argument" message
4535 with similar messages in other files.
4536 * util/grub-mkconfig.in: Likewise.
4538 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4540 * util/grub-set-default.in: Replace printf with gettext_printf (the
4541 string in in question is already translated from grub-reboot)
4543 2012-03-05 Vladimir Serbinenko <phcoder@gmail.com>
4545 * configure.ac: Bump up the version to beta1.
4547 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4549 * grub-core/loader/i386/linux.c (allocate_pages): Fix handling of the
4550 case when min_align = 0.
4552 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4554 * grub-core/normal/charset.c (bidi_line_wrap): Fix a spurious warning
4555 and fix a case when line_start overflows.
4557 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4559 * util/grub-reboot.in (usage): Mention id posibility.
4560 * util/grub-set-default.in (usage): Likewise.
4562 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4564 * include/grub/misc.h (ALIGN_UP_OVERHEAD): New define.
4565 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Align initrds at 4.
4566 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
4567 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
4568 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
4569 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4570 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
4572 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4574 * grub-core/commands/menuentry.c (options): Remove
4575 GRUB_ARG_OPTION_REPEATABLE.
4576 Reported by: Andreas Vogel
4578 2012-03-04 Andreas Vogel <Andreas.Vogel@anvo-it.de>
4580 * grub-core/normal/main.c (grub_normal_free_menu): Fix memory leak.
4582 2012-03-04 Hideki EIRAKU <hdk1983@gmail.com>
4584 * grub-core/normal/menu_entry.c (kill_line): Fix a crash and off-by-one
4587 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4589 Use sort -V by the idea of Georgi Georgiev.
4591 * util/grub-mkconfig_lib.in (version_sort): New function.
4592 (version_test_numeric): Use version_sort.
4594 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4596 Use submenus in grub-mkconfig.
4598 * util/grub-mkconfig.in: Define GRUB_ACTUAL_DEFAULT.
4599 * util/grub-mkconfig_lib.in (grub_quote): New function.
4600 (gettext_printf): Use gettext and not gettext_quoted to fix several
4602 * util/grub.d/10_hurd.in: Use submenus.
4603 * util/grub.d/10_kfreebsd.in: Likewise.
4604 * util/grub.d/10_linux.in: Likewise.
4605 * util/grub.d/10_netbsd.in: Likewise.
4606 * util/grub.d/20_linux_xen.in: Likewise.
4607 * util/grub.d/30_os-prober.in: Likewise.
4608 * util/grub.d/10_illumos.in: Add missing quoting.
4609 * util/grub.d/10_windows.in: Likewise.
4611 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4613 Fix menu title instability bug.
4615 * grub-core/commands/menuentry.c (options): New option --id.
4616 (grub_normal_add_menu_entry): New argument id. All users updated.
4617 (grub_cmd_menuentry): Handle --id.
4618 (grub_menu_init): Accept unknown arguments.
4619 * grub-core/normal/main.c (features): Add feature_menuentry_id and
4620 feature_menuentry_options.
4621 * grub-core/normal/menu.c (grub_menu_execute_entry): Use id for
4623 (get_entry_number): Match with id as well.
4624 * include/grub/menu.h (grub_menu_entry): New member id.
4625 * util/grub-mkconfig_lib.in (grub_get_device_id): New function.
4626 * util/grub.d/00_header.in: Define menuentry_id_option.
4627 * util/grub.d/10_hurd.in: Define id.
4628 * util/grub.d/10_illumos.in: Likewise.
4629 * util/grub.d/10_kfreebsd.in: Likewise.
4630 * util/grub.d/10_linux.in: Likewise.
4631 * util/grub.d/10_netbsd.in: Likewise.
4632 * util/grub.d/10_windows.in: Likewise.
4633 * util/grub.d/20_linux_xen.in: Likewise.
4634 * util/grub.d/30_os-prober.in: Likewise.
4636 2012-03-04 Vladimir Serbinenko <phcoder@gmail.com>
4638 * grub-core/script/execute.c (grub_script_return): Replace ambiguous
4639 "scope" with "body".
4641 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4643 * include/grub/i386/linux.h (linux_kernel_header): Fix init_size type.
4644 * grub-core/loader/i386/linux.c (grub_cmd_linux): Differentiate between
4645 prot_size and prot_file_size.
4647 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4649 * grub-core/disk/diskfilter.c (is_lv_readable): New argument "easily".
4650 All users updated. If easily=1 require raid-5/-6 to be full.
4651 (is_node_readable): Likewise.
4652 (scan_devices): Scan incomplete but readable LVs at the end.
4653 (grub_diskfilter_memberlist): Pull missing devices.
4654 (insert_array): Skip scanning until device is complete or scan is
4656 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix wrong
4658 * include/grub/diskfilter.h (grub_diskfilter_lv): New member scanned.
4659 * util/raid.c (grub_util_raid_getmembers): Handle "removed" disks.
4661 2012-03-03 Matthew Garrett <mjg@redhat.com>
4662 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4664 Avoid EFI boot services when loading Linux.
4666 * grub-core/lib/i386/relocator.c (grub_relocator32_boot): New argument
4667 avoid_efi_bootservices. All users updated.
4668 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): New
4669 argument avoid_efi_bootservices. All users updated.
4670 Use grub_efi_mmap_iterate on EFI, grub_mmap_iterate if available.
4671 * grub-core/loader/i386/linux.c (allocate_pages): New arguments
4672 align, min_align, relocatable, prefered_address. All users updated.
4673 Allocate avoiding boot services if kernel is relocatable.
4674 (grub_cmd_linux): Check if kernel is relocatable.
4675 * grub-core/mmap/efi/mmap.c (grub_machine_mmap_iterate): Move most to ..
4676 (grub_efi_mmap_iterate): ... here. New argument avoid_efi_boot_services.
4677 Skip GRUB_EFI_BOOT_SERVICES_DATA and GRUB_EFI_BOOT_SERVICES_CODE if
4678 avoid_efi_boot_services.
4679 (grub_machine_mmap_iterate): Wrap grub_efi_mmap_iterate.
4680 * include/grub/i386/linux.h (linux_kernel_header): Update to 2.10.
4681 (linux_kernel_params): Likewise.
4683 2012-03-03 Matthew Garrett <mjg@redhat.com>
4684 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4688 * grub-core/kern/efi/efi.c (grub_efi_get_variable): New argument
4690 * grub-core/video/efi_gop.c (check_protocol): Check that GOP has usable
4691 modes. Set gop_handle.
4692 (grub_video_gop_get_edid): New function.
4693 (grub_gop_get_preferred_mode): Likewise.
4694 (grub_video_gop_setup): Use grub_gop_get_preferred_mode.
4695 (grub_video_efi_gop_adapter): Set .get_edid.
4696 * include/grub/efi/edid.h: New file.
4697 * include/grub/efi/efi.h (grub_efi_get_variable): Update proto.
4699 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4701 * util/grub-install.in: Load efivars unconditionally.
4703 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4705 * po/Rules-piglatin: Change suffix from .po-update-en to
4706 .po-update-en-piglatin.
4708 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4712 * po/piglatin.sed: New file.
4713 * po/en@piglatin.header: Likewise.
4714 * po/Rules-piglatin: Likewise.
4715 * po/README: Add en@piglatin to autogenerated languages.
4717 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4719 * grub-core/commands/date.c (GRUB_MOD_INIT): Remove non-uniform
4721 * grub-core/commands/hdparm.c (options): Use "Display" rather than
4722 "Check" since we don't check anything.
4723 * grub-core/commands/i386/cpuid.c (options): Clarify that long mode
4725 * grub-core/commands/search_wrap.c (options): Clarify the conditions.
4726 * grub-core/disk/geli.c (grub_md_sha256_real): Fix typo.
4727 (grub_md_sha512_real): Likewise.
4729 2012-03-03 Vladimir Serbinenko <phcoder@gmail.com>
4731 * grub-core/commands/gptsync.c: Fix typographic quoting.
4732 * grub-core/commands/ieee1275/suspend.c: Likewise.
4733 * grub-core/commands/parttool.c: Likewise.
4734 * grub-core/commands/search_wrap.c: Likewise.
4735 * grub-core/commands/videoinfo.c: Likewise.
4736 * grub-core/gfxmenu/gui_label.c: Likewise.
4737 * grub-core/hello/hello.c: Likewise.
4738 * grub-core/kern/emu/main.c: Likewise.
4739 * grub-core/net/net.c: Likewise.
4740 * grub-core/normal/menu.c: Likewise.
4741 * grub-core/normal/menu_text.c: Likewise.
4742 * grub-core/normal/misc.c: Likewise.
4743 * util/grub-editenv.c: Likewise.
4744 * util/grub-install.in: Likewise.
4745 * util/grub-kbdcomp.in: Likewise.
4746 * util/grub-mkconfig.in: Likewise.
4747 * util/grub-mknetdir.in: Likewise.
4748 * util/grub-mkrescue.in: Likewise.
4749 * util/grub-mkstandalone.in: Likewise.
4750 * util/grub-reboot.in: Likewise.
4751 * util/grub-set-default.in: Likewise.
4752 * util/grub-setup.c: Likewise.
4753 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4755 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4757 * grub-core/commands/acpihalt.c: Add TRANSLATORS comments.
4758 * grub-core/commands/keystatus.c: Likewise.
4759 * grub-core/commands/loadenv.c: Likewise.
4760 * grub-core/commands/probe.c: Likewise.
4761 * grub-core/commands/regexp.c: Likewise.
4762 * grub-core/commands/true.c: Likewise.
4763 * grub-core/commands/videoinfo.c: Likewise.
4764 * grub-core/disk/cryptodisk.c: Likewise.
4765 * grub-core/disk/ldm.c: Likewise.
4766 * grub-core/disk/loopback.c: Likewise.
4767 * grub-core/disk/luks.c: Likewise.
4768 * grub-core/fs/zfs/zfsinfo.c: Likewise.
4769 * grub-core/kern/disk.c: Likewise.
4770 * grub-core/kern/emu/hostdisk.c: Likewise.
4772 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4774 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS comment.
4775 * util/grub-install.in: Add missing quote in the comment.
4777 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4779 * grub-core/commands/i386/pc/drivemap.c: Add TRANSLATORS comments.
4780 * grub-core/commands/lsmmap.c: Likewise.
4781 * grub-core/commands/minicmd.c: Likewise.
4782 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
4783 * grub-core/commands/regexp.c: Likewise.
4784 * grub-core/gdb/gdb.c: Likewise.
4785 * grub-core/term/gfxterm.c: Likewise.
4786 * util/grub-mkconfig.in: Likewise.
4787 * util/grub-mkfont.c: Likewise.
4788 * util/grub-mklayout.c: Likewise.
4789 * util/grub-mknetdir.in: Likewise.
4790 * util/grub-mkrescue.in: Likewise.
4791 * util/grub.d/30_os-prober.in: Likewise.
4793 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4795 * grub-core/commands/videoinfo.c (hook): Replace "Direct"
4796 with "Direct color" and "Packed" with "Packed pixel".
4797 (grub_cmd_videoinfo): Simplify legend.
4799 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4801 * util/getroot.c (grub_make_system_path_relative_to_its_root): Fix
4802 absolutely unclear error message.
4804 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4806 * util/grub-mkstandalone.in: Remove confusing leftover print.
4808 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4810 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add TRANSLATORS
4812 * grub-core/gdb/gdb.c (grub_cmd_gdbstub): Likewise.
4813 (GRUB_MOD_INIT): Likewise.
4814 * grub-core/loader/i386/linux.c (grub_cmd_linux): Clarify that it's
4816 * grub-core/net/net.c (grub_net_route_address): Add TRANSLATORS
4818 * util/grub-install.in (usage): Likewise.
4819 Spell ID in whole letters.
4820 Add missing ending dot.
4822 * util/grub-reboot.in: Fix capitalisation.
4823 * util/grub-set-default.in: Likewise.
4825 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4827 * util/getroot.c (strip_extra_slashes) [CYGWIN]: #ifdef-out.
4828 (exec_pipe) [CYGWIN || MINGW32]: Likewise.
4829 (find_root_devices_from_poolname) [CYGWIN || MINGW32]: Likewise.
4830 (find_root_devices_from_libzfs) [CYGWIN || MINGW32]: Likewise.
4831 Disable -Werror for -Wdeprecated-declarations.
4832 (grub_guess_root_devices) [CYGWIN || MINGW32]: #ifdef-out.
4833 (get_dm_uuid) [!HAVE_DEVICE_MAPPER]: Likewise.
4834 (grub_util_get_dm_abstraction) [! __linux__]: #ifdef-out.
4835 (grub_util_get_grub_dev): Make luks handling dependent on
4836 HAVE_DEVICE_MAPPER and not __linux__.
4837 (get_win32_path): Fix format security.
4838 (grub_find_zpool_from_dir) [CYGWIN || MINGW32]: #ifdef-out.
4839 (grub_make_system_path_relative_to_its_root) [CYGWIN || MINGW32]:
4840 Don't try grub_find_zpool_from_dir.
4841 (grub_make_system_path_relative_to_its_root) [!__linux__]:
4842 #ifdef-out paresdir.
4844 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4846 * util/grub-pe2elf.c (usage): Add missing noreturn.
4847 (write_section_data): Rename name to shname to avoid shadowing.
4848 (write_symbol_table): Rename name to symname to avoid shadowing.
4849 Fix write_reloc_section call.
4851 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4853 * grub-core/boot/i386/pc/startup_raw.S: Move decompressor_end to .bss
4854 to ensure that it's after the last byte of .text.
4856 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4858 * util/ieee1275/ofpath.c (my_isdigit): New function.
4859 (trailing_digits): Use my_isdigit.
4860 (strip_trailing_digits): Likewise.
4862 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4864 * util/resolve.c (read_dep_list): Use grub_isspace instead of isspace.
4865 * grub-core/kern/emu/hostdisk.c (read_device_map): Likewise.
4867 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4869 * grub-core/kern/i386/pc/startup.S: Define __start.
4871 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4873 * gentpl.py (kernel): Remove the use of TARGET_OBJ2ELF after strip since
4874 strip already transforms he format.
4876 2012-03-02 Vladimir Serbinenko <phcoder@gmail.com>
4878 * conf/i386-pc-cygwin-img-ld.sc: Define also _edata and __edata.
4880 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4882 * util/grub-install.in: Add missing gettext init.
4883 * util/grub-kbdcomp.in: Likewise.
4884 * util/grub-mkconfig.in: Likewise.
4885 * util/grub-mknetdir.in: Likewise.
4886 * util/grub-mkrescue.in: Likewise.
4887 * util/grub-mkstandalone.in: Likewise.
4888 * util/grub-reboot.in: Likewise.
4889 * util/grub-set-default.in: Likewise.
4890 * util/grub.d/00_header.in: Likewise.
4891 * util/grub.d/10_hurd.in: Likewise.
4892 * util/grub.d/10_windows.in: Likewise.
4893 * util/grub.d/30_os-prober.in: Likewise.
4894 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
4896 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4898 * po/Rules-swiss: Fix header comment.
4900 2012-02-29 Andreas Vogel <anvoit>
4902 * grub-core/kern/misc.c (grub_xvasprintf): Fix an exit path which
4903 resulted in leak of arguments.
4905 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4907 * grub-core/boot/i386/pc/startup_raw.S: Use separate
4908 reed_solomon_size const definition instead of computing it since
4909 Apple assembler doesn't support the later.
4911 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4913 * gentpl.py (kernel): Rewrite Apple part.
4915 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4917 * include/grub/kernel.h (FOR_MODULES): Check module magic.
4919 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4921 * util/grub-mkimagexx.c (locate_sections): Support non-standard
4923 (load_image): Likewise.
4925 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4927 * configure.ac: Fix a typo in previous commit.
4929 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4931 Don't add -Wl,-N on Apple platform.
4933 * configure.ac (TARGET_LDFLAGS_OLDMAGIC): New subst.
4934 * conf/Makefile.common: Use TARGET_LDFLAGS_OLDMAGIC instead of -Wl,-N
4936 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4938 * grub-core/Makefile.core.def (lzma_decompress): Use
4939 TARGET_IMG_BASE_LDOPT rather than hardcoding -Wl,-Ttext.
4941 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4943 * grub-core/genmod.sh.in: Rewrite the Apple part.
4945 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4947 * grub-core/loader/machoXX.c (grub_macho_load): Fix signed vs unsigned
4950 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4952 * acinclude.m4 (grub_CHECK_PIC): New test.
4953 * configure.ac: Add -fno-PIC to TARGET_CFLAGS if -fPIC is default.
4955 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4957 * include/grub/libgcc.h (__STDC_VERSION__): Define if it's not yet so
4958 to avoid the warning.
4960 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4962 * grub-core/boot/i386/pc/diskboot.S (firstlist): Rename to ...
4963 (LOCAL(firstlist)): ... this. Move it before the firstlist and not
4964 after. All users updated.
4966 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4968 Use the common size routine in hostfs so we can read disks as well.
4970 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Rename to ..
4971 (grub_util_get_fd_size): ... this. Return size in bytes.
4973 * grub-core/kern/emu/hostfs.c (grub_hostfs_open): Use
4974 grub_util_get_fd_size.
4976 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4978 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__APPLE__]:
4979 Add blocksize retrieval.
4981 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4983 * configure.ac: Restore CFLAGS after efiemu check.
4985 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4987 * configure.ac: Move -fnested-functions to CPPFLAGS to workaround
4990 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4992 * grub-core/Makefile.am (MACHO2IMG): Add missing variable.
4994 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
4996 * grub-core/commands/i386/pc/halt.c (grub_halt): Add noreturn attribute.
4997 (grub_cmd_halt): Likewise.
4999 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5001 * grub-core/lib/i386/relocator16.S: Declare LOCAL(relocator16_end)
5002 for local arithmetics.
5003 Break %sp init into 2 instructions.
5004 Add 0 byte at the end.
5006 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5008 * grub-core/disk/diskfilter.c (read_segment): Initialise err
5011 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5013 * grub-core/lib/xzembed/xz_dec_stream.c (hash_validate): Use void *
5016 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5018 * grub-core/disk/ldm.c (make_vg): Init part.name.
5019 (grub_ldm_detect): Silence spurious warning.
5020 (grub_util_is_ldm): Likewise.
5022 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5024 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Init fsbfreq to
5025 sane value to avoid a spurious warning.
5027 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5029 * include/grub/dl.h: Switch from APPLE_CC to __APPLE__.
5030 (GRUB_MOD_LICENSE) [ASM_FILE]: Make into macro. All users updated.
5032 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5034 * include/grub/symbol.h (EXT_C) [!ASM_FILE]: Redefine with strings.
5035 * grub-core/lib/i386/backtrace.c (grub_backtrace): Use EXT_C.
5037 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5039 * grub-core/gdb/i386/machdep.S: Use VARIABLE and EXT_C instead of
5040 hardcoding the relevant info.
5042 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5044 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Add
5045 missing const qualifiers.
5046 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): Likewise.
5048 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5050 * util/getroot.c [__APPLE__]: Add missing includes.
5051 (grub_util_biosdisk_is_floppy): Fix usage of undefined variable.
5053 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5055 * util/grub-mkimage.c (generate_image): Silence spurious warning.
5057 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5059 * util/ieee1275/ofpath.c: Rename devname to sys_devname everywhere to
5062 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5064 * util/ieee1275/grub-ofpathname.c: Add missing config.h include.
5066 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5068 * util/grub-setup.c (setup) [!__linux__]: Add missing file declaration
5069 and grub_file_close call.
5071 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5073 Add LZSS Mach-O support (needed for new xnu kernelcache).
5075 * grub-core/Makefile.core.def (xnu): Add file lzss.c
5076 * grub-core/loader/lzss.c: New file.
5077 * grub-core/loader/xnu.c (grub_xnu_load_driver): Close binaryfile
5078 on Mach-O open failure.
5079 * grub-core/loader/macho.c (grub_macho_close): Free uncompressedXX.
5080 Don't free cmdsXX in uncompressedXX is set.
5081 (grub_macho_file): Init new fields.
5082 New argument is_64bit. All users updated.
5083 Handle compressed. Error out if no suitable architecture is found.
5085 (grub_macho_open): New argument is_64bit. All users updated.
5086 * grub-core/loader/macho32.c: Add defines for new fields.
5087 * grub-core/loader/macho64.c: Likewise.
5088 * grub-core/loader/machoXX.c (grub_macho_contains_macho): Make static.
5089 (grub_macho_parse): Handle compressed.
5090 Defer actual processing if compressed.
5091 (grub_macho_cmds_iterate): Decompress if compressed. New argument
5092 "filename". All users updated.
5093 (grub_macho_size): New argument "filename". All users updated.
5094 (grub_macho_get_entry_point): Likewise.
5095 (grub_macho_load): Handle compressed.
5096 * include/grub/macho.h (grub_macho_lzss_header): New struct.
5097 (GRUB_MACHO_LZSS_OFFSET): New define.
5098 (grub_decompress_lzss): New proto.
5099 * include/grub/machoload.h (grub_macho_file): New fields to handle
5101 (grub_macho_contains_macho64): Remove proto.
5102 (grub_macho_contains_macho32): Likewise.
5103 * util/grub.d/30_os-prober.in: Use kernel cache if available.
5105 2012-02-29 Vladimir Serbinenko <phcoder@gmail.com>
5107 * grub-core/disk/pata.c (grub_pata_readwrite): Fix ATAPI protocol error.
5109 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5113 * Makefile.am (starfield_theme_files): New var.
5114 (starfield_DATA): Use starfield_theme_files.
5115 (EXTRA_DIST): Add starfield_theme_files. Add starfield source files.
5116 Add bootcheck-related files.
5117 * conf/Makefile.extra-dist (EXTRA_DIST): Add several missing files.
5118 * docs/Makefile.am (EXTRA_DIST): Add font_char_metrics.png
5119 and font_char_metrics.txt.
5120 * grub-core/Makefile.core.def (kernel): Update extra_dist.
5121 (setjmp): Add lib/ia64/longjmp.S.
5122 * po/Makefile.in.in (DISTFILES): Add POTFILES-shell.in and grub.d.sed.
5123 * po/POTFILES.in: Regenerate.
5124 * po/Rules-swiss: use DISTFILES.common.extra2 and not
5125 DISTFILES.common.extra1.
5126 * util/devicemap.c: Removed.
5127 * grub-core/lib/i386/relocator_backward.S: Likewise.
5128 * util/import_gcry.py: Remove unused files. Add extra_dist for
5131 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5133 * grub-core/gettext/gettext.c (grub_mofile_open): Call
5134 grub_gettext_delete_list before changing grub_gettext_max to avoid
5135 running out of array bounds.
5137 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5139 * grub-core/term/i386/pc/vga_text.c: Add GRUB_MACHINE_MULTIBOOT to
5140 grub_vga_text_init/grub_vga_text_fini.
5142 2012-02-28 Vladimir Serbinenko <phcoder@gmail.com>
5144 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix format specification.
5146 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5148 * configure.ac: Bump to 2.00~beta0.
5150 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5152 * util/getroot.c (grub_find_root_devices_from_btrfs): Add
5153 missing initialisation.
5155 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5157 * grub-core/partmap/msdos.c (message_warn): Clarify messages.
5159 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5161 Support v2 xnu boot arguments.
5163 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree):
5164 New argument fsbfreq_out.
5165 (grub_xnu_set_video): Receive an argument grub_xnu_boot_params_common.
5166 (grub_xnu_boot): Support v2 arguments. Disable PIC so that APIC can
5168 * grub-core/loader/machoXX.c (grub_macho_load): New argument
5170 * grub-core/loader/xnu.c (grub_xnu_darwin_version): New variable.
5171 * include/grub/i386/xnu.h (grub_xnu_boot_params_common): New struct.
5172 (grub_xnu_boot_params): Rename to ...
5173 (grub_xnu_boot_params_v1): ...this. Use grub_xnu_boot_params_common.
5174 (grub_xnu_boot_params_v2): New struct.
5176 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5178 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Add missing
5179 zeroing of CRC field before computing CRC.
5181 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5183 * grub-core/lib/relocator.c (malloc_in_range): Fix memory leak.
5184 Change order of allocations to decrease fragmentation.
5186 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5188 * Makefile.util.def (grub-ofpathname): Enable on all platforms.
5190 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5192 Use write-combining MTRR to speed up video with buggy BIOSes.
5194 * grub-core/video/i386/pc/vbe.c (framebuffer): New member mtrr.
5195 (cpuid): New define.
5198 (mtrr_base): Likewise.
5199 (mtrr_mask): Likewise.
5200 (grub_vbe_enable_mtrr_entry): New function.
5201 (grub_vbe_enable_mtrr): Likewise.
5202 (grub_vbe_disable_mtrr): Likewise.
5203 (grub_vbe_bios_set_display_start): Disable mtrr when handing the
5204 control off to BIOS.
5205 (grub_video_vbe_init): Fill mtrr.
5206 (grub_video_vbe_fini): Disable mtrr.
5207 (grub_video_vbe_get_info_and_fini): Likewise.
5208 (grub_video_vbe_setup): Enable mtrr.
5210 2012-02-27 Colin Watson <cjwatson@ubuntu.com>
5212 * include/grub/partition.h (grub_partition_map): Change prototype of
5213 embed to take a maximum value for nsectors.
5214 * include/grub/emu/hostdisk.h (grub_util_ldm_embed): Likewise.
5215 * include/grub/fs.h (grub_fs): Likewise.
5216 * grub-core/partmap/msdos.c (embed_signatures): New array.
5217 (pc_partition_map_embed): Check for and avoid sectors matching any
5218 of the signatures in embed_signatures, up to max_nsectors.
5219 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restrict
5220 returned sector map to max_nsectors.
5221 * grub-core/disk/ldm.c (grub_util_ldm_embed): Likewise.
5222 * grub-core/fs/btrfs.c (grub_btrfs_embed): Likewise.
5223 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): Likewise.
5224 * util/grub-setup.c (setup): Allow for the embedding area being
5225 split into multiple blocklists. Tell dest_partmap->embed the
5226 maximum number of sectors we care about.
5228 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5230 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: Add blocklist_install field.
5231 Specify blocklist_install and reserver_first_sector for all fs.
5232 * util/grub-setup.c (setup): Use FIBMAP/FIEMAP on Linux. Check resulting
5235 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5237 * util/grub-install.in: Clarify strings.
5238 Fix source dir check.
5240 2012-02-27 Richard Laager <rlaager@wiktel.com>
5242 * util/getroot.c (grub_find_root_devices_from_mountinfo): Handle
5243 "zfs" and "fuse.zfs" as synonyms.
5245 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5247 * configure.ac: Put platform and target_cpu substitutions back since
5248 they are used for directories.
5250 2012-02-27 Richard Laager <rlaager@wiktel.com>
5251 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5253 * util/grub.d/10_linux.in: Add ZFS-related arguments.
5254 * util/grub.d/20_linux_xen.in: Likewise.
5256 2012-02-27 Richard Laager <rlaager@wiktel.com>
5258 * util/getroot.c (find_root_devices_from_poolname): Handle vdevs
5261 2012-02-27 Richard Laager <rlaager@wiktel.com>
5263 * util/getroot.c (grub_find_root_devices_from_mountinfo): Add missing
5266 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5268 Don't use insecure popen in getroot.
5270 * util/getroot.c (get_mdadm_uuid): Move pipe logic to ...
5271 (exec_pipe): ... here.
5272 (find_root_devices_from_poolname): Use exec_pipe.
5274 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5276 Remove platform and target_cpu replacement.
5278 * configure.ac: Remove platform and target_cpu substitutions.
5279 * tests/util/grub-shell.in: Use modinfo.
5280 * util/powerpc/ieee1275/grub-mkrescue.in: Specify powerpc-ieee1275
5283 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5285 Autodetect platform in grub-install but allow override.
5287 * util/grub-install.in: Autodetect platform. Support --target and
5288 --directory. Read platform from modinfo.sh.
5290 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5292 Support btrfs multi-volume probe.
5294 * util/getroot.c (btrfs_ioctl_dev_info_args) [__linux__]: New struct.
5295 (btrfs_ioctl_fs_info_args) [__linux__]: Likewise.
5296 (BTRFS_IOC_DEV_INFO) [__linux__]: New define.
5297 (BTRFS_IOC_FS_INFO) [__linux__]: Likewise.
5298 (grub_find_root_devices_from_btrfs) [__linux__]: New function.
5299 (grub_find_root_devices_from_mountinfo) [__linux__]: Use
5300 grub_find_root_devices_from_btrfs if on btrfs.
5302 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5304 Remove any awareness of *.c util files about target.
5306 * Makefile.util.def (grub-setup): Split to ...
5307 (grub-bios-setup): ... and this.
5308 (grub-sparc64-setup): ... and this.
5309 * configure.ac: Don't add machine_CPPFLAGS into HOST_CPPFLAGS.
5310 * docs/man/grub-setup.h2m: Split into ...
5311 * docs/man/grub-sparc64-setup.h2m: ... this.
5312 * docs/man/grub-bios-setup.h2m: ... and this.
5313 * include/grub/dl.h (grub_dl) [GRUB_UTIL]: Remove struct.
5314 * include/grub/elf.h (Elf_*) [GRUB_UTIL]: Remove types.
5315 (GRUB_TARGET_WORDSIZE) [GRUB_UTIL]: Remove.
5316 (grub_target_addr_t): Remove.
5317 (grub_target_size_t): Remove.
5318 (grub_target_ssize_t): Remove.
5319 * util/grub-install.in: Use new grub-*-setup.
5320 * util/grub-mkimagexx.c (Elf_Word): New define.
5321 (Elf_Half): Likewise.
5322 (Elf_Section): Likewise.
5323 (ELF_ST_TYPE): Likewise.
5324 * util/grub-setup.c: Switch from GRUB_MACHINE_SPARC64 to
5325 GRUB_SETUP_SPARC64 and from GRUB_MACHINE_PCBIOS to GRUB_SETUP_BIOS.
5327 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5329 Replace grub_target_addr with more appropriate types.
5331 * grub-core/commands/efi/fixvideo.c (scan_card): Replace
5332 grub_target_addr with grub_addr.
5333 * grub-core/commands/iorw.c (grub_cmd_read): Replace
5334 grub_target_addr with grub_port.
5335 (grub_cmd_write): Likewise.
5336 * grub-core/commands/memrw.c (grub_cmd_read): Replace
5337 grub_target_addr with grub_addr.
5338 (grub_cmd_write): Likewise.
5339 * grub-core/video/efi_uga.c (find_line_len): Likewise.
5341 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5343 * include/grub/efi/api.h (grub_efi_runtime_services): Add missing
5344 const qualifier for vendor_guid.
5346 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5348 * grub-core/efiemu/runtime/efiemu.c (efiemu_get_variable): Add missing
5350 (efiemu_memequal): Likewise.
5351 (find_variable): Likewise.
5353 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5355 Fix missing console prototype on qemu-mips.
5357 * include/grub/mips/qemu_mips/console.h: New file.
5359 2012-02-27 Matthew Garrett <mjg@redhat.com>
5360 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5362 * grub-core/kern/efi/efi.c (grub_efi_get_variable): Add new function.
5363 * include/grub/efi/efi.h: Likewise.
5364 * include/grub/efi/api.h: Add guid for EFI-specified variables.
5365 * include/grub/charset.h (GRUB_MAX_UTF16_PER_UTF8): New definition.
5366 * grub-core/normal/charset.c (grub_utf8_process): Move from here ...
5367 * include/grub/charset.h (grub_utf8_process): ... to here. Inline.
5368 * grub-core/normal/charset.c (grub_utf8_to_utf16): Move from here ...
5369 * include/grub/charset.h (grub_utf8_to_utf16): ... to here. Inline.
5371 2012-02-27 Matthew Garrett <mjg@redhat.com>
5373 * include/grub/efi/pci.h: New file to define EFI PCI protocols.
5375 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5377 * grub-core/disk/diskfilter.c (grub_diskfilter_iterate): Fix off-by-one
5380 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5382 * configure.ac: Remove inappropriate use of program_transform_name
5383 on grubdir and bootdir but allow explicit specification of those
5386 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5388 * util/grub-mknetdir.in (grub_prefix): Removed.
5389 (subdir): Use @bootdirname@ and @grubdirname@.
5391 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5393 Replace PACKAGE_TARNAME with PACKAGE in pkglibdir and pkgdatadir.
5395 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5397 * po/POTFILES.in: Regenerated.
5399 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5401 Remove improper use of program_transform_name on pkglibrootdir.
5403 * configure.ac (pkglibrootdir): Removed.
5404 (grub-mkimage): Replace PKGLIBROOTDIR with PKGLIBDIR.
5405 * util/grub-mkimage.c: Likewise.
5407 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5409 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Fix a
5412 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5414 * util/grub-install.in: Use file identifier if no UUID is available
5415 or user explicitly prompted for it.
5417 2012-02-27 Navdeep Parhar <nparhar@gmail.com>
5419 * grub-core/loader/i386/bsd.c (freebsd_zfsguid): New variable.
5420 (freebsd_get_zfs): New function.
5421 (grub_freebsd_boot): Pass zfs UUID.
5422 (grub_cmd_freebsd): Set zfs UUID.
5424 2012-02-27 Vladimir Serbinenko <phcoder@gmail.com>
5426 * conf/Makefile.common (platformdir): Base on pkglibdir and not
5429 2012-02-27 Mike Gilbert <floppym@gentoo.org>
5431 Add configure flag to control libzfs integration.
5433 * configure.ac: Add AC_ARG_ENABLE(libzfs ...) and associated logic.
5435 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5437 * grub-core/disk/diskfilter.c (insert_array): Choose the smallest
5439 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Reject too
5442 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5444 Remove grub_{modname}_init and grub_{modname}_fini. They should never
5445 be used directly if it's really a module and GRUB_MOD_INIT shouldn't
5446 be used on non-modules.
5448 * grub-core/commands/boot.c (GRUB_MOD_INIT) [LOONGSON || QEMU_MIPS]:
5449 Rename to grub_boot_init.
5450 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_boot_fini.
5451 * grub-core/commands/keylayouts.c (GRUB_MOD_INIT)
5452 [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_init.
5453 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_keylayouts_fini.
5454 * grub-core/font/font_cmd.c (GRUB_MOD_INIT)
5455 [LOONGSON || QEMU_MIPS]: Rename to grub_font_init.
5456 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to grub_font_fini.
5457 * grub-core/kern/mips/loongson/init.c: Replace explicit protos with
5459 (grub_machine_init): Remove empty inits.
5460 * grub-core/kern/mips/qemu_mips/init.c: Replace explicit protos with
5462 (grub_machine_init): Remove empty inits.
5463 * grub-core/term/arc/console.c: Remove explicit proto.
5464 * grub-core/term/at_keyboard.c (GRUB_MOD_INIT)
5465 [LOONGSON || QEMU_MIPS]: Rename to grub_at_keyboard_init.
5466 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5467 grub_at_keyboard_fini.
5468 * grub-core/term/gfxterm.c (GRUB_MOD_INIT)
5469 [LOONGSON || QEMU_MIPS]: Rename to grub_gfxterm_init.
5470 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5472 * grub-core/term/i386/pc/vga_text.c (GRUB_MOD_INIT)
5473 [LOONGSON || QEMU_MIPS]: Rename to grub_vgatext_init.
5474 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5476 * grub-core/term/ieee1275/console.c: Remove explicit proto.
5477 * grub-core/term/serial.c (GRUB_MOD_INIT)
5478 [LOONGSON || QEMU_MIPS]: Rename to grub_serial_init.
5479 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5481 * grub-core/term/terminfo.c (GRUB_MOD_INIT)
5482 [LOONGSON || QEMU_MIPS]: Rename to grub_terminfo_init.
5483 (GRUB_MOD_FINI) [LOONGSON || QEMU_MIPS]: Rename to
5485 * grub-core/video/bitmap.c (GRUB_MOD_INIT): Removed.
5486 (GRUB_MOD_FINI): Likewise.
5487 * grub-core/video/radeon_fuloong2e.c (GRUB_MOD_INIT)
5488 [LOONGSON]: Rename to grub_video_radeon_fuloong2e_init.
5489 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5490 grub_video_radeon_fuloong2e_fini.
5491 * grub-core/video/sis315pro.c (GRUB_MOD_INIT)
5492 [LOONGSON]: Rename to grub_video_sis315pro_init.
5493 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5494 grub_video_sis315pro_fini.
5495 * grub-core/video/sm712.c (GRUB_MOD_INIT)
5496 [LOONGSON]: Rename to grub_video_sm712_init.
5497 (GRUB_MOD_FINI) [LOONGSON]: Rename to
5498 grub_video_sm712_fini.
5499 * include/grub/at_keyboard.h (grub_at_keyboard_init): New proto.
5500 (grub_at_keyboard_fini): Likewise.
5501 * include/grub/dl.h (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]:
5502 Don't declare grub_{modname}_init.
5503 (GRUB_MOD_INIT) [!GRUB_UTIL && !EMU]: Don't declare grub_{modname}_fini.
5504 * include/grub/keyboard_layouts.h (grub_keylayouts_init) [!EMU]:
5506 (grub_keylayouts_fini) [!EMU]: Likewise.
5507 * include/grub/serial.h (grub_serial_init) [!EMU]:
5509 (grub_serial_fini) [!EMU]: Likewise.
5510 * include/grub/terminfo.h (grub_terminfo_init) [!EMU]:
5512 (grub_terminfo_fini) [!EMU]: Likewise.
5513 * include/grub/video.h (grub_font_init) [!EMU]:
5515 (grub_font_fini) [!EMU]: Likewise.
5516 (grub_gfxterm_init) [!EMU]: Likewise.
5517 (grub_gfxterm_fini) [!EMU]: Likewise.
5518 (grub_video_sm712_init) [!EMU]: Likewise.
5519 (grub_video_sm712_fini) [!EMU]: Likewise.
5520 (grub_video_sis315pro_init) [!EMU]: Likewise.
5521 (grub_video_sis315pro_fini) [!EMU]: Likewise.
5522 (grub_video_radeon_fuloong2e_init) [!EMU]: Likewise.
5523 (grub_video_radeon_fuloong2e_fini) [!EMU]: Likewise.
5525 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5527 Make nand a prefix for nand devices.
5529 * grub-core/disk/ieee1275/nand.c (grub_nand_open): Use prefix nand.
5531 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5533 * grub-core/kern/misc.c (grub_stpcpy): Move from here ...
5534 * include/grub/misc.h (grub_stpcpy): ... to here. Inlined.
5536 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5538 * include/grub/env.h (grub_env_find): Remove prototype.
5539 * grub-core/kern/env.c (grub_env_find): Make static.
5540 (grub_env_set): Remove useless set.
5542 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5544 * grub-core/kern/i386/realmode.S: Remove useless align.
5546 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5548 * include/grub/dl.h (grub_dl_load_file): Don't export.
5550 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5552 * grub-core/disk/diskfilter.c (grub_diskfilter_open): Remove useless
5555 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5557 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Remove useless
5559 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Simplify by
5560 not reloading whole superblock but only the part which is really needed.
5561 Remove useless grub_errors.
5562 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Remove useless
5565 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5567 Don't export grub_get_rtc.
5569 * include/grub/i386/pc/time.h (grub_get_rtc): Don't export.
5570 * grub-core/commands/i386/pc/play.c (play): Use grub_get_time_ms.
5572 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5574 * grub-core/genmod.sh.in: Add -R .note.GNU-stack to strip.
5576 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5578 * grub-core/disk/diskfilter.c (insert_array): Remove scanner_name
5579 argument since it can be deduced from diskfilter. All users updated.
5581 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5585 * include/grub/list.h (grub_prio_list): Removed.
5586 (GRUB_PRIO_LIST_PRIO_MASK): Removed. All users switched to
5587 GRUB_COMMAND_PRIO_MASK.
5588 (GRUB_PRIO_LIST_FLAG_ACTIVE): Removed. All users switched to
5589 GRUB_COMMAND_FLAG_ACTIVE.
5590 (grub_prio_list_insert): Removed.
5591 (grub_prio_list_remove): Likewise.
5592 (GRUB_AS_PRIO_LIST): Likewise.
5593 (GRUB_AS_PRIO_LIST_P): Likewise.
5594 * include/grub/command.h (GRUB_COMMAND_PRIO_MASK): New define.
5595 (GRUB_COMMAND_FLAG_ACTIVE): Likewise.
5596 * grub-core/kern/list.c (grub_prio_list_insert): Remove.
5597 * grub-core/kern/command.c (grub_register_command_prio): Inline
5599 (grub_unregister_command): Likewise.
5601 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5603 Fix interrupt mixup from previous commit.
5605 * include/grub/i386/pc/int.h (grub_i386_idt): New struct.
5606 (grub_realidt): New var.
5607 * grub-core/lib/i386/relocator16.S (grub_relocator16_idt): New variable
5609 * grub-core/lib/i386/relocator.c (grub_relocator16_idt):
5611 (grub_relocator16_boot): Set grub_relocator16_idt.
5612 * grub-core/kern/i386/realmode.S (realidt): Renamed to ...
5613 (LOCAL(realidt)): ... this.
5614 * grub-core/boot/i386/pc/startup_raw.S: Pass pointer to realidt in eax.
5615 * grub-core/kern/i386/pc/startup.S: Save pointer to realidt.
5616 (grub_realidt): New variable.
5618 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5620 * grub-core/lib/i386/backtrace.c (grub_cmd_backtrace): Move from ...
5621 * grub-core/lib/backtrace.c (grub_cmd_backtrace): ... to here.
5622 * grub-core/lib/i386/backtrace.c (GRUB_MOD_INIT): Move from ...
5623 * grub-core/lib/backtrace.c (GRUB_MOD_INIT): ... to here.
5625 * grub-core/lib/i386/backtrace.c (GRUB_MOD_FINI): Move from ...
5626 * grub-core/lib/backtrace.c (GRUB_MOD_FINI): ... to here.
5627 * po/POTFILES.in: Regenerate.
5629 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5631 * grub-core/commands/probe.c (grub_cmd_probe): Gettextise UUID and label
5634 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5636 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len): Stop on
5638 (add_length): Likewise.
5640 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5641 2012-02-26 Lubomir Kundrak <lkundrak@redhat.com>
5643 GDB serial and backtrace support.
5645 * grub-core/kern/i386/realmode.S (real_to_prot): Reload IDT.
5646 (prot_to_real): Likewise.
5647 * grub-core/kern/i386/int.S (grub_bios_interrupt): Remove IDT reload.
5648 * grub-core/Makefile.core.def (backtrace): New module.
5650 * grub-core/gdb/cstub.c: New file.
5651 * grub-core/gdb/gdb.c: Likewise.
5652 * grub-core/gdb/i386/idt.c: Likewise.
5653 * grub-core/gdb/i386/machdep.S: Likewise.
5654 * grub-core/gdb/i386/signal.c: Likewise.
5655 * grub-core/lib/i386/backtrace.c: Likewise.
5656 * grub-core/lib/backtrace.c: Likewise.
5657 * include/grub/backtrace.h: Likewise.
5658 * include/grub/gdb.h: Likewise.
5659 * include/grub/i386/gdb.h: Likewise.
5661 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5663 * grub-core/gnulib/argp-fmtstream.c (__argp_get_display_len):
5665 (add_length): Likewise.
5666 (__argp_fmtstream_update): Handle strings with non-ASCII chars.
5667 * grub-core/gnulib/argp-fmtstream.h (__argp_get_display_len): New
5669 * grub-core/gnulib/argp-help.c (argp_args_usage): Use
5670 __argp_get_display_len.
5672 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5674 $"..." support in scripts.
5676 * grub-core/script/execute.c (grub_script_arglist_to_argv): Handle
5677 GRUB_SCRIPT_ARG_TYPE_GETTEXT.
5678 * grub-core/script/yylex.l: Likewise.
5679 * include/grub/script_sh.h (GRUB_SCRIPT_ARG_TYPE_GETTEXT): New enum
5682 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5684 * gentpl.py: Remove obsolete pkglib_DATA handling.
5686 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5688 Don't transform PACKAGE_TARNAME following a discussion on autoconf
5691 * util/grub-install.in: Don't transform PACKAGE_TARNAME.
5692 * util/grub-kbdcomp.in: Likewise.
5693 * util/grub-mkconfig.in: Likewise.
5694 * util/grub-mkconfig_lib.in: Likewise.
5695 * util/grub-mknetdir.in: Likewise.
5696 * util/grub-mkrescue.in: Likewise.
5697 * util/grub-mkstandalone.in: Likewise.
5698 * util/grub-reboot.in: Likewise.
5699 * util/grub-set-default.in: Likewise.
5700 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
5702 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5706 * util/grub-mkconfig.in: Remove GRUB_PREFIX.
5707 * util/grub.d/00_header.in: Compute prefix in the only place it's still
5708 used for backward compatibility.
5710 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5712 Add new all_video module.
5714 * grub-core/Makefile.am (moddep.lst): Make dependent on video.lst.
5715 * grub-core/Makefile.core.def (all_video): New module.
5716 * grub-core/genmoddep.awk: Generate dependency of all_video from
5718 * grub-core/lib/fake_module.c: New file.
5719 * grub-core/normal/main.c (features): Add feature_all_video_module.
5720 * util/grub.d/00_header.in: Define locale_dir based on $prefix and
5721 don't do explicit search again.
5722 insmod all_video in load_video if available.
5724 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5726 Another round of string clarification and adding TRANSLATORS comments.
5728 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5730 * util/grub-mknetdir.in: Remove erroneous reference to install_device.
5732 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5734 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Fix return type
5736 * grub-core/normal/main.c (grub_normal_init_page): Fix msg_len type.
5737 * include/grub/charset.h (grub_utf8_to_ucs4_alloc): Fix prototype.
5739 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5741 * grub-core/normal/menu_text.c (grub_print_message_indented_real): Add
5742 trailing newline implicitly. All users updated.
5744 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5746 Implement serial on IEEE1275 and EFI.
5748 * docs/grub.texi (Platform-specific limitations): Fix the columen video
5749 on emu. Mention arc and emu as the only platforms without serial
5751 * grub-core/Makefile.core.def (serial): Enable on all terminfomodule and
5753 * grub-core/term/efi/serial.c: New file.
5754 * grub-core/term/ieee1275/serial.c: Likewise.
5755 * grub-core/term/serial.c (grub_serial_find): Disable direct port
5756 specification if no ns8250 driver is available.
5757 (grub_cmd_serial): Likewise.
5758 (GRUB_MOD_INIT) [GRUB_MACHINE_IEEE1275]: Init ofserial.
5759 (GRUB_MOD_INIT) [GRUB_MACHINE_EFI]: Init efiserial.
5760 * include/grub/efi/api.h (GRUB_EFI_SERIAL_IO_GUID): New define.
5761 (grub_efi_parity_type_t): New type.
5762 (grub_efi_stop_bits_t): Likewise.
5763 (grub_efi_serial_io_interface): New struct.
5764 * include/grub/serial.h (grub_serial_port): Make 'broken' field
5765 available for all interfaces.
5766 Add EFI and IEEE1275 fields.
5767 (grub_ofserial_init): New proto.
5768 (grub_efiserial_init): Likeiwse.
5769 * util/grub.d/00_header.in: Don't check for the presence of serial
5772 2012-02-26 Vladimir Serbinenko <phcoder@gmail.com>
5774 * grub-core/disk/ieee1275/ofdisk.c (scan): Fix improper use of device
5775 name as if it was an alias.
5777 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5779 * grub-core/commands/lsacpi.c (options): Fix typo.
5781 2012-02-25 Vladimir Serbinenko <phcoder@gmail.com>
5783 Convert grub-emu to argp.
5785 * grub-core/Makefile.core.def (kernel): Add kern/emu/argp_common.c on
5787 * util/argp_common.c: Rename to ...
5788 * grub-core/kern/emu/argp_common.c: ... this. All users updated.
5789 Add missing includes.
5790 * grub-core/kern/emu/main.c: Convert to argp.
5791 * po/POTFILES.in: Regenerate.
5792 * util/grub-install.in (usage): Make first letter lowcase in messages
5794 * util/grub-setup.c (options): Likewise.
5796 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5798 * grub-core/gfxmenu/gui_progress_bar.c (progress_bar_set_property):
5799 Put back accidently commented-out code.
5801 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5803 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_iterate_node): Add btree
5804 loop check using Brent algorithm.
5805 (grub_hfsplus_btree_search): Likewise.
5807 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5809 * util/grub-install.in: Fix usage of wrong device for PreP install.
5811 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5813 * conf/Makefile.common (CFLAGS_GNULIB): Add
5814 -Wno-unsafe-loop-optimizations.
5815 * configure.ac: Remove -Wmissing-declarations and -Wmissing-prototypes
5817 * grub-core/commands/legacycfg.c: Add pragma to skip
5818 -Wunsafe-loop-optimizations.
5819 (check_password_md5_real): Fix loop counter type.
5820 * grub-core/commands/testload.c (grub_cmd_testload): Fix over the EOF
5822 * grub-core/disk/ldm.c (grub_util_get_ldm): Fix logic error.
5823 * grub-core/fs/zfs/zfs_sha256.c (zio_checksum_SHA256): Add safety
5825 * grub-core/io/gzio.c: Add pragma to skip -Wunsafe-loop-optimizations.
5826 * grub-core/lib/LzmaEnc.c (GetOptimum): Avoid possible infinite loop.
5827 * grub-core/net/net.c (grub_net_route_address): Add safety loop
5829 * grub-core/normal/charset.c (bidi_line_wrap): Likewise.
5830 * grub-core/normal/cmdline.c (grub_set_history): Fix loop types and
5831 avoid possible infinite loops.
5832 * grub-core/script/parser.y: Add pragma to skip -Wmissing-declarations
5833 and -Wunsafe-loop-optimizations.
5834 * grub-core/script/yylex.l: Likewise.
5835 * util/grub-mkfont.c: Add pragma to skip -Wunsafe-loop-optimizations.
5836 (print_glyphs): Avoid infinite loops.
5837 * util/grub-mkimage.c (compress_kernel_xz): Fix format security.
5839 2012-02-24 Grégoire Sutre <gregoire.sutre@gmail.com>
5841 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): Fix loop condition
5842 to avoid infinite loop.
5843 (disp_acpi_rsdt_table): Likewise.
5845 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5847 * grub-core/font/font.c (grub_font_load): Add support for default
5848 path for fonts ($prefix/fonts).
5849 * grub-core/kern/corecmd.c (grub_core_cmd_insmod): Unify condition
5850 for checking if string is a path.
5851 * grub-core/normal/main.c (features): Add feature_default_font_path.
5852 * util/grub-mkconfig.in: Skip mangling of GRUB_FONT into GRUB_FONT_PATH.
5853 * util/grub.d/00_header.in: Use default directory if possible.
5854 * util/grub-install.in: Install unicode.pf2.
5856 2012-02-24 Vladimir Serbinenko <phcoder@gmail.com>
5858 * po/README: Add de_CH and en@quot to po/LINGUAS generation command.
5859 * po/Rules-swiss: New file.
5860 * po/swiss.sed: Likewise.
5862 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5864 * grub-core/fs/btrfs.c (find_device): Fix typos.
5865 * grub-core/fs/zfs/zfs.c (read_device): Likewise.
5866 * util/grub-mkrelpath.c (argp_parser): Likewise.
5867 Reported by: Yuri Chornoivan.
5869 2012-02-23 Dalet Omega <daletomega@gmail.com>
5871 * grub-core/gfxmenu/gui_label.c (label_set_property): Add template
5872 for usual informative messages.
5874 2012-02-23 Dalet Omega <daletomega@gmail.com>
5878 * Makefile.am: Define starfield_DATA and dejavu.pf2 generation.
5879 * conf/Makefile.common: Define starfielddir.
5880 * configure.ac: Configure starfield.
5881 * themes/starfield/COPYING.CC-BY-SA-3.0: New file.
5882 * themes/starfield/README: Likewise.
5883 * themes/starfield/blob_w.png: Likewise.
5884 * themes/starfield/boot_menu_c.png: Likewise.
5885 * themes/starfield/boot_menu_e.png: Likewise.
5886 * themes/starfield/boot_menu_n.png: Likewise.
5887 * themes/starfield/boot_menu_ne.png: Likewise.
5888 * themes/starfield/boot_menu_nw.png: Likewise.
5889 * themes/starfield/boot_menu_s.png: Likewise.
5890 * themes/starfield/boot_menu_se.png: Likewise.
5891 * themes/starfield/boot_menu_sw.png: Likewise.
5892 * themes/starfield/boot_menu_w.png: Likewise.
5893 * themes/starfield/slider_c.png: Likewise.
5894 * themes/starfield/slider_n.png: Likewise.
5895 * themes/starfield/slider_s.png: Likewise.
5896 * themes/starfield/src/blob_nw.xcf: Likewise.
5897 * themes/starfield/src/bootmenu/: Likewise.
5898 * themes/starfield/src/bootmenu/center.xcf: Likewise.
5899 * themes/starfield/src/bootmenu/corner.xcf: Likewise.
5900 * themes/starfield/src/bootmenu/side.xcf: Likewise.
5901 * themes/starfield/src/slider_c.xcf: Likewise.
5902 * themes/starfield/src/slider_n.xcf: Likewise.
5903 * themes/starfield/src/slider_s.xcf: Likewise.
5904 * themes/starfield/src/terminalbox/: Likewise.
5905 * themes/starfield/src/terminalbox/center.xcf: Likewise.
5906 * themes/starfield/src/terminalbox/corner.xcf: Likewise.
5907 * themes/starfield/src/terminalbox/side.xcf: Likewise.
5908 * themes/starfield/starfield.png: Likewise.
5909 * themes/starfield/terminal_box_c.png: Likewise.
5910 * themes/starfield/terminal_box_e.png: Likewise.
5911 * themes/starfield/terminal_box_n.png: Likewise.
5912 * themes/starfield/terminal_box_ne.png: Likewise.
5913 * themes/starfield/terminal_box_nw.png: Likewise.
5914 * themes/starfield/terminal_box_s.png: Likewise.
5915 * themes/starfield/terminal_box_se.png: Likewise.
5916 * themes/starfield/terminal_box_sw.png: Likewise.
5917 * themes/starfield/terminal_box_w.png: Likewise.
5918 * themes/starfield/theme.txt: Likewise.
5920 2012-02-23 Vladimir Serbinenko <phcoder@gmail.com>
5922 * util/grub.d/00_header.in: Add missing export theme.
5924 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5926 * util/ieee1275/ofpath.c: Remove include of malloc.h since stdlib is
5928 Reported by: Eren D.
5930 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5932 * conf/Makefile.common (grubdatadir): Removed.
5933 (Makefile.am): Move eveything grubdata to pkgdata.
5935 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5937 * grub-core/commands/acpihalt.c (get_sleep_type):
5938 Remove unused variable.
5940 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5942 * include/grub/acpi.h (GRUB_ASCII_OPCODE): Add
5943 GRUB_ACPI_OPCODE_STRING_CONST, GRUB_ACPI_OPCODE_BUFFER,
5944 GRUB_ACPI_OPCODE_CREATE_WORD_FIELD
5945 and GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD.
5946 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Replace include of
5947 i18n with gettext no-op.
5948 (skip_data_ref_object): Support GRUB_ACPI_OPCODE_BUFFER and
5949 GRUB_ACPI_OPCODE_STRING_CONST.
5950 (get_sleep_type): Support GRUB_ACPI_OPCODE_CREATE_WORD_FIELD and
5951 GRUB_ACPI_OPCODE_CREATE_BYTE_FIELD. Add handling of unknown opcodes.
5953 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5955 * po/POTFILES.in: Regenerate.
5957 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5959 * Makefile.util.def (libgrubmods.a): Add -Wno-error=logical-op
5960 -Wno-error=missing-noreturn.
5962 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5964 * grub-core/fs/affs.c (grub_affs_read_block): Avoid <= in loop
5965 condition to avoid possibly infinite loops.
5966 * grub-core/lib/pbkdf2.c (grub_crypto_pbkdf2): Likewise.
5967 * grub-core/lib/xzembed/xz_dec_bcj.c (bcj_powerpc): Likewise.
5969 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5971 * grub-core/normal/charset.c (bidi_line_wrap): Avoid <= in loop
5972 condition to avoid possibly infinite loops.
5974 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5976 * grub-core/kern/emu/hostdisk.c (read_device_map): Add missing noreturn
5979 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5981 * grub-core/kern/disk.c (grub_disk_write): Add missing const qualifier.
5983 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5985 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Add missing var init.
5987 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5989 * util/bin2h.c (usage): Add missing attribute noreturn.
5991 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5993 * grub-core/commands/testload.c (grub_cmd_testload): Fix overflow
5994 if the size isn't divisible by 512.
5996 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
5998 Make list_push and list_remove functions rather than inline functions
5999 to decrease size and avoid aliasing violations.
6001 * include/grub/list.h (grub_list_push): Move to ...
6002 * grub-core/kern/list.c (grub_list_push): ... here. Don't inline.
6003 * include/grub/list.h (grub_list_remove): Move to ...
6004 * grub-core/kern/list.c (grub_list_remove): ... here. Don't inline.
6006 2012-02-22 Vladimir Serbinenko <phcoder@gmail.com>
6008 * configure.ac: Disable for now -Wstack-protector, -Wunreachable-code
6009 and -Wunused-result.
6011 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6013 * grub-core/net/net.c (grub_cmd_deladdr): Fix index.
6014 Reported by: Seth Goldberg
6016 2012-02-21 Vladimir Serbinenko <phcoder@gmail.com>
6018 * configure.ac: Add -fno-builtin-gettext on host if NLS is disabled.
6020 2012-02-19 Samuel Thibault <samuel.thibault@ens-lyon.org>
6022 * util/grub-mkconfig.in (GRUB_CMDLINE_GNUMACH): Export variable.
6023 * util/grub.d/10_hurd.in: Include GRUB_CMDLINE_GNUMACH in gnumach
6025 * docs/grub.texi (Simple configuration): Document
6026 GRUB_CMDLINE_GNUMACH.
6028 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
6030 * conf/Makefile.common (platform_SCRIPTS): New variable.
6031 (platform_PROGRAMS): Likewise.
6032 * gentpl.py: Mark *,module and *.image for install.
6033 * grub-core/gdb_grub.in: Add a notice of expected environment.
6034 * grub-core/Makefile.core.def (gdb_grub): Mark for install.
6035 (gmodule.pl): Likewise.
6037 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
6039 Replace grub_checkkey with grub_getkey_noblock.
6041 * grub-core/kern/term.c (grub_checkkey): Replaced with ...
6042 (grub_getkey_noblock): ... this. All users updated.
6044 2012-02-18 Vladimir Serbinenko <phcoder@gmail.com>
6046 * grub-core/kern/emu/console.c: Move to ...
6047 * grub-core/term/emu/console.c: ...here.
6048 (grub_ncurses_getkey): Fix return value if no key is detected.
6050 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6052 * include/grub/test.h (grub_unit_test_init): Add missing prototype.
6053 (grub_unit_test_fini): Likewise.
6054 * tests/lib/unit_test.c (main): Remove extra nested external prototype.
6056 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6058 * include/grub/test.h (GRUB_UNIT_TEST)
6060 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6062 * grub-core/script/execute.c (grub_script_break): Clarify logic.
6063 Better error handling.
6064 (grub_script_return): Likewise.
6065 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
6067 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6069 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (__GNU_LIBRARY__): Avoid
6070 rimplicit redifinition.
6072 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6074 * docs/grub.texi (Internationalisation): Detail (lack of) collation in
6077 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6079 * grub-core/normal/cmdline.c (grub_cmdline_get): Don't gettext prompt.
6080 * grub-core/normal/main.c (grub_normal_read_line_real): Gettext
6083 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6085 * grub-core/fs/zfs/zfs.c (zfs_fetch_nvlist): Mark unknown member here
6086 as GRUB_ERR_BUG. Don't malloc if no device is available.
6088 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6090 * grub-core/term/terminfo.c (grub_terminfo_output_unregister):
6091 Mark calling with invalid term as GRUB_ERR_BUG.
6093 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6095 * grub-core/net/tftp.c (tftp_receive): Silently discard too short
6096 packets rather than raising an error.
6098 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6100 * grub-core/loader/xnu.c (grub_xnu_writetree_toheap_real): Avoid set
6103 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6105 * grub-core/loader/efi/appleloader.c (grub_cmd_appleloader): Move
6106 diagnostic to dprintf.
6107 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
6109 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6111 * grub-core/kern/corecmd.c (grub_core_cmd_ls): Handle error in parsing
6114 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6116 * grub-core/fs/ntfs.c (locate_attr): Avoid set in if.
6117 (grub_ntfs_iterate_dir): Likewise.
6119 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6121 Efiemu stylistic fixes and gettext.
6123 * grub-core/efiemu/i386/loadcore32.c
6124 (grub_arch_efiemu_relocate_symbols32): Avoid set in if.
6125 * grub-core/efiemu/i386/loadcore64.c
6126 (grub_arch_efiemu_relocate_symbols64): Likewise.
6127 * grub-core/efiemu/i386/pc/cfgtables.c
6128 (grub_machine_efiemu_init_tables): Likewise.
6129 * grub-core/efiemu/loadcore.c (grub_efiemu_resolve_symbols): Likewise.
6130 (grub_efiemu_loadcore_initXX): Add a filename argument.
6132 Improved error message.
6133 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_init):
6134 Add a filename argument.
6136 * grub-core/efiemu/symbols.c (grub_efiemu_set_virtual_address_map):
6137 Reclassify double relocation as GRUB_ERR_BUG.
6139 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6141 * grub-core/commands/i386/pc/play.c (grub_cmd_play): Improve error
6144 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6146 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Allow running
6149 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6151 * include/grub/misc.h (grub_error_save): Fix cleaning grub_errno.
6153 2012-02-12 Vladimir Serbinenko <phcoder@gmail.com>
6155 Improve string. Gettextize.
6157 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6159 * configure.ac: Remove -Winline altogether and -Wmissing-prototypes on
6161 * util/import_gcry.py: Add -Wno-strict-aliasing on checked modules.
6163 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6165 * grub-core/disk/diskfilter.c (grub_diskfilter_print_partmap)
6166 [GRUB_UTIL]: New function.
6167 (insert_array) [GRUB_UTIL]: Store partmaps.
6168 * include/grub/diskfilter.h (grub_diskfilter_pv) [GRUB_UTIL]: New member
6170 (grub_diskfilter_print_partmap) [GRUB_UTIL]: New proto.
6171 * util/grub-probe.c (probe_partmap): Call grub_diskfilter_print_partmap.
6172 (probe_abstraction): Print diskfilter and not raid.
6173 Reported by: Lennart Sorensen
6175 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6177 * util/grub-mkimage.c (generate_image): Explicitly init decompress_size.
6178 * util/grub-mkimagexx.c (MASK3): New define.
6179 (add_value_to_slot_20b): Use MASK3.
6180 (add_value_to_slot_21): Likewise.
6181 (relocate_addresses): Fix format specification.
6182 (load_image): Explicitly init symtab_section.
6184 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6186 * util/getroot.c (grub_find_root_devices_from_mountinfo): Fix types.
6187 (grub_util_biosdisk_get_grub_dev): Fix format specification.
6189 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6191 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size): Enable
6193 Reported by: Lennart Sorensen
6195 2012-02-11 Vladimir Serbinenko <phcoder@gmail.com>
6197 * gentpl.py: Add missing license header.
6198 * docs/grub.texi: Update copyright year.
6200 2012-02-10 Grégoire Sutre <gregoire.sutre@gmail.com>
6202 Source grub-mkconfig_lib from the build directory at build time.
6203 Suggested by: Vladimir Serbinenko.
6205 * gentpl.py (manpage): Set pkgdatadir to $(builddir) on help2man call.
6206 * util/grub-install.in: Define pkgdatadir if not already set, and source
6207 grub-mkconfig_lib from there.
6208 * util/grub-kbdcomp.in: Likewise.
6209 * util/grub-mkconfig.in: Likewise.
6210 * util/grub-mknetdir.in: Likewise.
6211 * util/grub-mkrescue.in: Likewise.
6212 * util/grub-mkstandalone.in: Likewise.
6213 * util/grub-reboot.in: Likewise.
6214 * util/grub-set-default.in: Likewise.
6215 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
6217 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6219 Increase warning level.
6221 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-redundant-decls
6222 -Wno-unreachable-code -Wno-conversion -Wno-old-style-definition.
6223 * configure.ac (HOST_CFLAGS): Add bunch of -W arguments.
6224 (TARGET_CFLAGS): Likewise.
6225 (HOST_CFLAGS): Add -Werror unless --disable-werror is activated.
6226 * grub-core/Makefile.core.def (decompressor_xz): Add
6227 -Wno-unreachable-code.
6228 (normal): Add -Wno-redundant-decls.
6229 (xzio): Add -Wno-unreachable-code.
6230 (lzopio): Add -Wno-redundant-decls -Wno-error.
6231 * grub-core/commands/acpi.c: Add exception to -Wcast-align.
6232 * grub-core/commands/lsacpi.c: Add exception to -Wcast-align.
6233 * grub-core/gensymlist.sh: Add exception to -Wmissing-format-attribute.
6234 * grub-core/kern/dl.c: Add exception to -Wcast-align.
6235 * grub-core/kern/efi/efi.c (grub_efi_modules_addr): Likewise.
6236 * grub-core/kern/i386/coreboot/init.c: Add exception to
6237 -Wsuggest-attribute=noreturn.
6238 * grub-core/kern/ia64/dl.c: Add exception to -Wcast-align.
6239 * grub-core/kern/ia64/dl_helper.c: Likewise.
6240 * grub-core/kern/mips/dl.c: Likewise.
6241 * grub-core/kern/sparc64/dl.c: Likewise.
6242 * grub-core/lib/LzmaEnc.c: Add exception to -Wshadow.
6243 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy): Likewise.
6245 * grub-core/lib/pbkdf2.c: Add exception to -Wunreachable-code.
6246 * grub-core/loader/ia64/efi/linux.c: Add exception to -Wcast-align.
6247 * grub-core/loader/mips/linux.c: Likewise.
6248 * grub-core/loader/multiboot_elfxx.c: Likewise.
6249 * grub-core/script/parser.y: Add exception to -Wunreachable-code.
6250 * grub-core/video/sm712.c: Add exception to -Wcast-align.
6251 * util/import_gcry.py: Add -Wno-cast-align to modules checked by hand.
6252 * grub-core/font/font.c (grub_font_loader_init): Add explicit cast and
6254 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
6255 * grub-core/kern/i386/multiboot_mmap.c (grub_machine_mmap_init):
6258 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6260 * grub-core/lib/i386/relocator16.S: Fix incorrect use of absolute
6263 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6265 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
6266 Avoid improper use of strings.
6267 (grub_cmd_legacy_initrdnounzip): Likewise.
6269 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6271 * include/grub/emu/misc.h (grub_util_warn): Add missing format
6273 (grub_util_info): Likewise.
6274 (grub_util_error): Likewise.
6276 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6278 * util/grub-mount.c (fuse_init): Avoid improper use of strings.
6279 * util/grub-fstest.c (fstest): Likewise.
6281 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6283 * grub-core/disk/geli.c (grub_md_sha256_real): Respect format security.
6284 (grub_md_sha512_real): Likewise.
6285 (grub_util_get_geli_uuid): Likewise.
6286 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Likewise.
6287 (grub_util_biosdisk_open): Fix format specification.
6288 Respect format security.
6289 * grub-core/kern/emu/misc.c (xmalloc): Respect format security.
6290 (xrealloc): Likewise.
6291 (xasprintf): Likewise.
6293 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6295 * util/import_gcry.py: Include grub/crypto.h in init.c.
6297 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6299 * util/grub-mkimage.c (compress_kernel_lzma): Respect format security.
6300 (generate_image): Make prefix a const char *.
6301 Fix format specifications. Respect format security.
6302 Avoid void * arithmetics.
6304 (argp_parser): Remove unused variable. Respect format security.
6305 * util/grub-mkimagexx.c (relocate_symbols): Avoid shadowing.
6306 (count_funcs) [!MKIMAGE_ELF64]: #if-out.
6307 (count_funcs): Remove unused variable.
6308 (relocate_addresses): Fix format specification.
6309 Disable x86-64 with elf32. Remove unused variables.
6310 (add_fixup_entry): Avoid shadowing.
6311 (make_reloc_section): Fix format specification.
6313 (locate_sections): Fix format specifications.
6314 (load_image): Avoid shadowing.
6316 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6318 * util/grub-setup.c (setup): Remove unused variable. Avoid shadowing.
6319 Fix format specifications. Respect format security.
6320 Don't translate already translated grub_errmsg.
6321 (argp_parser): Remove unused variable
6323 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6325 * util/grub-mkrelpath.c (argp_parser): Remove unused variable.
6327 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6329 * util/grub-mkpasswd-pbkdf2.c (argp_parser): Remove unused variable.
6330 (main): Likewise. Use xmalloc. Respect format security.
6332 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6334 * util/grub-mklayout.c (console_grub_equivalence): Make "layout"
6336 (argp_parser): Remove unused variable.
6338 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6340 * util/grub-mkfont.c (grub_font_info): Make name a const char *.
6341 (add_pixel): Make static.
6342 (add_font): Likewise.
6343 (write_string_section): Make name and str a const char *.
6344 (write_be16_section): Make name a const char *.
6345 (print_glyphs): Make static.
6346 (write_font_ascii_bitmap): Likewise.
6347 (write_font_width_spec): Likewise.
6348 (write_font_pf2): Likewise.
6349 (argp_parser): Remove unused variable.
6350 Respect format security.
6351 (main): Avoid shadowing. Respect format security.
6353 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6355 * util/grub-editenv.c (argp_parser): Make static.
6356 (create_envblk_file): Use xmalloc.
6357 (open_envblk_file): Likewise.
6358 Resepect format security.
6359 (set_variables): Respect format security.
6361 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6363 * util/getroot.c (grub_find_device): Respect format security.
6364 (get_mdadm_uuid): Remove unused variable.
6365 (grub_util_pull_device): Dont call gettext on already translated
6367 (find_system_device): Remove unused variable.
6368 (grub_util_get_grub_dev): Likewise.
6369 (grub_make_system_path_relative_to_its_root): Respect format security.
6371 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6373 * util/grub-fstest.c (execute_command): Make first argument
6375 (read_file): Avoid shadowing.
6376 Reuse underlying error message if device open fails.
6377 (cmd_cmp): Respect format security.
6378 (root): Make const char *.
6379 (fstest): Remove args argument and use global copy.
6380 Respect format security.
6381 (argp_parser): Make static.
6382 (main): Make default_root const char *.
6384 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6386 * util/grub-mount.c (root): Make const char *.
6387 (execute_command): Make first argument a const char *.
6388 (fuse_init): Respect format security.
6389 (argp_parser): Make static. Remove unused variable.
6390 (main): Make default_root a const char *.
6391 Respect format security.
6393 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6395 * util/grub-probe.c (probe): Don't call gettext on already translated
6397 Remove unused variables.
6398 (argp_parser): Remove unused variable.
6400 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6402 * util/grub-script-check.c (argp_parser): Remove unused variable.
6403 (main): Rename read to curread to avoid shadowing.
6405 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6407 * util/misc.c (grub_util_write_image_at): Fix format specification.
6408 (grub_util_write_image): Likewise.
6409 (grub_script_execute_argument_to_string): Removed (unused).
6410 (grub_script_execute_menuentry): Likewise.
6411 (grub_putchar): Likewise.
6413 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6415 * include/grub/symbol.h (EXT_C) [GRUB_UTIL]: Removed.
6416 (FUNCTION) [GRUB_UTIL]: Likewise.
6417 (VARIABLE) [GRUB_UTIL]: Likewise.
6419 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6421 * include/grub/misc.h: Avoid evaluationg NEED_ENABLE_EXECUTE_STACK and
6422 NEED_REGISTER_FRAME_INFO in GRUB_UTIL.
6424 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6426 * grub-core/partmap/bsdlabel.c (iterate_real): Fix freeing of static
6429 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6431 * grub-core/lib/LzmaEnc.c (LzmaEnc_FastPosInit): Made static.
6432 (LzmaEnc_SaveState): Removed (unused).
6433 (LzmaEnc_RestoreState): Likewise.
6434 (LzmaEnc_InitPriceTables): Made static.
6435 (LzmaEnc_Construct): Likewise.
6436 (LzmaEnc_FreeLits): Likewise.
6437 (LzmaEnc_Destruct): Likewise.
6438 (LzmaEnc_Init): Likewise.
6439 (LzmaEnc_InitPrices): Likewise.
6440 (LzmaEnc_Finish): Likewise.
6441 (LzmaEnc_PrepareForLzma2): Removed (unused).
6442 (LzmaEnc_MemPrepare): Likewise.
6443 (LzmaEnc_GetNumAvailableBytes): Likewise.
6444 (LzmaEnc_GetCurBuf): Likewise.
6445 (LzmaEnc_CodeOneMemBlock): Likewise.
6447 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6449 * grub-core/disk/ldm.c (grub_util_get_ldm): Remove unused variables.
6450 (grub_util_ldm_embed): Likewise.
6452 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6454 * util/grub-editenv.c (print_var): Rename name to varname to
6456 (main): Rename index to curindex to avoid shadowing.
6457 Make filename a const char *.
6459 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6461 * grub-core/script/lexer.c (grub_script_lexer_init): Rename getline
6462 to arg_getline to avoid shadowing.
6464 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6466 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Rename disk to
6467 disk_ to avoid shadowing.
6469 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6471 * grub-core/lib/LzFind.c (MatchFinder_GetIndexByte): Rename index to
6472 curindex to avoid shadowing.
6474 (MatchFinder_GetNumAvailableBytes): Make static.
6476 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6478 * grub-core/fs/squash4.c (direct_read): Rename read to curread to
6481 2012-02-10 Vladimir Serbinenko <phcoder@gmail.com>
6483 * grub-core/disk/cryptodisk.c (grub_cryptodisk_endecrypt): Rename
6484 argument from encrypt to do_encrypt to avoid shadowing.
6486 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6488 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elf): Fix
6489 incorrect nesting of #if's.
6491 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6493 * grub-core/commands/lsacpi.c (disp_acpi_xsdt_table): #if'-out the
6494 checks which are always false on some platforms.
6495 (grub_cmd_lsacpi): Likewise.
6496 * grub-core/kern/misc.c (grub_strtoul): Likewise.
6497 * grub-core/loader/multiboot.c (grub_multiboot_set_video_mode):
6500 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6502 * grub-core/disk/diskfilter.c (read_segment): Renome unreachable code.
6503 * grub-core/net/ip.c (grub_net_recv_ip4_packets): Likewise.
6505 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6507 * grub-core/gnulib/regex.h (re_pattern_buffer): Declare buffer as
6508 re_dfa_t to avoid breaking alignment invariants.
6509 * grub-core/gnulib/regex_internal.h (re_dfa_t): Moved to ...
6510 * grub-core/gnulib/regex.h (re_dfa_t): ... here.
6512 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6514 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Fix printf.
6515 * grub-core/loader/ia64/efi/linux.c (grub_cmd_fpswa): Likewise.
6517 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6519 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init):
6522 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6524 * grub-core/bus/usb/ehci.c (grub_ehci_ehcc_read32): Restructure to
6525 conserve alignment invariants.
6526 (grub_ehci_ehcc_read16): Likewise.
6527 (grub_ehci_oper_read32): Likewise.
6528 (grub_ehci_oper_write32): Likewise.
6529 (grub_ehci_pci_iter) [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
6530 Conserve alignment invariants.
6532 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6534 * grub-core/kern/emu/full.c (grub_emu_post_init): Remove raid reinit.
6535 * include/grub/disk.h [GRUB_MACHINE_EMU]: Remove now useless LVM/RAID
6538 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6540 * grub-core/kern/emu/hostfs.c (grub_hostfs_close):
6541 Remove unused variable.
6543 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6545 * grub-core/efiemu/loadcore_common.c (grub_efiemu_loadcore_load):
6548 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6550 * include/grub/net.h: Remove double declarations.
6552 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6554 Remove "payload" command in ia64 Linux loader since I couldn't
6555 find any evidence of it being used for anything.
6556 Replace "relocate" command with an environment variable
6558 * grub-core/loader/ia64/efi/linux.c (ia64_boot_param): Remove extra
6560 (ia64_boot_payload): Removed.
6561 (last_payload): Likewise.
6562 (RELOCATE_OFF): Likewise.
6563 (RELOCATE_ON): Likewise.
6564 (RELOCATE_FORCE): Likewise.
6565 (relocate): Likewise.
6566 (free_pages): Don't free payloads.
6567 (grub_load_elf64): Use common error messages.
6568 Use "linux_relocate" variable.
6569 Increase the space after boot_params.
6570 (grub_cmd_payload): Removed.
6571 (grub_cmd_relocate): Likewise.
6572 (grub_cmd_fpswa): Improve messages.
6573 (cmd_payload): Removed.
6574 (cmd_relocate): Likewise.
6575 (GRUB_MOD_INIT): Don't register "payload" and "relocate".
6576 (GRUB_MOD_FINI): Don't unregister "payload" and "relocate".
6578 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6580 Convert UHCI to DMA framework.
6582 * grub-core/bus/usb/uhci.c (grub_uhci): Add chunk and phys members.
6583 (grub_uhci_pci_iter): Fill new members
6584 (grub_alloc_td): Use P2V and V2P functions.
6585 (grub_free_queue): Likewise.
6586 (grub_alloc_qh): Likewise.
6587 (grub_uhci_setup_transfer): Likewise.
6588 (grub_uhci_check_transfer): Likewise.
6590 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6592 * grub-core/video/colors.c (grub_video_parse_color): Fix error message.
6593 Remove assignment in if while on it.
6595 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6597 * util/grub-mkstandalone.in: Fix modules directory.
6599 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6601 * util/grub-mkimage.c (image_targets): Set default_compression to lzma
6603 (argp_parser): Accept "auto" as compression specification.
6605 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6607 Fix `help' with unloaded modules.
6609 * include/grub/normal.h (grub_dyncmd_get_cmd): New proto.
6610 * grub-core/normal/dyncmd.c (grub_dyncmd_get_cmd): New function.
6611 (grub_dyncmd_dispatcher): Small stylistic fix.
6612 * grub-core/commands/help.c (grub_cmd_help): Load missing modules when
6613 explicit help is requested.
6615 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6617 * grub-core/fs/cpio.c (grub_cpio_dir): Fix a bug with multiple listing.
6618 Explicitly init restart while on it.
6620 2012-02-09 Vladimir Serbinenko <phcoder@gmail.com>
6622 * grub-core/lib/posix_wrap/wchar.h (mbrtowc): Set pwc to zero to avoid
6625 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6627 * util/grub-mknetdir.in: Use . rather than source for POSIX
6630 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6632 * util/grub-probe.c (main): Fix trailing space in compatibility hint.
6634 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6636 * grub-core/kern/partition.c (grub_partition_get_name): Fix uninited
6639 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6641 * grub-core/commands/hdparm.c (grub_cmd_hdparm): Accept device name
6644 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6646 * grub-core/net/net.c (GRUB_MOD_INIT): Don't register netfs.
6648 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6650 * grub-core/kern/partition.c (grub_partition_get_name): Fix reverse
6651 iteration of partitions.
6653 2012-02-08 Vladimir Serbinenko <phcoder@gmail.com>
6655 Improve gettext support. Stylistic fixes and error handling fixes while
6658 2012-02-07 Vladimir Serbinenko <phcoder@gmail.com>
6660 * grub-core/lib/i386/relocator16.S: Revert moving A20 code into PM
6661 part. Instead setup the correct stack in RM.
6662 * grub-core/lib/i386/relocator.c (grub_relocator16_boot): Reserve place
6664 * include/grub/i386/relocator_private.h: New file.
6666 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6668 * grub-core/commands/minicmd.c (GRUB_MOD_INIT): Add missing SIZE
6670 * util/grub-fstest.c (options): Add missing DEVICE part.
6672 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6674 Clarify and unify messages.
6676 * grub-core/commands/hashsum.c (options): Unify messages.
6677 * grub-core/commands/keystatus.c (GRUB_MOD_INIT): Don't mark a
6678 literal-only message as translatable.
6679 * grub-core/commands/lsacpi.c (GRUB_MOD_INIT): Likewise.
6680 * grub-core/loader/ia64/efi/linux.c (GRUB_MOD_INIT): Likewise.
6681 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Add quoting around
6683 * grub-core/commands/menuentry.c (options): Clarify that it's a keyboard
6684 key, not the key used to unlock. Clarify what it's used for.
6685 * grub-core/kern/emu/hostdisk.c (read_device_map): Unify error message.
6686 * grub-core/loader/xnu.c (grub_xnu_load_driver): Remove erroneous colon.
6687 * grub-core/script/main.c (GRUB_MOD_INIT): Clarify [n] to be [NUM].
6688 * util/grub-editenv.c (options): Unify "verbose" message.
6689 * util/grub-fstest.c (read_file): Unify error message.
6690 (fstest): Add quotes around commands.
6691 (options): Unify "verbose" message.
6692 * util/grub-install.in: Add quotes around variable name.
6693 * util/grub-kbdcomp.in: Unify error message.
6694 * util/grub-mkfont.c (main): Likewise.
6695 * util/grub-mkrescue.in: Likewise.
6696 * util/grub-mklayout.c (options): Unify "verbose" message.
6697 * util/grub-mkstandalone.in: Unify help and verbose messages.
6698 * util/grub-mount.c (options): Unify "verbose" message.
6699 * util/grub-probe.c (options): Likewise.
6700 * util/grub-script-check.c (options): Likewise.
6701 * util/grub-setup.c (setup): Unify no-terminator message.
6702 (options): Use DEVICE and not DEV.
6703 Unify "verbose" message.
6704 * util/ieee1275/ofpath.c (xrealpath): Unify error message.
6706 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6708 Improve and unify messages.
6710 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): Add argument
6711 name. All users updated.
6712 Print filename in error.
6713 (read_device_map): Print filename in error.
6714 * util/getroot.c (grub_guess_root_devices): Print filename in error.
6715 (grub_util_get_os_disk): Likewise.
6716 (grub_util_biosdisk_get_grub_dev): Likewise.
6717 (grub_util_check_block_device): Likewise.
6718 (grub_util_check_char_device): Likewise.
6719 (grub_make_system_path_relative_to_its_root): Likewise.
6720 * util/grub-editenv.c (create_envblk_file): Likewise.
6721 (open_envblk_file): Likewise.
6722 (write_envblk): Likewise.
6723 * util/grub-fstest.c (cmd_cp): Likewise.
6724 (cmd_cat): Likewise.
6725 (cmd_cmp): Likewise.
6726 * util/grub-menulst2cfg.c (main): Likewise.
6727 * util/grub-mkfont.c (write_font_ascii_bitmap): Likewise.
6728 (write_font_width_spec): Likewise.
6729 (write_font_pf2): Likewise.
6730 * util/grub-mkimage.c (generate_image): New argument outname.
6732 Remove unreacheable message.
6733 (options): Unify messages.
6734 (help_filter): Likewise.
6735 * util/grub-mklayout.c (usage): Removed (unused).
6736 (main): Print filename in error.
6737 * util/grub-mkrescue.in: Fix wrong quoting.
6738 * util/grub-setup.c (setup): Print filename in error.
6739 * util/ieee1275/ofpath.c (vendor_is_ATA): Likewise.
6740 (check_sas): Likewise.
6741 * util/misc.c (grub_util_get_fp_size): Removed.
6742 (grub_util_get_image_size): Print filename in error.
6743 (grub_util_read_at): Removed.
6744 (grub_util_read_image): Print filename in error.
6745 (grub_util_load_image): Likewise.
6746 (grub_util_write_image_at): New argument filename. All users updated.
6747 Print filename in error.
6748 (grub_util_write_image): New argument filename. All users updated.
6749 Print filename in error.
6750 * util/raid.c (grub_util_raid_getmembers): Print filename in error.
6751 * util/resolve.c (grub_util_resolve_dependencies): Likewise.
6753 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6755 * grub-core/Makefile.core.def (pxechain): New module.
6756 * grub-core/loader/i386/pc/pxechainloader.c: New file.
6757 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_get_cached): New
6759 (grub_pc_net_config_real): Use grub_pxe_get_cached.
6760 * include/grub/i386/pc/pxe.h (grub_pxe_get_cached): New proto.
6762 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6764 * grub-core/kern/err.c (GRUB_MAX_ERRMSG): Move to ...
6765 * include/grub/err.h (GRUB_MAX_ERRMSG): ... here.
6766 * include/grub/err.h (grub_error_saved): New struct.
6767 (grub_errmsg): Make array size explicit.
6768 * include/grub/misc.h (grub_error_save): New function.
6769 (grub_error_load): Likewise.
6770 * grub-core/kern/err.c (grub_error_stack_items): Use grub_error_saved.
6771 (grub_error_push): Update `errno' member name.
6772 (grub_error_pop): Likewise
6773 * grub-core/net/tftp.c (tftp_data): New member save_err.
6774 (tftp_receive): Save error.
6775 (tftp_open): Restore error.
6777 2012-02-05 Vladimir Serbinenko <phcoder@gmail.com>
6779 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move switch
6780 to real mode down to execute A20-related code in protected mode as
6783 2012-02-05 Grégoire Sutre <gregoire.sutre@gmail.com>
6785 * grub-core/disk/diskfilter.c (grub_diskfilter_make_raid): Return
6786 NULL when the argument `level' has an unexpected value.
6788 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6790 Move platform-dependent files from $prefix to $prefix/$platform.
6792 * config.h.in (GRUB_TARGET_CPU): New definition.
6793 (GRUB_PLATFORM): Likewise.
6794 * configure.ac: Define GRUB_TARGET_CPU and GRUB_PLATFORM.
6795 * grub-core/commands/parttool.c (grub_cmd_parttool): Update dir.
6796 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
6797 * grub-core/kern/dl.c (grub_dl_load): Likewise.
6798 * grub-core/normal/autofs.c (read_fs_list): Likewise.
6799 * grub-core/normal/crypto.c (read_crypto_list): Likewise.
6800 * grub-core/normal/dyncmd.c (read_command_list): Likewise.
6801 * grub-core/normal/term.c (read_terminal_list): Likewise.
6802 * grub-core/gettext/gettext.c (grub_mofile_open_lang): Use
6804 (grub_gettext_init_ext): Likewise.
6805 * grub-core/normal/main.c (GRUB_MOD_INIT): Define grub_cpu and
6807 * util/grub-install.in: Update directories.
6808 * util/grub-mknetdir.in: Likewise.
6809 * util/grub-mkrescue.in: Likewise.
6811 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6813 * grub-core/kern/ieee1275/openfw.c (grub_claimmap): Change to
6814 grub_error framework. All users updated.
6816 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6818 * grub-core/gettext/gettext.c: Mostly rewritten to avoid using
6819 lists (by always binsearching), improve caching (cache strings
6820 used for binsearch, not only results), improve
6821 maintainability (by using more structured binary search) and correct
6824 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6826 * grub-core/script/execute.c (grub_script_return): Fix warning.
6828 2012-02-04 Vladimir Serbinenko <phcoder@gmail.com>
6830 * grub-core/script/execute.c (grub_script_return): Fix potential
6832 Reported by: Jim Meyering.
6834 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6836 * po/POTFILES.in: Regenerate.
6837 * util/grub-install.in: Gettextize the strings missed in first pass.
6839 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6841 * Makefile.util.def (grub-mkdevicemap): Removed.
6842 * include/grub/emu/hostdisk.h (grub_util_get_os_disk): New proto.
6843 * include/grub/util/deviceiter.h: Removed.
6844 * util/deviceiter.c: Likewise.
6845 * util/getroot.c (grub_util_get_os_disk): New function.
6846 * util/grub-install.in: Remove grub-mkdevicemap. Use -t disk as
6847 replacement for EFI.
6848 * util/grub-mkdevicemap.c: Removed.
6849 * util/grub-probe.c (probe): Handle PRINT_DISK.
6850 (argp_parser): Handle -t disk.
6852 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6854 * util/grub-mkfont.c: Migrate to argp.
6855 * util/grub-mklayout.c: Likewise.
6856 * util/grub-mkpasswd-pbkdf2.c: Likewise.
6857 * util/grub-mkrelpath.c: Likewise.
6858 * util/grub-probe.c: Likewise.
6859 * util/grub-script-check.c: Likewise.
6861 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6863 * util/grub-reboot.in: Add missing datarootdir.
6864 Add missing newline.
6865 * util/grub-set-default.in: Add missing datarootdir.
6866 * util/powerpc/ieee1275/grub-mkrescue.in: Add missing newline.
6867 * util/grub-mkrescue.in: Likewise.
6869 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6871 * util/grub.d/30_os-prober.in: Fix TRANSLATORS comment.
6873 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6875 * util/grub-kbdcomp.in: Add decent help and gettextize.
6876 * docs/man/grub-kbdcomp.h2m: New file.
6878 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6880 Migrate grub-mkimage.c to argp.
6882 * Makefile.util.def (grub-mkimage): Add util/argp_common.c.
6883 (grub-setup): Likewise.
6884 * util/grub-setup.c (print_version): Move to ...
6885 * util/argp_common.c (print_version): ... here.
6886 * util/grub-setup.c (argp_program_version_hook): Move to ...
6887 * util/argp_common.c (argp_program_version_hook): ... here.
6888 * util/grub-setup.c (argp_parser): Add exit (1) on fatal error for
6890 * util/grub-mkimage.c (main): Migrate to argp.
6892 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6894 * util/grub-mkrescue.in: Use same message as
6895 util/powerpc/ieee1275/grub-mkrescue.in with %s in place of command
6896 for better translations.
6898 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6900 * util/powerpc/ieee1275/grub-mkrescue.in: Gettextize. Unify the command
6901 options with generic grub-mkrescue.in with the goal of future
6904 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6906 * grub-core/kern/mm.c: Add missing include of i18n.h
6907 * grub-core/lib/relocator.c: Likewise.
6909 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6911 * grub-core/loader/ia64/efi/linux.c (find_mmap_size): Replace fatal with
6913 (allocate_pages): Check return value.
6914 Replace fatal with error.
6915 (grub_linux_boot): Replace printf with dprintf.
6916 Check find_mmap_size return value.
6917 Replace fatal with error.
6918 Don't call grub_machine_fini.
6919 (grub_load_elf64): Replace printf with dprintf.
6920 (grub_cmd_linux): Likewise.
6921 (grub_cmd_initrd): Likewise.
6922 (grub_cmd_payload): Likewise.
6924 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6926 * grub-core/loader/i386/xnu.c (grub_cmd_devprop_load): Fix error
6928 * grub-core/video/radeon_fuloong2e.c
6929 (grub_video_radeon_fuloong2e_setup): Likewise.
6930 * grub-core/video/sis315pro.c (grub_video_sis315pro_setup): Likewise.
6931 * grub-core/video/video.c (grub_video_set_mode): Don't override
6932 standard out of memory message.
6934 2012-02-03 Grégoire Sutre <gregoire.sutre@gmail.com>
6936 NetBSD disk wedge support.
6938 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start)
6939 [__NetBSD__]: Handle NetBSD disk wedges.
6940 * util/getroot.c (convert_system_partition_to_system_disk)
6941 [__NetBSD__]: Likewise.
6943 2012-02-03 Mark Wooding <mdw@distorted.org.uk>
6945 * util/grub-mkconfig.in: Use umask rather than chmod to create
6946 grub.cfg.new to avoid insecure grub.cfg.
6948 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6950 * grub-core/commands/ls.c: Gettextize.
6951 * grub-core/commands/setpci.c: Likewise.
6952 * grub-core/commands/videotest.c: Likewise.
6953 * grub-core/disk/geli.c: Likewise.
6954 * grub-core/kern/mm.c: Likewise.
6955 * grub-core/lib/relocator.c: Likewise.
6956 * grub-core/loader/efi/appleloader.c: Likewise.
6957 * grub-core/loader/i386/xnu.c: Likewise.
6958 * grub-core/loader/ia64/efi/linux.c: Likewise.
6959 * grub-core/loader/xnu.c: Likewise.
6960 * grub-core/net/dns.c: Likewise.
6961 * grub-core/net/net.c: Likewise.
6962 * grub-core/script/lexer.c: Likewise.
6963 * grub-core/script/parser.y: Likewise.
6964 * grub-core/script/yylex.l: Likewise.
6965 * util/getroot.c: Likewise.
6966 * util/grub-setup.c: Likewise.
6968 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6970 * grub-core/fs/reiserfs.c (grub_reiserfs_get_item): Use proper error
6973 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6975 * grub-core/disk/ldm.c (grub_util_ldm_embed): Correct error message.
6977 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6979 * grub-core/commands/search_file.c (SEARCH_TARGET): Remove obsolete
6981 * grub-core/commands/search_label.c (SEARCH_TARGET): Likewise.
6982 * grub-core/commands/search_uuid.c (SEARCH_TARGET): Likewise.
6984 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
6986 * util/grub-mkstandalone.in: Fix help messages. Gettextize.
6987 * util/grub-install.in: Gettextize.
6988 * util/grub-mkconfig.in: Likewise.
6989 * util/grub-mkconfig_lib.in: Replace gettext with echo -n and not echo
6991 (grub_warn): Gettextize.
6992 * util/grub-mknetdir.in: Gettextize.
6993 * util/grub-mkrescue.in: Likewise.
6994 * util/grub-mkstandalone.in: Likewise.
6995 * util/grub-reboot.in: Likewise.
6996 * util/grub-set-default.in: Likewise.
6997 * util/grub.d/00_header.in: Likewise.
6998 * util/grub.d/10_hurd.in: Likewise.
6999 * util/grub.d/10_kfreebsd.in: Likewise.
7000 * util/grub.d/10_linux.in: Likewise.
7001 * util/grub.d/10_netbsd.in: Likewise.
7002 * util/grub.d/10_windows.in: Likewise.
7003 * util/grub.d/20_linux_xen.in: Likewise.
7004 * util/grub.d/30_os-prober.in: Likewise.
7005 * po/POTFILES-shell.in: Regenerate.
7007 2012-02-03 Richard Laager <rlaager@wiktel.com>
7009 * util/grub-mkimage.c (main): Fix format-security warning.
7010 * util/grub-mkrelpath.c (main): Likewise.
7011 * util/grub-probe.c (main): Likewise.
7013 2012-02-03 Richard Laager <rlaager@wiktel.com>
7015 * util/grub-probe.c (probe): Don't crash on canonicalize_file_name
7017 Put back lost PRINT_DRIVE.
7019 2012-02-03 Richard Laager <rlaager@wiktel.com>
7021 * util/getroot.c (find_root_devices_from_libzfs): Fix compilation error.
7022 (grub_guess_root_devices): Replace strlen with sizeof.
7024 (find_root_devices_from_poolname): Remove unused variable.
7027 2012-02-03 Vladimir Serbinenko <phcoder@gmail.com>
7029 Support install on multi-device filesystems.
7031 * include/grub/emu/getroot.h (grub_guess_root_device): Renamed to ...
7032 (grub_guess_root_devices): ...this. Return char **. All users updated.
7033 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo):
7035 * util/getroot.c (find_root_device_from_libzfs): Moved pool logic to ...
7036 (find_root_devices_from_poolname): ... here.
7037 (grub_find_root_devices_from_mountinfo): Return char **. Make static.
7039 (grub_guess_root_device): Rename to ...
7040 (grub_guess_root_devices): ... this. Return char **. All users updated.
7041 * util/grub-install.in: Handle multi-device filesystems.
7042 * util/grub-probe.c (probe). Make device_names a char **. Add delim
7043 argument. All users updated.
7044 Handle multi-device filesystems.
7045 Use 'delim' as separator.
7046 Remove device check to allow filesystems on file.
7047 (main): Support -0 argument. Handle multi-device.
7048 * util/grub-setup.c (setup): Remove root argument. Handle multi-device.
7049 Fix a cross-device check while on it.
7050 (arguments): Remove root_dev.
7051 (argp_parser): Remove -r.
7052 (main): Remove root_dev.
7054 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7056 * grub-core/fs/zfs/zfscrypt.c: Add link to documentation.
7058 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7060 * grub-core/commands/videotest.c (grub_cmd_videotest): Fix subset
7062 Reported by: NODA, Kai <nodakai>.
7064 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7068 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): Use %p to print
7070 * grub-core/bus/usb/ehci.c (grub_ehci_pci_iter): Likewise.
7071 (grub_ehci_setup_qh): Likewise.
7072 (grub_ehci_find_qh): Likewise.
7073 (grub_ehci_transaction): Likewise.
7074 (grub_ehci_setup_transfer): Likewise.
7075 (grub_ehci_check_transfer): Likewise.
7076 (grub_ehci_portstatus): Likewise.
7077 (grub_ehci_detect_dev): Likewise.
7078 (grub_ehci_transfer_controller_data): New field td_last_phys.
7079 (grub_ehci_setup_transfer): Fill td_last_phys.
7080 (grub_ehci_check_transfer): Use td_last_phys.
7082 2012-02-01 Seth Goldberg <seth.goldberg@oracle.com>
7084 * grub-core/normal/context.c (grub_env_extractor_close): Don't crash
7085 if no submenu is present.
7087 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7091 * include/grub/usb.h (grub_usbms_protocol_t): New values
7092 GRUB_USBMS_PROTOCOL_CB and GRUB_USBMS_PROTOCOL_CBI.
7093 * grub-core/disk/usbms.c (GRUB_USBMS_CBI_CMD_SIZE): New define.
7094 (GRUB_USBMS_CBI_ADSC_REQ): Likewise.
7095 (grub_usbms_dev): Add subclass, protocol and intrpt.
7096 Remove in_maxsz and out_maxsz.
7097 (grub_usbms_reset): Rename to ...
7098 (grub_usbms_bo_reset): .. this.
7099 (grub_usbms_cbi_cmd): New function.
7100 (grub_usbms_cbi_reset): Likewise.
7101 (grub_usbms_reset): Likewise.
7102 (grub_usbms_attach): Recognize cbi. Same subclass and protocol.
7103 (grub_usbms_transfer): Rename to ...
7104 (grub_usbms_transfer_bo): ... this.
7105 (grub_usbms_transfer_cbi): Likewise.
7106 (grub_usbms_transfer): Likewise.
7108 2012-02-01 Aleš Nesrsta <starous@volny.cz>
7109 2012-02-01 Vladimir Serbinenko <phcoder@gmail.com>
7111 EHCI support. All of the credit goes to Aleš Nesrsta. I've just added
7112 the support for the CS5536 modification thereos and few bugfixes.
7114 * grub-core/Makefile.core.def (ehci): New module.
7115 * grub-core/bus/usb/ehci.c: New file.
7116 * grub-core/bus/usb/usbhub.c (grub_usb_hub_add_dev): New arguments
7117 port and hubaddr. All users updated.
7118 Save port and hubaddr into dev structure.
7119 * include/grub/cs5536.h (GRUB_CS5536_MSR_USB_BASE_SMI_ENABLE): New
7121 * include/grub/pci.h (grub_dma_phys2virt): New function.
7122 (grub_dma_virt2phys): Likewise.
7123 * include/grub/usb.h (grub_usb_device): New members port and hubaddr.
7125 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7127 * grub-core/fs/fat.c (grub_fat_mount) [!MODE_EXFAT]: Remove fstype
7128 check as some mkfs implementations omit it.
7130 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7132 * docs/grub.texi (Unicode): Mention identifier and space limitations.
7134 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7136 * grub-core/fs/jfs.c (grub_jfs_sblock): Make volname a char array.
7137 Add new member volname2.
7138 (grub_jfs_label): Use volname2 if available.
7140 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7142 * grub-core/fs/nilfs2.c (grub_nilfs2_super_block): Expand volume_name
7143 over last_mounted as seen in image generated by mkfs.nilfs2.
7144 (grub_nilfs2_label): Use sizeof for the size of s_volume_name.
7146 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7148 * grub-core/fs/fat.c (grub_fat_dir_entry) [MODE_EXFAT]: Expand label
7149 to 15 UTF-16 characters as seen in FS generated by mkexfatfs.
7150 (grub_fat_label) [MODE_EXFAT]: Use macros for size.
7152 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7154 * grub-core/fs/romfs.c (grub_romfs_mount): Fix a bug with labels going
7157 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7159 * grub-core/fs/zfs/zfs.c (get_filesystem_dnode): Support space in
7160 subvolume name (by removing a bogus and useless check).
7162 2012-01-31 Vladimir Serbinenko <phcoder@gmail.com>
7164 * grub-core/fs/ext2.c (grub_ext2_label): Fix field size. Change to
7167 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7169 * grub-core/disk/scsi.c (grub_scsi_read_capacity): Renamed to ...
7170 (grub_scsi_read_capacity10): ... this.
7171 (grub_scsi_read_capacity16): New function.
7172 (grub_scsi_open): Use read_capacity16 if read_capacity10 returned
7174 Fix off-by-one error.
7175 * include/grub/scsi.h (grub_scsi): Rename size to last_block and make it
7177 * include/grub/scsicmd.h (grub_scsi_read_capacity): Rename to ...
7178 (grub_scsi_read_capacity10): ... this.
7179 (grub_scsi_read_capacity_data): Rename to ...
7180 (grub_scsi_read_capacity10_data): ... this. Rename size to last_block.
7181 (grub_scsi_read_capacity16): New struct.
7182 (grub_scsi_read_capacity16_data): Likewise.
7183 (grub_scsi_cmd_t): Rename grub_scsi_cmd_read_capacity to
7184 grub_scsi_cmd_read_capacity10.
7185 New command grub_scsi_cmd_read_capacity16.
7187 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7191 * grub-core/disk/scsi.c (grub_scsi_read16): New function.
7192 (grub_scsi_write16): Likewise.
7193 (grub_scsi_read): Use read16 when necessary.
7194 (grub_scsi_write): Likewise.
7195 * include/grub/scsicmd.h (grub_scsi_read16): New struct.
7196 (grub_scsi_write16): Likewise.
7197 (grub_scsi_cmd_t): Add READ16 and WRITE16.
7199 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7201 SCSI write support (for usbms mainly).
7203 * grub-core/disk/scsi.c (grub_scsi_write10): Uncomment. Make buffer
7205 (grub_scsi_write): Implement.
7206 * include/grub/scsi.h (grub_scsi_dev): Make write buffer a const pointer
7208 2012-01-30 Vladimir Serbinenko <phcoder@gmail.com>
7210 * grub-core/io/lzopio.c (uncompress_block): Fix use of incorrect
7213 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7215 * grub-core/lib/posix_wrap/string.h (memchr): New function.
7217 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7219 * po/POTFILES.in: Regenerate.
7221 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7223 * grub-core/lib/posix_wrap/assert.h (assert_real): Replace grub_fatal
7224 with grub_printf to avoid unnecessary fatal failure.
7226 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7228 * grub-core/lib/posix_wrap/limits.h (SHRT_MAX): New define.
7229 (INT_MAX): Likewise.
7230 * grub-core/lib/posix_wrap/stdio.h (snprintf): New function.
7231 * grub-core/lib/posix_wrap/stdlib.h (abs): Likewise.
7232 * grub-core/lib/posix_wrap/string.h (memcmp): Likewise.
7236 (strncpy): Likewise.
7238 (strncat): Likewise.
7239 (strcoll): Likewise.
7240 * include/grub/types.h (GRUB_SHRT_MAX): New define.
7241 (GRUB_INT_MAX): Likewise.
7243 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7245 * grub-core/gnulib/regcomp.c (regerror): Don't use abort on
7247 (optimize_utf8): Likewise.
7248 * grub-core/lib/posix_wrap/stdlib.h (abort): Removed.
7250 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7252 * grub-core/boot/i386/pc/lnxboot.S: Use
7253 GRUB_DECOMPRESSOR_MAX_DECOMPRESSOR_SIZE.
7254 * grub-core/boot/i386/pc/startup_raw.S: Ensure about boot_dev
7256 * include/grub/offsets.h (GRUB_DECOMPRESSOR_I386_PC_BOOT_DEVICE): New
7258 (GRUB_DECOMPRESSOR_I386_PC_MAX_DECOMPRESSOR_SIZE): Likewise.
7260 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7262 * util/getroot.c (grub_util_get_dm_node_linear_info): Fix memory leak.
7263 * grub-core/disk/cryptodisk.c (cryptodisk_cleanup): Disable for
7264 now to avoid double free.
7265 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_dev): Rename to
7267 * include/grub/disk.h (grub_disk_dev_id): New id HOSTDISK.
7268 * util/grub-probe.c (escape_of_path): Always return a new copy.
7269 (print_full_name): Escape path.
7270 (probe): Don't call grub_util_devname_to_ofpath on NULL.
7271 Fix hints on abstractions.
7273 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7275 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device):
7276 Don't add "root" line if no compatibility hont is available.
7277 Suggested by: Seth Goldberg.
7279 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7281 * include/grub/ata.h (grub_ata): Add a new element maxbuffer.
7282 * grub-core/disk/ata.c (grub_ata_readwrite): Limit to ata->maxbuffer.
7283 * grub-core/disk/pata.c (grub_pata_open): Set ata->maxbuffer.
7284 * grub-core/disk/ahci.c (grub_ahci_open): Likewise.
7286 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7288 * include/grub/zfs/dnode.h (DN_MIN_INDBLKSHIFT): Removed.
7290 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7292 * util/grub-pe2elf.c (ehdr): Make static.
7294 (num_sections): Likewise.
7297 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7299 Eliminate ofpath limits and possible overflows.
7301 * util/ieee1275/ofpath.c (grub_util_info) [STANDALONE]: New function.
7302 (OF_PATH_MAX): Removed.
7303 (MAX_DISK_CAT): New const.
7304 (find_obppath): Use allocated rather than preallocated buffer.
7305 Return result. Argument of_path removed. All users updated.
7307 (xrealpath): New function.
7308 (block_device_get_sysfs_path_and_link): Remove sysfs argument.
7309 Allocate rather than use preallocated buffer. All users updated.
7310 (__of_path_common): Use allocated rather than preallocatecd buffer.
7311 Return result. Argument of_path removed. All users updated.
7312 (vendor_is_ATA): Read only needed part form the file.
7313 (check_sas): Allocate depending on contents rather than fixed.
7314 (main) [STANDALONE]: Handle NULL result.
7316 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7318 * grub-core/normal/completion.c (iterate_dev): Close the disk.
7320 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7322 Cryptodisk write support.
7324 * grub-core/disk/cryptodisk.c (grub_crypto_pcbc_encrypt): New function.
7325 (grub_cryptodisk_decrypt): Moved logic to ...
7326 (grub_cryptodisk_endecrypt): ...this. New argument "encrypt".
7327 (grub_cryptodisk_write): Implement.
7328 * grub-core/kern/emu/hostdisk.c (nwrite): Rename to ...
7329 (grub_util_fd_write): ... this. Make global.
7330 * include/grub/emu/hostdisk.h (grub_util_fd_write): New proto.
7332 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7334 * include/grub/list.h (grub_list_remove): Don't crash if element is
7337 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7339 Rename ofconsole to console.
7341 * grub-core/commands/terminal.c (handle_command): Handle ofconsole
7342 as sysnonym to console.
7343 * grub-core/term/ieee1275/ofconsole.c: Renamed to ..
7344 * grub-core/term/ieee1275/console.c: ... this. All users updated.
7345 Rename grub_ofconsole_ to grub_console_. All users updated
7346 (grub_console_term_output): Rename "ofconsole" to "console".
7347 * grub-core/term/terminfo.c (grub_cmd_terminfo): Handle "ofconsole"
7350 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7352 * grub-core/loader/i386/pc/plan9.c (grub_cmd_plan9): Remove PXE
7354 * include/grub/disk.h (grub_disk_dev_id): Remove obsolete
7355 GRUB_DISK_DEVICE_UUID_ID, GRUB_DISK_DEVICE_PXE_ID and
7356 GRUB_DISK_DEVICE_FILE_ID.
7358 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7360 * grub-core/kern/partition.c (grub_partition_get_name): Simplify logic
7361 and improve performance.
7363 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7365 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Fix
7366 missing ieee1275/ prefix on whole disk.
7368 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7370 * include/grub/powerpc/ieee1275/util/biosdisk.h: Remove.
7371 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
7373 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7375 * grub-core/fs/cpio.c (handle_symlink): Fix a bug.
7377 2012-01-29 Vladimir Serbinenko <phcoder@gmail.com>
7379 Merge common RAID and LVM logic to an abstract diskfilter.
7380 Add LDM support using the same framework.
7382 * Makefile.util.def (libgrubkern): Add grub-core/disk/ldm.c,
7383 grub-core/disk/diskfilter.c and grub-core/partmap/gpt.c.
7384 (libgrubmods): Remove grub-core/disk/raid.c and
7385 grub-core/partmap/gpt.c.
7386 * grub-core/Makefile.core.def (ldm): New module.
7387 (raid): Renamed to diskfilter. All users updated.
7388 * grub-core/disk/raid.c: Moved to ...
7389 * grub-core/disk/diskfilter.c: ... here.
7390 * grub-core/disk/diskfilter.c: Rename grub_raid_ to grub_diskfilter_.
7392 (find_array): Renamed to ...
7393 (find_lv): ... this. Support multi-LV. Skip nameless LVs
7394 (grub_is_array_readable): Renamed to ...
7395 (grub_is_lv_readable): ... this. Support multinode hierarchy.
7396 (insert_array): New argument id.
7397 (is_node_readable): New function.
7398 (scan_device): Rename to ...
7399 (scan_disk): .. this. Restrict to one disk.
7400 (scan_devices): New function.
7401 (grub_diskfilter_iterate): Support multi-LV.
7402 Skip invisible and nameless LVs.
7403 (grub_diskfilter_memberlist): Support multi-LV.
7404 (grub_diskfilter_read_node): New function.
7405 (grub_raid_read): Most of logic moved to ...
7406 (read_segment): ... here
7407 (read_lv): New function.
7408 (grub_diskfilter_get_vg_by_uuid): New function.
7409 (grub_diskfilter_make_raid): Likewise.
7410 * grub-core/disk/ldm.c: New file.
7411 * grub-core/disk/lvm.c (vg_list): Removed.
7412 (lv_count): Likewise.
7413 (scan_depth): Likewise.
7414 (is_lv_readable): Likewise.
7415 (grub_lvm_getvalue): Advance pointer past the number.
7417 (do_lvm_scan): Refactored into ...
7418 (grub_lvm_detect): ... this. Support raid.
7419 (grub_lvm_iterate): Removed.
7420 (grub_lvm_memberlist): Likewise.
7421 (grub_lvm_open): Likewise.
7422 (grub_lvm_close): Likewise.
7423 (read_lv): Likewise.
7424 (read_node): Likewise.
7425 (is_node_readable): Likewise.
7426 (is_lv_readable): Likewise.
7427 (grub_lvm_read): Likewise.
7428 (grub_lvm_write): Likewise.
7429 (grub_lvm_dev): Use diskfilter
7430 (GRUB_MOD_INIT): Likewise.
7431 (GRUB_MOD_FINI): Likewise.
7432 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Use
7434 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Likewise.
7435 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
7436 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Use
7437 grub_diskfilter_read_node.
7439 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Use
7440 grub_diskfilter_read_node.
7441 Support GRUB_RAID_LAYOUT_MUL_FROM_POS.
7442 * grub-core/kern/disk.c (grub_disk_dev_list): Make global.
7443 (grub_disk_dev_iterate): Move from here...
7444 * include/grub/disk.h (grub_disk_dev_iterate): ... to here. Inlined.
7445 * grub-core/kern/emu/hostdisk.c (grub_hostdisk_find_partition_start):
7447 (grub_hostdisk_find_partition_start): Likewise.
7448 (grub_hostdisk_os_dev_to_grub_drive): New function.
7449 (grub_util_biosdisk_get_osdev): Check that disk is biosdisk.
7450 * grub-core/kern/emu/hostdisk.c (make_device_name): Move to ...
7451 * util/getroot.c (make_device_name): ... here.
7452 * grub-core/kern/emu/hostdisk.c (grub_util_get_dm_node_linear_info):
7454 * util/getroot.c (grub_util_get_dm_node_linear_info): ...here.
7455 * grub-core/kern/emu/hostdisk.c
7456 (convert_system_partition_to_system_disk): Move to ...
7457 * util/getroot.c (convert_system_partition_to_system_disk): ...here.
7458 * grub-core/kern/emu/hostdisk.c (device_is_wholedisk): Move to ...
7459 * util/getroot.c (device_is_wholedisk): ... here.
7460 * grub-core/kern/emu/hostdisk.c (find_system_device): Move to ...
7461 * util/getroot.c (find_system_device): ... here.
7462 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_present):
7464 * util/getroot.c (grub_util_biosdisk_is_present): ...here.
7465 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
7467 * util/getroot.c (grub_util_biosdisk_get_grub_dev): ... here.
7469 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
7471 * util/getroot.c (grub_util_biosdisk_is_floppy): ... here.
7472 * grub-core/partmap/gpt.c (grub_gpt_partition_map_iterate): Made global.
7473 * include/grub/disk.h (grub_disk_dev_id): Replaced RAID and LVM with
7475 * include/grub/raid.h: Renamed to ...
7476 * include/grub/diskfilter.h: ... this.
7477 * include/grub/diskfilter.h: Rename grub_raid_* to grub_diskfilter_*
7478 (GRUB_RAID_LAYOUT_*): Make into array.
7479 (GRUB_RAID_LAYOUT_MUL_FROM_POS): New value.
7480 (grub_diskfilter_vg): New struct.
7481 (grub_diskfilter_pv_id): Likewise.
7482 (grub_raid_member): Removed.
7483 (grub_raid_array): Likewise.
7484 (grub_diskfilter_pv): New struct.
7485 (grub_diskfilter_lv): Likewise.
7486 (grub_diskfilter_segment): Likewise.
7487 (grub_diskfilter_node): Likewise.
7488 (grub_diskfilter_get_vg_by_uuid): New proto.
7489 (grub_raid_register): Inline.
7490 (grub_diskfilter_unregister): Likewise.
7491 (grub_diskfilter_make_raid): New proto.
7492 (grub_diskfilter_vg_register): Likewise.
7493 (grub_diskfilter_read_node): Likewise.
7494 (grub_diskfilter_get_pv_from_disk) [GRUB_UTIL]: Likewise.
7495 * include/grub/emu/hostdisk.h (grub_util_get_ldm): New proto.
7496 (grub_util_is_ldm): Likewise.
7497 (grub_util_ldm_embed) [GRUB_UTIL]: Likewise.
7498 (grub_hostdisk_find_partition_start): Likewise.
7499 (grub_hostdisk_os_dev_to_grub_drive): Likewise.
7500 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_LDM):
7502 (grub_gpt_partition_map_iterate): New proto.
7503 * include/grub/lvm.h (grub_lvm_vg): Removed.
7504 (grub_lvm_pv): Likewise.
7505 (grub_lvm_lv): Likewise.
7506 (grub_lvm_segment): Likewise.
7507 (grub_lvm_node): Likewise.
7508 * util/getroot.c [...]
7509 * util/grub-probe.c (probe_raid_level): Handle diskfilter.
7510 (probe_abstraction): Likewise.
7511 * util/grub-setup.c (setup): Remove must_embed. Support LDM.
7512 (main): Remove dead logic.
7514 2012-01-28 Vladimir Serbinenko <phcoder@gmail.com>
7516 Simplify root device discover and don't fail when trying to open
7519 * grub-core/disk/efi/efidisk.c (get_diskname_from_path_real): New
7521 (get_diskname_from_path): Likewise.
7522 (grub_efidisk_get_device_name): Use get_diskname_from_path instead
7525 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7527 * grub-core/Makefile.core.def (setpci): Enable on all PCI platforms.
7529 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7531 * grub-core/fs/zfs/zfs.c (nvlist_find_value): Check that we don't go
7534 2012-01-27 Vladimir Serbinenko <phcoder@gmail.com>
7536 * util/grub-install.in: Add missing \.
7537 Reported by: gentoofan
7539 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7541 * grub-core/fs/squash4.c (xz_decompress): Fix return value.
7542 (direct_read): Use correct compressed size.
7543 (grub_squash_read_data): Likewise.
7545 2012-01-26 Vladimir Serbinenko <phcoder@gmail.com>
7547 * docs/grub.texi (Platform limitations): New section.
7548 (Platform-specific operations): Likewise.
7549 * docs/grub-dev.texi (Porting): Likewise.
7551 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7553 IEEE1275 disk write support.
7555 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_write): Make buffer
7557 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_write): Likewise.
7558 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_read): Move open
7559 and seek loginc to ...
7560 (grub_ofdisk_prepare): ... here.
7561 (grub_ofdisk_write): Implement.
7563 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7565 ARC disk write support.
7567 * grub-core/disk/arc/arcdisk.c (handle_writable): New var.
7568 (reopen): New argument writable. All users updated.
7569 Handle required access mode.
7570 (grub_arcdisk_write): Implement.
7571 * include/grub/arc/arc.h (grub_arc_file_access): New enum.
7572 (grub_arc_firmware_vector): Make buffer to write a const buffer.
7574 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7576 * grub-core/fs/btrfs.c (grub_btrfs_device): New field size.
7577 (read_sblock): Don't attempt to read superblocks outside the disk size.
7579 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7581 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Use device size from
7582 first superblock to find the second one when possible.
7584 2012-01-25 Vladimir Serbinenko <phcoder@gmail.com>
7586 * util/grub-install.in: Fix an ARC bug.
7587 Print a warning if no platform-specific setup is available.
7589 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7591 Use static allocation rather than scratch pointer in reed_solomon.
7592 It decreases its size significantly and avoids a variable in .text.
7594 * grub-core/lib/reed_solomon.c (scratch): Removed.
7595 (chosenstat): New const or static array.
7601 (errvals): Likewise.
7603 (pol_evaluate): Replace x with log_x argument. All users updated.
7604 (syndroms): Removed.
7605 (gauss_solve): Use statically allocated arrays.
7606 (rs_recover): Likewise.
7607 Calculate syndroms directly.
7608 (decode_block): Use statically allocated arrays.
7609 (grub_reed_solomon_add_redundancy) [TEST]: Fix -DTEST compilation.
7610 (main) [TEST]: Allow -DTEST -DSTANDALONE.
7612 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7614 Eliminate fixed limit on reed solomon decoder length.
7616 * grub-core/boot/i386/pc/lnxboot.S: Scan for multiboot signature
7617 rather than hardcoding the address.
7618 * grub-core/boot/i386/pc/startup_raw.S: Add new data field
7619 no_reed_solomon_length.
7620 Move gate_a20 to no-reed-solomon part.
7621 Don't force a particular size of no reed-solomon part.
7622 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
7624 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_LENGTH): New define.
7625 * util/grub-setup.c (setup): Read no_rs_length from the image itself.
7627 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7629 * grub-core/commands/wildcard.c (match_files): Handle filenames
7630 without explicit device.
7631 (wildcard_expand): Don't add explicit device if not already present.
7632 * tests/grub_script_echo1.in: Add a new expansion test.
7634 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7636 Replace single-linked with double-linked lists. It results in more
7637 compact and more efficient code.
7639 * grub-core/kern/list.c (grub_list_push): Moved from here ...
7640 * include/grub/list.h (grub_list_push): ... to here. Set prev.
7641 (grub_list_remove): Moved from here ...
7642 * include/grub/list.h (grub_list_remove): ... here. Use and set prev.
7643 (grub_prio_list_insert): Set prev.
7644 * include/grub/list.h (grub_list): Add prev. All users updated.
7646 2012-01-24 Vladimir Serbinenko <phcoder@gmail.com>
7648 Handle newer autotools. Add some missing quotes while on it.
7650 * Makefile.am (pkglib_DATA): Remove update-grub_lib.
7651 (pkglib_DATA): Move grub-mkconfig_lib from here ...
7652 (pkgdata_DATA): ... here.
7653 * Makefile.util.def (update-grub_lib): Removed.
7654 * conf/Makefile.common (pkglib_DATA): Removed.
7655 (pkglib_SCRIPTS): Likewise.
7656 (pkgdata_DATA): New variable.
7657 * tests/util/grub-shell-tester.in: Replace pkglib with pkgdata where
7660 Remove unused variable while on it.
7661 * tests/util/grub-shell.in: Likewise.
7662 * util/grub-install.in: Likewise.
7663 * util/grub-mkconfig.in: Likewise.
7664 * util/grub-mknetdir.in: Likewise.
7665 * util/grub-mkrescue.in: Likewise.
7666 * util/grub-mkstandalone.in: Likewise.
7667 * util/grub.d/00_header.in: Likewise.
7668 * util/grub.d/10_hurd.in: Likewise.
7669 * util/grub.d/10_illumos.in: Likewise.
7670 * util/grub.d/10_kfreebsd.in: Likewise.
7671 * util/grub.d/10_linux.in: Likewise.
7672 * util/grub.d/10_netbsd.in: Likewise.
7673 * util/grub.d/10_windows.in: Likewise.
7674 * util/grub.d/20_linux_xen.in: Likewise.
7675 * util/grub.d/30_os-prober.in: Likewise.
7676 * util/update-grub_lib.in: Removed.
7678 2012-01-24 Seth Goldberg <seth.goldberg@oracle.com>
7680 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Relax checks as
7681 a workaround for intel problem.
7683 2012-01-23 Paulo de Rezende Pinatti <ppinatti@linux.vnet.ibm.com>
7684 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7685 2012-01-23 pfsmorigo
7687 * util/grub-install.in: Support dd'in into PreP partition.
7688 * util/grub-probe.c (probe): Support discovering partition type.
7689 (main): Support -t msdos_parttype.
7691 2012-01-23 Vladimir Serbinenko <phcoder@gmail.com>
7693 * grub-core/normal/crypto.c (grub_crypto_autoload): Prevent
7694 infinite recursion using counter.
7695 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_init): Defer s->crc32
7696 init to skip it if the magic check fails.
7697 (dec_stream_header): Init s->crc32.
7699 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7700 2012-01-22 Zachary Bedell <pendorbound@gmail.com>
7701 2012-01-22 Richard Laager <rlaager@wiktel.com>
7703 * grub-core/fs/zfs/zfs.c (uberblock_verify): New parameter size.
7705 (find_bestub): Determine correct size.
7706 (fill_vdev_info_real): Fill ashift. New argument. All users updated.
7707 (scan_disk): Align the size down.
7708 Call check pool before find_bestub to have ashift.
7710 2012-01-22 Vladimir Serbinenko <phcoder@gmail.com>
7712 * grub-core/lib/relocator.c (malloc_in_range): Remove couple of
7713 dprintf in no-malloc zone.
7715 2012-01-22 Mario Limonciello <mario_limonciello@dell.com>
7717 * configure.ac: Add back in test for limits.h.
7719 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7721 Support 4K-sector NTFS.
7723 * include/grub/ntfs.h (GRUB_NTFS_MAX_MFT): Increase to 8.
7724 (grub_ntfs_data): Remove blocksize.
7725 * grub-core/fs/ntfs.c (fixup): Fix size comparison.
7726 Remove data argument. All users updated.
7728 2012-01-20 Vladimir Serbinenko <phcoder@gmail.com>
7730 * grub-core/kern/mips/arc/init.c (grub_total_modules_size): Mark as
7731 being in .text to avoid dprel references.
7732 * include/grub/mips/loongson/kernel.h (grub_arch_machine): Likewise.
7733 * include/grub/mips/loongson/memory.h (grub_arch_memsize): Likewise.
7734 (grub_arch_highmemsize): Likewise.
7735 * include/grub/mips/loongson/time.h (grub_arch_busclock): Likewise.
7736 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): Likewise.
7737 * include/grub/mips/time.h (grub_arch_cpuclock): Likewise.
7739 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7741 Support powerpc with GCC that defines __PPC__ but not __powerpc__.
7743 * config.h.in (__powerpc__) [__PPC__ && !__powerpc__]: New definition.
7744 * grub-core/lib/setjmp.S: Treat __PPC__ as equivalent to __powerpc__.
7746 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7748 * include/grub/datetime.h (grub_get_datetime_cmos): Don't define in
7750 (grub_set_datetime_cmos): Likewise.
7752 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7754 Make XZ compression parameters dependent on target and not host CPU.
7756 * configure.ac: Define GRUB_TARGET_CPU_XYZ series.
7757 * grub-core/lib/xzembed/xz_config.h: Use GRUB_TARGET_CPU_XYZ.
7759 2012-01-18 Vladimir Serbinenko <phcoder@gmail.com>
7761 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): Remove
7762 set but not used variable.
7764 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7766 * grub-core/fs/reiserfs.c (grub_reiserfs_uuid): Reject 0-uuid as
7767 created when no uuid support is compiled into mkfs.reiser.
7769 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7771 * grub-core/fs/hfs.c (macroman_to_utf8): Convert / to :.
7772 (utf8_to_macroman): Do the opposite.
7773 * grub-core/fs/hfsplus.c (grub_hfsplus_iterate_dir): Convert / to :.
7775 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7777 * configure.ac: Refise build qemu_mips w/o unifont.
7779 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7781 Eliminate grub_min/grub_max prone to overflow usage.
7783 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Eliminate grub_min.
7784 (poll_nonroot_hub): Likewise.
7785 * grub-core/fs/affs.c (grub_affs_iterate_dir): Likewise.
7786 (grub_affs_label): Likewise.
7787 * grub-core/fs/btrfs.c (grub_btrfs_lzo_decompress): Likewise.
7788 * grub-core/fs/hfs.c (grub_hfs_dir): Likewise.
7789 (grub_hfs_label): Likewise.
7790 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
7791 * grub-core/fs/zfs/zfs.c (MIN): Remove.
7792 (zap_leaf_array_equal): Use grub_size. Remove MIN.
7793 (zap_leaf_array_get): Likewise.
7794 (dnode_get_path): Likewise.
7795 * grub-core/io/lzopio.c (grub_lzopio_read): Eliminate grub_min.
7796 * grub-core/io/xzio.c (grub_xzio_read): Likewise.
7797 * grub-core/script/execute.c (grub_script_break): Likewise.
7798 * grub-core/script/lexer.c (grub_script_lexer_record): Eliminate
7800 * grub-core/script/yylex.l (grub_lexer_yyrealloc): Likewise.
7801 * include/grub/misc.h (grub_min): Removed.
7802 (grub_max): Likewise.
7804 2012-01-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
7806 * grub-core/fs/ext2.c (grub_ext2_iterate_dir): Ignore entries with
7809 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7811 * grub-core/lib/posix_wrap/wctype.h (CHARCLASS_NAME_MAX): New define.
7813 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7815 * include/grub/datetime.h (grub_datetime2unixtime): Fix offset.
7817 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7819 * grub-core/lib/posix_wrap/stdlib.h (MB_CUR_MAX): Moved from here ...
7820 * grub-core/lib/posix_wrap/wchar.h (MB_CUR_MAX): ... here. Value fixed.
7822 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7824 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Use grub_strcasecmp
7825 rather than a hack for grub_strncasemap.
7827 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7829 Support multiple initrds
7830 Note: part of this was accidently committed in r3739.
7832 * grub-core/loader/i386/linux.c (grub_cmd_initrd): Support multiple
7834 * grub-core/loader/i386/pc/linux.c (grub_cmd_initrd): Likewise.
7835 * grub-core/loader/ia64/efi/linux.c (grub_cmd_initrd): Likewise.
7836 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7837 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7838 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7840 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7842 * grub-core/disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Skip
7843 disks with unknown size.
7844 * grub-core/disk/raid.c (scan_devices): Allow disks with unknown sizes.
7846 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7848 Remove defines pertaining to arbitrary limits not affecting GRUB
7851 * grub-core/fs/ext2.c (EXT2_PATH_MAX): Removed.
7852 (EXT2_MAX_SYMLINKCNT): Likewise.
7853 * grub-core/fs/nilfs2.c (NILFS_BTREE_LEVEL_MAX): Likewise.
7854 * grub-core/net/tftp.c (TFTP_MAX_PACKET): Likewise.
7855 * include/grub/i386/pc/pxe.h (GRUB_PXE_MIN_BLKSIZE): Likewise.
7856 (GRUB_PXE_MAX_BLKSIZE): Likewise.
7857 * include/grub/normal.h (GRUB_MAX_CMDLINE): Likewise.
7858 * include/grub/zfs/dnode.h (DN_MAX_INDBLKSHIFT): Likewise.
7859 (DN_MAX_OBJECT_SHIFT): Likewise.
7860 (DN_MAX_OFFSET_SHIFT): Likewise.
7861 (DN_MAX_OBJECT): Likewise.
7862 (DNODES_PER_LEVEL_SHIFT): Likewise.
7863 * include/grub/zfs/spa.h (SPA_MAXBLOCKSHIFT): Likewise.
7864 (SPA_MAXBLOCKSIZE): Likewise.
7865 (SPA_BLOCKSIZES): Likewise.
7866 * include/grub/zfs/zap_impl.h (MZAP_MAX_BLKSHIFT): Likewise.
7867 (MZAP_MAX_BLKSZ): Likewise.
7869 2012-01-14 Vladimir Serbinenko <phcoder@gmail.com>
7871 * grub-core/fs/zfs/zfs.c (grub_zfs_read): Remove useless alloc and
7872 handle NULL appropriately.
7875 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7879 * grub-core/efiemu/runtime/efiemu.c: explicitly include right
7881 (efiemu_set_virtual_address_map): Remove UINT_TO_PTR.
7882 * configure.ac: Fix efiemu check.
7884 2012-01-13 Vladimir Serbinenko <phcoder@gmail.com>
7886 * util/grub.d/30_os-prober.in: Fix occurence of grub-probe instead of
7888 Reported by: adamwill
7890 2012-01-12 Seth Goldberg <seth.goldberg@oracle.com>
7892 * grub-core/lib/arg.c (grub_arg_parse): Fix NULL pointer dereference.
7894 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7896 Fix handling of wide characters in gfxterm.
7898 * grub-core/term/gfxterm.c (grub_colored_char): Remove width and index.
7899 (clear_char): Likewise.
7900 (paint_char): Skip code == NULL chars.
7901 (grub_gfxterm_putchar): Set code = NULL on "shadowed" positions.
7903 2012-01-12 Vladimir Serbinenko <phcoder@gmail.com>
7905 * grub-core/normal/charset.c: Move comment to right place.
7907 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7909 * grub-core/fs/affs.c (grub_affs_bblock): Revert flags.
7910 (GRUB_AFFS_FLAG_FFS): Put back where it was.
7911 (grub_affs_mount): Revert the correct version checking.
7913 2012-01-11 Vladimir Serbinenko <phcoder@gmail.com>
7915 * docs/grub.texi (Unicode): Mention several other unsupported features.
7917 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7919 * grub-core/fs/squash4.c (squash_mount): Mark endian conversion in
7920 case statements as compile-time one.
7921 (direct_read): Prevent spurious warnings.
7922 (grub_squash_read_data): Likewise.
7924 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7926 Various squash4 fixes and LZO and XZ support.
7928 * Makefile.util.def (libgrubmods.a): Add xzembed directory to cppflags.
7929 Add xzembed source files.
7930 * grub-core/Makefile.core.def (squash4): Add xzembed and minilzo flags.
7931 * grub-core/fs/squash4.c (grub_squash_super): New field compression.
7932 (grub_squash_inode): New subtype long_dir.
7933 (SQUASH_TYPE_LONG_DIR): New inode type.
7934 (COMPRESSION): New enum.
7935 (XZBUFSIZ): New const.
7936 (grub_squash_data): New fields blksz, decompress, xzdec, xzbuf.
7937 (read_chunk): Use data->decompress.
7938 (zlib_decompress): New function.
7939 (lzo_decompress): Likewise.
7940 (xz_decompress): Likewise.
7941 (squash_mount): Set new data fields.
7942 (grub_squash_iterate_dir): Handle long dir.
7943 (squash_unmount): Free xzdec and xzbuf.
7944 (grub_squash_open): Check ino type.
7945 (direct_read): Stylistic fixes. Use data->decompress.
7946 (grub_squash_read_data): Likewise.
7947 * grub-core/io/gzio.c (grub_gzio): Remove disk_input.
7948 (get_byte): Likewise.
7949 (grub_zlib_disk_read): Removed.
7950 * grub-core/lib/posix_wrap/sys/types.h (ssize_t): New type.
7951 (GRUB_POSIX_BOOL_DEFINED): New define.
7952 * grub-core/lib/posix_wrap/unistd.h: Include sys/types.h.
7953 * grub-core/lib/xzembed/xz.h: Addmissing includes.
7954 [!GRUB_POSIX_BOOL_DEFINED]: Define bool.
7955 * include/grub/deflate.h (grub_zlib_disk_read): Removed.
7957 2011-12-26 Vladimir Serbinenko <phcoder@gmail.com>
7959 Don't override more informative errors.
7961 * grub-core/commands/acpi.c (grub_cmd_acpi): Don't override errors.
7962 * grub-core/font/font.c (open_section): Likewise.
7963 * grub-core/loader/i386/bsd.c (grub_bsd_load_aout): New argument
7964 filename. Don't override errors.
7965 (grub_cmd_openbsd_ramdisk): Don't override errors.
7966 * grub-core/loader/i386/linux.c (grub_cmd_linux): Likewise.
7967 (grub_cmd_initrd): Likewise.
7968 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
7969 (grub_cmd_initrd): Likewise.
7970 * grub-core/loader/ia64/efi/linux.c (grub_load_elf64): Likewise.
7971 (grub_cmd_linux): Likewise.
7972 (grub_cmd_initrd): Likewise.
7973 (grub_cmd_payload): Likewise.
7974 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Likewise.
7975 * grub-core/loader/multiboot.c (grub_cmd_multiboot): Likewise.
7976 (grub_cmd_module): Likewise.
7977 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7978 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_initrd): Likewise.
7979 * grub-core/loader/xnu.c (grub_xnu_load_driver): Likewise.
7980 (grub_cmd_xnu_mkext): Likewise.
7981 (grub_cmd_xnu_ramdisk): Likewise.
7982 (grub_xnu_check_os_bundle_required): Likewise.
7983 (grub_xnu_load_kext_from_dir): Likewise.
7984 (grub_cmd_xnu_kextdir): Likewise.
7985 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Likewise.
7987 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7989 * grub-core/fs/minix.c (grub_minix_mount) [MODE_MINIX3]: Treat 0xffff
7990 as 1024 in block size field. Found on one of my test images.
7991 Small optimisation while on it.
7993 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
7995 * docs/grub.texi (Filesystems): Mention SFS as Latin1 filesystem.
7996 * grub-core/fs/sfs.c (grub_sfs_mount): Fix a memory leak while on it.
7997 (grub_sfs_iterate_dir): Convert Latin1 to UTF8. Stylistic and
7998 performance fixes while on it.
7999 (grub_sfs_close): Fix memory leak while on it.
8000 (grub_sfs_label): Convert Latin1 to UTF-8.
8002 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8004 * grub-core/fs/hfs.c (grub_hfs_dir): Cap keylen to actually available
8005 space to avoid overflows.
8006 (grub_hfs_label): Convert from macroman to UTF-8.
8008 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8010 * grub-core/fs/affs.c (grub_affs_label): Interpret label as latin1.
8012 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8014 * grub-core/normal/menu.c (menu_init): Don't stop menu init at gfxterm.
8016 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8018 * unicode: Import Unicode 6.0 data.
8020 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8022 * grub-core/term/gfxterm.c (grub_gfxterm_putchar): Don't set values
8025 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8027 Avoid cutting in the middle of UTF-8 character.
8029 * include/grub/charset.h (grub_getend): New function.
8030 * grub-core/script/function.c (grub_script_function_find): Use
8032 * grub-core/normal/completion.c (add_completion): Likewise.
8034 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8036 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Small stylistic fix.
8037 (grub_bidi_line_logical_to_visual): Skip tags. They are deprecated.
8038 * include/grub/unicode.h (GRUB_UNICODE_TAG_START): New enum value.
8039 (GRUB_UNICODE_TAG_END): Likewise.
8040 (GRUB_UNICODE_LAST_VALID): Likewise.
8042 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8044 * include/grub/unicode.h (grub_unicode_compact_range): Replace end with
8045 len and make it smaller. All users updated.
8046 * util/import_unicode.py: Put length and not end character.
8049 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8051 Make better Unicode-compliant and unify some UTF-8 code pathes.
8053 * grub-core/normal/charset.c (grub_utf8_to_utf16): Don't eat possibly
8055 (grub_is_valid_utf8): Use grub_utf8_process.
8056 Check resulting code range.
8057 (grub_utf8_to_ucs4): Use grub_utf8_process.
8058 * include/grub/charset.h (grub_utf16_to_utf8): Don't eat up a possibly
8061 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8063 * grub-core/io/bufio.c (grub_bufio_read): Fix handling of corner cases.
8065 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8067 * docs/grub.texi (Filesystems): Mention AFS.
8069 2011-12-25 Vladimir Serbinenko <phcoder@gmail.com>
8071 * docs/grub.texi (Filesystems): Clarify restrictions.
8072 (Regexp): Mention non-Unicode regexp behaviour.
8073 (Other): Mention non-Unicode matching behaviour.
8075 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8077 Make HFS implementation use MacRoman.
8079 * grub-core/fs/hfs.c (MAX_UTF8_PER_MAC_ROMAN): New define.
8080 (macroman): New const array.
8081 (macroman_to_utf8): New function.
8082 (utf8_to_macroman): Likewise.
8083 (grub_hfs_find_dir): Use utf8_to_macroman.
8084 (grub_hfs_dir): Use macroman_to_utf8.
8085 Set case_insensitive.
8087 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8089 * docs/grub.texi (Filesystems): Add IEEE1275 full-path example.
8091 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8093 Integrate hints into autogeneration scripts.
8095 * docs/grub.texi (Filesystems): Add a hostdisk example.
8096 * Makefile.util.def (grub-mkdevicemap): Remove ofpath.
8097 (grub-probe): Add ofpath.
8098 * gentpl.py: Remove group nosparc64.
8099 * grub-core/commands/search.c (cache_entry): New struct.
8101 (FUNC_NAME): Use and save cache. Fix handling of trailing comma.
8102 * grub-core/commands/search_wrap.c (options): Add platform-specific
8104 (grub_cmd_search): Handle platform-specific hints.
8105 (GRUB_MOD_INIT): Declare grub_cmd_search as accept_dash.
8106 * grub-core/kern/emu/hostdisk.c (map): New field device_map.
8107 (grub_util_biosdisk_data): Likewise.
8108 (grub_util_biosdisk_open): Set device_map.
8109 (read_device_map): Handle "" as indication of no map.
8111 (find_system_device): Add hostdisk/ prefix for autogenerated entries.
8112 (grub_util_biosdisk_get_compatibility_hint): New function.
8113 * grub-core/normal/main.c (features): Add feature_platform_search_hint.
8114 * include/grub/emu/hostdisk.h
8115 (grub_util_biosdisk_get_compatibility_hint): New proto.
8116 * util/grub-install.in: Don't call grub-mkdevicemap.
8117 Add platform-specific hint to load.cfg.
8118 * util/grub-mkconfig.in: Don't call grub-mkdevicemap.
8119 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
8120 hints. Set root preliminary to compatibility hint, not to OS name.
8121 * util/grub-probe.c (PRINT_*): Add hints.
8122 (print): Make static.
8123 (escape_of_path): New function.
8124 (guess_bios_drive): Likewise.
8125 (guess_efi_drive): Likewise.
8126 (guess_baremetal_drive): Likewise.
8127 (print_full_name): Likewise.
8128 (probe): Handle hints.
8130 * util/ieee1275/devicemap.c: Removed.
8131 * util/ieee1275/ofpath.c (find_obppath): Allow to fail. All users
8133 (grub_util_devname_to_ofpath): Return NULL on failure.
8135 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Fix
8137 * util/getroot.c (grub_util_pull_device): Fix memory leak.
8139 * po/POTFILES.in: Regenerated.
8141 Allow purely long options
8143 * grub-core/lib/arg.c (SHORT_ARG_HELP): Removed.
8144 (SHORT_ARG_USAGE): Likewise.
8145 (grub_arg_show_help): Compare opt with help_options.
8146 (parse_option): Receive opt as argument. If makes big simplificatons.
8149 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8151 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN):
8152 Restructure to avoid warning.
8154 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8156 * util/grub-install.in: Account for possible escaped comma in device
8159 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8161 * util/ieee1275/ofpath.c (of_path_of_ide): Fix address for secondary
8164 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8166 * grub-core/kern/ieee1275/openfw.c (grub_devalias_iterate): Fix
8167 allocation and zero-setting.
8168 (grub_ieee1275_get_devname): Check that alias is complete.
8170 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8172 * grub-core/kern/disk.c (grub_disk_read): Fix hook calling for
8175 2011-12-24 Vladimir Serbinenko <phcoder@gmail.com>
8177 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Add ieee1275/
8179 (grub_ofdisk_open): Check and discard ieee1275 prefix.
8180 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
8181 Add ieee1275 prefix.
8183 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8185 * docs/grub.texi (Filesystems): Update.
8187 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8189 Support odc, newc and bigendian cpio formats.
8191 * Makefile.util.def (libgrubmods): Add odc.c, newc.c and cpio_be.c.
8192 * grub-core/Makefile.core.def (newc): New module.
8194 (cpio_be): Likewise.
8195 * grub-core/fs/cpio.c (ALIGN_CPIO): New macro.
8198 (head) [MODE_ODC]: Adapt for the format.
8199 (head) [MODE_NEWC]: Likewise.
8200 (head) [!MODE_*]: Write fields of interest as arrays.
8201 (MAGIC_USTAR): Removed.
8202 (read_number) [MODE_NEWC]: Change to hex.
8203 (read_number) [!MODE_*]: Parse binary arrays.
8204 (grub_cpio_find_file): Factor out the code for better structure and
8205 always use read_number.
8206 (grub_cpio_mount): Use MAGIC and MAGIC2.
8207 (grub_cpio_dir): Exit on first hook non-0 return.
8208 (grub_cpio_fs) [MODE_ODC]: Set name to odc.
8209 (grub_cpio_fs) [MODE_NEWC]: Set name to newc.
8210 (GRUB_MOD_INIT) [MODE_ODC]: Set name to odc.
8211 (GRUB_MOD_INIT) [MODE_NEWC]: Set name to newc.
8212 (GRUB_MOD_FINI) [MODE_ODC]: Set name to odc.
8213 (GRUB_MOD_FINI) [MODE_NEWC]: Set name to newc.
8214 * grub-core/fs/newc.c: New file.
8215 * grub-core/fs/odc.c: Likewise.
8216 * grub-core/fs/cpio_be.c: Likewise.
8218 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8220 Fix handling of tar numbers occupying the whole field.
8222 * grub-core/fs/cpio.c (read_number): New function.
8223 (grub_cpio_find_file): Use read_number instead of strtoull.
8225 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8227 * grub-core/fs/cpio.c (grub_cpio_find_file): Fix handling of names
8228 occupying the whole field size.
8230 2011-12-23 Lukas Anzinger <l.anzinger@gmail.com>
8232 * util/grub-mkconfig_lib.in (version_test_gt): Fix variable names.
8234 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8236 * grub-core/net/net.c (grub_cmd_delroute): Add missing out condition.
8238 2011-12-23 Seth Goldberg <seth.goldberg@oracle.com>
8240 * grub-core/Makefile.core.def (lzma_decompress): Add missing
8243 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8245 * util/getroot.c (ESCAPED_PATH_MAX): New define.
8246 (mountinfo_entry): Increase the field size to take escaping into
8248 (find_root_device_from_libzfs): Add one byte to size of strings for
8251 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8253 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy): Add
8255 * util/grub-setup.c (setup): Likewise.
8257 2011-12-23 Vladimir Serbinenko <phcoder@gmail.com>
8259 * grub-core/boot/i386/pc/startup_raw.S: Add missing argument for
8262 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8264 * docs/grub.texi (Internationalisation): New section.
8266 2011-12-22 Vladimir Serbinenko <phcoder@gmail.com>
8268 * docs/grub.texi (Loopback booting): New section.
8270 2011-12-22 Keshav P R <the.ridikulus.rat@gmail.com>
8272 * util/grub-mkstandalone.in: Fix minor typo errors.
8274 2011-12-20 Vladimir Serbinenko <phcoder@gmail.com>
8276 IPv6, TCP, HTTP, ICMP and DNS support. Several cleanups and bugfixes.
8278 * grub-core/Makefile.core.def (net): Add net/dns.c, net/tcp.c,
8279 net/icmp.c and net/icmp6.c.
8281 (priority_queue): Likewise.
8282 * grub-core/io/bufio.c: Rewritten.
8283 * grub-core/lib/legacy_parse.c (legacy_command): New argument type
8284 TYPE_WITH_CONFIGFILE_OPTION.
8285 (legacy_commands): Add bootp and dhcp.
8286 (is_option): Handle TYPE_WITH_CONFIGFILE_OPTION.
8287 (grub_legacy_parse): Likewise.
8288 * grub-core/lib/priority_queue.c: New file.
8289 * grub-core/net/arp.c: Add missing license header.
8290 (arp_find_entry): Removed.
8291 (arp_find_entry): Likewise.
8292 (grub_net_arp_resolve): Rename to ...
8293 (grub_net_arp_send_request): ...this.
8294 (grub_net_arp_receive): New card argument.
8295 * grub-core/net/bootp.c (parse_dhcp_vendor): Clean up.
8296 Set router and DNS server.
8297 (grub_net_configure_by_dhcp_ack): Handle routing information.
8298 (grub_cmd_bootp): Set checksum.
8299 (grub_bootp_init): Remove net_dhcp.
8300 * grub-core/net/dns.c: New file.
8301 * grub-core/net/drivers/efi/efinet.c (send_card_buffer): Wait for
8303 (get_card_packet): Handle allocation.
8304 (grub_efinet_findcards): Set mtu.
8305 * grub-core/net/drivers/emu/emunet.c: Add missing license header.
8306 (get_card_packet): Handle allocation.
8308 * grub-core/net/drivers/i386/pc/pxe.c (grub_pxe_recv): Handle allocation
8309 (GRUB_MOD_INIT): Set mtu.
8310 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnetcard_data): Remove
8312 (get_card_packet): Handle allocation.
8313 (grub_ofnet_findcards): Set mtu.
8314 * grub-core/net/ethernet.c (send_ethernet_packet): Add compile time
8316 (grub_net_recv_ethernet_packet): Handle IPv6.
8317 * grub-core/net/http.c: New file.
8318 * grub-core/net/icmp.c: Likewise.
8319 * grub-core/net/icmp6.c: Likewise.
8320 * grub-core/net/ip.c (ip6addr): New type.
8322 (reassemble): Likewise.
8323 (cmp): New function.
8324 (reassembles): New variable.
8325 (grub_net_ip_chksum): Handle 0xffff sum and unaligned buffers.
8327 (send_fragmented): New function.
8328 (grub_net_send_ip_packet): Rename to ...
8329 (grub_net_send_ip4_packet): ... this. Send fragmented if needed.
8331 (grub_net_recv_ip_packets): Rename to ...
8332 (handle_dgram): ... this. Check checksum. Handle non-UDP.
8333 (free_rsm): New function.
8334 (free_old_fragments): Likewise.
8335 (grub_net_recv_ip4_packets): New function.
8336 (grub_net_send_ip6_packet): Likewise.
8337 (grub_net_send_ip_packet): Likewise.
8338 (grub_net_recv_ip6_packets): Likewise.
8339 (grub_net_recv_ip_packets): Likewise.
8340 * grub-core/net/net.c (grub_net_link_layer_entry): New struct.
8341 (LINK_LAYER_CACHE_SIZE): New const.
8342 (link_layer_find_entry): New function.
8343 (grub_net_link_layer_add_address): Likewise.
8344 (grub_net_link_layer_resolve_check): Likewise.
8345 (grub_net_link_layer_resolve): Likewise.
8346 (grub_net_ipv6_get_slaac): Likewise.
8347 (grub_net_ipv6_get_link_local): Likewise.
8348 (grub_cmd_ipv6_autoconf): Likewise.
8349 (parse_ip): Handle one number representation.
8350 (parse_ip6): New functoion.
8351 (match_net): Handle IPv6.
8352 (grub_net_resolve_address): Handle IPv6 and DNS.
8353 (grub_net_resolve_net_address): Handle IPv6.
8354 (route_cmp): New function.
8355 (grub_net_route_address): Find best route.
8356 (grub_net_addr_to_str): Handle IPv6.
8357 (grub_net_addr_cmp): New function.
8358 (grub_net_add_addr): Register local route.
8359 (print_net_address): Handle net address.
8360 (grub_net_poll_cards): Retransmit TCP.
8361 (grub_net_poll_cards_idle_real): Likewise.
8362 (have_ahead): New function.
8363 (grub_net_seek_real): Use underlying seek.
8364 (GRUB_MOD_INIT): Register net_ipv6_autoconf and init dns.
8365 * grub-core/net/tcp.c: New file.
8366 * grub-core/net/tftp.c (tftp_data): Add priority_queue.
8367 (cmp): New function.
8369 (tftp_receive): Handle unordered input.
8370 (destroy_pq): New function.
8371 (tftp_close): Close pq.
8372 * grub-core/net/udp.c: Put missing license header.
8373 (grub_net_udp_socket): New function.
8374 (udp_socket_register): Likewise.
8375 (grub_net_udp_close): Likewise.
8376 (grub_net_recv_udp_packet): Check checksum.
8377 * include/grub/efi/api.h (grub_efi_simple_network): Add status.
8378 * include/grub/misc.h (grub_memchr): New function.
8379 * include/grub/net.h (GRUB_NET_*_SIZE): New enum.
8380 (grub_net_card_driver): Return buf in recv.
8381 (grub_net_slaac_mac_list): New struct.
8382 (grub_network_level_protocol_id): Add ipv6.
8383 (grub_net_network_level_addr): Likewise.
8384 (grub_net_network_level_net_addr): Likewise.
8385 (grub_net_app_protocol): Add seek.
8386 (grub_net_socket): Removed.
8387 (grub_net_sockets): Likewise.
8388 (grub_net_socket_register): Likewise.
8389 (grub_net_socket_unregister): Likewise.
8390 (FOR_NET_SOCKETS): Likewise.
8391 (grub_net_add_addr): Add const.
8392 (GRUB_NET_BOOTP_*): New enum.
8393 (grub_net_addr_cmp): New proto.
8394 (GRUB_NET_MAX_STR_ADDR_LEN): Take IPV6 into account.
8395 (GRUB_NET_MAX_STR_HWADDR_LEN): New define.
8396 (grub_net_hwaddr_to_str): NEw proto.
8397 (FOR_NET_NETWORK_LEVEL_INTERFACES): New macro.
8398 (FOR_NET_NETWORK_LEVEL_INTERFACES_SAFE): Handle NULL.
8399 (grub_dns_init): New proto.
8400 (grub_dns_fini): Likewise.
8401 (grub_net_tcp_retransmit): Likewise.
8402 (grub_net_link_layer_add_address): Likewise.
8403 (grub_net_link_layer_resolve_check): Likewise.
8404 (grub_net_link_layer_resolve): Likewise.
8405 (grub_net_dns_lookup): Likewise.
8406 (grub_net_add_dns_server): Likewise.
8407 (grub_net_remove_dns_server): Likewise.
8408 (GRUB_NET_TRIES): New const.
8409 (GRUB_NET_INTERVAL): Likewise.
8410 * include/grub/net/arp.h: Mostly rewritten.
8411 * include/grub/net/ethernet.h (grub_net_ethertype_t): New enum.
8412 * include/grub/net/ip.h: Mostly rewritten.
8413 * include/grub/net/netbuff.h: Indent.
8414 * include/grub/net/tcp.h: New file.
8415 * include/grub/net/udp.h: Mostly rewritten.
8416 * include/grub/priority_queue.h: New file.
8417 * include/grub/types.h (PRIdGRUB_SSIZE): New define.
8418 (grub_swap_bytes64_compile_time): Likewise.
8419 (grub_cpu_to_be16_compile_time): Likewise.
8420 (grub_cpu_to_be32_compile_time): Likewise.
8421 (grub_cpu_to_be64_compile_time): Likewise.
8422 (grub_be_to_cpu64_compile_time): Likewise.
8424 2011-12-16 Vladimir Serbinenko <phcoder@gmail.com>
8426 * grub-core/commands/i386/pc/drivemap.c (int13slot): Replace
8427 UINT_TO_PTR with cast.
8429 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8431 * util/import_gcry.py: Skip _gcry_rmd160_mixblock and serpent_test. We
8434 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8436 * util/import_gcry.py: Don't add include camellia.h to camellia.c. It's
8439 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8441 * util/grub-mkimage.c (generate_image): Clean multiboot header to avoid
8444 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8446 * grub-core/lib/libgcrypt/cipher/md4.c (transform) [WORDS_BIGENDIAN]:
8447 Add missing const attribute.
8448 * grub-core/lib/libgcrypt/cipher/md5.c (transform) [WORDS_BIGENDIAN]:
8450 * grub-core/lib/libgcrypt/cipher/rmd160.c (transform) [WORDS_BIGENDIAN]:
8453 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8455 * grub-core/lib/libgcrypt/cipher/serpent.c (serpent_key_prepare): Fix
8457 (serpent_setkey): Likewise.
8458 (serpent_encrypt_internal): Likewise.
8459 (serpent_decrypt_internal): Likewise.
8460 (serpent_encrypt): Don't put an alignment-increasing cast.
8461 (serpent_decrypt): Likewise.
8462 (serpent_test): Likewise.
8464 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8466 * grub-core/loader/multiboot.c (grub_cmd_module): Fix target address.
8468 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8470 Replace UINT_TO_PTR and PTR_TO_UINT with explicit grub_addr_t casts.
8472 * include/grub/types.h (UINT_TO_PTR): Removed. All users switched to
8474 (PTR_TO_UINT64): Likewise.
8475 (PTR_TO_UINT32): Likewise.
8477 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8479 * util/grub-mkimage.c (generate_image): Decrease the higher limit
8481 * util/grub-setup.c (setup): Don't add redundancy past the higher load
8484 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8486 * grub-core/gfxmenu/gui_label.c (label_paint): Handle the case
8487 text_width > available width a bit more gracefully.
8489 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8491 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Fix
8492 current address calculation.
8494 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8496 * grub-core/lib/reed_solomon.c (decode_block): Allocate on heap and not
8498 (encode_block): Likewise.
8500 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8502 * grub-core/boot/i386/pc/startup_raw.S: Clear direction flag for
8505 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8507 * grub-core/boot/i386/pc/startup_raw.S: Move realmode routines to
8508 non-RS part to avoid RS messing with GDT.
8509 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART):
8510 Increase to suit in realmode routines.
8512 2011-12-15 Vladimir Serbinenko <phcoder@gmail.com>
8514 * grub-core/kern/i386/realmode.S: Increase alignment.
8515 * grub-core/boot/i386/pc/startup_raw.S: Likewise.
8517 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8519 * grub-core/lib/reed_solomon.c (init_powx): Set gf_powx_inv[0] just to
8521 (syndroms): Compute 0 syndrom.
8522 (rs_recover): Use 0 syndrom.
8524 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8526 * include/grub/kernel.h (FOR_MODULES): Make it a bit faster.
8528 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8530 * include/grub/types.h (GRUB_PROPERLY_ALIGNED_ARRAY): Add missing
8533 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8535 * grub-core/gfxmenu/widget-box.c (get_left_pad): Take corners into
8537 (get_top_pad): Likewise.
8538 (get_right_pad): Likewise.
8539 (get_bottom_pad): Likewise.
8541 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8543 * grub-core/gfxmenu/gui_list.c (draw_menu): Don't use assignment in if.
8545 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8547 * include/grub/efi/api.h (grub_efi_memory_descriptor): Add packed
8548 attribute as the structure isn't guaranteed to be properly aligned.
8549 (grub_efi_pci_device_path): Likewise.
8550 (grub_efi_pccard_device_path): Likewise.
8551 (grub_efi_memory_mapped_device_path): Likewise. Additionaly explicitly
8552 specify the size of `memory_type'.
8553 (grub_efi_vendor_device_path): Likewise.
8554 (grub_efi_controller_device_path): Likewise.
8555 (grub_efi_acpi_device_path): Likewise.
8556 (grub_efi_expanded_acpi_device_path): Likewise.
8557 (grub_efi_atapi_device_path): Likewise.
8558 (grub_efi_scsi_device_path): Likewise.
8559 (grub_efi_fibre_channel_device_path): Likewise.
8560 (grub_efi_1394_device_path): Likewise.
8561 (grub_efi_usb_device_path): Likewise.
8562 (grub_efi_usb_class_device_path): Likewise.
8563 (grub_efi_i2o_device_path): Likewise.
8564 (grub_efi_mac_address_device_path): Likewise.
8565 (grub_efi_ipv4_device_path): Likewise.
8566 (grub_efi_ipv6_device_path): Likewise.
8567 (grub_efi_infiniband_device_path): Likewise.
8568 (grub_efi_uart_device_path): Likewise.
8569 (grub_efi_vendor_messaging_device_path): Likewise.
8570 (grub_efi_hard_drive_device_path): Likewise.
8571 (grub_efi_cdrom_device_path): Likewise.
8572 (grub_efi_vendor_media_device_path): Likewise.
8573 (grub_efi_file_path_device_path): Likewise.
8574 (grub_efi_protocol_device_path): Likewise.
8575 (grub_efi_piwg_device_path): Likewise.
8576 (grub_efi_bios_device_path): Likewise.
8578 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8580 * include/grub/charset.h (grub_utf16_to_utf8): Make src a const pointer.
8581 (grub_ucs4_to_utf8_alloc): Likewise.
8582 (grub_ucs4_to_utf8): Likewise.
8583 * grub-core/normal/charset.c (grub_ucs4_to_utf8): Likewise.
8584 (grub_ucs4_to_utf8_alloc): Likewise.
8586 2011-12-14 Vladimir Serbinenko <phcoder@gmail.com>
8588 AFFS never uses unicode.
8590 * include/grub/charset.h (GRUB_MAX_UTF8_PER_LATIN1): New const.
8591 (grub_latin1_to_utf8): New inline function.
8592 * grub-core/fs/affs.c (grub_affs_iterate_dir): Convert latin1 to UTF8.
8594 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8596 * grub-core/fs/romfs.c (grub_romfs_mount): Fix pointer comparison
8599 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8601 * grub-core/fs/squash4.c (grub_squash_inode): Fix field sizes.
8602 (grub_squash_dirent_header): Likewise.
8603 (read_chunk): Don't double swap.
8604 (grub_squash_iterate_dir): Fix swap sizes.
8606 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8608 * grub-core/fs/jfs.c (grub_jfs_getent): Handle UTF16 endianness.
8610 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8612 * grub-core/fs/hfs.c (grub_hfs_find_node): Handle unaligned keys.
8613 (grub_hfs_iterate_dir): Likewise.
8615 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8617 Fix video on platforms where unaligned access is forbidden.
8618 Make several optimisations while on it.
8620 * grub-core/video/fb/fbblit.c (grub_video_fbblit_replace_directN):
8621 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8622 (grub_video_fbblit_replace_32bit_1bit): Likewise.
8623 (grub_video_fbblit_replace_24bit_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8625 (grub_video_fbblit_replace_16bit_1bit):
8626 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8627 (grub_video_fbblit_replace_8bit_1bit): Likewise.
8628 (grub_video_fbblit_replace_BGRX8888_RGBX8888): Likewise.
8629 (grub_video_fbblit_replace_BGRX8888_RGB888): Likewise.
8630 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8631 (grub_video_fbblit_replace_BGR888_RGBX8888): Likewise.
8632 (grub_video_fbblit_replace_BGR888_RGB888): Likewise.
8633 (grub_video_fbblit_replace_RGBX8888_RGB88): Likewise.
8634 (grub_video_fbblit_replace_RGB888_RGBX888): Likewise.
8635 (grub_video_fbblit_replace_RGB888_RGBX8888): Likewise.
8636 (grub_video_fbblit_replace_index_RGBX8888): Likewise.
8637 (grub_video_fbblit_replace_index_RGB888): Likewise.
8638 (grub_video_fbblit_blend_BGRA8888_RGBA8888): Likewise.
8639 (grub_video_fbblit_blend_BGR888_RGBA8888): Likewise.
8640 (grub_video_fbblit_blend_RGBA8888_RGBA8888): Likewise.
8641 (grub_video_fbblit_blend_RGB888_RGBA8888): Likewise.
8642 (grub_video_fbblit_blend_index_RGBA8888): Likewise.
8643 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
8644 (grub_video_fbblit_blend_XXX888_1bit) [!GRUB_HAVE_UNALIGNED_ACCESS]:
8646 (grub_video_fbblit_blend_XXX565_1bit):
8647 Optimise and use GRUB_VIDEO_FB_ADVANCE_POINTER.
8648 * grub-core/video/fb/fbfill.c (grub_video_fbfill_direct32): Likewise.
8649 * grub-core/video/fb/fbutil.c (grub_video_fb_get_video_ptr): Return
8651 * grub-core/video/fb/video_fb.c (common_blitter)
8652 [!GRUB_HAVE_UNALIGNED_ACCESS]: Skip disabled blitters.
8653 (grub_video_fb_create_render_target_from_pointer)
8654 [!GRUB_HAVE_UNALIGNED_ACCESS]: Check alignment.
8655 * include/grub/fbutil.h (grub_video_fb_get_video_ptr): Return void *.
8656 * include/grub/i386/types.h (GRUB_HAVE_UNALIGNED_ACCESS): New
8658 * include/grub/x86_64/types.h (GRUB_HAVE_UNALIGNED_ACCESS): Likewise.
8660 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8662 * grub-core/kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Support
8663 HH22 and HM10 relocations.
8665 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8667 * grub-core/kern/misc.c (grub_vsnprintf_real): Fix fmt2 parsing.
8669 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8671 * grub-core/commands/videotest.c (grub_cmd_videotest): Check that
8672 allocation succeeded.
8674 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8676 * grub-core/fs/iso9660.c (grub_iso9660_convert_string): Make first
8677 argument a u8 pointer. All users updated.
8678 Handle unaligned buffers.
8680 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8682 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Force inlining of
8683 add_part to workaround compiler bug.
8685 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8687 * include/grub/kernel.h (FOR_MODULES): Preserve alignment invariants.
8689 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8691 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_add_elfsyms):
8692 Reserve alignment invariants.
8693 (grub_multiboot_load): Likewise.
8694 (retrieve_video_parameters): Likewise.
8695 (grub_multiboot_make_mbi): Likewise.
8697 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8699 * grub-core/loader/i386/xnu.c (grub_xnu_devprop_remove_property): Fix
8702 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8704 * grub-core/disk/pata.c (grub_pata_pio_read): Handle unaligned buffer.
8705 (grub_pata_pio_write): Likewise.
8707 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8709 Add noreturn attributes and remove unreachable code.
8711 * grub-core/bus/cs5536.c (grub_cs5536_smbus_wait): Remove unreachable
8713 * grub-core/commands/halt.c (grub_cmd_halt): Remove unreachable
8714 code. Mark as noreturn.
8715 * grub-core/commands/minicmd.c (grub_mini_cmd_exit): Likewise.
8716 * grub-core/commands/reboot.c (grub_cmd_reboot): Likewise.
8717 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Remove
8719 * grub-core/kern/main.c (grub_main): Mark as noreturn.
8720 * grub-core/kern/rescue_reader.c (grub_rescue_run): Likewise.
8721 * grub-core/lib/posix_wrap/stdlib.h (abort): Likewise.
8722 * grub-core/normal/menu.c (run_menu): Remove unreachable code.
8723 * include/grub/kernel.h (grub_main): Mark as noreturn.
8724 * include/grub/reader.h (grub_rescue_run): Likewise.
8726 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8728 * include/grub/i386/qemu/memory.h (grub_machine_mmap_init): Remove
8729 redundant declaration.
8731 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8733 * include/grub/net.h (grub_net_network_level_interfaces): Remove
8734 redundant declaration.
8735 (FOR_NET_NETWORK_LEVEL_INTERFACES): Move to appropriate place.
8737 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8739 * grub-core/commands/hdparm.c (le16_to_char): Make src and dest uint16 *
8740 to ensure alignment.
8741 (grub_hdparm_print_identify): Make argument uint16 * to ensure
8742 alignment. Ensure tmp alignment.
8743 (grub_cmd_hdparm): Ensure buf alignment.
8744 * grub-core/disk/ata.c (grub_ata_strncpy): Make src and dest uint16 *
8745 to ensure alignment.
8746 (grub_ata_dumpinfo): Ensure text alignment.
8747 (grub_atapi_identify): Preserve alignment invariant.
8748 (grub_ata_identify): Likewise. Use grub_get_unaligned32 when necessary.
8750 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8752 * include/grub/emu/misc.h (xasprintf): Add missing format attribute.
8753 * include/grub/mips/kernel.h (grub_halt): Remove redundant declaration.
8754 * include/grub/mips/qemu_mips/kernel.h (grub_halt): Likewise.
8755 * include/grub/misc.h (grub_reboot)
8756 [GRUB_MACHINE_EMU || GRUB_MACHINE_QEMU_MIPS]: Export.
8757 (grub_halt) [__mips__]: Likewise.
8759 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8761 * include/grub/efi/memory.h (grub_machine_mmap_iterate):
8762 Remove redundant declaration.
8763 (grub_mmap_get_post64): Likewise.
8764 (grub_mmap_get_upper): Likewise.
8765 (grub_mmap_get_lower): Likewise.
8767 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8769 * grub-core/partmap/dvh.c (grub_dvh_is_valid): Make argument
8770 uint32_t * to ensure alignment.
8771 (dvh_partition_map_iterate): Make `block' a union to ensure alignment.
8773 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8775 * grub-core/partmap/sunpc.c (grub_sun_is_valid): Make argument
8776 uint16_t * to ensure alignment.
8777 (sun_pc_partition_map_iterate): Make `block' a union to ensure
8780 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8782 * grub-core/partmap/sun.c (grub_sun_is_valid): Make argument uint16_t *
8783 to ensure alignment.
8784 (sun_partition_map_iterate): Make `block' a union to ensure alignment.
8786 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8788 * grub-core/fs/ntfs.c (u16at): Make into inline function.
8789 Handle unaligned pointers.
8792 (fixup): Use byte access instead of v16at.
8793 (find_attr): Fix imporper usage of v32at.
8794 (read_data): Likewise.
8795 (list_file): Handle byte-swapping and unaligned strings.
8796 (grub_ntfs_label): Likewise.
8798 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8800 * grub-core/fs/udf.c (grub_udf_partmap): Add packed attribute
8801 as it's not necessarily aligned.
8803 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8805 * grub-core/kern/mips/qemu_mips/init.c (grub_at_keyboard_init): Remove
8806 redundant declaration.
8807 (grub_serial_init): Likewise.
8808 (grub_terminfo_init): Likewise.
8810 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8812 * grub-core/fs/zfs/zfs.c (DVA_OFFSET_TO_PHYS_SECTOR): Make into inline
8814 (ZAP_HASH_IDX): Likewise.
8815 (ZAP_LEAF_HASH_SHIFT): Likewise.
8816 (ZAP_LEAF_HASH_NUMENTRIES): Likewise.
8817 (LEAF_HASH): Likewise.
8818 (ZAP_LEAF_NUMCHUNKS): Likewise.
8819 (ZAP_LEAF_CHUNK): Likewise. Changed pointer arithmetic to preserve
8820 alignment invariants. Return pointer. All users updated.
8821 (ZAP_LEAF_ENTRY): Make into inline function.
8824 (xor_out): Use grub_crypto_xor.
8825 (dnode_get_path): Use grub_get_unaligned.
8826 (nvlist_find_value): Likewise.
8827 (grub_zfs_nvlist_lookup_uint64): Likewise.
8828 (grub_zfs_nvlist_lookup_string): Likewise.
8829 (get_nvlist_size): Likewise.
8830 (grub_zfs_open): Likewise.
8831 (fill_fs_info): Likewise.
8832 (grub_zfs_dir): Likewise.
8833 * include/grub/zfs/zap_leaf.h (zap_leaf_phys): Adapt to preserve
8834 alignment invariants.
8835 * include/grub/zfs/zio.h (zio_eck_t): Mark as packed as it's not
8836 necessarily aligned.
8838 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8840 * grub-core/net/netbuff.c (grub_netbuff_alloc): Ensure proper alignment.
8842 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8844 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Change pointer
8845 arithmetic to conserve alignment invariants.
8847 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8849 * include/grub/efiemu/efiemu.h (grub_efiemu_get_memory_map): Remove
8850 redundant declaration.
8851 (grub_efiemu_mm_obtain_request): Likewise.
8852 (grub_efiemu_prepare): Likewise.
8854 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8856 * include/grub/list.h: Explicitly cast return of grub_bad_type_cast
8859 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8861 * grub-core/fs/hfsplus.c (grub_hfsplus_btree_recoffset): Handle the
8862 case of aunaligned recptr.
8863 (grub_hfsplus_read_block): Declare extoverflow as key to ensure
8865 (grub_hfsplus_btree_search): Handle unaligned index.
8867 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8869 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Use grub_get_unaligned16
8870 to get freetag and skip.
8872 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8874 * grub-core/fs/nilfs2.c (grub_nilfs2_btree_node): Add zero-size keys
8876 (grub_nilfs2_btree_node_dkeys): Ensure return pointer alignment.
8877 (grub_nilfs2_btree_lookup): Ensure buffer alignment.
8879 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8881 * grub-core/fs/romfs.c (grub_romfs_iterate_dir): Properly align
8882 name for checksum and fix allocation algorithm.
8884 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8886 * include/grub/types.h (grub_properly_aligned_t): New type.
8887 (GRUB_PROPERLY_ALIGNED_ARRAY): New macro.
8888 (grub_get_unaligned16): Add explicit casts.
8889 (grub_get_unaligned32): Likewise.
8890 (grub_get_unaligned64): Likewise.
8891 (grub_set_unaligned16): New function.
8892 (grub_set_unaligned32): Likewise.
8894 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8896 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
8898 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8900 * grub-core/fs/udf.c (read_string): Macroify GRUB_MAX_UTF8_PER_UTF16.
8901 * grub-core/fs/jfs.c (grub_jfs_diropen): Likewise.
8902 * grub-core/fs/fat.c (grub_fat_iterate_dir): Likewise.
8904 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8906 * grub-core/term/at_keyboard.c (set_scancodes): Fix preprocessor
8909 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8911 * grub-core/kern/emu/main.c (main): Add missing const qualifier.
8912 * grub-core/loader/efi/appleloader.c (devdata): Likewise.
8914 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8916 Unify and improve RAID and crypto xor.
8918 * grub-core/disk/raid.c (grub_raid_block_xor): Removed. All users
8919 changed to grub_crypto_xor
8920 * grub-core/lib/crypto.c (grub_crypto_xor): Moved from here ...
8921 * include/grub/crypto.h (grub_crypto_xor): ... here. Inlined.
8922 Use bigger types when possible.
8924 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8926 * grub-core/disk/raid.c (scan_devices): Fix condition.
8928 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8930 * grub-core/net/drivers/ieee1275/ofnet.c (bootp_response_properties):
8931 Make name a const ptr.
8933 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8935 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_finddevice): Make
8936 first argument a const pointer.
8937 * grub-core/kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
8938 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_finddevice): Update
8940 (grub_children_iterate): Likewise.
8941 (grub_machine_mmap_iterate): Remove redundant declaration.
8943 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8945 * grub-core/commands/acpi.c (grub_acpi_create_ebda) [!x86]: Disable.
8946 (grub_cmd_acpi) [!x86]: Disable EBDA.
8948 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8950 Enable UTF8 in gnulib regexp.
8952 * config.h.in (RE_ENABLE_I18N) [!GRUB_UTIL]: New define.
8953 * grub-core/lib/posix_wrap/ctype.h (islower): Use grub_islower.
8954 (isupper): Use grub_isupper.
8955 (isascii): New inline function.
8956 * grub-core/lib/posix_wrap/wchar.h: Replace dummy with real contents.
8957 * grub-core/lib/posix_wrap/wctype.h: Likewise.
8958 * grub-core/normal/charset.c (grub_utf8_process): New function.
8959 (grub_utf8_to_utf16): Use grub_utf8_process.
8960 (grub_encode_utf8_character): New function.
8961 (grub_ucs4_to_utf8): Use grub_encode_utf8_character.
8962 * include/grub/charset.h (grub_utf8_process): New declaration.
8963 (grub_encode_utf8_character): Likewise.
8964 * include/grub/misc.h (grub_islower): New inline function.
8965 (grub_isupper): Likewise.
8966 (grub_strchrsub): Moved down to fix the definitions.
8968 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8970 * grub-core/bus/usb/ohci.c (grub_ohci_check_transfer): Add an unsigned
8973 2011-12-13 Vladimir Serbinenko <phcoder@gmail.com>
8975 * include/grub/loader.h (grub_loader_register_preboot_hook):
8976 Use struct preboot * and not void * for handle. All users updated.
8977 (grub_loader_unregister_preboot_hook): Likewise.
8979 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8981 * include/grub/charset.h (GRUB_MAX_UTF8_PER_UTF16): New const.
8982 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Change to
8983 UTF-16-BE. All users updated.
8984 (grub_hfsplus_cmp_catkey): Fix unicode handling.
8985 (grub_hfsplus_iterate_dir): Likewise.
8986 (grub_hfsplus_label): Likewise.
8988 2011-12-12 Vladimir Serbinenko <phcoder@gmail.com>
8990 * grub-core/disk/ahci.c (grub_ahci_pciinit): Fix compat condition.
8992 2011-11-30 Vladimir Serbinenko <phcoder@gmail.com>
8994 Add missing const qualifiers.
8996 * grub-core/commands/i386/pc/sendkey.c (keysym): Add missing const.
8997 * grub-core/commands/lspci.c (grub_pci_classname): Likewise.
8998 * grub-core/commands/menuentry.c (hotkey_aliases): Likewise.
8999 * grub-core/disk/lvm.c (grub_lvm_getvalue): Likewise.
9000 (grub_lvm_check_flag): Likewise.
9001 * grub-core/efiemu/i386/coredetect.c
9002 (grub_efiemu_get_default_core_name): Likewise
9003 * grub-core/efiemu/main.c (grub_efiemu_autocore): Likewise.
9004 * grub-core/fs/hfsplus.c (grub_hfsplus_catkey_internal): Likewise.
9005 * grub-core/fs/ntfs.c (fixup): Likewise.
9006 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Likewise.
9007 * grub-core/fs/zfs/zfs.c (decomp_entry): Likewise.
9008 (fzap_lookup): Likewise.
9009 (zap_lookup): Likewise.
9010 * grub-core/gnulib/regcomp.c (init_dfa): Likewise.
9011 * grub-core/lib/legacy_parse.c (check_option): Likewise.
9012 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Likewise.
9013 * grub-core/loader/i386/bsd.c (grub_bsd_add_meta): Likewise.
9014 (grub_freebsd_add_meta_module): Likewise.
9015 (grub_cmd_freebsd_module): Likewise.
9016 * grub-core/loader/i386/xnu.c (tbl_alias): Likewise.
9017 * grub-core/loader/xnu.c (grub_xnu_register_memory): Likewise.
9018 (grub_xnu_writetree_get_size): Likewise.
9019 (grub_xnu_writetree_toheap_real): Likewise.
9020 (grub_xnu_find_key): Likewise.
9021 (grub_xnu_create_key): Likewise.
9022 (grub_xnu_create_value): Likewise.
9023 (grub_xnu_register_memory): Likewise.
9024 (grub_xnu_check_os_bundle_required): Likewise.
9025 (grub_xnu_scan_dir_for_kexts): Likewise.
9026 (grub_xnu_load_kext_from_dir): Likewise.
9027 * grub-core/normal/color.c (color_list): Likewise.
9028 * grub-core/normal/completion.c (current_word): Likewise.
9029 * grub-core/normal/menu_entry.c (insert_string): Likewise.
9030 * grub-core/term/serial.c (grub_serial_find): Likewise.
9031 * grub-core/term/tparm.c (grub_terminfo_tparm): Likewise.
9032 * include/grub/efiemu/efiemu.h (grub_efiemu_get_default_core_name):
9034 * include/grub/i386/bsd.h (grub_bsd_add_meta): Likewise.
9035 (grub_freebsd_add_meta_module): Likewise.
9036 * include/grub/lib/arg.h (grub_arg_option): Likewise.
9037 * include/grub/net.h (grub_net_card_driver): Likewise.
9038 (grub_net_card): Likewise.
9039 (grub_net_app_protocol): Likewise.
9040 * include/grub/parttool.h (grub_parttool_argdesc): Likewise.
9041 * include/grub/serial.h (grub_serial_find): Likewise.
9042 * include/grub/tparm.h (grub_terminfo_tparm): Likewise.
9043 * include/grub/xnu.h (grub_xnu_create_key): Likewise.
9044 (grub_xnu_create_value): Likewise.
9045 (grub_xnu_find_key): Likewise.
9046 (grub_xnu_scan_dir_for_kexts): Likewise.
9047 (grub_xnu_load_kext_from_dir): Likewise.
9049 * include/grub/zfs/zio_checksum.h (zio_checksum_t): Moved from here ...
9050 * grub-core/fs/zfs/zfs.c (zio_checksum_t): ...here.
9051 * include/grub/zfs/zio_checksum.h (zio_checksum_info):
9053 * grub-core/fs/zfs/zfs.c (zio_checksum_info): ... here. Added missing const.
9055 2011-11-28 Colin Watson <cjwatson@ubuntu.com>
9057 * util/getroot.c (find_root_device_from_libzfs): Use xasprintf.
9059 2011-11-27 Vladimir Serbinenko <phcoder@gmail.com>
9061 * grub-core/fs/zfs/zfs.c (recovery): Fix spelling.
9062 (read_device): Fix size calculation.
9064 2011-11-25 Robert Millan <rmh@gnu.org>
9066 * util/getroot.c [HAVE_LIMITS_H]: Include `<limits.h>'.
9067 (find_root_device_from_libzfs): Add zpool output parser to be used
9068 as fallback when libzfs isn't available.
9070 2011-11-25 Seth Goldberg <seth.goldberg@oracle.com>
9072 * po/Makefile.in.in: Add missing escape-continuation.
9074 2011-11-25 Vladimir Serbinenko <phcoder@gmail.com>
9076 * grub-core/fs/cpio.c (grub_cpio_dir): Handle subdirs correctly.
9078 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9080 * grub-core/kern/dl.c (grub_dl_load_segments): Fix alignment handling.
9082 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9084 * grub-core/kern/dl.c (grub_dl_unload): Fix freeing segments.
9086 2011-11-16 Vladimir Serbinenko <phcoder@gmail.com>
9088 * grub-core/kern/x86_64/efi/callwrap.S: Fix the comment.
9090 2011-11-14 Vladimir Serbinenko <phcoder@gmail.com>
9092 * grub-core/lib/adler32.c: Add missing license specification.
9093 * grub-core/lib/crc64.c: Likewise.
9094 * grub-core/loader/i386/pc/plan9.c: Likewise.
9095 * grub-core/partmap/plan.c: Likewise.
9097 2011-11-13 Lubomir Kundrak <lkundrak@redhat.com>
9099 Add facility to debug GRUB with gdb under qemu.
9101 * grub-core/gdb_grub.in: New file.
9102 * grub-core/gmodule.pl.in: Likewise.
9103 * grub-core/Makefile.core.def (gmodule.pl): New script.
9104 (gdb_grub): Likewise.
9106 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9108 * util/grub-mount.c (argp_parser): Accept relative pathes.
9109 * util/grub-fstest.c (argp_parser): Likewise.
9111 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9115 * Makefile.util.def (libgrubmods): Add
9116 grub-core/partmap/plan.c.
9117 * docs/grub.texi: Notice Plan9 support.
9118 * grub-core/Makefile.core.def (plan9): New module.
9119 (part_plan): Likewise.
9120 * grub-core/loader/i386/pc/plan9.c: New file.
9121 * grub-core/partmap/plan.c: Likewise.
9122 * include/grub/msdos_partition.h (GRUB_PC_PARTITION_TYPE_PLAN9): New
9124 (GRUB_PC_PARTITION_TYPE_LINUX_SWAP): Likewise.
9125 * include/grub/mm.h (grub_extend_alloc): New inline function.
9127 2011-11-13 Vladimir Serbinenko <phcoder@gmail.com>
9129 Make Reed-Solomon faster by using power of generator representation of
9132 * grub-core/lib/reed_solomon.c (grub_uint16_t) [TEST]: Removed.
9133 (gf_double_t): Likewise.
9134 (gf_invert): Removed.
9135 (gf_powx): New array.
9136 (gf_powx_inv): Likewise.
9137 (scratch): Move higher.
9138 (gf_reduce): Removed.
9140 (gf_invert): Likewise.
9141 (init_inverts): Replaced with ...
9142 (init_powx): ...this. All users updated.
9143 (pol_evaluate): Replace multiplications with additions.
9144 (rs_encode): Likewise.
9145 (gauss_eliminate): Call gf_invert.
9146 (grub_reed_solomon_add_redundancy): Call init_powx.
9147 (grub_reed_solomon_recover): Call init_powx unconditionally.
9149 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9151 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Fix spelling.
9153 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9155 * grub-core/partmap/gpt.c (gpt_partition_map_embed): Restore
9156 disk->partiton for safety.
9158 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9160 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev):
9162 (grub_util_biosdisk_get_grub_dev): Add a useful debug info.
9164 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9166 * grub-core/kern/emu/hostdisk.c (find_system_device): Fix a memory leak.
9168 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9170 * include/grub/lvm.h (grub_lvm_pv): Correct start type.
9172 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9174 Fix spaces handling in proc/self/mountinfo.
9176 * util/getroot.c (unescape): New function.
9177 (grub_find_root_device_from_mountinfo): Use unescape.
9179 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9181 Support ZFS embedding.
9183 * grub-core/fs/zfs/zfs.c (grub_zfs_embed): New function.
9184 (grub_zfs_fs): Register grub_zfs_embed.
9186 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9188 Fix MIPS compilation.
9190 * grub-core/boot/mips/startup_raw.S: Use GRUB_DECOMPRESSOR_*
9191 * include/grub/offsets.h: Rename decompressor fields from
9192 GRUB_KERNEL_* to GRUB_DECOMPRESSOR_*.
9193 * util/grub-mkimage.c (image_targets): Use new names.
9195 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9197 Defer multiboot device parsing until we're in compressed part.
9199 * grub-core/boot/i386/pc/lnxboot.S: Remove setting dos_part and
9200 bsd_part. setdevice has fallen into disuse.
9201 * grub-core/boot/i386/pc/startup_raw.S (dos_part): Removed.
9202 (bsd_part): Likewise.
9203 (boot_dev): New variable.
9204 (multiboot_trampoline): Don't parse multiboot device.
9205 Pass multiboot device in %edx.
9206 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Parse
9208 * grub-core/kern/i386/pc/init.c (grub_machine_get_bootlocation):
9210 * grub-core/kern/i386/pc/startup.S: Save edx.
9211 (grub_boot_drive): Removed.
9212 (grub_install_dos_part): Likewise.
9213 (grub_install_bsd_part): Likewise.
9214 (grub_boot_device): New variable.
9215 * include/grub/i386/pc/kernel.h (grub_install_dos_part): Removed.
9216 (grub_install_bsd_part): Likewise.
9217 (grub_boot_drive): Likewise.
9218 (grub_boot_device): New variable.
9219 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART):
9221 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
9222 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Moved lower.
9223 (GRUB_KERNEL_MACHINE_INSTALL_BSD_PART): Removed.
9224 (GRUB_KERNEL_MACHINE_INSTALL_DOS_PART): Likewise.
9225 * util/grub-install.in: Remove redundant condition.
9227 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9229 Fix bug introduced by previous commit.
9231 * grub-core/boot/i386/pc/startup_raw.S: Compute RS start correctly.
9233 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9235 Use decompressors framework on i386-pc. It increases core size
9236 by 46 bytes but improves compatibility and maintainability.
9238 * grub-core/Makefile.core.def (lzma_decompress): New image.
9239 (kernel): Add i386_pc_ldflags.
9240 * grub-core/kern/i386/pc/startup.S: Move intial part to ..
9241 * grub-core/boot/i386/pc/startup_raw.S: ... here. Pass pointers
9242 to real_to_prot, prot_to_real and device info.
9243 * include/grub/offsets.h: Renamed decompressor offsets.
9244 * util/grub-mkimage.c (grub_compression_t): New cmpression lzma.
9245 (image_target_desc): Remove raw_size and rename decompressor fields.
9246 (compress_kernel): Handle lzma.
9247 (generate_image): Handle decompressors on i386-pc.
9249 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9251 * configure.ac: Add -fno-asynchronous-unwind-tables.
9253 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9255 Move assembly code to C by using intwrap. It increases core size
9256 by 88 bytes but improves compatibility and maintainability.
9258 * grub-core/kern/i386/pc/startup.S (grub_console_putchar): Moved to ...
9259 * grub-core/term/i386/pc/console.c (grub_console_putchar_real):
9260 ... here. Translated to C.
9261 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Moved to ...
9262 * grub-core/term/i386/pc/console.c (grub_console_getkey):
9263 ... here. Translated to C.
9264 * grub-core/kern/i386/pc/startup.S (grub_console_getxy): Moved to ...
9265 * grub-core/term/i386/pc/console.c (grub_console_getxy):
9266 ... here. Translated to C.
9267 * grub-core/kern/i386/pc/startup.S (grub_console_gotoxy): Moved to ...
9268 * grub-core/term/i386/pc/console.c (grub_console_gotoxy):
9269 ... here. Translated to C.
9270 * grub-core/kern/i386/pc/startup.S (grub_console_cls): Moved to ...
9271 * grub-core/term/i386/pc/console.c (grub_console_cls):
9272 ... here. Translated to C.
9273 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Moved to ..
9274 * grub-core/term/i386/pc/console.c (grub_console_setcursor):
9275 ... here. Translated to C.
9276 * grub-core/kern/i386/pc/startup.S (grub_get_rtc): Moved to ..
9277 * grub-core/kern/i386/pc/init.c (grub_get_rtc): ... here.
9279 * grub-core/term/i386/pc/console.c (int10_9): New function.
9280 (grub_console_putchar): Likewise.
9281 * include/grub/i386/pc/console.h: Removed the not anymore shared
9284 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9286 Move grub_chainloader_real_boot out of the kernel.
9288 * grub-core/Makefile.am: Remove machine/loader.h.
9289 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
9291 * grub-core/lib/i386/relocator.c (grub_relocator16_esi): New extern
9293 (grub_relocator16_keep_a20_enabled): Likewise.
9294 (grub_relocator16_boot): Fill new variables.
9295 * grub-core/lib/i386/relocator16.S: Add gate a20 handling.
9296 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_boot): Use
9298 (grub_chainloader_unload): Likewise.
9299 (grub_chainloader_cmd): Likewise.
9300 * include/grub/i386/pc/loader.h: Removed.
9301 * include/grub/i386/relocator.h (grub_relocator16_state): Add a20
9302 and esi. All initialisers updated.
9304 2011-11-12 Vladimir Serbinenko <phcoder@gmail.com>
9305 2011-11-12 Colin Watson <cjwatson@ubuntu.com>
9307 * Makefile.util.def (grub-mount): New util.
9308 * .bzrignore: Add grub-mount.
9309 * configure.ac: Check for fuse and enable grub-mount if available.
9310 * docs/man/grub-mount.h2m: New file.
9311 * util/grub-mount.c: Likewise.
9313 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9315 * grub-core/commands/efi/fixvideo.c: Gettextize.
9316 * grub-core/commands/hashsum.c: Likewise.
9317 * grub-core/commands/i386/cmostest.c: Likewise.
9318 * grub-core/commands/i386/pc/drivemap.c: Likewise.
9319 * grub-core/commands/i386/pc/lsapm.c: Likewise.
9320 * grub-core/commands/i386/pc/sendkey.c: Likewise.
9321 * grub-core/commands/lsmmap.c: Likewise.
9322 * grub-core/commands/menuentry.c: Likewise.
9323 * grub-core/commands/mips/loongson/lsspd.c: Likewise.
9324 * grub-core/commands/setpci.c: Likewise.
9325 * grub-core/loader/i386/bsd.c: Likewise.
9326 * grub-core/loader/i386/linux.c: Likewise.
9327 * util/getroot.c: Likewise.
9328 * util/grub-editenv.c: Likewise.
9329 * util/grub-fstest.c: Likewise.
9330 * util/grub-mkfont.c: Likewise.
9331 * util/grub-mkimage.c: Likewise.
9332 * util/grub-mkpasswd-pbkdf2.c: Likewise.
9333 * util/grub-pe2elf.c: Likewise.
9334 * util/grub-probe.c: Likewise.
9335 * util/grub-setup.c: Likewise.
9336 * util/ieee1275/ofpath.c: Likewise.
9337 * util/misc.c: Likewise.
9338 * util/raid.c: Likewise.
9340 2011-11-11 Robert Millan <rmh@gnu.org>
9342 * util/getroot.c (grub_util_get_geom_abstraction): Remove
9343 __attribute__((unused)) from `os_dev', which *is* being used.
9345 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9347 * include/grub/dl.h (GRUB_ARCH_DL_TRAMP_SIZE) [__ia64__]: Add back
9349 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Redefine in terms of
9350 GRUB_IA64_DL_GOT_ALIGN.
9351 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Redefine in terms of
9352 GRUB_IA64_DL_TRAMP_ALIGN.
9354 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9356 Replace grub_fatal with normal errors in i386 linux loader.
9358 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Return 0 on error.
9359 (allocate_pages): Check find_efi_mmap_size return value.
9360 (grub_e820_add_region): Return error.
9361 (grub_linux_boot): Check mmap return value.
9363 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9365 * grub-core/commands/acpihalt.c: Gettextized.
9366 * grub-core/commands/cacheinfo.c: Likewise.
9367 * grub-core/commands/cmp.c: Likewise.
9368 * grub-core/commands/efi/loadbios.c: Likewise.
9369 * grub-core/commands/gptsync.c: Likewise.
9370 * grub-core/commands/ieee1275/suspend.c: Likewise.
9371 * grub-core/commands/legacycfg.c: Likewise.
9372 * grub-core/commands/memrw.c: Likewise.
9373 * grub-core/commands/minicmd.c: Likewise.
9374 * grub-core/commands/parttool.c: Likewise.
9375 * grub-core/commands/time.c: Likewise.
9376 * grub-core/commands/videoinfo.c: Likewise.
9377 * grub-core/disk/geli.c: Likewise.
9378 * grub-core/disk/i386/pc/biosdisk.c: Likewise.
9379 * grub-core/disk/luks.c: Likewise.
9380 * grub-core/disk/lvm.c: Likewise.
9381 * grub-core/font/font_cmd.c: Likewise.
9382 * grub-core/fs/zfs/zfscrypt.c: Likewise.
9383 * grub-core/fs/zfs/zfsinfo.c: Likewise.
9384 * grub-core/gfxmenu/view.c: Likewise.
9385 * grub-core/kern/emu/hostdisk.c: Likewise.
9386 * grub-core/kern/emu/main.c: Likewise.
9387 * grub-core/kern/emu/misc.c: Likewise.
9388 * grub-core/kern/emu/mm.c: Likewise.
9389 * grub-core/kern/mips/arc/init.c: Likewise.
9390 * grub-core/kern/mips/loongson/init.c: Likewise.
9391 * grub-core/kern/partition.c: Likewise.
9392 * grub-core/lib/i386/halt.c: Likewise.
9393 * grub-core/lib/mips/arc/reboot.c: Likewise.
9394 * grub-core/lib/mips/loongson/reboot.c: Likewise.
9395 * grub-core/loader/i386/pc/chainloader.c: Likewise.
9396 * grub-core/loader/i386/xnu.c: Likewise.
9397 * grub-core/loader/multiboot.c: Likewise.
9398 * grub-core/net/bootp.c: Likewise.
9399 * grub-core/net/net.c: Likewise.
9400 * grub-core/normal/term.c: Likewise.
9401 * grub-core/partmap/bsdlabel.c: Likewise.
9402 * grub-core/parttool/msdospart.c: Likewise.
9403 * grub-core/term/gfxterm.c: Likewise.
9404 * grub-core/term/terminfo.c: Likewise.
9405 * grub-core/video/i386/pc/vbe.c: Likewise.
9406 * util/grub-menulst2cfg.c: Likewise.
9407 * util/grub-mkdevicemap.c: Likewise.
9408 * util/grub-mklayout.c: Likewise.
9409 * util/grub-mkrelpath.c: Likewise.
9410 * util/grub-script-check.c: Likewise.
9411 * util/ieee1275/grub-ofpathname.c: Likewise.
9412 * util/resolve.c: Likewise.
9414 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9416 Support %1$d syntax.
9418 * tests/printf_unit_test.c: New file.
9419 * Makefile.util.def (printf_test): New test.
9420 * grub-core/kern/misc.c (grub_vsnprintf_real): Support %1$d syntax.
9422 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9424 * grub-core/hook/datehook.c (grub_read_hook_datetime): Small stylistic
9427 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9429 * grub-core/efiemu/mm.c (grub_efiemu_mmap_fill): Change printf into
9431 * grub-core/font/font.c (grub_font_load): Likewise.
9433 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9435 * util/grub-macho2img.c: Add comment concerning gettext.
9436 * grub-core/lib/legacy_parse.c: Likewise.
9438 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9440 * grub-core/kern/misc.c (grub_vprintf): Add missing va_end.
9441 (grub_xvasprintf): Likewise.
9443 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9445 Add const keyword to grub_env_get and gettextize week days.
9447 * grub-core/hook/datehook.c (grub_datetime_names): Make const.
9448 (grub_read_hook_datetime): Return const char *.
9449 * grub-core/kern/env.c (grub_env_get): Return const char *. All users
9451 * grub-core/normal/datetime.c (grub_weekday_names): Make const.
9453 (grub_get_weekday_name): Return const char *. Call gettext.
9454 * grub-core/script/argv.c (grub_script_argv_append): Receive const
9455 char * and len as the argument. All users updated.
9456 (grub_script_argv_split_append): Receive const char *.
9457 * include/grub/datetime.h (grub_get_weekday_name): Update proto.
9458 * include/grub/env.h (grub_env_get): Likewise.
9459 (grub_env_read_hook_t): Return const char *.
9460 * include/grub/script_sh.h (grub_script_argv_append): Update proto.
9461 (grub_script_argv_split_append): Likewise.
9463 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9465 * grub-core/normal/main.c (grub_normal_execute): Remove leftover call.
9467 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9469 * grub-core/kern/misc.c (grub_strstr): Moved from here ...
9470 * include/grub/misc.h (grub_strstr): ... here. Make static and inline.
9472 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9474 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_set_property):
9477 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9479 Fix mips compilation.
9481 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec): Restrict hash_id to
9483 (hashes): Use in embed decoder as well (for sizes).
9484 (dec_stream_header): Fix embed decompressor logic.
9485 (dec_stream_footer): Likewise.
9487 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9489 * grub-core/kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Issue
9490 an error and not a fatal on unrecognised relocation types.
9492 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9494 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
9495 Issue error rather than printf on unknown arguments.
9497 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9499 * grub-core/kern/ieee1275/ieee1275.c (grub_ieee1275_set_property):
9502 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9504 * grub-core/fs/zfs/zfscrypt.c (GRUB_MOD_INIT), (GRUB_MOD_FINI):
9507 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9509 * grub-core/fs/ntfs.c (grub_ntfs_read_symlink): Stylistic fix. Remove
9510 leftover debug printf.
9512 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9514 * grub-core/fs/btrfs.c (grub_btrfs_embed): Spelling fix.
9516 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9518 * grub-core/efiemu/main.c (grub_efiemu_register_configuration_table):
9521 2011-11-11 Vladimir Serbinenko <phcoder@gmail.com>
9523 * grub-core/commands/probe.c (grub_cmd_probe): Fix error message.
9525 2011-11-10 Shea Levy <slevy@tieronedesign.com>
9527 Allow all modules to perform serial IO
9529 * grub-core/term-serial.c (grub_serial_find): Remove static qualifier
9530 * include/grub/serial.h (grub_serial_port_configure): New inline
9532 (grub_serial_port_fetch): Likewise.
9533 (grub_serial_port_put): Likewise.
9534 (grub_serial_port_fini): Likewise.
9535 (grub_serial_find): New proto.
9537 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9539 Put symlink at the end of the node and fix a potential
9542 * grub-core/fs/iso9660.c (grub_fshelp_node): New field have_symlink.
9543 Make symlink into an array.
9544 (set_rockridge): Set have_symlink and alloc_dirents.
9545 (grub_iso9660_read_symlink): Use new layout.
9546 (grub_iso9660_iterate_dir): Fix memory corruption.
9548 (grub_iso9660_dir): Set have_symlink.
9549 (grub_iso9660_open): Likewise.
9551 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9553 Remove local keyword.
9555 * util/grub-mkconfig_lib.in (version_test_numeric): Remove local.
9556 (version_test_gt): Likewise.
9557 (version_find_latest): Likewise.
9558 (gettext_printf): Likewise.
9559 * util/grub.d/10_windows.in (get_os_name_from_boot_ini): Likewise.
9561 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9563 * grub-core/fs/zfs/zfs.c (zfs_mount): Fix spurious warning.
9565 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9567 Fix ZFS memory and resource leaks.
9569 * grub-core/fs/zfs/zfs.c (fill_vdev_info_real): New paramter inserted.
9572 (fill_vdev_info): New parameter inserted. All users updated.
9573 (check_pool_label): Likewise.
9574 (scan_disk): Likewise.
9575 (scan_devices): Close non-inserted disks.
9576 (fzap_iterate): Free l.
9577 (unmount_device): Free children descripto memory.
9579 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9581 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Fix grub_strncat
9582 argument (access out of bounds).
9584 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9586 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Fix RAID10 logic for
9589 2011-11-10 Vladimir Serbinenko <phcoder@gmail.com>
9591 * include/grub/i386/netbsd_bootinfo.h (grub_netbsd_btinfo_bootwedge):
9594 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9596 Fix several memory leaks.
9598 * grub-core/fs/btrfs.c (grub_btrfs_dir): Fix memory leak.
9599 * grub-core/fs/cpio.c (grub_cpio_find_file): Likewise.
9600 (grub_cpio_dir): Likewise.
9601 * grub-core/fs/fat.c (grub_fat_label): Likewise.
9602 * grub-core/fs/jfs.c (grub_jfs_label): Likewise.
9603 * grub-core/fs/romfs.c (grub_romfs_close): Likewise.
9604 (grub_romfs_label): Likewise.
9605 * grub-core/fs/squash4.c (squash_mount): Use zalloc for safety.
9606 (squash_unmount): New function.
9607 (grub_squash_dir): Fix memory leak.
9608 (grub_squash_open): Likewise.
9609 (grub_squash_read): Likewise.
9610 (grub_squash_mtime): Likewise.
9611 * grub-core/fs/xfs.c (grub_xfs_open): Likewise.
9612 * grub-core/fs/zfs/zfs.c (check_pool_label): Likewise.
9613 * util/grub-fstest.c (fstest): Likewise.
9615 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9617 * include/grub/misc.h (grub_strncat): Fix the order of conditionals to
9618 avoid accessing beyond the array.
9620 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9622 * configure.ac: Add missing -mXX to TARGET_CPPFLAGS.
9624 2011-11-09 Vladimir Serbinenko <phcoder@gmail.com>
9628 * grub-core/fs/affs.c (grub_affs_bblock): Replace flags with version.
9629 (GRUB_AFFS_FLAG_FFS): Removed.
9630 (GRUB_AFFS_SYMLINK_SIZE): Likewise.
9631 (GRUB_AFFS_FILETYPE_DIR): Make positive and unsigned.
9632 (GRUB_AFFS_FILETYPE_DIR), (GRUB_AFFS_FILETYPE_REG): Fix a mix-up.
9633 (grub_fshelp_node): Make block 32-bit.
9634 Add block_cache and last_block_cache.
9635 (grub_affs_read_block): Fill and use block cache.
9636 (grub_affs_read_file): Removed.
9637 (grub_affs_mount): Zero-fill node. Fix version check. Don't reread
9639 (grub_affs_read_symlink): Fix symlink size. Add a \0 at the end for
9641 (grub_affs_iterate_dir): Use more appropriate types. Zero-fill allocated
9643 (grub_affs_close): Free block cache.
9644 (grub_affs_read): Use grub_fshelp_read_file directly.
9646 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9648 * grub-core/fs/zfs/zfs.c (read_dva): Issue an error if read failed
9651 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9653 * grub-core/lib/LzmaEnc.c (LzmaEnc_CodeOneBlock): Remove set but not
9655 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
9658 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9660 Fix potential problem with calling zfs_to_cpu and cpu_to_be in a row.
9662 * grub-core/fs/zfs/zfscrypt.c (grub_zfs_decrypt_real): Use explicit
9663 byteswap when needed.
9665 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9667 Fix FreeBSD compilation.
9669 * grub-core/disk/geli.c (GRUB_MD_SHA256) [GRUB_UTIL]: Redefine in a way
9670 to avoid circular dependency.
9671 (GRUB_MD_SHA512) [GRUB_UTIL]: Likewise.
9672 * util/getroot.c (grub_util_follow_gpart_up): Move from here...
9673 * grub-core/kern/emu/hostdisk.c (+grub_util_follow_gpart_up): ... here.
9675 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9677 Fix ZFS crypto error types.
9679 * grub-core/fs/zfs/zfscrypt.c (grub_ccm_decrypt): Fix return type.
9680 (grub_gcm_decrypt): Likewise.
9681 (grub_zfs_load_key_real): Fix error code type. Handle possible error
9684 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9688 * Makefile.util.def (10_illumos): New script.
9689 * configure.ac: Set COND_HOST_ILLUMOS.
9690 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__sun__]:
9691 Support Illumos calls.
9692 (find_partition_start) [__sun__]: Likewise.
9693 (convert_system_partition_to_system_disk) [__sun__]: Likewise.
9694 (device_is_wholedisk) [__sun__]: Handle Illumos naming scheme.
9695 (grub_util_biosdisk_get_grub_dev) [__sun__]: Handle Illumos.
9696 * util/getroot.c (find_root_device_from_libzfs) [__sun__]: Return raw
9698 * util/grub-probe.c (probe) [__sun__]: Do character check.
9699 * util/grub.d/10_illumos.in: New file.
9701 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9703 Support escaped commas in hostdisk.
9705 * grub-core/kern/emu/hostdisk.c (unescape_cmp): New function.
9706 (find_grub_drive): Use unescape_cmp.
9707 (make_device_name): Escape commas.
9709 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9711 * util/grub.d/10_kfreebsd.in: Use ${grub_mkrelpath} not grub-mkrelpath.
9713 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9715 * grub-core/fs/zfs/zfs.c (zap_iterate): Remove set but not used
9718 2011-11-08 Vladimir Serbinenko <phcoder@gmail.com>
9720 Support trampoline jumps on powerpc.
9722 * grub-core/kern/dl.c (grub_dl_load_segments) [__powerpc__]: Follow
9724 (grub_dl_load_segments): Set mod->sz.
9725 (grub_dl_flush_cache): Flush whole space occupied by module, not just
9727 * grub-core/kern/ia64/dl.c (nopm): Make const while on it.
9729 * grub-core/kern/powerpc/dl.c (grub_arch_dl_get_tramp_got_size): New
9731 (trampoline): New struct.
9732 (trampoline_template): New const.
9733 (grub_arch_dl_relocate_symbols): Create trampolines on overflow.
9734 * include/grub/dl.h (grub_dl): Add sz element.
9735 [__powerpc__]: Follow __ia64__.
9736 (GRUB_ARCH_DL_TRAMP_ALIGN): Define on ppc.
9737 (GRUB_ARCH_DL_GOT_ALIGN): Likewise.
9738 (GRUB_ARCH_DL_TRAMP_SIZE): Likewise.
9739 (grub_arch_dl_get_tramp_got_size) [__powerpc__]: New proto.
9741 2011-11-06 Vladimir Serbinenko <phcoder@gmail.com>
9745 * Makefile.util.def (libgrubmods): Add grub-core/fs/zfs/zfscrypt.c.
9746 * grub-core/Makefile.core.def (zfscrypt): New module.
9747 * grub-core/fs/zfs/zfs.c (subvolume): New structure.
9748 (grub_zfs_data): Replace mdn with subvol. Put case_insensitivity inside
9749 it. All users updated.
9750 (grub_zfs_decrypt): New var.
9751 (grub_zfs_load_key): Likewise.
9752 (zio_checksum_functions): Add SHA256+MAC.
9753 (zio_checksum_verify): Handle incomplete comparison due to MAC.
9754 (zio_read): Handle encrypted blocks.
9755 (zap_verify): Remove incorrect check.
9756 (fzap_iterate): Handle non-standard fzap.
9757 (zap_iterate): Likewise.
9758 (zap_iterate_u64): New function.
9759 (dnode_get_fullpath): Load keys.
9760 * grub-core/fs/zfs/zfscrypt.c: New file.
9761 * grub-core/lib/crypto.c (grub_crypto_cipher_close): Removed.
9762 (grub_crypto_ecb_encrypt): Make input const.
9763 * include/grub/crypto.h (grub_crypto_cipher_close): Inline.
9764 (grub_crypto_ecb_encrypt): Make input const.
9765 (GRUB_CIPHER_AES): New macro.
9766 * include/grub/zfs/dmu.h (dmu_object_type): Add DMU_OT_DSL_KEYCHAIN.
9767 * include/grub/zfs/dsl_dir.h (dsl_dir_phys): Add keychain.
9768 * include/grub/zfs/spa.h (grub_zfs_endian): Moved from here ...
9769 * include/grub/zfs/zfs.h (grub_zfs_endian): ... here. Added GURB_ZFS_
9770 prefix. All users updated.
9771 (grub_zfs_add_key): New proto.
9772 (grub_zfs_decrypt): Likewise.
9773 (grub_zfs_load_key): Likewise.
9774 * include/grub/zfs/zio.h (zio_checksum): Add SHA256+MAC.
9775 * util/grub-fstest.c (options): Add -K option.
9776 (argp_parser): Likewise.
9778 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9780 Support zle compression on ZFS.
9782 * grub-core/fs/zfs/zfs.c (zle_decompress): New function.
9783 (decomp_table): Add zle.
9784 * include/grub/zfs/zio.h (zio_compress): Add zle.
9786 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9788 Support BtrFS embedding.
9790 * grub-core/fs/btrfs.c (grub_btrfs_embed) [GRUB_UTIL]: New function.
9791 (grub_btrfs_fs) [GRUB_UTIL]: Set embed.
9792 * include/grub/fs.h (grub_fs) [GRUB_UTIL]: New field embed.
9793 * util/grub-setup.c (setup): Use fs embedding if available.
9794 Add additional sanity check.
9796 2011-11-05 Vladimir Serbinenko <phcoder@gmail.com>
9798 * util/grub-install.in: Fix condition for config_opt.
9800 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9802 Support third redundancy strip on raidz3.
9804 * grub-core/fs/zfs/zfs.c (recovery): Add Gauss for general case.
9805 Return error on singularity. All users updated.
9806 (read_device): Don't stop on 3rd failure on raidz3.
9808 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9810 Support case-insensitive ZFS subvolumes.
9812 * grub-core/fs/zfs/zfs.c (mzap_lookup): New parameter case_insensitive.
9814 (zap_hash): Likewise.
9815 (name_cmp): New function.
9816 (zap_leaf_array_equal): New parameter case_insensitive.
9818 (zap_leaf_lookup): Likewise.
9819 (fzap_lookup): Likewise.
9820 (zap_lookup): Likewise.
9821 (dnode_get_path): New parameter case_insensitive. Retrieve case
9822 sensitiviness of a volume. All users updated.
9823 (dnode_get_fullpath): New parameter case_insensitive.
9825 (grub_zfs_dir): Set info.case_insensitiveness.
9827 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9829 Support second redundancy strip on raidz(2,3).
9831 * grub-core/fs/zfs/zfs.c (powx): New array.
9832 (powx_inv): Likewise.
9834 (xor_out): New function.
9836 (recovery): Likewise.
9837 (read_device): Use second redundancy strip.
9839 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9841 Use a power of generator representation of GF(256) multiplication group
9842 to save space time and complexity.
9844 * grub-core/disk/raid6_recover.c (raid6_table1): Removed.
9845 (raid6_table2): Likewise.
9847 (powx_inv): Likewise.
9849 (grub_raid_block_mul): Replace with ...
9850 (grub_raid_block_mulx): ...this.
9851 (grub_raid6_init_table): Rewritten.
9852 (grub_raid6_recover): Use power of generator representation.
9854 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9856 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Get start_sector
9857 for the right device.
9859 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9861 * include/grub/kernel.h (grub_module_header): Make type into uint32 as
9862 expected by grub-mkimage and it's more clear since there is no implicit
9865 2011-11-04 Vladimir Serbinenko <phcoder@gmail.com>
9867 * grub-core/disk/raid.c (scan_devices): Don't derference NULL on whole
9869 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
9871 2011-11-03 Philipp Matthias Hahn <pmhahn@debian.org>
9873 * util/grub-mkrescue.in: Fix handling xorriso option.
9875 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9877 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Exit if local is
9880 2011-11-03 crocket <crockabiscuit@gmail.com>
9882 * util/grub.d/10_linux.in: Add Slackware initrd naming.
9884 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9886 XZ CRC64 and SHA256 support.
9888 * Makefile.util.def (libgrubmods): Add crc64.c.
9889 * grub-core/Makefile.core.def (crc64): New module.
9890 * grub-core/lib/crc64.c: New file.
9891 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_hash)
9892 [!GRUB_EMBED_DECOMPRESSOR]: Rename crc32_context to hash_context.
9894 (MAX_HASH_SIZE): New define.
9895 (xz_dec) [!GRUB_EMBED_DECOMPRESSOR]: Add generic hash fields.
9896 (dec_block) [!GRUB_EMBED_DECOMPRESSOR]: Handle non-crc32 hashes.
9897 (index_update) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9898 (dec_index) [!GRUB_EMBED_DECOMPRESSOR]: Likewise.
9899 (crc32_validate) [!GRUB_EMBED_DECOMPRESSOR]: Rename to ...
9900 (hash_validate) [!GRUB_EMBED_DECOMPRESSOR]: ... this.
9901 Handle non-crc32 hashes.
9902 (hashes) [!GRUB_EMBED_DECOMPRESSOR]: New variable.
9903 (dec_stream_header): Handle non-crc32 hashes.
9904 (dec_stream_footer): Likewise.
9905 (dec_block_header): Likewise.
9906 (dec_main): Likewise.
9907 (xz_dec_init): Likewise.
9908 (xz_dec_reset): Likewise.
9909 (xz_dec_end): Likewise.
9910 * util/import_gcry.py: Add CRC64 line.
9912 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9914 * grub-core/fs/ufs.c (grub_ufs_mtime) [MODE_UFS2]: Check mtime field
9917 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9919 Make reiserfs label retrieval similar to other *_label functions.
9921 * grub-core/fs/reiserfs.c (grub_reiserfs_superblock): New field label.
9922 (REISERFS_MAX_LABEL_LENGTH): Removed.
9923 (REISERFS_LABEL_OFFSET): Likewise.
9924 (grub_reiserfs_label): Rewritten.
9926 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9928 * grub-core/fs/nilfs2.c (grub_nilfs2_mtime): Use correct superblock
9931 2011-11-03 Vladimir Serbinenko <phcoder@gmail.com>
9933 * grub-core/fs/zfs/zfs.c (read_device): Support raidz3.
9935 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9937 * grub-core/fs/zfs/zfs.c (read_device): Add ability to sustain a single
9938 drive failure on both raidz and raidz2.
9940 2011-11-02 Vladimir Serbinenko <phcoder@gmail.com>
9942 Fix RAIDZ(2) for >= 5 devices.
9944 * grub-core/fs/zfs/zfs.c (read_device): Fix length formula. Remove
9945 asize argument. All users updated.
9947 2011-11-01 Vladimir Serbinenko <phcoder@gmail.com>
9951 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New member ashift.
9952 (fill_vdev_info_real): Set ashift.
9953 (read_device): Rewrite RAIDZ part based on reverse engineering.
9955 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9957 * grub-core/fs/btrfs.c (grub_btrfs_extent_read): Add sanity check and
9958 don't report potentially unavialiable fields in debug output.
9959 (find_path): Fix double-free and memory leak.
9961 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9965 * grub-core/fs/ufs.c (grub_ufs_label): Remove MODE_UFS2 condition.
9966 (grub_ufs_fs): Always set .label.
9968 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9972 * grub-core/fs/ufs.c (UFS_LOG_BLKSZ): New macro.
9973 (grub_ufs_data): New field log2_blksz.
9974 (grub_ufs_read_file): Use shifts.
9975 (grub_ufs_mount): Check block size and logarithm it.
9977 2011-10-31 Vladimir Serbinenko <phcoder@gmail.com>
9979 * grub-core/fs/ufs.c (grub_ufs_lookup_symlink): Fix handling of
9982 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
9984 Handle symlinks and long names on tar and cpio.
9986 * grub-core/fs/cpio.c (ATTR_TYPE): New definition.
9987 (ATTR_FILE): Likewise.
9988 (ATTR_DIR): Likewise.
9989 (ATTR_LNK): Likewise.
9990 (grub_cpio_data) [MODE_USTAR]: New fields linkname and linkname_alloc.
9991 (grub_cpio_find_file): Fill mode, handle linkname field as well as
9993 (grub_cpio_mount): Zero-fill data.
9994 (handle_symlink): New function.
9995 (grub_cpio_dir): Handle symlinks.
9996 (grub_cpio_open): Likewise.
9997 (grub_cpio_close) [MODE_USTAR]: Free linkname.
9999 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10001 Fix iso9660 filename limitations and fix memory leaks.
10003 * grub-core/fs/iso9660.c (set_rockridge): Free sua at the end.
10004 (grub_iso9660_iterate_dir): Fix slash handling in symlinks.
10006 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10008 Fix JFS file name length limitations.
10010 * grub-core/fs/jfs.c (grub_jfs_inode): Fix in-place symlink length.
10011 (grub_jfs_diropen): Fix maximum filename length.
10012 (grub_jfs_getent): Fix filename length.
10013 (grub_jfs_lookup_symlink): Fix size checks.
10015 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10017 * grub-core/loader/mips/linux.c (loongson_machtypes): Fix fuloong type
10020 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10022 Leverage BFS implementation to read AFS.
10024 * Makefile.util.def (libgrubmods): Add afs.c.
10025 * grub-core/Makefile.core.def (afs): New module
10026 * grub-core/fs/afs.c: New file.
10027 * grub-core/fs/bfs.c [MODE_AFS]: Adapt for AFS.
10029 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10031 * grub-core/fs/bfs.c: Macroify and add some necessary sanity checks.
10033 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10035 * grub-core/fs/bfs.c: Run indent.
10037 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10039 BFS implementation based on the specification.
10041 * grub-core/fs/bfs.c: New file.
10042 * Makefile.util.def (libgrubmods): Add bfs.c.
10043 * grub-core/Makefile.core.def (bfs): New module.
10045 2011-10-30 Vladimir Serbinenko <phcoder@gmail.com>
10047 * util/grub-fstest.c (cmd_cp): Clarify error message.
10048 (cmd_cmp): Likewise.
10050 2011-10-30 Yves Blusseau <blusseau@zetam.org>
10052 * po/POTFILES.in: Regenerate because of the removal of afs, afs_be, befs
10055 2011-10-29 Vladimir Serbinenko <phcoder@gmail.com>
10057 Remove afs and befs because of copyright problem.
10059 * grub-core/fs/afs.c: Removed.
10060 * grub-core/fs/afs_be.c: Removed.
10061 * grub-core/fs/befs.c: Removed.
10062 * grub-core/fs/befs_be.c: Removed.
10063 * Makefile.util.def (libgrubkern): Remove afs, afs_be, befs and befs_be.
10064 * grub-core/Makefile.core.def (afs): Removed.
10065 (afs_be): Likewise.
10067 (befs_be): Likewise.
10069 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10071 Prefer rockridge over Joliet.
10073 * grub-core/fs/iso9660.c (grub_iso9660_mount): Move rockridge detection
10075 (set_rockridge): ... here.
10076 (grub_iso9660_mount): Check rockridge on the primary label when
10077 discovering. Ignore Joliet if Rockridge is present.
10079 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10081 Use shifts in nilfs2.
10083 * grub-core/fs/nilfs2.c (LOG_INODE_SIZE): New definition.
10084 (LOG_NILFS_DAT_ENTRY_SIZE): Likewise.
10085 (grub_nilfs2_palloc_entries_per_group): Replace with ...
10086 (grub_nilfs2_log_palloc_entries_per_group): ... this.
10087 (grub_nilfs2_palloc_group): Use shifts and bitmasks.
10088 (grub_nilfs2_entries_per_block): Replaced with ...
10089 (grub_nilfs2_log_entries_per_block_log): ... this.
10090 (grub_nilfs2_blocks_per_group): Replaced with ...
10091 (grub_nilfs2_blocks_per_group_log): ... this.
10092 (grub_nilfs2_blocks_per_desc_block): Replaced with ...
10093 (grub_nilfs2_blocks_per_desc_block_log): ... this.
10094 (grub_nilfs2_palloc_desc_block_offset): Replaced with ...
10095 (grub_nilfs2_palloc_desc_block_offset_log): ... this.
10096 (grub_nilfs2_palloc_entry_offset): Replaced ...
10097 (grub_nilfs2_palloc_entry_offset_log): ... this. Use shifts.
10098 (grub_nilfs2_dat_translate): Use shifts.
10099 (grub_nilfs2_read_inode): Likewise.
10100 (GRUB_MOD_INIT): Ensure that logs are correct.
10102 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10104 Use shifts in minix filesystem.
10106 * grub-core/fs/minix.c (GRUB_MINIX_ZONESZ): Use log_block_size.
10107 (GRUB_MINIX_ZONE2SECT): Likewise.
10108 (grub_minix_data): Replace block_size with log_block_size.
10109 (grub_minix_read_file): Use shifts.
10110 (grub_minix_mount): Check block size and take a logarithm.
10112 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10114 Use shifts in squash4.
10116 * grub-core/fs/squash4.c (grub_squash_data): New field log2_blksz.
10117 (squash_mount): Check block size and take logarithm.
10118 (direct_read): Use shifts.
10120 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10122 Correct befs block counting logic.
10124 * grub-core/fs/afs.c (GRUB_AFS_BLOCKS_PER_DI_RUN): Replaced with...
10125 (GRUB_AFS_LOG_BLOCKS_PER_DI_RUN): ... this.
10126 (GRUB_AFS_BLOCKRUN_LOG_SIZE): New definition.
10127 (grub_afs_read_inode): Use block_shift.
10128 (RANGE_SHIFT): New definition.
10129 (grub_afs_read_block): Account for RANGE_SHIFT, emit errors on
10130 unexpected conditions, use shifts and appropriate types.
10131 (GRUB_MOD_INIT): Check the value of GRUB_AFS_BLOCKRUN_LOG_SIZE.
10133 2011-10-28 Vladimir Serbinenko <phcoder@gmail.com>
10135 * grub-core/disk/raid.c (scan_devices): Check partition.
10136 * grub-core/disk/lvm.c (do_lvm_scan): Likewise.
10138 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10140 Support BFS (befs) UUID.
10142 * grub-core/fs/afs.c (grub_afs_inode): Make small_data zero-size.
10143 (grub_afs_small_data_element_header): New struct.
10144 (grub_afs_read_inode): Read complete inode. Fix ino type while on it.
10145 (grub_afs_read_attribute) [MODE_BFS]: New function.
10146 (grub_afs_iterate_dir): Allocate for complete inode.
10147 (grub_afs_mount): Likewise.
10148 (grub_afs_uuid) [MODE_BFS]: New function.
10149 (grub_afs_fs) [MODE_BFS]: Add .uuid.
10151 2011-10-27 Vladimir Serbinenko <phcoder@gmail.com>
10153 * grub-core/fs/zfs/zfs.c (read_device): Silence spurious warning.
10154 (zfs_unmount): Fix memory leak.
10156 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10158 Support NTFS reparse points.
10160 * grub-core/fs/ntfs.c (list_file): Set symlink type when appropriate.
10161 (symlink_descriptor): New struct.
10162 (grub_ntfs_read_symlink): New function.
10163 (grub_ntfs_iterate_dir): Use grub_ntfs_read_symlink.
10164 (grub_ntfs_open): Likewise.
10166 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10168 * include/grub/ntfs.h: Add GRUB_NTFS_ prefix. All users updated.
10170 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10172 fstest xnu_uuid subcommand.
10174 * grub-core/commands/xnu_uuid.c (libgrubkrn): Add
10175 grub-core/commands/xnu_uuid.c.
10176 * util/grub-fstest.c (CMD_XNU_UUID): New enum value.
10177 (fstest): Handle xnu_uuid.
10178 (options): Document xnu_uuid.
10179 (argp_parser): Parse xnu_uuid.
10181 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10183 * grub-core/commands/xnu_uuid.c (grub_cmd_xnu_uuid): Support
10184 -l argument. Add newline at the end if printing.
10185 (GRUB_MOD_INIT): Document -l.
10187 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10189 * grub-core/fs/nilfs2.c (grub_nilfs2_uuid): Add missing field length.
10191 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10193 ZFS multi-device and version 33 support.
10195 * Makefile.util.def (libgrubkern): Add grub-core/fs/zfs/zfsinfo.c.
10196 * grub-core/fs/zfs/zfs.c (grub_zfs_device_desc): New struct.
10197 (grub_zfs_data): Add multidev-ice-related fields.
10198 (zio_checksum_verify): Zero-pad printed values. Print checksum name.
10199 (dva_get_offset): Make dva const.
10200 (zfs_fetch_nvlist): New function.
10201 (fill_vdev_info_real): Likewise.
10202 (fill_vdev_info): Likewise.
10203 (check_pool_label): Likewise.
10204 (scan_disk): Likewise.
10205 (scan_devices): Likewise.
10206 (read_device): Likewise.
10207 (read_dva): Likewise.
10208 (zio_read_gang): Use read_dva.
10209 (zio_read_data): Likewise.
10210 (zap_leaf_lookup): Add missing endian conversion.
10211 (zap_verify): Add missing endian conversion. All users updated.
10212 (fzap_lookup): Likewise.
10213 (fzap_iterate): Likewise.
10214 (dnode_get_path): Handle SA bonus.
10215 (nvlist_find_value): Make input const. All users updated.
10216 (unmount_device): New function.
10217 (zfs_unmount): Use unmount_device.
10218 (zfs_mount): Use scan_disk.
10219 (zfs_mtime): New function.
10220 (grub_zfs_open): Handle system attributes.
10221 (fill_fs_info): Likewise.
10222 (grub_zfs_dir): Likewise.
10223 (grub_zfs_fs): Add mtime.
10224 * grub-core/fs/zfs/zfsinfo.c (print_vdev_info): Add missing return.
10225 * include/grub/zfs/sa_impl.h (SA_TYPE_OFFSET): New definition.
10226 (SA_MTIME_OFFSET): Likewise.
10227 (SA_SYMLINK_OFFSET): Likewise.
10228 * include/grub/zfs/zfs.h (SPA_VERSION): Increase to 33.
10229 * util/grub-fstest.c (CMD_ZFSINFO): New enum value.
10230 (fstest): Support zfsinfo.
10231 (argp_parser): Likewise.
10233 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10235 * include/grub/datetime.h (grub_datetime2unixtime): Fix off-by-one
10238 2011-10-26 Vladimir Serbinenko <phcoder@gmail.com>
10242 * grub-core/fs/zfs/zfs.c (fzap_iterate): Fix handling of indexes
10243 sharing the same block. Iterate over correct number of indices.
10244 (dnode_get_path): Handle symlinks correctly.
10246 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10248 * grub-core/fs/jfs.c (grub_jfs_sblock): Fix offset to volname.
10250 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10252 Read label on HFS+.
10254 * grub-core/fs/hfsplus.c (grub_hfsplus_cmp_catkey_id): New function.
10255 (grub_hfsplus_btree_search): Fix types.
10256 (grub_hfsplus_label): Implement.
10258 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10260 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Fix a memory leak.
10262 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10264 * grub-core/fs/fat.c (grub_fat_uuid): Make uppercase to match Linux.
10266 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10268 Fix symlink handling on iso9660.
10270 * grub-core/fs/iso9660.c (grub_fshelp_node): Remove dir_off. Add symlink
10272 (grub_iso9660_susp_iterate): Accept zero-size iterate.
10273 (grub_iso9660_read_symlink): Moved most of code ...
10274 (grub_iso9660_iterate_dir): ... here. Fill node->symlink.
10276 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10278 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10279 Use union to avoid breaking strict-aliasing rules.
10281 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10283 Support multi-extent iso files.
10285 * grub-core/fs/iso9660.c (grub_iso9660_data): Remove first_sector.
10287 (grub_fshelp_node): Revamp. All users updated.
10288 (FLAG_*): New enum.
10289 (read_node): New function.
10290 (grub_iso9660_susp_iterate): Use read_node. Receive a node as argument.
10292 (grub_iso9660_mount): Don't attempt to read sua when there is none.
10293 (get_node_size): New function.
10294 (grub_iso9660_iterate_dir): Use read_node. Agglomerate multi-extent
10296 Fix memory leak on . and ..
10297 (grub_iso9660_read): Use read_node.
10298 (grub_iso9660_close): Free node.
10300 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10302 Fix tar 4G limit and handle paths containing dot.
10304 * grub-core/fs/cpio.c (grub_cpio_data): Use grub_off_t for offsets.
10305 (canonicalize): New function.
10306 (grub_cpio_find_file): Use canonicalize. Store offs in
10308 (grub_cpio_dir): Use grub_disk_addr_t.
10309 (grub_cpio_open): Likewise.
10311 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10313 Fix handling of uncompressed blocks on squashfs and break 4G limit.
10315 * grub-core/fs/squash4.c (grub_squash_super): Add block_size. Remove
10317 (grub_squash_inode): Add long_file and block_size.
10318 (grub_squash_cache_inode): New struct.
10319 (grub_squash_dirent): Make types into enum.
10320 (SQUASH_TYPE_LONG_REGULAR): New type.
10321 (grub_squash_frag_desc): Add field size.
10322 (SQUASH_BLOCK_FLAGS): New enum.
10323 (grub_squash_data): Use grub_squash_cache_inode.
10324 (grub_fshelp_node): Make ino_chunk 64-bit.
10325 (read_chunk): Minor argument change. All users updated.
10326 (squash_mount): Use correct le_to_cpu.
10327 (grub_squash_open): Handle LONG_REGULAR.
10328 (direct_read): New function.
10329 (grub_squash_read_data): Handle blocks correctly.
10331 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10333 * grub-core/kern/disk.c (grub_disk_read_small): Fix memory leak.
10335 2011-10-25 Vladimir Serbinenko <phcoder@gmail.com>
10337 * grub-core/fs/romfs.c (grub_romfs_open): Add missing return.
10339 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10341 Fix 2G limit on ZFS.
10343 * grub-core/fs/zfs/zfs.c (zio_checksum_verify): Use more appropriate
10345 (uberblock_verify): Likewise.
10346 (dmu_read): Likewise.
10347 (grub_zfs_read): Likewise. Remove invalid cast.
10349 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10351 * grub-core/fs/jfs.c (grub_jfs_blkno): Use more appropriate types.
10352 (grub_jfs_blkno): Fix incorrect shift.
10353 (grub_jfs_read_file): Use more appropriate types.
10355 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10357 Support triple indirect on minix2 and minix3.
10359 * grub-core/fs/minix.c (grub_minix_inode) [MODE_MINIX2 || MODE_MINIX3]:
10360 Declare triple_indir_zone.
10361 (grub_minix_get_file_block) [MODE_MINIX2 || MODE_MINIX3]: Handle triple
10364 2011-10-24 Vladimir Serbinenko <phcoder@gmail.com>
10368 * grub-core/fs/minix.c (GRUB_MINIX_INODE_SIZE): Size is always 32-bit.
10369 (grub_minix_inode) [!MODE_MINIX2 && !MODE_MINIX3]: Make size 32-bit.
10370 Rename ctime to mtime. All users updated.
10371 (grub_minix_get_file_block): Fix types and double indirect computations.
10373 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10375 * grub-core/fs/fat.c (grub_fat_label) [MODE_EXFAT]: Set *label to 0
10376 if no label is found.
10377 (grub_fat_iterate_dir): Fix file size type.
10378 (grub_fat_iterate_dir): Likewise.
10380 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10382 * grub-core/lib/reed_solomon.c (gf_invert): Declare as const and
10384 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
10385 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
10387 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10389 * util/import_gcry.py: Automatically fix camellia.c and camellia.h.
10391 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10393 * util/import_gcry.py: Accept space between # and include.
10395 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10397 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/longjmp.S.
10399 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10401 Fine grainely disable warnings on lexer. Remove Wno-error on it.
10403 * grub-core/Makefile.core.def (normal): Remove -Wno-error.
10404 * grub-core/script/lexer.c: Declare yytext_ptr to avoid having
10406 * grub-core/script/yylex.l: Add fine-grained #pragma.
10408 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10410 * grub-core/lib/posix_wrap/string.h (memcpy) [GRUB_UTIL]:
10411 New inline function.
10412 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (memcpy) [GRUB_UTIL]:
10414 (memset) [GRUB_UTIL]: Likewise.
10415 (memcmp) [GRUB_UTIL]: Likewise.
10417 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10419 * include/grub/misc.h (grub_memcpy): Declare grub_memcpy with static
10420 inline function rather than a define.
10422 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10424 * util/grub-setup.c: Add missing include.
10426 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10428 * util/ieee1275/grub-ofpathname.c: Add missing include.
10430 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10432 * grub-core/kern/i386/pc/startup.S (grub_exit): Add missing zeroing-out.
10433 * grub-core/lib/i386/reboot_trampoline.S (grub_reboot_start):
10436 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10438 * grub-core/io/lzopio.c (test_header): Fix incorrect memcmp instead of
10441 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10443 * util/grub-install.in: Add datarootdir as per automake manual
10445 * util/grub-mknetdir.in: Likewise.
10447 2011-10-23 Vladimir Serbinenko <phcoder@gmail.com>
10449 * util/grub.d/10_hurd.in: Add datarootdir as per automake manual
10451 * util/grub.d/10_kfreebsd.in: Likewise.
10452 * util/grub.d/10_linux.in: Likewise.
10453 * util/grub.d/10_netbsd.in: Likewise.
10454 * util/grub.d/10_windows.in: Likewise.
10455 * util/grub.d/20_linux_xen.in: Likewise.
10457 2011-10-20 Vladimir Serbinenko <phcoder@gmail.com>
10459 Remove redundant grub_kernel_image_size.
10461 * grub-core/kern/i386/coreboot/init.c (grub_machine_init): Use
10463 * grub-core/kern/i386/coreboot/startup.S: Move multiboot header after
10464 the small code. It moves it only by few bytes but simplifies the code.
10465 * grub-core/kern/i386/pc/init.c (grub_machine_init): Use _edata and
10467 * grub-core/kern/i386/pc/startup.S: Use _edata and _start.
10468 (grub_kernel_image_size): Removed.
10469 * grub-core/kern/i386/qemu/startup.S: Use _edata and _start.
10470 (grub_kernel_image_size): Removed.
10471 [APPLE_CC]: Remove apple compiler support. i386-qemu port can't be
10472 compiled with Apple toolchain.
10473 * grub-core/kern/sparc64/ieee1275/crt0.S: Remove leftover fields.
10474 * include/grub/i386/pc/kernel.h (grub_kernel_image_size): Removed.
10475 * include/grub/i386/qemu/kernel.h (grub_kernel_image_size): Removed.
10476 (grub_total_module_size): Likewise.
10477 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_KERNEL_IMAGE_SIZE):
10479 (GRUB_KERNEL_I386_PC_COMPRESSED_SIZE): Put it lower.
10480 (GRUB_KERNEL_I386_PC_INSTALL_DOS_PART): Likewise.
10481 (GRUB_KERNEL_I386_PC_INSTALL_BSD_PART): Likewise.
10482 (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY): Likewise.
10483 (GRUB_KERNEL_I386_QEMU_KERNEL_IMAGE_SIZE): Removed.
10484 (GRUB_KERNEL_SPARC64_IEEE1275_KERNEL_IMAGE_SIZE): Likewise.
10485 (GRUB_KERNEL_SPARC64_IEEE1275_COMPRESSED_SIZE): Likewise.
10486 * include/grub/sparc64/ieee1275/kernel.h (grub_kernel_image_size):
10488 (grub_total_module_size): Removed.
10489 * util/grub-mkimage.c (image_target_desc): Remove image_size.
10490 (image_targets): Likewise.
10491 Set .compressed_size to no field on sparc.
10492 (generate_image): Remove kernel_image_size handling.
10494 2011-10-19 Szymon Janc <szymon@janc.net.pl>
10496 * grub-core/bus/usb/uhci.c (grub_uhci_setup_transfer): Fix possible
10497 NULL pointer dereference.
10499 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10501 Removed unused GRUB_BOOT_VERSION. Check for kernel version is better
10502 done with a dedicated section.
10504 * grub-core/boot/sparc64/ieee1275/boot.S: Remove GRUB_BOOT_VERSION.
10505 Ensure the correct position of boot_path.
10506 * grub-core/kern/i386/efi/startup.S: Remove GRUB_BOOT_VERSION.
10507 * grub-core/kern/i386/pc/startup.S: Likewise. Ensure correct position of
10509 * grub-core/kern/x86_64/efi/startup.S: Remove GRUB_BOOT_VERSION.
10510 * include/grub/boot.h: Removed. All references removed.
10511 * include/grub/sparc64/ieee1275/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
10513 (GRUB_BOOT_MACHINE_BOOT_DEVPATH): Make it lower.
10515 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10517 * util/grub-install.in: Declare IEEE1275 as able to find out the disk
10520 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10522 * grub-core/kern/main.c (grub_set_prefix_and_root): Init prefix.
10524 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10526 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_encode_devname):
10527 Don't add the bogus brackets.
10529 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10533 * Makefile.util.def (libgrubmods.a): Add grub-core/fs/exfat.c.
10534 * grub-core/Makefile.core.def (exfat): New module.
10535 * grub-core/fs/exfat.c: New file.
10536 * grub-core/fs/fat.c (GRUB_FAT_DIR_ENTRY_SIZE): Removed.
10537 (GRUB_FAT_ATTR_*): Make into an enum.
10538 (GRUB_FAT_ATTR_LONG_NAME) [MODE_EXFAT]: Removed.
10539 (GRUB_FAT_ATTR_VALID) [MODE_EXFAT]: Remove GRUB_FAT_ATTR_VOLUME_ID.
10540 (GRUB_FAT_ATTR_VOLUME_ID) [MODE_EXFAT]: Removed.
10541 (GRUB_FAT_MAXFILE): Removed.
10542 (grub_exfat_bpb) [MODE_EXFAT]: New struct.
10543 (grub_current_fat_bpb_t): New type.
10544 (grub_fat_dir_entry) [MODE_EXFAT]: New struct.
10545 (grub_fat_dir_node) [MODE_EXFAT]: New struct.
10546 (grub_fat_dir_node_t): New type.
10547 (grub_fat_data) [MODE_EXFAT]: Remove root_sector and num_root_sectors.
10548 (fat_log2) [MODE_EXFAT]: Removed.
10549 (grub_fat_mount): Use grub_current_fat_bpb_t. Add some sanity checks.
10550 (grub_fat_mount) [MODE_EXFAT]: Handle ExFAT.
10551 (grub_fat_iterate_dir) [MODE_EXFAT]: New function.
10552 (grub_fat_find_dir) [MODE_EXFAT]: Handle ExFAT.
10553 (grub_fat_label) [MODE_EXFAT]: New function.
10554 (grub_fat_fs) [MODE_EXFAT]: Set name to "exfat" and
10555 reserved_first_sector to 0.
10557 2011-10-19 Vladimir Serbinenko <phcoder@gmail.com>
10559 Move grub_reboot out of the kernel.
10561 * grub-core/Makefile.core.def (reboot): Add platform-specific files.
10562 * grub-core/kern/efi/efi.c (grub_reboot): Moved to ...
10563 * grub-core/lib/efi/reboot.c: ... here.
10564 * grub-core/kern/i386/efi/startup.S: Remove including of realmode.S.
10565 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
10566 * grub-core/kern/i386/pc/startup.S (grub_exit): Inline cold_reboot.
10567 * grub-core/kern/i386/realmode.S (grub_reboot): Moved to...
10568 * grub-core/lib/i386/reboot_trampoline.S: ... here.
10569 * grub-core/kern/ieee1275/openfw.c (grub_reboot): Moved to...
10570 * grub-core/lib/ieee1275/reboot.c: ... here.
10571 * grub-core/kern/mips/arc/init.c (grub_reboot): Moved to...
10572 * grub-core/lib/mips/arc/reboot.c: ... here.
10573 * grub-core/kern/mips/loongson/init.c (grub_reboot): Moved to...
10574 * grub-core/lib/mips/loongson/reboot.c: ...here.
10575 * grub-core/kern/mips/qemu_mips/init.c (grub_reboot): Moved to...
10576 * grub-core/lib/mips/qemu_mips/reboot.c: ... here.
10577 * include/grub/emu/misc.h (grub_reboot): New function declaration.
10578 * include/grub/i386/reboot.h: New file.
10579 * include/grub/mips/loongson/ec.h: Fix includes.
10580 * include/grub/mips/qemu_mips/kernel.h (grub_reboot): Removed.
10581 * include/grub/misc.h (grub_reboot): Don't mark as kernel function.
10582 * grub-core/lib/i386/reboot.c: New file.
10584 2011-10-18 Vladimir Serbinenko <phcoder@gmail.com>
10586 Make grub_prefix into module to fix the arbitrary limit and save
10589 * grub-core/kern/emu/main.c (grub_prefix): Removed.
10590 * grub-core/kern/i386/coreboot/startup.S (grub_prefix): Likewise.
10591 * grub-core/kern/i386/efi/startup.S (grub_prefix): Likewise.
10592 * grub-core/kern/i386/ieee1275/startup.S (grub_prefix): Likewise.
10593 * grub-core/kern/i386/pc/startup.S (grub_prefix): Likewise.
10594 * grub-core/kern/i386/qemu/startup.S (grub_prefix): Likewise.
10595 * grub-core/kern/ia64/efi/startup.S (grub_prefix): Likewise.
10596 * grub-core/kern/mips/startup.S (grub_prefix): Likewise.
10597 * grub-core/kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
10598 * grub-core/kern/sparc64/ieee1275/crt0.S (grub_prefix): Likewise.
10599 * grub-core/kern/x86_64/efi/startup.S (grub_prefix): Likewise.
10600 * include/grub/ia64/efi/kernel.h: Removed.
10601 * include/grub/kernel.h: New module type OBJ_TYPE_PREFIX.
10602 (grub_prefix): Removed.
10603 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_PREFIX): Removed.
10604 (GRUB_KERNEL_I386_PC_PREFIX_END): Likewise.
10605 (GRUB_KERNEL_I386_QEMU_PREFIX): Likewise.
10606 (GRUB_KERNEL_I386_QEMU_PREFIX_END): Likewise.
10607 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX): Likewise.
10608 (GRUB_KERNEL_SPARC64_IEEE1275_PREFIX_END): Likewise.
10609 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX): Likewise.
10610 (GRUB_KERNEL_POWERPC_IEEE1275_PREFIX_END): Likewise.
10611 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX): Likewise.
10612 (GRUB_KERNEL_MIPS_LOONGSON_PREFIX_END): Likewise.
10613 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
10614 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
10615 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
10616 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
10617 (GRUB_KERNEL_I386_EFI_PREFIX): Likewise.
10618 (GRUB_KERNEL_I386_EFI_PREFIX_END): Likewise.
10619 (GRUB_KERNEL_IA64_EFI_PREFIX): Likewise.
10620 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
10621 (GRUB_KERNEL_X86_64_EFI_PREFIX): Likewise.
10622 (GRUB_KERNEL_X86_64_EFI_PREFIX_END): Likewise.
10623 (GRUB_KERNEL_I386_COREBOOT_PREFIX): Likewise.
10624 (GRUB_KERNEL_I386_COREBOOT_PREFIX_END): Likewise.
10625 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX): Likewise.
10626 (GRUB_KERNEL_I386_MULTIBOOT_PREFIX_END): Likewise.
10627 (GRUB_KERNEL_I386_IEEE1275_PREFIX): Likewise.
10628 (GRUB_KERNEL_I386_IEEE1275_PREFIX_END): Likewise.
10629 (GRUB_KERNEL_MACHINE_PREFIX): Likewise.
10630 (GRUB_KERNEL_MACHINE_PREFIX_END): Likewise.
10631 * grub-core/kern/main.c (grub_set_prefix_and_root): Retrieve grub_prefix
10633 * util/grub-mkimage.c (image_target_desc): Removed prefix and
10635 (image_targets): Likewise.
10636 (generate_image): Put prefix as a module.
10638 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10640 Replace grub_module_iterate with FOR_MODULES.
10642 * grub-core/disk/memdisk.c (GRUB_MOD_INIT): Switched to new interface.
10643 * grub-core/kern/efi/efi.c (grub_arch_modules_addr): Renamed to...
10644 (grub_efi_modules_addr): ...this.
10645 * grub-core/kern/efi/init.c (grub_modbase): New variable.
10646 (grub_efi_init): Set grub_modbase.
10647 * grub-core/kern/emu/main.c (grub_arch_modules_addr): Removed.
10648 (grub_modbase): New variable.
10649 * grub-core/kern/i386/coreboot/init.c (grub_arch_modules_addr): Removed.
10650 (grub_modbase): New variable.
10651 (grub_machine_init): Set grub_modbase.
10652 * grub-core/kern/i386/pc/init.c (grub_arch_modules_addr): Removed.
10653 (grub_modbase): New variable.
10654 (grub_machine_init): Set grub_modbase.
10655 * grub-core/kern/ieee1275/init.c (grub_arch_modules_addr): Removed.
10656 (grub_modbase): New variable.
10657 (grub_machine_init): Set grub_modbase.
10658 * grub-core/kern/main.c (grub_module_iterate): Remove.
10659 (grub_modules_get_end): Use grub_modbase.
10660 (grub_load_modules): Use FOR_MODULES.
10661 (grub_load_config): Likewise.
10662 * grub-core/kern/mips/arc/init.c (grub_arch_modules_addr): Removed.
10663 (grub_modbase): New variable.
10664 (grub_machine_init): Set grub_modbase.
10665 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): Removed.
10666 (grub_modbase): New variable.
10667 (grub_machine_init): Set grub_modbase.
10668 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr):
10670 (grub_modbase): New variable.
10671 (grub_machine_init): Set grub_modbase.
10672 * include/grub/efi/efi.h (grub_efi_modules_addr): New declaration.
10673 * include/grub/kernel.h (grub_arch_modules_addr): Removed.
10674 (grub_module_iterate): Likewise.
10675 (grub_modbase): New variable declaration.
10676 (FOR_MODULES): New macro.
10678 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10680 * configure.ac: Check for __ctzdi2 and __ctzsi2.
10681 * include/grub/libgcc.h: Include __ctzdi2 and __ctzsi2 if present.
10683 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10685 Fix few obvious type discrepancies.
10687 * grub-core/fs/affs.c (grub_affs_read_file): Use grub_off_t for offset.
10688 * grub-core/fs/afs.c (grub_afs_read_file): Likewise.
10689 * grub-core/fs/fshelp.c (grub_fshelp_find_file): Remove leftover
10691 * grub-core/fs/hfs.c (grub_hfs_read_file): Use grub_off_t for offset
10692 and connected types.
10693 * grub-core/fs/nilfs2.c (grub_nilfs2_read_file): Use grub_off_t for
10695 (grub_nilfs2_iterate_dir): Use grub_off_t for fpos.
10696 * grub-core/fs/sfs.c (grub_sfs_read_file): Use grub_off_t for offset.
10697 * grub-core/fs/ufs.c (grub_ufs_read_file): Use grub_off_t for offset
10698 and connected types.
10700 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10702 Fix python 3.x incompatibilities.
10704 * gentpl.py: Put brackets around print strings.
10705 * util/import_gcry.py: Open explicitly as utf-8.
10706 Use in instead of has_key.
10708 2011-10-16 Vladimir Serbinenko <phcoder@gmail.com>
10710 * grub-core/fs/xfs.c (grub_xfs_inode): New field fork_offset.
10711 (GRUB_XFS_INO_AGBITS): Make into inline function.
10712 (GRUB_XFS_INO_INOINAG): Likewise.
10713 (GRUB_XFS_INO_AG): Likewise.
10714 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
10715 (GRUB_XFS_EXTENT_OFFSET): Likewise.
10716 (GRUB_XFS_EXTENT_BLOCK): Likewise.
10717 (GRUB_XFS_EXTENT_SIZE): Likewise.
10718 (GRUB_XFS_ROUND_TO_DIRENT): Likewise.
10719 (GRUB_XFS_NEXT_DIRENT): Likewise.
10720 (grub_xfs_read_block): Rewrite the btree parsing. Fixes invalid BMAP.
10721 (grub_xfs_read_file): Fix offset type.
10723 2011-10-15 Robert Millan <rmh@gnu.org>
10725 * util/getroot.c (grub_util_get_grub_dev): Fix OS selection #ifdefs.
10727 2011-10-15 Robert Millan <rmh@gnu.org>
10729 Fix build problem on FreeBSD and GNU/kFreeBSD.
10731 * util/getroot.c [__FreeBSD_kernel__]: Include `<sys/mount.h>'.
10733 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10735 Fix overflow with >2GiB file on HFS+. >4GiB wasn't tested.
10737 * grub-core/fs/hfsplus.c (grub_hfsplus_btree): Use more appropriate
10739 (grub_hfsplus_btree_recoffset): Likewise.
10740 (grub_hfsplus_btree_recptr): Likewise.
10741 (grub_hfsplus_find_block): Likewise.
10742 (grub_hfsplus_btree_search): Likewise.
10743 (grub_hfsplus_read_block): Likewise.
10744 (grub_hfsplus_read_file): Likewise.
10745 (grub_hfsplus_mount): Likewise.
10746 (grub_hfsplus_btree_iterate_node): Likewise.
10747 (grub_hfsplus_btree_search): Likewise.
10748 (grub_hfsplus_iterate_dir): Likewise.
10749 (grub_hfsplus_read): A small code simplification.
10751 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10753 * grub-core/kern/emu/hostdisk.c
10754 (convert_system_partition_to_system_disk): Don't assume that children
10755 of mapper nodes are mapper nodes.
10757 2011-10-14 Vladimir Serbinenko <phcoder@gmail.com>
10759 * grub-core/lib/posix_wrap/ctype.h (isxdigit): Use grub_isxdigit.
10760 * include/grub/misc.h (grub_isxdigit): New function.
10761 * grub-core/video/colors.c (my_isxdigit): Removed. All users
10762 switched to grub_isxdigit.
10763 * grub-core/term/serial.c (grub_serial_find): Fix in case of port
10764 number starting with a letter.
10766 2011-10-09 Robert Millan <rmh@gnu.org>
10768 LVM support for FreeBSD and GNU/kFreeBSD.
10770 * util/lvm.c (grub_util_lvm_isvolume): Enable on FreeBSD and
10772 (LVM_DEV_MAPPER_STRING): Move from here ...
10773 * include/grub/util/lvm.h (LVM_DEV_MAPPER_STRING): ... to here.
10774 * util/getroot.c: Include `<grub/util/lvm.h>'.
10775 (grub_util_get_dev_abstraction): Enable
10776 grub_util_biosdisk_is_present() on FreeBSD and GNU/kFreeBSD.
10777 Check for LVM abstraction on FreeBSD and GNU/kFreeBSD.
10778 (grub_util_get_grub_dev): Replace "/dev/mapper/" with
10779 `LVM_DEV_MAPPER_STRING'. Enable LVM and mdRAID only on platforms that
10781 * util/grub-setup.c (main): Check for LVM also on FreeBSD and
10783 * util/grub.d/10_kfreebsd.in: Load `geom_linux_lvm' kernel module
10784 when LVM abstraction is required for ${GRUB_DEVICE}.
10786 2011-10-06 Szymon Janc <szymon@janc.net.pl>
10788 Add support for LZO compression in GRUB:
10789 - import of minilzo library,
10790 - LZO decompression for btrfs,
10791 - lzop files decompression.
10793 * grub-core/io/lzopio.c: New file.
10794 * grub-core/lib/adler32.c: Likewise.
10795 * grub-core/lib/minilzo/lzoconf.h: Likewise.
10796 * grub-core/lib/minilzo/lzodefs.h: Likewise.
10797 * grub-core/lib/minilzo/minilzo.c: Likewise.
10798 * grub-core/lib/minilzo/minilzo.h: Likewise.
10799 * Makefile.util.def (libgrubmods.a): Add grub-core/io/lzopio.c,
10800 grub-core/lib/adler32.c, grub-core/io/lzopio.c,
10801 grub-core/lib/minilzo/minilzo.c to common.
10802 * Makefile.util.def (libgrubmods.a): Add flags required by minilzo to
10803 cflags in cppflags.
10804 * grub-core/Makefile.core.def (btrfs): Likewise.
10805 * grub-core/Makefile.core.def (lzopio): New module.
10806 (adler32): Likewise.
10807 * grub-core/fs/btrfs.c: Include minilzo.h.
10808 (GRUB_BTRFS_COMPRESSION_LZO): New define.
10809 (GRUB_BTRFS_LZO_BLOCK_SIZE): Likewise.
10810 (GRUB_BTRFS_LZO_BLOCK_MAX_CSIZE): Likewise.
10811 (grub_btrfs_lzo_decompress): New function.
10812 (grub_btrfs_extent_read): Add support for LZO compression type.
10813 * include/grub/types.h (GRUB_UCHAR_MAX): New define.
10814 (GRUB_USHRT_MAX): Likewise.
10815 (GRUB_UINT_MAX): Likewise.
10816 * grub-core/lib/posix_wrap/limits.h (USHRT_MAX): Likewise.
10817 (UINT_MAX): Likewise.
10818 (CHAR_BIT): Likewise.
10819 * grub-core/lib/posix_wrap/sys/types.h (ULONG_MAX): Moved to
10820 grub-core/lib/posix_wrap/limits.h
10821 (UCHAR_MAX): Likewise.
10822 * include/grub/file.h (grub_file_filter_id): New compression filter
10823 GRUB_FILE_FILTER_LZOPIO.
10824 * include/grub/file.h (grub_file_filter_id): Set
10825 GRUB_FILE_FILTER_LZOPIO as GRUB_FILE_FILTER_COMPRESSION_LAST.
10826 * include/grub/types.h (grub_get_unaligned16): New function.
10827 (grub_get_unaligned32): Likewise.
10828 (grub_get_unaligned64): Likewise.
10829 * util/import_gcry.py (cryptolist): Add adler32.
10831 2011-10-05 Vladimir Serbinenko <phcoder@gmail.com>
10833 * grub-core/Makefile.core.def: Eliminate rarely used emu_condition. This
10834 in perspective decreases the complexity of build system and fixes
10835 compilation right now.
10837 2011-10-01 Ales Nesrsta <starous@volny.cz>
10839 * grub-core/bus/usb/uhci.c: Changes made by Rock Cui - thanks!
10840 (fixed problem related to using UHCI with coreboot).
10842 2011-08-25 BVK Chaitanya <bvk.groups@gmail.com>
10844 * gentpl.py: Use Autogen macros so that the output template file
10845 (Makefile.tpl) size is reduced.
10847 2011-09-29 Mads Kiilerich <mads@kiilerich.com>
10849 * grub-core/Makefile.core.def (kernel): Add kern/i386/int.S to
10852 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10854 * util/misc.c (grub_util_get_disk_size) [__MINGW32__]: Strip trailing
10855 slashes on PHYSICALDRIVE%d paths when making Windows CreateFile calls.
10857 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10859 * grub-core/kern/emu/misc.c (canonicalize_file_name) [__MINGW32__]: Use
10862 2011-09-29 Mario Limonciello <mario_limonciello@dell.com>
10864 Remove extra declaration of sleep for mingw32.
10866 * util/misc.c (sleep) [__MINGW32__]: Removed.
10867 * include/grub/util/misc.h (sleep) [__MINGW32__]: Likewise.
10869 2011-09-28 Grégoire Sutre <gregoire.sutre@gmail.com>
10871 * include/grub/bsdlabel.h (grub_partition_bsd_disk_label): Add fields
10873 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK):
10875 (NETBSD_BTINFO_BOOTWEDGE): New definition.
10876 (grub_netbsd_btinfo_bootwedge): New struct.
10877 * grub-core/loader/i386/bsd.c (grub_netbsd_add_boot_disk_and_wedge):
10879 (grub_cmd_netbsd): Call grub_netbsd_add_boot_disk_and_wedge.
10881 2011-09-28 Thomas Haller <thomas.haller@fen-net.de>
10883 * grub-core/loader/multiboot_elfxx.c (Elf_Shdr): Set according to
10886 2011-09-28 Andreas Born <futur.andy@googlemail.com>
10888 Fix incorrect identifiers in bash-completion.
10890 * util/bash-completion.d/grub-completion.bash.in
10891 (_grub_mkpasswd-pbkdf2): Rename to ...
10892 (_grub_mkpasswd_pbkdf2): ... this. All users updated.
10893 (_grub_script-check): Rename to ...
10894 (_grub_script_check): ... this. All users updated.
10896 2011-09-28 Vladimir Serbinenko <phcoder@gmail.com>
10898 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy):
10899 Return 0 if disk isn't biosdisk.
10901 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10903 * Makefile.util.def (grub-mkrelpath): Add LIBUTIL for getrawpartition(3)
10905 * Makefile.util.def (grub-fstest): Likewise.
10907 2011-09-17 Grégoire Sutre <gregoire.sutre@gmail.com>
10909 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors) [__NetBSD__]:
10910 Get sector size from disk label.
10912 2011-09-05 Colin Watson <cjwatson@ubuntu.com>
10914 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Return 1 for
10915 */README* as well as README*.
10916 Reported by: Axel Beckert.
10918 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10920 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Handle the
10921 case of less than 256 MiB of RAM.
10923 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10925 * grub-core/commands/wildcard.c (make_regex): Handle @.
10927 2011-08-23 Vladimir Serbinenko <phcoder@gmail.com>
10929 * util/grub-install.in: Move cryptodisk logic to appropriate place.
10931 2011-08-21 Szymon Janc <szymon@janc.net.pl>
10933 * acinclude.m4: Use AC_LANG_PROGRAM macro to generate source code for
10934 AC_LANG_CONFTEST macros.
10936 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10938 Add grub-fstest option to uncompress data for commands.
10940 * util/grub-fstest.c (uncompress): New var.
10941 (options): New option -u.
10943 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10945 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Add
10946 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E to switch case statement.
10948 2011-08-20 Szymon Janc <szymon@janc.net.pl>
10950 * grub-core/io/gzio.c (grub_gzio_open): Always return original io if
10951 file type was not recognized correctly (not gzip or corrupted).
10953 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10955 * grub-core/kern/mips/loongson/init.c (grub_reboot): Reboot Fuloong.
10956 * include/grub/cs5536.h (GRUB_CS5536_MSR_DIVIL_RESET): New definition.
10958 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10960 * grub-core/Makefile.core.def (kernel): Add video/radeon_fuloong2e.c on
10962 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
10963 video_radeon_fuloong2e.
10964 * grub-core/video/radeon_fuloong2e.c: New file.
10965 * include/grub/video.h (grub_video_id_t): Add new ID
10966 GRUB_VIDEO_DRIVER_RADEON_FULOONG2E.
10968 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10970 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_COP0_PRID): New
10972 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Check
10973 that PRID matches the detected subplatform and reset the subplatform
10976 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10978 * grub-core/kern/misc.c (grub_vprintf): Fix a bug on malloc failure.
10980 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10982 Fix PCI iterating on functions >= 4.
10984 * grub-core/bus/pci.c (grub_pci_iterate): Remove useless ghost skipping.
10985 * include/grub/mips/loongson/pci.h (GRUB_LOONGSON_OHCI_GHOST_FUNCTION):
10987 (GRUB_LOONGSON_EHCI_GHOST_FUNCTION): Likewise.
10988 (grub_pci_read): Fix bitmask.
10989 (grub_pci_read_word): Likewise.
10990 (grub_pci_read_byte): Likewise.
10991 (grub_pci_write): Likewise.
10992 (grub_pci_write_word): Likewise.
10993 (grub_pci_write_byte): Likewise.
10995 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
10997 * configure.ac: Don't impose march=loongson2f on loongson platform. (It
10998 can still be specified in TARGET_CFLAGS)
11000 2011-08-19 Vladimir Serbinenko <phcoder@gmail.com>
11002 Rename Fuloong into Fuloong 2F. Add new ID for Fuloong2E.
11004 * grub-core/Makefile.core.def (fwstart_fuloong): Rename fwstart_fuloong
11005 into fwstart_fuloong2f. Use boot/mips/loongson/fuloong2f.S.
11006 * grub-core/boot/mips/loongson/fuloong.S: Rename to ...
11007 * grub-core/boot/mips/loongson/fuloong2f.S: ... this.
11008 (FULOONG): Rename to ...
11009 (FULOONG2F): ... this. All users updated.
11010 * grub-core/boot/mips/startup_raw.S (machtype_fuloong_str): Rename to
11011 (machtype_fuloong2f_str): ... this.
11012 (machtype_fuloong2e_str): New string.
11013 Check for machtype_fuloong2e_str.
11014 * grub-core/loader/mips/linux.c (loongson_machtypes)
11015 [GRUB_MACHINE_MIPS_LOONGSON]: Add GRUB_ARCH_MACHINE_FULOONG2E.
11016 * grub-core/term/serial.c (loongson_defserial)
11017 [GRUB_MACHINE_MIPS_LOONGSON]: New array.
11018 (grub_serial_register) [GRUB_MACHINE_MIPS_LOONGSON]: Use
11019 loongson_defserial.
11020 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_FULOONG):
11022 (GRUB_ARCH_MACHINE_FULOONG2F): ... this.
11023 (GRUB_ARCH_MACHINE_FULOONG2E): New const.
11024 * util/grub-mkimage.c (image_target_desc): Rename IMAGE_FULOONG_FLASH
11025 to IMAGE_FULOONG2F_FLASH. All users updated.
11026 (image_targets): Rename images.
11027 * util/grub-mkstandalone.in: Accept fuloong2f and fuloong2e.
11029 2011-08-19 Szymon Janc <szymon@janc.net.pl>
11031 Make enable of disk cache statistics code configurable.
11033 * configure.ac: --enable-cache-stats added.
11034 * config.h.in (DISK_CACHE_STATS): New define.
11035 * grub-core/Makefile.core.def (cacheinfo): New command.
11036 * include/grub/disk.h(grub_disk_cache_get_performance): New function.
11037 * grub-core/commands/cacheinfo.c: New file.
11038 * grub-core/commands/minicmd.c (grub_rescue_cmd_info): Updated and
11039 moved to cacheinfo.c.
11040 * grub-core/kern/disk.c: Use DISK_CACHE_STATS to disable disk cache
11042 * include/grub/disk.h: Likewise.
11044 2011-08-19 Szymon Janc <szymon@janc.net.pl>
11046 * Makefile.am (AUTOMAKE_OPTIONS): = Added -Wno-portability flag.
11047 * grub-core/Makefile.am: Likewise.
11049 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11051 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_iterate): Skip with
11054 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11056 * grub-core/fs/jfs.c (grub_jfs_read_file): New parameter ino.
11058 (grub_jfs_lookup_symlink): Use correct starting inode.
11060 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11062 * util/grub-setup.c (main): Add missing gcry initialisation.
11064 2011-08-16 Vladimir Serbinenko <phcoder@gmail.com>
11066 Don't accept text modes on EFI when booting Linux.
11068 * grub-core/loader/i386/linux.c (ACCEPTS_PURE_TEXT): New define.
11069 (grub_linux_boot) [!ACCEPTS_PURE_TEXT]: Restrict to graphics modes.
11071 2011-08-15 Mario Limonciello <mario_limonciello@dell.com>
11072 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11074 * util/grub-probe.c (probe): Canonicalise the path argument, fixing
11075 use of "/path/.." as in grub-install for EFI as well as handling
11076 symlinks correctly.
11077 Fixes Debian bug #637768.
11079 2011-08-15 Colin Watson <cjwatson@ubuntu.com>
11081 * util/grub-probe.c: Remove duplicate #include.
11083 2011-08-10 Robert Millan <rmh@gnu.org>
11085 Detect LSI MegaRAID SAS (`mfi') devices on GNU/kFreeBSD.
11087 * util/deviceiter.c [__FreeBSD_kernel__] (get_mfi_disk_name): New
11089 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for mfi
11090 (/dev/mfid[0-9]+) devices using get_mfi_disk_name().
11092 2011-08-03 Robert Millan <rmh@gnu.org>
11094 * include/grub/zfs/zap_leaf.h (typedef union zap_leaf_chunk): Mark
11095 la_array as packed.
11096 Reported by: Zachary Bedell
11098 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11100 * configure.ac: The Loongson port requires grub-mkfont due to its
11101 use of -DUSE_ASCII_FAILBACK. Raise an error if it is not going to
11104 2011-07-26 Colin Watson <cjwatson@ubuntu.com>
11106 * util/grub-install.in: Don't source grub-mkconfig_lib until after
11107 processing arguments (otherwise help2man fails when GRUB has not yet
11110 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11112 New script grub-mkstandalone.
11114 * Makefile.util.def (grub-mkstandalone): New script.
11115 * docs/man/grub-mkstandalone.h2m: New file.
11116 * util/grub-mkstandalone.in: Likewise.
11118 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11120 Support ATA disks with 4K sectors.
11122 * include/grub/ata.h (grub_ata): New member log_sector_size.
11123 * grub-core/disk/ata.c (grub_ata_dumpinfo): Show sector size.
11124 (grub_ata_identify): Read sector size.
11125 (grub_ata_readwrite): Use log_sector_size rather than hardcoded value.
11127 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11129 * util/grub-install.in: Don't use uhci outside of x86.
11131 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11133 * util/grub-mkrescue.in: Add missing quotes.
11135 2011-07-25 Vladimir Serbinenko <phcoder@gmail.com>
11137 * grub-core/normal/menu.c (grub_menu_execute_entry): Fix NULL
11140 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11142 * grub-core/disk/pata.c (grub_pata_readwrite): Add missing wait.
11144 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11146 * include/grub/video.h: add missing EXPORT_FUND on
11147 grub_video_edid_checksum and grub_video_edid_preferred_mode.
11149 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11151 * include/grub/mips/kernel.h: Fix define conflict.
11153 2011-07-23 Vladimir Serbinenko <phcoder@gmail.com>
11155 * grub-core/kern/mips/cache_flush.S [GRUB_MACHINE_MIPS_LOONGSON]: Flush
11158 2011-07-21 Colin Watson <cjwatson@ubuntu.com>
11160 Preferred resolution detection for VBE.
11162 * grub-core/video/video.c (grub_video_edid_checksum): New function.
11163 (grub_video_edid_preferred_mode): Likewise. Try EDID followed by
11164 the Flat Panel extension, in line with the X.org VESA driver.
11165 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_flat_panel_info):
11167 (grub_vbe_bios_get_ddc_capabilities): Likewise.
11168 (grub_vbe_bios_read_edid): Likewise.
11169 (grub_vbe_get_preferred_mode): Likewise.
11170 (grub_video_vbe_setup): When the mode is "auto", try to get the
11171 preferred mode from VBE, and use the largest mode that is no larger
11172 than the preferred mode (some BIOSes expose a preferred mode that is
11173 not in their mode list!). If this fails, fall back to 640x480 as a
11174 safe conservative choice.
11175 (grub_video_vbe_get_edid): New function.
11176 (grub_video_vbe_adapter): Add get_edid.
11177 * include/grub/video.h (struct grub_vbe_edid_info): New structure.
11178 (struct grub_video_adapter): Add get_edid.
11179 (grub_video_edid_checksum): Add prototype.
11180 (grub_video_edid_preferred_mode): Likewise.
11181 * include/grub/i386/pc/vbe.h (struct grub_vbe_flat_panel_info): New
11184 * grub-core/commands/videoinfo.c (print_edid): New function.
11185 (grub_cmd_videoinfo): Print EDID if available.
11187 * util/grub.d/00_header.in (GRUB_GFXMODE): Default to "auto". This
11188 is more appropriate on a wider range of platforms than 640x480.
11189 * docs/grub.texi (Simple configuration): Update GRUB_GFXMODE
11192 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11194 * util/grub-install.in: Recognize ESP mounted at /boot/EFI.
11196 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11198 * po/POTFILES.in: Regenerate.
11200 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11202 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix
11203 incorrect memory usage.
11205 2011-07-10 Vladimir Serbinenko <phcoder@gmail.com>
11207 * util/grub-install.in: Source grub-mkconfig_lib.
11209 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11211 Remove getroot.c from core on emu platform.
11213 * grub-core/Makefile.core.def (kernel): Remove kern/emu/getroot.c and
11215 * grub-core/kern/emu/main.c (main): Don't try to guess root device. It's
11217 * grub-core/kern/emu/misc.c (get_win32_path): Moved from here...
11218 * util/getroot.c (get_win32_path): ... here.
11219 * grub-core/kern/emu/misc.c (fini_libzfs): Moved from here...
11220 * util/getroot.c (fini_libzfs): ... here.
11221 * grub-core/kern/emu/misc.c (grub_get_libzfs_handle): Moved from here...
11222 * util/getroot.c (grub_get_libzfs_handle): ... here.
11223 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir):
11225 * util/getroot.c (grub_find_zpool_from_dir): ... here.
11226 * grub-core/kern/emu/misc.c
11227 (grub_make_system_path_relative_to_its_root): Moved from here...
11228 * util/getroot.c (grub_make_system_path_relative_to_its_root): ... here.
11229 * grub-core/kern/emu/getroot.c: Moved from here ...
11230 * util/getroot.c: ... here. All users updated.
11231 * grub-core/kern/emu/raid.c: Moved from here ...
11232 * util/raid.c: ... here. All users updated.
11234 2011-07-08 Vladimir Serbinenko <phcoder@gmail.com>
11236 * po/POTFILES.in: Regenerate.
11238 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11240 Fix compilation on GNU/Linux.
11242 * grub-core/kern/emu/getroot.c (grub_util_pull_device) [!FreeBSD]:
11244 (grub_util_get_grub_dev) [!FreeBSD]: Likewise.
11245 (grub_util_pull_device) [HAVE_DEVICE_MAPPER]: Fix const and func name.
11246 * grub-core/disk/cryptodisk.c (grub_cryptodisk_open): Fix proto.
11248 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11249 2011-07-07 Michael Gorven <michael@gorven.za.net>
11250 2011-07-07 Clemens Fruhwirth <clemens@endorphin.org>
11252 LUKS and GELI support.
11254 * Makefile.util.def (libgrubkern.a): Add grub-core/lib/crypto.c,
11255 grub-core/disk/luks.c, grub-core/disk/geli.c,
11256 grub-core/disk/cryptodisk.c, grub-core/disk/AFSplitter.c,
11257 grub-core/lib/pbkdf2.c, grub-core/commands/extcmd.c,
11258 grub-core/lib/arg.c.
11259 (libgrubmods.a): Remove gcrypts cflags and cppflags.
11260 Remove grub-core/commands/extcmd.c, grub-core/lib/arg.c,
11261 grub-core/lib/crypto.c, grub-core/lib/libgcrypt-grub/cipher/sha512.c,
11262 grub-core/lib/libgcrypt-grub/cipher/crc.c and grub-core/lib/pbkdf2.c.
11263 (grub-bin2h): Add libgcry.a.
11264 (grub-mkimage): Likewise.
11265 (grub-mkrelpath): Likewise.
11266 (grub-script-check): Likewise.
11267 (grub-editenv): Likewise.
11268 (grub-mkpasswd-pbkdf2): Likewise.
11269 (grub-pe2elf): Likewise.
11270 (grub-fstest): Likewise.
11271 (grub-mkfont): Likewise.
11272 (grub-mkdevicemap): Likewise.
11273 (grub-probe): Likewise.
11274 (grub-ofpath): Likewise.
11275 (grub-mklayout): Likewise.
11276 (example_unit_test): Likewise.
11277 (grub-menulst2cfg): Likewise.
11278 * autogen.sh (UTIL_DEFS): Add Makefile.utilgcry.def.
11279 * grub-core/Makefile.core.def (cryptodisk): New module.
11282 * grub-core/disk/AFSplitter.c: New file.
11283 * grub-core/disk/cryptodisk.c: Likewise.
11284 * grub-core/disk/geli.c: Likewise.
11285 * grub-core/disk/luks.c: Likewise.
11286 * grub-core/kern/emu/getroot.c (get_dm_uuid): New function based on
11288 (grub_util_get_dm_abstraction): New function.
11289 (grub_util_follow_gpart_up): Likewise.
11290 (grub_util_get_geom_abstraction): Likewise.
11291 (grub_util_get_dev_abstraction): Use new functions.
11292 (grub_util_pull_device): Pull GELI and LUKS.
11293 (grub_util_get_grub_dev): Handle LUKS and GELI.
11294 * grub-core/kern/emu/hostdisk.c (grub_util_get_fd_sectors): New function.
11295 (grub_util_biosdisk_open): Use grub_util_get_fd_sectors.
11296 (follow_geom_up): Removed.
11297 (grub_util_fd_seek): New function.
11298 (open_device): Use grub_util_fd_seek.
11299 (nread): Rename to ..
11300 (grub_util_fd_read): ... this. All users updated.
11301 * grub-core/lib/crypto.c (grub_crypto_ecb_decrypt): A better prototype.
11302 (grub_crypto_cbc_decrypt): Likewise.
11303 (grub_crypto_hmac_write): Likewise.
11304 (grub_crypto_hmac_buffer): Likewise.
11305 (grub_password_get): Extend to util.
11306 * include/grub/crypto.h (gcry_cipher_spec) [GRUB_UTIL]:
11307 New member modname.
11308 (gcry_md_spec) [GRUB_UTIL]: Likewise.
11309 * include/grub/cryptodisk.h: New file.
11310 * include/grub/disk.h (grub_disk_dev_id): Rename LUKS to CRYPTODISK.
11311 * include/grub/emu/getroot.h (grub_dev_abstraction_types): Add
11313 (grub_util_follow_gpart_up): New proto.
11314 * include/grub/emu/hostdisk.h (grub_util_fd_seek): Likewise.
11315 (grub_util_fd_read): Likewise.
11316 (grub_cryptodisk_cheat_mount): Likewise.
11317 (grub_util_cryptodisk_print_uuid): Likewise.
11318 (grub_util_get_fd_sectors): Likewise.
11319 * util/grub-fstest.c (mount_crypt): New var.
11320 (fstest): Mount crypto if requested.
11321 (options): New option -C.
11322 (argp_parser): Parse -C.
11323 (main): Init and fini gcry.
11324 * util/grub-install.in: Support cryptodisk install.
11325 * util/grub-mkconfig.in: Export GRUB_ENABLE_CRYPTODISK.
11326 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Support
11328 (prepare_grub_to_access_device): Likewise.
11329 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_password_get.
11330 * util/grub-probe.c (probe_partmap): Support cryptodisk UUID probe.
11331 (probe_cryptodisk_uuid): New function.
11332 (probe_abstraction): Likewise.
11333 (probe): Use new functions.
11334 * util/import_gcry.py: Create Makefile.utilgcry.def.
11335 Add modname member.
11337 2011-07-07 Vladimir Serbinenko <phcoder@gmail.com>
11339 Lazy device scanning.
11341 * Makefile.util.def (libgrubkern.a): Add grub-core/kern/emu/raid.c.
11342 (grub-setup): Remove util/raid.c.
11343 * grub-core/Makefile.core.def (kernel): Add kern/emu/raid.c on emu.
11344 * grub-core/disk/lvm.c (scan_depth): New variable.
11345 (grub_lvm_iterate): Rescan if necessary.
11346 (find_lv): New function based on grub_lvm_open.
11347 (grub_lvm_open): Use find_lv. Rescan on error.
11348 (is_node_readable): New function.
11349 (is_lv_readable): Likewise.
11350 (grub_lvm_scan_device): Skip already found disks.
11351 (do_lvm_scan): New function. Move grub_lvm_scan_device inside of it.
11352 Stop if searched device is found and readable.
11353 * grub-core/disk/raid.c (inscnt): New variable.
11354 (scan_depth): Likewise.
11355 (scan_devices): New function based on grub_raid_register. Abort if
11356 looked for device is found.
11357 (grub_raid_iterate): Rescan if needed.
11358 (find_array): NEw function based on -grub_raid_open.
11359 (grub_raid_open): Use find_array and rescan.
11360 (insert_array): Set became_readable_at.
11361 * grub-core/kern/disk.c (grub_disk_dev_iterate): Iterate though "pull.
11362 * grub-core/kern/emu/getroot.c (grub_util_open_dm) [HAVE_DEVICE_MAPPER]:
11364 (grub_util_is_lvm) [HAVE_DEVICE_MAPPER]: Use grub_util_open_dm.
11365 (grub_util_pull_device): New function.
11366 (grub_util_get_grub_dev): Call grub_util_pull_device.
11367 * util/raid.c: Moved to ..
11368 * grub-core/kern/emu/raid.c: ... here.
11369 (grub_util_raid_getmembers): New parameter "bootable".
11370 All users updated. Support 1.x.
11371 * include/grub/ata.h (grub_ata_dev): Change iterate prototype.
11373 * include/grub/disk.h (grub_disk_pull_t): New enum.
11374 (grub_disk_dev): Change iterate prototype.
11376 * include/grub/emu/getroot.h (grub_util_raid_getmembers) [__linux__]:
11378 * include/grub/emu/hostdisk.h (grub_util_pull_device): Likewise.
11379 * include/grub/lvm.h (grub_lvm_lv): New members fullname and compatname.
11380 * include/grub/raid.h (grub_raid_array): New member became_readable_at.
11381 * include/grub/scsi.h (grub_scsi_dev): Change iterate prototype.
11383 * include/grub/util/raid.h: Removed.
11385 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11387 * po/POTFILES.in: Regenerate.
11389 2011-07-06 Vladimir Serbinenko <phcoder@gmail.com>
11391 Unify sparc init with other ieee1275.
11393 * grub-core/Makefile.core.def (kernel): Use kern/ieee1275/init.c
11394 instead of kern/sparc64/ieee1275/init.c.
11395 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options)
11396 [__sparc__]: Set GRUB_IEEE1275_FLAG_NO_PARTITION_0.
11397 * grub-core/kern/ieee1275/init.c [__sparc__]: Include
11398 grub/machine/kernel.h.
11399 (grub_ieee1275_original_stack) [__sparc__]: New variable.
11400 (grub_claim_heap) [__sparc__]: Use sparc version.
11401 (grub_machine_init): Moved args parsing to
11402 (grub_parse_cmdline): ...this.
11403 * grub-core/kern/sparc64/ieee1275/init.c: Removed.
11404 * include/grub/offsets.h (GRUB_KERNEL_SPARC64_IEEE1275_MOD_GAP):
11406 (GRUB_KERNEL_SPARC64_IEEE1275_MOD_ALIGN): Likewise.
11408 Move BOOTP to separate file.
11410 * grub-core/Makefile.core.def (net): Add net/bootp.c.
11411 * grub-core/net/net.c: Move all BOOTP functions to
11412 * grub-core/net/bootp.c: ... here.
11414 Use frame interface on PXE.
11416 * grub-core/Makefile.core.def (pxecmd): Removed.
11417 (pxe): Use net/drivers/i386/pc/pxe.c rather than net/i386/pc/pxe.c.
11418 * grub-core/commands/i386/pc/pxecmd.c: Removed.
11419 * grub-core/i386/pc/pxe.c: Moved from here ...
11420 * grub-core/net/i386/pc/pxe.c: ... here. Rewritten.
11421 * grub-core/net/net.c (grub_net_open_real): Handle old pxe syntax.
11422 * include/grub/i386/pc/pxe.h (grub_pxe_unload): Removed.
11424 EFI network support.
11426 * grub-core/Makefile.core.def (efinet): New module.
11427 * grub-core/disk/efi/efidisk.c (compare_device_paths): Moved from
11429 * grub-core/kern/efi/efi.c (grub_efi_compare_device_paths): ... here.
11431 * grub-core/kern/efi/init.c (grub_efi_net_config): New variable.
11432 (grub_machine_get_bootlocation): Call grub_efi_net_config if needed.
11433 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_7): New function.
11434 * grub-core/net/drivers/efi/efinet.c: New file.
11435 * include/grub/efi/efi.h (grub_efi_compare_device_paths): New proto.
11436 (grub_efi_net_config): New extern var.
11438 Various cleanups and bugfixes.
11440 * grub-core/disk/efi/efidisk.c (grub_efidisk_open): Fix off-by-one
11442 (grub_efidisk_get_device_name): Unify similar codepaths. Accept whole
11443 disk declared as partition.
11444 * grub-core/disk/ieee1275/ofdisk.c (grub_ofdisk_open): Fix memory
11446 * grub-core/kern/dl.c (grub_dl_load_file): Fix memory leak.
11447 * grub-core/kern/mm.c (grub_debug_malloc): Don't use unsupported %zx.
11448 (grub_debug_zalloc): Likewise.
11449 (grub_debug_realloc): Likewise.
11450 (grub_debug_memalign): Likewise.
11451 * grub-core/net/arp.c (grub_net_arp_receive): IPv4 is 4-byte wide.
11452 Check that target is IPv4.
11453 * grub-core/net/drivers/ieee1275/ofnet.c (grub_ofnet_findcards): Use
11454 local-mac-address as fallback.
11455 * grub-core/net/ethernet.c (grub_net_recv_ethernet_packet): Prevent
11457 * grub-core/net/ip.c (ipchksum): Rename to ...
11458 (grub_net_ip_chksum): ... this. All users updated.
11459 (grub_net_recv_ip_packets): Special handling for DHCP.
11460 * util/grub-mkimage.c (generate_image): Zero-out aout header.
11462 Unify prefix handling
11464 * grub-core/kern/efi/init.c (grub_efi_set_prefix): Revamped into ...
11465 (grub_machine_get_bootlocation): ... this.
11466 * grub-core/kern/emu/main.c (grub_machine_set_prefix): Revamped into ...
11467 (grub_machine_get_bootlocation): ... this.
11468 (grub_prefix): New variable.
11470 (root_dev): New variable.
11472 (main): Use new variables.
11473 * grub-core/kern/i386/coreboot/init.c (grub_machine_set_prefix):
11475 (grub_machine_get_bootlocation): ... this.
11476 * grub-core/kern/i386/efi/init.c (grub_machine_set_prefix): Removed.
11477 * grub-core/kern/i386/pc/init.c (make_install_device): Revamped into ...
11478 (grub_machine_get_bootlocation): ... this.
11479 (grub_machine_set_prefix): Removed.
11480 * grub-core/kern/ia64/efi/init.c (grub_machine_set_prefix): Removed.
11481 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix):
11483 (grub_machine_get_bootlocation): ... this.
11484 * grub-core/kern/main.c (grub_set_root_dev): Revamped into ...
11485 (grub_set_prefix_and_root): ... this. All users updated.
11486 * grub-core/kern/mips/init.c (grub_machine_set_prefix):
11488 (grub_machine_get_bootlocation): ... this.
11489 * include/grub/kernel.h (grub_machine_set_prefix): Removed.
11490 (grub_machine_get_bootlocation): New proto.
11491 * include/grub/i386/pc/kernel.h (grub_pc_net_config): New var.
11493 Less intrusive and more reliable seek on network implementation.
11495 * grub-core/kern/file.c (grub_file_net_seek): Removed.
11496 (grub_file_seek): Don't call grub_file_net_seek.
11497 * grub-core/net/net.c (grub_net_fs_read): Renamed to ...
11498 (grub_net_fs_read_real): .. this.
11499 (grub_net_seek_real): Use net->offset.
11500 (grub_net_fs_read): Seek if necessary.
11502 Unify IEEE1275 netwotk config with the other platforms.
11504 * grub-core/kern/ieee1275/init.c (grub_ieee1275_net_config):
11506 (grub_machine_get_bootlocation): Support network.
11507 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args):
11508 Support type and device parsing.
11509 (grub_ieee1275_get_device_type): New function.
11510 * grub-core/net/drivers/ieee1275/ofnet.c (grub_getbootp_real): Revamped
11512 (grub_ieee1275_net_config_real): ... this.
11513 (grub_ofnet_probecards): Removed.
11514 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove ofnet.h.
11515 * include/grub/ieee1275/ofnet.h: Removed.
11516 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_net_config): NEw
11518 (grub_ieee1275_get_device_type): New function.
11520 Unify network device closing across platforms and make more robust.
11522 * grub-core/kern/ieee1275/init.c (grub_machine_fini): Don't call
11524 * grub-core/net/ethernet.c (send_ethernet_packet): Open card if it isn't
11526 * grub-core/net/net.c (grub_net_network_level_interface_register):
11528 (grub_net_card_unregister): Close all interfaces.
11529 (receive_packets): Don't poll if no iterfaces are registered.
11531 (grub_net_fini_hw): New function.
11532 (grub_net_restore_hw): Likewise.
11533 (fini_hnd): New variable.
11534 (GRUB_MOD_INIT): Register preboot hook.
11535 (GRUB_MOD_FINI): Run and unregister preboot hook.
11537 Poll network cards when idle.
11539 * grub-core/kern/term.c (grub_net_poll_cards_idle): New variable.
11540 (grub_checkkey): Call grub_net_poll_cards_idle if it's not NULL.
11541 * grub-core/net/net.c (receive_packets): Save last poll time.
11542 (grub_net_poll_cards_idle_real): New function.
11543 (GRUB_MOD_INIT): Register grub_net_poll_cards_idle.
11544 (GRUB_MOD_FINI): Unregister grub_net_poll_cards_idle.
11545 * include/grub/kernel.h (grub_poll_cards_idle): New extern variable.
11547 Rename ofnet interfaces.
11549 * grub-core/net/drivers/ieee1275/ofnet.c (find_alias): New function.
11550 (grub_ofnet_findcards): Use ofnet_%s names.
11552 * util/grub-mknetdir.in: Support for EFI and IEEE1275.
11554 Cleanup socket opening.
11556 * grub-core/net/net.c (grub_net_fs_open): Rewritten.
11557 (grub_net_fs_close): Likewise.
11558 (grub_net_fs_read_real): Use eof member.
11559 * include/grub/net/udp.h (+grub_net_udp_open): New proto.
11560 (+grub_net_udp_close): New inline function.
11562 * include/grub/net/tftp.h: Moved to the top of ...
11563 * grub-core/net/tftp.c: ... here.
11564 * include/grub/net/ip.h: Moved mostly to the top of ...
11565 * grub-core/net/ip.c: ... here.
11566 * include/grub/net/ethernet.h: Moved mostly to the top of ...
11567 * grub-core/net/ethernet.c: ... here.
11569 * grub-core/kern/device.c (grub_device_close): Free device->net->server.
11571 * grub-core/commands/probe.c (grub_cmd_probe): Use protocol name for
11574 * include/grub/net/ip.h (ipv4_ini): Removed.
11575 (ipv4_fini): Likewise.
11577 * include/grub/net/ip.h (grub_net_recv_ip_packets): New proto.
11578 (grub_net_send_ip_packets): Likewise.
11580 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11582 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_init): Use new
11583 grub_read_cmos prototype.
11585 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11587 VGA text support in qemu-mips
11589 * grub-core/Makefile.core.def (kernel): Add term/i386/pc/vga_text.c,
11590 term/i386/vga_common.c and kern/vga_init.c on qemu-mips.
11591 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init vga
11593 * grub-core/kern/i386/qemu/init.c: Renamed to ...
11594 * grub-core/kern/vga_init.c: ... this.
11595 * grub-core/kern/vga_init.c (VGA_ADDR) [__mips__]: Adjust.
11596 (grub_qemu_init_cirrus) [__mips__]: Skip PCI and adjust the I/O base.
11597 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN) [__mips__]:
11599 * include/grub/vga.h [GRUB_MACHINE_MIPS_QEMU_MIPS]: Declare
11600 GRUB_MACHINE_PCI_IO_BASE.
11602 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11604 MIPS qemu flash support.
11606 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]: Check
11608 * grub-core/kern/mips/qemu_mips/init.c (probe_mem): New function.
11609 (grub_machine_init): Probe memory if its size isn't known.
11610 * util/grub-mkimage.c (image_targets): Add flash targets.
11611 (generate_image): Handle flash targets.
11613 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11615 MIPS qemu at_keyboard support.
11617 * gentpl.py (videoinkernel): Add qemu-mips.
11618 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add necessary headers.
11619 * grub-core/Makefile.core.def (kernel): Add at_keyboard and layout.
11620 * grub-core/kern/mips/qemu_mips/init.c (grub_machine_init): Init new
11622 * grub-core/term/at_keyboard.c (grub_keyboard_controller_init)
11623 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Don't consider original set.
11624 * grub-core/term/serial.c (grub_serial_register)
11625 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Make com0 explicitly active.
11627 2011-07-05 Vladimir Serbinenko <phcoder@gmail.com>
11629 CMOS support on sparc.
11631 * gentpl.py (cmos): Add powerpc and sparc.
11632 * grub-core/Makefile.core.def (datetime): Add lib/ieee1275/cmos.c on
11634 * grub-core/lib/cmos_datetime.c (grub_get_datetime)
11635 [__powerpc__ || __sparc__]: Rename to grub_get_datetime_cmos.
11636 (grub_set_datetime) [__powerpc__ || __sparc__]: Likewise to
11637 grub_set_datetime_cmos.
11638 * grub-core/lib/ieee1275/cmos.c: New file.
11639 * grub-core/lib/ieee1275/datetime.c (no_ieee1275_rtc): New vaiable.
11640 (find_rtc): Set no_ieee1275_rtc on error.
11641 (grub_get_datetime): Call grub_get_datetime_cmos on error.
11642 (grub_set_datetime): Call grub_set_datetime_cmos on error.
11643 * include/grub/cmos.h (grub_cmos_read): Return grub_err_t since it may
11644 fail. Move value to argument. All users updated
11645 (grub_cmos_write): Likewise.
11646 (grub_cmos_read) [__powerpc__ || __sparc__]: Rewritten.
11647 (grub_cmos_write) [__powerpc__ || __sparc__]: Likewise.
11648 * include/grub/datetime.h [__powerpc__ || __sparc__]: Declare
11649 grub_get_datetime_cmos and grub_set_datetime_cmos.
11651 2011-07-02 Grégoire Sutre <gregoire.sutre@gmail.com>
11653 * util/grub-mkconfig.in: Use @PACKAGE@ instead of hardcoded name when
11654 sourcing grub-mkconfig_lib.
11655 * util/update-grub_lib.in: Likewise.
11656 * util/grub.d/00_header.in: Likewise.
11657 * util/grub.d/10_hurd.in: Likewise.
11658 * util/grub.d/10_kfreebsd.in: Likewise.
11659 * util/grub.d/10_linux.in: Likewise.
11660 * util/grub.d/10_netbsd.in: Likewise.
11661 * util/grub.d/10_windows.in: Likewise.
11662 * util/grub.d/20_linux_xen.in: Likewise.
11663 * util/grub.d/30_os-prober.in: Likewise.
11665 2011-06-28 Colin Watson <cjwatson@ubuntu.com>
11667 * grub-core/term/gfxterm.c (grub_virtual_screen_setup): Use
11668 default_bg_color rather than black.
11669 (grub_gfxterm_fullscreen): Likewise.
11670 (grub_gfxterm_background_color_cmd): Save new background color in
11673 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11675 * grub-core/Makefile.core.def (chain): Fix coreboot filename.
11677 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11679 * grub-core/disk/pata.c (grub_pata_initialize) [QEMU_MIPS]: Fix a
11682 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11684 Chainloading on coreboot support.
11686 * grub-core/Makefile.core.def (chain): Add coreboot.
11687 * grub-core/loader/i386/coreboot/chainloader.c: New file.
11689 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11691 * grub-core/loader/i386/bsd.c (grub_bsd_load): Handle relocator failure
11694 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11696 Implement time command.
11698 * grub-core/Makefile.core.def (time): New module.
11699 * grub-core/commands/time.c: New file.
11700 * grub-core/script/parser.y: Remove "time" keyword.
11701 * grub-core/script/yylex.l: Likewise.
11703 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11705 * include/grub/loader.h (grub_loader_unregister_preboot_hook): Export.
11707 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11709 * grub-core/lib/relocator.c (malloc_in_range): Fix a memory corruption
11710 when handling leftovers.
11712 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11714 * util/ieee1275/grub-ofpathname.c (main): Handle --help and --version
11715 so that help2man doesn't fail.
11717 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11719 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer) Use right
11720 type in pointers on sparc64.
11721 (get_card_packet): Likewise.
11723 2011-06-27 Colin Watson <cjwatson@ubuntu.com>
11725 * grub-core/commands/videoinfo.c (hook): Indicate current video mode
11727 (grub_cmd_videoinfo): Fetch current video mode.
11729 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11731 * grub-core/disk/scsi.c (grub_scsi_read): Limit SCSI reads to 32K
11732 because of underlying system restrictions.
11734 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11736 * util/grub-mkrescue.in: Rename "ata" to "pata" and add ahci when
11739 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11741 Coreboot video support.
11743 * grub-core/Makefile.core.def (vga): Extend to coreboot and multiboot.
11745 * grub-core/kern/i386/coreboot/startup.S: Include int.S.
11746 * grub-core/kern/i386/pc/startup.S (grub_bios_interrupt): Moved from
11748 * grub-core/kern/i386/int.S: ... here.
11749 * grub-core/video/i386/pc/vbe.c: Updated includes.
11750 * grub-core/video/i386/pc/vga.c: Likewise.
11751 * include/grub/i386/coreboot/memory.h
11752 (GRUB_MEMORY_MACHINE_SCRATCH_ADDR): New definition.
11753 (GRUB_MEMORY_MACHINE_SCRATCH_SEG): Likewise.
11754 (GRUB_MEMORY_MACHINE_SCRATCH_SIZE): Likewise.
11755 * include/grub/i386/pc/int.h (GRUB_CPU_INT_FLAGS_DEFAULT) [!PCBIOS]:
11756 Disable interrupts.
11757 * include/grub/i386/pc/vga.h: Removed. All users updated.
11759 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11761 * grub-core/disk/ahci.c (grub_ahci_readwrite_real): Use proper
11762 definitions for dprintf.
11763 * grub-core/disk/pata.c (grub_pata_readwrite): Likewise.
11765 2011-06-27 Vladimir Serbinenko <phcoder@gmail.com>
11767 * grub-core/net/drivers/ieee1275/ofnet.c (send_card_buffer): Fix
11769 (get_card_packet): Likewise.
11771 2011-06-26 Yves Blusseau <blusseau@zetam.org>
11773 Display the path of the file when file is not found
11775 * grub-core/fs/fat.c: Display the filename when file is not found.
11776 * grub-core/fs/fshelp.c: Likewise.
11777 * grub-core/fs/hfs.c: Likewise.
11778 * grub-core/fs/jfs.c: Likewise.
11779 * grub-core/fs/minix.c: Likewise.
11780 * grub-core/fs/ufs.c: Likewise.
11781 * grub-core/fs/btrfs.c: Likewise.
11782 * grub-core/commands/i386/pc/play.c: Likewise.
11784 2011-06-26 Szymon Janc <szymon@janc.net.pl>
11786 * grub-core/commands/cmp.c (grub_cmd_cmp): Remove unnecessary NULL
11787 pointer checks before calling grub_free().
11788 * grub-core/commands/wildcard.c (match_devices): Likewise.
11789 * grub-core/commands/wildcard.c (match_files): Likewise.
11790 * grub-core/fs/cpio.c (grub_cpio_dir): Likewise.
11791 * grub-core/fs/cpio.c (grub_cpio_open): Likewise.
11792 * grub-core/fs/udf.c (grub_udf_read_block): Likewise.
11793 * grub-core/fs/xfs.c (grub_xfs_read_block): Likewise.
11794 * grub-core/loader/efi/chainloader.c (grub_cmd_chainloader): Likewise.
11795 * grub-core/normal/cmdline.c (grub_cmdline_get): Likewise.
11796 * grub-core/script/yylex.l (grub_lexer_unput): Likewise.
11797 * grub-core/video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
11798 * grub-core/video/readers/png.c (grub_png_output_byte): Likewise.
11800 2011-06-25 Patrick <p55@mailinator.com>
11802 * grub-core/kern/main.c (grub_load_normal_mode): Correct the comment.
11804 2011-06-25 Vladimir Serbinenko <phcoder@gmail.com>
11806 * grub-core/net/i386/pc/pxe.c (grub_pxe_recv): Fix declaration.
11807 (grub_pxe_send): Likewise.
11808 (GRUB_MOD_INIT): Fix types.
11810 2011-06-24 Szymon Janc <szymon@janc.net.pl>
11812 * grub-core/io/xzio.c: Fix code style issues
11814 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11815 2011-06-24 Manoel Rebelo Abranches <mrabran@gmail.com>
11817 Network infrastructure.
11818 The ARP protocol was made by Paulo Pinatti <ppinatti@br.ibm.com>
11820 * include/grub/net/arp.h: New file.
11821 * include/grub/net/device.h: Likewise.
11822 * include/grub/net/ethernet.h: Likewise.
11823 * include/grub/net/ip.h: Likewise.
11824 * include/grub/net/netbuff.h: Likewise.
11825 * include/grub/net/tftp.h: Likewise.
11826 * include/grub/net/udp.h: Likewise.
11827 * include/grub/ieee1275/ofnet.h: Likewise.
11828 * include/grub/emu/export.h: Likewise.
11829 * include/grub/net.h: Likewise.
11830 * grub-core/net/arp.c: Likewise.
11831 * grub-core/net/ethernet.c: Likewise.
11832 * grub-core/net/ip.c: Likewise.
11833 * grub-core/net/udp.c: Likewise.
11834 * grub-core/net/tftp.c: Likewise.
11835 * grub-core/net/netbuff.c: Likewise.
11836 * grub-core/net/net.c: Likewise.
11837 * grub-core/net/drivers/emu/emunet.c: Likewise.
11838 * grub-core/net/drivers/ieee1275/ofnet.c: Likewise.
11839 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add net.h, ofnet.h and
11841 * grub-core/Makefile.core.def (net): New module.
11844 (emunet): Likewise.
11845 * grub-core/commands/ls.c (grub_ls_list_devices) [!GRUB_UTIL]: List
11847 * grub-core/kern/device.c (grub_net_open) : New variable.
11848 (grub_device_open): Handle network device.
11849 (grub_device_close): Likewise.
11850 * grub-core/kern/file.c (grub_file_net_seek) : New variable.
11851 (grub_grubnet_fini): Likewise.
11852 (grub_file_seek): Seek in network device.
11853 * grub-core/kern/fs.c (grub_fs_probe): Handle network devices.
11854 * grub-core/kern/ieee1275/init.c (grub_machine_set_prefix): Handle
11856 (grub_machine_fini): Call grub_grubnet_fini.
11857 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_parse_args): Handle
11859 (grub_ieee1275_get_aliasdevname): New function.
11860 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
11861 Add unofficial Solaris network info.
11862 (grub_multiboot_make_mbi): Likewise.
11863 * grub-core/fs/i386/pc/pxe.c: Moved from here ...
11864 * grub-core/net/i386/pc/pxe.c: ...here. Adapted for new design.
11865 * include/grub/device.h (grub_fs): Removed.
11866 * include/grub/err.h (grub_err_t): Add network-related values.
11867 * include/grub/i386/pc/pxe.h: Removed bootp parts.
11868 * include/grub/ieee1275/ieee1275.h (grub_ofnetcard_data): New struct.
11869 (grub_ieee1275_get_aliasdevname): New proto.
11870 * include/grub/net.h: Rewritten.
11872 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11874 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of readable
11877 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11879 * grub-core/commands/wildcard.c (match_files): Add a useful dprintf.
11880 (wildcard_expand): Don't stop on nonregexp parts after regexp ones since
11881 it truncates the output.
11882 Reported by: Ximin Luo.
11884 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11886 * grub-core/fs/iso9660.c (grub_iso9660_iterate_dir): Skip . and ..
11888 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11890 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
11891 partmap before abstraction.
11893 2011-06-24 Alexander Kurtz <kurtz.alex@googlemail.com>
11895 * util/grub-mkconfig_lib.in: Add missing quotes.
11897 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11899 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Revert to
11900 old method if mountinfo would return /dev/root and /dev/root doesn't
11903 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11907 * grub-core/fs/zfs/zfs.c (zlib_decompress): New function.
11908 (decomp_table): Add zlib entries.
11909 (zio_read): USe 8 bits for compression function rather than 3.
11910 * include/grub/zfs/zio.h (zio_compress): Add zlib values.
11912 2011-06-24 Vladimir Serbinenko <phcoder@gmail.com>
11914 * grub-core/disk/ahci.c: Add missing license statements.
11915 * grub-core/fs/romfs.c: Likewise.
11916 * grub-core/lib/ia64/setjmp.S: Likewise.
11917 * grub-core/loader/i386/pc/freedos.c: Likewise.
11918 * grub-core/loader/ia64/efi/linux.c: Likewise.
11919 * grub-core/video/colors.c: Likewise.
11920 * include/grub/dl.h (GRUB_MOD_DEP): New macro.
11922 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11926 * grub-core/Makefile.core.def (ata_pthru): Removed.
11927 (ahci): New module.
11929 * grub-core/bus/usb/ohci.c (GRUB_MOD_FINI): Unregister preboot hook
11931 * grub-core/commands/hdparm.c (grub_hdparm_do_ata_cmd): Use ATA
11933 (grub_hdparm_do_check_powermode_cmd): Likewise.
11934 (grub_hdparm_do_smart_cmd): Likewise.
11935 (grub_hdparm_set_val_cmd): Likewise.
11936 (grub_cmd_hdparm): Likewise. Check thta we have an ATA device.
11937 * grub-core/disk/ahci.c: New file.
11938 * grub-core/disk/ata.c: Factor out the low-level part into ...
11939 * grub-core/disk/pata.c: ... here.
11940 * grub-core/disk/ata_pthru.c: Contents moved to ...
11941 * grub-core/disk/pata.c: ... here.
11942 * grub-core/disk/scsi.c (grub_scsi_names): New array.
11943 (grub_scsi_iterate): Use grub_scsi_names.
11944 (grub_scsi_open): Likewise.
11945 * grub-core/kern/disk.c (grub_disk_ata_pass_through): Removed.
11946 * include/grub/ata.h (grub_ata_commands): Add DMA commands.
11947 (grub_ata_regs_t): New struct.
11948 (grub_disk_ata_pass_through_parms): Likewise.
11949 (grub_ata_device): Renamed to ...
11950 (grub_ata): ... this.
11951 (grub_ata_dev): New struct.
11952 Removed all low-level inline functions.
11953 * include/grub/scsi.h: Add PATA and AHCI subsystems.
11954 (grub_scsi_dev): Removed 'name' and 'id'. Added 'id' parameter to
11955 iterate hooks and open. All users updated.
11956 * util/grub-install.in: Handle AHCI disk module.
11958 2011-06-23 Szymon Janc <szymon@janc.net.pl>
11960 Add support for DRI and RSTn markers in JPEG files.
11962 * grub-core/video/readers/jpeg.c (JPEG_MARKER_DRI): New define.
11963 (JPEG_MARKER_RST0): Likewise.
11964 (JPEG_MARKER_RST1): Likewise.
11965 (JPEG_MARKER_RST2): Likewise.
11966 (JPEG_MARKER_RST3): Likewise.
11967 (JPEG_MARKER_RST4): Likewise.
11968 (JPEG_MARKER_RST5): Likewise.
11969 (JPEG_MARKER_RST6): Likewise.
11970 (JPEG_MARKER_RST7): Likewise.
11971 (grub_jpeg_data): New fields dri, r1, bitmap_ptr.
11972 (grub_jpeg_decode_dri): New function.
11973 (grub_jpeg_decode_sos): Move image data related part into
11974 grub_jpeg_decode_data function.
11975 (grub_jpeg_decode_data): New function.
11976 (grub_jpeg_reset): New function.
11977 (grub_jpeg_decode_jpeg): Handle new markers.
11979 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11981 * util/ieee1275/ofpath.c (check_sas): Close fd.
11982 (main): Free of_path.
11983 Reported by: David Volgyes <dvolgyes>.
11985 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11987 * util/grub-mkpasswd-pbkdf2.c (main): Don't double-close.
11988 Reported by: David Volgyes <dvolgyes>.
11990 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11992 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Close
11994 Reported by: David Volgyes <dvolgyes>.
11996 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
11998 * util/raid.c (grub_util_raid_getmembers): Close fd before returning.
12000 Reported by: David Volgyes <dvolgyes>.
12002 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12004 * grub-core/lib/reed_solomon.c (rs_recover) [STANDALONE]:
12005 Prevent memory leak.
12007 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12009 * grub-core/lib/reed_solomon.c (rs_recover): Prevent memory leak.
12010 (main): Close file.
12011 Reported by: David Volgyes <dvolgyes>.
12013 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12015 * grub-core/loader/i386/xnu.c (grub_cpu_xnu_fill_devprop): Don't attempt
12016 to continue if allocation is failed.
12018 Reported by: David Volgyes <dvolgyes>.
12020 2011-06-23 David Volgyes <dvolgyes>
12022 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Avoid NULL-pointer
12025 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12027 Fix spurious warning.
12029 * grub-core/partmap/acorn.c (grub_acorn_boot_block): Make a union.
12030 (acorn_partition_map_find): Use .bin member.
12032 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12034 * grub-core/kern/emu/getroot.c (grub_guess_root_device): Don't accept
12035 /dev/root as a valid device.
12037 2011-06-23 Jim Meyering <meyering@redhat.com>
12039 Avoid NULL deref in grub_device_open.
12041 * grub-core/kern/device.c (grub_device_open): Don't dereference
12042 a NULL pointer upon failed grub_env_get.
12044 2011-06-23 Vladimir Serbinenko <phcoder@gmail.com>
12046 Support non-512B sectors and agglomerate reads.
12048 * Makefile.util.def (libgrubmods.a): Add grub-core/commands/testload.c.
12049 * grub-core/disk/efi/efidisk.c (grub_efidisk_data): Remove disk_io.
12050 (disk_io_guid): Removed.
12051 (make_devices): Locate solely by BlockIO.
12052 (grub_efidisk_open): Fill log_sector_size and total_sectors.
12053 (grub_efidisk_read): Use read_blocks.
12054 (grub_efidisk_write): Use write_blocks.
12055 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Fill
12057 (get_safe_sectors): Handle non-512B sectors.
12058 (grub_biosdisk_read): Remove special CDROM handling. Handle non-512B
12060 (grub_biosdisk_write): Handle non-512B sectors.
12061 * grub-core/disk/scsi.c (grub_scsi_open): Fill log_sector_size.
12062 (grub_scsi_read): Remove special non-512B block handling (now handled
12064 * grub-core/kern/disk.c (grub_disk_open): Fill default log_sector_size
12065 and do sanity checks.
12066 (grub_disk_adjust_range): Handle non-512B sectors.
12067 (transform_sector): New function.
12068 (grub_disk_read_small): Likewise.
12069 (grub_disk_read): Rewritten.
12070 (grub_disk_write): Handle non-512B sectors.
12071 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_open): Fill
12073 (open_device): Use log_sector_size.
12074 (grub_util_biosdisk_read): Likewise.
12075 (grub_util_biosdisk_write): Likewise.
12076 * grub-core/partmap/msdos.c (grub_partition_msdos_iterate): Handle
12078 (pc_partition_map_embed): Likewise.
12079 * include/grub/disk.h (grub_disk): New field log_sector_size.
12080 (GRUB_DISK_CACHE_SIZE): Redefined from GRUB_DISK_CACHE_BITS.
12081 (GRUB_DISK_CACHE_BITS): Increased to 6.
12082 * util/grub-fstest.c (fstest): New command testload.
12083 (argp_parser): Likewise.
12085 2011-06-16 Robert Millan <rmh@gnu.org>
12087 Detect `ataraid' devices on GNU/kFreeBSD. Fix for ATA devices using
12088 `ata' driver on kernel of FreeBSD 9.
12090 * util/deviceiter.c [__FreeBSD_kernel__] (get_ada_disk_name)
12091 (get_ataraid_disk_name): New functions.
12092 [__FreeBSD_kernel__] (grub_util_iterate_devices): Scan for ataraid
12093 (/dev/ar[0-9]+) and ada (/dev/ada[0-9]+) devices using
12094 get_ataraid_disk_name() and get_ada_disk_name().
12096 2011-06-13 Colin Watson <cjwatson@ubuntu.com>
12098 * docs/man/grub-mklayout.h2m (DESCRIPTION): Add a reference to the
12101 2011-05-29 Colin Watson <cjwatson@ubuntu.com>
12103 * docs/grub.texi (Obtaining and Building GRUB): Substitute
12104 `ftp.gnu.org' for `alpha.gnu.org'.
12106 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12108 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Handle
12109 partitions under /dev/disk/by-id/.
12111 2011-05-27 Colin Watson <cjwatson@ubuntu.com>
12113 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Give up
12114 after ten consecutive open failures. Scanning all the way up to
12115 10000 is excessive and can cause serious performance problems in
12116 some configurations.
12117 Fixes Ubuntu bug #787461.
12119 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12121 * grub-core/disk/arc/arcdisk.c (reopen): Close old handle before
12124 2011-05-21 Colin Watson <cjwatson@ubuntu.com>
12125 2011-05-21 Vladimir Serbinenko <phcoder@gmail.com>
12127 Don't stat devices unless we have to.
12129 * grub-core/kern/emu/getroot.c (grub_find_device): Recognize
12130 dir == /dev/mapper.
12131 (grub_guess_root_device): Use already known os_dev if possible.
12132 * grub-core/kern/emu/hostdisk.c
12133 (convert_system_partition_to_system_disk): Scan only in /dev/mapper
12134 if device is known to be a dm one.
12136 2011-05-20 Colin Watson <cjwatson@ubuntu.com>
12138 * util/grub-mkconfig.in: Export GRUB_CMDLINE_LINUX_XEN_REPLACE and
12139 GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT.
12140 Reported by: Pawel Tecza.
12142 2011-05-19 Vladimir Serbinenko <phcoder@gmail.com>
12144 * grub-core/Makefile.core.def (lsacpi): Fix ia64 mismerge.
12145 (lsefisystab): Likewise.
12147 (lsefimmap): Likewise.
12148 (hdparm): Enable on qemu-mips.
12149 (setjmp): Add ia64 nodist.
12150 (serial): Simplify tags.
12152 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12154 * Makefile.util.def (grub-ofpathname): Install manual page.
12156 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12158 * grub-core/fs/squash4.c: Add missing GRUB_MOD_LICENSE.
12160 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12162 * .bzrignore: Add grub-core/modinfo.sh and a number of test files.
12164 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12166 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Downgrade a printf
12169 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12171 Use full 64-bit division.
12173 * grub-core/kern/misc.c (grub_divmod64_full): Renamed to ...
12174 (grub_divmod64): ... this.
12175 * include/grub/misc.h (grub_divmod64): Removed. All users switch to full
12178 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12180 * util/grub-mkrescue.in: Use portable `.' rather than non-portable
12183 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12185 * grub-core/genmod.sh.in: Use 'set -e' rather than '#! /bin/sh -e',
12186 to avoid accidents when debugging with 'sh -x'.
12187 * grub-core/gensyminfo.sh.in: Likewise.
12188 * tests/example_scripted_test.in: Likewise.
12189 * tests/grub_cmd_regexp.in: Likewise.
12190 * tests/grub_script_blanklines.in: Likewise.
12191 * tests/grub_script_dollar.in: Likewise.
12192 * tests/grub_script_expansion.in: Likewise.
12193 * tests/grub_script_final_semicolon.in: Likewise.
12194 * tests/partmap_test.in: Likewise.
12195 * tests/util/grub-shell-tester.in: Likewise.
12196 * tests/util/grub-shell.in: Likewise.
12198 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12200 Move gfxmenu color handling to video, so that gfxterm can use it
12203 * grub-core/gfxmenu/named_colors.c: Move to ...
12204 * grub-core/video/colors.c: ... here. Rename
12205 grub_gui_get_named_color to grub_video_get_named_color.
12206 * grub-core/gfxmenu/gui_string_util.c (my_isxdigit): Move to ...
12207 * grub-core/video/colors.c (my_isxdigit): ... here.
12208 * grub-core/gfxmenu/gui_string_util.c (parse_hex_color_component):
12210 * grub-core/video/colors.c (parse_hex_color_component): ... here.
12211 * grub-core/gfxmenu/gui_string_util.c (grub_gui_parse_color): Move
12213 * grub-core/video/colors.c (grub_video_parse_color): ... here.
12215 * include/grub/gui.h (grub_gui_color_t): Move to ...
12216 * include/grub/video.h (grub_video_rgba_color_t): ... here.
12217 * include/grub/gui.h (grub_gui_color_rgb): Move to ...
12218 * include/grub/video.h (grub_video_rgba_color_rgb): ... here.
12219 * include/grub/gui.h (grub_gui_map_color): Move to ...
12220 * include/grub/video.h (grub_video_map_rgba_color): ... here.
12221 * include/grub/gui_string_util.h (grub_gui_get_named_color): Move
12223 * include/grub/video.h (grub_video_get_named_color): ... here.
12224 * include/grub/gui_string_util.h (grub_gui_parse_color): Move to ...
12225 * include/grub/video.h (grub_video_parse_color): ... here.
12227 * grub-core/Makefile.core.def (kernel) [videoinkernel]: Add
12229 (gfxmenu): Remove gfxmenu/named_colors.c.
12230 (video) [videomodules]: Add video/colors.c.
12232 Add a background_color command.
12234 * grub-core/term/gfxterm.c (grub_gfxterm_background_color_cmd): New
12236 (GRUB_MOD_INIT): Register background_color command.
12237 (GRUB_MOD_FINI): Unregister background_color command.
12238 (redraw_screen_rect): Allow blend/replace of text layer to be
12239 controlled independently from whether there is a background bitmap.
12240 (grub_gfxterm_background_image_cmd): Change blend_text_bg when
12243 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12245 Patch BPB in ntldr and chainloader --bpb.
12247 * grub-core/fs/fat.c: Include grub/fat.h.
12248 (grub_fat_bpb): Moved to ...
12249 * include/grub/fat.h (grub_fat_bpb): ... here. New file.
12250 * grub-core/loader/i386/pc/chainloader.c: Include grub/fat.h and
12252 * include/grub/i386/pc/chainloader.h (grub_chainloader_flags_t):
12254 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_flags_t): ...
12256 * grub-core/loader/i386/pc/chainloader.c (grub_chainloader_patch_bpb):
12258 (grub_chainloader_cmd): Patch BPB if --bpb is given.
12259 (GRUB_MOD_INIT): Show --bpb.
12260 * grub-core/loader/i386/pc/ntldr.c (grub_cmd_ntldr): Patch BPB.
12261 * grub-core/normal/main.c (features): New variable.
12262 (GRUB_MOD_INIT): Set feature_* variables.
12263 * include/grub/i386/pc/chainloader.h (grub_chainloader_patch_bpb): New
12265 * include/grub/ntfs.h (grub_ntfs_bpb): New field bios_drive.
12267 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12269 * grub-core/Makefile.core.def (ieee1275_fb): Use enable=powerpc_ieee1275
12272 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12274 FreeDOS direct loading support.
12276 * docs/grub.texi (Supported OS): Add FreeDOS.
12277 * grub-core/Makefile.core.def (freedos): New module.
12278 * grub-core/lib/i386/relocator.c (grub_relocator16_ebx): New extern
12280 (grub_relocator16_boot): Handle %ebx.
12281 * grub-core/lib/i386/relocator16.S: Likewise.
12282 * grub-core/loader/i386/pc/freedos.c: New file.
12284 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12286 Long Linux command line support.
12288 * grub-core/loader/i386/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12289 (maximal_cmdline_size): New variable.
12290 (allocate_pages): Use maximal_cmdline_size.
12291 (grub_cmd_linux): Set and use maximal_cmdline_size.
12292 * grub-core/loader/i386/pc/linux.c (GRUB_LINUX_CL_END_OFFSET): Removed.
12293 (allocate_pages): Use maximal_cmdline_size.
12294 (grub_cmd_linux): Set and use maximal_cmdline_size.
12295 * include/grub/i386/linux.h (GRUB_LINUX_SETUP_MOVE_SIZE): Removed.
12296 (linux_kernel_header): Add fields kernel_alignment, relocatable, pad
12299 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12300 2011-05-18 Colin Watson <cjwatson@ubuntu.com>
12302 Improve devmapper support
12304 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Removed.
12305 (grub_util_is_lvm): New function.
12306 (grub_util_get_dev_abstraction): Assume dmraid if not lvm rather
12307 than lvm if not dmraid.
12308 Handle mapped md nodes.
12309 * grub-core/kern/emu/hostdisk.c (device_is_mapped): Rename to ...
12310 (grub_util_device_is_mapped): ... this. Make always available. All users
12312 (grub_util_get_dm_node_linear_info) [HAVE_DEVICE_MAPPER]: New function.
12313 (convert_system_partition_to_system_disk): Handle lvm, mpath and
12315 * include/grub/emu/misc.h (grub_util_device_is_mapped): New proto.
12317 2011-05-18 Vladimir Serbinenko <phcoder@gmail.com>
12319 Unify grub-mkrescue (except powerpc) and grrub-mknetdir across platforms
12321 * grub-core/Makefile.am (platform_DATA): Add modinfo.sh.
12322 * grub-core/modinfo.sh.in: New file.
12323 * grub-core/Makefile.core.def (modinfo.sh): New script.
12324 * util/grub-mknetdir.in: Use modinfo.sh.
12325 * util/grub-mkrescue.in: Likewise.
12327 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12329 * grub-core/kern/ia64/dl_helper.c (grub_ia64_dl_get_tramp_got_size):
12330 Fix potential usage of Elf32 instead of Elf64 when compiling on
12331 32-bit architecture. Add endianness macros while on it.
12333 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12335 Use mipsel- rather than mips- in directories involving mipsel ports to
12336 allow both endiannesses coexist.
12338 * configure.ac: proparate target_cpu=mipsel rather than resetting to
12339 mips. All conditions adjusted.
12340 * tests/util/grub-shell-tester.in: Remove gratuitious target_cpu
12342 * util/grub-install.in: Adjust conditions to take renaming into account.
12343 * util/grub-mkimage.c (image_targets): Likewise. New target
12344 mips-qemu_mips-elf for bigendian mips.
12346 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12348 Avoid unnecessary copying on MIPS.
12350 * grub-core/boot/decompressor/none.c (grub_decompress_core): Exit
12351 early if src == dest.
12352 * util/grub-mkimage.c (generate_image): Arange for src == dest if
12353 compression is none.
12355 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12357 Reduce memory footprint on SGI by putting modules before the kernel
12358 as opposed to after.
12360 * grub-core/Makefile.core.def (kernel): Increase linking address.
12361 (none_decompress): Likewise.
12362 (xz_decompress): Likewise.
12363 * grub-core/boot/mips/startup_raw.S: Use prewritten uncompression
12365 * grub-core/kern/mips/arc/init.c (grub_machine_init): Handle memory
12367 (grub_arch_modules_addr): New function.
12368 * grub-core/kern/mips/init.c (grub_arch_modules_addr): Moved from here...
12369 * grub-core/kern/mips/loongson/init.c (grub_arch_modules_addr): .. here
12370 * grub-core/kern/mips/qemu_mips/init.c (grub_arch_modules_addr): ... and
12372 * grub-core/kern/mips/startup.S (total_size): Rename to ...
12373 (grub_total_modules_size): ... this. Make global.
12374 [GRUB_MACHINE_ARC]: Don't attempt to move modules out of the bss.
12375 * include/grub/offsets.h (GRUB_KERNEL_MIPS_LOONGSON_UNCOMPRESSED_ADDR):
12377 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_ADDR): Likewise.
12378 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_ADDR): Likewise.
12379 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_ADDR): Likewise.
12380 (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): Increased.
12381 * util/grub-mkimage.c (image_target_desc): New flag
12382 PLATFORM_FLAGS_MODULES_BEFORE_KERNEL.
12383 (image_targets): Set PLATFORM_FLAGS_MODULES_BEFORE_KERNEL on mips-arc.
12384 (generate_image): Handle images with modules before kernel.
12386 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12388 Prevent potential loss of memory map by overwrite on qemu-mips.
12390 * grub-core/boot/mips/startup_raw.S [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12391 Save ram size in $s4.
12392 * grub-core/kern/mips/qemu_mips/init.c (RAMSIZE): Removed.
12393 All users changed to grub_arch_memsize.
12394 * grub-core/kern/mips/startup.S (grub_arch_machine): Restrict to
12396 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Save grub_arch_memsize.
12397 * grub-core/loader/mips/linux.c (grub_linux_boot): Pass memory size.
12398 * include/grub/mips/qemu_mips/memory.h (grub_arch_memsize): New
12401 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12403 * .bzrignore: Remove grub-dumpbios.
12405 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12407 * util/grub.d/20_linux_xen.in: Honour GRUB_CMDLINE_LINUX_XEN_REPLACE
12408 and GRUB_CMDLINE_LINUX_XEN_REPLACE_DEFAULT, which replace
12409 GRUB_CMDLINE_LINUX and GRUB_CMDLINE_LINUX_DEFAULT (complementing the
12410 existing options which append).
12411 * docs/grub.texi (Simple configuration): Document new options.
12412 Reported by: Ian Jackson. Fixes Debian bug #617538.
12414 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12416 * util/grub-fstest.c (cmd_cat): New function.
12417 (fstest): Handle CMD_CAT.
12418 (options): Add cat.
12419 (argp_parser): Handle cat.
12421 2011-05-17 Colin Watson <cjwatson@ubuntu.com>
12423 * Makefile.util.def (grub-bin2h): Don't install.
12424 * docs/man/grub-bin2h.h2m: Remove.
12426 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12428 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Move to the right
12431 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12433 Reenable qemu-mips port.
12435 * configure.ac: Handle --target=qemu-mips and --target=qemu_mips.
12436 Fix small arc bug while on it.
12437 * gentpl.py: Handle qemu_mips.
12438 * grub-core/Makefile.am: Likewise.
12439 * grub-core/Makefile.core.def: Likewise.
12440 * grub-core/disk/ata.c [GRUB_MACHINE_MIPS_QEMU_MIPS]: Remove
12441 inappropriate includes.
12442 (grub_ata_pciinit) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Removed.
12443 (grub_ata_initialize): [GRUB_MACHINE_MIPS_QEMU_MIPS]: Rewritten.
12444 * grub-core/kern/main.c (grub_modules_get_end)
12445 [GRUB_MACHINE_MIPS_QEMU_MIPS]: Enable.
12446 * grub-core/kern/mips/qemu-mips: Moved to ..
12447 * grub-core/kern/mips/qemu_mips: ... this.
12448 * grub-core/kern/mips/qemu_mips/init.c (grub_get_rtc): Removed.
12449 (grub_machine_init): Call terminfo_init and serial_init.
12450 * grub-core/kern/mips/startup.S: Change MIPS_LOONGSON to MACHINE.
12451 * grub-core/loader/mips/linux.c (params) [GRUB_MACHINE_MIPS_QEMU_MIPS]:
12453 (grub_linux_boot) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle the qemu-mips
12455 (grub_linux_unload) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Free params.
12456 (grub_cmd_linux) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Handle params.
12457 (grub_cmd_initrd) [GRUB_MACHINE_MIPS_QEMU_MIPS]: Likewise.
12458 * include/grub/mips/qemu_mips/cmos.h: New file.
12459 * include/grub/mips/qemu-mips/kernel.h: Don't include cpu/kernel.h.
12460 * include/grub/mips/qemu-mips/memory.h (grub_machine_mmap_iterate):
12462 * include/grub/mips/qemu-mips/serial.h (GRUB_MACHINE_SERIAL_PORTS):
12463 Use correct mips-style address.
12464 * include/grub/mips/qemu-mips/time.h: Include cpu/time.h.
12465 (GRUB_TICKS_PER_SECOND): Removed.
12466 (grub_get_rtc): Likewise.
12467 (grub_cpu_idle): Likewise.
12468 * include/grub/offsets.h (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ADDR):
12470 (GRUB_KERNEL_MIPS_QEMU_MIPS_LINK_ALIGN): Likewise.
12471 (GRUB_KERNEL_MIPS_QEMU_MIPS_COMPRESSED_SIZE): Likewise.
12472 (GRUB_KERNEL_MIPS_QEMU_MIPS_UNCOMPRESSED_SIZE): Likewise.
12473 (GRUB_KERNEL_MIPS_QEMU_MIPS_TOTAL_MODULE_SIZE): Likewise.
12474 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX): Likewise.
12475 (GRUB_KERNEL_MIPS_QEMU_MIPS_PREFIX_END): Likewise.
12476 (GRUB_KERNEL_MIPS_QEMU_MIPS_MOD_ALIGN): Likewise.
12477 * util/grub-mkimage.c (image_targets): Add mipsel-qemu_mips-elf.
12479 2011-05-17 Vladimir Serbinenko <phcoder@gmail.com>
12483 * Makefile.util.def (libgrubmods.a): Add dvh.c.
12484 * conf/Makefile.common (CCASFLAGS_PLATFORM): Add -mips3 on all mips
12486 * configure.ac: New target mips-arc.
12487 * gentpl.py: Likewise.
12488 * grub-core/Makefile.am: Likewise.
12489 * grub-core/Makefile.core.def: Likewise.
12490 (xz_decompress): Remove -D GRUB_MACHINE_LINK_ADDR.
12491 (none_decompress): Likewise.
12492 (lsdev): New module.
12493 (datetime): Use lib/arc/datetime.c on ARC.
12494 (part_dvh): New module.
12495 * grub-core/commands/arc/lsdev.c: New file.
12496 * grub-core/disk/arc/arcdisk.c: Likewise.
12497 * grub-core/kern/mips/arc/init.c: Likewise.
12498 * grub-core/kern/mips/cache_flush.S: Don't flush non 4-byte
12500 * grub-core/kern/mips/dl.c (grub_arch_dl_check_header): Fix bigendian
12502 (grub_arch_dl_relocate_symbols): Likewise.
12503 * grub-core/kern/mips/loongson/init.c (grub_get_rtc): Moved from here...
12504 * grub-core/kern/mips/init.c (grub_get_rtc): ... here.
12505 * grub-core/kern/mips/startup.S (grub_arch_cpuclock): Have on all
12507 * grub-core/lib/arc/datetime.c: New file.
12508 * grub-core/loader/mips/linux.c: Always include time.h. Don't include
12509 pci.h on non-loongson.
12510 (envp_off) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove.
12511 (grub_linux_boot): Set unused registers to 0.
12512 (grub_cmd_linux) [!GRUB_MACHINE_MIPS_LOONGSON]: Remove envp.
12513 * grub-core/mmap/mips/loongson/uppermem.c: Moved from here ...
12514 * grub-core/mmap/mips/uppermem.c: ...here.
12515 * grub-core/partmap/dvh.c: New file.
12516 * grub-core/term/arc/console.c: Likewise.
12517 * grub-core/term/terminfo.c (ANSI_C0_STR): New const.
12518 (grub_terminfo_set_current): Add terminal "arc".
12519 (grub_terminfo_readkey): Support ARC sequences.
12520 * include/grub/arc/arc.h: New file.
12521 * include/grub/arc/console.h: Likewise.
12522 * include/grub/disk.h (grub_disk_dev_id): Add
12523 GRUB_DISK_DEVICE_ARCDISK_ID.
12524 * include/grub/mips/arc/kernel.h: New file.
12525 * include/grub/mips/arc/memory.h: Likewise.
12526 * include/grub/mips/arc/time.h: Likewise.
12527 * include/grub/mips/loongson/kernel.h (grub_halt): Moved from here ...
12528 * include/grub/mips/kernel.h (grub_halt): ... here.
12529 * include/grub/mips/loongson.h (GRUB_CPU_REGISTER_WRAP): Moved from
12531 * include/grub/mips/mips.h (GRUB_CPU_REGISTER_WRAP): ... here.
12532 (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): Moved from here ...
12533 * include/grub/mips/mips.h (GRUB_CPU_LOONGSON_COP0_TIMER_COUNT): .. here
12534 * include/grub/mips/loongson/kernel.h (grub_reboot): Removed redundant
12536 * include/grub/mips/loongson/memory.h (GRUB_ARCH_LOWMEMVSTART): Moved
12538 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMVSTART): ... here.
12539 (GRUB_ARCH_LOWMEMPSTART): Moved from here ...
12540 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMPSTART): ... here.
12541 (GRUB_ARCH_LOWMEMMAXSIZE): Moved from here ...
12542 * include/grub/mips/memory.h (GRUB_ARCH_LOWMEMMAXSIZE): ... here.
12543 (GRUB_ARCH_HIGHMEMPSTART): Moved from here ...
12544 * include/grub/mips/memory.h (GRUB_ARCH_HIGHMEMPSTART): ... here.
12545 (grub_phys_addr_t): Moved from here ...
12546 * include/grub/mips/memory.h (grub_phys_addr_t): ... here.
12547 (grub_vtop): Moved from here ...
12548 * include/grub/mips/memory.h (grub_vtop): ... here.
12549 (grub_map_memory): Moved from here ...
12550 * include/grub/mips/memory.h (grub_map_memory): ... here.
12551 (grub_unmap_memory): Moved from here ...
12552 * include/grub/mips/memory.h (grub_unmap_memory): ... here.
12553 (grub_machine_mmap_iterate): Moved from here ...
12554 * include/grub/mips/memory.h (grub_machine_mmap_iterate): ... here.
12555 (grub_mmap_get_lower): Moved from here ...
12556 * include/grub/mips/memory.h (grub_mmap_get_lower): ... here.
12557 (grub_mmap_get_upper): Moved from here ...
12558 * include/grub/mips/memory.h (grub_mmap_get_upper): ... here.
12559 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12561 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12562 * include/grub/mips/loongson/time.h (grub_get_rtc): Moved from
12564 * include/grub/mips/time.h (grub_get_rtc): ... here.
12565 * include/grub/mips/loongson/time.h (grub_arch_cpuclock): Moved from
12567 * include/grub/mips/time.h (grub_arch_cpuclock): ... here.
12568 * include/grub/mips/loongson/time.h (grub_cpu_idle): Moved from
12570 * include/grub/mips/time.h (grub_cpu_idle): ... here.
12571 * include/grub/offsets.h (GRUB_KERNEL_MIPS_ARC_LINK_ADDR): New
12573 (GRUB_KERNEL_MIPS_ARC_LINK_ALIGN): Likewise.
12574 (GRUB_KERNEL_MIPS_ARC_COMPRESSED_SIZE): Likewise.
12575 (GRUB_KERNEL_MIPS_ARC_UNCOMPRESSED_SIZE): Likewise.
12576 (GRUB_KERNEL_MIPS_ARC_TOTAL_MODULE_SIZE): Likewise.
12577 (GRUB_KERNEL_MIPS_ARC_PREFIX): Likewise.
12578 (GRUB_KERNEL_MIPS_ARC_PREFIX_END): Likewise.
12579 (GRUB_KERNEL_MIPS_ARC_MOD_ALIGN): Likewise.
12580 (GRUB_MACHINE_LINK_ADDR): Likewise.
12581 * include/grub/terminfo.h (GRUB_TERMINFO_READKEY_MAX_LEN): Increased
12583 * util/grub-install.in: Run dvhtool on ARC.
12584 * util/grub-mkimage.c (image_targets): Add mips-arc.
12585 (generate_image): Handle ECOFF output for mips-arc.
12587 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12589 * grub-core/bus/pci.c (grub_memalign_dma32): Always allocate in 64-byte
12592 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12594 * grub-core/bus/usb/usbhub.c (attach_root_port): Wait 10ms
12595 after enabling port.
12597 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12599 Skip incorrect USB devices.
12601 * grub-core/bus/usb/usb.c (grub_usb_device_initialize): Fail if
12603 * include/grub/usb.h (grub_usb_err_t): New enum value
12604 GRUB_USB_ERR_BADDEVICE.
12606 2011-05-16 Vladimir Serbinenko <phcoder@gmail.com>
12608 Fuloong video init support.
12610 * include/grub/vga.h (grub_vga_write_arx): inb monochrome address as
12612 (grub_vga_read_arx): New function.
12613 * grub-core/video/sis315pro.c (GRUB_SIS315PRO_MMIO_SPACE): New
12615 (framebuffer): New members io, mmioptr and mmiobase.
12616 (read_sis_cmd): New function.
12617 (write_sis_cmd): Likewise.
12618 (grub_video_sis315pro_setup): Do the initialisation. Use 640x480
12619 rather than 640x400.
12620 * grub-core/video/sis315_init.c: New file.
12622 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12624 * grub-core/bus/cs5536.c: Don't include grub/machine/kernel.h on
12626 * grub-core/kern/mips/dl.c (grub_arch_dl_init_linker): Fix argument
12627 to grub_dl_register_symbol.
12629 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12631 Fix compilation errors.
12633 * grub-core/term/ns8250.c (serial_get_divisor): Declare 'port' as
12634 potentially unused.
12635 * grub-core/loader/i386/linux.c (grub_linux_setup_video):
12636 Handle GRUB_VIDEO_DRIVER_SIS315PRO.
12637 * grub-core/bus/cs5536.c (grub_cs5536_init_geode): Restrict DIVIL init
12638 to loongson machines.
12640 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12642 Several FS mtime support.
12644 * grub-core/fs/affs.c (grub_affs_time): New struct.
12645 (grub_affs_file): New field mtime.
12646 (grub_fshelp_node): Changed 'block' and 'parent' to more appropriate
12647 type. Removed 'size'. New field 'di'. All users updated.
12648 (grub_affs_mount): Simplify checsum checking.
12649 (grub_affs_iterate_dir): New helper grub_affs_create_node.
12650 (grub_affs_dir): Handle mtime.
12651 * grub-core/fs/cpio.c (grub_cpio_find_file): Handle mtime.
12652 (grub_cpio_dir): Likewise.
12653 * grub-core/fs/hfs.c (grub_hfs_dirrec): New fields 'ctime' and 'mtime'.
12654 (grub_hfs_filerec): New field mtime.
12655 (grub_hfs_dir): Handle mtime.
12656 (grub_hfs_mtime): New function.
12657 (grub_hfs_fs): Register grub_hfs_mtime.
12658 * grub-core/fs/iso9660.c (grub_iso9660_date2): New struct.
12659 (grub_iso9660_dir): New field mtime.
12660 (grub_fshelp_node): New field dirent.
12661 (iso9660_to_unixtime): New function.
12662 (iso9660_to_unixtime2): Likewise.
12663 (grub_iso9660_read_symlink): Use node->dirent.
12664 (grub_iso9660_iterate_dir): Likewise.
12665 (grub_iso9660_dir): Set mtime.
12666 (grub_iso9660_mtime): New function.
12667 (grub_iso9660_fs): Register grub_iso9660_mtime.
12668 * grub-core/fs/jfs.c (grub_jfs_time): New struct.
12669 (grub_jfs_inode): New fields atime, ctime and mtime.
12670 (grub_jfs_dir): Set mtime.
12671 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
12672 * grub-core/fs/ntfs.c (list_file): Set mtime.
12673 (grub_ntfs_dir): Likewise.
12674 * grub-core/fs/reiserfs.c (grub_fshelp_node): New field 'mtime'.
12675 (grub_reiserfs_iterate_dir): Set mtime.
12676 (grub_reiserfs_dir): Likewise.
12677 * grub-core/fs/sfs.c (grub_sfs_obj): New field mtime.
12678 (grub_fshelp_node): Likewise.
12679 (grub_sfs_iterate_dir): Set mtime.
12680 (grub_sfs_dir): Likewise.
12681 * grub-core/fs/udf.c (grub_udf_dir): Set mtime.
12682 * grub-core/fs/xfs.c (grub_xfs_time): New struct.
12683 (grub_xfs_inode): New fields atime, mtime, ctime.
12684 (grub_xfs_dir): Set mtime.
12685 * include/grub/datetime.h (grub_datetime2unixtime): New function.
12686 * include/grub/hfs.h (grub_hfs_sblock): New fields ctime and mtime.
12687 * include/grub/ntfs.h (grub_fshelp_node): New field mtime.
12689 Support UDF symlinks.
12691 * grub-core/fs/udf.c (grub_udf_iterate_dir): Handle symlinks.
12692 (grub_ufs_read_symlink): New function. All users updated.
12694 Check amiga partmap checksum.
12696 * grub-core/partmap/amiga.c (grub_amiga_rdsk): Pad to 128 bytes.
12697 (grub_amiga_partition): Likewise.
12698 (amiga_partition_map_checksum): New function.
12699 (amiga_partition_map_iterate): Check checksum.
12701 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12705 * Makefile.util.def (libgrubmods.a): Add romfs.
12706 * grub-core/Makefile.core.def (romfs): New module.
12707 * grub-core/fs/romfs.c: New file.
12709 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12711 Squashfs v4 support.
12713 * Makefile.util.def (libgrubmods.a): Add squash4.
12714 * grub-core/Makefile.core.def (squash4): New module.
12715 * grub-core/fs/squash4.c: New file.
12716 * grub-core/io/gzio.c (grub_gzio): New members disk_input_off,
12717 disk_input_start, disk_input.
12718 (get_byte): Handle disk_input.
12719 (grub_zlib_disk_read): New function.
12720 * include/grub/deflate.h (grub_zlib_disk_read): New proto.
12722 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12723 2011-05-15 Feiran Zheng <famcool@gmail.com>
12725 * Makefile.util.def (libgrubmods.a): Add minix3.
12726 * grub-core/Makefile.core.def (minix3): New module.
12727 * grub-core/fs/minix.c (GRUB_MINIX_MAGIC) [MODE_MINIX3]: New value.
12728 (GRUB_MINIX_BSIZE): Removed.
12729 (GRUB_MINIX_INODE_DIR_BLOCKS): New definition. All users updated.
12730 (grub_minix_ino_t): New type.
12731 (grub_minix_le_to_cpu_ino): New macro.
12732 (GRUB_MINIX_ZONE2SECT): New definition. All users updated.
12733 (grub_minix_sblock) [MODE_MINIX3]: Change for minix3.
12734 (grub_minix_data): New field block_size.
12735 (grub_minix_read_file): Handle 64-bit correctly.
12736 * grub-core/fs/minix3.c: New file.
12738 2011-05-15 Tristan Gingold <gingold@free.fr>
12739 2011-05-15 Robert Millan <rmh.grub@aybabtu.com>
12740 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12744 * Makefile.util.def (libgrubmods.a): Add grub-core/kern/ia64/dl_helper.c
12745 * configure.ac: Add ia64-efi target.
12746 Probe for __ia64_trampoline, __udivsi3, __umoddi3, __udivdi3,
12747 __divsi3, __modsi3, __umodsi3, __moddi3 and __divdi3 symbols.
12748 * gentpl.py: Add ia64_efi platform.
12749 Rename x86_efi to efi and Add ia64-efi. All users updated.
12750 * grub-core/Makefile.am: Set KERNEL_HEADER_FILES for ia64-efi.
12751 * grub-core/Makefile.core.def (kernel.img): Add compile flags for ia64.
12752 Remove kern/generic/rtc_get_time_ms.c on EFI.
12753 Add kern/ia64/efi/startup.S, kern/ia64/efi/init.c, kern/ia64/dl.c,
12754 kern/ia64/dl_helper.c on ia64-efi.
12755 Add kern/emu/cache.c on emu.
12756 (linux): Use on loader/ia64/efi/linux.c on ia64.
12757 * grub-core/gensymlist.sh (grub_register_exported_symbols): Check
12758 whether symbol is a function.
12759 * grub-core/kern/dl.c [GRUB_MACHINE_EMU]: Include sys/mman.h.
12760 (grub_symbol): New field 'isfunc'.
12761 (grub_dl_resolve_symbol): Return whole symbol rather than just address.
12762 (grub_dl_register_symbol): New argument 'isfunc'. All users updated.
12763 (grub_dl_load_segments): Place all sections into the same region.
12764 [__ia64__]: Create trampolines and got.
12765 [GRUB_MACHINE_EMU]: Call mprotect.
12766 (grub_dl_resolve_symbols): Resolve symbol type as well.
12767 [__ia64__]: Create function descriptors.
12768 * grub-core/kern/efi/efi.c (grub_get_rtc): Renamed to ...
12769 (grub_rtc_get_time_ms): ... this. Expressions simplified.
12770 (grub_get_rtc): New function.
12771 * grub-core/kern/emu/cache.c [__ia64__]: New file.
12772 * grub-core/kern/emu/cache.S: Renamed to ...
12773 * grub-core/kern/emu/cache_s.S: ... this.
12774 [__ia64__]: Add a nop.
12775 * grub-core/kern/emu/full.c (grub_arch_dl_get_tramp_got_size)
12776 [__ia64__]: New function.
12777 * grub-core/kern/emu/lite.c [__ia64__]: Include ../ia64/dl.c.
12778 * grub-core/kern/ia64/dl.c: New file.
12779 * grub-core/kern/ia64/dl_helper.c: Likewise.
12780 * grub-core/kern/ia64/efi/init.c: New file.
12781 * grub-core/kern/ia64/efi/startup.S: Likewise.
12782 * grub-core/lib/efi/halt.c [__ia64__]: Don't try acpi.
12783 * grub-core/lib/ia64/longjmp.S: New file (from glibc).
12784 * grub-core/lib/ia64/setjmp.S: Likewise (from glibc).
12785 * grub-core/lib/setjmp.S [__ia64__]: Include ./ia64/setjmp.S.
12786 * grub-core/loader/ia64/efi/linux.c: New file.
12787 * include/grub/dl.h (GRUB_MOD_NAME): Redefined using C rather than asm.
12788 (GRUB_MOD_DEP): Likewise.
12789 (grub_dl) [__ia64__]: New fields got and tramp.
12790 (grub_dl): New field 'base'.
12791 (grub_dl_register_symbol): New argument isfunc. All users updated.
12792 (GRUB_IA64_DL_TRAMP_ALIGN): New definition.
12793 (GRUB_IA64_DL_TRAMP_SIZE): Likewise.
12794 (GRUB_IA64_DL_GOT_ALIGN): Likewise.
12795 (grub_ia64_dl_get_tramp_got_size): New proto.
12796 (GRUB_ARCH_DL_TRAMP_ALIGN) [__ia64__]: Likewise
12797 (GRUB_ARCH_DL_GOT_ALIGN) [__ia64__]: Likewise
12798 (grub_arch_dl_get_tramp_got_size) [__ia64__]: Likewise
12799 * include/grub/efi/api.h: Skip call wrappers on ia64.
12800 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_IA64): New definition.
12801 * include/grub/efi/time.h (GRUB_TICKS_PER_SECOND): Change to 1000.
12802 * include/grub/elf.h (ELF_ST_INFO): New definition.
12803 * include/grub/ia64/efi/kernel.h: New file.
12804 * include/grub/ia64/efi/memory.h: Likewise.
12805 * include/grub/ia64/efi/time.h: Likewise.
12806 * include/grub/ia64/kernel.h: Likewise.
12807 * include/grub/ia64/setjmp.h: Likewise (from glibc).
12808 * include/grub/ia64/time.h: New file.
12809 * include/grub/ia64/types.h: Likewise.
12810 * include/grub/libgcc.h (__udivsi3, __umodsi3, __umoddi3, __udivdi3,
12811 __moddi3, __divdi3, __divsi3, __modsi3, __ia64_trampoline):
12813 * include/grub/offsets.h (GRUB_KERNEL_IA64_EFI_PREFIX): New definition.
12814 (GRUB_KERNEL_IA64_EFI_PREFIX_END): Likewise.
12815 * include/grub/types.h (PRIxGRUB_ADDR): Likewise.
12816 * util/grub-mkimage.c (image_target_desc): New field pe_target.
12818 (EFI64_HEADER_SIZE): New definition. All users updated.
12819 (image_targets): Add ia64-efi.
12820 * util/grub-mkimagexx.c (relocate_symbols): New arguments jumpers and
12821 jumpers_addr. All users updated.
12822 Create function descriptors.
12823 (count_funcs): New function.
12824 (unaligned_uint32): New struct.
12825 (MASK20): New definition.
12826 (MASK19): Likewise.
12827 (MASKF21): Likewise.
12828 (add_value_to_slot_20b): New function.
12829 (add_value_to_slot_21_real): Likewise.
12830 (add_value_to_slot_21): Likewise.
12831 (ia64_kernel_trampoline): New struct.
12832 (nopm): New variable.
12834 (make_trampoline): New function.
12835 (relocate_addresses): Handle ia64.
12836 (make_reloc_section): Likewise.
12837 (load_image): Likewise.
12839 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12841 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Silence spurious
12842 warning. Move variables before code while on it.
12844 2011-05-15 Vladimir Serbinenko <phcoder@gmail.com>
12848 * configure.ac: Rename yeeloong platform to loongson. All users updated.
12849 * grub-core/Makefile.core.def (fwstart_fuloong): New image.
12850 * grub-core/boot/mips/loongson/fuloong.S: New file.
12851 * grub-core/boot/mips/loongson/fwstart.S: Wait for CS5536 to come up.
12852 Explicitly init CS5536.
12853 [FULOONG]: Don't use serial until CS5536 is available.
12854 Set GPIO based on dumps.
12855 (serial_hw_init) [FULOONG]: Handle CS5536 parts.
12856 [FULOONG]: Handle GPIO and memory controller differences.
12857 Parse machine type in $a2.
12858 * grub-core/boot/mips/startup_raw.S: Determine and save the
12860 * grub-core/bus/cs5536.c (gpiodump): Move to fwstart.S.
12861 (grub_cs5536_init_geode): Remove gpio part. Conditionalise DIVIL
12862 init on architecture type.
12863 * grub-core/kern/mips/loongson/init.c (grub_machine_init): Init
12864 SIS315E. Don't init at_keyboard on fuloong.
12865 (grub_halt): Support Fuloong.
12866 * grub-core/kern/mips/startup.S [LOONGSON]: Save $s7.
12867 * grub-core/loader/mips/linux.c (LOONGSON_MACHTYPE): Removed.
12868 (loongson_machtypes): New array.
12869 (grub_cmd_linux) [GRUB_MACHINE_MIPS_LOONGSON]: Pass the right machine
12871 * grub-core/term/ns8250.c (serial_get_divisor): New parameter port and
12872 config. All users updated. Handle CS5536 serial.
12873 * grub-core/term/serial.c (grub_serial_register): Conditionalise
12874 default port on machine type. Register serial as inactive.
12875 * grub-core/video/sis315pro.c: New file.
12876 * include/grub/cs5536.h (GRUB_CS5536_MSR_MAILBOX_CONFIG_ENABLED): New
12878 (GRUB_CS5536_MSR_MAILBOX_CONFIG): Likewise.
12879 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART1_COM1): Likewise.
12880 (GRUB_CS5536_MSR_DIVIL_LEG_IO_UART2_COM3): Likewise.
12881 (GRUB_CS5536_MSR_DIVIL_UART1_CONF): Likewise.
12882 (GRUB_CS5536_MSR_DIVIL_UART2_CONF): Likewise.
12883 * include/grub/mips/loongson.h (GRUB_CPU_LOONGSON_SHUTDOWN_GPIO): Rename
12885 (GRUB_CPU_YEELOONG_SHUTDOWN_GPIO): ... this.
12886 * include/grub/mips/loongson/kernel.h (GRUB_ARCH_MACHINE_YEELOONG): New
12888 (GRUB_ARCH_MACHINE_FULOONG): Likewise.
12889 (grub_arch_machine): New extern var.
12890 * include/grub/mips/loongson/serial.h
12891 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Renamed to ...
12892 (GRUB_MACHINE_SERIAL_PORT0_DIVISOR_115200): ... this.
12893 (GRUB_MACHINE_SERIAL_PORT): Renamed to ...
12894 (GRUB_MACHINE_SERIAL_PORT0): ... this.
12895 (GRUB_MACHINE_SERIAL_PORT2_DIVISOR_115200): New definition.
12896 (GRUB_MACHINE_SERIAL_PORT1): Likewise.
12897 (GRUB_MACHINE_SERIAL_PORT2): Likewise.
12898 (GRUB_MACHINE_SERIAL_PORTS): Include ports 1 and 2.
12899 * include/grub/term.h (grub_term_register_input_inactive): New inline
12901 (grub_term_register_output_inactive): Likewise.
12902 * include/grub/video.h (grub_video_driver_id): New value
12903 GRUB_VIDEO_DRIVER_SIS315PRO.
12904 * util/grub-mkimage.c (image_target_desc): Rename name to dirname.
12905 New field "names". All users updated.
12906 New field value IMAGE_FULOONG_FLASH.
12907 (generate_image): USe separate fwstart hashes for yeeloong and fuloong.
12909 2011-05-14 Jordan Uggla <jordan.uggla@gmail.com>
12911 * docs/grub.texi (Invoking grub-install): Fix additional outdated claims
12912 and add some clarification.
12914 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12916 * util/grub.d/10_linux.in: Autoload gzio since it's needed on some
12917 platforms if kernel is compressed.
12919 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12921 * grub-core/kern/mm.c (grub_memalign): Disable auto-unloadding of
12922 unused modules since currently referrence counter isn't reliable and
12923 there isn't much memory to recover there anyway.
12925 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12927 * grub-core/kern/dl.c (grub_dl_load_file): Decrease ref counter
12928 rather than resetting it to allow modules to reference themselves
12931 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12933 * grub-core/kern/dl.c (grub_dl_unload): Don't decrease reference
12934 counter on dependencies since grub_dl_unref already handles this.
12936 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12938 * grub-core/font/font_cmd.c (loadfont_command): Set grub_errno
12939 on error if not already done.
12941 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12943 Fix few potential memory misusage.
12945 * grub-core/font/font.c (load_font_index): Don't free char_index to
12947 (grub_font_load): Zero-fill font at alloc for safety.
12948 Close file on error.
12949 (free_font): Free bmp_idx.
12951 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12953 * docs/grub.texi (Installation): Fix several outdated claims.
12955 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12957 Handle module_license on windows.
12959 * util/grub-pe2elf.c (MODLICENSE_SECTION): New definition. All following
12961 (insert_string): Make argument const char * instead of char *.
12962 (write_section_data): Handle long section names.
12963 Handle module_license.
12965 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12967 * grub-core/commands/menuentry.c (grub_cmd_menuentry): Correctly
12968 handle class-free menuentries.
12969 (grub_normal_add_menu_entry): Add a check to be sure.
12971 2011-05-14 Vladimir Serbinenko <phcoder@gmail.com>
12973 * grub-core/term/at_keyboard.c (set1_e0_mapping): Fix swap between
12976 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12978 * configure.ac: Bump version to 1.99.
12980 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12982 Give ATA device a bit more time on first try in order to allow disks
12985 * grub-core/disk/ata.c (grub_atapi_identify): Use GRUB_ATA_TOUT_DEV_INIT
12986 if dev->present is 1. Reset dev->present on failure.
12987 (grub_ata_device_initialize): Set dev->present to 1.
12988 * include/grub/ata.h (GRUB_ATA_TOUT_DEV_INIT): New value.
12989 (grub_ata_device): New member 'present'.
12991 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12993 * util/grub-mkimage.c (generate_image): Update hash.
12995 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
12997 Flush caches on DMA memory.
12999 * grub-core/kern/mips/cache.S (grub_arch_sync_dma_caches): New function.
13000 * grub-core/bus/pci.c (grub_memalign_dma32): Flush caches.
13001 (grub_dma_free): Likewise.
13002 * include/grub/cache.h (grub_arch_sync_dma_caches): New declaration.
13004 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13006 * grub-core/boot/mips/yeeloong/fwstart.S: Add explicit set mips3
13007 to avoid asm treating ld and sd as macros.
13009 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13011 * grub-core/boot/mips/startup_raw.S: Flush cache after loading
13014 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13016 * grub-core/boot/mips/startup_raw.S: Use jalr rather than bal to call
13017 grub_decompress_core since later would fail if grub_decompress_core
13020 2011-05-13 Vladimir Serbinenko <phcoder@gmail.com>
13022 * grub-core/kern/mips/dl.c (grub_arch_dl_relocate_symbols): Handle
13023 R_MIPS_JALR since it's used by newer compiler.
13025 2011-05-10 Vladimir Serbinenko <phcoder@gmail.com>
13027 * util/grub.d/10_linux.in: Correctly handle the Linux in root.
13029 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13031 * grub-core/loader/efi/chainloader.c (grub_chainloader_unload): Set
13032 file_path to 0 for surety.
13033 (grub_chainloader_boot): Set exit_data to NULL.
13034 Unset the loader once done.
13035 (grub_cmd_chainloader): Fix confusing error message if file is empty.
13037 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13039 * grub-core/term/at_keyboard.c (fetch_key): Make a printf on
13040 unknown key into a dprintf.
13042 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13044 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Don't abort
13045 on first non-existant partition.
13047 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13049 * grub-core/kern/emu/hostdisk.c (open_device): Set data->fd to -1 if
13051 Reported by: Mark Korenberg.
13053 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13055 * grub-core/kern/emu/hostdisk.c (linux_find_partition): Prevent possible
13058 2011-05-09 Vladimir Serbinenko <phcoder@gmail.com>
13060 * util/grub-mkimage.c (main): Explicitely flush and sync the output
13061 before closing to ensure that it will be readable by grub-setup.
13063 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13065 * grub-core/loader/efi/appleloader.c (MAKE_PIWG_PATH): New macro.
13066 (devpath_1): Use MAKE_PIWG_PATH.
13067 (devpath_2): Likewise.
13068 (devpath_3): Likewise.
13069 (devpath_4): Likewise.
13070 (devpath_5): Likewise.
13071 (devpath_6): Likewise.
13073 The appleldr.mod was checked that to be binary identical to previous
13076 2011-05-05 Zach <mikezackles>
13078 Support 2010 Macbooks.
13080 * grub-core/loader/efi/appleloader.c (devpath_6): New variable.
13081 (devs): Add devpath_6.
13083 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13085 * util/grub-mkpasswd-pbkdf2.c (main): Use /dev/urandom and not
13086 /dev/random. /dev/urandom is good enough for our purposes (salting).
13088 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13090 * util/grub-mkrescue.in (process_input_dir): Include efiemu??.o.
13092 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13094 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Correctly handle
13097 2011-05-05 Vladimir Serbinenko <phcoder@gmail.com>
13099 * grub-core/efiemu/main.c (grub_efiemu_load_file): Return grub_errno
13100 and not 0 on failure.
13102 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13104 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_dir): Return
13105 GRUB_ERR_BAD_FS rather than GRUB_ERR_IO if the disk is not a pxe
13106 disk; otherwise grub_fs_probe will not fall back to the next
13108 (grub_pxefs_open): Likewise, for consistency.
13109 Reported and tested by: Ezekiel Grave.
13111 2011-05-03 Colin Watson <cjwatson@ubuntu.com>
13113 * tests/partmap_test.in: Don't hardcode path to parted.
13114 Reported by: Peter Hjalmarsson. Fixes Savannah bug #33150.
13116 2011-05-01 Colin Watson <cjwatson@ubuntu.com>
13118 * docs/grub.texi (GRUB only offers a rescue shell): Suggest the use
13119 of `ls' to find out which devices are available.
13121 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13123 * grub-core/loader/i386/linux.c (grub_linux_boot): Supply target rather
13124 than source address for efi mmap buffer.
13126 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13128 * grub-core/partmap/amiga.c (amiga_partition_map_iterate): Fix a
13129 wrong action on non-detecting the magic.
13131 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13133 * grub-core/gnulib/regex.c: Remove GRUB_MOD_LICENSE since it's
13134 already supplied by another part of the module (fixes compilation on
13137 2011-04-25 Vladimir Serbinenko <phcoder@gmail.com>
13139 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Make mdraid UUID
13140 match the one used by mdadm.
13142 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13144 * po/README: Add instructions for creating po/LINGUAS.
13146 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13148 Add "SEE ALSO" sections to most man pages. Fixes Debian bug
13151 * docs/man/grub-editenv.h2m (SEE ALSO): New section.
13152 * docs/man/grub-emu.h2m (SEE ALSO): Likewise.
13153 * docs/man/grub-fstest.h2m (SEE ALSO): Likewise.
13154 * docs/man/grub-install.h2m (SEE ALSO): Likewise.
13155 * docs/man/grub-macho2img.h2m (SEE ALSO): Likewise.
13156 * docs/man/grub-menulst2cfg.h2m (SEE ALSO): Likewise.
13157 * docs/man/grub-mkconfig.h2m (SEE ALSO): Likewise.
13158 * docs/man/grub-mkdevicemap.h2m (SEE ALSO): Likewise.
13159 * docs/man/grub-mkfont.h2m (SEE ALSO): Likewise.
13160 * docs/man/grub-mkimage.h2m (SEE ALSO): Likewise.
13161 * docs/man/grub-mklayout.h2m (SEE ALSO): Likewise.
13162 * docs/man/grub-mknetdir.h2m (SEE ALSO): Likewise.
13163 * docs/man/grub-mkpasswd-pbkdf2.h2m (SEE ALSO): Likewise.
13164 * docs/man/grub-mkrelpath.h2m (SEE ALSO): Likewise.
13165 * docs/man/grub-mkrescue.h2m (SEE ALSO): Likewise.
13166 * docs/man/grub-ofpathname.h2m (SEE ALSO): Likewise.
13167 * docs/man/grub-pe2elf.h2m (SEE ALSO): Likewise.
13168 * docs/man/grub-probe.h2m (SEE ALSO): Likewise.
13169 * docs/man/grub-reboot.h2m (SEE ALSO): Likewise.
13170 * docs/man/grub-script-check.h2m (SEE ALSO): Likewise.
13171 * docs/man/grub-set-default.h2m (SEE ALSO): Likewise.
13172 * docs/man/grub-setup.h2m (SEE ALSO): Likewise.
13174 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13176 * grub-core/kern/emu/getroot.c
13177 (grub_find_root_device_from_mountinfo): Remove non-virtual-device
13178 test that was incorrectly reintroduced in r3214.
13179 Reported by: Ian Dall. Fixes Savannah bug #33133.
13181 2011-04-21 Colin Watson <cjwatson@ubuntu.com>
13183 Fix stack pointer handling in 16-bit relocator.
13185 * grub-core/lib/i386/relocator16.S (grub_relocator16_start): Move
13186 grub_relocator16_sp to %esp rather than %ss, and zero-extend it.
13187 Fixes Ubuntu bug #683904.
13189 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13191 * configure.ac: Bump version to 1.99~rc2.
13193 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13195 * include/grub/dl.h [ASM_FILE]: Adapt for assembly.
13196 * grub-core/lib/i386/setjmp.S: Add missing GRUB_MOD_LICENSE.
13197 * grub-core/lib/x86_64/setjmp.S: Likewise.
13198 * grub-core/lib/mips/setjmp.S: Likewise.
13199 * grub-core/lib/powerpc/setjmp.S: Likewise.
13200 * grub-core/lib/sparc64/setjmp.S: Likewise.
13202 2011-04-20 Vladimir Serbinenko <phcoder@gmail.com>
13204 * grub-core/lib/efi/datetime.c: Add missing GRUB_MOD_LICENSE.
13205 * grub-core/lib/efi/datetime.c: Likewise.
13207 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13209 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_flush):
13211 (grub_util_biosdisk_close): Use grub_util_biosdisk_flush.
13212 * include/grub/emu/hostdisk.h (grub_util_biosdisk_flush): New proto.
13213 * util/grub-setup.c (setup): Use grub_util_biosdisk_flush.
13215 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13217 * grub-core/term/gfxterm.c (grub_gfxterm_fullscreen): Preserve previous
13219 (grub_gfxterm_term_init): Likewise.
13221 2011-04-19 Vladimir Serbinenko <phcoder@gmail.com>
13223 Take into account the decorations the computing menu entry width.
13225 * grub-core/gfxmenu/widget-box.c (get_border_width): New function.
13226 (grub_gfxmenu_create_box): Register get_border_width.
13227 * grub-core/gfxmenu/gui_list.c (draw_menu): Use get_border_width
13229 * include/grub/gfxwidgets.h (grub_gfxmenu_box): New member
13232 2011-04-18 Endres Puschner <code@e7p.de>
13234 * grub-core/gfxmenu/icon_manager.c (grub_gfxmenu_icon_manager_get_icon):
13235 Don't skip first class.
13237 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13239 * grub-core/fs/btrfs.c (grub_btrfs_read_logical): Support huge
13241 * include/grub/err.h (grub_err_t): New enum value GRUB_ERR_BUG.
13243 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13245 Complete 64-bit division support.
13247 * grub-core/kern/misc.c (grub_divmod64): Rename to ...
13248 (grub_divmod64_full): ... this. Support 64-bit divisor and reminder.
13249 * include/grub/misc.h (grub_divmod64): Rename to ...
13250 (grub_divmod64_full): ... this.
13251 (grub_divmod64): New inline function.
13253 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13255 * util/grub-mkimage.c (generate_image): Add forgotten comma.
13257 2011-04-18 Vladimir Serbinenko <phcoder@gmail.com>
13259 * util/grub-mkimage.c (generate_image): Update fwstart.img hash after
13260 performing the necessary test.
13262 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13264 * Makefile.am (multiboot.elf): Add -Wl,--build-id=none.
13265 (kfreebsd.elf): Likewise.
13266 (pc-chainloader.elf): Likewise.
13267 (ntldr.elf): Likewise.
13269 2011-04-17 Vladimir Serbinenko <phcoder@gmail.com>
13271 Identify RAID by its UUID rather than (guessed) name.
13273 * grub-core/disk/raid.c (ascii2hex): New function.
13274 (grub_raid_open): Accept mduuid/%s specification.
13275 * grub-core/kern/emu/getroot.c (get_mdadm_name): Revamped into ...
13276 (get_mdadm_uuid): ... this.
13277 (grub_util_get_grub_dev): Use mduuid/%s if UUID is available.
13279 2011-04-16 Vladimir Serbinenko <phcoder@gmail.com>
13281 * grub-core/gfxmenu/gui_image.c (rescale_image): Don't attempt to scale
13284 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13286 * util/grub.d/10_linux.in: Add rootflags=subvol=<name> if / is on a
13288 * util/grub.d/20_linux_xen.in: Likewise.
13290 2011-04-13 Colin Watson <cjwatson@ubuntu.com>
13292 Rewrite /proc/self/mountinfo handling to cope with bind-mounts and
13293 move-mounts appearing out of order. Fixes Ubuntu bug #738345.
13295 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
13296 Build a list of relevant visible mounts using the mnt_id and
13297 parent_mnt_id fields, and then scan that list at the end.
13299 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13301 * docs/grub.texi (normal): New section.
13302 (normal_exit): New section.
13303 (Embedded configuration): Add reference to normal.
13304 (GRUB only offers a rescue shell): Likewise.
13305 * docs/grub-dev.texi (Error Handling): Fix typo.
13307 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13309 * NEWS: Drop obsolete entry about probe-only btrfs support.
13311 2011-04-12 Colin Watson <cjwatson@ubuntu.com>
13313 * util/import_gcry.py: Fix typo.
13315 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13317 * NEWS: Add btrfs support.
13319 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13320 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13322 BtrFS support. Written by me (Vladimir) with important bugfixes and
13323 even more important testing by Colin.
13325 * Makefile.util.def (libgrubmods.a): Add crc.c and gzio.c
13326 * grub-core/Makefile.core.def (btrfs): Add crc.c.
13327 * grub-core/fs/btrfs.c: Stub replaced with real implementation.
13328 * grub-core/io/gzio.c (grub_gzio): New fields mem_input_size,
13329 mem_input_off and mem_input. All users updated to accept in-RAM input.
13330 (gzio_seek): New function.
13331 (test_zlib_header): Likewise.
13332 (grub_gzio_read): Likewise.
13333 (grub_zlib_decompress): Likewise.
13334 * grub-core/kern/emu/getroot.c (grub_find_root_device_from_mountinfo):
13335 Accept partial and non-virtual mounts.
13336 (grub_guess_root_device): Do rescanning after device_from_mountinfo to
13337 avoid receiving /dev/dm-X as device.
13338 * grub-core/kern/emu/misc.c (grub_make_system_path_relative_to_its_root):
13339 Handle bind and partial mounts.
13340 * grub-core/lib/crc.c: New file.
13341 * include/grub/deflate.h: Likewise.
13342 * include/grub/emu/misc.h (grub_find_root_device_from_mountinfo): New
13344 * include/grub/lib/crc.h: New file.
13346 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13348 Implement automatic module license checking according to new GNU
13351 * grub-core/kern/dl.c (grub_dl_check_license): New function.
13352 (grub_dl_load_core): Use grub_dl_check_license.
13353 * include/grub/dl.h (GRUB_MOD_SECTION): New macro.
13354 (GRUB_MOD_LICENSE): Likewise.
13355 (GRUB_MOD_DUAL_LICENSE): Likewise.
13356 All modules updated.
13358 2011-04-11 Colin Watson <cjwatson@ubuntu.com>
13360 * grub-core/fs/btrfs.c (grub_btrfs_fs) [GRUB_UTIL]: Set
13361 reserved_first_sector to 1. btrfs reserves plenty of space for boot
13363 Reported by: Gene Cumm. Fixes Ubuntu bug #757446.
13365 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13367 * util/grub-fstest.c (cmd_cmp): Check that sizes match.
13369 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13371 * util/grub-fstest.c (read_file): Report GRUB error if file opening
13374 2011-04-11 Vladimir Serbinenko <phcoder@gmail.com>
13376 * grub-core/kern/file.c (grub_file_open): Don't take into account the
13377 parenthesis in the middle of the filename.
13379 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13381 * grub-core/loader/mips/linux.c (grub_cmd_initrd): Use correct limits
13382 rather than trying to put initrd way too high.
13383 Reported by: Ryan Lortie <desrt@desrt.ca>
13385 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13387 * grub-core/boot/mips/yeeloong/fwstart.S (no_cs5536): Put back
13388 improperly removed string.
13390 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13392 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_data): New member
13394 (grub_util_biosdisk_open): Don't apply ioctl on non-disk devices.
13395 (open_device) Likewise.
13396 (grub_util_biosdisk_close): Likewise.
13397 Reported by: Mark Korenberg.
13399 2011-04-10 Alexander Kurtz <kurtz.alex@googlemail.com>
13401 * util/grub-mkconfig_lib.in: Add missing quotes.
13403 2011-04-10 Colin Watson <cjwatson@ubuntu.com>
13405 * grub-core/gnulib/argp-parse.c (__argp_input): Don't crash if pstate
13408 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13410 Dynamically count the number of lines for the lower banner.
13412 * grub-core/normal/menu_entry.c (per_term_screen): New member
13414 (print_down): Use num_entries.
13415 (update_screen): Likewise.
13416 (grub_menu_entry_run): Set num_entries.
13417 * grub-core/normal/menu_text.c (menu_viewer_data): New member
13419 (grub_print_message_indented): Move real part to ...
13420 (grub_print_message_indented_real): ... here. Additional argument
13422 (draw_border): Additional argument num_entries.
13423 (print_message): Additional argument dry_run.
13424 (print_entries): Receive menu viewer data.
13425 (grub_menu_init_page): New argment num_entries.
13426 (menu_text_set_chosen_entry): Use num_entries.
13427 (grub_menu_try_text): Likewise.
13428 * grub-core/normal/term.c (print_ucs4_terminal): New argument dry_run.
13430 (grub_ucs4_count_lines): New function.
13431 * include/grub/term.h (grub_term_cursor_x): Moved from here ..
13432 * grub-core/normal/menu_text.c (grub_term_cursor_x): ... to here.
13433 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): Removed.
13434 (grub_term_border_height): Likewise.
13435 (grub_term_num_entries): Likewise.
13437 2011-04-10 Vladimir Serbinenko <phcoder@gmail.com>
13439 * grub-core/boot/mips/yeeloong/fwstart.S: Fix address to error message.
13440 Remove now unused string.
13442 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13444 * docs/grub-dev.texi (Finding your way around): Update for 1.99
13446 (Getting started): GRUB is developed in Bazaar now, not Subversion.
13448 (Comment): Fix typo.
13449 (Getting started): General copy-editing.
13450 (Typical Development Experience): Likewise.
13451 (Error Handling): Likewise.
13452 (Video API): Likewise.
13454 2011-04-09 Colin Watson <cjwatson@ubuntu.com>
13456 * docs/grub-dev.texi: Replace MoinMoin syntax with Texinfo syntax
13459 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13461 * util/grub-mkimage.c (main): Handle special naming of yeeloong
13464 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13466 * docs/grub-dev.texi: Fix spelling of "developer" throughout.
13467 * grub-core/fs/i386/pc/pxe.c (parse_dhcp_vendor): Fix spelling of
13470 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13472 * grub-core/normal/menu_entry.c (run): Use grub_memcpy rather than
13473 grub_strcpy since the lines aren't necessarily 0-terminated.
13475 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13477 * grub-core/lib/legacy_parse.c (legacy_commands): Find doesn't set
13480 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13482 * grub-core/commands/probe.c (options): Argument to set isn't optional.
13483 (GRUB_MOD_INIT): DEVICE isn't optional.
13485 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13487 * grub-core/normal/term.c (print_ucs4_terminal): Don't try to put the
13488 word on new line if it's too long anyway. Fixes a hang.
13490 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13492 * include/grub/util/raid.h (grub_util_raid_getmembers): Make argument
13494 * util/grub-setup.c (main): Reuse md device name if available.
13495 * util/raid.c (grub_util_raid_getmembers): Receive device name and
13496 not GRUB name as argument.
13497 Based on patch by: Florian Wagner <fwagner>.
13499 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13501 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
13502 Place mbi on low memory for better compatibility.
13504 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13506 * include/grub/efiemu/efiemu.h: Use grub_memory_hook_t type.
13508 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13509 2011-04-08 Colin Watson <cjwatson@ubuntu.com>
13511 * autogen.sh: Ensure that collate and ctype locale is C.
13512 * conf/Makefile.common: Likewise.
13514 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13516 * grub-core/normal/menu.c: Add missing include.
13518 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13520 * grub-core/disk/raid.c [GRUB_UTIL]: Add missing include.
13522 2011-04-08 Martin Zuther <mzuther@mzuther.de>
13524 * util/grub-mkconfig.in: Ignore emacsen backup.
13526 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13528 * grub-core/kern/emu/hostdisk.c (open_device): Sync on close and not
13530 (grub_util_biosdisk_close): Likewise.
13532 2011-04-08 Vladimir Serbinenko <phcoder@gmail.com>
13534 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Add missing
13535 const attribute and use grub_isdigit.
13537 2011-04-06 Andrey <dev_null@ukr.net>
13539 * grub-core/video/fb/video_fb.c (grub_video_fb_setup): Silence older
13542 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13544 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_align): Add few
13545 useful grub_dprintf's.
13547 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13549 * include/grub/fs.h (grub_dirhook_info): Use unsigned for 1-bit fields.
13551 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13553 * util/grub.d/00_header.in: Don't use LANG unless unifont is available.
13555 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13557 Output errors if theme loading failed.
13559 * grub-core/gfxmenu/gfxmenu.c (grub_gfxmenu_try): Move the call to
13560 grub_gfxterm_fullscreen on error paths to ...
13561 * grub-core/normal/menu.c (menu_init): ...here. Wait after showing
13562 theme loading error.
13564 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13566 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): Let a bit more
13567 space for older compilers.
13568 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
13570 2011-04-06 Vladimir Serbinenko <phcoder@gmail.com>
13572 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Detect spares
13573 and report them as not RAID members since they are useless for GRUB.
13574 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
13576 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13578 Increase LVM implementation robustness in order not to crash on
13579 configurations like pvmove. Previously code assumed that in some places
13580 only lvs or only pvs are used whereas it seems that they are used
13583 * grub-core/disk/lvm.c (read_node): New function.
13584 (read_lv): Use read_node.
13585 (grub_lvm_scan_device): Use only first mirror on pvmove'd lvs.
13586 Match volumes only at the end when all lvs are found. Take both
13587 pvs (first) and lvs (second) into account.
13588 * include/grub/lvm.h (grub_lvm_segment): Merge fields stripe_* and
13589 mirror_* into node_*. All users updated.
13590 (grub_lvm_stripe): Merge this ...
13591 (grub_lvm_mirror): ... and this ...
13592 (grub_lvm_node): ... into this. All users updated.
13594 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13596 * grub-core/disk/lvm.c (grub_lvm_scan_device): Print errors on the end
13597 of function to allow further scanning for LVMs.
13599 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13601 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_read): Don't close
13602 on failed seek as it breaks open fd reusage.
13604 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13606 * util/grub-install.in: Add a recommendation to use --recheck before
13609 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13611 * docs/grub.texi (Vendor power-on buttons): Explain how the numbers
13614 2011-04-02 Vladimir Serbinenko <phcoder@gmail.com>
13616 GRUB developper manual based on existing Internals section and
13617 contributions by the various authors with active copyright assignment.
13619 * docs/Makefile.am (info_TEXINFOS): Add grub-dev.texi.
13620 * docs/font_char_metrics.png: New file.
13621 * docs/font_char_metrics.txt: Likewise.
13622 * docs/grub-dev.texi: Likewise.
13623 * docs/grub.texi (Internals): Move from here ...
13624 * docs/grub-dev.texi: ... here.
13626 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13628 Store the loopback device as data on loopback grub_disk structures,
13629 rather than the file it points to. This fixes use of freed memory
13630 if an existing loopback device is replaced.
13632 * grub-core/disk/loopback.c (grub_loopback_open): Store dev in
13633 disk->data, not dev->file.
13634 (grub_loopback_read): Adjust file assignment to match.
13635 Fixes Ubuntu bug #742967.
13637 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13639 * grub-core/disk/loopback.c (grub_cmd_loopback): Fix a memory leak
13640 when replacing an existing device.
13642 2011-04-01 Vladimir Serbinenko <phcoder@gmail.com>
13644 Fix incorrect types in jfs.c. This enables >2TiB disks and fixes some
13645 memory corruptions.
13647 * grub-core/fs/jfs.c (struct grub_jfs_diropen): Interpret bytes as
13649 (grub_jfs_lookup_symlink): Make ino a grub_uint32_t rather than int.
13650 (grub_jfs_blkno): Use 64-bit quantities for block sectors.
13651 (grub_jfs_read_inode): Likewise.
13652 (grub_jfs_opendir): Likewise. Remove now useless casts.
13653 (grub_jfs_getent): Likewise.
13654 Make ino a grub_uint32_t rather than int.
13655 (grub_jfs_mount): Ensure that blksize and log2_blksize are consistent.
13656 (grub_jfs_read_file): Use 64-bit quantities when necessary. Replace
13657 division and module with bit operations.
13658 (grub_jfs_find_file): Make ino a grub_uint32_t.
13659 (grub_jfs_lookup_symlink): Likewise. Use 64-bit quantities
13661 2011-04-01 Colin Watson <cjwatson@ubuntu.com>
13663 * grub-core/normal/menu_entry.c (run): Quieten uninitialised
13664 warning. (This was in fact always initialised before use, but GCC
13665 wasn't smart enough to prove that.)
13666 * grub-core/script/lexer.c (grub_script_lexer_yywrap): Likewise.
13668 2011-03-31 Vladimir Serbinenko <phcoder@gmail.com>
13670 * grub-core/kern/x86_64/efi/callwrap.S (efi_wrap_0): Preserve 16-byte
13672 (efi_wrap_1): Likewise.
13673 (efi_wrap_2): Likewise.
13674 (efi_wrap_3): Likewise.
13675 (efi_wrap_4): Likewise.
13676 (efi_wrap_5): Likewise.
13677 (efi_wrap_6): Likewise.
13678 (efi_wrap_10): Likewise.
13679 Based on information by: Red Hat/Peter Jones.
13681 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13683 * grub-core/mmap/efi/mmap.c (grub_mmap_unregister): Remove
13684 set-but-not-used variable.
13686 2011-03-31 Colin Watson <cjwatson@ubuntu.com>
13688 * docs/grub.texi (Simple configuration): Be more explicit about
13689 GRUB_DEFAULT, and add an example.
13690 Reported by: Leslie Rhorer.
13692 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13694 * docs/grub.texi (Commands): Link to "GRUB only offers a rescue
13697 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13699 * util/grub.d/10_linux.in: Add gentoo-specific config filename.
13700 * util/grub.d/20_linux_xen.in: Likewise.
13702 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13704 * util/grub.d/10_linux.in: Try alternative config filenames where
13705 we parse config file.
13706 * util/grub.d/20_linux_xen.in: Likewise.
13708 2011-03-30 Alexey Shvetsov <alexxy@gentoo.org>
13710 * util/grub.d/10_linux.in: Add gentoo-specific Linux and initrd names.
13711 * util/grub.d/20_linux_xen.in: Likewise.
13713 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13715 * grub-core/disk/raid.c (insert_array): Add few potentially
13716 useful grub_util_info.
13717 (grub_raid_register): Likewise.
13719 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13721 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev) [__linux__]:
13722 Preserve partition number in mdadm code path.
13724 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13726 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Add
13727 few potentially useful grub_util_info.
13729 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13731 * grub-core/disk/lvm.c (grub_lvm_scan_device): Remove spurious \n.
13733 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13735 * docs/grub.texi (default): Use @example rather than nested
13736 itemized lists to avoid breaking gendocs.
13738 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13740 * docs/grub.texi (Future): Update.
13742 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13744 * docs/grub.texi (Environment): New chapter.
13745 (Changes from GRUB Legacy): Link to "Environment block" section for
13746 details of limitations.
13747 (Simple configuration): Likewise. Link to documentation of gfxmode
13748 and gfxpayload variables from GRUB_GFXMODE and GRUB_GFXPAYLOAD
13750 (Shell-like scripting): Note that normal variables are stored in the
13752 (gettext): Link to documentation of lang and locale_dir.
13753 (list_env): New section.
13754 (load_env): New section.
13755 (save_env): New section.
13757 (Reporting bugs): Fix typo.
13759 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13761 * docs/grub.texi: Correctly use "terminal_input" and not "terminal" in
13764 2011-03-30 Vladimir Serbinenko <phcoder@gmail.com>
13766 * grub-core/term/at_keyboard.c (set_scancodes)
13767 [!GRUB_MACHINE_MIPS_YEELOONG && !GRUB_MACHINE_QEMU]: Use scancode set 1.
13769 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13771 * docs/grub.texi (Menu-specific commands): Remove some semantics
13772 that were true in GRUB Legacy but not in GRUB 2.
13773 (submenu): New section.
13774 (false): New section.
13775 (read): New section.
13776 (true): New section.
13778 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13780 * docs/grub.texi (Changes from GRUB Legacy): Minor proofreading.
13782 2011-03-30 Colin Watson <cjwatson@ubuntu.com>
13784 * docs/grub.texi (Simple configuration): Explain some of the
13785 current limitations of grub-mkconfig.
13786 Reported by: Leslie Rhorer.
13788 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13790 Old macs search for boot.efi rather than for bootia32.efi.
13792 * util/grub-install.in: Copy bootia32.efi to boot.efi.
13793 * util/grub-mkrescue.in: Likewise.
13794 Suggested by: Peter Jones.
13796 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13798 * util/grub.d/20_linux_xen.in: Accept old-style xen kernels.
13800 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13802 * include/grub/lvm.h (grub_lvm_lv): New field 'visible'.
13803 (grub_lvm_segment): New fields 'type', 'mirror_count' and 'mirrors'.
13804 (grub_lvm_mirror): New struct.
13805 * grub-core/disk/lvm.c (grub_lvm_checkvalue): Commented out.
13806 (grub_lvm_iterate): Iterate only visible volumes.
13807 (grub_lvm_read): Factor out to ..
13808 (read_lv): ... this. Support mirrors.
13809 (grub_lvm_read): New wrapper function.
13810 (grub_lvm_scan_device): Parse mirrors. Skip everything that isn't
13811 stripped or mirrored.
13813 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13815 * util/grub.d/10_linux.in: Skip vmlinux-* on x86 platforms.
13817 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13819 * docs/grub.texi (loopback): New section.
13821 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13823 * grub-core/disk/loopback.c (GRUB_MOD_INIT): Stop documenting
13826 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13828 * docs/grub.texi (BIOS installation): New section, partly based on
13829 previous text in other sections.
13830 (Installing GRUB using grub-install): Replace BIOS discussion with a
13832 (Images): Likewise.
13834 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13836 * grub-core/kern/emu/hostdisk.c (find_partition_start)
13837 [HAVE_DIOCGDINFO]: Add safety checks.
13839 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13841 * util/grub.d/10_kfreebsd.in: Allow ufs.ko to be missing as it's
13842 per default compiled in kernel and prior to 8.0 isn't shipped at all.
13844 2011-03-29 Colin Watson <cjwatson@ubuntu.com>
13846 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): If
13847 real_sb->size is zero (e.g. RAID-0), get the disk size from
13848 real_sb->data_size instead.
13849 Fixes Ubuntu bug #743136.
13851 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13853 * grub-core/normal/misc.c (grub_normal_print_device_info): Use correct
13854 printf clauses for printing size and start.
13856 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13858 * grub-core/fs/ext2.c (grub_ext2_read_inode): Fix an overflow.
13859 Reported and tested by: Timothy Nikkel.
13861 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13863 * grub-core/term/gfxterm.c (dirty_region_add): Move core part to ...
13864 (dirty_region_add_real): ... this.
13865 (dirty_region_add): Don't discard margin refresh when performing
13868 2011-03-29 Vladimir Serbinenko <phcoder@gmail.com>
13870 * grub-core/lib/relocator.c (allocate_regstart)
13871 [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Avoid grub_dprintf since not all
13872 terminals are capabple of malloc-free operation.
13873 (allocate_inreg) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13874 (malloc_in_range) [!DEBUG_RELOCATOR_NOMEM_DPRINTF]: Likewise.
13876 2011-03-29 Mario Limonciello <Mario_Limonciello@Dell.com>
13878 * util/grub-setup.c: Copy the partition table zone if floppy support
13879 is disabled, even if no partition table is found.
13881 Otherwise, the BIOS on Dell Latitude E series laptops will freeze
13882 during POST if an invalid partition table is contained in the PBR
13883 of the active partition when GRUB is installed to a partition.
13885 2011-03-28 Colin Watson <cjwatson@debian.org>
13887 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Remove stale
13890 2011-03-28 Colin Watson <cjwatson@debian.org>
13892 * grub-core/disk/raid.c (grub_raid_register): Adjust debug message
13893 to be specific about what kind of RAID device we're scanning for.
13895 2011-03-26 Seth Goldberg <seth.goldberg@oracle.com>
13897 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): Don't
13898 return freed string.
13900 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13902 * grub-core/fs/iso9660.c (grub_iso9660_label): Rtrim the label.
13904 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13906 Use libgeom on FreeBSD to detect partitions.
13908 * Makefile.util.def (grub-mkimage): Add LIBGEOM to ldadd.
13909 (grub-mkrelpath): Likewise.
13910 (grub-script-check): Likewise.
13911 (grub-editenv): Likewise.
13912 (grub-mkpasswd-pbkdf2): Likewise.
13913 (grub-fstest): Likewise.
13914 (grub-mkfont): Likewise.
13915 (grub-mkdevicemap): Likewise.
13916 (grub-probe): Likewise.
13917 (grub-setup): Likewise.
13918 (grub-ofpathname): Likewise.
13919 (grub-mklayout): Likewise.
13920 (example_unit_test): Likewise.
13921 (grub-menulst2cfg): Likewise.
13922 * grub-core/Makefile.core.def (grub-emu): Likewise.
13923 (grub-emu-lite): Likewise.
13924 * configure.ac: Check for -lgeom on FreeBSD and set LIBGEOM.
13925 * grub-core/kern/emu/hostdisk.c [FreeBSD]: Include libgeom.h. Don't
13926 define HAVE_DIOCGDINFO.
13927 (follow_geom_up) [FreeBSD]: New function.
13928 (find_partition_start) [FreeBSD]: Rewritten using follow_geom_up.
13929 (convert_system_partition_to_system_disk) [FreeBSD]: Likewise.
13930 (grub_util_biosdisk_get_grub_dev) [FreeBSD]: Use FreeBSD path
13931 unconditionally of HAVE_DIOCGDINFO.
13933 2011-03-26 Vladimir Serbinenko <phcoder@gmail.com>
13935 Fix FreeBSD compilation problem.
13937 * grub-core/kern/emu/hostdisk.c (MAJOR) [FreeBSD]: New definition.
13938 (FLOPPY_MAJOR) [FreeBSD]: Likewise.
13940 2011-03-24 Colin Watson <cjwatson@ubuntu.com>
13942 * grub-core/video/fb/video_fb.c (grub_video_fb_get_info_and_fini):
13943 Switch back to page zero before loading a kernel, since some kernel
13944 drivers expect that.
13945 Thanks to: Felix Kuehling.
13947 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13949 * grub-core/lib/relocator.c (grub_relocator_alloc_chunk_addr)
13950 [DEBUG_RELOCATOR]: Reuse grub_mm_check.
13951 (grub_relocator_alloc_chunk_align) [DEBUG_RELOCATOR]: Likewise.
13953 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13955 * include/grub/mm.h (GRUB_MM_CHECK): Rename to ...
13956 (grub_mm_check): ... this. MAke a function-like macro and use GRUB_FILE.
13958 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13960 * grub-core/lib/relocator.c (allocate_inreg): Avoid dprintf unless
13961 DEBUG_RELOCATOR is defined since gfxterm can't cope with output when
13962 malloc is disabled.
13964 2011-03-24 Vladimir Serbinenko <phcoder@gmail.com>
13966 * grub-core/loader/i386/bsdXX.c (grub_freebsd_load_elfmodule): Account
13967 for modules headers when counting the needed allocation size.
13969 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13971 * grub-core/term/gfxterm.c (calculate_normal_character_width): Return 8
13972 if no ASCII character is found to prevent crash.
13974 2011-03-23 Alexander Kurtz <kurtz.alex@googlemail.com>
13976 * grub-core/video/bitmap.c (match_extension): Ignore case.
13978 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13980 * grub-core/normal/menu_entry.c (init_line): Fix off-by-one error.
13982 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
13984 * grub-core/script/parser.y: Declare "time" as valid argument.
13986 2011-03-23 Peter Jones <pjones@redhat.com>
13988 Fix incorrect assert failure reporting.
13990 * grub-core/tests/example_functional_test.c (example_test): Add
13992 * grub-core/tests/lib/test.c (add_failure): Renamed to ...
13993 (failure_start): ...this. Check that malloc succeeded.
13994 Don't call xvasprintf. Return failure struct.
13995 (failure_append_vtext): New function.
13996 (failure_append_text): Likewise.
13997 (add_failure): Likewise.
13998 (grub_test_assert_helper): Likewise.
13999 * include/grub/test.h (grub_test_assert_helper): New declaration.
14000 (grub_test_assert): Macro rewritten.
14002 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14004 * grub-core/normal/main.c (GRUB_MOD_INIT): Export pager variable.
14006 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14008 * grub-core/lib/i386/pc/biosnum.c: Add missing include.
14010 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14012 * grub-core/disk/usbms.c (grub_usbms_reset): Transform USB-style error
14013 into GRUB-style one.
14015 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14017 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Return usb-style
14018 error and not grub_errno.
14019 * grub-core/bus/usb/usbhub.c (grub_usb_add_hub): Likewise.
14021 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14023 * grub-core/bus/usb/uhci.c (grub_uhci_detect_dev): Return
14024 GRUB_USB_SPEED_NONE in case of failure and not the error code.
14026 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14028 * grub-core/efiemu/i386/pc/cfgtables.c
14029 (grub_machine_efiemu_init_tables): Make declaration a prototype.
14030 * grub-core/loader/xnu.c (grub_xnu_lock): Likewise.
14031 (grub_xnu_unlock): Likewise.
14032 * grub-core/normal/cmdline.c (grub_cmdline_get/cl_set_pos_all): Likewise.
14034 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14036 * grub-core/bus/usb/usb.c (attach_hooks): Make static.
14037 * grub-core/bus/usb/usbhub.c (hubs): Likewise.
14038 * grub-core/commands/hashsum.c (aliases): Likewise.
14039 * grub-core/commands/setpci.c (pci_registers): Likewise.
14040 * grub-core/disk/usbms.c (attach_hook): Likewise.
14041 * grub-core/fs/zfs/zfs.c (decomp_table): Likewise.
14042 (zio_checksum_table): Likewise.
14043 * grub-core/gettext/gettext.c (grub_gettext_msg_list): Likewise.
14044 * grub-core/gfxmenu/gfxmenu.c (cached_view): Likewise.
14045 * grub-core/lib/legacy_parse.c (legacy_commands): Likewise.
14046 * grub-core/lib/relocator.c (leftovers): Likewise.
14047 (extra_blocks): Likewise.
14048 * grub-core/loader/i386/bsd.c (relocator): Likewise.
14049 * grub-core/loader/i386/multiboot_mbi.c (modules): Likewise.
14050 (modules_last): Likewise.
14051 * grub-core/loader/i386/xnu.c (table_aliases): Likewise.
14052 (devices): Likewise.
14053 * grub-core/loader/multiboot_mbi2.c (modules): Likewise.
14054 (modules_last): Likewise.
14055 * grub-core/normal/auth.c (users): Likewise.
14056 * grub-core/normal/context.c (initial_menu): Likewise.
14057 (current_menu): Likewise.
14058 * grub-core/normal/crypto.c (crypto_specs): Likewise.
14059 * grub-core/term/serial.c (grub_serial_ports): Likewise.
14060 (grub_serial_terminfo_input_template): Likewise.
14061 (grub_serial_terminfo_output_template): Likewise.
14062 (grub_serial_terminfo_input): Likewise.
14063 (grub_serial_terminfo_output): Likewise.
14064 (registered): Likewise.
14065 * grub-core/term/usb_keyboard.c (attach_hook): Likewise.
14067 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14069 * grub-core/video/bochs.c (grub_video_bochs_setup): Use
14070 grub_video_mode_type_t.
14071 * grub-core/video/cirrus.c (grub_video_cirrus_setup): Likewise.
14072 * grub-core/video/i386/pc/vbe.c (grub_video_vbe_setup): Likewise.
14073 * grub-core/video/i386/pc/vga.c (grub_video_vga_setup): Likewise.
14075 2011-03-23 Vladimir Serbinenko <phcoder@gmail.com>
14077 * util/grub-install.in: Correct the x86-64 name as x86_64.
14079 2011-03-11 Colin Watson <cjwatson@ubuntu.com>
14081 * grub-core/boot/i386/pc/lnxboot.S (real_code_2): Ensure that the
14082 initial chunk read from the kernel always includes GRUB's multiboot
14083 header, which is now outside the first sector.
14085 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14087 * grub-core/loader/i386/linux.c (find_efi_mmap_size): Page-align
14088 cached mmap_size, so that this works correctly when called multiple
14090 Reported by: Daniel Kahn Gillmor. Should fix Debian bug #616638.
14092 2011-03-09 Colin Watson <cjwatson@ubuntu.com>
14094 * docs/grub.texi (Simple configuration): Tidy up formatting.
14096 2011-03-07 Szymon Janc <szymon@janc.net.pl>
14098 * grub-core/fs/zfs/zfs.c (zap_leaf_lookup):
14099 Set-but-not-used variable removed.
14101 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14103 Workaround yet another IEEE1275 bug.
14105 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New enum value
14106 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS.
14107 * grub-core/kern/ieee1275/mmap.c (grub_machine_mmap_iterate): Ignore
14108 adress_cells and size:cells if GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS
14110 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
14111 GRUB_IEEE1275_FLAG_BROKEN_ADDRESS_CELLS on powermacs.
14113 2011-02-12 Vladimir Serbinenko <phcoder@gmail.com>
14115 * grub-core/partmap/msdos.c (pc_partition_map_embed): Fix off by one
14118 2011-02-11 Colin Watson <cjwatson@ubuntu.com>
14120 * util/grub.d/20_linux_xen.in: Bail out early if linux_list is
14121 empty, since in that case we can only generate either nothing or a
14122 syntactically invalid configuration file.
14123 Reported by: Michal Suchanek. Fixes Debian bug #612898.
14125 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14127 * docs/grub.texi (Kernel): Add reference to grub-mkrescue.
14128 (Making a GRUB bootable CD-ROM): Likewise.
14129 (Invoking grub-mkrescue): New section.
14130 Reported by: Yann Dirson. Fixes Debian bug #612585.
14132 2011-02-09 Colin Watson <cjwatson@ubuntu.com>
14134 * util/grub-install.in: Remove unnecessary brackets from tr
14136 * util/grub.d/10_hurd.in: Likewise.
14137 * util/grub.d/10_kfreebsd.in: Likewise.
14138 * util/grub.d/10_linux.in: Likewise.
14139 * util/grub.d/20_linux_xen.in: Likewise.
14140 Reported by: Jamie Heilman. Fixes Debian bug #612564.
14142 2011-02-08 Colin Watson <cjwatson@ubuntu.com>
14144 * include/grub/file.h (not_easly_seekable): Rename to ...
14145 (not_easily_seekable): ... this. Update all users.
14147 2011-01-28 Colin Watson <cjwatson@ubuntu.com>
14149 * docs/grub.texi (Making a GRUB bootable CD-ROM): Update to describe
14152 2011-01-24 Vladimir Serbinenko <phcoder@gmail.com>
14154 * util/grub-mkimage.c (generate_image): Refuse to create the images
14155 bigger than the actual flash (512K) in Loongson machines. 512K is also
14156 the biggest chip supported by them.
14158 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14160 * grub-core/kern/emu/getroot.c: Include config-util.h explicitly.
14162 2011-01-22 Anthony DeRobertis <anthony@derobert.net>
14164 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Check
14165 super_offset field.
14167 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14169 * util/grub-install.in: Ignore install device on platforms
14170 where it doesn't make sense. Always use UUIDs except on pc, efi and
14172 Reported by: Daniel Kahn Gillmor.
14174 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14176 * grub-core/bus/bonito.c (write_bases): Fix direction of the shift.
14178 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14180 * grub-core/partmap/bsdlabel.c: Include grub/emu/misc.h and not grub/util/misc.h.
14181 (iterate_real): Don't rely on partition being non-NULL.
14183 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14185 * grub-core/script/argv.c (round_up_exp): unsigned is 32-bit on all
14186 supported platforms. Put a compile time assert for this rather than
14187 generate a warning with 32-bit shift.
14189 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14191 * grub-core/disk/scsi.c (grub_scsi_read): Fix binary and check and make
14192 logical expression more readable.
14194 2011-01-22 Vladimir Serbinenko <phcoder@gmail.com>
14196 * grub-core/disk/raid.c (insert_array): Ensure uniqueness of p->number
14197 even if some elements have a name.
14198 Reported by: Alexander GQ Gerasiov.
14200 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14202 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Consider a
14203 path unreadable if `grub-probe -t abstraction' fails, for example if
14204 memberlist fails on an LVM volume group.
14205 Reported by: Darius Jahandarie.
14207 2011-01-22 Colin Watson <cjwatson@ubuntu.com>
14209 * docs/grub.texi (Simple configuration): Document
14210 GRUB_PRELOAD_MODULES.
14212 2011-01-17 Colin Watson <cjwatson@ubuntu.com>
14214 * .bzrignore: Remove nonexistent grub-pbkdf2.
14216 2011-01-16 Vladimir Serbinenko <phcoder@gmail.com>
14218 * configure.ac: Bump version to 1.99~rc1.
14220 2011-01-15 Vladimir Serbinenko <phcoder@gmail.com>
14222 * util/grub-mkimage.c (generate_image): Check fwstart.img checksum
14225 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14227 * grub-core/kern/mips/yeeloong/init.c (grub_machine_init): Init boot
14230 2011-01-14 Vladimir Serbinenko <phcoder@gmail.com>
14232 * grub-core/Makefile.core.def (fwstart): Add lost LDFLAGS.
14234 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14236 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Quote bootpath and
14239 2011-01-13 Vladimir Serbinenko <phcoder@gmail.com>
14241 Fix compilation on cygwin.
14243 * conf/Makefile.common (STRIPFLAGS_KERNEL): Add -F elf32-i386 and
14244 -R .drectve on cygwin.
14245 * conf/i386-pc-cygwin-img-ld.sc: Merge rdata and pdata into data.
14246 * configure.ac: Use $(top_builddir) in TARGET_OBJ2ELF.
14247 (COND_CYGWIN): New condition.
14248 * grub-core/Makefile.am (%.mod): Set TARGET_OBJ2ELF.
14249 * grub-core/genmod.sh.in: Use ${TARGET_OBJ2ELF} and
14250 not @TARGET_OBJ2ELF@.
14251 * util/grub-pe2elf.c (write_symbol_table): Use pe_symtab->type and not
14252 type to determine whether aux is to be used.
14254 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14256 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Use the
14257 realpath'ed device string.
14258 Handle floppy (somewhat).
14259 Issue error in unknown case rather than garbage.
14260 Reported by: Axel Beckert.
14262 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14264 * util/grub.d/00_header.in (load_video): Handle the case when no video
14266 Thanks to: Axel Beckert.
14268 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14270 * util/grub-mkfont.c (write_font_pf2): Use appropriate type for data
14271 variable. Fixes problem on big endian platforms.
14273 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14275 * grub-core/Makefile.core.def (ieee1275_fb): Disable on sparc.
14276 It doesn't work well there.
14278 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14280 * grub-core/normal/context.c (grub_env_context_close): Silence spurious
14282 * grub-core/normal/menu.c (grub_menu_execute_entry): Likewise.
14283 * grub-core/partmap/msdos.c (pc_partition_map_embed): Use unsigned
14286 2011-01-12 Vladimir Serbinenko <phcoder@gmail.com>
14288 Use alias->path rather than buggy "canon".
14290 * grub-core/disk/ieee1275/ofdisk.c (ofdisk_hash_add_real): New function.
14291 (ofdisk_hash_add): New argument curcan. All users updated.
14293 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14295 * configure.ac: Fall back to `true' if `makeinfo' does not exist.
14297 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14299 * grub-core/loader/powerpc/ieee1275/linux.c (grub_linux_load32): Apply
14300 loadmask before doing any calculations. Use correct type for offset.
14301 (grub_linux_load64): Likewise.
14303 2011-01-11 Colin Watson <cjwatson@ubuntu.com>
14305 * util/grub-mklayout.c (console_grub_equivalences_shift): Terminate
14307 (console_grub_equivalences_unshift): Likewise.
14308 Reported by: Daniel Dehennin.
14310 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14312 * grub-core/fs/i386/pc/pxe.c (set_mac_env): Export variable.
14313 (set_env_limn_ro): Likewise.
14314 (GRUB_MOD_INIT): Likewise.
14315 * grub-core/hook/datehook.c (GRUB_MOD_INIT): Likewise. Change to
14316 ARRAY_SIZE while on it.
14317 (GRUB_MOD_FINI): Change to ARRAY_SIZE.
14318 * grub-core/normal/context.c (grub_env_export): Move from here ...
14319 * grub-core/kern/env.c (grub_env_export): ... here.
14320 * grub-core/normal/context.c (grub_cmd_export): Skip exporting root and
14322 * grub-core/kern/main.c (grub_main): Export root and prefix.
14323 * include/grub/env.h (grub_env_export): Export.
14324 Reported by: Seth Goldberg.
14326 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14328 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14329 Take into account space used by ELF sections and multiboot palette.
14330 Reported by: Grégoire Sutre.
14332 2011-01-11 Vladimir Serbinenko <phcoder@gmail.com>
14336 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14338 Pass more appropriate video id to Linux.
14340 * grub-core/loader/i386/linux.c (grub_linux_setup_video): Use
14341 grub_video_get_driver_id and variable gfxpayloadforcelfb to
14343 (grub_linux_boot): Rely on grub_linux_setup_video to fill have_vga and
14344 shift params->lfb_size.
14345 * include/grub/i386/linux.h: Make an enume out of have_vga values.
14347 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14349 * util/grub-menulst2cfg.c: Add missing include of misc.h.
14351 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14353 * grub-core/fs/zfs/zfsinfo.c (grub_cmd_zfs_bootfs): Use comma as
14354 separator and pass bootpath/devid even if only one of them is available.
14355 Reported by: Seth Goldberg.
14357 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14359 Don't use post-4G memory on EFI even if 64-bit since some non-compliant
14360 implementations bug on them.
14362 * grub-core/kern/efi/mm.c (grub_efi_allocate_pages): Skip post-4G
14364 (filter_memory_map): Likewise.
14366 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14368 * util/grub-kbdcomp.in: Add missing prefix and exec_prefix variables.
14369 Reported by: nebuchadnezzar.
14371 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14373 * util/grub-kbdcomp.in: Add missing transform and bindir variables.
14374 Reported by: nebuchadnezzar.
14376 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14378 Submenu default support.
14380 * grub-core/normal/menu.c (grub_menu_execute_entry): New parameter
14381 auto_boot. All users updated.
14383 Handle chosen and default with submenus.
14384 (grub_menu_execute_with_fallback): Declared static.
14385 Don't notify failure if autobooted. Upper level does it.
14386 (menuentry_eq): New function.
14387 (get_entry_number): Use menuentry_eq.
14388 (show_menu): New parameter "autobooted". All users updated.
14389 (grub_show_menu): Likewise.
14390 * include/grub/normal.h (grub_show_menu): Likewise.
14391 * include/grub/menu.h (grub_menu_execute_entry): Removed.
14392 (grub_menu_execute_with_fallback): Likewise.
14394 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14396 * util/grub-mklayout.c (usage): Update help text.
14398 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14400 * grub-core/commands/legacycfg.c (legacy_file): Trim the line.
14402 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14404 * util/grub-menulst2cfg.c (main): Trim the line.
14406 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14408 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): Removed.
14409 (grub_machine_init): Don't check amount of low memory as reportedly
14410 INT 12h can be broken and if low memory is too low we wouldn't have
14411 gotten into grub_machine_init anyway.
14413 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14415 * grub-core/kern/i386/pc/mmap.c (grub_get_conv_memsize): New function.
14416 (grub_machine_mmap_iterate): Take low memory into account
14418 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14420 * grub-core/fs/btrfs.c (grub_btrfs_mount): Transform out of range into
14422 Reported by: TiCPU.
14424 2011-01-10 Vladimir Serbinenko <phcoder@gmail.com>
14426 * grub-core/disk/raid.c (insert_array): Display RAID name in duplicate
14429 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14431 * util/grub.d/10_netbsd.in (netbsd_load_fs_module): New function.
14432 (netbsd_entry): Use netbsd_load_fs_module() to load filesystem module.
14434 2011-01-09 Grégoire Sutre <gregoire.sutre@gmail.com>
14436 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Handle
14437 openbsd and netbsd types being in part_bsd module.
14439 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14441 * config.h.in (_LARGEFILE_SOURCE): Add missing define.
14442 (_FILE_OFFSET_BITS): Likewise.
14443 Reported by: Seth Goldberg.
14445 2011-01-08 Grégoire Sutre <gregoire.sutre@gmail.com>
14447 * configure.ac: Check for libdevmapper header.
14449 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14451 * grub-core/fs/zfs/zfs.c (dmu_read): Use void * for some pointers to
14453 (fzap_lookup): Likewise.
14454 (dnode_get): Likewise.
14455 (make_mdn): Likewise.
14456 (zfs_mount): Likewise.
14457 (fzap_iterate): Use temporary pointer to avoid aliasing.
14458 (grub_zfs_read): Likewise.
14459 * grub-core/loader/i386/xnu.c (grub_xnu_boot): Likewise.
14460 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel): Use void * for some
14461 pointers to avoid aliasing.
14462 (grub_cmd_xnu_kernel64): Likewise.
14463 (grub_xnu_load_driver): Likewise.
14465 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14467 * grub-core/commands/terminal.c (grub_cmd_terminal_input): Silence
14469 (grub_cmd_terminal_output): Likewise.
14470 Reported and tested by: Grégoire Sutre.
14472 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14474 * grub-core/term/at_keyboard.c (grub_keyboard_getkey): Silence spurious
14476 Reported and tested by: Grégoire Sutre.
14478 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14480 * configure.ac: Do CPU substitution even if it's specified explicitly.
14481 Reported and tested by: Alain Greppin.
14483 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14485 * grub-core/Makefile.am (rs_decoder.S): Force compilation with -Os.
14486 Reported and tested by: Alain Greppin.
14488 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14490 Satisfy some bison versions need for inttypes.h.
14492 * grub-core/lib/posix_wrap/inttypes.h: New file.
14493 * grub-core/lib/posix_wrap/sys/types.h (int8_t): New type.
14494 (int16_t): Likewise.
14495 (int32_t): Likewise.
14496 (int64_t): Likewise.
14497 Reported and tested by: Alain Greppin.
14499 2011-01-08 Vladimir Serbinenko <phcoder@gmail.com>
14501 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta):
14502 Silence spurious warning.
14503 Reported and tested by: Alain Greppin.
14505 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14507 * docs/grub.texi (Support automatic decompression): Update with xz
14508 decompression support.
14510 2011-01-07 Szymon Janc <szymon@janc.net.pl>
14512 Improve loaders' kernel command line handling.
14514 * grub-core/lib/cmdline.c: New file.
14515 * include/grub/lib/cmdline.h: Likewise.
14516 * grub-core/loader/i386/linux.c (grub_cmd_linux): Use
14517 grub_create_loader_cmdline to create kernel command line.
14518 * grub-core/loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
14519 * grub-core/loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Likewise.
14520 * grub-core/loader/sparc64/ieee1275/linux.c (grub_cmd_linux): Likewise.
14521 * grub-core/Makefile.core.def (linux16): Add lib/cmdline.c on i386_pc.
14522 (linux): Add lib/cmdline.c on common.
14524 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14526 * grub-core/fs/xfs.c (grub_xfs_iterate_dir): Take into account that
14527 inopos might be unaligned.
14529 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14531 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Add missing
14532 endian transformations.
14533 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
14534 Based on report by: Doug Nazar.
14536 2011-01-07 Doug Nazar <nazard.michi@gmail.com>
14538 * grub-core/disk/raid5_recover.c (grub_raid5_recover): Add missing
14539 array->members[i].start_sector.
14540 * grub-core/disk/raid6_recover.c (grub_raid6_recover): Likewise.
14542 2011-01-07 Vladimir Serbinenko <phcoder@gmail.com>
14544 * util/grub-setup.c (setup): Handle NetBSD and OpenBSD disklabels.
14545 Reported and tested by: Grégoire Sutre.
14547 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14549 * tests/util/grub-shell.in: Set serial terminfo type to `dumb', to
14550 avoid causing test failures by clearing the screen.
14552 2011-01-06 Colin Watson <cjwatson@ubuntu.com>
14554 * grub-core/kern/emu/getroot.c (find_root_device_from_mountinfo):
14555 Fix prefix check to handle the case where dir ends with a slash
14556 (most significantly, "/" itself).
14557 Reported by: Michael Vogt.
14559 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14561 Run terminfo_cls on initing terminfo output to clear the screen and
14562 move the cursor to (0,0).
14564 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_init_output):
14565 Call grub_terminfo_output_init.
14566 * grub-core/term/serial.c (grub_serial_term_output): Set .init.
14567 * grub-core/term/terminfo.c (grub_terminfo_output_init): New function.
14568 * include/grub/terminfo.h (grub_terminfo_output_init): New declaration.
14570 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14572 * util/grub-install.in: Determine ofpathname, nvsetenv and efibootmgr
14575 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14577 * grub-core/term/terminfo.c (grub_terminfo_readkey): Handle keys with
14580 2011-01-05 Vladimir Serbinenko <phcoder@gmail.com>
14582 The E820 type 5 is BADRAM, not EXEC_CODE.
14584 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14585 (GRUB_E820_BADRAM): New define.
14586 * grub-core/loader/i386/linux.c (grub_linux_boot): Translate code
14587 into reserved. Propagate BADRAM.
14588 * grub-core/loader/i386/bsd.c (GRUB_E820_EXEC_CODE): Removed.
14589 (GRUB_E820_BADRAM): New define.
14591 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14593 * grub-core/lib/efi/relocator.c (grub_relocator_firmware_fill_events):
14594 Ignore the memory post-4G.
14595 (grub_relocator_firmware_alloc_region): Additional debug statement.
14597 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14599 * grub-core/kern/emu/getroot.c (grub_util_get_grub_dev): Check md/%s
14601 Reported by: David Pravec.
14603 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14605 * grub-core/disk/i386/pc/biosdisk.c (GRUB_MOD_INIT): Workaround buggy
14608 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14610 * grub-core/lib/reed_solomon.c (grub_reed_solomon_add_redundancy):
14612 (grub_reed_solomon_recover): Likewise.
14614 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14616 * grub-core/lib/reed_solomon.c (main) [TEST]: Reactivate normal test.
14618 2011-01-04 Vladimir Serbinenko <phcoder@gmail.com>
14620 * grub-core/lib/reed_solomon.c (scratch) [! STANDALONE]: Remove leftover
14623 2011-01-04 Colin Watson <cjwatson@ubuntu.com>
14625 * grub-core/commands/legacycfg.c (GRUB_MOD_INIT): Fix typo in
14626 descriptions of extract_legacy_entries_source and
14627 extract_legacy_entries_configfile.
14628 Reported by: Seung Soo, Ha.
14630 2011-01-03 Colin Watson <cjwatson@ubuntu.com>
14632 * grub-core/bus/pci.c (grub_pci_iterate): Skip remaining functions
14633 on devices that do not implement function 0.
14635 2011-01-03 Dave Vasilevsky <dave@vasilevsky.ca>
14637 * grub-core/fs/hfsplus.c: Make parent unsigned.
14638 (grub_hfsplus_cmp_catkey): Don't compare using subtraction, it
14640 (grub_hfsplus_cmp_extkey): Likewise
14642 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14644 * util/grub-install.in: Correctly use bootloader_id and not
14645 GRUB_DISTRIBUTOR on efibootmgr line.
14647 2011-01-03 Vladimir Serbinenko <phcoder@gmail.com>
14649 * util/grub-mkfont.c (main): Report errors in FT_New_Face.
14651 2010-12-31 Ian Campbell <ijc@hellion.org.uk>
14653 * util/grub.d/20_linux_xen.in (linux_entry): Correctly capitalize
14654 Xen and reorder menu item wording to make it clearer that this entry
14655 will launch Xen. Print separate messages when loading Xen and
14658 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14660 * grub-core/partmap/amiga.c (GRUB_AMIGA_PART_MAGIC): New define.
14661 (amiga_partition_map_iterate): Check "PART" magic to avoid a very long
14662 loop in case of incorrect amiga partmap.
14664 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14666 * grub-core/partmap/amiga.c (GRUB_AMIGA_RDSK_MAGIC): New define.
14667 (amiga_partition_map_iterate): Use grub_memcmp instead of grub_strcmp.
14670 2010-12-31 Vladimir Serbinenko <phcoder@gmail.com>
14672 * grub-core/loader/i386/bsdXX.c (grub_openbsd_find_ramdisk): Silence
14674 Reported by: crocket
14676 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14678 * grub-core/loader/xnu.c (grub_cmd_xnu_kernel) [! GRUB_MACHINE_EFI]:
14680 (grub_cmd_xnu_kernel64) [! GRUB_MACHINE_EFI]: Likewise.
14682 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14684 * grub-core/loader/xnu.c (grub_cmd_xnu_kext): Abort if no kernel
14686 (grub_cmd_xnu_kextdir): Likewise.
14687 (grub_cmd_xnu_splash): Likewise.
14689 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14691 Avoid using Reed-Solomon with 0 redundancy.
14693 * grub-core/kern/i386/pc/startup.S: Remove 0-data check.
14694 * grub-core/lib/reed_solomon.c (decode_block): Do not proceed on 0 data
14696 (grub_reed_solomon_add_redundancy): Do not proceed with 0 redundancy.
14697 (grub_reed_solomon_recover): Likewise.
14699 2010-12-27 Vladimir Serbinenko <phcoder@gmail.com>
14701 Don't use disk subsystem in freebsd_boot.
14703 * grub-core/loader/i386/bsd.c (freebsd_bootdev): New variable.
14704 (freebsd_biosdev): Likewise.
14705 (grub_freebsd_boot): Use freebsd_bootdev and freebsd_biosdev.
14706 (grub_cmd_freebsd): Set freebsd_bootdev and freebsd_biosdev.
14708 2010-12-26 Vladimir Serbinenko <phcoder@gmail.com>
14710 Handling of files of unknown size is currently limited. They can't be
14711 used e.g. for initrd or modules. Moreover gzip handling of not
14712 easily seekable files is buggy. Disable unknown file size for now. May
14713 be inefficient but works.
14715 * grub-core/io/gzio.c (test_header): Always retrieve the file size.
14716 * grub-core/io/xzio.c (grub_xzio_open): Likewise.
14718 2010-12-25 Mirko Parthey <mirko.parthey@informatik.tu-chemnitz.de>
14720 * grub-core/boot/i386/pc/boot.S: Fix %es:%bx pointing to nowhere on
14723 2010-12-25 Jeroen Dekkers <jeroen@dekkers.ch>
14725 * grub-core/disk/raid.c (insert_array): Don't add spurious members.
14727 2010-12-25 Shea Levy <shlevy>
14729 * grub-core/genmod.sh.in: Use @OBJCOPY@ rather than objcopy.
14731 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14733 * util/grub.d/30_os-prober.in: Don't emit drivemap directive for
14734 Windows Server 2008.
14735 Reported by: Devin Giddings.
14737 2010-12-25 Vladimir Serbinenko <phcoder@gmail.com>
14739 * grub-core/commands/acpihalt.c (grub_acpi_halt): Sleep for 1.5 before
14740 writing an error message because of async power management.
14741 * grub-core/kern/mips/yeeloong/init.c (grub_halt): Likewise.
14742 (grub_reboot): Likewise.
14744 2010-12-23 Jordan Uggla <jordan.uggla@gmail.com>
14746 * tests/util/grub-shell.in: Suppress "ACPI shutdown failed" error to
14747 keep unit tests from failing when they shouldn't.
14749 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14751 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_RAW_SIZE): The
14752 previous patch increased the size of the RS code by 20 bytes (at
14753 least with gcc-4.4), so increase this by 20 bytes to match.
14754 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): Likewise.
14756 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14758 * grub-core/lib/reed_solomon.c (gauss_solve): Fix size of standalone
14759 scratch area. Make sure to initialise chosen in standalone mode as
14760 well as non-standalone.
14761 Reported by: Robert Hooker and Andy Whitcroft.
14762 Tested by: Andy Whitcroft.
14764 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14766 * grub-core/commands/echo.c (grub_cmd_echo): Make UTF-8-clean by
14767 constructing a new unescaped string and passing it to grub_xputs in
14768 one go, rather than passing characters to grub_printf one at a time.
14770 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14772 * grub-core/fs/udf.c (read_string): Pacify GCC warning by
14773 initialising utf16.
14775 2010-12-21 Colin Watson <cjwatson@ubuntu.com>
14777 * util/grub-mkconfig_lib.in (gettext_quoted): Add clarifying
14778 comment. Add an extra layer of quotation, requiring the output of
14779 this function to be used in a printf format string.
14780 (gettext_printf): New function.
14781 * util/grub.d/10_hurd.in: Use gettext_printf where appropriate.
14782 Extract translatable strings from here-documents and use a temporary
14783 variable instead, so that xgettext can find them.
14784 * util/grub.d/10_kfreebsd.in: Likewise.
14785 * util/grub.d/10_linux.in: Likewise.
14786 * util/grub.d/20_linux_xen.in: Likewise.
14788 * po/grub.d.sed: New file.
14789 * po/Makefile.in.in ($(DOMAIN).pot-update): Extract gettext_printf
14790 arguments. Set c-format flags on all strings extracted from
14791 util/grub.d/ (xgettext refuses to include these itself for strings
14792 it extracted from a shell file, but these really are c-format).
14794 2010-12-20 Vladimir Serbinenko <phcoder@gmail.com>
14796 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_add_module):
14797 Avoid next pointing to nowhere.
14799 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14801 * grub-core/fs/affs.c (grub_affs_mount): Read data->bblock.rootblock
14802 rather than assuming than rootblock is exactly in the middle.
14803 (grub_affs_label): Likewise.
14805 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14807 * grub-core/fs/affs.c (grub_affs_fs) [GRUB_UTIL]: Explicitly set
14808 reserved_first_sector to 0.
14809 * grub-core/fs/cpio.c (grub_cpio_fs) [GRUB_UTIL]: Likewise.
14810 * grub-core/fs/sfs.c (grub_sfs_fs) [GRUB_UTIL]: Likewise.
14811 * grub-core/fs/xfs.c (grub_xfs_fs) [GRUB_UTIL]: Likewise.
14813 2010-12-19 Vladimir Serbinenko <phcoder@gmail.com>
14815 Fix handling of UTF-16 UDF labels.
14817 * grub-core/fs/udf.c (grub_udf_iterate_dir): Move string-parsing part
14818 (read_string): .. here.
14819 (grub_udf_label): Use read_string.
14821 2010-12-19 BVK Chaitanya <bvk.groups@gmail.com>
14823 * grub-core/normal/menu_entry.c (run): Execute commands from menu
14824 editor under argument scope.
14825 Reported by: Jordan Uggla
14827 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14829 * util/grub-mkfont.c (main): Handle errors from FT_Set_Pixel_Sizes.
14831 2010-12-18 Colin Watson <cjwatson@ubuntu.com>
14833 * grub-core/normal/term.c (print_more): Make \r or \n scroll one
14834 line, and other keys scroll an entire page (previous handling was
14835 for \r and \n to scroll a page and other keys to scroll two lines).
14837 2010-12-18 Vladimir Serbinenko <phcoder@gmail.com>
14839 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_make_mbi):
14840 Set ptrdest to correct get_physical_target_address rather than
14841 incorrect get_virtual_current_address.
14843 2010-12-18 kashyap garimella <garimella.kashyap@gmail.com>
14845 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_load): Use
14846 correct cat to grub_uint8_t * rather than grub_uint32_t *.
14848 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14850 * .bzrignore: Ignore grub-core/rs_decoder.S.
14852 2010-12-10 Colin Watson <cjwatson@ubuntu.com>
14854 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Factor out
14855 .mo/.mo.gz opening sequence to ...
14856 (grub_mofile_open_lang): ... here.
14857 (grub_gettext_init_ext): If opening ll_CC fails, try ll.
14858 * util/grub.d/00_header.in (grub_lang): Include country part of
14860 Reported by: Mario Limonciello.
14862 2010-12-09 Robert Millan <rmh@gnu.org>
14864 * NEWS: Document addition of ZFS support.
14866 2010-12-04 Colin Watson <cjwatson@ubuntu.com>
14868 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Use `>> 1'
14869 rather than `/ 2', as the latter requires -Wa,--divide which would
14870 require bumping our minimum binutils version.
14872 2010-12-03 BVK Chaitanya <bvk.groups@gmail.com>
14874 * util/grub-script-check.c (main): Print script line number on
14877 2010-12-01 Robert Millan <rmh@gnu.org>
14879 * grub-core/fs/zfs/zfs.c: New file.
14880 * grub-core/fs/zfs/zfs_fletcher.c: Likewise.
14881 * grub-core/fs/zfs/zfs_lzjb.c: Likewise.
14882 * grub-core/fs/zfs/zfs_sha256.c: Likewise.
14883 * grub-core/fs/zfs/zfsinfo.c: Likewise.
14885 * include/grub/zfs/dmu.h: Likewise.
14886 * include/grub/zfs/dmu_objset.h: Likewise.
14887 * include/grub/zfs/dnode.h: Likewise.
14888 * include/grub/zfs/dsl_dataset.h: Likewise.
14889 * include/grub/zfs/dsl_dir.h: Likewise.
14890 * include/grub/zfs/sa_impl.h: Likewise.
14891 * include/grub/zfs/spa.h: Likewise.
14892 * include/grub/zfs/uberblock_impl.h: Likewise.
14893 * include/grub/zfs/vdev_impl.h: Likewise.
14894 * include/grub/zfs/zap_impl.h: Likewise.
14895 * include/grub/zfs/zap_leaf.h: Likewise.
14896 * include/grub/zfs/zfs.h: Likewise.
14897 * include/grub/zfs/zfs_acl.h: Likewise.
14898 * include/grub/zfs/zfs_znode.h: Likewise.
14899 * include/grub/zfs/zil.h: Likewise.
14900 * include/grub/zfs/zio.h: Likewise.
14901 * include/grub/zfs/zio_checksum.h: Likewise.
14903 * Makefile.util.def: Build ZFS into libgrubmods.
14904 * grub-core/Makefile.core.def: Build zfs.mod.
14906 2010-11-30 Szymon Janc <szymon@janc.net.pl>
14908 * grub-core/commands/regexp.c (grub_cmd_regexp): Remove unused
14910 * grub-core/commands/wildcard.c (match_files): Likewise.
14912 2010-11-30 Robert Millan <rmh@gnu.org>
14914 * grub-core/loader/i386/bsd.c
14915 (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module_elf): Check
14916 whether kernel is loaded using grub_loader_is_loaded(), rather
14917 than `kernel_type', which may still be `KERNEL_TYPE_NONE' under
14918 certain error conditions.
14920 2010-11-30 Robert Millan <rmh@gnu.org>
14922 * grub-core/commands/echo.c: Include `<grub/term.h>'.
14923 (grub_cmd_echo): Call grub_refresh() after printing a message.
14925 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14927 Avoid using tricks for initialising endian variables.
14929 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot):
14931 (GRUB_MOD_INIT): Don't byte-swap.
14932 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
14933 Use grub_cpu_to_le16_compile_time and grub_cpu_to_le32_compile_time.
14934 * include/grub/types.h (grub_swap_bytes16_compile_time): New macro.
14935 (grub_swap_bytes32_compile_time): Likewise.
14936 (grub_cpu_to_le32_compile_time): Likewise.
14937 (grub_cpu_to_le16_compile_time): Likewise.
14939 2010-11-26 Vladimir Serbinenko <phcoder@gmail.com>
14941 * util/grub-setup.c (setup): Stop recommending --force. People who
14942 understand the dangers of blocklists are able to find this option
14943 anyway and the ones who don't shouldn't use it anyway.
14945 2010-11-26 Robert Millan <rmh@gnu.org>
14947 * grub-core/term/i386/pc/vga_text.c (VGA_TEXT_SCREEN): Beautify.
14950 2010-11-26 Colin Watson <cjwatson@ubuntu.com>
14952 Fix LVM-on-RAID probing.
14954 * util/grub-probe.c (probe): Remember which disk was detected as
14955 RAID (perhaps an LVM physical volume). Use that disk's raidname
14956 rather than that of the top-level disk.
14958 2010-11-25 BVK Chaitanya <bvk.groups@gmail.com>
14960 Fix cmdline argument quotes for setparams command of menuentry
14963 * grub-core/commands/menuentry.c (setparams_prefix): Use single
14964 quotes for arguments.
14965 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Use
14966 grub_strchrsub function instead.
14968 * include/grub/misc.h (grub_strchrsub): New function.
14970 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14972 * util/deviceiter.c (grub_util_iterate_devices): Save a bit of
14973 effort by skipping "." and ".." entries up-front.
14974 Suggested by: Michael Lazarev.
14976 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14978 * grub-core/Makefile.core.def (xz_decompress): Move -lgcc from
14979 ldflags to ldadd, to fix link line ordering.
14980 (none_decompress): Likewise.
14982 2010-11-24 Colin Watson <cjwatson@ubuntu.com>
14984 * grub-core/Makefile.core.def (kernel): Add kern/emu/cache.S for emu
14986 (grub-emu-lite): Remove kern/emu/cache.S.
14988 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14990 * util/deviceiter.c (compare_devices): If the by-id link for a
14991 device couldn't be resolved, fall back to sorting by the by-id link
14992 rather than segfaulting.
14993 Reported and tested by: Daniel Mierswa.
14995 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
14997 * Makefile.util.def (grub-menulst2cfg): List libraries in ldadd, not
14998 ldflags, to fix link line ordering.
15000 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
15002 * grub-core/Makefile.am (gentrigtables): Put -lm after $<; some
15003 linkers are picky about this.
15005 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
15007 * grub-core/Makefile.am (command.lst): Adjust sed expression
15008 ordering so that extended and priority commands aren't treated as
15011 2010-11-23 Colin Watson <cjwatson@ubuntu.com>
15013 * include/grub/gpt_partition.h (GRUB_GPT_PARTITION_TYPE_BIOS_BOOT):
15014 Remove byte-swapping function calls, which are not valid in
15015 structure initialisers.
15016 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot): Make
15018 (GRUB_MOD_INIT): Byte-swap data1, data2, and data3 fields of
15019 grub_gpt_partition_type_bios_boot.
15021 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
15023 Fix test program build on GNU/kFreeBSD.
15025 * Makefile.util.def (example_unit_test): Add `$(LIBZFS)
15026 $(LIBNVPAIR)' library dependencies.
15028 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
15030 * util/grub-install.in: Fix parsing of --grub-mkrelpath= option.
15032 2010-11-22 Colin Watson <cjwatson@ubuntu.com>
15034 * util/grub-install.in: Remove excessive quoting that broke
15035 installations to RAID devices.
15037 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15039 * grub-core/loader/i386/linux.c (grub_cmd_linux): Pass correctly the
15040 bootloader version instead of 0.
15042 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15044 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Fix spurious
15047 2010-11-19 Vladimir Serbinenko <phcoder@gmail.com>
15049 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Don't try to
15050 retrieve the metadat sector if size isn't known.
15051 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15053 2010-11-18 Robert Millan <rmh@gnu.org>
15055 * grub-core/fs/btrfs.c (grub_btrfs_mount): Replace grub_strncmp()
15056 with grub_memcmp().
15058 2010-11-18 Vladimir Serbinenko <phcoder@gmail.com>
15060 * grub-core/normal/menu_entry.c (print_up): Fix displacement of up
15062 Reported by: Jordan Uggla.
15064 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15066 Make better UTF compliant.
15068 * grub-core/normal/charset.c (grub_utf8_to_utf16): Handle 6- and 7-byte
15069 sequences as incorrect.
15070 (grub_is_valid_utf8): Likewise.
15071 (grub_utf8_to_ucs4): Likewise.
15072 (grub_ucs4_to_utf8): Handle codepoints outside of BMP.
15073 (grub_ucs4_to_utf8_alloc): Likewise.
15074 * include/grub/charset.h (grub_utf16_to_utf8): Likewise.
15076 2010-11-16 Vladimir Serbinenko <phcoder@gmail.com>
15078 Make legacy_source behave like source.
15080 * grub-core/commands/legacycfg.c (legacy_file): Don't call
15082 (grub_cmd_legacy_source): Call grub_show_menu if needed.
15084 2010-11-16 Colin Watson <cjwatson@debian.org>
15086 * conf/Makefile.common (CFLAGS_GNULIB): Add -Wno-unused-parameter.
15087 (-Wunused implies -Wunused-parameter, but not vice versa).
15089 2010-11-16 Colin Watson <cjwatson@ubuntu.com>
15091 * configure.ac: Make error messages less confusing by testing for
15092 -Wtrampolines rather than -Wno-trampolines (since -Wno-* is always
15093 accepted, but produces a diagnostic if something else is wrong).
15095 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15097 * grub-core/term/at_keyboard.c (grub_keyboard_controller_read)
15098 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: ifdef-ed out
15100 (grub_keyboard_controller_init)
15101 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_QEMU]: Don't attempt to
15102 read the initial state since controller isn't inited yet.
15104 2010-11-15 Vladimir Serbinenko <phcoder@gmail.com>
15106 * grub-core/lib/relocator.c (malloc_in_range): Take into account that
15107 allocate_regbeg may need to create new chunk header.
15109 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15111 Fix quoting in legacy parser.
15113 * grub-core/lib/legacy_parse.c (grub_legacy_escape): Correctly handle
15115 (grub_legacy_parse): Likewise.
15116 Reported by: Jordan Uggla.
15117 Tested by: Jordan Uggla.
15119 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15121 Don't add -lgcc on i386 and x86_64.
15123 * configure.ac (LIBS): Don't add -lgcc on i386 and x86_64.
15124 * conf/Makefile.common (LDADD_KERNEL): Likewise.
15125 * grub-core/Makefile.core.def (kernel): Use LDADD_KERNEL.
15127 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15129 * configure.ac: Add -Wno-trampolines when supported.
15131 2010-11-14 Modestas Vainius <modax@debian.org>
15133 * grub-core/kern/emu/getroot.c (grub_util_is_dmraid): Recognise ddf1_
15136 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15138 Add generic logical block size support for UDF.
15140 * grub-core/fs/udf.c (GRUB_UDF_LOG2_BLKSIZE): Removed.
15141 (GRUB_UDF_BLKSZ): Removed.
15142 (struct grub_udf_data): New field "lbshift" to hold the logical block
15143 size of the file system in log2 format. All users updated.
15144 (sblocklist): Change type to unsigned.
15145 (grub_udf_mount): Change type of "sblklist" to unsigned.
15146 Move AVDP search before VRS recognition, because the latter requires
15147 knowledge of the logical block size, which is detected during the
15149 Detect and validate logical block size during AVDP search, adding
15150 support for block sizes 512, 1024 and 4096.
15151 Make VRS recognition independent of block size.
15153 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15155 Properly handle deleted files on UDF.
15157 * grub-core/fs/udf.c (grub_udf_iterate_dir): Skip directory entries
15158 whose "characteristics" field has the bit GRUB_UDF_FID_CHAR_DELETED
15161 2010-11-14 Giuseppe Caizzone <acaizzo@gmail.com>
15163 Support reading files larger than 2 GiB.
15165 * grub-core/fs/udf.c (grub_udf_iterate_dir): Change type of variable
15166 "offset" to grub_off_t.
15167 (grub_udf_read_file): Likewise for parameter "pos".
15169 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15171 * docs/grub.texi (Changes from GRUB Legacy): Note when save_env is
15173 (Simple configuration): Refer to Changes from GRUB Legacy about
15174 save_env availability.
15176 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15178 * util/grub-install.in: Ignore empty partition table detection
15179 instead of trying to include part_ module.
15181 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15183 * grub-core/disk/lvm.c (GRUB_MOD_FINI): Reset the vg_list. Fixes
15184 LVM on RAID support.
15186 2010-11-14 Vladimir Serbinenko <phcoder@gmail.com>
15188 Properly define WORDS_BIGENDIAN in wrapped environments.
15190 * grub-core/lib/libgcrypt_wrap/cipher_wrap.h (WORDS_BIGENDIAN): New
15192 * grub-core/lib/posix_wrap/sys/types.h (WORDS_BIGENDIAN): Likewise.
15194 Reported by: Manoel Rebelo Abranches.
15195 Tested by: Manoel Rebelo Abranches.
15197 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15199 * util/grub-mkconfig.in: Fix quoting.
15201 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15203 Support big ext2 files.
15205 * grub-core/fs/ext2.c (grub_ext2_inode): Rename dir_acl to size_high.
15206 (grub_ext2_read_block): Support triple indirect blocks.
15207 (grub_ext2_read_file): Use 64-bit types and read size_high.
15208 (grub_ext2_open): Read size_high.
15209 Reported by: Ximin Luo.
15210 Tested by: Manoel Rebelo Abranches.
15212 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15214 * util/grub-install.in: Handle filenames containing spaces.
15215 Reported by: Jordan Uggla.
15216 Tested by: Jordan Uggla.
15218 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15220 * util/grub-mkconfig.in (grub_script_check): New variable.
15221 Use grub_script_check instead of grub-script-check.
15222 Reported by: Barry Jackson.
15224 2010-11-13 Vladimir Serbinenko <phcoder@gmail.com>
15226 * docs/grub.texi (menu): Correct the order.
15227 Reported by: D. Hugh Redelmeier.
15229 2010-11-12 Vladimir Serbinenko <phcoder@gmail.com>
15231 * grub-core/kern/i386/pc/startup.S (multiboot_trampoline): Add missing
15234 2010-11-08 Manoel Rebelo Abranches <mrabran@br.ibm.com>
15236 * include/grub/elfload.h (grub_elf32_size): New parameter.
15238 Return maximum segments alignment.
15239 (grub_elf64_size): Likewise.
15240 * kern/elf.c (grub_elf32_size): New parameter. All users updated.
15241 Return maximum segments alignment.
15242 (grub_elf64_size): Likewise.
15243 * grub-core/loader/powerpc/ieee1275/linux.c:
15244 (grub_linux_claimmap_iterate): New function. Uses the
15245 "available" property in the "memory" node for memory allocation
15246 for kernel in the PowerPC loader.
15247 (grub_linux_load32): Correctly find linux entry point offset.
15248 (grub_linux_load64): Likewise.
15250 2010-11-07 Robert Millan <rmh@gnu.org>
15252 On mips-yeeloong, build with -march=loongson2f when this flag is
15253 available (GCC >= 4.4).
15254 * conf/Makefile.common [COND_mips_yeeloong] (CFLAGS_PLATFORM): Remove
15256 * configure.ac: For mips-yeeloong, add -march=loongson2f if available,
15257 or otherwise add -march=mips3.
15259 2010-11-07 BVK Chaitanya <bvk.groups@gmail.com>
15261 Suppress shell expansion on echo '*' and echo "*" like cases.
15262 Reported by: Jordan Uggla.
15264 * grub-core/script/execute.c (grub_script_arglist_to_argv): Escape
15265 string arguments before shell expansion.
15266 * tests/grub_cmd_echo.in: New testcases.
15268 2010-11-07 Robert Millan <rmh@gnu.org>
15270 * conf/mips-qemu-mips.rmk: Remove stale file from previous
15273 2010-11-07 Vladimir Serbinenko <phcoder@gmail.com>
15275 * grub-core/kern/emu/hostdisk.c
15276 (convert_system_partition_to_system_disk): Handle devices like "sdaa1".
15278 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15280 * include/grub/emu/misc.h: Don't include grub/util/libzfs.h.
15281 * include/grub/emu/misc.h (grub_get_libzfs_handle): Move from here ...
15282 * include/grub/util/libzfs.h (grub_get_libzfs_handle): ... here.
15284 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15286 * grub-core/fs/ntfs.c (grub_ntfs_uuid): Make uppercase.
15288 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15290 * util/grub-install.in: Replace useless recomendation to pass
15291 --modules with a recomendation to report a bug.
15293 2010-11-06 Vladimir Serbinenko <phcoder@gmail.com>
15295 Properly register serial terminfo.
15296 Reported by: Jordan Uggla
15298 * grub-core/term/serial.c (grub_serial_terminfo_input_template): New
15300 (grub_serial_terminfo_output_template): Likewise.
15301 (grub_cmd_serial): Register "serial" with terminfo.
15302 (GRUB_MOD_INIT(serial)): Fill grub_serial_terminfo_input and
15303 grub_serial_terminfo_output.
15305 2010-11-05 Robert Millan <rmh@gnu.org>
15307 * util/grub-mkconfig.in: Remove gfxterm.mod probe (no longer
15310 2010-11-05 Robert Millan <rmh@gnu.org>
15312 On Yeeloong, pass machine type information to Linux.
15314 * grub-core/loader/mips/linux.c [GRUB_MACHINE_MIPS_YEELOONG]
15315 (LOONGSON_MACHTYPE): New macro, set to
15316 "machtype=lemote-yeeloong-2f-8.9inches".
15317 [LOONGSON_MACHTYPE] (grub_cmd_linux): Pass LOONGSON_MACHTYPE as
15318 additional argument to Linux.
15320 2010-11-04 Robert Millan <rmh@gnu.org>
15322 * util/deviceiter.c (grub_util_iterate_devices): Increase SCSI
15323 limit to 48 (to cope with Sun Fire X4500), and IDE limit to 96
15324 (its SATA disks are detected as slaveless IDE master drives on
15326 Reported by Carsten Aulbert.
15328 2010-11-02 Colin Watson <cjwatson@ubuntu.com>
15330 * util/bin2h.c (main): Fix spelling error in generated output.
15332 2010-11-01 Grégoire Sutre <gregoire.sutre@gmail.com>
15334 * grub-core/partmap/bsdlabel.c (iterate_real): Fix an integer overflow.
15336 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15338 * grub-core/loader/i386/linux.c (grub_cmd_linux): Autoload vbe.mod if
15339 vga= option is supplied.
15341 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15343 * util/grub.d/10_hurd.in: Don't call savedefault on recovery entries.
15344 * util/grub.d/10_kfreebsd.in: Likewise.
15345 * util/grub.d/10_linux.in: Likewise.
15346 * util/grub.d/20_linux_xen.in: Likewise.
15348 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15350 * grub-core/lib/arg.c (grub_arg_parse): Avoid interpreting direct
15351 argument as an argument to no-argument option.
15353 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15355 * util/grub.d/10_linux.in: Add missing load_video with explicit
15356 GRUB_GFXPAYLOAD_LINUX.
15358 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15360 * Makefile.am (libgrub.pp): Propagate the libgrub.a split.
15362 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15364 * grub-core/disk/mdraid1x_linux.c (grub_mdraid_detect): Do not put
15365 elements with invlid index.
15366 * grub-core/disk/mdraid_linux.c (grub_mdraid_detect): Likewise.
15367 * grub-core/disk/raid.c (insert_array): Automatically reallocate
15369 * include/grub/raid.h (grub_raid_member): New struct.
15370 (grub_raid_array): Transform devices and start_sector into usage of
15371 grub_raid_member. All users updated
15372 (allocated_devs): New member.
15374 2010-11-01 Vladimir Serbinenko <phcoder@gmail.com>
15376 * docs/man/grub-set-default.h2m: Clarify that only saved default entry
15379 2010-10-29 BVK Chaitanya <bvk.groups@gmail.com>
15381 NetBSD build fix for getline function conflict from gnulib.
15383 * Makefile.util.def (libgrubkern.a): New library for grub kernel
15384 components that depend on gnulib headers.
15385 (libgrubmods.a): Renamed from earlier libgrub.a.
15386 * conf/Makefile.common: Remove gnulib from *_LIBRARY flags.
15388 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15390 * util/grub-setup.c (setup): Refuse to do a cross-disk embeddingless
15391 install rather than creating a broken install.
15393 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15395 * util/grub-setup.c (argp): Remove misleading example of installing to
15398 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15400 * util/grub-setup.c (setup): Clarify the error message.
15402 2010-10-26 Vladimir Serbinenko <phcoder@gmail.com>
15404 * include/grub/types.h (grub_target_off_t): Removed no longer used type.
15406 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15408 * grub-core/kern/emu/misc.c
15409 (grub_make_system_path_relative_to_its_root)
15410 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Fix mountpoint return on ZFS.
15412 2010-10-23 Vladimir Serbinenko <phcoder@gmail.com>
15414 * grub-core/kern/emu/misc.c
15415 (grub_make_system_path_relative_to_its_root): Revert r2882.
15417 2010-10-22 Vladimir Serbinenko <phcoder@gmail.com>
15419 * grub-core/lib/relocator.c (grub_relocator_subchunk): Remove now
15420 useless field head. All users updated.
15421 (free_subchunk): Correct handling of IN_REGION subchunk.
15423 2010-10-22 Colin Watson <cjwatson@ubuntu.com>
15425 * docs/grub.texi (Installing GRUB using grub-install): Proofread.
15426 (Supported kernels): Likewise.
15428 2010-10-18 Grégoire Sutre <gregoire.sutre@gmail.com>
15430 Make mktemp invocations portable.
15432 * grub-core/genmod.sh.in: Use mktemp with an explicit template, and
15433 exit if mktemp fails.
15434 * tests/grub_script_blockarg.in: Likewise.
15435 * tests/partmap_test.in: Likewise.
15436 * tests/util/grub-shell-tester.in: Likewise.
15437 * tests/util/grub-shell.in: Likewise.
15438 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
15439 * Makefile.am: Likewise, and chain shell commands with `&&'
15441 * util/grub-mkrescue.in: Use the same explicit template as above, and
15442 exit if mktemp fails.
15444 2010-10-18 BVK Chaitanya <bvk.groups@gmail.com>
15446 * util/grub.d/10_linux.in: Fix built-in initramfs image mode for
15447 Linux kernel, reported by Dennis Schridde.
15449 2010-10-17 Szymon Janc <szymon@janc.net.pl>
15451 * grub-core/normal/auth.c (grub_auth_check_authentication):
15452 Set-but-not-used variable removed.
15454 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15456 * docs/grub.texi (GNU/Linux): Document APM unavailability with
15457 32-bit linux protocol.
15459 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15461 * grub-core/kern/i386/pc/startup.S (grub_console_setcursor): Check
15462 cursor shape for sanity.
15464 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15466 * docs/grub.texi (Installation): Document buggy BIOS install.
15468 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15470 * docs/grub.texi (Installation): Indent.
15472 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15474 * util/grub-setup.c (setup): New parameter allow_floppy.
15475 (arguments): New member allow_floppy.
15476 (argp_parser): Handle --allow-floppy.
15477 (main): Pass allow_floppy.
15478 * util/grub-install.in: New option --allow-floppy passed though to
15481 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15483 * util/grub-install.in: Handle partitionless disks.
15485 2010-10-17 Vladimir Serbinenko <phcoder@gmail.com>
15487 * util/grub-setup.c (setup): Don't clean blocklists before readability
15490 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15492 * docs/grub.texi (Installation): Document embedding zone. Remove
15493 obsolete grub-install example.
15495 2010-10-16 Szymon Janc <szymon@janc.net.pl>
15497 * grub-core/commands/legacycfg.c (grub_cmd_legacy_kernel):
15498 Set-but-not-used variable ifdef'ed.
15499 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Likewise.
15500 * grub-core/bus/usb/ohci.c (grub_ohci_pci_iter): Set-but-not-used
15502 * grub-core/disk/lvm.c (grub_lvm_scan_device): Likewise.
15503 * grub-core/fs/jfs.c (grub_jfs_find_file): Likewise.
15504 * grub-core/fs/minix.c (grub_minix_dir): Likewise.
15505 * grub-core/fs/sfs.c (grub_sfs_read_extent): Likewise.
15506 * grub-core/fs/ufs.c (grub_ufs_dir): Likewise.
15507 * grub-core/gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
15508 * grub-core/gfxmenu/view.c (redraw_menu_visit): Likewise.
15509 * grub-core/gfxmenu/widget-box.c (draw): Likewise.
15510 * grub-core/lib/relocator.c (malloc_in_range): Likewise.
15511 * grub-core/loader/i386/bsdXX.c (grub_netbsd_load_elf_meta): Likewise.
15512 * grub-core/loader/i386/bsd_pagetable.c (fill_bsd64_pagetable):
15515 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15517 * grub-core/commands/acpihalt.c (skip_ext_op): Skip index field op.
15518 * include/grub/acpi.h (GRUB_ACPI_EXTOPCODE_INDEX_FIELD_OP): New
15521 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15523 * grub-core/commands/acpihalt.c (get_sleep_type): Accept \_S5_ as
15524 synonym to _S5_. Needed for some DSDTs.
15526 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15528 Userspace ACPI parser debugging.
15530 * grub-core/commands/acpihalt.c [GRUB_DSDT_TEST]: Include userspace
15531 headers and add relevant defines. Don't include standard headers.
15532 (main) [GRUB_DSDT_TEST]: New function.
15533 * include/grub/acpi.h [GRUB_DSDT_TEST]: Don't include standard headers.
15534 Don't declare functions.
15536 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15538 Remove dead grub_efi_mm_fini.
15540 * grub-core/kern/efi/mm.c (allocated_page): Removed.
15541 (ALLOCATED_PAGES_SIZE): Likewise.
15542 (MAX_ALLOCATED_PAGES): Likewise.
15543 (allocated_pages): Likewise.
15544 (grub_efi_allocate_pages): Don't record allocated pages.
15545 (grub_efi_free_pages): Likewise.
15546 (grub_efi_mm_init): Likewise.
15547 (grub_efi_mm_fini): Removed.
15549 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15551 * grub-core/kern/efi/mm.c (BYTES_TO_PAGES): Round up instead of down.
15552 (grub_efi_mm_init): Take into account the memory map size increase.
15554 2010-10-16 Vladimir Serbinenko <phcoder@gmail.com>
15556 * grub-core/term/ns8250.c (do_real_config): Set port->broken to 0.
15557 (serial_hw_put): Wait based on real time rather than port reads. Don't
15559 * include/grub/serial.h (grub_serial_port): New field broken.
15561 2010-10-16 Robert Millan <rmh@gnu.org>
15563 * grub-core/kern/emu/misc.c
15564 (grub_make_system_path_relative_to_its_root): Fix premature return
15565 when processing non-root ZFS filesystems.
15566 Reported by Sergio Talens-Oliag.
15568 2010-10-15 Robert Millan <rmh@gnu.org>
15570 * util/grub.d/10_linux.in (list): Expand "vmlinu[zx]" instances to
15571 guarantee compressed ones are processed first.
15573 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15575 * grub-core/efiemu/main.c (grub_efiemu_prepare): Handle errors from
15576 grub_efiemu_autocore.
15578 2010-10-14 Vladimir Serbinenko <phcoder@gmail.com>
15580 * grub-core/kern/i386/pc/startup.S (bypass_table): Use 0x1b explicitly
15582 (grub_console_getkey): Use correct jae opcode rather than ja.
15584 2010-10-12 Robert Millan <rmh@gnu.org>
15586 * util/grub-mkconfig.in: Merge `GRUB_DISABLE_LINUX_RECOVERY' and
15587 `GRUB_DISABLE_NETBSD_RECOVERY' into a single `GRUB_DISABLE_RECOVERY'
15588 variable. All references updated.
15590 * util/grub.d/10_kfreebsd.in: Support recovery boot entries.
15592 2010-10-08 Vladimir Serbinenko <phcoder@gmail.com>
15594 Correctly distinguish mdraid flavours.
15596 * grub-core/disk/raid.c (grub_raid_getname) [GRUB_UTIL]: New function.
15597 (insert_array): New argument raid.
15598 * include/grub/disk.h (grub_disk_dev) [GRUB_UTIL]: New member raidname.
15599 * include/grub/raid.h (grub_raid_array) [GRUB_UTIL]: New member driver.
15600 * util/grub-probe.c (probe): PRint raidname instead of plainly "mdraid".
15602 2010-10-09 Vladimir Serbinenko <phcoder@gmail.com>
15604 * grub-core/kern/i386/pc/startup.S (grub_console_getkey): Fix incorrect
15605 handling of special keys.
15607 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15609 * include/grub/scsi.h (grub_make_scsi_id): Fix incorrect usgae of
15610 GRUB_SCSI_ID_BUS_SHIFT instead of GRUB_SCSI_ID_LUN_SHIFT.
15612 2010-10-02 Aleš Nesrsta <starous@volny.cz>
15614 * grub-core/bus/usb/ohci.c (GRUB_OHCI_TDS): Increase.
15615 * grub-core/bus/usb/uhci.c (N_TD): New definition. All previous implicit
15617 * grub-core/bus/usb/usbtrans.c (grub_usb_bulk_setup_readwrite):
15618 Use right endpoint when querying descriptor.
15620 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15622 Clear out 0x80 color bit on EFI.
15624 Reported by: decoder and meta tech.
15626 * grub-core/term/efi/console.c (grub_console_standard_color): Removed.
15627 (grub_console_setcolorstate): Clear out 0x80 bit.
15628 Use GRUB_TERM_DEFAULT_STANDARD_COLOR.
15629 (grub_console_output): Use GRUB_TERM_DEFAULT_NORMAL_COLOR.
15630 Use GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR.
15632 2010-10-01 Vladimir Serbinenko <phcoder@gmail.com>
15634 * grub-core/loader/i386/linux.c (DEFAULT_VIDEO_MODE) [GRUB_MACHINE_EFI]:
15637 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15639 * grub-core/gettext/gettext.c (grub_gettext_init_ext): Avoid using
15640 mo_file after freeing.
15642 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15644 * grub-core/normal/term.c (read_terminal_list): Free in a right order.
15646 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15648 * grub-core/script/execute.c (grub_script_execute_sourcecode): Set
15651 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15653 * util/grub-setup.c (main) [GRUB_MACHINE_IEEE1275]: Propagate argp
15656 2010-09-30 Vladimir Serbinenko <phcoder@gmail.com>
15658 Put terminfo into core on ieee1275 and yeeloong (needed for console).
15660 * gentpl.py: New groups terminfoinkernel and terminfomodule.
15661 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include extcmd.h, arg.h
15662 and terminfo.h when needed.
15663 * grub-core/Makefile.core.def (kernel): Include term/terminfo.c,
15664 term/tparm.c, commands/extcmd.c, lib/arg.c on terminfokernel.
15665 (terminfo): Enable only on terminfokernel.
15666 (extcmd): Likewise.
15667 * include/grub/extcmd.h: Add missing EXPORT_FUNC.
15668 * include/grub/lib/arg.h: Likewise.
15669 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Fix
15670 incorrect usage of ->.
15672 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15674 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi]
15675 [GRUB_MACHINE_EFI && __i386__]: Fix typo.
15677 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15679 Fix coreboot compilation.
15681 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
15682 Take VBE info into account even if only text is supported.
15683 (fill_vbe_info): Take into account the case when only VGA text
15685 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): Set to zero
15686 on coreboot, multiboot and qemu.
15688 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15690 * grub-core/lib/relocator.c (malloc_in_range): Trim too verbose
15692 (grub_relocator_prepare_relocs): Set movers_chunk.srcv.
15694 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15696 * grub-core/loader/i386/bsd.c (grub_cmd_netbsd): Provide default serial
15699 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15701 * grub-core/lib/arg.c (grub_arg_parse): Fix treating of all commands as
15702 if they were BSD-style.
15704 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15706 * grub-core/boot/i386/pc/lnxboot.S: Replace
15707 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE with
15708 GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART.
15710 2010-09-29 Vladimir Serbinenko <phcoder@gmail.com>
15712 Write embedding zone using Reed-Solomon.
15714 * Makefile.util.def (grub-setup): Add grub-core/lib/reed_solomon.c.
15715 * grub-core/Makefile.am (rs_decoder.S): New target.
15716 (kern/i386/pc/startup.S): Depend on rs_decoder.S.
15717 * grub-core/kern/i386/pc/startup.S (reed_solomon_redundancy): New field.
15718 (multiboot): Move to RS part.
15719 (post_reed_solomon): New label.
15720 (grub_boot_drive): Move to non-RS part since it's modified in memory
15722 Include rs_decoder.S.
15723 * grub-core/lib/reed_solomon.c: New file.
15724 * include/grub/offsets.h (GRUB_KERNEL_I386_PC_REED_SOLOMON_REDUNDANCY):
15726 (GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE): Removed.
15727 (GRUB_KERNEL_I386_PC_RAW_SIZE): Updated.
15728 (GRUB_KERNEL_I386_PC_NO_REED_SOLOMON_PART): New definition.
15729 * include/grub/partition.h (grub_partition_map): Change prototype of
15730 embed to allow returning additional sectors.
15731 * include/grub/reed_solomon.h: New file.
15732 * util/grub-setup.c (setup): Handle Reed-Solomon.
15734 2010-09-28 Colin Watson <cjwatson@ubuntu.com>
15736 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15737 i386 and x86-64 definedness tests.
15739 2010-09-27 Yves Blusseau <blusseau@zetam.org>
15741 Fix generation of kernel_syms.lst
15743 * grub-core/Makefile.am (kernel_syms.lst): Fix value and position of
15746 2010-09-26 Robert Millan <rmh@gnu.org>
15748 Support degraded ZFS arrays in "grub-probe -t device" resolution.
15750 * grub-core/kern/emu/getroot.c (find_root_device_from_libzfs): When
15751 the pool is an array of devices, iterate through it and return the
15752 first device that passes a stat() test (instead of blindly returning
15755 2010-09-26 Robert Millan <rmh@gnu.org>
15757 Build fixes for GNU/kFreeBSD.
15759 * Makefile.util.def: Add `$(LIBZFS) $(LIBNVPAIR)' library dependencies
15760 to programs that require ZFS conversion.
15761 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): Support
15762 kernels that don't have FLOPPY_MAJOR.
15764 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15766 * grub-core/kern/emu/full.c (grub_emu_post_init): Fix typo.
15768 2010-09-25 BVK Chaitanya <bvk.groups@gmail.com>
15770 Fix grub-emu build.
15772 * grub-core/kern/emu/main.c: Remove #include <getopt.h>.
15773 * grub-core/kern/emu/full.c: Split grub_mdraid_{init,fini} into
15774 mdraid09 and mdraid1x.
15776 2010-09-24 Colin Watson <cjwatson@ubuntu.com>
15778 Re-enable grub-extras.
15780 * autogen.sh: Create symlinks to ${GRUB_CONTRIB} if necessary to
15781 avoid confusing Automake. Run autogen only twice, once for the top
15782 level and once for grub-core. Add Makefile.util.def and
15783 Makefile.core.def from extra modules to the appropriate autogen
15784 invocations. If Makefile.common exists in an extra module, include
15785 it in both Makefile.util.am and grub-core/Makefile.core.am;
15786 similarly, include any Makefile.util.common file in Makefile.util.am
15787 and any Makefile.core.common file in grub-core/Makefile.core.am.
15788 * conf/Makefile.common ($(top_srcdir)/grub-core/Makefile.core.am):
15789 Depend on $(top_srcdir)/grub-core/Makefile.gcry.def.
15790 ($(top_srcdir)/grub-core/Makefile.gcry.def): Remove.
15791 * grub-core/Makefile.am: Remove inclusion of Makefile.gcry.am.
15793 * gentpl.py (gvar_add): Turn GVARS into a set.
15794 (global_variable_initializers): Sort global variables on output.
15795 (vars_init): New function.
15796 (first_time): Likewise.
15797 (library): Ensure that non-global variable initialisations are
15798 emitted before the first time we emit code for a library block.
15799 Append to variables rather than setting them. Only emit
15800 noinst_LIBRARIES, BUILT_SOURCES, and CLEANFILES the first time for
15801 each conditional path.
15802 (program): installdir() emits an Autogen macro, so must be passed to
15803 var_add rather than gvar_add.
15805 (script): Likewise.
15806 (rules): New function, centralising handling for different target
15807 types. Set up Guile association lists for first_time and vars_init,
15808 and send most output to a diversion so that variable initialisations
15809 can be emitted first.
15810 (module_rules): Use new rules function.
15811 (kernel_rules): Likewise.
15812 (image_rules): Likewise.
15813 (library_rules): Likewise.
15814 (program_rules): Likewise.
15815 (script_rules): Likewise.
15816 (data_rules): Likewise.
15818 * configure.ac: Add AC_PROG_LN_S, for the benefit of ntldr-img.
15820 * .bzrignore: Add contrib and grub-core/contrib. Remove
15821 grub-core/Makefile.gcry.am.
15823 2010-09-24 Yves Blusseau <blusseau@zetam.org>
15825 * grub-core/lib/LzFind.c: Add missing include.
15826 * grub-core/lib/LzmaEnc.c: Likewise.
15827 * grub-core/script/lexer.c: Likewise.
15828 * grub-core/script/yylex.l: Likewise.
15829 * util/grub-macho2img.c: Likewise.
15830 * util/grub-menulst2cfg.c: Likewise.
15831 * util/grub-mklayout.c: Likewise.
15832 * util/grub-mkpasswd-pbkdf2.c
15833 * util/grub-mkrelpath.c: Likewise.
15834 * util/resolve.c: Likewise.
15836 2010-09-24 BVK Chaitanya <bvk.groups@gmail.com>
15838 * Makefile.util.def (example_unit_test): Add
15839 grub-core/gnulib/libgnu.a.
15841 2010-09-23 Grégoire Sutre <gregoire.sutre@gmail.com>
15843 * grub-core/commands/acpihalt.c (get_sleep_type): Initialize prev.
15845 2010-09-23 Vladimir Serbinenko <phcoder@gmail.com>
15847 Support xz compression on yeeloong.
15849 * Makefile.util.def (grub-mkimage): Add $(LIBLZMA).
15850 * configure.ac: Check for LZMA.
15851 * grub-core/Makefile.core.def (xz_decompress): New target.
15852 (none_decompress): Likewise.
15853 * grub-core/boot/decompressor/minilib.c: New file.
15854 * grub-core/boot/decompressor/none.c: Likewise.
15855 * grub-core/boot/decompressor/xz.c: Likewise.
15856 * grub-core/kern/mips/cache.S: Change to noreorder nomacro.
15857 * grub-core/kern/mips/cache_flush.S: Likewise.
15858 * grub-core/kern/i386/pc/lzma_decode.S: Remove dead code.
15859 * grub-core/kern/mips/startup.S: Move first stage to ...
15860 * grub-core/boot/mips/startup_raw.S: ...here. Change to noreorder
15862 * grub-core/kern/mips/startup.S: Change to noreorder nomacro.
15863 * grub-core/lib/mips/relocator_asm.S: Change to noreorder nomacro.
15864 * grub-core/lib/xzembed/xz_dec_bcj.c [GRUB_EMBED_DECOMPRESSOR]:
15865 Allocate statically.
15866 * grub-core/lib/xzembed/xz_dec_lzma2.c [GRUB_EMBED_DECOMPRESSOR]:
15867 Allocate statically or use scratch. Don't check CRC32.
15868 * grub-core/lib/xzembed/xz_dec_stream.c [GRUB_EMBED_DECOMPRESSOR]:
15869 Allocate statically. Don't check CRC32.
15870 * include/grub/decompressor.h: New file.
15871 * include/grub/offsets.h (GRUB_KERNEL_MIPS_YEELOONG_RAW_SIZE):
15873 (GRUB_KERNEL_MIPS_YEELOONG_UNCOMPRESSED_SIZE): New field.
15874 (GRUB_KERNEL_MIPS_YEELOONG_TOTAL_MODULE_SIZE): Adjusted.
15875 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX): Likewise.
15876 (GRUB_KERNEL_MIPS_YEELOONG_PREFIX_END): Likewise.
15877 (GRUB_KERNEL_MACHINE_UNCOMPRESSED_SIZE): New define.
15878 * util/grub-mkimage.c (grub_compression_t): New type.
15879 (PLATFORM_FLAGS_DECOMPRESSORS): New flag.
15880 (image_target_desc): New field default_compression.
15881 (image_targets): Adjust yeeloong targets.
15882 (compress_kernel_xz) [HAVE_LIBLZMA]: New function.
15883 (compress_kernel): New parameter comp.
15884 (generate_image): Likewise. Handle new compression case.
15885 (options): New option --compression
15887 (main): Handle new option.
15889 2010-09-22 Grégoire Sutre <gregoire.sutre@gmail.com>
15891 * grub-core/kern/emu/hostdisk.c [__NetBSD__]: Define FLOPPY_MAJOR.
15893 2010-09-22 Colin Watson <cjwatson@ubuntu.com>
15895 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix
15896 typo in __i386__ conditional.
15898 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15900 * grub-core/loader/multiboot_mbi2.c (GRUB_MACHINE_EFI): Add missing
15903 2010-09-22 Vladimir Serbinenko <phcoder@gmail.com>
15905 Implement EFI and ACPI multiboot2 extensions.
15907 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare
15908 new tags as supported.
15909 (acpiv2_size): New function.
15910 (grub_multiboot_get_mbi_size): Take new tags into account.
15911 (grub_multiboot_make_mbi): Add new tags.
15912 * include/grub/multiboot.h (GRUB_MACHINE_HAS_ACPI): New definition.
15914 2010-09-21 Aleš Nesrsta <starous@volny.cz>
15916 * grub-core/bus/usb/serial/common.c (grub_usbserial_attach):
15917 Added missing configuration of USB device.
15919 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15921 * grub-core/normal/menu_entry.c (run): Make sure we always return
15924 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15926 * grub-core/commands/efi/lsefimmap.c (grub_cmd_lsefimmap):
15927 NumberOfPages is UINT64 according to the UEFI specification, not
15928 UINTN. Fix printf format.
15930 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15932 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Change type of
15933 `err' to grub_usb_err_t.
15934 Reported and tested by: KESHAV P.R.
15936 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15938 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name): Make
15939 tpart non-const, so that we can assign to it. (Since this is a
15940 typedef, the constness refers to the pointer rather than what it
15943 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15945 * conf/Makefile.common (CPPFLAGS_GNULIB): Add
15946 $(top_srcdir)/grub-core/gnulib as well as
15947 $(top_builddir)/grub-core/gnulib.
15948 Reported by: KESHAV P.R.
15950 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15952 * util/grub-install.in: Fix the bootloader ID option to be
15953 consistently --bootloader-id, not --bootloader_id.
15954 Reported by: KESHAV P.R.
15956 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15958 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Make "Compute or
15959 check hash checksum." consistently translatable.
15961 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15963 * conf/Makefile.common (CPPFLAGS_GNULIB): Replace $(top_srcdir) with
15966 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15968 * grub-core/commands/hashsum.c (aliases): Add sha1sum alias.
15969 (GRUB_MOD_INIT): Register sha1sum command.
15970 (GRUB_MOD_FINI): Unregister sha1sum command.
15972 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15974 Keep boot and grub directory names in sync with utils scripts
15976 * configure.ac: Define GRUB_BOOT_DIR_NAME and GRUB_DIR_NAME macros.
15977 * config.h.in: Add previous macros.
15978 * include/grub/emu/misc.h (DEFAULT_DIRECTORY): Use previous macros.
15979 * util/grub-install.in: Use $bootdir and $grubdir variables.
15981 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
15983 * grub-core/kern/emu/hostdisk.c (find_system_device): Only try to
15984 convert partition names to disk names if the new `convert' parameter
15986 (grub_util_biosdisk_get_grub_dev): If opening the disk device
15987 returns GRUB_ERR_UNKNOWN_DEVICE, treat the partition device as a
15988 disk in its own right. This can happen with Xen disk images.
15990 2010-09-21 Yves Blusseau <blusseau@zetam.org>
15992 * util/grub-editenv.c: Update strings to avoid warnings when generating
15994 * util/grub-setup.c: Likewise.
15996 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
15998 * configure.ac: Change version to 1.99~beta0.
16000 2010-09-21 Vladimir Serbinenko <phcoder@gmail.com>
16002 * grub-core/loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
16004 * grub-core/loader/multiboot_mbi2.c (grub_fill_multiboot_mmap):
16006 * include/multiboot.h: Resynced with specification.
16007 * include/multiboot2.h: Likewise.
16009 2010-09-21 Colin Watson <cjwatson@ubuntu.com>
16011 Fix po directory handling.
16013 * configure.ac: Create po/Makefile.in rather than po/Makefile.
16014 * grub-core/gnulib/Makefile.am: Import gettext module.
16015 * m4/gnulib-cache.m4: Likewise.
16016 * m4/gnulib-comp.m4: Likewise.
16017 * m4/gettext.m4: New file, from gnulib.
16018 * m4/glibc2.m4: Likewise.
16019 * m4/iconv.m4: Likewise.
16020 * m4/intdiv0.m4: Likewise.
16021 * m4/intl.m4: Likewise.
16022 * m4/intldir.m4: Likewise.
16023 * m4/intlmacosx.m4: Likewise.
16024 * m4/intmax.m4: Likewise.
16025 * m4/inttypes-pri.m4: Likewise.
16026 * m4/lcmessage.m4: Likewise.
16027 * m4/lib-ld.m4: Likewise.
16028 * m4/lib-link.m4: Likewise.
16029 * m4/lib-prefix.m4: Likewise.
16030 * m4/lock.m4: Likewise.
16031 * m4/nls.m4: Likewise.
16032 * m4/po.m4: Likewise.
16033 * m4/printf-posix.m4: Likewise.
16034 * m4/progtest.m4: Likewise.
16035 * m4/threadlib.m4: Likewise.
16036 * m4/uintmax_t.m4: Likewise.
16037 * m4/visibility.m4: Likewise.
16038 * po/Makefile.am: Remove.
16039 * po/Makefile.in.in: New file, from gettext.
16040 ($(DOMAIN).pot-update): Support POTFILES-shell.
16041 * po/Makevars: New file.
16042 * po/POTFILES-shell: Rename to ...
16043 * po/POTFILES-shell.in: ... this. Update.
16044 * po/POTFILES: Rename to ...
16045 * po/POTFILES.in: ... this. Update.
16046 * po/Rules-quot: New file, from gettext.
16047 * po/boldquot.sed: Likewise.
16048 * po/en@boldquot.header: Likewise.
16049 * po/en@quot.header: Likewise.
16050 * po/insert-header.sin: Likewise.
16051 * po/quot.sed: Likewise.
16052 * po/remove-potcdate.sin: Likewise.
16054 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16056 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Use UUID when possible.
16058 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16060 * util/grub.d/20_linux_xen.in: Use submenus.
16062 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16066 * grub-core/commands/menuentry.c (grub_normal_add_menu_entry): New
16067 parameter submenu. All users updated.
16068 * grub-core/normal/main.c (free_menu): Rename to ...
16069 (grub_normal_free_menu): ... this. Made global.
16070 * grub-core/normal/menu.c (grub_menu_execute_entry): Open new context
16072 * grub-core/normal/menu_entry.c (screen): New field submenu.
16073 (make_screen): Set submenu.
16074 (run): Open new context if requested.
16075 * include/grub/menu.h (grub_menu_entry): New field submenu.
16076 * include/grub/normal.h (grub_normal_free_menu): New proto.
16078 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16080 Menu entries extractor.
16082 * grub-core/commands/configfile.c (grub_cmd_source): Implement extractor
16084 (GRUB_MOD_INIT): Register new variants.
16085 (GRUB_MOD_FINI): Unregister new variants.
16086 * grub-core/commands/legacycfg.c (grub_cmd_legacy_configfile): Merge
16087 into grub_cmd_legacy_source.
16088 (grub_cmd_legacy_source): Implement extractor variants.
16089 (GRUB_MOD_INIT): Register new variants.
16090 (GRUB_MOD_FINI): Unregister new variants.
16091 * grub-core/commands/menuentry.c (grub_menu_init): Declare menuentry
16093 * grub-core/commands/search_wrap.c (GRUB_MOD_INIT): Declare
16094 search as an extractor.
16095 * grub-core/commands/test.c (GRUB_MOD_INIT): Declare
16096 test as an extractor.
16097 * grub-core/kern/corecmd.c (grub_register_core_commands): Declare set
16099 * grub-core/normal/context.c (grub_env_context_open): Reorganised.
16100 (grub_env_new_context): New function.
16101 (grub_env_context_open): Likewise.
16102 (grub_env_extractor_open): Likewise.
16103 (grub_env_extractor_close): Likewise.
16104 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
16105 grub_extractor_level.
16106 * include/grub/command.h (GRUB_COMMAND_FLAG_EXTRACTOR): New flag.
16107 * include/grub/env.h (grub_env_extractor_open): New proto.
16108 (grub_env_extractor_close): Likewise.
16109 * include/grub/normal.h (grub_extractor_level): New external variable.
16111 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16113 Make cutmem accept a region specification.
16114 Suggested by: Samuel Thibault
16116 * grub-core/mmap/mmap.c (parsemem): New function.
16117 (grub_cmd_cutmem): Handle new arguments.
16119 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16121 New command cutmem.
16123 * grub-core/mmap/mmap.c (grub_cmd_cutmem): New function.
16124 (GRUB_MOD_INIT): Register new command.
16125 (GRUB_MOD_FINI): Unregister new command.
16127 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16129 Support some annoying BSD and Minix subpartitions.
16131 * Makefile.util.def (libgrub.a): Add grub-core/partmap/bsdlabel.c.
16132 * grub-core/disk/efi/efidisk.c (grub_efidisk_get_device_name):
16133 Properly handle concatenation.
16134 * grub-core/kern/device.c (grub_device_iterate): Likewise.
16135 * grub-core/normal/completion.c (iterate_partition): Likewise.
16136 * grub-core/kern/disk.c (grub_disk_open): Make disk->name not
16137 contain partition. All users updated.
16138 * grub-core/partmap/bsdlabel.c (grub_netbsdlabel_partition_map): New
16140 (grub_openbsdlabel_partition_map): Likewise.
16141 (bsdlabel_partition_map_iterate): Rename to ..
16142 (iterate_real): ... this. New arguments sector, freebsd and pmap.
16143 (bsdlabel_partition_map_iterate): New function.
16144 (netopenbsdlabel_partition_map_iterate): Likewise.
16145 (netbsdlabel_partition_map_iterate): Likewise.
16146 (openbsdlabel_partition_map_iterate): Likewise.
16147 (GRUB_MOD_INIT): Register new partmaps.
16148 (GRUB_MOD_FINI): Unregister new partmaps.
16149 * grub-core/partmap/msdos.c (pc_partition_map_iterate): Rename to ...
16150 (grub_partition_msdos_iterate): ... this. All users updated.
16151 Don't support embedding other than in a minix partition.
16152 * include/grub/msdos_partition.h (grub_partition_msdos_iterate): New
16154 * include/grub/partition.h (grub_partition): New field msdostype.
16155 * util/grub-install.in: Handle openbsd and netbsd types being in
16158 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16160 Split mdraid.mod into mdraid09.mod and mdraid1x.mod.
16162 * Makefile.util.def (libgrub.a): Add grub-core/disk/mdraid1x_linux.c.
16163 * grub-core/Makefile.core.def (mdraid): Renamed to ...
16164 (mdraid09): ... this.
16165 (mdraid1x): New module.
16166 * grub-core/disk/mdraid_linux.c: Move 1.x parts ...
16167 * grub-core/disk/mdraid1x_linux.c: ...here. All users updated.
16169 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16171 * grub-core/kern/emu/misc.c (asprintf): Use vsnprintf instead of
16174 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16176 * grub-core/commands/efi/lsefimmap.c: Correct header.
16179 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16181 * util/grub-editenv.c (argp_parser): Don't pass translated strings
16182 as printf format strings; the translations might contain '%' which
16183 could cause a crash.
16185 * util/grub-fstest.c (argp_parser): Likewise.
16186 * util/grub-setup.c (argp_parser): Likewise.
16189 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16191 Use argp in grub-fstest.
16193 * util/grub-fstest.c: Don't include getopt.h.
16195 (root): New variable.
16196 (args_count): Likewise.
16198 (num_disks): Likewise.
16199 (images): Likewise.
16201 (debug_str): Likewise.
16203 (options): Transformed to argp.
16205 (main): Split argument parsing into ...
16206 (argp_parser): ... this. Changed to argp format.
16207 (argp): New variable.
16208 (main): Use argp_parse.
16210 2010-09-20 Tristan Gingold <gingold@free.fr>
16211 2010-09-20 Robert Millan <rmh.grub@aybabtu.com>
16212 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16214 * grub-core/commands/efi/lsefimmap.c: New file.
16215 * grub-core/Makefile.core.def (lsefimmap): New module.
16216 * include/grub/efi/api.h (PRIxGRUB_EFI_UINTN_T): New definition.
16218 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16220 Pause the execution (10s max) if any errors are displayed so the user
16221 has a chance to see them.
16223 * grub-core/kern/err.c (grub_err_printed_errors): New variable.
16224 (grub_print_error): Increment grub_err_printed_errors.
16225 * grub-core/normal/menu.c (grub_menu_execute_entry): Pause the
16226 execution if any errors were displayed.
16227 (show_menu): Remove old code for pause.
16228 * grub-core/normal/menu_entry.c (run): Likewise.
16229 * grub-core/normal/term.c (grub_normal_char_counter): Removed. All
16231 (grub_normal_get_char_counter): Likewise.
16232 * include/grub/err.h (grub_err_printed_errors): New external variable.
16233 * include/grub/normal.h (grub_normal_get_char_counter): Removed.
16235 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16237 Support multiboot VBE info.
16239 * grub-core/loader/i386/multiboot_mbi.c (grub_multiboot_get_mbi_size):
16240 Take VBE info into account.
16241 (fill_vbe_info) [GRUB_MACHINE_HAS_VBE]: New function.
16242 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16243 Call fill_vbe_info when appropriate.
16244 (grub_multiboot_make_mbi): Account for the size occupied by VBE info.
16245 * grub-core/loader/multiboot_mbi2.c (grub_multiboot_load): Declare tags
16247 (grub_multiboot_get_mbi_size): Take new tags into account.
16248 (fill_vbe_tag) [GRUB_MACHINE_HAS_VBE]: New function.
16249 (retrieve_video_parameters) [GRUB_MACHINE_HAS_VBE]:
16250 Call fill_vbe_tag when appropriate.
16251 (grub_multiboot_make_mbi): Properly align tags.
16252 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_pm_interface): New
16254 * include/grub/i386/pc/vbe.h (grub_vbe_bios_get_pm_interface): New
16256 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VBE): New definition.
16258 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16260 Suport manual terminal geometry specification.
16262 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_dimensions):
16263 Save state in grub_ofconsole_terminfo_output.
16264 (grub_ofconsole_term): Use grub_terminfo_getwh.
16265 (grub_ofconsole_getwh): Removed.
16266 * grub-core/term/serial.c (grub_serial_getwh): Removed.
16267 (grub_serial_term): Use grub_terminfo_getwh.
16268 * grub-core/term/terminfo.c (grub_terminfo_getwh): New function.
16269 (options): New struct.
16270 (OPTION_*): New enum.
16271 (grub_cmd_terminfo): Transform into extcmd and handle new parameters.
16272 * include/grub/terminfo.h (grub_terminfo_output_state): New fields
16274 (grub_terminfo_getwh): New proto.
16275 * grub-core/lib/legacy_parse.c (grub_legacy_parse): Handle --lines.
16277 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16279 Handle legacy "terminal" command.
16281 * grub-core/lib/legacy_parse.c (legacy_command): New flags FLAG_TITLE
16283 (legacy_commands): Add terminal and title.
16284 (grub_legacy_parse): Handle terminal. Simplify title handling.
16286 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16288 * grub-core/lib/arg.c (grub_arg_show_help): Correctly handle
16289 parameters overflow.
16291 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16293 * .bzrignore: Add grub-core/gnulib/sys, widthspec.bin, and
16296 * docs/grub.texi (Shell-like scripting): Document `!'.
16297 (Network): Simplify using new i386-pc-pxe format. Mention
16302 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16304 * Makefile.am (SUBDIRS): Restore "."; it's important to force
16305 ordering, so that e.g. ascii.h is built before grub-core/font/font.c
16308 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16310 * grub-core/commands/efi/lsefisystab.c: Correct header.
16311 * grub-core/commands/efi/lssal.c: Likewise.
16312 * grub-core/commands/testload.c: Likewise.
16314 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16316 * util/grub-mkrescue.in: Add explicit root argument to --set to
16317 prevent the UUID being interpreted as an argument to --set (matches
16318 previous change to prepare_grub_to_access_device).
16320 2010-09-20 Colin Watson <cjwatson@ubuntu.com>
16322 * kern/emu/hostdisk.c: Include <sys/ioctl.h> and <sys/disklabel.h>
16323 on FreeBSD. Define HAVE_DIOCGDINFO on NetBSD and FreeBSD to reduce
16324 the verbosity of later #ifs.
16325 (find_partition_start): Define this function on FreeBSD too.
16326 (device_is_wholedisk) [__FreeBSD__ || __FreeBSD_kernel__]: New
16328 (grub_util_biosdisk_get_grub_dev): Use partition-start-sector logic
16331 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16333 * util/grub-editenv.c: Use argp instead of getopt.
16335 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16337 * util/grub-setup.c: Use argp instead of getopt.
16339 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16341 Use gnulib-tool to create gnulib source files.
16343 * Add gnulib files generated by gnulib-tool in build-aux, m4 and
16344 grub-core/gnulib directories
16345 * .bzignore: Add **/.deps and autogenerated gnulib files
16346 * configure.ac: Assign auxiliary directory to build-aux, add invocation
16347 of gnulib macros, add grub-core/gnulib/Makefile
16348 * Makefile.am: Add gnulib directory in SUBDIRS (removing unnecessary .),
16349 include m4 directory to aclocal.
16350 * Makefile.util.def: Remove direct compilation of gnulib source files
16351 and use the new grub-core/gnulib/libgnu.a.
16352 * build-aux/config.rpath: move config.rpath from top directory to
16354 * conf/Makefile.common: Remove the macro _GL_UNUSED already defined
16356 * conf/Makefile.extra-dist: Add m4/gnulib-cache.m4
16357 * grub-core/Makefile.core.def: Remove unnecessary extra_dist
16358 * grub-core/lib/posix_wrap/localcharset.h (locale_charset): Update
16360 * grub-core/lib/posix_wrap/langinfo.h (nl_langinfo): Return static
16363 2010-09-20 Yves Blusseau <blusseau@zetam.org>
16365 * .bzrignore: Add grub-kbdcomp, grub-menulst2cfg, *.marker,
16366 grub-core/genmod.sh and grub-core/gensyminfo.sh
16368 2010-09-20 BVK Chaitanya <bvk.groups@gmail.com>
16370 Add a test for echo command options.
16372 * tests/grub_cmd_echo.in: New test.
16373 * Makefile.util.def: Rules for new test.
16375 2010-09-20 Szymon Janc <szymon@janc.net.pl>
16377 Remove crc.mod and move crc command to hashsum.mod.
16378 Remove lib/crc.c - users updated to use gcrypt implementation.
16380 * grub-core/commands/crc.c: Removed.
16381 * grub-core/Makefile.core.def (crc): Module removed.
16382 * grub-core/commands/hashsum.c (aliases[]): Add crc alias.
16383 * grub-core/commands/hashsum.c (GRUB_MOD_INIT): Register crc command.
16384 * grub-core/commands/hashsum.c (GRUB_MOD_FINI): Unregister crc command.
16385 * grub-core/lib/crc.c: Removed.
16386 * include/grub/lib/crc.h: Removed.
16387 * Makefile.util.def (crc): Remove lib/crc.c
16388 * grub-core/Makefile.core.def (libgrub.a): Remove grub-core/lib/crc.c.
16389 * util/grub-fstest.c (cmd_crd): Use libgcrypt crc implementation.
16390 * Makefile.util.def (libgrub.a): Add grub-core/lib/libgcrypt-grub/cipher/crc.c.
16391 * Makefile.util.def (grub-fstest): Add CFLAGS_GCRY to cflags.
16392 * Makefile.util.def (grub-fstest): Add CPPFLAGS_GCRY to cppflags.
16393 * grub-core/efiemu/prepare.c (grub_efiemu_crc): Use libgcrypt crc implementation.
16395 2010-09-20 Vladimir Serbinenko <phcoder@gmail.com>
16397 * grub-core/boot/i386/pc/boot.S: Ignore %dl if it's not in a sane range.
16399 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16401 Split config.h for util and core.
16403 * acinclude.m4 (HAVE_ASM_USCORE): Transformed into a variable.
16404 (ADDR32): Likewise.
16405 (DATA32): Likewise.
16406 (BSS_START_SYMBOL): Likewise.
16407 (END_SYMBOL): Likewise.
16408 (NEED_ENABLE_EXECUTE_STACK): Likewise. All users updated.
16409 (grub_I386_ASM_ABSOLUTE_WITHOUT_ASTERISK): Removed.
16410 * config.h.in: New file.
16411 * configure.ac: Use config-util.h as config define file.
16412 Rename MACHINE into GRUB_MACHINE. All users updated.
16413 (NEED_REGISTER_FRAME_INFO): Transformed into a variable. All users
16415 (NESTED_FUNC_ATTR): Likewise.
16416 Substitue new variables.
16417 (COND_HAVE_ASM_USCORE): New conditional.
16418 * grub-core/Makefile.am (ASM_PREFIX): New variable.
16419 (kernel_syms.lst): Use ASM_PREFIX.
16420 * grub-core/kern/emu/console.c: Include config-util.h.
16421 * grub-core/kern/emu/misc.c: Likewise.
16422 * grub-core/kern/emu/mm.c: Likewise.
16423 * include/grub/emu/misc.h: Likewise.
16424 * include/grub/libgcc.h: Likewise.
16426 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16428 * grub-core/term/efi/console.c (efi_codes): Fix GRUB_TERM_KEY_*
16430 * grub-core/kern/emu/console.c (grub_ncurses_getkey):
16431 Fix GRUB_TERM_KEY_* constants usage.
16432 * grub-core/kern/emu/misc.c (asprintf): Fix vasprintf usage.
16434 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16436 * grub-core/bus/usb/ohci.c (grub_ohci_cancel_transfer): Use %p to
16438 * grub-core/bus/usb/uhci.c: Remove empty define.
16439 (grub_uhci_check_transfer): Add missing cast.
16440 * grub-core/bus/usb/usbhub.c (poll_nonroot_hub): Use %p to
16442 * grub-core/term/usb_keyboard.c (grub_usb_keyboard_getkey): Use
16444 * include/grub/types.h (PRIuGRUB_SIZE): New definition.
16446 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16448 * grub-core/Makefile.core.def (legacycfg): Add
16449 lib/i386/pc/vesa_modes_table.c on emu.
16451 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16453 Reduce number of temporary files generated by build system.
16455 * grub-core/gencmdlist.sh: Removed.
16456 * grub-core/genfslist.sh: Removed.
16457 * grub-core/genhandlerlist.sh: Removed.
16458 * grub-core/genmodsrc.sh: Removed.
16459 * grub-core/genpartmaplist.sh: Removed.
16460 * grub-core/genparttoollist.sh: Removed.
16461 * grub-core/gentermiinallist.sh: Removed.
16462 * grub-core/genvideolist.sh: Removed.
16464 * grub-core/genmod.sh.in: New file.
16465 * grub-core/gensyminfo.sh.in: New file.
16467 * conf/Makefile.common (CPPFLAGS_*_LIST): New marker flags.
16468 * conf/Makefile.extra-dist: Update with new files.
16469 * gentpl.py: Remove rules related to unnecessary temporary files.
16470 * grub-core/Makefile.am (syminfo.lst): New replacement for def-*
16472 * grub-core/Makefile.core.def: New rules for gensyminfo.sh and
16474 * grub-core/bus/usb/uhci.c: Remove empty #define.
16475 * grub-core/genmoddep.awk: Updated with new syminfo format.
16476 * util/bash-completion.d/Makefile.am: Add config.log to
16479 2010-09-19 Yves Blusseau <blusseau@zetam.org>
16481 * Makefile.util.def: Add forgotten $(LIBINTL) library.
16483 2010-09-19 BVK Chaitanya <bvk.groups@gmail.com>
16485 * util/grub-mkconfig.in: Check the config script for syntax errors
16488 2010-09-19 Colin Watson <cjwatson@ubuntu.com>
16489 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16491 * Makefile.util.def (grub-install): Use util/grub-install.in on all
16493 * util/grub-install.in: Add EFI and IEEE1275 support.
16494 * util/i386/efi/grub-install.in: Removed.
16495 * util/ieee1275/grub-install.in: Likewise.
16497 2010-09-19 Vladimir Serbinenko <phcoder@gmail.com>
16499 * grub-core/commands/i386/cmostest.c (+parse_args): New function.
16500 (grub_cmd_cmosclean): Likewise.
16501 (GRUB_MOD_INIT): Register command cmosclean.
16502 * util/grub-mkconfig.in: Export GRUB_BUTTON_CMOS_CLEAN.
16503 * util/grub.d/00_header.in: Handle GRUB_BUTTON_CMOS_CLEAN.
16505 2010-09-18 Carles Pina i Estany <carles@pina.cat>
16506 2010-09-18 Aleš Nesrsta <starous@volny.cz>
16507 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16509 Add keyboard layouts support.
16511 * Makefile.util.def (grub-mklayout): New file.
16512 (grub-kbdcomp): New script.
16513 * grub-core/Makefile.am (KERNEL_HEADER_FILES) [COND_mips_yeeloong]:
16514 Add keyboard_layouts.h.
16515 * grub-core/Makefile.core.def (kernel): Add commands/keylayouts.c and
16516 commands/boot.c on yeeloong.
16517 (keylayouts): New module.
16518 * grub-core/bus/usb/ohci.c
16519 * grub-core/bus/usb/uhci.c
16520 * grub-core/bus/usb/usbhub.c (rescan): New variable.
16521 (grub_usb_add_hub): Poll interrupt pipe for device handling.
16522 (attach_root_port): Likewise.
16523 (poll_nonroot_hub): Likewise.
16524 (grub_usb_poll_devices): Likewise.
16525 (detach_device): Close transfer.
16526 * grub-core/bus/usb/usbtrans.c (grub_usb_execute_and_wait_transfer): New
16528 (grub_usb_bulk_setup_readwrite): Likewise.
16529 (grub_usb_bulk_finish_readwrite): Likewise.
16530 * grub-core/commands/keylayouts.c: New file.
16531 * grub-core/commands/keystatus.c (grub_getkeystatus): New function.
16532 * grub-core/commands/menuentry.c (hotkey_aliases): All several new
16534 * grub-core/term/at_keyboard.c: Restructured to use keylayouts and
16535 support scancode 2.
16536 * grub-core/term/usb_keyboard.c: Restructured to use keylayouts.
16537 * include/grub/keyboard_layouts.h: New file.
16538 * util/grub-mklayout.c: New file.
16539 * util/grub-kbdcomp.in: Likewise.
16541 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16543 Unify memory types.
16545 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Include memory.h.
16546 * grub-core/commands/lsmmap.c (grub_cmd_lsmmap): Output user-readable
16548 * grub-core/kern/i386/multiboot_mmap.c (grub_lower_mem): Removed.
16549 (grub_upper_mem): Likewise.
16550 * grub-core/kern/ieee1275/init.c (grub_upper_mem): Likewise.
16551 * include/grub/memory.h (grub_memory_type_t): New enum.
16554 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16556 * grub-core/Makefile.core.def (lsapm): New module.
16557 * grub-core/commands/i386/pc/lsapm.c: New file.
16558 * grub-core/loader/i386/multiboot_mbi.c (make_mbi) [GRUB_MACHINE_PCBIOS]: Pass APM info.
16559 * grub-core/loader/multiboot_mbi2.c (make_mbi) [GRUB_MACHINE_PCBIOS]:
16561 * include/grub/i386/pc/apm.h: New file.
16562 * include/multiboot.h (multiboot_apm_info): New struct.
16564 2010-09-18 Vladimir Serbinenko <phcoder@gmail.com>
16566 GRUB-legacy configuration file support.
16568 * Makefile.util.def (grub-menulst2cfg): New util.
16569 * docs/man/grub-menulst2cfg.h2m: New file.
16570 * grub-core/Makefile.core.def (legacycfg): New module.
16571 * grub-core/commands/legacycfg.c: New file.
16572 * grub-core/commands/menuentry.c (append_menu_entry): Rename to ...
16573 (grub_normal_add_menu_entry): ... this.
16574 * grub-core/commands/password.c (grub_cmd_password): Split main part to ...
16575 (grub_normal_set_password): ...this.
16576 * grub-core/commands/videoinfo.c (grub_cmd_videoinfo): Support MODE.
16577 * grub-core/loader/i386/linux.c (linux_vesafb_res): Move to ..,
16578 * grub-core/lib/i386/pc/vesa_modes_table.c: ... here.
16579 * grub-core/lib/legacy_parse.c: New file.
16580 * grub-core/normal/auth.c (grub_cmd_authenticate): New command.
16581 * include/grub/i386/pc/vesa_modes_table.h: New file.
16582 * include/grub/legacy_parse.h: Likewise.
16583 * include/grub/normal.h (grub_normal_add_menu_entry): New proto.
16584 * util/grub-menulst2cfg.c: New file.
16586 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16588 * grub-core/kern/emu/hostdisk.c
16589 (convert_system_partition_to_system_disk): Initialise node.
16591 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16593 * grub-core/kern/emu/hostdisk.c
16594 (convert_system_partition_to_system_disk): Fix devmapper memory pool
16596 Reported and based on patch by: Modestas Vainius.
16598 2010-09-17 Colin Watson <cjwatson@ubuntu.com>
16600 Fix DM-RAID probing with recent versions of device-mapper udev
16603 * grub-core/kern/emu/hostdisk.c (read_device_map): Don't
16604 canonicalise device paths under /dev/mapper/.
16605 (convert_system_partition_to_system_disk): Compare the
16606 uncanonicalised path to /dev/mapper/ rather than the canonicalised
16607 path, since device nodes under /dev/mapper/ are often symlinks.
16609 2010-09-17 Yves Blusseau <blusseau@zetam.org>
16611 * .bzrignore: *.d removed (old rule), add *.image and symlist.h.
16613 2010-09-16 Yves Blusseau <blusseau@zetam.org>
16615 * configure.ac: Avoid some annoying error messages if freetype-config
16616 program is not found.
16618 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16620 Support RAID on virtio devices, and others.
16622 * grub-core/kern/emu/getroot.c [__MINGW32__] (find_root_device):
16624 [__MINGW32__] (grub_find_device): ... this.
16625 [! __MINGW32__ && ! __CYGWIN__] (find_root_device): Rename to ...
16626 [! __MINGW32__ && ! __CYGWIN__] (grub_find_device): ... this. Use a
16627 reasonable default if dir is NULL.
16628 [! __MINGW32__ && __CYGWIN__] (find_cygwin_root_device): Rename to
16630 [! __MINGW32__ && __CYGWIN__] (grub_find_device): ... this.
16631 (grub_guess_root_device): Update callers.
16632 * include/grub/emu/getroot.h (grub_find_device): Add prototype.
16634 * util/raid.c (grub_util_getdiskname): Remove.
16635 (grub_util_raid_getmembers): Use grub_find_device rather than
16636 grub_util_getdiskname.
16638 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16640 * docs/grub.texi (serial): Remove obsolete comment about GRUB
16641 needing to be compiled with serial support.
16642 (ls): Indicate that multiple files are accepted.
16643 * grub-core/commands/ls.c (GRUB_MOD_INIT): Update help text to
16644 indicate that multiple files are accepted.
16646 2010-09-16 Colin Watson <cjwatson@ubuntu.com>
16648 * .bzrignore: Add *.1, *.8, grub-shell, grub-shell-tester,
16649 libgrub_a_init.c, and util/bash-completion.d/grub.
16651 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16653 * util/grub-setup.c (setup): Fix incorrect container semantics.
16655 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16657 * grub-core/commands/parttool.c (grub_cmd_parttool): Fix a variable
16659 Reported by: J. Nick Terry
16661 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16663 Move embedding routines to partmap sources files.
16665 * grub-core/partmap/gpt.c (grub_gpt_partition_type_bios_boot)
16666 [GRUB_UTIL]: New variable.
16667 (gpt_partition_map_iterate): Set part.parent.
16668 (gpt_partition_map_embed) [GRUB_UTIL]: New function.
16669 (grub_gpt_partition_map) [GRUB_UTIL]: Set .embed.
16670 * grub-core/partmap/msdos.c (pc_partition_map_embed) [GRUB_UTIL]:
16672 (grub_msdos_partition_map) [GRUB_UTIL]: Set .embed.
16673 * include/grub/partition.h (grub_embed_type_t) [GRUB_UTIL]: New type.
16674 (grub_partition_map) [GRUB_UTIL]: New field embed.
16675 * util/grub-setup.c (grub_gpt_partition_type_bios_boot): Removed.
16676 (setup): Use ->embed.
16678 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16680 * grub-core/kern/emu/hostdisk.c (grub_util_biosdisk_is_floppy): New
16682 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_floppy): New proto.
16683 * util/grub-setup.c (setup): Use grub_util_biosdisk_is_floppy.
16685 2010-09-15 Yves Blusseau <blusseau@zetam.org>
16687 Add function to get completions from usage.
16689 * util/bash-completion.d/grub-completion.bash.in: Add function to get
16690 completions from usage. Use LC_ALL=C to get options properly.
16692 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16694 * grub-core/gnulib/basename-lgpl.c: Imported.
16695 * grub-core/gnulib/basename.c: Likewise.
16696 * grub-core/gnulib/dirname-lgpl.c: Likewise.
16697 * grub-core/gnulib/dirname.c: Likewise.
16698 * grub-core/gnulib/dirname.h: Likewise.
16699 * grub-core/gnulib/stripslash.c: Likewise.
16701 2010-09-15 Vladimir Serbinenko <phcoder@gmail.com>
16703 * grub-core/gnulib/error.c: Resynced.
16704 * grub-core/gnulib/getopt.c: Likewise.
16705 * grub-core/gnulib/getopt_int.h: Likewise.
16706 * grub-core/gnulib/regex.h: Likewise.
16707 * grub-core/gnulib/regex_internal.c: Likewise.
16708 * grub-core/gnulib/regex_internal.h: Likewise.
16710 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16712 * grub-core/lib/xzembed/xz_dec_stream.c (dec_main): Fix index and block
16713 CRC calculations and validity checks.
16714 * grub-core/lib/xzembed/xz_dec_stream.c (dec_index): Fix index CRC
16717 2010-09-15 Szymon Janc <szymon@janc.net.pl>
16719 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_end): Fix memory leak.
16721 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16723 Fix incorrect echo options handling.
16724 Reported by: Yves Blusseau.
16726 * include/grub/command.h (grub_command_flags_t): New flags
16727 GRUB_COMMAND_ACCEPT_DASH and GRUB_COMMAND_OPTIONS_AT_START.
16728 * grub-core/lib/arg.c (grub_arg_parse): Handle new flags.
16729 * grub-core/commands/echo.c (GRUB_MOD_INIT): Use new flags.
16731 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16733 * include/grub/command.h (GRUB_COMMAND_FLAG_CMDLINE): Removed. All
16735 (GRUB_COMMAND_FLAG_MENU): Likewise.
16736 (GRUB_COMMAND_FLAG_BOTH): Likewise.
16737 (GRUB_COMMAND_FLAG_TITLE): Removed.
16738 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
16739 (GRUB_COMMAND_FLAG_EXTCMD): Moved into enum.
16740 (GRUB_COMMAND_FLAG_DYNCMD): Likewise.
16741 (GRUB_COMMAND_FLAG_BLOCKS): Likewise.
16742 (grub_command_flags_t): New enum. All users updated.
16744 2010-09-14 Seth Goldberg <seth.goldberg@oracle.com>
16746 Fix solaris compilation.
16748 * grub-core/Makefile.core.def (kernel): Include gnulib/error.c on emu.
16749 (grub-emu): Add LIBZFS and LIBNVPAIR to ldadd.
16750 (grub-emu-list): Likewise.
16752 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16754 Remove deprecated root command.
16756 * grub-core/commands/minicmd.c (grub_mini_cmd_root): Removed. All users
16759 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16761 * util/i386/pc/grub-setup.c: Merge this ...
16762 * util/sparc64/ieee1275/grub-setup.c: ... and this ...
16763 * util/grub-setup.c: ... into this.
16764 * include/grub/sparc64/ieee1275/boot.h (grub_boot_blocklist) [ASM_FILE]:
16767 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16769 * grub-core/fs/ext2.c (grub_ext2_open): Use return error value when
16772 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16774 * grub-core/partmap/sun.c (sun_partition_map_iterate): Don't needlesly
16777 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16779 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Add
16780 explicit root argument to set to prevent UUID to be interpreted as
16783 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16785 * grub-core/kern/sparc64/ieee1275/crt0.S: Align stack.
16787 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16789 Don't export grub_gate_a20.
16791 * grub-core/kern/i386/pc/init.c: Remove leftovers.
16792 * grub-core/kern/i386/pc/startup.S (FUNCTION(grub_gate_a20)): Rename
16794 (grub_gate_a20): ... this. All users updated.
16795 * include/grub/i386/pc/init.h: Removed. All users updated.
16797 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16799 Create euro.pf2 which supports most European languages.
16801 * Makefile.am (grubdata_DATA): Add euro.pf2.
16802 (euro.pf2): New target.
16803 (CLEANFILES): Add euro.pf2.
16805 2010-09-14 Vladimir Serbinenko <phcoder@gmail.com>
16807 * configure.ac: Disable emu-usb by default to prevent inadvertent
16810 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16812 Disable usbserial on grub-emu since our libusb code isn't good enough
16815 * grub-core/Makefile.core.def (usbserial_common): Disable on emu.
16816 (usbserial_pl2303): Likewise.
16817 (usbserial_ftdi): Likewise.
16819 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16821 * include/grub/disk.h (grub_disk): Remove has_partitions.
16823 * disk/loopback.c (grub_loopback): Remove has_partitions.
16825 (options): Remove partitions. All users updated.
16826 * util/grub-fstest.c (fstest): Don't pass "-p" to loopback.
16827 * util/i386/pc/grub-setup.c (setup): copy partition table only when
16828 actual partition table is found.
16830 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16832 Remove readability checks (too many false negatives).
16834 * util/grub-install.in: Remove readability checks.
16835 * util/grub-mkconfig.in: Likewise.
16836 * util/grub.d/10_hurd.in: Likewise.
16837 * util/grub.d/10_kfreebsd.in: Likewise.
16838 * util/grub.d/10_linux.in: Likewise.
16839 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Revert to old
16842 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16844 Enable acpi shutdown on all ACPI platforms.
16846 * grub-core/Makefile.core.def (halt): Inlude commands/acpihalt.c
16847 on coreboo, multiboot and EFI.
16848 * grub-core/commands/acpihalt.c (get_sleep_type): Add missing casts.
16849 (grub_acpi_halt): Likewise.
16850 * grub-core/commands/i386/pc/halt.c (grub_halt): Call grub_acpi_halt.
16851 (grub_cmd_halt): Don't call grub_acpi_halt directly.
16852 * grub-core/lib/efi/halt.c (grub_halt): Call grub_acpi_halt.
16853 * grub-core/lib/i386/halt.c (grub_halt)
16854 [GRUB_MACHINE_COREBOOT || GRUB_MACHINE_MULTIBOOT]: Likewise.
16856 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16858 * grub-core/commands/iorw.c (grub_cmd_read): Declare buf in smallest
16861 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16863 * grub-core/video/efi_gop.c: Fix over-80-chars line.
16864 * grub-core/video/efi_uga.c: Likewise.
16866 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16868 Filter devaliases and never open same device twice.
16870 * grub-core/disk/ieee1275/ofdisk.c (last_devpath): New variable.
16871 (last_ihandle): Likewise.
16872 (ofdisk_hash_ent): New member shortest.
16873 (ofdisk_hash_add): Add canonical path too.
16874 (scan): New function.
16875 (grub_ofdisk_iterate): Iterate over hashed entries.
16876 (compute_dev_path): Don't add :0.
16877 (grub_ofdisk_open): Don't really open the disk.
16878 (grub_ofdisk_close): Avoid closing unrelated disk.
16879 (grub_ofdisk_read): Implement reopen logic.
16880 * grub-core/kern/ieee1275/openfw.c (grub_ieee1275_canonicalise_devname):
16882 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_canonicalise_devname):
16885 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16889 * configure.ac (GRUB_KERNEL_MACHINE_LINK_ADDR): Removed.
16890 * grub-core/Makefile.core.def (kernel): Make ldflags just use the
16891 right address. Add sparc64_ieee1275_ldflags.
16892 * grub-core/loader/sparc64/ieee1275/linux.c: Remove leftover include.
16893 * util/grub-mkimagexx.c (locate_sections): Correct grub_host_to_target32
16894 to grub_host_to_target_addr
16895 (load_image): Likewise.
16897 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16899 * grub-core/normal/completion.c (complete_file): Handle device
16901 Fix based on patch by Doug Nazar.
16903 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16905 grub-mknetdir script.
16907 * Makefile.util.def (grub-mknetdir): New module.
16908 * tests/util/grub-shell.in: Support boot=net
16909 * util/grub-mknetdir.in: New file.
16911 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16913 videoinfo on non-vbe.
16915 * grub-core/Makefile.core.def (vbeinfo): Removed.
16916 (vbetest): Removed.
16917 (videoinfo): New module.
16918 * grub-core/commands/i386/pc/vbeinfo.c: Removed.
16919 * grub-core/commands/i386/pc/vbetest.c: Removed.
16920 * grub-core/commands/videoinfo.c: New file.
16921 * grub-core/commands/videotest.c (grub_cmd_videotest): Support mode
16923 (grub_cmd_videotest) [GRUB_MACHINE_PCBIOS]: Load vbe.mod when invoked
16925 (GRUB_MOD_INIT) [GRUB_MACHINE_PCBIOS]: New command vbetest.
16926 (GRUB_MOD_FINI) [GRUB_MACHINE_PCBIOS]: Unregister vbetest.
16927 * grub-core/video/efi_gop.c (grub_video_gop_fill_mode_info): Fill
16928 mode_number. New parameter mode. All users updated.
16929 (grub_video_gop_iterate): New function.
16930 (grub_video_efi_gop): New member iterate.
16931 * grub-core/video/i386/pc/vbe.c (framebuffer): Removed leftover fields.
16932 (grub_vbe_set_video_mode): Remove setting useless fields.
16933 (vbe2videoinfo): New function.
16934 (grub_video_vbe_iterate): Likewise.
16935 (grub_video_vbe_setup): Use vbe2videoinfo.
16936 (grub_video_vbe_print_adapter_specific_info): New function.
16937 (grub_video_vbe_adapter): New fields iterate and
16938 print_adapter_specific_info.
16939 * include/grub/video.h (GRUB_VIDEO_MODE_*): Transform into enum.
16941 (grub_video_mode_info): New field mode_number.
16942 (grub_video_adapter): New fields iterate and
16943 print_adapter_specific_info.
16945 2010-09-13 Tristan Gingold <gingold@free.fr>
16946 2010-09-13 Robert Millan <rmh.grub@aybabtu.com>
16947 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16949 * grub-core/commands/efi/lsefisystab.c: New file.
16950 * grub-core/commands/efi/lssal.c: Likewise.
16951 * grub-core/Makefile.core.def (lsacpi): New module.
16952 (lsefisystab): Likewise.
16953 * include/grub/efi/api.h (GRUB_EFI_SAL_TABLE_GUID): New definition.
16954 (GRUB_EFI_HCDP_TABLE_GUID): Likewise.
16955 (grub_efi_sal_system_table): New struct.
16956 (grub_efi_sal_system_table_entrypoint_descriptor): Likewise.
16957 (grub_efi_sal_system_table_memory_descriptor): Likewise.
16958 (grub_efi_sal_system_table_platform_features): Likewise.
16959 (grub_efi_sal_system_table_translation_register_descriptor): Likewise.
16960 (grub_efi_sal_system_table_purge_translation_coherence): Likewise.
16961 (grub_efi_sal_system_table_ap_wakeup): Likewise.
16962 * include/grub/types.h (PRIuGRUB_UINT64_T): New definition.
16964 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16966 Support explicit user claim that a device is BIOS-visible.
16968 * grub-core/kern/emu/getroot.c (grub_util_get_dev_abstraction):
16969 Return GRUB_DEV_ABSTRACTION_NONE if device is in device.map.
16970 * grub-core/kern/emu/hostdisk.c
16971 (convert_system_partition_to_system_disk): Support mdX.
16972 (find_system_device): New parameter add. All users updated.
16973 (grub_util_biosdisk_is_present): New function.
16974 * include/grub/emu/hostdisk.h (grub_util_biosdisk_is_present): New
16977 2010-09-13 Vladimir Serbinenko <phcoder@gmail.com>
16979 Search hints support.
16981 * commands/search.c (FUNC_NAME): New arguments hints and nhints.
16984 2010-09-13 Yves Blusseau <blusseau@zetam.org>
16986 Bash completion script for util commands
16988 * Makefile.am: Add util/bash-completion.d directory
16989 * configure.ac: Likewise.
16990 * util/bash-completion.d/Makefile.am: New file.
16991 * util/bash-completion.d/grub-completion.bash.in: Likewise.
16993 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
16995 * grub-core/normal/term.c (put_glyphs_terminal): Correct sign.
16996 (print_backlog): set backlog_ucs4 and backlog_glyphs.
16997 Reported by: Yves Blusseau.
16999 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17001 * grub-core/normal/misc.c (grub_normal_print_device_info): Show
17002 partition size and offset.
17004 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17006 * grub-core/commands/wildcard.c (make_regex): Escape brackets.
17008 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17010 * grub-core/commands/ls.c (grub_cmd_ls): Accept multiple files.
17012 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17014 * grub-core/kern/misc.c (grub_vprintf): Use va_copy when necessary.
17015 (grub_xvasprintf): Likewise.
17017 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17019 * grub-core/kern/emu/main.c (main): Call hostfs_init only after init_all.
17021 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17023 * grub-core/commands/menuentry.c (append_menu_entry): Don't rely on
17024 args ending with NULL.
17026 2010-09-12 Vladimir Serbinenko <phcoder@gmail.com>
17028 * grub-core/lib/xzembed/xz_dec_stream.c (xz_dec_reset): Preserve context
17031 2010-09-11 Szymon Janc <szymon@janc.net.pl>
17033 * grub-core/commands/lsacpi.c (grub_cmd_lsacpi): Fix prototype.
17035 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17037 Shutdown using ACPI.
17039 * grub-core/Makefile.core.def (halt): Add commands/acpihalt.c on i386-pc.
17040 * grub-core/commands/acpihalt.c: New file.
17041 * grub-core/commands/i386/pc/halt.c (grub_cmd_halt): Call grub_acpi_halt.
17042 * include/grub/acpi.h (grub_acpi_fadt): New member pm1a.
17043 (grub_acpi_halt): New proto.
17044 (GRUB_ACPI_SLP_EN): New const.
17045 (GRUB_ACPI_SLP_TYP_OFFSET): Likewise.
17046 (GRUB_ACPI_OPCODE_*): New enum.
17047 (GRUB_ACPI_EXTOPCODE_*): Likewise.
17049 2010-09-11 Tristan Gingold <gingold@free.fr>
17050 2010-09-11 Robert Millan <rmh.grub@aybabtu.com>
17051 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17053 * commands/lsacpi.c: New file.
17054 * grub-core/Makefile.core.def (lsacpi): New module.
17055 * include/grub/acpi.h (GRUB_ACPI_FADT_SIGNATURE): New definition.
17056 (GRUB_ACPI_MADT_SIGNATURE): Likewise.
17057 (grub_acpi_madt_entry_header): New struct.
17058 (grub_acpi_madt): Likewise.
17059 (grub_acpi_madt_entry_interrupt_override): Likewise.
17060 (grub_acpi_madt_entry_sapic): Likewise.
17061 (grub_acpi_madt_entry_lsapic): Likewise.
17062 (grub_acpi_madt_entry_platform_int_source): Likewise.
17063 * include/grub/types.h (PRIxGRUB_UINT32_T): New definition.
17064 (PRIuGRUB_UINT32_T): Likewise.
17065 (PRIxGRUB_UINT64_T): Likewise.
17067 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17069 Implement loading palette on ieee1275_fb.
17071 * grub-core/video/ieee1275.c (stdout_ihandle): New variable.
17072 (have_setcolors): Likewise.
17073 (grub_video_ieee1275_init): Fill stdout_ihandle and have_setcolors.
17074 (grub_video_ieee1275_setup): Use grub_video_ieee1275_set_palette.
17075 (grub_video_ieee1275_set_palette): Implement.
17077 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17078 2010-09-11 Colin Watson <cjwatson@ubuntu.com>
17080 * util/grub-install.in (grub_partition): New variable.
17081 Set prefix_drive on EFI and PC to (,$grub_partition) as last resort.
17082 * util/i386/pc/grub-setup.c (setup): Don't touch prefix.
17083 Fixes a bug reported by Yves Blusseau.
17085 2010-09-11 Vladimir Serbinenko <phcoder@gmail.com>
17089 * conf/Makefile.common (CFLAGS_PLATFORM): Add -mflush-func
17090 =grub_cpu_flush_cache on all mips and not only yeeloong.
17091 * configure.ac (COND_mips): New conditional.
17092 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add libgcc on all
17094 * grub-core/kern/emu/cache.S (__mips__): Use _flush_cache.
17095 * grub-core/kern/emu/full.c (grub_arch_dl_init_linker)
17096 [GRUB_LINKER_HAVE_INIT]: New function.
17097 (grub_emu_post_init): Likewise.
17098 * grub-core/kern/emu/lite.c (grub_emu_post_init): Likewise.
17099 * grub-core/kern/emu/main.c: Use grub_emu_post_init.
17100 * include/grub/cache.h (_mips): Include mips/cache.h.
17101 * include/grub/disk.h [GRUB_UTIL || GRUB_MACHINE_EMU]: Add missing
17102 LVM and RAID prototypes.
17103 * include/grub/emu/misc.h (grub_emu_post_init): New proto.
17104 * include/grub/mips/time.h (grub_cpu_idle) [GRUB_MACHINE_EMU]: New
17107 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17109 * util/grub-install.in: Don't try to verify core.img until after
17110 running grub-mkimage to create it.
17112 2010-09-10 Robert Millan <rmh@gnu.org>
17114 * util/grub.d/10_hurd.in: Add misc readability checks.
17115 * util/grub.d/10_kfreebsd.in: Likewise.
17116 * util/grub.d/10_linux.in: Likewise.
17118 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17120 * util/grub-install.in: ${imgext} won't be defined here until the
17121 install branch is merged. For the meantime, only verify core.img on
17122 i386-pc and sparc64-ieee1275 platforms.
17124 2010-09-10 Robert Millan <rmh@gnu.org>
17126 Solaris support in grub_find_zpool_from_dir(). Thanks
17127 Seth Goldberg for referring to getextmntent() facility.
17129 * configure.ac: Check for getextmntent(), `sys/mnttab.h' and
17131 * grub-core/kern/emu/misc.c [HAVE_SYS_MNTTAB_H]: Include
17133 [HAVE_SYS_MKDEV_H]: Include `<sys/mkdev.h>'.
17134 [HAVE_GETEXTMNTENT] (grub_find_zpool_from_dir): Add getextmntent()
17135 method for finding zpool name.
17137 2010-09-10 Colin Watson <cjwatson@ubuntu.com>
17139 grub-fstest needs the host and hostfs modules while other utilities
17140 actively require those modules to be absent, so grub-fstest needs
17141 its own initialisation and finalisation code.
17143 * Makefile.am (grub_fstest.pp): New target.
17144 (grub_fstest_init.lst): Likewise.
17145 (grub_fstest_init.c): Likewise.
17146 * Makefile.util.def (grub-fstest): Add grub_fstest_init.c.
17148 2010-09-10 Robert Millan <rmh@gnu.org>
17150 * configure.ac: Check for `struct statfs.f_fstypename' and
17151 `struct statfs.f_mntfromname'.
17153 * grub-core/kern/emu/misc.c (grub_find_zpool_from_dir): Conditionalize
17154 kFreeBSD-specific code.
17156 2010-09-10 Robert Millan <rmh@gnu.org>
17158 * util/grub.d/10_kfreebsd.in: Fix ${kfreebsd_device} initialization
17159 on ZFS. Now non-main filesystems are supported as / too.
17161 2010-09-09 Colin Watson <cjwatson@ubuntu.com>
17163 * Makefile.util.def (libgrub.a): Move grub-core/kern/emu/hostfs.c
17164 and grub-core/disk/host.c to ...
17165 (grub-fstest): ... here. Having the host disk implementation
17166 present confuses grub-probe and other utility programs.
17168 * util/grub-mkconfig.in: Only verify readability of grub.cfg.new
17169 when writing to a file, not when writing to stdout.
17171 2010-09-09 BVK Chaitanya <bvk.groups@gmail.com>
17173 * tests/partmap_test.in: New test for partitions.
17174 * Makefile.util.def: Rules for new test.
17176 2010-09-09 Robert Millan <rmh@gnu.org>
17178 * util/grub-probe.c (probe): Fix a pair of unhandled error
17181 2010-09-09 Robert Millan <rmh@gnu.org>
17183 Basic Btrfs support (detection and UUID).
17185 * grub-core/fs/btrfs.c: New file.
17186 * Makefile.util.def (library): Register btrfs.c.
17187 * grub-core/Makefile.core.def: Likewise.
17189 2010-09-08 Robert Millan <rmh@gnu.org>
17191 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Improve
17192 with (optional) parameters to specify device and relative path.
17193 * util/grub-install.in: Use is_path_readable_by_grub() to
17194 verify readability of a few critical files.
17195 * util/grub-mkconfig.in: Use is_path_readable_by_grub() to
17196 verify readability of grub.cfg.new.
17198 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17200 Split minix.mod into minix.mod and minix2.mod.
17202 * Makefile.util.def (libgrub.a): Add grub-core/fs/minix2.c.
17203 * grub-core/Makefile.core.def (minix2): New module.
17204 * grub-core/fs/minix.c: Use definitions instead of runtime version
17206 * grub-core/fs/minix2.c: New file.
17208 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17210 Add new --boot-directory option to replace --root-directory
17212 * util/grub-install.in: Add new --boot-directory option
17213 * util/grub-reboot.in: Likewise.
17214 * util/grub-set-default.in: Likewise.
17216 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17218 * util/grub-mkconfig.in: Use new variable.
17220 2010-09-08 Yves Blusseau <blusseau@zetam.org>
17222 * configure.ac: Define some useful variables.
17224 2010-09-08 Vladimir Serbinenko <phcoder@gmail.com>
17226 * grub-core/kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
17227 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF when appropriate.
17228 * grub-core/term/ieee1275/ofconsole.c (grub_ofconsole_setcursor):
17229 Use terminfo and don't use cursor-on/cursor-off unless it's known
17231 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New element
17232 GRUB_IEEE1275_FLAG_HAS_CURSORONOFF.
17234 2010-09-08 Colin Watson <cjwatson@ubuntu.com>
17236 * grub-core/kern/efi/init.c (grub_efi_set_prefix): If the prefix
17237 starts with "(,", fill the drive containing the loaded image in
17238 between those two characters, but expect that a full partition
17239 specification including partition map names will follow.
17241 2010-09-08 Robert Millan <rmh@gnu.org>
17243 * configure.ac: Remove `--enable-grub-fstest' option.
17244 * Makefile.util.def (grub-fstest): Remove COND_GRUB_FSTEST condition.
17246 * util/grub-mkconfig_lib.in (is_path_readable_by_grub): Use
17247 `grub-fstest' instead of `grub-probe' for readability verification.
17248 * util/grub-probe.c (probe): Remove readability verification kludge.
17250 2010-09-08 Robert Millan <rmh@gnu.org>
17252 * util/grub-mkconfig.in: Pass `--device ${GRUB_DEVICE}' when
17253 initializing `GRUB_FS'.
17255 2010-09-08 BVK Chaitanya <bvk.groups@gmail.com>
17257 Not command (!) support to GRUB script.
17259 * tests/grub_script_not.in: New test.
17260 * Makefile.util.def: Rules for new test.
17262 * grub-core/script/execute.c (grub_script_execute_cmdline): Handle
17263 ! command as a special case.
17264 * grub-core/script/yylex.l (GRUB_PARSER_TOKEN_NOT): Removed.
17266 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17268 * grub-core/commands/wildcard.c (wildcard_expand): Fix wrong
17271 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17273 * docs/grub.texi (Shell-like scripting): Fix @dots to @dots{}.
17275 2010-09-07 BVK Chaitanya <bvk.groups@gmail.com>
17277 * docs/grub.texi (Shell-like scripting): Documentation for break,
17278 continue, shift and return commands.
17280 2010-09-06 Vladimir Serbinenko <phcoder@gmail.com>
17282 Rename CD-ROM to cd on BIOS.
17284 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_drive): Recognise
17286 (grub_biosdisk_call_hook): Call with "cd" instead of arbitrary hdX.
17288 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17290 * grub-core/kern/emu/main.c (main): Reinit LVM and RAID.
17291 * util/grub-probe.c (main): Likewise.
17292 * util/i386/pc/grub-setup.c (main): Likewise.
17293 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
17294 Reported and debugged by: alexxy
17296 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17298 * grub-core/disk/lvm.c (grub_lvm_scan_device) [GRUB_UTIL]: Output more
17301 2010-09-05 Jo Shields <directhex@apebox.org>
17303 * util/grub.d/30_os-prober.in: Add missing classes.
17305 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17307 * docs/grub.texi (Theme file format): Document new position format.
17309 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17311 * docs/grub.texi (Theme file format): Replace Box_slice_names.png with
17312 a table. Use @code instead of @verbatim.
17314 2010-09-05 Colin D Bennett <colin@gibibit.com>
17316 Gfxmenu documentation.
17318 * docs/grub.texi (Theme file format): New chapter.
17320 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17322 * grub-core/Makefile.core.def (xzio): New module.
17323 * grub-core/io/xzio.c: New file.
17324 * grub-core/lib/xzembed/xz.h: New file (from xembed).
17325 * grub-core/lib/xzembed/xz_config.h: Likewise.
17326 * grub-core/lib/xzembed/xz_dec_bcj.c: Likewise.
17327 * grub-core/lib/xzembed/xz_dec_lzma2.c: Likewise.
17328 * grub-core/lib/xzembed/xz_dec_stream.c: Likewise.
17329 * grub-core/lib/xzembed/xz_lzma2.h: Likewise.
17330 * grub-core/lib/xzembed/xz_private.h: Likewise.
17331 * grub-core/lib/xzembed/xz_stream.h: Likewise.
17332 * include/grub/file.h (grub_file_filter_id): New compression filter
17333 GRUB_FILE_FILTER_XZIO.
17335 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17337 * include/grub/file.h (GRUB_FILE_SIZE_UNKNOWN): New definition.
17338 * grub-core/disk/loopback.c (grub_loopback_open): Handle unknown file
17341 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17343 * include/grub/err.h (grub_err_t): Replace GRUB_ERR_BAD_GZIP_DATA with
17344 GRUB_ERR_BAD_COMPRESSED_DATA. All users updated.
17346 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17348 Uncompressed checksum support.
17350 * grub-core/commands/hashsum.c (options): Add option --uncompress.
17351 (check_list): New parameter uncompress.
17352 (grub_cmd_hashsum): Handle --uncompress.
17354 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17356 Reintroduce testload.
17358 * grub-core/commands/minicmd.c (grub_rescue_cmd_testload) [0]: Moved
17360 * grub-core/commands/testload.c (grub_cmd_testload): ... here.
17361 (GRUB_MOD_INIT): New function.
17362 (GRUB_MOD_FINI): Likewise.
17363 * grub-core/Makefile.core.def (testload): New module.
17365 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17367 * grub-core/lib/posix_wrap/sys/types.h (bool): Transform into an enum.
17368 (uint8_t): New type.
17369 (uint16_t): Likewise.
17370 (uint32_t): Likewise.
17371 (uint64_t): Likewise.
17373 2010-09-05 Szymon Janc <szymon@janc.net.pl>
17375 * include/grub/crypto.h (GRUB_MD_CRC32): New definition.
17377 2010-09-05 Vladimir Serbinenko <phcoder@gmail.com>
17379 * grub-core/io/gzio.c (grub_gzio_open): Removed "transparent" parameter.
17381 (grub_gzfile_open): Removed. All users updated.
17382 (GRUB_MOD_INIT): New function.
17383 (GRUB_MOD_FINI): Likewise.
17384 * grub-core/kern/file.c (grub_file_filters_all): New variable.
17385 (grub_file_filters_enabled): Likewise.
17386 (grub_file_open): Handle filters.
17387 * grub-core/loader/i386/bsd.c (GRUB_MOD_INIT): Load gzio.
17388 * grub-core/normal/main.c (GRUB_MOD_INIT): Likewise.
17389 * include/grub/file.h (grub_file_filter_id_t): New type.
17390 (grub_file_filter_t): Likewise.
17391 (grub_file_filters_all): New extern variable.
17392 (grub_file_filters_enabled): Likewise.
17393 (grub_file_filter_register): New inline function.
17394 (grub_file_filter_unregister): Likewise.
17395 (grub_file_filter_disable): Likewise.
17396 (grub_file_filter_disable_compression): Likewise.
17397 * include/grub/gzio.h: Removed.
17399 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17401 Filename expansion support for wildcards in GRUB script.
17403 * tests/grub_script_expansion.in: New test.
17404 * Makefile.util.def: Rule for new test.
17406 * grub-core/commands/wildcard.c: New file, implements filename
17407 expansion support for GRUB script.
17408 * grub-core/Makefile.core.def: Rule update for regexp.mod.
17409 * grub-core/script/argv.c: Cosmetic changes.
17410 * grub-core/script/execute.c (grub_script_arglist_to_argv):
17411 Refactored to perform wildcard expansion on arguments.
17412 * include/grub/script_sh.h (grub_script_wildcard_translator): New
17415 * tests/util/grub-shell.in: Fix quoting for read input.
17417 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17419 Support for updating environment variables with matched substrings
17422 * tests/grub_cmd_regexp.in: New test.
17423 * Makefile.util.def: Rule for new test.
17425 * grub-core/commands/regexp.c: New option -s to update environment
17426 variables with regexp matches.
17428 2010-09-04 Szymon Janc <szymon@janc.net.pl>
17430 * include/grub/file.h (grub_file): New member not_easly_seekable.
17431 (grub_file_seekable): New inline function.
17432 * grub-core/io/gzio.c (test_header): Don't test end magic if file isn't
17434 (grub_gzio_open): Set not_easly_seekable.
17435 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_open): Set not_easily_seekable.
17436 * grub-core/io/bufio.c (grub_bufio_open): Propagate not_easily_seekable.
17438 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17440 Support for options to appear multiple times on cmdline.
17442 * include/grub/lib/arg.h (grub_arg_list_alloc): New prototype.
17443 * grub-core/commands/extcmd.c: Support for repeatable option.
17444 * grub-core/lib/arg.c (grub_arg_list_alloc): New function for
17445 repeatable option support.
17447 Refactor menuentry into a regular command.
17449 * grub-core/commands/menuentry.c: New file, menuentry command
17451 * grub-core/Makefile.core.def: Rule update for normal.mod.
17452 * grub-core/normal/main.c: Moved menuentry creation to
17453 grub-core/commands/menuentry.c.
17454 * grub-core/normal/menu.c (grub_menu_execute_entry): Removed.
17455 (grub_menu_execute_entry_real): Removed.
17456 * grub-core/script/execute.c (grub_script_execute_sourcecode): New
17458 (grub_script_execute_menuentry): Removed.
17459 * grub-core/script/parser.y (menuentry): Removed.
17460 * grub-core/script/script.c (grub_script_create_cmdmenu): Removed.
17461 * grub-core/script/yylex.l (menuentry): Removed.
17462 * include/grub/menu.h (grub_menu_init): New prototype.
17463 (grub_menu_fini): New prototype.
17464 * include/grub/normal.h (grub_normal_add_menu_entry): Removed.
17465 * include/grub/script_sh.h (grub_script_cmd_menuentry): Removed.
17466 (grub_script_execute_sourcecode): New prototype.
17468 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17470 "return" command for GRUB script functions.
17472 * tests/grub_script_return.in: New test.
17473 * Makefile.util.def: Rules for new test.
17475 * grub-core/script/execute.c (grub_script_return): New function.
17476 * grub-core/script/main.c: Register/unregister return commaond.
17477 * include/grub/script_sh.h (grub_script_return): New prototype.
17479 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17481 "setparams" command to update positional parameters.
17483 * tests/grub_script_setparams.in: New test.
17484 * Makefile.util.def: Rules for new test.
17486 * grub-core/script/argv.c (grub_script_argv_make): New function.
17487 * grub-core/script/execute.c (replace_scope): New function.
17488 (grub_script_setparams): New function.
17489 * grub-core/script/lexer.c: Remove unused variables.
17490 * grub-core/script/main.c: Register/unregister setparams command.
17491 * include/grub/script_sh.h (grub_script_argv_make): New prototype.
17492 (grub_script_setparams): New prototype.
17494 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17496 * grub-core/normal/completion.c (grub_normal_do_completion): Fix
17499 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17501 Support for passing block of commands as an argument to extcmds.
17503 * Makefile.util.def: Rules for new test.
17504 * tests/grub_script_blockarg.in: New test.
17505 * grub-core/tests/test_blockarg.c: New file, block argument
17506 command used in the test.
17508 * include/grub/extcmd.h (grub_extcmd_context): New struct.
17509 (grub_register_extcmd_prio): New function prototype.
17510 (grub_extcmd_dispatcher): New function prototype.
17511 * include/grub/command.h (GRUB_COMMAND_FLAG_BLOCKS): New command
17513 * include/grub/script_sh.h (struct grub_script): New members
17514 `children', `next_siblings' and `refcnt' for block arguments and
17515 reference counting.
17516 (GRUB_SCRIPT_ARG_TYPE_BLOCK): New argument type.
17517 (grub_script_arg): New member `script' for block argument.
17518 (grub_script_argv): New member `script' for block argument.
17519 (grub_parser_param): New member `scripts' for block argument.
17520 (grub_script_mem_free): New extern function prototype.
17521 (grub_script_ref): New function prototype.
17522 (grub_script_unref): New function prototype.
17524 * grub-core/normal/dyncmd.c (grub_dyncmd_dispatcher): Moved to
17525 extcmd form to support block arguments.
17526 * grub-core/script/argv.c: Block arguments support.
17527 * grub-core/script/execute.c: Likewise.
17528 * grub-core/script/lexer.c: Likewise.
17529 * grub-core/script/main.c: Likewise.
17530 * grub-core/script/script.c: Likewise.
17531 * grub-core/script/parser.y: Likewise. New `block' and `block0'
17534 * grub-core/commands/acpi.c: Update extcmd implementations with
17535 grub_extcmd_context_t.
17536 * grub-core/commands/cat.c: Likewise.
17537 * grub-core/commands/echo.c: Likewise.
17538 * grub-core/commands/extcmd.c: Likewise.
17539 * grub-core/commands/hashsum.c: Likewise.
17540 * grub-core/commands/hdparm.c: Likewise.
17541 * grub-core/commands/help.c: Likewise.
17542 * grub-core/commands/hexdump.c: Likewise.
17543 * grub-core/commands/i386/cpuid.c: Likewise.
17544 * grub-core/commands/i386/pc/drivemap.c: Likewise.
17545 * grub-core/commands/i386/pc/halt.c: Likewise.
17546 * grub-core/commands/i386/pc/sendkey.c: Likewise.
17547 * grub-core/commands/iorw.c: Likewise.
17548 * grub-core/commands/keystatus.c: Likewise.
17549 * grub-core/commands/loadenv.c: Likewise.
17550 * grub-core/commands/ls.c: Likewise.
17551 * grub-core/commands/lspci.c: Likewise.
17552 * grub-core/commands/memrw.c: Likewise.
17553 * grub-core/commands/probe.c: Likewise.
17554 * grub-core/commands/search_wrap.c: Likewise.
17555 * grub-core/commands/setpci.c: Likewise.
17556 * grub-core/commands/sleep.c: Likewise.
17557 * grub-core/disk/loopback.c: Likewise.
17558 * grub-core/hello/hello.c: Likewise.
17559 * grub-core/loader/i386/bsd.c: Likewise.
17560 * grub-core/loader/xnu.c: Likewise.
17561 * grub-core/term/gfxterm.c: Likewise.
17562 * grub-core/term/serial.c: Likewise.
17563 * grub-core/tests/lib/functional_test.c: Likewise.
17565 2010-09-04 BVK Chaitanya <bvk.groups@gmail.com>
17567 Multi-line quoted strings support.
17569 * grub-core/script/lexer.c (append_newline): Removed.
17570 (grub_script_lexer_yywrap): Refactored.
17571 (grub_script_lexer_init): Refactored.
17572 * grub-core/script/yylex.l (yywrap): New function.
17573 (grub_lexer_resplit): New function.
17574 (grub_lexer_unput): New function.
17575 * include/grub/script_sh.h (grub_lexer_param): New members, unput
17577 * tests/grub_script_echo1.in: Added few more testcases.
17579 2010-09-04 Vladimir Serbinenko <phcoder@gmail.com>
17581 * grub-core/kern/misc.c: Don't add abort alias in utils.
17582 Reported by: echoline.
17584 2010-09-03 BVK Chaitanya <bvk.groups@gmail.com>
17586 Add missing files into "make dist" tarball for other platforms.
17588 * gentpl.py (script): Use dist_noinst_DATA instead of EXTRA_DIST.
17589 * conf/Makefile.common (dist_noinst_DATA): New variable.
17590 * conf/Makefile.extra-dist: Added missing make dist files.
17591 * grub-core/Makefile.core.def: Likewise.
17593 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17595 Compress grub_prefix.
17597 * grub-core/boot/i386/pc/lnxboot.S: Use
17598 GRUB_KERNEL_I386_PC_MULTIBOOT_SIGNATURE.
17599 * grub-core/kern/i386/pc/startup.S: Move grub_prefix to compressed part.
17600 * include/grub/offsets.h: Rename GRUB_MACHINE_DATA_END to
17601 GRUB_MACHINE_PREFIX_END. All users updated.
17602 (GRUB_KERNEL_I386_PC_PREFIX): Set to GRUB_KERNEL_I386_PC_RAW_SIZE.
17603 (GRUB_KERNEL_I386_PC_PREFIX_END): Set to GRUB_KERNEL_I386_PC_PREFIX
17605 (GRUB_KERNEL_I386_PC_RAW_SIZE): Decrease.
17606 * util/grub-mkimage.c (image_target_desc): Change data_end to
17607 prefix_end. All users updated.
17609 2010-09-03 Vladimir Serbinenko <phcoder@gmail.com>
17611 * grub-core/loader/i386/bsd.c (grub_freebsd_boot): Set %ebp to sane
17613 (grub_openbsd_boot): Likewise.
17614 (grub_netbsd_boot): Likewise.
17615 * grub-core/loader/i386/xnu.c (grub_xnu_boot_resume): Likewise.
17616 (grub_xnu_boot): Likewise.
17618 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17620 * configure.ac: Clean LIBS variable after tests.
17622 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17624 * INSTALL: Document that libdevmapper needs to be 1.02.34 or later.
17626 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17628 * configure.ac: Check for dm_log_with_errno_init in libdevmapper and
17629 echo if libdevmapper will be used.
17631 2010-09-02 Ian Turner <Ian.Turner@deshaw.com>
17633 * grub-core/fs/i386/pc/pxe.c (grub_pxefs_read): Keep the blocksize
17634 constant for the same file.
17636 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17638 * grub-core/kern/i386/multiboot_mmap.c: Remove leftover include.
17640 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17642 * .bzrignore: Add *.pp, **/.dirstamp, grub-core/*.module, and
17645 2010-09-02 Colin Watson <cjwatson@ubuntu.com>
17647 Zero %ebp and %edi when entering Linux's 32-bit entry point, as
17648 required by the boot protocol.
17650 * include/grub/i386/relocator.h (struct grub_relocator32_state): Add
17651 ebp and edi members.
17652 * grub-core/lib/i386/relocator.c (grub_relocator_boot): Handle
17653 state.ebp and state.edi.
17654 * grub-core/lib/i386/relocator32.S (grub_relocator32_start): Set
17655 %ebp and %edi according to grub_relocator32_ebp and
17656 grub_relocator32_edi respectively.
17657 * grub-core/loader/i386/linux.c (grub_linux_boot): Zero state.ebp
17660 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17662 Add i386-pc-pxe image target.
17664 * util/grub-mkimage.c (image_target_desc): New enum value
17666 (image_targets): New target i386-pc-pxe.
17667 (generate_image): Handle i386-pc-pxe image.
17669 2010-09-02 Vladimir Serbinenko <phcoder@gmail.com>
17673 * grub-core/fs/i386/pc/pxe.c (grub_pxe_pxenv): Put correct type bangpxe.
17674 (grub_pxe_scan): Fix types and pxe_rm_entry computation.
17676 * include/grub/i386/pc/pxe.h (grub_pxe_bangpxe): New struct.
17677 (grub_pxe_pxenv): Correct type.
17679 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17681 * NEWS: Document most of the important changes since 1.98.
17683 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17685 * util/grub-mkrescue.in (usage): Tidy up usage output (and hence
17686 generated manual page) a little.
17688 2010-09-01 Colin Watson <cjwatson@ubuntu.com>
17690 * docs/grub.texi: Add myself as an author.
17692 2010-09-01 Vladimir Serbinenko <phcoder@gmail.com>
17694 * Makefile.util.def (libgrub.a): Add missing sunpc.
17695 Reported by: Seth Goldberg.
17697 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17699 Interrupt wrapping and code simplifications.
17701 * Makefile.util.def (grub-mkrescue): Use x86 tg instead of
17702 x86_noieee1275 which are functionaly equivalent in this case.
17703 (grub-install): Make source on each platform explicit. Enable on
17705 * gentpl.py (x86_efi_pc): Removed group.
17706 (x86_noefi): Likewise.
17707 (i386_noefi): Likewise.
17708 (x86_noieee1275): Likewise.
17709 (i386_noieee1275): Likewise.
17710 (i386_noefi_noieee1275): Likewise.
17711 (i386_pc_qemu_coreboot): Likewise.
17712 (i386_coreboot_multiboot): Likewise.
17713 (i386_pc_coreboot_multiboot_qemu): Likewise.
17714 (x86_noefi_mips): Likewise.
17715 (noieee1275): Likewise.
17716 (ieee1275_mips): Likewise.
17717 (noemu_noieee1275): Likewise.
17720 (videoinkernel): Likewise.
17721 (videomodules): Likewise.
17722 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Remove
17723 include/grub/elf.h, include/grub/elfload.h, include/grub/net.h,
17724 include/grub/reader.h, include/grub/symbol.h, include/grub/types.h,
17725 include/grub/loader.h, include/grub/msdos_partition.h,
17726 include/grub/machine/biosdisk.h, include/grub/machine/boot.h,
17727 include/grub/machine/console.h, include/grub/machine/vga.h,
17728 include/grub/machine/vbe.h, include/grub/machine/init.h,
17729 include/grub/machine/kernel.h, include/grub/cpu/time.h,
17730 include/grub/cpu/types.h, include/grub/gzio.h and include/grub/menu.h
17731 (KERNEL_HEADER_FILES) [i386-pc]: Add include/grub/machine/int.h.
17732 (KERNEL_HEADER_FILES) [i386-ieee1275]: Add include/grub/i386/pit.h
17733 * grub-core/Makefile.core.def (kernel): Explicit the source for
17734 startup. Explicit the platforms using kern/generic/rtc_get_time_ms.c.
17735 Split ieee1275_mips. Remove kern/i386/halt.c. Remove kern/i386/misc.S.
17736 Enable kern/i386/pit.c on all x86. Remove kern/i386/ieee1275/init.c.
17737 Use videoinkernel tag.
17738 (usb): Enable on all usb.
17739 (usbserial_common): Likewise.
17740 (usbserial_pl2303): Likewise.
17741 (usbserial_ftdi): Likewise.
17742 (uhci): Enable on all x86.
17743 (ohci): Enable on all pci.
17744 (cmostest): Enable on all CMOS.
17745 (acpi): Include commands/acpi.c on all platforms.
17746 (halt): Add relevant lib/*/halt.c.
17747 (hdparm): Enable on all pci.
17749 (usbtest): Enable on all usb.
17750 (ata): Enable on all pci.
17751 (ata_pthru): Likewise.
17752 (usbms): Enable on all usb.
17753 (usb_keyboard): Likewise.
17754 (font): Use tag videomodules.
17756 (datetime): Use tag cmos. Enable on all noemu.
17757 (mmap): Use tags common and x86.
17758 (gfxterm): Use tag videomodules.
17759 (bitmap): Likewise.
17760 (bitmap_scale): Likewise.
17761 (video_fb): Likewise.
17763 * grub-core/bus/usb/ohci.c (grub_ohci_td): Make link_td a pointer and
17764 adjust padding accordingly. All users updated.
17765 (grub_ohci_transaction): Fix bad format specification.
17766 (GRUB_MOD_INIT): Add asserts for struct size.
17767 * grub-core/bus/usb/uhci.c (grub_uhci_pci_iter): Add explicit casts.
17768 (grub_alloc_td): Likewise.
17769 (grub_free_queue): Likewise.
17770 (grub_uhci_transfer): Likewise.
17771 (grub_uhci_transaction): Fix bad format specification.
17772 * grub-core/bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
17773 (grub_usb_bulk_readwrite): Likewise.
17774 * grub-core/kern/i386/misc.S (grub_stop): Moved from here ...
17775 * grub-core/commands/i386/pc/halt.c (stop): ...here. Transformed into C.
17777 * grub-core/lib/i386/halt.c (stop): ... and here. Transformed into C.
17779 * grub-core/kern/i386/pc/startup.S (grub_halt): Moved from here ...
17780 * grub-core/commands/i386/pc/halt.c (grub_halt): ...here.
17781 Transformed into C.
17782 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_int13_extensions):
17783 Moved from here ...
17784 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_int13_extensions):
17785 ... here. Transformed into C. Made static.
17786 * grub-core/kern/i386/pc/startup.S (grub_biosdisk_rw_standard):
17787 Moved from here ...
17788 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_rw_standard):
17789 ... here. Transformed into C. Made static.
17790 * grub-core/kern/i386/pc/startup.S
17791 (grub_biosdisk_check_int13_extensions): Moved from here ...
17792 * grub-core/disk/i386/pc/biosdisk.c
17793 (grub_biosdisk_check_int13_extensions): ... here. Transformed into C.
17795 * grub-core/kern/i386/pc/startup.S
17796 (grub_biosdisk_get_cdinfo_int13_extensions): Moved from here ...
17797 * grub-core/disk/i386/pc/biosdisk.c
17798 (grub_biosdisk_get_cdinfo_int13_extensions): ... here.
17799 Transformed into C. Made static.
17800 * grub-core/kern/i386/pc/startup.S
17801 (grub_biosdisk_get_diskinfo_int13_extensions): Moved from here ...
17802 * grub-core/disk/i386/pc/biosdisk.c
17803 (grub_biosdisk_get_diskinfo_int13_extensions): ... here.
17804 Transformed into C. Made static.
17805 * grub-core/kern/i386/pc/startup.S
17806 (grub_biosdisk_get_diskinfo_standard): Moved from here ...
17807 * grub-core/disk/i386/pc/biosdisk.c
17808 (grub_biosdisk_get_diskinfo_standard): ... here.
17809 Transformed into C. Made static.
17810 * grub-core/kern/i386/pc/startup.S
17811 (grub_biosdisk_get_num_floppies): Moved from here ...
17812 * grub-core/disk/i386/pc/biosdisk.c
17813 (grub_biosdisk_get_num_floppies): ... here.
17814 Transformed into C. Made static.
17815 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_get_diskinfo_real):
17817 * grub-core/kern/i386/pc/startup.S (grub_pxe_scan): Moved from here ...
17818 * grub-core/fs/i386/pc/pxe.c (grub_pxe_scan): ... here.
17819 Transformed into C. Made static.
17820 * grub-core/kern/i386/pc/startup.S (grub_rm_entry): Moved from here ...
17821 * grub-core/fs/i386/pc/pxe.c (grub_rm_entry): ... here.
17822 Transformed into C. Made static.
17823 * grub-core/kern/i386/ieee1275/init.c: Removed.
17824 * grub-core/kern/i386/misc.S: Likewise.
17825 * grub-core/kern/i386/pc/startup.S (grub_get_memsize):
17826 Splitted from here ...
17827 * grub-core/kern/i386/pc/init.c (grub_get_conv_memsize): ... here.
17828 Transformed into C. Made static. All users updated.
17829 * grub-core/kern/i386/pc/mmap.c (grub_get_ext_memsize): ... and here.
17830 Transformed into C. Made static. All users updated.
17831 * grub-core/kern/i386/pc/startup.S (grub_get_eisa_mmap):
17833 * grub-core/kern/i386/pc/mmap.c (grub_get_eisa_mmap): ... here.
17834 Transformed into C. Made static. All users updated.
17835 * grub-core/kern/i386/pc/startup.S (grub_get_mmap_entry):
17837 * grub-core/kern/i386/pc/mmap.c (grub_get_mmap_entry): ... here.
17838 Transformed into C. Made static. All users updated.
17839 * grub-core/kern/i386/pc/startup.S (grub_stop_floppy):
17840 Removed (replaced by C version).
17841 * grub-core/kern/i386/pc/startup.S (grub_vga_set_mode):
17843 * grub-core/video/i386/pc/vga.c (grub_vga_set_mode): ...here.
17844 Transformed into C. Made static.
17845 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_controller_info):
17847 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_controller_info):
17848 ... here. Transformed into C.
17849 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode_info):
17851 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode_info):
17852 ... here. Transformed into C.
17853 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_mode):
17855 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_mode):
17856 ... here. Transformed into C. Made static.
17857 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_mode):
17859 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_mode):
17860 ... here. Transformed into C.
17861 * grub-core/kern/i386/pc/startup.S
17862 (grub_vbe_bios_getset_dac_palette_width):Moved from here...
17863 * grub-core/video/i386/pc/vbe.c
17864 (grub_vbe_bios_getset_dac_palette_width):... here. Transformed into C.
17865 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_memory_window):
17867 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_memory_window):
17868 ... here. Transformed into C.
17869 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_memory_window):
17871 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_memory_window):
17872 ... here. Transformed into C.
17873 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_scanline_length):
17875 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_scanline_length):
17876 ... here. Transformed into C.
17877 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_scanline_length):
17879 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_scanline_length):
17880 ... here. Transformed into C.
17881 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_display_start):
17883 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_display_start):
17884 ... here. Transformed into C. Made static.
17885 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_get_display_start):
17887 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_get_display_start):
17888 ... here. Transformed into C. Made static.
17889 * grub-core/kern/i386/pc/startup.S (grub_vbe_bios_set_palette_data):
17891 * grub-core/video/i386/pc/vbe.c (grub_vbe_bios_set_palette_data):
17892 ... here. Transformed into C. Made static.
17893 * grub-core/kern/i386/pc/startup.S (grub_pxe_call): Receive
17894 pxe_rm_entry as third argument.
17895 (grub_bios_interrupt): New function.
17896 * grub-core/kern/i386/qemu/mmap.c: Remove useless include.
17897 * grub-core/kern/i386/qemu/startup.S (codestart): Do cli;hlt instead
17898 of calling grub_stop.
17899 * grub-core/kern/efi/efi.c (grub_halt): Moved from here ...
17900 * grub-core/lib/efi/halt.c (grub_halt): ...here.
17901 * grub-core/kern/emu/main.c (grub_halt): Moved from here ...
17902 * grub-core/lib/emu/halt.c (grub_halt): ... here.
17903 * grub-core/lib/i386/halt.c: Moved from here ...
17904 * grub-core/lib/i386/halt.c: ... here.
17905 * grub-core/kern/ieee1275/openfw.c (grub_halt): Moved from here ...
17906 * grub-core/lib/ieee1275/halt.c (grub_halt): ... here.
17907 * grub-core/loader/i386/pc/linux.c (grub_linux16_boot): Call
17909 * grub-core/loader/i386/xnu.c (guessfsb) [IEEE1275]: Enable.
17910 * include/grub/i386/coreboot/init.h: Removed.
17911 * include/grub/i386/multiboot/init.h: Likewise.
17912 * include/grub/i386/pc/biosdisk.h: Removed all function prototypes.
17913 * include/grub/i386/pc/init.h: Likewise except grub_gate_a20.
17914 * include/grub/i386/pc/int.h: New file.
17915 * include/grub/i386/pc/pxe.h (GRUB_PXE_SIGNATURE): New definition.
17916 (grub_pxe_scan): Removed.
17917 (grub_pxe_call): Update prototype.
17918 * include/grub/i386/pc/vbe.h: Removed EXPORT_FUNC and useless
17920 * include/grub/i386/pc/vga.h (grub_vga_set_mode): Removed.
17921 * include/grub/i386/qemu/init.h: Removed.
17922 * include/grub/mips/yeeloong/kernel.h (grub_reboot): Add missing
17924 (grub_halt): Likewise.
17925 * include/grub/misc.h (grub_halt): Removed EXPORT_FUNC.
17926 (grub_reboot): Likewise.
17927 * grub-core/kern/i386/coreboot/init.c (grub_stop_floppy): Moved from here...
17928 * include/grub/i386/floppy.h (grub_stop_floppy): ...here. Inlined.
17929 * grub-core/kern/i386/pc/startup.S (grub_hard_stop): Removed.
17931 2010-08-30 Robert Millan <rmh@gnu.org>
17933 * NEWS: Document addition of ZFS support in `grub-install' and
17936 2010-08-30 BVK Chaitanya <bvk.groups@gmail.com>
17938 * conf/Makefile.common (CPPFLAGS_DEFAULT): Remove leading / from
17941 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17943 Remove leftover embedding of font objects.
17945 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17946 * util/grub-install.in (font): Removed.
17947 * util/grub-mkimage.c (generate_image): Remove font support. All users
17950 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17952 Remove leftover embedding of font objects.
17954 * include/grub/kernel.h (OBJ_TYPE_FONT): Removed.
17955 * util/grub-install.in (font): Removed.
17956 * util/grub-mkimage.c (generate_image): Remove font support. All users
17959 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17961 * docs/grub.texi (Network): Fix reference to pxe_blksize.
17962 Reported by: Ian Turner
17964 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17966 * grub-core/normal/menu.c (grub_wait_after_message): Add a 10 second
17967 timeout to avoid indefinite boot stalling.
17969 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17971 * grub-core/normal/color.c (grub_env_write_color_normal): Fix a warning.
17972 (grub_env_write_color_highlight): Likewise.
17974 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17976 * grub-core/normal/term.c (print_more): Return to normal and not
17977 to standard state after printing "---MORE---".
17979 2010-08-30 Vladimir Serbinenko <phcoder@gmail.com>
17981 * grub-core/term/i386/vga_common.c (grub_console_setcolorstate):
17982 Mask out the bit 0x80 since it has other meaning that specifiing color.
17984 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
17986 New relocator. Allows for more kernel support and more straightforward
17989 * Makefile.am (BOOTTARGET): New variable.
17990 (QEMU32): Likewise.
17991 (linux.init.x86_64): New target.
17992 (linux.init.i386): Likewise.
17993 (multiboot.elf): Likewise.
17994 (kfreebsd.elf): Likewise.
17995 (kfreebsd.aout): Likewise.
17996 (pc-chainloader.elf): Likewise.
17997 (pc-chainloader.bin): Likewise.
17998 (ntldr.elf): Likewise.
17999 (ntldr.bin): Likewise.
18000 (multiboot2.elf): Likewise.
18001 (kfreebsd.init.x86_64): Likewise.
18002 (kfreebsd.init.i386): Likewise.
18003 (knetbsd.init.i386): Likewise.
18004 (kopenbsd.init.i386): Likewise.
18005 (knetbsd.init.x86_64): Likewise.
18006 (kopenbsd.init.x86_64): Likewise.
18007 (linux-initramfs.i386): Likewise.
18008 (linux-initramfs.x86_64): Likewise.
18009 (kfreebsd-mfsroot.i386.img): Likewise.
18010 (knetbsd.image.i386): Likewise.
18011 (kopenbsd.image.i386): Likewise.
18012 (kopenbsd.image.x86_64): Likewise.
18013 (knetbsd.miniroot-image.i386.img): Likewise.
18014 (kfreebsd-mfsroot.x86_64.img): Likewise.
18015 (knetbsd.image.x86_64): Likewise.
18016 (knetbsd.miniroot-image.x86_64.img): Likewise.
18017 (kfreebsd-mfsroot.i386.gz): Likewise.
18018 (bootcheck-kfreebsd-i386): Likewise.
18019 (kfreebsd-mfsroot.x86_64.gz): Likewise.
18020 (bootcheck-kfreebsd-x86_64): Likewise.
18021 (knetbsd.miniroot-image.i386.gz): Likewise.
18022 (bootcheck-knetbsd-i386): Likewise.
18023 (bootcheck-kopenbsd-i386): Likewise.
18024 (bootcheck-kopenbsd-x86_64): Likewise.
18025 (knetbsd.miniroot-image.x86_64.gz): Likewise.
18026 (bootcheck-knetbsd-x86_64): Likewise.
18027 (bootcheck-linux-i386): Likewise.
18028 (bootcheck-linux-x86_64): Likewise.
18029 (bootcheck-linux16-i386): Likewise.
18030 (bootcheck-linux16-x86_64): Likewise.
18031 (bootcheck-multiboot): Likewise.
18032 (bootcheck-multiboot2): Likewise.
18033 (bootcheck-kfreebsd-aout): Likewise.
18034 (bootcheck-pc-chainloader): Likewise.
18035 (bootcheck-ntldr): Likewise.
18036 (CLEANFILES): Add new targets.
18037 (BOOTCHECKS): New variable.
18038 (.PHONY): Add bootchecks.
18039 (SUCCESSFUL_BOOT_STRING): New variable.
18040 (BOOTCHECK_TIMEOUT): Likewise.
18041 (bootcheck): New target
18042 * Makefile.util.def (grub-mkrescue): Enable on i386-multiboot.
18043 * configure.ac: Correct efiemu excuse.
18044 * docs/grub.texi (Supported kernels): New chapter.
18045 * grub-core/Makefile.am (KERNEL_HEADER_FILES): Add
18046 include/grub/mm_private.h. Simplify inclusion of
18047 include/grub/boot.h, include/grub/loader.h
18048 and include/grub/msdos_partition.h
18049 (KERNEL_HEADER_FILES) [i386_coreboot]:
18050 Remove include/grub/machine/loader.h. Add include/grub/i386/pit.h.
18051 (KERNEL_HEADER_FILES) [i386_multiboot]: Likewise.
18052 (KERNEL_HEADER_FILES) [i386_qemu]: Likewise.
18053 (KERNEL_HEADER_FILES) [i386_ieee1275]: Remove
18054 include/grub/machine/loader.h.
18055 (KERNEL_HEADER_FILES) [x86_64-efi]: Likewise.
18056 * grub-core/Makefile.core.def (kernel): Remove kern/i386/loader.S from
18058 (pci.mod): Enable on i386-multiboot.
18059 (acpi.mod): Enable on i386-multiboot and i386-coreboot.
18060 (efiemu.mod): Enable on i386-coreboot, i386-ieee1275, i386-multiboot and
18062 (relocator.mod): Rewritten.
18063 (aout.mod): Enable on all x86.
18064 (bsd.mod): Likewise.
18065 (ntldr.mod): New module.
18066 (linux.mod): Use loader/i386/linux.c on all x86.
18067 (xnu.mod): Enable on all x86.
18068 (vga_text.mod): disable on EFI and QEMU.
18069 * grub-core/efiemu/i386/coredetect.c: Remove useless include.
18070 * grub-core/efiemu/i386/pc/cfgtables.c: Likewise.
18071 * grub-core/efiemu/loadcore.c: Likewise.
18072 * grub-core/efiemu/main.c: Likewise.
18073 (grub_efiemu_exit_boot_services): Removed.
18074 (grub_efiemu_finish_boot_services): Likewise.
18075 * grub-core/efiemu/mm.c (grub_efiemu_finish_boot_services): New
18077 * grub-core/efiemu/i386/nocfgtables.c: New file.
18078 * grub-core/kern/dl.c (grub_dl_unload_all): Removed.
18079 * grub-core/kern/efi/efi.c (grub_efi_exit_boot_services): Removed.
18080 (grub_efi_finish_boot_services): Moved from here ...
18081 * grub-core/kern/efi/mm.c (grub_efi_finish_boot_services): ...here.
18082 Fille finish memory map and related data.
18083 (finish_mmap_buf): New variable.
18084 (grub_efi_uintn_t finish_mmap_size): Likewise.
18085 (grub_efi_uintn_t finish_key): Likewise.
18086 (grub_efi_uintn_t finish_desc_size): Likewise.
18087 (grub_efi_uint32_t finish_desc_version): Likewise.
18088 (grub_efi_is_finished): Likewise.
18089 (grub_efi_get_memory_map): Use saved memory map if EFI is already
18091 * grub-core/kern/elf.c (grub_elf32_phdr_iterate): Make global.
18092 (grub_elf64_phdr_iterate): Likewise.
18093 * grub-core/kern/i386/coreboot/init.c (grub_os_area_addr): Removed.
18094 (grub_os_area_size): Likewise.
18095 (grub_machine_init): Don't reserve os area.
18096 * grub-core/kern/i386/coreboot/startup.S: Don't include loader.S.
18097 * grub-core/kern/i386/ieee1275/startup.S: Likewise.
18098 * grub-core/kern/i386/loader.S: Removed.
18099 * grub-core/kern/i386/pc/init.c (grub_os_area_addr): Removed.
18100 (grub_os_area_size): Likewise.
18101 (grub_machine_init): Don't reserve os area.
18102 * grub-core/kern/i386/pc/startup.S (grub_chainloader_real_boot):
18103 Don't call grub_dl_unload_all.
18104 Don't include loader.S.
18105 * grub-core/kern/i386/qemu/mmap.c (grub_machine_mmap_iterate):
18106 Declare the memory after _end as available.
18107 * grub-core/kern/mm.c (GRUB_MM_FREE_MAGIC): Moved from here...
18108 * include/grub/mm_private.h (GRUB_MM_FREE_MAGIC): ... here.
18109 (GRUB_MM_ALLOC_MAGIC): Moved from here...
18110 * include/grub/mm_private.h (GRUB_MM_ALLOC_MAGIC): ... here.
18111 * grub-core/kern/mm.c (grub_mm_header): Moved from here...
18112 * include/grub/mm_private.h (grub_mm_header): ... here.
18113 * grub-core/kern/mm.c (GRUB_MM_ALIGN): Moved from here...
18114 * include/grub/mm_private.h (GRUB_MM_ALIGN): ... here.
18115 * grub-core/kern/mm.c (grub_mm_region): Moved from here ...
18116 (grub_mm_region): ..here. Removed addr. Added pre_size.
18118 * grub-core/kern/mm.c (base): Renamed to ...
18119 (grub_mm_base): ... this. Made global.
18120 (grub_real_malloc): Alloc from end of region.
18121 (grub_memalign): Don't attempt to malloc if grub_mm_base is NULL.
18122 * grub-core/kern/powerpc/cache.S (grub_arch_sync_caches): Move to ...
18123 * grub-core/kern/powerpc/cache_flush.S: ... here.
18124 * grub-core/lib/efi/relocator.c: New file.
18125 * grub-core/lib/i386/relocator.c: Rewritten.
18126 * grub-core/lib/i386/relocator16.S: New file.
18127 * grub-core/lib/i386/relocator32.S: Likewise.
18128 * grub-core/lib/i386/relocator64.S: Likewise.
18129 * grub-core/lib/i386/relocator_asm.S: Rewritten.
18130 * grub-core/lib/i386/relocator_common.S: New file.
18131 * grub-core/lib/ieee1275/relocator.c: Likewise.
18132 * grub-core/lib/mips/relocator.c: Rewritten.
18133 * grub-core/lib/mips/relocator_asm.S: Renamed variables and minor
18134 stylistic adjustments.
18135 * grub-core/lib/powerpc/relocator.c: New file.
18136 * grub-core/lib/powerpc/relocator_asm.S: Likewise.
18137 * grub-core/lib/relocator.c: Rewritten.
18138 * grub-core/lib/x86_64/relocator_asm.S: New file.
18139 * grub-core/loader/aout.c (grub_aout_load): Make load_addr a void *.
18140 * grub-core/loader/i386/bsd.c (NETBSD_DEFAULT_VIDEO_MODE): New const.
18141 (bsd_tag): New struct.
18142 (tags): New variable.
18143 (tags_last): Likewise.
18144 (netbsd_module): New struct.
18145 (netbsd_mods): New variable.
18146 (netbsd_mods_last): Likewise.
18147 (openbsd_opts): New parameter "serial".
18148 (OPENBSD_SERIAL_ARG): New definition.
18149 (netbsd_opts): New parameter "serial".
18150 (NETBSD_SERIAL_ARG): New definition.
18151 (grub_freebsd_add_meta): Reorganised into ...
18152 (grub_bsd_add_meta): ...this. All users updated.
18153 (grub_freebsd_add_mmap): Reorganised into ...
18154 (generate_e820_mmap): ...this...
18155 (grub_bsd_add_mmap): ...and this. All users updated.
18156 (grub_freebsd_list_modules): Use tags.
18157 (grub_netbsd_add_meta_module): New function.
18158 (grub_netbsd_list_modules): Likewise.
18159 (grub_freebsd_boot): Use relocator and finish EFI.
18160 (grub_openbsd_boot): Likewise.
18161 (grub_netbsd_setup_video): New function.
18162 (grub_netbsd_add_modules): Likewise.
18163 (grub_netbsd_boot): Use grub_netbsd_add_modules, relocator, netbsd_tags
18165 (grub_bsd_unload): Unload tags.
18166 (grub_bsd_load_aout): Use relocator.
18167 (grub_bsd_elf32_size_hook): New function.
18168 (grub_bsd_elf32_hook): Use relocator.
18169 (grub_bsd_elf64_size_hook): New function.
18170 (grub_bsd_elf64_hook): Use relocator.
18171 (grub_bsd_load_elf): Use relocator and call grub_openbsd_find_ramdisk.
18172 (grub_bsd_load): Zero-out openbsd_ramdisk.
18173 (grub_bsd_load): Use relocator.
18174 (grub_cmd_openbsd): Support serial.
18175 (grub_cmd_netbsd): Support modules.
18176 (grub_cmd_freebsd_module): Use relocator.
18177 (grub_netbsd_module_load): New function.
18178 (grub_cmd_netbsd_module): Likewise.
18179 (grub_cmd_openbsd_ramdisk): Likewise.
18180 (GRUB_MOD_INIT): Register knetbsd_module, knetbsd_module_elf and
18182 (GRUB_MOD_FINI): Unregister new commands.
18183 * grub-core/loader/i386/bsdXX.c (load): Remove useless checks.
18184 (grub_freebsd_load_elfmodule_obj): Use relocator.
18185 (grub_freebsd_load_elfmodule): Likewise.
18186 (grub_freebsd_load_elf_meta): Likewise.
18187 (grub_netbsd_load_elf_meta): New function.
18188 (grub_openbsd_find_ramdisk): Likewise.
18189 * grub-core/loader/i386/bsd_helper.S: Removed.
18190 * grub-core/loader/i386/bsd_pagetable.c: Support relocator.
18191 * grub-core/loader/i386/bsd_trampoline.S: Removed.
18192 * grub-core/loader/i386/efi/linux.c: Likewise.
18193 * grub-core/loader/i386/ieee1275/linux.c: Likewise.
18194 * grub-core/loader/i386/linux.c (HAS_VGA_TEXT): New const.
18195 (DEFAULT_VIDEO_MODE): Likewise.
18196 (real_mode_target): New variable.
18197 (prot_mode_target): Likewise.
18198 (initrd_mem_target): Likewise.
18199 (relocator): Likewise.
18200 (efi_mmap_buf): Likewise.
18201 (efi_mmap_size): Likewise.
18202 (find_efi_mmap_size): Moved from grub-core/loader/i386/efi/linux.c.
18203 (free_pages): Use relocator.
18204 (allocate_pages): Account for efi_mmap and use relocator. Return error.
18205 (grub_linux_setup_video): Return error.
18206 (grub_linux_trampoline_start): Removed.
18207 (grub_linux_trampoline_end): Likewise.
18208 (grub_linux_boot): Use relocator and DEFAULT_VIDEO_MODE. Pass console
18209 andd video parameters depending on firmware.
18210 [GRUB_MACHINE_IEEE1275]: Pass OFW parameters.
18211 [GRUB_MACHINE_EFI]: Pass EFI parameters.
18212 (grub_cmd_linux) [GRUB_MACHINE_EFI]: Likewise.
18213 (grub_cmd_initrd): Use relocator.
18214 * grub-core/loader/i386/linux_trampoline.S: Removed.
18215 * grub-core/loader/i386/multiboot_mbi.c (elf_sec_num): New variable.
18216 (elf_sec_entsize): Likewise.
18217 (elf_sec_shstrndx): Likewise.
18218 (elf_sections): Likewise.
18219 (grub_multiboot_load): Use relocator.
18220 (grub_multiboot_get_mbi_size): Account for sections.
18221 (grub_multiboot_make_mbi): Use relocator and support sections.
18222 (grub_multiboot_add_elfsyms): New function.
18223 (grub_multiboot_free_mbi): Free sections.
18224 * grub-core/loader/i386/pc/linux.c (relocator): New variable.
18225 (grub_linux_real_target): Likewise.
18226 (grub_linux_real_chunk): Likewise.
18227 (grub_linux16_prot_size): Likewise.
18228 (grub_linux16_boot): Use relocator.
18229 (grub_linux_unload): Unload relocator.
18230 (grub_cmd_linux): Use relocator.
18231 (grub_cmd_initrd): Likewise.
18232 * grub-core/loader/i386/pc/ntldr.c: New file.
18233 * grub-core/loader/i386/xnu.c (guessfsb) [GRUB_MACHINE_IEEE1275]:
18234 Don't try to guess CPU frequency.
18235 (grub_xnu_set_video): Stretch bitmap.
18236 (grub_xnu_boot): Use relocator.
18237 * grub-core/loader/mips/linux.c (grub_linux_boot): Use relocator.
18238 (grub_linux_unload): Free relocator.
18239 (grub_linux_load32): Use relocator.
18240 (grub_linux_load64): Likewise.
18241 (grub_cmd_initrd): Likewise.
18242 * grub-core/loader/multiboot.c (grub_multiboot_boot): Use relocator.
18243 (grub_multiboot_unload): Unload relocator.
18244 (grub_cmd_multiboot): Use relocator.
18245 (grub_cmd_module): Likewise.
18246 * grub-core/loader/multiboot_elfxx.c (grub_multiboot_load_elfXX):
18247 Use relocator and support sections.
18248 * grub-core/loader/multiboot_mbi2.c(elf_sec_num): New variable.
18249 (elf_sec_entsize): Likewise.
18250 (elf_sec_shstrndx): Likewise.
18251 (elf_sections): Likewise.
18252 (grub_multiboot_load): Use relocator.
18253 (grub_multiboot_get_mbi_size): Account for sections.
18254 (grub_multiboot_make_mbi): Use relocator and support sections.
18255 (grub_multiboot_add_elfsyms): New function.
18256 * grub-core/loader/powerpc/ieee1275/linux.c: Remove useless include.
18257 * grub-core/loader/sparc64/ieee1275/linux.c: Likewise.
18258 * grub-core/loader/xnu.c (grub_xnu_heap_malloc): Use relocator.
18259 Prototype changed. All users updated.
18260 (grub_xnu_align_heap): Simplified.
18261 (grub_xnu_writetree_toheap): Likewise.
18262 (grub_xnu_unload): Unload relocator.
18263 (grub_cmd_xnu_kernel): Use relocator.
18264 (grub_cmd_xnu_kernel64): Likewise.
18265 (grub_xnu_register_memory): Simplified.
18266 * grub-core/loader/xnu_resume.c (grub_xnu_resume): Use relocator.
18267 * grub-core/term/efi/console.c (grub_console_putchar): Abort if
18269 (grub_console_checkkey): Likewise.
18270 (grub_console_getkey): Likewise.
18271 (grub_console_getwh): Likewise.
18272 (grub_console_getxy): Likewise.
18273 (grub_console_gotoxy): Likewise.
18274 (grub_console_cls): Likewise.
18275 (grub_console_setcolorstate): Likewise.
18276 (grub_console_setcursor): Likewise.
18277 * grub-core/term/ns8250.c (grub_ns8250_hw_get_port): New function.
18278 * grub-core/tests/boot/kbsd.init-i386.S: New file.
18279 * grub-core/tests/boot/kbsd.init-x86_64.S: Likewise.
18280 * grub-core/tests/boot/kbsd.spec.txt: Likewise.
18281 * grub-core/tests/boot/kernel-8086.S: Likewise.
18282 * grub-core/tests/boot/kernel-i386.S: Likewise.
18283 * grub-core/tests/boot/kfreebsd-aout.cfg: Likewise.
18284 * grub-core/tests/boot/kfreebsd.cfg: Likewise.
18285 * grub-core/tests/boot/kfreebsd.init-i386.S: Likewise.
18286 * grub-core/tests/boot/kfreebsd.init-x86_64.S: Likewise.
18287 * grub-core/tests/boot/knetbsd.cfg: Likewise.
18288 * grub-core/tests/boot/kopenbsd.cfg: Likewise.
18289 * grub-core/tests/boot/kopenbsdlabel.txt: Likewise.
18290 * grub-core/tests/boot/linux.cfg: Likewise.
18291 * grub-core/tests/boot/linux.init-i386.S: Likewise.
18292 * grub-core/tests/boot/linux.init-x86_64.S: Likewise.
18293 * grub-core/tests/boot/linux16.cfg: Likewise.
18294 * grub-core/tests/boot/multiboot.cfg: Likewise.
18295 * grub-core/tests/boot/multiboot2.cfg: Likewise.
18296 * grub-core/tests/boot/ntldr.cfg: Likewise.
18297 * grub-core/tests/boot/pc-chainloader.cfg: Likewise.
18298 * include/grub/aout.h (grub_aout_load): Make load_addr a void *.
18299 * include/grub/autoefi.h (grub_autoefi_finish_boot_services):
18301 * include/grub/dl.h (grub_dl_unload_all): Removed.
18302 * include/grub/efi/efi.h (grub_efi_exit_boot_services): Likewise.
18303 (grub_efi_finish_boot_services): Change prototype.
18304 (grub_efi_is_finished): New variable.
18305 * include/grub/efiemu/efiemu.h (grub_efiemu_finish_boot_services):
18307 (grub_efiemu_finish_boot_services): Removed.
18308 (grub_machine_efiemu_init_tables): New prototype.
18309 * include/grub/elfload.h (grub_elf32_phdr_iterate): Likewise.
18310 (grub_elf64_phdr_iterate): Likewise.
18311 * include/grub/i386/bsd.h: Include relocator.h.
18312 (freebsd_tag_header): New struct.
18313 (grub_openbsd_bios_mmap): Removed.
18314 (grub_unix_real_boot): Removed.
18315 (grub_freebsd_load_elfmodule32): Changed prototype.
18316 (grub_freebsd_load_elfmodule_obj64): Likewise.
18317 (grub_freebsd_load_elf_meta32): Likewise.
18318 (grub_freebsd_load_elf_meta64): Likewise.
18319 (grub_freebsd_add_meta): Removed.
18320 (grub_netbsd_load_elf_meta32): New prototype.
18321 (grub_netbsd_load_elf_meta64): Likewise.
18322 (grub_bsd_add_meta): Likewise.
18323 (grub_openbsd_ramdisk_descriptor): New struct.
18324 (grub_openbsd_find_ramdisk32): New prototype.
18325 (grub_openbsd_find_ramdisk64): Likewise.
18326 * include/grub/i386/coreboot/loader.h: Removed.
18327 * include/grub/i386/efi/loader.h: Likewise.
18328 * include/grub/i386/ieee1275/loader.h: Likewise.
18329 * include/grub/i386/linux.h (linux_kernel_header): Change void *
18331 * include/grub/i386/loader.h: Removed.
18332 * include/grub/i386/memory.h (GRUB_MEMORY_CPU_CR4_PAE_ON): Correct the
18334 (GRUB_MEMORY_CPU_CR4_PSE_ON): New definition.
18335 (grub_phys_addr_t): New type.
18336 (grub_vtop): New inline function.
18337 (grub_map_memory): Likewise.
18338 (grub_unmap_memory): Likewise.
18339 * include/grub/i386/multiboot/loader.h: Removed.
18340 * include/grub/i386/netbsd_bootinfo.h (NETBSD_BTINFO_BOOTDISK): Removed.
18341 (NETBSD_BTINFO_CONSOLE): New definition.
18342 (NETBSD_BTINFO_SYMTAB): Likewise.
18343 (NETBSD_BTINFO_MODULES): Likewise.
18344 (NETBSD_BTINFO_FRAMEBUF): Likewise.
18345 (grub_netbsd_bootinfo): New struct.
18346 (grub_netbsd_btinfo_common): Use explicit bitsize.
18347 (grub_netbsd_btinfo_mmap_entry): Removed.
18348 (GRUB_NETBSD_MAX_BOOTPATH_LEN): New definition.
18349 (grub_netbsd_btinfo_bootdisk): New struct.
18350 (grub_netbsd_btinfo_symtab): Likewise.
18351 (grub_netbsd_btinfo_serial): Likewise.
18352 (grub_netbsd_btinfo_modules): Likewise.
18353 (grub_netbsd_btinfo_framebuf): Likewise.
18354 (GRUB_NETBSD_MAX_ROOTDEVICE_LEN): New definition.
18355 * include/grub/i386/openbsd_bootarg.h (OPENBSD_BOOTARG_CONSOLE):
18357 (grub_openbsd_bootargs): Use explicit bitsize.
18358 (grub_openbsd_bootarg_console): New struct.
18359 (GRUB_OPENBSD_COM_MAJOR): New definition.
18360 (GRUB_OPENBSD_VGA_MAJOR): Likewise.
18361 * include/grub/i386/pc/efiemu.h: Removed.
18362 * include/grub/i386/pc/loader.h: Don't include cpu/loader.h.
18363 * include/grub/i386/qemu/loader.h: Removed.
18364 * include/grub/i386/relocator.h: Rewritten.
18365 * include/grub/i386/xnu.h (grub_xnu_heap_will_be_at): Removed.
18366 * include/grub/mips/memory.h: New file.
18367 * include/grub/mips/multiboot.h: Rewritten.
18368 * include/grub/mips/relocator.h: Rewritten.
18369 * include/grub/mips/yeeloong/memory.h (grub_phys_addr_t): New type.
18370 (grub_vtop): New function.
18371 (grub_map_memory): Likewise.
18372 (grub_unmap_memory): Likewise.
18373 * include/grub/misc.h (ALIGN_DOWN): New definition.
18374 * include/grub/mm.h (grub_mm_check_real): New proto.
18375 (GRUB_MM_CHECK): New definition.
18376 * include/grub/mm_private.h: New file.
18377 * include/grub/multiboot.h (grub_multiboot_relocator): New variable.
18378 (grub_multiboot_get_mbi_size): Removed.
18379 (grub_multiboot_make_mbi): Change prottype.
18380 (grub_multiboot_set_accepts_video): New proto.
18381 (grub_multiboot_add_elfsyms): Likewise.
18382 (grub_multiboot_payload_eip): New variable.
18383 * include/grub/ns8250.h (grub_ns8250_hw_get_port) [!ASM_FILE]:
18385 * include/grub/offsets.h (GRUB_KERNEL_I386_MULTIBOOT_PREFIX):
18387 (GRUB_KERNEL_I386_MULTIBOOT_DATA_END): Likewise.
18388 (GRUB_KERNEL_I386_MULTIBOOT_MOD_ALIGN): Likewise.
18389 * include/grub/powerpc/ieee1275/loader.h: Removed.
18390 * include/grub/powerpc/memory.h: New file.
18391 * include/grub/powerpc/relocator.h: Likewise.
18392 * include/grub/relocator.h: Likewise.
18393 * include/grub/relocator_private.h: Likewise.
18394 * include/grub/sparc64/ieee1275/loader.h: Removed.
18395 * include/grub/x86_64/memory.h: New file.
18396 * include/grub/xnu.h (grub_xnu_writetree_toheap): Changed prototype.
18397 (grub_xnu_heap_malloc): Likewise.
18398 (grub_xnu_heap_real_start): Removed.
18399 (grub_xnu_heap_start): Likewise.
18400 (grub_xnu_relocator): New variable.
18401 (grub_xnu_heap_target_start): Likewise.
18402 * tests/util/grub-shell.in: Support non-pc.
18403 * util/grub-mkimage.c (image_targets): Fix multiboot target.
18405 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18407 * grub-core/normal/charset.c (grub_utf8_to_ucs4_alloc): Avoid deadloop
18409 (grub_bidi_logical_to_visual): Check that malloc succeded.
18410 * grub-core/normal/term.c (grub_puts_terminal): Fix fallback to dumb
18412 (grub_xputs_normal): Likewise.
18414 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18416 * grub-core/Makefile.core.def (kernel): Add kern/mips/cache_flush.S to
18419 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18421 * grub-core/efiemu/runtime/efiemu.sh: Removed.
18423 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18425 * Makefile.util.def (grub-ofpathname): Add missing ldadd.
18427 2010-08-29 Vladimir Serbinenko <phcoder@gmail.com>
18429 * grub-core/kern/misc.c (grub_real_dprintf): Always refresh after
18432 2010-08-29 BVK Chaitanya <bvk.groups@gmail.com>
18434 * Makefile.util.def: Use ldadd instead of ldflags for libraries.
18436 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18438 * grub-core/normal/term.c (print_more): Fix a memory leak.
18439 (grub_puts_terminal): Revert to dumb puts if memory allocation fails.
18440 (grub_xputs_normal): Likewise.
18442 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18444 * grub-core/script/lexer.c (grub_script_lexer_init): Don't look before
18445 the begining of the string
18447 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18449 * grub-core/script/script.c (grub_script_parse): Free parsed on
18452 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18454 * grub-core/normal/completion.c (grub_normal_do_completion): Free argv
18457 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18459 * grub-core/normal/cmdline.c (grub_cmdline_get): Free cl_terms on
18462 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18464 * grub-core/term/gfxterm.c (grub_gfxterm_term_fini): Free the text buffer.
18465 (scroll_up): Fix a memory leak.
18467 2010-08-28 Vladimir Serbinenko <phcoder@gmail.com>
18469 * grub-core/fs/nilfs2.c (grub_nilfs2_load_sb): Handle grub_disk_read
18472 2010-08-27 Vladimir Serbinenko <phcoder@gmail.com>
18474 Handle USB pendrives exposed as floppies.
18476 * grub-core/boot/i386/pc/boot.S: Check LBA even on what appears to be
18478 * grub-core/disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
18479 Check for partitions on all devices.
18481 2010-08-25 Vladimir Serbinenko <phcoder@gmail.com>
18483 * grub-core/term/ieee1275/ofconsole.c (put): Correct prototype.
18484 (readkey): Likewise.
18486 2010-08-25 BVK Chaitanya <bvk.groups@gmail.com>
18488 Multiple variable names support to "export" command.
18490 * normal/context.c (grub_cmd_export): "export" command supports
18491 multiple variable names.
18493 2010-08-23 Samuel Thibault <samuel.thibault@ens-lyon.org>
18495 * util/grub.d/30_os-prober.in: Fix conversion from grub-probe
18496 --target=drive output to Mach device name.
18498 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18500 New Automake based build system for GRUB.
18502 * ABOUT-NLS: New file.
18503 * Makefile.am: New file. GRUB host utils' rules that doesn't fit
18504 in Makefile.util.def file.
18505 * Makefile.util.def: New file. Autogen build definitions file for
18507 * conf/Makefile.common: New file. Common variables for GRUB host
18508 utils and target modules.
18509 * conf/Makefile.extra-dist: New file. Extra files for make dist.
18510 * docs/Makefile.am: New file. Automake file for docs.
18511 * gentpl.py: New file. Python script to generate Autogen
18513 * grub-core/Makefile.am: New file. GRUB target modules' rules
18514 that doesn't fit in Makefile.core.def file.
18515 * grub-core/Makefile.core.def: New file. Autogen build
18516 definitions file for GRUB target modules.
18517 * grub-core/lib/setjmp.S: New file. Wrapper for target_cpu
18518 specific setjmp.S file.
18519 * po/Makefile.am: New file.
18521 * .bzrignore: New ignores.
18522 * INSTALL: New requirements, without Ruby.
18523 * acinclude.m4: Use TARGET_IMG_BASE_LDOPT variable instead.
18524 * autogen.sh: Updated to invoke autogen as necessary.
18525 * configure.ac: Separate *FLAGS with HOST_ and TARGET_ prefixes,
18526 and defines for Automake conditionals.
18527 * geninit.sh: Refactoring.
18529 * include/grub/dl.h: Allow build rules to define GRUB_MOD_* if
18531 * include/grub/emu/getroot.h (grub_make_system_path_relative_to_its_root):
18534 * include/grub/test.h: Fix functional test modules' naming.
18535 * grub-core/tests/example_functional_test.c: Fix test module name.
18537 * util/misc.c: Hosted versions' of grub functions for libgrub.a
18538 * tests/lib/unit_test.c: Remove hosted versions of grub functions.
18539 * util/grub-editenv.c: Likewise.
18540 * util/grub-fstest.c: Likewise.
18541 * util/grub-mkdevicemap.c: Likewise.
18542 * util/grub-mkfont.c: Likewise.
18543 * util/grub-mkimage.c: Likewise.
18544 * util/grub-mkpasswd-pbkdf2.c: Likewise.
18545 * util/grub-probe.c: Likewise.
18546 * util/grub-script-check.c: Likewise.
18547 * util/i386/pc/grub-setup.c: Likewise.
18548 * util/sparc64/ieee1275/grub-setup.c: Likewise.
18550 * tests/util/grub-shell.in: Fix override directory path.
18551 * util/grub-mkrescue.in: Replace @pkglib_DATA@ with files.
18552 * util/import_gcry.py: Create Makefile.gcry.def file instead.
18554 * util/lvm.c: Update #includes.
18555 * util/raid.c: Likewise.
18556 * util/resolve.c: Likewise.
18557 * grub-core/bus/emu/pci.c: Likewise.
18558 * grub-core/lib/posix_wrap/stdlib.h: Likewise.
18559 * grub-core/lib/posix_wrap/string.h: Likewise.
18560 * grub-core/kern/emu/main.c: Likewise.
18562 * grub-core/gensymlist.sh: New file. Script for generating kernel
18564 * grub-core/genmoddep.awk: Support new kernel_syms.lst format.
18566 * grub-core/gentrigtables.c: Fix unused variable warnings.
18568 * Makefile.in: Removed.
18569 * conf/any-emu.rmk: Removed.
18570 * conf/common.rmk: Removed.
18571 * conf/i386-coreboot.rmk: Removed.
18572 * conf/i386-efi.rmk: Removed.
18573 * conf/i386-ieee1275.rmk: Removed.
18574 * conf/i386-multiboot.rmk: Removed.
18575 * conf/i386-pc.rmk: Removed.
18576 * conf/i386-qemu.rmk: Removed.
18577 * conf/i386.rmk: Removed.
18578 * conf/mips-yeeloong.rmk: Removed.
18579 * conf/mips.rmk: Removed.
18580 * conf/powerpc-ieee1275.rmk: Removed.
18581 * conf/sparc64-ieee1275.rmk: Removed.
18582 * conf/tests.rmk: Removed.
18583 * conf/x86-efi.rmk: Removed.
18584 * conf/x86_64-efi.rmk: Removed.
18585 * gendistlist.sh: Removed.
18586 * geninitheader.sh: Removed.
18587 * genkernsyms.sh.in: Removed.
18588 * genmk.rb: Removed.
18589 * gensymlist.sh.in: Removed.
18590 * mkinstalldirs: Removed.
18592 * grub-core/boot: ... to here.
18594 * grub-core/bus: ... to here.
18595 * commands: Moved ...
18596 * grub-core/commands: ... to here.
18598 * grub-core/disk: ... to here.
18599 * efiemu: Moved ...
18600 * grub-core/efiemu: ... to here.
18602 * grub-core/font: ... to here.
18604 * grub-core/fs: ... to here.
18605 * gencmdlist.sh: Moved ...
18606 * grub-core/gencmdlist.sh: ... to here.
18607 * genemuinit.sh: Moved ...
18608 * grub-core/genemuinit.sh: ... to here.
18609 * genemuinitheader.sh: Moved ...
18610 * grub-core/genemuinitheader.sh: ... to here.
18611 * genfslist.sh: Moved ...
18612 * grub-core/genfslist.sh: ... to here.
18613 * genhandlerlist.sh: Moved ...
18614 * grub-core/genhandlerlist.sh: ... to here.
18615 * genmoddep.awk: Moved ...
18616 * grub-core/genmoddep.awk: ... to here.
18617 * genmodsrc.sh: Moved ...
18618 * grub-core/genmodsrc.sh: ... to here.
18619 * genpartmaplist.sh: Moved ...
18620 * grub-core/genpartmaplist.sh: ... to here.
18621 * genparttoollist.sh: Moved ...
18622 * grub-core/genparttoollist.sh: ... to here.
18623 * genterminallist.sh: Moved ...
18624 * grub-core/genterminallist.sh: ... to here.
18625 * gentrigtables.c: Moved ...
18626 * grub-core/gentrigtables.c: ... to here.
18627 * genvideolist.sh: Moved ...
18628 * grub-core/genvideolist.sh: ... to here.
18629 * gettext: Moved ...
18630 * grub-core/gettext: ... to here.
18631 * gfxmenu: Moved ...
18632 * grub-core/gfxmenu: ... to here.
18633 * gnulib: Moved ...
18634 * grub-core/gnulib: ... to here.
18636 * grub-core/hello: ... to here.
18638 * grub-core/hook: ... to here.
18640 * grub-core/io: ... to here.
18642 * grub-core/kern: ... to here.
18644 * grub-core/lib: ... to here.
18645 * loader: Moved ...
18646 * grub-core/loader: ... to here.
18648 * grub-core/mmap: ... to here.
18649 * normal: Moved ...
18650 * grub-core/normal: ... to here.
18651 * partmap: Moved ...
18652 * grub-core/partmap: ... to here.
18653 * parttool: Moved ...
18654 * grub-core/parttool: ... to here.
18655 * script: Moved ...
18656 * grub-core/script: ... to here.
18658 * grub-core/term: ... to here
18659 * tests/example_functional_test.c: Moved ...
18660 * grub-core/tests/example_functional_test.c: ... to here.
18661 * tests/lib/functional_test.c: Moved ...
18662 * grub-core/tests/lib/functional_test.c: ... to here.
18663 * tests/lib/test.c: Moved ...
18664 * grub-core/tests/lib/test.c: ... to here.
18666 * grub-core/video: ... to here.
18668 2010-08-23 BVK Chaitanya <bvk.groups@gmail.com>
18670 Replace --enable-grub-emu-modules with grub-emu-lite.
18672 * kern/emu/cache.S: New file. Wrapper for $target_cpu specific
18675 * include/grub/emu/misc.h (grub_emu_init): New prototype.
18676 * kern/emu/full.c: New file. For grub-emu specific initialization.
18677 * kern/emu/lite.c: New file. For grub-emu-lite initialization.
18678 * kern/emu/main.c: Call initialization function grub_emu_init.
18680 * Makefile.in: Include grub-emu-lite in install.
18681 * commands/parttool.c: Use grub_no_autoload to differentiate
18682 between grub-emu and grub-emu-lite.
18683 * include/grub/misc.h: New variable grub_no_autoload.
18685 * conf/any-emu.rmk: New rules for grub-emu-lite.
18686 * configure.ac: Remove --enable-grub-emu-modules.
18687 * genmk.rb: Cleanup unnecessary rules.
18688 * include/grub/dl.h: Remove GRUB_NO_MODULES macro.
18690 * normal/main.c: Don't load list files on grub-emu-lite.
18691 * util/misc.c (grub_arch_sync_caches): Removed.
18693 2010-08-23 Colin Watson <cjwatson@ubuntu.com>
18695 * kern/mips/startup.S (grub_prefix): Update comment to refer to
18696 grub-mkimage rather than grub-mkelfimage.
18697 * kern/powerpc/ieee1275/startup.S (grub_prefix): Likewise.
18699 2010-08-22 Vladimir Serbinenko <phcoder@gmail.com>
18701 * term/at_keyboard.c (grub_at_keyboard_getkey_noblock): Don't discard
18702 a key after CapsLock or NumLock. It's just a qemu bug.
18704 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18706 * include/grub/usb.h (grub_usb_device): Add 'data' field back. It's
18707 needed by libusb wrapper.
18709 2010-08-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
18711 * docs/grub.texi (GNU/Hurd): Document booting GNU/Hurd.
18713 2010-08-21 Vladimir Serbinenko <phcoder@gmail.com>
18715 * loader/multiboot.c (grub_cmd_module): Don't unzip module if
18716 --nounzip is passed.
18718 2010-08-20 Vladimir Serbinenko <phcoder@gmail.com>
18720 USB hotunplugging and USB serial support.
18722 * bus/usb/ohci.c (grub_ohci_transfer): Fill *actual and respect timeout.
18723 * bus/usb/uhci.c (grub_free_queue): Compute *actual.
18724 (grub_uhci_transfer): Respect timeout and set *actual.
18725 * bus/usb/usb.c (grub_usb_device_initialize): Correctly skip fields of
18726 non-standard length.
18727 (grub_usb_device_attach): Autoload modules.
18728 (GRUB_MOD_INIT): Set grub_term_poll_usb.
18729 (GRUB_MOD_FINI): Unset grub_term_poll_usb.
18730 * bus/usb/usbhub.c (grub_usb_hub): Replace speed with devices. All
18732 (grub_usb_add_hub): Fill nports and children.
18733 (attach_root_port): Receive hub instead of controller.
18734 All users updated. Fill hub->devices.
18735 (grub_usb_root_hub): Allocate hub->devices.
18736 (detach_device): New function.
18737 (poll_nonroot_hub): Fill children and detach devices.
18738 * bus/usb/usbtrans.c (grub_usb_bulk_readwrite): Accept timeout and
18739 actual arguments. All users updated.
18740 (grub_usb_bulk_read_extended): New function.
18741 * bus/usb/serial/common.c: New file.
18742 * bus/usb/serial/ftdi.c: Likewise.
18743 * bus/usb/serial/pl2303.c: Likewise.
18744 * commands/terminal.c (handle_command): Support wildcard.
18745 * commands/usbtest.c: Output "Unknown" instead of empty string.
18746 * conf/any-emu.rmk (pkglib_MODULES): Add usbserial_common.mod.
18747 (usbserial_common_mod_SOURCES): New variable.
18748 (usbserial_common_mod_CFLAGS): Likewise.
18749 (usbserial_common_mod_LDFLAGS): Likewise.
18750 (pkglib_MODULES): Add usbserial_pl2303.mod.
18751 (usbserial_pl2303_mod_SOURCES): New variable.
18752 (usbserial_pl2303_mod_CFLAGS): Likewise.
18753 (usbserial_pl2303_mod_LDFLAGS): Likewise.
18754 (pkglib_MODULES): Add usbserial_ftdi.mod.
18755 (usbserial_ftdi_mod_SOURCES): New variable.
18756 (usbserial_ftdi_mod_CFLAGS): Likewise.
18757 (usbserial_ftdi_mod_LDFLAGS): Likewise.
18758 (pkglib_MODULES): Add serial.mod.
18759 (serial_mod_SOURCES): New variable.
18760 (serial_mod_CFLAGS): Likewise.
18761 (serial_mod_LDFLAGS): Likewise.
18762 * conf/i386-pc.rmk: Likewise.
18763 * conf/mips-yeeloong.rmk: Likewise.
18764 * conf/i386.rmk (serial_mod_SOURCES): Add term/ns8250.c.
18765 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
18766 * disk/usbms.c (first_available_slot): New variable.
18767 (grub_usbms_attach): Don't reuse free slots due to potential cache
18769 * include/grub/serial.h: Moved to ..
18770 * include/grub/ns8250.h: ...this.
18771 * include/grub/serial.h: New file.
18772 * include/grub/term.h (grub_term_poll_usb): New variable.
18773 * include/grub/terminfo.h (grub_terminfo_input_state): Pass term to
18774 readkey. All users updated.
18775 (grub_terminfo_output_state): Pass term to put.
18776 * include/grub/usb.h (GRUB_USB_REQTYPE): New enum.
18777 (grub_usb_controller_dev): Add timeout and actual arguments to
18778 transfer. All users updated.
18779 (grub_usb_interface): New field detach_data.
18780 (grub_usb_device): New fields children and nports.
18781 (grub_usb_ep_type_t): New type.
18782 (grub_usb_get_ep_type): New function.
18783 (grub_usb_bulk_read_extended): Likewise.
18784 * include/grub/usbdesc.h (grub_usb_desc): New type.
18785 * include/grub/usbserial.h: New file.
18786 * include/grub/usbtrans.h (grub_usb_transaction): New field preceding.
18787 * kern/term.c (grub_term_poll_usb): New variable.
18788 (grub_getkey): Call grub_term_poll_usb if set.
18789 (grub_checkkey): Likewise.
18790 (grub_getkeystatus): Likewise.
18791 * term/serial.c: Moved controller-specific parts to ...
18792 * term/ns8250.c: ... here.
18793 * term/serial.c: Mostly rewritten.
18794 * term/usb_keyboard.c: Reorganised to use GET_REPORT only on attaching
18797 2010-08-20 Robert Millan <rmh@gnu.org>
18799 Make kFreeBSD code more generic to support ext2fs as root, ufs as
18800 a separate module and maybe other interesting combinations.
18802 * util/grub.d/10_kfreebsd.in (load_kfreebsd_module): New function.
18803 (kfreebsd_entry): Use load_kfreebsd_module() to load modules.
18804 (kfreebsd_entry): Add generic filesystem module load routine.
18805 Map GRUB `ext2' to kFreeBSD `ext2fs'.
18807 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18809 * commands/i386/pc/sendkey.c (keysym_table): Rename "numlock" to
18810 "numcenter" (I misunderstood the purpose of this entry).
18811 * docs/grub.texi (sendkey): Likewise.
18813 2010-08-20 Colin Watson <cjwatson@ubuntu.com>
18815 * commands/i386/pc/sendkey.c (options): Remove "keep" from all
18816 status flag options; simply omitting the option is equivalent and
18817 simpler. Rename "wait" to "pause". Rename "sysreq" to "sysrq".
18818 (keysym_table): Rename "num5numlock" to "numlock".
18819 (grub_cmd_sendkey): Reinitialise `andmask' and `ormask', so that we
18820 can uniformly say that only the last of multiple `sendkey'
18821 invocations has any effect.
18822 * docs/grub.texi (sendkey): New section.
18824 2010-08-19 Colin Watson <cjwatson@ubuntu.com>
18826 * commands/i386/pc/sendkey.c (options): Fix three typos.
18828 2010-08-19 Vladimir Serbinenko <phcoder@gmail.com>
18830 Implement sendkey support.
18832 * commands/i386/pc/sendkey.c: New file.
18833 * conf/i386-pc.rmk (pkglib_MODULES): Add sendkey.mod.
18834 (sendkey_mod_SOURCES): New variable.
18835 (sendkey_mod_CFLAGS): Likewise.
18836 (sendkey_mod_LDFLAGS): Likewise.
18838 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18840 * configure.ac: Move AM_INIT_AUTOMAKE after AC_CANONICAL_TARGET to
18841 fix warnings from Autoconf.
18843 2010-08-18 Colin Watson <cjwatson@ubuntu.com>
18845 * acinclude.m4 (grub_ASM_USCORE): Use a more accurate grep pattern,
18846 to avoid false positives with some assemblers that output things
18847 like "someprefix_func" as part of their output.
18849 2010-08-15 Robert Millan <rmh@gnu.org>
18851 * kern/emu/misc.c (grub_get_libzfs_handle): Handle libzfs_init()
18853 * kern/emu/getroot.c (find_root_device_from_libzfs): Handle
18854 grub_get_libzfs_handle() errors.
18856 2010-08-14 Robert Millan <rmh@gnu.org>
18858 * kern/emu/misc.c (grub_find_zpool_from_dir): Abort function if
18859 filesystem is not ZFS.
18861 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18863 Fix for misspelled color names defaulting to black/black (bug
18864 reported by Doug Nazar)
18866 * include/grub/normal.h (grub_parse_color_name_pair): Add return
18867 status to prototype.
18868 * normal/color.c (grub_parse_color_name_pair): Return failure
18870 (grub_env_write_color_normal): Ignore bad color names.
18871 (grub_env_write_color_highlight): Likewise.
18872 * normal/main.c (GRUB_MOD_INIT): Set default color names.
18874 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18876 "shift" command support to GRUB script.
18878 * include/grub/script_sh.h (grub_script_shift): New prototype.
18879 * script/execute.c (grub_script_shift): New function.
18880 * script/main.c (grub_script_init): Register shift command.
18881 (grub_script_fini): Unregister shift command.
18882 * util/grub-script-check.c (grub_script_cmd_shift): New function.
18884 * tests/grub_script_shift.in: New testcase.
18885 * conf/tests.rmk: Rules for new testcase.
18887 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18889 "continue" command support to GRUB script.
18891 * script/execute.c (grub_script_execute_cmdwhile): Continue support.
18892 (grub_script_break): Continue support.
18893 * script/main.c (grub_script_init): Register continue command.
18894 (grub_script_fini): Unregister continue command.
18896 * tests/grub_script_continue.in: New testcase.
18897 * conf/tests.rmk: Rules for new testcase.
18899 2010-08-12 BVK Chaitanya <bvk@dbook>
18901 "break" command support to GRUB script.
18903 * conf/common.rmk: Rule updates to grub-script-check.
18904 * include/grub/misc.h (grub_min): New function.
18905 * include/grub/script_sh.h (grub_script_init): New prototype.
18906 (grub_script_fini): New prototype.
18907 (grub_script_break): New prototype.
18908 * script/main.c (grub_script_init): New function.
18909 (grub_script_fini): New function.
18910 * script/execute.c (grub_script_break): New function.
18911 * normal/main.c: Calls to grub_script_{init,fini}.
18912 * util/grub-script-check.c (grub_script_break): New function.
18914 * tests/grub_script_break.in: New testcase.
18915 * conf/tests.rmk: Rules for new test case.
18917 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18919 Function parameters support to GRUB script.
18921 * script/yylex.l (VARIABLE): Regular expression update.
18922 * script/function.c (grub_script_function_call): Moved ...
18923 * script/execute.c (grub_script_function_call): ... to here.
18924 (grub_script_execute_arglist_to_argv): Removed.
18925 (grub_script_arglist_to_argv): New function.
18926 * script/argv.c: New file.
18927 (grub_script_argv_free): New function.
18928 (grub_script_argv_next): Likewise.
18929 (grub_script_argv_append): Likewise.
18930 (grub_script_argv_split_append): Likewise.
18931 * include/grub/script_sh.h (grub_script_argv): New struct.
18932 (grub_script_argv_free): New function.
18933 (grub_script_argv_next): Likewise.
18934 (grub_script_argv_append): Likewise.
18935 (grub_script_argv_split_append): Likewise.
18937 * conf/common.rmk (normal.mod): New source script/argv.c.
18939 * tests/grub_script_echo1.in: More tests.
18940 * tests/grub_script_vars1.in: Likewise.
18941 * tests/grub_script_functions.in: New test case.
18942 * conf/tests.rmk: Rules for new testcase.
18944 2010-08-12 BVK Chaitanya <bvk.groups@gmail.com>
18946 Remove grub_script_cmdblock struct.
18948 * include/grub/script_sh.h: Remove grub_script_cmdblock.
18949 * script/parser.y: Likewise.
18950 * script/execute.c: Rename cmdblock suffix to cmdlist.
18951 * script/script.c: Likewise.
18952 * util/grub-script-check.c: Likewise.
18954 2010-08-11 Yves Blusseau <blusseau@zetam.org>
18956 * .bzrignore: add grub-macho2img
18958 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18960 * kern/i386/qemu/init.c (grub_qemu_init_cirrus): Fix compilation error.
18962 2010-08-11 Vladimir Serbinenko <phcoder@gmail.com>
18964 Remove the dump of sm712 initialisation sequence.
18966 * include/grub/pci.h (GRUB_PCI_CLASS_SUBCLASS_VGA): New const.
18967 * include/grub/vga.h (GRUB_VGA_IO_ARX_READ): New register.
18968 (GRUB_VGA_IO_MISC_WRITE): Likewise.
18969 (GRUB_VGA_CR_*): Added many registers.
18970 (GRUB_VGA_SR_*): Likewise.
18971 (GRUB_VGA_GR_*): Likewise.
18972 (grub_vga_write_arx): New function.
18973 (grub_video_hw_config): New struct.
18974 (grub_vga_set_geometry): New function.
18975 * kern/i386/qemu/init.c (load_palette): Use grub_vga_write_arx and
18976 GRUB_PCI_CLASS_SUBCLASS_VGA.
18977 * video/cirrus.c (grub_video_cirrus_setup): Use grub_vga_set_geometry.
18978 * video/sm712.c (grub_sm712_write_reg): New function
18979 (grub_sm712_read_reg): Likewise.
18980 (grub_sm712_sr_write): Likewise.
18981 (grub_sm712_gr_write): Likewise.
18982 (grub_sm712_cr_write): Likewise.
18983 (grub_sm712_write_arx): Likewise.
18984 (grub_sm712_cr_shadow_write): Likewise.
18985 (grub_sm712_write_dda_lookup): Likewise.
18986 (grub_video_sm712_setup): Initialise the video rather then
18987 blindly replay the dump.
18988 (main) [TEST]: Add a routine to be able to compile as standalone for
18990 * video/sm712_init.c (sm712_init): Removed.
18991 (sm712_sr_seq1): New array.
18992 (sm712_sr_seq2): Likewise.
18994 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
18996 * include/grub/vga.h: Add missing grub/pci.h include.
18998 2010-08-10 Yves Blusseau <blusseau@zetam.org>
19000 * util/grub-macho2img.c (main): fix typo
19002 2010-08-10 Vladimir Serbinenko <phcoder@gmail.com>
19004 * include/grub/vga.h (grub_vga_gr_write): Add GRUB_MACHINE_PCI_IO_BASE.
19005 (grub_vga_gr_read): Likewise.
19006 (grub_vga_cr_write): Likewise.
19007 (grub_vga_cr_read): Likewise.
19008 (grub_vga_sr_write): Likewise.
19009 (grub_vga_sr_read): Likewise.
19010 (grub_vga_palette_read): Likewise.
19011 (grub_vga_palette_write): Likewise.
19012 * video/sm712.c (GRUB_SM712_REG_BASE): New definition.
19013 (grub_sm712_sr_read): New function.
19014 (grub_video_sm712_setup): Use grub_vga_sr_write and grub_sm712_sr_read.
19015 * video/sm712_init.c (sm712_init): Substract GRUB_MACHINE_PCI_IO_BASE.
19017 2010-08-09 Robert Millan <rmh@gnu.org>
19019 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Filter
19020 out unused variables on non-ZFS build.
19022 2010-08-08 Robert Millan <rmh@gnu.org>
19024 Fix path generation for sub-filesystems in ZFS.
19026 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): Add
19029 2010-08-08 Robert Millan <rmh@gnu.org>
19031 * util/grub-fstest.c (read_file, cmd_cmp): Improve error message.
19033 2010-08-08 Robert Millan <rmh@gnu.org>
19035 * util/grub.d/10_kfreebsd.in: When files required for ZFS do not
19036 exist, issue a proper error message (rely on `ls' for translated
19039 2010-08-08 Robert Millan <rmh@gnu.org>
19041 Fix grub-probe invocation.
19043 * util/grub.d/10_kfreebsd.in: s/label/fs_label/g.
19045 2010-08-04 Robert Millan <rmh@gnu.org>
19047 * configure.ac: Remove checks for getfsstat() and getmntany().
19048 Add checks for `<sys/param.h>' and `<sys/mount.h>'.
19049 * kern/emu/misc.c [HAVE_GETMNTANY]: Remove `<sys/mnttab.h>'.
19050 [HAVE_SYS_PARAM_H]: Include `<sys/param.h>'.
19051 [HAVE_SYS_MOUNT_H]: Include `<sys/mount.h>'.
19052 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_mount_point_from_dir): Remove
19054 (grub_find_zpool_from_dir): Use statfs() instead of indirect matching
19055 via find_mount_point_from_dir() and getfsstat() / getmntany().
19057 2010-08-04 Robert Millan <rmh@gnu.org>
19059 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19060 (grub_find_zpool_from_mount_point): Merge into ...
19061 (grub_find_zpool_from_dir): ... this.
19062 * kern/emu/misc.c: Likewise.
19065 (grub_make_system_path_relative_to_its_root): Replace
19066 grub_find_mount_point_from_dir() / grub_find_zpool_from_mount_point()
19067 with grub_find_zpool_from_dir().
19068 * kern/emu/getroot.c (find_root_device_from_libzfs): Likewise.
19070 2010-08-04 Robert Millan <rmh@gnu.org>
19072 Support OpenSolaris in ZFS device resolution.
19074 * configure.ac: Check for getmntany().
19075 * kern/emu/misc.c [HAVE_GETMNTANY]: Include `<sys/mnttab.h>'.
19076 [HAVE_GETMNTANY] (grub_find_zpool_from_mount_point): Add OpenSolaris
19079 2010-08-03 Robert Millan <rmh@gnu.org>
19081 Fix grub-emu build.
19083 * include/grub/util/misc.h: Move `<grub/util/libzfs.h>' to ...
19084 * include/grub/emu/misc.h: ... here.
19086 * include/grub/util/misc.h (grub_get_libzfs_handle): Move function ...
19087 * include/grub/emu/misc.h (grub_get_libzfs_handle): ... here.
19089 * util/misc.c: Remove `<grub/util/libzfs.h>'.
19090 [HAVE_LIBZFS] (libzfs_handle, fini_libzfs)
19091 (grub_get_libzfs_handle): Move to ...
19092 * kern/emu/misc.c [HAVE_LIBZFS] (__libzfs_handle, fini_libzfs)
19093 (grub_get_libzfs_handle): ... here.
19095 2010-08-03 BVK Chaitanya <bvk.groups@gmail.com>
19097 * script/execute.c (grub_script_execute_cmdline): Check for NULL
19098 as command name case.
19100 2010-08-02 Colin Watson <cjwatson@ubuntu.com>
19102 * disk/raid.c (insert_array): Select unique numbers for named arrays
19103 as well, for use as keys in the disk cache.
19105 2010-08-01 Robert Millan <rmh@gnu.org>
19107 * util/grub.d/10_kfreebsd.in: Initialize ${kfreebsd_device} as the
19108 kFreeBSD device name, except on ZFS where the filesystem label is
19110 (kfreebsd_entry): On ZFS root, load `opensolaris.ko', `zfs.ko' and
19111 `/boot/zfs/zpool.cache'.
19112 Set mountfrom kernel variable using ${kfreebsd_device}.
19114 2010-08-01 Robert Millan <rmh@gnu.org>
19116 Make it even harder to use uninitialized `libzfs_handle' (and
19117 make the interface a bit simpler).
19119 * include/grub/util/misc.h (grub_util_init_libzfs)
19120 (libzfs_handle): Remove.
19121 (grub_get_libzfs_handle): New prototype.
19123 * util/misc.c [HAVE_LIBZFS] (libzfs_handle): Add `static'
19125 (grub_util_init_libzfs): Remove.
19126 (grub_get_libzfs_handle): New function.
19128 * kern/emu/getroot.c (find_root_device_from_libzfs): Use
19129 grub_get_libzfs_handle() to obtain a libzfs handle instead of
19130 accessing `libzfs_handle' directly.
19132 2010-08-01 Robert Millan <rmh@gnu.org>
19134 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19135 (grub_find_zpool_from_mount_point): New function prototypes.
19137 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19138 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19140 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19141 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19142 `static' attribute.
19144 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19145 finding zpool from mount point into ...
19146 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19148 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19149 requested path is part of a ZFS pool, use
19150 grub_find_zpool_from_mount_point() to detect its filesystem name,
19151 and generate a path with `/fsname@path' syntax.
19153 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19155 * include/grub/util/libzfs.h (libzfs_init): Set argument list to
19156 (void) rather than () so that this is a proper prototype.
19158 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19160 * lib/arg.c (grub_arg_show_help): Add the necessary spacing.
19162 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19164 * kern/emu/getroot.c (find_mount_point_from_dir): Compile only if
19165 [HAVE_LIBZFS && HAVE_LIBNVPAIR]
19167 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19169 * util/grub-mkrescue.in: Remove ${efi_dir} after building efi.img.
19171 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19173 * script/yylex.l (NAME): Remove [:digit:], redundant with [:alnum:].
19175 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19177 * docs/grub.texi (Simple configuration): Document GRUB_CMDLINE_XEN
19178 and GRUB_CMDLINE_XEN_DEFAULT. Recommend setting
19179 GRUB_GFXPAYLOAD_LINUX=text rather than unsetting it in order to
19180 disable gfxpayload.
19181 (Shell-like scripting): Add real content.
19182 (Serial terminal): Suggest `terminal_input serial; terminal_output
19183 serial' rather than putting the two commands on separate lines,
19184 since console input will be inoperative after the first command.
19185 (menuentry): Document --class, --users, and --hotkey options.
19186 (terminfo): Describe what `visually-ordered UTF-8' means (thanks,
19187 Vladimir Serbinenko).
19189 2010-08-01 Vladimir Serbinenko <phcoder@gmail.com>
19190 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19192 * kern/misc.c (grub_memset): Optimise to reduce cache stalls.
19194 2010-08-01 Robert Millan <rmh@gnu.org>
19196 * include/grub/emu/misc.h (grub_find_mount_point_from_dir)
19197 (grub_find_zpool_from_mount_point): New function prototypes.
19199 * kern/emu/getroot.c [HAVE_GETFSSTAT]: Move `<sys/mount.h>' to ...
19200 * kern/emu/misc.c [HAVE_GETFSSTAT]: ... here.
19202 * kern/emu/getroot.c (find_mount_point_from_dir): Move to ...
19203 * kern/emu/misc.c (grub_find_mount_point_from_dir): ... this. Remove
19204 `static' attribute.
19206 * kern/emu/getroot.c (find_root_device_from_libzfs): Split code for
19207 finding zpool from mount point into ...
19208 * kern/emu/misc.c (grub_find_zpool_from_mount_point): ... this.
19210 * kern/emu/misc.c (grub_make_system_path_relative_to_its_root): When
19211 requested path is part of a ZFS pool, use
19212 grub_find_zpool_from_mount_point() to detect its filesystem name,
19213 and generate a path with `/fsname@path' syntax.
19215 2010-08-01 Robert Millan <rmh@gnu.org>
19217 Prevent accidental use of uninitialized libzfs_handle.
19219 * util/grub-probe.c (main): Move grub_util_init_libzfs() call to ...
19220 * kern/emu/getroot.c (find_root_device_from_libzfs): ... here.
19221 * util/misc.c (grub_util_init_libzfs): Make this function idempotent.
19223 2010-08-01 Colin Watson <cjwatson@ubuntu.com>
19225 * util/grub.d/20_linux_xen.in: Don't use UUID for LVM root (matching
19226 util/grub.d/10_linux.in). Fixes Debian bug #591093.
19228 2010-08-01 Robert Millan <rmh@gnu.org>
19230 * kern/emu/getroot.c: Include `<grub/util/misc.h>'.
19232 2010-07-31 Robert Millan <rmh@gnu.org>
19234 * util/grub.d/10_kfreebsd.in: Make module handling more generic.
19236 2010-07-31 Robert Millan <rmh@gnu.org>
19238 * kern/emu/misc.c: Add missing license header.
19240 2010-07-31 Robert Millan <rmh@gnu.org>
19242 * configure.ac: Check for `libzfs.h' and `libnvpair.h'.
19244 * include/grub/util/libnvpair.h: Include `<config.h>'.
19245 [HAVE_LIBNVPAIR_H]: Include `<libnvpair.h>' instead of
19246 declaring libnvpair prototypes ourselves.
19247 * include/grub/util/libzfs.h: Include `<config.h>'.
19248 [HAVE_LIBZFS_H]: Include `<libzfs.h>' instead of
19249 declaring libzfs prototypes ourselves.
19251 (libzfs_handle): Moved to ...
19252 * include/grub/util/misc.h (libzfs_handle): ... here.
19253 Include `<grub/util/libzfs.h>'.
19255 2010-07-30 Robert Millan <rmh@gnu.org>
19257 * include/grub/emu/misc.h: Add missing license header.
19259 2010-07-30 Robert Millan <rmh@gnu.org>
19261 Enable `grub-probe -t device' resolution on ZFS.
19263 * configure.ac: Check for getfsstat(), libzfs and libnvpair.
19264 * include/grub/util/libnvpair.h: New file.
19265 * include/grub/util/libzfs.h: New file.
19267 * kern/emu/getroot.c: Include `<assert.h>' and `<error.h>'.
19268 [HAVE_LIBZFS && HAVE_LIBNVPAIR]: Include `<grub/util/libzfs.h>' and
19269 `<grub/util/libnvpair.h>'.
19270 [HAVE_GETFSSTAT]: Include `<sys/mount.h>'.
19272 (find_mount_point_from_dir): New static function.
19273 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (find_root_device_from_libzfs): New
19275 [HAVE_LIBZFS && HAVE_LIBNVPAIR] (grub_guess_root_device): Use
19276 find_root_device_from_libzfs() before ressorting to find_root_device().
19278 * include/grub/util/misc.h (grub_util_init_libzfs): New function
19280 * util/misc.c: Include `<grub/util/libzfs.h>'.
19281 (grub_util_init_libzfs): New function.
19282 [HAVE_LIBZFS] (libzfs_handle): New global variable.
19283 [HAVE_LIBZFS] (fini_libzfs): New static function.
19284 (grub_util_init_libzfs): New function.
19285 * util/grub-probe.c (main): Call grub_util_init_libzfs().
19287 2010-07-30 Robert Millan <rmh@gnu.org>
19289 * include/grub/emu/misc.h (grub_make_system_path_relative_to_its_root)
19290 (xmalloc, xrealloc, xstrdup, xasprintf): Add
19291 `warn_unused_result' attribute.
19292 * include/grub/misc.h (grub_strdup, grub_strndup, grub_strlen)
19293 (grub_xasprintf, grub_xvasprintf): Likewise.
19294 * include/grub/emu/misc.h (xasprintf): Remove duplicate prototype.
19296 2010-07-29 Robert Millan <rmh@gnu.org>
19298 * util/grub-probe.c (PRINT_FS_LABEL): New enum value.
19299 (probe): Handle `PRINT_FS_LABEL'.
19300 (main): Handle `-t fs_label'.
19302 2010-07-29 Robert Millan <rmh@gnu.org>
19304 * configure.ac: Remove grub-mkisofs checks.
19306 2010-07-28 Vladimir Serbinenko <phcoder@gmail.com>
19308 * util/ieee1275/grub-install.in: Don't use empty grub_device.
19309 Reported by: Lennart Sorensen.
19311 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19313 * util/grub.d/00_header.in: Remove compatibility with terminal.mod
19314 prior to terminal_input/terminal_output separation. It's been over 1.5
19315 years and those versions weren't widely deployed.
19317 2010-07-22 Colin Watson <cjwatson@ubuntu.com>
19319 * disk/raid.c (insert_array): Don't count named arrays when looking
19320 for unused array numbers.
19321 Reported and tested by: Michael Guntsche.
19323 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19325 * bus/usb/emu/usb.c (grub_usb_poll_devices): Add a dummy
19326 implementation of this so that grub-emu links again, with a note
19327 that this should support hotplugging in the future.
19329 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19331 * kern/emu/getroot.c (grub_util_get_grub_dev): Use xasprintf.
19333 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19335 * disk/loopback.c (grub_cmd_loopback): Don't leak a grub_file_t
19337 (grub_loopback_close): Remove empty function.
19338 (grub_loopback_dev): Remove close method.
19340 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19342 Disable EFI cursor when the EFI console becomes inactive.
19344 * term/efi/console.c (grub_efi_console_init): New function.
19345 (grub_efi_console_fini): New function.
19346 (grub_console_term_output): Register init and fini methods.
19348 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19350 * tests/util/grub-shell-tester.in: Remove bashism and declare as
19353 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19355 * disk/loopback.c (grub_loopback): Replace filename with file.
19356 (delete_loopback): Handle new semantics.
19357 (grub_cmd_loopback): Likewise.
19358 (grub_loopback_iterate): Likewise.
19359 (grub_loopback_close): Likewise.
19361 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19363 * util/i386/efi/grub-install.in: Revert to platform-specific behaviour
19365 Reported by: Tito Keitel.
19367 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19369 * docs/grub.texi (Naming convention): Document new naming convention.
19371 2010-07-20 Vadim Solomin <vadic052@gmail.com>
19372 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19374 Generate device.map in something closer to the old ordering.
19376 * util/deviceiter.c (struct device): New declaration.
19377 (compare_file_names): Rename to ...
19378 (compare_devices): ... this. Sort by kernel name in preference to
19379 the stable by-id name, but keep the latter as a fallback comparison.
19380 Update header comment.
19381 (grub_util_iterate_devices) [__linux__]: Construct and sort an array
19382 of `struct device' rather than of plain file names.
19384 2010-07-20 Thomas Frauendorfer <Thomas.Frauendorfer@googlemail.com>
19386 * lib/i386/relocator_asm.S [! __x86_64__]: Don't try to disable amd64
19389 2010-07-20 Vladimir Serbinenko <phcoder@gmail.com>
19391 * commands/acpi.c (setup_common_tables): Use sizeof instead of
19393 (setv1table): Likewise.
19395 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19397 * disk/raid.c (insert_array): Use md/%s to name mdadm 1.x devices,
19398 removing the homehost if present.
19399 * kern/emu/getroot.c (get_mdadm_name) [__linux__]: New function.
19400 (grub_util_get_grub_dev): Use md/%s to name mdadm 1.x devices,
19401 removing the homehost if present.
19402 (grub_util_get_grub_dev) [__linux__]: Get the array name from mdadm
19404 * util/i386/pc/grub-setup.c (main): Handle md/* devices.
19406 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Add start_sector
19407 parameter. Set its pointer target to 0.
19408 * disk/mdraid_linux.c (grub_mdraid_detect): Add start_sector
19409 parameter. Set its pointer target to 0 for 0.9 metadata, or to the
19410 `data_offset' value from the superblock for 1.x metadata.
19411 * disk/raid.c (grub_raid_read): Offset reads by the start sector of
19412 data on the device.
19413 (insert_array): Record the start sector of data on the device.
19414 (grub_raid_register): Pass start_sector parameters to
19415 grub_raid_list->detect and insert_array.
19416 * include/grub/raid.h (struct grub_raid_array): Add start_sector
19418 (struct grub_raid): Add start_sector parameter to `detect'.
19420 * disk/mdraid_linux.c (struct grub_raid_super_1x): Remove
19421 __attribute__ ((packed)), leaving a comment.
19422 (grub_mdraid_detect): Split out 0.9 and 1.x detection to ...
19423 (grub_mdraid_detect_09): ... here and ...
19424 (grub_mdraid_detect_1x): ... here.
19426 2010-07-20 Peter Henn <peter.henn@web.de>
19428 * disk/mdraid_linux.c (grub_mdraid_detect): Fix calculation of 1.x
19429 chunk size and disk size, which are already given as sector counts
19430 as distinct from the 0.90 units. Fetch the correct device number
19431 from the role table instead of using the table index.
19433 2010-07-20 Felix Zielcke <fzielcke@z-51.de>
19435 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Set array->name to NULL.
19436 * disk/mdraid_linux.c (grub_raid_super_1x): New structure.
19437 (WriteMostly1): New macro.
19438 Set array->name to NULL for metadata format 0.90. Add support for
19439 metadata 1.x. Fix some comments.
19440 * disk/raid.c (): Add support for name based RAID arrays. Fix a
19442 * util/getroot.c (grub_util_get_grub_dev): Add support for
19443 /dev/md/name style devices.
19445 2010-07-20 Colin Watson <cjwatson@ubuntu.com>
19447 * .bzrignore: Ignore 20_linux_xen.
19449 2010-07-17 Colin Watson <cjwatson@ubuntu.com>
19451 * util/import_unicode.py: Remove unnecessary imports.
19453 2010-07-17 Aleš Nesrsta <starous@volny.cz>
19455 Hotplugging and USB hub support.
19457 * bus/usb/ohci.c (grub_ohci_td): Add convenience fields.
19458 (grub_ohci): Likewise.
19459 (GRUB_OHCI_REG_CONTROL_BULK_ENABLE): New definition.
19460 (GRUB_OHCI_REG_CONTROL_CONTROL_ENABLE): Likewise.
19461 (GRUB_OHCI_RESET_CONNECT_CHANGE): Likewise.
19462 (GRUB_OHCI_CTRL_EDS): Likewise.
19463 (GRUB_OHCI_BULK_EDS): Likewise.
19464 (GRUB_OHCI_TDS): Likewise.
19465 (GRUB_OHCI_ED_ADDR_MASK): Likewise.
19466 (grub_ohci_ed_phys2virt): New function.
19467 (grub_ohci_virt_to_phys): Likewise.
19468 (grub_ohci_td_phys2virt): Likewise.
19469 (grub_ohci_td_virt2phys): Likewise.
19470 (grub_ohci_pci_iter): Allocate memory and don't wait for stable
19472 (grub_ohci_find_ed): New function.
19473 (grub_ohci_alloc_td): Likewise.
19474 (grub_ohci_free_td): Likewise.
19475 (grub_ohci_free_tds): Likewise.
19476 (grub_ohci_transfer): Use previously allocated memory.
19477 (grub_ohci_portstatus): Reset status changed bit.
19478 (grub_ohci_detect_dev): Supply status changed.
19479 (grub_ohci_fini_hw): Free memory.
19480 (grub_ohci_restore_hw): Reallocate memory.
19481 * bus/usb/uhci.c (grub_uhci_portstatus): Don't reset on disable.
19482 Reset status change.
19483 (grub_uhci_detect_dev): Supply status_change.
19484 * bus/usb/usb.c (attach_hooks): New var.
19485 (grub_usb_device_attach): New function.
19486 (grub_usb_register_attach_hook_class): Likewise.
19487 (grub_usb_unregister_attach_hook_class): Likewise.
19488 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Handle errors correctly.
19489 (grub_usb_add_hub): Reset connection changed bit.
19490 (attach_root_port): New function.
19491 (grub_usb_root_hub): Likewise.
19492 (poll_nonroot_hub): Likewise.
19493 (grub_usb_poll_devices): Likewise.
19494 * commands/usbtest.c (grub_cmd_usbtest): Poll devices before listing.
19495 * disk/usbms.c (grub_usbms_open): Use device hooks.
19496 (grub_usbms_iterate) :Poll devices.
19497 (grub_usbms_finddevs): Split into ...
19498 (grub_usbms_attach): ... this ...
19499 (grub_usbms_attach): ... and this.
19500 * include/grub/usb.h (grub_usb_controller_dev): Supply status_changed
19502 (grub_usb_interface): New fields attached and detach_hook.
19503 (grub_usb_attach_hook_class): New type.
19504 (grub_usb_attach_desc): New struct.
19505 (grub_usb_register_attach_hook_class): New function.
19506 (grub_usb_unregister_attach_hook_class): Likewise.
19507 (grub_usb_poll_devices): Likewise.
19508 (grub_usb_device_attach): Likewise.
19509 * include/grub/usbtrans.h (GRUB_USB_HUB_FEATURE_C_CONNECTED): New const.
19510 (GRUB_USB_HUB_STATUS_C_CONNECTED): Likewise.
19512 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19514 * include/grub/bsdlabel.h (GRUB_PC_PARTITION_BSD_LABEL_WHOLE_DISK_PARTITION): New definition.
19515 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Use FreeBSD
19516 delta determination style. Works with most NetBSD partitions too.
19518 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19520 * kern/partition.c [GRUB_UTIL]: Add missing util/misc.h inclusion.
19521 * partmap/bsdlabel.c [GRUB_UTIL]: Likewise.
19523 2010-07-17 Vladimir Serbinenko <phcoder@gmail.com>
19525 * disk/scsi.c (grub_scsi_open): Fix incorrect pointer dereference.
19527 2010-07-14 Anton Blanchard <anton@samba.org>
19529 * loader/powerpc/ieee1275/linux.c (grub_cmd_linux): Do not reject
19532 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19534 * Makefile.in: Use the substituted @USE_NLS@ instead of ENABLE_NLS.
19536 2010-07-14 Grégoire Sutre <gregoire.sutre@gmail.com>
19538 * kern/partition.c (grub_partition_check_containment): New function to
19539 check that a partition is physically contained in a parent. Since
19540 offsets are relative (and non-negative), this reduces to checking that
19541 the partition ends before its parent.
19542 (grub_partition_map_probe): Discard out-of-range sub-partitions.
19543 (grub_partition_iterate): Likewise.
19544 * include/grub/partition.h (grub_partition_map): Slightly more detailed
19546 * partmap/bsdlabel.c (bsdlabel_partition_map_iterate): Discard
19547 partitions that start before their parent, and add debug printfs.
19549 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19551 * Makefile.in (.SUFFIX): Spell correctly, as ...
19552 (.SUFFIXES): ... this. Fixes bug where `make foo' (where foo is a
19553 bare module name without `.mod', e.g. `test') tried to invoke a
19556 2010-07-13 Colin Watson <cjwatson@ubuntu.com>
19558 * README: Point to the Info manual.
19560 2010-07-13 Jiro SEKIBA <jir@unicus.jp>
19562 * fs/nilfs2.c: fix macro NILFS_2ND_SUPER_BLOCK to calculate
19563 2nd superblock position from partition size.
19565 2010-07-10 Colin Watson <cjwatson@ubuntu.com>
19567 * Makefile.in (MAINTAINER_CLEANFILES): Remove
19568 unicode/UnicodeData.txt, unicode/BidiMirroring.txt, and
19569 unicode/ArabicShaping.txt again; these are inputs to autogen.sh, not
19572 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19574 Restructure SCSI .id handling.
19575 Reported and tested by: Aleš Nesrsta.
19577 * disk/ata.c (grub_atapi_close): Removed. All users updated.
19578 (grub_atapi_dev): Changed .name to "ata". New field .id.
19579 * disk/usbms.c (grub_usbms_close): Removed. All users updated.
19580 (grub_usbms_dev): New field .id.
19581 * disk/scsi.c (grub_scsi_iterate): Generate name.
19582 (grub_scsi_open): Parse name.
19583 * include/grub/scsi.h (grub_make_scsi_id): New function.
19584 (grub_scsi_dev): Change iterate and open to number instead of naming
19585 busses. All users updated.
19586 (grub_scsi): Remove name. Add .bus.
19588 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19590 * commands/help.c (grub_cmd_help): Fix a typo.
19592 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19594 * normal/term.c (put_glyphs_terminal): Fix state->num_lines counting.
19595 Reported and tested by: Colin Watson.
19597 2010-07-10 Vladimir Serbinenko <phcoder@gmail.com>
19599 * util/grub-mkrescue.in: Don't use tar GNU-ism since it's not necessary
19602 2010-07-07 Vladimir Serbinenko <phcoder@gmail.com>
19604 * tests/util/grub-shell.in: Remove bashisms and declare as sh script.
19606 2010-07-07 Colin Watson <cjwatson@ubuntu.com>
19608 * term/gfxterm.c (grub_gfxterm_background_image_cmd): Fix
19611 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19613 * conf/common.rmk (grub_probe_SOURCES): Add disk/raid5_recover.c
19614 and disk/raid6_recover.c.
19615 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
19616 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
19618 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19620 * term/gfxterm.c (repaint_schedulded): Rename to ...
19621 (repaint_scheduled): ... this. Update all callers.
19622 (repaint_was_schedulded): Rename to ...
19623 (repaint_was_scheduled): ... this. Update all callers.
19625 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19627 * util/deviceiter.c (grub_util_iterate_devices): Skip MD devices,
19628 which we expect to be handled by upper layers.
19630 2010-07-06 BVK Chaitanya <bvk.groups@gmail.com>
19632 * bus/usb/usbhub.c: #include time.h header.
19634 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19636 * fs/reiserfs.c (grub_reiserfs_iterate_dir): Zero out first byte of
19637 entry_name also for entries without stat blocks (e.g. ".."); fixes
19638 corruption of the first entry in a directory.
19640 2010-07-06 Colin Watson <cjwatson@ubuntu.com>
19642 * util/grub.d/00_header.in: Process GRUB_THEME and GRUB_BACKGROUND
19643 after setting gfxterm as the active terminal. GRUB_BACKGROUND
19644 doesn't work otherwise.
19646 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19648 * docs/grub.texi (Features): Update list of supported file systems.
19649 (GNU/Linux): Update for GRUB 2.
19650 (Serial terminal): Remove mention of --disable-serial, which was a
19651 GRUB Legacy configure option. Update instructions to use
19652 `terminal_input' and `terminal_output' rather than `terminal'.
19653 (Vendor power-on keys): Copy-edit. Add cross-references to `Simple
19654 configuration' and `Installing GRUB using grub-install'.
19655 (Menu entry editor): Update for GRUB 2.
19656 (terminfo): Add vt100-color, ieee1275, and dumb terminal types.
19657 Document new -a, -u, and -v options.
19658 (initrd): New section.
19659 (initrd16): New section.
19660 (linux): New section.
19661 (linux16): New section.
19662 (search): The `var' argument to `--set' is optional.
19663 (GRUB only offers a rescue shell): Go into a little more detail on
19666 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19668 * Makefile.in: Set LINGUAS to empty if ENABLE_NLS is undefined.
19670 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19672 * Makefile.in (MAINTAINER_CLEANFILES): Add unicode/UnicodeData.txt,
19673 unicode/BidiMirroring.txt, unicode/ArabicShaping.txt, and unidata.c.
19675 2010-07-05 Colin Watson <cjwatson@ubuntu.com>
19677 * util/i386/pc/grub-setup.c (setup): Rename prefix to
19678 install_prefix, in line with install_dos_part and install_bsd_part.
19679 Add new prefix variable, which is copied to install_prefix after
19680 comparing core.img in memory with the one read from disk in the
19681 no-embedding case, and use that rather than overwriting
19682 install_prefix immediately when installing to a partition.
19683 Fixes Debian bug #586621; based on patches by Matt Kraai and M. Vefa
19686 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19688 * configure.ac: Avoid == in test command, it's not portable.
19689 * util/grub.d/30_os-prober.in: Likewise.
19691 2010-07-04 Colin Watson <cjwatson@ubuntu.com>
19693 * kern/emu/getroot.c [__GNU__]: Include <sys/mman.h> for munmap.
19695 2010-07-04 Grégoire Sutre <gregoire.sutre@gmail.com>
19697 * util/i386/pc/grub-setup.c (setup): Do not embed when there are
19698 multiple (top-level) partmaps.
19700 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19702 * util/i386/efi/grub-install.in: Don't use empty grub_device.
19703 Reported by: Tino Keitel.
19705 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
19707 Bidi and diacritics support.
19709 * Makefile.in (widthspec.bin): New target.
19710 (widthspec.h): Likewise.
19711 (TARGET_CFLAGS): Add -DHAVE_UNIFONT_WIDTHSPEC=1 if font was available.
19712 * autogen.sh: Generate unidata.c.
19713 * commands/cat.c (grub_cmd_cat): Don't use grub_putchar.
19714 * commands/ls.c (grub_ls_list_devices): Likewise.
19715 (grub_ls_list_files): Likewise.
19716 * commands/minicmd.c (grub_mini_cmd_cat): Likewise.
19717 (grub_mini_cmd_lsmod): Likewise.
19718 * commands/read.c: Likewise.
19719 * kern/corecmd.c (grub_core_cmd_ls): Likewise.
19720 * kern/rescue_reader.c (grub_rescue_read_line): Likewise.
19721 * lib/arg.c (grub_arg_show_help): Likewise.
19722 * lib/crypto.c (grub_password_get): Likewise.
19723 * normal/auth.c (grub_username_get): Likewise.
19724 * normal/misc.c (grub_normal_print_device_info): Likewise.
19725 * commands/help.c (grub_cmd_help): Use grub_unicode_aglomerate_comb.
19726 * conf/common.rmk (grub_mkfont_SOURCES): Add unidata.c.
19727 (gfxmenu_mod_SOURCES): Add gfxmenu/font.c.
19728 (normal/charset.c_DEPENDENCIES): New variable.
19729 (normal_mod_SOURCES): Add normal/charset.c and unidata.c.
19730 (pkglib_MODULES): Remove charset.mod.
19731 (charset_mod_SOURCES): Removed.
19732 (charset_mod_CFLAGS): Likewise.
19733 (charset_mod_LDFLAGS): Likewise.
19734 (pkglib_MODULES) [ieee1275]: Remove terminfo.mod.
19735 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Add term/terminfo.c
19737 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19738 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
19739 (kernel_img_HEADERS): Add terminfo.h.
19740 * font/font.c (ascii_glyph_lookup): Return NULL on failure.
19741 Fill ->font. Reverse ascii bitmaps.
19742 (grub_font_get_xheight): New function.
19743 * font/font.c (grub_font_get_string_width): Moved from here ...
19744 * gfxmenu/font.c (grub_font_get_string_width): ... here.
19745 * font/font.c (grub_font_draw_string): Moved from here ...
19746 * gfxmenu/font.c (grub_font_draw_string): ... here.
19747 * font/font.c (grub_font_dup_glyph): New function.
19748 (grub_font_blit_glyph): Likewise.
19749 (grub_font_blit_glyph_mirror): Likewise.
19750 (blit_comb): Likewise.
19751 (grub_font_construct_dry_run): Likewise.
19752 (grub_font_get_constructed_device_width): Likewise.
19753 (grub_font_construct_glyph): Likewise.
19754 * include/grub/charset.h (grub_ucs4_to_utf8): New proto.
19755 * include/grub/misc.h (grub_utf8_to_ucs4): Moved from here ...
19756 * include/grub/charset.h (grub_utf8_to_ucs4): ... here.
19757 * include/grub/font.h (GRUB_FONT_CODE_CHAR_MASK): New constant.
19758 (GRUB_FONT_CODE_RIGHT_JOINED): Likewise.
19759 (GRUB_FONT_CODE_LEFT_JOINED): Likewise.
19760 (grub_font_get_xheight): New proto.
19761 (grub_font_get_constructed_device_width): Likewise.
19762 (grub_font_construct_glyph): Likewise.
19763 * include/grub/font.h (grub_font_get_string_width): Moved from here ...
19764 * include/grub/gfxmenu_view.h (grub_font_get_string_width): ... here.
19765 * include/grub/font.h (grub_font_draw_string): Moved from here ...
19766 * include/grub/gfxmenu_view.h (grub_font_draw_string): ... here.
19767 * include/grub/i386/vga_common.h (grub_console_putchar): Moved from here..
19768 * include/grub/i386/pc/console.h (grub_console_putchar): ... here.
19769 * include/grub/i386/vga_common.h (grub_console_real_putchar): Removed.
19770 (grub_console_getcharwidth): Likewise.
19771 * include/grub/misc.h (grub_xputs): New proto.
19772 (grub_puts): Inlined.
19773 * include/grub/normal.h (grub_print_ucs4): Add margin specification.
19774 (grub_normal_get_line_counter): Removed.
19775 (grub_install_newline_hook): Likewise.
19776 (grub_normal_get_char_counter): New proto.
19777 (grub_normal_reset_more): Likewise.
19778 (grub_xputs_normal): Likewise.
19779 * include/grub/powerpc/ieee1275/console.h: Removed.
19780 * include/grub/sparc64/ieee1275/console.h: Likewise.
19781 * include/grub/term.h (GRUB_TERM_CODE_TYPE_MASK): New definition.
19782 (GRUB_TERM_CODE_TYPE_ASCII): Likewise.
19783 (GRUB_TERM_CODE_TYPE_CP437): Likewise.
19784 (GRUB_TERM_CODE_TYPE_UTF8_LOGICAL): Likewise.
19785 (GRUB_TERM_CODE_TYPE_UTF8_VISUAL): Likewise.
19786 (GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS): Likewise.
19787 (grub_term_input): Pass reference to self. All users updated.
19788 (grub_term_output): Pass grub_unicode_glyph to putchar and getcharwidth.
19789 Pass reference to self. New fields normal_color, highlight_color and
19790 data. All users updated.
19791 (grub_putchar): Removed.
19792 (grub_putcode): Remove EXPORT_FUNC since it's not in kernel anymore.
19793 (grub_unicode_estimate_width): New function.
19794 (grub_term_getcharwidth): Add defaults.
19795 (GRUB_TERM_DEFAULT_NORMAL_COLOR): New definition.
19796 (GRUB_TERM_DEFAULT_HIGHLIGHT_COLOR): Likewise.
19797 (GRUB_TERM_DEFAULT_STANDARD_COLOR): Likewise.
19798 (grub_cls): Remove EXPORT_FUNC.
19799 (grub_setcolorstate): Inline.
19800 (grub_newline_hook): Removed.
19801 * include/grub/terminfo.h: Rewritten. All users updated.
19802 * include/grub/unicode.h: New file.
19803 * include/grub/video.h (grub_video_signed_rect): New type.
19804 * kern/emu/console.c (grub_console_highlight_color): Removed.
19805 (grub_console_normal_color): Likewise.
19806 (grub_console_standard_color): Made static.
19807 (grub_ncurses_putchar): Remove mapping.
19808 (grub_ncurses_getcharwidth): Removed.
19809 (grub_ncurses_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19810 (grub_ncurses_setcolor): Removed.
19811 (grub_ncurses_getcolor): Likewise.
19812 * kern/i386/pc/startup.S (grub_console_real_putchar): Renamed to ...
19813 (grub_console_putchar): ... this.
19814 (grub_console_putchar): Handle argument difference.
19815 * kern/ieee1275/init.c (grub_machine_init): Split console_init into
19816 console_init_early and console_init_lately.
19817 * kern/sparc64/ieee1275/init.c (grub_machine_init): Likewise.
19818 * kern/misc.c (grub_puts): Removed.
19819 (grub_vprintf): Store UTF-8 string instead of outputting it directly.
19820 (grub_vsnprintf_real): Remove str = NULL support.
19821 * kern/misc.c (grub_utf8_to_ucs4): Move from here ...
19822 * normal/charset.c (grub_utf8_to_ucs4): ... here.
19823 * kern/term.c (grub_putcode): Renamed to ...
19824 (grub_putcode_dumb): ... this. Pass grub_unicode_glyph instead of code.
19825 (grub_putchar): Removed.
19826 (grub_xputs_dumb): New function.
19827 (grub_xputs): New variable.
19828 * lib/charset.c: Move from here ...
19829 * normal/charset.c: ... to here.
19830 (grub_ucs4_to_utf8): New function.
19831 (grub_ucs4_to_utf8_alloc): Use grub_ucs4_to_utf8.
19832 (join_types): New variable.
19833 (unpack_join): New function.
19834 (bidi_types): New variable.
19835 (unpack_bidi): New function.
19836 (get_bidi_type): Likewise.
19837 (get_join_type): Likewise.
19838 (is_mirrored): Likewise.
19839 (grub_unicode_get_comb_type): Likewise.
19840 (grub_unicode_estimate_width) [HAVE_UNIFONT_WIDTHSPEC]: Likewise.
19841 (is_type_after): Likewise.
19842 (grub_unicode_aglomerate_comb): Likewise.
19843 (bidi_line_wrap): Likewise.
19844 (grub_bidi_line_logical_to_visual): Likewise.
19845 (grub_bidi_logical_to_visual): Likewise.
19846 (grub_unicode_mirror_code): Likewise.
19847 (grub_unicode_shape_code): Likewise.
19848 * normal/cmdline.c (grub_cmdline_get): Reset more counter.
19849 Don't use grub_putchar.
19850 * normal/main.c (grub_normal_init_page): Use grub_putcode.
19851 (grub_normal_reader_init): Likewise.
19852 (grub_xputs_saved): New variable.
19853 (GRUB_MOD_INIT): Set grub_xputs.
19854 (GRUB_MOD_FINI): Restore grub_xputs.
19855 * normal/menu.c (grub_wait_after_message): Don't use grub_putchar.
19856 (menu_init): Avoid printing gfxmenu error.
19857 (show_menu): Use grub_normal_get_char_counter.
19858 * normal/menu_entry.c (update_screen): Fix out-of-array.
19859 (complete): Avoid NULL dereferencing.
19860 * grub_menu_entry_run (grub_menu_entry_run): Don't use putchar.
19861 * normal/menu_text.c (print_spaces): Removed.
19862 (grub_print_ucs4): Likewise.
19863 (grub_print_message_indented): Use grub_print_ucs4.
19864 (print_message): Use grub_putcode.
19865 (print_entry): Hanlde diacritics.
19866 * normal/term.c (term_state): New type.
19867 (grub_more_lines): Removed.
19868 (term_states): New variable.
19869 (grub_normal_line_counter): Renamed to ..
19870 (grub_normal_char_counter): ...this. All users updated.
19871 (grub_normal_get_line_counter): Renamed to ...
19872 (grub_normal_get_char_counter): ... this.
19873 (grub_normal_reset_more): New function.
19874 (process_newline): Removed.
19875 (print_more): New function.
19876 (grub_install_newline_hook): Removed.
19877 (map_code): New function.
19878 (grub_puts_terminal): Use grub_print_ucs4.
19879 (putglyph): New function.
19880 (putcode_real): Likewise.
19881 (grub_putcode): Use putcode_real.
19882 (get_maxwidth): New function.
19883 (get_startwidth): Likewise.
19884 (print_ucs4_terminal): Likewise.
19885 (find_term_state): Likewise.
19886 (put_glyphs_terminal): Likewise.
19887 (print_backlog): Likewise.
19888 (print_ucs4_real): Likewise.
19889 (grub_print_ucs4): Likewise.
19890 (grub_xputs_normal): Likewise.
19891 * term/efi/console.c (grub_console_putchar): Output diacritics.
19892 (grub_console_getcharwidth): Removed.
19893 (grub_console_term_output): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19894 * term/gfxterm.c (clear_char): Free chars.
19895 (scroll_up): Avoid leaking memory.
19896 (grub_gfxterm_putchar): Support diacritics.
19897 (grub_video_term): Declare as GRUB_TERM_CODE_TYPE_UCS4_VISUAL.
19898 * term/i386/pc/console.c (grub_console_term_output): Declare as
19899 GRUB_TERM_CODE_TYPE_VGA.
19900 * term/i386/pc/vga.c (grub_vga_term): Declare as
19901 GRUB_TERM_CODE_TYPE_VISUAL_GLYPHS.
19902 * term/i386/pc/vga_text.c (grub_vga_text_term): Declare as
19903 GRUB_TERM_CODE_TYPE_VGA.
19904 * term/i386/vga_common.c (map_char): Removed.
19905 (grub_console_putchar): Likewise.
19906 (grub_console_getcharwidth): Likewise.
19907 * term/ieee1275/ofconsole.c: Simplify using terminfo.
19908 (colors): Reordered to match terminfo.
19909 (grub_ofconsole_normal_color): Removed.
19910 (grub_ofconsole_writeesc): Likewise.
19911 (grub_ofconsole_highlight_color): Likewise.
19912 (grub_ofconsole_getcharwidth): Likewise.
19913 (grub_ofconsole_setcolorstate): Likewise.
19914 (grub_ofconsole_setcolor): Likewise.
19915 (grub_ofconsole_getcolor): Likewise.
19916 (grub_ofconsole_readkey): Renamed to ...
19917 (readkey): ... this. Remove escape sequence handling. Return -1 on no
19919 (grub_ofconsole_checkkey): Removed.
19920 (grub_ofconsole_getkey): Likewise.
19921 (grub_ofconsole_getxy): Likewise.
19922 (grub_ofconsole_gotoxy): Likewise.
19923 (grub_ofconsole_cls): Likewise.
19924 (grub_ofconsole_refresh): Likewise.
19925 (grub_ofconsole_terminfo_input): New struct.
19926 (grub_ofconsole_terminfo_output): Likewise.
19927 (grub_ofconsole_term_input): Use terminfo.
19928 (grub_ofconsole_term_output): Likewise.
19929 (grub_console_init): Split into ...
19930 (grub_console_init_early): ...this and ...
19931 (grub_console_init_lately): ...this. Use terminfo.
19932 (grub_ofconsole_putchar): Renamed to ...
19933 (put): ... this. Remove mapping.
19934 (grub_ofconsole_term_output): Declare as GRUB_TERM_CODE_TYPE_ASCII.
19935 * term/serial.c: Simplify using terminfo.
19938 (keep_track): Likewise.
19939 (registered): Likewise.
19940 (input_buf): Likewise.
19941 (npending): Likewise.
19942 (serial_translate_key_sequence): Likewise.
19943 (fill_input_buf): Likewise.
19944 (grub_serial_checkkey): Likewise.
19945 (grub_serial_getkey): Likewise.
19946 (grub_serial_getxy): Likewise.
19947 (grub_serial_gotoxy): Likewise.
19948 (grub_serial_putchar): Likewise.
19949 (grub_serial_cls): Likewise.
19950 (grub_serial_setcolorstate): Likewise.
19951 (grub_serial_setcursor): Likewise.
19952 (serial_hw_init): Use serial_hw_fetch.
19953 (grub_serial_terminfo_input): New variable.
19954 (grub_serial_terminfo_output): Likewise.
19955 (grub_serial_term_input): Use terminfo.
19956 (grub_serial_term_output): Likewise.
19957 * term/terminfo.c (putstr): Use put.
19958 (grub_terminfo_all_free): New function
19959 (grub_terminfo_set_current): New types vt100-color, ieee1275 and dumb.
19960 (grub_terminfo_output_register): New function.
19961 (grub_terminfo_output_unregister): Likewise.
19962 (grub_terminfo_getxy): Likewise.
19963 (grub_terminfo_readkey): Likewise.
19964 (grub_terminfo_checkkey): Likewise.
19965 (grub_terminfo_getkey): Likewise.
19966 (grub_terminfo_input_init): Likewise.
19967 (print_terminfo): Likewise.
19968 (grub_cmd_terminfo): Handle encoding.
19969 (grub_terminfo_gotoxy): Track position.
19970 (grub_terminfo_cls): Likewise.
19971 (grub_terminfo_putchar): Likewise.
19972 (grub_terminfo_setcolorstate): Handle colors
19973 (grub_terminfo_cursor_on): This ...
19974 (grub_terminfo_cursor_off): ... and this merged into ...
19975 (grub_terminfo_setcursor): ... this.
19976 * term/tparm.c (grub_terminfo_tparm): Avoid NULL dereferencing.
19977 * unicode/ArabicShaping.txt: New file (imported from Unicode).
19978 * unicode/BidiMirroring.txt: Likewise.
19979 * unicode/UnicodeData.txt: Likewise.
19980 * unicode/COPYING: Likewise.
19981 * util/grub-editenv.c (grub_putchar): Removed.
19982 (grub_xputs_real): New function.
19983 (grub_xputs): New variable.
19984 * util/grub-fstest.c (grub_putchar): Removed.
19985 (grub_xputs_real): New function.
19986 (grub_xputs): New variable.
19987 * util/grub-mkdevicemap.c (grub_putchar): Removed.
19988 (grub_xputs_real): New function.
19989 (grub_xputs): New variable.
19990 * util/grub-probe.c (grub_putchar): Removed.
19991 (grub_xputs_real): New function.
19992 (grub_xputs): New variable.
19993 * util/grub-script-check.c (grub_putchar): Removed.
19994 (grub_xputs_real): New function.
19995 (grub_xputs): New variable.
19996 * util/i386/pc/grub-setup.c (grub_putchar): Removed.
19997 (grub_xputs_real): New function.
19998 (grub_xputs): New variable.
19999 * util/import_unicode.py: New file.
20000 * util/grub-mkfont.c (ft_errmsgs): New array.
20001 (grub_glyph_info): Make bitmap a pointer.
20002 (file_formats): New type WIDTH_SPEC.
20003 (grub_font_info): New members glyphs_unsorted, glyphs_sorted, num_glyphs.
20004 (options): Add width-spec.
20006 (add_char): Renamed to ...
20007 (add_glyph): ... this.
20008 (add_glyph): Use index. Show freetype errors. Cut blank space at borders.
20009 (glyph_replace): New type.
20010 (subst_rightjoin), (subst_leftjoin), (subst_medijoin): New variables.
20011 (add_char): New function.
20012 (add_subst): Likewise.
20013 (process_cursive): Likewise.
20014 (add_font): Handle GSUB.
20015 (write_font_width_spec): New function.
20016 (main): Sort glyphs.
20017 * commands/minicmd.c (grub_mini_cmd_clear): Moved from here ...
20018 * normal/main.c (grub_mini_cmd_clear): ..here. All users updated.
20019 * kern/term.c (grub_cls): Moved from here...
20020 * normal/term.c (grub_cls): ... here.
20022 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20024 * include/grub/types.h: Define the C99-style PRIxGRUB_SIZE macro,
20025 suitable for using within the format argument of printf when
20026 converting grub_size_t.
20027 * disk/usbms.c (grub_usbms_transfer): Use PRIxGRUB_SIZE rather than
20028 "x" to convert grub_size_t arguments.
20030 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20032 * gfxmenu/gui_list.c (draw_menu): Use viewport to simplify code and fix
20034 (list_get_minimal_size): Take selection box into account.
20036 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20038 * font/font.c (grub_font_get_glyph_with_fallback): Avoid dereferencing
20041 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20043 * util/deviceiter.c (grub_util_iterate_devices): Skip device-mapper
20044 devices when iterating over /dev/disk/by-id; they will be handled
20045 later if appropriate, which they aren't always (e.g. LVM).
20047 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20049 * include/grub/misc.h (grub_reboot): Declare as noreturn.
20050 * kern/efi/efi.c (grub_reboot): Don't return, even if reset_system
20052 (grub_halt): Likewise.
20053 * kern/ieee1275/openfw.c (grub_reboot): Don't return, even if
20055 (grub_halt): Don't return, even if all of shut-down, power-off, and
20058 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20060 * kern/efi/init.c (grub_efi_init): set_watchdog_timer takes four
20061 arguments, not three.
20063 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20065 * util/grub-mkconfig_lib.in (uses_abstraction): New function.
20066 * util/grub.d/10_linux.in: Use it to check for LVM, so that
20067 LVM-on-RAID is handled correctly.
20069 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20071 * docs/grub.texi (Changes from GRUB Legacy): New section.
20072 (Future): Fix typo.
20074 2010-07-02 Colin Watson <cjwatson@ubuntu.com>
20076 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Sometimes
20077 grub.d/README accidentally ends up executable for one reason or
20078 another. Ignore it.
20080 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20082 * partmap/gpt.c (MAX_SECTOR_LOG): New definition.
20083 (gpt_partition_map_iterate): Support non-512B sectors.
20085 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20087 * kern/efi/init.c (grub_efi_init): Disable watchdog.
20088 Tested by: Seth Goldberg.
20090 2010-07-02 Vladimir Serbinenko <phcoder@gmail.com>
20092 * loader/multiboot.c (grub_multiboot_boot) [GRUB_USE_MULTIBOOT2]:
20093 Properly align mbi.
20094 Reported by: Seth Goldberg.
20096 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20098 * util/grub-mkrescue.in: Avoid module duplication.
20100 2010-07-01 Sean Finney <seanius@seanius.net>
20102 * util/grub.d/10_linux.in: Don't use UUID for LVM root.
20104 2010-07-01 Sean Finney <seanius@seanius.net>
20106 * disk/lvm.c (grub_lvm_scan_device): Skip snapshots.
20108 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20110 * disk/lvm.c (grub_lvm_checkvalue): New function.
20111 (grub_lvm_check_flag): Likewise.
20113 2010-07-01 Robert Millan <rmh@gnu.org>
20115 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk):
20116 Support 'p' as partition separator on kernel of FreeBSD (used
20118 (grub_util_biosdisk_get_grub_dev): Likewise.
20120 2010-07-01 Vladimir Serbinenko <phcoder@gmail.com>
20122 Yeeloong firmware port.
20124 * boot/mips/yeeloong/fwstart.S: New file.
20125 * bus/cs5536.c (gpiodump): New const.
20126 (set_io_space): New function.
20127 (set_iod): Likewise.
20128 (set_p2d): Likewise.
20129 (grub_cs5536_init_geode): Likewise.
20130 * commands/mips/yeeloong/lsspd.c: New file.
20131 * conf/mips-qemu-mips.rmk (pkglib_MODULES): Add serial.mod.
20132 (serial_mod_SOURCES): New variable.
20133 (serial_mod_CFLAGS): Likewise.
20134 (serial_mod_LDFLAGS): Likewise.
20135 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Add term/serial.c,
20136 term/terminfo.c and term/tparm.c.
20137 (pkglib_IMAGES): Add fwstart.img.
20138 (fwstart_img_SOURCES): New variable.
20139 (fwstart_img_CFLAGS): Likewise.
20140 (fwstart_img_ASFLAGS): Likewise.
20141 (fwstart_img_LDFLAGS): Likewise.
20142 (fwstart_img_FORMAT): Likewise.
20143 (pkglib_MODULES): Add lsspd.mod.
20144 (lsspd_mod_SOURCES): New variable.
20145 (lsspd_mod_CFLAGS): Likewise.
20146 (lsspd_mod_LDFLAGS): Likewise.
20147 (pkglib_MODULES): Add halt.mod.
20148 (halt_mod_SOURCES): New variable.
20149 (halt_mod_CFLAGS): Likewise.
20150 (halt_mod_LDFLAGS): Likewise.
20151 * conf/mips.rmk (pkglib_MODULES): Remove serial.mod.
20152 (serial_mod_SOURCES): Removed.
20153 (serial_mod_CFLAGS): Likewise.
20154 (serial_mod_LDFLAGS): Likewise.
20155 * disk/ata.c (check_device): New function.
20156 (grub_ata_device_initialize): Use check_device.
20157 (grub_ata_iterate): Recheck devices.
20158 (grub_ata_open): Likewise.
20159 (grub_atapi_iterate): Likewise.
20160 (grub_atapi_open): Likewise.
20161 * include/grub/ata.h (GRUB_ATA_CH0_PORT1): New macro.
20162 (GRUB_ATA_CH1_PORT1): Likewise.
20163 (GRUB_ATA_CH0_PORT2): Likewise.
20164 (GRUB_ATA_CH1_PORT2): Likewise.
20165 * include/grub/mips/loongson.h: New file.
20166 * include/grub/mips/yeeloong/ec.h: Likewise.
20167 * include/grub/mips/yeeloong/serial.h (GRUB_MACHINE_SERIAL_PORT): New definition.
20168 (GRUB_MACHINE_SERIAL_DIVISOR_115200): Likewise.
20169 (GRUB_MACHINE_SERIAL_PORTS) [ASM_FILE]: Remove.
20170 * include/grub/misc.h (grub_halt): Declare as noreturn.
20171 * include/grub/serial.h (UART_ENABLE_FIFO): Renamed to ...
20172 (UART_ENABLE_FIFO_TRIGGER14): ... this. All users updated.
20173 (UART_ENABLE_FIFO_TRIGGER1): New definition.
20174 (UART_ENABLE_DTRRTS): Likewise.
20175 (UART_ENABLE_MODEM): Removed.
20176 (UART_ENABLE_OUT2): New const.
20177 * include/grub/term.h (grub_term_register_input_active): New function.
20178 (grub_term_register_output_active): Likewise.
20179 * kern/mips/startup.S [GRUB_MACHINE_MIPS_YEELOONG]: Handle 0xffffffff
20181 * kern/mips/yeeloong/init.c (grub_get_rtc): Macroify.
20182 (init_pci): New function.
20183 (grub_machine_init): Execute platform init when firmware. Init serial.
20184 (grub_halt): Implement.
20185 (grub_exit): Likewise.
20186 (grub_reboot): Likewise.
20187 * term/serial.c (serial_hw_init): Update macros.
20188 [GRUB_MACHINE_MIPS_YEELOONG]: Init on startup.
20189 * util/grub-mkimage.c (image_target_desc): New id IMAGE_YEELOONG_FLASH.
20190 (image_targets): New target mipsel-yeeloong-flash.
20191 (generate_image): Support IMAGE_YEELOONG_FLASH.
20192 * video/sm712.c (GRUB_SM712_TOTAL_MEMORY_SPACE): New definition.
20193 (grub_video_sm712_setup): Init card.
20194 (grub_video_sm712_set_palette): Removed.
20195 * video/sm712_init.c: New file.
20197 2010-06-30 Colin Watson <cjwatson@ubuntu.com>
20199 * Makefile.in (install-local): Temporarily prepend $(builddir) to
20200 PATH when running help2man and then run it on the unadorned
20201 executable names, rather than passing $(builddir)/* paths to
20202 help2man. This avoids the build directory ending up in generated
20205 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20207 * util/grub-mkconfig.in: Use 'set -e' rather than '#! /bin/sh -e',
20208 to avoid accidents when debugging with 'sh -x'.
20209 * util/grub-mkrescue.in: Likewise.
20210 * util/grub.d/00_header.in: Likewise.
20211 * util/grub.d/10_hurd.in: Likewise.
20212 * util/grub.d/10_kfreebsd.in: Likewise.
20213 * util/grub.d/10_linux.in: Likewise.
20214 * util/grub.d/10_netbsd.in: Likewise.
20215 * util/grub.d/10_windows.in: Likewise.
20216 * util/grub.d/20_linux_xen.in: Likewise.
20217 * util/grub.d/30_os-prober.in: Likewise.
20218 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20220 2010-06-29 Colin Watson <cjwatson@ubuntu.com>
20222 * commands/cat.c (grub_cmd_cat): Fix buffer overrun if '\r' is the
20223 last character in the buffer.
20224 Reported by: Vladimir Serbinenko.
20226 2010-06-29 Robert Millan <rmh@gnu.org>
20228 * docs/grub.texi (Simple configuration): Document ${GRUB_BADRAM}.
20229 (Command-line and menu entry commands): Document `badram' command.
20231 2010-06-28 Robert Millan <rmh@gnu.org>
20233 * util/grub-mkconfig.in: Export `GRUB_BADRAM' variable.
20234 * util/grub.d/00_header.in: When `GRUB_BADRAM' is set, issue badram
20235 command using ${GRUB_BADRAM} as parameter.
20237 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20239 * docs/grub.texi (Device map): New section.
20240 (Themes): New section (stub).
20241 * Makefile.in (docs/grub.info): The info documentation now builds
20242 without errors. Make sure it stays that way.
20244 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20246 Use normal parser for menu entries.
20247 Reported by: Thomas Frauendorfer
20249 * include/grub/parser.h (grub_parser_execute): Don't export.
20250 * normal/menu.c (grub_menu_execute_entry_real): New function.
20251 (grub_menu_execute_entry): Use grub_menu_execute_entry_real.
20253 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20255 * docs/grub.texi (Embedded configuration): New section (replacing
20256 old "Preset Menu" stub).
20257 (Images): New section.
20258 (configfile): Note that any menu entries defined in `file' are shown
20261 2010-06-28 Josh Triplett <josh@joshtriplett.org>
20263 * mmap/i386/pc/mmap_helper.S: Set CF on return.
20265 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20267 * util/grub-install.in: Add --debug-image= option.
20269 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20271 Change grub-mkdevicemap to emit /dev/disk/by-id/ names where
20274 * util/deviceiter.c (check_device): Rename to ...
20275 (check_device_readable_unique): ... this. Update all callers.
20276 Maintain and check a list of which devices (by canonicalized name)
20277 have already been seen.
20278 (clear_seen_devices): New function.
20279 (compare_file_names) [__linux__]: New function.
20280 (grub_util_iterate_devices): Clear the list of seen devices on exit
20281 and (just in case) on entry.
20282 (grub_util_iterate_devices) [__linux__]: Iterate over non-partition
20283 devices in /dev/disk/by-id/, in sorted order. Remove DM-RAID
20284 seen-devices list, superseded by general code in check_device.
20286 2010-06-28 Colin Watson <cjwatson@ubuntu.com>
20288 * commands/cat.c (options): New variable.
20289 (grub_cmd_cat): Parse options. If the --dos option is given, print
20290 DOS-style "\r\n" line endings as simple newlines (Debian bug
20292 (GRUB_MOD_INIT): Use extcmd.
20293 (GRUB_MOD_FINI): Likewise.
20294 * docs/grub.texi (cat): Document --dos.
20296 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20298 XEN with Linux grub-mkconfig support.
20300 * conf/common.rmk (grub-mkconfig_SCRIPTS) [linux]: Add 20_linux_xen.
20301 * util/grub-mkconfig.in: Export GRUB_CMDLINE_XEN and
20302 GRUB_CMDLINE_XEN_DEFAULT.
20303 * util/grub.d/20_linux_xen.in: New file.
20305 2010-06-28 Vladimir Serbinenko <phcoder@gmail.com>
20307 Initialise VGA video on qemu ourselves.
20309 * boot/i386/qemu/boot.S: Don't call 0xc000.
20310 * conf/i386-qemu.rmk (kern/i386/qemu/init.c_DEPENDENCIES): New variable.
20311 (kernel_img_SOURCES): Add kern/i386/qemu/init.c and bus/pci.c.
20312 (kernel_img_HEADERS): Add pci.h.
20313 * conf/i386.rmk (pkglib_MODULES) [qemu]: Remove pci.mod.
20314 * configure.ac: Force unifont on qemu and yeeloong.
20315 * include/grub/i386/qemu/kernel.h (grub_qemu_init_cirrus): New proto.
20316 (grub_vga_palette_write): Use correct register.
20317 * kern/i386/coreboot/init.c (grub_machine_init) [GRUB_MACHINE_QEMU]:
20318 Call grub_qemu_init_cirrus.
20319 * kern/i386/qemu/init.c: New file.
20320 * term/i386/pc/vga_text.c (inc_y): Never read outside the screen.
20322 * commands/videotest.c (grub_cmd_videotest): Handle double buffering.
20324 2010-06-26 Pavel Roskin <proski@gnu.org>
20326 * util/grub.d/10_linux.in: Add support for initrd images on Fedora
20329 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20331 * docs/grub.texi (Simple configuration): Explain that
20332 GRUB_DISABLE_LINUX_RECOVERY and GRUB_DISABLE_NETBSD_RECOVERY must be
20333 set to `true' to disable their respective recovery entries, not
20336 2010-06-26 Colin Watson <cjwatson@ubuntu.com>
20338 Make the `source' command slightly faster.
20340 * normal/main.c (grub_normal_execute): Don't re-read list files when
20343 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20345 * loader/i386/multiboot_mbi.c (retrieve_video_parameters): Set red
20346 field position and mask size to red fields from mode_info, not
20348 * loader/multiboot_mbi2.c (retrieve_video_parameters): Likewise.
20349 Remove redundant tag->common.framebuffer_type assignment.
20350 Reported by: Seth Goldberg.
20352 2010-06-23 Colin Watson <cjwatson@ubuntu.com>
20354 Sync up other versions of the Linux loader with Robert Millan's
20355 change of 2010-01-09, "Make loader output a bit more user-friendly".
20357 * loader/i386/efi/linux.c (grub_linux_boot): Move debug info to
20359 (grub_cmd_linux): Likewise.
20360 (grub_cmd_initrd): Likewise.
20361 * loader/i386/ieee1275/linux.c (grub_cmd_linux): Likewise.
20362 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
20364 2010-06-21 Colin Watson <cjwatson@ubuntu.com>
20366 * kern/efi/mm.c (grub_efi_mm_init): Handle systems with memory maps
20367 larger than MEMORY_MAP_SIZE.
20369 2010-06-21 BVK Chaitanya <bvk.groups@gmail.com>
20371 Fix parallel build.
20373 * conf/common.rmk: Add grub_script.tab.h as a grub-script-check
20375 * script/parser.y: #include grub_script.tab.h header.
20377 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20379 Support >3GiB and <16MiB RAM in i386-qemu.
20381 * kern/i386/qemu/mmap.c (QEMU_CMOS_MEMSIZE2_HIGH): New const.
20382 (QEMU_CMOS_MEMSIZE2_LOW): Likewise.
20383 (grub_lower_mem): Removed.
20384 (grub_upper_mem): Likewise.
20385 (mem_size): Made static.
20386 (above_4g): New variable.
20387 (grub_machine_mmap_init): Detect small mem_size and above_4g.
20388 (grub_machine_mmap_iterate): Order in ascending order and add above_4g
20391 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20393 Cirrus 5446 and Bochs video cards support.
20395 * conf/i386.rmk (pkglib_MODULES): Add video_cirrus.mod and
20397 (video_cirrus_mod_SOURCES): New variable.
20398 (video_cirrus_mod_CFLAGS): Likewise.
20399 (video_cirrus_mod_LDFLAGS): Likewise.
20400 (video_bochs_mod_SOURCES): Likewise.
20401 (video_bochs_mod_CFLAGS): Likewise.
20402 (video_bochs_mod_LDFLAGS): Likewise.
20403 * include/grub/vga.h: New file.
20404 * include/grub/video_fb.h (grub_video_fb_doublebuf_blit_init): Removed.
20405 (grub_video_fb_set_page_t): New type.
20406 (grub_video_fb_setup): New prototype.
20407 (grub_video_fb_swap_buffers): Likewise.
20408 (grub_video_fb_get_info_and_fini): Likewise.
20409 * term/i386/pc/vga_text.c (CRTC_ADDR_PORT): Moved to include/grub/vga.h.
20410 (CRTC_DATA_PORT): Likewise.
20411 (CRTC_CURSOR): Likewise.
20412 (CRTC_CURSOR_ADDR_HIGH): Likewise.
20413 (CRTC_CURSOR_ADDR_LOW): Likewise.
20414 (CRTC_CURSOR_DISABLE): Likewise.
20415 (update_cursor): Use grub_vga_cr_write.
20416 (grub_vga_text_setcursor): Likewise.
20417 * video/bochs.c: New file.
20418 * video/fb/video_fb.c (render_target): Moved into framebuffer variable.
20419 (palette): Likewise.
20420 (palette_size): Likewise.
20421 (framebuffer): New variable.
20422 (grub_video_fb_init): Use 'framebuffer'.
20423 (grub_video_fb_fini): Likewise.
20424 (grub_video_fb_get_info): Likewise.
20425 (grub_video_fb_get_palette): Likewise.
20426 (grub_video_fb_set_palette): Likewise.
20427 (grub_video_fb_set_viewport): Likewise.
20428 (grub_video_fb_get_viewport): Likewise.
20429 (grub_video_fb_map_color): Likewise.
20430 (grub_video_fb_map_rgb): Likewise.
20431 (grub_video_fb_map_rgba): Likewise.
20432 (grub_video_fb_unmap_color): Likewise.
20433 (grub_video_fb_unmap_color_int): Likewise.
20434 (grub_video_fb_fill_rect): Likewise.
20435 (grub_video_fb_blit_bitmap): Likewise.
20436 (grub_video_fb_blit_render_target): Likewise.
20437 (grub_video_fb_scroll): Likewise.
20438 (grub_video_fb_create_render_target): Likewise.
20439 (grub_video_fb_doublebuf_blit_init): Likewise.
20440 (grub_video_fb_set_active_render_target): Handle doublebuffering.
20441 (doublebuf_pageflipping_update_screen): New function.
20442 (doublebuf_pageflipping_init): Likewise.
20443 (grub_video_fb_setup): Likewise.
20444 (grub_video_fb_swap_buffers): Likewise.
20445 (grub_video_fb_get_info_and_fini): Likewise.
20446 * video/i386/pc/vbe.c (framebuffer): Remove all doublebuffering fields.
20448 (doublebuf_pageflipping_commit): Restructured into ...
20449 (doublebuf_pageflipping_set_page): ... this.
20450 (doublebuf_pageflipping_update_screen): Removed.
20451 (doublebuf_pageflipping_init): Likewise.
20452 (double_buffering_init): Likewise.
20453 (grub_video_vbe_setup): Use grub_video_fb_setup.
20454 (grub_video_vbe_swap_buffers): Removed.
20455 (grub_video_vbe_set_active_render_target): Likewise.
20456 (grub_video_vbe_get_active_render_target): Likewise.
20457 (grub_video_vbe_get_info_and_fini): Use grub_video_fb_get_info_and_fini.
20458 (grub_video_vbe_adapter): Use grub_video_fb_swap_buffers,
20459 grub_video_fb_set_active_render_target and
20460 grub_video_fb_get_active_render_target.
20461 * video/i386/pc/vga.c (SEQUENCER_ADDR_PORT): Move to include/grub/vga.h.
20462 (SEQUENCER_DATA_PORT): Likewise.
20463 (MAP_MASK_REGISTER): Likewise.
20464 (CRTC_ADDR_PORT): Likewise.
20465 (CRTC_DATA_PORT): Likewise.
20466 (START_ADDR_HIGH_REGISTER): Likewise.
20467 (START_ADDR_LOW_REGISTER): Likewise.
20468 (GRAPHICS_ADDR_PORT): Likewise.
20469 (GRAPHICS_DATA_PORT): Likewise.
20470 (READ_MAP_REGISTER): Likewise.
20471 (INPUT_STATUS1_REGISTER): Likewise.
20472 (INPUT_STATUS1_VERTR_BIT): Likewise.
20473 (get_map_mask): Use grub_vga_sr_read.
20474 (set_map_mask): Use grub_vga_sr_write.
20475 (set_read_map): Use grub_vga_gr_write.
20476 (set_start_address): Use grub_vga_cr_write.
20477 * video/sm712.c (framebuffer): Remove leftover fields.
20479 2010-06-20 Colin Watson <cjwatson@ubuntu.com>
20481 * util/grub-mkconfig.in: Capitalise and export GRUB_PREFIX. Stop
20482 setting GRUB_VIDEO_BACKEND. Make it available as a user override
20483 instead. Replace the gfxterm backend check with a check that
20484 ${GRUB_PREFIX}/video.lst is non-empty.
20485 * util/grub.d/00_header.in: Use GRUB_PREFIX rather than computing it
20487 (load_video): New generated function. Call it before loading
20488 gfxterm rather than loading ${GRUB_VIDEO_BACKEND}.
20489 * util/grub.d/10_linux.in (linux_entry): Call load_video.
20490 * util/grub.d/30_os-prober.in (osx_entry): Likewise.
20491 * docs/grub.texi (Simple configuration): Document
20492 GRUB_VIDEO_BACKEND.
20494 2010-06-20 Vladimir Serbinenko <phcoder@gmail.com>
20496 Use video functions in linux and xnu loaders.
20498 * conf/i386-pc.rmk (xnu_mod_SOURCES): Remove loader/i386/pc/xnu.c.
20499 * conf/x86-efi.rmk (xnu_mod_SOURCES): Remove loader/i386/efi/xnu.c.
20500 * include/grub/i386/xnu.h (grub_xnu_set_video): Removed.
20501 * loader/i386/efi/linux.c (grub_linux_setup_video): Copied from
20502 loader/i386/pc/linux.c.
20503 (grub_linux_boot): Resynced with loader/i386/pc/linux.c.
20504 (find_line_len): Removed.
20505 (find_framebuf): Likewise.
20506 (grub_cmd_linux): Declare grub_linux_boot as possibly returning.
20507 * loader/i386/efi/xnu.c: Removed.
20508 * loader/i386/pc/xnu.c: Moved from here...
20509 * loader/i386/xnu.c: ...here.
20511 Enable priorities in video drivers.
20513 * include/grub/video.h (grub_video_adapter_prio_t): New type.
20514 (grub_video_adapter): New field prio.
20515 (grub_video_register): Respect prio when inserting.
20516 * video/efi_gop.c (grub_video_gop_adapter): Add prio.
20517 * video/efi_uga.c (grub_video_uga_adapter): Likewise.
20518 * video/emu/sdl.c (grub_video_sdl_adapter): Likewise.
20519 * video/i386/pc/vbe.c (grub_video_vbe_adapter): Likewise.
20520 * video/i386/pc/vga.c (grub_video_vga_adapter): Likewise.
20521 * video/ieee1275.c (grub_video_ieee1275_adapter): Likewise.
20522 * video/sm712.c (grub_video_sm712_adapter): Likewise.
20526 * include/grub/video.h (grub_video_driver_id_t): New value
20527 GRUB_VIDEO_DRIVER_SDL.
20528 * video/emu/sdl.c (grub_video_sdl_adapter): Add id.
20530 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20532 * util/i386/pc/grub-setup.c (usage): Pass an extra `program_name'
20533 argument to printf.
20534 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20536 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20538 * util/i386/pc/grub-setup.c (usage): Fix syntax error.
20539 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20541 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20543 * util/i386/pc/grub-setup.c (usage): Warn against running grub-setup
20544 directly, and recommend grub-install instead.
20545 * util/sparc64/ieee1275/grub-setup.c (usage): Likewise.
20547 2010-06-17 Colin Watson <cjwatson@ubuntu.com>
20549 Fix i386-pc prefix handling with nested partitions (Debian bug
20550 #585068). Note that the case where the core image is booted using
20551 multiboot and relocated from its original location still requires
20554 * kern/i386/pc/init.c (make_install_device): If the prefix starts
20555 with "(,", fill the boot drive in between those two characters, but
20556 expect that a full partition specification including partition map
20558 * util/i386/pc/grub-setup.c (setup): Unless an explicit prefix was
20559 specified, write a prefix without the drive name but including a
20560 full partition specification.
20562 2010-06-16 Colin Watson <cjwatson@ubuntu.com>
20564 * util/grub-mkconfig.in: Ignore non-option arguments, for
20565 compatibility with older versions (before 2010-06-12) which did the
20566 same. In particular, this makes it easier to ship an update-grub
20567 wrapper which is compatible with that used with GRUB Legacy (Debian
20570 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20572 * Makefile.in (install-local): Use $$file.h2m instead of $$dest.h2m
20573 for manual page generation.
20575 2010-06-14 Grégoire Sutre <gregoire.sutre@gmail.com>
20577 * po/POTFILES: Remove leftover commands/handler.c.
20579 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20581 * util/grub-mkconfig.in: Remove vestige of old argument parsing that
20582 left this script non-functional.
20584 2010-06-14 Colin Watson <cjwatson@ubuntu.com>
20586 * docs/man/grub-emu.h2m: New file.
20588 2010-06-13 Colin Watson <cjwatson@ubuntu.com>
20590 * docs/grub.texi (Commands): Document reduced command set in rescue
20592 (cpuid): New section.
20594 2010-06-13 Grégoire Sutre <gregoire.sutre@gmail.com>
20596 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev): Use the
20597 new partition naming style.
20598 * util/grub-install.in: Adapt sed subtitutions in grub-probe calls.
20600 2010-06-12 BVK Chaitanya <bvk.groups@gmail.com>
20602 Add "-o grub.iso" like cmdline options support.
20604 * util/grub-install.in: Improve cmdline option parsing.
20605 * util/grub-mkconfig.in: Likewise.
20606 * util/grub-mkrescue.in: Likewise.
20607 * util/grub-reboot.in: Likewise.
20608 * util/grub-set-default.in: Likewise.
20609 * util/i386/efi/grub-install.in: Likewise.
20610 * util/ieee1275/grub-install.in: Likewise.
20611 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20613 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20615 * .bzrignore: Ignore 41_custom.
20617 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20619 * util/grub-mkrescue.in: Pass unrecognized options to xorriso.
20621 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20623 Avoid false positives in fs.lst, partmap.lst, and video.lst due to
20624 prototype declarations.
20626 * genmk.rb (PModule::rule): Define GRUB_LST_GENERATOR when
20627 generating fs, partmap, and video lists.
20628 * include/grub/fs.h (grub_fs_register): Omit prototype if
20629 GRUB_LST_GENERATOR is defined.
20630 * include/grub/partition.h (grub_partition_map_register): Likewise.
20631 * include/grub/video.h (grub_video_register): Likewise.
20633 2010-06-12 Javier Martín <lordhabbit@gmail.com>
20635 * include/grub/types.h: Check for GRUB_CPU_SIZEOF_LONG when appropriate.
20637 2010-06-12 Thomas Schmitt <scdbackup@gmx.net>
20639 * util/grub-mkrescue.in: Support --xorriso argument.
20641 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20643 * util/grub-mkrescue.in: Use -graft-points instead of -pathspecs.
20644 Suggested by: Thomas Schmitt.
20646 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20648 * util/grub-mkrescue.in: Add --sort-weight arguments to xorriso.
20649 Suggested by: Thomas Schmitt.
20651 2010-06-12 Vladimir Serbinenko <phcoder@gmail.com>
20653 custom.cfg support.
20655 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 41_custom.
20656 * util/grub.d/41_custom.in: New file.
20658 2010-06-12 Colin Watson <cjwatson@ubuntu.com>
20660 * util/grub-mkrescue.in (make_image): Remove sh module, which has
20661 been merged back into normal.
20663 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20665 * include/grub/efi/uga_draw.h (GRUB_EFI_UGA_GLT_MAX): Rename to ...
20666 (GRUB_EFI_UGA_BLT_MAX): ... this (typo fix).
20668 2010-06-11 Colin Watson <cjwatson@ubuntu.com>
20670 * Makefile.in (install-local): Include $(srcdir)/docs/man/$$dest.h2m
20671 when generating manual pages.
20672 * docs/man/grub-bin2h.h2m: New file.
20673 * docs/man/grub-editenv.h2m: New file.
20674 * docs/man/grub-fstest.h2m: New file.
20675 * docs/man/grub-install.h2m: New file.
20676 * docs/man/grub-macho2img.h2m: New file.
20677 * docs/man/grub-mkconfig.h2m: New file.
20678 * docs/man/grub-mkdevicemap.h2m: New file.
20679 * docs/man/grub-mkfont.h2m: New file.
20680 * docs/man/grub-mkimage.h2m: New file.
20681 * docs/man/grub-mkpasswd-pbkdf2.h2m: New file.
20682 * docs/man/grub-mkrelpath.h2m: New file.
20683 * docs/man/grub-mkrescue.h2m: New file.
20684 * docs/man/grub-ofpathname.h2m: New file.
20685 * docs/man/grub-pe2elf.h2m: New file.
20686 * docs/man/grub-probe.h2m: New file.
20687 * docs/man/grub-reboot.h2m: New file.
20688 * docs/man/grub-script-check.h2m: New file.
20689 * docs/man/grub-set-default.h2m: New file.
20690 * docs/man/grub-setup.h2m: New file.
20692 2010-06-10 Vladimir Serbinenko <phcoder@gmail.com>
20694 Use FOR_* macros instead of *_iterate whenever possible.
20696 * commands/handler.c: Removed.
20697 * commands/help.c (grub_cmd_help): Use FOR_COMMANDS.
20698 * commands/minicmd.c (grub_mini_cmd_lsmod): Use FOR_DL_MODULES.
20699 * conf/any-emu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20700 * conf/common.rmk (script/lexer.c_DEPENDENCIES): Add grub_script.yy.h.
20701 (grub_probe_SOURCES): Remove kern/parser.c.
20702 (util/grub-script-check.c_DEPENDENCIES): Removed.
20703 (grub_script_check_SOURCES): Remove kern/handler.c, kern/parser.c
20704 and grub_script_check_init.c.
20705 (grub_script_check_init.lst): Removed.
20706 (grub_script_check_init.h): Likewise.
20707 (grub_script_check_init.c): Likewise.
20708 (pkglib_MODULES): Remove handler.mod and sh.mod.
20709 (handler_mod_SOURCES): Removed.
20710 (handler_mod_CFLAGS): Likewise.
20711 (handler_mod_LDFLAGS): Likewise.
20712 (normal_mod_SOURCES): Remove normal/handler.c.
20713 Add script/main.c, script/script.c, script/execute.c,
20714 script/function.c, script/lexer.c, grub_script.tab.c
20715 and grub_script.yy.c.
20716 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20717 * conf/i386-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20718 * conf/i386-pc.rmk (kernel_img_SOURCES): Likewise.
20719 (grub_setup_SOURCES): Remove kern/parser.c.
20720 * conf/i386-qemu.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20721 * conf/mips-qemu-mips.rmk (kernel_img_SOURCES): Likewise.
20722 * conf/mips-yeeloong.rmk (kernel_img_SOURCES): Likewise.
20723 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20724 * conf/sparc64-ieee1275.rmk (kernel_img_SOURCES): Likewise.
20725 (grub_setup_SOURCES): Remove kern/parser.c.
20726 * conf/x86-efi.rmk (kernel_img_SOURCES): Remove kern/handler.c.
20727 * gettext/gettext.c (grub_gettext_delete_list): Don't use grub_list_pop.
20728 * include/grub/command.h (grub_command_iterate): Removed.
20729 (FOR_COMMANDS): New macro.
20730 * include/grub/dl.h (grub_dl): New member next.
20731 (grub_dl_iterate): Removed.
20732 (grub_dl_head): New variable declaration.
20733 (FOR_DL_MODULES): New macro.
20734 * include/grub/fs.h: Include list.h.
20735 (grub_fs): Make next first element.
20736 (grub_fs_list): New variable declaration.
20737 (grub_fs_register): Make inline.
20738 (grub_fs_unregister): Likewise.
20739 (grub_fs_iterate): Removed.
20740 (FOR_FILESYSTEMS): New macro.
20741 * include/grub/handler.h: Removed.
20742 * include/grub/list.h (grub_list_hook_t): Removed.
20743 (grub_list_test_t): Likewise.
20744 (grub_list_pop): Likewise.
20745 (grub_list_iterate): Likewise.
20746 (grub_list_insert): Likewise.
20747 (FOR_LIST_ELEMENTS): New macro.
20748 * include/grub/parser.h (grub_parser_class): Removed.
20749 (grub_parser_register): Likewise.
20750 (grub_parser_unregister): Likewise.
20751 (grub_parser_get_current): Likewise.
20752 (grub_parser_set_current): Likewise.
20753 (grub_register_rescue_parser): Likewise.
20754 (grub_rescue_parse_line): New function.
20755 * include/grub/partition.h (FOR_PARTITION_MAPS): Use FOR_LIST_ELEMENTS.
20756 * include/grub/script_sh.h (grub_script_function_list): New variable
20758 (FOR_SCRIPT_FUNCTIONS): New macro.
20759 (grub_script_function_iterate): Removed.
20760 (grub_normal_parse_line): New prototype.
20761 * include/grub/term.h (FOR_ACTIVE_TERM_INPUTS): Use FOR_LIST_ELEMENTS.
20762 (FOR_DISABLED_TERM_INPUTS): Likewise.
20763 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
20764 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
20765 * include/grub/video.h (grub_video_adapter): Move 'next' to first
20767 (grub_video_register): Inline.
20768 (grub_video_unregister): Likewise.
20769 (grub_video_adapter_list): New variable declaration.
20770 (grub_video_iterate): Removed.
20771 (FOR_VIDEO_ADAPTERS): New macro.
20772 * kern/dl.c (grub_dl_list): Removed. All users updated.
20773 (grub_dl_iterate): Removed.
20774 * kern/fs.c (grub_fs_list): Make global.
20775 (grub_fs_register): Removed.
20776 (grub_fs_unregister): Likewise.
20777 (grub_fs_iterate): Likewise.
20778 * kern/handler.c: Removed.
20779 * kern/list.c (grub_list_pop): Removed.
20780 (grub_list_iterate): Likewise.
20781 (grub_list_insert): Likewise.
20782 (grub_named_list_find): Use FOR_LIST_ELEMENTS.
20783 (grub_prio_list_insert): Don't use grub_list_insert.
20784 * kern/main.c (grub_register_rescue_parser): Don't call
20785 grub_register_rescue_parser.
20786 * kern/parser.c (grub_parser_class): Removed.
20787 (grub_parser_execute): Use grub_rescue_parse_line.
20788 * kern/rescue_parser.c (grub_rescue_parse_line): Make global.
20789 (grub_rescue_parser): Removed.
20790 (grub_register_rescue_parser): Likewise.
20791 * kern/rescue_reader.c (grub_rescue_run): Use grub_rescue_parse_line.
20792 * normal/auth.c (is_authenticated): Use FOR_LIST_ELEMENTS.
20793 (grub_auth_check_authentication): Likewise.
20794 * normal/completion.c (iterate_command): Removed.
20795 (grub_normal_do_completion): Use FOR_COMMANDS.
20796 * normal/handler.c: Removed.
20797 * normal/main.c (read_config_file): Remove parser changing.
20798 (grub_normal_execute): Don't call read_handler_list.
20799 (grub_normal_read_line_real): Statically allocate prompt.
20800 (grub_cmdline_run): Use grub_normal_parse_line.
20801 (GRUB_MOD_FINI): Don't call free_handler_list.
20802 * normal/menu_entry.c (run): Likewise.
20803 * script/function.c (grub_script_function_list): Make global.
20804 (grub_script_function_iterate): Removed.
20805 * script/main.c (grub_normal_parse_line): Make global.
20806 (grub_sh_parser): Removed.
20807 (GRUB_MOD_INIT): Likewise.
20808 (GRUB_MOD_FINI): Likewise.
20809 * tests/lib/functional_test.c (grub_functional_test): Use
20811 * tests/lib/test.c (free_failures): Don't use grub_list_pop.
20812 (grub_test_run): Use FOR_LIST_ELEMENTS.
20813 * tests/lib/unit_test.c (main): Likewise.
20814 * util/deviceiter.c (grub_util_iterate_devices): Don't use
20816 * util/grub-fstest.c (grub_term_input_class): Removed.
20817 (grub_term_output_class): Likewise.
20818 * util/grub-probe.c: Likewise.
20819 * util/i386/pc/grub-setup.c: Likewise.
20820 * util/sparc64/ieee1275/grub-setup.c: Likewise.
20821 * util/grub-script-check.c (main): Don't call grub_init_all and
20823 * video/video.c (grub_video_adapter_list): Make global.
20824 (grub_video_register): Removed.
20825 (grub_video_unregister): Likewise.
20826 (grub_video_iterate): Likewise.
20828 2010-06-09 Vladimir Serbinenko <phcoder@gmail.com>
20830 * docs/grub.texi (Vendor power-on button): Add Asus EeePC 1005PE as
20831 reported by Henrique Ferreiro.
20833 2010-06-09 Robert Millan <rmh@gnu.org>
20835 * util/grub.d/10_linux.in: Prefer compressed images over non-compressed
20836 ones, when both are available.
20838 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20840 Make --version uniform and avoid hard-coded program name.
20842 * util/grub-mkimage.c (main): Use `program_name' instead of
20844 * util/i386/pc/grub-setup.c (main): Likewise.
20845 * util/sparc64/ieee1275/grub-setup.c (parse_options): Likewise.
20846 * util/grub-install.in: Save the basename of $0 in $self, and use the
20847 latter in informational messages. Use the same format for --version
20848 as the binary programs.
20849 * util/grub-mkconfig.in: Likewise.
20850 * util/grub-mkrescue.in: Likewise.
20851 * util/grub-reboot.in: Likewise.
20852 * util/grub-set-default.in: Likewise.
20853 * util/i386/efi/grub-install.in: Likewise.
20854 * util/ieee1275/grub-install.in: Likewise.
20855 * util/powerpc/ieee1275/grub-mkrescue.in: Likewise.
20857 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20859 * util/i386/pc/grub-setup.c (setup): Use absolute offsets for start of
20860 embedding area. Use <= instead of == when checking for non-emptiness.
20862 2010-06-08 Grégoire Sutre <gregoire.sutre@gmail.com>
20864 * configure.ac: Add `.' to the directories searched for unifont.
20866 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20868 * .bzrignore: Add ascii.bitmaps, ascii.h, grub_script.yy.c, and
20871 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20873 * docs/grub.texi (History): Expand to cover GRUB 2.
20874 (Serial terminal): Refer to `terminal_input' and `terminal_output'
20875 commands, not `terminal'.
20876 (serial): Likewise.
20877 (terminal_input): New section.
20878 (terminal_output): New section.
20879 (uppermem): New section (stub).
20880 (Obtaining and Building GRUB): Refer to Bazaar, not Subversion.
20882 2010-06-08 Colin Watson <cjwatson@ubuntu.com>
20884 * docs/grub.texi (Security): Menu entries are unrestricted by
20885 default, not restricted to superusers as I had previously thought.
20886 Reword to account for this.
20888 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20890 * kern/emu/misc.c (device_mapper_null_log): New function.
20891 (grub_device_mapper_supported): New function.
20892 * include/grub/emu/misc.h (grub_device_mapper_supported): Add
20894 * kern/emu/hostdisk.c (find_partition_start): Check whether
20895 device-mapper is supported before trying to use it.
20896 * util/deviceiter.c (grub_util_iterate_devices): Likewise.
20898 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20900 * docs/grub.texi (Naming convention): Use GRUB 2 syntax.
20901 (File name syntax): Likewise.
20902 (help): --all is no longer supported in GRUB 2. Be more precise
20903 about pattern matching.
20905 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20907 * normal/completion.c (grub_normal_do_completion): When completing
20908 arguments to "set" and the current word contains an equals sign,
20909 skip to after the equals sign before starting completion.
20911 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20913 * fs/i386/pc/pxe.c (grub_pxe_open): Fix parsing of gateway_ip.
20915 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20917 * docs/grub.texi (Network): New section.
20918 (Device syntax): The network device is called `(pxe)' in GRUB 2, not
20919 `(nd)' as in GRUB Legacy.
20920 (pxe_unload): New section.
20922 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20924 * docs/grub.texi (Troubleshooting): `echo' is not usually available
20925 in the rescue shell, so recommend using `set' instead. Thanks,
20928 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20930 * docs/grub.texi (Filesystem): Refer to `search' instead of `find'.
20931 (password): New section.
20932 (password_pbkdf2): New section.
20933 (search): New section.
20934 (Security): New section.
20935 (Troubleshooting): New section, currently very incomplete.
20936 (Invoking grub-mkpasswd-pbkdf2): New section.
20937 (Internals): New section, currently very incomplete.
20939 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20941 * util/grub.d/00_header.in: Add some more quoting (of
20942 "${prev_saved_entry}" and "${boot_once}") needed to make savedefault
20944 Reported by: Mario 'BitKoenig' Holbe (Debian bug #584812).
20946 2010-06-07 Colin Watson <cjwatson@ubuntu.com>
20948 * util/grub-mkpasswd-pbkdf2.c (main): Rename top-level `c' variable
20949 to `count', fixing variable shadowing that broke the -c option.
20951 2010-06-05 Colin Watson <cjwatson@ubuntu.com>
20953 * util/grub.d/00_header.in: Quote values assigned to `saved_entry',
20954 in case they contain spaces.
20956 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20958 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Prepend
20959 "part_" to partmap module names, in line with grub-install.
20960 Reported by: Jindřich Makovička (Debian bug #584426).
20962 2010-06-04 Colin Watson <cjwatson@ubuntu.com>
20964 * util/grub-mkimage.c: Make target-related error messages slightly
20965 more helpful; -O talks about "format". Explicitly point to the use
20966 of -O if no target is specified.
20967 Reported by: Didier Raboud (Debian bug #584415).
20969 2010-06-03 Colin Watson <cjwatson@ubuntu.com>
20971 * INSTALL: Document several build requirements for optional features
20972 (libdevmapper, ncurses, libusb, SDL, FreeType, GNU Unifont).
20974 2010-06-02 Grégoire Sutre <gregoire.sutre@gmail.com>
20976 * kern/emu/hostdisk.c (convert_system_partition_to_system_disk)
20977 [__NetBSD__]: Handle all device names matching /dev/r[a-z]+[0-9][a-z].
20978 (find_partition_start) [__NetBSD__]: Correct error messages for NetBSD.
20980 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
20982 * docs/grub.texi (Simple configuration): Fix copy-and-paste typo.
20983 Thanks to Jordan Uggla for spotting this.
20985 2010-06-02 Aleš Nesrsta <starous@volny.cz>
20987 Finally make USB usable.
20989 * bus/usb/ohci.c (grub_ohci_reg_t): Add missing values.
20990 (GRUB_OHCI_RHUB_PORT_POWER_MASK): New macro.
20991 (GRUB_OHCI_RHUB_PORT_ALL_POWERED): Likewise.
20992 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_MASK): Likewise.
20993 (GRUB_OHCI_REG_FRAME_INTERVAL_FSMPS_SHIFT): Likewise.
20994 (GRUB_OHCI_REG_FRAME_INTERVAL_FI_SHIFT): Likewise.
20995 (GRUB_OHCI_FSMPS): Likewise.
20996 (GRUB_OHCI_PERIODIC_START): Likewise.
20997 (GRUB_OHCI_FRAME_INTERVAL): Likewise.
20998 (GRUB_OHCI_SET_PORT_ENABLE): Likewise.
20999 (GRUB_OHCI_CLEAR_PORT_ENABLE): Likewise.
21000 (GRUB_OHCI_SET_PORT_RESET): Likewise.
21001 (GRUB_OHCI_SET_PORT_RESET_STATUS_CHANGE): Likewise.
21002 * bus/usb/ohci.c (grub_ohci_pci_iter): Various important fixups.
21003 (grub_ohci_transaction): Likewise.
21004 (grub_ohci_transfer): Improve condition detection algorithms.
21005 Handle toggle property. Program the transactions correctly.
21006 Improve error handling. Various important fixups.
21007 (grub_ohci_portstatus): Put register writes in right order.
21008 * bus/usb/uhci.c (grub_free_queue): Compute last_trans.
21009 (grub_uhci_transfer): Don't show "failed" message on success.
21010 * bus/usb/usb.c (grub_usb_set_configuration): Zero-fill whole "toggle"
21012 (grub_usb_device_initialize): Read first 8 bytes of descriptor to
21013 determine its size.
21014 * bus/usb/usbtrans.c (grub_usb_control_msg): Use descdev.maxsize0 even
21015 before initialization is completed. Use IN direction for empty
21016 transfers. Use last_trans and compute toggle.
21017 * include/grub/usbtrans.h (grub_usb_transfer): New field last_trans.
21018 (GRUB_USB_FEATURE_ENDP_HALT): Correct the value.
21019 (GRUB_USB_FEATURE_DEV_REMOTE_WU): Likewise.
21020 (GRUB_USB_FEATURE_TEST_MODE): Likewise.
21021 * include/grub/usb.h (grub_usb_err_t): New value GRUB_USB_ERR_UNRECOVERABLE.
21022 (grub_usb_device): Increase toggle to 256.
21023 (grub_usbms_subclass_t): New values GRUB_USBMS_SUBCLASS_RBC,
21024 GRUB_USBMS_SUBCLASS_MMC2, GRUB_USBMS_SUBCLASS_UFI and
21025 GRUB_USBMS_SUBCLASS_SFF8070.
21026 * include/grub/scsicmd.h (grub_scsi_test_unit_ready): New structure.
21027 (grub_scsi_inquiry): New member page and alloc_length.
21028 (grub_scsi_request_sense): New structure.
21029 (grub_scsi_request_sense_data): Likewise.
21030 (grub_scsi_read_capacity): New fields logical_block_addr, PMI and
21032 * disk/scsi.c (grub_scsi_request_sense): New function.
21033 (grub_scsi_test_unit_ready): Likewise.
21034 (grub_scsi_inquiry): Fill new fields.
21035 (grub_scsi_read_capacity): Likewise.
21036 (grub_scsi_read10): Add request sense at the end.
21037 (grub_scsi_read12): Likewise.
21038 (grub_scsi_write10): Likewise.
21039 (grub_scsi_write12): Likewise.
21040 (grub_scsi_open): Add Test Unit Ready.
21041 * disk/usbms.c (grub_usbms_finddevs): Check configcnt.
21042 Support additional subclasses. Con't clear halt yet. Activate the
21043 proper config. Calculate LUNs correctly.
21044 (grub_usbms_transfer): Various important fixups.
21046 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21048 * bus/pci.c (grub_pci_iterate) [GRUB_MACHINE_MIPS_YEELOONG]: Skip ghosts.
21049 * bus/usb/ohci.c (grub_ohci_portstatus): Handle R/WC correctly.
21050 (grub_ohci_fini_hw): New function.
21051 (grub_ohci_restore_hw): Likewise.
21052 (GRUB_MOD_INIT(ohci)): Register preboot hook.
21053 (GRUB_MOD_FINI(ohci)): Shutdown OHCI.
21054 * term/usb_keyboard.c: Remove include of grub/machine/console.h.
21056 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21058 Dedicated DMA allocations.
21060 * bus/pci.c (grub_memalign_dma32): New function
21061 (grub_dma_free): Likewise.
21062 (grub_dma_get_virt): Likewise.
21063 (grub_dma_get_phys): Likewise.
21064 * bus/usb/ohci.c (grub_ohci): New members hcca_addr and hcca_chunk.
21065 (grub_ohci_pci_iter): Use dma32_alloc.
21066 (grub_ohci_transfer): Likewise.
21067 * bus/usb/usbtrans.c (grub_usb_control_msg): Likewise.
21068 (grub_usb_bulk_readwrite): Likewise.
21069 * include/grub/pci.h: Add declarations.
21071 2010-06-02 Vladimir Serbinenko <phcoder@gmail.com>
21075 * bus/cs5536.c: New file.
21076 * bus/usb/ohci.c (grub_ohci_pci_iter): Check for CS5536.
21077 * conf/i386.rmk (pkglib_MODULES): Add cs5536.mod.
21078 (cs5536_mod_SOURCES): New variable.
21079 (cs5536_mod_CFLAGS): Likewise.
21080 (cs5536_mod_LDFLAGS): Likewise.
21081 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add cs5536.h and
21083 (kernel_img_SOURCES): Add bus/cs5536.c.
21084 (pkglib_MODULES): Add usb.mod, usbtest.mod, ohci.mod, usbms.mod and
21086 (usb_mod_SOURCES): New variable.
21087 (usb_mod_CFLAGS): New variable.
21088 (usb_mod_LDFLAGS): New variable.
21089 (usbtest_mod_SOURCES): New variable.
21090 (usbtest_mod_CFLAGS): New variable.
21091 (usbtest_mod_LDFLAGS): New variable.
21092 (ohci_mod_SOURCES): New variable.
21093 (ohci_mod_CFLAGS): New variable.
21094 (ohci_mod_LDFLAGS): New variable.
21095 (usbms_mod_SOURCES): New variable.
21096 (usbms_mod_CFLAGS): New variable.
21097 (usbms_mod_LDFLAGS): New variable.
21098 (usb_keyboard_mod_SOURCES): New variable.
21099 (usb_keyboard_mod_CFLAGS): New variable.
21100 (usb_keyboard_mod_LDFLAGS): New variable.
21101 * include/grub/smbus.h: New file.
21102 * include/grub/cs5536.h: New file.
21104 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21106 * util/grub.d/00_header.in: Add safety check to make sure that
21107 ${locale_dir} exists before trying to probe it.
21109 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21111 * docs/grub.texi (SCO UnixWare): Remove, at Vladimir's request and
21112 per the GNU Coding Standards; this is now too obscure to be worth
21115 (chainloader): Remove cross-reference to `SCO UnixWare'.
21117 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21119 * docs/grub.texi (Chain-loading): New section.
21120 (DOS/Windows): New section, borrowed from GRUB Legacy with details
21121 adjusted for GRUB 2.
21122 (SCO UnixWare): Likewise.
21124 (chainloader): Add reference to `Block list syntax'.
21125 (drivemap): New section.
21126 (parttool): New section.
21128 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21130 * docs/grub.texi (GNU GRUB manual): Remove reference to `Invoking
21132 (Installation): Add reference to `Making a GRUB bootable CD-ROM'.
21133 (Installing GRUB using grub-install): Remove reference to the grub
21134 shell; mention `grub-mkimage' and `grub-setup' instead.
21135 (Invoking grub-install): Likewise.
21136 (Interface): Add reference to `Menu entry editor'.
21137 (serial): Remove `--device' option.
21139 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21141 * docs/grub.texi (Configuration): New section, documenting
21142 configuration file generation using grub-mkconfig. I've left a slot
21143 for documenting the full shell scripting format but have not yet
21144 started on writing that up.
21145 (Invoking grub-mkconfig): New section.
21147 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21149 * docs/grub.texi (direntry): Remove grub-terminfo reference.
21150 (GNU GRUB manual): Likewise.
21151 (General commands): Update description of `terminfo' for GRUB 2.
21153 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21155 * commands/gptsync.c (grub_cmd_gptsync): Fix typos.
21156 (GRUB_MOD_INIT): Fix capitalisation.
21157 * docs/grub.texi (Command-line and menu entry commands): Document
21158 gettext and gptsync commands.
21160 2010-06-02 Colin Watson <cjwatson@ubuntu.com>
21162 * conf/any-emu.rmk (kernel_img_SOURCES) [!x86]: Include
21163 kern/$(target_cpu)/cache.S even if TARGET_NO_MODULES = yes.
21165 2010-06-01 Colin Watson <cjwatson@ubuntu.com>
21167 Add btrfs probing support, currently only in the single-device case.
21169 * kern/emu/getroot.c (find_root_device_from_mountinfo): New
21171 (grub_guess_root_device): Call find_root_device_from_mountinfo
21172 before looking in /dev.
21174 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21176 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Use
21177 GRUB_DISK_SIZE_UNKNOWN.
21178 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Likewise.
21180 2010-05-31 Jiro SEKIBA <jir@unicus.jp>
21182 * include/grub/disk.h (GRUB_DISK_SIZE_UNKNOWN): New macro.
21183 * fs/nilfs.c: Support 2nd super block in case 1st one is accidently
21184 corrupted or not synced properly.
21186 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21188 * normal/main.c (grub_normal_add_menu_entry): Avoid going out of args.
21189 Reported by: Seth Goldberg.
21191 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21193 * loader/multiboot_mbi2.c (grub_multiboot_make_mbi): Fix incorrect
21195 Reported by: Seth Goldberg.
21197 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21199 * commands/setpci.c (grub_setpci_iter): Fix an incorrect function check.
21200 Reported by: Seth Goldberg.
21202 2010-05-31 Vladimir Serbinenko <phcoder@gmail.com>
21204 * loader/multiboot_elfxx.c (grub_multiboot_load_elfXX) [__mips]: Check
21205 64-bit address as signed on MIPS.
21207 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21209 * configure.ac: AC_PROG_LEX sets LEX to ":" if lex is missing, not
21210 to the empty string.
21212 2010-05-28 BVK Chaitanya <bvk.groups@gmail.com>
21214 Fix grub-emu issues on NetBSD, with gcc 4.1.3.
21216 * conf/any-emu.rmk: Remove unnecessary COMMON_CFLAGS.
21217 * include/grub/emu/misc.h (canonicalize_file_name): New Prototype.
21218 * kern/misc.c (__enable_execute_stack): Disable on
21221 2010-05-28 Colin Watson <cjwatson@ubuntu.com>
21223 Make grub-probe work with symbolic links under /dev/mapper as well
21224 as with real block devices. The Linux world seems to be (at best)
21225 in transition here, and GRUB shouldn't get caught in the middle.
21227 * kern/emu/getroot.c (find_root_device): Follow symbolic links under
21230 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21232 * util/grub-script-check.c (main): Ensure defined behaviour on empty
21233 input files (in which case exit zero).
21235 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21237 * kern/emu/misc.c (canonicalize_file_name): realpath can still
21238 return NULL for various reasons even if it has a maximum-length
21239 buffer: for example, there might be a symlink loop, or the path
21240 might exceed PATH_MAX. If this happens, return NULL.
21242 2010-05-27 Robert Millan <rmh@gnu.org>
21244 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Insert
21245 partmap module to handle cross-partmap setups.
21246 Reported by Orestes Mas. Gràcies!
21248 2010-05-27 Colin Watson <cjwatson@ubuntu.com>
21250 * util/grub-mkrescue.in: Initialise override_dir rather than
21251 assuming that it's unset or empty in the environment.
21253 2010-05-26 Grégoire Sutre <gregoire.sutre@gmail.com>
21255 * kern/emu/hostdisk.c (find_partition_start) [__NetBSD__]: Renamed
21256 variable index into p_index to suppress a warning with -Wshadow.
21258 2010-05-25 BVK Chaitanya <bvk.groups@gmail.com>
21260 * INSTALL: Added flex >= 2.5.35 requirement.
21262 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21264 * commands/usbtest.c (grub_usb_get_string): Properly support UTF-16.
21266 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21270 * commands/i386/cmostest.c: New file.
21271 * conf/i386-coreboot.rmk (pkglib_MODULES): Add cmostest.mod.
21272 (cmostest_mod_SOURCES): New variable.
21273 (cmostest_mod_CFLAGS): Likewise.
21274 (cmostest_mod_LDFLAGS): Likewise.
21275 * conf/i386-pc.rmk: Likewise.
21276 * docs/grub.texi (Vendor power-on keys): New section.
21277 * util/grub-mkconfig.in: export GRUB_DEFAULT_BUTTON,
21278 GRUB_HIDDEN_TIMEOUT_BUTTON, GRUB_TIMEOUT_BUTTON
21279 and GRUB_BUTTON_CMOS_ADDRESS.
21280 * util/grub.d/00_header.in: Handle powering-on by separate button.
21282 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21284 * gfxmenu/gui_list.c (draw_menu): Don't add scrollbar width to padding.
21285 Removed drawing_scrollbar argument. All users updated
21287 Reported by Jo Shields
21289 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21291 * gfxmenu/view.c (grub_gfxmenu_draw_terminal_box): Apply only to current
21292 buffer since gfxterm handles double repaint.
21294 2010-05-23 Vladimir Serbinenko <phcoder@gmail.com>
21296 * gfxmenu/gfxmenu.c (grub_gfxmenu_try): Change viewport on both buffers.
21297 * term/gfxterm.c (real_scroll): Likewise.
21299 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21301 * kern/i386/pc/mmap.c (grub_machine_mmap_iterate): Zero-fill entry
21302 before calling BIOS.
21304 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21306 * include/grub/i18n.h: Always enable grub_gettext.
21308 2010-05-21 Vladimir Serbinenko <phcoder@gmail.com>
21310 * kern/i386/pc/init.c (make_install_device): Fix a leftover usage of old
21311 partition naming style.
21313 2010-05-21 Colin Watson <cjwatson@ubuntu.com>
21315 * util/grub-mkconfig.in: Fix handling of -o so that it works when
21316 not the first option.
21318 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21320 * util/grub-mkrelpath.c (usage): Remove excess apostrophe.
21322 2010-05-20 Colin Watson <cjwatson@ubuntu.com>
21324 * util/misc.c: Move inclusion of <limits.h> to ...
21325 * kern/emu/misc.c: ... here. Needed for canonicalize_file_name.
21327 2010-05-20 Grégoire Sutre <gregoire.sutre@gmail.com>
21329 * kern/emu/hostdisk.c (grub_util_biosdisk_get_grub_dev) [__NetBSD__]:
21330 Fix merge error in NetBSD code.
21331 (find_partition_start) [__NetBSD__]: Likewise.
21333 2010-05-19 BVK Chaitanya <bvk.groups@gmail.com>
21335 Fix grub-mkrescue usage unit testing.
21337 * tests/util/grub-shell.in: Use --grub-mkimage with grub-mkrescue.
21339 2010-05-18 Christian Franke <franke@computer.org>
21341 * util/grub.d/10_windows.in: Use path names instead of
21342 drive letters to prevent warning from Cygwin 1.7.
21343 Add drivemap command to menuentry if needed.
21345 2010-05-18 Justus Winter <4winter@informatik.uni-hamburg.de>
21347 * util/grub.d/10_hurd.in: Include all gnumach* kernels, not only
21348 gnumach and gnumach.gz.
21350 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21352 * include/grub/i18n.h (gettext): Inline instead of using #define.
21353 (grub_gettext): Likewise.
21356 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21358 * Makefile.in (CPPFLAGS): Replace -DGRUB_LIBDIR with
21359 -DGRUB_PKGLIBROOTDIR= and prepend @PACKAGE_TARNAME@. All users updated.
21360 * util/grub-mkimage.c (image_targets): Add i386-multiboot.
21361 (main): Add a slash after pkglibdirroot.
21363 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21365 * util/grub-install.in: Add missing "in" keyword.
21367 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21369 * util/grub-mkrescue.in: Remove -O i386-pc duplication.
21370 Reported by: Seth Goldberg.
21372 2010-05-18 Vladimir Serbinenko <phcoder@gmail.com>
21374 * po/POTFILES: Rename util/grub-mkrawimage.c to util/grub-mkimage.c.
21376 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21378 * configure.ac: Check for Linux device-mapper support.
21380 * util/hostdisk.c (device_is_mapped): New function.
21381 (find_partition_start): New function, partly broken out from
21382 linux_find_partition and grub_util_biosdisk_get_grub_dev but with
21383 device-mapper support added.
21384 (linux_find_partition): Use find_partition_start.
21385 (convert_system_partition_to_system_disk): Add `st' argument.
21386 Support Linux /dev/mapper/* devices if device-mapper support is
21387 available; only DM-RAID devices are understood at present.
21388 (find_system_device): Add `st' argument. Pass it to
21389 convert_system_partition_to_system_disk.
21390 (grub_util_biosdisk_get_grub_dev): Pass stat result to
21391 find_system_device and convert_system_partition_to_system_disk. Use
21392 find_partition_start.
21394 * conf/common.rmk (grub_mkdevicemap_SOURCES): Add kern/env.c,
21395 kern/err.c, kern/list.c, kern/misc.c, and kern/emu/mm.c.
21396 * util/deviceiter.c [__linux__]: Define MINOR.
21397 (grub_util_iterate_devices): Add support for DM-RAID disk devices.
21398 * util/mkdevicemap.c (grub_putchar): New function.
21399 (grub_getkey): New function.
21400 (grub_refresh): New function.
21401 (main): Set debug=all if -v -v is used.
21403 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21405 Fix build with non-GNU libcs.
21407 * util/misc.c (canonicalize_file_name): Move to ...
21408 * kern/emu/misc.c (canonicalize_file_name): ... here. Needed by
21409 grub_make_system_path_relative_to_its_root.
21411 2010-05-18 Colin Watson <cjwatson@ubuntu.com>
21413 * util/grub-mkrescue.in: Sync up with grub-install in terms of how
21414 we handle finding grub-mkimage. Default to finding grub-mkimage in
21415 ${bindir} with program_transform_name applied, and provide a
21416 --grub-mkimage option to override this.
21418 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21420 Remove grub-mkisofs.
21422 * conf/common.rmk (bin_UTILITIES): Remove grub-mkisofs.
21423 (grub_mkisofs_SOURCES): Removed.
21424 (grub_mkisofs_CFLAGS): Removed.
21425 * util/mkisofs/defaults.h: Removed.
21426 * util/mkisofs/eltorito.c: Likewise.
21427 * util/mkisofs/exclude.h: Likewise.
21428 * util/mkisofs/hash.c: Likewise.
21429 * util/mkisofs/include/: Likewise.
21430 * util/mkisofs/include/fctldefs.h: Likewise.
21431 * util/mkisofs/include/mconfig.h: Likewise.
21432 * util/mkisofs/include/prototyp.h: Likewise.
21433 * util/mkisofs/include/statdefs.h: Likewise.
21434 * util/mkisofs/iso9660.h: Likewise.
21435 * util/mkisofs/joliet.c: Likewise.
21436 * util/mkisofs/match.c: Likewise.
21437 * util/mkisofs/match.h: Likewise.
21438 * util/mkisofs/mkisofs.c: Likewise.
21439 * util/mkisofs/mkisofs.h: Likewise.
21440 * util/mkisofs/msdos_partition.h: Likewise.
21441 * util/mkisofs/multi.c: Likewise.
21442 * util/mkisofs/name.c: Likewise.
21443 * util/mkisofs/rock.c: Likewise.
21444 * util/mkisofs/tree.c: Likewise.
21445 * util/mkisofs/write.c: Likewise.
21447 2010-05-17 Vladimir Serbinenko <phcoder@gmail.com>
21449 Unify grub-mkimage accross platforms.
21451 * Makefile.in (CPPFLAGS): Set GRUB_LIBDIR to $(libdir).
21452 * conf/common.rmk (bin_UTILITIES): Removed grub-mkelfimage.
21453 (grub_mkelfimage_SOURCES): Removed.
21454 (util/elf/grub-mkimage.c_DEPENDENCIES): Renamed to ..
21455 (util/grub-mkimage.c_DEPENDENCIES): .. this.
21456 (bin_UTILITIES): Add grub-mkimage.
21457 (grub_mkimage_SOURCES): New variable.
21458 (kernel_img_HEADERS): Remove machine/kernel.h.
21459 * conf/i386-pc.rmk (pkglib_IMAGES): Remove kernel.img.
21460 (pkglib_PROGRAMS): Add kernel.img.
21461 (kernel_img_HEADERS): Add machine/kernel.h.
21462 (kernel_img_FORMAT): Removed.
21463 (bin_UTILITIES): Remove grub-mkimage.
21464 (grub_mkimage_SOURCES): Removed.
21465 (grub_mkimage_CFLAGS): Likewise.
21466 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21467 * conf/i386-qemu.rmk (pkglib_IMAGES): Remove kernel.img.
21468 (pkglib_PROGRAMS): Add kernel.img.
21469 (bin_UTILITIES): Remove grub-mkimage.
21470 (grub_mkimage_SOURCES): Removed.
21471 (grub_mkimage_CFLAGS): Likewise.
21472 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21473 * conf/mips-qemu-mips.rmk (pkglib_IMAGES): Remove kernel.img.
21474 (pkglib_PROGRAMS): Add kernel.img.
21475 * conf/mips-yeeloong.rmk (pkglib_IMAGES): Remove kernel.img.
21476 (pkglib_PROGRAMS): Add kernel.img.
21477 * conf/mips.rmk (bin_UTILITIES): Remove grub-mkimage.
21478 (grub_mkimage_SOURCES): Removed.
21479 (grub_mkimage_CFLAGS): Likewise.
21480 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21481 * conf/sparc64-ieee1275.rmk (pkglib_IMAGES): Remove kernel.img.
21482 (pkglib_PROGRAMS): Add kernel.img.
21483 (bin_UTILITIES): Remove grub-mkimage.
21484 (grub_mkimage_SOURCES): Removed.
21485 (grub_mkimage_CFLAGS): Likewise.
21486 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21487 * conf/x86-efi.rmk (bin_UTILITIES): Remove grub-mkimage.
21488 (grub_mkimage_SOURCES): Removed.
21489 (grub_mkimage_CFLAGS): Likewise.
21490 (util/grub-mkrawimage.c_DEPENDENCIES): Likewise.
21491 * configure.ac (machine_CFLAGS): Add "-DMACHINE".
21492 * include/grub/efi/pe32.h (grub_pe32_optional_header): Split into ...
21493 (grub_pe32_optional_header): ... this.
21494 (grub_pe64_optional_header): ... and this. All users updated.
21495 (GRUB_PE32_PE32_MAGIC): Split into ..
21496 (GRUB_PE32_PE32_MAGIC): .. this.
21497 (GRUB_PE32_PE64_MAGIC): .. and this.
21498 (GRUB_PE32_SIGNATURE_SIZE): New definition.
21499 * include/grub/elf.h (PT_GNU_STACK): New definition.
21500 * include/grub/i386/coreboot/kernel.h: Merged into include/grub/offsets.h. All users updated.
21501 * include/grub/i386/efi/kernel.h: Likewise.
21502 * include/grub/i386/kernel.h: Likewise.
21503 * include/grub/i386/pc/kernel.h: Likewise.
21504 * include/grub/i386/qemu/boot.h: Likewise.
21505 * include/grub/mips/kernel.h: Likewise.
21506 * include/grub/mips/qemu-mips/kernel.h: Likewise.
21507 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
21508 * include/grub/powerpc/kernel.h: Likewise.
21509 * include/grub/sparc64/ieee1275/boot.h: Likewise.
21510 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
21511 * include/grub/sparc64/kernel.h: Likewise.
21512 * include/grub/x86_64/efi/kernel.h: Likewise.
21513 * include/grub/x86_64/kernel.h: Likewise.
21514 * include/grub/offsets.h: New file.
21515 * include/grub/kernel.h (grub_module_info): Split into ...
21516 (grub_module_info32): ... this.
21517 (grub_module_info64): ... and this.
21518 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_KERNEL_SEG): Moved from here ...
21519 * include/grub/offsets.h (GRUB_BOOT_I386_PC_KERNEL_SEG): ... here.
21520 (grub_boot_blocklist): Moved from here ...
21521 * include/grub/offsets.h (grub_pc_bios_boot_blocklist): ... here.
21522 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): Moved from here.
21523 * include/grub/offsets.h (GRUB_MEMORY_I386_PC_UPPER): .. here.
21524 * include/grub/types.h (grub_target_to_host16): Removed.
21525 (grub_target_to_host32): Likewise.
21526 (grub_target_to_host64): Likewise.
21527 (grub_host_to_target16): Likewise.
21528 (grub_host_to_target32): Likewise.
21529 (grub_host_to_target64): Likewise.
21530 (grub_host_to_target_addr): Likewise.
21532 Support grub-mkrescue for efi, coreboot and qemu.
21534 * conf/x86-efi.rmk (bin_SCRIPTS): Add grub-mkrescue.
21535 * kern/efi/init.c (grub_efi_set_prefix): Handle baked in prefix.
21536 * util/elf/grub-mkimage.c: Merged into util/grub-mkimage.c.
21537 * util/grub-mkrawimage.c: Moved from here ...
21538 * util/grub-mkimage.c: ... here. All users updated.
21539 (ALIGN_ADDR): Use image_target.
21540 (TARGET_NO_FIELD): New const.
21541 (image_target_desc): New type.
21542 (image_targets): New array.
21543 (grub_target_to_host64): Use image_target.
21544 (grub_target_to_host32): Likewise.
21545 (grub_target_to_host16): Likewise.
21546 (grub_host_to_target64): Likewise.
21547 (grub_host_to_target32): Likewise.
21548 (grub_host_to_target16): Likewise.
21549 (grub_host_to_target_addr): Likewise.
21550 (generate_image): Handle multiimage.
21551 (main): Require -O parameter. All users updated.
21552 * util/grub-mkimagexx.c: New file. Based on util/grub-mkrawimage.c and
21553 util/efi/grub-mkimage.c
21554 * util/grub-mkrescue.in: Handle coreboot, efi and qemu.
21555 New option --rom-directory.
21557 * util/i386/efi/grub-mkimage.c: Removed.
21558 * util/i386/pc/grub-setup.c (grub_target_to_host16): New definition.
21559 (grub_target_to_host32): Likewise.
21560 (grub_target_to_host64): Likewise.
21561 (grub_host_to_target16): Likewise.
21562 (grub_host_to_target32): Likewise.
21563 (grub_host_to_target64): Likewise.
21564 * util/sparc64/ieee1275/grub-setup.c (grub_target_to_host16): New definition.
21565 (grub_target_to_host32): Likewise.
21566 (grub_target_to_host64): Likewise.
21567 (grub_host_to_target16): Likewise.
21568 (grub_host_to_target32): Likewise.
21569 (grub_host_to_target64): Likewise.
21571 2010-05-17 BVK Chaitanya <bvk.groups@gmail.com>
21573 Source tree is reorganized for emu build.
21575 * include/grub/util/console.h: Move from here...
21576 * include/grub/emu/console.h: ...to here.
21577 * include/grub/util/getroot.h: Move from here...
21578 * include/grub/emu/getroot.h: ...to here.
21579 * include/grub/util/hostdisk.h: Move from here...
21580 * include/grub/emu/hostdisk.h: ...to here.
21581 * util/console.c: Move from here...
21582 * kern/emu/console.c: ...to here.
21583 * util/getroot.c: Move from here...
21584 * kern/emu/getroot.c: ...to here.
21585 * util/grub-emu.c: Move from here...
21586 * kern/emu/main.c: ...to here.
21587 * util/hostdisk.c: Move from here...
21588 * kern/emu/hostdisk.c: ...to here.
21589 * util/hostfs.c: Move from here...
21590 * kern/emu/hostfs.c: ...to here.
21591 * util/mm.c: Move from here...
21592 * kern/emu/mm.c: ...to here.
21593 * util/pci.c: Move from here...
21594 * bus/emu/pci.c: ...to here.
21595 * util/sdl.c: Move from here...
21596 * video/emu/sdl.c: ...to here.
21597 * util/time.c: Move from here...
21598 * kern/emu/time.c: ...to here.
21599 * util/usb.c: Move from here...
21600 * bus/usb/emu/usb.c: ...to here.
21602 * include/grub/emu/misc.h: New header for grub-emu functions.
21603 * kern/emu/misc.c: grub-emu functions separated from util/misc.c
21605 * conf/any-emu.rmk: Rule updates for above renames.
21606 * conf/common.rmk: Likewise.
21607 * conf/i386-pc.rmk: Likewise.
21608 * conf/i386-qemu.rmk: Likewise.
21609 * conf/mips.rmk: Likewise.
21610 * conf/sparc64-ieee1275.rmk: Likewise.
21611 * conf/x86-efi.rmk: Likewise.
21613 * disk/lvm.h: #include updates for above renames.
21614 * util/grub-mkrelpath.c: Likewise.
21615 * util/grub-probe.c: Likewise.
21616 * util/i386/pc/grub-setup.c: Likewise.
21617 * util/sparc64/ieee1275/grub-setup.c: Likewise.
21618 * kern/emu/console.c: Likewise.
21619 * kern/emu/getroot.c: Likewise.
21620 * kern/emu/hostdisk.c: Likewise.
21621 * kern/emu/main.c: Likewise. (was grub-emu.c earlier)
21623 * include/grub/dl.h: Remove grub_dl_{ref,unref}.
21624 * include/grub/util/misc.h: Move grub-emu functions to emu/misc.h.
21625 * kern/dl.c: Handle null mod in grub_dl_{ref,unref}.
21626 * util/misc.c: Remove grub-emu functions.
21628 2010-05-13 Vladimir Serbinenko <phcoder@gmail.com>
21631 Reported by: Thorsten Grützmacher.
21633 * gfxmenu/gui_circular_progress.c (circprog_destroy): Unregister
21635 (circprog_set_property): Register and unregister timeout hook.
21636 * gfxmenu/gui_label.c (grub_gui_label): New fields template and value.
21637 (label_destroy): Free template. and unregister hook.
21638 (label_set_state): New function.
21639 (label_set_property): Handle templates and hooks.
21640 * gfxmenu/gui_progress_bar.c (progress_bar_destroy): Unregister
21642 (progress_bar_set_property): Register and unregister timeout hook.
21643 * gfxmenu/view.c (TIMEOUT_COMPONENT_ID): Move from here ...
21644 * include/grub/gui.h (GRUB_GFXMENU_TIMEOUT_COMPONENT_ID): ...to here
21645 * gfxmenu/view.c (grub_gfxmenu_timeout_notifications): New variable.
21646 (update_timeout_visit): Removed.
21647 (update_timeouts): New function.
21648 (redraw_timeouts): Likewise.
21649 (grub_gfxmenu_print_timeout): Use update_timeouts and redraw_timeouts.
21650 (grub_gfxmenu_clear_timeout): Likewise.
21651 * include/grub/gui.h (grub_gfxmenu_set_state_t): New type.
21652 (grub_gfxmenu_timeout_notify): Likewise.
21653 (grub_gfxmenu_timeout_notifications): New external variable.
21654 (grub_gfxmenu_timeout_register): New function.
21655 (grub_gfxmenu_timeout_unregister): Likewise.
21657 2010-05-09 Vladimir Serbinenko <phcoder@gmail.com>
21659 Transform (broken) vga terminal into (working) vga video driver.
21661 * conf/i386-pc.rmk (vga_mod_SOURCES): Change term/i386/pc/vga.c to
21662 video/i386/pc/vga.c.
21663 * include/grub/video.h (grub_video_driver_id):
21664 Add GRUB_VIDEO_DRIVER_VGA.
21665 * term/i386/pc/vga.c: Renamed to ...
21666 * video/i386/pc/vga.c: ...this
21667 (DEBUG_VGA): Removed.
21668 (CHAR_WIDTH): Likewise.
21669 (CHAR_HEIGHT): Likewise.
21670 (TEXT_WIDTH): Likewise.
21671 (TEXT_HEIGHT): Likewise.
21672 (DEFAULT_FG_COLOR): Likewise.
21673 (DEFAULT_BG_COLOR): Likewise.
21674 (colored_char): Likewise.
21677 (cursor_state): Likewise.
21678 (fg_color): Likewise.
21679 (bg_color): Likewise.
21680 (text_buf): Likewise.
21683 (framebuffer): New variable.
21684 (set_read_map): Disabled.
21685 (setup): New variable.
21686 (is_target): Likewise.
21687 (grub_vga_mod_init): Likewise.
21688 (grub_vga_mod_fini): Likewise.
21689 (check_vga_mem): Likewise.
21690 (write_char): Likewise.
21691 (write_cursor): Likewise.
21692 (scroll_up): Likewise.
21693 (grub_vga_putchar): Likewise.
21694 (grub_vga_getcharwidth): Likewise.
21695 (grub_vga_getwh): Likewise.
21696 (grub_vga_getxy): Likewise.
21697 (grub_vga_gotoxy): Likewise.
21698 (grub_vga_cls): Likewise.
21699 (grub_vga_setcolorstate): Likewise.
21700 (grub_vga_setcursor): Likewise.
21701 (grub_video_vga_init): New function.
21702 (grub_video_vga_setup): Likewise.
21703 (grub_video_vga_fini): Likewise.
21704 (update_target): Likewise.
21705 (grub_video_vga_blit_bitmap): Likewise.
21706 (grub_video_vga_blit_render_target): Likewise.
21707 (grub_video_vga_set_active_render_target): Likewise.
21708 (grub_video_vga_get_active_render_target): Likewise.
21709 (grub_video_vga_swap_buffers): Likewise.
21710 (grub_video_vga_set_palette): Likewise.
21711 (grub_video_vga_get_info_and_fini): Likewise.
21712 (grub_vga_term): Removed.
21713 (grub_video_vga_adapter): New variable.
21714 (GRUB_MOD_INIT): Register a video driver instead of terminal.
21715 (GRUB_MOD_FINI): Unrefister a video driver instead of terminal.
21717 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21719 * video/readers/jpeg.c: Indented.
21721 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21723 Various jpeg cleanups.
21725 * video/readers/jpeg.c (grub_jpeg_get_huff_code): Use ARRAY_SIZE.
21726 (grub_jpeg_decode_quan_table): Use sizeof.
21727 (grub_jpeg_decode_du): Use ARRAY_SIZE.
21729 2010-05-05 Peter Hurley <No e-mail available> (tiny change)
21731 * video/readers/jpeg.c (grub_jpeg_decode_huff_table): Loop over all
21732 tables. Ignore non-last ac bit.
21733 (grub_jpeg_decode_quan_table): Likewise.
21735 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21737 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): New value
21738 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM.
21739 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set
21740 GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM on qemu.
21741 * kern/ieee1275/init.c (grub_claim_heap): Don0t allocate below
21742 1.5MiB if GRUB_IEEE1275_FLAG_NO_PRE1_5M_CLAIM is set.
21744 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21746 * term/ieee1275/ofconsole.c (grub_ofconsole_getkey): Fix off-by-one
21749 2010-05-05 Vladimir Serbinenko <phcoder@gmail.com>
21751 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Support C0 code.
21753 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21755 * commands/parttool.c (grub_cmd_parttool): Fix #if !GRUB_NO_MODULES
21758 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21760 * kern/mm.c (grub_real_malloc): Put magic and size assignment in common
21763 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21765 * kern/mm.c (grub_mm_init_region): Check for region size after aligning
21768 2010-05-03 Vladimir Serbinenko <phcoder@gmail.com>
21770 * kern/mm.c (grub_real_malloc): Fix size calculation when extra == 0.
21772 2010-05-01 Christian Franke <franke@computer.org>
21774 * util/grub-mkconfig_lib.in (make_system_path_relative_to_its_root):
21775 Remove broken Cygwin path conversion.
21776 * util/misc.c: [__CYGWIN__] Add include and define.
21777 [__CYGWIN__] (get_win32_path): Copy function from getroot.c, modify
21779 (make_system_path_relative_to_its_root): Simplify loop, replace early
21781 [__CYGWIN__] Add conversion to win32 path.
21782 Include "/" case in trailing slash removal.
21784 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21786 * kern/main.c (grub_load_config): Fix copy-pasted comment.
21787 Reported by: Seth Goldberg
21789 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21791 * commands/help.c (grub_cmd_help): Fix a typo.
21792 Reported by: Seth Goldberg
21794 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21796 * commands/hashsum.c (GRUB_MOD_INIT): Remove duplication of command
21798 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Likewise.
21799 * commands/iorw.c (GRUB_MOD_INIT): Likewise.
21800 * commands/password_pbkdf2.c (GRUB_MOD_INIT): Likewise.
21801 * commands/regexp.c (GRUB_MOD_INIT): Likewise.
21802 * commands/setpci.c (GRUB_MOD_INIT): Likewise.
21803 * commands/terminal.c (GRUB_MOD_INIT): Likewise.
21804 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
21805 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
21806 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
21807 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
21808 * normal/context.c (GRUB_MOD_INIT): Likewise.
21809 * normal/main.c (GRUB_MOD_INIT): Likewise.
21810 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
21811 * term/serial.c (GRUB_MOD_INIT): Likewise.
21812 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
21814 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21816 * kern/mm.c (grub_real_malloc): Satisfy alignment requirement when
21819 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21821 * commands/iorw.c: New file.
21822 * conf/i386.rmk (pkglib_MODULES): Add iorw.mod.
21823 (iorw_mod_SOURCES): New variable.
21824 (iorw_mod_CFLAGS): Likewise.
21825 (iorw_mod_LDFLAGS): Likewise.
21827 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21831 * include/grub/menu.h (grub_menu_entry): New field 'hotkey'.
21832 * normal/main.c (hotkey_aliases): New variable.
21833 (grub_normal_add_menu_entry): Parse "--hotkey".
21834 * normal/menu_text.c (run_menu): Handle hotkeys.
21836 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21838 * kern/i386/coreboot/init.c (grub_machine_init): Call
21839 grub_machine_mmap_init on qemu.
21841 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21843 * boot/i386/qemu/boot.S: Add a missing .code16.
21845 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21847 Use LBIO on coreboot.
21849 * conf/i386-coreboot.rmk (kernel_img_SOURCES): Change
21850 kern/i386/multiboot_mmap.c to kern/i386/coreboot/mmap.c.
21851 * include/grub/i386/coreboot/memory.h (GRUB_LINUXBIOS_MEMBER_LINK):
21853 * kern/i386/coreboot/init.c (grub_machine_init): Don't call
21854 grub_machine_mmap_init on coreboot.
21855 * kern/i386/coreboot/mmap.c (grub_linuxbios_table_iterate): Handle
21856 GRUB_LINUXBIOS_MEMBER_LINK.
21857 (grub_machine_mmap_iterate): Fix declaration.
21858 * kern/i386/coreboot/startup.S: Don't save mbi location on coreboot.
21860 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21862 Split coreboot and multiboot ports.
21864 * conf/i386-multiboot.rmk: New file.
21865 * configure.ac: Add multiboot port.
21866 * include/grub/i386/multiboot/boot.h: New file.
21867 * include/grub/i386/multiboot/console.h: Likewise.
21868 * include/grub/i386/multiboot/init.h: Likewise.
21869 * include/grub/i386/multiboot/kernel.h: Likewise.
21870 * include/grub/i386/multiboot/loader.h: Likewise.
21871 * include/grub/i386/multiboot/memory.h: Likewise.
21872 * include/grub/i386/multiboot/serial.h: Likewise.
21873 * include/grub/i386/multiboot/time.h: Likewise.
21874 * include/grub/multiboot.h: Add GRUB_MACHINE_MULTIBOOT to ifdef.
21875 * loader/multiboot.c: Likewise.
21876 * loader/multiboot_mbi2.c: Likewise.
21877 * util/grub-mkrescue.in: Generate multiboot rescue.
21879 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21881 * kern/parser.c (grub_parser_execute): Cope with read-only config.
21883 2010-05-01 Vladimir Serbinenko <phcoder@gmail.com>
21885 Merge handling of input and output terminals. Fix a hang.
21887 * commands/terminal.c (abstract_terminal): New struct.
21888 (handle_command): New function. Based on grub_cmd_terminal_input.
21889 (grub_cmd_terminal_input): Use handle_command.
21890 (grub_cmd_terminal_output): Use handle_command.
21892 2010-05-01 BVK Chaitanya <bvk.groups@gmail.com>
21894 Fix comment handling.
21896 * tests/grub_script_comments.in: New testcase.
21897 * conf/tests.rmk: Rules for new testcase.
21898 * script/yylex.l: Updated flex rules.
21900 2010-04-28 Samuel Thibault <samuel.thibault@ens-lyon.org>
21902 * docs/grub.texi (play): Document that zero pitches produce rests.
21903 * commands/i386/pc/play.c (grub_cmd_play): Call 'grub_file_open' only
21906 2010-04-27 Vladimir Serbinenko <phcoder@gmail.com>
21908 * conf/x86-efi.rmk (linux_mod_SOURCES): Write explicitly to avoid
21911 2010-04-26 Christian Franke <franke@computer.org>
21913 * include/grub/util/getroot.h (grub_get_prefix): Remove prototype.
21914 * util/getroot.c [__CYGWIN__] (get_win32_path): Remove function.
21915 (grub_get_prefix): Remove function.
21916 * util/grub-emu.c (main): Replace grub_get_prefix () call by
21917 make_system_path_relative_to_its_root ().
21918 * util/sparc64/ieee1275/grub-setup.c (main): Likewise.
21920 2010-04-24 Christian Franke <franke@computer.org>
21922 * Makefile.in (TARGET_LDFLAGS): Add -static-libgcc.
21923 (kernel_img_LDFLAGS): Remove -static-libgcc.
21925 2010-04-24 Christian Franke <franke@computer.org>
21927 * configure.ac: Do not CHECK_BSS_START_SYMBOL
21928 and CHECK_END_SYMBOL if grub-emu is built.
21929 Unset TARGET_OBJ2ELF if grub-emu is built
21930 without module support.
21932 2010-04-24 Jiro SEKIBA <jir@unicus.jp>
21936 * conf/common.rmk (grub_probe_SOURCES): Add fs/nilfs2.c.
21937 (grub_fstest_SOURCES): Likewise.
21938 (pkglib_MODULES): Add nilfs2.mod.
21939 (nilfs2_mod_SOURCES): New variable.
21940 (nilfs2_mod_CFLAGS): Likewise.
21941 (nilfs2_mod_LDFLAGS): Likewise.
21942 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21943 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add fs/nilfs2.c.
21944 * fs/nilfs2.c: New file.
21946 2010-04-21 Vladimir Serbinenko <phcoder@gmail.com>
21948 * configure.ac: Refuse to compile for x86_64-efi is mcmodel=large
21951 2010-04-19 Grégoire Sutre <gregoire.sutre@gmail.com>
21953 Add grub-mkconfig support for NetBSD.
21955 * util/grub.d/10_netbsd.in: grub-mkconfig helper script for NetBSD.
21956 * util/grub-mkconfig.in: export new NetBSD specific variables.
21957 * po/POTFILES-shell: added 10_netbsd.in.
21958 * util/grub-mkconfig_lib.in: check for gettext binary, default to echo.
21960 2010-04-19 BVK Chaitanya <bvk.groups@gmail.com>
21962 Fix emu build with grub-emu-pci and grub-emu-modules.
21964 * include/grub/util/misc.h: Export grub_util_{info,error,warn}
21966 * include/grub/libpciaccess.h: New file.
21967 * conf/any-emu.rmk: Update kernel headers for emu build.
21969 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21971 * fs/udf.c (grub_udf_iterate_dir): Silence a spurious warning.
21973 2010-04-19 Vladimir Serbinenko <phcoder@gmail.com>
21975 * fs/udf.c (grub_udf_iterate_dir): Decode the Unicode filenames.
21977 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
21979 * boot/sparc64/ieee1275/boot.S: Various size-reducing changes.
21980 Retrieve chosen/bootpath if bootpath isn't hardcoded.
21981 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Add
21982 util/ieee1275/ofpath.c.
21983 * util/sparc64/ieee1275/grub-ofpathname.c: Renamed to ...
21984 * util/ieee1275/grub-ofpathname.c: ... this. All users updated
21985 * include/grub/sparc64/ieee1275/boot.h
21986 (GRUB_BOOT_MACHINE_KERNEL_SECTOR): Renamed to ...
21987 (GRUB_BOOT_MACHINE_KERNEL_BYTE): ...this. Moved 8 bytes lower.
21988 * util/hostdisk.c (grub_util_biosdisk_get_osdev): New function.
21989 * util/ieee1275/ofpath.c (grub_util_devname_to_ofpath): Make argument
21991 * util/sparc64/ieee1275/grub-setup.c (compute_dest_ofpath): Removed.
21992 (setup): Use KERNEL_BYTE instead of KERNEL_SECTOR.
21993 Use grub_util_devname_to_ofpath. Zero-fill boot_devpath on same disk
21996 2010-04-18 Grégoire Sutre <gregoire.sutre@gmail.com>
21998 * util/grub-mkconfig.in: Corrected two == equality tests.
21999 Set grub_prefix as in grub-install for NetBSD and OpenBSD.
22000 * configure.ac: All definitions and uses of TARGET_IMG_LDFLAGS_AC now
22001 expect a number appended to it.
22002 * acinclude.m4 (grub_PROG_OBJCOPY_ABSOLUTE): ${TARGET_IMG_LDFLAGS_AC}
22003 expects a number appended to it.
22005 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22007 * po/POTFILES: Renamed multiboot_loader.c to multiboot.c
22009 2010-04-18 Vladimir Serbinenko <phcoder@gmail.com>
22011 * util/hostdisk.c (make_device_name): Change to new partition naming.
22013 2010-04-17 Vladimir Serbinenko <phcoder@gmail.com>
22015 * disk/lvm.c (grub_lvm_memberlist): Issue an error if pv->disk = 0.
22017 2010-04-17 Christian Franke <franke@computer.org>
22019 * Makefile.in: Add missing localedir setting.
22021 2010-04-14 Colin Watson <cjwatson@ubuntu.com>
22023 Restore TEXTDOMAINDIR correction from r1889, lost apparently by
22024 mistake in r2156. Noticed by Anthony Fok.
22026 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased
22028 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
22030 2010-04-14 BVK Chaitanya <bvk.groups@gmail.com>
22032 Fix a spurious, uninitialized variable warning.
22034 * loader/i386/bsdXX.c (grub_freebsd_load_elfmodule_obj):
22035 Initialize variable, shdr.
22036 (grub_freebsd_load_elfmodule): Likewise.
22037 (grub_freebsd_load_elf_meta): Likewise.
22039 2010-04-13 BVK Chaitanya <bvk.groups@gmail.com>
22041 Fix for escaped dollar in double quoted strings.
22043 * script/yylex.l: Updated flex rules.
22044 * conf/tests.rmk: Rule for new testcase.
22045 * tests/grub_script_dollar.in: New testcase.
22047 2010-04-13 Carles Pina i Estany <carles@pina.cat>
22048 2010-04-13 Colin Watson <cjwatson@ubuntu.com>
22050 Enclose all translated strings in grub.cfg in single quotes, and
22051 escape them appropriately (Ubuntu bug #552921).
22053 * util/grub-mkconfig_lib.in (gettext_quoted): New function.
22054 * util/grub.d/10_hurd.in: Use it.
22055 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
22056 * util/grub.d/10_linux.in (linux_entry): Likewise.
22058 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22060 Fix cygwin compilation.
22062 * configure.ac: Define NEED_REGISTER_FRAME_INFO.
22063 * include/grub/misc.h (__register_frame_info)
22064 [NEED_REGISTER_FRAME_INFO && !UTIL]: New export.
22065 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22066 * kern/misc.c (__register_frame_info)
22067 [NEED_REGISTER_FRAME_INFO && !UTIL]: New empty function.
22068 (__deregister_frame_info) [NEED_REGISTER_FRAME_INFO && !UTIL]: Likewise.
22070 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22072 * configure.ac: Respect grub_cv_asm_uscore when defining dummy symbols.
22074 2010-04-11 Vladimir Serbinenko <phcoder@gmail.com>
22076 Unify libgcc processing.
22078 * Makefile.in (kernel_img_LDFLAGS): New variable.
22079 * conf/common.rmk (kernel_img_HEADERS): Add libgcc.h.
22080 * conf/i386-coreboot.rmk (kernel_img_LDFLAGS): Append instead of
22082 * conf/i386-ieee1275.rmk (kernel_img_LDFLAGS): Likewise.
22083 * conf/i386-pc.rmk (kernel_img_LDFLAGS): Likewise.
22084 * conf/i386-qemu.rmk (kernel_img_LDFLAGS): Likewise.
22085 * conf/x86-efi.rmk (kernel_img_LDFLAGS): Likewise.
22086 * conf/mips-qemu-mips.rmk (kernel_img_LDFLAGS): Append instead of
22087 overwriting. Remove -lgcc and -static-libgcc
22088 * conf/mips-yeeloong.rmk (kernel_img_LDFLAGS): Likewise.
22089 * conf/mips.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22090 * conf/powerpc-ieee1275.rmk (kernel_img_HEADERS): Remove cpu/libgcc.h
22091 (kernel_img_LDFLAGS): Append instead of overwriting.
22092 Remove -lgcc and -static-libgcc
22093 * conf/sparc64-ieee1275.rmk: Likewise.
22094 * include/grub/powerpc/libgcc.h: Move to ...
22095 * include/grub/libgcc.h: .. this.
22096 * include/grub/libgcc.h: Don't export most of the function on x86.
22097 (__bswapsi2): New export.
22098 (__bswapdi2): Likewise.
22099 * include/grub/mips/libgcc.h: Removed.
22100 * include/grub/sparc64/libgcc.h: Likewise.
22102 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22104 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Remove
22105 disk_info_msg (conflicts with gettexting into languages with cases).
22107 2010-04-10 Grégoire Sutre <gregoire.sutre@gmail.com>
22109 Add grub-probe support for NetBSD.
22111 * util/getroot.c (find_root_device): Convert block device to
22112 character device on NetBSD.
22113 * util/probe.c (probe): Require character device on NetBSD.
22114 * util/hostdisk.c: NetBSD specific headers.
22115 (configure_device_driver): new function to tune device driver
22116 parameters (currently only for NetBSD floppy driver).
22117 (grub_util_biosdisk_open): NetBSD specific code (get disk size
22118 via disklabel ioctl).
22119 (open_device): call configure_device_driver on NetBSD.
22120 (convert_system_partition_to_system_disk): NetBSD specific code.
22121 (device_is_wholedisk): Likewise.
22122 (grub_util_biosdisk_get_grub_dev): Likewise.
22123 (make_device_name): Fixed a typo in bsd_part_str.
22124 * configure.ac: check for opendisk() and getrawpartition() on
22125 NetBSD and set LIBUTIL.
22126 * Makefile.in: add LIBUTIL to LIBS.
22128 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22132 * util/grub-script-check.c: Better help message.
22134 2010-04-10 BVK Chaitanya <bvk.groups@gmail.com>
22138 * configure.ac: Flex version check.
22139 * conf/common.rmk: Add -Wno-error to sh.mod.
22140 * script/yylex.l: Remove all #pragma.
22142 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22144 * include/grub/util/misc.h (canonicalise_file_name): Add missing
22146 Reported by: Seth Goldberg.
22148 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22150 * loader/multiboot.c (GRUB_MOD_INIT) [GRUB_USE_MULTIBOOT2]:
22151 Rename "module" to "module2".
22152 Reported by: Seth Goldberg.
22154 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22156 * include/grub/efi/memory.h (grub_machine_mmap_iterate): Remove
22158 Reported by: Seth Goldberg.
22160 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22162 * lib/posix_wrap/locale.h: Add missing file.
22163 Reported by: Seth Goldberg.
22165 2010-04-10 Vladimir Serbinenko <phcoder@gmail.com>
22167 grub-emu module load support.
22169 * Makefile.in (TARGET_NO_MODULES): New variable. All users of
22170 NO_DYNAMIC_MODULES switched to this.
22171 (TARGET_CFLAGS): Add -DGRUB_TARGET_NO_MODULES=1 if applicable.
22172 (CFLAGS): Likewise.
22173 * conf/any-emu.rmk: Generate symlist.
22174 (kernel_img_HEADERS): Add util/datetime.h.
22175 (kernel_img_HEADERS) [sdl]: Add sdl.h.
22176 (kernel_img_HEADERS) [libusb]: Add libusb.h.
22177 (kernel_img_SOURCES) [TARGET_NO_MODULES = no && !x86]: Add
22178 kern/$(target_cpu)/cache.S.
22179 * configure.ac (grub-emu-modules): New option.
22180 * genmk.rb: Handle multiple source lists.
22181 * include/grub/sdl.h: New file.
22182 * include/grub/libusb.h: Likewise.
22183 * util/grub-emu.c (main): Hanle (host) root.
22184 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Error with
22185 GRUB_ERR_UNKNOWN_DEVICE.
22186 * util/misc.c: Move mm functions to ...
22187 * util/mm.c: ... here. All users updated.
22189 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22191 * Makefile.in (RMKFILES): Search in srcdir and not current directory.
22192 (MAINTAINER_CLEANFILES): Don't add $(srcdir) to MKFILES. Add few
22194 (maintainer-clean): Remove libgcrypt-grub.
22196 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22198 * term/efi/console.c (grub_console_checkkey): Macroify key contants.
22200 2010-04-09 EFI Coder <eficoder@hotmail.com>
22202 * normal/menu_text.c (print_message): Clean up the message and show
22203 the Fn information when on EFI
22204 * term/efi/console.c (grub_console_checkkey): Add F4 support.
22206 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22208 * normal/autofs.c (read_fs_list): New parameter 'prefix'.
22210 * normal/crypto.c (read_crypto_list): Likewise.
22211 * normal/dyncmd.c (read_command_list): Likewise.
22212 * normal/term.c (read_terminal_list): Likewise.
22213 * normal/main.c (read_lists): Use explicit prefix.
22214 (read_lists_hook): Use read_lists.
22215 (grub_normal_execute): Likewise.
22217 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22219 * util/grub-mkrescue.in: Fix incorrect path in coreboot part.
22220 Reported by: Thomas Schmitt.
22221 Add -no-emul-boot to grub-mkisofs parameters.
22223 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22225 * font/font.c: Indented.
22227 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22229 Elif support to GRUB script (by Deepak Vankadaru).
22231 * tests/grub_script_if.in: New testcase.
22232 * conf/tests.rmk: Rule for new testcase.
22233 * script/parser.y: Grammar rules for elif.
22235 2010-04-09 BVK Chaitanya <bvk.groups@gmail.com>
22237 While and until loops support to GRUB script.
22239 * include/grub/script_sh.h (grub_script_cmdwhile): New struct.
22240 (grub_script_create_cmdwhile): New function prototype.
22241 (grub_script_execute_cmdwhile): New function prototype.
22242 * script/execute.c (grub_script_execute_cmdwhile): New function.
22243 * script/parser.y (command): New commands.
22244 (whilecmd): New grammar rule.
22245 (untilcmd): New grammar rule.
22246 * script/script.c (grub_script_create_cmdwhile): New function.
22247 * util/grub-script-check.c (grub_script_execute_cmdwhile): New
22250 * tests/grub_script_while1.in: New testcase.
22251 * conf/tests.rmk: Rule for new testcase.
22253 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22255 * util/grub.d/00_header.in: Add few missing quotes. Recognise *.jpeg
22258 2010-04-09 Mario Vazquez <mariovazq@gmail.com>
22260 GRUB_BACKGROUND support.
22262 * util/grub-mkconfig.in: Export GRUB_BACKGROUND.
22263 * util/grub.d/00_header.in: Parse GRUB_BACKGROUND.
22265 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22267 Load fonts and modules for gfxmenu in grub-mkconfig.
22268 Idea by: Mario Vazquez
22270 * util/grub.d/00_header.in: Load pf2 and image modules.
22272 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22274 grub-mkconfig multiple terminal support.
22276 * util/grub-mkconfig.in: Handle multiple terminals correctly.
22277 * util/grub.d/00_header.in: Likewise.
22279 2010-04-09 Vladimir Serbinenko <phcoder@gmail.com>
22281 * Makefile.in: Specify files explicitly instead of using $< and $@ since
22282 we use cd $(srcdir).
22284 2010-04-08 Colin Watson <cjwatson@ubuntu.com>
22286 * util/grub.d/10_linux.in: Only use the first word of
22287 GRUB_DISTRIBUTOR for --class, to avoid problems if somebody puts
22288 spaces in GRUB_DISTRIBUTOR.
22289 * util/grub.d/10_kfreebsd.in: Likewise.
22290 * util/grub.d/10_hurd.in: Likewise.
22292 2010-04-06 BVK Chaitanya <bvk.groups@gmail.com>
22294 Fix unit testing framework for Qemu 0.12.
22296 * tests/util/grub-shell.in: Remove -serial stdio option.
22298 2010-04-06 Vladimir Serbinenko <phcoder@gmail.com>
22300 POSIX header file wrappers.
22302 * lib/posix_wrap/assert.h: New file. Wrapper for its POSIX
22304 * lib/posix_wrap/ctype.h: Likewise.
22305 * lib/posix_wrap/errno.h: Likewise.
22306 * lib/posix_wrap/langinfo.h: Likewise.
22307 * lib/posix_wrap/limits.h: Likewise.
22308 * lib/posix_wrap/localcharset.h: Likewise.
22309 * lib/posix_wrap/stdint.h: Likewise.
22310 * lib/posix_wrap/stdio.h: Likewise.
22311 * lib/posix_wrap/stdlib.h: Likewise.
22312 * lib/posix_wrap/string.h: Likewise.
22313 * lib/posix_wrap/sys/types.h: Likewise.
22314 * lib/posix_wrap/unistd.h: Likewise.
22315 * lib/posix_wrap/wchar.h: Likewise.
22316 * lib/posix_wrap/wctype.h: Likewise.
22317 * conf/common.rmk (grub_script.yy.c): Remove #include elimination.
22318 (grub_script.yy.h): Likewise.
22319 * script/yylex.l: Remove POSIX emulation #defines.
22320 * Makefile.in (POSIX_CFLAGS): New variable.
22321 (GNULIB_UTIL_CFLAGS): Likewise.
22325 * conf/common.rmk (pkglib_MODULES): Add regexp.mod.
22326 (regexp_mod_SOURCES): New variable.
22327 (regexp_mod_CFLAGS): Likewise.
22328 (regexp_mod_LDFLAGS): Likewise.
22329 * commands/regexp.c: New file.
22330 * gnulib/regcomp.c: New file. Imported from gnulib.
22331 * gnulib/regex.c: Likewise.
22332 * gnulib/regex_internal.c: Likewise.
22333 * gnulib/regex_internal.h: Likewise.
22334 * gnulib/regexec.c: Likewise.
22335 * gnulib/regex.h: Likewise.
22337 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22339 * loader/i386/multiboot_mbi.c (grub_multiboot_load): Correctly report
22340 unsupported video mode types.
22342 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22344 * kern/i386/pc/startup.S (grub_getrtsecs): Removed (dead code).
22346 2010-04-05 Vladimir Serbinenko <phcoder@gmail.com>
22348 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Don't export.
22349 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove machine/init.h.
22351 2010-04-04 Vladimir Serbinenko <phcoder@gmail.com>
22353 Remove unused grub_vga_get_font.
22355 * kern/i386/pc/startup.S (grub_vga_get_font): Removed.
22356 * include/grub/i386/pc/vga.h (grub_vga_get_font): Likewise.
22358 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22360 * kern/misc.c: Disable the __enable_execute_stack hack for utilities.
22361 * include/grub/misc.h: Likewise.
22363 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22365 * util/grub-install.in: Add `|| exit 1' to all grub-probe calls
22366 for which failure is fatal.
22368 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22370 * util/grub-install.in: Use mkdir -p to create grub directory.
22371 * util/i386/efi/grub-install.in: Likewise.
22372 * util/ieee1275/grub-install.in: Likewise.
22374 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22376 * Makefile.in (LEX): new variable.
22378 2010-04-03 Grégoire Sutre <gregoire.sutre@gmail.com>
22380 * util/i386/efi/grub-dumpdevtree: replaced the non-portable `==' by
22381 `=' and added double quotes on operands of this equality test.
22383 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22385 * Makefile.in (uninstall): Remove a leftover debug echo.
22386 Reported by: Grégoire Sutre
22388 2010-04-03 Vladimir Serbinenko <phcoder@gmail.com>
22390 MIPS multiboot2 support.
22392 * conf/mips.rmk (pkglib_MODULES): Add multiboot2.mod.
22393 (multiboot2_mod_SOURCES): New variable.
22394 (multiboot2_mod_CFLAGS): Likewise.
22395 (multiboot2_mod_LDFLAGS): Likewise.
22396 (multiboot2_mod_ASFLAGS): Likewise.
22397 * include/grub/i386/multiboot.h (MULTIBOOT_INITIAL_STATE): New
22399 (MULTIBOOT_ENTRY_REGISTER): Likewise.
22400 (MULTIBOOT_MBI_REGISTER): Likewise.
22401 (MULTIBOOT_ARCHITECTURE_CURRENT): Likewise.
22402 (MULTIBOOT_ELF32_MACHINE): Likewise.
22403 (MULTIBOOT_ELF64_MACHINE): Likewise.
22404 * include/grub/mips/multiboot.h: New file.
22405 * include/grub/video.h (grub_video_driver_id): New type
22406 GRUB_VIDEO_DRIVER_SM712.
22407 (grub_video_get_info_and_fini): Export.
22408 (grub_video_get_palette): Likewise.
22409 (grub_video_get_driver_id): Likewise.
22410 * include/multiboot2.h: Resynced with spec.
22411 * loader/i386/multiboot.c: Moved from here ...
22412 * loader/multiboot.c: ... here. All users updated.
22413 (grub_multiboot_boot): Use platform-specific macros.
22414 * loader/i386/multiboot_elfxx.c: Moved from here ...
22415 * loader/multiboot_elfxx.c: ... here. All users updated.
22416 (E_MACHINE): Use MULTIBOOT_ELF32_MACHINE and MULTIBOOT_ELF64_MACHINE.
22417 * loader/i386/multiboot_mbi2.c (grub_multiboot_load): Check arcitecture.
22418 * video/sm712.c (grub_video_sm712_adapter): Add missing id field.
22420 2010-04-02 Vladimir Serbinenko <phcoder@gmail.com>
22422 Import gnulib argp module.
22424 * gnulib/argp-ba.c: New file.
22425 * gnulib/argp-eexst.c: Likewise.
22426 * gnulib/argp-fmtstream.c: Likewise.
22427 * gnulib/argp-fmtstream.h: Likewise.
22428 * gnulib/argp-fs-xinl.c: Likewise.
22429 * gnulib/argp-help.c: Likewise.
22430 * gnulib/argp-namefrob.h: Likewise.
22431 * gnulib/argp-parse.c: Likewise.
22432 * gnulib/argp-pin.c: Likewise.
22433 * gnulib/argp-pv.c: Likewise.
22434 * gnulib/argp-pvh.c: Likewise.
22435 * gnulib/argp-version-etc.c: Likewise.
22436 * gnulib/argp-version-etc.h: Likewise.
22437 * gnulib/argp-xinl.c: Likewise.
22438 * gnulib/argp.h: Likewise.
22440 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22442 * kern/device.c (grub_device_iterate): Clear errors after failed
22445 2010-03-31 Vladimir Serbinenko <phcoder@gmail.com>
22447 * kern/ieee1275/openfw.c (grub_children_iterate): Skip device itself if
22448 returned by firmware.
22450 2010-03-30 Vladimir Serbinenko <phcoder@gmail.com>
22452 * loader/i386/multiboot_mbi2.c (retrieve_video_parameters): Fix
22453 compilation on coreboot and qemu
22455 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22457 * include/multiboot2.h: Resync with spec.
22459 2010-03-28 Vladimir Serbinenko <phcoder@gmail.com>
22461 Multiboot2 tag support
22463 * conf/i386.rmk (multiboot2_mod_SOURCES): Replace
22464 loader/i386/multiboot_mbi.c with loader/i386/multiboot_mbi2.c.
22465 Remove loader/multiboot_loader.c.
22466 * include/grub/i386/multiboot.h (grub_multiboot_real_boot): Removed.
22467 (grub_multiboot2_real_boot): Likewise.
22468 * include/grub/multiboot.h (grub_multiboot_set_accepts_video): Removed.
22469 (grub_get_multiboot_mmap_count): New proto.
22470 (grub_fill_multiboot_mmap): Likewise.
22471 (grub_multiboot_set_video_mode): Likewise.
22472 (grub_multiboot_set_console): Likewise.
22473 (grub_multiboot_load): Likewise.
22474 (grub_multiboot_load_elf): Likewise.
22475 (GRUB_MULTIBOOT_CONSOLE_EGA_TEXT): New definition.
22476 (GRUB_MULTIBOOT_CONSOLE_FRAMEBUFFER): Likewise.
22477 * include/multiboot.h: Resynced with specification.
22478 * include/multiboot2.h: Resynced with specification.
22479 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): Moved from here...
22480 * loader/i386/multiboot.c (DEFAULT_VIDEO_MODE): ... here.
22481 * loader/i386/multiboot_mbi.c (HAS_VGA_TEXT): Moved from here ..
22482 * include/grub/multiboot.h (GRUB_MACHINE_HAS_VGA_TEXT): ... here. All
22484 * loader/i386/multiboot_mbi.c (accepts_video): Moved from here...
22485 * loader/i386/multiboot.c (accepts_video): ... here. All users updated.
22486 * loader/i386/multiboot_mbi.c (grub_multiboot_set_accepts_video):
22488 * loader/i386/multiboot_mbi.c (grub_get_multiboot_mmap_len):
22490 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): ... here.
22491 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap):
22493 * loader/i386/multiboot.c (grub_fill_multiboot_mmap): ... here.
22494 * loader/i386/multiboot_mbi.c (set_video_mode): Moved from here...
22495 * loader/i386/multiboot.c (grub_multiboot_set_video_mode): ... here.
22497 * loader/i386/multiboot_mbi2.c: New file.
22499 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22501 Resync with gnulib.
22503 * Makefile.in (GNULIB_CFLAGS): New variable.
22504 * conf/common.rmk (grub_mkisofs_CFLAGS): Add GNULIB_CFLAGS.
22505 (grub_script_check_CFLAGS): New variable.
22506 * gnulib/alloca.h: Resync with gnulib.
22507 * gnulib/error.c: Likewise.
22508 * gnulib/error.h: Likewise.
22509 * gnulib/fnmatch.c: Likewise.
22510 * gnulib/fnmatch_loop.c: Likewise.
22511 * gnulib/getdelim.c: Likewise.
22512 * gnulib/getline.c: Likewise.
22513 * gnulib/getopt.c: Likewise.
22514 * gnulib/getopt1.c: Likewise.
22515 * gnulib/getopt_int.h: Likewise.
22516 * gnulib/gettext.h: Likewise.
22517 * gnulib/progname.c: Likewise.
22518 * gnulib/progname.h: Likewise.
22520 2010-03-27 Grégoire Sutre <gregoire.sutre@gmail.com>
22522 Fix a build failure (-Wundef -Werror) when ENABLE_NLS is not defined,
22523 which is the case with --disabled-nls.
22525 * include/grub/i18n.h: Use (defined(ENABLE_NLS)
22526 && ENABLE_NLS) instead of ENABLE_NLS in all #if preprocessor macros.
22527 * util/misc.c: Likewise.
22528 * util/mkisofs/mkisofs.c: Likewise.
22529 * util/mkisofs/mkisofs.h: Likewise.
22531 2010-03-27 Vladimir Serbinenko <phcoder@gmail.com>
22533 Simplify Apple CC support.
22535 * commands/i386/pc/drivemap_int13h.S: Use LOCAL when possible.
22536 Add 0 byte at the end not to have a symbol with empty target.
22537 * mmap/i386/pc/mmap_helper.S: Likewise.
22538 * genmk.rb: Ignore errors 2030 and 2050.
22539 * kern/i386/pc/startup.S: Use LOCAL when possible.
22541 2010-03-26 BVK Chaitanya <bvk.groups@gmail.com>
22543 Testcase and the fix for final semicolon on cmdline.
22545 * tests/grub_script_final_semicolon.in: New testcase.
22546 * conf/tests.rmk: Rules for the new testcase.
22547 * script/parser.y: Grammar fix.
22549 2010-03-26 BVK Chaitanya <bvk@localhost>
22551 Blank lines testcase for GRUB script.
22553 * tests/grub_script_blanklines.in: New testcase.
22554 * conf/tests.rmk: Rules for the new testcase.
22556 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22558 Don't use __FILE__.
22560 * genmk.rb: Add -DGRUB_FILE to all C targets.
22561 * fs/reiserfs.c: Replace __FILE__ with GRUB_FILE.
22562 * include/grub/list.h: Likewise.
22563 * include/grub/misc.h: Likewise.
22564 * include/grub/mm.h: Likewise.
22565 * include/grub/test.h: Likewise.
22566 * kern/mm.c: Likewise.
22567 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
22569 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22571 Sunpc partitions support.
22573 * conf/common.rmk (grub_probe_SOURCES): Add partmap/sunpc.c.
22574 (grub_fstest_SOURCES): Likewise.
22575 (pkglib_MODULES): Add part_sunpc.mod.
22576 (part_sunpc_mod_SOURCES): New variable.
22577 (part_sunpc_mod_CFLAGS): Likewise.
22578 (part_sunpc_mod_LDFLAGS): Likewise.
22579 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/sunpc.c.
22580 * partmap/sunpc.c: New file.
22582 2010-03-26 BVK Chaitanya <bvk@localhost>
22584 For loop support to GRUB script.
22586 * include/grub/script_sh.h (grub_script_cmdfor): New struct.
22587 (grub_script_create_cmdfor): New function prototype.
22588 (grub_script_execute_cmdfor): New function prototype.
22589 * script/execute.c (grub_script_execute_cmdfor): New function.
22590 * script/parser.y (command): New for command.
22591 (forcmd): New grammar rule.
22592 * script/script.c (grub_script_create_cmdfor): New function.
22593 * util/grub-script-check.c (grub_script_execute_cmdfor): New
22595 * tests/grub_script_for1.in: New testcase.
22596 * conf/tests.rmk: Rules for new testcase.
22598 2010-03-26 Vladimir Serbinenko <phcoder@gmail.com>
22602 * commands/blocklist.c (grub_cmd_blocklist): Don't check whether
22603 'partition' is NULL, grub_partition_get_start already does that.
22604 * commands/loadenv.c (check_blocklists): Likewise.
22605 (write_blocklists): Likewise.
22606 * conf/common.rmk (grub_probe_SOURCES): Add partmap/bsdlabel.c.
22607 (grub_fstest_SOURCES): Likewise.
22608 (pkglib_MODULES): Add part_bsd.mod.
22609 (part_bsd_mod_SOURCES): New variable.
22610 (part_bsd_mod_CFLAGS): Likewise.
22611 (part_bsd_mod_LDFLAGS): Likewise.
22612 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/bsdlabel.c.
22613 (grub_emu_SOURCES): Likewise.
22614 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
22615 * include/grub/bsdlabel.h: New file.
22616 * include/grub/partition.h (grub_partition_map): Remove 'probe' and
22618 (grub_partition): Add 'parent' and 'number'. Remove 'data'.
22619 (grub_partition_map_list): New variable.
22620 (grub_partition_map_register): Inline.
22621 (grub_partition_map_unregister): Likewise.
22622 (FOR_PARTITION_MAPS): New macro.
22623 (grub_partition_map_iterate): Removed.
22624 (grub_partition_get_start): Handle nested partitions.
22625 * include/grub/msdos_partition.h: Remove bsd-related entries.
22626 (grub_pc_partition): Remove.
22627 * kern/disk.c (grub_disk_close): Free partition data.
22628 (grub_disk_adjust_range): Handle nested partitions.
22629 * kern/partition.c (grub_partition_map_probe): New function.
22630 (grub_partition_probe): Parse name to number, handle subpartitions.
22631 (get_partmap): New function.
22632 (grub_partition_iterate): Handle subpartitions.
22633 (grub_partition_get_name): Likewise.
22634 * loader/i386/pc/bsd.c (grub_bsd_get_device): Likewise.
22635 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): Likewise.
22636 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): Likewise.
22637 * partmap/acorn.c (acorn_partition_map_iterate): Don't force raw access.
22639 (acorn_partition_map_probe): Remove.
22640 (acorn_partition_map_get_name): Likewise.
22641 * partmap/amiga.c (amiga_partition_map_iterate): Don't force raw access.
22643 Set 'index' to 0 since there can be only one partition entry per sector.
22644 (amiga_partition_map_probe): Remove.
22645 (amiga_partition_map_get_name): Likewise.
22646 * partmap/apple.c (apple_partition_map_iterate): Don't force raw access.
22648 Set 'offset' and 'index' to real positions of partitions.
22649 (apple_partition_map_probe): Remove.
22650 (apple_partition_map_get_name): Likewise.
22651 * partmap/bsdlabel.c: New file.
22652 * partmap/gpt.c (gpt_partition_map_iterate): Don't force raw access.
22654 Allocate 'data' so it can be correctly freed.
22655 Set 'index' to offset inside sector.
22656 (gpt_partition_map_probe): Remove.
22657 (gpt_partition_map_get_name): Likewise.
22658 * partmap/msdos.c (grub_partition_parse): Remove.
22659 (pc_partition_map_iterate): Don't force raw access.
22661 Make 'ext_offset' a local variable.
22662 (pc_partition_map_probe): Remove.
22663 (pc_partition_map_get_name): Remove.
22664 * partmap/sun.c (sun_partition_map_iterate): Don't force raw access.
22666 (sun_partition_map_probe): Remove.
22667 (sun_partition_map_get_name): Likewise.
22668 * parttool/msdospart.c (grub_pcpart_boot): Handle nested partitions.
22669 (grub_pcpart_type): Likewise.
22670 * util/hostdisk.c (open_device): Handle new numbering scheme.
22671 (grub_util_biosdisk_get_grub_dev): Handle nested partitions.
22672 * util/i386/pc/grub-setup.c (setup): Handle new numbering scheme.
22673 * util/grub-probe.c (probe_partmap): Handle nested paritions.
22674 * util/grub-install.in: Insert all subpartition modules.
22675 * util/ieee1275/grub-install.in: Likewise.
22677 2010-03-24 Adrian Glaubitz <glaubitz@physik.fu-berlin.de>
22679 * kern/dl.c (grub_dl_resolve_symbols): Improve error message
22682 2010-03-24 Colin Watson <cjwatson@ubuntu.com>
22684 * .bzrignore: Add grub-bin2h, grub-reboot, and grub-set-default.
22686 2010-03-21 Colin Watson <cjwatson@ubuntu.com>
22688 * util/grub-install.in: Copy .mo files from @datadir@/locale, to
22689 match where 'make install' puts them.
22690 * util/i386/efi/grub-install.in: Likewise.
22692 2010-03-19 Colin Watson <cjwatson@ubuntu.com>
22694 * .bzrignore: Add gentrigtables, grub-script-check,
22695 grub_script_check_init.c, grub_script_check_init.h, and
22698 2010-03-18 Vladimir Serbinenko <phcoder@gmail.com>
22700 * kern/parser.c: Indented.
22702 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22704 * term/i386/pc/vesafb.c: Removed (orphaned, deprecated and broken).
22706 2010-03-17 Vladimir Serbinenko <phcoder@gmail.com>
22708 * video/fb/fbblit.c (grub_video_fbblit_blend_XXXA8888_1bit): Handle
22709 alpha_mask_size == 0 case.
22711 2010-03-14 BVK Chaitanya <bvk.groups@gmail.com>
22713 GRUB shell lexer and parser improvements.
22715 * conf/any-emu.rmk: Build rule updates.
22716 * conf/common.rmk: Likewise.
22717 * conf/i386-coreboot.rmk: Likewise.
22718 * conf/i386-efi.rmk: Likewise.
22719 * conf/i386-ieee1275.rmk: Likewise.
22720 * conf/i386-pc.rmk: Likewise.
22721 * conf/powerpc-ieee1275.rmk: Likewise.
22722 * conf/x86_64-efi.rmk: Likewise.
22724 * configure.ac: Configure check for flex.
22726 * include/grub/script_sh.h (grub_script_arg_type_t): More argument
22728 (grub_lexer_param): Struct member updates.
22729 (grub_parser_param): Likewise.
22730 (GRUB_LEXER_TOKEN_MAX): Maximum token size.
22731 (GRUB_LEXER_RECORD_INCREMENT): Memory increments' size.
22732 (grub_script_lexer_init): Prototype update.
22733 (grub_script_lexer_record_start): Likewise.
22734 (grub_script_lexer_record_stop): Likewise.
22735 (grub_script_lexer_yywrap): New function prototype.
22736 (grub_script_lexer_fini): Likewise.
22737 (grub_script_execute_argument_to_string): Removed by...
22738 (grub_script_execute_argument_to_argv): ...better version.
22740 * script/execute.c (ROUND_UPTO): New macro.
22741 (grub_script_execute_cmdline): Out of memory fixes.
22742 (grub_script_execute_menuentry): Likewise.
22743 (grub_script_execute_argument_to_string): Removed. Update all
22745 (grub_script_execute_argument_to_argv): ...better version.
22746 * script/function.c (grub_script_function_create): Use
22747 grub_script_execute_argument_to_argv instead of
22748 grub_script_execute_argument_to_string.
22750 * script/lexer.c (check_varstate): Removed.
22751 (check_textstate): Removed.
22752 (grub_script_lexer_record_start): Likewise.
22753 (grub_script_lexer_record_stop): Likewise.
22754 (recordchar): Replaced with...
22755 (grub_script_lexer_record): ...new function.
22756 (nextchar): Removed.
22757 (grub_script_lexer_init): Rewritten.
22758 (grub_script_yylex): Rewritten.
22759 (append_newline): New function.
22760 (grub_script_lexer_yywrap): New function.
22761 (grub_script_lexer_fini): New function.
22762 (grub_script_yyerror): Sets error flag.
22764 * script/yylex.l: New file.
22765 (grub_lexer_yyfree): Wrapper for flex yyffre.
22766 (grub_lexer_yyalloc): Likewise.
22767 (grub_lexer_yyrealloc): Likewise.
22768 * script/parser.y: Refactored.
22770 * script/script.c (grub_script_arg_add): Out of memory fixes.
22771 (grub_script_add_arglist): Likewise.
22772 (grub_script_create_cmdline): Likewise.
22773 (grub_script_create_cmdmenu): Likewise.
22774 (grub_script_add_cmd): Likewise.
22775 (grub_script_parse): Use grub_script_lexer_fini to deallocated.
22776 * util/grub-script-check.c (grub_script_execute_menuentry): Remove
22779 * tests/grub_script_echo1.in: New testcase.
22780 * tests/grub_script_vars1.in: New testcase.
22781 * tests/grub_script_echo_keywords.in: New testcase.
22783 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22785 Remove some redundancy in build system.
22787 * Makefile.in (TARGET_CFLAGS): Add -ffreestanding.
22788 (TARGET_ASFLAGS): Add -nostdinc -fno-builtin.
22789 (TARGET_LDFLAGS): Add -nostdlib.
22790 (TARGET_IMG_LDFLAGS): Likewise.
22791 * commands/lsmmap.c (grub_cmd_lsmmap) [GRUB_MACHINE_EMU]: Don't do
22792 anything since mmap isn't available.
22793 * conf/any-emu.rmk (kernel_img_SOURCES): Remove commands/boot.c.
22795 (pkglib_MODULES): Remove reboot.mod.
22796 (reboot_mod_SOURCES): Removed.
22797 (reboot_mod_CFLAGS): Likewise.
22798 (reboot_mod_LDFLAGS): Likewise.
22799 * conf/common.rmk (script/lexer.c_DEPENDENCIES): New variable.
22800 (MOSTLYCLEANFILES): Add symlist.c kernel_syms.lst.
22801 (DEFSYMFILES): Add kernel_syms.lst.
22802 (kernel_img_HEADERS): Add common headers.
22803 (symlist.c): New target.
22804 (kernel_syms.lst): Likewise.
22805 (pkglib_MODULES): Add memdisk.mod.
22806 (memdisk_mod_SOURCES): New variable.
22807 (memdisk_mod_CFLAGS): Likewise.
22808 (memdisk_mod_LDFLAGS): Likewise.
22809 (pkglib_MODULES): Add reboot.mod.
22810 (reboot_mod_SOURCES): New variable.
22811 (reboot_mod_CFLAGS): Likewise.
22812 (reboot_mod_LDFLAGS): Likewise.
22813 (pkglib_MODULES): Add date.mod.
22814 (date_mod_SOURCES): New variable.
22815 (date_mod_CFLAGS): Likewise.
22816 (date_mod_LDFLAGS): Likewise.
22817 (pkglib_MODULES): Add datehook.mod.
22818 (datehook_mod_SOURCES): New variable.
22819 (datehook_mod_CFLAGS): Likewise.
22820 (datehook_mod_LDFLAGS): Likewise.
22821 (pkglib_MODULES): Add lsmmap.mod.
22822 (lsmmap_mod_SOURCES): New variable.
22823 (lsmmap_mod_CFLAGS): Likewise.
22824 (lsmmap_mod_LDFLAGS): Likewise.
22825 (pkglib_MODULES): Add boot.mod.
22826 (boot_mod_SOURCES): New variable.
22827 (boot_mod_CFLAGS): Likewise.
22828 (boot_mod_LDFLAGS): Likewise.
22829 * conf/i386-coreboot.rmk: Removed redundant parts.
22830 * conf/i386-ieee1275.rmk: Likewise.
22831 * conf/i386-pc.rmk: Likewise.
22832 * conf/mips-yeeloong.rmk: Likewise.
22833 * conf/mips.rmk: Likewise.
22834 * conf/powerpc-ieee1275.rmk: Likewise.
22835 * conf/sparc64-ieee1275.rmk: Likewise.
22836 * conf/x86_64-efi.rmk: Likewise.
22837 * conf/i386-coreboot.rmk: Moved qemu parts ..
22838 * conf/i386-qemu.rmk: ... here
22839 * conf/i386-efi.rmk: Moved common parts to...
22840 * conf/x86-efi.rmk: ... here.
22841 * conf/i386.rmk: Added modules common to all x86 variants.
22842 * configure.ac: Add -m32/-m64 to TARGET_ASFLAGS.
22843 * disk/memdisk.c: Remove grub/machine/kernel.h.
22844 * gensymlist.sh.in: Include symbol.h.
22845 * hook/datehook.c: Correct module name.
22846 * include/grub/datetime.h (grub_get_datetime) [GRUB_MACHINE_EMU]: Export.
22847 (grub_set_datetime) [GRUB_MACHINE_EMU]: Likewise.
22848 * include/grub/i386/efi/serial.h: New file.
22849 * include/grub/x86_64/efi/serial.h: Likewise.
22850 * util/time.c: Likewise.
22851 * video/ieee1275.c (grub_video_ieee1275_setup): Handle 64-bit void *.
22853 2010-03-14 Colin King <colin.king@ubuntu.com>
22854 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22856 Shrink the pre-partition-table part of boot.img by eight bytes.
22858 * boot/i386/pc/boot.S (ERR): New macro.
22859 (chs_mode): Use ERR.
22860 (geometry_error): Likewise.
22861 (hd_probe_error): Remove. This is only used once, so we wrwite
22863 (read_error): Instead of printing read_error_string, just set up
22864 %si and fall through to ...
22865 (error_message): ... this new function, also used by ERR.
22867 2010-03-14 Colin Watson <cjwatson@ubuntu.com>
22869 Speed up consecutive hostdisk operations on the same device.
22871 * util/hostdisk.c (struct grub_util_biosdisk_data): New structure.
22872 (grub_util_biosdisk_open): Initialise disk->data.
22873 (struct linux_partition_cache): New structure.
22874 (linux_find_partition): Cache partition start positions; these are
22875 expensive to compute on every read and write.
22876 (open_device): Cache open file descriptor in disk->data, so that we
22877 don't have to reopen it and flush the buffer cache for consecutive
22878 operations on the same device.
22879 (grub_util_biosdisk_close): New function.
22880 (grub_util_biosdisk_dev): Set `close' member.
22882 * conf/common.rmk (grub_probe_SOURCES): Add kern/list.c.
22883 * conf/i386-efi.rmk (grub_setup_SOURCES): Likewise.
22884 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
22885 * conf/sparc64-ieee1275.rmk (grub_setup_SOURCES): Likewise.
22886 * conf/x86_64-efi.rmk (grub_setup_SOURCES): Likewise.
22888 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22890 Compile parts of grub-emu as modules.
22892 * Makefile.in (TARGET_CPPFLAGS) [emu]: Remove -nostdinc -isystem.
22893 (pkglib_DATA) [emu]: Remove moddep.lst command.lst fs.lst
22894 partmap.lst parttool.lst handler.lst video.lst crypto.lst terminal.lst.
22895 (all-local): Add $(GRUB_EMU).
22896 (install-local): Install $(GRUB_EMU).
22897 (uninstall): Uninstall $(GRUB_EMU).
22898 * commands/parttool.c: Replace GRUB_UTIL with GRUB_NO_MODULES.
22899 * kern/dl.c: Likewise.
22900 * commands/sleep.c: Not include machine/time.h.
22901 * conf/any-emu.rmk (COMMON_LDFLAGS): New variable.
22902 (COMMON_CFLAGS): Likewise.
22903 (sbin_UTILITIES): Remove grub-emu.
22904 (grub_emu_SOURCES): Removed.
22905 (kernel_img_RELOCATABLE): New variable.
22906 (pkglib_PROGRAMS): Add kernel.img.
22907 (kernel_img_SOURCES): New variable
22908 (kernel_img_CFLAGS): Likewise.
22909 (kernel_img_LDFLAGS): Likewise.
22910 (TARGET_NO_STRIP): Likewise.
22911 (TARGET_NO_DYNAMIC_MODULES): Likewise.
22912 (pkglib_MODULES): Add progname.mod, hostfs.mod, host.mod, reboot.mod,
22913 halt.mod, cpuid.mod, usb.mod, sdl.mod and pci.mod.
22914 (grub-emu): New target.
22915 (GRUB_EMU): New variable.
22916 * configure.ac: Whitelist -emu as possible x86_64 architecture.
22917 * efiemu/main.c: Replace GRUB_UTIL with GRUB_MACHINE_EMU.
22918 * loader/xnu.c: Likewise.
22919 * include/grub/pci.h: Likewise.
22920 * genemuinit.sh: New file.
22921 * genemuinitheader.sh: Likewise.
22922 * genmk.rb: Don't strip if TARGET_NO_STRIP is yes.
22923 Support TARGET_NO_DYNAMIC_MODULES.
22924 * include/grub/dl.h (GRUB_NO_MODULES): New variable.
22925 * commands/search.c: Fix GRUB_MOD_INIT and GRUB_MOD_FINI arguments.
22926 * disk/loopback.c: Likewise.
22927 * font/font_cmd.c: Likewise.
22928 * partmap/acorn.c: Likewise.
22929 * partmap/amiga.c: Likewise.
22930 * partmap/apple.c: Likewise.
22931 * partmap/gpt.c: Likewise.
22932 * partmap/msdos.c: Likewise.
22933 * partmap/sun.c: Likewise.
22934 * parttool/msdospart.c: Likewise.
22935 * term/gfxterm.c: Likewise.
22936 * video/bitmap.c: Likewise.
22937 * video/readers/jpeg.c: Likewise.
22938 * video/readers/png.c: Likewise.
22939 * video/readers/tga.c: Likewise.
22940 * video/video.c: Likewise.
22941 * util/grub-emu.c (read_command_list): Removed.
22942 (main): Don't call util_init_nls.
22943 * util/misc.c (grub_err_printf) [!GRUB_UTIL]: Removed.
22944 (grub_util_init_nls) [!GRUB_UTIL]: Likewise.
22946 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22948 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add datetime.mod,
22949 date.mod, datehook.mod.
22950 (datetime_mod_SOURCES): New variable.
22951 (datetime_mod_CFLAGS): Likewise.
22952 (datetime_mod_LDFLAGS): Likewise.
22953 (date_mod_SOURCES): Likewise.
22954 (date_mod_CFLAGS): Likewise.
22955 (date_mod_LDFLAGS): Likewise.
22956 (datehook_mod_SOURCES): Likewise.
22957 (datehook_mod_CFLAGS): Likewise.
22958 (datehook_mod_LDFLAGS): Likewise.
22959 * conf/sparc64-ieee1275.rmk: Likewise.
22960 * lib/ieee1275/datetime.c: New file.
22962 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22964 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add ieee1275_fb.mod.
22965 (ieee1275_fb_mod_SOURCES): New variable.
22966 (ieee1275_fb_mod_CFLAGS): Likewise.
22967 (ieee1275_fb_mod_LDFLAGS): Likewise.
22968 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_devices_iterate):
22970 * kern/ieee1275/init.c (HEAP_MAX_SIZE): Increased.
22971 (HEAP_MAX_ADDR): Likewise.
22972 * kern/ieee1275/openfw.c (grub_children_iterate): Don't skip empty
22974 Correct stop condition.
22975 (grub_ieee1275_devices_iterate): New function.
22976 * video/ieee1275.c: New file.
22978 2010-03-14 Vladimir Serbinenko <phcoder@gmail.com>
22980 Merge sparc grub-mkimage into generic grub-mkimage and a.out support.
22982 * boot/sparc64/ieee1275/boot.S (boot_continue): Use SCRATCH_PAD_BOOT
22984 * boot/sparc64/ieee1275/diskboot.S (after_info_block): Use
22985 SCRATCH_PAD_DISKBOOT as scratch.
22986 (bootit): Pass Openfirmware pointer in %o4.
22987 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link at 0x4400 instead
22989 (grub_mkimage_SOURCES): Replace util/sparc64/ieee1275/grub-mkimage.c
22990 with util/grub-mkrawimage.c.
22991 * configure.ac: Handle GRUB_MACHINE_SPARC64 and GRUB_MACHINE_MIPS.
22992 * include/grub/aout.h (AOUT_MID_SUN): New definition.
22993 (grub_aout_get_type) [GRUB_UTIL]: Removed.
22994 (grub_aout_load) [GRUB_UTIL]: Likewise.
22995 * include/grub/kernel.h (grub_modules_get_end): New proto.
22996 * include/grub/sparc64/ieee1275/boot.h (SCRATCH_PAD): Removed.
22997 (SCRATCH_PAD_BOOT): New definition.
22998 (SCRATCH_PAD_DISKBOOT): Likewise.
22999 (GRUB_BOOT_MACHINE_IMAGE_ADDRESS): Set to 0x4400.
23000 * include/grub/sparc64/ieee1275/ieee1275.h
23001 (grub_ieee1275_original_stack): New variable
23002 * include/grub/sparc64/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
23004 (GRUB_KERNEL_MACHINE_STACK_SIZE): Likewise.
23005 (GRUB_PLATFORM_IMAGE_FORMATS): Likewise.
23006 (GRUB_PLATFORM_IMAGE_DEFAULT_FORMAT): Likewise.
23007 (GRUB_PLATFORM_IMAGE_DEFAULT): Likewise.
23008 (GRUB_PLATFORM_IMAGE_RAW): Likewise.
23009 (GRUB_PLATFORM_IMAGE_AOUT): Likewise.
23010 (grub_platform_image_format_t): New type.
23011 * kern/mips/yeeloong/init.c (grub_modules_get_end): Move from here ...
23012 * kern/main.c (grub_modules_get_end)
23013 [GRUB_MACHINE_MIPS_YEELOONG || GRUB_MACHINE_SPARC64]: ... here.
23014 * kern/sparc64/ieee1275/crt0.S: Store firmware entry point in %o0.
23015 (codestart): Switch stacks.
23016 * kern/sparc64/ieee1275/init.c (grub_ieee1275_original_stack): New
23018 (grub_heap_init): Use grub_modules_get_end.
23019 * loader/sparc64/ieee1275/linux.c (grub_linux_boot): Restore original
23021 * util/grub-mkrawimage.c (generate_image): Support sparc64.
23023 * util/sparc64/ieee1275/grub-mkimage.c: Removed.
23025 2010-03-14 Thorsten Glaser <tg@mirbsd.org>
23027 * util/grub-mkrescue.in: Base ISO UUID on UTC.
23029 2010-03-08 Matt Kraai <kraai@ftbfs.org>
23031 * util/i386/pc/grub-setup.c (setup): Fix a grammatical error (Debian
23034 2010-03-07 Vladimir Serbinenko <phcoder@gmail.com>
23036 * genmoddep.awk: Output all missing symbols and not only first.
23038 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23040 * NEWS: Put the date of 1.98 release.
23042 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23044 * configure.ac: Update CPPFLAGS and not CFLAGS when checking for
23047 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23049 * normal/cmdline.c (grub_cmdline_get): Fix gabled line after
23050 completition in the middle of string.
23052 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23054 * util/grub-mkrescue.in: Use mktemp with explicit template.
23056 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23058 * loader/i386/bsd.c (grub_bsd_get_device): Fix a memory leak.
23060 2010-03-06 Vladimir Serbinenko <phcoder@gmail.com>
23062 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Free the
23065 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23067 Fix FreeBSD compilation.
23069 * Makefile.in (TARGET_CPPFLAGS): Remove -nostdinc -isystem.
23070 * configure.ac: Add -nostdinc -isystem to TARGET_CPPFLAGS if it works.
23072 2010-03-05 Vladimir Serbinenko <phcoder@gmail.com>
23074 * util/import_gcry.py: Add autogenerated files to MAINTAINER_CLEANFILES.
23076 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23078 * gettext/gettext.c (grub_gettext_init_ext): Fix a memory leak.
23080 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23082 * disk/scsi.c (grub_scsi_iterate): Fix a memory leak.
23084 2010-03-04 Robert Millan <rmh.grub@aybabtu.com>
23086 Support relative image path in theme file.
23088 * gfxmenu/gui_image.c (grub_gui_image): New member theme_dir.
23089 (image_set_property): Handle theme_dir and relative path.
23091 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23093 * configure.ac: Alias amd64 to x86_64.
23095 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23097 * NEWS: mention multiboot on EFI.
23099 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23101 * kern/main.c (grub_load_modules): Handle errors from init functions of
23104 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23106 * normal/autofs.c (autoload_fs_module): Handle errors.
23108 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23110 Disable linux.mod on qemu-mips since it's not functional and leads
23111 to compilation failure.
23113 * conf/mips.rmk (pkglib_MODULES): Remove linux.mod.
23114 * conf/mips-yeeloong.rmk (pkglib_MODULES): Add linux.mod.
23115 * conf/mips.rmk (linux_mod_SOURCES): Move from here ...
23116 * conf/mips-yeeloong.rmk (linux_mod_SOURCES): ... here
23117 * conf/mips.rmk (linux_mod_CFLAGS): Move from here ...
23118 * conf/mips-yeeloong.rmk (linux_mod_CFLAGS): ... here
23119 * conf/mips.rmk (linux_mod_ASFLAGS): Move from here ...
23120 * conf/mips-yeeloong.rmk (linux_mod_ASFLAGS): ... here
23121 * conf/mips.rmk (linux_mod_LDFLAGS): Move from here ...
23122 * conf/mips-yeeloong.rmk (linux_mod_LDFLAGS): ... here
23123 Reported by: BVK Chaitanya
23125 2010-03-04 Jordan Uggla <jordan.uggla@gmail.com>
23127 * INSTALL: Add gettext as a dependency and add qemu to a new section
23128 "Prerequisites for make-check".
23130 2010-03-04 Christian Franke <franke@computer.org>
23132 * util/grub-pe2elf.c: Add missing include "progname.h".
23134 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23136 * normal/crypto.c (read_crypto_list): Fix a typo.
23137 Reported by: Seth Goldberg.
23139 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23141 * Makefile.in (DISTCLEANFILES): Add stamp-h1.
23142 Reported by: Seth Goldberg.
23144 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23146 * Makefile.in (CLEANFILES) [FONT_SOURCE && grub_mkfont]: Add
23149 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23151 * genmk.rb: Remove terminal*.lst in make clean.
23152 Reported by: Seth Goldberg.
23154 2010-03-04 Vladimir Serbinenko <phcoder@gmail.com>
23156 * util/i386/efi/grub-install.in: Copy gettext files.
23158 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23160 * fs/ext2.c (grub_ext2_read_block): Fix an integer overflow.
23162 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23164 Wait for user entry basing on presence of output rather than on errors.
23166 * include/grub/normal.h (grub_normal_get_line_counter): New proto.
23167 (grub_install_newline_hook): Likewise.
23168 * normal/main.c (GRUB_MOD_INIT): Call grub_install_newline_hook.
23169 * normal/menu.c (show_menu): Check line_counter to determine presence
23171 * normal/term.c (grub_normal_line_counter): New variable.
23172 (grub_normal_get_line_counter): New function.
23173 (grub_install_newline_hook): Likewise.
23175 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23177 * commands/cat.c (grub_cmd_cat): Propagate grub_gzfile_open error.
23179 2010-03-01 Vladimir Serbinenko <phcoder@gmail.com>
23181 * configure.ac: Update version to 1.98.
23183 2010-02-26 Vladimir Serbinenko <phcoder@gmail.com>
23185 * util/grub.d/10_linux.in (linux_entry): Don't default to
23186 gfxpayload=keep if Linux doesn't support video handover.
23188 2010-02-25 Vladimir Serbinenko <phcoder@gmail.com>
23190 Don't compile video modules on yeeloong since video subsystem is part
23193 * conf/common.rmk (pkglib_MODULES) [yeeloong]: Remove video.mod,
23194 video_fb.mod, bitmap.mod, font.mod, gfxterm.mod and bufio.mod
23195 * conf/mips-yeeloong.rmk (kernel_img_HEADERS): Add bitmap.h,
23196 video.h, gfxterm.h, font.h, bitmap_scale.h and bufio.h.
23197 * conf/mips.rmk (kernel_img_HEADERS): Add values instead of overwriting.
23198 * include/grub/bitmap.h: Add EXPORT_FUNC and EXPORT_VAR.
23199 * include/grub/bitmap_scale.h: Likewise.
23200 * include/grub/bufio.h: Likewise.
23201 * include/grub/font.h: Likewise.
23202 * include/grub/gfxterm.h: Likewise.
23203 * include/grub/video.h: Likewise.
23204 * include/grub/vbe.h: Don't include video_fb.h.
23205 * video/i386/pc/vbe.c: Include video_fb.h.
23206 * commands/i386/pc/vbetest.c: Include video.h.
23208 2010-02-25 Jordan Uggla <jordan.uggla@gmail.com>
23210 * util/grub-mkconfig.in (GRUB_SAVEDEFAULT): Export new variable.
23211 * util/grub-mkconfig_lib.in (save_default_entry): Only save a new
23212 default entry if GRUB_SAVEDEFAULT=true. This allows using
23213 GRUB_DEFAULT=saved on its own to let grub-reboot work, without
23214 saving a new default on every boot.
23216 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23218 * normal/crypto.c (read_crypto_list): Fix a memory leak.
23219 * normal/term.c (read_terminal_list): Likewise.
23220 * normal/main.c (grub_normal_init_page): Likewise.
23221 (grub_normal_read_line_real): Likewise.
23223 2010-02-24 Vladimir Serbinenko <phcoder@gmail.com>
23225 * loader/i386/multiboot_mbi.c (grub_multiboot_set_bootdev): Fix a
23227 Reported by: Seth Goldberg.
23229 2010-02-24 Joey Korkames <joey+lists@kidfixit.com>
23231 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Remove
23232 duplicate declaration of `start'.
23234 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23236 * fs/iso9660.c (grub_iso9660_iterate_dir): Strip version from joliet
23238 Reported by: Georgy Buranov
23240 2010-02-20 Carles Pina i Estany <carles@pina.cat>
23242 * util/grub-mkrawimage.c (usage): Change string formatting to
23245 2010-02-20 Manoel Rebelo Abranches <mrabran@br.ibm.com>
23247 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Add delete and
23250 2010-02-20 Vladimir Serbinenko <phcoder@gmail.com>
23252 * video/fb/video_fb.c (grub_video_fb_scroll): Fix a pixel size bug.
23253 Reported by: Michael Suchanek.
23255 2010-02-18 Samuel Thibault <samuel.thibault@ens-lyon.org>
23257 * util/grub-mkconfig.in: Export GRUB_INIT_TUNE.
23258 * util/grub.d/00_header.in: Handle GRUB_INIT_TUNE.
23260 2010-02-16 Vladimir Serbinenko <phcoder@gmail.com>
23262 Remove any reference to non-free fonts.
23264 * commands/videotest.c (grub_cmd_videotest): Use unifont by default.
23265 * docs/gfxmenu-theme-example.txt: Removed. It's both outdated and
23266 uses non-free components.
23267 * font/font.c (grub_font_get_name): Remove example name.
23268 * gfxmenu/gui_label.c (grub_gui_label_new): Use unifont by default.
23269 * gfxmenu/gui_list.c (grub_gui_list_new): Likewise.
23270 * gfxmenu/gui_progress_bar.c (grub_gui_progress_bar_new): Likewise.
23271 * gfxmenu/view.c (grub_gfxmenu_view_new): Likewise.
23273 2010-02-16 Georgy Buranov <gburanov@gmail.com>
23275 * disk/efi/efidisk.c (grub_efidisk_get_device_name): Fix a typo.
23277 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23279 * term/serial.c (serial_get_divisor) [GRUB_MACHINE_MIPS_YEELOONG]:
23281 (serial_hw_init) [GRUB_MACHINE_MIPS_YEELOONG]: Don't enable advanced
23283 (GRUB_MOD_INIT) [GRUB_MACHINE_MIPS_YEELOONG]: Default to 115200.
23285 2010-02-15 Vladimir Serbinenko <phcoder@gmail.com>
23287 * gensymlist.sh.in: Use TARGET_CC instead of CC.
23289 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23291 * commands/i386/pc/play.c (GRUB_MOD_INIT(play)): Fix help.
23292 * docs/grub.texi (Command-line and menu entry commands): Document play
23295 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23297 * commands/i386/pc/play.c (grub_cmd_play): If grub_file_open fails,
23298 parse arguments as inline tempo and notes. Move code for playing notes
23300 (play): ... new function.
23302 2010-02-14 Samuel Thibault <samuel.thibault@ens-lyon.org>
23304 * commands/i386/pc/play.c (T_REST, T_FINE, struct note, beep_on): Use
23305 grub_uint16_t instead of short.
23306 (grub_cmd_play): Use grub_uint32_t instead of int, convert data from
23307 disk from little endian to cpu endianness.
23309 2010-02-07 Samuel Thibault <samuel.thibault@ens-lyon.org>
23311 * commands/i386/pc/play.c (BASE_TEMPO): Set to 60 *
23312 GRUB_TICKS_PER_SECOND instead of 120.
23314 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23316 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Wait for possible
23317 escape sequence after \e.
23319 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23321 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Don't output
23322 non-ASCII characters.
23324 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23326 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Enclose
23327 set root in single quotes to prevent \, from being unescaped.
23329 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23331 Prevent unknown commands from stopping menuentry execution.
23333 * script/execute.c (grub_script_execute_cmdline): Print error after
23336 2010-02-14 Vladimir Serbinenko <phcoder@gmail.com>
23338 * fs/i386/pc/pxe.c (GRUB_MOD_INIT): Fix typo.
23339 Reported by: Pavel Pisa.
23341 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23343 * io/gzio.c (grub_gzio_open): Use grub_zalloc.
23345 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23347 Merge grub_ieee1275_map_physical into grub_map and rename to
23350 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_map): New proto.
23351 * include/grub/sparc64/ieee1275/ieee1275.h (grub_ieee1275_map_physical):
23353 * kern/ieee1275/openfw.c (grub_map): Rename to ...
23354 (grub_ieee1275_map): ... this. All users updated. Add phys_lo when
23356 * kern/sparc64/ieee1275/ieee1275.c (grub_ieee1275_map_physical): Remove.
23358 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23360 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Check device type before
23361 opening and not after.
23363 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23365 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Macroify
23368 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23370 * loader/sparc64/ieee1275/linux.c (align_addr): Remove.
23371 (alloc_phys): Use ALIGN_UP instead of align_addr.
23373 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23375 * loader/sparc64/ieee1275/linux.c (alloc_phys): Correct bounds checking.
23377 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23379 * kern/sparc64/ieee1275/crt0.S (codestart): Move modules backwards.
23381 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23383 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Remove excessively
23386 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23388 Fix over-4GiB seek on sparc64.
23390 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_seek):
23391 Replace pos_i and pos_lo with pos. All users updated.
23392 * include/grub/powerpc/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23394 * include/grub/sparc64/ieee1275/ieee1275.h (GRUB_IEEE1275_CELL_SIZEOF):
23396 * kern/ieee1275/ieee1275.c (grub_ieee1275_seek): Split pos into pos_hi
23399 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23401 * util/grub-mkrawimage.c (main): Call set_program_name.
23403 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23405 Properly align 64-bit targets.
23407 * util/grub-mkrawimage.c (ALIGN_ADDR): New macro.
23408 (generate_image): Use ALIGN_ADDR.
23410 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23412 Properly create cross-endian images.
23414 * include/grub/types.h (grub_host_to_target_addr): New macro
23415 * util/grub-mkrawimage.c (generate_image): Add missing host_to_target.
23417 2010-02-13 Vladimir Serbinenko <phcoder@gmail.com>
23419 * util/grub-mkrawimage.c (generate_image): Add forgotten ALIGN_UP.
23421 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23423 Pass SIMPLE framebuffer size in bytes and not 64K blocks.
23425 * loader/i386/efi/linux.c (grub_linux_setup_video): Don't divide by 64K.
23426 * loader/i386/linux.c (grub_linux_setup_video): Likewise.
23427 (grub_linux_boot): Divide by 64K when on VESA.
23429 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23431 Support GRUB_GFXPAYLOAD_LINUX.
23433 * util/grub-mkconfig.in: Export GRUB_GFXPAYLOAD_LINUX.
23434 * util/grub.d/10_linux.in (linux_entry): Handle GRUB_GFXPAYLOAD_LINUX.
23436 2010-02-10 Vladimir Serbinenko <phcoder@gmail.com>
23438 * script/execute.c (grub_script_execute_cmdline): Use grub_print_error
23439 to show messages instead of discarding them.
23440 Process errors after executing command and not before. Keep old method
23443 2010-02-09 Vladimir Serbinenko <phcoder@gmail.com>
23445 * configure.ac: Check for ft2build.h.
23447 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23449 * kern/ieee1275/openfw.c (grub_halt): Try executing "poweroff".
23451 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23453 * genkernsyms.sh.in: Use TARGET_CC.
23455 2010-02-07 Colin Watson <cjwatson@ubuntu.com>
23459 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23461 * include/grub/multiboot2.h: Remove leftover file.
23462 * include/grub/normal.h [GRUB_UTIL]: Remove leftover declarations.
23463 * include/grub/partition.h [GRUB_UTIL]: Likewise.
23465 2010-02-07 Yves Blusseau <blusseau@zetam.org>
23467 * gnulib/getdelim.c: add missing header (type ssize_t must be defined).
23469 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23471 Fix warnings in grub-emu when compiling with maximum warning options.
23473 * util/grub-emu.c (ENABLE_RELOCATABLE): New definition.
23474 (grub_arch_modules_addr): Return 0 and not NULL.
23475 * util/misc.c (ENABLE_RELOCATABLE): New definition.
23476 (xstrdup): Use newstr instead of dup.
23477 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Rename one instance
23478 of disk to dsk to avoid shadowing.
23479 (find_free_slot): Fix prototype.
23480 * util/getroot.c (grub_util_is_dmraid): Make static.
23481 * include/grub/time.h (grub_get_rtc) [GRUB_MACHINE_EMU || GRUB_UTIL]:
23482 Add missing prototype.
23483 * util/sdl.c (grub_video_sdl_set_viewport): Remove.
23485 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23487 * loader/i386/linux.c (grub_linux_setup_video): Handle error
23490 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23492 * fs/reiserfs.c (grub_reiserfs_read): Use #if 0 instead of commenting
23495 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23497 * include/grub/cache.h (grub_arch_sync_caches) [i386 || x86_64]: Inline.
23498 * kern/i386/coreboot/init.c (grub_arch_sync_caches): Remove.
23499 * kern/i386/efi/init.c (grub_arch_sync_caches): Likewise.
23500 * kern/i386/ieee1275/init.c (grub_arch_sync_caches): Likewise.
23501 * kern/i386/pc/init.c (grub_arch_sync_caches): Likewise.
23502 * util/misc.c (grub_arch_sync_caches) [i386 || x86_64]: Likewise.
23504 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23506 * include/grub/err.h (grub_err_printf): Don't export.
23508 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23510 * include/grub/dl.h (grub_dl_register_symbol): Don't export.
23512 2010-02-07 Vladimir Serbinenko <phcoder@gmail.com>
23514 * include/grub/i18n.h (grub_gettext_dummy): Removed.
23515 * kern/misc.c (grub_gettext_dummy): Make static.
23517 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23519 * kern/misc.c (grub_utf8_to_ucs4): Don't eat valid characters preceeded
23521 * kern/term.c (grub_putchar): Likewise.
23523 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23525 * partmap/sun.c (sun_partition_map_iterate): Restructure flow to fix
23526 buggy hook call and memory leak.
23528 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23530 * commands/ls.c (grub_ls_list_files): Free pathname on exit.
23532 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23534 * fs/fat.c (grub_fat_iterate_dir): Free unibuf at exit.
23536 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23538 * loader/i386/pc/xnu.c (grub_xnu_set_video): Add const qualifier to
23540 Return grub_errno on allocation error.
23542 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23544 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Correct error handling.
23546 2010-02-06 Yves Blusseau <blusseau@zetam.org>
23548 * conf/common.rmk (grub_script_check_SOURCES): add missing dependencies.
23549 (grub_mkpasswd_pbkdf2_SOURCES): Likewise.
23551 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23553 * fs/i386/pc/pxe.c (grub_pxefs_dir): Return with failure on
23555 (grub_pxefs_open): Likewise.
23557 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23559 * util/grub.d/10_hurd.in: Add --class information to menuentries.
23560 * util/grub.d/10_kfreebsd.in: Likewise.
23561 * util/grub.d/10_linux.in: Likewise.
23563 2010-02-06 Colin D Bennett <colin@gibibit.com>
23565 * conf/common.rmk (pkglib_MODULES): Add gfxmenu.mod.
23566 (gfxmenu_mod_SOURCES): New variable.
23567 (gfxmenu_mod_CFLAGS): Likewise.
23568 (gfxmenu_mod_LDFLAGS): Likewise.
23569 * include/grub/term.h (grub_term_set_current_output): Declare
23571 * docs/gfxmenu-theme-example.txt: New file.
23572 * gfxmenu/gfxmenu.c: Likewise.
23573 * gfxmenu/gui_box.c: Likewise.
23574 * gfxmenu/gui_canvas.c: Likewise.
23575 * gfxmenu/gui_circular_progress.c: Likewise.
23576 * gfxmenu/gui_image.c: Likewise.
23577 * gfxmenu/gui_label.c: Likewise.
23578 * gfxmenu/gui_list.c: Likewise.
23579 * gfxmenu/gui_progress_bar.c: Likewise.
23580 * gfxmenu/gui_string_util.c: Likewise.
23581 * gfxmenu/gui_util.c: Likewise.
23582 * gfxmenu/icon_manager.c: Likewise.
23583 * gfxmenu/model.c: Likewise.
23584 * gfxmenu/named_colors.c: Likewise.
23585 * gfxmenu/theme_loader.c: Likewise.
23586 * gfxmenu/view.c: Likewise.
23587 * gfxmenu/widget-box.c: Likewise.
23588 * include/grub/gfxmenu_model.h: Likewise.
23589 * include/grub/gfxmenu_view.h: Likewise.
23590 * include/grub/gfxwidgets.h: Likewise.
23591 * include/grub/gui.h: Likewise.
23592 * include/grub/gui_string_util.h: Likewise.
23593 * include/grub/icon_manager.h: Likewise.
23595 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23597 Agglomerate scrolling in gfxterm.
23599 * term/gfxterm.c (grub_virtual_screen): New member 'total_screen'.
23600 (grub_virtual_screen_setup): Initialise 'total_screen'.
23601 (write_char): Split to ...
23602 (paint_char): ... this ...
23603 (write_char): ... and this.
23604 (paint_char): Handle delayed scrolling.
23605 (draw_cursor): Likewise.
23606 (scroll_up): Split to ...
23607 (real_scroll): ... this ...
23608 (scroll_up): ... and this.
23609 (real_scroll): Handle multi-line scroll and draw below-the-bottom
23611 (grub_gfxterm_refresh): Call real_scroll.
23613 2010-02-06 Colin D Bennett <colin@gibibit.com>
23615 * include/grub/misc.h (grub_iscntrl): New inline function.
23616 (grub_isalnum): Likewise.
23617 (grub_strtol): Likewise.
23619 2010-02-06 Colin D Bennett <colin@gibibit.com>
23621 * normal/menu_text.c (get_entry_number): Move from here ...
23622 * normal/menu.c (get_entry_number): ... moved here.
23623 * include/grub/menu.h (grub_menu_get_default_entry_index):
23625 * normal/menu.c (grub_menu_get_default_entry_index): New function.
23626 * normal/menu_text.c (run_menu): Use grub_menu_get_default_entry_index.
23627 * include/grub/menu_viewer.h (grub_menu_viewer_init): New prototype.
23628 (grub_menu_viewer_should_return): Likewise.
23629 * normal/main.c (GRUB_MOD_INIT (normal)): Call grub_menu_viewer_init.
23630 * normal/menu_text.c (run_menu): Enable menu switching.
23631 * normal/menu_viewer.c (should_return): New variable.
23632 (menu_viewer_changed): Likewise.
23633 (grub_menu_viewer_show_menu): Handle menu viewer changes.
23634 (grub_menu_viewer_should_return): New function.
23635 (menuviewer_write_hook): Likewise.
23636 (grub_menu_viewer_init): Likewise.
23638 2010-02-06 Colin D Bennet <colin@gibibit.com>
23639 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23641 Support for gfxterm in a window.
23643 * include/grub/gfxterm.h: New file.
23644 * include/grub/video.h (struct grub_video_rect): New declaration.
23645 (grub_video_rect_t): Likewise.
23646 * term/gfxterm.c (struct grub_gfxterm_window): New type.
23647 (refcount): New variable.
23648 (render_target): Likewise.
23649 (window): Likewise.
23650 (repaint_callback): Likewise.
23651 (grub_virtual_screen_setup): Use 'render_target'.
23652 (init_window): New function.
23653 (grub_gfxterm_init_window): Likewise.
23654 (grub_gfxterm_init): Check reference counter.
23656 (destroy_window): New function.
23657 (grub_gfxterm_destroy_window): Likewise.
23658 (grub_gfxterm_fini): Check reference counter.
23659 Use destroy_window.
23660 (redraw_screen_rect): Restore viewport.
23661 Use 'render_target' and 'window'.
23662 Call 'repaint_callback'.
23663 (write_char): Use 'render_target'.
23664 (draw_cursor): Likewise.
23665 (scroll_up): Restore viewport.
23666 Use 'render_target' and 'window'.
23667 Call 'repaint_callback'.
23668 (grub_gfxterm_cls): Likewise.
23669 (grub_gfxterm_refresh): Use 'window'.
23670 (grub_gfxterm_set_repaint_callback): New function.
23671 (grub_gfxterm_background_image_cmd): Use 'window'.
23672 (grub_gfxterm_get_term): New function.
23673 (GRUB_MOD_INIT(term_gfxterm)): Set 'refcount' to 0.
23675 2010-02-06 Colin D Bennett <colin@gibibit.com>
23677 Bitmap scaling support.
23679 * conf/common.rmk (pkglib_MODULES): Add bitmap_scale.mod.
23680 (bitmap_scale_mod_SOURCES): New variable.
23681 (bitmap_scale_mod_CFLAGS): Likewise.
23682 (bitmap_scale_mod_LDFLAGS): Likewise.
23683 * include/grub/bitmap_scale.h: New file.
23684 * term/gfxterm.c (BACKGROUND_CMD_ARGINDEX_MODE): New definiton.
23685 (background_image_cmd_options): New variable.
23686 (grub_gfxterm_background_image_cmd): Support bitmap stretching.
23687 (cmd): Rename and change type to ...
23688 (background_image_cmd_handle): ... this. All users updated.
23689 (GRUB_MOD_INIT(term_gfxterm)): Make background_image extended command.
23690 * video/bitmap_scale.c: New file.
23692 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23696 * Makefile.in (LIBSDL): New variable.
23697 (enable_grub_emu_sdl): Likewise.
23698 * conf/i386-pc.rmk (grub_emu_SOURCES): Add video files.
23699 (grub_emu_SOURCES) [enable_grub_emu_sdl]: Add util/sdl.c.
23700 (grub_emu_LDFLAGS) [enable_grub_emu_sdl]: Add $(LIBSDL).
23701 * configure.ac: Detect SDL availability and add --enable-grub-emu-sdl
23702 * util/sdl.c: New file.
23704 2010-02-06 Colin D Bennett <colin@gibibit.com>
23705 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23707 Double buffering support.
23709 * commands/i386/pc/videotest.c (grub_cmd_videotest): Swap doublebuffers.
23710 * include/grub/video.h: Update comment.
23711 * include/grub/video_fb.h (grub_video_fb_doublebuf_update_screen_t):
23713 (grub_video_fb_doublebuf_blit_init): New prototype.
23714 * term/gfxterm.c (scroll_up): Support double buffering.
23715 (grub_gfxterm_refresh): Likewise.
23716 * video/fb/video_fb.c (doublebuf_blit_update_screen): New function.
23717 (grub_video_fb_doublebuf_blit_init): Likewise.
23718 * video/i386/pc/vbe.c (framebuffer): Remove 'render_target'. Add
23719 'front_target', 'back_target', 'offscreen_buffer', 'page_size',
23720 'displayed_page', 'render_page' and 'update_screen'.
23721 (grub_video_vbe_fini): Free offscreen buffer.
23722 (doublebuf_pageflipping_commit): New function.
23723 (doublebuf_pageflipping_update_screen): Likewise.
23724 (doublebuf_pageflipping_init): Likewise.
23725 (double_buffering_init): Likewise.
23726 (grub_video_vbe_setup): Enable doublebuffering.
23727 (grub_video_vbe_swap_buffers): Implement.
23728 (grub_video_vbe_set_active_render_target): Handle double buffering.
23729 (grub_video_vbe_get_active_render_target): Likewise.
23730 (grub_video_vbe_get_info_and_fini): Likewise. Free offscreen_buffer.
23731 (grub_video_vbe_adapter): Use grub_video_vbe_get_active_render_target.
23732 (grub_video_vbe_enable_double_buffering): Likewise.
23733 (grub_video_vbe_swap_buffers): Use update_screen.
23734 (grub_video_set_mode): Use double buffering.
23736 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23738 * maintainance/gentrigtables.py: Remove.
23739 * lib/trig.c: Likewise.
23741 * gentrigtables.c: New file. C rewrite of gentrigtables.py.
23743 * conf/common.rmk (trig_mod_SOURCES): Replace `lib/trig.c' with
23745 (trigtables.c): New rule.
23746 (gentrigtables): Likewise.
23747 (DISTCLEANFILES): Add `trigtables.c' and `gentrigtables'.
23749 2010-02-06 Robert Millan <rmh.grub@aybabtu.com>
23751 * maintainance/gentrigtables.py: Avoid duplicate hardcoding of
23754 2010-02-06 Colin D Bennet <colin@gibibit.com>
23756 Trigonometry support.
23758 * include/grub/trig.h: New file.
23759 * lib/trig.c: Likewise.
23760 * maintainance/gentrigtables.py: Likewise.
23761 * conf/common.rmk (pkglib_MODULES): Add trig.mod.
23762 (trig_mod_SOURCES): New variable.
23763 (trig_mod_CFLAGS): Likewise.
23764 (trig_mod_LDFLAGS): Likewise.
23766 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23768 * kern/ieee1275/openfw.c (grub_ieee1275_encode_devname): Support whole
23771 2010-02-06 Vladimir Serbinenko <phcoder@gmail.com>
23773 * kern/ieee1275/openfw.c (grub_devalias_iterate): Stop iterating on
23776 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23778 * util/hostdisk.c (open_device): Don't use partition device when reading
23779 before the partition.
23780 (grub_util_biosdisk_read): Don't read from partition and before the
23781 partition in single operation.
23782 (grub_util_biosdisk_write): Don't write to partition and before the
23783 partition in single operation.
23785 2010-02-03 Torsten Landschoff <torsten@debian.org>
23787 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23790 2010-02-03 Vladimir Serbinenko <phcoder@gmail.com>
23792 * disk/i386/pc/biosdisk.c (grub_biosdisk_read): Handle non-2048 aligned
23794 (grub_biosdisk_write): Refuse to write to CDROM.
23796 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23798 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Fix off-by-one error.
23800 2010-01-31 Vladimir Serbinenko <phcoder@gmail.com>
23802 * font/font.c (find_glyph): Check that bmp_idx is available before
23804 (grub_font_get_string_width): Never call grub_font_get_glyph_internal
23805 with (font == NULL).
23807 2010-01-28 Christian Schmitt <chris@ilovelinux.de>
23809 * util/ieee1275/grub-install.in: Fix nvsetenv arguments.
23811 2010-01-28 BVK Chaitanya <bvk.groups@gmail.com>
23813 * include/grub/script_sh.h (sourcecode): Add const qualifier.
23814 * util/grub-script-check.c (getline): Fix empty lines case.
23816 2010-01-28 Robert Millan <rmh.grub@aybabtu.com>
23818 * Makefile.in (check): Exit with fail status when one of the tests
23820 * tests/example_functional_test.c (example_test): Fix reversed assert.
23821 * tests/example_unit_test.c (example_test): Likewise.
23823 2010-01-28 Colin Watson <cjwatson@ubuntu.com>
23825 * util/grub.d/10_linux.in: This script does not use any of the
23826 contents of gettext.sh, only the external command `gettext', so stop
23827 sourcing it. (Moreover, gettext.sh isn't necessarily installed in
23828 the same prefix as GRUB.)
23829 * util/grub.d/10_kfreebsd.in: Likewise.
23831 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23833 * normal/cmdline.c (grub_cmdline_get): Fix completion in the middle
23836 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23838 * kern/disk.c (grub_disk_read): Fix offset computation when reading
23841 2010-01-27 Vladimir Serbinenko <phcoder@gmail.com>
23843 * commands/hashsum.c (hash_file): Avoid possible stack overflow by
23844 having a 4KiB and not 32KiB buffer size.
23846 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23848 * util/hostfs.c: Include `<errno.h>'.
23849 (grub_hostfs_read): Handle errors from fseeko() and fread().
23851 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23853 * kern/disk.c (grub_disk_read): Fix bug that would cause infinite
23854 loop when using read hooks on files whose size isn't sector-aligned.
23856 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23858 Remove unused parameter.
23860 * fs/iso9660.c (struct grub_iso9660_data): Remove `length' parameter.
23861 (grub_iso9660_open): Remove initialization of `data->length'.
23863 2010-01-27 Robert Millan <rmh.grub@aybabtu.com>
23865 * util/grub-fstest.c (fstest): Rewrite allocation, fixing a few
23866 memleak conditions.
23868 2010-01-27 Carles Pina i Estany <carles@pina.cat>
23870 * util/lvm.c: New macro LVM_DEV_MAPPER_STRING.
23871 (grub_util_lvm_isvolume): Use LVM_DEV_MAPPER_STRING.
23873 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23875 * util/bin2h.c (usage): Fix warning (space after backslash).
23877 2010-01-26 Carles Pina i Estany <carles@pina.cat>
23879 * font/font.c: Include `grub/fontformat.h.
23880 Remove font file format constants.
23881 (grub_font_load): Use the new macros.
23882 * include/grub/fontformat.h: New file.
23883 * util/grub-mkfont.c: Include `grub/fontformat.c'.
23884 (write_font_pf2): Use the new macros.
23886 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23888 * util/bin2h.c (usage): Make --help actually explain what `grub-bin2h'
23891 2010-01-26 Robert Millan <rmh.grub@aybabtu.com>
23893 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_PXE_DL): New macro.
23895 * boot/i386/pc/pxeboot.S: Include `<grub/machine/boot.h>'.
23896 (_start): Macroify `0x7F'.
23898 * kern/i386/pc/init.c: Include `<grub/machine/boot.h>'.
23899 (make_install_device): Use "(pxe)" as fallback prefix when booting
23902 2010-01-26 Vladimir Serbinenko <phcoder@gmail.com>
23904 * configure.ac: Reset LIBS after check for libgcc symbols.
23906 2010-01-25 Colin Watson <cjwatson@ubuntu.com>
23908 * util/hostdisk.c (open_device): Add trailing newline to debug
23911 2010-01-25 Grégoire Sutre <gregoire.sutre@gmail.com>
23913 * configure.ac: Check for `limits.h'.
23914 * util/misc.c: Include `<limits.h>' (for PATH_MAX).
23916 2010-01-24 Robert Millan <rmh.grub@aybabtu.com>
23918 * loader/mips/linux.c (grub_cmd_linux, grub_cmd_initrd): Don't
23919 capitalize error strings.
23921 2010-01-24 Samuel Thibault <samuel.thibault@ens-lyon.org>
23923 * util/grub.d/10_hurd.in: Add a recovery mode.
23925 2010-01-23 Vladimir Serbinenko <phcoder@gmail.com>
23927 * configure.ac: Check for libgcc symbols with -nostdlib.
23929 2010-01-23 BVK Chaitanya <bvk.groups@gmail.com>
23931 * acinclude.m4: Quote underquoted AC_DEFUN parameters.
23933 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23935 * term/ieee1275/ofconsole.c (grub_ofconsole_setcolorstate): Allocate on
23936 stack since heap may be unavailable at that point.
23937 (grub_ofconsole_gotoxy): Likewise.
23939 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23941 * configure.ac: Check for _restgpr_14_x.
23942 * include/grub/powerpc/libgcc.h [HAVE__RESTGPR_14_X]: Add _restgpr_*_x
23943 and _savegpr_* prototypes.
23945 2010-01-22 Robert Millan <rmh.grub@aybabtu.com>
23947 Use generic grub_reboot() for i386-efi.
23949 * kern/efi/efi.c [__i386__] (grub_reboot): Remove.
23950 * kern/i386/efi/startup.S: Include `"../realmode.S"'.
23951 * kern/i386/realmode.S: Include `<grub/i386/pc/memory.h>'.
23953 2010-01-22 Vladimir Serbinenko <phcoder@gmail.com>
23955 * kern/ieee1275/init.c (grub_machine_set_prefix): Don't check for
23956 presence of "prefix" variable as it breaks when normal.mod is
23959 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23961 * term/ieee1275/ofconsole.c (grub_ofconsole_dimensions): Allocate on
23962 stack since heap is unavailable at that point.
23964 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23966 * include/grub/i386/bsd.h (FREEBSD_N_BIOS_GEOM): Removed.
23967 (grub_freebsd_bootinfo): Rewritten.
23968 * loader/i386/bsd.c (grub_freebsd_boot): Use new grub_freebsd_bootinfo.
23970 2010-01-21 Vladimir Serbinenko <phcoder@gmail.com>
23972 * util/misc.c (make_system_path_relative_to_its_root): Fix typo.
23974 2010-01-21 Robert Millan <rmh.grub@aybabtu.com>
23976 * po/POTFILES: Remove mkisofs-related files. They have their own TLP
23979 2010-01-20 Felix Zielcke <fzielcke@z-51.de>
23981 * util/misc.c (make_system_path_relative_to_its_root): Change the work
23982 around for handling "/" to the correct fix. Fix a memory leak. Use
23983 xstrdup instead of strdup.
23985 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23987 * conf/mips.rmk (kernel_img_HEADERS): Add env_private.h
23989 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
23991 Optimise glyph lookup by Basic Multilingual Plane lookup array.
23993 * font/font.c (struct grub_font): New member 'bmp_idx'.
23994 (font_init): Initialise 'bmp_idx'.
23995 (load_font_index): Fill 'bmp_idx'.
23996 (find_glyph): Make inline. Use bmp_idx for BMP characters.
23998 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24000 * video/fb/video_fb.c (grub_video_fb_scroll): Optimise by avoiding
24003 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24005 Move context handling out of the kernel.
24007 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/context.c.
24008 * conf/common.rmk (normal_mod_SOURCES): Add normal/context.c.
24009 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add env_private.h.
24010 * conf/i386-efi.rmk: Likewise.
24011 * conf/i386-ieee1275.rmk: Likewise.
24012 * conf/i386-pc.rmk: Likewise.
24013 * conf/powerpc-ieee1275.rmk: Likewise.
24014 * conf/sparc64-ieee1275.rmk: Likewise.
24015 * conf/x86_64-efi.rmk: Likewise.
24016 * include/grub/env.h: Include grub/menu.h.
24017 (grub_env_var_type): Removed.
24018 (grub_env_var): Replaced field 'type' with 'global'.
24019 (grub_env_find): New prototype.
24020 (grub_env_context_open): Remove EXPORT_FUNC.
24021 (grub_env_context_close): Likewise.
24022 (grub_env_export): Likewise.
24023 (grub_env_set_data_slot): Removed.
24024 (grub_env_get_data_slot): Likewise.
24025 (grub_env_unset_data_slot): Likewise.
24026 (grub_env_unset_menu): New prototype.
24027 (grub_env_set_menu): Likewise.
24028 (grub_env_get_menu): Likewise.
24029 * include/grub/env_private.h: New file.
24030 * include/grub/normal.h (grub_context_init): New prototype.
24031 (grub_context_fini): Likewise.
24032 * kern/corecmd.c (grub_core_cmd_export): Moved from here ...
24033 * normal/context.c (grub_cmd_export): ... to here.
24034 * kern/env.c: Include env_private.h.
24035 (HASHSZ): Moved to include/grub/env_private.h.
24036 (grub_env_context): Likewise.
24037 (grub_env_sorted_var): Likewise.
24038 (current_context): Renamed from this ...
24039 (grub_current_context): ...to this. 'static' removed. All users updated.
24040 (grub_env_find): Removed 'static'.
24041 (grub_env_context_open): Moved to normal/context.c.
24042 (grub_env_context_close): Likewise.
24043 (grub_env_export): Likewise.
24044 (mangle_data_slot_name): Removed.
24045 (grub_env_set_data_slot): Likewise.
24046 (grub_env_get_data_slot): Likewise.
24047 (grub_env_unset_data_slot): Likewise.
24048 * kern/main.c (grub_set_root_dev): Don't export root.
24049 It will be done later.
24050 (grub_main): Don't export prefix.
24051 It will be done later.
24052 * normal/context.c: New file.
24053 * normal/main.c (free_menu): Use grub_env_unset_menu.
24054 (grub_normal_add_menu_entry): Use grub_env_get_menu.
24055 (read_config_file): Use grub_env_get_menu and grub_env_set_menu.
24056 (GRUB_MOD_INIT(normal)): Call grub_context_init.
24057 (GRUB_MOD_FINI(normal)): Call grub_context_fini.
24059 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24063 * commands/setpci.c: New file.
24064 * conf/i386.rmk (pkglib_MODULES): Add setpci.mod.
24065 (setpci_mod_SOURCES): New variable.
24066 (setpci_mod_CFLAGS): Likewise.
24067 (setpci_mod_LDFLAGS): Likewise.
24069 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24071 Byte-addressable PCI configuration space.
24073 * bus/pci.c (grub_pci_make_address): Use byte address instead of
24075 (grub_pci_iterate): Use macroses GRUB_PCI_REG_PCI_ID and
24076 GRUB_PCI_REG_CACHELINE.
24077 * bus/usb/ohci.c (grub_ohci_pci_iter): Use macroses
24078 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG0.
24079 * bus/usb/uhci.c (grub_ohci_pci_iter): Use macroses
24080 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESS_REG4.
24081 * commands/efi/fixvideo.c (scan_card): Use macros GRUB_PCI_REG_CLASS.
24082 * commands/efi/loadbios.c (enable_rom_area): Pass byte-address to
24083 grub_pci_make_address.
24084 (lock_rom_area): Likewise.
24085 * commands/lspci.c (grub_lspci_iter): Use macroses
24086 GRUB_PCI_REG_CLASS and GRUB_PCI_REG_ADDRESSES. Handle byte-addressing
24087 of grub_pci_make_address.
24088 * disk/ata.c (grub_ata_pciinit): Likewise.
24089 * include/grub/pci.h (GRUB_PCI_REG_PCI_ID): New macro.
24090 (GRUB_PCI_REG_VENDOR): Likewise.
24091 (GRUB_PCI_REG_DEVICE): Likewise.
24092 (GRUB_PCI_REG_COMMAND): Likewise.
24093 (GRUB_PCI_REG_STATUS): Likewise.
24094 (GRUB_PCI_REG_REVISION): Likewise.
24095 (GRUB_PCI_REG_CLASS): Likewise.
24096 (GRUB_PCI_REG_CACHELINE): Likewise.
24097 (GRUB_PCI_REG_LAT_TIMER): Likewise.
24098 (GRUB_PCI_REG_HEADER_TYPE): Likewise.
24099 (GRUB_PCI_REG_BIST): Likewise.
24100 (GRUB_PCI_REG_ADDRESSES): Likewise.
24101 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24102 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24103 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24104 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24105 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24106 (GRUB_PCI_REG_ADDRESS_REG): Likewise.
24107 (GRUB_PCI_REG_CIS_POINTER): Likewise.
24108 (GRUB_PCI_REG_SUBVENDOR): Likewise.
24109 (GRUB_PCI_REG_SUBSYSTEM): Likewise.
24110 (GRUB_PCI_REG_ROM_ADDRESS): Likewise.
24111 (GRUB_PCI_REG_CAP_POINTER): Likewise.
24112 (GRUB_PCI_REG_IRQ_LINE): Likewise.
24113 (GRUB_PCI_REG_IRQ_PIN): Likewise.
24114 (GRUB_PCI_REG_MIN_GNT): Likewise.
24115 (GRUB_PCI_REG_MAX_LAT): Likewise.
24116 * loader/i386/efi/linux.c (find_framebuf): Use GRUB_PCI_REG_CLASS.
24117 * loader/i386/efi/xnu.c (find_framebuf): Likewise.
24118 * video/efi_uga.c (find_framebuf): Likewise.
24119 * video/sm712.c (grub_video_sm712_setup): Likewise.
24120 * util/pci.c (grub_pci_make_address): Use byte-addressed configuration
24123 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24125 * util/grub.d/10_linux.in (linux_entry): Set gfxpayload=keep when it
24126 can be reliably determined to be supported.
24128 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24130 * loader/i386/linux.c (grub_cmd_linux): If `vga=' was used, write down
24131 that VESA is supported.
24132 (grub_linux_boot): Use generic framebuffer unless VESA is known to be
24135 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24137 * conf/common.rmk (font/font.c_DEPENDENCIES): Condition on FONT_SOURCE.
24139 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24141 * util/misc.c (make_system_path_relative_to_its_root): Work around
24142 special-casing of "/", as previous incarnation of this routine did.
24144 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24146 Fix any-emu compilation.
24148 * conf/any-emu.rmk (bin_UTILITIES): Add grub-bin2h.
24149 * grub_bin2h_SOURCES: New variable.
24151 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24153 * util/grub.d/00_header.in: Fix stupid mistake from last commit.
24155 2010-01-20 Robert Millan <rmh.grub@aybabtu.com>
24157 * util/grub.d/00_header.in: Fix handling of locale_dir.
24159 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24161 * configure.ac: Add /usr/share/fonts/unifont/unifont.pcf.gz
24162 as possible unifont location (Gentoo).
24163 Reported by: Alexander Brüning
24165 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24167 Don't try to generate lists for kernel.img.
24169 * conf/i386-efi.rmk (pkglib_PROGRAMS): New variable.
24170 (pkglib_MODULES): Remove kernel.img.
24171 (kernel_img_EXPORTS): Removed.
24172 (kernel_img_RELOCATABLE): New variable.
24173 * conf/x86_64-efi.rmk: Likewise.
24174 * genmk.rb: Remove *_EXPORTS support and add *_RELOCATABLE support.
24176 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24178 * include/grub/misc.h (grub_sprintf): Removed. All users switched to
24179 grub_xasprintf or grub_snprintf.
24180 (grub_vsprintf): Likewise.
24181 (grub_snprintf): New proto.
24182 (grub_vsnprintf): Likewise.
24183 (grub_xasprintf): Likewise.
24184 (grub_xvasprintf): Likewise.
24185 * kern/misc.c (grub_vprintf): Use grub_vsnprintf_real.
24186 (grub_sprintf): Removed.
24187 (grub_vsnprintf): New function.
24188 (grub_snprintf): Likewise.
24189 (grub_xvasprintf): Likewise.
24190 (grub_xasprintf): Likewise.
24191 (grub_vsprintf): Renamed to ...
24192 (grub_vsnprintf_real): ...this. New argument max_len.
24194 2010-01-20 BVK Chaitanya <bvk.groups@gmail.com>
24196 * include/grub/script_sh.h (sourcecode): Remove const qualifier to
24197 fix grub-script-check warning.
24199 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24201 * include/grub/font.h (grub_font_load): Fix prototype.
24203 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24205 * conf/mips.rmk (kernel_img_HEADERS) [yeeloong]: Add pci.h.
24207 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24209 * include/grub/x86_64/at_keyboard.h: New file.
24211 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24213 * loader/mips/linux.c: Include missing grub/i18n.h.
24215 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24217 * normal/menu.c (notify_execution_failure): Clarify error message.
24219 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24221 * commands/loadenv.c (check_blocklists): Use `grub_err_t' as
24222 return value (and revert all return statements). Update users.
24224 2010-01-20 Dan Merillat <debian@dan.merillat.org>
24226 * kern/device.c (grub_device_iterate): Allocate new part_ent
24227 structure based on sizeof (*p) rather than sizeof (p->next), to
24228 account for structure padding.
24230 * util/grub-probe.c (probe_raid_level): Return -1 immediately if
24231 disk is NULL, which might happen for LVM physical volumes with no
24234 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24236 * loader/mips/linux.c (grub_cmd_initrd)
24237 (GRUB_MOD_INIT(linux)): Adjust and gettextize a few strings.
24239 2009-12-20 Robert Millan <rmh.grub@aybabtu.com>
24241 * kern/mips/yeeloong/init.c (grub_video_sm712_init)
24242 (grub_video_video_init, grub_video_bitmap_init)
24243 (grub_font_manager_init, grub_term_gfxterm_init)
24244 (grub_at_keyboard_init): New extern declarations.
24245 (grub_machine_init): Initialize gfxterm and at_keyboard.
24247 * kern/main.c (grub_main): Revert grub_printf delay kludge.
24249 * util/grub-install.in: Revert embed of `at_keyboard.mod' and
24250 `gfxterm.mod' into core image.
24252 * conf/mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24253 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24254 (kernel_img_FORMAT): Copy to ...
24256 * conf/mips-qemu-mips.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24257 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24258 (kernel_img_FORMAT): ... here, and ...
24260 * conf/mips-yeeloong.rmk (pkglib_IMAGES, kernel_img_SOURCES)
24261 (kernel_img_CFLAGS, kernel_img_ASFLAGS, kernel_img_LDFLAGS)
24262 (kernel_img_FORMAT): ... here.
24264 (kernel_img_SOURCES): Add files necessary for output (gfxterm)
24265 and input (at_keyboard) terminals in kernel.
24266 (kernel_img_CFLAGS): Add `-DUSE_ASCII_FAILBACK'.
24268 (pkglib_MODULES): Remove `pci.mod'.
24269 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS)
24270 (sm712_mod_SOURCES, sm712_mod_CFLAGS, sm712_mod_LDFLAGS)
24271 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
24272 (at_keyboard_mod_LDFLAGS): Remove variables.
24274 2010-01-11 Felix Zielcke <fzielcke@z-51.de>
24276 * po/POTFILES: Replace `term/i386/pc/serial.c' with `term/serial.c'.
24278 2009-12-10 Robert Millan <rmh.grub@aybabtu.com>
24280 * include/grub/mips/libgcc.h: Only export symbols for functions
24281 that libgcc provides.
24283 2009-12-02 Vladimir Serbinenko <phcoder@gmail.com>
24287 * bus/bonito.c: New file.
24288 * bus/pci.c (grub_pci_iterate): Use GRUB_PCI_NUM_BUS and
24289 GRUB_PCI_NUM_DEVICES.
24290 * term/i386/pc/serial.c: Move to ...
24291 * term/serial.c: ... here. All users updated.
24292 * util/i386/pc/grub-mkimage.c: Move to ...
24293 * util/grub-mkrawimage.c: ... here. All users updated.
24294 * term/i386/pc/at_keyboard.c: Move to ...
24295 * term/at_keyboard.c: ... here. All users updated.
24296 * conf/mips-qemu-mips.rmk: New file.
24297 * conf/mips-yeeloong.rmk: Likewise.
24298 * conf/mips.rmk: Likewise.
24299 * configure.ac: New platforms mipsel-yeeloong, mips-qemu-mips and
24301 * disk/ata.c (grub_ata_device_initialize): Add GRUB_MACHINE_PCI_IO_BASE
24303 (grub_ata_pciinit): Support CS5536.
24304 * font/font.c (grub_font_load): Use grub_file_t instead of filename.
24305 * font/font_cmd.c (loadfont_command): Open file before passing it to
24307 (pseudo_file_read): New function.
24308 (pseudo_file_close): Likewise.
24309 (pseudo_fs): New structure.
24310 (load_font_module): New function.
24311 (GRUB_MOD_INIT(font_manager)): Load embedded font.
24312 * fs/cpio.c (grub_cpio_open): Handle partial matches correctly.
24313 * genmk.rb: Strip .rel.dyn, .reginfo, .note and .comment.
24314 * genmoddep.awk: Ignore __gnu_local_gp. It's defined by linker.
24315 * include/grub/i386/at_keyboard.h: Split into ...
24316 * include/grub/at_keyboard.h: ... this ...
24317 * include/grub/i386/at_keyboard.h: ... and this.
24318 * include/grub/dl.h (grub_arch_dl_init_linker) [_mips && !GRUB_UTIL]:
24320 * include/grub/elfload.h (grub_elf32_size): New parameter. All users
24322 (grub_elf64_size): Likewise.
24323 * include/grub/font.h (grub_font_load): Use grub_file_t instead of
24325 * include/grub/i386/io.h (grub_port_t): New type. All users updated.
24326 * include/grub/i386/coreboot/serial.h: Rewritten.
24327 * include/grub/i386/ieee1275/serial.h: Include
24328 grub/i386/coreboot/serial.h instead of grub/i386/pc/serial.h.
24329 * include/grub/i386/pc/serial.h: Moved from here ...
24330 * include/grub/serial.h: ... to here. All users updated.
24331 * include/grub/i386/pci.h (GRUB_MACHINE_PCI_IO_BASE): New definition.
24332 (GRUB_PCI_NUM_BUS): Likewise.
24333 (GRUB_PCI_NUM_DEVICES): Likewise.
24334 (grub_pci_device_map_range): Add missing volatile keyword.
24335 * include/grub/kernel.h (OBJ_TYPE_FONT): New enum value.
24336 * include/grub/mips/at_keyboard.h: New file.
24337 * include/grub/mips/cache.h: Likewise.
24338 * include/grub/mips/io.h: Likewise.
24339 * include/grub/mips/kernel.h: Likewise.
24340 * include/grub/mips/libgcc.h: Likewise.
24341 * include/grub/mips/pci.h: Likewise.
24342 * include/grub/mips/qemu-mips/boot.h: Likewise.
24343 * include/grub/mips/qemu-mips/kernel.h: Likewise.
24344 * include/grub/mips/qemu-mips/loader.h: Likewise.
24345 * include/grub/mips/qemu-mips/memory.h: Likewise.
24346 * include/grub/mips/qemu-mips/serial.h: Likewise.
24347 * include/grub/mips/qemu-mips/time.h: Likewise.
24348 * include/grub/mips/relocator.h: Likewise.
24349 * include/grub/mips/time.h: Likewise.
24350 * include/grub/mips/types.h: Likewise.
24351 * include/grub/mips/yeeloong/at_keyboard.h: Likewise.
24352 * include/grub/mips/yeeloong/boot.h: Likewise.
24353 * include/grub/mips/yeeloong/kernel.h: Likewise.
24354 * include/grub/mips/yeeloong/loader.h: Likewise.
24355 * include/grub/mips/yeeloong/memory.h: Likewise.
24356 * include/grub/mips/yeeloong/pci.h: Likewise.
24357 * include/grub/mips/yeeloong/serial.h: Likewise.
24358 * include/grub/mips/yeeloong/time.h: Likewise.
24359 * kern/dl.c (grub_dl_resolve_symbols): Handle STT_OBJECT correctly.
24360 * kern/elf.c (grub_elf32_size): New parameter. All users
24362 (grub_elf64_size): Likewise.
24363 * kern/main.c (grub_main): Call grub_arch_dl_init_linker if necessary.
24364 Load modules before saying "Welcome to GRUB!".
24365 Call grub_refresh after saying "Welcome to GRUB!".
24366 * kern/mips/cache.S: New file.
24367 * kern/mips/cache_flush.S: Likewise.
24368 * kern/mips/dl.c: Likewise.
24369 * kern/mips/init.c: Likewise.
24370 * kern/mips/qemu-mips/init.c: Likewise.
24371 * kern/mips/startup.S: Likewise.
24372 * kern/mips/yeeloong/init.c: Likewise.
24373 * kern/term.c (grub_putcode): Handle NULL terminal.
24374 (grub_getcharwidth): Likewise.
24375 (grub_getkey): Likewise.
24376 (grub_checkkey): Likewise.
24377 (grub_getkeystatus): Likewise.
24378 (grub_getxy): Likewise.
24379 (grub_getwh): Likewise.
24380 (grub_gotoxy): Likewise.
24381 (grub_cls): Likewise.
24382 (grub_setcolorstate): Likewise.
24383 (grub_setcolor): Likewise.
24384 (grub_getcolor): Likewise.
24385 (grub_refresh): Likewise.
24386 * lib/mips/relocator.c (JUMP_SIZEOF): Fix incorrect value.
24387 (write_jump): Add hatch nop.
24388 * lib/mips/relocator_asm.S: Use kern/mips/cache_flush.S.
24389 * lib/mips/setjmp.S: New file.
24390 * loader/mips/linux.c: Likewise.
24391 * term/i386/pc/at_keyboard.c: Move from here ...
24392 * term/at_keyboard.c: ... to here.
24393 * term/i386/pc/serial.c: Moved from here ...
24394 * term/serial.c: ... to here. All users updated.
24395 (TEXT_HEIGHT): Set to 24 to fit linux terminal.
24396 (serial_hw_io_addr): Use GRUB_MACHINE_SERIAL_PORTS.
24397 (serial_translate_key_sequence): Avoid deadlock.
24398 (grub_serial_getkey): Handle backspace.
24399 (grub_serial_putchar): Fix newline handling.
24400 * util/i386/pc/grub-mkimage.c: Move from here ...
24401 * util/grub-mkrawimage.c: ... to here. All users updated.
24402 (generate_image): New parameters 'font_path' and 'format'.
24403 Support embedding font.
24404 Use grub_host_to_target* instead of grub_cpu_to_le*.
24405 (generate_image) [GRUB_MACHINE_MIPS]: Support ELF encapsulation.
24406 (options) [GRUB_PLATFORM_IMAGE_DEFAULT]: New option "--format".
24407 (options): New option "--font".
24409 (main) [GRUB_PLATFORM_IMAGE_DEFAULT]: Handle "--format".
24410 (main): Handle "--font".
24411 * term/gfxterm.c (grub_virtual_screen): New member bg_color_display.
24412 (grub_virtual_screen_setup): Set bg_color_display.
24413 (redraw_screen_rect): Use bg_color_display instead of incorrect
24415 (grub_gfxterm_cls): Likewise.
24416 * util/elf/grub-mkimage.c (load_modules): New parameter 'config_path'.
24417 Support embedding config file.
24418 (add_segments): Likewise.
24419 (options): New option "--config".
24420 (main): Handle "--config".
24421 * video/sm712.c: New file.
24423 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24425 Fix parallel builds.
24427 * conf/common.rmk (font/font.c_DEPENDENCIES): New variable (makes
24428 font.c depend on ascii.h).
24430 2010-01-12 Carles Pina i Estany <carles@pina.cat>
24432 * Makefile.in (DUSE_ASCII_FAILBACK): New macro.
24434 2010-01-11 Carles Pina i Estany <carles@pina.cat>
24436 * font/font.c (GENERATE_ASCII): Change the name to USE_ASCII_FAILBACK.
24437 By default: disabled.
24438 * Makefile.in (ascii.h): Remove the non-needed grub/bin2h size
24441 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24443 * font/font.c: Update copyright years.
24444 * util/grub-mkfont.c (write_font_ascii_bitmap): Change comment format.
24446 2010-01-10 Carles Pina i Estany <carles@pina.cat>
24448 * font/font.c: Include `ascii.h'.
24449 (ASCII_BITMAP_SIZE): New macro.
24450 (ascii_font_glyph): Define.
24451 (ascii_glyph_lookup): New function.
24452 (grub_font_get_string_width): Change comment. If glyph not found, use
24453 ascii_glyph_lookup.
24454 (grub_font_get_glyph_with_fallback): If glyph not available returns
24455 ascii_glyph_lookup.
24456 * util/grub-mkfont.c (file_formats): New enum.
24457 (options): Add `ascii-bitmaps' new option.
24458 (usage): Add `asii-bitmaps' new option.
24459 (write_font_ascii_bitmap): New function.
24460 (write_font): Rename to ...
24461 (write_font_p2): ... this. Remove print_glyphs call.
24462 (main): Use file_format. Implement code for ranges if ascii-bitmaps is
24463 used. Call print_glyphs.
24464 * Makefile.in (pkgdata_DATA): Add `ascii.h'.
24466 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24468 * conf/common.rmk (bin_UTILITIES): Add `grub-bin2h'.
24469 (grub_bin2h_SOURCES): New variable.
24470 * util/bin2h.c: New file.
24472 2010-01-20 Vladimir Serbinenko <phcoder@gmail.com>
24474 * include/multiboot.h: Resynced with spec.
24475 * include/multiboot2.h: Likewise.
24476 * loader/i386/multiboot_mbi.c (grub_fill_multiboot_mmap): Handle
24477 GRUB_MACHINE_MEMORY_ACPI_RECLAIMABLE and GRUB_MACHINE_MEMORY_NVS.
24479 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24481 * include/grub/term.h (grub_term_register_input,
24482 grub_term_register_output): Check return of terminal init()
24483 routines, and abort if errors are raised.
24485 * commands/terminal.c: Update copyright year.
24487 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24489 * commands/terminal.c (grub_cmd_terminal_input)
24490 (grub_cmd_terminal_output): Check return of terminal init()
24491 routines, and abort if errors are raised.
24493 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24495 * include/grub/i386/bsd.h: Fix include pathes.
24497 2010-01-18 Vladimir Serbinenko <phcoder@gmail.com>
24499 Add missing *BSD copyright headers.
24501 * include/grub/aout.h: Add BSD licence.
24502 * include/grub/i386/bsd.h: Parts under different licences moved to ...
24503 * include/grub/i386/freebsd_linker.h: ... here,
24504 * include/grub/i386/freebsd_reboot.h: ... here,
24505 * include/grub/i386/netbsd_bootinfo.h: ... here,
24506 * include/grub/i386/netbsd_reboot.h: ... here,
24507 * include/grub/i386/openbsd_bootarg.h: ... here,
24508 * include/grub/i386/openbsd_reboot.h: ... and here. Added appropriate
24509 licence to each file.
24511 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24513 * acinclude.m4: Remove `nop' assembly instruction; it's not
24514 implemented by all architectures.
24516 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24518 * loader/i386/efi/linux.c (grub_cmd_linux): Stop pretending we're
24519 ELILO. This is no longer necessary.
24521 2010-01-18 BVK Chaitanya <bvk.groups@gmail.com>
24523 Added new tool, grub-scrit-check to verify grub.cfg syntax.
24525 * util/grub-script-check.c: grub-script-check tool.
24526 * conf/common.rmk: Make rules for grub-script-check.
24528 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24530 Fix annoying UI bug in rescue mode. Thanks to Tristan Gingold for
24531 spotting it back in 2008. Shame on me for forgetting he did.
24533 * kern/rescue_reader.c (grub_rescue_run): Skip zero-length lines.
24535 2010-01-18 Robert Millan <rmh.grub@aybabtu.com>
24537 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): Rename to ...
24538 (GRUB_VIDEO_LINUX_TYPE_TEXT): ... this. Update all users.
24539 (GRUB_VIDEO_TYPE_VLFB): Rename to ...
24540 (GRUB_VIDEO_LINUX_TYPE_VESA): ... this. Update all users.
24541 (GRUB_VIDEO_TYPE_EFI): Rename to ...
24542 (GRUB_VIDEO_LINUX_TYPE_SIMPLE): ... this. Update all users.
24544 2010-01-17 Robert Millan <rmh.grub@aybabtu.com>
24546 * include/grub/test.h: Add license header.
24547 * tests/example_functional_test.c: Likewise.
24548 * tests/example_unit_test.c: Likewise.
24549 * tests/lib/functional_test.c: Likewise.
24550 * tests/lib/test.c: Likewise.
24551 * tests/lib/unit_test.c: Likewise.
24553 2010-01-17 Vladimir Serbinenko <phcoder@gmail.com>
24555 Use flag-based instead of hook-based video mode selection and "auto"
24558 * include/grub/video.h (grub_video_adapter): Changed 'setup' member.
24559 (grub_video_set_mode): Changed prototype. All users updated.
24560 (grub_video_check_mode_flag): New inline function.
24561 * video/video.c (parse_modespec): New function.
24562 (grub_video_set_mode): Parse flags and keywords.
24564 2010-01-17 Carles Pina i Estany <carles@pina.cat>
24566 * util/misc.c (grub_util_info): Fix the order of the parameters in a
24569 2010-01-16 Grégoire Sutre <gregoire.sutre@gmail.com>
24571 * genmk.rb (class SCRIPT): Replace option -i of sed by a pipe.
24573 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24575 * util/grub-editenv.c (usage): Use `program_name' instead of hardcoded
24577 * util/grub-emu.c (usage): Likewise.
24578 * util/grub-mkpasswd-pbkdf2.c (usage): Likewise.
24579 * util/i386/efi/grub-mkimage.c (usage): Likewise.
24580 * util/i386/pc/grub-mkimage.c (usage): Likewise.
24581 * util/i386/pc/grub-setup.c (usage): Likewise.
24583 2010-01-16 Carles Pina i Estany <carles@pina.cat>
24585 * util/misc.c (grub_util_warn): Gettextizze, print full stop after
24587 (grub_util_info): Likewise.
24588 (grub_util_error): Likewise.
24589 * util/elf/grub-mkimage.c: Fix capitalisation, quotes, full stops
24590 and/or new lines in `grub_util_warna', `grub_util_info',
24591 `grub_util_error' calls.
24592 * util/getroot.c: Likewise.
24593 * util/grub-editenv.c: Likewise.
24594 * util/grub-emu.c: Likewise.
24595 * util/grub-fstest.c: Likewise.
24596 * util/grub-mkdevicemap.c: Likewise.
24597 * util/grub-mkfont.c: Likewise.
24598 * util/grub-mkpasswd-pbkdf2.c: Likewise.
24599 * util/grub-mkrelpath.c: Likewise.
24600 * util/grub-pe2elf.c: Likewise.
24601 * util/grub-probe.c: Likewise.
24602 * util/hostdisk.c: Likewise.
24603 * util/i386/efi/grub-mkimage.c: Likewise.
24604 * util/i386/pc/grub-mkimage.c: Likewise.
24605 * util/i386/pc/grub-setup.c: Likewise.
24606 * util/ieee1275/ofpath.c: Likewise.
24607 * util/mkisofs/eltorito.c: Likewise.
24608 * util/mkisofs/rock.c: Likewise.
24609 * util/mkisofs/write.c: Likewise.
24610 * util/raid.c: Likewise.
24611 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
24612 * util/sparc64/ieee1275/grub-setup.c: Likewise.
24614 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24616 Enable multiboot on non-pc.
24618 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (pkglib_MODULES): Move
24619 multiboot.mod and multiboot2.mod to ...
24620 * conf/i386.rmk (pkglib_MODULES): ... here.
24621 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_SOURCES):
24623 * conf/i386.rmk (multiboot_mod_SOURCES): .. here.
24624 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_CFLAGS):
24626 * conf/i386.rmk (multiboot_mod_CFLAGS): .. here.
24627 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_ASFLAGS):
24629 * conf/i386.rmk (multiboot_mod_ASFLAGS): .. here.
24630 * conf/i386-coreboot.rmk, conf/i386-pc.rmk (multiboot_mod_LDFLAGS):
24632 * conf/i386.rmk (multiboot_mod_LDFLAGS): .. here.
24633 * conf/x86_64-efi.rmk (pkglib_MODULES): Remove ata.mod and
24635 (ata_mod_SOURCES): Removed.
24636 (ata_mod_CFLAGS): Likewise.
24637 (ata_mod_LDFLAGS): Likewise.
24638 (relocator_mod_SOURCES): Removed.
24639 (relocator_mod_CFLAGS): Likewise.
24640 (relocator_mod_ASFLAGS): Likewise.
24641 (relocator_mod_LDFLAGS): Likewise.
24643 * include/grub/x86_64/multiboot.h: New file.
24644 * loader/i386/multiboot.c (grub_multiboot_boot) [GRUB_MACHINE_EFI]:
24647 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24649 Video multiboot support.
24651 * include/grub/multiboot.h (grub_multiboot_set_accepts_video):
24653 * include/multiboot.h: Resynced with multiboot specification.
24654 * include/multiboot2.h: Likewise.
24655 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): Support video flags.
24656 (grub_multiboot): Parse MULTIBOOT_VIDEO_MODE fields.
24657 * loader/i386/multiboot_mbi.c (DEFAULT_VIDEO_MODE): New constant.
24658 (HAS_VGA_TEXT): Likewise.
24659 (accepts_video): New variable.
24660 (grub_multiboot_set_accepts_video): New function.
24661 (grub_multiboot_get_mbi_size): Account for video structures.
24662 (set_video_mode): New function.
24663 (retrieve_video_parameters): Likewise.
24664 (grub_multiboot_make_mbi): Fill video fields.
24666 2010-01-15 Vladimir Serbinenko <phcoder@gmail.com>
24670 * include/grub/video.h (grub_video_driver_id): New type.
24671 (grub_video_adapter): New member 'id'. All users updated.
24672 (grub_video_get_driver_id): New proto.
24673 * video/video.c (grub_video_get_driver_id): New function.
24675 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24677 * util/grub.d/30_os-prober.in: Use `set var=val' rather than plain
24680 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24682 * normal/cmdline.c (print_completion): Gettextizze.
24684 2001-01-14 Carles Pina i Estany <carles@pina.cat>
24686 * loader/i386/pc/chainloader.c: Include `<grub/mm.h>'.
24688 2010-01-14 Carles Pina i Estany <carles@pina.cat>
24690 * gettext/gettext.c (grub_gettext_translate): Push and pop
24692 (grub_gettext_delete_list): Change comment style.
24693 * kern/err.c (grub_error): Gettextizze.
24694 (grub_fatal): Gettextizze.
24696 2010-01-14 Robert Millan <rmh.grub@aybabtu.com>
24698 * include/grub/i386/loader.h (grub_linux16_boot): Renamed to ...
24699 (grub_linux16_real_boot): ... this.
24700 * kern/i386/loader.S: Likewise.
24701 * loader/i386/pc/linux.c: Include `<grub/video.h>' and `<grub/mm.h>'.
24702 (grub_linux16_boot): New function. Switches to text mode and calls
24703 grub_linux16_real_boot().
24705 * loader/i386/bsd.c: Include `<grub/video.h>'.
24706 (grub_freebsd_boot, grub_openbsd_boot, grub_netbsd_boot): Switch to
24707 text mode before calling grub_unix_real_boot().
24709 * loader/i386/multiboot.c: Include `<grub/video.h>'.
24710 (grub_multiboot_boot): Switch to text mode before calling
24711 grub_relocator32_boot().
24713 * loader/i386/pc/chainloader.c: Include `<grub/video.h>'.
24714 (grub_chainloader_boot): Switch to text mode before calling
24715 grub_chainloader_real_boot().
24717 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24718 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24720 * util/grub-reboot.in: Make sure prev_saved_entry always gets a
24723 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24724 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24726 * util/grub.d/00_header.in: Define a "savedefault" function for use
24728 * util/grub-mkconfig_lib.in (save_default_entry): Use it.
24730 2010-01-05 Jordan Uggla <jordan.uggla@gmail.com>
24731 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
24733 * util/grub-mkconfig_lib.in (save_default_entry): Only set
24734 saved_entry if boot_once is unset.
24735 * util/grub.d/00_header.in: Set boot_once to "true" if there was a
24736 previous saved entry (i.e. grub-reboot).
24738 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24740 * util/grub.d/30_os-prober.in: Call save_default_entry for hurd.
24742 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24744 * util/grub.d/00_header.in: Use `set var=val' rather than plain
24746 * util/grub-mkconfig_lib.in (save_default_entry): Likewise.
24748 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24750 * util/grub-reboot.in: Fix --version output.
24751 * util/grub-set-default.in: Likewise.
24753 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24755 * util/grub.d/00_header.in: Silently ignore zero-sized environment
24758 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24760 * util/grub.d/00_header.in: Quote the value assigned to `default',
24761 in case it contains spaces.
24763 2009-12-08 Colin Watson <cjwatson@ubuntu.com>
24765 * util/grub.d/30_os-prober.in: Fix merge error that moved a
24766 `save_default_entry' call from the macosx case to the linux case.
24768 2009-10-25 Vladimir Serbinenko <phcoder@gmail.com>
24769 2009-10-25 Colin Watson <cjwatson@ubuntu.com>
24771 * normal/menu.c (grub_menu_execute_entry): Save selected entry title
24772 in `chosen' environment variable.
24773 * normal/menu_text.c (get_entry_number): Check if the variable
24774 matches the title of a menu entry.
24775 (run_menu): Pass menu to get_entry_number.
24777 * util/grub-reboot.in: New file.
24778 * util/grub-set-default.in: New file.
24779 * conf/common.rmk (grub-reboot): New utility.
24780 (grub-set-default): New utility.
24782 * util/grub-mkconfig_lib.in (save_default_entry): New function.
24783 * util/grub.d/00_header.in: If GRUB_DEFAULT is `saved', set
24784 default to `${saved_entry}'. If `${prev_saved_entry}' is non-empty,
24785 move it to `saved_entry' for the next boot. Load environment on
24787 * util/grub.d/10_kfreebsd.in: Call save_default_entry.
24788 * util/grub.d/10_hurd.in: Likewise.
24789 * util/grub.d/10_linux.in (linux_entry): Likewise.
24790 * util/grub.d/10_windows.in: Likewise.
24791 * util/grub.d/30_os-prober.in: Likewise.
24793 * util/grub-install.in: Create environment block.
24794 * util/i386/efi/grub-install.in: Likewise.
24795 * util/ieee1275/grub-install.in: Likewise.
24796 * util/sparc64/ieee1275/grub-install.in: Likewise.
24798 2010-01-14 BVK Chaitanya <bvk.groups@gmail.com>
24800 Unit testing framework for GRUB.
24802 * Makefile.in: Test framework build rules for 'make check'.
24803 * conf/tests.rmk: Build rules for individual tests and framework.
24805 * include/grub/test.h: Header file for whitebox tests.
24806 * tests/lib/functional_test.c: Framework support for whitebox
24808 * tests/lib/test.c: Common whitebox testing code for unit and
24810 * tests/lib/unit_test.c: Framework support for whitebox unit
24813 * tests/util/grub-shell-tester.in: Support utility for grub-script
24815 * tests/util/grub-shell.in: Utility to execute grub-script
24816 commands in a Qemu instance.
24818 * tests/example_functional_test.c: Example whitebox functional
24820 * tests/example_grub_script_test.in: Example grub-script test.
24821 * tests/example_scripted_test.in: Example scripted test.
24822 * tests/example_unit_test.c: Example whitebox unit test.
24824 2010-01-14 Vladimir Serbinenko <phcoder@gmail.com>
24826 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES):
24827 Add loader/i386/multiboot_mbi.c.
24828 (multiboot2_mod_SOURCES): Likewise.
24829 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Likewise.
24830 (multiboot2_mod_SOURCES): Likewise.
24831 * include/grub/multiboot.h (grub_multiboot_get_mbi_size): New proto.
24832 (grub_multiboot_make_mbi): Likewise.
24833 (grub_multiboot_free_mbi): Likewise.
24834 (grub_multiboot_init_mbi): Likewise.
24835 (grub_multiboot_add_module): Likewise.
24836 (grub_multiboot_set_bootdev): Likewise.
24837 * loader/i386/multiboot.c (mbi): Removed.
24838 (mbi_dest): Likewise.
24839 (alloc_mbi): New variable.
24840 (grub_multiboot_payload_size): Removed. All users updated.
24841 (grub_multiboot_pure_size): New variable.
24842 (grub_multiboot_boot): Use grub_multiboot_make_mbi.
24843 (grub_multiboot_unload): Use grub_multiboot_free_mbi.
24844 (grub_get_multiboot_mmap_len): Moved to loader/i386/multiboot_mbi.c.
24845 (grub_fill_multiboot_mmap): Likewise.
24846 (grub_multiboot_get_bootdev): Likewise.
24847 (grub_multiboot): Use multiboot_mbi functions.
24848 * loader/i386/multiboot_mbi.c: New file.
24850 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24852 * kern/efi/init.c (grub_efi_fini): Don't call grub_efi_mm_fini as
24853 it would result in module crash.
24855 2010-01-13 Vladimir Serbinenko <phcoder@gmail.com>
24857 * term/ieee1275/ofconsole.c (grub_ofconsole_putchar): Handle '\r'.
24858 (grub_ofconsole_getwh): Split to ...
24859 (grub_ofconsole_getwh): ... this.
24860 (grub_ofconsole_dimensions): ...and this.
24861 (grub_ofconsole_init_output): Call grub_ofconsole_dimensions.
24863 2010-01-13 Robert Millan <rmh.grub@aybabtu.com>
24865 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Fix a typo.
24867 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24869 * loader/i386/pc/multiboot2.c: Removed stalled file.
24871 2010-01-12 Vladimir Serbinenko <phcoder@gmail.com>
24873 * util/grub-mkpasswd-pbkdf2.c (main): Use grub_util_init_nls.
24874 Reported by: Grégoire Sutre
24876 2010-01-11 Robert Millan <rmh.grub@aybabtu.com>
24878 * util/misc.c (canonicalize_file_name): New function.
24879 (make_system_path_relative_to_its_root): Use canonicalize_file_name()
24880 instead of realpath().
24882 2010-01-11 Colin Watson <cjwatson@ubuntu.com>
24884 * util/grub-install.in (usage): Clarify meaning of --root-directory,
24885 and make it clearer that it's optional. Based on confusion
24888 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24890 * term/i386/pc/vga_text.c (inc_y): Fix off-by-one error which resulted
24891 in premature implicit newline.
24893 2010-01-10 Vladimir Serbinenko <phcoder@gmail.com>
24895 * normal/cmdline.c (grub_cmdline_get): Fix off-by-one error
24896 which resulted in garbled command line at the end of screen.
24898 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24900 * loader/i386/ieee1275/linux.c (grub_linux_boot): Rework video position
24901 initialization with similar approach as with other Linux loaders.
24903 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24905 Fix i386-ieee1275 build.
24907 * loader/i386/ieee1275/linux.c (grub_linux_boot): Use grub_term_width()
24908 and grub_term_height() for video_{width,height} initialization.
24910 2010-01-10 Robert Millan <rmh.grub@aybabtu.com>
24912 Fix grub-emu build.
24914 * conf/any-emu.rmk (grub_emu_SOURCES): Remove `kern/reader.c'.
24916 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
24917 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
24919 Support for multiple terminals.
24921 * Makefile.in (pkglib_DATA): terminal.lst.
24922 (terminal.lst): New target.
24923 * commands/handler.c (grub_cmd_handler): Don't handle terminals.
24924 (GRUB_MOD_INIT(handler)): Likewise.
24925 (GRUB_MOD_FINI(handler)): Likewise.
24926 * commands/help.c (grub_cmd_help): Handle multiple terminals.
24927 * commands/keystatus.c (grub_cmd_keystatus): Likewise.
24928 * commands/sleep.c (do_print): Use grub_term_restore_pos.
24929 (grub_cmd_sleep): Use grub_term_save_pos.
24930 * commands/terminal.c: New file.
24931 * conf/any-emu.rmk (grub_emu_SOURCES): Add normal/term.c
24932 commands/terminal.c and lib/charset.c.
24933 * conf/common.rmk (normal_mod_SOURCES): Add normal/term.c.
24934 (pkglib_MODULES): Add terminal.mod.
24935 (terminal_mod_SOURCES): New variable.
24936 (terminal_mod_CFLAGS): Likewise.
24937 (terminal_mod_LDFLAGS): Likewise.
24938 * genhandlerlist.sh: Don't handle terminals.
24939 * genmk.rb: Generate terminal-*.lst.
24940 * genterminallist.sh: New file.
24941 * include/grub/charset.h (grub_ucs4_to_utf8_alloc): New proto.
24942 (grub_is_valid_utf8): Likewise.
24943 (grub_utf8_to_ucs4_alloc): Likewise.
24944 * include/grub/menu_viewer.h (grub_menu_viewer): Rewritten.
24945 (grub_menu_register_viewer): Changed argument.
24946 (grub_menu_try_text): New proto.
24947 (grub_gfxmenu_try_hook): New declaration.
24948 * include/grub/normal.h (grub_normal_exit_level): New declaration.
24949 (grub_menu_init_page): Additional argument term.
24950 (grub_normal_init_page): Likewise.
24951 (grub_cmdline_get): Arguments simplified.
24952 (grub_utf8_to_ucs4_alloc): Removed.
24953 (grub_print_ucs4): Additional argument term.
24954 (grub_getstringwidth): Likewise.
24955 (grub_print_message_indented): Likewise.
24956 (grub_menu_text_register_instances): New proto.
24957 (grub_show_menu): Likewise.
24958 (read_terminal_list): Likewise.
24959 (grub_set_more): Likewise.
24960 * include/grub/parser.h: Include handler.h.
24961 * include/grub/reader.h: Rewritten.
24962 * include/grub/term.h (GRUB_TERM_NEED_INIT): Removed.
24963 (GRUB_TERM_WIDTH): Changed to function.
24964 (GRUB_TERM_HEIGHT): Likewise.
24965 (GRUB_TERM_BORDER_WIDTH): Likewise.
24966 (GRUB_TERM_BORDER_HEIGHT): Likewise.
24967 (GRUB_TERM_NUM_ENTRIES): Likewise.
24968 (GRUB_TERM_ENTRY_WIDTH): Likewise.
24969 (GRUB_TERM_CURSOR_X): Likewise.
24970 (grub_term_input_class): Likewise.
24971 (grub_term_output_class): Likewise.
24972 (grub_term_outputs_disabled): New declaration.
24973 (grub_term_inputs_disabled): Likewise.
24974 (grub_term_outputs): Likewise.
24975 (grub_term_inputs): Likewise.
24976 (grub_term_register_input): Rewritten.
24977 (grub_term_register_output): Likewise.
24978 (grub_term_unregister_input): Likewise.
24979 (grub_term_unregister_output): Likewise.
24980 (FOR_ACTIVE_TERM_INPUTS): New macro.
24981 (FOR_DISABLED_TERM_INPUTS): Likewise.
24982 (FOR_ACTIVE_TERM_OUTPUTS): Likewise.
24983 (FOR_DISABLED_TERM_OUTPUTS): Likewise.
24984 * include/grub/terminfo.h: Add oterm argument to all protypes.
24985 * kern/main.c (grub_main): Don't call grub_register_rescue_reader.
24986 Use grub_rescue_run.
24987 * kern/misc.c (grub_utf8_to_ucs4): Put '?' for invalid characters.
24989 * kern/reader.c: Removed. All users updated.
24990 * kern/rescue_reader.c (grub_rescue_init): Removed.
24991 (grub_rescue_reader): Likewise.
24992 (grub_register_rescue_reader): Likewise.
24993 (grub_rescue_run): New function based on kern/reader.c.
24994 * kern/term.c: Adapted for multiterm.
24995 * lib/charset.c (grub_ucs4_to_utf8_alloc): New function.
24996 (grub_is_valid_utf8): Likewise.
24997 (grub_utf8_to_ucs4_alloc): Moved from normal/menu_text.c.
24998 * loader/i386/efi/linux.c (grub_cmd_linux): Retrieve parameters of
25000 * loader/i386/linux.c (grub_linux_boot): Likewise.
25001 * normal/auth.c (grub_username_get): New function.
25002 (grub_auth_check_authentication): Use grub_username_get.
25003 * normal/cmdline.c: Changed to UCS4. Adapted for multiterm.
25004 * normal/color.c: Adapt for multiterm.
25005 * normal/main.c (read_config_file): Don't use grub_reader_loop.
25006 (grub_normal_init_page): Additional argument term.
25007 (read_lists): Call read_terminal_lists.
25008 (grub_enter_normal_mode): Call grub_cmdline_run.
25009 Handle grub_normal_exit_level.
25010 (grub_cmd_normal): Make reentrant.
25011 (grub_cmd_normal_exit): New function.
25012 (grub_normal_reader_init): Additional argument nested. Handle multiterm.
25013 * normal/menu.c: Adapt for multiterm.
25014 * normal/menu_entry.c: Likewise.
25015 * normal/menu_text.c: Likewise.
25016 * normal/menu_viewer.c: Removed. All users updated.
25017 * normal/term.c: New file.
25018 * util/console.c: Change order of includes to workaround a bug in
25020 * term/terminfo.c: New argument oterm on all exported functions.
25022 * util/grub-editenv.c (grub_term_input_class): Removed.
25023 (grub_term_output_class): Likewise.
25025 2010-01-09 Robert Millan <rmh.grub@aybabtu.com>
25027 Make loader output a bit more user-friendly.
25029 * util/grub.d/10_hurd.in: Print message indicating that GNU Mach
25030 is being loaded. Likewise for the Hurd.
25032 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Print message indicating
25033 that kernel of FreeBSD ${version} is being loaded.
25035 * loader/i386/linux.c (grub_cmd_linux): Move debug info to
25037 (grub_cmd_initrd): Likewise.
25038 * util/grub.d/10_linux.in (linux_entry): Print message indicating
25039 that Linux ${version} is being loaded. Likewise for initrd.
25041 2010-01-09 Carles Pina i Estany <carles@pina.cat>
25043 * gettext/gettext.c (GRUB_MOD_INIT): Gettextizze.
25045 2010-01-08 Carles Pina i Estany <carles@pina.cat>
25047 * loader/efi/appleloader.c: Include `<grub/i18n.h>'.
25048 (GRUB_MOD_INIT): Gettextizze.
25049 * loader/efi/chainloader.c: Include `<grub/i18n.h>'.
25050 (GRUB_MOD_INIT): Gettextizze.
25051 * loader/i386/efi/linux.c: Include `<grub/i18n.h>'.
25052 (grub_cmd_linux): Capitalise Linux.
25053 (GRUB_MOD_INIT): Gettextizze.
25054 * loader/i386/ieee1275/linux.c: Include `<grub/i18n.h>'.
25055 (grub_cmd_linux): Capitalise Linux.
25056 (GRUB_MOD_INIT): Gettextizze.
25057 * loader/i386/linux.c: Include `<grub/i18n.h>'.
25058 (grub_cmd_linux): Capitalise Linux.
25059 (GRUB_MOD_INIT): Gettextizze.
25060 * loader/i386/pc/chainloader.c: Include `<grub/i18n.h>'.
25061 (GRUB_MOD_INIT): Gettextizze.
25062 * loader/i386/pc/linux.c: Include `<grub/i18n.h>'.
25063 (grub_cmd_linux): Capitalise Linux.
25064 (GRUB_MOD_INIT): Gettextizze.
25065 * loader/i386/xnu.c: Include `<grub/i18n.h>'.
25066 (grub_cpu_xnu_init): Gettextizze.
25067 * loader/multiboot_loader.c: Include `<grub/i18n.h>'.
25068 (GRUB_MOD_INIT): Gettextizze.
25069 * loader/powerpc/ieee1275/linux.c: Include `<grub/i18n.h>'.
25070 (GRUB_MOD_INIT): Gettextizze.
25071 * loader/sparc64/ieee1275/linux.c: Include `<grub/i18n.h>'.
25072 (grub_linux_load64): Capitalise Linux.
25073 (GRUB_MOD_INIT): Gettextizze.
25074 * loader/xnu.c: Include `<grub/i18n.h>'.
25075 (GRUB_MOD_INIT): Gettextizze.
25076 * po/POTFILES: Add `loader/efi/appleloader.c',
25077 `loader/efi/chainloader.c', `loader/i386/efi/linux.c',
25078 `loader/i386/ieee1275/linux.c', `loader/i386/linux.c',
25079 `loader/i386/pc/chainloader.c', `loader/i386/pc/linux.c',
25080 `loader/i386/xnu.c', `loader/multiboot_loader.c',
25081 `loader/powerpc/ieee1275/linux.c', `loader/sparc64/ieee1275/linux.c'
25082 and `loader/xnu.c'.
25084 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25086 * src/mkisofs.c: Remove `ifdef linux' portability kludge.
25088 2010-01-08 Robert Millan <rmh.grub@aybabtu.com>
25090 * util/mkisofs/defaults.h (APPID_DEFAULT): Redefine using PACKAGE_NAME.
25091 (SYSTEM_ID_DEFAULT): Set to "GNU" unconditionally.
25092 * util/mkisofs/mkisofs.c (main): Readjust --version output.
25094 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25096 Reset Multiboot 2 support. New loader implements the draft in
25097 /branches/multiboot2 and shares as much code as possible with the
25098 production Multiboot 1 implementation.
25100 * loader/ieee1275/multiboot2.c: Remove file. Update all users.
25101 * loader/multiboot2.c: Likewise.
25102 * loader/i386/multiboot_helper.S: Likewise.
25103 * include/multiboot2.h: Replace with latest version from the draft
25104 in /branches/multiboot2.
25106 * conf/i386-coreboot.rmk (multiboot_mod_SOURCES): Remove
25107 `loader/i386/multiboot_helper.S', `loader/i386/pc/multiboot2.c'
25108 and `loader/multiboot2.c'.
25109 (pkglib_MODULES): Add `multiboot2.mod'.
25110 (multiboot2_mod_SOURCES): New variable.
25111 (multiboot2_mod_LDFLAGS): Likewise.
25112 (multiboot2_mod_CFLAGS): Likewise. Define `GRUB_USE_MULTIBOOT2'.
25114 * conf/i386-pc.rmk: Likewise.
25116 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
25117 (multiboot_mod_SOURCES): Remove variable.
25118 (multiboot_mod_LDFLAGS): Likewise.
25119 (multiboot_mod_CFLAGS): Likewise.
25121 * include/grub/multiboot.h [GRUB_USE_MULTIBOOT2]: Include
25122 `<multiboot2.h>' instead of `<multiboot.h>'.
25123 [GRUB_USE_MULTIBOOT2] (MULTIBOOT_BOOTLOADER_MAGIC)
25124 (MULTIBOOT_HEADER_MAGIC): New macros.
25126 * loader/multiboot_loader.c (module_version_status): Remove variable.
25127 (find_multi_boot2_header): Remove function.
25128 (grub_cmd_multiboot_loader): Remove Multiboot 2 / Multiboot 1 selection
25129 logic. Always check for the Multiboot version we're compiling for.
25130 (grub_cmd_module_loader): Likewise.
25131 [GRUB_USE_MULTIBOOT2] (GRUB_MOD_INIT(multiboot)): Register `multiboot2'
25132 command instead of `multiboot'.
25134 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25136 * include/multiboot.h (MULTIBOOT_UNSUPPORTED): Moved from here ...
25137 * loader/i386/multiboot.c (UNSUPPORTED_FLAGS): ... to here. Update
25140 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25141 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25143 Fix breakage introduced with previous commit.
25145 * normal/dyncmd.c (read_command_list): Avoid unregistering kernel
25147 * normal/handler.c (read_handler_list): Revert part of previous commit
25148 affecting this file.
25149 * normal/main.c (read_lists): Move read_handler_list() call back to ...
25150 (grub_normal_execute): ... here.
25152 2010-01-07 Robert Millan <rmh.grub@aybabtu.com>
25154 Merge prefix-redefinition-fix branch.
25156 * normal/autofs.c (read_fs_list): Make function capable of being
25157 run multiple times, gracefuly replacing the previous data
25159 * normal/dyncmd.c (read_command_list): Likewise.
25160 * normal/handler.c (read_handler_list): Likewise.
25161 * normal/main.c (read_lists): New function. Calls all the
25162 list reading functions.
25163 (grub_normal_execute): Use read_lists() instead of calling all
25164 list reading functions explicitly. Register read_lists() as a
25165 variable hook attached to ${prefix}.
25167 2010-01-07 Vladimir Serbinenko <phcoder@gmail.com>
25169 Merge crypto branch.
25171 * Makefile.in (pkglib_DATA): Add crypto.lst.
25172 (crypto.lst): New target.
25173 * commands/hashsum.c: New file.
25174 * commands/password.c (check_password): Use grub_crypto_memcmp.
25175 * commands/password_pbkdf2.c: New file.
25176 * commands/xnu_uuid.c: Remove MD5. Use GRUB_MD_MD5.
25177 * conf/any-emu.rmk (grub_emu_SOURCES): Add lib/crypto.c,
25178 normal/crypto.c and lib/libgcrypt-grub/cipher/md5.c.
25179 (grub_emu_CFLAGS): Add -Wno-missing-field-initializers -Wno-error
25180 -I$(srcdir)/lib/libgcrypt_wrap.
25181 * conf/common.rmk (normal_mod_SOURCES): Add normal/crypto.c.
25182 (pkglib_MODULES): Add crypto.mod, hashsum.mod, pbkdf2.mod and
25183 password_pbkdf2.mod.
25184 (crypto_mod_SOURCES): New variable.
25185 (crypto_mod_CFLAGS): Likewise.
25186 (crypto_mod_LDFLAGS): Likewise.
25187 (hashsum_mod_SOURCES): New variable.
25188 (hashsum_mod_CFLAGS): Likewise.
25189 (hashsum_mod_LDFLAGS): Likewise.
25190 (pbkdf2_mod_SOURCES): New variable.
25191 (pbkdf2_mod_CFLAGS): Likewise.
25192 (pbkdf2_mod_LDFLAGS): Likewise.
25193 (password_pbkdf2_mod_SOURCES): New variable.
25194 (password_pbkdf2_mod_CFLAGS): Likewise.
25195 (password_pbkdf2_mod_LDFLAGS): Likewise.
25196 (bin_UTILITIES): Add grub-mkpasswd-pbkdf2.
25197 (grub_mkpasswd_pbkdf2_SOURCES): New variable.
25198 (grub_mkpasswd_pbkdf2_CFLAGS): Likewise.
25199 Include conf/gcry.rmk.
25200 * include/grub/auth.h: Rewritten.
25201 * include/grub/crypto.h: New file.
25202 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_LUKS_ID.
25203 * include/grub/normal.h (read_crypto_list): New prototype.
25204 * lib/crypto.c: New file.
25205 * lib/libgcrypt_wrap/cipher_wrap.h: Likewise.
25206 * lib/pbkdf2.c: Likewise.
25207 * normal/auth.c (grub_auth_strcmp): Removed.
25208 (grub_iswordseparator): Likewise.
25209 (grub_auth_strword): Likewise.
25210 (is_authenticated): Use grub_strword.
25211 (grub_auth_check_authentication): Use grub_strcmp, grub_password_get
25212 and grub_strword. Pass entered password to authentication callback.
25213 * normal/crypto.c: New file.
25214 * normal/main.c: Call read_crypto_list.
25215 * util/grub-mkpasswd-pbkdf2.c: New file.
25216 * util/import_gcry.py: Generate crypto.lst. Add hash blocklen.
25218 2010-01-06 Vladimir Serbinenko <phcoder@gmail.com>
25220 Fix descent and ascent calculation.
25222 * util/grub-mkfont.c (grub_font_info): New fields 'asce' and 'max_y'.
25223 (options): New option "asce".
25225 (add_char): Ignore invalid glyphs for descent calculation.
25226 Calculate ascent from actual content.
25227 (print_glyphs): Use 'asce'.
25228 (write_font): Likewise. Allow ascent override.
25229 (main): Handle "asce" option.
25231 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25233 * kern/err.c: Include `<grub/i18n.h>'.
25234 (grub_print_error): Add full stop. Gettextizze.
25235 * loader/i386/bsd.c (grub_netbsd_boot): Change grub_error description.
25236 (grub_bsd_load_elf): Capitalise ELF.
25237 (grub_cmd_freebsd_loadenv): Add `s' in error string.
25238 (grub_cmd_freebsd_module): Likewise.
25239 (grub_cmd_freebsd_module_elf): Likewise.
25240 * loader/i386/bsdXX.c (SUFFIX): Capitalise ELF.
25242 2010-01-06 Carles Pina i Estany <carles@pina.cat>
25244 * commands/search.c (GRUB_MOD_INIT): Use HELP_MESSAGE.
25245 * commands/search_file.c (HELP_MESSAGE): New macro.
25246 * commands/search_label.c (HELP_MESSAGE): Likewise.
25247 * commands/search_uuid.c (HELP_MESSAGE): Likewise.
25248 * po/POTFILES: Add `commands/search_file.c',
25249 `commands/search_label.c', `commands_uuid.c'. Remove duplicate
25250 `commands/search.c'.
25252 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25254 * config.rpath: Update from Gnulib.
25256 2010-01-05 Yves Blusseau <blusseau@zetam.org>
25258 * commands/acpi.c (grub_acpi_create_ebda): fix incorrect message.
25260 2010-01-05 Yves Blusseau <yves.blusseau@zetam.org>
25262 * util/sparc64/ieee1275/grub-mkimage.c (main): Typo fix.
25264 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25266 * util/mkisofs/write.c (padblock_write): Switch size and nmemb
25267 arguments to fread so that we get a return value in bytes, rather
25268 than something that will normally be rounded down to 0.
25269 Adjust error handling to avoid producing garbage when size_t is not
25270 the same size as long long.
25272 2010-01-05 Colin Watson <cjwatson@ubuntu.com>
25274 * util/mkisofs/write.c (padblock_write): Check return value of
25277 2010-01-05 Robert Millan <rmh.grub@aybabtu.com>
25279 Remove grub-mkfloppy. Images produced by grub-mkrescue are valid
25282 * util/i386/pc/grub-mkfloppy.in: Remove. Update all users.
25284 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25286 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Use ALIGN_UP macro
25287 instead of manual alignment.
25288 * kern/disk.c (grub_disk_read): Remove grub_dprintf call (excessively
25289 verbose). Avoid attempts to read past end of the device
25290 (grub_disk_adjust_range() guarantees that we can read `size' bytes,
25291 but GRUB_DISK_CACHE_SIZE may exceed that).
25293 2010-01-04 Robert Millan <rmh.grub@aybabtu.com>
25295 * commands/crc.c (grub_cmd_crc): Abort on read errors.
25296 * fs/iso9660.c (grub_iso9660_read): Check for read error and pass
25299 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25301 * include/grub/efi/api.h (GRUB_EFI_PIWG_DEVICE_PATH_SUBTYPE):
25303 (grub_efi_piwg_device_path): New structure
25304 (grub_efi_piwg_device_path_t): New type.
25305 * loader/efi/appleloader.c (piwg_full_device_path): New structure.
25306 (devpath_1): Transform to a structure. All users updated.
25307 (devpath_2): Likewise.
25308 (devpath_3): Likewise.
25309 (devpath_4): Likewise.
25310 (devpath_5): Likewise.
25312 2010-01-04 Vladimir Serbinenko <phcoder@gmail.com>
25314 * loader/efi/appleloader.c: Restored. Update all users.
25316 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25318 * boot/i386/pc/diskboot.S: Fix inaccurate comment.
25320 * util/i386/pc/grub-setup.c: Include `<assert.h>'.
25321 (struct boot_blocklist): Move from here ...
25322 * include/grub/i386/pc/boot.h [ASM_FILE]
25323 (struct grub_boot_blocklist): ... to here. Update all users.
25324 (setup): Only initialize `start' member of `first_block'
25325 structure. Add assert() calls to verify the other members.
25327 * util/i386/pc/grub-mkimage.c: Include `<assert.h>'.
25328 (generate_image): Fix broken blocklist length initialization.
25329 Add assert() call to verify blocklist `segment' field.
25331 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25333 * loader/efi/appleloader.c: Remove. Update all users.
25335 2010-01-03 Robert Millan <rmh.grub@aybabtu.com>
25337 * boot/i386/pc/boot.S: Update copyright year.
25338 * boot/i386/pc/cdboot.S: Likewise.
25339 * boot/i386/pc/diskboot.S: Likewise.
25340 * boot/i386/pc/lnxboot.S: Likewise.
25341 * boot/i386/pc/pxeboot.S: Likewise.
25342 * bus/pci.c: Likewise.
25343 * commands/cmp.c: Likewise.
25344 * commands/help.c: Likewise.
25345 * commands/hexdump.c: Likewise.
25346 * commands/i386/pc/halt.c: Likewise.
25347 * commands/i386/pc/play.c: Likewise.
25348 * commands/i386/pc/vbeinfo.c: Likewise.
25349 * commands/ls.c: Likewise.
25350 * commands/test.c: Likewise.
25351 * disk/dmraid_nvidia.c: Likewise.
25352 * disk/i386/pc/biosdisk.c: Likewise.
25353 * disk/ieee1275/nand.c: Likewise.
25354 * disk/ieee1275/ofdisk.c: Likewise.
25355 * disk/lvm.c: Likewise.
25356 * disk/raid.c: Likewise.
25357 * disk/raid6_recover.c: Likewise.
25358 * disk/scsi.c: Likewise.
25359 * fs/affs.c: Likewise.
25360 * fs/cpio.c: Likewise.
25361 * fs/ext2.c: Likewise.
25362 * fs/hfs.c: Likewise.
25363 * fs/iso9660.c: Likewise.
25364 * fs/ntfs.c: Likewise.
25365 * fs/sfs.c: Likewise.
25366 * fs/udf.c: Likewise.
25367 * fs/ufs.c: Likewise.
25368 * fs/xfs.c: Likewise.
25369 * gencmdlist.sh: Likewise.
25370 * genmk.rb: Likewise.
25371 * include/grub/disk.h: Likewise.
25372 * include/grub/efi/api.h: Likewise.
25373 * include/grub/efi/efi.h: Likewise.
25374 * include/grub/efi/pe32.h: Likewise.
25375 * include/grub/elf.h: Likewise.
25376 * include/grub/fs.h: Likewise.
25377 * include/grub/i386/at_keyboard.h: Likewise.
25378 * include/grub/i386/pc/memory.h: Likewise.
25379 * include/grub/i386/pc/vbe.h: Likewise.
25380 * include/grub/i386/pci.h: Likewise.
25381 * include/grub/i386/tsc.h: Likewise.
25382 * include/grub/ieee1275/ieee1275.h: Likewise.
25383 * include/grub/ntfs.h: Likewise.
25384 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
25385 * include/grub/sparc64/libgcc.h: Likewise.
25386 * include/grub/symbol.h: Likewise.
25387 * include/grub/types.h: Likewise.
25388 * include/multiboot2.h: Likewise.
25389 * io/gzio.c: Likewise.
25390 * kern/device.c: Likewise.
25391 * kern/disk.c: Likewise.
25392 * kern/efi/efi.c: Likewise.
25393 * kern/efi/mm.c: Likewise.
25394 * kern/elf.c: Likewise.
25395 * kern/file.c: Likewise.
25396 * kern/i386/dl.c: Likewise.
25397 * kern/i386/pc/init.c: Likewise.
25398 * kern/i386/pc/startup.S: Likewise.
25399 * kern/ieee1275/ieee1275.c: Likewise.
25400 * kern/ieee1275/init.c: Likewise.
25401 * kern/main.c: Likewise.
25402 * kern/mm.c: Likewise.
25403 * kern/powerpc/dl.c: Likewise.
25404 * kern/sparc64/dl.c: Likewise.
25405 * kern/x86_64/dl.c: Likewise.
25406 * lib/hexdump.c: Likewise.
25407 * loader/efi/appleloader.c: Likewise.
25408 * loader/i386/ieee1275/linux.c: Likewise.
25409 * loader/i386/pc/chainloader.c: Likewise.
25410 * loader/i386/pc/linux.c: Likewise.
25411 * loader/i386/pc/multiboot2.c: Likewise.
25412 * loader/ieee1275/multiboot2.c: Likewise.
25413 * loader/multiboot2.c: Likewise.
25414 * loader/multiboot_loader.c: Likewise.
25415 * loader/powerpc/ieee1275/linux.c: Likewise.
25416 * normal/completion.c: Likewise.
25417 * normal/menu_entry.c: Likewise.
25418 * partmap/apple.c: Likewise.
25419 * util/grub.d/10_hurd.in: Likewise.
25420 * util/hostfs.c: Likewise.
25421 * video/readers/png.c: Likewise.
25423 2010-01-03 Colin Watson <cjwatson@ubuntu.com>
25425 * include/grub/misc.h (GNUC_PREREQ): New macro.
25426 (ATTRIBUTE_ERROR): New macro.
25427 * include/grub/list.h (grub_bad_type_cast_real): Use
25430 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25432 * normal/menu_text.c (print_message): Change messages.
25434 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25436 * normal/menu_entry.c (store_completion): Gettextizze.
25438 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25440 * kern/env.c (grub_env_unset): Set the variable to "" if has hooks.
25442 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25444 * po/POTFILES: Sort correctly.
25446 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25448 * commands/acpi.c (GRUB_MOD_INIT): Capitalise some words from help.
25449 * commands/efi/loadbios.c (GRUB_MOD_INIT): Capitalise BIOS.
25450 * commands/i386/pc/drivemap.c (GRUB_MOD_INIT): Remove space. Add
25452 * commands/loadenv.c (GRUB_MOD_INIT): Remove command name from
25453 summary. Gettextizze the strings.
25454 * commands/probe.c (grub_cmd_probe): Capitalise UUID and FS.
25455 * commands/xnu_uuid.c (GRUB_MOD_INIT): Capitalise XNU.
25456 * disk/loopback.c (grub_arg_options): Capitalise first letter. Add
25458 (GRUB_MOD_INIT): Remove command name from summary.
25459 * hello/hello.c (GRUD_MOT_INIT): Add missing full stop. Improve the
25461 * loader/i386/bsd.c (grub_arg_option): Capitalise CDROM.
25462 * term/i386/pc/serial.c (options): Add full stops.
25463 (GRUB_MOD_INIT): Remove command name from the summary.
25465 2010-01-03 Carles Pina i Estany <carles@pina.cat>
25467 * commands/acpi.c: Gettextizze help strings and/or options. Include
25468 `grub/i18n.h' if needed.
25469 * commands/blocklist.c: Likewise.
25470 * commands/boot.c: Likewise.
25471 * commands/cat.c: Likewise.
25472 * commands/cmp.c: Likewise.
25473 * commands/configfile.c: Likewise.
25474 * commands/crc.c: Likewise.
25475 * commands/date.c: Likewise.
25476 * commands/echo.c: Likewise.
25477 * commands/efi/fixvideo.c: Likewise.
25478 * commands/efi/loadbios.c: Likewise.
25479 * commands/gptsync.c: Likewise.
25480 * commands/halt.c: Likewise.
25481 * commands/handler.c: Likewise.
25482 * commands/hdparm.c: Likewise.
25483 * commands/hexdump.c: Likewise.
25484 * commands/i386/cpuid.c: Likewise.
25485 * commands/i386/pc/drivemap.c: Likewise.
25486 * commands/i386/pc/halt.c: Likewise.
25487 * commands/i386/pc/pxecmd.c: Likewise.
25488 * commands/i386/pc/vbeinfo.c: Likewise.
25489 * commands/i386/pc/vbetest.c: Likewise.
25490 * commands/ieee1275/suspend.c: Likewise.
25491 * commands/keystatus.c: Likewise.
25492 * commands/loadenv.c: Likewise.
25493 * commands/ls.c: Likewise.
25494 * commands/lsmmap.c: Likewise.
25495 * commands/lspci.c: Likewise.
25496 * commands/memrw.c: Likewise.
25497 * commands/minicmd.c: Likewise.
25498 * commands/parttool.c: Likewise.
25499 * commands/password.c: Likewise.
25500 * commands/probe.c: Likewise.
25501 * commands/read.c: Likewise.
25502 * commands/reboot.c: Likewise.
25503 * commands/search.c: Likewise.
25504 * commands/sleep.c: Likewise.
25505 * commands/test.c: Likewise.
25506 * commands/true.c: Likewise.
25507 * commands/usbtest.c: Likewise.
25508 * commands/videotest.c: Likewise.
25509 * commands/xnu_uuid.c: Likewise.
25510 * disk/loopback.c: Likewise.
25511 * hello/hello.c: Likewise.
25512 * loader/i386/bsd.c: Likewise.
25513 * term/i386/pc/serial.c: Likewise.
25514 * po/POTFILES: Add new files.
25516 2010-01-02 Colin Watson <cjwatson@ubuntu.com>
25518 * term/i386/pc/at_keyboard.c
25519 (keyboard_controller_wait_untill_ready): Rename to ...
25520 (keyboard_controller_wait_until_ready): ... this. Update all users.
25522 2010-01-01 Carles Pina i Estany <carles@pina.cat>
25524 * commands/help.c: Include `grub/mm.h' and `grub/normal.h'.
25525 (grub_cmd_help): Print the cmd->name before the cmd->summary. Cut the
25526 string using string width.
25527 * normal/menu_text.c (grub_print_message_indented): Use
25528 grub_print_spaces and not print_spaces.
25529 (print_timeout): Likewise.
25530 (print_spaces): Move to...
25531 * include/grub/term.h: ... here. Change the name to grub_print_spaces.
25533 2010-01-01 Robert Millan <rmh.grub@aybabtu.com>
25535 Import from Gnulib.
25537 * gnulib/getdelim.c: New file.
25538 * gnulib/getline.c: Likewise.
25540 2009-12-31 BVK Chaitanya <bvk.groups@gmail.com>
25542 * include/grub/list.h (grub_assert_fail): Removed.
25543 (grub_bad_type_cast_real): New function.
25544 (grub_bad_type_cast): New macro.
25545 (GRUB_AS_LIST): Use grub_bad_type_cast.
25546 (GRUB_AS_LIST_P): Likewise.
25547 (GRUB_AS_NAMED_LIST): Likewise.
25548 (GRUB_AS_NAMED_LIST_P): Likewise.
25549 (GRUB_AS_PRIO_LIST): Likewise.
25550 (GRUB_AS_PRIO_LIST_P): Likewise.
25551 * include/grub/handler.h (GRUB_AS_HANDLER): Likewise.
25553 2009-12-29 Vladimir Serbinenko <phcoder@gmail.com>
25555 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT (linux)):
25558 2009-12-29 Robert Millan <rmh.grub@aybabtu.com>
25560 * configure.ac: Check for TARGET_CFLAGS initialization before we
25561 initialize it ourselves (sigh).
25562 Move a few modifications to TARGET_CFLAGS to be unconditional
25563 (extra warning flags, loop alignment, i386 CPU extensions, GCC 4.4
25566 * gettext/gettext.c (grub_gettext_delete_list): Add `void' argument.
25567 * term/i386/pc/at_keyboard.c
25568 (keyboard_controller_wait_untill_ready): Likewise.
25569 (keyboard_controller_led): Rename `led_status' paramter to avoid
25572 2009-12-28 Carles Pina i Estany <carles@pina.cat>
25574 * normal/misc.c (grub_normal_print_device_info): Add spaces and double
25577 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25579 * kern/parser.c (grub_parser_split_cmdline): Don't dereference NULL.
25581 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25583 * normal/menu_text.c (grub_print_message_indented): Prevent
25584 past-the-end-of-array dereference.
25586 2009-12-27 Vladimir Serbinenko <phcoder@gmail.com>
25588 * video/readers/jpeg.c (GRUB_MOD_FINI (grub_cmd_jpegtest)): Rename to ..
25589 (GRUB_MOD_FINI (video_reader_jpeg)): ...this
25591 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25593 * normal/cmdline.c (grub_cmdline_get): Print a space after prompt.
25594 * normal/main.c (grub_normal_read_line): Remove a space from the
25597 2009-12-27 Carles Pina i Estany <carles@pina.cat>
25599 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Improve command summary.
25600 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25601 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25602 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25603 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25604 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25605 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25607 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25609 * video/readers/jpeg.c (cmd): Declare.
25610 (grub_cmd_jpegtest): Use `grub_command_t' type.
25611 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25613 (GRUB_MOD_FINI): Use `cmd' to unregister.
25614 * video/readers/png.c (cmd): Declare.
25615 (grub_cmd_pngtest): Use `grub_command_t' type.
25616 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25618 (GRUB_MOD_FINI): Use `cmd' to unregister.
25619 * video/readers/tga.c (cmd): Declare.
25620 (grub_cmd_tgatest): Use `grub_command_t' type.
25621 (GRUB_MOD_INIT): Fix arguments passed to `grub_register_command'.
25623 (GRUB_MOD_FINI): Use `cmd' to unregister.
25625 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25627 * efiemu/main.c (GRUB_MOD_INIT): Fix capitalizations and/or full
25629 * kern/corecmd.c (grub_register_core_commands): Likewise.
25630 * loader/efi/chainloader.c (GRUB_MOD_INIT): Likewise.
25631 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25632 * loader/i386/efi/linux.c (GRUB_MOD_INIT): Likewise.
25633 * loader/i386/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25634 * loader/i386/linux.c (GRUB_MOD_INIT): Likewise.
25635 * loader/i386/pc/chainloader.c (GRUB_MOD_INIT): Likewise.
25636 * loader/i386/pc/linux.c (GRUB_MOD_INIT): Likewise.
25637 * loader/multiboot_loader.c (GRUB_MOD_INIT): Likewise.
25638 * loader/powerpc/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25639 * loader/sparc64/ieee1275/linux.c (GRUB_MOD_INIT): Likewise.
25640 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25641 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25642 * normal/handler.c (insert_handler): Likewise.
25643 * normal/main.c (GRUB_MOD_INIT): Likewise.
25644 * term/gfxterm.c (GRUB_MOD_INIT): Likewise.
25646 2009-12-26 Carles Pina i Estany <carles@pina.cat>
25648 * commands/help.c (grub_cmd_help): Print the command name before the
25650 (GRUB_MOD_INIT): Remove command name from the summary.
25651 * kern/command.c (GRUB_MOD_INIT): If summary is null assign an empty
25653 * lib/arg.c (find_long): Print the command name before the summary.
25654 * commands/acpi.c (GRUB_MOD_INIT): Remove command name from the
25656 * commands/blocklist.c (GRUB_MOD_INIT): Likewise.
25657 * commands/cat.c (GRUB_MOD_INIT): Likewise.
25658 * commands/cmp.c (GRUB_MOD_INIT): Likewise.
25659 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
25660 * commands/crc.c (GRUB_MOD_INIT): Likewise.
25661 * commands/date.c (GRUB_MOD_INIT): Likewise.
25662 * commands/echo.c (GRUB_MOD_INIT): Likewise.
25663 * commands/efi/loadbios.c (GRUB_MOD_INIT): Likewise.
25664 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
25665 * commands/handler.c (GRUB_MOD_INIT): Likewise.
25666 * commands/hdparm.c (GRUB_MOD_INIT): Likewise.
25667 * commands/hexdump.c (GRUB_MOD_INIT): Likewise.
25668 * commands/i386/cpuid.c (GRUB_MOD_INIT): Likewise.
25669 * commands/i386/pc/halt.c (GRUB_MOD_INIT): Likewise.
25670 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
25671 * commands/i386/pc/pxecmd.c (GRUB_MOD_INIT): Likewise.
25672 * commands/keystatus.c (GRUB_MOD_INIT): Likewise.
25673 * commands/loadenv.c (GRUB_MOD_INIT): Likewise.
25674 * commands/ls.c (GRUB_MOD_INIT): Likewise.
25675 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
25676 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
25677 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
25678 * commands/parttool.c (GRUB_MOD_INIT): Likewise.
25679 * commands/password.c (GRUB_MOD_INIT): Likewise.
25680 * commands/probe.c (GRUB_MOD_INIT): Likewise.
25681 * commands/read.c (GRUB_MOD_INIT): Likewise.
25682 * commands/search.c (GRUB_MOD_INIT): Likewise.
25683 * commands/sleep.c (GRUB_MOD_INIT): Likewise.
25684 * commands/test.c (GRUB_MOD_INIT): Likewise.
25685 * commands/xnu_uuid.c (GRUB_MOD_INIT): Likewise.
25686 * efiemu/main.c (GRUB_MOD_INIT): Likewise.
25687 * font/font_cmd.c (GRUB_MOD_INIT): Likewise.
25688 * gettext/gettext.c (GRUB_MOD_INIT): Likewise.
25689 * kern/corecmd.c (GRUB_MOD_INIT): Likewise.
25690 * lib/arg.c (GRUB_MOD_INIT): Likewise.
25691 * loader/efi/appleloader.c (GRUB_MOD_INIT): Likewise.
25692 * loader/i386/bsd.c (GRUB_MOD_INIT): Likewise.
25693 * loader/xnu.c (GRUB_MOD_INIT): Likewise.
25694 * mmap/mmap.c (GRUB_MOD_INIT): Likewise.
25695 * term/terminfo.c (GRUB_MOD_INIT): Likewise.
25696 * video/readers/jpeg.c (GRUB_MOD_INIT): Likewise.
25697 * video/readers/png.c (GRUB_MOD_INIT): Likewise.
25698 * video/readers/tga.c (GRUB_MOD_INIT): Likewise.
25700 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25702 Use search command for preliminar UUID search.
25704 * commands/search.c: Split into ...
25705 * commands/search_wrap.c: ...this
25706 * commands/search.c: ...and this.
25707 * commands/search_file.c: New file.
25708 * commands/search_label.c: New file.
25709 * commands/search_uuid.c: New file.
25710 * conf/any-emu.rmk (grub_emu_SOURCES): Remove commands/search.c.
25711 Add commands/search_wrap.c, commands/search_file.c,
25712 commands/search_label.c and commands/search_uuid.c.
25713 * conf/common.rmk (pkglib_MODULES): Remove fs_uuid.mod and fs_file.mod.
25714 (search_mod_SOURCES): Set to commands/search_wrap.c.
25715 (pkglib_MODULES): Add search_fs_file.mod, search_fs_uuid.mod and
25717 (search_fs_file_mod_SOURCES): New variable.
25718 (search_fs_file_mod_CFLAGS): Likewise.
25719 (search_fs_file_mod_LDFLAGS): Likewise.
25720 (search_label_mod_SOURCES): Likewise.
25721 (search_label_mod_CFLAGS): Likewise.
25722 (search_label_mod_LDFLAGS): Likewise.
25723 (search_fs_uuid_mod_SOURCES): New variable.
25724 (search_fs_uuid_mod_CFLAGS): Likewise.
25725 (search_fs_uuid_mod_LDFLAGS): Likewise.
25726 (fs_file_mod_SOURCES): Removed.
25727 (fs_file_mod_CFLAGS): Likewise.
25728 (fs_file_mod_LDFLAGS): Likewise.
25729 (fs_uuid_mod_SOURCES): Removed.
25730 (fs_uuid_mod_CFLAGS): Likewise.
25731 (fs_uuid_mod_LDFLAGS): Likewise.
25732 * conf/sparc64-ieee1275.rmk (grub_install_SOURCES):
25733 Set to util/grub-install.in.
25734 * disk/fs_file.c: Removed.
25735 * disk/fs_uuid.c: Likewise.
25736 * include/grub/search.h: New file.
25737 * util/grub-install.in: Handle sparc64.
25738 Create and use load.cfg.
25739 * util/sparc64/ieee1275/grub-install.in: Removed.
25741 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25743 * kern/i386/pc/startup.S (grub_biosdisk_get_diskinfo_int13_extensions):
25744 Ignore return status if CF is cleared.
25745 (grub_biosdisk_get_diskinfo_standard): Likewise.
25747 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25749 * term/i386/pc/at_keyboard.c
25750 (keyboard_controller_wait_untill_ready): New function.
25751 (grub_keyboard_controller_write, grub_keyboard_controller_read)
25752 (keyboard_controller_led): Use keyboard_controller_wait_untill_ready()
25753 for keyboard polling, rather than duplicate the same loop. This
25754 saves a few bytes in code size.
25756 2009-12-25 Vladimir Serbinenko <phcoder@gmail.com>
25758 Support for (pxe[:server[:gateway]]) syntax and
25759 use environment variable for PXE.
25761 * commands/i386/pc/pxecmd.c (options): Removed.
25762 (print_ip): Removed.
25763 (grub_cmd_pxe): Removed
25764 (grub_cmd_pxe_unload): New function.
25765 * fs/i386/pc/pxe.c (grub_pxe_disk_data): New structure.
25766 (grub_pxe_your_ip): Made static.
25767 (grub_pxe_default_server_ip): Likewise.
25768 (grub_pxe_default_gateway_ip): Likewise.
25769 (grub_pxe_blksize): Likewise.
25770 (parse_ip): New function.
25771 (grub_pxe_open): Support server and gateway specification.
25772 (grub_pxe_close): Free disk->data.
25773 (grub_pxefs_open): Use disk->data.
25774 (grub_pxefs_read): Likewise.
25775 (grub_env_write_readonly): New function.
25776 (set_mac_env): Likewise.
25777 (set_env_limn_ro): Likewise.
25778 (parse_dhcp_vendor): Likewise.
25779 (grub_pxe_detect): Set the environment variables.
25780 (set_ip_env): New function.
25781 (write_ip_env): Likewise.
25782 (grub_env_write_pxe_default_server): Likewise.
25783 (grub_env_write_pxe_default_gateway): Likewise.
25784 (grub_env_write_pxe_blocksize): Likewise.
25785 (GRUB_MOD_INIT(pxe)): Set environment variables.
25786 * include/grub/i386/pc/pxe.h (grub_pxe_mac_addr): Rename to ...
25787 (grub_pxe_mac_addr_t): ... this. All users updated.
25788 (grub_pxe_your_ip): Removed.
25789 (grub_pxe_server_ip): Likewise.
25790 (grub_pxe_gateway_ip): Likewise.
25791 (grub_pxe_blksize): Likewise.
25793 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25795 * commands/help.c: Include `<grub/i18n.h>'.
25796 (grub_cmd_help): Gettextizze.
25797 (GRUB_MOD_INIT): Likewise.
25798 * commands/i386/pc/play.c: Include `<grub/i18n.h>'.
25799 (GRUB_MOD_INIT): Gettextizze.
25800 * commands/search.c: Include `<grub/i18n.h>'.
25801 (options): Gettextizze.
25802 (GRUB_MOD_INIT): Gettextizze.
25803 * lib/arg.c: Include `<grub/i18n.h>'.
25804 (help_options): Gettextizze.
25805 (find_long): Likewise.
25806 (grub_arg_show_help): Likewise.
25807 * normal/dyncmd.c: Include `<grub/i18n.h>'.
25808 (read_command_list): Gettextizze.
25809 * po/POTFILES: Add `commands/i386/pc/play.c', `commands/search.c',
25810 `commands/help.c', `lib/arg.c' and `normal/dyncmd.c'.
25812 2009-12-25 Robert Millan <rmh.grub@aybabtu.com>
25814 * include/grub/i386/at_keyboard.h (NUM_LOCK, SCROLL_LOCK): New macros.
25815 * term/i386/pc/at_keyboard.c (KEYBOARD_STATUS_NUM_LOCK)
25816 (KEYBOARD_LED_SCROLL, KEYBOARD_LED_NUM, KEYBOARD_LED_CAPS): New macros.
25817 (led_status): New variable.
25818 (keyboard_controller_led): New function.
25819 (grub_at_keyboard_getkey_noblock): Handle num lock and scroll lock,
25820 update led status for caps lock, num lock and scroll lock.
25822 2009-12-25 Felix Zielcke <fzielcke@z-51.de>
25824 * util/hostdisk.c (open_device): Fix a comment.
25826 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25828 * util/grub-install.in (host_os): New variable.
25829 * util/i386/efi/grub-install.in (host_os): Likewise.
25831 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25833 * util/mkisofs/write.c (padblock_write): Abort when given an
25834 excedingly large embed image, instead of silently truncating it.
25836 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25838 * include/multiboot.h: Indentation fixes.
25840 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25842 * include/multiboot.h (struct multiboot_aout_symbol_table)
25843 (struct multiboot_elf_section_header_table): New structure
25844 declarations (stolen from GRUB Legacy).
25845 (struct multiboot_info): Replace opaque `syms' with a.out and ELF
25848 (multiboot_aout_symbol_table_t, multiboot_elf_section_header_table_t)
25849 (multiboot_info_t, multiboot_memory_map_t, multiboot_module_t): New
25852 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25854 * include/multiboot.h: Make comments src2texi-friendly.
25856 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25858 For consistency with [multiboot]/docs/boot.S.
25860 * include/multiboot.h (MULTIBOOT_MAGIC): Rename from this ...
25861 (MULTIBOOT_HEADER_MAGIC): ... to this. Update all users.
25862 (MULTIBOOT_MAGIC2): Rename from this ...
25863 (MULTIBOOT_BOOTLOADER_MAGIC): ... to this. Update all users.
25865 2009-12-24 Robert Millan <rmh.grub@aybabtu.com>
25867 * include/multiboot.h: Remove `<grub/types.h>'.
25868 (multiboot_uint16_t, multiboot_uint32_t, multiboot_uint64_t): New
25869 types. Update all users.
25871 2009-12-25 Carles Pina i Estany <carles@pina.cat>
25873 * commands/efi/loadbios.c: Capitalize acronyms, replace `could not' by
25874 `couldn't' and `can not' by `cannot'.
25875 * commands/i386/pc/drivemap.c: Likewise.
25876 * disk/ata.c: Likewise.
25877 * disk/ieee1275/nand.c: Likewise.
25878 * fs/affs.c: Likewise.
25879 * fs/fat.c: Likewise.
25880 * fs/hfs.c: Likewise.
25881 * fs/hfsplus.c: Likewise.
25882 * fs/iso9660.c: Likewise.
25883 * fs/jfs.c: Likewise.
25884 * fs/minix.c: Likewise.
25885 * fs/reiserfs.c: Likewise.
25886 * fs/sfs.c: Likewise.
25887 * fs/udf.c: Likewise.
25888 * fs/ufs.c: Likewise.
25889 * fs/xfs.c: Likewise.
25890 * loader/powerpc/ieee1275/linux.c: Likewise.
25891 * loader/sparc64/ieee1275/linux.c: Likewise.
25892 * util/grub-probe.c: Likewise.
25893 * util/misc.c: Likewise.
25895 2009-12-24 Carles Pina i Estany <carles@pina.cat>
25897 * bus/usb/usbhub.c: Fix capitalization, fullstop and newlines in
25899 * commands/acpi.c: Likewise.
25900 * commands/blocklist.c: Likewise.
25901 * commands/efi/loadbios.c: Likewise.
25902 * commands/i386/pc/drivemap.c: Likewise.
25903 * commands/loadenv.c: Likewise.
25904 * commands/memrw.c: Likewise.
25905 * commands/password.c: Likewise.
25906 * commands/videotest.c: Likewise.
25907 * disk/ata.c: Likewise.
25908 * disk/ata_pthru.c: Likewise.
25909 * disk/dmraid_nvidia.c: Likewise.
25910 * disk/ieee1275/nand.c: Likewise.
25911 * disk/ieee1275/ofdisk.c: Likewise.
25912 * disk/loopback.c: Likewise.
25913 * disk/lvm.c: Likewise.
25914 * disk/mdraid_linux.c: Likewise.
25915 * disk/raid.c: Likewise.
25916 * disk/raid6_recover.c: Likewise.
25917 * disk/scsi.c: Likewise.
25918 * efiemu/main.c: Likewise.
25919 * efiemu/mm.c: Likewise.
25920 * efiemu/pnvram.c: Likewise.
25921 * efiemu/symbols.c: Likewise.
25922 * font/font.c: Likewise.
25923 * fs/cpio.c: Likewise.
25924 * fs/hfsplus.c: Likewise.
25925 * fs/iso9660.c: Likewise.
25926 * fs/jfs.c: Likewise.
25927 * fs/minix.c: Likewise.
25928 * fs/ntfs.c: Likewise.
25929 * fs/ntfscomp.c: Likewise.
25930 * fs/reiserfs.c: Likewise.
25931 * fs/ufs.c: Likewise.
25932 * fs/xfs.c: Likewise.
25933 * gettext/gettext.c: Likewise.
25934 * include/grub/auth.h: Likewise.
25935 * kern/elf.c: Likewise.
25936 * kern/file.c: Likewise.
25937 * kern/ieee1275/init.c: Likewise.
25938 * kern/ieee1275/mmap.c: Likewise.
25939 * kern/ieee1275/openfw.c: Likewise.
25940 * kern/powerpc/dl.c: Likewise.
25941 * kern/sparc64/dl.c: Likewise.
25942 * lib/arg.c: Likewise.
25943 * loader/i386/bsd.c: Likewise.
25944 * loader/i386/bsdXX.c: Likewise.
25945 * loader/i386/efi/linux.c: Likewise.
25946 * loader/i386/efi/xnu.c: Likewise.
25947 * loader/i386/ieee1275/linux.c: Likewise.
25948 * loader/i386/linux.c: Likewise.
25949 * loader/i386/multiboot.c: Likewise.
25950 * loader/i386/pc/linux.c: Likewise.
25951 * loader/i386/pc/multiboot2.c: Likewise.
25952 * loader/i386/xnu.c: Likewise.
25953 * loader/ieee1275/multiboot2.c: Likewise.
25954 * loader/macho.c: Likewise.
25955 * loader/machoXX.c: Likewise.
25956 * loader/multiboot2.c: Likewise.
25957 * loader/multiboot_loader.c: Likewise.
25958 * loader/powerpc/ieee1275/linux.c: Likewise.
25959 * loader/sparc64/ieee1275/linux.c: Likewise.
25960 * loader/xnu.c: Likewise.
25961 * loader/xnu_resume.c: Likewise.
25962 * mmap/i386/pc/mmap.c: Likewise.
25963 * normal/menu_viewer.c: Likewise.
25964 * partmap/acorn.c: Likewise.
25965 * partmap/amiga.c: Likewise.
25966 * partmap/apple.c: Likewise.
25967 * script/lexer.c: Likewise.
25968 * term/gfxterm.c: Likewise.
25969 * term/i386/pc/serial.c: Likewise.
25970 * term/i386/pc/vga.c: Likewise.
25971 * term/ieee1275/ofconsole.c: Likewise.
25972 * term/terminfo.c: Likewise.
25973 * video/bitmap.c: Likewise.
25974 * video/efi_gop.c: Likewise.
25975 * video/efi_uga.c: Likewise.
25976 * video/fb/video_fb.c: Likewise.
25977 * video/i386/pc/vbe.c: Likewise.
25978 * video/readers/tga.c: Likewise.
25979 * video/video.c: Likewise.
25981 2009-12-23 Felix Zielcke <fzielcke@z-51.de>
25983 * commands/i386/pc/drivemap.c: Remove all trailing whitespace.
25984 * commands/lspci.c: Likewise.
25985 * commands/probe.c: Likewise.
25986 * commands/xnu_uuid.c: Likewise.
25987 * conf/i386-coreboot.rmk: Likewise.
25988 * conf/i386-efi.rmk: Likewise.
25989 * conf/i386-ieee1275.rmk: Likewise.
25990 * conf/i386-pc.rmk: Likewise.
25991 * conf/powerpc-ieee1275.rmk: Likewise.
25992 * conf/sparc64-ieee1275.rmk: Likewise.
25993 * conf/x86_64-efi.rmk: Likewise.
25994 * fs/i386/pc/pxe.c: Likewise.
25995 * gettext/gettext.c: Likewise.
25996 * include/grub/efi/graphics_output.h: Likewise.
25997 * include/grub/i386/pc/memory.h: Likewise.
25998 * kern/env.c: Likewise.
25999 * kern/i386/qemu/startup.S: Likewise.
26000 * lib/i386/pc/biosnum.c: Likewise.
26001 * lib/i386/relocator.c: Likewise.
26002 * lib/i386/relocator_asm.S: Likewise.
26003 * lib/relocator.c: Likewise.
26004 * loader/i386/bsd.c: Likewise.
26005 * loader/i386/multiboot.c: Likewise.
26006 * loader/i386/pc/chainloader.c: Likewise.
26007 * loader/i386/xnu.c: Likewise.
26008 * loader/xnu.c: Likewise.
26009 * normal/main.c: Likewise.
26010 * normal/menu_text.c: Likewise.
26011 * util/getroot.c: Likewise.
26012 * util/grub-mkconfig_lib.in: Likewise.
26013 * util/grub.d/00_header.in: Likewise.
26014 * util/i386/pc/grub-mkimage.c: Likewise.
26015 * util/mkisofs/eltorito.c: Likewise.
26016 * util/mkisofs/exclude.h: Likewise.
26017 * util/mkisofs/hash.c: Likewise.
26018 * util/mkisofs/iso9660.h: Likewise.
26019 * util/mkisofs/joliet.c: Likewise.
26020 * util/mkisofs/mkisofs.c: Likewise.
26021 * util/mkisofs/mkisofs.h: Likewise.
26022 * util/mkisofs/multi.c: Likewise.
26023 * util/mkisofs/name.c: Likewise.
26024 * util/mkisofs/rock.c: Likewise.
26025 * util/mkisofs/tree.c: Likewise.
26026 * util/mkisofs/write.c: Likewise.
26027 * video/efi_gop.c: Likewise.
26029 2009-12-23 Vladimir Serbinenko <phcoder@gmail.com>
26031 * video/efi_gop.c (grub_video_gop_get_bitmask): Fix off-by-one in mask
26034 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26036 * util/grub-mkrescue.in (pkglib_DATA): Set to @pkglib_DATA@.
26037 * genmk.rb (class SCRIPT): Modify the target file instead of source.
26039 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26041 * commands/memrw.c (grub_cmd_write): Support for mask parameter.
26042 (GRUB_MOD_INIT(memrw)): Update help line.
26044 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26046 * commands/memrw.c (cmd_read_byte, cmd_read_word, cmd_read_dword):
26047 Use grub_extcmd_t. All users updated.
26048 (options): New variable.
26049 (grub_cmd_read): Restructure for readability. Support "-v" option.
26050 (grub_cmd_write): Restructure for readability.
26052 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26054 * genmk.rb (class SCRIPT): Prepend #{src} path with $(srcdir).
26056 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26058 * genmk.rb (class SCRIPT): Use sed to substitute @pkglib_DATA@
26059 with the actual contents of the correspondending make variable.
26060 * util/grub-mkrescue.in (pkglib_DATA): New variable.
26061 (process_input_dir): Copy all $pkglib_DATA files instead of explicitly
26062 specifying `*.lst' and `efiemu??.o'
26064 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26066 * util/grub.d/30_os-prober.in (osx_entry): Add round brackets
26067 after function name.
26068 Noticed by Rene Engelhard <rene@debian.org>.
26070 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26072 * commands/lspci.c (grub_pci_classes): Add "USB Controller".
26073 (options): New variable.
26074 (iospace): Likewise.
26075 (grub_lspci_iter): List IO spaces if "-i" was given.
26076 (grub_cmd_lspci): Parse options.
26077 (GRUB_MOD_INIT(lspci)): Use extcmd.
26078 (GRUB_MOD_FINI(lspci)): Likewise.
26080 2009-12-22 Felix Zielcke <fzielcke@z-51.de>
26082 * util/grub.d/30_os-prober.in (osx_entry): Remove non POSIX compliant
26083 `function' keyword.
26084 Patch by Tony Mancill <tmancill@debian.org>.
26086 2009-12-22 Vladimir Serbinenko <phcoder@gmail.com>
26088 * bus/usb/uhci.c (grub_uhci_transfer): Set a limit transaction time.
26089 (grub_uhci_portstatus): Likewise.
26090 (grub_uhci_portstatus): Add necessary delay.
26091 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Fix loop-break condition.
26093 2009-12-21 Carles Pina i Estany <carles@pina.cat>
26095 * commands/acpi.c (options): Fix capitalizations and/or full stops.
26096 (GRUB_MOD_INIT): Likewise.
26097 * commands/boot.c (GRUB_MOD_INIT): Likewise.
26098 * commands/cmp.c (grub_cmd_cmp): Improve the help message.
26099 * commands/echo.c (options): Fix capitalizations and/or full stops.
26100 * commands/efi/loadbios.c (enable_rom_area): Likewise.
26101 (enable_rom_area): Likewise.
26102 (GRUB_MOD_INIT): Likewise.
26103 * commands/gptsync.c (GRUB_MOD_INIT): Likewise.
26104 * commands/halt.c (GRUB_MOD_INIT): Improve the help message.
26105 * commands/handler.c (GRUB_MOD_INIT): Likewise.
26106 * commands/hdparm.c (options): Fix capitalizations and/or full stops.
26107 * commands/hexdump.c (options): Likewise.
26108 * commands/i386/cpuid.c (options): Likewise.
26109 (GRUB_MOD_INIT): Likewise.
26110 * commands/i386/pc/drivemap.c (options): Likewise.
26111 (GRUB_MOD_INIT): Likewise.
26112 * commands/i386/pc/halt (options): Likewise.
26113 (GRUB_MOD_INIT): Likewise.
26114 * commands/i386/pc/play.c (GRUB_MOD_INIT): Likewise.
26115 * commands/i386/pc/pxecmd.c (options): Likewise.
26116 * commands/i386/pc/vbetest.c (GRUB_MOD_INIT): Likewise.
26117 * commands/ieee1275/suspend.c (GRUB_MOD_INIT): Likewise.
26118 * commands/keystatus.c (options): Likewise.
26119 (GRUB_MOD_INIT): Likewise.
26120 * commands/loadenv.c (options): Likewise.
26121 * commands/ls.c (options): Likewise.
26122 * commands/lspci.c (GRUB_MOD_INIT): Likewise.
26123 * commands/memrw.c (GRUB_MOD_INIT): Likewise.
26124 * commands/minicmd.c (GRUB_MOD_INIT): Likewise.
26125 * commands/parttool.c (helpmsg): Likewise.
26126 * commands/probe.c (options): Likewise.
26127 * commands/read.c (GRUB_MOD_INIT): Likewise.
26128 * commands/reboot.c (GRUB_MOD_INIT): Likewise.
26129 * commands/search.c (options): Likewise.
26130 * commands/sleep.c (options): Likewise.
26131 * commands/test.c (GRUB_MOD_INIT): Likewise.
26132 * commands/true.c (GRUB_MOD_INIT): Likewise.
26133 * commands/usbtest.c (GRUB_MOD_INIT): Likewise.
26134 * commands/videotest.c (GRUB_MOD_INIT): Likewise.
26135 * lib/arg.c (help_options): Likewise.
26136 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass -ctranslate to
26138 * po/POTFILES: Add `commands/loadenv.c'.
26140 2009-12-21 Felix Zielcke <fzielcke@z-51.de>
26142 * util/grub-mkrescue.in (process_input_dir): Copy `*.lst' files
26143 instead of specifying them explicit.
26145 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26147 * NEWS: Add grub-probe support for GNU/Hurd.
26149 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26151 * NEWS: gettext was added after 1.97.
26153 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26155 * util/mkisofs/msdos_partition.h: New file (based on
26156 include/grub/msdos_partition.h).
26157 * util/mkisofs/mkisofs.c (use_protective_msdos_label): New variable.
26158 (OPTION_PROTECTIVE_MSDOS_LABEL): New macro.
26159 (ld_options, main): Recognize --protective-msdos-label.
26160 * util/mkisofs/mkisofs.h (use_protective_msdos_label): New declaration.
26161 * util/mkisofs/write.c: Include `"msdos_partition.h"'.
26162 (padblock_write): If `use_protective_msdos_label' is set, patch a
26163 protective DOS-style label in the output image.
26165 * util/grub-mkrescue.in: Use --protective-msdos-label.
26167 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26169 * util/grub-mkrescue.in: Do not zero-pad image for BIOS-based disk
26172 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26174 * util/mkisofs/mkisofs.c (use_embedded_boot, boot_image_embed): New
26176 (ld_options, main): Recognize `--embedded-boot'.
26177 * util/mkisofs/mkisofs.h (use_embedded_boot, boot_image_embed): New
26179 * util/mkisofs/write.c (PADBLOCK_SIZE): New variable.
26180 (padblock_size): Use `PADBLOCK_SIZE' instead of hardcoding 16.
26181 (padblock_write): Likewise. Rewrite to support embedded boot image.
26183 * util/grub-mkrescue.in: When building i386-pc images, embed core.img
26184 for BIOS-based disk boot instead of only ElTorito.
26186 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26188 * util/grub-mkrescue.in: Remove `configfile' and `sh' from i386-pc
26189 build (not needed for bootstrap).
26191 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26193 * util/grub-mkrescue.in: Remove `memdisk', `tar' and `search' modules
26194 from i386-pc build (not needed for bootstrap).
26195 Rewrite a pair of strings.
26197 2009-12-21 Robert Millan <rmh.grub@aybabtu.com>
26199 * normal/main.c (grub_normal_reader_init): Set left margin back to 3.
26201 2009-12-21 Vladimir Serbinenko <phcoder@gmail.com>
26203 * video/i386/pc/vbe.c (grub_video_vbe_fini): Set 'last_set_mode'.
26205 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26207 * kern/env.c (grub_env_context_open): Mark exported variable for
26210 2009-12-21 Andreas Born <futur.andy@googlemail.com>
26212 * kern/env.c (grub_env_export): Create nonexistent variables before
26215 2009-12-20 Carles Pina i Estany <carles@pina.cat>
26217 * include/grub/auth.h: Include `<grub/i18n.h>'.
26218 (GRUB_GET_PASSWORD): Gettextizze string.
26219 * include/grub/normal.h (STANDARD_MARGIN): New macro, moved from
26221 (grub_utf8_to_ucs4_alloc): Fix indentation.
26222 (grub_print_ucs4): Likewise.
26223 (grub_getstringwidth): Likewise.
26224 (print_message_indented): New declaration.
26225 * normal/auth.c: Include `<grub/i18n.h>'.
26226 (grub_auth_check_authentication): Gettexttize string.
26227 * normal/cmdline.c: Include `<grub/i18n.h>'.
26228 (grub_cmdline_get): Gettextizze.
26229 * normal/color.c: Include `<grub/i18n.h>'.
26230 (grub_parse_color_name_pair): Gettexttize strings.
26231 * normal/main.c (grub_normal_reader_init): Cleanup gettexttized
26232 string (use `print_message_indented').
26233 * normal/menu_text.c (STANDARD_MARGIN): Moved from here to
26234 `include/grub/normal.h'.
26235 (print_message_indented): Renamed to ...
26236 (grub_print_message_indented): ... this. Remove `static' qualifer (now
26237 used in normal/main.c).
26238 (print_message): Use `grub_print_message_indented' instead of
26239 `print_message_indented'.
26240 (print_timeout): Likewise.
26241 * normal/misc.c: Include `<grub/term.h>' and `<grub/i18n.h>'.
26242 (grub_normal_print_device_info): Gettexttize strings.
26243 * po/POTFILES: Add `auth.c', `color.c' and `misc.c'.
26245 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26247 * kern/parser.c (grub_parser_split_cmdline): Fix incorrect counting
26248 of arguments. Return number of tokens and not arguments. All users
26251 2009-12-20 Vladimir Serbinenko <phcoder@gmail.com>
26253 * util/i386/pc/grub-setup.c (setup): Don't install on non-GPT,
26254 non-MSDOS paritions.
26256 2009-12-19 Vladimir Serbinenko <phcoder@gmail.com>
26258 * include/grub/types.h (UNUSED): Removed since it conflicts with
26259 NetBSD headers. All users changed to direct __attribute__ ((unused)).
26260 Reported by Grégoire Sutre.
26262 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26264 * include/grub/normal.h (grub_utf8_to_ucs4): New declaration.
26265 (grub_print_ucs4_alloc): Likewise.
26266 (grub_getstringwidth): Likewise.
26267 * normal/main.c (grub_normal_init_page): Gettextize version string.
26268 * normal/menu_text.c (grub_utf8_to_ucs4_alloc): New definition.
26269 (getstringwidth): Renamed to ...
26270 (grub_getstringwidth): ... this. Remove `static' qualifier (now used
26271 in normal/main.c). Use `grub_utf8_to_ucs4_alloc'.
26272 (grub_print_ucs4): Remove `static' qualifer (now used in
26274 * po/POTFILES: Add normal/main.c.
26276 2009-12-19 Carles Pina i Estany <carles@pina.cat>
26278 * normal/menu_text.c (STANDARD_MARGIN): New macro.
26279 (print_message_indented): Add `margin_left' and `margin_right'
26281 (print_message): Update `print_message_indented' calls. Adds '\n' to the
26283 (print_timeout): Use `print_message_indented' to print the message.
26284 Deletes `second_stage' parameter.
26285 (run_menu): Update `print_timeout' calls.
26287 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26289 Fix console palette on OpenFirmware.
26291 * term/ieee1275/ofconsole.c (MAX): Removed.
26292 (colors): Redone based on VGA palette.
26293 (grub_ofconsole_setcolor): Discard brightness bit since only 8
26294 colors are supported.
26295 (grub_ofconsole_init_output): Use ARRAY_SIZE instead of hardcoded size.
26297 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26299 Fix potential EfiEmu double prepare.
26301 * efiemu/main.c (prepared): New variable
26302 (grub_efiemu_unload): Set prepare to '0'.
26303 (grub_efiemu_prepare): Return if already prepared. Set prepared.
26305 set_virtual_address_map support.
26307 * include/grub/efi/efi.h (grub_efi_set_virtual_address_map): New
26309 * include/grub/efiemu/efiemu.h (grub_efiemu_write_sym_markers): New
26311 (grub_efiemu_crc32): Likewise.
26312 (grub_efiemu_crc64): Likewise.
26313 (grub_efiemu_set_virtual_address_map): Likewise.
26314 * include/grub/autoefi.h (grub_autoefi_exit_boot_services):
26316 (grub_autoefi_set_virtual_address_map): Likewise.
26317 * kern/efi/efi.c (grub_efi_set_virtual_address_map): New function.
26318 * loader/i386/xnu.c (grub_xnu_boot): Call set_virtual_address_map.
26319 Restructure flow to accomodate it.
26320 * efiemu/prepare.c (grub_efiemu_prepare): Support set_virtual_address_map.
26321 (grub_efiemu_crc): Recompute CRC32.
26322 * efiemu/runtime/efiemu.c (ptv_relocated): Renamed to ...
26323 (efiemu_ptv_relocated): ... this. Made global. All users updated.
26324 * efiemu/symbols.c (relocated_handle): New variable.
26325 (grub_efiemu_free_syms): Free relocated_handle.
26326 (grub_efiemu_alloc_syms): Allocate relocated_handle.
26327 (grub_efiemu_write_sym_markers): New function.
26328 (grub_efiemu_set_virtual_address_map): Likewise.
26330 Newer XNU parameters.
26332 * include/grub/i386/xnu.h (GRUB_XNU_BOOTARGS_VERMINOR): Change to 5.
26333 * include/grub/xnu.h (grub_xnu_extheader): Add nameaddr and namesize.
26334 (grub_xnu_fill_devicetree): New prototype.
26335 (grub_xnu_heap_real_start): New variable.
26336 * loader/xnu.c (get_name_ptr): New function.
26337 (grub_xnu_load_driver): Fill namelen and name.
26339 64-bit xnu support.
26341 * conf/i386-efi.rmk (xnu_mod_SOURCES): Add 'loader/macho32.c'
26342 and 'loader/macho64.c'.
26343 * conf/i386-pc.rmk: Likewise.
26344 * conf/x86_64-efi.rmk: Likewise.
26345 * include/grub/i386/macho.h (grub_macho_thread64): New structure.
26346 * include/grub/xnu.h (grub_xnu_is_64bit): New variable.
26347 * include/grub/macho.h (grub_macho_segment64): New structure.
26348 * include/grub/machoload.h (grub_macho32_size): Renamed from ...
26349 (grub_macho_size32): ... to this.
26350 (grub_macho32_get_entry_point): Renamed from ...
26351 (grub_macho_get_entry_point32): ... to this.
26352 (grub_macho_contains_macho64): New prototype.
26353 (grub_macho_size64): Likewise.
26354 (grub_macho_get_entry_point64): Likewise.
26355 (grub_macho32_load): Renamed from ...
26356 (grub_macho_load32): ... to this.
26357 (grub_macho32_filesize): Renamed from ...
26358 (grub_macho_filesize32): ... to this.
26359 (grub_macho32_readfile): Renamed from ...
26360 (grub_macho_readfile32): ... to this.
26361 (grub_macho_filesize64): New prototype.
26362 (grub_macho_readfile64): Likewise.
26363 (grub_macho_parse32): Likewise.
26364 (grub_macho_parse64): Likewise.
26365 * loader/macho.c: Split into ...
26366 * loader/machoXX.c: ... and this. Replace 32 with XX.
26367 * loader/macho32.c: New file.
26368 * loader/macho64.c: Likewise.
26369 * loader/xnu.c (grub_xnu_is_64bit): New variable.
26370 (grub_cmd_xnu_kernel): Make 32-bit only.
26371 (grub_cmd_xnu_kernel64): New function.
26372 (grub_xnu_load_driver): Support Mach-O 64.
26373 (grub_cmd_xnu_mkext): Likewise.
26374 * util/grub.d/30_os-prober.in (osx_entry): New function.
26375 Generate entries for 64-bit boot too.
26377 Eliminate ad-hoc tree format in XNU and EfiEmu.
26379 * efiemu/main.c (grub_efiemu_prepare): Update comment.
26380 * efiemu/pnvram.c: Rewritten to use environment variables.
26383 Inline utf16_to_utf8.
26385 * kern/misc.c (grub_utf16_to_utf8): Move from here ...
26386 * include/grub/charset.h (grub_utf16_to_utf8): ... to here. Inlined.
26388 * include/grub/misc.h (grub_utf16_to_utf8): Removed.
26390 * bus/usb/usb.c (grub_usb_get_string): Move from here ...
26391 * commands/usbtest.c (grub_usb_get_string): ... move here.
26392 (usb_print_str): Fix error handling.
26393 * include/grub/usb.h (grub_usb_get_string): Remove.
26395 UTF-8 to UTF-16 transformation.
26397 * conf/common.rmk (pkglib_MODULES): Add charset.mod
26398 (charset_mod_SOURCES): New variable.
26399 (charset_mod_CFLAGS): Likewise.
26400 (charset_mod_LDFLAGS): Likewise.
26401 * include/grub/utf.h: New file.
26402 * lib/utf.c: New file. (Based on grub_utf8_to_ucs4 from kern/misc.c)
26404 Support for device properties.
26406 * include/grub/i386/xnu.h (grub_xnu_devprop_header): New structure.
26407 (grub_xnu_devprop_device_header): Likewise.
26408 (grub_xnu_devprop_device_descriptor): Likewise.
26409 (grub_xnu_devprop_add_device): New prototype.
26410 (grub_xnu_devprop_remove_device): Likewise.
26411 (grub_xnu_devprop_remove_property): Likewise.
26412 (grub_xnu_devprop_add_property_utf8): Likewise.
26413 (grub_xnu_devprop_add_property_utf16): Likewise.
26414 (grub_cpu_xnu_init): Likewise.
26415 (grub_cpu_xnu_fini): Likewise.
26416 (grub_cpu_xnu_unload): Likewise.
26417 * loader/i386/xnu.c (grub_xnu_devprop_device_descriptor): New structure.
26418 (property_descriptor): Likewise.
26419 (devices): New variable.
26420 (grub_xnu_devprop_remove_property): New function.
26421 (grub_xnu_devprop_add_device): Likewise.
26422 (grub_xnu_devprop_remove_device): Likewise.
26423 (grub_xnu_devprop_add_property): Likewise.
26424 (grub_xnu_devprop_add_property_utf8): Likewise.
26425 (grub_xnu_devprop_add_property_utf16): Likewise.
26426 (hextoval): Likewise.
26427 (grub_cpu_xnu_fill_devprop): Likewise.
26428 (grub_cmd_devprop_load): Likewise.
26429 (grub_xnu_boot): Call grub_cpu_xnu_fill_devprop,
26430 grub_xnu_fill_devicetree, grub_xnu_fill_devicetree
26431 (cmd_devprop_load): New variable.
26432 (grub_cpu_xnu_init): New function.
26433 (grub_cpu_xnu_fini): Likewise.
26434 * loader/i386/xnu.c (grub_xnu_unload): Call grub_cpu_xnu_unload.
26435 * loader/xnu.c (grub_xnu_parse_devtree): Remove.
26436 (grub_cmd_xnu_devtree): Likewise.
26437 (hextoval): New function.
26438 (unescape): Likewise.
26439 (grub_xnu_fill_devicetree): Likewise.
26441 * util/grub.d/30_os-prober.in: Load devprop.bin. Don't load devtree.txt.
26442 * util/i386/efi/grub-dumpdevtree: Generate devprop.bin.
26444 2009-12-18 Vladimir Serbinenko <phcoder@gmail.com>
26446 Workaround for broken ATI VBE.
26448 * video/i386/pc/vbe.c (last_set_mode): New variable.
26449 (grub_vbe_set_video_mode): Set 'last_set_mode'.
26450 (grub_vbe_get_video_mode): Use 'last_set_mode' if get_mode fails.
26451 (grub_video_vbe_setup): Don't check for reserved flag.
26453 2009-12-17 Felix Zielcke <fzielcke@z-51.de>
26455 * gendistlist.sh: Use POSIX compliant `!' instead of `-not' in
26456 the `find' command.
26458 2009-12-16 Vladimir Serbinenko <phcoder@gmail.com>
26460 UUID support for HFS.
26462 * fs/hfs.c (grub_hfs_uuid): New function.
26463 (grub_hfs_fs): New value .uuid.
26464 * include/grub/hfs.h (grub_hfs_sblock): New field 'num_serial'.
26466 2009-12-14 Felix Zielcke <fzielcke@z-51.de>
26468 Fix a segfault with parsing unknown long options.
26470 * util/grub-mkrelpath.c (options): Zero terminate it.
26472 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26474 * include/grub/misc.h (grub_puts): New declaration.
26475 (grub_puts_): Likewise.
26476 * kern/misc.c (grub_puts): New definition.
26477 (grub_puts_): Likewise.
26479 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26481 * util/grub-probe.c (probe): Improve error message.
26483 2009-12-13 Robert Millan <rmh.grub@aybabtu.com>
26485 * loader/i386/multiboot_elfxx.c
26486 (CONCAT(grub_multiboot_load_elf, XX)): Fix `grub_multiboot_payload_eip'
26489 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26491 Relocator framework
26493 * loader/i386/xnu_helper.S: Removed. All users updated.
26494 * conf/i386.rmk (pkglib_MODULES): Add relocator.mod.
26495 (relocator_mod_SOURCES): New variable.
26496 (relocator_mod_CFLAGS): Likewise.
26497 (relocator_mod_LDFLAGS): Likewise.
26498 (relocator_mod_ASFLAGS): Likewise.
26499 * conf/x86_64.rmk: Likewise.
26500 * include/grub/i386/multiboot.h (grub_multiboot_payload_orig): Removed.
26501 (grub_multiboot_payload_entry_offset): Likewise.
26502 (grub_multiboot_forward_relocator): Likewise.
26503 (grub_multiboot_forward_relocator_end): Likewise.
26504 (grub_multiboot_backward_relocator): Likewise.
26505 (grub_multiboot_backward_relocator_end): Likewise.
26506 (grub_multiboot_payload_eip): New variable.
26507 (grub_multiboot_payload_orig): Likewise.
26508 * include/grub/i386/pc/memory.h: Include grub/i386/memory.h.
26509 (GRUB_MEMORY_MACHINE_CR0_PE_ON): Move from here ...
26510 * include/grub/i386/memory.h
26511 (GRUB_MEMORY_CPU_CR0_PE_ON): ... to here
26512 (GRUB_MEMORY_CPU_CR4_PAE_ON): New definition.
26513 (GRUB_MEMORY_CPU_CR0_PAGING_ON): Likewise.
26514 (GRUB_MEMORY_CPU_AMD64_MSR): Likewise.
26515 (GRUB_MEMORY_CPU_AMD64_MSR_ON): Likewise.
26516 * include/grub/i386/relocator.h: New file.
26517 * include/grub/x86_64/relocator.h: Likewise.
26518 * include/grub/i386/xnu.h: Include grub/cpu/relocator.h.
26519 (XNU_RELOCATOR): New macro.
26520 (grub_xnu_launcher_start): Remove.
26521 (grub_xnu_launcher_end): Likewise.
26522 * include/grub/xnu.h (grub_xnu_boot_resume): New prototype.
26523 (grub_xnu_heap_real_start): Remove.
26524 (grub_xnu_heap_start): Change to void *. All users updated.
26525 * kern/i386/realmode.S (real_to_prot): Use GRUB_MEMORY_CPU_CR0_PE_ON.
26526 * lib/i386/relocator.c: New file.
26527 * lib/i386/relocator_asm.S: Likewise.
26528 * lib/i386/relocator_backward.S: Likewise.
26529 * lib/mips/relocator.c: Likewise.
26530 * lib/mips/relocator_asm.S: Likewise.
26531 * lib/relocator.c: Likewise.
26532 * loader/i386/multiboot.c: Include grub/i386/relocator.h.
26534 (playground): Likewise.
26535 (grub_multiboot_payload_orig): New variable.
26536 (grub_multiboot_payload_dest): Likewise.
26537 (grub_multiboot_payload_size): Likewise.
26538 (grub_multiboot_payload_eip): Likewise.
26539 (grub_multiboot_payload_esp): Likewise.
26540 (grub_multiboot_boot): Use grub_relocator32_boot.
26541 (grub_multiboot_unload): Free relocators.
26542 (grub_multiboot): Setup stack. Use relocators.
26543 * loader/i386/multiboot_elfxx.c: Include grub/i386/relocator.h.
26544 (grub_multiboot_load_elfXX): Use relocators.
26545 * loader/i386/multiboot_helper.S (grub_multiboot_payload_orig): Removed.
26546 (grub_multiboot_payload_size): Likewise.
26547 (grub_multiboot_payload_dest): Likewise.
26548 (grub_multiboot_payload_entry_offset): Likewise.
26549 (grub_multiboot_forward_relocator): Likewise.
26550 (grub_multiboot_backward_relocator): Likewise.
26551 (grub_multiboot_real_boot): Likewise.
26552 * loader/i386/xnu.c (grub_xnu_heap_will_be_at): New variable.
26553 (grub_xnu_entry_point): Likewise.
26554 (grub_xnu_arg1): Likewise.
26555 (grub_xnu_stack): Likewise.
26556 (grub_xnu_launch): Removed.
26557 (grub_xnu_boot_resume): New function.
26558 (grub_xnu_boot): Use relocators.
26559 * loader/i386/xnu_helper.S: Removed.
26560 * loader/xnu.c (grub_xnu_heap_start): New variable.
26561 (grub_xnu_heap_size): Likewise.
26562 (grub_xnu_heap_malloc): Use relocators.
26563 * loader/xnu_resume.c (grub_xnu_resume): Use relocators.
26565 2009-12-13 Vladimir Serbinenko <phcoder@gmail.com>
26567 * kern/i386/pc/startup.S (multiboot_entry): Setup stack before calling
26570 2009-12-13 Carles Pina i Estany <carles@pina.cat>
26572 * script/execute.c (grub_script_execute_cmdline): Set grub_errno to
26573 GRUB_ERR_NONE before calling grub_env_set.
26575 2009-12-12 Robert Millan <rmh@aybabtu.com>
26577 * gendistlist.sh (EXTRA_DISTFILES): Add `genvideolist.sh'.
26578 * genmk.rb (video): New variable.
26579 (CLEANFILES, VIDEOFILES): Add #{video}.
26580 (#{video}): New target rule.
26581 * genvideolist.sh: New file.
26582 * Makefile.in (pkglib_DATA): Add video.lst.
26583 (video.lst): New target rule.
26584 * util/grub-mkconfig.in: Initialize ${GRUB_VIDEO_BACKEND} using
26586 * util/grub.d/30_os-prober.in: Replace `vbe' with
26587 ${GRUB_VIDEO_BACKEND}.
26589 2009-12-11 Robert Millan <rmh.grub@aybabtu.com>
26591 * THANKS: Add David Miller.
26593 2009-12-11 Vladimir Serbinenko <phcoder@gmail.com>
26595 libpciaccess support.
26597 * Makefile.in (LIBPCIACCESS): New variable.
26598 (enable_grub_emu_pci): Likewise.
26599 * conf/any-emu.rmk (grub_emu_SOURCES) [enable_grub_emu_pci]: Add
26600 util/pci.c and commands/lspci.c.
26601 (grub_emu_LDFLAGS) [enable_grub_emu_pci]: Add $(LIBPCIACCESS).
26602 * configure.ac (grub-emu-pci): New option.
26603 * include/grub/i386/pci.h (grub_pci_device_map_range): New function.
26604 (grub_pci_device_unmap_range): Likewise.
26605 * include/grub/pci.h [GRUB_UTIL]: Include grub/pciutils.h.
26606 (grub_pci_device) [!GRUB_UTIL]: New structure. All users updated.
26607 (grub_pci_address_t) [!GRUB_UTIL]: New type.
26608 (grub_pci_device_t) [!GRUB_UTIL]: Likewise.
26609 (grub_pci_get_bus) [!GRUB_UTIL]: New function.
26610 (grub_pci_get_device) [!GRUB_UTIL]: Likewise.
26611 (grub_pci_get_function) [!GRUB_UTIL]: Likewise.
26612 * include/grub/pciutils.h: New file.
26613 * util/pci.c: Likewise.
26615 2009-12-11 Felix Zielcke <fzielcke@z-51.de>
26617 * util/misc.c: Don't include <errno.h> twice.
26619 2009-12-10 Felix Zielcke <fzielcke@z-51.de>
26621 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Show the disk
26622 name in an error message.
26623 (grub_biosdisk_rw): Likewise.
26625 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26627 Eliminate NTFS 4Gib barrier.
26629 * fs/ntfs.c (read_attr): Use grub_disk_addr_t and grub_size_t.
26630 (read_run_data): Likewise.
26631 (grub_ntfs_read_run_list): Likewise.
26632 (grub_ntfs_read_block): Likewise.
26633 (grub_ntfs_iterate_dir): Likewise.
26634 (read_mft): Likewise.
26635 (read_data): Likewise.
26637 * fs/ntfscomp.c (read_block): Cast ctx->target_vcn & 0xF to unsigned
26638 to avoid 64-bit division
26639 * include/grub/ntfs.h (COM_LOG_LEN): New definition.
26640 (grub_ntfs_rlst): Use grub_disk_addr_t.
26642 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26644 Eliminate grub-fstest 4Gib barrier.
26646 * util/grub-fstest.c (skip, leng): Use grub_disk_addr_t.
26647 (read_file): Fix error reporting.
26649 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26651 Eliminate hexdump 4Gib barrier.
26653 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_addr_t.
26654 * lib/arg.c (grub_arg_parse): Use grub_strtoull.
26656 2009-12-10 Vladimir Serbinenko <phcoder@gmail.com>
26658 * kern/device.c (grub_device_iterate): Ignore errors during first scan.
26661 2009-12-09 Bruce Dubbs <bruce.dubbs@gmail.com>
26663 Remove miscellaneous files in distclean target.
26665 * Makefile.in: Remove docs/{grub.info,version.texi,stamp-vti}
26667 2009-12-09 Colin Watson <cjwatson@ubuntu.com>
26669 * util/grub-mkconfig_lib.in: Don't set grub_probe or grub_mkrelpath
26670 if they're already set. This resolves the conflict between my
26671 grub-install change on 2009-10-06 and Felix' change on 2009-11-11,
26672 fixing the --grub-probe option again.
26673 * util/sparc64/ieee1275/grub-install.in: Revert the last piece of my
26674 change on 2009-10-06, so that we now once again source
26675 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
26677 2009-12-08 Robert Millan <rmh.grub@aybabtu.com>
26679 * conf/common.rmk [sparc64-ieee1275] (grub_mkdevicemap_SOURCES): Use
26680 `util/ieee1275/ofpath.c' and `util/ieee1275/devicemap.c' instead of
26681 `util/devicemap.c'.
26683 2009-12-08 Carles Pina i Estany <carles@pina.cat>
26685 * include/grub/misc.h (grub_printf_): New declaration.
26686 * kern/misc.c (grub_printf_): New definition.
26687 * normal/main.c (grub_normal_reader_init): Use `grub_printf_' and `N_'
26688 instead of `grub_printf' and `_'.
26689 * normal/menu_entry.c (store_completion): Likewise.
26691 (grub_menu_entry_run): Likewise.
26692 * normal/menu_text.c (grub_wait_after_message): Likewise.
26693 (notify_booting): Likewise.
26694 (notify_fallback): Likewise.
26695 (notify_execution_failure): Likewise.
26697 2009-12-07 Colin Watson <cjwatson@ubuntu.com>
26699 * configure.ac: Check for vasprintf.
26700 * util/misc.c (asprintf): Move allocation from here ...
26701 (vasprintf): ... to here. New function.
26702 (xasprintf): New function.
26703 * include/grub/util/misc.h (vasprintf, xasprintf): Add
26705 * util/getroot.c (grub_util_get_grub_dev): Use xasprintf.
26706 * util/grub-mkfont.c (write_font): Likewise.
26707 * util/grub-probe.c (probe): Likewise.
26708 * util/hostdisk.c (make_device_name): Likewise.
26710 2009-12-06 David S. Miller <davem@sunset.davemloft.net>
26712 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Recognize
26713 anything even prefixed with 'cdrom' as a cdrom.
26715 2009-12-06 Felix Zielcke <fzielcke@z-51.de>
26717 * util/misc.c (make_system_path_relative_to_its_root): Correctly cope with
26720 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26722 * gettext/gettext.c: Include `<grub/list.h>'. Define grub_gettext_msg,
26723 grub_gettext_msg_list.
26724 (grub_gettext_gettranslation_from_position): Return const char *
26726 (grub_gettext_translate): Add the translated strings into a list,
26727 returns from the list if existing there.
26728 (grub_gettext_init_ext): Add \n at the end of grub_dprintf string.
26729 (grub_gettext_delete_list): Delete the list.
26730 (grub_gettext_env_write_lang): Call grub_gettext_delete_list when
26731 lang environment variable is changed.
26732 (GRUB_MOD_FINI): Call grub_gettext_delete_list.
26734 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26736 Rename kernel.mod to kernel.img.
26738 * conf/i386-efi.rmk (pkglib_MODULES): Change kernel.mod to kernel.img.
26739 (kernel_mod_EXPORTS): Rename to ...
26740 (kernel_img_EXPORTS): ... this.
26741 (kernel_mod_SOURCES): Rename to ...
26742 (kernel_img_SOURCES): ... this.
26743 (kernel_mod_HEADERS): Rename to ...
26744 (kernel_img_HEADERS): ... this. All users updated.
26745 (kernel_mod_CFLAGS): Rename to ...
26746 (kernel_img_CFLAGS): ... this.
26747 (kernel_mod_ASFLAGS): Rename to ...
26748 (kernel_img_ASFLAGS): ... this.
26749 (kernel_mod_LDFLAGS): Rename to ...
26750 (kernel_img_LDFLAGS): ... this.
26751 * conf/x86_64-efi.rmk: Likewise.
26752 * util/i386/efi/grub-mkimage.c (read_kernel_module): Rename to ...
26753 (read_kernel_image): ... this. All users updated.
26754 (read_kernel_image): Read "kernel.img" instead of "kernel.mod".
26756 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26758 * normal/menu_text.c (grub_color_menu_high): Gettexttize string.
26759 (print_spaces): New function.
26760 (grub_print_ucs4): New function.
26761 (getstringwidth): New function.
26762 (print_message_indented): New function.
26763 (print_message): Gettexttize strings using print_message_indented.
26764 (run_menu): Replaces grub_printf by print_spaces and dynamic terminal
26766 (get_entry_number): Gettextize and uses dynamic terminal width.
26767 (notify_booting, notify_fallback, notify_execution_failure):
26769 * normal/menu_entry.c (store_completion): Cleanup the gettextized
26772 (grub_menu_entry_run): Likewise.
26773 * PO/POTFILES: Add normal/menu_entry.c.
26775 2009-12-05 Vladimir Serbinenko <phcoder@gmail.com>
26777 * configure.ac (TARGET_ASFLAGS): Add "-D<MACHINE>".
26779 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26781 * util/grub-install.in: Install gettext .mo files.
26782 * util/grub-mkrescue.in (process_input_dir): Copy gettext .mo files.
26784 2009-12-05 Carles Pina i Estany <carles@pina.cat>
26786 * gettext/gettext.c (grub_gettext_init_ext): Replace grub_printf with
26789 2009-12-05 Robert Millan <rmh.grub@aybabtu.com>
26791 * kern/ieee1275/openfw.c (grub_reboot): Disable for i386. The
26792 non-firmware-dependant one in realmode.S takes precedence.
26794 2009-12-04 Robert Millan <rmh.grub@aybabtu.com>
26796 * commands/halt.c: Replace misc arch-specific headers with
26798 * commands/reboot.c: Likewise.
26799 * commands/i386/pc/halt.c: Replace `<grub/machine/init.h>' with
26801 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Remove `cpu/reboot.h'.
26802 (halt_mod_SOURCES): Move `kern/i386/halt.c' from here ...
26803 (kernel_img_SOURCES): ... to here.
26805 * include/grub/efi/efi.h (grub_reboot, grub_halt): Remove prototypes.
26806 * include/grub/i386/pc/init.h: Likewise.
26807 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
26808 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
26810 * include/grub/misc.h (grub_reboot, grub_halt): New prototypes.
26812 * include/grub/i386/halt.h: Remove.
26813 * include/grub/i386/reboot.h: Likewise.
26815 * kern/i386/halt.c: Remove `<grub/cpu/halt.h>'.
26817 2009-12-03 David S. Miller <davem@sunset.davemloft.net>
26819 * conf/sparc64-ieee1275.rmk (grub_mkimage_SOURCES,
26820 grub_setup_SOURCES, grub_ofpathname_SOURCES): Add gnulib/progname.c
26821 * util/sparc64/ieee1275/grub-mkimage.c: Include <grub/i18n.h> and
26823 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26824 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26825 (usage): Add missing comma in printf.
26827 2009-12-02 Robert Millan <rmh.grub@aybabtu.com>
26829 Use the same reboot approach on i386 coreboot and qemu as we do on
26832 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add `cpu/reboot.h'.
26833 (reboot_mod_SOURCES): Remove `kern/i386/reboot.c'.
26834 * kern/i386/reboot.c: Remove.
26835 * include/grub/i386/reboot.h (grub_reboot): Export function.
26836 * kern/i386/pc/startup.S (grub_reboot): Move from here ...
26837 * kern/i386/realmode.S (grub_reboot): ... to here. Jump to
26838 0xf000:0xfff0 instead of 0xffff:0x0000.
26839 [!GRUB_MACHINE_PCBIOS] (prot_to_real): Do not restore interrupts.
26840 * kern/i386/qemu/startup.S: Include `"../realmode.S"'.
26842 2009-11-30 Robert Millan <rmh.grub@aybabtu.com>
26844 Fix $srcdir != $objdir build.
26846 * Makefile.in (po/%.po): Rewrite as ...
26847 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): ... this.
26849 2009-11-29 Samuel Thibault <samuel.thibault@ens-lyon.org>
26851 Fix GNU/Hurd grub-install crash.
26852 * util/grub-probe.c (probe): Try to access `path' only when it is not
26855 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26857 Correct module naming.
26859 * video/efi_uga.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26860 (GRUB_MOD_INIT(efi_uga)): ... to this
26861 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26862 (GRUB_MOD_FINI(efi_uga)): ... to this
26863 * video/efi_gop.c (GRUB_MOD_INIT(efi_fb)): Renamed from this ...
26864 (GRUB_MOD_INIT(efi_gop)): ... to this
26865 (GRUB_MOD_FINI(efi_fb)): Renamed from this ...
26866 (GRUB_MOD_FINI(efi_gop)): ... to this
26868 2009-11-28 Robert Millan <rmh.grub@aybabtu.com>
26870 * util/mkisofs/mkisofs.c (ld_options): Mark all `arg' strings as
26872 (usage): Translate `arg' strings using gettext().
26873 Thanks to Jordi Mallach for the suggestion.
26875 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26877 GOP support. Based on patch from Bean
26878 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
26880 * video/efi_gop.c: New file.
26881 * include/grub/efi/graphics_output.h: Likewise.
26882 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_gop.mod'.
26883 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
26885 * conf/x86_64-efi.rmk: Likewise.
26887 2009-11-28 Vladimir Serbinenko <phcoder@gmail.com>
26889 Rename efi_fb to efi_uga.
26891 * conf/i386-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26893 (efi_fb_mod_SOURCES): Rename this ...
26894 (efi_uga_mod_SOURCES): ... to this.
26895 (efi_fb_mod_CFLAGS): Rename this ...
26896 (efi_uga_mod_CFLAGS): ... to this.
26897 (efi_fb_mod_LDFLAGS): Rename this ...
26898 (efi_uga_mod_LDFLAGS): ... to this.
26899 * conf/x86_64-efi.rmk (pkglib_MODULES): Rename 'efi_fb.mod' to
26901 (efi_fb_mod_SOURCES): Rename this ...
26902 (efi_uga_mod_SOURCES): ... to this.
26903 (efi_fb_mod_CFLAGS): Rename this ...
26904 (efi_uga_mod_CFLAGS): ... to this.
26905 (efi_fb_mod_LDFLAGS): Rename this ...
26906 (efi_uga_mod_LDFLAGS): ... to this.
26907 * video/efi_fb.c: Move this ...
26908 * video/efi_uga.c: ... to this. Change prefix to 'grub_video_uga_'.
26910 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26912 * po/README: New file. Explain our PO file workflow.
26914 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26916 * po/ChangeLog: Remove. Move relevant entries back to ...
26917 * ChangeLog: ... here.
26918 * po/ca.po: Remove (now handled by TLP).
26919 * po/id.po: Likewise.
26920 * po/zh_CN.po: Likewise.
26921 * Makefile.in (LINGUAS): Initialize in a way that supports
26924 2009-11-27 Robert Millan <rmh.grub@aybabtu.com>
26926 * Makefile.in (LINGUAS): Rewrite by scanning po/ directory instead of
26927 reliing on po/LINGUAS.
26928 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po)): Rewrite as ...
26929 (po/%.po): ... this.
26931 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26933 * util/i386/efi/grub-mkimage.c: Include "progname.h".
26934 (main): Use `program_name' instead of nonexistent `progname'.
26936 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26938 * conf/i386-efi.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
26939 * conf/x86_64-efi.rmk (grub_mkimage_SOURCES): Likewise.
26941 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26943 * conf/i386-coreboot.rmk: Cleanup stale filenames from my previous
26945 * conf/i386-efi.rmk: Likewise.
26946 * conf/i386-ieee1275.rmk: Likewise.
26947 * conf/powerpc-ieee1275.rmk: Likewise.
26948 * conf/sparc64-ieee1275.rmk: Likewise.
26949 * conf/x86_64-efi.rmk: Likewise.
26951 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26953 * conf/any-emu.rmk (grub_emu_SOURCES): Add `gnulib/progname.c'.
26955 2009-11-26 Felix Zielcke <fzielcke@z-51.de>
26957 * conf/any-emu.rmk (grub_mkfont_SOURCES): Add `gnulib/progname.c'.
26959 2009-11-26 Robert Millan <rmh.grub@aybabtu.com>
26961 * conf/common.rmk (sbin_UTILITIES): Add `grub-mkdevicemap'.
26962 (grub_mkdevicemap_SOURCES): New variable.
26963 (grub_probe_SOURCES, grub_fstest_SOURCES, grub_mkfont_SOURCES)
26964 (grub_mkrelpath_SOURCES, grub_editenv_SOURCES)
26965 (grub_pe2elf_SOURCES): Add `gnulib/progname.c'.
26966 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-mkdevicemap'.
26967 (grub_mkdevicemap_SOURCES): Remove.
26968 * conf/i386-efi.rmk: Likewise.
26969 * conf/i386-ieee1275.rmk: Likewise.
26970 * conf/i386-pc.rmk: Likewise.
26971 * conf/powerpc-ieee1275.rmk: Likewise.
26972 * conf/sparc64-ieee1275.rmk: Likewise.
26973 * conf/x86_64-efi.rmk: Likewise.
26974 * util/elf/grub-mkimage.c: Include `<grub/i18n.h>' and `"progname.h"'.
26975 (usage): Fix strings to use `program_name'.
26976 (main): Initialize gettext.
26977 * util/grub-editenv.c: Likewise.
26978 * util/grub-emu.c: Likewise.
26979 * util/grub-fstest.c: Likewise.
26980 * util/grub-mkdevicemap.c: Likewise.
26981 * util/grub-mkfont.c: Likewise.
26982 * util/grub-mkrelpath.c: Likewise.
26983 * util/grub-pe2elf.c: Likewise.
26984 * util/grub-probe.c: Likewise.
26985 * util/sparc64/ieee1275/grub-mkimage.c: Likewise.
26986 * util/sparc64/ieee1275/grub-ofpathname.c: Likewise.
26987 * util/sparc64/ieee1275/grub-setup.c: Likewise.
26989 * util/misc.c: Include `"progname.h"'.
26990 (progname): Remove variable.
26991 (grub_util_warn, grub_util_info, grub_util_error): Use `program_name'.
26993 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
26995 * util/grub.d/10_linux.in (linux_entry): Quote the arguments to
26996 printf and print a newline after the menuentry header line.
26997 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
26999 2009-11-25 Felix Zielcke <fzielcke@z-51.de>
27001 autoconf >= 2.60 support $(localedir).
27003 * INSTALL: Note that autoconf 2.60 is required.
27004 * configure.ac (AC_PREREQ): Bump to 2.60.
27005 * util/grub.d/10_kfreebsd.in (TEXTDOMAINDIR): Set to lowercased @localedir@.
27006 * util/grub.d/10_linux.in (TEXTDOMAINDIR): Likewise.
27008 2009-11-25 Yves Blusseau <yves.blusseau@zetam.org>
27010 * configure.ac: move the call to AM_GNU_GETTEXT to avoid warnings when
27013 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27015 * normal/main.c (grub_normal_read_line): Fix off-by-one
27018 2009-11-25 Robert Millan <rmh.grub@aybabtu.com>
27020 * normal/main.c (grub_normal_execute): Replace "parser.sh" with
27021 "parser.grub" in grub_command_execute() call.
27023 2009-11-24 Carles Pina i Estany <carles@pina.cat>
27025 * conf/i386-coreboot.rmk (kernel_img_HEADERS): Add i18n.h.
27026 * conf/i386-efi.rmk: Likewise.
27027 * conf/i386-ieee1275.rmk: Likewise.
27028 * conf/i386-pc.rmk: Likewise.
27029 * conf/powerpc-ieee1275.rmk: Likewise.
27030 * conf/sparc64-ieee1275.rmk: Likewise.
27031 * conf/x86_64-efi.rmk: Likewise.
27032 * gettext/gettex.c: Include <grub/i18n.h>.
27033 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): Move from
27035 * include/grub/i18n.h: ... to here
27036 * include/grub/i18n.h: ... to here.
27037 * kern/misc.c: Include <grub/i18n.h>
27038 (grub_gettext_dummy): Move above user.
27040 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27042 * util/Makefile.in (install-local): Convert a `for' into a normal
27045 2009-11-24 Robert Millan <rmh.grub@aybabtu.com>
27047 * autogen.sh: Add automake call.
27048 * config.guess: Remove.
27049 * config.sub: Likewise.
27050 * install-sh: Likewise.
27052 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27054 * util/Makefile.in (install-local): Fix the use of $lang shell variable.
27056 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27058 * util/Makefile.in (install-local): Convert a make `$(foreach)'
27059 function to a normal shell `for'.
27061 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27063 * conf/i386-coreboot.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27065 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27067 * util/grub-mkrelpath.c: New file.
27068 * conf/common.rmk (bin_UTILITIES): Add grub-mkrelpath.
27069 (grub_mkrelpath_SOURCES): New variable.
27070 * include/grub/util/misc.h: New function prototype.
27071 * util/misc.c (make_system_path_relative_to_its_root): New function.
27073 * util/grub-mkconfig_lib.in (bindir): New variable.
27074 (grub_mkrelpath): Likewise.
27075 (make_system_path_relative_to_its_root): Use grub-mkrelpath.
27077 * util/probe.c (probe): Make the file path relative to its root.
27078 Change a info message to use the GRUB path. Enable again the
27079 check if we can read the file with GRUB facilities.
27081 * util/i386/pc/grub-setup.c (setup): Make core.img path relative
27084 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27086 * Makefile.in: Don't include GRUB_CONTRIB makefiles with emu
27089 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27091 * util/getroot.c (grub_util_get_dev_abstraction): Properly use
27094 2009-11-24 Felix Zielcke <fzielcke@z-51.de>
27096 * util/getroot.c (grub_util_is_dmraid): New function.
27097 (grub_util_get_dev_abstraction): Treat dmraid and multipath
27098 devices as normal ones, not as LVM.
27100 2009-11-23 Carles Pina i Estany <carles@pina.cat>
27102 * conf/common.rmk: Add grub-gettext_lib target and updates
27103 lib_DATA and CLEANFILES. Adds gettext.mod SOURCES, CFLAGS,
27105 * gettext/gettext.c: New file. (Reads mo files).
27106 * include/grub/file.h (grub_file_pread): New prototype.
27107 * include/grub/i18n.h (_): New prototype.
27108 * include/grub/misc.h (grub_gettext_dummy, grub_gettext): New
27110 * kern/misc.c (grub_gettext_dummy): New function.
27111 * normal/menu_text.c: Include <grub/i18n.h>.
27112 * normal/menu_text.c (print_timeout): Gettexttize string.
27113 * normal/menu_text.c (print_message): Gettexttize string.
27114 * po/POTFILES: Add `normal/menu_text.c'.
27115 * po/ca.po: Add new translations.
27116 * util/grub.d/00_header.in: Define locale_dir and lang. insmod
27117 gettext module and defines locale_dir and lang in grub.cfg.
27118 * NEWS: Add gettext support.
27120 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27122 * util/hostdisk.c: Include `<grub/i18n.h>'.
27123 (find_grub_drive): Use ARRAY_SIZE for map size calculation.
27124 (make_device_name): Rewrite using asprintf.
27125 (convert_system_partition_to_system_disk): Replace 0 with NULL.
27126 (find_system_device): If a device is not found, generate one just
27127 by reusing the OS path name.
27128 (read_device_map): Make it permissible for device.map not to exist.
27130 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27132 * script/sh/execute.c: Move from here ...
27133 * script/execute.c: ... to here. Update all users.
27134 * script/sh/function.c: Move from here ...
27135 * script/function.c: ... to here. Update all users.
27136 * script/sh/lexer.c: Move from here ...
27137 * script/lexer.c: ... to here. Update all users.
27138 * script/sh/main.c: Move from here ...
27139 * script/main.c: ... to here. Update all users.
27140 * script/sh/parser.y: Move from here ...
27141 * script/parser.y: ... to here. Update all users.
27142 * script/sh/script.c: Move from here ...
27143 * script/script.c: ... to here. Update all users.
27145 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27147 * configure.ac: Detect all `emu' platforms. Define
27148 GRUB_MACHINE_* macros in TARGET_CFLAGS. Remove
27149 --enable-grub-emu logic. Disable include/grub/machine
27150 symlink on `emu' platforms.
27152 * genkernsyms.sh.in: Use @TARGET_CFLAGS@ during symbol generation.
27153 * gensymlist.sh.in: Likewise.
27155 * include/grub/i386/coreboot/machine.h: Remove file.
27156 * include/grub/i386/efi/machine.h: Likewise.
27157 * include/grub/i386/ieee1275/machine.h: Likewise.
27158 * include/grub/i386/pc/machine.h: Likewise.
27159 * include/grub/i386/qemu/machine.h: Likewise.
27160 * include/grub/powerpc/ieee1275/machine.h: Likewise.
27161 * include/grub/sparc64/ieee1275/machine.h: Likewise.
27162 * include/grub/x86_64/efi/machine.h: Likewise.
27164 * commands/acpi.c: Remove `<grub/machine/machine.h>'.
27165 * commands/halt.c: Likewise.
27166 * commands/reboot.c: Likewise.
27167 * include/grub/autoefi.h: Likewise.
27168 * include/grub/i386/at_keyboard.h: Likewise.
27169 * include/grub/i386/kernel.h: Likewise.
27170 * include/grub/i386/loader.h: Likewise.
27171 * include/grub/i386/pc/memory.h: Likewise.
27172 * kern/dl.c: Likewise.
27173 * kern/i386/coreboot/init.c: Likewise.
27174 * loader/i386/bsd.c: Likewise.
27175 * loader/i386/linux.c: Likewise.
27176 * loader/multiboot_loader.c: Likewise.
27177 * term/i386/pc/serial.c: Likewise.
27178 * term/usb_keyboard.c: Likewise.
27180 * include/grub/time.h [!GRUB_MACHINE_EMU]: Remove
27181 `<grub/machine/machine.h>'
27182 [!GRUB_MACHINE_EMU] (GRUB_TICKS_PER_SECOND): New macro.
27183 * util/misc.c: Remove `<grub/machine/machine.h>' and
27184 `<grub/machine/time.h>'.
27186 * Makefile.in (enable_grub_emu): Remove variable.
27187 Include $(srcdir)/conf/any-emu.mk for the `emu' platform.
27189 * conf/any-emu.rmk: New file.
27190 * conf/common.rmk (grub_emu_init.lst, grub_emu_init.h)
27191 (grub_emu_init.c): Move from here ...
27192 * conf/any-emu.rmk: ... to here.
27194 * conf/i386-coreboot.rmk (sbin_UTILITIES): Remove `grub-emu'.
27195 (grub_emu_SOURCES, grub_emu_LDFLAGS): Move from here ...
27196 * conf/any-emu.rmk: ... to here.
27198 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27200 * include/grub/parser.h (grub_parser_register): Document need
27201 of `name' parameter.
27202 * normal/main.c (grub_normal_read_line): Simplify prompt string.
27203 * script/sh/main.c (grub_sh_parser, GRUB_MOD_INIT(sh)): Rename
27206 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27208 * Makefile.in ($(srcdir)/po/$(PACKAGE).pot): Pass --keyword=N_ to
27210 * include/grub/i18n.h (N_): New macro.
27211 * util/mkisofs/mkisofs.h: Likewise.
27212 * util/mkisofs/mkisofs.c (ld_options): Wrap all translatable strings
27214 (usage): Use gettext() to translate help strings when printing them.
27216 2009-11-23 Robert Millan <rmh.grub@aybabtu.com>
27218 Based on patch from Bean
27219 (http://lists.gnu.org/archive/html/grub-devel/2009-08/msg00384.html)
27221 * video/efi_fb.c: New file.
27222 * conf/i386-efi.rmk (pkglib_MODULES): Add `efi_fb.mod'.
27223 (efi_fb_mod_SOURCES, efi_fb_mod_CFLAGS, efi_fb_mod_LDFLAGS): New
27225 * conf/x86_64-efi.rmk: Likewise.
27227 2009-11-22 Robert Millan <rmh.grub@aybabtu.com>
27229 * util/i386/pc/grub-mkimage.c: Ungettextize grub_util_info() strings.
27230 * util/i386/pc/grub-setup.c: Likewise.
27232 2009-11-21 Samuel Thibault <samuel.thibault@ens-lyon.org>
27234 * util/getroot.c [__GNU__]: Include <hurd.h>, <hurd/lookup.h>, and
27236 [__GNU__] (grub_guess_root_device): Call file_name_lookup and
27237 file_get_storage_info to implement grub_guess_root_device.
27239 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27241 * Makefile.in (target): Use make's builtin $(shell) function
27242 instead of calling directly $(SHELL) to create the locale directories,
27243 inside the $(foreach) function.
27245 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27247 * util/grub-mkrescue.in: Print an error and usage if output option
27248 has not been given.
27250 2009-11-21 Felix Zielcke <fzielcke@z-51.de>
27252 Patch from Loïc Minier <loic.minier@ubuntu.com>.
27253 * util/grub.d/30_os-prober.in: Cope with Linux entries where
27254 root and /boot are on different devices.
27256 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27258 Fix build for srcdir != objdir.
27260 * Makefile.in (po/$(PACKAGE).pot): Rename to ...
27261 ($(srcdir)/po/$(PACKAGE).pot): ... this. Run $(XGETTEXT) from
27263 ($(foreach lang, $(LINGUAS), po/$(lang).po)): Rename to ...
27264 ($(foreach lang, $(LINGUAS), $(srcdir)/po/$(lang).po): ... this. Use $^
27265 reference for input.
27267 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27269 * util/grub-mkrescue.in: Use source directory direcly (without copiing
27270 or hardlinking it). Remove -J option, Joliet is not compatible with
27271 multiple source directories.
27273 2009-11-21 Carles Pina i Estany <carles@pina.cat>
27274 2009-11-21 Robert Millan <rmh.grub@aybabtu.com>
27276 * util/grub-mkrescue.in: Recognize `--override-directory' option.
27277 (process_input_dir): New function. Process an arbitrary input
27279 Misc adjustments to support both "override mode" and system-wide mode.
27281 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27283 * configure.ac (UNIFONT_BDF): Rename to ...
27284 (FONT_SOURCE): ... this. Update all users.
27286 2009-11-20 Felix Zielcke <fzielcke@z-51.de>
27288 * configure.ac: Add `/usr/share/fonts/X11/misc/unifont.pcf.gz'
27289 to the list of unifont files to look for.
27291 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27293 Patch from Joe Auricchio <jauricchio@gmail.com>
27294 * commands/minicmd.c (grub_mini_cmd_clear): New function.
27295 (GRUB_MOD_INIT(minicmd)): Register grub_mini_cmd_clear().
27296 (GRUB_MOD_FINI(minicmd)): Unregister grub_mini_cmd_clear().
27298 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27300 * Makefile.in (install-local): Add a missing backslash.
27302 2009-11-19 Felix Zielcke <fzielcke@z-51.de>
27304 * include/grub/x86_64/io.h: New file.
27306 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27308 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `gnulib/progname.c'.
27309 * util/i386/pc/grub-setup.c: Include `<grub/i18n.h>'.
27310 Include `"progname.h"'.
27311 (main): Initialize gettext.
27312 * util/i386/pc/grub-setup.c: Gettexttize.
27313 * util/i386/pc/grub-mkimage.c: Likewise.
27315 * Makefile.in (po/*.po): Redefine as ...
27316 ($(foreach lang, $(LINGUAS), po/$(lang).po)): ... this.
27318 * po/POTFILES: Add `util/i386/pc/grub-setup.c'.
27320 2009-11-19 Robert Millan <rmh.grub@aybabtu.com>
27322 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/progname.c'.
27323 * util/mkisofs/mkisofs.c: Include `"progname.h"'.
27324 (program_name): Remove.
27325 (main): Initialize gettext support.
27326 * util/mkisofs/mkisofs.h: Include `<locale.h>'.
27327 Include `<libintl.h>'.
27330 * util/mkisofs/eltorito.c: Gettexttize.
27331 * util/mkisofs/joliet.c: Likewise.
27332 * util/mkisofs/mkisofs.c: Likewise.
27333 * util/mkisofs/multi.c: Likewise.
27334 * util/mkisofs/rock.c: Likewise.
27335 * util/mkisofs/tree.c: Likewise.
27336 * util/mkisofs/write.c: Likewise.
27338 * po/POTFILES: Update with new files.
27340 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27342 * util/mkisofs/eltorito.c: Fix minor mistake in license text.
27343 * util/mkisofs/iso9660.h: Likewise.
27344 * util/mkisofs/joliet.c: Likewise.
27345 * util/mkisofs/mkisofs.c: Likewise.
27346 * util/mkisofs/mkisofs.h: Likewise.
27347 * util/mkisofs/rock.c: Likewise.
27348 * util/mkisofs/tree.c: Likewise.
27349 * util/mkisofs/write.c: Likewise.
27351 * util/mkisofs/eltorito.c (rcsid): Remove.
27352 * util/mkisofs/hash.c: Likewise.
27353 * util/mkisofs/joliet.c: Likewise.
27354 * util/mkisofs/name.c: Likewise.
27355 * util/mkisofs/rock.c: Likewise.
27356 * util/mkisofs/tree.c: Likewise.
27357 * util/mkisofs/write.c: Likewise.
27359 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27361 * util/mkisofs/match.c: Rewrite from scratch, using a linked list
27362 instead of static allocation.
27363 * util/mkisofs/match.h: Likewise.
27365 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27367 * po/POTFILES-shell: New file. List `util/grub.d/10_kfreebsd.in'
27368 and `util/grub.d/10_linux.in'.
27369 * Makefile.in (po/$(PACKAGE).pot): Process `po/POTFILES-shell' for
27370 translatable Shell files.
27372 2009-11-18 Robert Millan <rmh.grub@aybabtu.com>
27374 * Makefile.in ($(srcdir)/aclocal.m4): New target.
27376 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27378 * INSTALL: Document Automake is needed for bootstrap.
27379 * po/ca.po: Fix PO-Revision-Date and Language-Team fields.
27380 * util/grub.d/10_kfreebsd.in (bindir): New variable.
27381 Add gettext initialization.
27382 (kfreebsd_entry): Make menuentry output translatable.
27384 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27386 * Makefile.in (XGETTEXT, MSGMERGE, MSGFMT): New variables.
27387 (po/$(PACKAGE).pot): Replace `xgettext' with `$(XGETTEXT)'.
27388 (po/*.po): Replace `msgmerge' with `$(MSGMERGE)'.
27389 (po/%.mo): Replace `msgfmt' with `$(MSGFMT)'.
27390 (LINGUAS): Auto-generate using `po/LINGUAS'.
27391 * po/LINGUAS: New file.
27393 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27395 * configure.ac: Call AM_GNU_GETTEXT() (defines localedir, among
27397 * Makefile.in (CPPFLAGS): Add `-DLOCALEDIR=\"$(localedir)\"'.
27398 * util/i386/pc/grub-mkimage.c (main): Issue setlocale() and
27399 bindtextdomain() calls for gettext initialization.
27401 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27403 * gnulib/progname.c: New file (imported from Gnulib).
27404 * gnulib/progname.h: Likewise.
27405 * conf/i386-pc.rmk (grub_mkimage_SOURCES): Add `gnulib/progname.c'.
27406 * util/i386/pc/grub-mkimage.c: Include `"progname.h"'.
27407 (usage): Replace `progname' with `program_name'.
27408 (main): Use set_program_name() for program name initialization.
27410 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27412 * conf/common.rmk (grub_mkisofs_CFLAGS): Move `-I$(srcdir)/gnulib'
27414 * Makefile.in (CPPFLAGS): ... to here.
27416 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27418 * aclocal.m4: Move from here ...
27419 * acinclude.m4: ... to here.
27420 * autogen.sh: Add call to `aclocal'.
27421 * configure.ac: Add AM_INIT_AUTOMAKE() after AC_INIT() call.
27423 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27425 * Makefile.in (CLEANFILES): Add `po/*.mo'.
27426 (LINGUAS): New variable.
27427 (all-local): Add `$(foreach lang, $(LINGUAS), po/$(lang).mo)'.
27428 (install-local): Install MO files.
27429 (po/$(PACKAGE).pot, po/*.po, po/%.mo): New rules.
27430 * include/grub/i18n.h: New file.
27431 * po/POTFILES: New file.
27432 * po/ca.po: New file.
27433 * util/grub.d/10_linux.in (bindir): New variable.
27434 Add gettext initialization.
27435 (linux_entry): Make menuentry output translatable.
27436 * util/i386/pc/grub-mkimage.c: Include `<grub/i18n.h>'.
27437 (usage): Make --help output translatable.
27438 (main): Initialize gettext.
27440 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27442 * import_gcry.py: New file (written by Vladimir with minor
27444 * autogen.sh: Use import_gcry.py to auto-generate GRUB-ified
27446 * INSTALL: Document that Python is required for bootstrap.
27448 2009-11-17 Robert Millan <rmh.grub@aybabtu.com>
27450 Import ciphers from libgcrypt 1.4.4.
27452 * lib/libgcrypt/cipher/ChangeLog
27453 * lib/libgcrypt/cipher/ac.c
27454 * lib/libgcrypt/cipher/arcfour.c
27455 * lib/libgcrypt/cipher/bithelp.h
27456 * lib/libgcrypt/cipher/blowfish.c
27457 * lib/libgcrypt/cipher/camellia-glue.c
27458 * lib/libgcrypt/cipher/camellia.c
27459 * lib/libgcrypt/cipher/camellia.h
27460 * lib/libgcrypt/cipher/cast5.c
27461 * lib/libgcrypt/cipher/cipher.c
27462 * lib/libgcrypt/cipher/crc.c
27463 * lib/libgcrypt/cipher/des.c
27464 * lib/libgcrypt/cipher/dsa.c
27465 * lib/libgcrypt/cipher/ecc.c
27466 * lib/libgcrypt/cipher/elgamal.c
27467 * lib/libgcrypt/cipher/hash-common.c
27468 * lib/libgcrypt/cipher/hash-common.h
27469 * lib/libgcrypt/cipher/hmac-tests.c
27470 * lib/libgcrypt/cipher/md.c
27471 * lib/libgcrypt/cipher/md4.c
27472 * lib/libgcrypt/cipher/md5.c
27473 * lib/libgcrypt/cipher/primegen.c
27474 * lib/libgcrypt/cipher/pubkey.c
27475 * lib/libgcrypt/cipher/rfc2268.c
27476 * lib/libgcrypt/cipher/rijndael-tables.h
27477 * lib/libgcrypt/cipher/rijndael.c
27478 * lib/libgcrypt/cipher/rmd.h
27479 * lib/libgcrypt/cipher/rmd160.c
27480 * lib/libgcrypt/cipher/rsa.c
27481 * lib/libgcrypt/cipher/seed.c
27482 * lib/libgcrypt/cipher/serpent.c
27483 * lib/libgcrypt/cipher/sha1.c
27484 * lib/libgcrypt/cipher/sha256.c
27485 * lib/libgcrypt/cipher/sha512.c
27486 * lib/libgcrypt/cipher/tiger.c
27487 * lib/libgcrypt/cipher/twofish.c
27488 * lib/libgcrypt/cipher/whirlpool.c
27490 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27492 Fix build for systems without error().
27494 * gnulib/error.c: New file (imported from Gnulib).
27495 * gnulib/error.h: Likewise.
27496 * conf/common.rmk (grub_mkisofs_SOURCES): Add `gnulib/error.c'.
27497 * util/mkisofs/mkisofs.c (program_name): Remove `static' qualifier
27498 (this variable is now used by error()).
27500 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27502 * util/mkisofs/name.c (iso9660_file_length): Use isascii macro
27503 instead of relying that char is signed.
27505 2009-11-16 Vladimir Serbinenko <phcoder@gmail.com>
27507 * fs/i386/pc/pxe.c (grub_pxefs_open): Correctly handle PXE choosing
27508 blocksize different from specified.
27509 (grub_pxefs_read): Likewise.
27511 2009-11-16 Felix Zielcke <fzielcke@z-51.de>
27513 Enable ata.mod on x86_64-efi, i386-efi and i386-ieee1275.
27515 * disk/ata.c (grub_ata_dumpinfo): Add a cast.
27516 (grub_ata_readwrite): Likewise. Update 2 format strings.
27517 (grub_atapi_read): Likewise.
27519 * conf/i386-coreboot.rmk (pkglib_MODULES): Move `ata.mod' from here ...
27520 * conf/i386.rmk (pkglib_MODULES): ... to here ...
27521 * conf/x86_64-efi.rmk (pkglib_MODULES): ... and here.
27522 * conf/i386-coreboot.rmk (ata_mod_SOURCES, ata_mod_CFLAGS)
27523 (ata_mod_LDFLAGS): Move from here ...
27524 * conf/i386.rmk: ... to here ...
27525 * conf/x86_64-efi.rmk: ... and here.
27526 * conf/i386-pc.rmk (pkglib_MODULES): Remove `ata.mod'
27527 (ata_mod_SOURCES, ata_mod_CFLAGS, ata_mod_LDFLAGS): Remove.
27529 2009-11-16 Robert Millan <rmh.grub@aybabtu.com>
27531 Relicense multiboot.h, with RMS' blessing.
27533 * include/multiboot.h: Change to X11 license.
27535 2009-11-15 Robert Millan <rmh.grub@aybabtu.com>
27537 Support --version in grub-mkisofs.
27539 * util/mkisofs/mkisofs.c (rcsid): Remove variable.
27540 (OPTION_VERSION): New macro.
27541 (ld_options): Recognize --version.
27542 (usage): Move `program_name' from here ...
27543 (program_name): ... to here. Add `static' qualifier.
27544 (main): Recognize `OPTION_VERSION'.
27546 2009-11-15 Felix Zielcke <fzielcke@z-51.de>
27548 * Makefile.in (TARGET_CPPFLAGS): Replace `-isystem=$(srcdir)/include'
27549 with `-nostdinc -isystem $(shell $(TARGET_CC) -print-file-name=include)'.
27551 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27553 Fix help2man generation for mkisofs.
27555 * util/mkisofs/mkisofs.c (ld_options): Recognize --help.
27556 (usage): Send output to stdout (rather than stderr).
27558 2009-11-14 Robert Millan <rmh.grub@aybabtu.com>
27560 * conf/i386-coreboot.rmk (grub_mkrescue_SOURCES): Replace
27561 `util/i386/coreboot/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27562 * conf/i386-pc.rmk (grub_mkrescue_SOURCES): Replace
27563 `util/i386/pc/grub-mkrescue.in' with `util/grub-mkrescue.in'.
27564 (bin_SCRIPTS): Add `grub-mkfloppy'.
27565 (grub_mkfloppy_SOURCES): New variable.
27567 * util/grub-mkrescue.in: New file.
27568 * util/i386/pc/grub-mkfloppy.in: New file.
27570 * util/i386/coreboot/grub-mkrescue.in: Remove.
27571 * util/i386/pc/grub-mkrescue.in: Remove.
27573 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27575 * include/grub/multiboot.h (struct grub_multiboot_header): Move
27577 * include/multiboot.h (struct multiboot_header): ... to here. Update
27579 * include/grub/multiboot.h (struct grub_multiboot_info): Move
27581 * include/multiboot.h (struct multiboot_info): ... to here. Update
27583 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): Move
27585 * include/multiboot.h (struct multiboot_mmap_entry): ... to here.
27587 * include/grub/multiboot.h (struct grub_mod_list): Move
27589 * include/multiboot.h (struct multiboot_mod_list): ... to here.
27592 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27594 * include/multiboot2.h (multiboot_word): Rename from this ...
27595 (multiboot2_word): ... to this. Update all users.
27596 (multiboot_header): Rename from this ...
27597 (multiboot2_header): ... to this. Update all users.
27598 (multiboot_tag_header): Rename from this ...
27599 (multiboot2_tag_header): ... to this. Update all users.
27600 (multiboot_tag_start): Rename from this ...
27601 (multiboot2_tag_start): ... to this. Update all users.
27602 (multiboot_tag_name): Rename from this ...
27603 (multiboot2_tag_name): ... to this. Update all users.
27604 (multiboot_tag_module): Rename from this ...
27605 (multiboot2_tag_module): ... to this. Update all users.
27606 (multiboot_tag_memory): Rename from this ...
27607 (multiboot2_tag_memory): ... to this. Update all users.
27608 (multiboot_tag_unused): Rename from this ...
27609 (multiboot2_tag_unused): ... to this. Update all users.
27610 (multiboot_tag_end): Rename from this ...
27611 (multiboot2_tag_end): ... to this. Update all users.
27613 2009-11-13 Robert Millan <rmh.grub@aybabtu.com>
27615 Disable Multiboot2 in i386-ieee1275. It didn't actually work, and on
27616 this platform we should support Multiboot1 first.
27618 * conf/i386-ieee1275.rmk (pkglib_MODULES): Remove `multiboot.mod'.
27619 (multiboot_mod_SOURCES, multiboot_mod_CFLAGS)
27620 (multiboot_mod_LDFLAGS, multiboot_mod_ASFLAGS): Remove.
27622 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27624 * util/mkisofs/eltorito.c (init_boot_catalog): Handle return code
27625 of write calls (converting them to fwrite() if they aren't already).
27626 (get_torito_desc): Likewise.
27627 * util/mkisofs/rock.c (generate_rock_ridge_attributes): Likewise.
27629 2009-11-12 Robert Millan <rmh.grub@aybabtu.com>
27631 * util/i386/pc/grub-install.in: Move from here ...
27632 * util/grub-install.in: ... to here. Update all users.
27634 2009-11-11 Colin Watson <cjwatson@ubuntu.com>
27636 * util/powerpc/ieee1275/grub-mkrescue.in: Fix --version output.
27638 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27640 Support for El Torito without floppy emulation.
27642 * util/mkisofs/eltorito.c: Include `<errno.h>'.
27643 (init_boot_catalog): Improve error handling.
27644 (get_torito_desc): Don't use floppy emulation unless requested by
27645 user. Patch boot information table when requested via
27646 `-boot-info-table'.
27647 * util/mkisofs/iso9660.h (struct eltorito_boot_info): New struct.
27648 * util/mkisofs/mkisofs.c (use_eltorito_emul_floppy)
27649 (use_boot_info_table): New variables.
27650 (OPTION_BOOT_INFO_TABLE, OPTION_NO_EMUL_BOOT)
27651 (OPTION_ELTORITO_EMUL_FLOPPY): New macros.
27652 (ld_options): Handle `-boot-info-table', `-no-emul-boot' and
27653 `--eltorito-emul-floppy'.
27654 (main): Handle `OPTION_BOOT_INFO_TABLE', `OPTION_NO_EMUL_BOOT'
27655 and `OPTION_ELTORITO_EMUL_FLOPPY'.
27656 * util/mkisofs/mkisofs.h (use_eltorito_emul_floppy)
27657 (use_boot_info_table, get_731): New prototypes.
27658 * util/mkisofs/write.c (get_731): New function.
27660 2009-11-11 Felix Zielcke <fzielcke@z-51.de>
27662 Fix the generation of the man page.
27664 * util/pc/i386/grub-install.in: Source
27665 `${libdir}/grub/grub-mkconfig_lib' after options have been parsed.
27667 2009-11-11 Robert Millan <rmh.grub@aybabtu.com>
27669 Large file support for grub-mkisofs.
27671 * conf/common.rmk (grub_mkisofs_CFLAGS): Add `-D_FILE_OFFSET_BITS=64'.
27672 * util/mkisofs/mkisofs.c (next_extent, last_extent)
27673 (session_start): Upgrade type to `uint64_t'. Update all users.
27674 * util/mkisofs/mkisofs.h: Include `<stdint.h>'.
27675 (struct directory_entry): Upgrade type of `starting_block' and
27676 `size' to `uint64_t'. Update all users.
27677 (struct deferred): Remove unused structure.
27678 (xfwrite): Upgrade type of `count' and `size' to `uint64_t'.
27680 * util/mkisofs/tree.c (stat_filter, lstat_filter): Return -1 when
27681 file is larger than `UINT32_MAX'.
27682 * util/mkisofs/write.c (xfwrite): Upgrade type of `count' and
27683 `size' to `uint64_t'. Update all users. Fix handling of fwrite()
27685 (struct deferred_write): Upgrade type of `extent' and `size' to
27686 `uint64_t'. Update all users.
27687 (last_extent_written): Upgrade type to `uint64_t'. Update all
27689 (write_one_file): Upgrade type of `count' and `size' to `uint64_t'.
27690 Update all users. Upgrade type of `remain' to `int64_t' and
27691 `use' to `size_t'. Use error() to handle fread() errors.
27692 (write_files): Rely on write_one_file() rather than calling
27693 xfwrite() directly.
27695 2009-11-09 Felix Zielcke <fzielcke@z-51.de>
27697 * util/mkisofs/mkisofs.c (ld_options): Fix a spelling mistake.
27699 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27701 * util/mkisofs/fnmatch.c: Remove.
27702 * util/mkisofs/getopt1.c: Likewise.
27703 * util/mkisofs/getopt.c: Likewise.
27704 * conf/common.rmk (grub_mkisofs_SOURCES): Replace
27705 `util/mkisofs/fnmatch.c', `util/mkisofs/getopt1.c' and
27706 `util/mkisofs/getopt.c' with `gnulib/fnmatch.c',
27707 `gnulib/getopt1.c' and `gnulib/getopt.c'.
27708 (grub_mkisofs_CFLAGS): Add `-I$(srcdir)/gnulib'.
27710 * configure.ac: Detect `mingw32msvc' host_os.
27711 Check for lstat(), getuid() and getgid().
27713 * util/mkisofs/joliet.c: Include `<stdint.h>'. Replace all
27714 instances of `u_char' with `uint8_t'.
27716 * util/mkisofs/mkisofs.h: Include `<sys/stat.h>'.
27717 [!HAVE_GETUID] (getuid): New function (stub).
27718 [!HAVE_GETGID] (getgid): Likewise.
27719 [!HAVE_LSTAT] (lstat): Likewise.
27720 [!S_IROTH] (S_IROTH): New macro (dummy).
27721 [!S_IRGRP] (S_IRGRP): Likewise.
27723 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27725 * gnulib/fnmatch_loop.c (EXT): Fix warning (signed and unsigned type in
27726 conditional expression).
27728 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27730 Import from Gnulib.
27732 * gnulib/fnmatch.c: New file.
27733 * gnulib/fnmatch.h: Likewise.
27734 * gnulib/fnmatch_loop.c: Likewise.
27735 * gnulib/getopt.c: Likewise.
27736 * gnulib/getopt.h: Likewise.
27737 * gnulib/getopt1.c: Likewise.
27738 * gnulib/getopt_int.h: Likewise.
27739 * gnulib/gettext.h: Likewise.
27741 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27743 * normal/dyncmd.c (read_command_list): Replace `0' with `NULL'.
27744 * normal/handler.c (read_handler_list): Likewise.
27746 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27750 * kern/command.c (grub_register_command_prio): Use
27751 grub_zalloc() instead of explicitly zeroing data.
27752 * kern/list.c: Include `<grub/mm.h>'.
27753 (grub_named_list_find): Replace `0' with `NULL'.
27754 * normal/autofs.c (struct grub_fs_module_list): Remove ad-hoc type.
27755 (fs_module_list): Change type to `grub_named_list_t'. Update all
27757 * normal/dyncmd.c (read_command_list): Add space between function
27758 call and parenthesis.
27759 * normal/handler.c (read_handler_list): Likewise.
27761 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27763 * normal/auth.c (punishment_delay): Moved from here ...
27764 (grub_auth_strcmp): ... to here (inside function).
27766 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27768 * include/grub/list.h (struct grub_named_list): Remove `const'
27769 qualifier from `name'.
27770 (struct grub_prio_list): Likewise.
27772 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27774 * normal/auth.c: Include `<grub/time.h>'.
27775 (grub_auth_strcmp): Replace `strcmp' with `grub_strcmp'.
27777 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27779 * normal/auth.c (punishment_delay): New variable.
27780 (grub_auth_strcmp): Rewrite using grub_get_time_ms ().
27781 (grub_auth_check_authentication): Punish failed login attempts with
27782 an incremental (2^N) delay.
27784 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27786 * conf/common.rmk (grub_mkisofs_CFLAGS): Prefix include
27787 path with $(srcdir).
27789 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27791 * normal/auth.c (grub_auth_strcmp): Fixed incorrect variable usage.
27793 2009-11-09 Robert Millan <rmh.grub@aybabtu.com>
27795 * util/i386/coreboot/grub-mkrescue.in: New file.
27796 * conf/i386-coreboot.rmk (bin_SCRIPTS, grub_mkrescue_SOURCES): New
27799 * conf/common.rmk (bin_UTILITIES): Add `grub-mkisofs'.
27800 (grub_mkisofs_SOURCES, grub_mkisofs_CFLAGS): New variables.
27801 * configure.ac: Add header and function checks to satisfy grub-mkisofs
27803 * util/mkisofs/defaults.h: New file.
27804 * util/mkisofs/eltorito.c: Likewise.
27805 * util/mkisofs/exclude.h: Likewise.
27806 * util/mkisofs/fnmatch.c: Likewise.
27807 * util/mkisofs/getopt.c: Likewise.
27808 * util/mkisofs/getopt1.c: Likewise.
27809 * util/mkisofs/hash.c: Likewise.
27810 * util/mkisofs/include/fctldefs.h: Likewise.
27811 * util/mkisofs/include/mconfig.h: Likewise.
27812 * util/mkisofs/include/prototyp.h: Likewise.
27813 * util/mkisofs/include/statdefs.h: Likewise.
27814 * util/mkisofs/iso9660.h: Likewise.
27815 * util/mkisofs/joliet.c: Likewise.
27816 * util/mkisofs/match.c: Likewise.
27817 * util/mkisofs/match.h: Likewise.
27818 * util/mkisofs/mkisofs.c: Likewise.
27819 * util/mkisofs/mkisofs.h: Likewise.
27820 * util/mkisofs/multi.c: Likewise.
27821 * util/mkisofs/name.c: Likewise.
27822 * util/mkisofs/rock.c: Likewise.
27823 * util/mkisofs/tree.c: Likewise.
27824 * util/mkisofs/write.c: Likewise.
27826 2009-11-09 Vladimir Serbinenko <phcoder@gmail.com>
27828 * normal/auth.c (grub_auth_strcmp): Fix bug which resulted in function
27831 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27833 * util/i386/pc/grub-mkrescue.in: Fix miss-identification as
27834 `grub-mkimage' (and use $0 when possible).
27836 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27838 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve
27839 error message for excessively large memory map.
27841 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27843 * autogen.sh: Use `sh gendistlist.sh' to avoid reliing on
27846 2009-11-08 Robert Millan <rmh.grub@aybabtu.com>
27848 * kern/i386/multiboot_mmap.c (grub_machine_mmap_init): Improve error
27849 message for coreboot users.
27851 2009-11-07 Robert Millan <rmh.grub@aybabtu.com>
27853 Fix build with GNU gold.
27855 * conf/i386-pc.rmk (boot_img_LDFLAGS, pxeboot_img_LDFLAGS)
27856 (diskboot_img_LDFLAGS, lnxboot_img_LDFLAGS)
27857 (cdboot_img_LDFLAGS): Prepend `0x' qualifier to hexadecimal
27859 * aclocal.m4: Likewise.
27861 2009-11-04 Felix Zielcke <fzielcke@z-51.de>
27863 * configure.ac (AC_PREREQ): Bump to 2.59d.
27864 * INSTALL: Make it more clear when Autoconf and Ruby are
27865 needed and when to run `./autogen.sh'.
27867 2009-11-03 Samuel Thibault <samuel.thibault@ens-lyon.org>
27869 * util/grub.d/30_os-prober.in: Restore default behavior for unsupported
27872 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27874 * util/grub.d/30_os-prober.in: Add GNU/Hurd support
27876 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27878 * util/grub.d/10_hurd.in: Drop /dev/ prefix from root device path before
27879 giving it to GNU Mach.
27881 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27883 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Subtract 1 from
27884 GNU partition number to get internal GRUB partition number.
27886 2009-11-02 Samuel Thibault <samuel.thibault@ens-lyon.org>
27888 * util/grub.d/10_hurd.in: Call prepare_grub_to_access_device
27889 ${GRUB_DEVICE_BOOT} before loading /boot kernel.
27891 2009-11-01 Robert Millan <rmh.grub@aybabtu.com>
27893 Based on patch from BVK Chaitanya <bvk.groups@gmail.com>
27894 * kern/misc.c (grub_strchr, grub_strrchr): Fix to handle c == '\0'
27897 2009-11-01 Felix Zielcke <fzielcke@z-51.de>
27899 * Makefile.in (TARGET_CPPFLAGS): Add `-I$(srcdir)/include'.
27901 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27905 * Makefile.in (TARGET_CPPFLAGS): Replace `-nostdinc' with
27906 `-isystem=$(srcdir)/include'.
27908 2009-10-30 Robert Millan <rmh.grub@aybabtu.com>
27910 * util/i386/pc/grub-install.in: Remove hint that device.map should be
27911 checked (grub-install doesn't currently rely on it).
27913 2009-10-29 Robert Millan <rmh.grub@aybabtu.com>
27917 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): Moved from here ...
27918 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27919 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): ... and here.
27920 * conf/i386-ieee1275.rmk: Likewise.
27921 * conf/i386-pc.rmk: Likewise.
27922 * conf/powerpc-ieee1275.rmk: Likewise.
27923 * conf/sparc64-ieee1275.rmk: Likewise.
27924 * conf/x86_64-efi.rmk: Likewise.
27926 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27928 * Makefile.in (TARGET_CPPFLAGS): Add `-nostdinc'.
27930 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27932 * include/grub/misc.h: Stop checking for APPLE_CC.
27934 2009-10-28 Robert Millan <rmh.grub@aybabtu.com>
27936 * kern/i386/coreboot/init.c (grub_exit): Reimplement in a way that
27937 doesn't cause an infinite call loop.
27939 2009-10-28 Felix Zielcke <fzielcke@z-51.de>
27941 * commands/acpi.c (grub_cmd_acpi): Fix the out of memory error
27944 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27946 * autogen.sh: Support addition of external modules via `GRUB_CONTRIB'
27948 * Makefile.in: Likewise.
27950 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27952 * gendistlist.sh: Simplify .svn check. Skip .bzr as well.
27954 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27956 * Makefile.in (RMKFILES): Rewrite using $(wildcard).
27958 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27960 * disk/scsi.c: Remove `<grub/machine/kernel.h>' (not needed).
27962 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27964 * gensymlist.sh.in (COMPILE_TIME_ASSERT): Copy macro declaration
27966 * include/grub/misc.h (COMPILE_TIME_ASSERT): ... to here.
27968 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27970 * Makefile.in (docs/grub.info): Use make syntax to ignore errors
27971 in $(MAKEINFO) invocation. This makes it clear in output that
27972 errors are being ignored.
27974 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
27976 * conf/i386-coreboot.rmk (script/sh/lexer.c_DEPENDENCIES): Moved
27978 * conf/common.rmk (script/sh/lexer.c_DEPENDENCIES): ... to here.
27979 * conf/i386-efi.rmk (script/sh/lexer.c_DEPENDENCIES): Remove.
27980 * conf/i386-ieee1275.rmk: Likewise.
27981 * conf/i386-pc.rmk: Likewise.
27982 * conf/powerpc-ieee1275.rmk: Likewise.
27983 * conf/sparc64-ieee1275.rmk: Likewise.
27984 * conf/x86_64-efi.rmk: Likewise.
27986 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27988 * util/grub-editenv.c (main): If only a command is given, use
27989 DEFAULT_DIRECTORY "/" GRUB_ENVBLK_DEFCFG as a default file name.
27990 (usage): FILENAME is now optional and has a default.
27992 2009-10-26 Colin Watson <cjwatson@ubuntu.com>
27994 Improve grub-mkconfig performance when there are several menu
27995 entries on a single filesystem.
27997 * util/grub.d/10_linux.in (linux_entry): Cache the output of
27998 prepare_grub_to_access_device.
27999 * util/grub.d/10_kfreebsd.in (kfreebsd_entry): Likewise.
28000 * util/grub.d/30_os-prober.in: Likewise.
28002 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28004 * util/grub.d/10_freebsd.in: Remove.
28005 * util/grub.d/10_kfreebsd.in: New file (based on 10_linux.in).
28006 * configure.ac: Set host_kernel=kfreebsd for FreeBSD and GNU/kFreeBSD.
28008 2009-10-26 Robert Millan <rmh.grub@aybabtu.com>
28010 * docs/grub.cfg: Fix example usage of *BSD loaders.
28012 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28014 * util/i386/pc/grub-setup.c (setup): Add missing parameter to
28015 grub_util_error() call.
28017 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28019 * include/grub/fs.h [GRUB_UTIL] (struct grub_fs): Add
28020 `reserved_first_sector' member.
28021 * fs/ext2.c [GRUB_UTIL] (grub_ext2_fs): Initialize
28022 `reserved_first_sector' to 1.
28023 * fs/fat.c [GRUB_UTIL] (grub_fat_fs): Likewise.
28024 * fs/ntfs.c [GRUB_UTIL] (grub_ntfs_fs): Likewise.
28025 * fs/hfsplus.c [GRUB_UTIL] (grub_hfsplus_fs): Likewise.
28026 * util/i386/pc/grub-setup.c (setup): Add safety check that probes for
28027 filesystems which begin at first sector.
28028 (options): New option --skip-fs-probe.
28029 (main): Handle --skip-fs-probe and pass it to setup().
28031 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28033 * include/grub/misc.h: Fix wrong evaluation of APPLE_CC.
28034 (memset): Fix function prototype.
28036 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28037 2009-10-25 Vasily Averin <vvs@parallels.com>
28039 * fs/ext2.c (grub_ext2_iterate_dir): Avoid infinite loop when
28040 `dirent.direntlen == 0'.
28042 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28044 * fs/cpio.c [MODE_USTAR]: Initialize `tar' module instead of
28046 [! MODE_USTAR]: Initialize `cpio' module instead of `tar'.
28048 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28050 * configure.ac: Check for `__ashldi3', `__ashrdi3', `__lshrdi3',
28051 `__trampoline_setup' and `__ucmpdi2'.
28052 * include/grub/powerpc/libgcc.h: Only export symbols for functions
28053 that libgcc provides.
28055 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28057 * include/grub/powerpc/libgcc.h (memset): Remove function prototype.
28058 * include/grub/sparc64/libgcc.h (memset): Likewise.
28059 * include/grub/misc.h (memset, memcmp): New function prototypes.
28061 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28063 * fs/cpio.c [MODE_USTAR]: Finish `tar' module instead of
28065 [! MODE_USTAR]: Finish `cpio' module instead of `tar'.
28067 2009-10-25 Robert Millan <rmh.grub@aybabtu.com>
28069 Patch from Samuel Thibault <samuel.thibault@ens-lyon.org>
28070 * docs/grub.cfg: Compensate for recent change in multiboot
28071 loader (since 2009-08-14 it won't pass filename to payload).
28072 * util/grub.d/10_hurd.in: Likewise.
28074 2009-10-21 Felix Zielcke <fzielcke@z-51.de>
28076 * config.guess: Update to latest version from config git
28078 * config.sub: Likewise.
28080 2009-10-20 Robert Millan <rmh.grub@aybabtu.com>
28082 Fix build on sparc64.
28084 * configure.ac: Perform checks for libgcc symbols before
28085 adding `-nostdlib' to LDFLAGS.
28087 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28089 Let user specify OpenBSD root device.
28091 * loader/i386/bsd.c (openbsd_root): New variable.
28092 (openbsd_opts): New option 'root'.
28093 (OPENBSD_ROOT_ARG): New macro.
28094 (grub_openbsd_boot): Use 'openbsd_root'.
28095 (grub_cmd_openbsd): Fill 'openbsd_root'.
28097 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28099 * NEWS: Misc adjustments.
28101 2009-10-16 Vladimir Serbinenko <phcoder@gmail.com>
28103 * NEWS: Mentioned XNU, ACPI, gptsync, password and parttool.
28105 2009-10-16 Robert Millan <rmh.grub@aybabtu.com>
28107 * configure.ac: Bump version to 1.97.
28109 2009-10-16 Colin Watson <cjwatson@ubuntu.com>
28111 * configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-sse -mno-sse2
28112 -mno-3dnow on x86 architectures. Some toolchains enable these
28113 features by default, but they rely on registers that aren't enabled
28114 in GRUB. Thanks to Vladimir Serbinenko for the suggestion.
28116 2009-10-15 Robert Millan <rmh.grub@aybabtu.com>
28118 Make entry text a bit more readable.
28120 * util/grub.d/10_linux.in: Add `with' before `Linux'.
28122 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28124 * loader/i386/pc/xnu.c (grub_xnu_set_video): Fix loading splash image.
28126 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28128 * commands/xnu_uuid.c (grub_cmd_xnu_uuid): Remove duplicated bitwise
28131 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28133 * configure.ac: Add missing dollar.
28135 2009-10-15 Vladimir Serbinenko <phcoder@gmail.com>
28137 Revert 2009-06-10 Pavel Roskin <proski@gnu.org>
28139 * configure.ac: Put checks for __bswapsi2 and __bswapdi2.
28140 * include/grub/powerpc/libgcc.h: Don't use weak attribute for all
28142 * include/grub/sparc64/libgcc.h: Likewise. Use
28143 preprocessor conditionals.
28145 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28147 * conf/common.rmk (grub-dumpbios): Remove rule.
28148 (sbin_SCRIPTS, CLEANFILES): Remove `grub-dumpbios'.
28149 * util/grub-dumpbios.in: Remove file.
28151 2009-10-14 Robert Millan <rmh.grub@aybabtu.com>
28153 Refer to kernel of FreeBSD "kFreeBSD" to avoid confusion between
28154 the Operating System (FreeBSD) and its kernel (kernel of FreeBSD).
28156 * loader/i386/bsd.c (grub_freebsd_boot): Read kernel environment
28157 from "kFreeBSD" namespace (rather than "FreeBSD"). Update all
28160 (GRUB_MOD_INIT (bsd)): Rename "freebsd" command to "kfreebsd",
28161 "openbsd" to "kopenbsd", "netbsd" to "knetbsd", "freebsd_loadenv"
28162 to "kfreebsd_loadenv", "freebsd_module" to "kfreebsd_module",
28163 and "freebsd_module_elf" to "kfreebsd_module_elf". Update all
28166 2009-10-12 Robert Millan <rmh.grub@aybabtu.com>
28168 * term/tparm.c: Switch to GPLv3.
28170 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28172 * include/grub/i386/cpuid.h: Add header protection.
28174 2009-10-09 Robert Millan <rmh.grub@aybabtu.com>
28176 Fail gracefuly when attempting to load 64-bit kFreeBSD on IA32 CPU.
28178 * include/grub/i386/cpuid.h: New file.
28179 * commands/i386/cpuid.c: Include `<grub/i386/cpuid.h>'.
28180 (has_longmode): Rename to ...
28181 (grub_cpuid_has_longmode): ... this. Update all users. Remove
28182 `static' attribute.
28183 * loader/i386/bsd.c: Include `<grub/i386/cpuid.h>'.
28184 (grub_bsd_load_elf): Fail if load of 64-bit kernel was requested
28185 on a CPU that doesn't implement AMD64 instruction set.
28187 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28189 * Makefile.in (docs/stamp-vti): Depend on configure.ac as well, so
28190 that version.texi is rebuilt on version number changes.
28192 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28194 * Makefile.in: Don't set info_INFOS unless makeinfo was found.
28197 2009-10-06 Colin Watson <cjwatson@ubuntu.com>
28199 * util/i386/pc/grub-install.in: Source
28200 ${libdir}/grub/grub-mkconfig_lib before option processing, in order
28201 that the --grub-probe option will work.
28202 * util/sparc64/ieee1275/grub-install.in: Likewise.
28204 2009-10-05 Robert Millan <rmh.grub@aybabtu.com>
28206 * configure.ac: Bump version to 1.97~beta4.
28208 2009-10-03 Robert Millan <rmh.grub@aybabtu.com>
28210 Resync grub-mkdevicemap in x86_64-efi.
28212 * conf/x86_64-efi.rmk (sbin_UTILITIES): Enable `grub-mkdevicemap'.
28213 (grub_mkdevicemap_SOURCES): Add missing `util/deviceiter.c' and
28214 `util/devicemap.c'.
28216 2009-10-01 Colin Watson <cjwatson@ubuntu.com>
28218 * util/grub-editenv.c (create_envblk_file): Write new block with a
28219 .new suffix and then rename it into place, to ensure atomic
28222 2009-09-28 Robert Millan <rmh.grub@aybabtu.com>
28224 Do not automatically install headers.
28226 * Makefile.in (include_DATA): Remove. Update all users.
28228 2009-09-26 Robert Millan <rmh.grub@aybabtu.com>
28230 * conf/common.rmk (pkglib_MODULES): Remove `lua.mod'.
28231 (lua_mod_SOURCES, lua_mod_CFLAGS, lua_mod_LDFLAGS): Remove.
28233 * util/osdetect.lua: Remove.
28234 * script/lua/lauxlib.c: Likewise.
28235 * script/lua/ldebug.c: Likewise.
28236 * script/lua/grub_main.c: Likewise.
28237 * script/lua/lauxlib.h: Likewise.
28238 * script/lua/ldebug.h: Likewise.
28239 * script/lua/ltablib.c: Likewise.
28240 * script/lua/liolib.c: Likewise.
28241 * script/lua/lstrlib.c: Likewise.
28242 * script/lua/lualib.h: Likewise.
28243 * script/lua/ldo.c: Likewise.
28244 * script/lua/ldump.c: Likewise.
28245 * script/lua/ldo.h: Likewise.
28246 * script/lua/loslib.c: Likewise.
28247 * script/lua/lundump.c: Likewise.
28248 * script/lua/grub_lib.c: Likewise.
28249 * script/lua/ldblib.c: Likewise.
28250 * script/lua/lundump.h: Likewise.
28251 * script/lua/lmem.c: Likewise.
28252 * script/lua/grub_lib.h: Likewise.
28253 * script/lua/lmathlib.c: Likewise.
28254 * script/lua/lstate.c: Likewise.
28255 * script/lua/ltm.c: Likewise.
28256 * script/lua/lvm.c: Likewise.
28257 * script/lua/lmem.h: Likewise.
28258 * script/lua/lstate.h: Likewise.
28259 * script/lua/ltm.h: Likewise.
28260 * script/lua/ltable.c: Likewise.
28261 * script/lua/lvm.h: Likewise.
28262 * script/lua/llex.c: Likewise.
28263 * script/lua/lgc.c: Likewise.
28264 * script/lua/grub_lua.h: Likewise.
28265 * script/lua/loadlib.c: Likewise.
28266 * script/lua/lfunc.c: Likewise.
28267 * script/lua/lopcodes.c: Likewise.
28268 * script/lua/lparser.c: Likewise.
28269 * script/lua/ltable.h: Likewise.
28270 * script/lua/llex.h: Likewise.
28271 * script/lua/lgc.h: Likewise.
28272 * script/lua/lfunc.h: Likewise.
28273 * script/lua/lbaselib.c: Likewise.
28274 * script/lua/lopcodes.h: Likewise.
28275 * script/lua/lparser.h: Likewise.
28276 * script/lua/lzio.c: Likewise.
28277 * script/lua/linit.c: Likewise.
28278 * script/lua/lobject.c: Likewise.
28279 * script/lua/llimits.h: Likewise.
28280 * script/lua/lstring.c: Likewise.
28281 * script/lua/lzio.h: Likewise.
28282 * script/lua/lapi.c: Likewise.
28283 * script/lua/lcode.c: Likewise.
28284 * script/lua/lua.h: Likewise.
28285 * script/lua/lobject.h: Likewise.
28286 * script/lua/lstring.h: Likewise.
28287 * script/lua/lapi.h: Likewise.
28288 * script/lua/lcode.h: Likewise.
28289 * script/lua/luaconf.h: Likewise.
28291 2009-09-26 Colin Watson <cjwatson@ubuntu.com>
28293 * docs/grub.texi (Command-line and menu entry commands): Document
28294 date and echo commands.
28296 2009-09-24 Pavel Roskin <proski@gnu.org>
28298 * include/grub/kernel.h (struct grub_module_header): Remove
28299 `grub_module_header_types'. Make `type' unsigned. Make `size'
28300 32-bit on all platforms.
28301 * util/elf/grub-mkimage.c (load_modules): Treat `type' as an
28302 8-bit field. Use grub_host_to_target32() for `size'.
28303 * util/i386/efi/grub-mkimage.c (make_mods_section): Likewise.
28304 * util/i386/pc/grub-mkimage.c (generate_image): Likewise.
28305 * util/sparc64/ieee1275/grub-mkimage.c (generate_image): Likewise.
28307 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28309 Fix "lost keypress" bug in at_keyboard.
28311 * term/i386/pc/at_keyboard.c (grub_at_keyboard_checkkey): New function.
28312 Checks for readyness of input buffer (without flushing it).
28313 (grub_at_keyboard_term): Use grub_at_keyboard_checkkey() rather
28314 than grub_at_keyboard_getkey_noblock() for `checkkey' struct member.
28316 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28318 * util/i386/pc/grub-mkimage.c (generate_image): Enclose BIOS-specific
28319 size check within GRUB_MACHINE_PCBIOS section.
28321 2009-09-24 Robert Millan <rmh.grub@aybabtu.com>
28323 * include/grub/i386/at_keyboard.h (KEYBOARD_ISREADY): Negate
28325 * term/i386/pc/at_keyboard.c (grub_keyboard_getkey): Negate
28326 KEYBOARD_ISREADY check.
28327 (grub_at_keyboard_checkkey): Rename to ...
28328 (grub_at_keyboard_getkey_noblock): ... this. Update all users.
28329 Remove gratuitous cast.
28331 2009-09-23 Colin Watson <cjwatson@ubuntu.com>
28333 * configure.ac: Call AC_PROG_MKDIR_P.
28334 * Makefile.in (docs/stamp-vti): Create docs directory. Create
28335 version.texi in $(builddir) rather than $(srcdir).
28336 (docs/grub.info): Create docs directory. Prepend $(builddir)/docs
28337 to makeinfo's @include search path.
28339 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28341 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Cope with `*.dpkg-*'
28343 2009-09-23 Felix Zielcke <fzielcke@z-51.de>
28345 * util/grub-mkconfig_lib.in (grub_file_is_not_garbage): Add support
28348 2009-09-21 Colin Watson <cjwatson@ubuntu.com>
28350 Build info documentation. Some code borrowed from Automake.
28352 * configure.ac: Check for makeinfo.
28353 * Makefile.in (MAKEINFO, INFOS, info_INFOS): New variables.
28354 (MAINTAINER_CLEANFILES): Add $(INFOS), docs/stamp-vti, and
28356 (MOSTLYCLEANFILES): Add vti.tmp.
28357 (docs/version.texi, docs/stamp-vti): Update automatically.
28358 (docs/grub.info): Build info documentation. Use --force and ignore
28360 (all-local): Add $(INFOS).
28361 (install-local): Install info files.
28362 (uninstall): Uninstall info files.
28363 * docs/version.texi: Remove from revision control. This file is
28364 automatically generated on build now.
28365 * gendistlist.sh: Add `*.info'.
28367 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28369 * kern/term.c: Fix indentation.
28371 2009-09-21 Felix Zielcke <fzielcke@z-51.de>
28373 * util/hostdisk.c: Fix a comment.
28375 2009-09-20 Robert Millan <rmh.grub@aybabtu.com>
28377 Fix regression introduced in r2539.
28379 * term/usb_keyboard.c (USB_HID_DEVICE_TO_HOST): Change from 0x61
28382 2009-09-19 Colin Watson <cjwatson@ubuntu.com>
28384 * util/grub.d/30_os-prober.in: Don't throw away stderr from
28385 os-prober. Under normal operation, it does not print anything to
28386 stderr; if it does, we need to debug it, and throwing away stderr
28387 makes that excessively difficult.
28389 2009-09-16 Vladimir Serbinenko <phcoder@gmail.com>
28391 * mmap/mmap.c (grub_cmd_badram): Fix off-by-one error.
28393 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28395 * aclocal.m4 (AC_LANG_PROGRAM): New macro. Overrides stock
28396 AC_LANG_PROGRAM from autoconf.
28397 (grub_ASM_USCORE, grub_PROG_OBJCOPY_ABSOLUTE): Add missing
28398 prototypes (fixes warning).
28400 * configure.ac: Add `-Werror' to TARGET_CFLAGS unless
28401 `--disable-werror' was used.
28403 2009-09-16 Robert Millan <rmh.grub@aybabtu.com>
28405 * partmap/msdos.c (pc_partition_map_iterate): Fix possible use of
28406 uninitialized `lastaddr'.
28408 2009-09-15 Vladimir Serbinenko <phcoder@gmail.com>
28410 * partmap/msdos.c (pc_partition_map_iterate): Detect and break loops.
28412 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28414 * commands/test.c (get_fileinfo): Return immediately if
28415 grub_fs_probe fails.
28417 2009-09-14 José Martínez <xosemp@gmail.com>
28419 * commands/acpi.c (grub_cmd_acpi): Fix loading ACPI tables from file.
28421 2009-09-14 Colin Watson <cjwatson@ubuntu.com>
28423 * util/grub.d/30_os-prober.in: Cope with Windows 7 in os-prober
28426 2009-09-13 Robert Millan <rmh.grub@aybabtu.com>
28428 * configure.ac: Remove --enable-grub-pe2elf. Only build
28429 grub-pe2elf when needed by the build system itself.
28430 * conf/common.rmk: Remove $(enable_grub_pe2elf) check.
28432 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28434 * configure.ac: Bump version to 1.97~beta3.
28435 * docs/version.texi: Likewise.
28437 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28439 * video/i386/pc/vbe.c (grub_vbe_get_video_mode_info): Move packed
28440 mode special handling (grub_vbe_bios_set_dac_palette_width() call)
28442 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS]
28443 (grub_linux_setup_video): ... to here (with some adjustments).
28445 2009-09-12 Robert Millan <rmh.grub@aybabtu.com>
28447 Fix memory corruption issue (spotted by Colin Watson).
28449 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette): Fix bug
28450 causing returned size to be stored in an incorrect memory location.
28451 Fix use of uninitialized value when storing the returned size.
28453 2009-09-12 Yves Blusseau <blusseau@zetam.org>
28455 Change clean rules to properly remove files
28457 * genmk.rb: add new clean rules
28458 * Makefile.in (clean): add the new targets
28459 (mostlyclean): likewise
28461 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28463 * include/grub/ntfs.h (struct grub_fshelp_node): Change `size'
28465 * fs/ntfs.c (init_file): Understand 64-bit sizes for
28466 non-resident files.
28468 2009-09-11 Colin Watson <cjwatson@ubuntu.com>
28470 * configure.ac: Don't look for help2man when cross-compiling. Fixes
28471 part of bug #27349.
28473 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28475 * util/grub-mkconfig.in: Make the created config mode 400 and
28476 print a warning if it fails.
28478 2009-09-10 Robert Millan <rmh.grub@aybabtu.com>
28480 * util/grub.d/40_custom.in: Ask user to type custom entries below
28481 comment, rather than below 'exec tail' line.
28483 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28485 * util/grub.d/40_custom.in: Make sure that the explanatory text is
28486 visible in grub.cfg.
28488 2009-09-10 Colin Watson <cjwatson@ubuntu.com>
28490 * util/grub.d/40_custom.in: Make it a little clearer how to use this
28493 2009-09-10 Felix Zielcke <fzielcke@z-51.de>
28495 * docs/grub.cfg: Add an example menu entry for memtest86+.
28497 2009-09-09 Felix Zielcke <fzielcke@z-51.de>
28499 * config.guess: Update to latest version from config git.
28500 * config.sub: Likewise.
28502 2009-09-08 Colin Watson <cjwatson@ubuntu.com>
28504 * script/sh/execute.c (grub_script_execute_cmdline): Set "?" in
28505 unknown-command case. Fixes bug #27320.
28507 2009-09-08 Felix Zielcke <fzielcke@z-51.de>
28509 * kern/rescue_parser.c (grub_rescue_parse_line): Only suggest to try
28510 `help' if the command exists.
28512 2009-09-06 Robert Millan <rmh.grub@aybabtu.com>
28514 * INSTALL: Require GCC 4.1.3 or later.
28516 2009-09-06 Yves Blusseau <blusseau@zetam.org>
28518 * Makefile.in (RMKFILES): add i386-qemu.rmk
28519 (MAINTAINER_CLEANFILES): add $(srcdir)/DISTLIST $(srcdir)/config.h.in
28520 $(srcdir)/stamp-h.in
28522 2009-09-05 Robert Millan <rmh.grub@aybabtu.com>
28524 * util/grub-probe.c (probe): Comment out buggy codepath, which
28525 was unexpectedly enabled by Colin Watson's 2009-09-02 fix. This
28526 should be re-enabled after 1.97.
28528 2009-09-05 Felix Zielcke <fzielcke@z-51.de>
28530 * gendistlist.sh: Add `grub-dumpdevtree' and `*.lua' to the list
28533 2009-09-04 Vladimir Serbinenko <phcoder@gmail.com>
28535 * loader/i386/xnu.c (grub_cpu_xnu_fill_devicetree): Remove
28536 unnecessary calls to grub_error.
28538 2009-09-04 Colin Watson <cjwatson@ubuntu.com>
28540 * NEWS: Mention `keystatus' and Unicode fonts.
28542 2009-09-04 Robert Millan <rmh.grub@aybabtu.com>
28544 * configure.ac: Bump version to 1.97~beta2.
28545 * docs/version.texi: Likewise.
28547 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28549 * configure.ac: By default, GCC 4.4 generates .eh_frame sections
28550 containing unwind information in some cases where it previously did
28551 not. Use -fno-dwarf2-cfi-asm if available to restore the old
28552 behaviour. See http://patchwork.kernel.org/patch/8555/ for related
28555 2009-09-02 Yves BLUSSEAU <blusseau@zetam.org>
28557 Embedding loadenv module into grub-emu
28559 * conf/i386-pc.rmk (grub_emu_SOURCES): add lib/envblk.c and
28561 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise
28562 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise
28563 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise
28564 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise
28565 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise
28566 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise
28568 2009-09-03 Magnus Granberg <zorry@ume.nu>
28570 * aclocal.m4: Add grub_CHECK_PIE. It check if the compiler
28571 include -fPIE in the default specs.
28572 * configure.ac: Check if pie_possible is yes and add -fno-PIE
28575 2009-09-03 Felix Zielcke <fzielcke@z-51.de>
28577 * INSTALL: Note that GNU Bison 2.3 or later is required.
28579 2009-09-03 Colin Watson <cjwatson@ubuntu.com>
28581 * kern/i386/pc/startup.S: Fix typo.
28583 2009-09-02 Vladimir Serbinenko <phcoder@gmail.com>
28585 * efiemu/loadcore.c (SUFFIX (grub_efiemu_loadcore_load)): Fix style
28588 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28590 * docs/grub.texi (Naming convention): Describe one-based partition
28592 (Device syntax): Likewise.
28593 (File name syntax): Likewise.
28594 (Block list syntax): Likewise.
28595 (Making a GRUB bootable CD-ROM): Talk about grub.cfg rather than
28597 (File name syntax): Likewise.
28598 (Command-line and menu entry commands): Document acpi, blocklist,
28599 crc, export, insmod, keystatus, ls, set, and unset commands.
28601 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28603 * commands/keystatus.c (GRUB_MOD_INIT (keystatus)): Adjust summary
28604 to avoid implying that only one of --shift, --ctrl, or --alt may be
28607 2009-09-02 Colin Watson <cjwatson@ubuntu.com>
28609 * util/grub-probe.c (probe): Test st.st_mode using S_ISREG macro
28610 rather than comparing against S_IFREG, which will almost never work.
28612 2009-09-01 Vladimir Serbinenko <phcoder@gmail.com>
28614 * commands/loadenv.c (check_blocklists): Fix off-by-one error.
28615 (write_blocklists): Likewise.
28617 2009-09-01 Colin Watson <cjwatson@ubuntu.com>
28619 * script/lua/grub_lua.h (fputs): Supply a format string as the first
28620 argument to grub_printf.
28622 2009-09-01 Felix Zielcke <fzielcke@z-51.de>
28624 * genmk.rb: Add quotes around $(TARGET_OBJ2ELF) to cope with
28627 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28629 * kern/file.c (grub_file_read): Spelling fix
28631 2009-08-30 Vladimir Serbinenko <phcoder@gmail.com>
28633 * loader/i386/bsdXX.c (SUFFIX (grub_freebsd_load_elfmodule)): Fix
28634 loading of headers in some cases.
28636 2009-08-30 Robert Millan <rmh.grub@aybabtu.com>
28638 * configure.ac: Bump version to 1.97~beta1.
28639 * docs/version.texi: Likewise.
28641 2009-08-29 Vladimir Serbinenko <phcoder@gmail.com>
28643 * include/grub/i386/xnu.h: Add license header.
28644 include grub/err.h explicitly.
28646 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28648 * util/grub.d/10_freebsd.in: Detect `ufs1' and `ufs2' and map them
28649 to `ufs' in the vfs.root.mountfrom kernel parameter.
28651 2009-08-29 Robert Millan <rmh.grub@aybabtu.com>
28653 * term/i386/pc/serial.c: Include `<grub/machine/memory.h>'.
28655 [GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Macroify initialization
28656 value (0x0400 -> GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR).
28658 [! GRUB_MACHINE_PCBIOS] (GRUB_SERIAL_PORT_NUM): Calculate using
28659 `ARRAY_SIZE' macro.
28661 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28663 * kern/file.c (grub_file_read): Check offset.
28664 * fs/hfs.c (grub_hfs_read_file): Remove unnecessary offset check.
28665 * fs/jfs.c (grub_jfs_read_file): Likewise.
28666 * fs/ntfs.c (grub_ntfs_read): Likewise.
28667 * fs/reiserfs.c (grub_reiserfs_read): Likewise.
28668 * fs/minix.c (grub_minix_read_file): Correct offset check.
28669 * fs/ufs.c (grub_ufs_read_file): Likewise.
28671 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28673 * term/i386/pc/console.c (bios_data_area): Cast
28674 GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR explicitly.
28676 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28678 1-bit optimised blitters.
28680 * include/grub/fbblit.h (grub_video_fbblit_replace_32bit_1bit): New
28682 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28683 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28684 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28685 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28686 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28687 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28688 * video/fb/fbblit.c (grub_video_fbblit_replace_32bit_1bit): New
28690 (grub_video_fbblit_replace_24bit_1bit): Likewise.
28691 (grub_video_fbblit_replace_16bit_1bit): Likewise.
28692 (grub_video_fbblit_replace_8bit_1bit): Likewise.
28693 (grub_video_fbblit_blend_XXXA8888_1bit): Likewise.
28694 (grub_video_fbblit_blend_XXX888_1bit): Likewise.
28695 (grub_video_fbblit_blend_XXX565_1bit): Likewise.
28696 * video/fb/video_fb.c (common_blitter): Use 1-bit optimised blitters
28698 * video/video.c (grub_video_get_blit_format): Return
28699 GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED if bpp = 1.
28701 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28703 * normal/cmdline.c (grub_cmdline_get): Supply a format string as
28704 the first argument to grub_printf.
28706 2009-08-28 Colin Watson <cjwatson@ubuntu.com>
28707 2009-08-28 Robert Millan <rmh.grub@aybabtu.com>
28709 Add `getkeystatus' terminal method. Add a new `keystatus' command
28712 * include/grub/term.h (GRUB_TERM_STATUS_SHIFT,
28713 GRUB_TERM_STATUS_CTRL, GRUB_TERM_STATUS_ALT): Definitions for
28714 modifier key bitmasks.
28715 (struct grub_term_input): Add `getkeystatus' member.
28716 (grub_getkeystatus): Add prototype.
28717 * kern/term.c (grub_getkeystatus): New function.
28719 * include/grub/i386/pc/memory.h
28720 (GRUB_MEMORY_MACHINE_BIOS_DATA_AREA_ADDR): New macro.
28721 (struct grub_machine_bios_data_area): Define necessary parts of BIOS
28723 * term/i386/pc/console.c (grub_console_getkeystatus): New function.
28724 (grub_console_term_input): Set `getkeystatus' member.
28725 * term/usb_keyboard.c (grub_usb_hid): Macroify HID protocol
28727 (grub_usb_keyboard_getreport): Likewise.
28728 (grub_usb_keyboard_checkkey): Likewise.
28729 (grub_usb_keyboard_getkeystatus): New function.
28730 (grub_usb_keyboard_term): Set `getkeystatus' member.
28732 * commands/keystatus.c: New file.
28733 * conf/common.rmk (pkglib_MODULES): Add keystatus.mod.
28734 (keystatus_mod_SOURCES): New variable.
28735 (keystatus_mod_CFLAGS): Likewise.
28736 (keystatus_mod_LDFLAGS): Likewise.
28737 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add
28738 commands/keystatus.c.
28739 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28740 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28741 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28742 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28743 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28744 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28746 2009-08-28 Vladimir Serbinenko <phcoder@gmail.com>
28748 Split befs.mod and afs.mod into *_be.mod and *.mod
28750 * conf/common.rmk (grub_probe_SOURCES): Add afs_be.c and befs_be.c.
28751 (grub_fstest_SOURCES): Likewise.
28752 (pkglib_MODULES): Add afs_be.mod and befs_be.mod.
28753 (afs_be_mod_SOURCES): New variable.
28754 (afs_be_mod_CFLAGS): Likewise.
28755 (afs_be_mod_LDFLAGS): Likewise.
28756 (befs_be_mod_SOURCES): Likewise.
28757 (befs_be_mod_CFLAGS): Likewise.
28758 (befs_be_mod_LDFLAGS): Likewise.
28759 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add afs_be.c and befs_be.c.
28760 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28761 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28762 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
28763 (grub_emu_SOURCES): Likewise.
28764 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28765 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28766 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28767 * fs/afs_be.c: New file.
28768 * fs/befs_be.c: New file.
28769 * fs/afs.c (GRUB_AFS_FSNAME_SUFFIX): New definition.
28770 (GRUB_AFS_FSNAME): Use GRUB_AFS_FSNAME_SUFFIX.
28771 (U16): Replaced with ...
28772 (grub_afs_to_cpu16): ...this. All users updated.
28773 (U32): Replaced with ...
28774 (grub_afs_to_cpu32): ...this. All users updated.
28775 (U64): Replaced with ...
28776 (grub_afs_to_cpu64): ...this. All users updated.
28777 (GRUB_AFS_BO_LITTLE_ENDIAN): Remove.
28778 (GRUB_AFS_BO_BIG_ENDIAN): Likewise.
28779 (grub_afs_validate_sblock): Check only one endianness.
28780 (GRUB_MOD_INIT (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28781 (GRUB_MOD_INIT (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28782 (GRUB_MOD_INIT (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28783 (GRUB_MOD_INIT (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28784 (GRUB_MOD_FINI (befs)) [MODE_BIGENDIAN && MODE_BFS]: Rename to ..
28785 (GRUB_MOD_FINI (befs_be)) [MODE_BIGENDIAN && MODE_BFS]: ... this.
28786 (GRUB_MOD_FINI (afs)) [MODE_BIGENDIAN && !MODE_BFS]: Rename to ..
28787 (GRUB_MOD_FINI (afs_be)) [MODE_BIGENDIAN && !MODE_BFS]: ... this.
28789 2009-08-26 Bean <bean123ch@gmail.com>
28791 * fs/xfs.c (GRUB_XFS_INO_INOINAG): Replace 1L with 1LL to support
28793 (GRUB_XFS_FSB_TO_BLOCK): Likewise.
28794 (grub_xfs_inode_block): Change return type to grub_uint64_t.
28795 (grub_xfs_read_inode): Change type of block to grub_uint64_t.
28797 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28799 NetBSD memory map support.
28801 * include/grub/i386/bsd.h (NETBSD_BTINFO_MEMMAP): New definition.
28802 (grub_netbsd_btinfo_mmap_header): New structure.
28803 (grub_netbsd_btinfo_mmap_entry): Likewise.
28804 * loader/i386/bsd.c (grub_netbsd_boot): Pass memory map.
28806 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28808 Enable bsd.mod on coreboot.
28810 * conf/i386-coreboot.rmk (pkglib_MODULES): Add bsd.mod.
28811 (bsd_mod_SOURCES): New variable.
28812 (bsd_mod_CFLAGS): Likewise.
28813 (bsd_mod_LDFLAGS): Likewise.
28814 (bsd_mod_ASFLAGS): Likewise.
28815 * loader/i386/bsd.c [!GRUB_MACHINE_PCBIOS]: Fix includes.
28816 (grub_bsd_get_device) [!GRUB_MACHINE_PCBIOS]: Set *biosdev to 0xff.
28818 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28820 Cleanup NetBSD root support.
28822 * loader/i386/bsd.c (grub_netbsd_boot): Remove call to
28823 grub_bsd_get_device.
28826 2009-08-25 Felix Zielcke <fzielcke@z-51.de>
28828 * util/grub.d/00_header.in: Move check for the video backend of
28829 gfxterm from here ...
28830 * util/grub-mkconfig.in: ... to here. Enable gfxterm if there's
28831 a suitable video backend.
28833 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28835 Fix breakage in grub-setup.
28837 * util/i386/pc/grub-setup.c (setup): Use "part_msdos" instead of
28838 "msdos_partition_map".
28840 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28842 Fix breakage in normal/auth.c.
28844 * normal/auth.c (grub_iswordseparator): New function.
28846 2009-08-25 Vladimir Serbinenko <phcoder@gmail.com>
28848 Authentication support.
28850 * commands/password.c: New file.
28851 * conf/common.rmk (pkglib_MODULES): Add password.mod.
28852 (password_mod_SOURCES): New variable.
28853 (password_mod_CFLAGS): Likewise.
28854 (password_mod_LDFLAGS): Likewise.
28855 (normal_mod_SOURCES): Add normal/auth.c.
28856 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add commands/password.c and
28858 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
28859 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28860 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
28861 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28862 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
28863 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
28864 * include/grub/auth.h: New file.
28865 * include/grub/err.h (grub_err_t): New enum value
28866 GRUB_ERR_ACCESS_DENIED.
28867 * include/grub/menu.h (grub_menu_entry): New fields 'restricted' and
28869 * include/grub/normal.h (grub_cmdline_get): New argument 'history'.
28870 * normal/cmdline.c (grub_cmdline_get): New argument 'history'. All
28872 * normal/auth.c: New file.
28873 * normal/main.c (grub_normal_add_menu_entry): Handle --users option.
28874 (grub_cmdline_run): Don't allow to go to command line without
28876 * normal/menu.c (grub_menu_execute_entry): Handle restricted entries.
28877 * normal/menu_entry.c (grub_menu_entry_run): Don't allow editing
28878 menuentry without superuser rights.
28879 * normal/menu_viewer.c (grub_menu_viewer_show_menu): Don't exit if
28880 user isn't a superuser.
28882 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28884 Save space by inlining misc.c functions.
28886 * kern/misc.c (grub_iswordseparator): Made static.
28887 * kern/misc.c (grub_strcat): Moved from here ...
28888 * include/grub/misc.h (grub_strcat): ... here. Inlined.
28889 * kern/misc.c (grub_strncat): Moved from here ...
28890 * include/grub/misc.h (grub_strncat): ... here. Inlined.
28891 * kern/misc.c (grub_strcasecmp): Moved from here ...
28892 * include/grub/misc.h (grub_strcasecmp): ... here. Inlined.
28893 * kern/misc.c (grub_strncasecmp): Moved from here ...
28894 * include/grub/misc.h (grub_strncasecmp): ... here. Inlined.
28895 * kern/misc.c (grub_isalpha): Moved from here ...
28896 * include/grub/misc.h (grub_isalpha): ... here. Inlined.
28897 * kern/misc.c (grub_isdigit): Moved from here ...
28898 * include/grub/misc.h (grub_isdigit): ... here. Inlined.
28899 * kern/misc.c (grub_isgraph): Moved from here ...
28900 * include/grub/misc.h (grub_isgraph): ... here. Inlined.
28901 * kern/misc.c (grub_tolower): Moved from here ...
28902 * include/grub/misc.h (grub_tolower): ... here. Inlined.
28904 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28906 * script/sh/function.c (grub_script_function_find): Cut error message
28907 not to flood terminal.
28908 * script/sh/lexer.c (grub_script_yylex): Remove command line length
28910 * script/sh/script.c (grub_script_arg_add): Duplicate string.
28912 2009-08-24 Colin Watson <cjwatson@ubuntu.com>
28914 * term/usb_keyboard.c (grub_usb_keyboard_getreport): Make
28915 `report' grub_uint8_t *.
28916 (grub_usb_keyboard_checkkey): Make `data' elements grub_uint8_t.
28917 Use a 50-millisecond timeout rather than just repeating
28918 grub_usb_keyboard_getreport 50 times.
28919 (grub_usb_keyboard_getkey): Make `data' elements grub_uint8_t.
28921 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28923 Rename *_partition_map to part_*
28925 * partmap/acorn.c (grub_acorn_partition_map): Set name to 'part_acorn'.
28926 * partmap/amiga.c (grub_amiga_partition_map): Set name to 'part_amiga'.
28927 * partmap/apple.c (grub_apple_partition_map): Set name to 'part_apple'.
28928 * partmap/gpt.c (grub_gpt_partition_map): Set name to 'part_gpt'.
28930 * partmap/msdos.c (grub_msdos_partition_map): Set name to 'part_msdos'.
28932 * partmap/sun.c (grub_sun_partition_map): Set name to 'part_sun'.
28933 * util/grub-probe.c (probe_partmap): Don't transform partition name
28934 to get module name.
28936 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28938 Fix OpenBSD and NetBSD support.
28940 * include/grub/i386/bsd.h (GRUB_BSD_TEMP_BUFFER): Change to resolve
28941 memory address conflict.
28942 (OPENBSD_MMAP_ACPI): New definition.
28943 (OPENBSD_MMAP_NVS): Likewise.
28944 * loader/i386/bsd.c (grub_openbsd_boot): Support OPENBSD_MMAP_ACPI
28945 and OPENBSD_MMAP_NVS.
28946 Add memory map terminator
28947 Explicit cast when calling grub_unix_real_boot.
28948 (grub_netbsd_boot): Explicit cast when calling grub_unix_real_boot.
28950 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28952 Let user specify NetBSD root device.
28954 * loader/i386/bsd.c (netbsd_root): New variable.
28955 (netbsd_opts): New option 'root'.
28956 (NETBSD_ROOT_ARG): New macro.
28957 (grub_netbsd_boot): Use 'netbsd_root'.
28958 (grub_bsd_unload): Free 'netbsd_root'.
28959 (grub_cmd_netbsd): Fill 'netbsd_root'.
28961 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28963 Support for 64-bit NetBSD.
28965 * loader/i386/bsd.c (grub_bsd_load_elf): Apply correct mask to entry
28966 point when booting non-FreeBSD.
28968 2009-08-24 Vladimir Serbinenko <phcoder@gmail.com>
28970 Support --no-smp and --no-acpi for NetBSD.
28972 * include/grub/i386/bsd.h (NETBSD_AB_NOSMP): New definition.
28973 (NETBSD_AB_NOACPI): Likewise.
28974 * loader/i386/bsd.c (netbsd_opts): New entries no-smp and no-acpi.
28975 (netbsd_flags): Add NETBSD_AB_NOSMP, NETBSD_AB_NOACPI.
28977 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28979 * fs/hfsplus.c (grub_hfsplus_mount): Don't ignore grub_hfsplus_read_file
28981 (grub_hfsplus_btree_iterate_node): Don't ignore grub_hfsplus_read_file
28982 errors. Call grub_error when needed.
28984 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
28986 * commands/search.c (search_fs): Try searching without autoload first.
28987 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Load
28988 filesystem module explicitly for faster booting.
28990 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28992 * util/grub-mkconfig.in: Export GRUB_DISABLE_OS_PROBER.
28994 2009-08-23 Colin Watson <cjwatson@ubuntu.com>
28996 * util/grub.d/30_os-prober.in: Disable os-prober if
28997 `GRUB_DISABLE_OS_PROBER' was set to true.
28999 2009-08-23 Robert Millan <rmh.grub@aybabtu.com>
29001 * partmap/pc.c: Rename to ...
29002 * partmap/msdos.c: ... this. Update all users.
29003 (grub_pc_partition_map): Rename to ...
29004 (grub_msdos_partition_map): ... this. Update all users.
29006 * parttool/pcpart.c: Rename to ...
29007 * parttool/msdospart.c: ... this. Update all users.
29009 * include/grub/pc_partition.h: Rename to ...
29010 * include/grub/msdos_partition.h: ... this. Update all users.
29011 (grub_pc_partition_bsd_entry): Rename to ...
29012 (grub_msdos_partition_bsd_entry): ... this. Update all users.
29013 (grub_pc_partition_disk_label): Rename to ...
29014 (grub_msdos_partition_disk_label): ... this. Update all users.
29015 (grub_pc_partition_entry): Rename to ...
29016 (grub_msdos_partition_entry): ... this. Update all users.
29017 (grub_pc_partition_mbr): Rename to ...
29018 (grub_msdos_partition_mbr): ... this. Update all users.
29019 (grub_pc_partition): Rename to ...
29020 (grub_msdos_partition): ... this. Update all users.
29021 (grub_pc_partition_is_empty): Rename to ...
29022 (grub_msdos_partition_is_empty): ... this. Update all users.
29023 (grub_pc_partition_is_extended): Rename to ...
29024 (grub_msdos_partition_is_extended): ... this. Update all users.
29025 (grub_pc_partition_is_bsd): Rename to ...
29026 (grub_msdos_partition_is_bsd): ... this. Update all users.
29028 * conf/common.rmk (amiga_mod_SOURCES, amiga_mod_CFLAGS)
29029 (amiga_mod_LDFLAGS, apple_mod_SOURCES, apple_mod_CFLAGS)
29030 (apple_mod_LDFLAGS, msdos_mod_SOURCES, msdos_mod_CFLAGS)
29031 (msdos_mod_LDFLAGS, sun_mod_SOURCES, sun_mod_CFLAGS)
29032 (sun_mod_LDFLAGS, acorn_mod_SOURCES, acorn_mod_CFLAGS)
29033 (acorn_mod_LDFLAGS, gpt_mod_SOURCES, gpt_mod_CFLAGS)
29034 (gpt_mod_LDFLAGS): Rename to ...
29035 (part_amiga_mod_SOURCES, part_amiga_mod_CFLAGS, part_amiga_mod_LDFLAGS)
29036 (part_apple_mod_SOURCES, part_apple_mod_CFLAGS, part_apple_mod_LDFLAGS)
29037 (part_msdos_mod_SOURCES, part_msdos_mod_CFLAGS, part_msdos_mod_LDFLAGS)
29038 (part_sun_mod_SOURCES, part_sun_mod_CFLAGS, part_sun_mod_LDFLAGS)
29039 (part_acorn_mod_SOURCES, part_acorn_mod_CFLAGS, part_acorn_mod_LDFLAGS)
29040 (part_gpt_mod_SOURCES, part_gpt_mod_CFLAGS)
29041 (part_gpt_mod_LDFLAGS): ... this.
29042 (pkglib_MODULES): Prefix partition modules with `part_'. Rename
29043 `pcpart.mod' to `msdospart.mod'.
29044 (pcpart_mod_SOURCES, pcpart_mod_CFLAGS, pcpart_mod_LDFLAGS): Rename
29046 (msdospart_mod_SOURCES, msdospart_mod_CFLAGS)
29047 (msdospart_mod_LDFLAGS): ... this.
29049 2009-08-23 Vladimir Serbinenko <phcoder@gmail.com>
29051 * loader/i386/bsd.c (freebsd_opts): Rewritten to use extcmd.
29052 (openbsd_opts): Likewise.
29053 (netbsd_opts): Likewise.
29054 (freebsd_flags): Added 0 terminator.
29055 (openbsd_flags): Likewise.
29056 (netbsd_flags): Likewise.
29057 (grub_bsd_parse_flags): Rewritten to use extcmd. All users updated.
29058 (grub_cmd_freebsd): Transformed into extended command.
29059 (grub_cmd_openbsd): Likewise.
29060 (grub_cmd_netbsd): Likewise.
29061 (cmd_freebsd): Changed type to grub_extcmd_t.
29062 (cmd_openbsd): Likewise.
29063 (cmd_netbsd): Likewise.
29064 (GRUB_MOD_INIT (bsd)): Register grub_cmd_freebsd, grub_cmd_netbsd and
29065 grub_cmd_openbsd as extended commands.
29066 (GRUB_MOD_FINI (bsd)): Use grub_unregister_extcmd for cmd_freebsd,
29067 cmd_netbsd and cmd_openbsd
29069 2009-08-22 Vladimir Serbinenko <phcoder@gmail.com>
29071 * commands/xnu_uuid.c (transform): Use grub_memcpy instead of memcpy.
29073 2009-08-21 Pavel Roskin <proski@gnu.org>
29075 * Makefile.in (install-local): When checking if a file is in the
29076 build directory, use "test -e" to detect symlinks.
29078 * Makefile.in (install-local): Remove all files in
29079 $(DESTDIR)$(pkglibdir) before installing new files there.
29081 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29083 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Use
29086 2009-08-18 Felix Zielcke <fzielcke@z-51.de>
29088 * util/grub-mkconfig.in: Don't use gfxterm by default if not
29089 explicitly specified by the user.
29091 2009-08-18 Pavel Roskin <proski@gnu.org>
29093 * include/grub/fbfill.h (struct grub_video_fbrender_target): Use
29094 grub_uint8_t pointer for data.
29095 * include/grub/fbutil.h (struct grub_video_fbblit_info):
29097 * video/fb/fbutil.c: Remove unnecessary casts.
29099 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29103 * video/i386/pc/vbe.c (vbe_mode_in_use): Removed (duplicate).
29104 (grub_vbe_set_video_mode): Save active mode info
29105 only after setting the mode.
29106 (grub_video_vbe_setup): Call 'grub_vbe_set_video_mode' with NULL as
29109 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29111 Rename variables for clarity.
29113 * video/i386/pc/vbe.c (active_mode_info): Renamed to ...
29114 (active_vbe_mode_info): ... this. All users updated.
29115 (framebuffer): Rename 'active_mode' to 'active_vbe_mode'.
29117 (initial_mode): Rename to ...
29118 (initial_vbe_mode): ... this. All users updated.
29119 (mode_in_use): Rename to ..
29120 (vbe_mode_in_use): ... this. All users updated.
29121 (mode_list): Rename to ..
29122 (vbe_mode_list): ... this. All users updated.
29123 (grub_vbe_set_video_mode): Rename 'mode' to 'vbe_mode', 'mode_info' to
29124 'vbe_mode_info' and 'old_mode' to 'old_vbe_mode'.
29125 (grub_video_vbe_init): Rename 'rm_mode_list' to 'rm_vbe_mode_list' and
29126 'mode_list_size' to 'vbe_mode_list_size'.
29127 (grub_video_vbe_setup): Rename 'mode_info' to 'vbe_mode_info',
29128 'best_mode_info' to 'best_vbe_mode_info' and
29129 'best_mode' to 'best_vbe_mode'
29131 2009-08-17 Michal Suchanek <hramrach@centrum.cz>
29133 Remove duplicate grub_video_fb_get_video_ptr.
29135 * include/grub/fbutil.h (get_data_ptr): Rename to ...
29136 (grub_video_fb_get_video_ptr): ... this.
29137 * include/grub/video_fb.h (grub_video_fb_get_video_ptr): Removed.
29138 * video/fb/fbutil.c: Add comment about addressing.
29139 (get_data_ptr): Rename to ...
29140 (grub_video_fb_get_video_ptr): ... this. All users updated.
29141 * video/fb/video_fb.c (grub_video_fb_get_video_ptr): Remove.
29143 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29145 * fs/fat.c (grub_fat_read_data): Remove `#if 0' braces around the
29146 grub_dprintf() that was just added.
29148 2009-08-17 Robert Millan <rmh.grub@aybabtu.com>
29150 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT)
29151 (DEFAULT_VIDEO_MODE): Remove macros.
29152 (grub_linux_boot): Remove assumption that Linux has FB support,
29153 and use "text" as default video mode.
29155 2009-08-15 Vladimir Serbinenko <phcoder@gmail.com>
29157 * fs/affs.c (grub_affs_read_symlink): Change leftover grub_printf into
29159 * fs/fat.c (grub_fat_read_data): Likewise.
29161 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29163 * loader/i386/multiboot.c (grub_multiboot): Don't pass filename to
29165 (grub_module): Likewise.
29167 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29169 * loader/i386/multiboot.c (grub_multiboot_unload): Don't free mbi and
29170 mbi->cmdline but free playground.
29172 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29174 Handle group offset on UFS1.
29176 * fs/ufs.c (grub_ufs_sblock): New field 'cylg_mask'.
29177 (grub_ufs_read_inode) [!MODE_UFS2]: handle cylg_offset and cylg_mask.
29179 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29181 Split ufs.mod into ufs1.mod and ufs2.mod.
29183 * conf/common.rmk (grub_probe_SOURCES): Add fs/ufs2.c.
29184 (grub_fstest_SOURCES): Likewise.
29185 (pkglib_MODULES): Remove ufs.mod. Add ufs1.mod and ufs2.mod.
29186 (ufs_mod_SOURCES): Remove.
29187 (ufs_mod_CFLAGS): Likewise.
29188 (ufs_mod_LDFLAGS): Likewise.
29189 (ufs1_mod_SOURCES): New variable.
29190 (ufs1_mod_CFLAGS): Likewise.
29191 (ufs1_mod_LDFLAGS): Likewise.
29192 (ufs2_mod_SOURCES): New variable.
29193 (ufs2_mod_CFLAGS): Likewise.
29194 (ufs2_mod_LDFLAGS): Likewise.
29195 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add fs/ufs2.c.
29196 * conf/i386-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29198 (grub_emu_SOURCES): Likewise.
29199 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29200 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29201 (grub_setup_SOURCES): Likewise.
29202 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29203 * conf/sparc64.rmk (grub_emu_SOURCES): Likewise.
29204 (grub_setup_SOURCES): Likewise.
29205 * conf/x86_64-efi.rmk (util/i386/efi/grub-mkimage.c_DEPENDENCIES):
29207 * fs/ufs2.c: New file.
29208 * fs/ufs.c: Separate UFS1 from UFS2 by using preprocessor.
29210 2009-08-14 Vladimir Serbinenko <phcoder@gmail.com>
29214 * commands/i386/pc/vbetest.c (grub_cmd_vbetest): Restore video
29215 subsystem at the end.
29216 * conf/common.rmk (pkglib_MODULES): Add video_fb.mod.
29217 (video_fb_mod_SOURCES): New variable.
29218 (video_fb_mod_CFLAGS): Likewise.
29219 (video_fb_mod_LDFLAGS): Likewise.
29220 * conf/i386-pc.rmk (vbe_mod_SOURCES): Remove video/i386/pc/vbeblit.c,
29221 video/i386/pc/vbefill.c and video/i386/pc/vbeutil.c.
29222 * video/i386/pc/vbeblit.c: Moved from here ...
29223 * video/fb/fbblit.c: ..here. Replaced 'vbe' with 'fb'.
29224 * video/i386/pc/vbefill.c: Moved from here ...
29225 * video/fb/fbfill.c: ..here. Replaced 'vbe' with 'fb'.
29226 * video/i386/pc/vbeutil.c: Moved from here ...
29227 * video/fb/fbutil.c: ..here. Replaced 'vbe' with 'fb'.
29228 * include/grub/i386/pc/vbeblit.h: Moved from here ...
29229 * include/grub/fbblit.h: ... here. Replaced 'vbe' with 'fb'.
29230 * include/grub/i386/pc/vbefill.h: Moved from here ...
29231 * include/grub/fbfill.h: ... here. Replaced 'vbe' with 'fb'.
29232 * include/grub/i386/pc/vbeutil.h: Moved from here ...
29233 * include/grub/fbutil.h: ... here. Replaced 'vbe' with 'fb'.
29234 * include/grub/i386/pc/vbe.h: Moved framebuffer part ...
29235 * include/grub/video_fb.h: ... here. Replaced 'vbe' with 'fb'.
29236 * include/grub/video.h (GRUB_VIDEO_RENDER_TARGET_FRONT_BUFFER): Removed.
29237 (GRUB_VIDEO_RENDER_TARGET_BACK_BUFFER): Likewise.
29238 (grub_video_adapter): Added 'get_info_and_fini'.
29239 (grub_video_get_info_and_fini): New prototype.
29240 (grub_video_set_mode): make modestring const char *.
29241 * loader/i386/linux.c (grub_linux_setup_video): Use
29242 grub_video_get_info_and_fini.
29243 (grub_linux_boot): Move modesetting just before booting.
29244 * loader/i386/pc/xnu.c (grub_xnu_set_video): Use
29245 grub_video_get_info_and_fini.
29246 * video/i386/pc/vbe.c: Moved framebuffer part ...
29247 * video/fb/video_fb.c: ... here. Replaced 'vbe' with 'fb'.
29248 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): Use
29249 grub_video_fbstd_colors and grub_video_fb_set_palette.
29250 (grub_video_vbe_init): Clear 'framebuffer' variable and use
29251 grub_video_fb_init.
29252 (grub_video_vbe_fini): Use grub_video_fb_fini.
29253 (grub_video_vbe_setup): Use framebuffer.render_target instead of
29254 render_target and use grub_video_fb_set_active_render_target and
29255 grub_video_fb_set_palette.
29256 (grub_video_vbe_set_palette): Use grub_video_fb_set_palette.
29257 (grub_video_vbe_set_viewport): Use grub_video_fb_set_viewport.
29258 (grub_video_vbe_adapter): Use framebuffer.
29259 * video/video.c (grub_video_get_info_and_fini): New function.
29260 (grub_video_set_mode): Make modestring const char *.
29261 (GRUB_MOD_INIT(video_video)): Don't set variables to 0 since these
29262 values are already initialised.
29264 2009-08-14 Pavel Roskin <proski@gnu.org>
29266 * boot/i386/pc/cdboot.S: Use LOCAL for local labels. Eliminate
29268 * boot/i386/pc/diskboot.S: Likewise.
29269 * boot/i386/pc/lnxboot.S: Likewise. Hardcode the number of code
29270 sectors allow compilation on MacOSX.
29271 * conf/i386-pc.rmk: Enable unconditional compilation of
29274 2009-08-13 Colin Watson <cjwatson@ubuntu.com>
29276 * util/grub-mkconfig.in: Export GRUB_HIDDEN_TIMEOUT.
29277 * util/grub.d/00_header.in: Enter interruptible sleep if
29278 GRUB_HIDDEN_TIMEOUT is set.
29280 2009-08-13 Yves Blusseau <blusseau@zetam.org>
29282 * include/grub/symbol.h: Add the LOCAL macro.
29283 * boot/i386/pc/boot.S: Use the LOCAL macro for all labels
29284 starting with "L_".
29286 2009-08-13 Pavel Roskin <proski@gnu.org>
29288 * boot/i386/pc/boot.S: Remove ABS macro, it's not required by
29289 any modern compilers we support.
29291 * boot/i386/pc/boot.S: Remove all code dependent on APPLE_CC.
29292 Use local labels starting with "L_" so that Apple assembler
29293 knows they are local.
29295 2009-08-10 Robert Millan <rmh.grub@aybabtu.com>
29297 * include/grub/i386/bsd.h (KERNEL_TYPE_NONE, KERNEL_TYPE_FREEBSD)
29298 (KERNEL_TYPE_OPENBSD, KERNEL_TYPE_NETBSD): Convert to ...
29299 (bsd_kernel_types): ... this enum.
29301 * loader/i386/bsd.c (grub_cmd_freebsd_loadenv, grub_cmd_freebsd_module)
29302 (grub_cmd_freebsd_module_elf): Abort with "You need to load the
29303 kernel first." when `kernel_type' is set to KERNEL_TYPE_NONE.
29305 (grub_bsd_load_aout, grub_bsd_load, grub_cmd_freebsd_loadenv)
29306 (grub_cmd_freebsd_module, grub_cmd_freebsd_module_elf)
29307 (GRUB_MOD_INIT (bsd)): Fix capitalization in a few error
29310 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29312 * util/grub-dumpdevtree: Moved from here ...
29313 * util/i386/efi/grub-dumpdevtree: ... to here.
29314 (hexify): New function. Converts a string to its hex version.
29315 Generate hex versions of "efi" and "device-properties" by calling
29316 hexify() on the ASCII strings rather than by hardcoding numbers.
29318 2009-08-08 Robert Millan <rmh.grub@aybabtu.com>
29320 * fs/jfs.c: Update copyright year.
29322 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29324 * util/grub.d/00_header.in: Fix a comment.
29325 * util/grub.d/10_linux.in: Likewise.
29326 * util/grub.d/10_windows.in: Likewise.
29327 * util/grub.d/10_hurd.in: Likewise.
29329 2009-08-08 Felix Zielcke <fzielcke@z-51.de>
29331 * util/grub-mkconfig.in: Allow the user to specify the used font
29334 2009-08-08 Pavel Roskin <proski@gnu.org>
29336 * include/grub/powerpc/libgcc.h: Export __ashrdi3() if
29337 available, xfs.mod needs it now.
29339 * util/grub-mkconfig_lib.in (version_test_numeric): Don't use
29340 the "g" modifier in sed when the intention is to strip something
29341 once. This fixes comparison of kernels with multiple dashes.
29343 * util/grub-mkconfig.in: Define datarootdir, datadir may depend
29344 on it. Add missing space before closing bracket. Fix
29345 misleading formatting.
29347 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29349 * docs/grub.texi: Major overhaul. Remove all sections that are
29350 specific to GRUB Legacy, or mostly composed of Legacy-specific
29353 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29355 * docs/version.texi: New file. Provides version information for
29358 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29360 * docs/grub.texi: Update CVS information to SVN.
29361 Replace outdated "GRUB 2 will include" phrase with "GRUB 2 includes".
29363 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29365 * util/grub-mkconfig.in: Remove a wrong `fi'.
29367 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29369 * fs/uuid.c (grub_jfs_superblock): New fields unused2 and uuid.
29370 (grub_jfs_uuid): New function.
29371 (grub_jfs_fs): Set uuid field to grub_jfs_uuid.
29373 2009-08-07 Felix Zielcke <fzielcke@z-51.de>
29375 * util/grub-mkconfig_lib.in (font_path): Move the functionality
29377 * util/grub-mkconfig.in: ... here. Prefer unicode.pf2 and
29378 unifont.pf2 over ascii.pf2. Export LANG=C in case ascii.pf2 gets used.
29380 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29382 * util/grub.d/10_linux.in (test_numeric): Moved from here ...
29383 * util/grub-mkconfig_lib.in (version_test_numeric): ... to here.
29386 * util/grub.d/10_linux.in (test_gt): Strip any basename prefix,
29387 not just "vmlinu[zx]".
29388 Moved from here ...
29389 * util/grub-mkconfig_lib.in (version_test_gt): ... to here. Update
29392 * util/grub.d/10_linux.in (find_latest): Moved from here ...
29393 * util/grub-mkconfig_lib.in (version_find_latest): ... to here. Update
29396 2009-08-07 Robert Millan <rmh.grub@aybabtu.com>
29398 * util/grub.d/10_freebsd.in: Use an absolute device path for
29399 `vfs.root.mountfrom'. Set `vfs.root.mountfrom.options=rw'.
29401 2009-08-06 Felix Zielcke <fzielcke@z-51.de>
29403 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Fix
29404 handling of multiple abstraction modules.
29406 2009-08-04 Robert Millan <rmh.grub@aybabtu.com>
29408 Fix a bug resulting in black screen when loading Linux using a
29411 * kern/i386/pc/startup.S (grub_vbe_bios_getset_dac_palette_width): New
29414 * include/grub/i386/pc/vbe.h (GRUB_VBE_CAPABILITY_DACWIDTH): New macro.
29415 (grub_vbe_bios_getset_dac_palette_width): New function.
29416 (grub_vbe_bios_get_dac_palette_width)
29417 (grub_vbe_bios_set_dac_palette_width): New macros (act as wrappers for
29418 grub_vbe_bios_getset_dac_palette_width()).
29420 * video/i386/pc/vbe.c (grub_vbe_probe): Use `GRUB_VBE_STATUS_OK' to
29421 check for return status.
29422 (grub_vbe_get_video_mode_info): When getting information for a packed
29423 mode (<= 8 bpp), obtain DAC palette width using
29424 grub_vbe_bios_getset_dac_palette_width(), and use that for initializing
29425 {red,green,blue}_mark_size.
29427 2009-08-04 Felix Zielcke <fzielcke@z-51.de>
29429 * commands/search.c (options): Fix help output to match actual code.
29431 2009-08-02 Vladimir Serbinenko <phcoder@gmail.com>
29433 * commands/hexdump.c (grub_cmd_hexdump): Use grub_disk_read instead
29436 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29438 * util/hostfs.c (grub_hostfs_dir): Don't use DT_DIR: It doesn't work
29439 on XFS or ReiserFS.
29441 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29443 Support Apple partition map with sector size different from 512 bytes.
29445 * partmap/apple.c (grub_apple_header): New field 'blocksize'.
29446 (apple_partition_map_iterate): Respect 'aheader.blocksize'
29447 and 'apart.partmap_size'.
29449 2009-08-01 Vladimir Serbinenko <phcoder@gmail.com>
29450 2009-08-01 Robert Millan <rmh.grub@aybabtu.com>
29454 * commands/i386/cpuid.c (options): New variable.
29455 (grub_cmd_cpuid): Return real error.
29456 (GRUB_MOD_INIT(cpuid)): Declare options.
29458 2009-07-31 Vladimir Serbinenko <phcoder@gmail.com>
29460 * partmap/pc.c (pc_partition_map_iterate): Check that boot flags are
29463 2009-07-31 Bean <bean123ch@gmail.com>
29465 * fs/xfs.c (grub_xfs_sblock): Change unused5 field to log2_sect and
29467 (grub_fshelp_node): Move inode field to the end.
29468 (grub_xfs_data): Remove inode field.
29469 (grub_xfs_inode_block): Calculate inode size using sblock.
29470 (grub_xfs_inode_offset): Likewise.
29471 (grub_xfs_read_inode): Calculate inode size using sblock.
29472 (grub_xfs_read_block): Replace XFS_INODE_EXTENTS with nrec.
29473 (grub_xfs_iterate_dir): Calculate inode size using sblock.
29474 (grub_xfs_mount): Use grub_zalloc instead of grub_malloc. Realloc data
29475 to match inode size.
29476 (grub_xfs_dir): goto mount_fail when mount fails, as data->diropen is
29477 not accessible when data is null.
29478 (grub_xfs_open): Likewise.
29480 2009-07-31 Bean <bean123ch@gmail.com>
29482 * disk/lvm.c (grub_lvm_scan_device): Ignore extra copy of metadata.
29483 Don't change pv->disk if it's already set.
29485 * disk/raid.c (grub_raid_scan_device): Merge this function into ...
29486 (grub_raid_register): ... here.
29487 (grub_raid_rescan): Removed.
29489 * include/grub/raid.h (grub_raid_rescan): Removed.
29491 * util/grub-fstest.c: Remove include file <grub/raid.h>.
29492 (fstest): Replace grub_raid_rescan with module fini function followed
29495 * util/grub-probe.c: Add include file <grub/raid.h>.
29496 (probe_raid_level): New function.
29497 (probe): Detect abstraction by walking the disk device, support two
29498 level of abstraction (LVM on RAID) when detecting partition map.
29500 2009-07-31 Pavel Roskin <proski@gnu.org>
29502 * disk/raid5_recover.c (grub_raid5_recover): Revert conversion
29503 to grub_zalloc(), it was erroneous.
29504 Reported by Bean <bean123ch@gmail.com>
29506 2009-07-30 Vladimir Serbinenko <phcoder@gmail.com>
29508 * util/i386/pc/grub-setup.c (setup): Check that no partition is in
29509 embedding zone, not only the first one.
29511 2009-07-29 Joe Auricchio <jauricchio@gmail.com>
29513 * term/gfxterm.c (clear_char): New function.
29514 (grub_virtual_screen_setup): Use clear_char.
29515 (scroll_up): Likewise.
29516 (grub_virtual_screen_cls): Likewise.
29518 2009-07-29 Felix Zielcke <fzielcke@z-51.de>
29520 * util/deviceiter.c (get_acceleraid_disk_name): New static
29522 (grub_util_iterate_devices): Handle Accelraid devices.
29523 * util/hostdisk.c (convert_system_partition_to_system_disk): Likewise.
29525 2009-07-28 Robert Millan <rmh.grub@aybabtu.com>
29527 * loader/i386/linux.c (grub_cmd_linux): Use ',' rather than ';' as
29528 separator for the suggested gfxpayload string (';' collides with the
29529 parser and needs escaping).
29531 2009-07-28 Vladimir Serbinenko <phcoder@gmail.com>
29533 * loader/i386/multiboot_helper.S (grub_multiboot_backward_relocator):
29534 Clear direction flag before jumping to OS.
29535 (grub_multiboot2_real_boot): Likewise.
29537 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29539 * util/i386/pc/grub-install: Fix parsing of --disk-module
29542 2009-07-28 Felix Zielcke <fzielcke@z-51.de>
29544 * util/i386/pc/grub-setup.c (setup): Fix 2 incorrect checks
29547 2009-07-26 Felix Zielcke <fzielcke@z-51.de>
29549 * util/grub-mkconfig.in (package_version): New variable.
29550 Use it do display the version.
29552 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29554 * kern/file.c (grub_file_open): Revert to previous check with
29557 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29559 * commands/probe.c (GRUB_MOD_INIT (probe)): Remove "[--target=target]"
29560 from help line. It's out of sync with code.
29562 2009-07-25 Vladimir Serbinenko <phcoder@gmail.com>
29564 * kern/parser.c (grub_parser_execute): Fix a bug causing truncated
29565 entries on failed boot.
29567 2009-07-25 Felix Zielcke <fzielcke@z-51.de>
29569 * kern/file.c (grub_file_open): Fix an error check.
29571 2009-07-24 Vladimir Serbinenko <phcoder@gmail.com>
29573 * util/i386/pc/grub-setup.c (setup): Fix segmentation fault when
29574 partition map couldn't be identified.
29576 2009-07-23 Pavel Roskin <proski@gnu.org>
29578 * commands/xnu_uuid.c (transform): Use GRUB_CPU_WORDS_BIGENDIAN
29579 instead of WORDS_BIGENDIAN. Use grub_le_to_cpu32(), so that the
29580 case of little endian words becomes just an optimization.
29581 Respect const modifier.
29582 (md5_final): Use code that doesn't depend on endianness.
29584 * include/grub/misc.h (ALIGN_UP): Cast align to the type of addr
29585 to avoid loss of upper bits if align is unsigned and shorter
29588 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29590 UUID support for UFS
29592 * fs/ufs.c (grub_ufs_sblock): Add uuidhi and uuidlow.
29593 (grub_ufs_uuid): New function.
29594 (grub_ufs_fs): add .uuid
29596 2009-07-21 Pavel Roskin <proski@gnu.org>
29598 * kern/dl.c (grub_dl_check_header): Make static.
29600 2009-07-21 Felix Zielcke <fzielcke@z-51.de>
29602 * util/grub.d/30_os-prober.in: Remove unused CHAINROOT. Don't
29603 add drivemap for Vista. It breaks Windows 7.
29605 2009-07-21 Vladimir Serbinenko <phcoder@gmail.com>
29607 * fs/ufs.c (grub_ufs_sblock): Fix offset of mtime2 which was off by
29610 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29614 * conf/common.rmk (grub_probe_SOURCES): Add fs/befs.c.
29615 (grub_fstest_SOURCES): Likewise.
29616 (pkglib_MODULES): Add befs.mod.
29617 (befs_mod_SOURCES): New variable.
29618 (befs_mod_CFLAGS): Likewise.
29619 (befs_mod_LDFLAGS): Likewise.
29620 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
29621 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
29622 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29623 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
29624 (grub_setup_SOURCES): Likewise.
29625 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29626 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
29627 (grub_setup_SOURCES): Likewise.
29628 * fs/befs.c: New file.
29629 * fs/afs.c (GRUB_AFS_FSNAME): New declaration.
29630 (GRUB_AFS_SBLOCK_SECTOR): Likewise.
29631 (GRUB_AFS_SBLOCK_MAGIC1) [MODE_BFS]: New conditional declaration.
29632 (GRUB_AFS_BTREE_MAGIC) [MODE_BFS]: Likewise
29633 (B_KEY_INDEX_ALIGN): New declaration.
29634 (B_KEY_INDEX_OFFSET): Use B_KEY_INDEX_ALIGN.
29635 (grub_afs_bnode) [MODE_BFS]: Make key_count and key_size 16-bit
29636 (grub_afs_btree) [MODE_BFS]: New conditional declaration.
29637 (grub_afs_sblock) [MODE_BFS]: Remove link_count.
29638 (grub_afs_validate_sblock) [MODE_BFS]: Support BFS
29639 (grub_afs_mount) [MODE_BFS]: Likewise.
29640 (grub_afs_dir) [MODE_BFS]: Divide mtime by 65536 and not 1000000.
29641 (grub_afs_fs): Use GRUB_AFS_FSNAME
29642 (GRUB_MOD_INIT (afs)) [MODE_BFS]: Rename to ...
29643 (GRUB_MOD_INIT (befs)) [MODE_BFS]: ... this
29644 (GRUB_MOD_FINI (afs)) [MODE_BFS]: Rename to ...
29645 (GRUB_MOD_FINI (befs)) [MODE_BFS]: ... this
29647 2009-07-19 Yves BLUSSEAU <yves.grub-devel@zetam.org>
29649 * util/getroot.c (find_root_device): Add support for MacOSX.
29650 * util/hostdisk.c: Likewise.
29652 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29654 * font/font.c (find_glyph): Check whether a font is present to avoid
29655 segmentation fault.
29657 2009-07-20 Joe Auricchio <jauricchio@gmail.com>
29659 * term/gfxterm.c (grub_virtual_screen_setup): Clear virtual_screen.
29661 2009-07-20 Pavel Roskin <proski@gnu.org>
29663 * configure.ac: Trim excessively wordy excuses.
29665 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29667 Add symlink, mtime and label support to AtheFS.
29669 * fs/afs.c (grub_afs_sblock): Declare `name' as char.
29670 (grub_afs_iterate_dir): Handle symlinks.
29671 (grub_afs_open): Use grub_afs_read_symlink.
29672 (grub_afs_dir): Likewise.
29674 (grub_afs_label): New function.
29675 (grub_afs_fs): Add grub_afs_label.
29676 (grub_afs_read_symlink): New function.
29678 2009-07-20 Vladimir Serbinenko <phcoder@gmail.com>
29680 Fix AtheFS support.
29682 * fs/afs.c: Fix comments style.
29683 (grub_afs_blockrun): Declare as packed.
29684 (grub_afs_datastream): Likewise.
29685 (grub_afs_bnode): Likewise.
29686 (grub_afs_btree): Likewise.
29687 (grub_afs_sblock): Likewise.
29688 Declare `name' as char.
29689 (grub_afs_inode): Declare as packed.
29690 Change void *vnode to grub_uint32_t unused.
29691 (grub_afs_iterate_dir): Check that key_size is positive.
29692 (grub_afs_mount): Don't read superblock twice.
29693 (grub_afs_dir): Don't free node in case of error,
29694 grub_fshelp_find_file already handles this.
29695 (grub_afs_open): Likewise.
29697 2009-07-19 Pavel Roskin <proski@gnu.org>
29699 * Makefile.in: Remove LIBLZO and enable_lzo.
29700 * conf/i386-pc.rmk: Remove lzo support.
29701 * configure.ac: Remove checks for lzo, don't define ENABLE_LZMA.
29702 * include/grub/i386/pc/kernel.h: Define ENABLE_LZMA. Remove lzo
29704 * kern/i386/pc/lzo1x.S: Remove.
29705 * kern/i386/pc/startup.S: Remove lzo support.
29706 * util/i386/pc/grub-mkimage.c: Likewise.
29708 2009-07-19 Vladimir Serbinenko <phcoder@gmail.com>
29710 * disk/usbms.c (grub_usbms_transfer): Fix double semicolon.
29711 * fs/xfs.c (grub_xfs_dir): Likewise.
29712 * fs/afs.c (grub_afs_dir): Likewise.
29713 * fs/iso9660.c (grub_iso9660_iterate_dir): Likewise.
29714 (grub_iso9660_open): Likewise.
29715 * fs/jfs.c (grub_jfs_open): Likewise.
29716 * fs/ext2.c (grub_ext2_dir): Likewise.
29717 * include/grub/macho.h (grub_macho_fat_arch): Likewise.
29718 * script/sh/lexer.c (grub_script_yylex): Likewise.
29720 2009-07-16 Pavel Roskin <proski@gnu.org>
29722 * configure.ac: Never add "-c" to CFLAGS.
29724 * configure.ac: Fix incorrect comparison for grub_cv_cc_efiemu.
29726 * configure.ac: Fix wrong use of grub_cv_cc_no_red_zone where
29727 grub_cv_cc_efiemu should be used.
29729 * configure.ac: Typo fixes.
29731 * kern/mm.c (grub_zalloc): New function.
29732 (grub_debug_zalloc): Likewise.
29733 * include/grub/mm.h: Declare grub_zalloc() and
29734 grub_debug_zalloc().
29735 * util/misc.c (grub_zalloc): New function.
29736 * bus/usb/uhci.c (grub_uhci_pci_iter): Use grub_zalloc()
29737 instead of grub_malloc(), remove unneeded initializations.
29738 * bus/usb/usbhub.c (grub_usb_hub_add_dev): Likewise.
29739 * commands/extcmd.c (grub_extcmd_dispatcher): Likewise.
29740 * commands/parttool.c (grub_cmd_parttool): Likewise.
29741 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Likewise.
29742 * disk/raid5_recover.c (grub_raid5_recover): Likewise.
29743 * disk/raid6_recover.c (grub_raid6_recover): Likewise.
29744 * disk/usbms.c (grub_usbms_finddevs): Likewise.
29745 * efiemu/mm.c (grub_efiemu_request_memalign): Likewise.
29746 * efiemu/pnvram.c (grub_efiemu_pnvram): Likewise.
29747 (grub_cmd_efiemu_pnvram): Likewise.
29748 * fs/i386/pc/pxe.c (grub_pxefs_open): Likewise.
29749 * fs/iso9660.c (grub_iso9660_mount): Likewise.
29750 (grub_iso9660_iterate_dir): Likewise.
29751 * fs/jfs.c (grub_jfs_opendir): Likewise.
29752 * fs/ntfs.c (list_file): Likewise.
29753 (grub_ntfs_mount): Likewise.
29754 * kern/disk.c (grub_disk_open): Likewise.
29755 * kern/dl.c (grub_dl_load_core): Likewise.
29756 * kern/elf.c (grub_elf_file): Likewise.
29757 * kern/env.c (grub_env_context_open): Likewise.
29758 (grub_env_set): Likewise.
29759 (grub_env_set_data_slot): Likewise.
29760 * kern/file.c (grub_file_open): Likewise.
29761 * kern/fs.c (grub_fs_blocklist_open): Likewise.
29762 * loader/i386/multiboot.c (grub_module): Likewise.
29763 * loader/xnu.c (grub_xnu_create_key): Likewise.
29764 (grub_xnu_create_value): Likewise.
29765 * normal/main.c (grub_normal_add_menu_entry): Likewise.
29766 (read_config_file): Likewise.
29767 * normal/menu_entry.c (make_screen): Likewise.
29768 * partmap/sun.c (sun_partition_map_iterate): Likewise.
29769 * script/sh/lexer.c (grub_script_lexer_init): Likewise.
29770 * script/sh/script.c (grub_script_parse): Likewise.
29771 * video/bitmap.c (grub_video_bitmap_create): Likewise.
29772 * video/readers/jpeg.c (grub_video_reader_jpeg): Likewise.
29773 * video/readers/png.c (grub_png_output_byte): Likewise.
29774 (grub_video_reader_png): Likewise.
29776 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29778 Enable all targets that can be built by default
29780 * configure.ac: enable efiemu runtime, grub-emu, grub-emu-usb,
29781 grub-mkfont and grub-fstest if they can be built
29783 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29785 Fix hang and segmentation fault in grub-emu-usb
29787 * disk/scsi.c (grub_scsi_open): return err and not grub_errno
29788 * util/usb.c (grub_libusb_devices): likewise
29789 (grub_libusb_init): rename to ...
29790 (GRUB_MOD_INIT (libusb)):...this
29791 (grub_libusb_fini): rename to ..
29792 (GRUB_MOD_FINI (libusb)):...this
29793 * disk/usbms.c (grub_usbms_transfer): fix retry logic
29794 * include/grub/disk.h (grub_raid_init): removed, it's useless
29795 (grub_raid_fini): likewise
29796 (grub_lvm_init): likewise
29797 (grub_lvm_fini): likewise
29798 * util/grub-emu.c (main): don't call grub_libusb_init, it's done
29801 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29805 * Makefile.in (LIBUSB): new macro
29806 * genmk.rb (Utility/print_tail): new method
29807 (Utility/rule): use intermediary variable #{prefix}_OBJECTS
29808 (top level): call util.print_tail at the end.
29810 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29812 Make FreeBSD accept zpool.cache
29814 * loader/i386/bsd.c (grub_freebsd_add_meta_module): spoof filename if
29815 type is /boot/zfs/zpool.cache
29817 2009-07-16 Vladimir Serbinenko <phcoder@gmail.com>
29821 * include/grub/efiemu/efiemu.h (grub_efiemu_configuration_table64_t):
29822 correct wrong typedef
29823 * efiemu/prepare.c (SUFFIX (grub_efiemu_prepare)): minor style fixes
29825 2009-07-15 Pavel Roskin <proski@gnu.org>
29827 * include/grub/disk.h (struct grub_disk_dev): Use enum for id.
29828 * kern/disk.c (struct grub_disk_cache): Likewise.
29830 * commands/probe.c (options): Typo fix.
29832 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_BPB_END):
29833 Increase to 0x5a to accommodate FAT32. Adjust other offsets
29835 Original patch by Yves Blusseau <yves.grub-devel@zetam.org>
29837 * boot/i386/pc/boot.S (general_error_string): Add DOS newline at
29838 the end of "Error" to make the message more readable.
29840 * boot/i386/pc/boot.S (kernel_segment): Remove.
29841 (copy_buffer): Use GRUB_BOOT_MACHINE_KERNEL_ADDR in segment 0
29844 * boot/i386/pc/boot.S (boot_version): Remove.
29845 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_VER_MAJ):
29848 * include/grub/i386/pc/boot.h: Sort all offsets.
29849 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Remove, it's unused.
29850 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Likewise.
29851 * boot/i386/pc/boot.S: Assert location of every offset listed in
29852 include/grub/i386/pc/boot.h.
29854 2009-07-13 Pavel Roskin <proski@gnu.org>
29856 * include/grub/i386/coreboot/machine.h: Rename
29857 GRUB_MACHINE_LINUXBIOS to GRUB_MACHINE_COREBOOT.
29858 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Allow
29859 multiboot 1 for GRUB_MACHINE_COREBOOT and GRUB_MACHINE_QEMU.
29861 * kern/dl.c: Force native word size to suppress warnings when
29862 compiling grub-emu.
29864 * kern/device.c (grub_device_iterate): Change struct part_ent to
29865 hold the name, not a pointer to it. Use one grub_malloc() per
29866 partition, not two. Free partition_name if grub_malloc() fails.
29867 Set ents to NULL only before grub_partition_iterate() is called.
29869 2009-07-11 Bean <bean123ch@gmail.com>
29871 * kern/ieee1275/openfw.c (grub_children_iterate): Fix size of
29874 2009-07-10 Bean <bean123ch@gmail.com>
29875 2009-07-10 Robert Millan <rmh.grub@aybabtu.com>
29877 * kern/ieee1275/openfw.c (grub_children_iterate)
29878 (grub_devalias_iterate): Fix size evaluation for property or path
29879 strings, which was broken since r2132.
29881 2009-07-07 Pavel Roskin <proski@gnu.org>
29883 * commands/search.c (search_file): Merge into ...
29884 (search_fs): ... this. Accept search type as argument.
29885 (grub_cmd_search): Pass search type to search_fs().
29887 * include/grub/util/console.h: New file.
29888 * util/console.c: Use it instead of grub/machine/console.h.
29889 * util/grub-emu.c: Likewise.
29891 * lib/arg.c (find_long_option): Remove.
29892 (find_long): Add `len' argument, make `s' const char *.
29893 (grub_arg_parse): Parse long options in place, not in a
29896 2009-07-06 Pavel Roskin <proski@gnu.org>
29898 * commands/search.c (search_fs): Fix potential NULL pointer
29901 * commands/search.c (search_fs): Replace QUID macro with quid_fn
29904 2009-07-06 Daniel Mierswa <impulze@impulze.org>
29906 * commands/search.c (search_fs): Use grub_strcasecmp() for UUID
29909 2009-07-05 Pavel Roskin <proski@gnu.org>
29911 * include/grub/i386/linux.h (struct linux_kernel_params):
29912 Restore padding3, it's still needed.
29914 * util/grub.d/10_freebsd.in: Fix spelling of `device.hints' on
29916 * util/osdetect.lua: Likewise.
29918 2009-07-05 Bean <bean123ch@gmail.com>
29920 * conf/common.rmk (lua_mode_SOURCES): Add script/lua/lstrlib.c.
29922 * script/lua/grub_lib.c (grub_lua_run): Check input parameter.
29923 (grub_lua_getenv): Likewise.
29924 (grub_lua_setenv): Likewise.
29925 (save_errno): New function.
29926 (push_result): Likewise.
29927 (grub_lua_enum_device): Likewise.
29928 (grub_lua_enum_file): Likewise.
29929 (grub_lua_file_open): Likewise.
29930 (grub_lua_file_close): Likewise.
29931 (grub_lua_file_seek): Likewise.
29932 (grub_lua_file_read): Likewise.
29933 (grub_lua_file_getline): Likewise.
29934 (grub_lua_file_getsize): Likewise.
29935 (grub_lua_file_getpos): Likewise.
29936 (grub_lua_file_eof): Likewise.
29937 (grub_lua_file_exist): Likewise.
29938 (grub_lua_add_menu): Likewise.
29940 * script/lua/grub_lua.h (isupper): New inline function.
29941 (islower): Likewise.
29942 (ispunct): Likewise.
29943 (isxdigit): Likewise.
29944 (strcspn): Change to normal function.
29945 (strpbkr): New function declaration.
29946 (memchr): Likewise.
29948 * script/lua/grub_main.c (scan_str): New function.
29949 (strcspn): Likewise.
29950 (strpbrk): Likewise.
29951 (memchr): Likewise.
29953 * script/lua/linit.c (lualibs): Enable the string library.
29955 * util/osdetect.lua: New file.
29957 2009-07-04 Robert Millan <rmh.grub@aybabtu.com>
29959 * include/grub/i386/linux.h (struct linux_kernel_params): Add
29960 `capabilities' member.
29962 2009-07-02 Pavel Roskin <proski@gnu.org>
29964 * genparttoollist.sh: Add missing newline at the end.
29966 2009-07-01 Pavel Roskin <proski@gnu.org>
29968 * kern/x86_64/efi/callwrap.S: Add missing newline at the end.
29970 * util/hostdisk.c (open_device): Remove `const' from
29971 `sysctl_size', as sysctlbyname() can change it (in this case it
29972 doesn't actually happen).
29974 * include/grub/types.h: Define GRUB_LONG_MAX and GRUB_LONG_MIN
29975 using signed long int constants.
29977 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): Make `p'
29978 constant to avoid a warning on FreeBSD.
29980 * util/hostdisk.c (device_is_wholedisk): Compile only on systems
29983 * Makefile.in: Install include/grub/machine symlink.
29985 * Makefile.in: When installing symlinks, use "cp -fR", which
29986 works on FreeBSD and MacOSX.
29987 From Yves Blusseau <cl7m42e02@sneakemail.com>
29989 * kern/dl.c (grub_dl_resolve_symbol): Make static.
29990 * include/grub/dl.h: Remove grub_dl_resolve_symbol().
29992 * util/misc.c: Move grub_reboot() and grub_halt() ...
29993 * util/grub-emu.c: ... here. Make main_env static.
29994 * include/grub/util/misc.h: Remove main_env.
29996 * kern/mm.c: Use correct format to print size_t.
29998 * include/grub/elf.h: Define Elf_Sword and Elf_Xword.
29999 * kern/i386/dl.c: Use ELF symbols without "32" or "64".
30000 * kern/powerpc/dl.c: Likewise.
30001 * kern/sparc64/dl.c: Likewise.
30002 * kern/x86_64/dl.c: Likewise.
30004 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30006 Fix grub-emu build on sparc64-ieee1275.
30008 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Synchronize with ...
30009 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): ... this.
30011 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30013 * util/misc.c: Include `<setjmp.h>' and `<grub/machine/machine.h>'.
30014 (grub_reboot, grub_halt): New functions.
30016 * util/i386/pc/misc.c: Delete. Update all users.
30017 * util/sparc64/ieee1275/misc.c: Likewise.
30018 * util/powerpc/ieee1275/misc.c: Likewise.
30020 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30022 * conf/i386.rmk (setjmp_mod_SOURCES)
30023 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Move to ...
30024 * conf/common.rmk (setjmp_mod_SOURCES)
30025 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): ... here, and modify
30026 to use $(target_cpu).
30027 * conf/x86_64-efi.rmk (setjmp_mod_SOURCES)
30028 (setjmp_mod_ASFLAGS, setjmp_mod_LDFLAGS): Remove.
30029 * conf/powerpc-ieee1275.rmk: Likewise.
30030 * conf/sparc64-ieee1275.rmk: Likewise.
30032 * conf/i386-pc.rmk (kernel_img_SOURCES): Use
30033 $(target_cpu) for kern/$(target_cpu)/dl.c.
30034 * conf/i386-efi.rmk: Likewise.
30035 * conf/i386-ieee1275.rmk: Likewise.
30036 * conf/x86_64-efi.rmk: Likewise.
30037 * conf/i386-coreboot.rmk: Likewise.
30038 * conf/powerpc-ieee1275.rmk (kernel_img_SOURCES): Use
30039 $(target_cpu) for kern/$(target_cpu)/dl.c and for
30040 kern/$(target_cpu)/cache.S.
30041 * conf/sparc64-ieee1275.rmk: Likewise.
30043 2009-07-01 Robert Millan <rmh.grub@aybabtu.com>
30045 * include/grub/i386/linux.h (linux_kernel_params): Change `mmap_size'
30046 type to `grub_uint8_t', and adjust `padding9' accordingly.
30048 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30050 * include/grub/i386/linux.h (GRUB_VIDEO_TYPE_TEXT): New macro.
30052 * loader/i386/linux.c [__i386__] (grub_linux_boot): Simplify inline
30053 assembly in final jump, using register constraints.
30055 (grub_linux_boot): For text mode, initialize `have_vga' using
30056 GRUB_VIDEO_TYPE_TEXT rather than 0 (this changes its value to 1).
30058 Initialize `video_cursor_x' and `video_cursor_y' as late as possible,
30059 right before the final jump.
30061 Set `video_mode' to 0x3.
30063 Document initialization of `video_page', `video_mode' and
30066 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30068 * include/grub/i386/linux.h (GRUB_LINUX_FLAG_QUIET): New macro.
30069 * loader/i386/linux.c (grub_cmd_linux): Recognize "quiet" option,
30070 and set GRUB_LINUX_FLAG_QUIET appropriately.
30072 2009-06-29 Robert Millan <rmh.grub@aybabtu.com>
30074 Fix build on Debian / sparc.
30076 * configure.ac: Recognize `sparc' target_cpu (as sparc64).
30078 2009-06-28 Pavel Roskin <proski@gnu.org>
30080 * kern/i386/qemu/mmap.c (grub_machine_mmap_iterate): Use cast to
30083 * util/grub.d/10_linux.in: Match SUSE style initrd names.
30085 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30087 * loader/i386/linux.c (grub_linux_boot): Fix uninitialized use of
30090 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30094 * loader/i386/linux.c (grub_cmd_linux): Don't call grub_error when
30095 file can't be opened. grub_file_open() is already supposed to set
30096 grub_errno / grub_errmsg appropriately.
30097 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30099 2009-06-27 Pavel Roskin <proski@gnu.org>
30100 2009-06-27 Robert Millan <rmh.grub@aybabtu.com>
30102 * include/grub/dl.h: Include grub/elf.h.
30103 (struct grub_dl): Add symtab field.
30104 * kern/dl.c [GRUB_MACHINE_QEMU]: Define
30105 GRUB_MODULES_MACHINE_READONLY.
30106 (grub_dl_resolve_symbols): Populate mod->symtab, making a copy
30107 of the header for read-only modules.
30108 (grub_dl_unload): Free mod->symtab for read-only modules.
30109 * kern/i386/dl.c: Use mod->symtab.
30110 * kern/powerpc/dl.c: Likewise.
30111 * kern/sparc64/dl.c: Likewise.
30112 * kern/x86_64/dl.c: Likewise.
30114 * conf/i386-qemu.rmk: New file.
30115 * kern/i386/qemu/startup.S: Likewise.
30116 * kern/i386/qemu/mmap.c: Likewise.
30117 * boot/i386/qemu/boot.S: Likewise.
30118 * include/grub/i386/qemu/time.h: Likewise.
30119 * include/grub/i386/qemu/serial.h: Likewise.
30120 * include/grub/i386/qemu/kernel.h: Likewise.
30121 * include/grub/i386/qemu/console.h: Likewise.
30122 * include/grub/i386/qemu/boot.h: Likewise.
30123 * include/grub/i386/qemu/init.h: Likewise.
30124 * include/grub/i386/qemu/machine.h: Likewise.
30125 * include/grub/i386/qemu/loader.h: Likewise.
30126 * include/grub/i386/qemu/memory.h: Likewise.
30128 * conf/i386-coreboot.rmk (GRUB_BOOT_MACHINE_LINK_ADDR)
30129 (GRUB_KERNEL_MACHINE_LINK_ADDR): New variables.
30130 [qemu] (pkglib_IMAGES): Add `boot.img'.
30131 [qemu] (boot_img_SOURCES, boot_img_ASFLAGS, boot_img_LDFLAGS)
30132 [qemu] (boot_img_FORMAT): New variables.
30133 [qemu] (bin_UTILITIES): Add `grub-mkimage'.
30134 [qemu] (grub_mkimage_SOURCES, grub_mkimage_CFLAGS): New variables.
30135 [qemu] (kernel_img_SOURCES, kernel_img_HEADERS, kernel_img_CFLAGS)
30136 [qemu] (kernel_img_ASFLAGS, kernel_img_LDFLAGS)
30137 [qemu] (kernel_img_FORMAT): New variables.
30139 * configure.ac: Recognise `i386-qemu'.
30141 * util/i386/pc/grub-mkimage.c (compress_kernel): Add dummy variant
30142 (for no compression).
30143 [GRUB_MACHINE_QEMU] (generate_image): Misc adjustments to produce
30144 a valid i386 ROM image. Make `GRUB_KERNEL_MACHINE_COMPRESSED_SIZE',
30145 `GRUB_KERNEL_MACHINE_INSTALL_DOS_PART' and
30146 `GRUB_KERNEL_MACHINE_INSTALL_BSD_PART' optional features (with
30149 2009-06-27 Pavel Roskin <proski@gnu.org>
30151 * efiemu/prepare.c: Eliminate TYPE macro, it makes code hard to
30153 * efiemu/prepare32.c: Likewise.
30154 * efiemu/prepare64.c: Likewise.
30156 2009-06-26 Pavel Roskin <proski@gnu.org>
30158 * include/grub/types.h: Define GRUB_TARGET_WORDSIZE.
30159 * include/grub/elf.h: Define symbols without "32" or "64" based
30160 on GRUB_TARGET_WORDSIZE.
30161 * include/grub/multiboot2.h: Use GRUB_TARGET_WORDSIZE.
30162 * efiemu/loadcore32.c: Redefine GRUB_TARGET_WORDSIZE, remove own
30164 * efiemu/loadcore64.c: Likewise.
30165 * loader/i386/bsd32.c: Likewise.
30166 * loader/i386/bsd64.c: Likewise.
30167 * kern/dl.c: Remove own ELF definitions.
30168 * util/i386/efi/grub-mkimage.c: Likewise.
30170 2009-06-23 Robert Millan <rmh.grub@aybabtu.com>
30172 * kern/i386/pc/startup.S (real_to_prot): Access `gdtdesc' using
30173 segment 0x0 unconditionally, because the reference generated by
30174 GAS is an absolute address.
30176 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30178 * include/grub/i386/kernel.h: Include `<grub/machine/machine.h>'.
30179 [! GRUB_MACHINE_IEEE1275]: Set `GRUB_MOD_ALIGN' to 0x1.
30181 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30183 * commands/search.c (grub_cmd_search): Macroify hardcoded args[]
30184 indexes. Check for -f explicitly.
30185 (search_file): Improve error message.
30186 (GRUB_MOD_INIT(search)): Add missing `-n' to help output.
30188 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30190 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): Rename to ...
30191 (GRUB_KERNEL_MACHINE_LINK_ADDR): ... this. Update all users.
30193 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30195 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/misc.S'.
30196 * conf/i386-ieee1275.rmk: Likewise.
30197 * conf/i386-coreboot.rmk: Likewise.
30199 * kern/i386/pc/startup.S (grub_stop): Remove function.
30200 * kern/i386/ieee1275/startup.S: Likewise.
30201 * kern/i386/coreboot/startup.S: Likewise.
30202 * kern/i386/misc.S (grub_stop): New function.
30204 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30206 * kern/i386/pc/startup.S (real_to_prot): Move from here ...
30207 * kern/i386/realmode.S (real_to_prot): ... to here.
30209 2009-06-22 Robert Millan <rmh.grub@aybabtu.com>
30211 * conf/i386-ieee1275.rmk (pkglib_PROGRAMS): Replace `kernel.elf'
30213 (kernel_elf_SOURCES): Rename to ...
30214 (kernel_img_SOURCES): ... this.
30215 (kernel_elf_HEADERS): Rename to ...
30216 (kernel_img_HEADERS): ... this. Update all users.
30217 (kernel_elf_ASFLAGS): Rename to ...
30218 (kernel_img_ASFLAGS): ... this.
30219 (kernel_elf_CFLAGS): Rename to ...
30220 (kernel_img_CFLAGS): ... this.
30221 (kernel_elf_LDFLAGS): Rename to ...
30222 (kernel_img_LDFLAGS): ... this.
30223 * conf/i386-coreboot.rmk: Likewise.
30224 * conf/powerpc-ieee1275.rmk: Likewise.
30226 * util/elf/grub-mkimage.c (add_segments): Replace "kernel.elf"
30229 2009-06-21 Pavel Roskin <proski@gnu.org>
30231 * loader/powerpc/ieee1275/linux.c (offset_phdr): Fix prototypes
30232 to match nested functions.
30233 * loader/sparc64/ieee1275/linux.c: Likewise.
30235 * conf/i386-ieee1275.rmk: Define kernel_elf_ASFLAGS.
30237 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30239 * configure.ac: Enable `END_SYMBOL' / `BSS_START_SYMBOL' test on
30240 all i386 platforms.
30242 2009-06-21 Robert Millan <rmh.grub@aybabtu.com>
30244 Fix asm file handling on ELF, and remove workarounds.
30246 * genmk.rb (class Programs): Detect assembly files, and set ASFLAGS
30247 and -DASM_FILE=1 appropriately (copied from `class Images' stanza).
30248 * kern/i386/ieee1275/startup.S (ASM_FILE): Remove macro.
30249 * kern/i386/coreboot/startup.S (ASM_FILE): Likewise.
30251 2009-06-21 Vladimir Serbinenko <phcoder@gmail.com>
30253 Load BSD ELF modules
30255 * conf/i386-pc.rmk (bsd_mod_SOURCES): Add loader/i386/bsd32.c
30256 and loader/i386/bsd64.c
30257 * include/grub/i386/bsd.h (FREEBSD_MODTYPE_MODULE): Remove
30258 (FREEBSD_MODTYPE_ELF_MODULE): New definition
30259 (FREEBSD_MODTYPE_ELF_MODULE_OBJ): Likewise
30260 (grub_freebsd_load_elfmodule32): New declaration
30261 (grub_freebsd_load_elfmoduleobj64): Likewise
30262 (grub_freebsd_load_elf_meta32): Likewise
30263 (grub_freebsd_load_elf_meta64): Likewise
30264 (grub_freebsd_add_meta): Likewise
30265 (grub_freebsd_add_meta_module): Likewise
30266 * loader/i386/bsd.c (grub_freebsd_add_meta): Make global
30267 (grub_freebsd_add_meta_module): Likewise and move module-specific
30268 parts to grub_cmd_freebsd and grub_cmd_freebsd_module
30269 (grub_cmd_freebsd): Add elf-kernel specific parts
30270 based on grub_freebsd_add_meta_module
30271 (grub_cmd_freebsd_module): Add type parsing moved from
30272 grub_freebsd_add_meta_module
30273 (grub_cmd_freebsd_module_elf): New function
30274 (cmd_freebsd_module_elf): New variable
30275 (GRUB_MOD_INIT): Register freebsd_module_elf
30276 * loader/i386/bsd32.c: New file
30277 * loader/i386/bsd64.c: Likewise
30278 * loader/i386/bsdXX.c: Likewise
30279 * kern/elf.c (grub_elf32_load): Let hook decide which pheaders to load
30280 (grub_elf64_load): Likewise
30281 * include/grub/elfload.h (grub_elf32_load_hook_t): New parameter do_load
30283 (grub_elf64_load_hook_t): Likewise
30285 2009-06-21 Colin Watson <cjwatson@ubuntu.com>
30287 * util/grub-mkconfig.in (GRUB_DISABLE_LINUX_RECOVERY): Export
30289 * util/grub.d/10_linux.in: If GRUB_DISABLE_LINUX_RECOVERY is true,
30290 don't write a menu entry for recovery mode.
30292 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30294 * util/i386/pc/grub-mkimage.c (main): Oops, free `output' only
30295 after it's no longer needed.
30297 2009-06-20 Robert Millan <rmh.grub@aybabtu.com>
30299 * include/grub/i386/loader.h (grub_linux_prot_size)
30300 (grub_linux_tmp_addr, grub_linux_real_addr)
30301 (grub_linux_is_bzimage, grub_linux16_boot): Declare only on
30302 GRUB_MACHINE_PCBIOS.
30303 * util/i386/pc/grub-mkimage.c (compress_kernel): Move
30304 common grub_util_info() call to ...
30305 (generate_image): ... here.
30306 Fix use of uninitialized memory, comparison of signed with
30307 unsigned integers and memory leak.
30308 Remove bogus module address message.
30310 2009-06-20 Vladimir Serbinenko <phcoder@gmail.com>
30312 * disk/mdraid_linux.c (GRUB_MOD_FINI): use grub_raid_unregister and not
30314 * disk/dmraid_nvidia.c (GRUB_MOD_FINI): likewise
30316 2009-06-19 Pavel Roskin <proski@gnu.org>
30318 * configure.ac: Remove stray AC_MSG_CHECKING.
30320 2009-06-19 Vladimir Serbinenko <phcoder@gmail.com>
30322 * disk/scsi.c (grub_scsi_open): use continue instead of big if
30324 2009-06-18 Pavel Roskin <proski@gnu.org>
30326 * conf/common.rmk: Add fs_file.mod.
30327 * disk/fs_file.c: New file.
30328 * include/grub/disk.h (enum grub_disk_dev_id): Add
30329 GRUB_DISK_DEVICE_FILE_ID.
30331 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30333 Fix build with Apple's toolchain. Part 2
30335 * aclocal.m4 (grub_PROG_TARGET_CC): add missing prototype for main and
30338 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30340 Fix build with Apple's toolchain. Part 1
30342 * commands/i386/pc/drivemap_int13h.S: use assembly-time constants
30344 * configure.ac: remove a leftover AC_MSG_RESULT
30345 (CFLAGS): don't add -Wl,--defsym,___main=0x8100 when building with
30348 2009-06-18 Vladimir Serbinenko <phcoder@gmail.com>
30352 * fs/ntfscomp.c (decomp_get16): initialize c1 and c2
30353 (decomp_block): initialize ch
30354 use grub_memcpy instead of memcpy
30356 2009-06-17 Pavel Roskin <proski@gnu.org>
30358 * include/grub/i386/coreboot/console.h: Don't use the i386-pc
30359 version, use declarations needed to use vga_text as the startup
30362 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Remove
30363 term/i386/pc/at_keyboard.c, it doesn't need to be compiled into
30365 * kern/i386/coreboot/init.c: Don't call grub_at_keyboard_init()
30366 and grub_at_keyboard_fini(), it's done on module load and
30369 2009-06-17 Felix Zielcke <fzielcke@z-51.de>
30371 * loader/i386/linux.c (grub_cmd_linux): Set grub_error if the
30372 file can't be found.
30373 * loader/i386/pc/linux.c (grub_cmd_linux): Likewise.
30375 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30377 Fix newline handling
30379 * include/grub/script_sh.h (grub_lexer_param): new field was_newline
30380 * script/sh/lexer.c (grub_script_lexer_init): initialize was_newline
30381 (grub_script_yylex): don't segfault on unterminated script
30382 newline terminates command and variable
30384 2009-06-17 Vladimir Serbinenko <phcoder@gmail.com>
30386 avoid double grub_adjust_range call. Bug reported by David Simner
30388 * kern/disk.c (grub_disk_write): change to raw disk access before
30391 2009-06-17 Colin Watson <cjwatson@ubuntu.com>
30393 * util/elf/grub-mkimage.c (usage): Prefix each option line with two
30394 spaces, for the benefit of help2man.
30395 * util/i386/efi/grub-mkimage.c (usage): Likewise.
30397 2009-06-16 Pavel Roskin <proski@gnu.org>
30399 * kern/i386/halt.c: Include grub/machine/init.h.
30400 * kern/i386/reboot.c: Include grub/cpu/reboot.h.
30402 2009-06-16 Felix Zielcke <fzielcke@z-51.de>
30404 * util/grub.d/30_os-prober.in: Use ${root} in the generated
30405 drivemap menuentry.
30407 2009-06-16 James Jarvis <James.Jarvis@ed.ac.uk>
30409 * commands/help.c GRUB_MOD_INIT(echo): Fix the help output of
30412 2009-06-16 Pavel Roskin <proski@gnu.org>
30414 * boot/i386/pc/boot.S: Remove root_drive. Assert offset of
30415 boot_drive_check by using GRUB_BOOT_MACHINE_DRIVE_CHECK. Don't
30416 save %dx, we only need %dl and we never change it.
30417 * boot/i386/pc/cdboot.S: Don't set the root drive.
30418 * boot/i386/pc/pxeboot.S: Likewise.
30419 * include/grub/i386/pc/boot.h: Remove
30420 GRUB_BOOT_MACHINE_ROOT_DRIVE, adjust
30421 GRUB_BOOT_MACHINE_DRIVE_CHECK.
30422 * include/grub/i386/pc/kernel.h: Remove grub_root_drive.
30423 * kern/i386/pc/init.c (make_install_device): Remove references
30424 to grub_root_drive.
30425 * kern/i386/pc/startup.S: Likewise.
30426 * util/i386/pc/grub-setup.c (setup): Don't set root_drive.
30428 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30432 * commands/xnu_uuid.c: new file
30433 * conf/common.rmk (pkglib_MODULES): add xnu_uuid.mod
30434 (xnu_uuid_mod_SOURCES): new variable
30435 (xnu_uuid_mod_CFLAGS): likewise
30436 (xnu_uuid_mod_LDFLAGS): likewise
30437 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30438 * conf/i386-ieee1275.rmk: likewise
30439 * conf/i386-pc.rmk: likewise
30440 * conf/powerpc-ieee1275.rmk: likewise
30441 * conf/sparc64-ieee1275.rmk: likewise
30442 * util/grub.d/30_os-prober.in: use UUID for Mac OS X/Darwin
30444 2009-06-16 Pavel Roskin <proski@gnu.org>
30446 * configure.ac: Avoid '==' in test command, it's not portable.
30448 2009-06-16 Vladimir Serbinenko <phcoder@gmail.com>
30452 * commands/probe.c: new file
30453 * conf/common.rmk (pkglib_MODULES): add probe.mod
30454 (probe_mod_SOURCES): new variable
30455 (probe_mod_CFLAGS): likewise
30456 (probe_mod_LDFLAGS): likewise
30457 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/probe.c
30458 * conf/i386-ieee1275.rmk: likewise
30459 * conf/i386-pc.rmk: likewise
30460 * conf/powerpc-ieee1275.rmk: likewise
30461 * conf/sparc64-ieee1275.rmk: likewise
30463 2009-06-15 Vladimir Serbinenko <phcoder@gmail.com>
30465 Fix handling of string like \"hello\" and "a
30468 * script/sh/lexer.c (check_textstate): accept GRUB_PARSER_STATE_ESC
30469 (grub_script_yylex): fix parsing of quoting, escaping and newline
30471 2009-06-13 Vladimir Serbinenko <phcoder@gmail.com>
30473 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): fix partition
30476 2009-06-13 Jun Inoue <jun.lambda@gmail.com>
30478 * util/grub-mkconfig.in: Fix parsing of --output option.
30480 2009-06-12 Pavel Roskin <proski@gnu.org>
30482 * Makefile.in (pkgdata_SRCDIR): Remove. genmodsrc.sh and
30483 genmk.rb don't need to be generated or installed.
30485 2009-06-12 Vladimir Serbinenko <phcoder@gmail.com>
30487 * commands/i386/pc/drivemap_int13h.S: add more comments
30489 2009-06-11 Pavel Roskin <proski@gnu.org>
30491 * Makefile.in (uninstall): Uninstall manuals.
30493 * Makefile.in: Rename lib_DATA to lib_SCRIPTS, move it from
30494 PKGLIB to SCRIPTS. This fixes installation of grub-mkconfig_lib
30495 and update-grub_lib in two places.
30496 * conf/common.rmk: Rename lib_DATA to lib_SCRIPTS.
30498 * disk/usbms.c (grub_usbms_transfer): Initialize `err' to fix
30499 a compiler warning.
30501 * loader/i386/bsd.c (grub_freebsd_boot): Rename `entry' to
30502 `entry_lo' to fix variable shadowing.
30504 2009-06-11 Christian Franke <franke@computer.org>
30506 * kern/misc.c (__enable_execute_stack): Add missing return type
30507 to prevent gcc warning.
30509 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30511 * conf/i386-ieee1275.rmk (COMMON_LDFLAGS): Remove `-static -lgcc'.
30513 2009-06-11 Pavel Roskin <proski@gnu.org>
30515 * Makefile.in: Don't rely on any scripts being executable.
30516 Always use $(SHELL) to run shell scripts.
30518 * configure.ac: Always define ___main if using -nostdlib. This
30519 fixes tests on Cygwin.
30521 2009-06-11 Giuseppe Caizzone <acaizzo@gmail.com>
30525 * fs/udf.c (grub_udf_read_block): handle the fact that ad->length
30526 is in bytes and not in blocks
30528 2009-06-11 Pavel Roskin <proski@gnu.org>
30530 * kern/i386/halt.c (grub_halt): Make `i' unsigned to fix a
30533 2009-06-11 Felix Zielcke <fzielcke@z-51.de>
30535 * util/grub.d/30_os-prober.in: Fix a comment. Source
30536 ${libdir}/grub/grub-mkconfig_lib. Use prepare_grub_to_access_device
30537 to set the root device. Place drivemap command in the generated
30540 2009-06-11 Pavel Roskin <proski@gnu.org>
30542 * configure.ac: Remove host_m32. Issues with 64-bit utilities
30543 have long been resolved.
30545 2009-06-11 Colin Watson <cjwatson@ubuntu.com>
30547 * util/grub.d/10_linux.in: Capitalise "Linux".
30549 * util/grub-pe2elf.c (usage): Fix references to grub-editenv.
30551 2009-06-11 Pavel Roskin <proski@gnu.org>
30553 * kern/efi/efi.c (grub_exit): Add infinite loop at the end to
30554 fix a gcc warning and ensure that the function won't ever exit.
30556 * kern/i386/ieee1275/init.c: Add missing prototype for
30557 grub_stop_floppy().
30559 * loader/ieee1275/multiboot2.c [__i386__]: Include
30560 grub/cpu/multiboot.h.
30562 * term/i386/pc/serial.c (serial_translate_key_sequence): Avoid
30563 casts to short - they are not portable and cause warnings. Fix
30564 use of uninitialized values in input_buf. Use ARRAY_SIZE.
30566 2009-06-11 Vladimir Serbinenko <phcoder@gmail.com>
30570 * commands/i386/pc/drivemap.c (grub_get_root_biosnumber_drivemap):
30572 (grub_get_root_biosnumber_saved): new variable
30573 (GRUB_MOD_INIT): register grub_get_root_biosnumber_drivemap
30574 (GRUB_MOD_FINI): unregister grub_get_root_biosnumber_drivemap
30575 * commands/i386/pc/drivemap_int13h.S (grub_drivemap_handler): restore
30576 %dx after the call if necessary
30577 * conf/common.rmk (pkglib_MODULES): remove boot.mod
30578 (boot_mod_SOURCES): remove
30579 (boot_mod_CFLAGS): remove
30580 (boot_mod_LDFLAGS): remove
30581 * conf/i386-coreboot.rmk (pkglib_MODULES): add boot.mod
30582 (boot_mod_SOURCES): new variable
30583 (boot_mod_CFLAGS): likewise
30584 (boot_mod_LDFLAGS): likewise
30585 * conf/i386-efi.rmk: likewise
30586 * conf/i386-ieee1275.rmk: likewise
30587 * conf/i386-pc.rmk: likewise
30588 * conf/powerpc-ieee1275.rmk: likewise
30589 * conf/sparc64-ieee1275.rmk: likewise
30590 * conf/x86_64-efi.rmk: likewise
30591 * include/grub/i386/pc/biosnum.h: new file
30592 * lib/i386/pc/biosnum.c: likewise
30593 * loader/i386/bsd.c (grub_bsd_get_device): use grub_get_root_biosnumber
30594 * loader/i386/multiboot.c (grub_multiboot_get_bootdev): likewise
30595 * loader/i386/pc/chainloader.c (grub_chainloader_cmd): likewise
30597 2009-06-10 Pavel Roskin <proski@gnu.org>
30599 * io/gzio.c (test_header): Don't reuse one buffer for all data.
30600 Use separate variables. Read only the file size at the end, but
30601 not the checksum that we don't use.
30603 * kern/file.c (grub_file_read): Use void pointer for the buffer.
30604 Adjust all callers.
30606 * kern/ieee1275/openfw.c: Remove libc includes.
30607 * kern/ieee1275/cmain.c: Likewise.
30608 * include/grub/ieee1275/ieee1275.h: Likewise.
30610 * kern/i386/coreboot/init.c: Include grub/cpu/tsc.h to fix
30613 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30615 * Makefile.in: Remove all trailing whitespace.
30616 * conf/i386-pc.rmk: Likewise.
30617 * conf/powerpc-ieee1275.rmk: Likewise.
30618 * conf/sparc64-ieee1275.rmk: Likewise.
30619 * docs/grub.texi: Likewise.
30620 * docs/texinfo.tex: Likewise.
30621 * disk/fs_uuid.c: Likewise.
30622 * disk/lvm.c: Likewise.
30623 * disk/scsi.c: Likewise.
30624 * disk/ata.c: Likewise.
30625 * disk/ieee1275/ofdisk.c: Likewise.
30626 * disk/i386/pc/biosdisk.c: Likewise.
30627 * disk/host.c: Likewise.
30628 * disk/raid.c: Likewise.
30629 * disk/efi/efidisk.c: Likewise.
30630 * disk/usbms.c: Likewise.
30631 * disk/memdisk.c: Likewise.
30632 * disk/loopback.c: Likewise.
30633 * kern/powerpc/dl.c: Likewise.
30634 * kern/device.c: Likewise.
30635 * kern/dl.c: Likewise.
30636 * kern/sparc64/dl.c: Likewise.
30637 * kern/ieee1275/ieee1275.c: Likewise.
30638 * kern/term.c: Likewise.
30639 * kern/fs.c: Likewise.
30640 * kern/i386/dl.c: Likewise.
30641 * kern/i386/pc/startup.S: Likewise.
30642 * kern/i386/pc/init.c: Likewise.
30643 * kern/i386/pc/mmap.c: Likewise.
30644 * kern/i386/pc/lzo1x.S: Likewise.
30645 * kern/i386/ieee1275/init.c: Likewise.
30646 * kern/i386/realmode.S: Likewise.
30647 * kern/i386/tsc.c: Likewise.
30648 * kern/partition.c: Likewise.
30649 * kern/corecmd.c: Likewise.
30650 * kern/file.c: Likewise.
30651 * kern/efi/efi.c: Likewise.
30652 * kern/efi/init.c: Likewise.
30653 * kern/efi/mm.c: Likewise.
30654 * kern/main.c: Likewise.
30655 * kern/err.c: Likewise.
30656 * kern/env.c: Likewise.
30657 * kern/disk.c: Likewise.
30658 * kern/generic/millisleep.c: Likewise.
30659 * kern/generic/rtc_get_time_ms.c: Likewise.
30660 * kern/misc.c: Likewise.
30661 * kern/parser.c: Likewise.
30662 * genmk.rb: Likewise.
30663 * configure.ac: Likewise.
30664 * boot/i386/pc/diskboot.S: Likewise.
30665 * boot/i386/pc/pxeboot.S: Likewise.
30666 * boot/i386/pc/boot.S: Likewise.
30667 * boot/i386/pc/lnxboot.S: Likewise.
30668 * boot/i386/pc/cdboot.S: Likewise.
30669 * parttool/pcpart.c: Likewise.
30670 * video/readers/tga.c: Likewise.
30671 * video/video.c: Likewise.
30672 * video/bitmap.c: Likewise.
30673 * lib/envblk.c: Likewise.
30674 * lib/i386/setjmp.S: Likewise.
30675 * fs/xfs.c: Likewise.
30676 * fs/afs.c: Likewise.
30677 * fs/fat.c: Likewise.
30678 * fs/ntfs.c: Likewise.
30679 * fs/udf.c: Likewise.
30680 * fs/affs.c: Likewise.
30681 * fs/iso9660.c: Likewise.
30682 * fs/hfs.c: Likewise.
30683 * fs/fshelp.c: Likewise.
30684 * fs/ext2.c: Likewise.
30685 * fs/jfs.c: Likewise.
30686 * fs/reiserfs.c: Likewise.
30687 * fs/hfsplus.c: Likewise.
30688 * fs/minix.c: Likewise.
30689 * fs/cpio.c: Likewise.
30690 * fs/sfs.c: Likewise.
30691 * fs/ufs.c: Likewise.
30692 * efiemu/prepare.c: Likewise.
30693 * efiemu/loadcore_common.c: Likewise.
30694 * efiemu/runtime/efiemu.sh: Likewise.
30695 * efiemu/runtime/efiemu.S: Likewise.
30696 * efiemu/runtime/efiemu.c: Likewise.
30697 * efiemu/pnvram.c: Likewise.
30698 * efiemu/main.c: Likewise.
30699 * efiemu/i386/pc/cfgtables.c: Likewise.
30700 * efiemu/i386/loadcore64.c: Likewise.
30701 * efiemu/i386/loadcore32.c: Likewise.
30702 * efiemu/loadcore.c: Likewise.
30703 * efiemu/symbols.c: Likewise.
30704 * efiemu/mm.c: Likewise.
30705 * include/grub/autoefi.h: Likewise.
30706 * include/grub/datetime.h: Likewise.
30707 * include/grub/term.h: Likewise.
30708 * include/grub/hfs.h: Likewise.
30709 * include/grub/lvm.h: Likewise.
30710 * include/grub/i386/tsc.h: Likewise.
30711 * include/grub/i386/linux.h: Likewise.
30712 * include/grub/i386/xnu.h: Likewise.
30713 * include/grub/i386/efiemu.h: Likewise.
30714 * include/grub/i386/pc/biosdisk.h: Likewise.
30715 * include/grub/i386/pc/memory.h: Likewise.
30716 * include/grub/i386/pc/vbe.h: Likewise.
30717 * include/grub/parttool.h: Likewise.
30718 * include/grub/video.h: Likewise.
30719 * include/grub/memory.h: Likewise.
30720 * include/grub/fs.h: Likewise.
30721 * include/grub/partition.h: Likewise.
30722 * include/grub/xnu.h: Likewise.
30723 * include/grub/efi/api.h: Likewise.
30724 * include/grub/efi/pe32.h: Likewise.
30725 * include/grub/efi/memory.h: Likewise.
30726 * include/grub/multiboot.h: Likewise.
30727 * include/grub/usbdesc.h: Likewise.
30728 * include/grub/multiboot2.h: Likewise.
30729 * include/grub/acpi.h: Likewise.
30730 * include/grub/efiemu/efiemu.h: Likewise.
30731 * include/grub/disk.h: Likewise.
30732 * include/grub/ieee1275/ieee1275.h: Likewise.
30733 * include/grub/net.h: Likewise.
30734 * include/grub/machoload.h: Likewise.
30735 * include/grub/macho.h: Likewise.
30736 * include/multiboot.h: Likewise.
30737 * genmoddep.awk: Likewise.
30738 * normal/main.c: Likewise.
30739 * normal/menu_entry.c: Likewise.
30740 * normal/menu_viewer.c: Likewise.
30741 * normal/completion.c: Likewise.
30742 * normal/cmdline.c: Likewise.
30743 * normal/misc.c: Likewise.
30744 * normal/datetime.c: Likewise.
30745 * bus/usb/usbtrans.c: Likewise.
30746 * bus/usb/ohci.c: Likewise.
30747 * bus/usb/uhci.c: Likewise.
30748 * bus/usb/usb.c: Likewise.
30749 * mmap/efi/mmap.c: Likewise.
30750 * mmap/i386/pc/mmap_helper.S: Likewise.
30751 * mmap/i386/pc/mmap.c: Likewise.
30752 * mmap/i386/mmap.c: Likewise.
30753 * mmap/i386/uppermem.c: Likewise.
30754 * mmap/mmap.c: Likewise.
30755 * commands/acpi.c: Likewise.
30756 * commands/echo.c: Likewise.
30757 * commands/blocklist.c: Likewise.
30758 * commands/loadenv.c: Likewise.
30759 * commands/usbtest.c: Likewise.
30760 * commands/boot.c: Likewise.
30761 * commands/parttool.c: Likewise.
30762 * commands/search.c: Likewise.
30763 * commands/cat.c: Likewise.
30764 * commands/i386/pc/play.c: Likewise.
30765 * commands/i386/pc/drivemap.c: Likewise.
30766 * commands/i386/pc/vbeinfo.c: Likewise.
30767 * commands/i386/pc/acpi.c: Likewise.
30768 * commands/i386/pc/vbetest.c: Likewise.
30769 * commands/ls.c: Likewise.
30770 * commands/cmp.c: Likewise.
30771 * commands/test.c: Likewise.
30772 * commands/efi/acpi.c: Likewise.
30773 * commands/gptsync.c: Likewise.
30774 * commands/help.c: Likewise.
30775 * partmap/amiga.c: Likewise.
30776 * partmap/apple.c: Likewise.
30777 * partmap/acorn.c: Likewise.
30778 * partmap/pc.c: Likewise.
30779 * partmap/sun.c: Likewise.
30780 * partmap/gpt.c: Likewise.
30781 * script/sh/lexer.c: Likewise.
30782 * script/sh/function.c: Likewise.
30783 * font/font.c: Likewise.
30784 * font/font_cmd.c: Likewise.
30785 * loader/powerpc/ieee1275/linux.c: Likewise.
30786 * loader/efi/chainloader.c: Likewise.
30787 * loader/multiboot_loader.c: Likewise.
30788 * loader/macho.c: Likewise.
30789 * loader/i386/multiboot.c: Likewise.
30790 * loader/i386/linux.c: Likewise.
30791 * loader/i386/pc/linux.c: Likewise.
30792 * loader/i386/pc/multiboot2.c: Likewise.
30793 * loader/i386/pc/chainloader.c: Likewise.
30794 * loader/i386/pc/xnu.c: Likewise.
30795 * loader/i386/bsd_trampoline.S: Likewise.
30796 * loader/i386/efi/linux.c: Likewise.
30797 * loader/i386/multiboot_elfxx.c: Likewise.
30798 * loader/i386/bsd_helper.S: Likewise.
30799 * loader/i386/bsd.c: Likewise.
30800 * loader/i386/linux_trampoline.S: Likewise.
30801 * loader/i386/xnu_helper.S: Likewise.
30802 * loader/i386/xnu.c: Likewise.
30803 * loader/i386/bsd_pagetable.c: Likewise.
30804 * loader/i386/multiboot_helper.S: Likewise.
30805 * loader/xnu.c: Likewise.
30806 * loader/xnu_resume.c: Likewise.
30807 * io/gzio.c: Likewise.
30808 * term/efi/console.c: Likewise.
30809 * term/terminfo.c: Likewise.
30810 * term/ieee1275/ofconsole.c: Likewise.
30811 * term/i386/pc/serial.c: Likewise.
30812 * term/i386/pc/vesafb.c: Likewise.
30813 * term/i386/pc/vga.c: Likewise.
30814 * term/usb_keyboard.c: Likewise.
30815 * term/gfxterm.c: Likewise.
30816 * aclocal.m4: Likewise.
30817 * util/lvm.c: Likewise.
30818 * util/grub.d/30_os-prober.in: Likewise.
30819 * util/grub.d/10_hurd.in: Likewise.
30820 * util/console.c: Likewise.
30821 * util/grub-macho2img.c: Likewise.
30822 * util/grub-probe.c: Likewise.
30823 * util/hostfs.c: Likewise.
30824 * util/i386/pc/grub-mkimage.c: Likewise.
30825 * util/i386/pc/grub-setup.c: Likewise.
30826 * util/i386/efi/grub-mkimage.c: Likewise.
30827 * util/grub-mkconfig.in: Likewise.
30828 * util/raid.c: Likewise.
30829 * util/resolve.c: Likewise.
30830 * util/grub-mkdevicemap.c: Likewise.
30831 * util/grub-emu.c: Likewise.
30832 * util/getroot.c: Likewise.
30833 * util/hostdisk.c: Likewise.
30834 * util/usb.c: Likewise.
30835 * util/grub-editenv.c: Likewise.
30836 * util/misc.c: Likewise.
30838 2009-06-10 Felix Zielcke <fzielcke@z-51.de>
30840 * gendistlist.sh (EXTRA_DISTFILES): Add `genhandlerlist.sh' and
30841 `genparttoollist.sh'.
30842 (DISTDIRS): Add `efiemu', `mmap', `parttool' and `script'.
30843 Add `*.sh' to the list find searches for and change `mdate.sh'
30846 2009-06-10 Pavel Roskin <proski@gnu.org>
30848 * include/grub/multiboot2.h: Provide compatibility defines for
30850 * include/multiboot2.h: Include stdint.h only if needed, using
30852 * loader/i386/pc/multiboot2.c: Include multiboot2.h after
30854 * loader/ieee1275/multiboot2.c: Likewise.
30855 * loader/multiboot2.c: Likewise.
30856 * loader/multiboot_loader.c: Likewise.
30858 * configure.ac: Use -nostdlib when probing for the target. It
30859 should not be required to have libc for the target.
30861 * configure.ac: Remove checks for __bswapsi2 and __bswapdi2,
30862 they fail without libc headers for the target.
30863 * include/grub/powerpc/libgcc.h: Use weak attribute for all
30865 * include/grub/sparc64/libgcc.h: Likewise. Don't use
30866 preprocessor conditionals.
30868 * conf/common.rmk: Compile tar.mod from tar.c, not cpio.c. The
30869 build system doesn't need to be aware of the tar.c internals.
30871 2009-06-09 Michel Hermier <michel.hermier@gmail.com>
30873 * fs/i386/pc/pxe.c (grub_pxefs_read): Fix returned values.
30875 2009-06-09 Robert Millan <rmh.grub@aybabtu.com>
30877 * util/deviceiter.c (grub_util_iterate_devices): Increase number of
30878 disk limit to 26 for IDE, Virtio, Xen and SCSI.
30880 2009-06-09 Felix Zielcke <fzielcke@z-51.de>
30882 * util/i386/pc/grub-install.in: Change the error message if UUIDs
30883 aren't available if ata.mod gets used.
30885 2009-06-09 Oliver Henshaw <oliver.henshaw@gmail.com>
30887 * bus/usb/ohci.c (grub_ohci_pci_iter): Link struct only after
30888 initialising controller.
30889 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30891 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30893 * util/i386/pc/grub-install.in: Add a parameter --disk-module
30894 to choose between ata and biosdisk module on i386-pc.
30896 2009-06-08 Oliver Henshaw <oliver.henshaw@gmail.com>
30898 * bus/usb/ohci.c (grub_ohci_pci_iter): Define the Class,
30899 Subclass and Programming Interface fields in terms of the 3 byte
30900 Class Code register.
30901 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
30903 * bus/usb/ohci.c (grub_ohci_pci_iter): Check that programming
30904 interface is OHCI. Add grub_dprintf for symmetry with
30906 * bus/usb/uhci.c (grub_uhci_pci_iter): Check that programming
30907 interface is UHCI. Add interf variable for programming
30908 interface. Print interface with class/subclass.
30910 * bus/usb/ohci.c: Set interf with correct field.
30912 * bus/usb/uhci.c: Remove unneeded doubled lines.
30913 * bus/usb/ohci.c: Likewise. Change interf to grub_uint32_t.
30914 Remove whitespace inside comment.
30916 2009-06-08 Robert Millan <rmh.grub@aybabtu.com>
30918 * loader/i386/linux.c (grub_cmd_linux): When processing `vga=', use
30919 as fallback an equivalent option without depth.
30921 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30923 Not fail if unable to retrieve C/H/S on LBA disks
30925 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): behave gracefully
30926 if unable to retrieve C/H/S on LBA disks
30928 2009-06-08 Pavel Roskin <proski@gnu.org>
30930 * fs/hfs.c (grub_hfs_find_dir): Use union to avoid a warning
30933 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30935 * Makefile.in (uninstall): Remove all $lib_DATA files.
30937 2009-06-08 Vladimir Serbinenko <phcoder@gmail.com>
30939 Bugfix: install on partitionless device
30941 * util/hostdisk.c (grub_util_biosdisk_get_grub_dev): check if os_dev
30944 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30946 * Makefile.in (uninstall): Remove all $include_DATA files.
30948 2009-06-08 Felix Zielcke <fzielcke@z-51.de>
30950 * commands/true.c: New file. Implement the true and false commands.
30951 * conf/common.rmk.c (pkglib_MODULES): Add `true.mod'.
30952 (true_mod_SOURCES): New variable.
30953 (true_mod_CFLAGS): Likewise.
30954 (true_mod_LDFLAGS): Likewise.
30956 2009-06-05 Colin D Bennett <colin@gibibit.com>
30958 Optimized font character lookup using binary search instead of linear
30959 search. Fonts now are required to have the character index ordered by
30962 * font/font.c (load_font_index): Verify that fonts have ordered
30964 (find_glyph): Use binary search instead of linear search to find a
30965 character in a font.
30967 2009-06-05 Michael Scherer <misc@mandriva.org>
30969 * fs/hfsplus.c (grub_hfsplus_mount): Determine if the filesystem
30970 uses case sensitive btree.
30971 (grub_hfsplus_iterate_dir): Use GRUB_FSHELP_CASE_INSENSITIVE
30972 only for case insensitive filesystems.
30974 2009-06-05 Vladimir Serbinenko <phcoder@gmail.com>
30976 * conf/i386-pc.rmk (efiemu_mod_CFLAGS): remove -Werror -Wall
30977 * conf/common.rmk (search_mod_CFLAGS): likewise
30979 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30981 * kern/i386/pc/startup.S [APPLE_CC]: block of nops to
30982 compensate a compiler bug
30984 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30986 * include/grub/term.h (GRUB_TERM_BACKSPACE): explicitly define as 8
30989 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30991 Definitions for creating asm symbols with Apple's CC
30993 * include/grub/symbol.h [APPLE_CC] (FUNCTION): new macro
30994 [APPLE_CC] (VARIABLE): likewise
30996 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
30998 Disable lnxboot.img when compiled
31001 * conf/i386-pc.rmk (pkglib_IMAGES): remove lnxboot.img
31002 pkglib_IMAGES [! TARGET_APPLE_CC] (pkglib_IMAGES): add lnxboot.img
31003 * boot/i386/pc/lnxboot.S [APPLE_CC]: define an #error
31004 [! APPLE_CC] (CODE_LENG): skip
31005 [! APPLE_CC] (setup_sects): likewise
31006 [! APPLE_CC]: skip filling
31008 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31010 Address in trampolines based on 32-bit registers when compiled
31013 * loader/i386/xnu_helper.S [APPLE_CC]: use 32-bit registers
31015 * loader/i386/linux_trampoline.S [APPLE_CC]: likewise
31017 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31019 Avoid aliases when compiling with Apple's CC for PCBIOS machine
31021 * kern/misc.c [APPLE_CC] (memcpy): new function
31022 [APPLE_CC] (memmove): likewise
31023 [APPLE_CC && !GRUB_UTIL] (grub_err_printf): likewise
31024 (memcpy): define alias conditionally on !APPLE_CC
31027 * include/grub/misc.h (memove): don't define when both GRUB_UTIL and
31028 APPLE_CC are defined
31029 * include/grub/list.h [APPLE_CC] (grub_assert_fail): new function
31030 (grub_assert_fail): make prototype conditional
31032 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31034 Use grub-macho2img when compiling with Apple's CC for PCBIOS machine
31036 * conf/common.rmk (bin_UTILITIES): add (on false on condition)
31038 (CLEANFILES): add grub-macho2img
31039 (grub_macho2img_SOURCES): new variable
31040 * kern/i386/pc/startup.S (bss_start): new variable
31041 (bss_end): likewise
31042 * genmk.rb: use grub-macho2img for *.img when compiled with Apple's CC
31043 * util/grub-macho2img.c: new file
31045 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31047 Use objconv when compiling with Apple's CC
31049 * conf/i386-pc.rmk (efiemu32.o): use OBJCONV if defined
31050 (efiemu64.o): likewise
31051 (efiemu64_c.o): omit -mcmodel=large and add -DAPPLE_CC=1
31052 when compiling with Apple's CC
31053 (efiemu64_s.o): likewise
31054 * configure.ac: check for objconv when compiling with Apple's CC
31055 * genmk.rb: use objconv for modules when compiled with Apple's CC
31057 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31059 Define segment as well as section when compiling with
31062 * efiemu/runtime/efiemu.c (PHYSICAL_ATTRIBUTE): new definition
31063 (efiemu_set_virtual_address_map): declare with PHYSICAL_ATTRIBUTE
31064 (efiemu_convert_pointer): likewise
31065 (efiemu_set_virtual_address_map): likewise
31066 (efiemu_convert_pointer): likewise
31067 (efiemu_getcrc32): likewise
31068 (init_crc32_table): likewise
31069 (reflect): likewise
31070 * include/grub/dl.h (GRUB_MOD_NAME): define segment with Apple's CC
31071 (GRUB_MOD_DEP): likewise
31073 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31075 Allow a compilation without -mcmodel=large
31077 * kern/efi/mm.c (grub_efi_allocate_pages): don't allocate >4GiB
31078 when compiled without -mcmodel=large
31079 (filter_memory_map): remove memory post 4 GiB when compiled
31080 without -mcmodel=large
31081 * configure.ac: fail gracefully and add -DMCMODEL_SMALL=1 to
31082 TARGET_CFLAGS when -mcmodel=large isn't supported
31084 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31086 Remove nested functions in efiemu core
31088 * efiemu/runtime/efiemu.c (reflect): make static instead of nested
31090 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31092 Avoid clobbering %ebx/%rbx in inline assembly with Apple's CC
31094 * efiemu/runtime/efiemu.c (write_cmos): use %cl instead of %bl as
31096 * include/grub/i386/tsc.h (grub_get_tsc): restore %rbx/%ebx when
31098 (grub_cpu_is_tsc_supported): likewise
31099 * loader/i386/xnu.c (guessfsb): restore %rbx/%ebx in inline assembly
31101 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31103 Absolute addressing through constant with Apple's cc
31105 * kern/i386/pc/startup.S: Define necessary constants
31106 and address through it when using ABS with Apple's CC
31107 * boot/i386/pc/diskboot.S: likewise
31108 * boot/i386/pc/boot.S: likewise
31109 * boot/i386/pc/lnxboot.S: likewise
31110 * boot/i386/pc/cdboot.S: likewise
31111 * mmap/i386/pc/mmap_helper.S: likewise
31112 * commands/i386/pc/drivemap_int13h.S: likewise
31114 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31116 Check if compiler is apple cc
31118 * Makefile.in (ASFLAGS): new variable
31119 (TARGET_ASFLAGS): likewise
31120 (TARGET_MODULE_FORMAT): likewise
31121 (TARGET_APPLE_CC): likewise
31122 (OBJCONV): likewise
31123 (TARGET_IMG_CFLAGS): likewise
31124 (TARGET_CPPFLAGS): add includedir
31125 * configure.ac: call grub_apple_cc and grub_apple_target_cc
31126 (TARGET_IMG_LDFLAGS): Add -Wl,-Ttext,. All users updated
31127 Check for linker script only if compiler isn't Apple's CC
31128 (TARGET_MODULE_FORMAT): set
31129 (TARGET_APPLE_CC): likewise
31130 (TARGET_ASFLAGS): likewise
31131 (ASFLAGS): likewise
31132 Check for objcopy only if compiler isn't Apple's CC
31133 Check for BSS symbol only if compiler isn't Apple's CC
31134 * genmk.rb: adapt nm options if we use Apple's utils
31135 * aclocal.m4 (grub_apple_cc): new test
31136 (grub_apple_target_cc): likewise
31138 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31140 Simplify sed expressions and improve awk
31142 * Makefile.in (install-local): simplify sed expression
31143 * gencmdlist.sh: likewise
31144 * genmoddep.awk: avoid adding module as a dependency of itself
31146 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31148 Add missing start symbols
31150 * boot/i386/pc/boot.S: add start
31151 * boot/i386/pc/pxeboot.S: likewise
31153 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31155 Fix wrong assumptions with grub-mkimage on EFI
31157 * i386/efi/grub-mkimage.c (read_kernel_module): don't write prefix here
31158 (relocate_addresses): consider both r_addend and value at offset
31159 (make_mods_section): zerofill modinfo and header
31160 (convert_elf): write prefix here
31162 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31164 Use .asciz instead of .string
31166 * i386/pc/diskboot.S: use .asciz instead of .string
31167 * i386/pc/boot.S: likewise
31168 * include/grub/dl.h (GRUB_MOD_DEP): likewise
31169 (GRUB_MOD_NAME): likewise
31171 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31175 * commands/videotest.c (grub_cmd_videotest): use grub_video_set_mode
31176 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_PURE_TEXT): new definition
31177 (grub_video_setup): remove
31178 (grub_video_set_mode): new prototype
31179 * loader/i386/linux.c (DEFAULT_VIDEO_MODE): new definition
31181 (linux_vesafb_res): compile only on PCBIOS
31182 (grub_linux_boot): support gfxpayload
31183 * loader/i386/pc/xnu.c (video_hook): new function
31184 (grub_xnu_set_video): support gfxpayload
31185 * term/gfxterm.c (DEFAULT_VIDEO_WIDTH): removed
31186 (DEFAULT_VIDEO_HEIGHT): likewise
31187 (DEFAULT_VIDEO_FLAGS): likewise
31188 (DEFAULT_VIDEO_MODE): new definition
31189 (video_hook): new function
31190 (grub_gfxterm_init): use grub_video_set_mode
31191 * util/grub.d/30_os-prober.in: remove explicit modesetting before
31193 * video/video.c (grub_video_setup): removed
31194 (grub_video_set_mode): new function based on grub_gfxterm_init and
31197 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31199 Avoid calling biosdisk in drivemap
31201 * commands/i386/pc/drivemap.c (parse_biosdisk): remove
31202 (revparse_biosdisk): likewise
31203 (list_mappings): derive name from id directly
31204 (grub_cmd_drivemap): use tryparse_diskstring
31206 2009-06-04 Vladimir Serbinenko <phcoder@gmail.com>
31210 * include/grub/script_sh.h (grub_script_cmdline): remove cmdline
31211 (grub_lexer_param): add tokenonhold
31212 (grub_script_create_cmdline): remove cmdline. All callers updated
31213 (grub_script_function_create): make functionname
31214 grub_script_arg. All callers updated
31215 (grub_script_execute_argument_to_string): new prototype
31216 * kern/parser.c (state_transitions): reorder
31217 (grub_parser_cmdline_state): fix a bug and make more compact
31218 * script/sh/execute.c (grub_script_execute_argument_to_string):
31220 (grub_script_execute_cmdline): use new format
31221 * script/sh/function.c (grub_script_function_create): make functionname
31222 grub_script_arg. All callers updated
31223 * script/sh/lexer.c (grub_script_lexer_init): initialize tokenonhold
31224 (grub_script_yylex): remove
31225 (grub_script_yylex2): renamed to ...
31226 (grub_script_yylex): ...renamed
31227 parse the expressions like a${b}c
31228 * script/sh/parser.y (GRUB_PARSER_TOKEN_ARG): new typed terminal
31229 (GRUB_PARSER_TOKEN_VAR): remove
31230 (GRUB_PARSER_TOKEN_NAME): likewise
31231 ("if"): declare as typeless
31232 ("while"): likewise
31233 ("function"): likewise
31238 (argument): likewise
31239 (script): accept empty scripts and make exit on error
31240 (arguments): use GRUB_PARSER_TOKEN_ARG
31241 (function): likewise
31242 (command): move error handling to script
31243 (menuentry): move grub_script_lexer_ref before
31244 * script/sh/script.c (grub_script_create_cmdline): remove cmdline
31245 argument. All callers updated
31247 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31249 Prevent GRUB from probing floppies during boot.
31251 * conf/common.rmk (search_mod_CFLAGS): Use `-Werror -Wall'.
31252 * commands/search.c (options): Add --no-floppy.
31253 (search_fs, search_file, grub_cmd_search): Support --no-floppy.
31254 * util/grub-mkconfig_lib.in (prepare_grub_to_access_device): Use
31255 --no-floppy when searching for UUIDs.
31257 2009-06-04 Robert Millan <rmh.grub@aybabtu.com>
31259 Simplify the code duplication in commands/search.c.
31261 * commands/search.c (search_label, search_fs_uuid): Merge into ...
31262 (search_fs): ... this. Update all users.
31264 2009-06-03 Felix Zielcke <fzielcke@z-51.de>
31266 * util/grub-mkconfig.in (update_grub_dir): Rename to grub_mkconfig_dir.
31268 2009-05-28 Pavel Roskin <proski@gnu.org>
31270 * Makefile.in: Don't use "cp -d", it doesn't work on FreeBSD.
31271 Remove the original symlink explicitly.
31273 * fs/hfs.c (grub_hfs_find_dir): Skip sequences of slashes, not
31274 just one slash. That's how grub_fshelp_find_file() does it.
31276 2009-05-26 Pavel Roskin <proski@gnu.org>
31278 * genmk.rb: Avoid shadowing variable `s', rename the outer `s'
31281 * util/getroot.c (grub_util_get_dev_abstraction): Mark os_dev as
31284 2009-05-25 Christian Franke <franke@computer.org>
31286 * disk/ata.c (grub_ata_wait_not_busy): Add debug output of status
31288 (grub_atapi_identify): Add wait after drive select.
31289 (grub_ata_identify): Do more strict status register check before
31290 calling grub_atapi_identify (). Suppress error message if status
31291 register is 0x00 after command failure. Add status register
31292 check after PIO read to avoid bogus identify due to stuck DRQ.
31293 Thanks to Pavel Roskin for testing.
31294 (grub_device_initialize): Remove unsafe status register check.
31295 Thanks to 'phcoder' for problem report and patch.
31296 Prevent sign extension in debug message.
31298 2009-05-23 Colin D Bennett <colin@gibibit.com>
31300 Cleaned up `include/grub/normal.h'. Grouped prototypes by
31301 definition file, and functions defined in `normal/menu.c' have had
31302 their prototypes moved to `include/grub/menu.h' for consistency.
31304 * include/grub/menu.h (grub_menu_execute_callback): Added; moved
31306 (grub_menu_get_entry): Likewise.
31307 (grub_menu_get_timeout): Likewise.
31308 (grub_menu_set_timeout): Likewise.
31309 (grub_menu_execute_entry): Likewise.
31310 (grub_menu_execute_with_fallback): Likewise.
31311 (grub_menu_entry_run): Likewise.
31313 * include/grub/normal.h: Re-ordered and grouped function
31314 prototypes by file that the function is defined in.
31315 (grub_menu_execute_callback): Removed; moved to menu.h.
31316 (grub_menu_get_entry): Likewise.
31317 (grub_menu_get_timeout): Likewise.
31318 (grub_menu_set_timeout): Likewise.
31319 (grub_menu_execute_entry): Likewise.
31320 (grub_menu_execute_with_fallback): Likewise.
31321 (grub_menu_entry_run): Likewise.
31322 (grub_menu_addentry): Renamed from this ...
31323 (grub_normal_add_menu_entry): ... to this.
31325 * normal/main.c (grub_menu_addentry): Renamed from this ...
31326 (grub_normal_add_menu_entry): ... to this.
31328 * script/sh/execute.c (grub_script_execute_menuentry): Update
31329 reference to renamed grub_menu_addentry function.
31331 2009-05-23 Felix Zielcke <fzielcke@z-51.de>
31333 * commands/i386/pc/drivemap.c (MODNAME): Remove. Update all users.
31335 2009-05-22 Pavel Roskin <proski@gnu.org>
31337 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Remove.
31338 * configure.ac: Don't call grub_I386_CHECK_REGPARM_BUG. Define
31339 NESTED_FUNC_ATTR using AH_BOTTOM. Use regparm(1) only when
31340 compiling for the i386 targets, but not for the utilities.
31342 * include/grub/i386/pc/kernel.h (grub_boot_drive): Change type
31344 (grub_root_drive): Likewise.
31345 * kern/i386/pc/startup.S (grub_boot_drive): Change size to byte,
31347 (grub_root_drive): Change size to byte.
31348 (grub_start_addr): Remove.
31349 (grub_end_addr): Likewise.
31350 (grub_apm_bios_info): Likewise.
31352 2009-05-21 Felix Zielcke <fzielcke@z-51.de>
31354 * normal/i386: Remove.
31355 * normal/powerpc: Likewise.
31356 * normal/sparc64: Likewise.
31357 * normal/x86_64: Likewise.
31359 2009-05-19 Vladimir Serbinenko <phcoder@gmail.com>
31361 * conf/x86_64-efi.rmk (linux_mod_ASFLAGS): Add missing variable
31362 * loader/i386/linux_trampoline.S: Fix indentation
31363 * loader/i386/xnu_helper.S: Likewise
31365 2009-05-18 Colin D Bennett <colin@gibibit.com>
31367 Display error messages when parsing a Lua statement fails.
31368 Previously, executing a syntactically invalid statement like
31369 ")foo" or "bar;" would silently fail.
31371 * script/lua/grub_main.c (handle_lua_error): New function.
31372 (grub_lua_parse_line): Improved reporting of Lua parser and
31375 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31377 Remove -Werror which causes build to fail on some systems
31379 * conf/i386-pc.rmk (xnu_mod_CFLAGS): Remove -Werror -Wall
31380 * conf/i386-efi.rmk (xnu_mod_CFLAGS): Likewise
31381 * conf/x86_64-efi.rmk (xnu_mod_CFLAGS): Likewise
31383 2009-05-17 Vladimir Serbinenko <phcoder@gmail.com>
31385 trampoline for linux on 64-bit platform
31387 * conf/x86_64-efi.rmk (linux_mod_SOURCES): added
31388 loader/i386/efi/linux_trampoline.S
31389 * include/grub/x86_64/efi/loader.h (grub_linux_real_boot): removed
31391 * kern/x86_64/efi/startup.S (grub_linux_real_boot): moved from
31393 * loader/i386/linux_trampoline.S: moved here
31394 * loader/i386/efi/linux.c (allocate_pages): reserve space for
31396 (jumpvector): removed
31397 (grub_linux_trampoline_start): new declaration
31398 (grub_linux_trampoline_end): likewise
31399 (grub_linux_boot): use trampoline when on 64-bit platform
31400 * loader/i386/linux.c: likewise
31402 2009-05-16 Pavel Roskin <proski@gnu.org>
31404 * script/lua/grub_lib.c (grub_lua_getenv): Make name and value
31405 const to avoid a warning.
31406 (grub_lua_setenv): Likewise.
31407 * script/lua/grub_main.c (grub_lua_parse_line): Use size_t for
31408 lmsg to fix a warning.
31410 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31412 * conf/i386.rmk (setjmp_mod_CFLAGS): Rename to ...
31413 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31414 * conf/x86_64-efi.rmk (setjmp_mod_CFLAGS): Rename to ...
31415 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31416 * conf/powerpc-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31417 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31418 * conf/sparc64-ieee1275.rmk (setjmp_mod_CFLAGS): Rename to ...
31419 (setjmp_mod_ASFLAGS): ... this. Set to $(COMMON_ASFLAGS).
31421 2009-05-16 Felix Zielcke <fzielcke@z-51.de>
31423 * util/grub-mkconfig.in: Export GRUB_TERMINAL_INPUT.
31425 2009-05-16 Bean <bean123ch@gmail.com>
31427 * conf/common.rmk (pkglib_MODULES): Add lua.mod.
31428 (lua_mod_SOURCES): New variable.
31429 (lua_mod_CFLAGS): Likewise.
31430 (lua_mod_LDFLAGS): Likewise.
31432 * conf/i386.rmk (pkglib_MODULES): Add setjmp.mod.
31433 (setjmp_mod_SOURCES): New variable.
31434 (setjmp_mod_CFLAGS): Likewise.
31435 (setjmp_LDFLAGS): Likewise.
31437 * conf/x86_64-efi.rmk (pkglib_MODULES): Add setjmp.mod.
31438 (setjmp_mod_SOURCES): New variable.
31439 (setjmp_mod_CFLAGS): Likewise.
31440 (setjmp_LDFLAGS): Likewise.
31442 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31443 (setjmp_mod_SOURCES): New variable.
31444 (setjmp_mod_CFLAGS): Likewise.
31445 (setjmp_LDFLAGS): Likewise.
31447 * conf/sparc64-ieee1275.rmk (pkglib_MODULES): Add setjmp.mod.
31448 (setjmp_mod_SOURCES): New variable.
31449 (setjmp_mod_CFLAGS): Likewise.
31450 (setjmp_LDFLAGS): Likewise.
31452 * normal/i386/setjmp.S: Moved from here ...
31453 * lib/i386/setjmp.S: ... Moved here
31454 * normal/x86_64/setjmp.S: Moved from here ...
31455 * lib/x86_64/setjmp.S: ... Moved here
31456 * normal/powerpc/setjmp.S: Moved from here ...
31457 * lib/powerpc/setjmp.S: ... Moved here
31458 * normal/sparc64/setjmp.S: Moved from here ...
31459 * lib/sparc64/setjmp.S: ... Moved here
31461 * include/grub/i386/setjmp.h (grub_setjmp): Don't use attribute
31462 returns_twice in mingw.
31464 * script/lua/grub_lib.c: New file.
31465 * script/lua/grub_lib.h: Likewise.
31466 * script/lua/grub_lua.h: Likewise.
31467 * script/lua/grub_main.c: Likewise.
31468 * script/lua/lapi.c: Likewise.
31469 * script/lua/lapi.h: Likewise.
31470 * script/lua/lauxlib.c: Likewise.
31471 * script/lua/lauxlib.h: Likewise.
31472 * script/lua/lbaselib.c: Likewise.
31473 * script/lua/lcode.c: Likewise.
31474 * script/lua/lcode.h: Likewise.
31475 * script/lua/ldblib.c: Likewise.
31476 * script/lua/ldebug.c: Likewise.
31477 * script/lua/ldebug.h: Likewise.
31478 * script/lua/ldo.c: Likewise.
31479 * script/lua/ldo.h: Likewise.
31480 * script/lua/ldump.c: Likewise.
31481 * script/lua/lfunc.c: Likewise.
31482 * script/lua/lfunc.h: Likewise.
31483 * script/lua/lgc.c: Likewise.
31484 * script/lua/lgc.h: Likewise.
31485 * script/lua/linit.c: Likewise.
31486 * script/lua/liolib.c: Likewise.
31487 * script/lua/llex.c: Likewise.
31488 * script/lua/llex.h: Likewise.
31489 * script/lua/llimits.h: Likewise.
31490 * script/lua/lmathlib.c: Likewise.
31491 * script/lua/lmem.c: Likewise.
31492 * script/lua/lmem.h: Likewise.
31493 * script/lua/loadlib.c: Likewise.
31494 * script/lua/lobject.c: Likewise.
31495 * script/lua/lobject.h: Likewise.
31496 * script/lua/lopcodes.c: Likewise.
31497 * script/lua/lopcodes.h: Likewise.
31498 * script/lua/loslib.c: Likewise.
31499 * script/lua/lparser.c: Likewise.
31500 * script/lua/lparser.h: Likewise.
31501 * script/lua/lstate.c: Likewise.
31502 * script/lua/lstate.h: Likewise.
31503 * script/lua/lstring.c: Likewise.
31504 * script/lua/lstring.h: Likewise.
31505 * script/lua/lstrlib.c: Likewise.
31506 * script/lua/ltable.c: Likewise.
31507 * script/lua/ltable.h: Likewise.
31508 * script/lua/ltablib.c: Likewise.
31509 * script/lua/ltm.c: Likewise.
31510 * script/lua/ltm.h: Likewise.
31511 * script/lua/lua.h: Likewise.
31512 * script/lua/luaconf.h: Likewise.
31513 * script/lua/lualib.h: Likewise.
31514 * script/lua/lundump.c: Likewise.
31515 * script/lua/lundump.h: Likewise.
31516 * script/lua/lvm.c: Likewise.
31517 * script/lua/lvm.h: Likewise.
31518 * script/lua/lzio.c: Likewise.
31519 * script/lua/lzio.h: Likewise.
31521 2009-05-16 Bean <bean123ch@gmail.com>
31523 * include/grub/kernel.h (grub_module_header_types): Add type
31526 * kern/main.c (grub_load_config): New function.
31527 (grub_main): Call grub_load_config to read boot config.
31529 * grub-mkimage (generate_image): New parameter config_path.
31530 (options): New option --config.
31531 (main): Parse --config option, and pass it to generate_image.
31533 2009-05-14 Christian Franke <franke@computer.org>
31535 * commands/i386/pc/drivemap_int13h.S: Add missing EXT_C for symbols.
31536 This fixes build on Cygwin.
31538 2009-05-14 Pavel Roskin <proski@gnu.org>
31540 * commands/i386/pc/drivemap_int13h.S: Eliminate unconditional
31541 jump. This saves two bytes, so the typical case of 2 swapped
31542 drives would fit 32 bytes.
31544 2009-05-13 Pavel Roskin <proski@gnu.org>
31546 * loader/i386/multiboot.c (grub_multiboot): Cast mmap_addr to
31547 grub_uint32_t to avoid a warning.
31549 * loader/i386/linux.c (allocate_pages): When assigning
31550 real_mode_mem, cast through grub_size_t to fix a warning. The
31551 code already makes sure that the value would fit a pointer.
31552 (grub_linux_setup_video): Cast render_target->data to
31553 grub_size_t to fix a warning.
31555 2009-05-13 Javier Martín <lordhabbit@gmail.com>
31557 * commands/i386/pc/drivemap.c: New file - implement drivemap
31559 * commands/i386/pc/drivemap_int13h.S: New file - int13 handler.
31560 * conf/i386-pc.rmk: Add drivemap.c and drivemap_int13h.S.
31562 2009-05-13 Pavel Roskin <proski@gnu.org>
31564 * util/i386/pc/grub-setup.c (setup): Remove unused variable
31565 embedding_area_exists.
31567 2009-05-13 Robert Millan <rmh.grub@aybabtu.com>
31569 * util/i386/pc/grub-setup.c (setup): Restructure code flow to make
31570 it easier to understand / work with.
31571 Improve warning messages for cases where there's no embedding area,
31572 or when it is too small (or core.img too large).
31574 2009-05-13 Pavel Roskin <proski@gnu.org>
31576 * loader/i386/pc/multiboot2.c: Add necessary includes for
31577 grub_multiboot2_real_boot().
31579 * fs/iso9660.c (grub_iso9660_iterate_dir): The file mode in the
31580 PX record is always little-endian. We only need the lower 2
31583 * fs/cpio.c: Use the same name "struct head" for tar and cpio to
31584 facilitate code reuse.
31585 (grub_cpio_mount): Use "struct head", not a char buffer. This
31586 fixes a warning reported by gcc 4.4.
31588 * kernel/disk.c (grub_disk_read): Use void pointer for the
31590 (grub_disk_write): Use const void pointer for the buffer.
31591 Adjust all callers. Remove unnecessary casts.
31593 2009-05-10 Robert Millan <rmh.grub@aybabtu.com>
31595 * util/i386/pc/grub-install.in: Update copyright year.
31597 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31601 * commands/gptsync.c: new file
31602 * conf/common.rmk (pkglib_MODULES): add gptsync.mod
31603 (gptsync_mod_SOURCES): new variable
31604 (gptsync_mod_CFLAGS): likewise
31605 (gptsync_mod_LDFLAGS): likewise
31606 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_NTFS):
31608 (GRUB_PC_PARTITION_TYPE_HFS): likewise
31609 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add commands/gptsync.c
31610 * conf/i386-ieee1275.rmk: likewise
31611 * conf/i386-pc.rmk: likewise
31612 * conf/powerpc-ieee1275.rmk: likewise
31614 2009-05-09 Vladimir Serbinenko <phcoder@gmail.com>
31618 * kern/dl.c (grub_dl_ref): omit when compiling grub-emu
31619 (grub_dl_ref): likewise
31621 2009-05-08 Robert Millan <rmh.grub@aybabtu.com>
31623 * util/i386/pc/grub-setup.c (setup): Factorize find_usable_region(),
31624 split in two functions (one for msdos and one for gpt).
31626 2009-05-08 Pavel Roskin <proski@gnu.org>
31628 * disk/raid.c (grub_raid_block_xor): Make buf2 constant, it's
31631 * disk/raid6_recover.c (grub_raid6_recover): Fix warnings about
31632 uninitialized err[0] and err[1]. Rename them to bad1 and bad2.
31633 Initialize them with -1. Add sanity check for bad1. Eliminate
31636 2009-05-08 David S. Miller <davem@davemloft.net>
31638 * util/sparc64/ieee1275/grub-ofpathname.c (main): Set progname.
31640 2009-05-06 Robert Millan <rmh.grub@aybabtu.com>
31642 * util/i386/pc/grub-setup.c (setup): Fix check for embed region
31645 2009-05-05 Felix Zielcke <fzielcke@z-51.de>
31647 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
31648 `kern/rescue_reader.c', `kern/rescue_parser.c' and `normal/autofs.c'.
31650 2009-05-05 David S. Miller <davem@davemloft.net>
31652 * util/sparc64/ieee1275/grub-install.in: Fix sed arg quoting.
31654 2009-05-05 Pavel Roskin <proski@gnu.org>
31656 * include/grub/dl.h [GRUB_UTIL]: Provide inline implementations
31657 of grub_dl_ref() and grub_dl_unref().
31658 * commands/parttool.c: Remove preprocessor conditionals around
31659 grub_dl_ref() and grub_dl_unref().
31660 * fs/affs.c: Likewise.
31661 * fs/afs.c: Likewise.
31662 * fs/cpio.c: Likewise.
31663 * fs/ext2.c: Likewise.
31664 * fs/fat.c: Likewise.
31665 * fs/hfs.c: Likewise.
31666 * fs/hfsplus.c: Likewise.
31667 * fs/iso9660.c: Likewise.
31668 * fs/jfs.c: Likewise.
31669 * fs/minix.c: Likewise.
31670 * fs/ntfs.c: Likewise.
31671 * fs/reiserfs.c: Likewise.
31672 * fs/sfs.c: Likewise.
31673 * fs/udf.c: Likewise.
31674 * fs/ufs.c: Likewise.
31675 * fs/xfs.c: Likewise.
31676 * include/grub/dl.h: Likewise.
31677 * loader/xnu.c: Likewise.
31679 2009-05-04 Pavel Roskin <proski@gnu.org>
31681 * commands/acpi.c: Remove unused variable my_mod.
31682 * partmap/amiga.c: Likewise.
31683 * partmap/apple.c: Likewise.
31684 * partmap/gpt.c: Likewise.
31685 * partmap/pc.c: Likewise.
31686 * partmap/sun.c: Likewise.
31687 * term/gfxterm.c: Likewise.
31688 * term/i386/pc/vesafb.c: Likewise.
31689 * term/i386/pc/vga.c: Likewise.
31691 2009-05-04 David S. Miller <davem@davemloft.net>
31693 * kern/ieee1275/openfw.c (grub_children_iterate): Fix string
31694 pointer args to grub_ieee1275_get_property().
31696 * conf/sparc64-ieee1275.rmk: Fix build due to missing '\'.
31698 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Bypass cdrom
31699 devices, and do not traverse down under controller nodes.
31701 * disk/ieee1275/ofdisk.c (compute_dev_path): New.
31702 (grub_ofdisk_open): Use it to un-escape "," characters.
31703 * kern/disk.c (find_part_sep): New.
31704 (grub_disk_open): Use it to find the first non-escaped ','
31705 character in the disk name.
31706 * util/ieee1275/devicemap.c (escape_of_path): New.
31707 (grub_util_emit_devicemap_entry): Use it.
31708 * util/sparc64/ieee1275/grub-install.in: Update script to
31709 strip partition specifiers properly by not triggering on
31710 '\' escaped ',' characters.
31712 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31714 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START): Set
31716 * loader/i386/linux.c (vga_modes, linux_vesafb_res): Add a few
31718 (linux_vesafb_modes): Add a lot of additional modes to the list (based
31719 on documentation from Wikipedia).
31721 2009-05-04 Pavel Roskin <proski@gnu.org>
31723 * disk/ata.c: Spelling fixes.
31724 * disk/raid.c: Likewise.
31725 * disk/usbms.c: Likewise.
31726 * disk/dmraid_nvidia.c: Likewise.
31727 * kern/ieee1275/openfw.c: Likewise.
31728 * kern/ieee1275/init.c: Likewise.
31729 * kern/ieee1275/cmain.c: Likewise.
31730 * boot/i386/pc/cdboot.S: Likewise.
31731 * video/readers/png.c: Likewise.
31732 * video/i386/pc/vbe.c: Likewise.
31733 * fs/udf.c: Likewise.
31734 * fs/hfs.c: Likewise.
31735 * fs/reiserfs.c: Likewise.
31736 * efiemu/runtime/efiemu.c: Likewise.
31737 * efiemu/main.c: Likewise.
31738 * efiemu/mm.c: Likewise.
31739 * include/grub/elf.h: Likewise.
31740 * include/grub/xnu.h: Likewise.
31741 * include/grub/usbdesc.h: Likewise.
31742 * include/grub/usb.h: Likewise.
31743 * include/grub/script_sh.h: Likewise.
31744 * include/grub/lib/LzmaEnc.h: Likewise.
31745 * include/grub/efiemu/efiemu.h: Likewise.
31746 * include/grub/command.h: Likewise.
31747 * normal/menu.c: Likewise.
31748 * normal/main.c: Likewise.
31749 * normal/datetime.c: Likewise.
31750 * bus/usb/uhci.c: Likewise.
31751 * mmap/i386/uppermem.c: Likewise.
31752 * mmap/mmap.c: Likewise.
31753 * commands/acpi.c: Likewise.
31754 * commands/test.c: Likewise.
31755 * partmap/apple.c: Likewise.
31756 * font/font.c: Likewise.
31757 * loader/sparc64/ieee1275/linux.c: Likewise.
31758 * loader/macho.c: Likewise.
31759 * loader/i386/bsd_trampoline.S: Likewise.
31760 * loader/i386/bsd.c: Likewise.
31761 * loader/xnu.c: Likewise.
31762 * term/i386/pc/vesafb.c: Likewise.
31763 * term/usb_keyboard.c: Likewise.
31764 * util/resolve.c: Likewise.
31765 * util/getroot.c: Likewise.
31767 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31769 * conf/i386-pc.rmk (libpkg_DATA): Rename to pkglib_DATA.
31771 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31773 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (grub_cmd_linux): Fix
31776 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31778 * loader/i386/linux.c (grub_cmd_linux): Make "vga=" compatibility
31779 parameter only available on BIOS.
31781 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31783 Removed wrong semicolon in declaration
31785 * grub/misc.h (grub_dprintf): remove semicolon
31787 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31789 * loader/i386/linux.c (GRUB_ASSUME_LINUX_HAS_FB_SUPPORT): New macro.
31790 (grub_linux_boot): Don't check for `linux_vesafb_modes' bounds (this
31791 is done by grub_cmd_linux() now).
31792 [! GRUB_ASSUME_LINUX_HAS_FB_SUPPORT]: If "vga=" parameter wasn't set,
31793 restore video to text mode.
31794 (grub_cmd_linux): Default `vid_mode' initialization to 0, which
31795 indicates lack of "vga=" parameter. "vga=0" is mapped to
31796 `GRUB_LINUX_VID_MODE_NORMAL'.
31798 2009-05-04 Felix Zielcke <fzielcke@z-51.de>
31800 * conf/i386-efi.rmk (grub_emu_SOURCES): Remove `normal/execute.c',
31801 `normal/lexer.c', `kern/rescue.c', `normal/function.c', `normal/misc.c'
31802 and `normal/script.c'. Add `kern/rescue_reader.c',
31803 `kern/rescue_parser.c', `script/sh/main.c', `script/sh/execute.c',
31804 `script/sh/function.c', `script/sh/lexer.c', `script/sh/script.c' and
31805 `grub_script.tab.c'.
31807 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31808 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
31809 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31810 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
31811 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
31813 * Makefile.in: Remove duplicated 2008 in Copyright line.
31815 2009-05-04 Robert Millan <rmh.grub@aybabtu.com>
31817 * util/misc.c (grub_util_warn): New function. Emits a warning
31819 * include/grub/util/misc.h (grub_util_warn): New declaration.
31821 * util/i386/pc/grub-install.in: Understand --force and pass it down
31824 * util/i386/pc/grub-setup.c (main): Understand --force and pass it
31826 (setup): Improve error messages and add warnings when requested to
31827 install in odd layouts. Refuse to install using blocklists unless
31830 2009-05-04 martin f. krafft <madduck@madduck.net>
31832 * disk/raid.c (grub_raid_scan_device): Improve debug message.
31834 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31836 Updated copyright year
31838 * fs/hfsplus.c: updated copyright year
31840 2009-05-04 Vladimir Serbinenko <phcoder@gmail.com>
31844 * fs/hfsplus.c (grub_hfsplus_volheader): added num_serial field
31845 in the space previously used by unused3
31846 (grub_hfsplus_uuid): new function
31847 (grub_hfsplus_fs): added uuid field
31849 2009-05-03 Pavel Roskin <proski@gnu.org>
31851 * disk/ata.c: Don't cast mod to void in GRUB_MOD_INIT to
31852 suppress warnings. It's no longer needed.
31853 * disk/host.c: Likewise.
31854 * disk/ata_pthru.c: Likewise.
31855 * disk/loopback.c: Likewise.
31856 * hook/datehook.c: Likewise.
31857 * parttool/pcpart.c: Likewise.
31858 * fs/i386/pc/pxe.c: Likewise.
31859 * fs/ntfscomp.c: Likewise.
31860 * efiemu/main.c: Likewise.
31861 * mmap/mmap.c: Likewise.
31862 * commands/crc.c: Likewise.
31863 * commands/hexdump.c: Likewise.
31864 * commands/hdparm.c: Likewise.
31865 * commands/acpi.c: Likewise.
31866 * commands/echo.c: Likewise.
31867 * commands/minicmd.c: Likewise.
31868 * commands/blocklist.c: Likewise.
31869 * commands/memrw.c: Likewise.
31870 * commands/loadenv.c: Likewise.
31871 * commands/usbtest.c: Likewise.
31872 * commands/lsmmap.c: Likewise.
31873 * commands/boot.c: Likewise.
31874 * commands/parttool.c: Likewise.
31875 * commands/configfile.c: Likewise.
31876 * commands/search.c: Likewise.
31877 * commands/ieee1275/suspend.c: Likewise.
31878 * commands/cat.c: Likewise.
31879 * commands/i386/pc/pxecmd.c: Likewise.
31880 * commands/i386/pc/play.c: Likewise.
31881 * commands/i386/pc/halt.c: Likewise.
31882 * commands/i386/pc/vbeinfo.c: Likewise.
31883 * commands/i386/pc/vbetest.c: Likewise.
31884 * commands/lspci.c: Likewise.
31885 * commands/date.c: Likewise.
31886 * commands/handler.c: Likewise.
31887 * commands/ls.c: Likewise.
31888 * commands/test.c: Likewise.
31889 * commands/cmp.c: Likewise.
31890 * commands/efi/loadbios.c: Likewise.
31891 * commands/efi/fixvideo.c: Likewise.
31892 * commands/halt.c: Likewise.
31893 * commands/help.c: Likewise.
31894 * commands/reboot.c: Likewise.
31895 * hello/hello.c: Likewise.
31896 * script/sh/main.c: Likewise.
31897 * loader/xnu.c: Likewise.
31898 * term/terminfo.c: Likewise.
31899 * term/i386/pc/serial.c: Likewise.
31900 * term/usb_keyboard.c: Likewise.
31902 2009-05-03 David S. Miller <davem@davemloft.net>
31904 * normal/menu.c: Include grub/parser.h
31906 2009-05-03 Pavel Roskin <proski@gnu.org>
31908 * mmap/efi/mmap.c (grub_mmap_malign_and_register): Return void*,
31910 * mmap/i386/mmap.c (grub_mmap_malign_and_register): Likewise.
31911 Suggested by Javier Martín <lordhabbit@gmail.com>
31913 * util/i386/pc/grub-mkrescue.in: Allow for the case when
31914 efiemu??.o doesn't exist.
31915 * util/i386/pc/grub-install.in: Likewise. Use "cp -f" for
31918 2009-05-03 Bean <bean123ch@gmail.com> Vladimir Serbinenko <phcoder@gmail.com>
31920 FreeBSD 64-bit support
31922 * conf/i386-pc.rmk (bsd_mod_SOURCES): add loader/i386/bsd_helper.S
31923 and loader/i386/bsd_trampoline.S
31924 (bsd_mod_ASFLAGS): new variable
31925 * include/grub/i386/bsd.h (FREEBSD_MODINFOMD_SMAP): new definition
31926 (FREEBSD_MODTYPE_KERNEL64): likewise
31927 (grub_bsd64_trampoline_start): likewise
31928 (grub_bsd64_trampoline_end): likewise
31929 (grub_bsd64_trampoline_selfjump): likewise
31930 (grub_bsd64_trampoline_gdt): likewise
31931 * include/grub/i386/loader.h (grub_unix_real_boot): moved from here ...
31932 * include/grub/i386/bsd.h (grub_unix_real_boot): ... moved here
31933 * kern/i386/loader.S (grub_unix_real_boot): moved from here ...
31934 * loader/i386/bsd_helper.S (grub_unix_real_boot): moved here
31935 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
31937 * loader/i386/bsd_pagetable.c: new file
31938 * loader/i386/bsd_trampoline.S: likewise
31939 * loader/i386/bsd.c (ALIGN_QWORD): new macro
31940 (ALIGN_VAR): likewise
31941 (entry_hi): new variable
31942 (kern_end_mdofs): likewise
31943 (is_64bit): likewise
31944 (grub_freebsd_add_meta): use ALIGN_VAR
31945 (grub_e820_mmap): new declaration
31946 (grub_freebsd_add_mmap): new function
31947 (grub_freebsd_add_meta_module): support 64 bit kernels
31948 (grub_freebsd_list_modules): use ALIGN_VAR
31949 (gdt_descriptor): new declaration
31950 (grub_freebsd_boot): support 64 bit kernels
31951 (grub_bsd_elf64_hook): new function
31952 (grub_bsd_load_elf): support elf64
31954 2009-05-03 Bean <bean123ch@gmail.com>
31956 * script/sh/execute.c (grub_script_execute_cmdif): Reset grub_errno
31957 after we get the result of if statement.
31959 2009-05-03 Bean <bean123ch@gmail.com>
31961 * Makefile.in (enable_efiemu): New variable.
31963 * conf/i386-pc.rmk: Only compile efiemu runtimes when enable_efiemu is
31965 (efiemu32.o): Use macro $< for source file, add $(srcdir) to include
31967 (efi64_c.o): Use macro $< for source file, add $(srcdir) to include
31968 path, add -mno-red-zone option.
31969 (efiemu64_s.o): Likewise.
31970 (efiemu64.o): Use macro $^ for source file.
31972 * configure.ac (--enable-efiemu): New option.
31974 2009-05-03 Vladimir Serbinenko <phcoder@gmail.com>
31978 * conf/i386-efi.rmk (kernel_mod_HEADERS): added i386/pit.h
31979 (pkglib_MODULES): add xnu.mod
31980 (xnu_mod_SOURCES): new variable
31981 (xnu_mod_CFLAGS): likewise
31982 (xnu_mod_LDFLAGS): likewise
31983 (xnu_mod_ASFLAGS): likewise
31984 * conf/i386-pc.rmk: likewise
31985 * conf/x86_64-efi.rmk: likewise
31986 * include/grub/efi/efi.h (grub_efi_finish_boot_services):
31988 * include/grub/i386/macho.h: new file
31989 * include/grub/i386/xnu.h: likewise
31990 * include/grub/macho.h: likewise
31991 * include/grub/machoload.h: likewise
31992 * include/grub/x86_64/macho.h: likewise
31993 * include/grub/x86_64/xnu.h: likewise
31994 * include/grub/xnu.h: likewise
31995 * kern/efi/efi.c (grub_efi_finish_boot_services): new function
31996 * kern/efi/mm.c (MAX_HEAP_SIZE): increase
31997 * loader/i386/efi/xnu.c: new file
31998 * loader/i386/pc/xnu.c: likewise
31999 * loader/i386/xnu.c: likewise
32000 * loader/i386/xnu_helper.S: likewise
32001 * loader/macho.c: likewise
32002 * loader/xnu.c: likewise
32003 * loader/xnu_resume.c: likewise
32004 * util/grub-dumpdevtree: likewise
32005 * include/grub/i386/pit.h: include grub/err.h
32006 (grub_pit_wait): export
32007 * util/grub.d/30_os-prober.in: support Darwin/Mac OS X
32009 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32013 * conf/i386-pc.rmk: new modules efiemu, efiemu_acpi, efiemu_pnvram,
32014 _linux_efi, linux_efi.
32015 new files in grub-emu
32016 new targets efiemu32.o and efiemu64.o
32017 * loader/linux_normal_efiemu.c: likewise
32018 * loader/i386/efi/linux.c: added preliminary efiemu support
32019 * util/i386/pc/grub-install.in: add efiemu??.o to the list of
32021 * include/grub/autoefi.h: new file
32022 * include/grub/i386/efiemu.h: likewise
32023 * include/grub/i386/pc/efiemu.h: likewise
32024 * include/grub/efi/api.h: add LL suffix when necessary
32025 new definitions relating to tables
32026 * include/grub/efiemu/efiemu.h: new file
32027 * include/grub/efiemu/runtime.h: likewise
32028 * efiemu/prepare.c: likewise
32029 * efiemu/loadcore_common.c: likewise
32030 * efiemu/loadcore64.c: likewise
32031 * efiemu/runtime/efiemu.sh: likewise
32032 * efiemu/runtime/efiemu.S: likewise
32033 * efiemu/runtime/efiemu.c: likewise
32034 * efiemu/runtime/config.h: likewise
32035 * efiemu/prepare32.c: likewise
32036 * efiemu/main.c: likewise
32037 * efiemu/modules/pnvram.c: likewise
32038 * efiemu/modules/i386: likewise
32039 * efiemu/modules/i386/pc: likewise
32040 * efiemu/modules/acpi.c: likewise
32041 * efiemu/i386/pc/cfgtables.c: likewise
32042 * efiemu/i386/loadcore64.c: likewise
32043 * efiemu/i386/loadcore32.c: likewise
32044 * efiemu/prepare64.c: likewise
32045 * efiemu/loadcore.c: likewise
32046 * efiemu/symbols.c: likewise
32047 * efiemu/mm.c: likewise
32048 * efiemu/loadcore32.c: likewise
32050 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32054 * commands/acpi.c: new file
32055 * commands/i386/pc/acpi.c: likewise
32056 * commands/efi/acpi.c: likewise
32057 * include/grub/acpi.h: likewise
32058 * conf/i386-pc.rmk (pkglib_MODULES): added acpi.mod
32059 (acpi_mod_SOURCES): new variable
32060 (acpi_mod_CFLAGS): likewise
32061 (acpi_mod_LDFLAGS): likewise
32062 * conf/i386-efi.rmk: likewise
32063 * conf/x86_64-efi.rmk: likewise
32065 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32067 Missing part from mmap patch
32069 * mmap/efi/mmap.c (grub_machine_mmap_unregister): renamed to
32070 (grub_mmap_unregister)
32071 (grub_mmap_free_and_unregister): use grub_mmap_register
32073 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32077 * loader/i386/efi/linux.c (grub_linux_boot): use grub_mmap_iterate
32078 * loader/i386/linux.c (find_mmap_size): likewise
32079 (allocate_pages): likewise
32080 * loader/i386/multiboot.c (grub_get_multiboot_mmap_len): likewise
32081 (grub_fill_multiboot_mmap): likewise
32082 (grub_multiboot): use grub_mmap_get_lower and grub_mmap_get_upper
32083 * loader/i386/pc/linux.c (grub_cmd_linux): use grub_mmap_get_lower
32084 * include/grub/i386/bsd.h (OPENBSD_MMAP_AVAILABLE): new definition
32085 (OPENBSD_MMAP_RESERVED): likewise
32086 * include/grub/i386/pc/memory.h: include grub/memory.h
32087 (grub_lower_mem): removed
32088 (grub_upper_mem): likewise
32089 (GRUB_MACHINE_MEMORY_ACPI): new definition
32090 (GRUB_MACHINE_MEMORY_NVS): likewise
32091 (GRUB_MACHINE_MEMORY_MAX_TYPE): likewise
32092 (GRUB_MACHINE_MEMORY_HOLE): likewise
32093 (grub_machine_mmap_register): likewise
32094 (grub_machine_mmap_unregister): likewise
32095 (grub_machine_get_upper): likewise
32096 (grub_machine_get_lower): likewise
32097 (grub_machine_get_post64): likewise
32098 * include/grub/i386/efi/memory.h: new file
32099 * include/grub/x86_64/efi/memory.h: likewise
32100 * include/grub/efi/memory.h: likewise
32101 * conf/i386-pc.rmk (pkglib_MODULES): added mmap.mod
32102 (mmap_mod_SOURCES): new variable
32103 (mmap_mod_LDFLAGS): likewise
32104 (mmap_mod_ASFLAGS): likewise
32105 * conf/i386-coreboot.rmk: likewise
32106 * conf/i386-ieee1275.rmk: likewise
32107 * conf/i386-efi.rmk: likewise
32108 * conf/x86_64-efi.rmk: likewise
32109 * include/grub/types.h (UINT_TO_PTR): new macro
32110 (PTR_TO_UINT32): likewise
32111 (PTR_TO_UINT64): likewise
32112 * include/grub/memory.h: new file
32113 * mmap/i386/pc/mmap.c: likewise
32114 * mmap/i386/pc/mmap_helper.S: likewise
32115 * mmap/i386/uppermem.c: likewise
32116 * mmap/mmap.c: likewise
32117 * mmap/efi/mmap.c: likewise
32118 * kern/i386/coreboot/init.c (grub_machine_init): don't use
32120 * kern/i386/pc/init.c (grub_lower_mem): removed variable
32121 (grub_upper_mem): likewise
32122 (grub_machine_init): don't use grub_upper_mem,
32123 make grub_lower_mem local
32124 * loader/i386/bsd.c (grub_openbsd_boot): use grub_mmap_get_lower,
32125 grub_mmap_iterate and grub_mmap_get_upper
32126 (grub_netbsd_boot): use grub_mmap_get_lower and grub_mmap_get_upper
32128 2009-05-02 Bean <bean123ch@gmail.com>
32130 * conf/common.rmk (grub_script.tab.c): Change normal/parser.y to
32131 script/sh/parser.y.
32132 (pkglib_MODULES): Add normal.mod and sh.mod.
32133 (normal_SOURCES): New variable.
32134 (normal_mod_CFLAGS): Likewise.
32135 (normal_mod_LDFLAGS): Likewise.
32136 (sh_mod_SOURCES): Likewise.
32137 (sh_mod_CFLAGS): Likewise.
32138 (sh_mod_LDFLAGS): Likewise.
32140 * conf/i386-pc.rmk (normal/lexer.c_DEPENDENCIES): Changed to
32141 script/sh/lexer.c_DEPENDENCIES.
32142 (kernel_img_SOURCES): Remove kern/rescue.c, and kern/reader.c,
32143 kern/rescue_reader.c and kern/rescue_parser.c.
32144 (kernel_img_HEADERS): Remove rescue.h, add reader.h.
32145 (grub_emu_SOURCES): Change source files.
32146 (pkglib_MODULES): Remove normal.mod.
32147 (normal_SOURCES): Removed.
32148 (normal_mod_CFLAGS): Likewise.
32149 (normal_mod_LDFLAGS): Likewise.
32150 * conf/i386-coreboot.rmk: Likewise.
32151 * conf/i386-efi.rmk: Likewise.
32152 * conf/i386-ieee1276.rmk: Likewise.
32153 * conf/powerpc-ieee1275.rmk: Likewise.
32154 * conf/sparc64-ieee1275.rmk: Likewise.
32155 * conf/x86_64-efi.rmk: Likewise.
32157 * include/grub/command.h (grub_command_execute): New inline function.
32159 * include/grub/menu.h (grub_menu_entry): Removed commands field.
32161 * include/grub/normal.h: Remove <grub/setjmp.h>.
32162 (grub_fs_module_list): Moved to normal/autofs.c.
32163 (grub_exit_env): Removed.
32164 (grub_command_execute): Likewise.
32165 (grub_normal_menu_addentry): Renamed to grub_menu_addentry, removed
32167 (read_command_list): New function declaration.
32168 (read_fs_list): Likewise.
32170 * include/parser.h: Include <grub/reader.h>.
32171 (grub_parser_split_cmdline): Change type of getline parameter.
32172 (grub_parser): New structure.
32173 (grub_parser_class): New variable.
32174 (grub_parser_execute): New function declaration.
32175 (grub_register_rescue_parser): Likewise.
32176 (grub_parser_register): New inline function.
32177 (grub_parser_unregister): Likewise.
32178 (grub_parser_get_current): Likewise.
32179 (grub_parser_set_current): Likewise.
32181 * include/grub/reader.h: New file.
32182 * kern/reader.c: Likewise.
32183 * kern/rescue_parser.c: Likewise.
32184 * kern/rescue_reader.c: Likewise.
32185 * normal/autofs.c: Likewise.
32186 * normal/dyncmd.c: Likewise.
32188 * include/grub/rescue.h: Removed.
32189 * normal/command.h: Likewise.
32191 * include/grub/script.h: Moved to ...
32192 * include/grub/script_sh.h: ... Moved here.
32193 * normal/execute.c: Moved to ...
32194 * script/sh/execute.c: ... Moved here.
32195 * normal/function.c: Moved to ...
32196 * script/sh/function.c: ... Moved here.
32197 * normal/lexer.c: Moved to ...
32198 * script/sh/lexer.c: ... Moved here.
32199 * normal/parser.y: Moved to ...
32200 * script/sh/parser.y: ... Moved here.
32201 * normal/script.c: Moved to ...
32202 * script/sh/script.c: ... Moved here.
32204 * normal/main.c: Remove <grub/rescue.h> and <grub/script.h>, include
32206 (grub_exit_env): Removed.
32207 (fs_module_list): Moved to normal/autofs.c.
32208 (grub_file_getline): Don't handle comment here.
32209 (free_menu): Skip removed field entry->commands.
32210 (grub_normal_menu_addentry): Removed as grub_menu_entry, removed
32212 (read_config_file): Removed nested parameter, change getline function.
32213 (grub_enter_normal_mode): Removed.
32214 (grub_dyncmd_dispatcher): Moved to normal/dyncmd.c.
32215 (read_command_list): Likewise.
32216 (autoload_fs_module): Moved to normal/autofs.c.
32217 (read_fs_list): Likewise.
32218 (reader_nested): New variable.
32219 (grub_normal_execute): Run parser.sh to switch to sh parser.
32220 (grub_cmd_rescue): Removed.
32221 (cmd_normal): Removed.
32222 (grub_cmd_normal): Unregister itself at the beginning. Don't register
32224 (grub_cmdline_run): New function.
32225 (grub_normal_reader_init): Likewise.
32226 (grub_normal_read_line): Likewise.
32227 (grub_env_write_pager): Likewise.
32228 (cmdline): New variable.
32229 (grub_normal_reader): Likewise.
32230 (GRUB_MOD_INIT): Register normal reader and set as current, register
32231 pager hook, register normal command with grub_register_command_prio,
32232 so that it won't show up in command.lst.
32233 (GRUB_MOD_FINI): Unregister normal reader, unhook pager, clear
32234 grub_fs_autoload_hook.
32236 * normal/menu.c: Remove <grub/script.h>, add <grub/command.h>.
32237 (grub_menu_execute_entry): Replace grub_script_execute with
32238 grub_parser_execute, change parameter to grub_command_execute.
32240 * normal/menu_text.c: Remove <grub/script.h>.
32242 * normal/menu_entry.c: Remove <grub/script.h>, add <grub/command.h>
32243 and <grub/parser.h>.
32244 (run): Change editor_getline to use new parser interface. Change
32245 parameter to grub_command_execute.
32247 * kern/main.c: Remove <grub/rescue.h>, include <grub/command.h>,
32248 <grub/reader.h> and <grub/parser.h>.
32249 (grub_load_normal_mode): Execute normal command.
32250 (grub_main): Call grub_register_core_commands,
32251 grub_register_rescue_parser and grub_register_rescue_reader, use
32252 grub_reader_loop to enter input loop.
32254 * kern/parser.c (grub_parser_split_cmdline): Change type of
32256 (grub_parser_class): New variable.
32257 (grub_parser_execute): New function.
32259 * loader/i386/multiboot.c: Remove <grub/rescue.h>.
32260 * loader/multiboot2.c: Likewise.
32261 * loader/sparc64/ieee1275/linux.c: Likewise.
32263 * util/grub-emu.c (read_command_list): New dummy function.
32265 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32267 * util/deviceiter.c (grub_util_iterate_devices): Increase max drive
32268 count to 16 for CCISS and IDA.
32270 2009-05-02 Robert Millan <rmh.grub@aybabtu.com>
32272 * normal/menu_text.c (grub_wait_after_message): Print a newline
32273 after waiting for user input.
32275 * loader/i386/linux.c: Include `<grub/normal.h>'.
32276 (grub_cmd_linux): Improve the error message about `ask' mode, by
32277 waiting for user input so it's not missed (we can do this, since
32278 user requested interaction).
32280 2009-05-02 Vladimir Serbinenko <phcoder@gmail.com>
32282 Added missing lst to grub-mkrescue
32284 * util/i386/pc/grub-mkrescue.in: added ${input_dir}/handler.lst
32285 and ${input_dir}/parttool.lst
32287 2009-04-30 David S. Miller <davem@davemloft.net>
32289 * util/hostdisk.c (device_is_wholedisk): New function.
32290 (grub_util_biosdisk_get_grub_dev): Shortcut when hdg.start is
32291 zero only if device_is_wholedisk() returns true.
32293 * util/hostdisk.c (convert_system_partition_to_system_disk):
32294 Handle virtual disk devices named /dev/vdiskX as found on sparc
32297 * kern/sparc64/ieee1275/init.c (grub_machine_set_prefix): If
32298 lettered partition specifier is found, convert to numbered.
32300 2009-04-29 David S. Miller <davem@davemloft.net>
32302 * include/grub/powerpc/ieee1275/memory.h: Include ieee1275.h.
32303 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32305 * normal/command.c: Add missing newline at end of file.
32307 * commands/lsmmap.c (grub_cmd_lsmmap): Add casts to avoid printf
32309 * kern/ieee1275/openfw.c (grub_claimmap): Likewise.
32310 * disk/ieee1275/ofdisk.c (grub_ofdisk_open, grub_ofdisk_close,
32311 grub_ofdisk_read): Likewise, and deal similarly with the fact that
32312 ihandles have a 32-bit type but need to be stored in a "void *".
32314 2009-04-28 Pavel Roskin <proski@gnu.org>
32316 * disk/fs_uuid.c (grub_fs_uuid_open): Use parent->data for dev,
32317 not disk. Adjust all dependencies.
32318 (grub_fs_uuid_close): Use grub_device_close(), not
32321 * disk/fs_uuid.c (grub_fs_uuid_open): Allocate memory to copy
32322 parent's partition, don't copy it by reference, as it gets freed
32325 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32327 Preboot hooks support
32329 * commands/boot.c (struct grub_preboot_t): new declaration
32330 (preboots_head): new variable
32331 (preboots_tail): likewise
32332 (grub_loader_register_preboot_hook): new function
32333 (grub_loader_unregister_preboot_hook): likewise
32334 (grub_loader_set): launch preboot hooks
32335 * include/grub/loader.h (grub_loader_preboot_hook_prio_t): new type
32336 (grub_loader_register_preboot_hook): new declaration
32337 (grub_loader_unregister_preboot_hook): likewise
32339 2009-04-27 Vladimir Serbinenko <phcoder@gmail.com>
32343 * disk/scsi.c (grub_scsi_open): added missing cast when
32344 calling grub_dprintf
32346 2009-04-26 Vladimir Serbinenko <phcoder@gmail.com>
32348 Bug and warning fixes
32350 * include/grub/i386/pc/init.h (grub_stop_floppy): added missing
32352 * commands/test.c (test_parse): fixed bug with file tests and corrected
32353 declaration of find_file
32355 2009-04-26 Pavel Roskin <proski@gnu.org>
32357 * Makefile.in: Don't install empty manual pages if help2man is
32358 missing. Use help2man option for output, not shell redirection.
32360 2009-04-26 David S. Miller <davem@davemloft.net>
32362 * util/grub-mkdevicemap.c (make_device_map): Add missing
32363 NESTED_FUNC_ATTR to process_device().
32365 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32369 * commands/test.c: rewritten to use bash-like test
32371 2009-04-25 Vladimir Serbinenko <phcoder@gmail.com>
32373 Parttool autoloading and improvements
32375 * Makefile.in (pkglib_DATA): add parttool.lst
32376 (parttool.lst): new target
32377 * genmk.rb: generate parttool-*
32378 (CLEANFILES): add #{parttool}
32379 (PARTTOOLFILES): new variable
32380 * genparttoollist.sh: new file
32381 * parttool/pcpart.c (grub_pcpart_boot): more feedback
32382 (grub_pcpart_type): likewise
32383 * commands/parttool.c (helpmsg): new variable
32384 (grub_cmd_parttool): output help if not enough arguments are supplied
32386 (GRUB_MOD_INIT(parttool)): use helpmsg
32388 2009-04-24 David S. Miller <davem@davemloft.net>
32390 Avoiding opening same device multiple times in device iterator.
32392 * kern/device.c: (grub_device_iterate): Define struct part_ent,
32393 and use it to build a list of partitions in iterate_disk() and
32394 iterate_partition().
32396 * disk/fs_uuid.c (grub_fs_uuid_close): Call grub_disk_close()
32399 * disk/ieee1275/nand.c (grub_nand_iterate): Return
32400 grub_devalias_iterate() result instead of unconditional 0.
32401 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Likewise.
32402 Also, capture hook return value, either directly or via
32403 grub_children_iterate(), and propagate to caller.
32404 * include/grub/ieee1275/ieee1275.h (grub_devalias_iterate,
32405 grub_children_iterate): Return value is now 'int' instead of
32407 * kern/ieee1275/openfw.c (grub_children_iterate): Fix to behave
32408 like a proper iterator, stopping when hooks return non-zero.
32409 (grub_devalias_iterate): Likewise.
32411 2009-04-23 David S. Miller <davem@davemloft.net>
32413 * kern/sparc64/ieee1275/openfw.c: Unused, delete.
32415 2009-04-22 David S. Miller <davem@davemloft.net>
32417 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): If size_cells
32418 is larger than address_cells, use that value for address_cells too.
32420 * include/grub/ieee1275/ieee1275.h (IEEE1275_MAX_PROP_LEN,
32421 IEEE1275_MAX_PATH_LEN): Define.
32422 * kern/ieee1275/openfw.c (grub_children_iterate): Dynamically
32423 allocate 'childtype', 'childpath', 'childname', and 'fullname'.
32424 (grub_devalias_iterate): Dynamically allocate 'aliasname' and
32425 'devtype'. Explicitly NULL terminate devalias expansion.
32427 * util/sparc64/ieee1275/misc.c: New file.
32428 * util/sparc64/ieee1275/grub-setup.c: New file.
32429 * util/sparc64/ieee1275/grub-ofpathname.c: New file.
32430 * util/sparc64/ieee1275/grub-mkimage.c: New file.
32431 * util/sparc64/ieee1275/grub-install.in: New file.
32432 * util/ieee1275/ofpath.c: New file.
32433 * util/ieee1275/devicemap.c: New file.
32434 * util/devicemap.c: New file.
32435 * util/deviceiter.c: New file.
32436 * kern/sparc64/ieee1275/init.c: New file.
32437 * include/grub/util/ofpath.h: New file.
32438 * include/grub/util/deviceiter.h: New file.
32439 * util/grub-mkdevicemap.c: Include deviceiter.h.
32440 Implement using grub_util_emit_devicemap_entry and
32441 grub_util_iterate_devices.
32442 * conf/i386-corebook.rmk: Build util/deviceiter.c and
32443 util/devicemap.c into grub-mkdevicemap
32444 * conf/i386-efi.rmk: Likewise.
32445 * conf/i386-ieee1275.rmk: Likewise.
32446 * conf/i386-pc.rmk: Likewise.
32447 * conf/powerpc-ieee1275.rmk: Likewise.
32448 * conf/sparc64-ieee1275.rmk: Add rules to build boot block
32449 images and installation utilities. Build kernel as image
32450 instead of as elf binary. Use common rules as much as possible.
32452 2009-04-19 Vladimir Serbinenko <phcoder@gmail.com>
32454 Correct GPT definition
32456 * include/grub/gpt_partition.h (grub_gpt_partentry): Corrected the type
32459 2009-04-19 Felix Zielcke <fzielcke@z-51.de>
32461 * INSTALL: Replace `autogen.sh' with `./autogen.sh'.
32463 2009-04-19 David S. Miller <davem@davemloft.net>
32465 * loader/sparc64/ieee1275/linux.c: Include grub/command.h
32466 (grub_rescue_cmd_linux): Rename to...
32467 (grub_cmd_linux): and fix prototype.
32468 (grub_rescue_cmd_initrd): Rename to...
32469 (grub_cmd_initrd): and fix prototype.
32470 (cmd_linux, cmd_initrd): New.
32471 (GRUB_MOD_INIT(linux)): Use grub_register_command().
32472 (GRUB_MOD_FINI(linux): Use grub_unregister_command().
32474 2009-04-17 Pavel Roskin <proski@gnu.org>
32476 * bus/usb/ohci.c (grub_ohci_transaction): Fix incorrect printf
32478 (grub_ohci_transfer): Likewise.
32480 * bus/usb/usbtrans.c (grub_usb_control_msg): Warning fix.
32482 * loader/multiboot_loader.c (grub_cmd_multiboot_loader): Fix
32483 return without a value. Fix inconsistent indentation.
32485 * fs/i386/pc/pxe.c (grub_pxefs_dir): Fix function prototype to
32486 match struct grub_fs.
32488 * disk/ata.c (grub_ata_pciinit): Use NESTED_FUNC_ATTR.
32489 * bus/usb/ohci.c (grub_ohci_pci_iter): Likewise.
32490 * bus/usb/uhci.c (grub_uhci_pci_iter): Likewise.
32491 * commands/lspci.c (grub_lspci_iter): Likewise.
32493 2009-04-16 Bean <bean123ch@gmail.com>
32495 * commands/efi/loadbios.c (grub_cmd_fakebios): Add missing return
32498 2009-04-15 Pavel Roskin <proski@gnu.org>
32500 * include/grub/types.h: Rename ULONG_MAX to GRUB_ULONG_MAX and
32501 LONG_MAX to GRUB_LONG_MAX. Introduce GRUB_LONG_MIN. Update all
32502 users of ULONG_MAX, LONG_MAX and LONG_MIN to use the new
32505 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32507 * disk/lvm.c (grub_lvm_scan_device): Add `LVM' to the error messages,
32508 that no multiple data or metadata areas are supported and `Unknown
32511 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32513 Move loader out of the kernel
32515 * kern/loader.c: moved to ...
32516 * commands/boot.c: ... moved here
32517 * commands/minicmd.c (grub_mini_cmd_boot): moved to ...
32518 * commands/boot.c (grub_cmd_boot): moved here. All users updated
32519 * include/grub/kernel.h (grub_machine_fini): export
32520 * include/grub/loader.h (grub_loader_is_loaded): update declaration
32521 (grub_loader_set): likewise
32522 (grub_loader_unset): likewise
32523 (grub_loader_boot): likewise
32524 * conf/common.rmk: new module boot.mod
32525 (pkglib_MODULES): add boot.mod
32526 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): remove kern/loader.c
32527 (grub_emu_SOURCES): likewise
32528 * conf/i386-efi.rmk (kernel_elf_SOURCES): likewise
32529 (grub_emu_SOURCES): likewise
32530 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): likewise
32531 (grub_emu_SOURCES): likewise
32532 * conf/i386-pc.rmk (kernel_elf_SOURCES): likewise
32533 (grub_emu_SOURCES): likewise
32534 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): likewise
32535 (grub_emu_SOURCES): likewise
32536 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): likewise
32537 (grub_emu_SOURCES): likewise
32538 * conf/x86_64-efi.rmk (kernel_elf_SOURCES): likewise
32539 (grub_emu_SOURCES): likewise
32541 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32543 use grub_lltoa instead of grub_itoa and grub_ltoa for all purposes
32545 * kern/misc.c (grub_itoa): Removed function
32546 (grub_ltoa): likewise
32547 (grub_vsprintf): use grub_lltoa
32549 2009-04-15 Vladimir Serbinenko <phcoder@gmail.com>
32553 * conf/i386-pc.rmk (grub_emu_SOURCES): add normal/handler.c
32554 * conf/i386-coreboot.rmk: likewise
32555 * conf/i386-ieee1275.rmk: likewise
32556 * conf/powerpc-ieee1275.rmk: likewise
32558 2009-04-15 Felix Zielcke <fzielcke@z-51.de>
32560 * INSTALL: Add that `./autogen.sh' needs to be run before
32563 2009-04-14 Bean <bean123ch@gmail.com>
32565 * Makefile.in (pkglib_DATA): Add handler.lst.
32566 (handler.lst): New rule.
32568 * conf/i386-pc.rmk (normal_mod_SOURCES): Add normal/handler.c.
32569 * conf/i386-coreboot.rmk: Likewise.
32570 * conf/i386-ieee1275.rmk: Likewise.
32571 * conf/i386-efi.rmk: Likewise.
32572 * conf/x86_64-efi.rmk: Likewise.
32573 * conf/powerpc-ieee1275.rmk: Likewise.
32574 * conf/sparc64-ieee1275.rmk: Likewise.
32576 * genhandlerlist.sh: New file.
32578 * genmk.rb: Add rules to generate handler.lst.
32580 * include/grub/normal.h (grub_file_getline): New function definition.
32581 (read_handler_list): Likewise.
32582 (free_handler_list): Likewise.
32584 * include/grub/term.h (grub_term_register_input): Add name parameter
32585 for auto generation of handler.lst.
32586 (grub_term_register_output): Likewise.
32588 * normal/handler.c: New file.
32590 * normal/main.c (get_line): Renamed to grub_file_getline.
32591 (read_config_file): Use the newly renamed grub_file_getline.
32592 (read_command_list): Likewise.
32593 (read_fs_list): Likewise.
32594 (grub_normal_execute): Call read_handler_list to parse handler.lst.
32595 (GRUB_MOD_FINI): Call free_handler_list to free handler list.
32597 * term/efi/console.c (grub_console_init): Add name parameter for auto
32598 generation of handler.lst.
32599 * term/gfxterm.c: Likewise.
32600 * term/i386/pc/at_keyboard.c: Likewise.
32601 * term/i386/pc/console.c: Likewise.
32602 * term/i386/pc/serial.c: Likewise.
32603 * term/i386/pc/vesafb.c: Likewise.
32604 * term/i386/pc/vga.c: Likewise.
32605 * term/i386/pc/vga_text.c: Likewise.
32606 * term/ieee1275/ofconsole.c: Likewise.
32607 * term/usb_keyboard.c: Likewise.
32609 2009-04-14 Bean <bean123ch@gmail.com>
32611 * util/grub-pe2elf.c (write_symbol_table): Terminate short name symbol
32612 properly with null character.
32614 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32616 * configure: Remove.
32617 * config.h.in: Likewise.
32618 * stamp-h.in: Likewise.
32619 * DISTLIST: Likewise.
32620 * conf/common.mk: Likewise.
32621 * conf/i386-coreboot.mk: Likewise.
32622 * conf/i386-efi.mk: Likewise.
32623 * conf/i386-ieee1275.mk: Likewise.
32624 * conf/i386.mk: Likewise.
32625 * conf/i386-pc.mk: Likewise.
32626 * conf/powerpc-ieee1275.mk: Likewise.
32627 * conf/sparc64-ieee1275.mk: Likewise.
32628 * conf/x86_64-efi.mk: Likewise.
32630 * INSTALL: Remove the sentence that Ruby and autoconf are only required if you
32633 2009-04-14 John Stanley <jpsinthemix@verizon.net>
32634 David S. Miller <davem@davemloft.net>
32636 * util/hostdisk.c (make_device_name): Fix buffer length
32639 2009-04-14 Felix Zielcke <fzielcke@z-51.de>
32641 * util/hostdisk.c [__FreeBSD__ || __FreeBSD_kernel__]: Include
32642 <sys/param.h> and <sys/sysctl.h>.
32643 (open_device) [__FreeBSD__ || __FreeBSD_kernel_]: Use sysctlgetbyname()
32644 to add 0x10 to `kern.geom.debugflags' if it's not already set, before
32645 opening the device and reset them afterwards.
32647 2009-04-13 Pavel Roskin <proski@gnu.org>
32649 * conf/common.rmk (grub_fstest_SOURCES): Add normal/datetime.c.
32650 Reported by John Stanley <jpsinthemix@verizon.net>
32652 2009-04-13 Robert Millan <rmh@aybabtu.com>
32654 * util/grub.d/10_freebsd.in: Detect Debian GNU/kFreeBSD and use
32655 that name for menuentries when appropriate.
32657 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32659 * util/grub.d/10_freebsd.in: Add a missing `fi'.
32661 2009-04-13 Robert Millan <rmh@aybabtu.com>
32663 * loader/i386/linux.c (grub_cmd_linux): Don't pass `vga=ask' parameter
32664 to Linux, simply abort telling the user it's no longer supported.
32666 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32668 * util/grub.d/10_freebsd.in: Don't exit if /boot/devices.hints
32669 doesn't exist. Check also for /boot/kernel/kernel.gz. Print
32670 `freebsd_loadenv' only when devices.hints exist.
32672 2009-04-13 Pavel Roskin <proski@gnu.org>
32674 * term/usb_keyboard.c (grub_usb_keyboard_getkey): Warning fixes.
32676 2009-04-13 Felix Zielcke <fzielcke@z-51.de>
32678 * util/i386/pc/grub-install.in (install_drive): Remove the BSD
32680 (grub_drive): Likewise.
32682 2009-04-13 David S. Miller <davem@davemloft.net>
32684 * kern/sparc64/ieee1275/ieee1275.c: New file.
32685 * include/grub/sparc64/ieee1275/ieee1275.h (IEEE1275_MAP_WRITE,
32686 IEEE1275_MAP_READ, IEEE1275_MAP_EXEC, IEEE1275_MAP_LOCKED,
32687 IEEE1275_MAP_CACHED, IEEE1275_MAP_SE, IEEE1275_MAP_GLOBAL,
32688 IEEE1275_MAP_IE, IEEE1275_MAP_DEFAULT): Define.
32689 (grub_ieee1275_map_physical, grub_ieee1275_claim_vaddr,
32690 grub_ieee1275_alloc_physmem): Declare new exported functions.
32692 * include/grub/sparc64/ieee1275/loader.h: New file.
32693 * include/grub/sparc64/ieee1275/memory.h: Likewise.
32694 * include/grub/sparc64/kernel.h: Likewise.
32695 * loader/sparc64/ieee1275/linux.c: Likewise.
32697 * conf/common.rmk (grub_probe_SOURCES): Add Sun partition module.
32698 (grub_fstest_SOURCES): Likewise.
32700 * util/hostdisk.c (make_device_name): Do not make any assumptions
32701 about the length of drive names.
32703 * kern/dl.c (grub_dl_load_file): Close file immediately when
32704 we are done using it.
32706 2009-04-12 David S. Miller <davem@davemloft.net>
32708 * kern/misc.c (grub_ltoa): Fix cast when handling negative
32709 values. Noticed by Pavel Roskin.
32711 * configure.ac: Check for __bswapsi2 and__bswapdi2 using
32714 * genmk.rb: Add more flexible image type specification, also
32715 pass --strip-unneeded to objcopy.
32716 * conf/i386-pc.rmk: Use *_FORMAT.
32717 * conf/i386-pc.mk: Rebuilt.
32719 * disk/ieee1275/ofdisk.c (struct ofdisk_hash_ent): New struct.
32720 (OFDISK_HASH_SZ): Define.
32721 (ofdisk_hash): New hash table.
32722 (ofdisk_hash_fn, ofdisk_hash_find, ofdisk_hash_add): New functions.
32723 (grub_ofdisk_open): Use ofdisk_hash_ent address as disk->id
32724 instead of device phandle which is not unique.
32726 * kern/sparc64/ieee1275/init.c: Delete, replace with...
32727 * kern/sparc64/ieee1275/crt0.S: assembler implementation.
32728 * include/grub/sparc64/ieee1275/kernel.h: Declare grub_prefix[].
32729 (GRUB_MOD_ALIGN, GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_TOTAL_MODULE_SIZE,
32730 GRUB_KERNEL_MACHINE_KERNEL_IMAGE_SIZE,
32731 GRUB_KERNEL_MACHINE_COMPRESSED_SIZE, GRUB_KERNEL_MACHINE_PREFIX,
32732 GRUB_KERNEL_MACHINE_DATA_END): Define.
32733 (grub_kernel_image_size, grub_total_module_size): Declare.
32735 2009-04-12 Pavel Roskin <proski@gnu.org>
32737 * configure.ac: Change the logic when we check for target tools.
32738 Do it when the target is specified and it's different from the
32739 specified value of the host.
32741 2009-04-11 Felix Zielcke <fzielcke@z-51.de>
32743 * util/hostdisk.c [__FreeBSD_kernel__]: Include sys/disk.h.
32744 (grub_util_biosdisk_open) [__FreeBSD_kernel__]: Add support for
32745 GNU/kFreeBSD. Check if a device is a character device. Use
32746 DIOCGMEDIASIZE to get the size.
32747 (convert_system_partition_to_system_disk) [__FreeBSD_kernel__]: Add
32748 support for GNU/kFreeBSD.
32749 (grub_util_biosdisk_get_grub_dev) [__FreeBSD_kernel__]: Check if OS_DEV
32750 is a character device instead of a block device. Add support for
32751 FreeBSD device names.
32753 * util/getroot.c (find_root_device) [__FreeBSD_kernel__]: Check if ENT
32754 is a character device instead of a block device.
32756 * util/grub-probe.c (probe) [__FreeBSD_kernel__]: Check if DEVICE_NAME
32757 is a character device instead of a block device.
32759 2009-04-11 Andrey Shuvikov <mr_hyro@yahoo.com>
32761 * util/hostdisk.c [__FreeBSD__]: Include sys/disk.h.
32762 (grub_util_biosdisk_open) [__FreeBSD__]: Add support for
32763 FreeBSD. Check if a device is a character device. Use
32764 DIOCGMEDIASIZE to get the size.
32765 (convert_system_partition_to_system_disk) [__FreeBSD__]: Add
32766 support for FreeBSD.
32767 (grub_util_biosdisk_get_grub_dev) [__FreeBSD__]: Check if OS_DEV
32768 is a character device instead of a block device. Add support for
32769 FreeBSD device names.
32771 * util/getroot.c (find_root_device) [__FreeBSD__]: Check if ENT is
32772 a character device instead of a block device.
32773 (grub_util_check_char_device): New function.
32775 * util/grub-probe.c (probe) [__FreeBSD__]: Check if DEVICE_NAME is
32776 a character device instead of a block device.
32778 * include/grub/util/getroot.h (grub_util_check_char_device): New
32781 2009-04-11 David S. Miller <davem@davemloft.net>
32783 * conf/sparc64-ieee1275.rmk (kernel_img_LDFLAGS): Link with
32785 * configure.ac: Check for __bswapsi2 and __bswapdi2 presence.
32786 * include/grub/sparc64/libgcc.h (__bswapsi2): Export libgcc
32787 function, if present.
32788 (__bswapdi2): Likewise.
32790 * include/grub/sparc64/ieee1275/boot.h: New file.
32791 * boot/sparc64/ieee1275/boot.S: Likewise.
32792 * boot/sparc64/ieee1275/diskboot.S: Likewise.
32794 * kern/misc.c (grub_ltoa): New function.
32795 (grub_vsprintf): Use it to format 'long' integers.
32797 2009-04-10 David S. Miller <davem@davemloft.net>
32799 * disk/ieee1275/nand.c (grub_nand_open): All ieee1275 call arg
32800 slots are of type grub_ieee1275_cell_t.
32801 (grub_nand_read): Likewise.
32802 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_INVALID,
32803 IEEE1275_IHANDLE_INVALID): Use grub_ieee1275_cell_t since these
32804 macros are used to compare values in arg/ret block of the call.
32805 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
32806 grub_ieee1275_next_property, grub_ieee1275_get_property_length,
32807 grub_ieee1275_instance_to_package, grub_ieee1275_package_to_path,
32808 grub_ieee1275_instance_to_path, grub_ieee1275_write,
32809 grub_ieee1275_read, grub_ieee1275_seek, grub_ieee1275_peer,
32810 grub_ieee1275_child, grub_ieee1275_parent, grub_ieee1275_open,
32811 grub_ieee1275_close, grub_ieee1275_set_property,
32812 grub_ieee1275_set_color): All ieee1275 call arg slots are of type
32813 grub_ieee1275_cell_t.
32814 * kern/ieee1275/openfw.c (grub_map): Likewise.
32815 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_ihandle_t,
32816 grub_ieee1275_phandle_t): Define as grub_unit32_t type.
32818 * kern/ieee1275/init.c (grub_machine_init): Make 'actual' grub_ssize_t.
32819 * kern/ieee1275/openfw.c (grub_children_iterate): Likewise.
32820 (grub_devalias_iterate): Likewise.
32822 2009-04-10 Vladimir Serbinenko <phcoder@gmail.com>
32826 * fs/ufs.c (INODE_NBLOCKS): new definition
32827 (struct grub_ufs_dirent): added fields for non-BSD dirents
32828 (grub_ufs_get_file_block): fixed double indirect handling
32829 (grub_ufs_lookup_symlink): use more robust way to determine whether
32831 (grub_ufs_find_file): support for non-BSD dirents
32832 (grub_ufs_dir): support for non-BSD dirents
32834 2009-04-10 Bean <bean123ch@gnail.com>
32836 * include/grub/efi/api.h (grub_efi_configuration_table): Add packed
32837 attribute, otherwise the size would be wrong for i386 platform.
32839 * include/grub/pci.h (grub_pci_read_word): New inline function.
32840 (grub_pci_read_byte): Likewise.
32841 (grub_pci_write): Likewise.
32842 (grub_pci_write_word): Likewise.
32843 (grub_pci_write_byte): Likewise.
32845 * include/grub/pci.h (grub_pci_iteratefunc_t): Add NESTED_FUNC_ATTR.
32847 * loader/i386/efi/linux.c (fake_bios_data): Moved to loadbios module.
32848 (find_framebuf): Scan pci to locate the frame buffer address.
32850 * commands/efi/fixvideo.c: New file.
32852 * commands/efi/loadbios.c: Likewise.
32854 * commands/memrw.c: Likewise.
32856 * util/grub-dumpbios.in: Likewise.
32858 * conf/common.rmk (grub-dumpbios): New utility.
32859 (pkglib_MODULES): New module memrw.mod.
32860 (memrw_mod_SOURCE): New macro.
32861 (memrw_mod_CFLAGS): Likewise.
32862 (memrw_mod_LDFLAGS): Likewise.
32864 * conf/i386-efi.rmk (pkglib_MODULES): New module loadbios.mod and
32866 (loadbios_mod_SOURCE): New macro.
32867 (loadbios_mod_CFLAGS): Likewise.
32868 (loadbios_mod_LDFLAGS): Likewise.
32869 (fixvideo_mod_SOURCE): Likewise.
32870 (fixvideo_mod_CFLAGS): Likewise.
32871 (fixvideo_mod_LDFLAGS): Likewise.
32873 * conf/x86_64.rmk (pkglib_MODULES): New module loadbios.mod and
32875 (loadbios_mod_SOURCE): New macro.
32876 (loadbios_mod_CFLAGS): Likewise.
32877 (loadbios_mod_LDFLAGS): Likewise.
32878 (fixvideo_mod_SOURCE): Likewise.
32879 (fixvideo_mod_CFLAGS): Likewise.
32880 (fixvideo_mod_LDFLAGS): Likewise.
32882 2009-04-08 Felix Zielcke <fzielcke@z-51.de>
32884 * disk/lvm.c (grub_lvm_scan_device): Add a missing NULL check.
32886 2009-04-07 David S. Miller <davem@davemloft.net>
32888 * kern/sparc64/dl.c (grub_arch_dl_relocate_symbols): Add
32889 support for R_SPARC_OLO10 relocations. Fix compile warning for
32890 R_SPARC_WDISP30 case.
32891 * kern/sparc64/cache.S: Fix grub_arch_sync_caches implementation.
32893 2009-04-06 Pavel Roskin <proski@gnu.org>
32895 * include/grub/misc.h (ARRAY_SIZE): New macro.
32896 * include/grub/i386/linux.h (GRUB_LINUX_VID_MODE_VESA_START):
32898 * loader/i386/linux.c (allocate_pages): Use free_pages().
32899 (grub_linux_unload): Don't use free_pages().
32900 (grub_linux_boot): Prevent accessing linux_vesafb_modes with a
32901 wrong index. Treat all other modes as text modes.
32902 (grub_cmd_linux): Initialize vid_mode unconditionally to
32903 GRUB_LINUX_VID_MODE_NORMAL. Recognize and support "vga=ask".
32905 * commands/help.c (print_command_help): Use cmd->prio, not
32906 cmd->flags to check for GRUB_PRIO_LIST_FLAG_ACTIVE.
32908 2009-04-06 Vladimir Serbinenko <phcoder@gmail.com>
32912 * parttool/pcpart.c: new file
32913 * commands/parttool.c: likewise
32914 * conf/common.rmk (pkglib_MODULES): Added parttool.mod and pcpart.mod
32915 (parttool_mod_SOURCES): new variable
32916 (parttool_mod_CFLAGS): likewise
32917 (parttool_mod_LDFLAGS): likewise
32918 (pcpart_mod_SOURCES): likewise
32919 (pcpart_mod_CFLAGS): likewise
32920 (pcpart_mod_LDFLAGS): likewise
32921 * conf/i386-coreboot.rmk (grub_emu_SOURCES): added commands/parttool.c
32922 and parttool/pcpart.c
32923 * conf/i386-efi.rmk: likewise
32924 * conf/i386-ieee1275.rmk: likewise
32925 * conf/i386-pc.rmk: likewise
32926 * conf/powerpc-ieee1275.rmk: likewise
32927 * conf/sparc64-ieee1275.rmk: likewise
32928 * conf/x86_64-ieee1275.rmk: likewise
32930 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32932 Support for mtime and further expandability of dir command
32934 * include/grub/lib/datetime.h: moved to ...
32935 * include/grub/datetime.h: ... moved here and added
32936 declaration of grub_unixtime2datetime. All users updated
32937 * include/grub/fs.h: new syntax for dir and mtime functions in
32939 * include/grub/fshelp.h: new declarations of GRUB_FSHELP_TYPE_MASK
32940 and GRUB_FSHELP_FLAGS_MASK
32941 * commands/ls.c (grub_ls_list_files): Write mtime in long format
32942 * fs/ext2.c (grub_ext2_dir): use new dir syntax and supply mtime
32943 (grub_ext2_mtime): new function
32944 * fs/hfsplus.c (grub_hfsplus_dir): use new dir syntax and supply mtime
32945 (grub_hfsplus_mtime): new function
32946 * fs/ufs.c (GRUB_UFS_ATTR_TYPE): new definition
32947 (GRUB_UFS_ATTR_FILE): likewise
32948 (GRUB_UFS_ATTR_LNK): likewise
32949 (struct grub_ufs_sblock): new fields mtime
32950 (grub_ufs_read_inode): new parameter to read inode to a separate buffer
32952 (grub_ufs_dir): mtime support
32953 (grub_ufs_mtime): new function
32954 * fs/affs.c (grub_affs_dir): use new dir syntax
32955 * fs/afs.c (grub_afs_dir): likewise
32956 * fs/cpio.c (grub_cpio_dir): likewise
32957 * fs/fat.c (grub_fat_find_dir): likewise
32958 * fs/hfs.c (grub_hfs_dir): likewise
32959 * fs/iso9660.c (grub_iso9660_dir): likewise
32960 * fs/jfs.c (grub_jfs_dir): likewise
32961 * fs/minix.c (grub_minix_dir): likewise
32962 * fs/ntfs.c (grub_ntfs_dir): likewise
32963 * fs/reiserfs.c (grub_reiserfs_dir): likewise
32964 * fs/sfs.c (grub_sfs_dir): likewise
32965 * fs/xfs.c (grub_xfs_dir): likewise
32966 * util/hostfs.c (grub_hostfs_dir): likewise
32967 * lib/datetime.c: moved to ...
32968 * normal/datetime.c: ... moved here
32969 (grub_unixtime2datetime): new function
32970 * kern/rescue.c (grub_rescue_print_files): use new dir syntax
32971 * normal/completion.c (iterate_dir): use new dir syntax
32972 * normal/misc.c (grub_normal_print_device_info): tell the
32973 last modification time of a volume
32974 * kern/fs.c (grub_fs_probe): updated dummy function to use new syntax
32975 * conf/common.rmk: added lib/datetime.c to ls.mod
32976 * conf/i386-coreboot.rmk (grub_emu_SOURCES): add normal/datetime.c
32977 (normal_mod_SOURCES): likewise
32978 (datetime_mod_SOURCES): Removed lib/datetime.c
32979 * conf/i386-efi.rmk: likewise
32980 * conf/i386-ieee1275.rmk: likewise
32981 * conf/i386-pc.rmk: likewise
32982 * conf/powerpc-ieee1275.rmk: likewise
32983 * conf/sparc64-ieee1275.rmk: likewise
32984 * conf/x86_64-efi.rmk: likewise
32986 2009-04-05 Vladimir Serbinenko <phcoder@gmail.com>
32988 Trim trailing spaces in FAT label and support mtools-like labels
32990 * fs/fat.c (grub_fat_iterate_dir): New function based
32991 on grub_fat_find_dir
32992 (grub_fat_find_dir): use grub_fat_iterate_dir
32993 (grub_fat_label): likewise
32995 2009-04-04 Vladimir Serbinenko <phcoder@gmail.com>
32997 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): add list.h
32999 remove extraneous kernel_elf_HEADERS
33001 2009-04-04 Bean <bean123ch@gnail.com>
33003 * include/grub/util/misc.h: Add dummy function fsync for mingw.
33005 * util/misc.c: Likewise.
33007 2009-04-04 Yoshinori K. Okuji <okuji@enbug.org>
33009 * loader/i386/efi/linux.c (fake_bios_data): Use grub_dprintf
33010 instead of grub_printf.
33012 2009-04-03 Robert Millan <rmh@aybabtu.com>
33014 * loader/i386/linux.c (grub_linux_setup_video): Fill
33015 `params->{red,green,blue,reserved}_{mask_size,field_pos}' with
33016 values from `mode info' structure instead of hardcoded
33019 2009-04-01 Pavel Roskin <proski@gnu.org>
33021 * Makefile.in: Remove all references to MODULE_LDFLAGS, it's
33023 * genmk.rb: Likewise.
33024 * configure.ac: Likewise.
33026 2009-04-01 Manoel Abranches <mrabran@linux.vnet.ibm.com>
33028 * aclocal.m4: Move --build-id=none from MODULE_LDFLAGS to
33029 TARGET_LDFLAGS. This corrects a problem with grub-mkelfimage.
33031 2009-04-01 David S. Miller <davem@davemloft.net>
33033 * normal/sparc64/setjmp.S: Fix setjmp implementation.
33034 * include/grub/sparc64/setjmp.h (grub_jmp_buf): Update.
33035 (grub_setjmp): Mark with 'returns_twice' attribute.
33036 * include/grub/i386/setjmp.h (grub_setjmp): Likewise
33037 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise.
33038 * include/grub/x86_64/setjmp.h (grub_setjmp): Likewise.
33040 2009-04-01 Robert Millan <rmh@aybabtu.com>
33042 Reapply fix from 2008-07-28 which was accidentally reverted; also
33043 perform the same fix to a similar check in same function.
33045 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
33046 with the same number are found, just use issue a warning with
33047 grub_dprintf(), as this error has been reported to be non-fatal.
33049 2009-03-31 Pavel Roskin <proski@gnu.org>
33051 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Provide safe default
33052 for cross-compilation.
33054 2009-03-30 Robert Millan <rmh@aybabtu.com>
33056 Fix i386-ieee1275 build.
33058 * include/grub/i386/ieee1275/loader.h (grub_multiboot2_real_boot):
33059 Remove declaration.
33061 2009-03-30 Pavel Roskin <proski@gnu.org>
33063 * fs/hfs.c (grub_hfs_strncasecmp): Integrate into ...
33064 (grub_hfs_cmp_catkeys): ... this. Don't assume strings to be
33065 zero-terminated, rely only on the strlen value. Fix comparison
33066 of strings differing in length.
33068 2009-03-30 Robert Millan <rmh@aybabtu.com>
33070 * loader/i386/linux.c (grub_cmd_linux): Check for zImage before
33071 checking for abi version. Improve error messages on BIOS to notify
33072 user about `linux16' command.
33074 2009-03-29 Vladimir Serbinenko <phcoder@gmail.com>
33078 * kern/disk.c (grub_disk_cache_store): Invalidate previous cache
33079 in case of collision
33080 * disk/scsi.c (grub_scsi_open): free scsi in case of error
33082 2009-03-29 Robert Millan <rmh@aybabtu.com>
33084 * loader/i386/linux.c (grub_cmd_linux): Parse "vga=" parameter and
33085 set `vid_mode' accordingly.
33086 (grub_linux_boot): Process `vid_mode' and set video mode.
33088 2009-03-29 Robert Millan <rmh@aybabtu.com>
33090 * util/grub.d/10_linux.in (linux_entry): New function.
33091 Factorize generation of Linux boot entries.
33093 2009-03-29 Yoshinori K. Okuji <okuji@enbug.org>
33095 Make the format of Environment Block plain text. The boot loader
33096 part is not tested well yet.
33098 * util/grub-editenv.c (DEFAULT_ENVBLK_SIZE): New macro.
33100 (envblk): Likewise.
33101 (usage): Remove "info" and "clear". Add "unset". Update the
33102 description of "set", as this does not delete variables any
33104 (create_envblk_file): Complete rewrite.
33105 (open_envblk_file): Likewise.
33106 (cmd_info): Removed.
33107 (cmd_list): Likewise.
33108 (cmd_set): Likewise.
33109 (cmd_clear): Likewise.
33110 (list_variables): New function.
33111 (write_envblk): Likewise.
33112 (set_variables): Likewise.
33113 (unset_variables): Likewise.
33114 (main): Complete rewrite.
33116 * commands/loadenv.c (buffer): Removed.
33117 (envblk): Likewise.
33118 (open_envblk_file): New function.
33119 (read_envblk_file): Complete rewrite.
33120 (grub_cmd_load_env): Likewise.
33121 (grub_cmd_list_env): Likewise.
33122 (struct blocklist): New struct.
33123 (free_blocklists): New function.
33124 (check_blocklists): Likewise.
33125 (write_blocklists): Likewise.
33126 (grub_cmd_save_env): Complete rewrite.
33128 * include/grub/lib/envblk.h (GRUB_ENVBLK_SIGNATURE): Replaced with
33129 a plain text signature.
33130 (GRUB_ENVBLK_MAXLEN): Removed.
33131 (struct grub_envblk): Complete rewrite.
33132 (grub_envblk_find): Removed.
33133 (grub_envblk_insert): Likewise.
33134 (grub_envblk_open): New prototype.
33135 (grub_envblk_set): Likewise.
33136 (grub_envblk_delete): Put const to VALUE.
33137 (grub_envblk_iterate): Put const to NAME and VALUE.
33138 (grub_envblk_close): New prototype.
33139 (grub_envblk_buffer): New inline function.
33140 (grub_envblk_size): Likewise.
33142 * lib/envblk.c: Include grub/mm.h.
33143 (grub_env_find): Removed.
33144 (grub_envblk_open): New function.
33145 (grub_envblk_close): Likewise.
33146 (escaped_value_len): Likewise.
33147 (find_next_line): Likewise.
33148 (grub_envblk_insert): Removed.
33149 (grub_envblk_set): New function.
33150 (grub_envblk_delete): Complete rewrite.
33151 (grub_envblk_iterate): Likewise.
33153 2009-03-28 Robert Millan <rmh@aybabtu.com>
33155 * conf/i386-pc.rmk (pkglib_MODULES): Add `linux16.mod'.
33156 (linux16_mod_SOURCES, linux16_mod_CFLAGS, linux16_mod_LDFLAGS): New
33157 variables. Use 16-bit loader.
33158 (linux_mod_SOURCES, linux_mod_CFLAGS, linux_mod_LDFLAGS): Use 32-bit
33160 * kern/i386/loader.S (grub_linux_boot): Rename to ...
33161 (grub_linux16_boot): ... this. Update all users.
33162 * loader/i386/linux.c (grub_linux32_boot): Rename to ...
33163 (grub_linux_boot): ... this. Update all users.
33165 * loader/i386/pc/linux.c (GRUB_MOD_INIT(linux)): Rename to ...
33166 (GRUB_MOD_INIT(linux16)): ... this. Rename `linux' and `initrd'
33167 commands to `linux16' and `initrd16'.
33168 (GRUB_MOD_FINI(linux)): Rename to ...
33169 (GRUB_MOD_FINI(linux16)): ... this.
33171 2009-03-24 Pavel Roskin <proski@gnu.org>
33173 * genmk.rb: Define ASM_FILE for *.S files for *.lst generation,
33174 not just for compilation.
33176 2009-03-22 Vladimir Serbinenko <phcoder@gmail.com>
33178 Move multiboot helper out of kernel
33180 * conf/i386-pc.rmk (multiboot_mod_SOURCES): Add
33181 `loader/i386/multiboot_helper.S'.
33182 * conf/i386-coreboot.rmk: Likewise
33183 * conf/i386-ieee1275.rmk: Likewise
33185 * kern/i386/loader.S: Move multiboot helpers from here...
33186 * loader/i386/multiboot_helper.S: ...moved here
33187 * include/grub/i386/loader.h: Move declarations of multiboot
33188 helpers from here...
33189 * include/grub/i386/multiboot.h: ...moved here
33190 * loader/i386/multiboot.c: Added include of grub/cpu/multiboot.h
33192 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33194 * kern/env.c (grub_env_context_open): Added an argument to specify
33195 whether a new context inherits exported variables from current
33196 one. This is useful when making a sandbox to interpret a config
33198 All callers updated.
33200 * include/grub/env.h (grub_env_context_open): Updated the prototype.
33202 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33204 * kern/env.c (grub_env_context_close): Fix memory leaks.
33206 2009-03-22 Yoshinori K. Okuji <okuji@enbug.org>
33208 * normal/main.c (grub_normal_execute): Added an argument
33209 BATCH to specify if an interactive interface should be provided
33210 after reading a config file.
33211 All callers updated.
33212 (read_command_list): Prevent being executed twice.
33213 (read_fs_list): Likewise.
33215 * include/grub/normal.h (grub_normal_execute): Updated the
33218 2009-03-22 Pavel Roskin <proski@gno.org>
33220 * kern/powerpc/ieee1275/startup.S: Replace EXT_C(start) with
33222 * kern/i386/pc/startup.S: Likewise.
33223 * kern/i386/efi/startup.S: Likewise.
33224 * kern/i386/ieee1275/startup.S: Likewise.
33225 * kern/i386/coreboot/startup.S: Likewise.
33226 * kern/x86_64/efi/startup.S: Likewise.
33228 * aclocal.m4 (grub_CHECK_START_SYMBOL): Remove.
33229 * configure.ac: Don't call grub_CHECK_START_SYMBOL.
33230 * kern/i386/pc/startup.S: Use _start instead of START_SYMBOL.
33232 2009-03-21 Vladimir Serbinenko <phcoder@gmail.com>
33234 Bugfixes in multiboot for bugs uncovered by solaris kernel.
33236 * loader/i386/multiboot_elfxx.c (grub_multiboot_load_elf): Corrected
33238 Use vaddr of correct segment for entry_point.
33240 2009-03-21 Bean <bean123ch@gmail.com>
33242 * commands/blocklist.c: Add include file <grub/command.h>, remove
33243 <grub/normal.h> and <grub/arg.h>.
33244 (grub_cmd_blocklist): Use the new command interface.
33245 (GRUB_MOD_INIT): Likewise.
33246 (GRUB_MOD_FINI): Likewise.
33247 * commands/boot.c: Likewise.
33248 * commands/cat.c: Likewise.
33249 * commands/cmp.c: Likewise.
33250 * commands/configfile.c: Likewise.
33251 * commands/crc.c: Likewise.
33252 * commands/echo.c: Likewise.
33253 * commands/halt.c: Likewise.
33254 * commands/handler.c: Likewise.
33255 * commands/hdparm.c: Likewise.
33256 * commands/help.c: Likewise.
33257 * commands/hexdump.c: Likewise.
33258 * commands/loadenv.c: Likewise.
33259 * commands/ls.c: Likewise.
33260 * commands/lsmmap.c: Likewise.
33261 * commands/lspci.c: Likewise.
33262 * commands/loadenv.c: Likewise.
33263 * commands/read.c: Likewise.
33264 * commands/reboot.c: Likewise.
33265 * commands/search.c: Likewise.
33266 * commands/sleep.c: Likewise.
33267 * commands/test.c: Likewise.
33268 * commands/usbtest.c: Likewise.
33269 * commands/videotest.c: Likewise.
33270 * commands/i386/cpuid.c: Likewise.
33271 * commands/i386/pc/halt.c: Likewise.
33272 * commands/i386/pc/play.c: Likewise.
33273 * commands/i386/pc/pxecmd.c: Likewise.
33274 * commands/i386/pc/vbeinfo.c: Likewise.
33275 * commands/i386/pc/vbetest.c: Likewise.
33276 * commands/ieee1275/suspend.c: Likewise.
33277 * disk/loopback.c: Likewise.
33278 * font/font_cmd.c: Likewise.
33279 * hello/hello.c: Likewise.
33280 * loader/efi/appleloader.c: Likewise.
33281 * loader/efi/chainloader.c: Likewise.
33282 * loader/i386/bsd.c: Likewise.
33283 * loader/i386/efi/linux.c: Likewise.
33284 * loader/i386/ieee1275/linux.c: Likewise.
33285 * loader/i386/linux.c: Likewise.
33286 * loader/i386/pc/chainloader.c: Likewise.
33287 * loader/i386/pc/linux.c: Likewise.
33288 * loader/powerpc/ieee1275/linux.c: Likewise.
33289 * loader/multiboot_loader.c: Likewise.
33290 * term/gfxterm.c: Likewise.
33291 * term/i386/pc/serial.c: Likewise.
33292 * term/terminfo.c: Likewise.
33294 * term/i386/pc/vesafb.c: Removed <grub/arg.h>.
33295 * term/i386/pc/vga.c: Likewise.
33296 * video/readers/jpeg.c: Likewise.
33297 * video/readers/png.c: Likewise.
33298 * video/readers/tga.c: Likewise.
33300 * util/grub-fstest (cmd_loopback): Removed.
33301 (cmd_blocklist): Likewise.
33302 (cmd_ls): Likewise.
33303 (grub_register_command): Likewise.
33304 (grub_unregister_command): Likewise.
33305 (execute_command): Use grub_command_find to locate command and execute
33308 * include/grub/efi/chainloader.h: Removed.
33309 * loader/efi/chainloader_normal.c: Likewise.
33310 * loader/i386/bsd_normal.c: Likewise.
33311 * loader/i386/pc/chainloader_normal.c: Likewise.
33312 * loader/i386/pc/multiboot_normal.c: Likewise.
33313 * loader/linux_normal.c: Likewise.
33314 * loader/multiboot_loader_normal.c: Likewise.
33315 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
33317 * gencmdlist.sh: Scan new registration command grub_register_extcmd
33318 and grub_register_command_p1.
33320 * conf/common.rmk (grub_fstest_SOURCES): Add kern/list.c,
33321 kern/command.c, lib/arg.c and commands/extcmd.c.
33322 (pkglib_MODULES): Remove boot.mod, and minicmd.mod and extcmd.mod.
33323 (minicmd_mod_SOURCES): New variable.
33324 (minicmd_mod_CFLAGS): Likewise.
33325 (minicmd_mod_LDFLAGS): Likewise.
33326 (extcmd_mod_SOURCES): Likewise.
33327 (extcmd_mod_CFLAGS): Likewise.
33328 (extcmd_mod_LDFLAGS): Likewise.
33329 (boot_mod_SOURCES): Removed.
33330 (boot_mod_CFLAGS): Likewise.
33331 (boot_mod_LDFLAGS): Likewise.
33333 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/command.c and
33335 (kernel_img_HEADERS): Add command.h.
33336 (grub_emu_SOURCES): Remove commands/boot.c and normal/arg.c, add
33337 commands/minicmd.c, kern/command.c, kern/corecmd.c, commands/extcmd.c
33339 (pkglib_MODULES): Change _linux.mod, _chain.mod, _bsd.mod and
33340 _multiboot.mod as linux.mod, chain.mod, bsd.mod and multiboot.mod,
33341 remove the corresponding normal mode command.
33342 (normal_mod_SOURCES): Remove normal/arg.c.
33343 * conf/i386-coreboot.rmk: Likewise.
33344 * conf/i386-efi.rmk: Likewise.
33345 * conf/i386-ieee1275.rmk: Likewise.
33346 * conf/powerpc-ieee1275.rmk: Likewise.
33347 * conf/x86_64-efi.rmk: Likewise.
33349 * include/grub/arg.h: Move from here ...
33350 * include/grub/lib/arg.h: ... to here.
33352 * normal/arg.c: Move from here ...
33353 * lib/arg.c: ... to here.
33355 * commands/extcmd.c: New file.
33356 * commands/minicmd.c: Likewise.
33357 * include/grub/command.h: Likewise.
33358 * include/grub/extcmd.h: Likewise.
33359 * kern/command.c: Likewise.
33360 * kern/corecmd.c: Likewise.
33362 * kern/list.c (grub_list_iterate): Return int instead of void.
33363 (grub_list_insert): New function.
33364 (grub_prio_list_insert): Likewise.
33366 * kern/rescue.c (grub_rescue_command): Removed.
33367 (grub_rescue_command_list): Likewise.
33368 (grub_rescue_register_command): Likewise.
33369 (grub_rescue_unregister_command): Likewise.
33370 (grub_rescue_cmd_boot): Move to minicmd.c
33371 (grub_rescue_cmd_help): Likewise.
33372 (grub_rescue_cmd_info): Likewise.
33373 (grub_rescue_cmd_boot): Likewise.
33374 (grub_rescue_cmd_testload): Likewise.
33375 (grub_rescue_cmd_dump): Likewise.
33376 (grub_rescue_cmd_rmmod): Likewise.
33377 (grub_rescue_cmd_lsmod): Likewise.
33378 (grub_rescue_cmd_exit): Likewise.
33379 (grub_rescue_print_devices): Moved to corecmd.c.
33380 (grub_rescue_print_files): Likewise.
33381 (grub_rescue_cmd_ls): Likewise.
33382 (grub_rescue_cmd_insmod): Likewise.
33383 (grub_rescue_cmd_set): Likewise.
33384 (grub_rescue_cmd_unset): Likewise.
33385 (attempt_normal_mode): Use grub_command_find to get normal module.
33386 (grub_enter_rescue_mode): Use grub_register_core_commands to register
33387 commands, remove grub_rescue_register_command calls.
33389 * normal/command.c (grub_register_command): Removed.
33390 (grub_unregister_command): Likewise.
33391 (grub_command_find): Likewise.
33392 (grub_iterate_commands): Likewise.
33393 (rescue_command): Likewise.
33394 (export_command): Moved to corecmd.c.
33395 (set_command): Removed.
33396 (unset_command): Likewise.
33397 (insmod_command): Likewise.
33398 (rmmod_command): Likewise.
33399 (lsmod_command): Likewise.
33400 (grub_command_init): Likewise.
33402 * normal/completion.c (iterate_command): Use cmd->prio to check for
33404 (complete_arguments): Use grub_extcmd_t structure to find options.
33405 (grub_normal_do_completion): Change function grub_iterate_commands to
33406 grub_command_iterate.
33408 * normal/execute.c (grub_script_execute_cmd): No need to parse
33411 * normal/main.c (grub_dyncmd_dispatcher): New function.
33412 (read_command_list): Register unload commands as dyncmd.
33413 (grub_cmd_normal): Use new command interface, register rescue,
33414 unregister normal at entry, register normal, unregister rescue at exit.
33416 * include/grub/list.h (grub_list_test_t): New type.
33417 (grub_list_iterate): Return int instead of void.
33418 (grub_list_insert): New function.
33419 (GRUB_AS_NAMED_LIST_P): New macro.
33420 (GRUB_AS_PRIO_LIST): Likewise.
33421 (GRUB_AS_PRIO_LIST_P): Likewise.
33422 (GRUB_PRIO_LIST_PRIO_MASK): New constant.
33423 (GRUB_PRIO_LIST_FLAG_ACTIVE): Likewise.
33424 (grub_prio_list): New structure.
33425 (grub_prio_list_insert): New function.
33426 (grub_prio_list_remove): New inline function.
33428 * include/grub/normal.h: Remove <grub/arg.h>, add <grub/command.h>.
33429 (GRUB_COMMAND_FLAG_CMDLINE): Moved to command.h.
33430 (GRUB_COMMAND_FLAG_MENU): Likewise.
33431 (GRUB_COMMAND_FLAG_BOTH): Likewise.
33432 (GRUB_COMMAND_FLAG_TITLE): Likewise.
33433 (GRUB_COMMAND_FLAG_NO_ECHO): Likewise.
33434 (GRUB_COMMAND_FLAG_NO_ARG_PARSE): Removed.
33435 (GRUB_COMMAND_FLAG_NOT_LOADED): Likewise.
33436 (grub_command): Likewise.
33437 (grub_register_command): Likewise.
33438 (grub_command_find): Likewise.
33439 (grub_iterate_commands): Likewise.
33440 (grub_command_init): Likewise.
33441 (grub_arg_parse): Likewise.
33442 (grub_arg_show_help): Likewise.
33444 * include/grub/rescue.h (grub_rescue_register_command): Removed.
33445 (grub_rescue_unregister_command): Likewise.
33447 * include/grub/i386/bsd.h: Remove grub_rescue_cmd_freebsd,
33448 grub_rescue_cmd_openbsd, grub_rescue_cmd_netbsd,
33449 grub_rescue_cmd_freebsd_loadenv and grub_rescue_cmd_freebsd_module.
33451 * include/grub/i386/efi/loader.h: Remove grub_rescue_cmd_linux and
33452 grub_rescue_cmd_initrd.
33453 * include/grub/i386/loader.h: Likewise.
33454 * include/grub/x86_64/loader.h: Likewise.
33456 * include/grub/i386/pc/chainloader.h: Remove grub_chainloader_cmd.
33458 2009-03-21 Bean <bean123ch@gmail.com>
33460 * util/hostdisk.c (read_device_map): Use grub_util_get_disk_size
33461 instead of stat in mingw environment.
33463 * util/misc.c (grub_millisleep): Use Sleep in mingw environment.
33465 * aclocal.m4 (grub_CHECK_LINK_DIR): New function.
33467 * configure.ac: Use grub_CHECK_LINK_DIR to determine whether to use
33470 2009-03-21 Bean <bean123ch@gmail.com>
33472 * fs/ext2.c (grub_ext2_mount): Change errno to GRUB_ERR_BAD_FS for
33473 out of range error.
33475 2009-03-18 Michel Dänzer <michel@daenzer.net>
33477 * fs/ext2.c (grub_ext2_read_block): Take endianness into account when
33478 checking inode flags for EXT4_EXTENTS_FLAG.
33480 2009-03-18 Robert Millan <rmh@aybabtu.com>
33482 * loader/i386/linux.c: Include `<grub/video.h>' and
33483 `<grub/i386/pc/vbe.h>'..
33484 (grub_linux_setup_video): New function. Loosely based on the EFI one.
33485 (grub_linux32_boot): Attempt to configure video settings with
33486 grub_linux_setup_video().
33487 (grub_rescue_cmd_linux): Set noreturn=0 in grub_loader_set, in order
33488 to avoid grub_console_fini() which would step out of graphical mode
33491 2009-03-14 Robert Millan <rmh@aybabtu.com>
33493 Fix build on powerpc.
33494 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Add `handler.h'.
33496 2009-03-12 Vladimir Serbinenko <phcoder@gmail.com>
33498 * term/gfxterm.c (GRUB_MOD_FINI(term_gfxterm)): Correct name of
33499 background image command.
33501 2009-03-12 Colin D Bennett <colin@gibibit.com>
33503 * term/gfxterm.c (draw_cursor): Ensure character is redrawn.
33504 (grub_gfxterm_putchar): Extract pairs of identical calls to
33505 draw_cursor out of conditional blocks.
33507 2009-03-11 Pavel Roskin <proski@gnu.org>
33509 * fs/hfs.c (grub_hfs_strncasecmp): New function.
33510 (grub_hfs_cmp_catkeys): Use HFS specific string comparison.
33512 2009-03-11 Robert Millan <rmh@aybabtu.com>
33514 * loader/i386/multiboot_elfxx.c
33515 (CONCAT(grub_multiboot_load_elf, XX)): Do not reject ET_DYN files.
33517 2009-03-11 Felix Zielcke <fzielcke@z-51.de>
33519 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add `kern/list.c' and
33522 2009-03-11 Robert Millan <rmh@aybabtu.com>
33524 * loader/i386/multiboot.c (code_size): New variable.
33525 (grub_multiboot): Define offsets by adding to `code_size' rather
33526 than subtracting from `grub_multiboot_payload_size'. Provide
33527 4-byte alignment to MBI and others by increasing
33528 `boot_loader_name_length' appropriately.
33530 * loader/i386/multiboot_elfxx.c
33531 (CONCAT(grub_multiboot_load_elf, XX)): Initialize `code_size'.
33533 2009-03-09 Felix Zielcke <fzielcke@z-51.de>
33535 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove duplicated
33538 2009-03-08 Robert Millan <rmh@aybabtu.com>
33540 Make loader/i386/linux.c usable on i386-pc again.
33542 * kern/i386/pc/init.c (grub_machine_init): Disable addition of low
33544 * loader/i386/linux.c [GRUB_MACHINE_PCBIOS] (allocate_pages): Remove
33547 2009-03-07 Bean <bean123ch@gmail.com>
33549 * loader/i386/efi/linux.c (grub_rescue_cmd_initrd): Fix a bug in initrd
33552 2009-03-06 Robert Millan <rmh@aybabtu.com>
33554 Fix display issue on terminals with screen size other than 80x25
33555 (e.g. gfxterm with resolution higher than 640x480).
33557 * normal/main.c (grub_normal_init_page): Display title text in a
33558 position relative to the center of the terminal instead of relying
33559 on a hardcoded offset.
33561 2009-03-04 Robert Millan <rmh@aybabtu.com>
33563 Filter /etc/grub.d/10_* so that only add-ons for native kernels are
33566 * Makefile.in (host_kernel): New variable.
33567 * conf/common.rmk (grub-mkconfig_SCRIPTS): Conditionalize all 10_*.in
33568 scripts instead of just the windows one.
33569 * configure.ac: Initialize and AC_SUBST `host_kernel'.
33571 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33573 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `kern/list.c' and
33575 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33576 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33577 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33578 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33579 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33580 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33582 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33584 * partmap/pc.c (pc_partition_map_iterate): Skip over invalid BSD partitions
33585 or if there's no space for the disk label and print the partition number on a
33588 2009-03-04 Felix Zielcke <fzielcke@z-51.de>
33590 * util/misc.c: Include <time.h>.
33591 (grub_millisleep): New function.
33593 2009-03-04 Bean <bean123ch@gmail.com>
33595 * configure.ac: Only test -mcmodel=large option in x86_64-efi, also add
33596 another option -mno-red-zone.
33598 * commands/handler.c: Change module description.
33600 * kern/handler.c: Add missing space at the end of description line.
33602 * kern/list.c: Likewise.
33604 2009-03-03 Robert Millan <rmh@aybabtu.com>
33606 Move more components to the relocation area, and fix mbi pointer
33607 handling to use the destination rather than the origin (thanks to
33608 Vladimir Serbinenko for spotting).
33610 * loader/i386/multiboot.c (mbi_dest): New variable.
33611 (grub_multiboot_boot): Use `mbi_dest' instead of `mbi'.
33612 (grub_multiboot): Put cmdline, boot_loader_name and mbi in the
33615 2009-03-01 Bean <bean123ch@gmail.com>
33617 * include/grub/efi/api.h (GRUB_EFI_MPS_TABLE_GUID): New constant.
33618 (GRUB_EFI_ACPI_TABLE_GUID): Likewise.
33619 (GRUB_EFI_ACPI_20_TABLE_GUID): Likewise.
33620 (GRUB_EFI_SMBIOS_TABLE_GUID): Likewise.
33622 * loader/i386/efi/linux.c (acpi_guid): New variable.
33623 (acpi_guid): Likewise.
33624 (EBDA_SEG_ADDR): New constant.
33625 (LOW_MEM_ADDR): Likewise.
33626 (FAKE_EBDA_SEG): Likewise.
33627 (fake_bios_data): New function.
33628 (grub_linux_boot): Call fake_bios_data.
33630 2009-03-01 Bean <bean123ch@gmail.com>
33632 * commands/terminal.c: Removed.
33634 * commands/handler.c: New file.
33636 * include/grub/list.h: Likewise.
33638 * include/grub/handler.h: Likewise.
33640 * kern/list.c: Likewise.
33642 * kern/handler.c: Likewise.
33644 * kern/term.h: Include header file <grub/handler.h>.
33645 (grub_term_input): Move next field to the beginning.
33646 (grub_term_output): Likewise.
33647 (grub_term_input_class): New variable.
33648 (grub_term_output_class): Likewise.
33649 (grub_term_register_input): Changed to inline function.
33650 (grub_term_register_output): Likewise.
33651 (grub_term_unregister_input): Likewise.
33652 (grub_term_unregister_output): Likewise.
33653 (grub_term_set_current_input): Likewise.
33654 (grub_term_set_current_output): Likewise.
33655 (grub_term_get_current_input): Likewise.
33656 (grub_term_get_current_output): Likewise.
33657 (grub_term_iterate_input): Removed.
33658 (grub_term_iterate_output): Likewise.
33660 * kern/term.c (grub_term_list_input): Removed.
33661 (grub_term_list_output): Likewise.
33662 (grub_term_input_class): New variable.
33663 (grub_term_output_class): Likewise.
33664 (grub_cur_term_input): Change variable as macro.
33665 (grub_cur_term_output): Likewise.
33666 (grub_term_register_input): Removed.
33667 (grub_term_register_output): Likewise.
33668 (grub_term_unregister_input): Likewise.
33669 (grub_term_unregister_output): Likewise.
33670 (grub_term_set_current_input): Likewise.
33671 (grub_term_set_current_output): Likewise.
33672 (grub_term_iterate_input): Likewise.
33673 (grub_term_iterate_output): Likewise.
33674 (grub_term_get_current_input): Likewise.
33675 (grub_term_get_current_output): Likewise.
33677 * util/grub-editenv.c: Include header file <grub/handler.h>.
33678 (grub_term_get_current_input): Removed.
33679 (grub_term_get_current_output): Likewise.
33680 (grub_term_input_class): New variable.
33681 (grub_term_output_class): Likewise.
33683 * util/grub-fstest.c (grub_term_get_current_input): Removed.
33684 (grub_term_get_current_output): Likewise.
33685 (grub_term_input_class): New variable.
33686 (grub_term_output_class): Likewise.
33688 * util/grub-probe.c (grub_term_get_current_input): Removed.
33689 (grub_term_get_current_output): Likewise.
33690 (grub_term_input_class): New variable.
33691 (grub_term_output_class): Likewise.
33693 * util/i386/pc/grub-setup.c (grub_term_get_current_input): Removed.
33694 (grub_term_get_current_output): Likewise.
33695 (grub_term_input_class): New variable.
33696 (grub_term_output_class): Likewise.
33698 * conf/common.rmk (pkglib_MODULES): Replace terminal with handler.
33699 (terminal_mod_SOURCES): Likewise.
33700 (terminal_mod_CFLAGS): Likewise.
33701 (terminal_mod_LDFLAGS): Likewise.
33703 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace terminal.c with
33705 (kernel_img_SOURCES): Add list.c and handler.c.
33706 (kernel_img_HEADERS): Add list.h and handler.h.
33708 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33710 (kernel_mod_SOURCES): Add list.c and handler.c.
33711 (kernel_mod_HEADERS): Add list.h and handler.h.
33713 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Replace terminal.c with
33715 (kernel_elf_SOURCES): Add list.c and handler.c.
33716 (kernel_elf_HEADERS): Add list.h and handler.h.
33718 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33720 (kernel_elf_SOURCES): Add list.c and handler.c.
33721 (kernel_elf_HEADERS): Add list.h and handler.h.
33723 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Replace terminal.c with
33725 (kernel_mod_SOURCES): Add list.c and handler.c.
33726 (kernel_mod_HEADERS): Add list.h and handler.h.
33728 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace terminal.c with
33730 (kernel_elf_SOURCES): Add list.c and handler.c.
33731 (kernel_elf_HEADERS): Add list.h and handler.h.
33733 2009-02-27 Robert Millan <rmh@aybabtu.com>
33735 Factorize elf32 / elf64 code in Multiboot loader. This will
33736 prevent it from getting out of sync again.
33738 * loader/i386/multiboot.c (grub_multiboot_is_elf32,
33739 grub_multiboot_load_elf32, grub_multiboot_is_elf64,
33740 grub_multiboot_load_elf64): Move from here ...
33741 * loader/i386/multiboot_elfxx.c (grub_multiboot_is_elf,
33742 grub_multiboot_load_elf): ... to here (new file).
33744 2009-02-27 Robert Millan <rmh@aybabtu.com>
33746 * util/grub.d/10_linux.in: Rename "single-user mode" to
33749 2009-02-27 Vladimir Serbinenko <phcoder@gmail.com>
33751 Don't leak in SCSI code.
33752 * disk/scsi.c (grub_scsi_close): free `scsi'.
33754 2009-02-27 Robert Millan <rmh@aybabtu.com>
33756 * loader/i386/pc/multiboot.c: Move from here ...
33757 * loader/i386/multiboot.c: ... to here. Update all users.
33759 2009-02-27 Robert Millan <rmh@aybabtu.com>
33761 Patch from Alexandre Bique <bique.alexandre@gmail.com>
33762 * util/i386/pc/grub-setup.c (setup): Fix directory path.
33764 2009-02-27 Krzysztof Smiechowicz <deadwood@wp.pl>
33766 * fs/sfs.c (grub_sfs_read_extent): Correction to traversing extent
33769 2009-02-27 Robert Millan <rmh@aybabtu.com>
33771 * kern/misc.c (grub_strtoull): Fix bug (it mistakenly parsed the
33772 `0x' qualifier as 0 when base is specified as parameter).
33774 2009-02-24 Bean <bean123ch@gmail.com>
33776 * configure.ac: Check for -mcmodel=large in x86_64 target.
33778 * include/grub/efi/api.h (efi_call_10): New macro.
33779 (efi_wrap_10): New function.
33781 * include/grub/efi/pe32.h (GRUB_PE32_REL_BASE_HIGH): New macro.
33782 (GRUB_PE32_REL_BASED_HIGH): Likewise.
33783 (GRUB_PE32_REL_BASED_LOW): Likewise.
33784 (GRUB_PE32_REL_BASED_HIGHLOW): Likewise.
33785 (GRUB_PE32_REL_BASED_HIGHADJ): Likewise.
33786 (GRUB_PE32_REL_BASED_MIPS_JMPADDR): Likewise.
33787 (GRUB_PE32_REL_BASED_SECTION): Likewise.
33788 (GRUB_PE32_REL_BASED_REL): Likewise.
33789 (GRUB_PE32_REL_BASED_IA64_IMM64): Likewise.
33790 (GRUB_PE32_REL_BASED_DIR64): Likewise.
33791 (GRUB_PE32_REL_BASED_HIGH3ADJ): Likewise.
33793 * kern/x86_64/dl.c (grub_arch_dl_relocate_symbols): Fixed relocation
33796 * kern/x86_64/efi/callwrap.S (efi_wrap_6): Bug fix.
33797 (efi_wrap_10): New function.
33799 * kern/x86_64/efi/startup.S (codestart): Use relative addressing.
33801 * loader/efi/appleloader.c (devpath_5): Add support for late 2008
33802 MB/MBP model (NV chipset).
33803 (devdata_devs): Add devpath_5 to the list.
33805 * load/i386/efi/linux.c (video_base): Remove variable.
33806 (RGB_MASK): New macro.
33807 (RGB_MAGIC): Likewise.
33808 (LINE_MIN): Likewise.
33809 (LINE_MAX): Likewise.
33810 (FBTEST_STEP): Likewise.
33811 (FBTEST_COUNT): Likewise.
33812 (fb_list): New variable.
33813 (grub_find_video_card): Remove function.
33814 (find_framebuf): New function.
33815 (grub_linux_setup_video): Use find_framebuf to get frame buffer and
33818 * util/i386/efi/grub-mkimage.c (grub_reloc_section): Fix relocation
33819 problem for x86_64.
33821 2009-02-22 Vesa Jääskeläinen <chaac@nic.fi>
33823 Patch #25624 by Kevin Lacquement <kevin@lacqui>.
33825 * util/grub-mkconfig.in: Use ${grub_mkdevicemap} instead of hard
33828 2009-02-22 Robert Millan <rmh@aybabtu.com>
33830 * include/multiboot.h (MULTIBOOT_INFO_ALIGN): New macro.
33831 * loader/i386/pc/multiboot.c (grub_multiboot): Include the MBI
33832 in our relocation, instead of using it directly from heap. Also
33833 use `MULTIBOOT_INFO_ALIGN' to ensure it is aligned.
33835 2009-02-21 Robert Millan <rmh@aybabtu.com>
33837 Implement USB keyboard support (based on patch by Marco Gerards)
33839 * conf/i386-pc.rmk (pkglib_MODULES): Add `usb_keyboard.mod'.
33840 (usb_keyboard_mod_SOURCES, usb_keyboard_mod_CFLAGS)
33841 (usb_keyboard_mod_LDFLAGS): New variables.
33843 * term/usb_keyboard.c: New file.
33845 2009-02-14 Vladimir Serbinenko <phcoder@gmail.com>
33847 Corrected wrong declaration
33849 * kern/disk.c: corrected declaration of grub_disk_ata_pass_through.
33851 2009-02-14 Christian Franke <franke@computer.org>
33853 * commands/lspci.c (grub_pci_classes): Add `SATA Controller'.
33854 (grub_lspci_iter): Print class code and programming interface byte.
33856 2009-02-14 Christian Franke <franke@computer.org>
33858 * gendistlist.sh: Ignore `.svn' directories.
33860 2009-02-14 Felix Zielcke <fzielcke@z-51.de>
33862 * fs/fat.c: Add 2009 to Copyright line.
33864 2009-02-14 Christian Franke <franke@computer.org>
33866 * commands/hdparm.c: New file. Provides `hdparm' command
33867 which sends ATA commands via grub_disk_ata_pass_through ().
33869 * conf/i386-pc.rmk: Add ata_pthru.mod and hdparm.mod.
33871 * disk/ata.c: Include <grub/ata.h>. Move <grub/misc.h>
33872 and <grub/cpu/io.h> to include/grub/ata.h.
33873 (enum grub_ata_addressing_t): Move to include/grub/ata.h.
33874 (GRUB_CDROM_SECTOR_SIZE): Remove.
33875 (GRUB_ATA_*): Move to include/grub/ata.h.
33876 (GRUB_ATAPI_*): Likewise.
33877 (enum grub_ata_commands): Likewise.
33878 (enum grub_ata_timeout_milliseconds): Likewise.
33879 (struct grub_ata_device): Likewise.
33880 (grub_ata_regset): Likewise.
33881 (grub_ata_regget): Likewise.
33882 (grub_ata_regset2): Likewise.
33883 (grub_ata_regget2): Likewise.
33884 (grub_ata_check_ready): Likewise.
33885 (grub_ata_wait_not_busy): Remove static, exported in
33886 include/grub/ata.h.
33887 (grub_ata_wait_drq): Likewise.
33888 (grub_ata_pio_read): Likewise.
33890 * disk/ata_pthru.c: New file. Provides grub_ata_pass_through ()
33891 function for hdparm.mod.
33893 * include/grub/ata.h: New file, contains declarations from
33895 (enum grub_ata_commands): Add new commands for commands/hdparm.c.
33897 * include/grub/disk.h (grub_disk_ata_pass_through_parms): New struct.
33898 (grub_disk_ata_pass_through): New exported variable.
33900 * kern/disk.c (grub_disk_ata_pass_through): New variable.
33902 2009-02-13 Colin D Bennett <colin@gibibit.com>
33904 Support multiple fallback entries, and provide an API to support
33905 executing default+fallback menu entries. Renamed the `terminal' menu
33908 * include/grub/normal.h (grub_normal_text_menu_viewer): New global
33909 variable declaration.
33910 (grub_menu_execute_callback): New structure declaration.
33911 (grub_menu_execute_callback_t): New typedef.
33912 (grub_menu_execute_with_fallback): New function declaration.
33913 (grub_menu_get_entry): Likewise.
33914 (grub_menu_get_timeout): Likewise.
33915 (grub_menu_set_timeout): Likewise.
33917 * normal/main.c (GRUB_MOD_INIT(normal)): Refer to new variable name.
33919 * normal/menu.c (grub_wait_after_message): Moved to
33920 `normal/menu_text.c'.
33921 (draw_border): Likewise.
33922 (print_message): Likewise.
33923 (print_entry): Likewise.
33924 (print_entries): Likewise.
33925 (grub_menu_init_page): Likewise.
33926 (get_entry_number): Likewise.
33927 (print_timeout): Likewise.
33928 (run_menu): Likewise.
33929 (grub_menu_execute_entry): Likewise.
33930 (show_text_menu): Likewise.
33931 (get_and_remove_first_entry_number): New function.
33932 (grub_menu_execute_with_fallback): Likewise.
33933 (get_entry): Renamed to ...
33934 (grub_menu_get_entry): .. this and made it global.
33935 (get_timeout): Renamed to ...
33936 (grub_menu_get_timeout): ... this and made it global.
33937 (set_timeout): Renamed to ...
33938 (grub_menu_set_timeout): ... this and made it global.
33939 (grub_normal_terminal_menu_viewer): Renamed to ...
33940 (grub_normal_text_menu_viewer): ... this.
33942 * normal/menu_text.c: New file. Extracted text-menu-specific code
33943 from normal/menu.c.
33945 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add `normal/menu_text.c'.
33946 (normal_mod_SOURCES): Likewise.
33948 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
33949 (normal_mod_SOURCES): Likewise.
33951 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33952 (normal_mod_SOURCES): Likewise.
33954 * conf/i386-pc.rmk, (grub_emu_SOURCES): Likewise.
33955 (normal_mod_SOURCES): Likewise.
33957 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33958 (normal_mod_SOURCES): Likewise.
33960 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33961 (normal_mod_SOURCES): Likewise.
33963 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33964 (normal_mod_SOURCES): Likewise.
33966 2009-02-11 Robert Millan <rmh@aybabtu.com>
33968 * util/grub.d/00_header.in: Update old reference to `font' command.
33970 2009-02-10 Felix Zielcke <fzielcke@z-51.de>
33972 * fs/fat.c (grub_fat_mount): Fix wrong comparison.
33974 Based on patch from Javier Martín.
33976 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33978 * conf/common.rmk (grub_probe_SOURCES): Move fs/ext2.c before fs/fat.c
33979 to avoid false positives with FAT.
33980 (grub_fstest_SOURCES): Likewise.
33981 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
33982 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
33983 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33984 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
33985 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33986 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
33988 2009-02-09 Felix Zielcke <fzielcke@z-51.de>
33990 * fs/fat.c (grub_fat_mount): Try to avoid false positives by checking
33991 bpb.version_specific.fat12_or_fat16.fstype and
33992 bpb.version_specific.fat32.fstype.
33994 2009-02-08 Robert Millan <rmh@aybabtu.com>
33996 * fs/tar.c: Replace "fs/cpio.c" with "cpio.c".
33998 2009-02-08 Robert Millan <rmh@aybabtu.com>
34000 * Makefile.in (host_os, host_cpu): New variables.
34001 (target_os): Remove. Update all users.
34003 2009-02-08 Marco Gerards <marco@gnu.org>
34005 * Makefile.in (enable_grub_emu_usb): New variable.
34006 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/scsi.c'.
34007 (grub_emu_SOURCES) [grub_emu_SOURCES]: Add `disk/usbms.c',
34008 `util/usb.c', `bus/usb/usb.c' and `commands/usbtest.c'.
34009 (grub_emu_LDFLAGS): Add `$(LIBUSB)'.
34010 (pkglib_MODULES): Add `usb.mod', `uhci.mod', `ohci.mod',
34011 `usbtest.mod' and `usbms.mod'.
34012 (usb_mod_SOURCES, usb_mod_CFLAGS, usb_mod_LDFLAGS)
34013 (usbtest_mod_SOURCES, usbtest_mod_CFLAGS, usbtest_mod_LDFLAGS)
34014 (uhci_mod_SOURCES, uhci_mod_CFLAGS, uhci_mod_LDFLAGS,
34015 (ohci_mod_SOURCES, ohci_mod_CFLAGS, ohci_mod_LDFLAGS)
34016 (usbms_mod_SOURCES, usbms_mod_CFLAGS, usbms_mod_LDFLAGS): New
34019 * disk/usbms.c: New file.
34021 * include/grub/usb.h: Likewise.
34023 * include/grub/usbtrans.h: Likewise.
34025 * include/grub/usbdesc.h: Likewise.
34027 * bus/usb/usbtrans.c: Likewise.
34029 * bus/usb/ohci.c: Likewise.
34031 * bus/usb/uhci.c: Likewise.
34033 * bus/usb/usbhub.c: Likewise.
34035 * bus/usb/usb.c: Likewise.
34037 * commands/usbtest.c: Likewise.
34039 * util/usb.c: Likewise.
34041 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_IO'.
34043 * configure.ac: Test for libusb presence.
34045 * util/grub-emu.c (main) [HAVE_LIBUSB_H]: Call `grub_libusb_init'.
34047 2009-02-08 Vesa Jääskeläinen <chaac@nic.fi>
34049 * kern/mm.c: Add more comments.
34051 2009-02-08 Robert Millan <rmh@aybabtu.com>
34053 Patch from Javier Martín.
34054 * fs/ext2.c (EXT2_DRIVER_SUPPORTED_INCOMPAT): Add
34055 `EXT4_FEATURE_INCOMPAT_FLEX_BG'.
34057 2009-02-08 Robert Millan <rmh@aybabtu.com>
34059 * fs/cpio.c: Split tar functionality to ...
34060 * fs/tar.c: ... here (new file). Update all users.
34062 2009-02-07 Robert Millan <rmh@aybabtu.com>
34064 * fs/ext2.c (grub_ext2_mount): Avoid mounting filesystems with
34065 backward-incompatible features.
34067 Based on patch from Javier Martín, with some adjustments.
34069 2009-02-07 Michael Scherer <misc@mandriva.org>
34071 * fs/hfs.c (grub_hfsplus_iterate_dir): Treat hfs+ as case insensitive.
34073 2009-02-07 Robert Millan <rmh@aybabtu.com>
34075 * conf/common.rmk (grub_probe_SOURCES, grub_fstest_SOURCES): Move
34076 position of `disk/lvm.c' to ensure grub_init_all() always picks it
34077 after the RAID stuff.
34079 2009-02-05 Vesa Jääskeläinen <chaac@nic.fi>
34081 Fixes problem when running vbetest command as reported by
34082 Vladimir Serbinenko <phcoder@gmail.com>.
34084 * (grub_vbe_set_video_mode): Fixed problem with text modes.
34086 2009-02-04 Felix Zielcke <fzielcke@z-51.de>
34088 util/getroot.c (grub_util_get_grub_dev): Add support for /dev/mdNpN and
34089 /dev/md/NpN style mdraid devices.
34091 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34093 * util/unifont2pff.rb: Remove.
34095 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34097 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add a missing trailing
34100 2009-02-03 Felix Zielcke <fzielcke@z-51.de>
34102 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/menu_viewer.c'.
34103 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
34104 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
34105 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Likewise.
34106 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34107 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34108 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
34110 2009-02-02 Christian Franke <franke@computer.org>
34112 * lib/hexdump.c (hexdump): Print at most 3 lines if data is identical.
34114 2009-02-01 Felix Zielcke <fzielcke@z-51.de>
34116 * INSTALL: Note that we now require at least autoconf 2.59 and
34117 that LZO is optional.
34119 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34121 Base on patch on bug #24154 created by Tomas Tintera
34122 <trosos@seznam.cz>.
34124 * video/i386/pc/vbe.c (grub_video_vbe_scroll): Fix downward scrolling.
34126 2009-02-01 Vesa Jääskeläinen <chaac@nic.fi>
34128 Based on patch on bug #25318 created by Bernhard Rosenkraenzer
34129 <bero@arklinux.org>.
34131 * normal/parser.y (script_init): Add missing semicolon.
34133 2009-01-31 Colin D Bennett <colin@gibibit.com>
34135 * normal/main.c: Add include to grub/menu_viewer.h.
34136 (free_menu_entry_classes): Added.
34137 (grub_normal_menu_addentry): Added class property handling.
34138 (grub_normal_execute): Changed to use new menu viewer for menu viewing.
34139 (GRUB_MOD_INIT(normal)): Added register for text based menu viewer.
34141 * normal/menu_viewer.c: New file.
34143 * normal/menu.c (run_menu_entry): Renamed to ...
34144 (grub_menu_execute_entry): ... this and made it as global.
34145 (grub_menu_run): Renamed to ...
34146 (show_text_menu): ... this and made it local.
34147 (show_text_menu): Adapt to new function names.
34148 (grub_normal_terminal_menu_viewer): New global variable.
34150 * include/grub/menu.h: New file.
34152 * include/grub/menu_viewer.h: New file.
34154 * include/grub/normal.h: Added include to grub/menu.h.
34155 (grub_menu_entry): Moved to include/grub/menu.h.
34156 (grub_menu_entry_t): Likewise.
34157 (grub_menu): Likewise.
34158 (grub_menu_t): Likewise.
34159 (grub_normal_terminal_menu_viewer): Added.
34160 (grub_menu_execute_entry): Likewise.
34161 (grub_menu_run): Removed.
34163 * DISTLIST: Added include/grub/menu.h.
34164 Added include/grub/menu_viewer.h.
34165 Added normal/menu_viewer.c.
34167 2009-01-31 Vesa Jääskeläinen <chaac@nic.fi>
34169 * normal/execute.c (grub_script_execute_menuentry): Changed to use
34170 arglist for menutitle arguments.
34172 * normal/main.c (grub_normal_menu_addentry): Likewise.
34174 * normal/parser.y (menuentry): Likewise.
34176 * normal/script.c (grub_script_create_cmdmenu): Likewise.
34178 * include/grub/script.h (grub_script_cmd_menuentry): Likewise.
34179 (grub_script_create_cmdmenu): Likewise.
34181 * include/grub/normal.h (grub_normal_menu_addentry): Likewise.
34183 * conf/i386-pc.rmk (normal_mod_SOURCES): Adapt Colin D Bennett's
34186 * conf/x86_64-efi.rmk (normal_mod_SOURCES): Likewise.
34188 * conf/i386-coreboot.rmk (normal_mod_SOURCES): Likewise.
34190 * conf/i386-efi.rmk (normal_mod_SOURCES): Likewise.
34192 * conf/i386-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34194 * conf/powerpc-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34196 * conf/sparc64-ieee1275.rmk (normal_mod_SOURCES): Likewise.
34198 2009-01-30 Christian Franke <franke@computer.org>
34200 * normal/arg.c (grub_arg_show_help): Add indentation if '\n' appears
34201 in option help text.
34203 2009-01-27 Pavel Roskin <proski@gnu.org>
34205 * disk/fs_uuid.c (search_fs_uuid): Ignore case of the UUID.
34207 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34209 * commands/lsmmap.c: Add include to grub/machine/memory.h.
34211 * fs/i386/pc/pxe.c (grub_pxefs_open): Fix sign problem.
34213 * term/i386/pc/at_keyboard.c (GRUB_MOD_FINI(at_keyboard)): Use proper
34214 unregister function.
34216 2009-01-27 Vesa Jääskeläinen <chaac@nic.fi>
34218 * disk/scsi.c (grub_scsi_read): Fix sign problem.
34220 * term/i386/pc/vga_text.c (grub_vga_text_init_fini). Fix declaration.
34222 * util/grub-mkfont.c (usage): Fix typo.
34224 * util/elf/grub-mkimage.c (load_modules): Fix warning.
34226 2009-01-26 Daniel Mierswa <impulze@impulze.org>
34228 * fs/fat.c (grub_fat_uuid): Fix shift of the first two bytes.
34230 * commands/search.c (search_fs_uuid): Ignore case of the UUID.
34232 * kern/misc.c (grub_strcasecmp): New function.
34233 (grub_strcasecmp): Use grub_size_t instead of int for length.
34235 * include/grub/misc.h: Update function prototypes.
34237 2009-01-26 Robert Millan <rmh@aybabtu.com>
34239 * configure.ac: Fix cross-compilation check.
34241 2009-01-22 Christian Franke <franke@computer.org>
34243 * kern/misc.c (grub_vsprintf): Fix size and termination of `format2'
34244 (precision) digit string. Allow `.format2' without `format1' (width).
34245 Limit input chars for `%s' output to `format2' if specified. This is
34246 compatible with standard printf ().
34248 2009-01-22 Christian Franke <franke@computer.org>
34250 * disk/ata.c (grub_ata_wait_status): Replace by ...
34251 (grub_ata_wait_not_busy): ... this function. Checks only BSY bit,
34252 other status bits may be invalid while BSY is asserted.
34253 (grub_ata_check_ready): New function.
34254 (grub_ata_cmd): Removed.
34255 (grub_ata_wait_drq): New function.
34256 (grub_ata_strncpy): Remove inline.
34257 (grub_ata_pio_read): Reduce to actual block transfer. BSY wait
34258 and error check now done by grub_ata_wait_drq ().
34259 (grub_ata_pio_write): Likewise.
34260 (grub_atapi_identify): Set DEV before check for !BSY. Use
34261 grub_ata_wait_drq () to wait for data.
34262 (grub_ata_device_initialize): Add status register check to
34263 detect missing SATA slave devices. Add debug messages.
34264 (grub_atapi_wait_drq): Use grub_ata_wait_not_busy ().
34265 (grub_atapi_packet): Set DEV before check for !BSY. Replace
34266 transfer loop by grub_ata_pio_write ().
34267 (grub_ata_identify): Set DEV before check for !BSY. Use
34268 grub_ata_wait_drq () to wait for data.
34269 (grub_ata_setaddress): Set DEV before check for !BSY.
34270 (grub_ata_readwrite): Remove duplicate code, handle batch/rest and
34271 read/write in one loop. Fix invalid command on write. Fix incomplete
34272 command on (size % batch) == 0. Add missing error check after write of
34273 last block. Add debug messages.
34274 (grub_atapi_read): Replace transfer loop by grub_ata_pio_read ().
34276 2009-01-19 Christian Franke <franke@computer.org>
34278 * disk/ata.c (GRUB_ATAPI_REG_*): New defines.
34279 (GRUB_ATAPI_IREASON_*): Likewise.
34280 (grub_ata_pio_write): Fix timeout error return.
34281 (grub_atapi_identify): Add grub_ata_wait () after cmd.
34282 (grub_atapi_wait_drq): New function.
34283 (grub_atapi_packet): New parameter `size'.
34284 Use grub_atapi_wait_drq () and direct write instead of
34285 grub_ata_pio_write ().
34286 (grub_atapi_read): Replace grub_ata_pio_read () by a loop which
34287 reads the number of bytes requested by the device for each DRQ
34289 (grub_atapi_write): Remove old implementation, return not
34290 implemented instead.
34292 2009-01-19 Christian Franke <franke@computer.org>
34294 * disk/scsi.c (grub_scsi_read10): Use scsi->blocksize instead
34295 of 512 to calculate data size.
34296 (grub_scsi_read12): Likewise.
34297 (grub_scsi_write10): Likewise.
34298 (grub_scsi_write12): Likewise.
34299 (grub_scsi_read): Adjust size according to blocksize.
34300 Add checks for invalid blocksize and unaligned transfer.
34302 2009-01-19 Vesa Jääskeläinen <chaac@nic.fi>
34304 * font/font.c (grub_font_loader_init): Re-position unknown glyph.
34306 * term/gfxterm.c (write_char): Fix background rendering for wide
34309 2009-01-19 Robert Millan <rmh@aybabtu.com>
34311 * config.guess: Update to latest version from config git.
34312 * config.sub: Likewise.
34314 2009-01-17 Felix Zielcke <fzielcke@z-51.de>
34316 * Makefile.in: Change font compilation to use new grub-mkfont instead
34319 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: Remove.
34320 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34321 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34322 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34323 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34324 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34325 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34326 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34327 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34329 2009-01-16 Christian Franke <franke@computer.org>
34331 * disk/ata.c (enum grub_ata_commands): Remove EXEC_DEV_DIAGNOSTICS.
34332 (enum grub_ata_timeout_milliseconds): New enum.
34333 (grub_ata_wait_status): Add parameter milliseconds.
34334 (grub_ata_cmd): Remove variable `err'. Remove wait for !DRQ to allow
34335 recovery from timed-out commands.
34336 (grub_ata_pio_read): Add parameter milliseconds. Fix error return,
34337 return grub_errno instead of REG_ERROR.
34338 (grub_ata_pio_write): Add parameter milliseconds.
34339 (grub_atapi_identify): Fix size of ATAPI IDENTIFY sector.
34340 Pass milliseconds to grub_ata_wait_status () and
34341 grub_ata_pio_read ().
34342 (grub_atapi_packet): Pass milliseconds to grub_ata_pio_write ().
34343 (grub_ata_identify): Remove variable `ataerr'. Pass milliseconds to
34344 grub_ata_wait_status (). Fix IDENTIFY timeout check.
34345 (grub_ata_device_initialize): Remove EXECUTE DEVICE DIAGNOSTICS.
34346 It is not suitable for device detection, because DEV bit is ignored,
34347 the command may run too long, and not all devices set the signature
34349 (grub_ata_pciinit): Clear grub_errno before grub_ata_device_initialize ().
34350 (grub_ata_setaddress): Pass milliseconds to grub_ata_wait_status ().
34351 Fix device selection, DEV bit must be set first to address the registers
34352 of the correct device.
34353 (grub_ata_readwrite): Pass milliseconds to grub_ata_wait_status () and
34354 grub_ata_pio_read/write ().
34355 (grub_atapi_read): Pass milliseconds to grub_ata_pio_read ().
34356 (grub_atapi_write): Pass milliseconds to grub_ata_pio_write ().
34358 2009-01-13 Carles Pina i Estany <carles@pina.cat>
34360 * util/grub-editenv.c (main): Use fseeko(), not fseek().
34362 2009-01-13 Bean <bean123ch@gmail.com>
34364 * util/grub-mkfont.c (write_font): forget to remove some debug code.
34366 2009-01-13 Bean <bean123ch@gmail.com>
34368 * Makefile.in: (enable_grub_mkfont): New variable.
34369 (freetype_cflags): Likewise.
34370 (freetype_libs): Likewise.
34372 * common.rmk (bin_UTILITIES): Add `grub-mkfont' if requested.
34373 (grub_mkfont_SOURCES): New variable.
34374 (grub_mkfont_CFLAGS): Likewise.
34375 (grub_mkfont_LDFLAGS): Likewise.
34377 * configure.ac (--enable-grub-mkfont): New option. Check for freetype2
34378 library if `--enable-grub-mkfont' is requested.
34379 (enable_grub_mkfont): New variable.
34380 (freetype_cflags): Likewise.
34381 (freetype_libs): Likewise.
34383 * util/grub-mkfont.c: New file.
34385 2009-01-12 Christian Franke <franke@computer.org>
34387 * disk/ata.c (grub_ata_pciinit): Fix bit numbers of compatibility
34388 mode check. Fix setting of compat_use[].
34390 2009-01-10 Robert Millan <rmh@aybabtu.com>
34392 Update a few copyright years which we forgot to do in 2008 (only for
34393 files whose changes made in 2008 were copyright-significant)
34395 * Makefile.in: Add 2008 to Copyright line.
34396 * disk/ieee1275/ofdisk.c: Likewise.
34397 * disk/efi/efidisk.c: Likewise.
34398 * kern/dl.c: Likewise.
34399 * kern/sparc64/ieee1275/init.c: Likewise.
34400 * kern/mm.c: Likewise.
34401 * kern/efi/mm.c: Likewise.
34402 * boot/i386/pc/boot.S: Likewise.
34403 * genfslist.sh: Likewise.
34404 * fs/iso9660.c: Likewise.
34405 * fs/hfs.c: Likewise.
34406 * fs/jfs.c: Likewise.
34407 * fs/minix.c: Likewise.
34408 * fs/ufs.c: Likewise.
34409 * gensymlist.sh.in: Likewise.
34410 * genkernsyms.sh.in: Likewise.
34411 * include/grub/misc.h: Likewise.
34412 * include/grub/types.h: Likewise.
34413 * include/grub/symbol.h: Likewise.
34414 * include/grub/elf.h: Likewise.
34415 * include/grub/kernel.h: Likewise.
34416 * include/grub/disk.h: Likewise.
34417 * include/grub/dl.h: Likewise.
34418 * include/grub/i386/linux.h: Likewise.
34419 * include/grub/i386/pc/biosdisk.h: Likewise.
34420 * include/grub/efi/api.h: Likewise.
34421 * include/grub/efi/pe32.h: Likewise.
34422 * include/grub/util/misc.h: Likewise.
34423 * normal/execute.c: Likewise.
34424 * normal/arg.c: Likewise.
34425 * normal/completion.c: Likewise.
34426 * normal/lexer.c: Likewise.
34427 * normal/parser.y: Likewise.
34428 * normal/misc.c: Likewise.
34429 * commands/i386/pc/vbeinfo.c: Likewise.
34430 * commands/hexdump.c: Likewise.
34431 * commands/terminal.c: Likewise.
34432 * commands/ls.c: Likewise.
34433 * commands/help.c: Likewise.
34434 * partmap/pc.c: Likewise.
34435 * loader/efi/chainloader.c: Likewise.
34436 * loader/multiboot_loader.c: Likewise.
34437 * loader/i386/pc/multiboot2.c: Likewise.
34438 * term/efi/console.c: Likewise.
34439 * term/i386/pc/serial.c: Likewise.
34440 * util/lvm.c: Likewise.
34441 * util/console.c: Likewise.
34442 * util/i386/efi/grub-mkimage.c: Likewise.
34443 * util/raid.c: Likewise.
34445 2009-01-06 Vesa Jääskeläinen <chaac@nic.fi>
34447 * commands/videotest.c: Removed include to grub/machine/memory.h.
34449 * conf/i386-pc.rmk (pkglib_MODULES): Removed video.mod, gfxterm.mod,
34450 videotest.mod, bitmap.mod, tga.mod, jpeg.mod, png.mod.
34451 (video_mod_SOURCES): Removed.
34452 (video_mod_CFLAGS): Likewise.
34453 (video_mod_LDFLAGS): Likewise.
34454 (gfxterm_mod_SOURCES): Likewise.
34455 (gfxterm_mod_CFLAGS): Likewise.
34456 (gfxterm_mod_LDFLAGS): Likewise.
34457 (videotest_mod_SOURCES): Likewise.
34458 (videotest_mod_CFLAGS): Likewise.
34459 (videotest_mod_LDFLAGS): Likewise.
34460 (bitmap_mod_SOURCES): Likewise.
34461 (bitmap_mod_CFLAGS): Likewise.
34462 (bitmap_mod_LDFLAGS): Likewise.
34463 (tga_mod_SOURCES): Likewise.
34464 (tga_mod_CFLAGS): Likewise.
34465 (tga_mod_LDFLAGS): Likewise.
34466 (jpeg_mod_SOURCES): Likewise.
34467 (jpeg_mod_CFLAGS): Likewise.
34468 (jpeg_mod_LDFLAGS): Likewise.
34469 (png_mod_SOURCES): Likewise.
34470 (png_mod_CFLAGS): Likewise.
34471 (png_mod_LDFLAGS): Likewise.
34473 * conf/common.rmk (pkglib_MODULES): Added video.mod, videotest.mod,
34474 bitmap.mod, tga.mod, jpeg.mod, png.mod, font.mod, gfxterm.mod
34475 (video_mod_SOURCES): Added.
34476 (video_mod_CFLAGS): Likewise.
34477 (video_mod_LDFLAGS): Likewise.
34478 (videotest_mod_SOURCES): Likewise.
34479 (videotest_mod_CFLAGS): Likewise.
34480 (videotest_mod_LDFLAGS): Likewise.
34481 (bitmap_mod_SOURCES): Likewise.
34482 (bitmap_mod_CFLAGS): Likewise.
34483 (bitmap_mod_LDFLAGS): Likewise.
34484 (tga_mod_SOURCES): Likewise.
34485 (tga_mod_CFLAGS): Likewise.
34486 (tga_mod_LDFLAGS): Likewise.
34487 (jpeg_mod_SOURCES): Likewise.
34488 (jpeg_mod_CFLAGS): Likewise.
34489 (jpeg_mod_LDFLAGS): Likewise.
34490 (png_mod_SOURCES): Likewise.
34491 (png_mod_CFLAGS): Likewise.
34492 (png_mod_LDFLAGS): Likewise.
34493 (gfxterm_mod_SOURCES): Likewise.
34494 (gfxterm_mod_CFLAGS): Likewise.
34495 (gfxterm_mod_LDFLAGS): Likewise.
34497 * term/gfxterm.c: Removed include to grub/machine/memory.h,
34498 grub/machine/console.h.
34500 2009-01-04 Jerone Young <jerone@gmail.com>
34502 Make on screen instructions clearer
34504 Based on patch created by Jidanni <jidanni@jidanni.org>
34506 * normal/menu.c: print clearer instructions on the screen
34508 2009-01-02 Colin D Bennett <colin@gibibit.com>
34512 Additional changes by Vesa Jääskeläinen <chaac@nic.fi> to adapt to
34513 build system and fixed gfxterm.c to work with different sized fonts.
34515 * configure.ac: Changed UNIFONT_HEX to UNIFONT_BDF.
34517 * configure: Re-generated.
34519 * DISTLIST: Removed font/manager.c.
34521 Added font/font_cmd.c.
34523 * Makefile.in: Changed UNIFONT_HEX to UNIFONT_BDF. Added Font tool
34526 * include/grub/misc.h (grub_utf8_to_ucs4): Changed prototype. Changed users.
34528 * kern/misc.c (grub_utf8_to_ucs4): Changed prototype.
34530 * kern/term.c: Changed users of grub_utf8_to_ucs4.
34532 * normal/menu.c: Likewise.
34534 * conf/common.rmk (font_mod_SOURCES): Removed font/manager.c.
34535 (font_mod_SOURCES): Added font/font_cmd.c, font/font.c.
34537 * include/grub/font.h: Replaced with new file.
34539 * include/grub/video.h (GRUB_VIDEO_MODE_TYPE_ALPHA): Changed value.
34540 (GRUB_VIDEO_MODE_TYPE_DOUBLE_BUFFERED): Likewise.
34541 (GRUB_VIDEO_MODE_TYPE_COLOR_MASK): Likewise.
34542 (GRUB_VIDEO_MODE_TYPE_1BIT_BITMAP): Added.
34543 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_1BIT_PACKED.
34544 (grub_video_mode_info): Added bg_red, bg_green, bg_blue, bg_alpha,
34545 fg_red, fg_green, fg_blue, fg_alpha.
34546 (grub_video_adapter): Removed blit_glyph.
34547 (grub_video_blit_glyph): Removed.
34549 * font/manager.c: Removed file.
34551 * font/font.c: New file.
34553 * font/font_cmd.c: Likewise.
34555 * video/video.c (grub_video_blit_glyph): Removed.
34557 * video/i386/pc/vbe.c (grub_video_vbe_map_rgb): Added 1-bit support.
34558 (grub_video_vbe_map_rgba): Likewise.
34559 (grub_video_vbe_unmap_color_int): Likewise.
34560 (grub_video_vbe_blit_glyph): Removed.
34561 (grub_video_vbe_adapter): Removed blit_glyph.
34563 * video/i386/pc/vbeutil.c (get_data_ptr): Added 1-bit support.
34564 (get_pixel): Likewise.
34565 (set_pixel): Likewise.
34567 * commands/videotest.c (grub_cmd_videotest): Added more tests for fonts.
34569 * term/gfxterm.c: Adapted to new font engine.
34571 * term/i386/pc/vesafb.c: Marked as deprecated. Made it compile.
34573 * term/i386/pc/vga.c: Likewise.
34575 * util/fonttool/src/org/gnu/grub/fonttool/BDFLoader.java: New file.
34577 * util/fonttool/src/org/gnu/grub/fonttool/CharDefs.java: Likewise.
34579 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34581 * util/fonttool/src/org/gnu/grub/fonttool/CharacterRange.java: Likewise.
34583 * util/fonttool/src/org/gnu/grub/fonttool/Converter.java: Likewise.
34585 * util/fonttool/src/org/gnu/grub/fonttool/Font.java: Likewise.
34587 * util/fonttool/src/org/gnu/grub/fonttool/Glyph.java: Likewise.
34589 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Sections.java: Likewise.
34591 * util/fonttool/src/org/gnu/grub/fonttool/PFF2Writer.java: Likewise.
34593 * util/grub.d/00_header.in: Changed to use new loadfont command.
34595 * util/grub-mkconfig_lib.in: Changed font extension.
34597 2008-12-28 Felix Zielcke <fzielcke@z-51.de>
34599 * util/getroot.c (grub_util_get_grub_dev): Add support for
34600 /dev/md/dNNpNN style partitionable mdraid devices.
34602 2008-12-12 Alex Smith <alex@alex-smith.me.uk>
34604 * fs/i386/pc/pxe.c (grub_pxefs_open): Handle the one open connection
34605 at a time limit of the PXE TFTP API correctly.
34606 (grub_pxefs_close): Likewise.
34608 2008-11-29 Robert Millan <rmh@aybabtu.com>
34610 * disk/ata.c (grub_ata_pciinit): Handle errors raised by
34611 grub_ata_device_initialize() calls.
34613 2008-11-28 Krzysztof Smiechowicz <deadwood@wp.pl>
34615 * fs/affs.c (grub_affs_iterate_dir): Return failure when directory
34617 * fs/sfs.c (grub_sfs_iterate_dir): Likewise.
34619 2008-11-28 Robert Millan <rmh@aybabtu.com>
34621 Fix build on powerpc-ieee1275. Based on patch created by
34622 Manoel Abranches <mrabran@linux.vnet.ibm.com>.
34623 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
34624 `kern/ieee1275/mmap.c'.
34625 * include/grub/powerpc/ieee1275/memory.h: New file.
34627 Provide grub-install on coreboot.
34628 * conf/i386-coreboot.rmk (sbin_SCRIPTS): Add `grub-install'.
34629 (grub_install_SOURCES): New variable.
34630 * util/i386/pc/grub-install.in: Add a few condition checks to make it
34631 usable on coreboot.
34633 2008-11-25 Felix Zielcke <fzielcke@z-51.de>
34635 * util/grub-fstest.c (grub_term_get_current_input): Change return type
34636 to `grub_term_input_t'.
34637 (grub_term_get_current_output): Change return type to
34638 `grub_term_output_t'.
34640 2008-11-22 Robert Millan <rmh@aybabtu.com>
34642 Fix breakage on coreboot due to declaration mismatch.
34643 * term/i386/pc/vga_text.c (grub_vga_text_init_fini): New function.
34644 (grub_vga_text_term): Use grub_vga_text_init_fini() instead of
34645 grub_vga_text_cls().
34647 * kern/i386/loader.S (grub_multiboot_backward_relocator): Improve
34648 comments. Avoid copying one more byte than necessary (just in case).
34650 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Change link address
34651 to 0x200000 (avoids trouble with some OFW implementations, and matches
34652 with the one in Yaboot).
34653 Reported by Manoel Abranches
34655 2008-11-20 Robert Millan <rmh@aybabtu.com>
34657 * kern/i386/coreboot/init.c (grub_time_tics): Remove variable.
34658 (grub_get_rtc, grub_exit): Abort with grub_fatal() if called.
34660 * util/grub-mkconfig_lib.in (grub_warn): New function.
34661 (convert_system_path_to_grub_path): Use grub_warn() when issuing
34662 warnings, to obtain consistent formatting.
34663 * util/grub.d/00_header.in: Likewise.
34664 * util/update-grub_lib.in: Likewise.
34666 * loader/i386/linux.c (allocate_pages): Fix a warning.
34667 Move comment text to `#error' stanza.
34669 Harmonize ieee1275's grub_available_iterate() with the generic
34670 grub_machine_mmap_iterate() interface (fixes a recently-introduced
34671 build problem on i386-ieee1275):
34672 * kern/ieee1275/openfw.c (grub_available_iterate): Moved from here ...
34673 * kern/ieee1275/mmap.c (grub_machine_mmap_iterate): ... here. Add third
34674 parameter `type'. Update all users of this function.
34675 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
34676 `kern/ieee1275/mmap.c'.
34677 * kern/ieee1275/init.c
34678 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): Replace
34680 (grub_machine_mmap_iterate): ... this.
34681 * include/grub/i386/pc/memory.h (grub_machine_mmap_iterate): Change
34682 return type to `grub_err_t'. Update all implementations of this
34683 function prototype.
34684 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_iterate):
34687 Add `lsmmap' command (lists firmware-provided memory map):
34688 * commands/lsmmap.c: New file.
34689 * conf/i386-pc.rmk (pkglib_MODULES): Add `lsmmap.mod'.
34690 (lsmmap_mod_SOURCES, lsmmap_mod_CFLAGS, lsmmap_mod_LDFLAGS): New
34692 * conf/powerpc-ieee1275.rmk: Likewise.
34693 * conf/i386-coreboot.rmk: Likewise.
34694 * conf/i386-ieee1275.rmk: Likewise.
34696 2008-11-19 Robert Millan <rmh@aybabtu.com>
34698 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Fix a typo.
34699 * loader/i386/linux.c (grub_rescue_cmd_initrd): Implement a few needed
34700 constraints to initrd allocation (based on code from
34701 loader/i386/pc/linux.c). Without them, initrd was allocated too high
34702 for Linux to find it.
34704 2008-11-14 Robert Millan <rmh@aybabtu.com>
34706 * fs/cpio.c (grub_cpio_open): Compare `name' and `fn' by hand in
34707 order to cope with duplicate slashes.
34709 2008-11-14 Robert Millan <rmh@aybabtu.com>
34711 * include/grub/i386/coreboot/memory.h (GRUB_MEMORY_MACHINE_LOWER_SIZE):
34712 Redefine to match with GRUB_MEMORY_MACHINE_UPPER_START (0x100000). We
34713 don't want to mess with lower memory, because it is used in the Linux
34716 * loader/i386/linux.c (allocate_pages): Allocate `real_mode_mem' in
34717 an appropriate place in lower memory, between 0x10000 and 0x90000,
34718 like loader/i386/efi/linux.c does. Linux often panics if real_mode_mem
34719 is in our heap (probably as a result of it being corrupted during
34720 decompression). Add #error instance with comment to explain why this
34721 loader isn't currently usable on PC/BIOS.
34723 2008-11-14 Robert Millan <rmh@aybabtu.com>
34725 * term/i386/pc/serial.c [! GRUB_MACHINE_PCBIOS]
34726 (GRUB_SERIAL_PORT_NUM): Fix miscalculation.
34728 2008-11-12 Robert Millan <rmh@aybabtu.com>
34730 Make loader/i386/linux.c buildable on i386-pc (although disabled).
34732 * include/grub/i386/pc/init.h: Include `<grub/machine/memory.h>'.
34733 (struct grub_machine_mmap_entry, grub_machine_mmap_iterate): Move
34735 * include/grub/i386/pc/memory.h: ... to here.
34737 2008-11-12 Robert Millan <rmh@aybabtu.com>
34739 Fix build problems on i386-ieee1275 and *-efi (introduced by vga_text
34742 * include/grub/i386/pc/console.h: Include `<grub/i386/vga_common.h>'.
34743 (grub_console_cur_color, grub_console_real_putchar)
34744 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34745 (grub_console_setcolorstate, grub_console_setcolor)
34746 (grub_console_getcolor): Move from here ...
34747 * include/grub/i386/vga_common.h: ... to here (new file).
34749 * term/i386/pc/vga_text.c: Replace `<grub/machine/console.h>' with
34750 `<grub/i386/vga_common.h>' and `<grub/cpu/io.h>' with
34751 `<grub/i386/io.h>'.
34752 * term/i386/vga_common.c: Replace `<grub/machine/console.h>' with
34753 `<grub/i386/vga_common.h>'.
34755 2008-11-12 Robert Millan <rmh@aybabtu.com>
34757 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `term/i386/vga_common.c'.
34758 * conf/i386.rmk (pkglib_MODULES): Add `vga_text.mod'.
34759 (vga_text_mod_SOURCES, vga_text_mod_CFLAGS, vga_text_mod_LDFLAGS): New
34761 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34762 `term/i386/pc/console.c' with `term/i386/vga_common.c'.
34764 * kern/i386/coreboot/init.c (grub_machine_init): Replace call to
34765 grub_console_init() with call to grub_vga_text_init().
34766 (grub_machine_fini): Replace call to
34767 grub_console_fini() with call to grub_vga_text_fini() and
34768 grub_at_keyboard_fini().
34770 * include/grub/i386/pc/console.h: Include `<grub/term.h>'.
34771 (grub_console_putchar, grub_console_getcharwidth, grub_console_getwh)
34772 (grub_console_setcolorstate, grub_console_setcolor)
34773 (grub_console_getcolor): New function prototypes.
34775 * term/i386/pc/vga_text.c: Include `<grub/dl.h>'.
34776 (grub_vga_text_getxy, grub_vga_text_gotoxy, grub_vga_text_cls)
34777 (grub_vga_text_setcursor): Static-ize.
34778 (grub_vga_text_term): New structure.
34779 (GRUB_MOD_INIT(vga_text), GRUB_MOD_FINI(vga_text)): New functions.
34781 * term/i386/pc/console.c: Remove `<grub/machine/machine.h>'.
34782 (grub_console_cur_color, grub_console_standard_color)
34783 (grub_console_normal_color, grub_console_highlight_color)
34784 (map_char, grub_console_putchar, grub_console_getcharwidth)
34785 (grub_console_getwh, grub_console_setcolorstate, grub_console_setcolor)
34786 (grub_console_getcolor): Move from here ...
34787 * term/i386/vga_common.c: ... to here (same function names).
34789 2008-11-12 Robert Millan <rmh@aybabtu.com>
34791 Use newly-added Multiboot support in coreboot.
34793 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Replace
34794 `kern/i386/coreboot/mmap.c' with `kern/i386/multiboot_mmap.c'.
34796 * kern/i386/coreboot/startup.S: Enable Multiboot header, fix its
34797 alignment, set `MULTIBOOT_MEMORY_INFO' flag.
34798 (codestart): Store the MBI in `startup_multiboot_info' when we're
34799 being loaded using Multiboot.
34801 * kern/i386/coreboot/init.c (grub_machine_init): Move
34802 grub_at_keyboard_init() call to beginning of function (useful for
34803 debugging). Call grub_machine_mmap_init() before attempting to use
34804 grub_machine_mmap_iterate().
34805 (grub_lower_mem, grub_upper_mem): Move from here ...
34806 * kern/i386/multiboot_mmap.c (grub_lower_mem, grub_upper_mem): ... to
34809 * include/grub/i386/coreboot/memory.h (grub_machine_mmap_init): New
34810 function prototype.
34812 2008-11-12 Robert Millan <rmh@aybabtu.com>
34814 Fix a regression introduced by the at_keyboard.mod split. Because
34815 some terminals are default on some platforms and non-default on
34816 others, the first terminal being registered determines which is
34817 going to be default.
34819 * kern/term.c (grub_term_register_input): If this is the first
34820 terminal being registered, set it as the current one.
34821 (grub_term_register_output): Likewise.
34823 * term/efi/console.c (grub_console_init): Do not call
34824 grub_term_set_current_output() or grub_term_set_current_input().
34825 * term/ieee1275/ofconsole.c (grub_console_init): Likewise.
34826 * term/i386/pc/console.c (grub_console_init): Likewise.
34827 (grub_console_fini): Do not call grub_term_set_current_input()
34828 (but leave grub_term_set_current_output() to restore text mode).
34830 2008-11-10 Robert Millan <rmh@aybabtu.com>
34832 * util/grub.d/00_header.in: Add backward compatibility check for
34833 versions of terminal.mod that don't understand `terminal_input' or
34836 2008-11-09 Robert Millan <rmh@aybabtu.com>
34838 * commands/terminal.c (GRUB_MOD_FINI(terminal)): Unregister
34839 `terminal_input' / `terminal_output', not `terminal'.
34841 2008-11-08 Robert Millan <rmh@aybabtu.com>
34843 * Makefile.in (include_DATA): Fix srcdir=. assumption.
34844 (DISTCLEANFILES): Add `build_env.mk'.
34846 2008-11-08 Robert Millan <rmh@aybabtu.com>
34848 * term/i386/pc/vesafb.c (grub_vesafb_term): Change type to
34849 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
34850 members. Update all users.
34851 * util/console.c (grub_ncurses_term): Split in ...
34852 (grub_ncurses_term_input): ... this, and ...
34853 (grub_ncurses_term_output): ... this. Update all users.
34854 * term/ieee1275/ofconsole.c: Remove stale `#endif'.
34856 2008-11-08 Robert Millan <rmh@aybabtu.com>
34858 * Makefile.in (PKGLIB): Add $(pkglib_BUILDDIR).
34859 (PKGDATA): Add $(pkgdata_SRCDIR).
34860 (pkglib_BUILDDIR): New variable.
34861 (pkgdata_SRCDIR): New variable.
34862 (build_env.mk): New target.
34863 (include_DATA): New variable.
34864 (install-local): Install $(include_DATA) files in $(includedir).
34866 2008-11-07 Pavel Roskin <proski@gnu.org>
34868 * gendistlist.sh: Use C locale for sorting to ensure consistent
34869 output on all systems.
34871 * util/grub.d/00_header.in: Remove incorrect space before
34874 2008-11-07 Robert Millan <rmh@aybabtu.com>
34876 * include/multiboot2.h (struct multiboot_header): Add `flags' member as
34878 * loader/multiboot2.c (grub_multiboot2): Fix Multiboot2 header check.
34879 * loader/multiboot_loader.c (find_multi_boot2_header): New function
34880 (based on find_multi_boot1_header).
34881 (grub_rescue_cmd_multiboot_loader): Check for Multiboot2 header,
34882 using find_multi_boot2_header(), and abort if neither Multiboot or
34883 Multiboot headers were found.
34885 2008-11-07 Robert Millan <rmh@aybabtu.com>
34887 Modularize at_keyboard.mod:
34889 * conf/i386.rmk (pkglib_MODULES): Add `at_keyboard.mod'.
34890 (at_keyboard_mod_SOURCES, at_keyboard_mod_CFLAGS)
34891 (at_keyboard_mod_LDFLAGS): New variables.
34893 Actual terminal split:
34895 * include/grub/term.h (struct grub_term): Split in ...
34896 (struct grub_term_input): ... this, and ...
34897 (struct grub_term_output): ... this. Update all users.
34898 (grub_term_set_current): Split in ...
34899 (grub_term_set_current_input): ... this, and ...
34900 (grub_term_set_current_output): ... this.
34901 (grub_term_get_current): Split in ...
34902 (grub_term_get_current_input): ... this, and ...
34903 (grub_term_get_current_output): ... this.
34904 (grub_term_register): Split in ...
34905 (grub_term_register_input): ... this, and ...
34906 (grub_term_register_output): ... this.
34907 (grub_term_unregister): Split in ...
34908 (grub_term_unregister_input): ... this, and ...
34909 (grub_term_unregister_output): ... this.
34910 (grub_term_iterate): Split in ...
34911 (grub_term_iterate_input): ... this, and ...
34912 (grub_term_iterate_output): ... this.
34914 * kern/term.c (grub_term_list): Split in ...
34915 (grub_term_list_input): ... this, and ...
34916 (grub_term_list_output): ... this. Update all users.
34917 (grub_cur_term): Split in ...
34918 (grub_cur_term_input): ... this, and ...
34919 (grub_cur_term_output): ... this. Update all users.
34920 (grub_term_set_current): Split in ...
34921 (grub_term_set_current_input): ... this, and ...
34922 (grub_term_set_current_output): ... this.
34923 (grub_term_get_current): Split in ...
34924 (grub_term_get_current_input): ... this, and ...
34925 (grub_term_get_current_output): ... this.
34926 (grub_term_register): Split in ...
34927 (grub_term_register_input): ... this, and ...
34928 (grub_term_register_output): ... this.
34929 (grub_term_unregister): Split in ...
34930 (grub_term_unregister_input): ... this, and ...
34931 (grub_term_unregister_output): ... this.
34932 (grub_term_iterate): Split in ...
34933 (grub_term_iterate_input): ... this, and ...
34934 (grub_term_iterate_output): ... this.
34936 * kern/misc.c (grub_abort): Split use of grub_term_get_current() into
34937 a check for input and one for output (and only attempt to get keys
34938 from user when input works).
34940 * util/grub-probe.c (grub_term_get_current): Split in ...
34941 (grub_term_get_current_input): ... this, and ...
34942 (grub_term_get_current_output): ... this.
34943 * util/grub-fstest.c: Likewise.
34944 * util/i386/pc/grub-setup.c: Likewise.
34945 * util/grub-editenv.c: Likewise.
34947 Portability adjustments:
34949 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Remove
34950 `term/i386/pc/at_keyboard.c'.
34951 * kern/ieee1275/init.c [__i386__] (grub_machine_init): Remove call to
34952 grub_keyboard_controller_init() (now handled by terminal .init).
34953 * kern/i386/coreboot/init.c (grub_machine_init): Add call to
34954 grub_at_keyboard_init().
34955 * include/grub/i386/ieee1275/console.h (grub_keyboard_controller_init)
34956 (grub_console_checkkey, grub_console_getkey): Remove (now provided by
34957 at_keyboard.mod via input terminal interface).
34958 * include/grub/i386/coreboot/console.h: Convert into a stub for
34959 `<grub/i386/pc/console.h>'.
34961 Migrate full terminals to new API:
34963 * term/efi/console.c (grub_console_term): Split into ...
34964 (grub_console_term_input): ... this, and ...
34965 (grub_console_term_output): ... this. Update all users.
34966 * term/ieee1275/ofconsole.c: Remove __i386__ hack.
34967 (grub_ofconsole_init): Split into ...
34968 (grub_ofconsole_init_input): ... this, and ...
34969 (grub_ofconsole_init_output): ... this.
34970 (grub_ofconsole_term): Split into ...
34971 (grub_ofconsole_term_input): ... this, and ...
34972 (grub_ofconsole_term_output): ... this. Update all users.
34973 * term/i386/pc/serial.c (grub_serial_term): Split into ...
34974 (grub_serial_term_input): ... this, and ...
34975 (grub_serial_term_output): ... this. Update all users.
34976 * term/i386/pc/console.c (grub_console_term): Split into ...
34977 (grub_console_term_input): ... this, and ...
34978 (grub_console_term_output): ... this. Update all users.
34979 (grub_console_term_input): Only enable it on PC/BIOS platform.
34980 (grub_console_init): Remove grub_keyboard_controller_init() call.
34982 Migrate input terminals to new API:
34984 * term/i386/pc/at_keyboard.c: Replace `cpu' and `machine' with
34985 `i386' and `i386/pc' to enable build on x86_64 (this driver is
34986 i386-specific anyway).
34987 (grub_console_checkkey): Rename to ...
34988 (grub_at_keyboard_checkkey): ... this. Static-ize. Update all
34990 (grub_keyboard_controller_orig): New variable.
34991 (grub_console_getkey): Rename to ...
34992 (grub_at_keyboard_getkey): ... this. Static-ize. Update all
34994 (grub_keyboard_controller_init): Static-ize. Save original
34995 controller value so that it can be restored ...
34996 (grub_keyboard_controller_fini): ... here (new function).
34997 (grub_at_keyboard_term): New structure.
34998 (GRUB_MOD_INIT(at_keyboard), GRUB_MOD_FINI(at_keyboard)): New
35001 Migrate output terminals to new API:
35003 * term/i386/pc/vga.c (grub_vga_term): Change type to
35004 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35005 members. Update all users.
35006 * term/gfxterm.c (grub_video_term): Change type to
35007 `struct grub_term_output'. Remove `.checkkey' and `.getkey'
35008 members. Update all users.
35009 * include/grub/i386/pc/console.h (grub_console_checkkey)
35010 (grub_console_getkey): Do not export (no longer needed by gfxterm,
35013 Migrate `terminal' command and userland tools to new API:
35015 * commands/terminal.c (grub_cmd_terminal): Split into ...
35016 (grub_cmd_terminal_input): ... this, and ...
35017 (grub_cmd_terminal_output): ... this.
35018 (GRUB_MOD_INIT(terminal)): Split `terminal' command in two commands:
35019 `terminal_input' and `terminal_output'.
35020 * util/grub.d/00_header.in: Adjust `terminal' calls to new
35021 `terminal_input' / `terminal_output' API.
35022 * util/grub-mkconfig.in: Export ${GRUB_TERMINAL_INPUT} and
35023 ${GRUB_TERMINAL_OUTPUT} instead of ${GRUB_TERMINAL} (and if user
35024 provided ${GRUB_TERMINAL}, convert it).
35026 2008-11-04 Robert Millan <rmh@aybabtu.com>
35028 * util/grub.d/10_freebsd.in: New file. Generate grub configuration
35030 * conf/common.rmk (grub-mkconfig_SCRIPTS): Add 10_freebsd.
35032 2008-11-03 Bean <bean123ch@gmail.com>
35034 * kern/elf.c (grub_elf32_load): Revert to previous code.
35035 (grub_elf64_load): Likewise.
35037 * loader/i386/bsd.c (grub_bsd_elf32_hook): Change return address.
35039 2008-11-01 Robert Millan <rmh@aybabtu.com>
35041 * Makefile.in (CPPFLAGS): Fix builddir=. assumption.
35042 (TARGET_CPPFLAGS): Likewise.
35043 * genmk.rb (mod_src): Fix builddir=. and srcdir=. assumptions.
35045 2008-11-01 Carles Pina i Estany <carles@pina.cat>
35047 * normal/menu.c (run_menu): Add Previous and Next Page keys in menu.
35049 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
35051 * disk/lvm.c (grub_lvm_scan_device): Fix error recovery by delaying the
35052 addition of objects until the code is not going to be able to fail.
35054 2008-10-29 Guillem Jover <guillem.jover@nokia.com>
35056 * disk/lvm.c (grub_lvm_scan_device): Fix possible NULL value handling
35057 (add a missing NULL check, and correct them by moving the pointer
35058 operations after the actual check).
35060 2008-10-29 Robert Millan <rmh@aybabtu.com>
35062 * util/i386/pc/grub-install.in: Handle empty string as output from
35063 make_system_path_relative_to_its_root().
35065 2008-10-05 Hans Lambermont <hans@lambermont.dyndns.org>
35067 * disk/lvm.c (grub_lvm_scan_device): Allocate buffer space for the
35068 circular metadata worst case scenario. If the metadata is circular
35069 then copy the wrap in place.
35070 * include/grub/lvm.h: Add GRUB_LVM_MDA_HEADER_SIZE, from the LVM2
35071 project lib/format_text/layout.h
35072 Circular metadata bug found and patch debugged by Jan Derk Gerlings.
35074 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35076 * util/i386/pc/grub-install.in: Source grub-mkconfig_lib instead of update-grub_lib.
35078 2008-10-03 Felix Zielcke <fzielcke@z-51.de>
35080 * util/update-grub_lib.in: Mention filename in warning message.
35082 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35084 * NEWS: Update for rename of update-grub to grub-mkconfig.
35086 2008-09-29 Felix Zielcke <fzielcke@z-51.de>
35088 * util/update-grub_lib.in: Copy to ...
35089 * util/grub-mkconfig_lib.in: ... this. Update all users.
35090 * util/update-grub_lib.in: Make it a stub to `grub-mkconfig_lib.in'.
35091 * util/update-grub.in: Rename to ...
35092 * util/grub-mkconfig.in: ... this. Update all users. Remove `-y'
35093 option. Add `--output' option to allow users to specify the generated
35094 configuration file. Default to stdout.
35095 (update_grub_dir): Rename to ...
35096 (grub_mkconfig_dir): ... this.
35097 (grub_cfg): Default to an empty string.
35098 * conf/common.rmk (update-grub): Rename to ...
35099 (grub-mkconfig): ... this.
35100 (update-grub_lib): Copy to ...
35101 (grub-mkconfig_lib): ... this.
35102 (update-grub_SCRIPTS): Copy to ...
35103 (grub-mkconfig_SCRIPTS): ... this. Update all users.
35104 (update-grub_DATA): Rename to ...
35105 (grub-mkconfig_DATA): ... this.
35107 2008-09-28 Robert Millan <rmh@aybabtu.com>
35109 * fs/iso9660.c (struct grub_iso9660_primary_voldesc): Rename `created'
35110 to `modified'. Add the real `created' field.
35111 (grub_iso9660_uuid): Use `modified' rather than `created' for
35112 constructing the UUID.
35114 2008-09-28 Felix Zielcke <fzielcke@z-51.de>
35116 fs/jfs.c (grub_jfs_find_file): Treat multiple slashes like one.
35117 Based on code from Tomas Ebenlendr <ebik@ucw.cz>.
35119 2008-09-28 Bean <bean123ch@gmail.com>
35121 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a bug in the previous patch.
35122 Thanks to Christian Franke for finding this bug.
35124 2008-09-25 Robert Millan <rmh@aybabtu.com>
35126 * util/grub-mkdevicemap.c (make_device_map): Actually replace all
35127 instances of grub_util_get_disk_name() (see previous commit).
35129 2008-09-25 Robert Millan <rmh@aybabtu.com>
35131 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Remove
35132 `util/i386/get_disk_name.c'.
35133 * conf/i386-efi.rmk: Likewise.
35134 * conf/x86_64-efi.rmk: Likewise.
35135 * conf/i386-coreboot.rmk: Likewise.
35136 * conf/i386-ieee1275.rmk: Likewise.
35137 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Remove
35138 `util/ieee1275/get_disk_name.c'.
35139 * include/grub/util/misc.h (grub_util_get_disk_name): Remove.
35140 * util/ieee1275/get_disk_name.c: Remove file.
35141 * util/i386/get_disk_name.c: Remove file.
35142 * util/grub-mkdevicemap.c (make_device_map): Back to hardcoding
35143 "hd%d" for device.map entries, rather than using
35144 grub_util_get_disk_name().
35146 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35148 * disk/dmraid_nvidia.c (grub_dmraid_nv_detect): Fix `unused parameter'
35150 * commands/i386/pc/pxecmd.c (dmraid_nvidia): Likewise.
35152 2008-09-24 Carles Pina i Estany <carles@pina.cat>
35154 * include/grub/i386/pc/console.h (GRUB_TERM_NPAGE):
35156 (GRUB_TERM_PPAGE): Changed to 0x4900.
35158 2008-09-24 Robert Millan <rmh@aybabtu.com>
35160 * include/grub/powerpc/ieee1275/console.h (GRUB_CONSOLE_KEY_*): Remove
35161 macros (they were i386-pc specific).
35162 * include/grub/sparc64/ieee1275/console.h: Likewise.
35163 * include/grub/efi/console.h: Likewise.
35165 2008-09-22 Bean <bean123ch@gmail.com>
35167 * fs/ntfs.c (grub_ntfs_iterate_dir): Fix a rare case where $BITMAP is
35168 resident and in attribute list.
35170 * include/grub/ntfs.h (BMP_LEN): Removed.
35172 2008-09-22 Bean <bean123ch@gmail.com>
35174 * disk/ata.c (grub_atapi_open): Initialize devfnd, no need to set
35175 scsi->name and scsi->luns, as they will be set in grub_scsi_open.
35177 * disk/scsi.c (grub_scsi_open): Don't call p->close (scsi) here when
35178 error occurs, as grub_disk_open will call grub_disk_close, which will
35179 call p->close (scsi).
35181 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35183 * configure.ac (AC_INIT): Quote `GRUB' string and version number.
35184 (AC_PREREQ): Bumped to 2.59.
35185 (AC_TRY_COMPILE): Replace obsolete macro with ...
35186 (AC_COMPILE_IFELSE): ... this.
35187 * aclocal.m4 (AC_TRY_LINK): Replace obsolete macro with ...
35188 (AC_LINK_IFELSE): ... this.
35190 2008-09-21 Felix Zielcke <fzielcke@z-51.de>
35192 * autogen.sh: Add a call to `gendistlist.sh'.
35194 2008-09-19 Christian Franke <franke@computer.org>
35196 * aclocal.m4 (grub_CHECK_ENABLE_EXECUTE_STACK): New function.
35197 * configure.ac: Call grub_CHECK_ENABLE_EXECUTE_STACK.
35198 * include/grub/misc.h [NEED_ENABLE_EXECUTE_STACK]:
35199 Export __enable_execute_stack() to modules.
35200 * kern/misc.c [NEED_ENABLE_EXECUTE_STACK] (__enable_execute_stack):
35203 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35205 * Makefile.in (RMKFILES): Add `i386.rmk' and `x86_64-efi.rmk'.
35208 2008-09-09 Felix Zielcke <fzielcke@z-51.de>
35210 * util/hostdisk.c: Replace #include <grub/util/biosdisk.h> with
35211 #include <grub/util/hostdisk.h>.
35213 2008-09-08 Robert Millan <rmh@aybabtu.com>
35215 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Skip
35216 segments when their filesz is zero (grub_file_read() interprets
35217 zero-size as "read until EOF", which results in memory corruption).
35218 Use `lowest_segment' rather than 0 for calculating the current
35219 segment load address.
35221 2008-09-08 Robert Millan <rmh@aybabtu.com>
35223 * util/hostdisk.c (open_device): Replace a grub_util_info() call
35224 with grub_dprintf("hostdisk", ...), as it was so verbose that it
35225 clobbered useful information.
35227 2008-09-08 Robert Millan <rmh@aybabtu.com>
35229 * include/grub/util/biosdisk.h: Move to ...
35230 * include/grub/util/hostdisk.h: ... here. Update all users.
35231 * util/biosdisk.c: Move to ...
35232 * util/hostdisk.c: ... here. Update all users.
35234 2008-09-07 Robert Millan <rmh@aybabtu.com>
35236 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): Remove
35238 (grub_multiboot): Move `mbi' allocation upwards, so that mmap address
35239 and length can be stored directly in the `mbi->mmap_addr' and
35240 `mbi->mmap_length' struct fields.
35242 2008-09-07 Robert Millan <rmh@aybabtu.com>
35244 * conf/i386.rmk: New file. Provides declaration for building
35246 * conf/i386-pc.rmk (pkglib_MODULES): Remove `cpuid.mod'.
35247 (cpuid_mod_SOURCES, cpuid_mod_CFLAGS, cpuid_mod_LDFLAGS): Remove
35249 Include `conf/i386.mk'.
35250 * conf/i386-efi.rmk: Likewise.
35251 * conf/x86_64-efi.rmk: Likewise.
35252 * conf/i386-coreboot.rmk: Likewise.
35253 * conf/i386-ieee1275.rmk: Likewise.
35255 2008-09-07 Vesa Jääskeläinen <chaac@nic.fi>
35257 Based on patch created by Colin D Bennett <colin@gibibit.com>.
35258 Adds optimization support for BGR based modes.
35260 * include/grub/i386/pc/vbeblit.h (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8) Removed.
35261 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35262 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35263 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35264 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35265 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35266 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35267 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35268 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35269 (grub_video_i386_vbeblit_index_index): Likewise.
35270 (grub_video_i386_vbeblit_replace_directN): Added.
35271 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35272 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35273 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35274 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35275 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35276 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35277 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35278 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35279 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35280 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35281 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35282 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35283 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35285 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8) Removed.
35286 (grub_video_i386_vbefill_R8G8B8): Likewise.
35287 (grub_video_i386_vbefill_index): Likewise.
35288 (grub_video_i386_vbefill_direct32): Added.
35289 (grub_video_i386_vbefill_direct24): Likewise.
35290 (grub_video_i386_vbefill_direct16): Likewise.
35291 (grub_video_i386_vbefill_direct8): Likewise.
35293 * include/grub/video.h (grub_video_blit_format): Removed
35294 GRUB_VIDEO_BLIT_FORMAT_R8G8B8A8, GRUB_VIDEO_BLIT_FORMAT_R8G8B8.
35295 (grub_video_blit_format): Added GRUB_VIDEO_BLIT_FORMAT_RGBA_8888,
35296 GRUB_VIDEO_BLIT_FORMAT_BGRA_8888, GRUB_VIDEO_BLIT_FORMAT_RGB_888,
35297 GRUB_VIDEO_BLIT_FORMAT_BGR_888, GRUB_VIDEO_BLIT_FORMAT_RGB_565,
35298 GRUB_VIDEO_BLIT_FORMAT_BGR_565.
35300 * video/video.c (grub_video_get_blit_format): Updated to use new
35301 blit formats. Added handling for 16 bit color modes.
35303 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Updated to use new
35305 (common_blitter): Updated to use new blitters.
35307 * video/i386/pc/vbeblit.c (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8):
35309 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): Likewise.
35310 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
35311 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
35312 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
35313 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
35314 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
35315 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
35316 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
35317 (grub_video_i386_vbeblit_index_index): Likewise.
35318 (grub_video_i386_vbeblit_replace_directN): Added.
35319 (grub_video_i386_vbeblit_replace_BGRX8888_RGBX8888): Likewise.
35320 (grub_video_i386_vbeblit_replace_BGRX8888_RGB888): Likewise.
35321 (grub_video_i386_vbeblit_replace_BGR888_RGBX8888): Likewise.
35322 (grub_video_i386_vbeblit_replace_BGR888_RGB888): Likewise.
35323 (grub_video_i386_vbeblit_replace_RGBX8888_RGB888): Likewise.
35324 (grub_video_i386_vbeblit_replace_RGB888_RGBX8888): Likewise.
35325 (grub_video_i386_vbeblit_replace_index_RGBX8888): Likewise.
35326 (grub_video_i386_vbeblit_replace_index_RGB888): Likewise.
35327 (grub_video_i386_vbeblit_blend_BGRA8888_RGBA8888): Likewise.
35328 (grub_video_i386_vbeblit_blend_BGR888_RGBA8888): Likewise.
35329 (grub_video_i386_vbeblit_blend_RGBA8888_RGBA8888): Likewise.
35330 (grub_video_i386_vbeblit_blend_RGB888_RGBA8888): Likewise.
35331 (grub_video_i386_vbeblit_blend_index_RGBA8888): Likewise.
35333 * video/i386/pc/vbefill.c (grub_video_i386_vbefill_R8G8B8A8): Removed.
35334 (grub_video_i386_vbefill_R8G8B8): Likewise.
35335 (grub_video_i386_vbefill_index): Likewise.
35336 (grub_video_i386_vbefill_direct32): Added.
35337 (grub_video_i386_vbefill_direct24): Likewise.
35338 (grub_video_i386_vbefill_direct16): Likewise.
35339 (grub_video_i386_vbefill_direct8): Likewise.
35341 * video/readers/jpeg.c (grub_jpeg_decode_sos): Adapt to new blitter
35344 * video/readers/tga.c (grub_video_reader_tga): Adapt to new blitter
35347 * video/readers/png.c (grub_png_decode_image_header): Adapt to new
35350 * video/bitmap.c (grub_video_bitmap_create): Adapt to new blitter
35353 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35355 * disk/raid.c (insert_array): Set `array->chunk_size' to 64 for
35358 2008-09-06 Felix Zielcke <fzielcke@z-51.de>
35360 * fs/iso9660.c (grub_iso9660_date): New structure.
35361 (grub_iso9660_primary_voldesc): Add `grub_iso9660_date' member.
35362 (grub_iso9660_uuid): New function.
35364 2008-09-05 Bean <bean123ch@gmail.com>
35366 * fs/fshelp.c (grub_fshelp_find_file): Handle case insensitive names.
35368 * fs/ntfs.c (list_file): Ignore names in DOS namespace, set the case
35369 insensitive bit for names in Win32 and Win32 & DOS namespace.
35371 * include/grub/fshelp.h (GRUB_FSHELP_CASE_INSENSITIVE): New macro.
35373 * include/grub/types.h (LONG_MAX): Likewise.
35375 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35377 * util/getroot.c: Include <config.h>.
35378 (grub_util_get_grub_dev): Rewrite to use asprintf for mdraid devices,
35379 add support for /dev/md/N devices and handle LVM double dash escaping.
35381 2008-09-04 Felix Zielcke <fzielcke@z-51.de>
35383 * config.guess: Update to latest version from config git.
35384 * config.sub: Likewise.
35386 2008-09-03 Robert Millan <rmh@aybabtu.com>
35388 * disk/scsi.c (grub_scsi_open): Remove size limit when printing
35389 `disk->total_sectors'.
35391 2008-09-01 Colin D Bennett <colin@gibibit.com>
35393 * include/grub/normal.h: Fixed incorrect comment for
35394 GRUB_COMMAND_FLAG_NO_ARG_PARSE.
35396 2008-09-01 Colin D Bennett <colin@gibibit.com>
35398 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Replaced constant
35399 values with defines.
35401 * include/grub/i386/pc/vbe.h (GRUB_VBE_MODEATTR_SUPPORTED): Added.
35402 (GRUB_VBE_MODEATTR_RESERVED_1): Likewise.
35403 (GRUB_VBE_MODEATTR_BIOS_TTY_OUTPUT_SUPPORT): Likewise.
35404 (GRUB_VBE_MODEATTR_COLOR): Likewise.
35405 (GRUB_VBE_MODEATTR_GRAPHICS): Likewise.
35406 (GRUB_VBE_MODEATTR_VGA_COMPATIBLE): Likewise.
35407 (GRUB_VBE_MODEATTR_VGA_WINDOWED_AVAIL): Likewise.
35408 (GRUB_VBE_MODEATTR_LFB_AVAIL): Likewise.
35409 (GRUB_VBE_MODEATTR_DOUBLE_SCAN_AVAIL): Likewise.
35410 (GRUB_VBE_MODEATTR_INTERLACED_AVAIL): Likewise.
35411 (GRUB_VBE_MODEATTR_TRIPLE_BUF_AVAIL): Likewise.
35412 (GRUB_VBE_MODEATTR_STEREO_AVAIL): Likewise.
35413 (GRUB_VBE_MODEATTR_DUAL_DISPLAY_START): Likewise.
35414 (GRUB_VBE_MEMORY_MODEL_TEXT): Likewise.
35415 (GRUB_VBE_MEMORY_MODEL_CGA): Likewise.
35416 (GRUB_VBE_MEMORY_MODEL_HERCULES): Likewise.
35417 (GRUB_VBE_MEMORY_MODEL_PLANAR): Likewise.
35418 (GRUB_VBE_MEMORY_MODEL_NONCHAIN4_256): Likewise.
35419 (GRUB_VBE_MEMORY_MODEL_YUV): Likewise.
35421 2008-08-31 Robert Millan <rmh@aybabtu.com>
35423 * loader/i386/pc/multiboot.c (grub_get_multiboot_mmap_len): Fix
35425 (grub_multiboot): Fix a few warnings.
35427 2008-08-31 Robert Millan <rmh@aybabtu.com>
35429 * loader/i386/pc/multiboot.c: Update comment not to say that
35430 boot_device support is unimplemented.
35432 2008-08-31 Robert Millan <rmh@aybabtu.com>
35434 * loader/i386/pc/multiboot.c: Update comment not to say that a.out
35435 or memory map support are unimplemented.
35437 2008-08-31 Colin D Bennett <colin@gibibit.com>
35439 * util/i386/pc/grub-mkrescue.in: Support multiple overlay directories.
35441 2008-08-31 Colin D Bennett <colin@gibibit.com>
35443 * commands/i386/pc/vbeinfo.c (grub_cmd_vbeinfo): Show VBE version and
35444 total video memory in 'vbeinfo' output; show color format details for
35447 2008-08-30 Pavel Roskin <proski@gnu.org>
35449 * util/genmoddep.c: Remove for real this time.
35450 * DISTLIST: Remove util/genmoddep.c.
35452 2008-08-30 Robert Millan <rmh@aybabtu.com>
35454 * kern/i386/pc/startup.S (multiboot_header): Force 4-byte alignment
35455 as required by Multiboot spec (it was already 4-byte aligned, but
35458 2008-08-29 Pavel Roskin <proski@gnu.org>
35460 * kern/powerpc/ieee1275/crt0.S: Rename to ...
35461 * kern/powerpc/ieee1275/startup.S: ... this.
35462 * conf/powerpc-ieee1275.rmk: Adjust for the above.
35463 * DISTLIST: Likewise.
35465 * kern/powerpc/ieee1275/crt0.S: Include grub/symbol.h and
35466 grub/cpu/kernel.h. Add start label for consistency with other
35467 platforms. Add grub_prefix immediately after start. Add jump
35468 to the code after grub_prefix.
35469 * include/grub/powerpc/kernel.h: Provide valid values for
35470 GRUB_KERNEL_CPU_PREFIX and GRUB_KERNEL_CPU_DATA_END.
35472 2008-08-29 Bean <bean123ch@gmail.com>
35474 * configure.ac: Change host_os to cygwin for mingw.
35475 (asprintf): New check for function.
35477 * include/grub/symbol.h: Replace #ifndef __CYGWIN__ with
35478 #if ! defined (__CYGWIN__) && ! defined (__MINGW32__).
35480 * include/grub/util/misc.h: #include <config.h> and <grub/types.h>,
35481 declare asprintf if HAVE_ASPRINTF is not set, declare fseeko, ftello,
35482 sync, sleep and grub_util_get_disk_size for mingw.
35484 * util/biosdisk.c (grub_util_biosdisk_open): Use grub_util_get_disk_size
35485 to get size in mingw.
35486 (open_device): Use flag O_BINARY if it's defined.
35487 (find_root_device): Add dummy code for mingw.
35489 * util/grub-mkdevicemap.c (get_floppy_disk_name): Return 0 for mingw.
35490 (get_ide_disk_name): Return //./PHYSICALDRIVE%d for mingw.
35491 (get_scsi_disk_name): Return 0 for mingw.
35493 * util/hostfs.c: #include <grub/util/misc.h>.
35494 (grub_hostfs_open): Use "rb" flag to open file, use
35495 grub_util_get_disk_size to get disk size for mingw.
35497 * util/misc.c: #include <windows.h> and <winioctl.h> in mingw.
35498 (asprintf): New function if HAVE_ASPRINTF is not set.
35499 (sync): New function for mingw.
35501 (grub_util_get_disk_size): Likewise.
35503 2008-08-28 Pavel Roskin <proski@gnu.org>
35505 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
35508 2008-08-28 Robert Millan <rmh@aybabtu.com>
35510 * util/biosdisk.c (find_grub_drive): Declare missing `i' variable.
35512 2008-08-28 Robert Millan <rmh@aybabtu.com>
35514 Change find_grub_drive() syntax so it doesn't prevent it from
35515 detecting NULL names as errors.
35517 * util/biosdisk.c (find_grub_drive): Move free slot search code
35519 (find_free_slot): ... to here.
35520 (read_device_map): Use find_free_slot() to search for free slots.
35522 2008-08-27 Marco Gerards <marco@gnu.org>
35524 * conf/common.rmk (pkglib_MODULES): Add scsi.mod.
35525 (scsi_mod_SOURCES): New variable.
35526 (scsi_mod_CFLAGS): Likewise
35527 (scsi_mod_LDFLAGS): Likewise.
35529 * disk/scsi.c: New file.
35531 * include/grub/scsi.h: Likewise.
35533 * include/grub/scsicmd.h: Likewise.
35535 * disk/ata.c: Include <grub/scsi.h>.
35536 (grub_atapi_packet): Do not use grub_ata_cmd, use registers
35538 (grub_ata_iterate): Skip ATAPI devices.
35539 (grub_ata_open): Only handle ATAPI devices.
35540 (struct grub_atapi_read): Removed.
35541 (grub_atapi_readsector): Likewise.
35542 (grub_ata_read): No longer handle ATAPI devices.
35543 (grub_ata_write): Likewise.
35544 (grub_atapi_iterate): New function.
35545 (grub_atapi_read): Likewise.
35546 (grub_atapi_write): Likewise.
35547 (grub_atapi_open): Likewise.
35548 (grub_atapi_close): Likewise.
35549 (grub_atapi_dev): New variable.
35550 (GRUB_MOD_INIT(ata)): Register ATAPI as SCSI device.
35551 (GRUB_MOD_FINI(ata)): Unregister ATAPI.
35553 * include/grub/disk.h (enum grub_disk_dev_id): Add
35554 `GRUB_DISK_DEVICE_SCSI_ID'.
35556 2008-08-26 Robert Millan <rmh@aybabtu.com>
35558 * util/biosdisk.c (grub_util_biosdisk_open, open_device)
35559 (grub_util_biosdisk_get_grub_dev): Make error messages a bit more
35562 2008-08-23 Bean <bean123ch@gmail.com>
35564 * conf/common.rmk (grub_probe_SOURCES): Add disk/mdraid_linux.c.
35565 (grub_fstest_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35566 disk/mdraid_linux.c and disk/dmraid_nvidia.c and lib/crc.c.
35567 (pkglib_MODULES): Add raid5rec.mod, raid6rec.mod, mdraid.mod and
35569 (raid5rec_mod_SOURCES): New macro.
35570 (raid5rec_mod_CFLAGS): Likewise.
35571 (raid5rec_mod_LDFLAGS): Likewise.
35572 (raid6rec_mod_SOURCES): Likewise.
35573 (raid6rec_mod_CFLAGS): Likewise.
35574 (raid6rec_mod_LDFLAGS): Likewise.
35575 (mdraid_mod_SOURCES): Likewise.
35576 (mdraid_mod_CFLAGS): Likewise.
35577 (mdraid_mod_LDFLAGS): Likewise.
35578 (dm_nv_mod_SOURCES): Likewise.
35579 (dm_nv_mod_CFLAGS): Likewise.
35580 (dm_nv_mod_LDFLAGS): Likewise.
35582 * conf/i386-pc.rmk (grub_setup_SOURCES): Add disk/mdraid_linux.c.
35583 (grub_emu_SOURCES): Add disk/raid5_recover.c, disk/raid6_recover.c,
35584 disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35586 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add disk/raid5_recover.c,
35587 disk/raid6_recover.c, disk/mdraid_linux.c and disk/dmraid_nvidia.c.
35589 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
35591 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
35593 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35595 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
35597 * disk/raid5_recover.c: New file.
35599 * disk/raid6_recover.c: Likewise.
35601 * disk/mdraid_linux.c: Likewise.
35603 * disk/dmraid_nvidia.c: Likewise.
35605 * disk/i386/pc/biosdisk.c: Set total_sectors of cdrom device to
35608 * disk/raid.c (grub_raid_open): Use the size of the smallest disk to
35609 calculate the size of raid device.
35610 (grub_raid_read): Simplify raid0 code. Support raid4, raid6 and four
35611 different layout of raid5.
35612 (grub_raid_scan_device): Remove code specific to mdraid.
35613 (grub_raid_list): New variable.
35614 (free_array): New function.
35615 (grub_raid_register): Likewise.
35616 (grub_raid_unregister): Likewise.
35617 (grub_raid_rescan): Likewise.
35618 (GRUB_MOD_INIT): Don't iterate device here.
35619 (GRUB_MOD_FINI): Use free_array to release resource.
35621 * include/grub/raid.h: Remove macro and structure specific to mdraid.
35622 (grub_raid5_recover_func_t): New function variable type.
35623 (grub_raid6_recover_func_t): Likewise.
35624 (grub_raid5_recover_func): New variable.
35625 (grub_raid6_recover_func): Likewise.
35626 (grub_raid_register): New function.
35627 (grub_raid_unregister): Likewise.
35628 (grub_raid_rescan): Likewise.
35629 (grub_raid_block_xor): Likewise.
35631 * util/grub-fstest.c: Add #include <grub/raid.h> and <grub/lib/crc.h>.
35632 (CMD_CRC): New macro.
35634 (read_file): Handle device as well as file.
35635 (cmd_crc): New function.
35636 (fstest): Handle multiple disks.
35637 (options): Remove part, raw and long, add root and diskcount.
35638 (usage): Add crc, remove -p, -r, -l, add -r and -c.
35639 (main): Find the first non option entry and ignore subsequent options,
35640 add handling for the new options, support multiple disks.
35642 * util/grub-probe.c (probe): Add mdraid to abstraction_name.
35644 2008-08-23 Bean <bean123ch@gmail.com>
35646 * normal/x86_64/setjmp.S (grub_longjmp): Return 1 when val = 0.
35648 * genfslist.sh: Ignore kernel.mod.
35650 * genpartmaplist.sh: Likewise.
35652 2008-08-23 Robert Millan <rmh@aybabtu.com>
35654 * util/getroot.c (find_root_device): Skip anything that starts with
35655 a dot, not just directories. This avoids things like /dev/.tmp.md0.
35657 2008-08-22 Felix Zielcke <fzielcke@z-51.de>
35659 * util/update-grub.in (GRUB_GFXMODE): Export variable.
35660 * util/grub.d/00_header.in: Allow the administrator to change default
35661 gfxmode via ${GRUB_GFXMODE}.
35663 2008-08-21 Felix Zielcke <fzielcke@z-51.de>
35665 * fs/ntfs.c (grub_ntfs_mount): Fix a memory leak.
35667 2008-08-21 Robert Millan <rmh@aybabtu.com>
35669 * loader/i386/linux.c: New file. Implements generic 32-bit Linux
35671 * conf/i386-coreboot.rmk (_linux_mod_SOURCES): Replace
35672 `loader/i386/pc/linux.c' with `loader/i386/linux.c'.
35674 2008-08-20 Carles Pina i Estany <carles@pina.cat>
35676 * menu/normal.c (run_menu): Replace hardcoded numbers with macros
35677 (16 for GRUB_TERM_UP and 14 for GRUB_TERM_DOWN)
35679 2008-08-19 Robert Millan <rmh@aybabtu.com>
35681 * term/gfxterm.c (DEFAULT_CURSOR_COLOR): Remove.
35682 (struct grub_virtual_screen): Remove `cursor_color'.
35683 (grub_virtual_screen_setup): Remove `virtual_screen.cursor_color'
35685 (write_cursor): Use `virtual_screen.fg_color' to draw cursor.
35687 2008-08-18 Robert Millan <rmh@aybabtu.com>
35689 Unify (identical) linux_normal.c files.
35690 * loader/i386/efi/linux_normal.c: Move from here ...
35691 * loader/linux_normal.c: ... to here. Update all users.
35692 * loader/i386/pc/linux_normal.c: Delete. Update all users.
35693 * loader/i386/ieee1275/linux_normal.c: Likewise.
35695 2008-08-18 Robert Millan <rmh@aybabtu.com>
35697 * include/grub/i386/linux.h (LINUX_LOADER_ID_LILO)
35698 (LINUX_LOADER_ID_LOADLIN, LINUX_LOADER_ID_BOOTSECT)
35699 (LINUX_LOADER_ID_SYSLINUX, LINUX_LOADER_ID_ETHERBOOT)
35700 (LINUX_LOADER_ID_ELILO, LINUX_LOADER_ID_GRUB, LINUX_LOADER_ID_UBOOT)
35701 (LINUX_LOADER_ID_XEN, LINUX_LOADER_ID_GUJIN, LINUX_LOADER_ID_QEMU):
35703 (GRUB_LINUX_CL_OFFSET, GRUB_LINUX_CL_END_OFFSET): Move from here ...
35704 * loader/i386/pc/linux.c (GRUB_LINUX_CL_OFFSET)
35705 (GRUB_LINUX_CL_END_OFFSET): ... to here.
35706 * loader/i386/efi/linux.c (GRUB_EFI_CL_OFFSET): Rename to ...
35707 (GRUB_LINUX_CL_OFFSET): ... this. Update all users.
35708 (GRUB_EFI_CL_END_OFFSET): Rename to ...
35709 (GRUB_LINUX_CL_END_OFFSET): ... this. Update all users.
35710 (grub_rescue_cmd_linux): Macroify `type_of_loader' initialization.
35711 Initialize `params->video_cursor_x' and `params->video_cursor_y'
35712 portably using grub_getxy().
35713 Replace `-EFI' with `-bzImage' in boot message.
35715 2008-08-17 Robert Millan <rmh@aybabtu.com>
35717 * include/grub/x86_64/kernel.h: New file (<grub/i386/kernel.h> stub).
35719 2008-08-17 Robert Millan <rmh@aybabtu.com>
35721 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pc/mmap.c'.
35723 * include/grub/i386/pc/init.h (GRUB_MACHINE_MEMORY_AVAILABLE)
35724 (GRUB_MACHINE_MEMORY_RESERVED): New macros.
35725 (grub_machine_mmap_iterate): New function declaration.
35726 * include/grub/multiboot.h (struct grub_multiboot_mmap_entry): New
35728 (GRUB_MMAP_MEMORY_AVAILABLE, GRUB_MMAP_MEMORY_RESERVED): New
35731 * kern/i386/pc/init.c (grub_machine_init): Replace hardcoded region
35732 type check value with `GRUB_MACHINE_MEMORY_AVAILABLE'.
35733 Move e820 parsing from here ...
35734 * kern/i386/pc/mmap.c: New file.
35735 (grub_machine_mmap_iterate): ... to here.
35737 * include/grub/i386/coreboot/memory.h: Remove `<grub/err.h>'.
35738 (GRUB_LINUXBIOS_MEMORY_AVAILABLE): Rename (for consistency) to ...
35739 (GRUB_MACHINE_MEMORY_AVAILABLE): ... this. Update all users.
35740 (grub_available_iterate): Redeclare to return `void', and redeclare
35741 its hook to use grub_uint64_t as addr and size parameters, and rename
35743 (grub_machine_mmap_iterate): ... this. Update all users.
35745 * kern/i386/coreboot/mmap.c (grub_mmap_iterate): Simplify parser loop
35746 to make it more readable. Rename to ...
35747 (grub_machine_mmap_iterate): ... this.
35749 * loader/i386/pc/multiboot.c (mmap_addr, mmap_length): New variables.
35750 (grub_get_multiboot_mmap_len, grub_fill_multiboot_mmap): New functions.
35751 (grub_multiboot): Allocate an extra region after the payload, and fill
35752 it with a Multiboot memory map. Adjust a.out loader to calculate size
35753 with the extra space.
35754 (grub_multiboot_load_elf32): Adjust elf32 loader to calculate size
35755 with the extra space.
35757 2008-08-17 Carles Pina i Estany <carles@pina.cat>
35759 * menu/normal.c (run_menu): Add Home and End keys in grub-menu.
35761 2008-08-17 Felix Zielcke <fzielcke@z-51.de>
35763 * gendistlist.sh: Add *.y, *.tex, *.texi, grub.cfg, README, *.sc,
35764 mdate-sh to the list `find' searches for.
35765 * DISTLIST: Regenerated.
35767 2008-08-16 Felix Zielcke <fzielcke@z-51.de>
35769 * gendistlist.sh (EXTRA_DISTFILES): Remove gensymlist.sh,
35770 genkernsyms.sh. Add geninit.sh, geninitheader.sh, genkernsyms.sh.in,
35771 genmoddep.awk, gensymlist.sh.in.
35772 (DISTDIRS): Add bus, docs, hook, lib.
35773 * DISTLIST: Regenerated.
35774 * NEWS: Add cygwin support and change the `os-prober' entry a bit.
35776 2008-08-16 Robert Millan <rmh@aybabtu.com>
35778 * disk/raid.c (grub_raid_init): Handle/report errors set by
35779 grub_device_iterate().
35780 * disk/lvm.c (grub_lvm_init): Likewise.
35782 2008-08-15 Bean <bean123ch@gmail.com>
35784 * conf/i386-pc.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35786 (datetime_mod_SOURCES): New macro.
35787 (datetime_mod_CFLAGS): Likewise.
35788 (datetime_mod_LDFLAGS): Likewise.
35789 (date_mod_SOURCES): Likewise.
35790 (date_mod_CFLAGS): Likewise.
35791 (date_mod_LDFLAGS): Likewise.
35792 (datehook_mod_SOURCES): Likewise.
35793 (datehook_mod_CFLAGS): Likewise.
35794 (datehook_mod_LDFLAGS): Likewise.
35796 * conf/i386-coreboot.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35798 (datetime_mod_SOURCES): New macro.
35799 (datetime_mod_CFLAGS): Likewise.
35800 (datetime_mod_LDFLAGS): Likewise.
35801 (date_mod_SOURCES): Likewise.
35802 (date_mod_CFLAGS): Likewise.
35803 (date_mod_LDFLAGS): Likewise.
35804 (datehook_mod_SOURCES): Likewise.
35805 (datehook_mod_CFLAGS): Likewise.
35806 (datehook_mod_LDFLAGS): Likewise.
35808 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35810 (datetime_mod_SOURCES): New macro.
35811 (datetime_mod_CFLAGS): Likewise.
35812 (datetime_mod_LDFLAGS): Likewise.
35813 (date_mod_SOURCES): Likewise.
35814 (date_mod_CFLAGS): Likewise.
35815 (date_mod_LDFLAGS): Likewise.
35816 (datehook_mod_SOURCES): Likewise.
35817 (datehook_mod_CFLAGS): Likewise.
35818 (datehook_mod_LDFLAGS): Likewise.
35820 * conf/i386-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35822 (datetime_mod_SOURCES): New macro.
35823 (datetime_mod_CFLAGS): Likewise.
35824 (datetime_mod_LDFLAGS): Likewise.
35825 (date_mod_SOURCES): Likewise.
35826 (date_mod_CFLAGS): Likewise.
35827 (date_mod_LDFLAGS): Likewise.
35828 (datehook_mod_SOURCES): Likewise.
35829 (datehook_mod_CFLAGS): Likewise.
35830 (datehook_mod_LDFLAGS): Likewise.
35832 * conf/x86_64-efi.rmk (pkglib_MODULES): Add datetime.mod, date.mod
35834 (datetime_mod_SOURCES): New macro.
35835 (datetime_mod_CFLAGS): Likewise.
35836 (datetime_mod_LDFLAGS): Likewise.
35837 (date_mod_SOURCES): Likewise.
35838 (date_mod_CFLAGS): Likewise.
35839 (date_mod_LDFLAGS): Likewise.
35840 (datehook_mod_SOURCES): Likewise.
35841 (datehook_mod_CFLAGS): Likewise.
35842 (datehook_mod_LDFLAGS): Likewise.
35844 * kern/env.c (grub_env_insert): Fix a bug in prevp pointer.
35846 * commands/date.c: New file.
35848 * hook/datehook.c: Likewise.
35850 * include/grub/lib/datetime.h: Likewise.
35852 * include/grub/i386/cmos.h: Likewise.
35854 * lib/datetime.c: Likewise.
35856 * lib/i386/datetime.c: Likewise.
35858 * lib/efi/datetime.c: Likewise.
35860 2008-08-14 Robert Millan <rmh@aybabtu.com>
35862 * conf/common.rmk (bin_UTILITIES): Add `grub-mkelfimage'.
35863 (grub_mkelfimage_SOURCES): New variable.
35864 (util/elf/grub-mkimage.c_DEPENDENCIES): Likewise.
35866 * conf/i386-coreboot.rmk (bin_UTILITIES, grub_mkimage_SOURCES)
35867 (grub_mkimage_LDFLAGS, util/elf/grub-mkimage.c_DEPENDENCIES): Remove.
35868 * conf/powerpc-ieee1275.rmk: Likewise.
35869 * conf/i386-ieee1275.rmk: Likewise.
35871 * kern/ieee1275/init.c: Include `<grub/cpu/kernel.h>'.
35872 * kern/i386/coreboot/init.c: Likewise.
35874 * kern/i386/ieee1275/startup.S: Replace `<grub/machine/kernel.h>'
35875 with `<grub/cpu/kernel.h>'.
35876 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Renamed
35878 (GRUB_KERNEL_CPU_PREFIX, GRUB_KERNEL_CPU_DATA_END): ... this.
35879 * kern/i386/coreboot/startup.S: Likewise.
35881 * include/grub/powerpc/ieee1275/kernel.h (GRUB_MOD_ALIGN)
35882 (GRUB_MOD_GAP): Remove.
35883 * include/grub/powerpc/kernel.h: New file.
35884 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX)
35885 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35886 * include/grub/i386/kernel.h: New file.
35887 * include/grub/i386/coreboot/kernel.h (GRUB_MOD_ALIGN)
35888 (GRUB_MOD_GAP, GRUB_KERNEL_MACHINE_PREFIX)
35889 (GRUB_KERNEL_MACHINE_DATA_END): Remove.
35891 * util/ieee1275/grub-install.in (grub_mkimage): Initialize to use
35893 Use --directory when invoking grub_mkimage.
35895 * util/elf/grub-mkimage.c: Include `<grub/cpu/kernel.h>'.
35896 (add_segments): Replace GRUB_KERNEL_MACHINE_DATA_END and
35897 GRUB_KERNEL_MACHINE_PREFIX with GRUB_KERNEL_CPU_DATA_END
35898 and GRUB_KERNEL_CPU_PREFIX.
35900 2008-08-14 Felix Zielcke <fzielcke@z-51.de>
35902 * include/grub/err.h (grub_err_printf): New function prototype.
35903 * util/misc.c (grub_err_printf): New function.
35904 * kern/misc.c [! GRUB_UTIL] (grub_err_printf): New alias for
35906 * kern/err.c (grub_print_error): Use grub_err_printf.
35908 2008-08-13 Robert Millan <rmh@aybabtu.com>
35910 * docs/grub.cfg: Remove `/dev/' prefix in GNU/Hurd boot entry.
35912 2008-08-13 Robert Millan <rmh@aybabtu.com>
35914 * docs/grub.cfg: Use the native device name for the example GNU/Hurd
35917 2008-08-12 Robert Millan <rmh@aybabtu.com>
35919 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Move part
35920 of the relocation code from here ...
35921 (grub_multiboot): ... to here.
35922 (forward_relocator, backward_relocator): Move from here ...
35923 * kern/i386/loader.S (grub_multiboot_forward_relocator)
35924 (grub_multiboot_backward_relocator): ... to here.
35925 (grub_multiboot_real_boot): Use %edx for entry offset. Put Multiboot
35926 magic in %eax. Use %ebp for jumping (so %edx is not trashed).
35927 * include/grub/i386/loader.h (grub_multiboot_forward_relocator)
35928 (grub_multiboot_forward_relocator_end)
35929 (grub_multiboot_backward_relocator)
35930 (grub_multiboot_backward_relocator_end): New variables.
35932 2008-08-12 Bean <bean123ch@gmail.com>
35934 * disk/raid.c (grub_raid_read): Fix a bug in raid0 code.
35936 2008-08-11 Robert Millan <rmh@aybabtu.com>
35938 * kern/i386/linuxbios/startup.S: Move from here ...
35939 * kern/i386/coreboot/startup.S: ... to here.
35941 * kern/i386/linuxbios/init.c: Move from here ...
35942 * kern/i386/coreboot/init.c: ... to here.
35944 * kern/i386/linuxbios/table.c: Move from here ...
35945 * kern/i386/coreboot/mmap.c: ... to here.
35947 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Update moved files.
35949 2008-08-11 Robert Millan <rmh@aybabtu.com>
35951 * kern/device.c (grub_device_open): Do not handle grub_disk_open()
35952 errors. Leave it to the upper layer to handle them.
35954 2008-08-09 Christian Franke <franke@computer.org>
35956 * Makefile.in: Add `target_os' and `enable_grub_pe2elf'.
35957 * conf/common.rmk: Install `grub-pe2elf' only if requested.
35958 Install `grub.d/10_windows' only on Cygwin.
35959 * configure.ac: Add subst of `target_os'.
35960 Check `target_os' also before setting TARGET_OBJ2ELF.
35961 Add `--enable-grub-pe2elf'.
35963 2008-08-08 Robert Millan <rmh@aybabtu.com>
35965 * kern/disk.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35966 (grub_last_time): Change type to grub_uint64_t.
35967 (grub_disk_open): Migrate code from to using grub_get_time_ms().
35968 (grub_disk_close): Likewise.
35970 * normal/menu.c: Replace `<grub/machine/time.h>' with `<grub/time.h>'.
35971 (run_menu): Migrate code from to using grub_get_time_ms().
35973 * util/misc.c (grub_get_time_ms): New function.
35975 2008-08-08 Marco Gerards <marco@gnu.org>
35977 * disk/ata.c (grub_ata_regget): Change return type to
35979 (grub_ata_regget2): Likewise.
35980 (grub_ata_wait_status): New function.
35981 (grub_ata_wait_busy): Removed function, updated all users to use
35982 `grub_ata_wait_status'.
35983 (grub_ata_wait_drq): Likewise.
35984 (grub_ata_cmd): New function.
35985 (grub_ata_pio_read): Change return type to `grub_uint8_t'. Add
35987 (grub_ata_pio_write): Add error handling.
35988 (grub_atapi_identify): Likewise.
35989 (grub_atapi_packet): Use `grub_ata_cmd' and improve error
35991 (grub_ata_identify): Use `grub_ata_cmd' and improve error
35992 handling. Actually use the detected registers. Reorder the
35993 detection logic such that it is easier to read.
35994 (grub_ata_pciinit): Do not assign the same ID to each controller.
35995 (grub_ata_setaddress): Use `grub_ata_cmd' and improve error
35997 (grub_atapi_readsector): Check the result of `grub_ata_pio_read'.
35999 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TIMEOUT'.
36001 2008-08-08 Marco Gerards <marco@gnu.org>
36005 2008-08-07 Bean <bean123ch@gmail.com>
36007 * include/grub/x86_64/pci.h: New file.
36009 2008-08-07 Christian Franke <franke@computer.org>
36011 * kern/i386/pit.c (TIMER2_SPEAKER): New define.
36012 (TIMER2_GATE): Likewise.
36013 (grub_pit_wait): Add enable/disable of the timer2 gate
36014 bit of port 0x61. This fixes a possible infinite loop.
36016 2008-08-07 Bean <bean123ch@gmail.com>
36018 * conf/x86_64-efi.rmk (kernel_mod_SOURCES): Add kern/time.c,
36019 kern/i386/tsc.c and kern/i386/pit.c.
36021 * include/grub/i386/tsc.h (grub_cpu_is_cpuid_supported): Handle
36024 * kern/i386/efi/init.c: Replace <grub/cpu/tsc.h> with
36027 * kern/i386/pit.c: Replace <grub/cpu/io.h> with <grub/i386/io.h>.
36029 2008-08-07 Bean <bean123ch@gmail.com>
36031 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add kern/time.c.
36033 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add kern/time.c,
36035 * include/grub/i386/pit.h: Use macro KERNEL_CPU_PIT_HEADER to avoid
36036 multiple inclusion. Add #include <grub/types.h>.
36038 2008-08-06 Christian Franke <franke@computer.org>
36040 * conf/common.rmk: Build and install `10_windows'.
36041 * util/grub.d/10_windows.in: New script.
36043 2008-08-06 Pavel Roskin <proski@gnu.org>
36045 * kern/i386/pit.c: Include `<grub/i386/pit.h>'.
36047 2008-08-06 Robert Millan <rmh@aybabtu.com>
36049 * conf/i386-coreboot.rmk (kernel_elf_ASFLAGS): New variable.
36050 * kern/i386/tsc.c: Include `<grub/i386/pit.h>'.
36052 2008-08-06 Bean <bean123ch@gmail.com>
36054 * fs/i386/pc/pxe.c (grub_pxe_data): New member block_size.
36055 (grub_pxefs_fs_int): Remove dummy definition.
36056 (grub_pxefs_open): Use data->block_size to store the current block
36058 (grub_pxefs_read): Use block size stored in data->block_size. As the
36059 value of grub_pxe_blksize can be changed after the file is opened.
36061 2008-08-06 Bean <bean123ch@gmail.com>
36063 * fs/i386/pc/pxe.c (curr_file): new variable.
36064 (grub_pxefs_open): Simply the handling of pxe file system. Don't
36065 require the dummy internal file system anymore.
36066 (grub_pxefs_read): Removed.
36067 (grub_pxefs_close): Likewise.
36068 (grub_pxefs_fs_int): Likewise.
36069 (grub_pxefs_read_int): Renamed to grub_pxefs_read. Reinitialize tftp
36070 connection when we switch file.
36071 (grub_pxefs_close_int): Renamed to grub_pxefs_close.
36073 2008-08-06 Robert Millan <rmh@aybabtu.com>
36075 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `reboot.mod' and
36077 (reboot_mod_SOURCES, reboot_mod_CFLAGS, reboot_mod_LDFLAGS)
36078 (halt_mod_SOURCES, halt_mod_CFLAGS, halt_mod_LDFLAGS): New variables.
36080 * kern/i386/halt.c: New file.
36081 * kern/i386/reboot.c: Likewise.
36082 * include/grub/i386/reboot.h: Likewise.
36083 * include/grub/i386/halt.h: Likewise.
36085 * commands/halt.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]:
36086 Include `<grub/cpu/halt.h>'.
36087 * commands/reboot.c [! GRUB_MACHINE_IEEE1275 ! GRUB_MACHINE_EFI]
36088 [! GRUB_MACHINE_PCBIOS]: Include `<grub/cpu/reboot.h>'.
36090 * term/i386/pc/at_keyboard.c: Include `<grub/cpu/at_keyboard.h>'.
36091 (SHIFT_L, SHIFT_R, CTRL, ALT, CAPS_LOCK, KEYBOARD_REG_DATA)
36092 (KEYBOARD_REG_STATUS, KEYBOARD_COMMAND_ISREADY, KEYBOARD_COMMAND_READ)
36093 (KEYBOARD_COMMAND_WRITE, KEYBOARD_COMMAND_REBOOT)
36094 (KEYBOARD_SCANCODE_SET1, KEYBOARD_ISMAKE, KEYBOARD_ISREADY)
36095 (KEYBOARD_SCANCODE, OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): Move
36097 * include/grub/i386/at_keyboard.h: ... to here.
36099 2008-08-05 Robert Millan <rmh@aybabtu.com>
36101 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/i386/pit.c'.
36102 * conf/i386-efi.rmk (kernel_mod_SOURCES): Likewise.
36103 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Likewise. Also add
36104 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36105 `kern/generic/millisleep.c'.
36107 * kern/i386/tsc.c (calibrate_tsc): Rewrite using grub_pit_wait()
36108 instead of grub_get_rtc().
36109 (grub_tsc_init): Initialize `tsc_boot_time'.
36111 * kern/i386/linuxbios/init.c (grub_millisleep): Remove stub.
36112 (grub_machine_init): Use grub_tsc_init() rather than
36113 installing an RTC-based handler via grub_install_get_time_ms().
36115 * kern/i386/pit.c: New file.
36116 * include/grub/i386/pit.h: Likewise.
36118 2008-08-05 Bean <bean123ch@gmail.com>
36120 * boot/i386/pc/pxeboot.S (_start): Use drive number 0x7F for pxe.
36122 * conf/i386-pc.rmk (kernel_img_HEADERS): Add machine/pxe.h.
36123 (pkglib_MODULES): Add pxe.mod and pxecmd.mod.
36124 (pxe_mod_SOURCES): New macro.
36125 (pxe_mod_CFLAGS): Likewise.
36126 (pxe_mod_LDFLAGS): Likewise.
36127 (pxecmd_mod_SOURCES): Likewise.
36128 (pxecmd_mod_CFLAGS): Likewise.
36129 (pxecmd_mod_LDFLAGS): Likewise.
36131 * kern/i386/pc/startup.S (grub_pxe_scan): New function.
36132 (grub_pxe_call): Likewise.
36134 * include/grub/disk.h (grub_disk_dev_id): Add GRUB_DISK_DEVICE_PXE_ID.
36136 * commands/i386/pc/pxecmd.c: New file.
36138 * fs/i386/pc/pxe.c: Likewise.
36140 * include/grub/i386/pc/pxe.h: Likewise.
36142 2008-08-05 Bean <bean123ch@gmail.com>
36144 * util/console.c (grub_console_cur_color): New variable.
36145 (grub_console_standard_color): Likewise.
36146 (grub_console_normal_color): Likewise.
36147 (grub_console_highlight_color): Likewise.
36148 (color_map): Likewise.
36149 (use_color): Likewise.
36150 (NUM_COLORS): New macro.
36151 (grub_ncurses_setcolorstate): Handle color properly.
36152 (grub_ncurses_setcolor): Don't change color here, just remember the
36153 settings, color will be set in grub_ncurses_setcolorstate.
36154 (grub_ncurses_getcolor): New function.
36155 (grub_ncurses_init): Initialize color pairs.
36156 (grub_ncurses_term): New member grub_ncurses_getcolor.
36158 2008-08-05 Colin D Bennett <colin@gibibit.com>
36160 High resolution timer support. Implemented for x86 CPUs using TSC.
36161 Extracted generic grub_millisleep() so it's linked in only as needed.
36162 This requires a Pentium compatible CPU; if the RDTSC instruction is
36163 not supported, then it falls back on the generic grub_get_time_ms()
36164 implementation that uses the machine's RTC.
36166 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/time.c',
36167 `kern/i386/tsc.c', `kern/generic/rtc_get_time_ms.c' and
36168 `kern/generic/millisleep.c'.
36170 * conf/i386-efi.rmk (kernel_mod_SOURCES): Add `kern/i386/tsc.c',
36171 `kern/generic/rtc_get_time_ms.c' and `kern/generic/millisleep.c'.
36173 * conf/x86_64-efi.rml (kernel_mod_SOURCES): Add
36174 `kern/generic/millisleep.c' and `kern/generic/rtc_get_time_ms.c'.
36176 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36178 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Add
36179 `kern/generic/millisleep.c'.
36181 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
36183 * conf/i386-coreboot.rmk (kernel_elf_SOURCES): Add `kern/time.c'.
36185 * kern/generic/rtc_get_time_ms.c: New file.
36187 * kern/generic/millisleep.c: New file.
36189 * kern/misc.c: Don't include
36190 <kern/time.h> anymore.
36191 (grub_millisleep_generic): Removed.
36193 * commands/sleep.c (grub_interruptible_millisleep): Uses
36194 grub_get_time_ms() instead of grub_get_rtc().
36196 * include/grub/i386/tsc.h (grub_get_tsc): New file. New inline
36198 (grub_cpu_is_cpuid_supported): New inline function.
36199 (grub_cpu_is_tsc_supported): New inline function.
36200 (grub_tsc_init): New function prototype.
36201 (grub_tsc_get_time_ms): New function prototype.
36203 * kern/i386/tsc.c (grub_get_time_ms): New file.
36205 * include/grub/time.h: Include <grub/types.h.
36206 (grub_millisleep_generic): Removed.
36207 (grub_get_time_ms): New prototype.
36208 (grub_install_get_time_ms): New prototype.
36209 (grub_rtc_get_time_ms): New prototype.
36211 * kern/time.c (grub_get_time_ms): New function.
36212 (grub_install_get_time_ms): New function.
36214 * kern/i386/efi/init.c: Include <grub/cpu/tsc.h>. Don't include
36215 <grub/time.h> anymore.
36216 (grub_millisleep): Removed.
36217 (grub_machine_init): Call grub_tsc_init.
36219 * kern/i386/linuxbios/init.c (grub_machine_init): Install the RTC
36220 get_time_ms() implementation.
36222 * kern/sparc64/ieee1275/init.c (grub_millisleep): Removed.
36223 (ieee1275_get_time_ms): New function.
36224 (grub_machine_init): Install get_time_ms() implementation.
36226 * kern/i386/pc/init.c: Include <grub/cpu/tsc.h>.
36227 (grub_machine_init): Call grub_tsc_init().
36228 (grub_millisleep): Removed.
36230 * kern/ieee1275/init.c (grub_millisleep): Removed.
36231 (grub_machine_init): Install ieee1275_get_time_ms()
36233 (ieee1275_get_time_ms): New function.
36234 (grub_get_rtc): Now calls ieee1275_get_time_ms(), which does the
36237 2008-08-05 Marco Gerards <marco@gnu.org>
36239 * disk/ata.c: Include <grub/pci.h>.
36240 (enum grub_ata_commands): Add `GRUB_ATA_CMD_EXEC_DEV_DIAGNOSTICS'.
36241 (grub_ata_initialize): Rewritten.
36242 (grub_ata_device_initialize): New function.
36244 2008-08-04 Pavel Roskin <proski@gnu.org>
36246 * kern/main.c: Include grub/mm.h.
36248 2008-08-04 Robert Millan <rmh@aybabtu.com>
36250 * conf/i386-coreboot.rmk (COMMON_ASFLAGS, COMMON_CFLAGS)
36251 (COMMON_LDFLAGS): Harmonize with i386-pc version (fixes a code
36252 corruption problem).
36254 2008-08-04 Robert Millan <rmh@aybabtu.com>
36256 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Fix misc
36257 warnings introduced in my last commit.
36259 2008-08-03 Robert Millan <rmh@aybabtu.com>
36261 Make PCI available on all i386 architectures.
36263 * include/grub/i386/pc/pci.h: Move from here ...
36264 * include/grub/i386/pci.h: ... to here.
36266 * include/grub/i386/pc/pci.h: Remove.
36267 * include/grub/i386/efi/pci.h: Remove.
36268 * include/grub/x86_64/efi/pci.h: Remove.
36270 * include/grub/pci.h: Replace `<grub/machine/pci.h>' with
36271 `<grub/cpu/pci.h>'.
36273 * conf/i386-coreboot.rmk (pkglib_MODULES): Add `pci' and `lspci'.
36274 (pci_mod_SOURCES, pci_mod_CFLAGS, pci_mod_LDFLAGS, lspci_mod_SOURCES)
36275 (lspci_mod_CFLAGS, lspci_mod_LDFLAGS): New variables.
36277 * conf/i386-ieee1275.rmk: Likewise.
36279 2008-08-03 Robert Millan <rmh@aybabtu.com>
36281 * term/i386/pc/vga_text.c (CRTC_CURSOR_DISABLE): New macro.
36282 (grub_console_setcursor): Make it possible to set cursor off.
36284 2008-08-03 Robert Millan <rmh@aybabtu.com>
36286 * util/grub.d/00_header.in: Be platform-agnostic. Probe for existence
36287 of modules instead of assuming which platform provides what.
36288 * util/update-grub.in: Likewise.
36290 2008-08-03 Robert Millan <rmh@aybabtu.com>
36292 * kern/i386/pc/init.c (make_install_device): Check for `grub_prefix'
36293 instead of `grub_install_dos_part' to determine whether a drive needs
36294 to be prepended to prefix (`grub_install_dos_part' is not reliable,
36295 because it can be overridden when loading GRUB via Multiboot).
36297 2008-08-02 Robert Millan <rmh@aybabtu.com>
36299 * util/i386/pc/grub-install.in: Remove trailing slash from prefix.
36301 2008-08-02 Robert Millan <rmh@aybabtu.com>
36303 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Add a pair
36304 of informational grub_dprintf() calls.
36306 2008-08-02 Robert Millan <rmh@aybabtu.com>
36308 * disk/memdisk.c (memdisk_size): Don't initialize.
36309 (GRUB_MOD_INIT(memdisk)): Find memdisk using grub_module_iterate().
36311 * include/grub/i386/pc/kernel.h
36312 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): Remove macro.
36313 (GRUB_KERNEL_MACHINE_PREFIX, GRUB_KERNEL_MACHINE_DATA_END): Shift.
36314 (grub_memdisk_image_size, grub_arch_memdisk_addr)
36315 (grub_arch_memdisk_size): Remove.
36317 * include/grub/kernel.h (struct grub_module_header): Remove `offset'
36318 field (was only used to transfer a constant). Add `type' field to
36319 support multiple module types.
36320 (grub_module_iterate): New function.
36322 * kern/device.c (grub_device_open): Do not hide error messages
36323 when grub_disk_open() fails. Use grub_print_error() instead.
36325 * kern/i386/pc/init.c (grub_arch_modules_addr)
36326 (grub_arch_memdisk_size): Remove functions.
36327 (grub_arch_modules_addr): Return the module address in high memory
36328 (now that it isn't copied anymore).
36330 * kern/i386/pc/startup.S (grub_memdisk_image_size): Remove variable.
36331 (codestart): Don't add grub_memdisk_image_size to %ecx in LZMA
36332 decompression routine (grub_total_module_size already includes that
36333 now). Don't copy modules back to low memory.
36335 * kern/main.c: Include `<grub/mm.h>'.
36336 (grub_load_modules): Split out (and use) ...
36337 (grub_module_iterate): ... this function, which iterates through
36338 module objects and runs a hook.
36339 Comment out grub_mm_init_region() call, as it would cause non-ELF
36340 modules to be overwritten.
36342 * util/i386/pc/grub-mkimage.c (generate_image): Instead of appending
36343 the memdisk image in its own region, make it part of the module list.
36344 * util/elf/grub-mkimage.c (options): Add "memdisk"|'m' option.
36345 (main): Parse --memdisk|-m option, and pass user-provided path as
36346 parameter to generate_image().
36347 (add_segments): Pass `memdisk_path' down to load_modules().
36348 (load_modules): Embed memdisk image in module section when requested.
36349 * util/i386/efi/grub-mkimage.c (make_mods_section): Initialize
36350 `header.type' instead of `header.offset'.
36352 * conf/powerpc-ieee1275.rmk (pkglib_MODULES): Add `memdisk.mod'.
36353 (memdisk_mod_SOURCES, memdisk_mod_CFLAGS)
36354 (memdisk_mod_LDFLAGS): New variables.
36355 * conf/i386-coreboot.rmk: Likewise.
36356 * conf/i386-ieee1275.rmk: Likewise.
36358 2008-08-02 Robert Millan <rmh@aybabtu.com>
36360 * loader/i386/pc/multiboot.c (playground, forward_relocator)
36361 (backward_relocator): New variables. Used to allocate and relocate
36362 the payload, respectively.
36363 (grub_multiboot_load_elf32): Load into heap instead of requested
36364 address, install the appropriate relocator code in each bound of
36365 the payload, and set the entry point such that
36366 grub_multiboot_real_boot() will jump to one of them.
36368 * kern/i386/loader.S (grub_multiboot_payload_size)
36369 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36370 (grub_multiboot_payload_entry_offset): New variables.
36371 (grub_multiboot_real_boot): Set cpu context to what the relocator
36372 expects, and jump to the relocator instead of the payload.
36374 * include/grub/i386/loader.h (grub_multiboot_payload_size)
36375 (grub_multiboot_payload_orig, grub_multiboot_payload_dest)
36376 (grub_multiboot_payload_entry_offset): Export.
36378 2008-08-01 Bean <bean123ch@gmail.com>
36380 * normal/menu_entry.c (editor_getline): Don't return the original
36381 string as result, as it will be released by lexer once it has done
36384 2008-08-01 Robert Millan <rmh@aybabtu.com>
36386 * util/grub.d/10_linux.in: Use prepare_grub_to_access_device() from
36387 within menuentries, not before them.
36388 util/grub.d/10_hurd.in: Likewise.
36390 2008-08-01 Bean <bean123ch@gmail.com>
36392 * conf/common.rmk (pkglib_MODULES): Add bufio.mod.
36393 (bufio_mod_SOURCES): New macro.
36394 (bufio_mod_CFLAGS): Likewise.
36395 (bufio_mod_LDFLAGS): Likewise.
36397 * include/grub/bufio.h: New file.
36399 * io/bufio.c: Likewise.
36401 * video/png.c: Replace <grub/file.h> with <grub/bufio.h>.
36402 (grub_video_reader_png): Use grub_buffile_open to open file.
36404 * video/jpeg.c: Replace <grub/file.h> with <grub/bufio.h>.
36405 (grub_video_reader_jpeg): Use grub_buffile_open to open file.
36407 * video/tga.c: Replace <grub/file.h> with <grub/bufio.h>.
36408 (grub_video_reader_tga): Use grub_buffile_open to open file.
36410 * font/manager.c: Include <grub/bufio.h>.
36411 (add_font): Use grub_buffile_open to open file.
36413 2008-07-31 Robert Millan <rmh@aybabtu.com>
36415 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): When loading
36416 ELF segments, use a macro for arbitrarily accessing any of them instead
36417 of preparing a pointer that allows access to one at a time.
36418 (grub_multiboot_load_elf64): Likewise.
36420 2008-07-31 Bean <bean123ch@gmail.com>
36422 * boot/i386/pc/lnxboot.S (real_code_2): Replace 0x50 with
36423 GRUB_KERNEL_MACHINE_DATA_END.
36425 2008-07-30 Robert Millan <rmh@aybabtu.com>
36427 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_DATA_END):
36428 Increase from 0x50 to 0x60.
36429 * util/i386/pc/grub-install.in: Detect cross-disk installs, and
36430 use UUIDs to identify the root drive for them. If that's not
36432 * util/i386/pc/grub-setup.c (setup): Do not special-case, or even
36433 check, for cross-disk installs.
36435 2008-07-30 Robert Millan <rmh@aybabtu.com>
36437 * kern/ieee1275/init.c (grub_machine_set_prefix): If `grub_prefix'
36438 is non-empty, use it to set the `prefix' environment variable instead
36439 of the usual approach.
36440 * kern/i386/linuxbios/init.c (make_install_device): Remove function.
36441 (grub_machine_set_prefix): Use `grub_prefix' to set the `prefix'
36442 environment variable instead of dummy make_install_device().
36444 * kern/i386/ieee1275/startup.S: Include `<grub/machine/kernel.h>'.
36445 (start): Insert a data section, with `grub_prefix' variable.
36446 * kern/i386/linuxbios/startup.S: Likewise.
36448 * include/grub/powerpc/ieee1275/kernel.h [!ASM_FILE] (grub_prefix):
36449 New variable reference.
36450 * include/grub/i386/ieee1275/kernel.h (GRUB_KERNEL_MACHINE_PREFIX):
36451 New macro. Defines offset of `grub_prefix' within startup.S (relative
36453 (GRUB_KERNEL_MACHINE_DATA_END): New macro. Defines the end of data
36454 section within startup.S (relative to `start').
36455 * include/grub/i386/coreboot/kernel.h: Likewise.
36457 * util/elf/grub-mkimage.c (add_segments): Receive `prefix' parameter.
36458 Overwrite grub_prefix with its contents, at the beginning of the
36460 (main): Understand -p|--prefix.
36462 2008-07-30 Robert Millan <rmh@aybabtu.com>
36464 * util/grub.d/10_hurd.in: Source ${libdir}/grub/update-grub_lib.
36466 2008-07-30 Robert Millan <rmh@aybabtu.com>
36468 * term/i386/pc/vga_text.c (grub_console_cls): Use
36469 grub_console_gotoxy() to go back to beginning of the screen.
36470 Found by Patrick Georgi <patrick.georgi@coresystems.de>
36472 2008-07-29 Christian Franke <franke@computer.org>
36474 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
36475 Add conversion of emulated mount points on Cygwin.
36477 2008-07-29 Christian Franke <franke@computer.org>
36479 * util/update-grub.in: Add a check for admin
36481 Remove old `grub.cfg.new' before creation.
36482 Add `-f' to `mv' to handle the different filesystem
36483 semantics of Windows.
36485 2008-07-29 Bean <bean123ch@gmail.com>
36487 * normal/main.c (get_line): Fix buffer overflow bug.
36489 2008-07-28 Robert Millan <rmh@aybabtu.com>
36491 * partmap/apple.c (GRUB_APPLE_HEADER_MAGIC): New macro.
36492 (struct grub_apple_header): New struct. Describes the layout of
36493 the partmap header.
36494 (apple_partition_map_iterate): Check the header magic as well as the
36495 partition magic (which was already being checked).
36497 2008-07-28 Pavel Roskin <proski@gnu.org>
36499 * genmk.rb: Add a warning to the beginning of the output that
36500 it's a generated file and should not be edited.
36502 2008-07-28 Robert Millan <rmh@aybabtu.com>
36504 * disk/raid.c (grub_raid_scan_device): Do not abort when two disks
36505 with the same number are found, just use issue a warning with
36506 grub_dprintf(), as this error has been reported to be non-fatal.
36508 2008-07-27 Robert Millan <rmh@aybabtu.com>
36510 * disk/ata.c (grub_ata_dumpinfo): Use grub_dprintf() for debugging
36513 2008-07-27 Bean <bean123ch@gmail.com>
36515 * fs/fat.c (GRUB_FAT_MAXFILE): New constant.
36516 (grub_fat_find_dir): Ignore case when comparing filename.
36518 2008-07-27 Bean <bean123ch@gmail.com>
36520 * fs/xfs.c (grub_xfs_dir_header): Change field i8count back to
36521 smallino, as it's more descriptive, and i8count can be confused with
36522 the other field count.
36523 (grub_xfs_iterate_dir): Adjust grub_xfs_dir_entry pointer for small
36526 2008-07-27 Bean <bean123ch@gmail.com>
36528 * commands/crc.c: New file.
36530 * lib/crc.c: Likewise.
36532 * include/grub/lib/crc.h: Likewise.
36534 * util/grub-fstest.c: grub/hexdump.h => grub/lib/hexdump.h.
36536 * commands/hexdump.c: grub/hexdump.h => grub/lib/hexdump.h.
36537 (hexdump): Move this function to ...
36539 * lib/hexdump.c: ... here.
36541 * include/grub/hexdump.h: Renamed to ...
36543 * include/grub/lib/hexdump.h: ... this.
36545 * commands/loadenv.c: grub/envblk.h => grub/lib/envblk.h
36547 * util/grub-editenv.c: Likewise.
36549 * include/envblk.h: Renamed to ...
36551 * include/lib/envblk.h: ... this.
36553 * util/envblk.c: Renamed to ...
36555 * lib/envblk.c: ... this.
36557 * conf/common.rmk (grub_fstest_SOURCES): commands/hexdump.c =>
36559 (grub_editenv_SOURCES): util/envblk.c => lib/envblk.c
36560 (pkglib_MODULES): Add crc.mod.
36561 (hexdump_mod_SOURCES): Add lib/hexdump.c.
36562 (loadenv_mod_SOURCES): util/envblk.c => lib/envblk.c.
36563 (crc_mod_SOURCES): New macro.
36564 (crc_mod_CFLAGS): Likewise.
36565 (crc_mod_LDFLAGS): Likewise.
36567 * conf/i386-coreboot.rmk (grub_emu_SOURCES): Add lib/hexdump.c.
36569 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
36571 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
36573 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
36575 * conf/x86_64-efi.rmk (grub_emu_SOURCES): Likewise.
36577 2008-07-27 Felix Zielcke <fzielcke@z-51.de>
36579 * commands/help.c: Include <grub/term.h>.
36580 (TERM_WIDTH): Removed. Updated all users.
36582 2008-07-27 Pavel Roskin <proski@gnu.org>
36584 * util/getroot.c (find_root_device): Rephrase a comment to avoid
36585 spurious warnings about a comment within a comment.
36587 2008-07-25 Robert Millan <rmh@aybabtu.com>
36589 * util/getroot.c (find_root_device): Skip devices that match
36590 /dev/dm-[0-9]. This lets the real device be found for any type of
36591 abstraction (LVM, EVMS, RAID..).
36592 (grub_guess_root_device): Do not traverse /dev/mapper (for LVM)
36593 and /dev/evms (for EVMS) before traversing /dev. If a /dev/dm-[0-9]
36594 device is found first, find_root_device() will now skip it.
36596 2008-07-24 Pavel Roskin <proski@gnu.org>
36598 * include/grub/types.h: Use __builtin_bswap32() and
36599 __builtin_bswap64() with gcc 4.3 and newer.
36601 2008-07-24 Christian Franke <franke@computer.org>
36603 * util/i386/pc/grub-install.in: If `--debug' is specified,
36604 pass `--verbose' to grub-setup.
36605 Abort script if make_system_path_relative_to_its_root() fails.
36607 2008-07-24 Bean <bean123ch@gmail.com>
36609 * configure.ac: Fixed a bug caused by the previous cygwin patch,
36610 variable `target_platform' should be `platform'.
36612 2008-07-24 Bean <bean123ch@gmail.com>
36614 * video/reader/png.c (DEFLATE_HLIT_MAX): Change value.
36615 (grub_png_init_fixed_block): New function.
36616 (grub_png_decode_image_data): Handle fixed huffman code compression.
36618 2008-07-24 Bean <bean123ch@gmail.com>
36620 * common.rmk (bin_UTILITIES): Add grub-pe2elf.
36621 (grub_pe2elf_SOURCES): New macro.
36622 (CLEANFILES): Add grub-pe2elf.
36624 * include/grub/efi/pe32.h (GRUB_PE32_SCN_ALIGN_1BYTES): New constant.
36625 (GRUB_PE32_SCN_ALIGN_2BYTES): Likewise.
36626 (GRUB_PE32_SCN_ALIGN_4BYTES): Likewise.
36627 (GRUB_PE32_SCN_ALIGN_8BYTES): Likewise.
36628 (GRUB_PE32_SCN_ALIGN_16BYTES): Likewise.
36629 (GRUB_PE32_SCN_ALIGN_32BYTES): Likewise.
36630 (GRUB_PE32_SCN_ALIGN_64BYTES): Likewise.
36631 (GRUB_PE32_SCN_ALIGN_SHIFT): Likewise.
36632 (GRUB_PE32_SCN_ALIGN_MASK): Likewise.
36633 (GRUB_PE32_SYM_CLASS_EXTERNAL): Likewise.
36634 (GRUB_PE32_SYM_CLASS_STATIC): Likewise.
36635 (GRUB_PE32_SYM_CLASS_FILE): Likewise.
36636 (GRUB_PE32_DT_FUNCTION): Likewise.
36637 (GRUB_PE32_REL_I386_DIR32): Likewise.
36638 (GRUB_PE32_REL_I386_REL32): Likewise.
36639 (grub_pe32_symbol): New structure.
36640 (grub_pe32_reloc): Likewise.
36642 * util/grub-pe2elf.c: New file.
36644 * configure.ac: Set TARGET_OBJ2ELF if host os is cygwin. Don't test for
36645 start symbol in non pc platform.
36647 * genmk.rb: Use TARGET_OBJ2ELF to convert native object format to elf.
36649 The following patches are from Christian Franke.
36651 * include/grub/dl.h: Remove .previous, gas supports this only
36654 * include/grub/symbol.h [__CYGWIN__] (#define FUNCTION/VARIABLE):
36655 Remove .type, gas supports this only for ELF format.
36657 * kern/dl.c (grub_dl_resolve_dependencies): Add check for trailing
36658 nullbytes in symbol table. This fixes an infinite loop if table is
36661 * Makefile.in: Add autoconf replacements TARGET_IMG_LDSCRIPT,
36662 TARGET_IMG_LDFLAGS and EXEEXT.
36664 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Replace -Wl,-N by
36665 TARGET_IMG_LDFLAGS_AC.
36666 (grub_CHECK_STACK_ARG_PROBE): New function.
36668 * conf/i386-pc.rmk: Replace -Wl,-N by TARGET_IMG_LDFLAGS.
36670 * conf/i386-pc-cygwin-ld-img.sc: New linker script.
36672 * configure.ac: Add check for linker script "conf/${target}-img-ld.c"
36673 to set TARGET_IMG_LD* accordingly.
36674 Add check for Cygwin to set TARGET_MOD_OBJCOPY accordingly.
36675 Add call to grub_CHECK_STACK_ARG_PROBE.
36676 Use TARGET_IMG_LDFLAGS to check start, bss_start, end symbols.
36678 * genkernsyms.sh.in: Handle HAVE_ASM_USCORE case.
36680 * genmk.rb: Add EXEEXT to CLEANFILES.
36682 2008-07-23 Robert Millan <rmh@aybabtu.com>
36684 * Makefile.in (UNICODE_ARROWS, UNICODE_LINES): New variables (they
36685 define the codes for arrows and lines used for the menu).
36686 (ascii.pff): Generate fonts for $(UNICODE_ARROWS) and $(UNICODE_LINES)
36689 * util/update-grub_lib.in (font_path): Prefer ascii.pff over complete
36690 fonts, because the latter are too slow.
36692 2008-07-21 Bean <bean123ch@gmail.com>
36694 * kern/i386/pc/startup.S (gate_a20_try_bios): Change test order for
36695 a20. Run keyboard test last, as it will cause macbook to halt.
36697 2008-07-18 Pavel Roskin <proski@gnu.org>
36699 * kern/dl.c: Go back to using GRUB_CPU_SIZEOF_VOID_P. We cannot
36700 load foreign architecture modules correctly anyway. Keep
36701 support for loading host architecture modules, whether we
36702 compile them or not.
36704 2008-07-17 Pavel Roskin <proski@gnu.org>
36706 * configure.ac: Use -m32 or -m64 regardless of whether we had to
36707 change target_cpu. The compiler default can mismatch target_cpu
36710 * disk/efi/efidisk.c: Fix format warnings on x86_64.
36711 * kern/efi/efi.c: Likewise.
36713 * aclocal.m4 (grub_PROG_TARGET_CC): New macro. Check if the
36714 target compiler is functional.
36715 * configure.ac: Call grub_PROG_TARGET_CC once all target flags
36718 * configure.ac: Default to efi platform for x86_64-apple. Allow
36719 powerpc64 CPU, default to ieee1275 platform for it. Split CPU
36720 adjustments from the rest, only do them if target is not
36721 explicitly given. Merge other adjustments with the final sanity
36722 check. Remove an extraneous check for supported CPU. Be
36723 specific which CPU and which platform is not supported.
36725 * configure.ac: Default to pc platform for x86_64.
36727 2008-07-17 Robert Millan <rmh@aybabtu.com>
36729 Partial LinuxBIOS -> Coreboot rename.
36731 * conf/i386-linuxbios.rmk: Renamed to ...
36732 * conf/i386-coreboot.rmk: ... this.
36733 * Makefile.in (RMKFILES): s/i386-linuxbios.rmk/i386-coreboot.rmk/g.
36734 * configure.ac: Accept "coreboot" as input platform (but maintain
36735 compatibility with "linuxbios").
36736 * include/grub/i386/linuxbios: Renamed to ...
36737 * include/grub/i386/coreboot: ... this.
36739 2008-07-17 Bean <bean123ch@gmail.com>
36741 * conf/i386/efi.rmk (pkglib_MODULES): add pci.mod and lspci.mod.
36742 (appleldr_mod_SOURCE): New variable.
36743 (appleldr_mod_CFLAGS): Likewise.
36744 (appleldr_mod_LDFLAGS): Likewise.
36745 (pci_mod_SOURCES): Likewise.
36746 (pci_mod_CFLAGS): Likewise.
36747 (pci_mod_LDFLAGS): Likewise.
36748 (lspci_mod_SOURCES): Likewise.
36749 (lspci_mod_CFLAGS): Likewise.
36750 (lspci_mod_LDFLAGS): Likewise.
36752 * conf/x86_64-efi.rmk: New file.
36754 * disk/efi/efidisk.c (grub_efidisk_read): Wrap efi calls with efi_call_N
36756 (grub_efidisk_write): Likewise.
36758 * include/efi/api.h (efi_call_0): New macro.
36759 (efi_call_1): Likewise.
36760 (efi_call_2): Likewise.
36761 (efi_call_3): Likewise.
36762 (efi_call_4): Likewise.
36763 (efi_call_5): Likewise.
36764 (efi_call_6): Likewise.
36766 * include/grub/efi/chainloader.h (grub_chainloader_cmd): Rename to
36767 grub_rescue_cmd_chainloader.
36769 * include/grub/efi/pe32.h (GRUB_PE32_MACHINE_X86_64): New macro.
36770 (grub_pe32_optional_header): Change some fields based on i386 or
36772 (GRUB_PE32_PE32_MAGIC): Likewise.
36774 * include/grub/efi/uga_draw.h: New file.
36776 * include/grub/elf.h (STN_ABS): New constant.
36777 (R_X86_64_NONE): Relocation constant for x86_64.
36778 (R_X86_64_64): Likewise.
36779 (R_X86_64_PC32): Likewise.
36780 (R_X86_64_GOT32): Likewise.
36781 (R_X86_64_PLT32): Likewise.
36782 (R_X86_64_COPY): Likewise.
36783 (R_X86_64_GLOB_DAT): Likewise.
36784 (R_X86_64_JUMP_SLOT): Likewise.
36785 (R_X86_64_RELATIVE): Likewise.
36786 (R_X86_64_GOTPCREL): Likewise.
36787 (R_X86_64_32): Likewise.
36788 (R_X86_64_32S): Likewise.
36789 (R_X86_64_16): Likewise.
36790 (R_X86_64_PC16): Likewise.
36791 (R_X86_64_8): Likewise.
36792 (R_X86_64_PC8): Likewise.
36794 * include/grub/i386/efi/pci.h: New file.
36796 * include/grub/i386/linux.h (GRUB_LINUX_EFI_SIGNATURE):
36797 Change it value based on platform.
36798 (GRUB_LINUX_EFI_SIGNATURE_0204): New constant.
36799 (GRUB_E820_RAM): Likewise.
36800 (GRUB_E820_RESERVED): Likewise.
36801 (GRUB_E820_ACPI): Likewise.
36802 (GRUB_E820_NVS): Likewise.
36803 (GRUB_E820_EXEC_CODE): Likewise.
36804 (GRUB_E820_MAX_ENTRY): Likewise.
36805 (grub_e820_mmap): New structure.
36806 (linux_kernel_header): Change the efi field according to different
36807 kernel version, also field from linux_kernel_header.
36809 * include/grub/kernel.h (grub_module_info): Add padding for x86_64.
36811 * include/grub/pci.h (GRUB_PCI_ADDR_SPACE_MASK): New constant.
36812 (GRUB_PCI_ADDR_SPACE_MEMORY): Likewise.
36813 (GRUB_PCI_ADDR_SPACE_IO): Likewise.
36814 (GRUB_PCI_ADDR_MEM_TYPE_MASK): Likewise.
36815 (GRUB_PCI_ADDR_MEM_TYPE_32): Likewise.
36816 (GRUB_PCI_ADDR_MEM_TYPE_1M): Likewise.
36817 (GRUB_PCI_ADDR_MEM_TYPE_64): Likewise.
36818 (GRUB_PCI_ADDR_MEM_PREFETCH): Likewise.
36819 (GRUB_PCI_ADDR_MEM_MASK): Likewise.
36820 (GRUB_PCI_ADDR_IO_MASK): Likewise.
36822 * include/grub/x86_64/efi/kernel.h: New file.
36824 * include/grub/x86_64/efi/loader.h: Likewise.
36826 * include/grub/x86_64/efi/machine.h: Likewise.
36828 * include/grub/x86_64/efi/pci.h: Likewise.
36830 * include/grub/x86_64/efi/time.h: Likewise.
36832 * include/grub/x86_64/linux.h: Likewise.
36834 * include/grub/x86_64/setjmp.h: Likewise.
36836 * include/grub/x86_64/time.h: Likewise.
36838 * include/grub/x86_64/types.h: Likewise.
36840 * kern/dl.c (GRUB_CPU_SIZEOF_VOID_P): Changed to
36841 GRUB_TARGET_SIZEOF_VOID_P.
36843 * kern/efi/efi.c (grub_efi_locate_protocol): Wrap efi calls.
36844 (grub_efi_locate_handle): Likewise.
36845 (grub_efi_open_protocol): Likewise.
36846 (grub_efi_set_text_mode): Likewise.
36847 (grub_efi_stall): Likewise.
36848 (grub_exit): Likewise.
36849 (grub_reboot): Likewise.
36850 (grub_halt): Likewise.
36851 (grub_efi_exit_boot_services): Likewise.
36852 (grub_get_rtc): Likewise.
36854 * kern/efi/mm.c (MEMORY_MAP_SIZE): Change to 0x3000 for new models.
36855 (GRUB_CPU_SIZEOF_VOID_P): Changed to GRUB_TARGET_SIZEOF_VOID_P.
36856 (grub_efi_allocate_pages): Wrap efi calls.
36857 (grub_efi_free_pages): Wrap efi calls.
36858 (grub_efi_get_memory_map): Wrap efi calls.
36860 * kern/x86_64/dl.c: New file.
36862 * kern/x86_64/efi/callwrap.S: Likewise.
36864 * kern/x86_64/efi/startup.S: Likewise.
36866 * loader/efi/appleloader.c: Likewise.
36868 * loader/efi/chainloader.c (cmdline): New variable.
36869 (grub_chainloader_unload): Wrap efi calls.
36870 (grub_chainloader_boot): Likewise.
36871 (grub_rescue_cmd_chainloader): Wrap efi calls, handle
36874 * loader/efi/chainloader_normal.c (chainloader_command):
36875 Change grub_chainloader_cmd to grub_rescue_cmd_chainloader, pass
36878 * loader/i386/efi/linux.c (allocate_pages): Change allocation
36880 (grub_e820_add_region): New function.
36881 (grub_linux_boot): Construct e820 map from efi map, handle x86_64
36883 (grub_find_video_card): New function.
36884 (grub_linux_setup_video): New function.
36885 (grub_rescue_cmd_linux): Probe for video information.
36887 * normal/x86_64/setjmp.S: New file.
36889 * term/efi/console.c (map_char): New function.
36890 (grub_console_putchar): Map unicode char.
36891 (grub_console_checkkey): Wrap efi calls.
36892 (grub_console_getkey): Likewise.
36893 (grub_console_getwh): Likewise.
36894 (grub_console_gotoxy): Likewise.
36895 (grub_console_cls): Likewise.
36896 (grub_console_setcolorstate): Likewise.
36897 (grub_console_setcursor): Likewise.
36899 * util/i386/efi/grub-mkimage.c: Add support for x86_64.
36901 2008-07-16 Pavel Roskin <proski@gnu.org>
36903 * loader/i386/efi/linux.c (allocate_pages): Fix warnings in
36906 * util/i386/efi/grub-mkimage.c (get_target_address): Return a
36907 pointer, not an integer. This fixes a warning and prevents
36908 precision loss on 64-bit systems.
36909 (relocate_addresses): Remove unneeded cast.
36911 2008-07-15 Pavel Roskin <proski@gnu.org>
36913 * kern/i386/ieee1275/init.c: Include grub/cache.h.
36915 * term/ieee1275/ofconsole.c: Disable code unused on i386.
36917 * kern/ieee1275/ieee1275.c (grub_ieee1275_get_integer_property):
36918 Fix comparison between signed and unsigned.
36920 * include/grub/i386/ieee1275/console.h: Declare
36921 grub_console_init() and grub_console_fini().
36923 * loader/i386/ieee1275/linux.c (grub_set_bootpath): Remove.
36924 It's empty and unused.
36926 * fs/ext2.c (grub_ext2_read_block): Initialize blknr in the
36927 beginning to avoid warnings with some compilers.
36929 * loader/ieee1275/multiboot2.c: Include grub/machine/loader.h.
36930 [__i386__] (grub_mb2_arch_boot): Avoid unnecessary cast.
36932 2008-07-14 Pavel Roskin <proski@gnu.org>
36934 * kern/env.c (grub_register_variable_hook): Don't copy empty
36935 string, it leaks memory. Pass "" to grub_env_set(), it should
36936 handle constant strings.
36938 * commands/blocklist.c (grub_cmd_blocklist): Fix format warning.
36939 * commands/cmp.c (grub_cmd_cmp): Likewise.
36940 * kern/dl.c (grub_dl_flush_cache): Likewise.
36941 (grub_dl_load_core): Likewise.
36942 * kern/elf.c (grub_elf32_load_phdrs): Likewise.
36943 (grub_elf64_load_phdrs): Likewise.
36945 2008-07-13 Pavel Roskin <proski@gnu.org>
36947 * lib/LzmaEnc.c (LzmaEnc_SetProps): Fix warning about comparison
36948 between signed and unsigned.
36949 (LzmaEnc_Finish): Fix warning about an unused parameter.
36951 2008-07-13 Bean <bean123ch@gmail.com>
36953 * Makefile.in (enable_lzo): New rule.
36955 * conf/i386-pc.rmk (grub_mkimage_SOURCES): New test with enable_lzo.
36957 * configure.ac (ENABLE_LZO): New option --enable-lzo.
36959 * boot/i386/pc/lnxboot.S: #include <config.h>.
36961 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE): Change
36962 its value according to the compression algorithm used, lzo or lzma.
36964 * util/i386/pc/grub-mkimage.c (compress_kernel): Use different
36965 compression algorithm according to configure macro.
36967 * kern/i386/pc/startup.S (codestart): Likewise.
36969 * kern/i386/pc/lzma_decode.S: New file.
36971 * include/grub/lib/LzFind.h: Likewise.
36973 * include/grub/lib/LzHash.h: Likewise.
36975 * include/grub/lib/LzmaDec.h: Likewise.
36977 * include/grub/lib/LzmaEnc.h: Likewise.
36979 * include/grub/lib/LzmaTypes.h: Likewise.
36981 * lib/LzFind.c: Likewise.
36983 * lib/LzmaDec.c: Likewise.
36985 * lib/LzmaEnc.c: Likewise.
36987 2008-07-13 Bean <bean123ch@gmail.com>
36989 * fs/ext2.c (EXT4_EXTENTS_FLAG): New macro.
36990 (grub_ext4_extent_header): New structure.
36991 (grub_ext4_extent): Likewise.
36992 (grub_ext4_extent_idx): Likewise.
36993 (grub_ext4_find_leaf): New function.
36994 (grub_ext2_read_block): Handle extents.
36996 2008-07-12 Robert Millan <rmh@aybabtu.com>
36998 * util/i386/pc/grub-mkrescue.in: s/grub-install/grub-mkrescue/g.
37000 2008-07-11 Robert Millan <rmh@aybabtu.com>
37002 * util/grub.d/40_custom.in: New file. Example on how to add custom
37003 entries to /etc/grub.d.
37004 * conf/common.rmk (%, update-grub_SCRIPTS, CLEANFILES): Install
37005 40_custom (implicitly, by merging all the grub.d rules).
37007 2008-07-11 Pavel Roskin <proski@gnu.org>
37009 * commands/read.c (grub_getline): Fix invalid memory access.
37010 Don't add newline to the variable value.
37012 * term/i386/pc/serial.c (GRUB_SERIAL_PORT_NUM): New constant.
37013 [!GRUB_MACHINE_PCBIOS] (serial_hw_io_addr): Add COM2 and COM3.
37014 (serial_hw_get_port): Check validity of the port number.
37015 (grub_cmd_serial): Check return value of serial_hw_get_port().
37017 2008-07-07 Pavel Roskin <proski@gnu.org>
37019 * boot/i386/pc/diskboot.S (notification_string): Replace
37020 "Loading kernel" with just "loading". This is shorter, less
37021 confusing and saves a few bytes for possible future changes.
37023 2008-07-05 Pavel Roskin <proski@gnu.org>
37025 * disk/ata.c (grub_ata_dumpinfo): Don't output addressing and
37026 size for ATAPI devices, they are undefined. Output sector
37027 number in decimal form.
37029 * disk/ata.c: Use named constants for status bits.
37031 2008-07-04 Pavel Roskin <proski@gnu.org>
37033 * kern/i386/linuxbios/init.c (grub_machine_init): Cast addr to
37034 grub_addr_t before casting it to the void pointer to fix a
37035 warning. Non-addressable regions are discarded earlier.
37036 (grub_arch_modules_addr): Cast _end to grub_addr_t.
37037 * kern/i386/linuxbios/table.c: Include grub/misc.h.
37038 (check_signature): Don't shadow table_header.
37039 (grub_linuxbios_table_iterate): Cast numeric constants to
37040 grub_linuxbios_table_header_t.
37041 * include/grub/i386/linuxbios/init.h: Add noreturn attribute to
37044 * kern/ieee1275/init.c: Cast _start and _end to grub_addr_t to
37047 * include/grub/misc.h (ALIGN_UP): Avoid unnecessary cast to a
37048 pointer, which can cause warnings. Support 64-bit addresses.
37050 * util/elf/grub-mkimage.c: Use GRUB_TARGET_SIZEOF_LONG instead
37051 of sizeof(long). This fixes PowerPC image generation on x86_64.
37053 2008-07-04 Robert Millan <rmh@aybabtu.com>
37055 This fixes a performance issue when pc & gpt partmap iterators
37056 didn't abort iteration even after our hook found what it was
37057 looking for (often causing expensive probes of non-existent drives).
37059 Some callers relied on previous buggy behaviour, since they would
37060 raise an error when their own hooks caused early abortion of its
37063 * kern/device.c (grub_device_open): Improve error message.
37064 * disk/lvm.c (grub_lvm_open): Likewise.
37065 * disk/raid.c (grub_raid_open): Likewise.
37067 * partmap/pc.c (pc_partition_map_iterate): Abort parent iteration
37068 when hook requests it, independently of grub_errno.
37069 (pc_partition_map_probe): Do not fail when find_func() caused
37070 early abortion of pc_partition_map_iterate().
37072 * partmap/gpt.c (gpt_partition_map_iterate): Abort parent iteration
37073 when hook requests it, independently of grub_errno.
37074 (gpt_partition_map_probe): Do not fail when find_func() caused
37075 early abortion of gpt_partition_map_iterate().
37077 * kern/partition.c (grub_partition_iterate): Abort parent iteration
37078 when hook requests it, independently of grub_errno. Do not fail when
37079 part_map_iterate_hook() caused early abortion of p->iterate().
37081 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Do not fail
37082 when grub_partition_iterate() returned with non-zero.
37084 2008-07-03 Pavel Roskin <proski@gnu.org>
37086 * disk/ata.c (grub_ata_pio_write): Check status before writing,
37087 like we do in grub_ata_pio_read().
37088 (grub_ata_readwrite): Always write individual sectors. Fix the
37089 sector count for the remainder.
37090 (grub_ata_write): Enable writing to ATA devices. Correctly
37091 report error for ATAPI devices.
37093 2008-07-02 Pavel Roskin <proski@gnu.org>
37095 * boot/i386/pc/cdboot.S: Add _start entry to fix a linker
37098 * disk/ata.c (grub_ata_readwrite): Don't increment sector number
37099 for every read sector, we already increment it for the whole
37100 batch. This fixes reading more than 256 sectors at once.
37102 * util/grub-editenv.c (cmd_info): Cast argument to long
37103 explicitly. ptrdiff_t reduces to int on i386.
37105 * util/grub-editenv.c (main): Be specific which parameter is
37108 * disk/memdisk.c (memdisk_addr): Make a pointer to fix warnings.
37109 (memdisk): Make memdisk_orig_addr a pointer.
37111 * fs/reiserfs.c (grub_reiserfs_read): Fix misuse of grub_size_t
37112 for file offsets, use grub_off_t instead. Fix printf format
37115 * fs/reiserfs.c: Remove #warning, TODO list items don't belong
37116 there. Real unexpected warnings should not drown in the noise
37117 about known problems.
37119 * commands/hexdump.c (grub_cmd_hexdump): Fix misuse of
37120 grub_disk_addr_t for memory addresses.
37122 * loader/aout.c (grub_aout_load): Cast load_addr to pointer
37123 explicitly to fix a warning.
37125 * util/grub-editenv.c (cmd_info): Fix warning in printf format.
37127 * Makefile.in (MODULE_LDFLAGS): New variable.
37128 * aclocal.m4 (grub_PROG_LD_BUILD_ID_NONE): New macro. Check if
37129 the linker accepts --build-id=none.
37130 * configure.ac: Call grub_PROG_LD_BUILD_ID_NONE. Substitute
37132 * genmk.rb: Use MODULE_LDFLAGS when linking modules.
37134 * fs/xfs.c (struct grub_xfs_dir_header): Use names similar to
37135 those in Linux XFS code. Provide a way to access 64-bit parent
37137 (grub_xfs_iterate_dir): Use the new names. Avoid reading past
37138 the end of struct grub_xfs_dir_header.
37140 2008-07-02 Bean <bean123ch@gmail.com>
37142 * include/grub/ieee1275.h (grub_ieee1275_flag): New constant
37143 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37144 and GRUB_IEEE1275_FLAG_NO_ANSI.
37146 * kern/ieee1275/cmain.c (grub_ieee1275_find_options): Set flag
37147 GRUB_IEEE1275_FLAG_CANNOT_INTERPRET, GRUB_IEEE1275_FLAG_FORCE_CLAIM
37148 and GRUB_IEEE1275_FLAG_NO_ANSI for Open Hackware.
37150 * kern/ieee1275/ieee1275.c (grub_ieee1275_interpret): Return
37151 immediately if GRUB_IEEE1275_FLAG_CANNOT_INTERPRET is set.
37153 * kern/ieee1275/init.c (grub_claim_heap): Claim memory directly if
37154 GRUB_IEEE1275_FLAG_FORCE_CLAIM is set.
37156 * term/ieee1275/ofconsole.c (grub_ofconsole_writeesc): Don't output
37157 esc sequence on non ANSI terminal.
37158 (grub_ofconsole_gotoxy): Emulate backspace key on non ANSI terminal.
37160 * util/elf/grub-mkimage.c (add_segments): Move ELF header to the
37163 2008-07-02 Bean <bean123ch@gmail.com>
37165 * conf/common.rmk (bin_UTILITIES): Add grub-editenv.
37166 (grub_editenv_SOURCES): New variable.
37167 (pkglib_MODULES): Add loadenv.mod.
37168 (loadenv_mod_SOURCES): New variable.
37169 (loadenv_mod_CFLAGS): Likewise.
37170 (loadenv_mod_LDFLAGS): Likewise.
37172 * include/grub/envblk.h: New file.
37174 * util/envblk.c: New file.
37176 * util/grub-editenv.c: New file.
37178 * commands/loadenv.c: New file.
37180 2008-07-01 Pavel Roskin <proski@gnu.org>
37182 * include/multiboot2.h (struct multiboot_tag_module): Use char,
37183 not unsigned char. This fixes warnings and is consistent with
37186 * disk/fs_uuid.c (search_fs_uuid): Correctly increment count.
37188 * normal/parser.y: Define YYENABLE_NLS as 0 to fix warnings.
37190 * term/tparm.c (analyze): Always set *popcount.
37192 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Remove useless
37193 cast to fix a warning.
37195 * loader/i386/pc/multiboot2.c (grub_mb2_arch_module_alloc): Use
37196 cast to suppress a warning.
37198 * fs/afs.c (grub_afs_read_block): Return grub_disk_addr_t, as
37199 grub_fshelp_read_file() expects.
37201 * fs/fat.c: Fix UUID calculation on big-endian systems. We
37202 write uuid as a 32-bit value in CPU byte order, so declare and
37205 * disk/raid.c: Cast grub_dprintf() arguments to unsigned long
37206 long if the format specifier expects it.
37207 * partmap/gpt.c (gpt_partition_map_iterate): Likewise.
37208 * partmap/pc.c (pc_partition_map_iterate): Likewise.
37209 * fs/ntfs.c (grub_ntfs_uuid): Cast data->uuid to unsigned long
37210 long to fix a warning.
37211 * fs/reiserfs.c (grub_reiserfs_read): Change casts in
37212 grub_dprintf() arguments to fix warnings.
37214 2008-06-30 Pavel Roskin <proski@gnu.org>
37216 * util/i386/pc/grub-setup.c (setup): Write install_dos_part and
37217 install_bsd_part immediately before core.img is embedded or
37218 modified on disk. This fixes core.img verification if core.img
37219 cannot be embedded.
37221 * util/i386/pc/grub-setup.c (setup): Use core_path_dev, not
37222 core_path to calculate the blocklist.
37223 Patch from Javier Martín <lordhabbit@gmail.com>
37225 2008-06-29 Robert Millan <rmh@aybabtu.com>
37227 * fs/xfs.c (GRUB_XFS_FSB_TO_BLOCK): New macro. Maps filesystem
37228 block to disk block.
37229 (grub_xfs_read_block): Use GRUB_XFS_FSB_TO_BLOCK() on result.
37230 Patch from Niels Böhm <bitbucket@arcor.de>
37232 2008-06-29 Robert Millan <rmh@aybabtu.com>
37234 * util/update-grub_lib.in (font_path): Search for fonts in
37235 /boot/grub first, which is more likely to be readable (we aren't
37236 deciding where fonts live, just looking for them).
37238 2008-06-26 Pavel Roskin <proski@gnu.org>
37240 * util/biosdisk.c (read_device_map): Don't leave dead map
37241 entries for devices failing stat() check.
37243 * util/i386/pc/grub-setup.c (setup): Don't reuse core_path, use
37244 core_path_dev for the core.img path on the target device.
37246 2008-06-26 Robert Millan <rmh@aybabtu.com>
37248 * disk/fs_uuid.c: New file.
37249 * conf/common.rmk (pkglib_MODULES): Add `fs_uuid.mod'.
37250 (fs_uuid_mod_SOURCES, fs_uuid_mod_CFLAGS)
37251 (fs_uuid_mod_LDFLAGS): New variables.
37252 * include/grub/disk.h (grub_disk_dev_id): Add
37253 `GRUB_DISK_DEVICE_UUID_ID'.
37254 * kern/disk.c (grub_disk_dev_iterate): Allow disk devices not to
37255 implement iterate().
37257 2008-06-26 Robert Millan <rmh@aybabtu.com>
37259 * util/grub.d/10_linux.in: Avoid passing UUIDs to Linux when either
37260 "/dev/disk/by-uuid/${GRUB_DEVICE_UUID}" does not exist, or when a
37261 Linux image includes no initrd.
37263 2008-06-21 Javier Martín <lordhabbit@gmail.com>
37265 * util/i386/pc/grub-setup.c (setup): Remove literal "core.img" in a
37266 call to resolve the core image location that effectively appended the
37269 2008-06-21 Robert Millan <rmh@aybabtu.com>
37271 * util/grub.d/00_header.in: Move last prepare_grub_to_access_device()
37274 * util/grub.d/10_hurd.in: ... to here ...
37275 * util/grub.d/10_linux.in: ... and here.
37277 2008-06-19 Robert Millan <rmh@aybabtu.com>
37279 * kern/main.c (grub_main): Export `prefix' variable immediately
37280 after it has been set by grub_machine_set_prefix().
37282 2008-06-19 Robert Millan <rmh@aybabtu.com>
37284 * commands/search.c (search_label, search_fs_uuid, search_file): Print
37285 search result when not saving to variable, not the other way around.
37286 When saving to variable, abort iteration as soon as a match is found.
37288 2008-06-19 Robert Millan <rmh@aybabtu.com>
37290 * util/update-grub_lib.in (prepare_grub_to_access_device): Remove
37291 check for partition that provides /boot/grub. Its logic is flawed,
37292 as it prevents prepare_grub_to_access_device() from being called
37295 2008-06-19 Robert Millan <rmh@aybabtu.com>
37297 * util/update-grub_lib.in (prepare_grub_to_access_device): Issue
37298 "insmod" command directly when abstraction modules are needed,
37299 instead of relying on GRUB_PRELOAD_MODULES (which had no effect
37300 since it had already been processed).
37302 2008-06-19 Pavel Roskin <proski@gnu.org>
37304 * conf/i386-efi.rmk: Recompile grub-mkimage.c if Makefile has
37305 changed. This is needed in case GRUB_LIBDIR changes.
37306 * conf/i386-ieee1275.rmk: Likewise.
37307 * conf/i386-linuxbios.rmk: Likewise.
37308 * conf/i386-pc.rmk: Likewise.
37309 * conf/powerpc-ieee1275.rmk: Likewise.
37311 2008-06-18 Pavel Roskin <proski@gnu.org>
37313 * conf/powerpc-ieee1275.rmk (kernel_elf_SOURCES): Rename
37314 kernel_elf_symlist.c to symlist.c for consistency with other
37315 architectures. Update all users.
37316 * conf/sparc64-ieee1275.rmk (kernel_elf_SOURCES): Likewise.
37318 2008-06-18 Robert Millan <rmh@aybabtu.com>
37320 * util/i386/pc/grub-install.in: If the drive is LVM or RAID, prepend
37323 * util/i386/pc/grub-setup.c (main): Don't handle prefix at all. Set
37324 `must_embed' to 1 when root_dev is a RAID device. When dest_dev is
37325 a RAID device, run setup() for all members independently on whether
37326 LVM abstraction is being used.
37327 (setup): Don't handle prefix at all; let grub-mkimage take care of it.
37328 If grub-mkimage has set `*install_dos_part == -2', don't override this
37330 Perform *install_dos_part adjustments independently on whether
37331 we're embedding or not.
37332 Clarify error message when image is too big for embedding.
37333 Remove duplicate *install_dos_part stanza.
37335 2008-06-17 Robert Millan <rmh@aybabtu.com>
37337 * term/ieee1275/ofconsole.c (fgcolor, bgcolor): Remove variables.
37338 (grub_ofconsole_normal_color, grub_ofconsole_highlight_color): New
37340 (grub_ofconsole_setcolor, grub_ofconsole_getcolor): Load/store
37341 values in grub_ofconsole_normal_color and
37342 grub_ofconsole_highlight_color (they're not directly related to
37343 background and foreground).
37344 (grub_ofconsole_setcolorstate): Extract background and foreground
37345 from grub_ofconsole_normal_color and grub_ofconsole_highlight_color.
37347 2008-06-17 Robert Millan <rmh@aybabtu.com>
37349 * util/update-grub_lib.in (prepare_grub_to_access_device): Use
37350 /boot/grub for the check in last commit, not /boot (they could be
37351 different partitions).
37353 2008-06-16 Robert Millan <rmh@aybabtu.com>
37355 * util/update-grub_lib.in (prepare_grub_to_access_device): If we were
37356 asked to setup access for the same partition that provides /boot,
37357 don't bother using UUIDs since our root already has the value we
37360 2008-06-16 Robert Millan <rmh@aybabtu.com>
37362 * util/biosdisk.c (convert_system_partition_to_system_disk): Detect
37364 Patch from Sven Mueller <sven@debian.org>.
37366 2008-06-16 Robert Millan <rmh@aybabtu.com>
37368 * util/update-grub.in: Check for $EUID instead of $UID.
37369 Reported by Vincent Zweije.
37371 2008-06-16 Bean <bean123ch@gmail.com>
37373 * fs/ext2.c (grub_ext2_blockgroup): Revert to pre-journal state.
37374 (grub_ext2_read_block): Likewise.
37375 (grub_ext2_read_inode): Likewise.
37376 (grub_ext2_mount): Likewise.
37377 (grub_ext2_close): Likewise.
37378 (grub_ext3_get_journal): Removed.
37380 * fs/reiserfs.c (grub_reiserfs_get_item): Revert to pre-journal state.
37381 (grub_reiserfs_read_symlink): Likewise.
37382 (grub_reiserfs_mount): Likewise.
37383 (grub_reiserfs_open): Likewise.
37384 (grub_reiserfs_read): Likewise.
37385 (grub_reiserfs_close): Likewise.
37386 (grub_reiserfs_get_journal): Removed.
37388 * fs/fshelp.c (grub_fshelp_read): Removed.
37389 (grub_fshelp_map_block): Likewise.
37391 * include/grub/fshelp.h (grub_fshelp_journal_type): Removed.
37392 (grub_fshelp_journal): Likewise.
37393 (grub_fshelp_read): Likewise.
37394 (grub_fshelp_map_block): Likewise.
37396 2008-06-16 Pavel Roskin <proski@gnu.org>
37398 * conf/powerpc-ieee1275.rmk: Remove -msoft-float, we don't use
37399 floating point anymore.
37400 * include/grub/powerpc/libgcc.h: Leave only necessary exports.
37402 2008-06-15 Pavel Roskin <proski@gnu.org>
37404 * commands/ls.c (grub_ls_list_files): Use integer calculations
37405 for human readable format, avoid floating point use.
37406 * kern/misc.c (grub_ftoa): Remove.
37407 (grub_vsprintf): Remove floating point support.
37409 2008-06-15 Robert Millan <rmh@aybabtu.com>
37411 * util/grub.d/10_linux.in: Use the underlying device for loop-AES
37413 Reported by Max Vozeler.
37415 2008-06-15 Robert Millan <rmh@aybabtu.com>
37417 * util/i386/pc/grub-mkimage.c (generate_image): If we included a drive
37418 in our prefix, set install_{dos,bsd}_part = -2 to indicate this can be
37420 (main): If a memdisk was requested, add "(memdisk)" drive explicitly to
37421 the beginning of the prefix.
37423 * kern/i386/pc/init.c (make_install_device): Remove memdisk check.
37424 It is assumed that if we have a memdisk, grub-mkimage has set
37425 grub_prefix to include the "(memdisk)" drive in it.
37427 2008-06-15 Robert Millan <rmh@aybabtu.com>
37429 * term/i386/pc/console.c [GRUB_MACHINE_LINUXBIOS] (grub_console_init):
37430 Initialize keyboard controller after registering the terminal, so that
37431 grub_printf() can be called from grub_keyboard_controller_init().
37433 2008-06-15 Robert Millan <rmh@aybabtu.com>
37435 * fs/sfs.c (grub_sfs_read_extent): Fix the count of nodes in
37436 extent-btree which is written as big endian on disk.
37437 Reported by Alain Greppin <al@chilibi.org>.
37439 2008-06-14 Robert Millan <rmh@aybabtu.com>
37441 * util/i386/efi/grub-install.in (modules): Remove `_chain'.
37442 * util/i386/pc/grub-install.in (modules): Likewise.
37444 2008-06-13 Pavel Roskin <proski@gnu.org>
37446 * commands/ls.c (grub_ls_list_files): Fix format warnings.
37448 2008-06-13 Bean <bean123ch@gmail.com>
37450 * commands/hexdump.c (grub_cmd_hexdump): Adjust offset for partition.
37452 * fs/ext2.c (grub_ext3_get_journal): Fix revoke block handling.
37454 * fs/fshelp.c (grub_fshelp_map_block): Don't map block 0 as it's used
37455 to indicate sparse block.
37457 2008-06-12 Pavel Roskin <proski@gnu.org>
37459 * fs/ext2.c (grub_ext2_read_inode): Don't normalize block
37460 number, grub_fshelp_read() does it for us.
37462 * fs/fshelp.c (grub_fshelp_read): New function. Implement
37463 linear disk read with journal translation.
37464 * fs/ext2.c: Use grub_fshelp_read() instead of grub_disk_read().
37465 * include/grub/fshelp.h: Declare grub_fshelp_read().
37467 2008-06-09 Pavel Roskin <proski@gnu.org>
37469 * fs/minix.c (grub_minix_mount): Handle error reading
37472 2008-06-08 Robert Millan <rmh@aybabtu.com>
37474 * util/i386/pc/grub-setup.c (main): If install drive is an LVM,
37475 don't append the RAID prefix afterwards.
37476 Reported by Clint Adams.
37478 2008-06-08 Robert Millan <rmh@aybabtu.com>
37480 Based on description from Pavel:
37481 * kern/disk.c (grub_disk_check_range): Rename to ...
37482 (grub_disk_adjust_range): ... this. Add a comment explaining the
37483 tasks performed by this function.
37485 2008-06-08 Robert Millan <rmh@aybabtu.com>
37487 * include/grub/ntfs.h (struct grub_ntfs_bpb): Rename `serial_number' to
37488 `num_serial' (for consistency with other variables).
37489 (struct grub_ntfs_data): Add `uuid' member.
37490 * fs/ntfs.c (grub_ntfs_mount): Initialize `data->uuid'.
37491 (grub_ntfs_uuid): New function.
37492 (grub_ntfs_fs): Reference grub_ntfs_uuid() in `uuid' struct member.
37494 2008-06-07 Pavel Roskin <proski@gnu.org>
37496 * util/biosdisk.c (open_device): Revert last change to the
37497 function, it broke installation. The sector needs to be
37498 different dependent on which device is opened.
37500 2008-06-06 Robert Millan <rmh@aybabtu.com>
37502 Ensure GRUB_KERNEL_MACHINE_DATA_END is always consistent with the
37503 rest of GRUB, and breakage doesn't happen if its value were modified.
37505 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
37506 Redefine as an offset from `GRUB_KERNEL_MACHINE_DATA_END' instead of
37507 a constant (same value).
37508 * kern/i386/pc/startup.S: Replace hardcoded `0x50' with
37509 `GRUB_KERNEL_MACHINE_DATA_END' (same value).
37511 2008-06-06 Robert Millan <rmh@aybabtu.com>
37513 * util/biosdisk.c (open_device): Do not modify sector offset when
37514 accessing a partition. kern/disk.c already handles this for us.
37516 2008-06-06 Robert Millan <rmh@aybabtu.com>
37518 * util/grub-emu.c (grub_machine_init): Move code in this function from
37520 (main): ... to here (before grub_util_biosdisk_init() call, to prevent
37521 segfault in case grub_printf() is called).
37523 * util/i386/pc/grub-install.in: Append `--device-map=${device_map}' to
37524 grub_probe. Update all users not to explicitly add it again.
37525 (grub_device): New variable; contains corresponding device for grubdir.
37526 (fs_module, partmap_module, devabstraction_module): Pass
37527 `--device ${grub_device}' to grub_probe to avoid traversing /dev
37530 2008-06-05 Robert Millan <rmh@aybabtu.com>
37532 * normal/misc.c (grub_normal_print_device_info): When a filesystem UUID
37533 is found, print it (same layout as with labels).
37535 2008-06-04 Robert Millan <rmh@aybabtu.com>
37537 * util/biosdisk.c (get_drive): Rename to ...
37538 (find_grub_drive): ... this. Update all users.
37540 (get_os_disk): Rename to ...
37541 (convert_system_partition_to_system_disk): ... this. Update all users.
37543 (find_drive): Rename to ...
37544 (find_system_device): ... this. Update all users.
37546 2008-06-04 Robert Millan <rmh@aybabtu.com>
37548 * util/biosdisk.c (get_os_disk): Handle IDA devices.
37549 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37550 (make_device_map): Likewise.
37552 2008-06-01 Robert Millan <rmh@aybabtu.com>
37554 * util/biosdisk.c (get_drive): Verify that `map[i].drive' is non-NULL
37555 before dereferencing it.
37557 * fs/fat.c (struct grub_fat_bpb): Move fat32-specific fields into a
37558 union with fat12/fat16-specific ones. Add some new fields, including
37559 `num_serial' for both versions.
37560 (struct grub_fat_data): Add `uuid' member.
37561 (grub_fat_mount): Refer to fat32-specific fields in `bpb' by their new
37562 names. Initialize `data->uuid' using `num_serial'.
37563 (grub_fat_uuid): New function.
37564 (grub_fat_fs): Reference grub_fat_uuid() in `uuid' struct member.
37566 * fs/reiserfs.c (grub_reiserfs_superblock): Add `uuid' field.
37567 (grub_reiserfs_uuid): New function.
37568 (grub_reiserfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct
37571 * fs/xfs.c (grub_xfs_sblock): Add `uuid' field.
37572 (grub_xfs_uuid): New function.
37573 (grub_xfs_fs): Reference grub_reiserfs_uuid() in `uuid' struct member.
37575 2008-06-01 Robert Millan <rmh@aybabtu.com>
37577 * util/update-grub_lib.in (prepare_grub_to_access_device): Generate
37578 code that is backward compatible with pre-uuid search command.
37580 2008-05-31 Robert Millan <rmh@aybabtu.com>
37582 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Iterate through
37583 floppies after everything else, to ensure floppy drive isn't accessed
37584 unnecessarily (patch from Bean).
37586 2008-05-31 Robert Millan <rmh@aybabtu.com>
37588 * commands/search.c (search_label, search_fs_uuid, search_file): Do
37589 not print device names when we were asked to set a variable.
37591 2008-05-31 Robert Millan <rmh@aybabtu.com>
37593 * term/ieee1275/ofconsole.c (grub_ofconsole_setcursor): Implement
37594 using "cursor-on" and "cursor-off" commands (understood at least by
37595 the Open Firmware flavour on OLPC).
37597 2008-05-31 Michael Gorven <michael@gorven.za.net>
37599 * term/terminfo.c (grub_terminfo_set_current): Correct vt100 cursor
37600 on and off sequences.
37602 2008-05-31 Robert Millan <rmh@aybabtu.com>
37604 * util/update-grub_lib.in: Replace `grub-probe' with `${grub_probe}'.
37605 * util/update-grub.in: Likewise.
37607 2008-05-30 Pavel Roskin <proski@gnu.org>
37609 * util/biosdisk.c (linux_find_partition): Simplify logic and
37610 make the code more universal. Keep special processing for
37611 devfs, but use a simple rule for all other devices. If the
37612 device ends with a number, append 'p' and the partition number.
37613 Otherwise, append only the partition number.
37615 2008-05-30 Robert Millan <rmh@aybabtu.com>
37617 * util/update-grub.in (GRUB_DISABLE_LINUX_UUID): Export variable.
37618 * util/grub.d/10_linux.in: If GRUB_DEVICE_UUID is set, and
37619 GRUB_DISABLE_LINUX_UUID isn't true, use the filesystem UUIDs as
37620 the `root' parameter to Linux.
37622 2008-05-30 Robert Millan <rmh@aybabtu.com>
37624 * commands/search.c (options): Rename --fs_uuid to --fs-uuid.
37625 * util/update-grub_lib.in (prepare_grub_to_access_device): Replace
37626 --fs_uuid with --fs-uuid.
37627 * util/update-grub.in: Allow filesystem UUID probes to fail (since not
37628 all filesystems support them).
37630 2008-05-30 Robert Millan <rmh@aybabtu.com>
37632 * fs/ext2.c (grub_ext2_uuid): Use `04x' instead of '02x' as
37633 grub_printf() flags, since we're printing in units of 2 bytes.
37635 2008-05-30 Robert Millan <rmh@aybabtu.com>
37637 * util/grub.d/00_header.in: Remove obsolete comment referencing
37638 convert_system_path_to_grub_path().
37639 * util/update-grub.in: Likewise.
37640 * util/update-grub_lib.in (is_path_readable_by_grub): New function.
37641 (convert_system_path_to_grub_path): Add a warning message explaining
37642 that this function is deprecated. Rely on is_path_readable_by_grub()
37643 for the readability checks.
37644 (font_path): Use is_path_readable_by_grub() for the readability
37645 check rather than convert_system_path_to_grub_path().
37647 2008-05-30 Robert Millan <rmh@aybabtu.com>
37649 * util/update-grub_lib.in (prepare_grub_to_access_device): New function.
37650 * util/update-grub.in: Set `GRUB_FONT_PATH' to the system path, without
37651 converting it first.
37652 * util/grub.d/00_header.in: Use prepare_grub_to_access_device() to setup
37653 grub.cfg for access to font file, and afterwards call it again to set
37656 2008-05-30 Robert Millan <rmh@aybabtu.com>
37658 * commands/search.c (options): Add --fs_uuid option.
37659 (search_fs_uuid): New function.
37660 (grub_cmd_search): Fix --set argument passing.
37661 Use search_fs_uuid() when requested via --fs_uuid.
37662 (grub_search_init): Update help message.
37663 * fs/ext2.c (struct grub_ext2_sblock): Rename `unique_id' to `uuid'
37664 and redeclare it as an array of 16-bit words.
37665 (grub_ext2_uuid): New function.
37666 (grub_ext2_fs): Reference grub_ext2_uuid() in `uuid' struct member.
37667 * include/grub/fs.h (struct grub_fs): Add `uuid' struct member.
37668 * util/update-grub.in (GRUB_DEVICE_UUID, GRUB_DEVICE_BOOT)
37669 (GRUB_DEVICE_BOOT_UUID): New variables.
37670 (GRUB_DRIVE. GRUB_DRIVE_BOOT. GRUB_DRIVE_BOOT_GRUB): Remove.
37671 * util/grub.d/00_header.in: Set root using `search --fs_uuid' command
37673 * util/grub.d/10_hurd.in: Avoid explicit use of root drive. Instead,
37674 just assume `root' variable has the right value.
37675 * util/grub.d/10_linux.in: Likewise.
37676 * util/grub-probe.c (probe): Probe for filesystem UUID when requested
37678 (main): Recognise `-t fs_uuid' argument.
37680 2008-05-30 Robert Millan <rmh@aybabtu.com>
37682 * util/biosdisk.c (map): Redefine structure to hold information
37683 about GRUB drive name.
37684 (get_drive): Reimplement without assuming (and verifying) BIOS-like
37686 (call_hook): Remove.
37687 (grub_util_biosdisk_iterate): Access drive names via `.drive' struct
37688 member. Assume drive has partitions.
37689 (grub_util_biosdisk_open): Access device names via `.device' struct
37691 (open_device): Likewise.
37692 (find_drive): Likewise.
37693 (read_device_map): Adjust map[] usage to match the new struct
37694 definition. Don't check for duplicates (still possible, but not cheap
37696 (grub_util_biosdisk_fini): Free malloced buffers referenced by map[].
37697 (make_device_name): Remove assumption of BIOS-like drive names.
37699 2008-05-30 Pavel Roskin <proski@gnu.org>
37701 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Remove, as
37702 compiling execute.c doesn't need grub_script.tab.h anymore.
37703 (normal/command.c_DEPENDENCIES): Likewise.
37704 (normal/function.c_DEPENDENCIES): Likewise.
37705 * conf/i386-ieee1275.rmk: Likewise.
37706 * conf/i386-linuxbios.rmk: Likewise.
37707 * conf/i386-pc.rmk: Likewise.
37708 * conf/powerpc-ieee1275.rmk: Likewise.
37709 * conf/sparc64-ieee1275.rmk: Likewise.
37711 2008-05-29 Pavel Roskin <proski@gnu.org>
37713 * disk/lvm.c (grub_lvm_scan_device): Check for the buffer end
37714 when scanning metadata for volume group name.
37716 * include/grub/script.h: Don't include grub_script.tab.h. It's
37717 a generated file, which may only be included from the files with
37718 DEPENDENCIES rules in the makefile. Don't use typedef YYSTYPE,
37719 use union YYSTYPE, as the later allows forward declaration.
37720 * normal/lexer.c: Don't use typedef YYSTYPE, use union YYSTYPE.
37722 2008-05-29 Robert Millan <rmh@aybabtu.com>
37724 * term/i386/pc/at_keyboard.c: Include `grub/machine/machine.h'.
37725 (OLPC_UP, OLPC_DOWN, OLPC_LEFT, OLPC_RIGHT): New macros.
37726 [GRUB_MACHINE_IEEE1275] (keyboard_map): Add OLPC scan codes
37727 (grub_console_checkkey): Add grub_dprintf() call to report unknown
37730 2008-05-29 Robert Millan <rmh@aybabtu.com>
37732 * term/i386/pc/at_keyboard.c (grub_console_checkkey): Add support for
37733 control key combinations.
37735 2008-05-29 Robert Millan <rmh@aybabtu.com>
37737 * util/powerpc/ieee1275/grub-install.in: Move from here ...
37738 * util/ieee1275/grub-install.in: ... to here.
37739 * powerpc-ieee1275.rmk (grub_install_SOURCES): Update location.
37740 * i386-ieee1275.rmk (sbin_SCRIPTS): New variable.
37741 (grub_install_SOURCES): Likewise.
37743 2008-05-29 Robert Millan <rmh@aybabtu.com>
37745 * fs/affs.c: Update copyright year.
37746 * fs/ext2.c: Likewise.
37747 * fs/fshelp.c: Likewise.
37748 * fs/hfsplus.c: Likewise.
37749 * fs/ntfs.c: Likewise.
37750 * fs/xfs.c: Likewise.
37751 * include/grub/fshelp.h: Likewise.
37752 * util/grub-mkdevicemap.c: Likewise.
37754 2008-05-28 Robert Millan <rmh@aybabtu.com>
37756 * util/update-grub.in: Allow chmod call to fail, since /boot/grub/
37757 might need to be fatfs to support some firmware implementations
37760 2008-05-28 Robert Millan <rmh@aybabtu.com>
37762 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle MMC
37764 * util/grub-mkdevicemap.c (get_mmc_disk_name)
37765 (make_device_map): Likewise.
37767 2008-05-20 Bean <bean123ch@gmail.com>
37769 * fs/fshelp.c (grub_fshelp_map_block): New function.
37770 (grub_fshelp_find_file): Use 64-bit type for pos and block address.
37771 Use `>>' and `&' operator to avoid 64-bit divide and modulo.
37773 * include/grub/fshelp.h (grub_fshelp_journal_type): New enum.
37774 (GRUB_FSHELP_JOURNAL_UNUSED_MAPPING): New macro.
37775 (grub_fshelp_journal): New structure.
37776 (grub_fshelp_map_block): New function prototype.
37777 (grub_fshelp_read_file): Use grub_disk_addr_t as block type.
37778 (grub_fshelp_map_block): Likewise.
37780 * fs/ext2.c (EXT3_FEATURE_COMPAT_HAS_JOURNAL): New macro.
37781 (EXT3_JOURNAL_MAGIC_NUMBER): Likewise.
37782 (EXT3_JOURNAL_DESCRIPTOR_BLOCK): Likewise.
37783 (EXT3_JOURNAL_COMMIT_BLOCK): Likewise.
37784 (EXT3_JOURNAL_SUPERBLOCK_V1): Likewise.
37785 (EXT3_JOURNAL_SUPERBLOCK_V2): Likewise.
37786 (EXT3_JOURNAL_REVOKE_BLOCK): Likewise.
37787 (EXT3_JOURNAL_FLAG_ESCAPE): Likewise.
37788 (EXT3_JOURNAL_FLAG_SAME_UUID): Likewise.
37789 (EXT3_JOURNAL_FLAG_DELETED): Likewise.
37790 (EXT3_JOURNAL_FLAG_LAST_TAG): Likewise.
37791 (grub_ext2_sblock): New members for journal support.
37792 (grub_ext3_journal_header): New structure.
37793 (grub_ext3_journal_revoke_header): Likewise.
37794 (grub_ext3_journal_block_tag): Likewise.
37795 (grub_ext3_journal_sblock): Likewise.
37796 (grub_fshelp_node): New members logfile and journal.
37797 (grub_ext2_read_block): Change block type to grub_disk_addr_t. Use
37798 grub_fshelp_map_block to get real block number.
37799 (grub_ext2_blockgroup): Use grub_fshelp_map_block to get real block
37801 (grub_ext2_read_inode): Likewise.
37802 (grub_ext3_get_journal): New function.
37803 (grub_read_inode): Initialize journal using grub_ext3_get_journal.
37804 (grub_ext2_close): Release memory used by journal.
37806 * fs/reiserfs.c (REISERFS_MAGIC_STRING): Changed to "ReIsEr".
37807 (REISERFS_MAGIC_DESC_BLOCK): New macro.
37808 (grub_reiserfs_transaction_header): Renamed to
37809 grub_reiserfs_description_block, replace field data with real_blocks.
37810 (grub_reiserfs_commit_block): New structure.
37811 (grub_reiserfs_data): New member journal.
37812 (grub_reiserfs_get_item): Use grub_fshelp_map_block to get real block
37814 (grub_reiserfs_read_symlink): Likewise.
37815 (grub_reiserfs_iterate_dir): Likewise.
37816 (grub_reiserfs_open): Likewise.
37817 (grub_reiserfs_read): Likewise.
37818 (grub_reiserfs_get_journal): New function.
37819 (grub_reiserfs_mount): Use "ReIsEr" as super block magic, as there are
37820 three varieties ReIsErFs, ReIsEr2Fs and ReIsEr3Fs. Initialize journal
37821 using grub_reiserfs_get_journal.
37822 (grub_reiserfs_close): Release memory used by journal.
37824 * fs/affs.c (grub_affs_read_block): Change block type to
37825 grub_disk_addr_t. Use grub_divmod64 to do 64-bit division.
37827 * fs/afs.c (grub_afs_read_block): Change block type to grub_disk_addr_t.
37829 * fs/hfsplus.c (grub_hfsplus_read_block): Likewise.
37831 * fs/ntfs.c (grub_ntfs_read_block): Likewise.
37833 * fs/udf.c (grub_udf_read_block): Change block type to
37834 grub_disk_addr_t. Use type cast to avoid warning.
37836 * fs/xfs.c (grub_xfs_read_block): Likewise.
37838 2008-05-16 Christian Franke <franke@computer.org>
37840 * commands/cat.c (grub_cmd_cat): Remove non-ESC keys from keyboard queue
37841 to ensure that break with ESC will always work.
37842 * commands/sleep.c (grub_interruptible_millisleep): Likewise.
37843 Remove ESC from keyboard queue.
37845 2008-05-16 Christian Franke <franke@computer.org>
37847 * util/biosdisk.c: [__CYGWIN__] Add includes.
37848 (grub_util_biosdisk_open): Use Linux code also for Cygwin.
37849 (get_os_disk): Move variable declarations to OS specific
37850 parts to avoid warning.
37851 [__GNU__] (get_os_disk): Fix /dev/sdXsN case.
37852 [__CYGWIN__] (get_os_disk): Add Cygwin /dev/sdXN device names.
37853 (grub_util_biosdisk_get_grub_dev): Use Linux code also for
37855 * util/getroot.c: [__CYGWIN__] Add includes.
37856 (strip_extra_slashes): Fix "/" case.
37857 [__CYGWIN__] (get_win32_path): New function.
37858 [__CYGWIN__] (grub_get_prefix): Add conversion to win32 path.
37859 [__CYGWIN__] (find_root_device): Disable.
37860 [__CYGWIN__] (get_bootsec_serial): New function.
37861 [__CYGWIN__] (find_cygwin_root_device): Likewise.
37862 [__linux__] (grub_guess_root_device): Add early returns to simplify
37864 [__CYGWIN__] (grub_guess_root_device): Call find_cygwin_root_device.
37865 [__linux__] (grub_util_get_dev_abstraction): Enable LVM and RAID
37866 check for Linux only.
37868 2008-05-15 Bean <bean123ch@gmail.com>
37870 * kern/i386/pc/startup.S (grub_console_getkey): Workaround for the
37871 keyboard hang problem in apple's intel mac.
37873 2008-05-09 Robert Millan <rmh@aybabtu.com>
37875 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle Virtio
37877 * util/grub-mkdevicemap.c (get_virtio_disk_name)
37878 (make_device_map): Likewise.
37879 Reported by Aurelien Jarno <aurel32@debian.org>
37881 2008-05-07 Ian Campbell <ijc@hellion.org.uk>
37883 * util/biosdisk.c (get_os_disk): Recognise xvd type disks.
37884 * util/grub-mkdevicemap.c (get_xvd_disk_name): New function.
37885 (make_device_map): Output entries for xvd type disks.
37887 2008-05-07 Robert Millan <rmh@aybabtu.com>
37889 * util/biosdisk.c (linux_find_partition, get_os_disk): Handle CCISS
37891 * util/grub-mkdevicemap.c (get_cciss_disk_name)
37892 (make_device_map): Likewise.
37893 Reported by Roland Dreier <rdreier@cisco.com>
37895 2008-05-07 Robert Millan <rmh@aybabtu.com>
37897 * disk/lvm.c (grub_lvm_scan_device): Detect errors in an additional
37898 grub_strstr() call. Correct a few mistakes in failure path handling.
37900 2008-05-06 Robert Millan <rmh@aybabtu.com>
37902 * util/update-grub_lib.in (make_system_path_relative_to_its_root):
37903 Do not print a trailing slash (therefore, the root directory is an
37905 (convert_system_path_to_grub_path): Do not remove trailing slash
37906 from make_system_path_relative_to_its_root() output.
37908 * util/i386/pc/grub-install.in: Add trailing slash to output from
37909 make_system_path_relative_to_its_root().
37911 2008-05-06 Robert Millan <rmh@aybabtu.com>
37913 * util/grub-fstest.c (grub_refresh): Call `fflush (stdout)'. This
37914 ensures that output lines aren't intermangled with those sent to
37915 stderr (via grub_util_info()).
37916 * util/grub-probe.c (grub_refresh): Likewise.
37917 * util/i386/pc/grub-setup.c (grub_refresh): Likewise.
37919 2008-05-05 Christian Franke <franke@computer.org>
37921 * util/grub-mkdevicemap.c (get_floppy_disk_name) [__CYGWIN__]:
37922 Add Cygwin device names.
37923 (get_ide_disk_name) [__CYGWIN__]: Likewise.
37924 (get_scsi_disk_name) [__CYGWIN__]: Likewise.
37925 (check_device): Return error instead of success on empty name.
37926 (make_device_map): Move label inside linux specific code to
37927 prevent compiler warning.
37929 2008-04-30 Robert Millan <rmh@aybabtu.com>
37931 Based on patch from Fabian Greffrath <greffrath@leat.rub.de>
37932 * util/grub.d/10_linux.in: Add ${GRUB_CMDLINE_LINUX_DEFAULT} to the
37934 * util/update-grub.in: Export GRUB_CMDLINE_LINUX_DEFAULT.
37936 2008-04-29 Robert Millan <rmh@aybabtu.com>
37938 * docs/grub.cfg: New file (example GRUB configuration).
37940 2008-04-26 Robert Millan <rmh@aybabtu.com>
37942 * DISTLIST: Sort (sort -u < DISTLIST | sponge DISTLIST). Add
37943 `loader/i386/ieee1275/linux.c', `loader/i386/ieee1275/linux_normal.c'
37944 and `disk/ieee1275/nand.c'.
37946 2008-04-25 Bean <bean123ch@gmail.com>
37948 * Makefile.in (RMKFILES): Add missing arch i386-ieee1275 and
37951 * commands/hexdump.c (grub_cmd_hexdump): Support dumping of device,
37952 change the buffer size to 4096 for cdrom device.
37954 * conf/i386-ieee1275.rmk (pkglib_MODULES): Add _linux.mod, linux.mod
37956 (_linux_mod_SOURCES): New variable.
37957 (_linux_mod_CFLAGS): Likewise.
37958 (_linux_mod_LDFLAGS): Likewise.
37959 (linux_mod_SOURCES): Likewise.
37960 (linux_mod_CFLAGS): Likewise.
37961 (linux_mod_LDFLAGS): Likewise.
37962 (nand_mod_SOURCES): Likewise.
37963 (nand_mod_CFLAGS): Likewise.
37964 (nand_mod_LDFLAGS): Likewise.
37966 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Return
37967 GRUB_ERR_UNKNOWN_DEVICE instead of GRUB_ERR_BAD_DEVICE if no device
37968 type property. (nand device in olpc don't have this property)
37970 * include/grub/disk.h (grub_disk_dev_id): New macro
37971 GRUB_DISK_DEVICE_NAND_ID.
37973 * include/grub/i386/ieee1275/loader.h (grub_rescue_cmd_linux): New
37974 function prototype.
37975 (grub_rescue_cmd_initrd): Likewise.
37977 * include/grub/i386/linux.h (GRUB_LINUX_OFW_SIGNATURE): New macro.
37978 (linux_kernel_params): Add new member ofw_signature, ofw_num_items,
37979 ofw_cif_handler and ofw_idt, adjust padding number.
37981 * include/grub/i386/pc/memory.h (grub_upper_mem): Export it if
37982 GRUB_MACHINE_IEEE1275 is defined.
37984 * include/grub/ieee1275/ieee1275.h (grub_available_iterate):
37985 Use NESTED_FUNC_ATTR attribute on the hook parameter.
37987 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Use NESTED_FUNC_ATTR
37988 on nested function heap_init.
37989 (grub_upper_mem): New variable for i386-ieee1275.
37990 (grub_get_extended_memory): New function for i386-ieee1275.
37991 (grub_machine_init): Call grub_get_extended_memory for i386-ieee1275.
37993 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Use
37994 NESTED_FUNC_ATTR on the hook parameter. Don't quit if no device type
37997 * loader/i386/ieee1275/linux.c: New file.
37999 * loader/i386/ieee1275/linux_normal.c: New file.
38001 * disk/ieee1275/nand.c: New file.
38003 2008-04-18 Thomas Schwinge <tschwinge@gnu.org>
38005 * util/i386/pc/grub-mkrescue.in (grub_mkimage): Don't overwrite correct
38007 * util/powerpc/ieee1275/grub-mkrescue.in (grub_mkimage): Likewise.
38009 2008-04-18 Robert Millan <rmh@aybabtu.com>
38011 Restructures early code path on ieee1275 to unify grub_main() as
38012 the first C function that is executed in every platform.
38014 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_init): New prototype.
38015 * kern/i386/ieee1275/startup.S (_start): Jump to grub_main() instead of
38017 * kern/powerpc/ieee1275/crt0.S (_start): Likewise.
38018 * kern/ieee1275/cmain.c (cmain): Rename to ...
38019 * kern/ieee1275/cmain.c (grub_ieee1275_init): ... this.
38020 * kern/ieee1275/init.c (grub_machine_init): Call grub_ieee1275_init()
38023 2008-04-18 Robert Millan <rmh@aybabtu.com>
38025 * util/update-grub.in: Fix syntax error when setting
38026 `GRUB_PRELOAD_MODULES'.
38027 Reported by Stephane Chazelas <stephane@artesyncp.com>
38029 2008-04-17 Lubomir Kundrak <lkundrak@redhat.com>
38031 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): take only .text
38032 section into account, newer toolchains generate unique build ids
38033 * configure.ac: remove the test for --build-id=none acceptance,
38034 we want build ids to be preserved
38035 * genmk.rb: add -R .note.gnu.build-id to objcopy, so build id
38036 far from other sections don't cause the raw binary images grow
38039 2008-04-15 Robert Millan <rmh@aybabtu.com>
38041 * disk/lvm.c: Update copyright year.
38042 * kern/misc.c: Likewise.
38044 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38046 * disk/lvm.c (grub_lvm_scan_device): Add forgotten failure path when
38047 there is no memory left for physical volume name.
38049 2008-04-14 Vesa Jaaskelainen <chaac@nic.fi>
38051 * disk/lvm.c (grub_lvm_scan_device): Fix logical volume's physical
38052 volume name mapping to support bigger than 9 character names properly.
38054 2008-04-13 Robert Millan <rmh@aybabtu.com>
38056 * disk/i386/pc/biosdisk.c (grub_biosdisk_rw): Fix CHS limit check,
38057 as per http://www.allensmith.net/Storage/HDDlimit/Int13h.htm
38059 2008-04-13 Christian Franke <franke@computer.org>
38061 * util/i386/pc/grub-mkrescue.in: Add --emulation=floppy
38062 to create a floppy emulation boot CD when non emulation mode
38064 Enable Joliet CD filesystem extension.
38066 2008-04-13 Robert Millan <rmh@aybabtu.com>
38068 * kern/misc.c (grub_strncat): Fix off-by-one error.
38069 Reported by Zhang Huan <zhanghuan@nrchpc.ac.cn>
38071 * kern/env.c (grub_env_context_close): Clear current context, not
38073 Patch from Zhang Huan <zhanghuan@nrchpc.ac.cn>
38075 * kern/misc.c (grub_strcat): Minor speed optimization (same code size).
38077 2008-04-13 Robert Millan <rmh@aybabtu.com>
38079 Improve robustness when handling LVM.
38081 * disk/lvm.c (grub_lvm_getvalue): Return 0 when `*p' is NULL
38082 (and leave `*p' unmodified).
38083 (grub_lvm_iterate): Don't assume `vg->lvs != NULL' when iterating
38085 (grub_lvm_memberlist): Don't assume `lv->vg->pvs != NULL' when
38086 iterating through it.
38087 (grub_lvm_open): Don't assume `vg->lvs != NULL' when iterating
38089 (grub_lvm_scan_device): Check the return value (and fail gracefully
38090 when due) on each grub_lvm_getvalue() or grub_strstr() call.
38091 Don't assume `vg->pvs != NULL' when iterating through it.
38093 2008-04-13 Robert Millan <rmh@aybabtu.com>
38095 * gendistlist.sh (EXTRA_DISTFILES): Add `genpartmaplist.sh'.
38096 * genmk.rb (partmap): New variable.
38097 (CLEANFILES, PARTMAPFILES): Add #{partmap}.
38098 (#{partmap}): New target rule.
38099 * genpartmaplist.sh: New file.
38100 * Makefile.in (pkglib_DATA): Add partmap.lst.
38101 (partmap.lst): New target rule.
38102 * util/i386/pc/grub-mkrescue.in: Generate grub.cfg that loads needed
38103 modules (including all partition maps), instead of preloading them.
38105 2007-04-13 Fabian Greffrath <fabian.greffrath@web.de>
38107 * util/grub.d/30_os-prober.in: New script. Use `os-prober' and
38108 `linux-boot-prober' (if installed) to detect other operating
38109 systems which are installed on the computer and add them to
38111 * conf/common.rmk: Build and install 30_os-prober.
38113 2008-04-12 Robert Millan <rmh@aybabtu.com>
38115 * kern/powerpc/ieee1275/init.c: Move from here ...
38116 * kern/ieee1275/init.c: ... to here. Update all users.
38118 * kern/powerpc/ieee1275/cmain.c: Move from here ...
38119 * kern/ieee1275/cmain.c: ... to here. Update all users.
38121 * kern/powerpc/ieee1275/openfw.c: Move from here ...
38122 * kern/ieee1275/openfw.c: ... to here. Update all users.
38124 * loader/powerpc/ieee1275/multiboot2.c: Move from here ...
38125 * loader/ieee1275/multiboot2.c: ... to here. Update all users.
38127 2008-04-10 Pavel Roskin <proski@gnu.org>
38129 * configure.ac: Always use "_cv_" in cache variables for
38130 compatibility with Autoconf 2.62.
38132 2008-04-07 Robert Millan <rmh@aybabtu.com>
38134 Revert grub/machine/init.h addition by Pavel (since it breaks on
38135 i386-ieee1275 and others):
38136 * util/i386/pc/misc.c: Remove grub/machine/init.h.
38137 * util/powerpc/ieee1275/misc.c: Likewise.
38139 2008-04-07 Robert Millan <rmh@aybabtu.com>
38141 * util/grub-probe.c (probe): Improve error message.
38143 2008-04-07 Robert Millan <rmh@aybabtu.com>
38145 * util/biosdisk.c (read_device_map): Skip devices that don't exist
38146 (this prevents the presence of a bogus entry from ruining the whole
38149 2008-04-06 Pavel Roskin <proski@gnu.org>
38151 * util/biosdisk.c: Include grub/util/biosdisk.h.
38152 * util/grub-fstest.c (execute_command): Make static.
38153 * util/grub-mkdevicemap.c (check_device): Likewise.
38154 * util/i386/pc/misc.c: Include grub/machine/init.h.
38155 * util/powerpc/ieee1275/misc.c: Likewise.
38156 * util/lvm.c: Include grub/util/lvm.h.
38157 * util/misc.c: Include grub/kernel.h, grub/misc.h and
38159 * util/raid.c: Include grub/util/raid.h.
38160 (grub_util_getdiskname): Make static.
38162 * util/grub-emu.c (main): Remove calls to grub_hostfs_init() and
38163 grub_hostfs_fini(), as they are called from grub_init_all() and
38164 grub_fini_all() respectively. This fixes an infinite loop in
38165 grub-fstest due to double registration of hostfs.
38166 Reported by Christian Franke <Christian.Franke@t-online.de>
38168 2008-04-05 Pavel Roskin <proski@gnu.org>
38170 * bus/pci.c (grub_pci_iterate): For multifunction devices, probe
38171 all 8 functions. Otherwise, probe function 0 only.
38173 2008-04-04 Pavel Roskin <proski@gnu.org>
38175 * commands/lspci.c (grub_lspci_iter): Print the bus number
38178 * commands/lspci.c (grub_pci_classes): Fix typos.
38179 (grub_lspci_iter): Don't print func twice. Print vendor ID
38180 before device ID, as it's normally done.
38182 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
38183 Fix signedness warnings.
38184 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate):
38186 * util/ieee1275/get_disk_name.c: Include config.h so that
38187 _GNU_SOURCE is defined and getline() is declared. Mark an
38188 unused argument as such. Fix a signedness warning.
38190 2008-04-02 Pavel Roskin <proski@gnu.org>
38192 * genkernsyms.sh.in: Use more robust assignments for CC and
38193 srcdir. Quote srcdir.
38194 * gensymlist.sh.in: Likewise. Assert at the compile time that
38195 the symbol table is not empty.
38197 * disk/raid.c (grub_raid_memberlist): Fix a signedness warning.
38198 * fs/cpio.c (grub_cpio_read): Likewise.
38200 2008-04-01 Pavel Roskin <proski@gnu.org>
38202 * disk/ata.c (grub_ata_open): Don't lose precision in disk->id.
38203 * disk/host.c (grub_host_open): Likewise.
38204 * disk/loopback.c (grub_loopback_open): Likewise.
38205 * disk/memdisk.c (grub_memdisk_open): Use a string pointer for
38206 disk->id as in disk/host.c, not a multi-character constant.
38208 * util/grub-fstest.c (cmd_cmp): Use fseeko(), not fseek(). The
38209 later is obsolete, potentially dangerous and sets a bad example.
38210 * util/i386/efi/grub-mkimage.c (make_header): Likewise.
38211 * util/misc.c (grub_util_get_image_size): Likewise.
38213 * disk/loopback.c (options): Improve help for "--partitions".
38215 * normal/arg.c (grub_arg_show_help): Fix spacing of the long
38216 options to align them with the short options, e.g. "echo -e".
38218 2008-03-31 Bean <bean123ch@gmail.com>
38220 * video/reader/png.c (grub_png_data): New member is_16bit and
38222 (grub_png_decode_image_header): Detect 16 bit png image.
38223 (grub_png_convert_image): New function to convert 16 bit image to 8 bit.
38224 (grub_png_decode_png): Call grub_png_convert_image for 16 bit image.
38225 (grub_video_reader_png): Release memory occupied by image_data.
38227 * fs/ntfs.c (find_attr): Handle non-resident attribute list larger than
38229 (grub_nfs_mount): Skip the test for sector per cluster.
38231 * include/grub/ntfs.h (MAX_SPC): Removed.
38233 2008-03-31 Bean <bean123ch@gmail.com>
38235 * conf/common.rmk (pkgdata_MODULES): Add afs.mod.
38236 (grub_probe_SOURCES): Add fs/afs.c.
38237 (grub_fstest_SOURCES): Likewise.
38238 (afs_mod_SOURCES): New variable.
38239 (afs_mod_CFLAGS): Likewise.
38240 (afs_mod_LDFLAGS): Likewise.
38242 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/afs.c.
38243 (grub_emu_SOURCES): Likewise.
38245 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38247 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38249 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38251 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38253 * fs/afs.c: New file.
38255 2008-03-30 Pavel Roskin <proski@gnu.org>
38257 * disk/host.c: Include grub/misc.h to fix a warning.
38258 * util/hostfs.c: Use GRUB_MOD_INIT and GRUB_MOD_FINI to fix
38259 warnings about implicit declarations.
38261 * fs/udf.c (grub_udf_mount): Fix warning about a shadowing a
38263 * include/grub/i386/loader.h: Change declaration of
38264 grub_linux_boot() to match what grub_loader_set() expects.
38265 * util/getroot.c (grub_guess_root_device): Return const char* to
38267 * util/grub-probe.c (probe): Fix a warning about uninitialized
38268 abstraction_name variable.
38269 * util/i386/get_disk_name.c (grub_util_get_disk_name): Mark
38270 second argument as unused to fix a warning.
38272 * loader/i386/pc/multiboot2.c (grub_mb2_arch_elf64_hook): Add
38273 missing grub_error() call.
38275 * util/update-grub_lib.in: Define datarootdir, since Autoconf
38276 2.60 and newer uses it to define datadir.
38278 * commands/sleep.c: Fix warning about implicit declaration.
38279 * disk/memdisk.c: Likewise.
38280 * loader/aout.c: Likewise.
38281 * loader/i386/bsd_normal.c: Likewise.
38282 * util/grub-probe.c: Likewise.
38284 * commands/i386/cpuid.c (has_longmode): Make static.
38285 * disk/i386/pc/biosdisk.c (cd_drive): Likewise.
38286 * include/grub/i386/bsd.h (bios_memmap_t): Remove, it's unused.
38288 * kern/i386/pc/startup.S (real_to_prot): Use %cs prefix to load
38289 GDT. This is more robust, as %ds can change.
38290 (grub_biosdisk_rw_int13_extensions): Don't clear %ds before
38291 calling real_to_prot().
38292 (grub_biosdisk_get_diskinfo_int13_extensions): Likewise.
38294 2008-03-28 Pavel Roskin <proski@gnu.org>
38296 * kern/i386/pc/startup.S: Assert that uncompressed functions
38297 don't spill beyond GRUB_KERNEL_MACHINE_RAW_SIZE.
38298 * kern/i386/pc/lzo1x.S: Remove all .align directives in the
38299 code, as they push parts of the code (error handlers) beyond
38300 GRUB_KERNEL_MACHINE_RAW_SIZE. Speed is not as important in this
38301 code as correctness and size.
38303 2008-03-28 Pavel Roskin <proski@gnu.org>
38305 * kern/i386/pc/startup.S
38306 (grub_biosdisk_get_diskinfo_int13_extensions): When converting
38307 data block address to the real mode, keep offset minimal. This
38308 works around a bug in AWARD BIOS on old Athlon systems, which
38309 makes CD detection hang.
38311 2008-03-26 Pavel Roskin <proski@gnu.org>
38313 * normal/color.c (grub_parse_color_name_pair): Make `name' a
38315 * include/grub/normal.h: Add grub_parse_color_name_pair()
38318 2008-03-24 Bean <bean123ch@gmail.com>
38320 * disk/i386/pc/biosdisk.c (cd_start): Removed.
38321 (cd_count): Removed.
38322 (cd_drive): New variable.
38323 (grub_biosdisk_get_drive): Don't check for (cdN) device.
38324 (grub_biosdisk_call_hook): Likewise.
38325 (grub_biosdisk_iterate): Change cdrom detection method.
38326 (grub_biosdisk_open): Replace cd_start with cd_drive.
38327 (GRUB_MOD_INIT): Use grub_biosdisk_get_cdinfo_int13_extension to
38328 detect cdrom device.
38330 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_MACHINE_CDROM_START):
38332 (GRUB_BIOSDISK_MACHINE_CDROM_END): Removed.
38333 (GRUB_BIOSDISK_CDTYPE_NO_EMUL): New macro.
38334 (GRUB_BIOSDISK_CDTYPE_1_2_M): Likewise.
38335 (GRUB_BIOSDISK_CDTYPE_1_44_M): Likewise.
38336 (GRUB_BIOSDISK_CDTYPE_2_88_M): Likewise.
38337 (GRUB_BIOSDISK_CDTYPE_HARDDISK): Likewise.
38338 (GRUB_BIOSDISK_CDTYPE_MASK): Likewise.
38339 (grub_biosdisk_cdrp): New structure.
38340 (grub_biosdisk_get_cdinfo_int13_extensions): New function.
38342 * include/grub/i386/pc/kernel.h (grub_boot_drive): Export this variable.
38344 * kern/i386/pc/init.c (make_install_device): Don't use (cdN) as root
38347 * kern/i386/pc/startup.S (grub_biosdisk_get_cdinfo_int13_extensions):
38350 2008-03-20 Robert Millan <rmh@aybabtu.com>
38352 Remove 2 TiB limit in ata.mod.
38353 * disk/ata.c (grub_ata_device): Promote `size' to grub_uint64_t.
38354 (grub_ata_dumpinfo): Print sector count with 0x%llx.
38355 (grub_ata_identify): Interpret `&info16[100]' as a pointer to
38356 grub_uint64_t instead of grub_uint32_t.
38358 2008-03-05 Bean <bean123ch@gmail.com>
38360 * loader/i386/pc/multiboot.c (grub_multiboot_get_bootdev): New function.
38361 (grub_multiboot): Set boot device.
38363 * boot/i386/pc/lnxboot.S (real_code_2): Set %dh to 0xFF.
38365 2008-03-02 Bean <bean123ch@gmail.com>
38367 * fs/reiserfs.c (grub_reiserfs_read_symlink): Add 0 at the end of
38370 2008-03-01 Yoshinori K. Okuji <okuji@enbug.org>
38372 * DISTLIST: Added docs/fdl.texi, docs/grub.texi, docs/mdate-sh and
38375 * docs/grub.texi: New file. Copied from GRUB Legacy, and slightly
38378 * docs/fdl.texi: New file.
38380 * docs/mdate-sh: New file. Copied from gnulib.
38381 * docs/texinfo.tex: Likewise.
38383 * config.guess: Updated from gnulib.
38384 * install-sh: Likewise.
38386 2008-02-28 Robert Millan <rmh@aybabtu.com>
38388 * conf/i386-linuxbios.rmk (pkglib_MODULES): Add aout.mod.
38389 (aout_mod_SOURCES): New variable.
38390 (aout_mod_CFLAGS): Likewise.
38391 (aout_mod_LDFLAGS): Likewise.
38393 * conf/i386-ieee1275.rmk: Likewise.
38395 2008-02-28 Robert Millan <rmh@aybabtu.com>
38397 * util/update-grub.in: Reorganise terminal validity check. Accept
38398 `ieee1275:console' (OLPC) and `*:gfxterm' as valid too.
38399 Based on suggestion by Franklin PIAT.
38401 2008-02-28 Fabian Greffrath <greffrath@leat.rub.de>
38403 * include/grub/util/getroot.h (grub_util_check_block_device): Export new
38405 * util/getroot.c (grub_util_check_block_device): New function that
38406 returns the given argument if it is a block device and returns NULL else.
38407 * util/grub-probe.c (argument_is_device): New variable.
38408 (probe): Promote device_name from a variable to an argument. Receive
38409 device_name from grub_util_check_block_device() if path is NULL and from
38410 grub_guess_root_device() else. Do not free() device_name anymore.
38411 (options): Introduce new parameter '-d, --device'.
38412 (main): Add description of the new parameter to the help screen.
38413 Rename path variable to argument. Set argument_is_device if the '-d'
38414 option is given. Pass argument to probe() depending on
38415 argument_is_device.
38417 2008-02-24 Bean <bean123ch@gmail.com>
38419 * fs/iso9660.c (GRUB_ISO9660_VOLDESC_BOOT): New macro.
38420 (GRUB_ISO9660_VOLDESC_PRIMARY): Likewise.
38421 (GRUB_ISO9660_VOLDESC_SUPP): Likewise.
38422 (GRUB_ISO9660_VOLDESC_PART): Likewise.
38423 (GRUB_ISO9660_VOLDESC_END): Likewise.
38424 (grub_iso9660_primary_voldesc): New member escape.
38425 (grub_iso9660_data): New member joliet.
38426 (grub_iso9660_convert_string): New function.
38427 (grub_iso9660_mount): Detect joliet extension.
38428 (grub_iso9660_iterate_dir): Convert filename when joliet is detected.
38429 (grub_iso9660_iso9660_label): Likewise.
38431 * conf/common.rmk (pkgdata_MODULES): Add udf.mod.
38432 (grub_setup_SOURCES): Add fs/udf.c.
38433 (grub_fstest_SOURCES): Likewise.
38434 (udf_mod_SOURCES): New variable.
38435 (udf_mod_CFLAGS): Likewise.
38436 (udf_mod_LDFLAGS): Likewise.
38438 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/udf.c.
38439 (grub_emu_SOURCES): Likewise.
38441 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
38443 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38445 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38447 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38449 * fs/udf.c: New file.
38451 2008-02-24 Robert Millan <rmh@aybabtu.com>
38453 * conf/i386-efi.rmk (normal/function.c_DEPENDENCIES)
38454 (normal/lexer.c_DEPENDENCIES): New variables.
38455 * conf/i386-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38456 (normal/lexer.c_DEPENDENCIES): Likewise.
38457 * conf/i386-linuxbios.rmk (normal/function.c_DEPENDENCIES)
38458 (normal/lexer.c_DEPENDENCIES): Likewise.
38459 * conf/i386-pc.rmk (normal/function.c_DEPENDENCIES)
38460 (normal/lexer.c_DEPENDENCIES): Likewise.
38461 * conf/powerpc-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38462 (normal/lexer.c_DEPENDENCIES): Likewise.
38463 * conf/sparc64-ieee1275.rmk (normal/function.c_DEPENDENCIES)
38464 (normal/lexer.c_DEPENDENCIES): Likewise.
38466 2008-02-23 Robert Millan <rmh@aybabtu.com>
38468 * partmap/gpt.c (grub_gpt_magic): Add `0x' qualifier to each member,
38469 since they were intended to be in hex. This didn't break previously
38470 because of a bug in gpt_partition_map_iterate() (see below).
38472 (gpt_partition_map_iterate): Replace `grub_memcmp' with `! grub_memcmp'
38473 when checking the validity of GPT header.
38474 Remove `partno', since it always provides the same information as `i'.
38476 2008-02-21 Yoshinori K. Okuji <okuji@enbug.org>
38478 * include/grub/efi/time.h: Fix a wrong comment.
38480 2008-02-19 Pavel Roskin <proski@gnu.org>
38482 * kern/rescue.c (grub_enter_rescue_mode): Improve initial
38485 2008-02-19 Bean <bean123ch@gmail.com>
38487 * conf/i386-pc.rmk (pkglib_MODULES): Add aout.mod _bsd.mod and bsd.mod.
38488 (aout_mod_SOURCES): New variable.
38489 (aout_mod_CFLAGS): Likewise.
38490 (aout_mod_LDFLAGS): Likewise.
38491 (_bsd_mod_SOURCES): New variable.
38492 (_bsd_mod_CFLAGS): Likewise.
38493 (_bsd_mod_LDFLAGS): Likewise.
38494 (bsd_mod_SOURCES): New variable.
38495 (bsd_mod_CFLAGS): Likewise.
38496 (bsd_mod_LDFLAGS): Likewise.
38498 * include/grub/aout.h: New file.
38500 * include/grub/i386/loader.h (grub_unix_real_boot): New function.
38502 * include/grub/i386/bsd.h: New file.
38504 * include/grub/i386/pc/init.h (grub_get_mmap_entry): Use EXPORT_FUNC
38507 * kern/elf.c (grub_elf32_load): Get the physical address after the hook
38508 function is called, so that it's possible to change it inside the hook.
38509 (grub_elf64_load): Likewise.
38510 (grub_elf_file): Don't close the file if elf header is not found.
38511 (grub_elf_close): Close the file if grub_elf_file fails (The new
38512 grub_elf_file won't close it).
38513 (grub_elf32_size): Use NESTED_FUNC_ATTR for nested function calcsize.
38514 (grub_elf64_size): Likewise.
38516 * kern/i386/loader.S (grub_unix_real_boot): New function.
38518 * loader/aout.c: New file.
38520 * loader/i386/bsd.c: New file.
38522 * loader/i386/bsd_normal.c: New file.
38524 * loader/i386/pc/multiboot.c (grub_multiboot): Handle a.out format.
38526 * loader/multiboot2.c (grub_multiboot2): Reset grub_errno so that it
38527 can test other formats.
38529 2008-02-19 Robert Millan <rmh@aybabtu.com>
38531 * partmap/gpt.c: Include `<grub/gpt_partition.h>'.
38532 (grub_gpt_partition_type_empty): Redefine with macro from
38533 `<grub/gpt_partition.h>'.
38534 (gpt_partition_map_iterate): Adjust partition type comparison.
38536 Export `entry' as partmap-specific `part.data' struct.
38537 (grub_gpt_header, grub_gpt_partentry): Move from here ...
38539 * include/grub/gpt_partition.h (grub_gpt_header)
38540 (grub_gpt_partentry): ... to here (new file).
38542 * util/i386/pc/grub-setup.c: Include `<grub/gpt_partition.h>'.
38544 (grub_gpt_partition_type_bios_boot): New const variable, defined
38545 with macro from `<grub/gpt_partition.h>'.
38547 (setup): Replace `first_start' with `embed_region', which keeps
38548 track of the embed region (and is partmap-agnostic).
38550 Replace find_first_partition_start() with find_usable_region(),
38551 which finds a usable region for embedding using partmap-specific
38552 knowledge (supports PC/MSDOS and GPT).
38554 Fix all assumptions that the embed region start at sector 1, using
38555 `embed_region.start' from now on. Similarly, use `embed_region.end'
38556 rather than `first_start' to calculate available size.
38558 In grub_util_info() message, replace "into after the MBR" with an
38559 indication of the specific sector our embed region starts at.
38561 2008-02-19 Robert Millan <rmh@aybabtu.com>
38563 * DISTLIST: Replace `commands/ieee1275/halt.c' and
38564 `commands/ieee1275/reboot.c' with `commands/halt.c' and
38565 `commands/reboot.c'.
38566 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38567 (halt_mod_SOURCES): Likewise.
38568 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES, reboot_mod_SOURCES)
38569 (halt_mod_SOURCES): Likewise.
38571 2008-02-17 Christian Franke <franke@computer.org>
38573 * commands/cat.c (grub_cmd_cat): Add break on GRUB_TERM_ESC key.
38575 2008-02-17 Robert Millan <rmh@aybabtu.com>
38577 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38578 set `first_start' to 0 for non-PC/MSDOS partition maps.
38580 2008-02-16 Robert Millan <rmh@aybabtu.com>
38582 * util/i386/pc/grub-setup.c (setup): In find_first_partition_start(),
38583 do not assume partition map is PC/MSDOS before performing checks that
38584 are specific to that layout.
38586 2008-02-13 Robert Millan <rmh@aybabtu.com>
38588 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Remove
38589 `commands/i386/pc/halt.c' and `commands/i386/pc/reboot.c'.
38590 * kern/i386/linuxbios/init.c (grub_halt, grub_reboot): Remove stubs.
38592 2008-02-13 Yoshinori K. Okuji <okuji@enbug.org>
38594 * configure.ac: Only a cosmetic change on the handling of
38595 -fno-stack-protector.
38597 2008-02-12 Alexandre Boeglin <alex@boeglin.org>
38599 * conf/i386-efi.rmk (grub_emu_SOURCES): Replace
38600 commands/i386/pc/halt.c and reboot.c by commands/halt.c and
38602 (grub_install_SOURCES): Add halt.mod and reboot.mod.
38603 (halt_mod_SOURCES): New variable.
38604 (halt_mod_CFLAGS): Likewise.
38605 (halt_mod_LDFLAGS): Likewise.
38606 (reboot_mod_SOURCES): Likewise.
38607 (reboot_mod_CFLAGS): Likewise.
38608 (reboot_mod_LDFLAGS): Likewise.
38610 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Replace
38611 commands/ieee1275/halt.c and reboot.c by commands/halt.c and
38613 (halt_mod_SOURCES): Likewise.
38614 (reboot_mod_SOURCES): Likewise.
38616 * conf/i386-pc.rmk (grub_emu_SOURCES): Replace
38617 commands/i386/pc/reboot.c by commands/reboot.c.
38618 (reboot_mod_SOURCES): Likewise.
38620 * commands/i386/pc/reboot.c: merge this file ...
38622 * commands/ieee1275/reboot.c: ... and this file ...
38624 * commands/reboot.c: ... to this file.
38625 Add some precompiler directive to include the correct header for
38628 * commands/ieee1275/halt.c: move this file ...
38630 * commands/halt.c: ... to here.
38631 Add some precompiler directive to include the correct header for
38634 * include/grub/efi/efi.h (grub_reboot): New function declaration.
38635 (grub_halt): Likewise.
38637 * kern/efi/efi.c (grub_reboot): New function.
38638 (grub_halt): Likewise.
38640 2008-02-12 Robert Millan <rmh@aybabtu.com>
38642 * util/getroot.c (grub_guess_root_device): Inspect /dev/evms before
38643 /dev (like it is done for /dev/mapper). This doesn't provide support
38644 for EVMS, but at least it is now easy to identify the problem when it
38647 2008-02-11 Robert Millan <rmh@aybabtu.com>
38649 * util/biosdisk.c (grub_util_biosdisk_open, linux_find_partition)
38650 (grub_util_biosdisk_get_grub_dev): Check open() exit status by
38651 comparing it with -1, not 0.
38653 2008-02-10 Robert Millan <rmh@aybabtu.com>
38655 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `disk/raid.c' and
38657 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
38658 * conf/i386-pc.rmk (grub_setup_SOURCES): Likewise.
38660 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Move `disk/raid.c' and
38661 `disk/lvm.c' to the end of the list.
38662 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
38663 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
38665 2008-02-10 Robert Millan <rmh@aybabtu.com>
38667 * kern/main.c (grub_load_normal_mode): Do not reset `grub_errno'. Call
38668 grub_print_error() instead. This will let user know why we're entering
38670 Based on suggestions from Sam Morris.
38672 2008-02-10 Alexandre Boeglin <alex@boeglin.org>
38674 * normal/arg.c (grub_arg_parse): If one of the args is "--", call add_arg()
38675 on remaining N args, instead of "--" arg N times.
38677 2008-02-09 Vesa Jaaskelainen <chaac@nic.fi>
38679 * font/manager.c (unknown_glyph): Added variable for unknown glyph.
38680 (fill_with_default_glyph): Changed to use unknown_glyph for fill
38681 pattern for unknown glyphs.
38683 2008-02-09 Robert Millan <rmh@aybabtu.com>
38685 * configure.ac: Probe for `help2man'.
38686 * Makefile.in (builddir): New variable.
38687 (HELP2MAN): Likewise. Set to `true' when @HELP2MAN@ doesn't provide it,
38688 or otherwise add a few flags/options to it.
38689 (install-local): For every executable utility or script that is
38690 installed, invoke $(HELP2MAN) to install a manpage based on --help
38693 * util/i386/pc/grub-install.in: Move down `update-grub_lib' sourcing, so
38694 that it doesn't prevent --help from working in build tree.
38696 * util/i386/pc/grub-mkrescue.in (usage): Replace `grub-devel@gnu.org'
38697 with `bug-grub@gnu.org'.
38698 * util/powerpc/ieee1275/grub-mkrescue.in (usage): Likewise.
38699 * util/update-grub.in (usage): New function.
38700 Implement proper argument check, with support for --help and --version
38701 (as well as existing -y).
38703 2008-02-09 Christian Franke <franke@computer.org>
38705 * commands/cat.c (grub_cmd_cat): Print '\r' as hex to
38706 avoid overwriting previous output.
38707 * kern/rescue.c (grub_rescue_cmd_cat): Likewise.
38709 2008-02-09 Robert Millan <rmh@aybabtu.com>
38711 * normal/menu.c (run_menu): If timeout is set to zero, don't bother
38714 2008-02-09 Robert Millan <rmh@aybabtu.com>
38716 * commands/sleep.c: New file.
38717 * conf/common.rmk (pkglib_MODULES): Add `commands/sleep.c'.
38718 (sleep_mod_SOURCES): New variable.
38719 (sleep_mod_CFLAGS): Likewise.
38720 (sleep_mod_LDFLAGS): Likewise.
38722 2008-02-09 Robert Millan <rmh@aybabtu.com>
38724 * disk/raid.c (grub_raid_scan_device): Add a pair of sanity checks for
38725 situations in which we can deduce the RAID size and the superblock
38728 2008-02-09 Robert Millan <rmh@aybabtu.com>
38730 * disk/lvm.c [GRUB_UTIL] (grub_lvm_memberlist): New function. Construct
38731 and return a grub_diskmemberlist_t composed of LVM physical volumes.
38732 [GRUB_UTIL] (grub_lvm_dev): Add `memberlist' member.
38734 * disk/raid.c [GRUB_UTIL] (grub_raid_memberlist): New function. Construct
38735 and return a grub_diskmemberlist_t composed of physical array members.
38736 [GRUB_UTIL] (grub_raid_dev): Add `memberlist' member.
38738 * include/grub/disk.h [GRUB_UTIL] (grub_disk_memberlist): New struct
38740 [GRUB_UTIL] (struct grub_disk_dev): Add `memberlist' function pointer.
38741 [GRUB_UTIL] (struct grub_disk_memberlist): New struct declaration.
38742 [GRUB_UTIL] (grub_disk_memberlist_t): New typedef.
38744 * util/grub-probe.c (probe): Move partmap probing code from here ...
38745 (probe_partmap): ... to here.
38746 (probe): Use probe_partmap() once for the disk we're probing, and
38747 additionally, when such disk contains a memberlist() struct member,
38748 once for each disk that is contained in the structure returned by
38751 2008-02-09 Robert Millan <rmh@aybabtu.com>
38753 * util/grub-probe.c (main): When `verbosity > 1', set `debug'
38754 environment variable to 'all' in order to obtain debug output from
38756 * util/i386/pc/grub-setup.c (main): Likewise.
38758 2008-02-08 Robert Millan <rmh@aybabtu.com>
38760 * disk/raid.c (grub_raid_scan_device): Check for
38761 `array->device[sb.this_disk.number]' rather than for
38762 `array->device[sb.this_disk.number]->name', since the latter is not
38763 guaranteed to be accessible.
38765 2008-02-08 Robert Millan <rmh@aybabtu.com>
38767 * disk/raid.c: Update copyright.
38768 * fs/cpio.c: Likewise.
38769 * include/grub/raid.h: Likewise.
38770 * loader/i386/pc/multiboot.c: Likewise.
38771 * util/hostfs.c: Likewise.
38773 2008-02-08 Robert Millan <rmh@aybabtu.com>
38775 * include/grub/raid.h (struct grub_raid_array): Change type of `device'
38776 to a grub_disk_t array.
38777 * disk/raid.c (grub_raid_read): Replace `device[x].disk' accesses with
38779 (grub_raid_scan_device): Replace `device[x].name' accesses with
38780 `device[x]->name'. Simplify initialization of `array->device[x]'.
38782 2008-02-08 Robert Millan <rmh@aybabtu.com>
38784 * disk/raid.c (grub_raid_open, grub_raid_scan_device): Add a few
38785 grub_dprintf() calls.
38786 * kern/disk.c (grub_disk_read): Include grub_errmsg in out of range
38789 2008-02-07 Christian Franke <franke@computer.org>
38791 * util/hostfs.c (grub_hostfs_open): Use fseeko and ftello
38792 instead of fseek and ftell to support large files.
38793 (grub_hostfs_read): Likewise.
38795 2008-02-07 Robert Millan <rmh@aybabtu.com>
38797 Patch from Jeroen Dekkers.
38798 * disk/raid.c (grub_raid_scan_device): Reset `grub_errno' on disk
38799 failure, since successfully reading all array members might not be
38802 2008-02-06 Robert Millan <rmh@aybabtu.com>
38804 * util/grub-probe.c (probe): Simplify partmap probing (with the
38805 assumption that the first word up to the underscore equals to
38808 2008-02-06 Christian Franke <franke@computer.org>
38810 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_NONE
38811 (and set *ofs = 0) instead of GRUB_ERR_FILE_NOT_FOUND on
38812 last block of a cpio or tar stream.
38813 Check for "TRAILER!!!" instead of any empty data
38814 block to detect last block of a cpio stream.
38815 (grub_cpio_dir): Fix constness of variable np.
38816 (grub_cpio_open): Return GRUB_ERR_FILE_NOT_FOUND if
38817 cpio or tar trailer is detected. This fixes a crash
38818 on open of a non existing file.
38820 2008-02-05 Bean <bean123ch@gmail.com>
38822 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Get physical
38824 (grub_multiboot_load_elf64): Likewise.
38825 (grub_multiboot): Initialize mbi structure.
38827 * util/grub-fstest.c: Don't include unused header file script.h.
38829 * conf/common.rmk (grub-fstest.c_DEPENDENCIES): Move to the beginning
38831 (grub_fstest_SOURCES): Likewise.
38833 2008-02-05 Robert Millan <rmh@aybabtu.com>
38835 * include/grub/term.h (GRUB_TERM_LEFT, GRUB_TERM_RIGHT)
38836 (GRUB_TERM_UP, GRUB_TERM_DOWN, GRUB_TERM_HOME, GRUB_TERM_END)
38837 (GRUB_TERM_DC, GRUB_TERM_PPAGE, GRUB_TERM_NPAGE, GRUB_TERM_ESC)
38838 (GRUB_TERM_TAB, GRUB_TERM_BACKSPACE): New macros.
38840 * kern/i386/pc/startup.S: Include `<grub/term.h>'.
38841 (translation_table): Replace hardcoded values with macros
38842 provided by `<grub/term.h>'.
38844 * term/i386/pc/at_keyboard.c: Include `<grub/term.h>'.
38845 (keyboard_map): Correct/add a few values, with macros provided
38846 by `<grub/term.h>'.
38847 (keyboard_map_shift): Zero values that don't differ from their
38848 `keyboard_map' equivalents.
38849 (grub_console_checkkey): Optimize KEYBOARD_STATUS_CAPS_LOCK toggling.
38850 Discard the second scan code that is always sent by Caps lock.
38851 Only use `keyboard_map_shift' when it provides a non-zero value,
38852 otherwise fallback to `keyboard_map'.
38854 2008-02-04 Bean <bean123ch@gmail.com>
38856 * Makefile.in (enable_grub_fstest): New variable.
38858 * conf/common.rmk (grub_fstest_init.lst): New rule.
38859 (grub_fstest_init.h): Likewise.
38860 (grub_fstest_init.c): Likewise.
38861 (util/grub-fstest.c_DEPENDENCIES): New variable.
38862 (grub_fstest_SOURCES): Likewise.
38864 * configure.ac (enable_grub_fstest): Check for --enable-grub-fstest.
38866 * util/grub-fstest.c: New file.
38868 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38870 Make grub-setup handle a separate root device.
38872 * util/i386/pc/grub-setup.c (setup): Always open the root device,
38873 so that the root device can be compared with the destination
38875 When embedding the core image, if the root and destination devices
38876 are different, set ROOT_DRIVE to ROOT_DEV->DISK->ID. Otherwise, to
38878 When not embedding, set ROOT_DRIVE to 0xFF.
38880 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38882 Add support for having a grub directory in a different drive. This
38883 is still only the data handling part.
38885 * kern/i386/pc/startup.S (multiboot_trampoline): Set %dh to 0xFF.
38886 (codestart): Save %dh in GRUB_ROOT_DRIVE.
38887 (grub_root_drive): New variable.
38889 * kern/i386/pc/init.c (make_install_device): Use GRUB_ROOT_DRIVE
38890 instead of GRUB_BOOT_DRIVE to construct a device name. Set
38891 GRUB_ROOT_DRIVE to GRUB_BOOT_DRIVE if it is 0xFF, otherwise use it
38894 * include/grub/i386/pc/kernel.h (grub_root_drive): New prototype.
38896 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_ROOT_DRIVE): New
38898 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Set to 0x4f.
38900 * boot/i386/pc/pxeboot.S (_start): Set %dh to 0xFF. For now, this
38901 is bogus, because PXE booting does not specify any drive
38904 * boot/i386/pc/lnxboot.S (reg_edx): Set the second byte to 0xFF. I
38905 am not sure if this is really correct.
38907 * boot/i386/pc/cdboot.S: Set %dh to 0xFF, because the root drive
38908 is always identical to the boot drive when booting from a CD.
38910 * boot/i386/pc/boot.S (MOV_MEM_TO_AL): Removed. Not needed any
38912 (root_drive): New variable.
38913 (real_start): Unconditionally set %dh to ROOT_DRIVE.
38914 (setup_sectors): Push %dx right after popping it, because %dh will
38916 (copy_buffer): Restore %dx.
38918 2008-02-03 Robert Millan <rmh@aybabtu.com>
38920 * util/i386/pc/grub-mkrescue.in: Rewrite most of image generation to
38921 use `cdboot.img' for cdrom images.
38923 2008-02-03 Robert Millan <rmh@aybabtu.com>
38925 * util/grub.d/00_header.in: Issue scripting commands for GRUB to
38926 only setup gfxterm when `font' command has succeeded.
38928 2008-02-03 Robert Millan <rmh@aybabtu.com>
38930 * loader/multiboot_loader.c [GRUB_MACHINE_LINUXBIOS]
38931 (grub_rescue_cmd_multiboot_loader)
38932 (grub_rescue_cmd_module_loader): Enable multiboot1 calls.
38934 2008-02-03 Pavel Roskin <proski@gnu.org>
38936 * kern/i386/pc/startup.S (grub_chainloader_real_boot): Pop
38937 %edx and %esi from stack only after grub_gate_a20() is called.
38938 grub_gate_a20() clobbers %edx.
38940 2008-02-03 Yoshinori K. Okuji <okuji@enbug.org>
38942 * configure.ac (AC_INIT): Bumped to 1.96.
38944 * DISTLIST: Added boot/i386/pc/cdboot.S, bus/pci.c,
38945 commands/lspci.c,disk/memdisk.c, include/grub/pci.h,
38946 include/grub/i386/pc/pci.h, video/readers/jpeg.c, and
38947 video/readers/png.c.
38949 2008-02-03 Bean <bean123ch@gmail.com>
38951 * conf/i386-pc.rmk (pkglib_IMAGES): Add cdboot.img.
38952 (cdboot_img_SOURCES): New variable.
38953 (cdboot_img_ASFLAGS): New variable.
38954 (cdboot_img_LDFLAGS): New variable.
38956 * boot/i386/pc/cdboot.S: New file.
38958 * disk/i386/pc/biosdisk.c (cd_start): New variable.
38959 (cd_count): Likewise.
38960 (grub_biosdisk_get_drive): Add support for cd device.
38961 (grub_biosdisk_call_hook): Likewise.
38962 (grub_biosdisk_iterate): Likewise.
38963 (grub_biosdisk_open): Likewise.
38964 (GRUB_BIOSDISK_CDROM_RETRY_COUNT): New macro.
38965 (grub_biosdisk_rw): Support reading from cd device.
38966 (GRUB_MOD_INIT): Iterate cd devices.
38968 * include/grub/i386/pc/biosdisk.h (GRUB_BIOSDISK_FLAG_CDROM): New macro.
38969 (GRUB_BIOSDISK_MACHINE_CDROM_START): Likewise.
38970 (GRUB_BIOSDISK_MACHINE_CDROM_END): Likewise.
38972 * kern/i386/pc/init.c (make_install_device): Check for cd device.
38974 2008-02-02 Robert Millan <rmh@aybabtu.com>
38976 * commands/read.c: New file.
38977 * conf/common.rmk (pkglib_MODULES): Add `commands/read.c'.
38978 (read_mod_SOURCES): New variable.
38979 (read_mod_CFLAGS): Likewise.
38980 (read_mod_LDFLAGS): Likewise.
38982 2008-02-02 Robert Millan <rmh@aybabtu.com>
38984 * normal/main.c (grub_normal_execute): Check for `menu->size' when
38985 determining whether menu has to be displayed.
38987 2008-02-02 Marco Gerards <marco@gnu.org>
38989 * bus/pci.c: New file.
38991 * include/grub/pci.h: Likewise.
38993 * include/grub/i386/pc/pci.h: Likewise.
38995 * commands/lspci.c: Likewise.
38997 * conf/i386-pc.rmk (pkglib_MODULES): Add `pci.mod' and
38999 (pci_mod_SOURCES): New variable.
39000 (pci_mod_CFLAGS): Likewise.
39001 (pci_mod_LDFLAGS): Likewise.
39002 (lspci_mod_SOURCES): Likewise.
39003 (lspci_mod_CFLAGS): Likewise.
39004 (lspci_mod_LDFLAGS): Likewise.
39006 2008-02-02 Bean <bean123ch@gmail.com>
39008 * fs/ufs.c (INODE_BLKSZ): Fix incorrect value.
39009 (grub_ufs_get_file_block): Fix indirect block calculation problem.
39011 * fs/xfs.c (grub_xfs_sblock): New member log2_dirblk.
39012 (grub_xfs_btree_node): New structure.
39013 (grub_xfs_btree_root): New structure.
39014 (grub_xfs_inode): New members nblocks, extsize, nextents and btree.
39015 (GRUB_XFS_EXTENT_OFFSET): Use exts instead of inode->data.extents.
39016 (GRUB_XFS_EXTENT_BLOCK): Likewise.
39017 (GRUB_XFS_EXTENT_SIZE): Likewise.
39018 (grub_xfs_read_block): Support btree format type.
39019 (grub_xfs_iterate_dir): Use NESTED_FUNC_ATTR in call_hook.
39020 Use directory block as basic unit.
39022 * fs/fshelp.c (grub_fshelp_read_file): Bug fix for sparse block.
39024 * aclocal.m4 (grub_i386_CHECK_REGPARM_BUG): Define NESTED_FUNC_ATTR as
39025 __attribute__ ((__regparm__ (1))).
39027 2008-02-01 Robert Millan <rmh@aybabtu.com>
39029 Correct a mistake in previous commit.
39031 * conf/i386-pc.rmk (normal/execute.c_DEPENDENCIES): Move to the
39033 (normal/command.c_DEPENDENCIES): New variable.
39035 2008-02-01 Robert Millan <rmh@aybabtu.com>
39037 * conf/i386-efi.rmk (normal/execute.c_DEPENDENCIES): Move to the
39039 (normal/command.c_DEPENDENCIES): New variable.
39040 (grub-emu_DEPENDENCIES, normal_mod_DEPENDENCIES): Remove variables.
39041 * conf/i386-ieee1275.rmk: Likewise.
39042 * conf/i386-linuxbios.rmk: Likewise.
39043 * conf/i386-pc.rmk: Likewise.
39044 * conf/sparc64-ieee1275.rmk: Likewise.
39045 * conf/powerpc-ieee1275.rmk: Likewise.
39046 (grub_emu_SOURCES): Add `fs/fshelp.c'.
39048 * genmk.rb: Add `$(#{src}_DEPENDENCIES)' in targets that require it.
39050 2008-02-01 Robert Millan <rmh@aybabtu.com>
39052 * kern/disk.c (grub_disk_read, grub_disk_write): Add grub_dprintf()
39053 call at beginning of function.
39055 2008-01-31 Pavel Roskin <proski@gnu.org>
39057 * util/powerpc/ieee1275/grub-mkrescue.in: New file.
39058 * conf/powerpc-ieee1275.rmk (bin_SCRIPTS): New variable.
39059 (grub_mkrescue_SOURCES): Likewise.
39060 * DISTLIST: Add util/powerpc/ieee1275/grub-mkrescue.in.
39062 2008-01-30 Robert Millan <rmh@aybabtu.com>
39064 * conf/i386-pc.rmk (sbin_UTILITIES): Remove `grub-probe'.
39065 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Moved from here ...
39066 * conf/common.rmk (util/grub-probe.c_DEPENDENCIES)
39067 (grub_probe_SOURCES): ... to here.
39069 * conf/i386-efi.rmk (sbin_UTILITIES): Remove `grub-probe'.
39070 (util/grub-probe.c_DEPENDENCIES, grub_probe_SOURCES): Remove.
39071 * conf/i386-ieee1275.rmk: Likewise.
39072 * conf/i386-linuxbios.rmk: Likewise.
39073 * conf/powerpc-ieee1275.rmk: Likewise.
39075 2008-01-30 Tristan Gingold <gingold@free.fr>
39077 * kern/rescue.c: Silently accept empty lines.
39079 2008-01-29 Bean <bean123ch@gmail.com>
39081 * boot/i386/pc/lnxboot.S (data_start): Code cleanup.
39082 (real_code_2): Code cleanup and change comment style.
39083 (move_memory): Avoid using 32-bit address mode.
39085 2008-01-29 Bean <bean123ch@gmail.com>
39087 * conf/i386-pc.rmk (pkglib_MODULES): Add `png.mod'.
39088 (png_mod_SOURCES): New variable.
39089 (png_mod_CFLAGS): Likewise.
39090 (png_mod_LDFLAGS): Likewise.
39092 * video/readers/png.c: New file.
39094 2008-01-28 Robert Millan <rmh@aybabtu.com>
39096 * include/grub/i386/linuxbios/kernel.h (GRUB_MOD_GAP): New macro.
39097 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Remove
39098 `ifndef GRUB_MOD_GAP' hack.
39099 * util/elf/grub-mkimage.c (add_segments): Likewise.
39101 2008-01-27 Robert Millan <rmh@aybabtu.com>
39103 * kern/powerpc/ieee1275/init.c (grub_arch_modules_addr): Skip
39104 `GRUB_MOD_GAP' for platforms in which it's not defined.
39105 * util/elf/grub-mkimage.c (add_segments): Likewise.
39107 2008-01-27 Robert Millan <rmh@aybabtu.com>
39109 Get grub-emu to build again (including parallel builds).
39111 * conf/i386-pc.rmk (util/grub-emu.c_DEPENDENCIES): Remove variable.
39113 (util/grub-emu.c_DEPENDENCIES): ... this, ...
39114 (normal/execute.c_DEPENDENCIES): ... this, ...
39115 (grub-emu_DEPENDENCIES): ... and this.
39117 * conf/i386-efi.rmk: Likewise.
39118 * conf/i386-linuxbios.rmk: Likewise.
39119 * conf/i386-ieee1275.rmk: Likewise.
39120 * conf/powerpc-ieee1275.rmk: Likewise.
39121 (grub_emu_SOURCES): Remove duplicated `kern/file.c'.
39123 2008-01-27 Robert Millan <rmh@aybabtu.com>
39125 * NEWS: Add a few items.
39127 2008-01-27 Robert Millan <rmh@aybabtu.com>
39129 Fix parallel builds with grub-emu. Based on earlier commit for
39130 grub-probe and grub-setup.
39132 * conf/i386-pc.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39133 (util/grub-emu.c_DEPENDENCIES): ... this.
39134 * conf/i386-efi.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39135 (util/grub-emu.c_DEPENDENCIES): ... this.
39136 * conf/i386-linuxbios.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39137 (util/grub-emu.c_DEPENDENCIES): ... this.
39138 * conf/i386-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39139 (util/grub-emu.c_DEPENDENCIES): ... this.
39140 * conf/powerpc-ieee1275.rmk (grub-emu_DEPENDENCIES): Renamed to ...
39141 (util/grub-emu.c_DEPENDENCIES): ... this.
39143 2008-01-27 Pavel Roskin <proski@gnu.org>
39145 * include/grub/powerpc/ieee1275/kernel.h: Introduce GRUB_MOD_GAP
39146 to create a gap between _end and the modules added to the image
39147 with grub-mkrescue. That fixes "CLAIM failed" on PowerMAC.
39148 * kern/powerpc/ieee1275/init.c: Use GRUB_MOD_GAP.
39149 * util/elf/grub-mkimage.c (add_segments): Likewise.
39151 2008-01-26 Pavel Roskin <proski@gnu.org>
39153 * kern/dl.c (grub_dl_load): Don't abort if prefix is not set,
39154 just return an error.
39156 2008-01-26 Bean <bean123ch@gmail.com>
39158 * fs/reiserfs.c (grub_fshelp_node): New member next_offset.
39159 (grub_reiserfs_get_item): Save offset of the next item.
39160 (grub_reiserfs_iterate_dir): Use next_offset to find next item.
39162 2008-01-25 Robert Millan <rmh@aybabtu.com>
39164 * conf/i386-pc.rmk (grub_setup_SOURCES, grub_emu_SOURCES): Regroup to
39165 make all filesystem sources appear together (possibly fixing omissions
39167 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39168 * conf/i386-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39169 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39170 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39172 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise. Additionally,
39174 * conf/i386-efi.rmk (grub_probe_SOURCES): Likewise.
39175 * conf/i386-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39176 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Likewise.
39177 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Likewise.
39179 * util/grub-probe.c: Include `<grub/file.h>' and `<sys/stat.h>'.
39180 (probe): Add a sanity check to make sure of our ability to read
39181 requested files when probing for filesystem type.
39183 * genmk.rb: Update copyright year (2007).
39185 * include/grub/fs.h (grub_fat_init, grub_fat_fini, grub_ext2_init)
39186 (grub_ext2_fini, grub_ufs_init, grub_ufs_fini, grub_minix_init)
39187 (grub_minix_fini, grub_hfs_init, grub_hfs_fini, grub_jfs_init)
39188 (grub_jfs_fini, grub_xfs_init, grub_xfs_fini, grub_affs_init)
39189 (grub_affs_fini, grub_sfs_init, grub_sfs_fini, grub_iso9660_init)
39190 : Remove function prototypes.
39192 2008-01-25 Robert Millan <rmh@aybabtu.com>
39194 Revert my previous commits (based on wrong assumption of how grub_errno
39197 * kern/disk.c (grub_disk_open): Stop resetting grub_errno.
39198 * kern/file.c (grub_file_open): Likewise.
39200 2008-01-24 Pavel Roskin <proski@gnu.org>
39202 * include/grub/ieee1275/ieee1275.h: Introduce flag for firmwares
39203 that hang if GRUB tries to setup colors.
39204 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Don't set
39205 colors for firmwares that don't support it.
39206 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag):
39207 Recognize Open Hack'Ware, set flags to work around its
39210 2008-01-24 Robert Millan <rmh@aybabtu.com>
39212 * kern/file.c (grub_file_open): Do not account previous failures of
39213 unrelated functions when grub_errno is checked for.
39214 Reported by Oleg Strikov.
39216 2008-01-24 Bean <bean123ch@gmail.com>
39218 * fs/ufs.c (GRUB_UFS_VOLNAME_LEN): New macro.
39219 (grub_ufs_sblock): New member volume name.
39220 (grub_ufs_find_file): Fix string copy bug.
39221 (grub_ufs_label): Implement this function properly.
39223 * fs/hfs.c (grub_hfs_cnid_type): New enum.
39224 (grub_hfs_iterate_records): Use the correct file number for extents
39225 and catalog file. Fix problem in next index calculation.
39226 (grub_hfs_find_node): Replace recursive function call with loop.
39227 (grub_hfs_iterate_dir): Replace recursive function call with loop.
39229 2008-01-23 Robert Millan <rmh@aybabtu.com>
39231 * include/grub/i386/ieee1275/loader.h: Include `<grub/types.h>',
39232 `<grub/symbol.h>' and `<grub/multiboot.h>'.
39233 (grub_multiboot2_real_boot): New function prototype.
39235 * include/grub/i386/pc/memory.h: Include `<grub/machine/machine.h>'.
39236 [!GRUB_MACHINE_IEEE1275] (grub_lower_mem, grub_upper_mem): Disable.
39238 * kern/i386/ieee1275/init.c (grub_os_area_addr)
39239 (grub_os_area_size, grub_lower_mem, grub_upper_mem): Remove variables.
39241 2008-01-23 Robert Millan <rmh@aybabtu.com>
39243 * kern/mm.c (grub_mm_init_region): Replace grub_dprintf() call with
39244 #ifdef'ed out grub_printf().
39246 2008-01-23 Robert Millan <rmh@aybabtu.com>
39248 * term/i386/pc/at_keyboard.c (grub_keyboard_isr): #ifdef out
39249 grub_dprintf calls, since they make "debug=all" mode unusable.
39250 (grub_console_checkkey): Likewise.
39252 2008-01-23 Robert Millan <rmh@aybabtu.com>
39254 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add
39255 `term/i386/pc/at_keyboard.c'.
39256 (pkglib_MODULES): Add `serial.mod'.
39257 (serial_mod_SOURCES): New variable.
39258 (serial_mod_CFLAGS): Likewise.
39259 (serial_mod_LDFLAGS): Likewise.
39261 * include/grub/i386/ieee1275/console.h: Add `<grub/symbol.h>'. Remove
39262 `<grub/powerpc/ieee1275/console.h>'.
39263 (grub_keyboard_controller_init): New function prototype.
39264 (grub_console_checkkey): Likewise.
39265 (grub_console_getkey): Likewise.
39267 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize AT
39270 * term/ieee1275/ofconsole.c (grub_ofconsole_term): On i386, use
39271 grub_ofconsole_checkkey() and grub_ofconsole_getkey() for input.
39273 2008-01-23 Robert Millan <rmh@aybabtu.com>
39275 * kern/i386/pc/init.c (make_install_device): When memdisk image is
39276 present, "(memdisk)/boot/grub" becomes the default prefix.
39278 * util/i386/pc/grub-mkrescue.in: Switch to a minimal core.img plus
39279 a memdisk tarball with all the modules. Add --overlay=DIR option that
39280 allows users to overlay additional files into the image.
39282 2008-01-23 Robert Millan <rmh@aybabtu.com>
39284 * conf/i386-ieee1275.rmk (kernel_elf_SOURCES): Add `machine/loader.h'
39285 and `machine/memory.h'.
39286 (pkglib_MODULES): Add `multiboot.mod' and `_multiboot.mod'.
39287 (_multiboot_mod_SOURCES): New variable.
39288 (_multiboot_mod_CFLAGS): Likewise.
39289 (_multiboot_mod_LDFLAGS): Likewise.
39290 (multiboot_mod_SOURCES): Likewise.
39291 (multiboot_mod_CFLAGS): Likewise.
39292 (multiboot_mod_LDFLAGS): Likewise.
39294 * include/grub/i386/ieee1275/loader.h: New file.
39296 * include/grub/i386/ieee1275/machine.h: Likewise.
39298 * include/grub/i386/ieee1275/memory.h: Likewise.
39300 * include/grub/i386/pc/init.h (grub_os_area_addr): Remove (redundant)
39301 variable declaration.
39302 (grub_os_area_size): Likewise.
39304 * kern/i386/ieee1275/init.c (grub_os_area_addr, grub_os_area_size)
39305 (grub_lower_mem, grub_upper_mem): New variables.
39306 (grub_stop_floppy): New function (just to make
39307 grub_multiboot2_real_boot() happy).
39309 * kern/i386/ieee1275/startup.S: Include `<grub/machine/memory.h>',
39310 `<grub/cpu/linux.h>', `<multiboot.h>' and `<multiboot2.h>'.
39311 (grub_stop): New function.
39312 Include `"../realmode.S"' and `"../loader.S"'.
39314 * loader/multiboot_loader.c: Include `<grub/machine/machine.h>'.
39315 Replace `__i386__' #ifdefs with `GRUB_MACHINE_PCBIOS'.
39317 * loader/powerpc/ieee1275/multiboot2.c (grub_mb2_arch_boot): On i386,
39318 rely on grub_multiboot2_real_boot() for final boot.
39320 2008-01-22 Robert Millan <rmh@aybabtu.com>
39322 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): When
39323 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag is set, skip any
39324 device that doesn't look like an SD card.
39325 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
39326 `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' flag.
39327 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_set_flag): Detect
39328 OLPC laptop, and set `GRUB_IEEE1275_FLAG_OFDISK_SDCARD_ONLY' when
39331 2008-01-22 Robert Millan <rmh@aybabtu.com>
39333 * kern/powerpc/ieee1275/init.c (grub_claim_heap): Add sanity check to
39334 avoid claiming over our own code.
39336 2008-01-22 Bean <bean123ch@gmail.com>
39338 * conf/i386-pc.rmk (pkglib_MODULES): Add `jpeg.mod'.
39339 (jpeg_mod_SOURCES): New variable.
39340 (jpeg_mod_CFLAGS): Likewise.
39341 (jpeg_mod_LDFLAGS): Likewise.
39343 * video/readers/jpeg.c : New file.
39345 2008-01-22 Bean <bean123ch@gmail.com>
39347 * fs/cpio.c (grub_cpio_find_file): Return GRUB_ERR_FILE_NOT_FOUND when
39348 there are no more items.
39350 2008-01-21 Robert Millan <rmh@aybabtu.com>
39352 * kern/mm.c (grub_mm_init_region): Improve debug message.
39354 2008-01-21 Robert Millan <rmh@aybabtu.com>
39356 * conf/i386-pc.rmk (GRUB_MEMORY_MACHINE_LINK_ADDR): New variable.
39357 (kernel_img_LDFLAGS): Use `GRUB_MEMORY_MACHINE_LINK_ADDR' as link
39359 (grub_mkimage_CFLAGS): Propagate `GRUB_MEMORY_MACHINE_LINK_ADDR' as
39361 * include/grub/i386/pc/memory.h (GRUB_MEMORY_MACHINE_UPPER): New macro.
39362 Indicates start of upper memory.
39363 * util/i386/pc/grub-mkimage.c: Include `<grub/machine/memory.h>'.
39364 (generate_image): Abort when image size is big enough to corrupt
39367 * include/grub/i386/pc/vga.h: Include `<grub/machine/memory.h>'.
39368 (GRUB_MEMORY_MACHINE_VGA_ADDR): Alias for `GRUB_MEMORY_MACHINE_UPPER'.
39369 * term/i386/pc/vga.c (VGA_MEM): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39370 instead of hardcoding 0xA0000.
39371 * video/i386/pc/vbe.c: Include `<grub/machine/vga.h>'.
39372 (grub_vbe_set_video_mode): Use `GRUB_MEMORY_MACHINE_VGA_ADDR'
39373 instead of hardcoding 0xA0000.
39375 2008-01-21 Robert Millan <rmh@aybabtu.com>
39377 * disk/memdisk.c (memdisk_size): New variable.
39378 (grub_memdisk_open): Replace grub_arch_memdisk_size() call with
39380 (grub_memdisk_init): Initialize `memdisk_size'. Reallocate memdisk
39381 image to dynamic memory.
39382 (grub_memdisk_fini): Replace grub_arch_memdisk_size() call with
39383 `memdisk_size'. Free memdisk block.
39385 2008-01-21 Robert Millan <rmh@aybabtu.com>
39387 Fix detection of very small filesystems (like tar).
39389 * fs/reiserfs.c (grub_reiserfs_mount): When disk is too small to
39390 contain a ReiserFS, abort with GRUB_ERR_BAD_FS rather than
39391 GRUB_ERR_OUT_OF_RANGE (which made the upper layer think there's
39392 a problem with this disk).
39394 2008-01-21 Robert Millan <rmh@aybabtu.com>
39396 * disk/i386/pc/biosdisk.c (grub_biosdisk_iterate): Add debug message
39397 on grub_biosdisk_rw_standard() error.
39399 2008-01-21 Robert Millan <rmh@aybabtu.com>
39401 * include/grub/ieee1275/ieee1275.h: Add 2008 to Copyright line for
39403 * kern/elf.c: Likewise.
39404 * kern/ieee1275/ieee1275.c: Likewise.
39405 * kern/powerpc/ieee1275/openfw.c: Likewise.
39406 * term/ieee1275/ofconsole.c: Likewise.
39408 2008-01-21 Robert Millan <rmh@aybabtu.com>
39410 * include/grub/i386/pc/kernel.h: Include `<grub/symbol.h>'.
39412 * include/grub/kernel.h (grub_arch_memdisk_addr)
39413 (grub_arch_memdisk_size): Moved from here ...
39415 * include/grub/i386/pc/kernel.h (grub_arch_memdisk_addr)
39416 (grub_arch_memdisk_size): ... to here.
39418 2008-01-21 Robert Millan <rmh@aybabtu.com>
39420 Mostly based on bugfix from Bean.
39422 * kern/elf.c (grub_elf32_phdr_iterate): Use `NESTED_FUNC_ATTR'
39423 attribute with hook() parameter.
39424 (grub_elf32_load): Use `NESTED_FUNC_ATTR' with grub_elf32_load_segment()
39426 (grub_elf64_phdr_iterate): Use `NESTED_FUNC_ATTR'
39427 attribute with hook() parameter.
39428 (grub_elf64_load): Use `NESTED_FUNC_ATTR' with grub_elf64_load_segment()
39431 2008-01-21 Robert Millan <rmh@aybabtu.com>
39433 * conf/i386-pc.rmk (kernel_img_HEADERS): Add `machine/kernel.h'.
39434 (pkglib_MODULES): Add `memdisk.mod'.
39435 (memdisk_mod_SOURCES): New variable.
39436 (memdisk_mod_CFLAGS): Likewise.
39437 (memdisk_mod_LDFLAGS): Likewise.
39439 * disk/memdisk.c: New file.
39441 * include/grub/disk.h (grub_disk_dev_id): Add
39442 `GRUB_DISK_DEVICE_MEMDISK_ID'.
39444 * include/grub/i386/pc/kernel.h
39445 (GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE): New macro.
39446 (GRUB_KERNEL_MACHINE_PREFIX): Increment by 4.
39447 (grub_kernel_image_size): New variable declaration.
39448 (grub_total_module_size): Likewise.
39449 (grub_memdisk_image_size): Likewise.
39451 * include/grub/i386/pc/memory.h
39452 (GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR): New macro.
39454 * include/grub/kernel.h: Include `<grub/symbol.h>'.
39455 (grub_arch_memdisk_addr): New variable declaration.
39456 (grub_arch_memdisk_size): Likewise.
39458 * kern/i386/pc/init.c (grub_arch_memdisk_addr): New function.
39459 (grub_arch_memdisk_size): Likewise.
39461 * kern/i386/pc/startup.S (grub_memdisk_image_size): New variable.
39462 (codestart): Replace hardcoded `0x100000' with
39463 `GRUB_MEMORY_MACHINE_DECOMPRESSION_ADDR' macro.
39465 * util/i386/pc/grub-mkimage.c: Include `<grub/misc.h>'.
39466 (generate_image): Add `memdisk_path' parameter. When `memdisk_path' is
39467 not NULL, append the contents of the file it refers to, at the end of
39468 the compressed kernel image. Initialize `grub_memdisk_image_size'
39469 variable (at `GRUB_KERNEL_MACHINE_MEMDISK_IMAGE_SIZE' offset).
39470 (options): Add "memdisk"|'m' option.
39471 (main): Parse --memdisk|-m option, and pass user-provided path as
39472 parameter to generate_image().
39474 2008-01-20 Robert Millan <rmh@aybabtu.com>
39476 * kern/sparc64/ieee1275/openfw.c (grub_devalias_iterate): Copy debug
39477 grub_dprintf() calls from here ...
39478 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): ... to here.
39480 2008-01-20 Robert Millan <rmh@aybabtu.com>
39482 Fix detection of "real mode" when /options/real-mode? doesn't exist.
39484 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_mmu): New variable
39486 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_mmu): New variable.
39487 (grub_ieee1275_find_options): If `grub_ieee1275_mmu' is 0, set
39488 `GRUB_IEEE1275_FLAG_REAL_MODE'.
39489 (cmain): Initialize `grub_ieee1275_mmu' (using /chosen/mmu integer
39491 * kern/powerpc/ieee1275/openfw.c (grub_map): Rely on pre-initialized
39492 `grub_ieee1275_mmu' rather than obtaining a handler on every call.
39494 2008-01-19 Robert Millan <rmh@aybabtu.com>
39496 Get rid of confusing function (superseded by
39497 `grub_ieee1275_get_integer_property')
39498 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_decode_int_4): Remove
39500 * kern/ieee1275/ieee1275.c (grub_ieee1275_decode_int_4): Remove
39502 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid use of
39503 grub_ieee1275_decode_int_4(), by obtaining integer properties directly
39504 in native endianness from grub_ieee1275_get_integer_property().
39506 2008-01-19 Robert Millan <rmh@aybabtu.com>
39508 * kern/powerpc/ieee1275/openfw.c (grub_halt): Issue "power-off"
39509 command after "shut-down", since implementations differ on which
39510 the command for halt is.
39512 2008-01-19 Robert Millan <rmh@aybabtu.com>
39514 * include/grub/i386/linuxbios/console.h: Add header protection.
39515 (grub_keyboard_controller_init): New function prototype.
39516 * term/i386/pc/at_keyboard.c (KEYBOARD_COMMAND_ISREADY): New macro.
39517 (KEYBOARD_COMMAND_READ): Likewise.
39518 (KEYBOARD_COMMAND_WRITE): Likewise.
39519 (KEYBOARD_SCANCODE_SET1): Likewise.
39520 (grub_keyboard_controller_write): New function.
39521 (grub_keyboard_controller_read): Likewise.
39522 (grub_keyboard_controller_init): Likewise.
39524 * term/i386/pc/console.c: Include `<grub/machine/machine.h>'.
39525 (grub_console_init): On coreboot/LinuxBIOS, call
39526 grub_keyboard_controller_init().
39528 2008-01-19 Robert Millan <rmh@aybabtu.com>
39530 PowerPC changes provided by Pavel Roskin.
39532 * kern/powerpc/ieee1275/cmain.c (cmain): Don't take any arguments.
39533 * kern/powerpc/ieee1275/crt0.S: Store r5 in grub_ieee1275_entry_fn,
39534 don't rely on cmain() doing it.
39535 * kern/i386/ieee1275/startup.S (_start): Store %eax in
39536 grub_ieee1275_entry_fn, don't rely on cmain() doing it.
39538 2008-01-16 Robert Millan <rmh@aybabtu.com>
39540 * include/grub/i386/linuxbios/memory.h
39541 (GRUB_MEMORY_MACHINE_LINUXBIOS_TABLE_ADDR): Remove macro.
39542 * kern/i386/linuxbios/table.c (grub_linuxbios_table_iterate): Do not
39543 receive `table_header' as argument. Instead, probe for it in the
39544 known memory ranges where it can be present.
39545 (grub_available_iterate): Do not pass a fixed `table_header' address
39546 to grub_linuxbios_table_iterate().
39548 2008-01-15 Robert Millan <rmh@aybabtu.com>
39550 * configure.ac: Add `i386-ieee1275' to the list of supported targets.
39551 * conf/i386-ieee1275.rmk: New file.
39552 * include/grub/i386/ieee1275/console.h: Likewise.
39553 * include/grub/i386/ieee1275/ieee1275.h: Likewise.
39554 * include/grub/i386/ieee1275/kernel.h: Likewise.
39555 * include/grub/i386/ieee1275/time.h: Likewise.
39556 * kern/i386/ieee1275/init.c: Likewise.
39557 * kern/i386/ieee1275/startup.S: Likewise.
39559 2008-01-15 Robert Millan <rmh@aybabtu.com>
39561 * kern/misc.c (grub_vsprintf): Do not reset `longlongfmt' to zero
39562 when pointers are 32-bit (but still do set it to one when they are
39565 2008-01-15 Robert Millan <rmh@aybabtu.com>
39567 * include/grub/ieee1275/ieee1275.h
39568 (grub_ieee1275_get_integer_property): New function prototype.
39570 * kern/ieee1275/ieee1275.c: Include `<grub/types.h>'.
39571 (grub_ieee1275_get_integer_property): New function. Wraps around
39572 grub_ieee1275_get_property() to handle endianness.
39574 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Replace
39575 grub_ieee1275_get_property() with grub_ieee1275_get_integer_property()
39577 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Likewise.
39578 (grub_map): Likewise.
39579 * kern/sparc64/ieee1275/openfw.c (grub_map): Likewise.
39581 2008-01-15 Bean <bean123ch@gmail.com>
39583 * normal/execute.c (grub_script_exec_argument_to_string): Check for undefined variable.
39584 (grub_script_execute_cmdline): Reset grub_errno.
39586 * normal/main.c (read_config_file): Reset grub_errno.
39588 * normal/parse.y (script_init): New.
39589 (script): Move function and menuentry here.
39591 (command): Add delimiter at the end of command.
39592 (commands): Adjust to match the new command.
39593 (commandblock): Remove grub_script_lexer_record_start.
39594 (menuentry): Add grub_script_lexer_record_start, use the new commands.
39595 (if): Use the new commands.
39597 * conf/common.rmk (pkgdata_MODULES): Add echo.mod.
39599 2008-01-15 Robert Millan <rmh@aybabtu.com>
39601 * normal/menu.c (run_menu): Move timeout message from here ...
39602 (print_timeout): ... to here.
39603 (run_menu): Use print_timeout() once during initial draw to print
39604 the whole message, and again in every clock tick to update only
39605 the number of seconds.
39607 2008-01-15 Robert Millan <rmh@aybabtu.com>
39609 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Obtain
39610 actual size of `available' from grub_ieee1275_get_property(), and
39611 restrict parsing to that bound.
39613 2008-01-15 Christian Franke <franke@computer.org>
39615 * util/grub-emu.c: Replace <argp.h> by <getopt.h>.
39616 (argp_program_version): Remove variable.
39617 (argp_program_bug_address): Likewise.
39618 (options): Convert from struct argp_option to struct option.
39619 (struct arguments): Remove.
39620 (parse_opt): Remove.
39621 (usage): New function.
39622 (main): Replace struct args members by simple variables.
39623 Replace argp_parse() by getopt_long().
39624 Add switch to evaluate options.
39625 Add missing "(...)" around root_dev in prefix string.
39627 2008-01-14 Robert Millan <rmh@aybabtu.com>
39629 * kern/powerpc/ieee1275/init.c (grub_exit): Reimplement as a wrapper
39630 for grub_ieee1275_exit(), in order to improve portability.
39632 2008-01-14 Robert Millan <rmh@aybabtu.com>
39634 * util/grub.d/10_linux.in (prefix): Define.
39635 (exec_prefix): Likewise. Both definitions are later used by `libdir'.
39637 2008-01-13 Pavel Roskin <proski@gnu.org>
39639 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Don't use
39640 grub_errno if no errors have been detected.
39642 2008-01-12 Robert Millan <rmh@aybabtu.com>
39644 * include/grub/util/getroot.h (grub_dev_abstraction_types): New enum.
39645 (grub_util_get_dev_abstraction): New function prototype.
39647 * util/getroot.c: Include `<grub/util/getroot.h>'
39648 (grub_util_get_grub_dev): Move detection of abstraction type to ...
39649 (grub_util_get_dev_abstraction): ... here (new function).
39651 * util/grub-probe.c: Convert PRINT_* to an enum. Add
39652 `PRINT_ABSTRACTION'.
39653 (probe): Probe for abstraction type when requested.
39654 (main): Understand `--target=abstraction'.
39656 * util/i386/efi/grub-install.in: Add abstraction module to core
39657 image when it is found to be necessary.
39658 * util/i386/pc/grub-install.in: Likewise.
39659 * util/powerpc/ieee1275/grub-install.in: Likewise.
39661 * util/update-grub_lib.in (font_path): Return system path without
39662 converting to GRUB path.
39663 * util/update-grub.in: Convert system path returned by font_path()
39664 to a GRUB path. Use `grub-probe -t abstraction' to determine what
39665 abstraction module is needed for loading fonts (if any). Export
39666 that as `GRUB_PRELOAD_MODULES'.
39667 * util/grub.d/00_header.in: Process `GRUB_PRELOAD_MODULES' (print
39670 2008-01-12 Yoshinori K. Okuji <okuji@enbug.org>
39672 Remove some unused code from reiserfs.
39674 * fs/reiserfs.c (struct grub_reiserfs_key)
39675 [GRUB_REISERFS_KEYV2_BITFIELD]: Removed offset and type.
39676 (struct grub_reiserfs_node_body): Removed.
39677 (grub_reiserfs_get_key_v2_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39679 (grub_reiserfs_get_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39681 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39683 (grub_reiserfs_set_key_offset) [GRUB_REISERFS_KEYV2_BITFIELD]:
39685 (grub_reiserfs_set_key_type) [GRUB_REISERFS_KEYV2_BITFIELD]:
39687 (grub_reiserfs_iterate_dir) [GRUB_REISERFS_KEYV2_BITFIELD]:
39689 (grub_reiserfs_open) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39690 (grub_reiserfs_read) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39691 (grub_reiserfs_dir) [GRUB_REISERFS_KEYV2_BITFIELD]: Likewise.
39693 2008-01-10 Robert Millan <rmh@aybabtu.com>
39695 * util/update-grub_lib.in (grub_file_is_not_garbage): New function.
39696 Determines if a file is garbage left by packaging systems, etc.
39697 * util/update-grub.in: Use grub_file_is_not_garbage() as a condition
39698 for processing /etc/grub.d scripts.
39699 * util/grub.d/10_hurd.in: Fix `GRUB_DISTRIBUTOR' comparison.
39700 * util/grub.d/10_linux.in: Likewise. Use grub_file_is_not_garbage()
39701 as a condition for processing Linux images.
39703 2008-01-10 Pavel Roskin <proski@gnu.org>
39705 * include/grub/powerpc/libgcc.h (__ucmpdi2): New export. Needed
39706 to compile reiserfs.c on PowerPC.
39708 2008-01-10 Robert Millan <rmh@aybabtu.com>
39710 * kern/device.c (grub_device_iterate): Do not abort device iteration
39711 when one of the devices cannot be opened.
39712 * kern/disk.c (grub_disk_open): Do not account previous failures of
39713 unrelated functions when grub_errno is checked for.
39715 2008-01-08 Robert Millan <rmh@aybabtu.com>
39717 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): For
39718 `! grub_linux_is_bzimage', change order of address comparison to make
39719 it more intuitive, and improve "too big zImage" error message.
39721 2008-01-08 Robert Millan <rmh@aybabtu.com>
39723 * Makefile.in (uninstall): Handle `$(update-grub_SCRIPTS)' and
39724 `$(update-grub_DATA)'.
39725 (distcheck): Fix race condition when invoking `$(MAKE)' on multiple
39728 2008-01-07 Robert Millan <rmh@aybabtu.com>
39730 * boot/i386/pc/boot.S (boot_drive_check): Add a comment indicating
39731 which instruction is modified by grub-setup during installation
39732 (since it wasn't obvious by only looking at this file).
39734 2008-01-07 Robert Millan <rmh@aybabtu.com>
39736 * TODO: Rewrite. Just refer to the wiki and the BTS instead of
39737 listing actual TODO items.
39739 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39741 * fs/reiserfs.c (grub_reiserfs_get_key_v2_type): Handle endianness
39743 (grub_reiserfs_get_key_offset): Likewise.
39744 (grub_reiserfs_set_key_offset): Likewise.
39745 (grub_reiserfs_set_key_type): Likewise.
39746 (grub_reiserfs_iterate_dir): Return 1 if found, otherwise 0.
39748 (GRUB_REISERFS_KEYV2_BITFIELD): Undefined. Probably it would be
39749 better to remove the bitfield version completely.
39751 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39753 * fs/reiserfs.c (grub_reiserfs_iterate_dir): ENTRY_ITEM must be
39754 allocated from the heap, due to the fshelp implementation.
39755 (grub_reiserfs_dir): Free NODE, due to the same reason.
39757 2008-01-06 Yoshinori K. Okuji <okuji@enbug.org>
39759 Mostly from Vincent Pelletier:
39761 * fs/reiserfs.c: New file.
39763 * conf/common.rmk (pkglib_MODULES): Added reiserfs.mod.
39764 (reiserfs_mod_SOURCES): New variable.
39765 (reiserfs_mod_CFLAGS): Likewise.
39766 (reiserfs_mod_LDFLAGS): Likewise.
39768 * DISTLIST: Added boot/i386/pc/lnxboot.S, commands/hexdump.c,
39769 disk/ata.c, fs/cpio.c, fs/ntfscomp.c, fs/reiserfs.c,
39770 include/grub/ntfs.h, include/grub/i386/pc/machine.h, and
39773 2008-01-06 Robert Millan <rmh@aybabtu.com>
39775 * normal/color.c: Remove `<grub/env.h>'.
39777 2008-01-05 Jeroen Dekkers <jeroen@dekkers.cx>
39779 * include/grub/normal.h: Include <grub/env.h>.
39781 2008-01-05 Robert Millan <rmh@aybabtu.com>
39783 * util/i386/pc/grub-setup.c (usage): Replace obsolete `(hd0,0)' in
39784 usage example with `(hd0,1)'.
39785 Reported by Samuel Thibault.
39787 2008-01-05 Robert Millan <rmh@aybabtu.com>
39789 * kern/i386/loader.S (grub_linux_is_bzimage): New variable.
39790 (grub_linux_boot_zimage): Rename to ...
39791 (grub_linux_boot): ... this.
39792 (grub_linux_boot_bzimage): Merge with `grub_linux_boot_zimage'.
39793 (grub_linux_boot_zimage): Conditionalize zImage copy.
39795 * include/grub/i386/loader.h (grub_linux_is_bzimage): Add prototype.
39796 (grub_linux_boot_bzimage): Remove prototype.
39797 (grub_linux_boot_zimage): Rename to ...
39798 (grub_linux_boot): ... this.
39800 * loader/i386/pc/linux.c (big_linux): Replace with `grub_linux_is_bzimage'.
39801 (grub_linux_boot): Remove function.
39803 2008-01-05 Robert Millan <rmh@aybabtu.com>
39805 * include/grub/normal.h (grub_env_write_color_normal): New prototype.
39806 (grub_env_write_color_highlight): Likewise.
39807 (grub_wait_after_message): Likewise.
39809 * normal/color.c: New file.
39811 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39812 (normal_mod_DEPENDENCIES): Likewise.
39814 * conf/i386-efi.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39815 (normal_mod_DEPENDENCIES): Likewise.
39817 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39818 (normal_mod_DEPENDENCIES): Likewise.
39820 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `normal/color.c'.
39821 (normal_mod_DEPENDENCIES): Likewise.
39823 * normal/menu_entry.c (run): Rely on grub_wait_after_message()
39824 for waiting after a message is printed.
39825 * normal/main.c (read_config_file): Likewise.
39826 (grub_normal_init): Register grub_env_write_color_normal() and
39827 grub_env_write_color_highlight() hooks. Mark `color_normal' and
39828 `color_highlight' variables as global.
39830 * normal/menu.c (grub_wait_after_message): New function.
39831 (grub_color_menu_normal): New variable. Replaces ...
39832 (GRUB_COLOR_MENU_NORMAL): ... this macro.
39833 (grub_color_menu_highlight): New variable. Replaces ...
39834 (GRUB_COLOR_MENU_HIGHLIGHT): ... this macro.
39835 (draw_border): Set color state to `GRUB_TERM_COLOR_NORMAL' instead of
39836 `GRUB_TERM_COLOR_STANDARD'.
39837 (print_message): Use `grub_setcolorstate' to reload colors. Rename
39838 `normal_code' and `highlight_code' to `old_color_normal' and
39839 `old_color_highlight', respectively.
39840 (grub_menu_init_page): Update colors when drawing the menu, based on
39841 `menu_color_normal' and `menu_color_highlight' variables.
39842 (grub_menu_run): Rely on grub_wait_after_message() for waiting after
39843 a message is printed.
39845 2008-01-05 Robert Millan <rmh@aybabtu.com>
39847 * kern/env.c (grub_env_context_open): Propagate hooks for global
39848 variables to new context.
39850 * kern/main.c (grub_set_root_dev): Export `root' variable.
39852 2008-01-05 Robert Millan <rmh@aybabtu.com>
39854 * util/biosdisk.c (get_os_disk): Check for devfs-style IDE and SCSI
39855 discs unconditionally, since udev and others have options to provide
39858 2008-01-05 Robert Millan <rmh@aybabtu.com>
39860 * normal/completion.c (iterate_dir): Skip `.' and `..' directories.
39862 2008-01-04 Christian Franke <franke@computer.org>
39864 * kern/i386/pc/init.c (grub_machine_init): Fix evaluation
39867 2008-01-03 Pavel Roskin <proski@gnu.org>
39869 * kern/i386/linuxbios/init.c: Put "void" to all function
39870 declarations with no arguments.
39871 * kern/powerpc/ieee1275/init.c: Likewise.
39872 * term/i386/pc/at_keyboard.c: Likewise.
39873 * term/i386/pc/vga_text.c: Likewise.
39874 * util/grub-mkdevicemap.c: Likewise.
39876 2008-01-02 Robert Millan <rmh@aybabtu.com>
39878 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf32): Improve error
39879 message when loaded image is out of bounds.
39880 (grub_multiboot_load_elf64): Likewise.
39882 2008-01-02 Pavel Roskin <proski@gnu.org>
39884 * util/grub.d/10_linux.in: Try version without ".old" when
39885 looking for initrd. It's better to use initrd from the newer
39886 kernel of the same version than no initrd at all.
39888 2008-01-01 Robert Millan <rmh@aybabtu.com>
39890 * util/biosdisk.c (get_os_disk): Fix check for IDE or SCSI discs.
39892 2008-01-01 Vesa Jaaskelainen <chaac@nic.fi>
39894 * include/grub/video.h: Added grub_video_unmap_color and
39895 grub_video_get_active_render_target.
39896 (grub_video_adapter): Added unmap_color and get_active_render_target.
39898 * video/video.c: Added grub_video_unmap_color and
39899 grub_video_get_active_render_target.
39900 (grub_video_get_info): Changed method to accept NULL pointer as an
39901 argument to allow detection of active video adapter.
39903 * video/i386/pc/vbe.c: Renamed grub_video_vbe_unmap_color as
39904 grub_video_vbe_unmap_color_int.
39905 Added grub_video_vbe_unmap_color and
39906 grub_video_vbe_get_active_render_target.
39907 (grub_video_vbe_adapter): Added unmap_color and
39908 get_active_render_target.
39910 * video/i386/pc/vbeblit.c: Replaced grub_video_vbe_unmap_color usage
39911 with grub_video_vbe_unmap_color_int.
39913 * term/gfxterm.c (DEFAULT_STANDARD_COLOR): Added.
39914 (DEFAULT_NORMAL_COLOR): Likewise.
39915 (DEFAULT_HIGHLIGHT_COLOR) Likewise.
39916 (DEFAULT_FG_COLOR): Removed.
39917 (DEFAULT_BG_COLOR): Likewise.
39918 (DEFAULT_CURSOR_COLOR): Changed value.
39919 (grub_virtual_screen): Added standard_color_setting,
39920 normal_color_setting, highlight_color_setting and term_color.
39921 (grub_virtual_screen): Removed fg_color_setting and bg_color_setting.
39922 (bitmap_width): Added.
39923 (bitmap_height): Likewise.
39924 (bitmap): Likewise.
39925 (set_term_color): Likewise.
39926 (grub_virtual_screen_setup): Changed to use new terminal coloring
39928 (grub_gfxterm_init): Added init for bitmap.
39929 (grub_gfxterm_fini): Added destroy for bitmap.
39930 (redraw_screen_rect): Updated to use background bitmap and new
39932 (scroll_up): Added optimization for case when there is no bitmap.
39933 (grub_gfxterm_cls): Fixed to use correct background color.
39934 (grub_virtual_screen_setcolorstate): Changed to use new terminal
39936 (grub_virtual_screen_setcolor): Likewise.
39937 (grub_virtual_screen_getcolor): Added.
39938 (grub_gfxterm_background_image_cmd): Likewise.
39939 (grub_video_term): Added setcolor and getcolor.
39940 (MOD_INIT): Added registration of background_image command.
39941 (MOD_TERM): Added unregistration for background_image command.
39943 2007-12-30 Pavel Roskin <proski@gnu.org>
39945 * loader/multiboot_loader.c: Fix multiboot command
39946 unregistration. Fix all typos in the word "multiboot".
39948 2007-12-29 Pavel Roskin <proski@gnu.org>
39950 * util/grub.d/10_linux.in: Refactor search for initrd. Add
39951 support for initrd names used in Fedora.
39953 2007-12-26 Bean <bean123ch@gmail.com>
39955 * conf/common.rmk (pkgdata_MODULES): Add cpio.mod.
39956 (cpio_mod_SOURCES): New variable.
39957 (cpio_mod_CFLAGS): Likewise.
39958 (cpio_mod_LDFLAGS): Likewise.
39960 * fs/cpio.c: New file.
39962 * conf/i386-pc.rmk (grub_emu_SOURCES): Add cpio.c.
39964 * conf/i386-efi.rmk (grub_emu_SOURCES): Likewise.
39966 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Likewise.
39968 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
39970 2007-12-25 Robert Millan <rmh@aybabtu.com>
39972 * include/grub/term.h (struct grub_term): Add `getcolor' function.
39973 (grub_getcolor): New function.
39975 * kern/term.c (grub_getcolor): New function.
39976 * normal/menu.c (GRUB_COLOR_MENU_NORMAL): New macro.
39977 (GRUB_COLOR_MENU_HIGHLIGHT): New macro.
39978 (print_entry): Set normal and highlight colors to
39979 `GRUB_COLOR_MENU_NORMAL' and `GRUB_COLOR_MENU_HIGHLIGHT',
39980 respectively, before printing and restore them to old
39982 (grub_menu_init_page): Likewise. Fill an additional colored space
39983 that would otherwise be left blank.
39985 * term/efi/console.c (grub_console_getcolor): New function.
39986 (struct grub_console_term.getcolor): New variable.
39987 * term/i386/pc/console.c (grub_console_getcolor): New function.
39988 (struct grub_console_term.getcolor): New variable.
39989 * term/ieee1275/ofconsole.c (grub_ofconsole_getcolor): New function.
39990 (struct grub_console_term.getcolor): New variable.
39992 * term/i386/pc/serial.c (grub_serial_setcolor): Remove function.
39993 (struct grub_console_term.setcolor): Remove variable.
39994 * term/i386/pc/vesafb.c (grub_virtual_screen_setcolor): Remove function.
39995 (struct grub_console_term.setcolor): Remove variable.
39996 * term/i386/pc/vga.c (grub_vga_setcolor): Remove function.
39997 (struct grub_console_term.setcolor): Remove variable.
39998 * term/gfxterm.c (grub_virtual_screen_setcolor): Remove function.
39999 (struct grub_console_term.setcolor): Remove variable.
40001 2007-12-25 Robert Millan <rmh@aybabtu.com>
40003 * configure.ac: Search for possible unifont.hex locations, and
40004 define UNIFONT_HEX if found.
40006 * Makefile.in (UNIFONT_HEX): Define variable.
40007 (DATA): Rename to ...
40008 (PKGLIB): ... this. Update all users.
40009 (PKGDATA): New variable.
40010 (pkgdata_IMAGES): Rename to ...
40011 (pkglib_IMAGES): ... this. Update all users.
40012 (pkgdata_MODULES): Rename to ...
40013 (pkglib_MODULES): ... this. Update all users.
40014 (pkgdata_PROGRAMS): Rename to ...
40015 (pkglib_PROGRAMS): ... this. Update all users.
40016 (pkgdata_DATA): Rename to ...
40017 (pkglib_DATA): ... this. Update all users.
40018 (CLEANFILES): Redefine to `$(pkglib_DATA) $(pkgdata_DATA)'.
40019 (unicode.pff, ascii.pff): New rules.
40020 (all-local): Add `$(PKGDATA)' dependency.
40021 (install-local): Process `$(PKGDATA)'.
40023 * util/update-grub_lib.in (font_path): Search for *.pff files in
40024 a few more locations, including `${pkgdata}'.
40026 2007-12-23 Robert Millan <rmh@aybabtu.com>
40028 Patch from Bean <bean123ch@gmail.com>:
40029 * disk/loopback.c (grub_loopback_read): Add missing bit shift to
40032 2007-12-21 Bean <bean123ch@gmail.com>
40034 * conf/common.rmk (pkgdata_MODULES): Add ntfscomp.mod.
40035 (ntfscomp_mod_SOURCES): New variable.
40036 (ntfscomp_mod_CFLAGS): Likewise.
40037 (ntfscomp_mod_LDFLAGS): Likewise.
40039 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfscomp.c.
40040 (grub_probe_SOURCES): Likewise.
40041 (grub_emu_SOURCES): Likewise.
40043 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40044 (grub_emu_SOURCES): Likewise.
40046 * conf/i386-linuxbios.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40047 (grub_emu_SOURCES): Likewise.
40049 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfscomp.c.
40050 (grub_emu_SOURCES): Likewise.
40052 * fs/ntfs.c (grub_ntfscomp_func): New variable.
40053 (read_run_list): Renamed to grub_ntfs_read_run_list.
40054 (decomp_nextvcn): Moved to ntfscomp.c.
40055 (decomp_getch): Likewise.
40056 (decomp_get16): Likewise.
40057 (decomp_block): Likewise.
40058 (read_block): Likewise.
40059 (read_data): Partially moved to ntfscomp.c.
40060 (fixup): Change unsigned to grub_uint16_t.
40061 (read_mft): Change unsigned long to grub_uint32_t.
40062 (read_attr): Likewise.
40063 (read_data): Likewise.
40064 (read_run_data): Likewise.
40065 (read_run_list): Likewise.
40066 (read_mft): Likewise.
40068 * fs/ntfscomp.c: New file.
40070 * include/grub/ntfs.h: New file.
40072 2007-12-16 Robert Millan <rmh@aybabtu.com>
40074 * util/grub-mkdevicemap.c (make_device_map): Iterate up to 20 for
40075 IDE disk check, since Linux is known to support 20 IDE disks.
40076 Reported by Colin Watson.
40078 2007-12-15 Bean <bean123ch@gmail.com>
40080 * conf/i386-pc.rmk (pkgdata_IMAGES): Add lnxboot.img.
40081 (lnxboot_img_SOURCES): New variable.
40082 (lnxboot_img_ASFLAGS): Likewise.
40083 (lnxboot_img_LDFLAGS): Likewise.
40085 * boot/i386/pc/lnxboot.S: New file.
40087 2007-11-24 Pavel Roskin <proski@gnu.org>
40089 * configure.ac: Test if '--build-id=none' is supported by the
40090 linker. If yes, add it to TARGET_LDFLAGS. Build ID causes
40091 objcopy to generate incorrect binary files (binutils
40092 2.17.50.0.18-1 as shipped by Fedora 8).
40093 * aclocal.m4 (grub_PROG_OBJCOPY_ABSOLUTE): Use LDFLAGS when
40094 linking, so that build ID doesn't break the test.
40096 2007-11-24 Pavel Roskin <proski@gnu.org>
40098 * include/grub/i386/time.h: use "void" in the argument list
40099 of grub_cpu_idle().
40100 * include/grub/powerpc/time.h: Likewise.
40101 * include/grub/sparc64/time.h: Likewise.
40103 2007-11-18 Christian Franke <franke@computer.org>
40105 * util/console.c (grub_ncurses_getkey): Change curses KEY_* mapping,
40106 now return control chars instead of GRUB_CONSOLE_KEY_* constants.
40107 This fixes the problem that function keys did not work in grub-emu.
40109 2007-11-18 Christian Franke <franke@computer.org>
40111 * disk/host.c (grub_host_open): Remove attribute unused from
40112 name parameter. Add check for "host". This fixes the problem
40113 that grub-emu does not find partitions.
40115 2007-11-18 Christian Franke <franke@computer.org>
40117 * util/hostfs.c (is_dir): New function.
40118 (grub_hostfs_dir): Handle missing dirent.d_type case.
40119 (grub_hostfs_read): Add missing fseek().
40120 (grub_hostfs_label): Clear label pointer. This fixes a crash
40121 of grub-emu on "ls (host)".
40123 2007-11-18 Christian Franke <franke@computer.org>
40125 * include/grub/i386/pc/init.h (struct grub_machine_mmap_entry):
40126 Add attribute packed, gcc 3.4.4 on Cygwin aligns this
40127 to 64 bit boundary by default.
40129 2007-11-18 Bean <bean123ch@gmail.com>
40131 * conf/common.rmk (pkgdata_MODULES): Add hexdump.mod.
40132 (hexdump_mod_SOURCES): New variable.
40133 (hexdump_mod_CFLAGS): Likewise.
40134 (hexdump_mod_LDFLAGS): Likewise.
40136 * conf/i386-pc.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40138 * conf/i386-efi.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40140 * conf/i386-linuxbios.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40142 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add command/hexdump.c.
40144 * include/grub/hexdump.h: New file.
40146 * commands/hexdump.c: New file.
40148 2007-11-10 Robert Millan <rmh@aybabtu.com>
40150 * commands/i386/pc/play.c (beep_off): Switch order of arguments
40151 in grub_outb() calls.
40152 (beep_on): Likewise.
40154 2007-11-10 Christian Franke <franke@computer.org>
40156 * normal/menu.c (run_menu): Check for empty menu to avoid crash.
40157 (grub_menu_run): Likewise.
40159 2007-11-10 Robert Millan <rmh@aybabtu.com>
40161 * include/grub/i386/efi/machine.h: New file.
40162 * include/grub/i386/linuxbios/machine.h: Likewise.
40163 * include/grub/i386/pc/machine.h: Likewise.
40164 * include/grub/powerpc/ieee1275/machine.h: Likewise.
40165 * include/grub/sparc64/ieee1275/machine.h: Likewise.
40167 * term/i386/pc/serial.c: Include <grub/machine/machine.h>.
40168 (serial_hw_io_addr): New variable.
40169 (serial_hw_get_port): Obtain port address from `serial_hw_io_addr'
40170 instead of `(unsigned short *) 0x400'.
40172 2007-11-10 Bean <bean123ch@gmail.com>
40174 * fs/ntfs.c (read_block): Fix a bug caused by adjacent blocks.
40176 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40178 * conf/i386-pc.rmk (pkgdata_MODULES): Added vga.mod.
40179 (vga_mod_SOURCES): Added.
40180 (vga_mod_CFLAGS): Likewise.
40181 (vga_mod_LDFLAGS): Likewise.
40183 * term/i386/pc/vga.c (get_map_mask): Switch order of arguments in
40185 (set_map_mask): Likewise.
40186 (set_read_map): Likewise.
40187 (set_read_address): Likewise.
40188 (vga_font): Removed variable.
40189 (get_vga_glyph): Removed function.
40190 (invalidate_char): Likewise.
40191 (write_char): Changed to use grub_font_get_glyph() for font
40193 (grub_vga_putchar): Likewise.
40194 (grub_vga_getcharwidth): Likewise.
40196 2007-11-10 Vesa Jaaskelainen <chaac@nic.fi>
40198 * conf/i386-pc.rmk (boot_img_LDFLAGS): Use COMMON_LDFLAGS for target
40200 (pxeboot_img_LDFLAGS): Likewise.
40201 (diskboot_img_LDFLAGS): Likewise.
40202 (kernel_img_LDFLAGS): Likewise.
40204 2007-11-06 Robert Millan <rmh@aybabtu.com>
40206 * term/i386/pc/serial.c (serial_hw_put): Switch order of arguments
40207 in grub_outb() calls.
40208 (serial_hw_init): Likewise.
40210 2007-11-05 Robert Millan <rmh@aybabtu.com>
40212 * util/update-grub.in: Allow files in ${update_grub_dir} to contain
40213 spaces. Skip non-regular files.
40215 2007-11-05 Robert Millan <rmh@aybabtu.com>
40217 * kern/disk.c (grub_disk_firmware_fini)
40218 (grub_disk_firmware_is_tainted): New variables.
40220 * include/grub/disk.h (grub_disk_firmware_fini)
40221 (grub_disk_firmware_is_tainted): Likewise.
40223 * disk/i386/pc/biosdisk.c (GRUB_MOD_FINI(biosdisk)): Moved from here ...
40224 (grub_disk_biosdisk_fini): ... to here.
40225 (GRUB_MOD_FINI(biosdisk)): Implement using grub_disk_biosdisk_fini().
40226 (GRUB_MOD_INIT(biosdisk)): Abort when `grub_disk_firmware_is_tainted'
40227 is set. Register grub_disk_biosdisk_fini() in
40228 `grub_disk_firmware_fini'.
40230 * disk/ata.c: Remove `<grub/machine/biosdisk.h>'.
40231 (GRUB_MOD_INIT(ata)): Remove grub_biosdisk_fini() call.
40232 Use `grub_disk_firmware_is_tainted' and `grub_disk_firmware_fini'
40233 to finish existing firmware disk interface.
40235 * conf/i386-linuxbios.rmk (pkgdata_MODULES): Add `ata.mod'.
40236 (ata_mod_SOURCES): New variable.
40237 (ata_mod_CFLAGS): Likewise.
40238 (ata_mod_LDFLAGS): Likewise.
40240 2007-11-05 Robert Millan <rmh@aybabtu.com>
40242 * disk/ata.c: Remove `<grub/machine/time.h>'. Include `<grub/time.h>'.
40243 (grub_ata_wait): Reimplement using grub_millisleep().
40245 * include/grub/misc.h (grub_div_roundup): Fix parenthesization.
40246 * include/grub/i386/time.h (grub_cpu_idle): Disable `hlt' instruction.
40248 2007-11-03 Marco Gerards <marco@gnu.org>
40250 * term/i386/pc/vga_text.c: Include <grub/cpu/io.h>.
40251 (CRTC_ADDR_PORT): New macro.
40252 (CRTC_DATA_PORT): Likewise.
40253 (CRTC_CURSOR): Likewise.
40254 (CRTC_CURSOR_ADDR_HIGH): Likewise.
40255 (CRTC_CURSOR_ADDR_LOW): Likewise.
40256 (update_cursor): New function.
40257 (grub_console_real_putchar): Call `update_cursor'.
40258 (grub_console_gotoxy): Likewise.
40259 (grub_console_cls): Set the default color when clearing the
40261 (grub_console_setcursor): Implemented.
40263 2007-11-03 Marco Gerards <marco@gnu.org>
40265 * disk/ata.c (grub_ata_pio_read): Don't wait for the command to
40267 (grub_ata_pio_write): Likewise.
40269 (grub_atapi_identify): Wait after issuing an ATA command.
40270 (grub_atapi_packet): Likewise.
40271 (grub_ata_identify): Likewise.
40272 (grub_ata_readwrite): Likewise.
40274 2007-11-03 Marco Gerards <marco@gnu.org>
40276 * disk/ata.c (grub_ata_pio_read): Detect and return the error code.
40277 (grub_ata_pio_write): Likewise.
40278 (grub_ata_readwrite): Use `grub_error', instead of
40279 returning `grub_errno'.
40281 2007-11-03 Marco Gerards <marco@gnu.org>
40283 * disk/ata.c (grub_ata_readwrite): Call grub_ata_pio_read and
40284 grub_ata_pio_write once for every single sector, instead of for
40287 2007-10-31 Robert Millan <rmh@aybabtu.com>
40289 * configure.ac: Add `i386-linuxbios' to the list of supported targets.
40291 * conf/i386-linuxbios.rmk: New file.
40293 * kern/i386/pc/hardware.c: Likewise.
40294 * term/i386/pc/at_keyboard.c: Likewise.
40295 * term/i386/pc/vga_text.c: Likewise.
40297 * include/grub/i386/linuxbios/boot.h: Likewise.
40298 * include/grub/i386/linuxbios/console.h: Likewise.
40299 * include/grub/i386/linuxbios/init.h: Likewise.
40300 * include/grub/i386/linuxbios/kernel.h: Likewise.
40301 * include/grub/i386/linuxbios/loader.h: Likewise.
40302 * include/grub/i386/linuxbios/memory.h: Likewise.
40303 * include/grub/i386/linuxbios/serial.h: Likewise.
40304 * include/grub/i386/linuxbios/time.h: Likewise.
40306 * kern/i386/linuxbios/init.c: Likewise.
40307 * kern/i386/linuxbios/startup.S: Likewise.
40308 * kern/i386/linuxbios/table.c: Likewise.
40310 2007-10-31 Marco Gerards <marco@gnu.org>
40312 * conf/i386-pc.rmk (pkgdata_MODULES): Add `ata.mod'.
40313 (ata_mod_SOURCES): New variable.
40314 (ata_mod_CFLAGS): Likewise.
40315 (ata_mod_LDFLAGS): Likewise.
40317 * disk/ata.c: New file.
40319 * include/grub/disk.h (grub_disk_dev_id): Add
40320 `GRUB_DISK_DEV_ATA_ID'.
40322 2007-10-31 Robert Millan <rmh@aybabtu.com>
40324 * include/grub/i386/pc/init.h (grub_lower_mem): Moved from here ...
40325 * include/grub/i386/pc/memory.h (grub_lower_mem): ... to here.
40327 * include/grub/i386/pc/init.h (grub_upper_mem): Moved from here ...
40328 * include/grub/i386/pc/memory.h (grub_upper_mem): ... to here.
40330 * include/grub/i386/pc/memory.h: Include `<grub/symbol.h>' and
40333 * loader/i386/pc/multiboot.c: Include `<grub/machine/memory.h>'.
40335 2007-10-27 Robert Millan <rmh@aybabtu.com>
40337 * include/grub/types.h (ULONG_MAX): Define macro.
40339 2007-10-22 Robert Millan <rmh@aybabtu.com>
40341 * kern/i386/pc/startup.S: Remove `"kern/i386/realmode.S"'. Include
40343 Remove `"kern/i386/loader.S"'. Include `"../loader.S"'.
40345 2007-10-22 Robert Millan <rmh@aybabtu.com>
40347 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove `disk/i386/pc/biosdisk.c'.
40348 (pkgdata_MODULES): Add `biosdisk.mod'.
40349 (biosdisk_mod_SOURCES, biosdisk_mod_CFLAGS, biosdisk_mod_LDFLAGS): New
40352 * disk/i386/pc/biosdisk.c: Include `<grub/dl.h>'.
40353 (grub_biosdisk_init): Replace with ...
40354 (GRUB_MOD_INIT(biosdisk)): ... this.
40355 (grub_biosdisk_fini): Replace with ...
40356 (GRUB_MOD_FINI(biosdisk)): ... this.
40358 * kern/i386/pc/init.c: Remove `<grub/machine/biosdisk.h>'.
40359 (grub_machine_init): Remove call to grub_biosdisk_init().
40360 (grub_machine_fini): Remove call to grub_machine_fini().
40362 * util/i386/pc/grub-install.in (modules): Add `biosdisk'.
40364 2007-10-22 Robert Millan <rmh@aybabtu.com>
40366 * include/grub/time.h: New file.
40367 * include/grub/i386/time.h: Likewise.
40368 * include/grub/powerpc/time.h: Likewise.
40369 * include/grub/sparc64/time.h: Likewise.
40371 * include/grub/i386/pc/time.h (KERNEL_TIME_HEADER): Rename all
40373 (KERNEL_MACHINE_TIME_HEADER): ... this.
40374 * include/grub/powerpc/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40376 (KERNEL_MACHINE_TIME_HEADER): ... this.
40377 * include/grub/sparc64/ieee1275/time.h (KERNEL_TIME_HEADER): Rename all
40379 (KERNEL_MACHINE_TIME_HEADER): ... this.
40381 * kern/i386/efi/init.c: Include `<grub/time.h>'.
40382 (grub_millisleep): New function.
40383 * kern/i386/pc/init.c: Include `<grub/time.h>'.
40384 (grub_millisleep): New function.
40385 * kern/powerpc/ieee1275/init.c: Include `<grub/time.h>'.
40386 Remove `grub/machine/time.h' include.
40387 (grub_millisleep): New function.
40388 * kern/sparc64/ieee1275/init.c: Include `<grub/time.h>'.
40389 Remove `grub/machine/time.h' include.
40390 (grub_millisleep): New function.
40392 * include/grub/misc.h (grub_div_roundup): New function.
40394 * kern/misc.c: Include `<grub/time.h>'.
40395 (grub_millisleep_generic): New function.
40397 * conf/i386-efi.rmk (kernel_mod_HEADERS): Remove `i386/efi/time.h'.
40399 * conf/i386-pc.rmk (kernel_img_HEADERS): Remove `machine/time.h'.
40401 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Remove
40402 `machine/time.h'. Add `time.h'.
40403 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
40405 2007-10-21 Robert Millan <rmh@aybabtu.com>
40407 * include/grub/misc.h (grub_max): New function.
40409 2007-10-21 Robert Millan <rmh@aybabtu.com>
40411 * util/misc.c (grub_util_info): Call fflush() before returning.
40413 2007-10-20 Robert Millan <rmh@aybabtu.com>
40415 * genmk.rb (Image): Copy `extra_flags' from here ...
40416 (PModule): ... to here. Use it in `#{obj}: #{src}' rule.
40418 * commands/i386/cpuid.c (grub_cmd_cpuid): Add __attribute__ ((unused))
40419 to `argc' and `args' arguments.
40421 2007-10-17 Robert Millan <rmh@aybabtu.com>
40423 * kern/i386/loader.S: New file.
40425 * kern/i386/pc/startup.S (grub_linux_prot_size): Moved from here ...
40426 * kern/i386/loader.S (grub_linux_prot_size)... to here.
40427 * kern/i386/pc/startup.S (grub_linux_tmp_addr): Moved from here ...
40428 * kern/i386/loader.S (grub_linux_tmp_addr)... to here.
40429 * kern/i386/pc/startup.S (grub_linux_real_addr): Moved from here ...
40430 * kern/i386/loader.S (grub_linux_real_addr)... to here.
40431 * kern/i386/pc/startup.S (grub_linux_boot_zimage): Moved from here ...
40432 * kern/i386/loader.S (grub_linux_boot_zimage)... to here.
40433 * kern/i386/pc/startup.S (grub_linux_boot_bzimage): Moved from here ...
40434 * kern/i386/loader.S (grub_linux_boot_bzimage)... to here.
40435 * kern/i386/pc/startup.S (grub_multiboot_real_boot): Moved from here ...
40436 * kern/i386/loader.S (grub_multiboot_real_boot)... to here.
40437 * kern/i386/pc/startup.S (grub_multiboot2_real_boot): Moved from here ...
40438 * kern/i386/loader.S (grub_multiboot2_real_boot)... to here.
40440 * kern/i386/realmode.S: New file.
40442 * kern/i386/pc/startup.S (protstack): Moved from here ...
40443 * kern/i386/realmode.S (protstack)... to here.
40444 * kern/i386/pc/startup.S (gdt): Moved from here ...
40445 * kern/i386/realmode.S (gdt)... to here.
40446 * kern/i386/pc/startup.S (prot_to_real): Moved from here ...
40447 * kern/i386/realmode.S (prot_to_real)... to here.
40449 * kern/i386/pc/startup.S: Include `kern/i386/loader.S' and
40450 `kern/i386/realmode.S'.
40452 2007-10-17 Robert Millan <rmh@aybabtu.com>
40454 * include/grub/i386/loader.h: New file.
40456 * include/grub/i386/pc/loader.h (grub_linux_prot_size)
40457 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40458 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40459 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40460 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): Moved from here ...
40461 * include/grub/i386/loader.h (grub_linux_prot_size)
40462 (grub_linux_tmp_addr, grub_linux_real_addr, grub_os_area_addr)
40463 (grub_os_area_size, grub_linux_boot_zimage, grub_linux_boot_bzimage)
40464 (grub_multiboot_real_boot, grub_multiboot2_real_boot)
40465 (grub_rescue_cmd_linux, grub_rescue_cmd_initrd): ... to here.
40467 * include/grub/i386/pc/loader.h: Include `grub/cpu/loader.h'.
40469 2007-10-15 Robert Millan <rmh@aybabtu.com>
40471 * normal/misc.c (grub_normal_print_device_info): Do not probe for
40472 filesystem when dev->disk is unset.
40473 Do probe for filesystem even when dev->disk->has_partitions is set.
40474 In case a filesystem is found, always report it.
40475 In case it isn't, if dev->disk->has_partitions is set, report that
40476 a partition table was found instead of reporting that no filesystem
40477 could be identified.
40479 2007-10-12 Robert Millan <rmh@aybabtu.com>
40481 * conf/powerpc-ieee1275.rmk (grub_mkimage_SOURCES): Replace reference
40482 to util/powerpc/ieee1275/grub-mkimage.c with util/elf/grub-mkimage.c.
40484 * include/grub/types.h (grub_host_to_target16): New macro.
40485 (grub_host_to_target32): Likewise.
40486 (grub_host_to_target64): Likewise.
40487 (grub_target_to_host16): Likewise.
40488 (grub_target_to_host32): Likewise.
40489 (grub_target_to_host64): Likewise.
40491 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
40492 Renamed from to ...
40493 (GRUB_MOD_ALIGN): ...this. Update all users.
40495 * util/elf/grub-mkimage.c (load_note): Replace grub_cpu_to_be32 with
40496 grub_host_to_target32.
40497 Replace grub_be_to_cpu32 with grub_target_to_host32.
40498 (load_modules): Likewise.
40499 (add_segments): Replace grub_be_to_cpu16 with grub_target_to_host16.
40500 Replace grub_be_to_cpu32 with grub_target_to_host32.
40501 Replace grub_cpu_to_be16 with grub_host_to_target16.
40502 Replace grub_cpu_to_be32 grub_host_to_target32.
40504 2007-10-12 Robert Millan <rmh@aybabtu.com>
40506 * util/powerpc/ieee1275/grub-mkimage.c: Moved to ...
40507 * util/elf/grub-mkimage.c: ... here.
40509 * DISTLIST: Add `util/elf/grub-mkimage.c'. Remove
40510 `util/powerpc/ieee1275/grub-mkimage.c'.
40512 2007-10-07 Robert Millan <rmh@aybabtu.com>
40514 * kern/powerpc/ieee1275/init.c: Rename HEAP_LIMIT to HEAP_MAX_ADDR,
40515 and make it easier to figure out.
40516 Add HEAP_MIN_SIZE and HEAP_MAX_ADDR definitions.
40517 (grub_claim_heap): Use HEAP_MAX_ADDR rather than taking a parameter.
40518 Do not avoid claiming a region above HEAP_MAX_ADDR if that would
40519 leave us with less than HEAP_MIN_SIZE total heap.
40520 Avoid our total amount of heap to surpass HEAP_MAX_SIZE.
40522 2007-10-03 Robert Millan <rmh@aybabtu.com>
40524 * include/grub/i386/io.h: New file.
40525 * commands/i386/pc/play.c (inb): Removed.
40527 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40529 * term/i386/pc/serial.c (inb): Removed.
40531 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40533 * term/i386/pc/vga.c (inb): Removed.
40535 Include grub/cpu/io.h. Replace inb() with grub_inb() and outb()
40538 2007-10-02 Robert Millan <rmh@aybabtu.com>
40540 * conf/i386-efi.rmk (grub_emu_SOURCES): Add util/hostfs.c.
40541 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
40542 Reported by Marcin Kurek.
40544 2007-09-07 Robert Millan <rmh@aybabtu.com>
40546 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_test_flag): Detect
40547 SmartFirmware version updates (as released by Sven Luther), and avoid
40548 setting GRUB_IEEE1275_FLAG_NO_PARTITION_0 or
40549 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS unless the running version is
40552 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40554 From Hitoshi Ozeki:
40555 * kern/i386/pc/init.c (compact_mem_regions): Decrease NUM_REGIONS
40556 when merging two regions.
40558 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40560 * kern/rescue.c (grub_enter_rescue_mode): Free ARGS.
40561 * normal/completion.c (grub_normal_do_completion): Likewise.
40562 Reported by Hitoshi Ozeki.
40564 2007-09-03 Yoshinori K. Okuji <okuji@enbug.org>
40566 Do not use devices at boot in chainloading.
40568 * loader/i386/pc/chainloader.c (boot_drive): New variable.
40569 (boot_part_addr): Likewise.
40570 (grub_chainloader_boot): Simply call grub_chainloader_real_boot
40571 with BOOT_DRIVE and BOOT_PART_ADDR.
40572 (grub_chainloader_cmd): Set BOOT_DRIVE and BOOT_PART_ADDR.
40573 Reported by Hitoshi Ozeki <h-ozeki@ck2.so-net.ne.jp>.
40575 2007-08-29 Robert Millan <rmh@aybabtu.com>
40577 Patch from Simon Peter <dn.tlp@gmx.net>:
40578 * genmk.rb (Utility): Append $(#{src}_DEPENDENCIES) to #{obj} targets.
40579 * conf/i386-pc.rmk: Replace grub-probe_DEPENDENCIES with
40580 util/grub-probe.c_DEPENDENCIES. Replace grub-setup_DEPENDENCIES with
40581 util/i386/pc/grub-setup.c_DEPENDENCIES.
40582 * conf/i386-efi.rmk: Replace grub-probe_DEPENDENCIES with
40583 util/grub-probe.c_DEPENDENCIES.
40584 * conf/powerpc-ieee1275.rmk: Likewise.
40586 2007-08-28 Robert Millan <rmh@aybabtu.com>
40588 * util/i386/get_disk_name.c: New. Implement grub_util_get_disk_name()
40589 to tell grub-mkdevicemap how to name devices.
40590 * util/ieee1275/get_disk_name.c: Likewise (using "ofpathname -a"
40593 * conf/i386-efi.rmk (grub_mkdevicemap_SOURCES): Add
40594 util/i386/get_disk_name.c.
40595 * conf/i386-pc.rmk (grub_mkdevicemap_SOURCES): Likewise.
40596 * conf/powerpc-ieee1275.rmk (grub_mkdevicemap_SOURCES): Add
40597 util/ieee1275/get_disk_name.c.
40599 * include/grub/util/misc.h: grub_util_get_disk_name() declaration.
40601 * DISTLIST: Add util/i386/get_disk_name.c and
40602 util/ieee1275/get_disk_name.c.
40604 * util/grub-mkdevicemap.c: Replace device naming logic with
40605 grub_util_get_disk_name() calls.
40607 2007-08-20 Robert Millan <rmh@aybabtu.com>
40609 * normal/menu.c (run_menu): Refer to seconds as "s" not "seconds"
40610 (so that it works for both plural and singular quantities).
40612 2007-08-05 Robert Millan <rmh@aybabtu.com>
40614 * util/grub.d/10_linux.in (test_gt): Strip out vmlinu[xz]- prefix
40615 so that [xz] isn't taken into account when determining order.
40617 2007-08-02 Marco Gerards <marco@gnu.org>
40619 * DISTLIST: Add `disk/host.c', `fs/ntfs.c', `include/multiboot.h',
40620 `include/multiboot2.h', `include/grub/elfload.h',
40621 `include/multiboot.h', `include/grub/multiboot.h',
40622 `include/grub/multiboot_loader.h', `include/grub/multiboot2.h',
40623 `include/grub/i386/pc/biosdisk.h', `include/grub/util/biosdisk.h',
40624 `kern/elf.c', `loader/multiboot_loader.c',
40625 `loader/multiboot_loader_normal.c', `loader/multiboot2.c',
40626 `loader/i386/pc/multiboot2.c',
40627 `loader/powerpc/ieee1275/multiboot2.c', `util/hostfs.c' and
40628 `util/i386/pc/grub-mkrescue.in'. Remove
40629 `include/grub/biosdisk.h', `include/grub/i386/pc/multiboot.h',
40630 `include/grub/i386/pc/util/biosdisk.h' and
40631 `include/grub/powerpc/ieee1275/multiboot.h'.
40633 2007-08-02 Bean <bean123ch@gmail.com>
40635 * conf/common.rmk (pkgdata_MODULES): Add ntfs.mod.
40636 (ntfs_mod_SOURCES): New variable.
40637 (ntfs_mod_CFLAGS): Likewise.
40638 (ntfs_mod_LDFLAGS): Likewise.
40640 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ntfs.c.
40641 (grub_probe_SOURCES): Likewise.
40642 (grub_emu_SOURCES): Likewise.
40644 * conf/i386-efi.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40645 (grub_emu_SOURCES): Likewise.
40647 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add fs/ntfs.c.
40648 (grub_emu_SOURCES): Likewise.
40650 * conf/misc.c (grub_utf16_to_utf8): Fix unicode conversion bug.
40652 * fs/ntfs.c: New file.
40654 2007-08-02 Bean <bean123ch@gmail.com>
40656 * disk.h (grub_disk): Use NESTED_FUNC_ATTR.
40658 * file.h (grub_file): Likewise.
40660 * fshelp.h (grub_fshelp_read_file): Likewise.
40662 * util/i386/pc/grub-setup.c (setup): Likewise.
40663 (save_first_sector): Likewise.
40664 (save_blocklists): Likewise.
40666 * fs/affs.c (grub_affs_read_file): Likewise.
40668 * fs/ext2.c (grub_ext2_read_file): Likewise.
40670 * fs/fat.c (grub_fat_read_data): Likewise.
40672 * fs/fshelp.c (grub_fshelp_read_file): Likewise.
40674 * fs/hfs.c (grub_hfs_read_file): Likewise.
40676 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
40678 * fs/jfs.c (grub_jfs_read_file): Likewise.
40680 * fs/minix.c (grub_minix_read_file): Likewise.
40682 * fs/sfs.c (grub_sfs_read_file): Likewise.
40684 * fs/ufs.c (grub_ufs_read_file): Likewise.
40686 * fs/xfs.c (grub_xfs_read_file): Likewise.
40688 * command/blocklist.c (read_blocklist): Likewise.
40689 (print_blocklist): Likewise.
40691 2007-08-02 Marco Gerards <marco@gnu.org>
40693 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/host.c' and
40696 * disk/host.c: New file.
40698 * util/hostfs.c: Likewise.
40700 * fs/hfsplus.c (grub_hfsplus_mount): When reading out of disk,
40701 return `GRUB_ERR_BAD_FS'.
40702 * fs/sfs.c (grub_sfs_mount): Likewise.
40703 * fs/xfs.c (grub_xfs_mount): Likewise.
40705 * include/grub/disk.h (enum grub_disk_dev_id): Add
40706 `GRUB_DISK_DEVICE_HOST_ID'.
40708 * util/grub-emu.c (main): Initialize and de-initialize hostfs.
40710 2007-07-24 Jerone Young <jerone@gmail.com>
40712 * conf/i386-pc.rmk: Add Multiboot loader and multiboot 2 to multiboot
40713 modules for compilation.
40714 * conf/powerpc-ieee1275.rmk: Likewise.
40716 * include/multiboot.h: Move multiboot definitions to one file. Rename
40717 many definitions to not get grub specific.
40718 * include/multiboot2.h: Create header with multiboot 2 definitions.
40719 * include/grub/multiboot.h: Header for grub specific function
40720 prototypes and definitions.
40721 * include/grub/multiboot2.h: Likewise.
40722 * include/grub/multiboot_loader.h: Likewise.
40723 * include/grub/i386/pc/multiboot.h: Removed.
40724 * include/grub/powerpc/ieee1275/multiboot.h: Removed.
40726 * loader/multiboot_loader.c: Created to act as a proxy for multiboot 1
40727 and 2 to allow for one multiboot and module commands.
40728 * loader/multiboot2.c: Add multiboot2 functionality.
40729 * loader/i386/pc/multiboot.c: Modify for new multiboot header location
40730 and definition names.
40731 * loader/i386/pc/multiboot2.c: Created to add i386 specific multiboot
40733 * loader/powerpc/ieee1275/multiboot2.c: Created to add powerpc
40734 ieee1275 specific multiboot2 code.
40736 * kern/i386/pc/startup.S: Change headers and definition names for
40737 multiboot. Add function grub_multiboot2_real_boot for multiboot 2.
40739 2007-07-22 Robert Millan <rmh@aybabtu.com>
40741 * geninitheader.sh: Process file specified in first parameter rather
40742 than hardcoding grub_modules_init.lst.
40743 * geninit.sh: Likewise. Also, construct header name dynamically rather
40744 than hardcoding grub_modules_init.h.
40746 * conf/common.rmk: Rename grub_modules_init.[ch] files associated with
40747 grub-emu to grub_emu_init.[ch]. Add rules to build analogous
40748 grub_probe_init.[ch] and grub_setup_init.[ch].
40750 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Replace
40751 grub_modules_init.h with grub_emu_init.h.
40752 (grub_probe_DEPENDENCIES, grub_probe_SOURCES): Add new
40753 grub_probe_init.[ch] files.
40754 * conf/i386-efi.rmk: Likewise.
40755 * conf/i386-pc.rmk: Likewise.
40756 (grub_setup_DEPENDENCIES, grub_setup_SOURCES): Add new
40757 grub_setup_init.[ch] files.
40759 * util/grub-emu.c: Replace grub_modules_init.h with grub_emu_init.h.
40760 * util/grub-probe.c: Include grub_probe_init.h. Use grub_init_all()
40761 to initialize modules rather than a list of hardcoded functions.
40762 * util/i386/pc/grub-setup.c: Include grub_setup_init.h. Use
40763 grub_init_all() to initialize modules rather than a list of hardcoded
40766 2007-07-22 Robert Millan <rmh@aybabtu.com>
40768 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set
40769 GRUB_IEEE1275_FLAG_NO_PARTITION_0 flag when running on SmartFirmware.
40771 2007-07-22 Robert Millan <rmh@aybabtu.com>
40773 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_flag): Add
40774 GRUB_IEEE1275_FLAG_BROKEN_OUTPUT flag.
40775 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options): Set this
40776 flag when running on SmartFirmware.
40777 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Avoid running
40778 "output-device output" command when GRUB_IEEE1275_FLAG_BROKEN_OUTPUT
40781 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
40782 Increase partno when GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS flag is set,
40783 rather than decreasing it.
40785 * util/i386/pc/grub-setup.c (setup): When embedding is required, but
40786 there's not enough space to do it, fail in the same way as when it
40787 can't be done because there are no partitions.
40789 * util/powerpc/ieee1275/grub-install.in: Improve error message shown
40790 when nvsetenv failed.
40792 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40794 * conf/i386-pc.rmk (CLEANFILES): Removed for grub-mkrescue,
40795 because this rule is automatically generated.
40796 (grub-mkrescue): Removed for the same reason as above.
40798 2007-07-22 Yoshinori K. Okuji <okuji@enbug.org>
40800 Migrate to GNU General Public License Version 3.
40802 * COPYING: Replaced with the plain text version of GPLv3.
40804 * config.guess: Updated from gnulib.
40805 * config.sub: Likewise.
40807 * geninit.sh: Output a GPLv3 copyright notice.
40808 * geninitheader.sh: Likewise.
40809 * genmodsrc.sh: Likewise.
40810 * gensymlist.sh.in: Likewise.
40812 * boot/i386/pc/boot.S: Upgraded to GPLv3.
40813 * boot/i386/pc/diskboot.S: Likewise.
40814 * boot/i386/pc/pxeboot.S: Likewise.
40815 * commands/blocklist.c: Likewise.
40816 * commands/boot.c: Likewise.
40817 * commands/cat.c: Likewise.
40818 * commands/cmp.c: Likewise.
40819 * commands/configfile.c: Likewise.
40820 * commands/echo.c: Likewise.
40821 * commands/help.c: Likewise.
40822 * commands/ls.c: Likewise.
40823 * commands/search.c: Likewise.
40824 * commands/terminal.c: Likewise.
40825 * commands/test.c: Likewise.
40826 * commands/videotest.c: Likewise.
40827 * commands/i386/cpuid.c: Likewise.
40828 * commands/i386/pc/halt.c: Likewise.
40829 * commands/i386/pc/play.c: Likewise.
40830 * commands/i386/pc/reboot.c: Likewise.
40831 * commands/i386/pc/vbeinfo.c: Likewise.
40832 * commands/i386/pc/vbetest.c: Likewise.
40833 * commands/ieee1275/halt.c: Likewise.
40834 * commands/ieee1275/reboot.c: Likewise.
40835 * commands/ieee1275/suspend.c: Likewise.
40836 * disk/loopback.c: Likewise.
40837 * disk/lvm.c: Likewise.
40838 * disk/raid.c: Likewise.
40839 * disk/efi/efidisk.c: Likewise.
40840 * disk/i386/pc/biosdisk.c: Likewise.
40841 * disk/ieee1275/ofdisk.c: Likewise.
40842 * font/manager.c: Likewise.
40843 * fs/affs.c: Likewise.
40844 * fs/ext2.c: Likewise.
40845 * fs/fat.c: Likewise.
40846 * fs/fshelp.c: Likewise.
40847 * fs/hfs.c: Likewise.
40848 * fs/hfsplus.c: Likewise.
40849 * fs/iso9660.c: Likewise.
40850 * fs/jfs.c: Likewise.
40851 * fs/minix.c: Likewise.
40852 * fs/sfs.c: Likewise.
40853 * fs/ufs.c: Likewise.
40854 * fs/xfs.c: Likewise.
40855 * hello/hello.c: Likewise.
40856 * include/grub/acorn_filecore.h: Likewise.
40857 * include/grub/arg.h: Likewise.
40858 * include/grub/bitmap.h: Likewise.
40859 * include/grub/boot.h: Likewise.
40860 * include/grub/cache.h: Likewise.
40861 * include/grub/device.h: Likewise.
40862 * include/grub/disk.h: Likewise.
40863 * include/grub/dl.h: Likewise.
40864 * include/grub/elfload.h: Likewise.
40865 * include/grub/env.h: Likewise.
40866 * include/grub/err.h: Likewise.
40867 * include/grub/file.h: Likewise.
40868 * include/grub/font.h: Likewise.
40869 * include/grub/fs.h: Likewise.
40870 * include/grub/fshelp.h: Likewise.
40871 * include/grub/gzio.h: Likewise.
40872 * include/grub/hfs.h: Likewise.
40873 * include/grub/kernel.h: Likewise.
40874 * include/grub/loader.h: Likewise.
40875 * include/grub/lvm.h: Likewise.
40876 * include/grub/misc.h: Likewise.
40877 * include/grub/mm.h: Likewise.
40878 * include/grub/net.h: Likewise.
40879 * include/grub/normal.h: Likewise.
40880 * include/grub/parser.h: Likewise.
40881 * include/grub/partition.h: Likewise.
40882 * include/grub/pc_partition.h: Likewise.
40883 * include/grub/raid.h: Likewise.
40884 * include/grub/rescue.h: Likewise.
40885 * include/grub/script.h: Likewise.
40886 * include/grub/setjmp.h: Likewise.
40887 * include/grub/symbol.h: Likewise.
40888 * include/grub/term.h: Likewise.
40889 * include/grub/terminfo.h: Likewise.
40890 * include/grub/tparm.h: Likewise.
40891 * include/grub/types.h: Likewise.
40892 * include/grub/video.h: Likewise.
40893 * include/grub/efi/api.h: Likewise.
40894 * include/grub/efi/chainloader.h: Likewise.
40895 * include/grub/efi/console.h: Likewise.
40896 * include/grub/efi/console_control.h: Likewise.
40897 * include/grub/efi/disk.h: Likewise.
40898 * include/grub/efi/efi.h: Likewise.
40899 * include/grub/efi/pe32.h: Likewise.
40900 * include/grub/efi/time.h: Likewise.
40901 * include/grub/i386/linux.h: Likewise.
40902 * include/grub/i386/setjmp.h: Likewise.
40903 * include/grub/i386/types.h: Likewise.
40904 * include/grub/i386/efi/kernel.h: Likewise.
40905 * include/grub/i386/efi/loader.h: Likewise.
40906 * include/grub/i386/efi/time.h: Likewise.
40907 * include/grub/i386/pc/biosdisk.h: Likewise.
40908 * include/grub/i386/pc/boot.h: Likewise.
40909 * include/grub/i386/pc/chainloader.h: Likewise.
40910 * include/grub/i386/pc/console.h: Likewise.
40911 * include/grub/i386/pc/init.h: Likewise.
40912 * include/grub/i386/pc/kernel.h: Likewise.
40913 * include/grub/i386/pc/loader.h: Likewise.
40914 * include/grub/i386/pc/memory.h: Likewise.
40915 * include/grub/i386/pc/multiboot.h: Likewise.
40916 * include/grub/i386/pc/serial.h: Likewise.
40917 * include/grub/i386/pc/time.h: Likewise.
40918 * include/grub/i386/pc/vbe.h: Likewise.
40919 * include/grub/i386/pc/vbeblit.h: Likewise.
40920 * include/grub/i386/pc/vbefill.h: Likewise.
40921 * include/grub/i386/pc/vbeutil.h: Likewise.
40922 * include/grub/i386/pc/vga.h: Likewise.
40923 * include/grub/ieee1275/ieee1275.h: Likewise.
40924 * include/grub/ieee1275/ofdisk.h: Likewise.
40925 * include/grub/powerpc/libgcc.h: Likewise.
40926 * include/grub/powerpc/setjmp.h: Likewise.
40927 * include/grub/powerpc/types.h: Likewise.
40928 * include/grub/powerpc/ieee1275/biosdisk.h: Likewise.
40929 * include/grub/powerpc/ieee1275/console.h: Likewise.
40930 * include/grub/powerpc/ieee1275/ieee1275.h: Likewise.
40931 * include/grub/powerpc/ieee1275/kernel.h: Likewise.
40932 * include/grub/powerpc/ieee1275/loader.h: Likewise.
40933 * include/grub/powerpc/ieee1275/multiboot.h: Likewise.
40934 * include/grub/powerpc/ieee1275/time.h: Likewise.
40935 * include/grub/powerpc/ieee1275/util/biosdisk.h: Likewise.
40936 * include/grub/sparc64/libgcc.h: Likewise.
40937 * include/grub/sparc64/setjmp.h: Likewise.
40938 * include/grub/sparc64/types.h: Likewise.
40939 * include/grub/sparc64/ieee1275/console.h: Likewise.
40940 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
40941 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
40942 * include/grub/sparc64/ieee1275/time.h: Likewise.
40943 * include/grub/util/biosdisk.h: Likewise.
40944 * include/grub/util/getroot.h: Likewise.
40945 * include/grub/util/lvm.h: Likewise.
40946 * include/grub/util/misc.h: Likewise.
40947 * include/grub/util/raid.h: Likewise.
40948 * include/grub/util/resolve.h: Likewise.
40949 * io/gzio.c: Likewise.
40950 * kern/device.c: Likewise.
40951 * kern/disk.c: Likewise.
40952 * kern/dl.c: Likewise.
40953 * kern/elf.c: Likewise.
40954 * kern/env.c: Likewise.
40955 * kern/err.c: Likewise.
40956 * kern/file.c: Likewise.
40957 * kern/fs.c: Likewise.
40958 * kern/loader.c: Likewise.
40959 * kern/main.c: Likewise.
40960 * kern/misc.c: Likewise.
40961 * kern/mm.c: Likewise.
40962 * kern/parser.c: Likewise.
40963 * kern/partition.c: Likewise.
40964 * kern/rescue.c: Likewise.
40965 * kern/term.c: Likewise.
40966 * kern/efi/efi.c: Likewise.
40967 * kern/efi/init.c: Likewise.
40968 * kern/efi/mm.c: Likewise.
40969 * kern/i386/dl.c: Likewise.
40970 * kern/i386/efi/init.c: Likewise.
40971 * kern/i386/efi/startup.S: Likewise.
40972 * kern/i386/pc/init.c: Likewise.
40973 * kern/i386/pc/lzo1x.S: Likewise.
40974 * kern/i386/pc/startup.S: Likewise.
40975 * kern/ieee1275/ieee1275.c: Likewise.
40976 * kern/powerpc/cache.S: Likewise.
40977 * kern/powerpc/dl.c: Likewise.
40978 * kern/powerpc/ieee1275/cmain.c: Likewise.
40979 * kern/powerpc/ieee1275/crt0.S: Likewise.
40980 * kern/powerpc/ieee1275/init.c: Likewise.
40981 * kern/powerpc/ieee1275/openfw.c: Likewise.
40982 * kern/sparc64/cache.S: Likewise.
40983 * kern/sparc64/dl.c: Likewise.
40984 * kern/sparc64/ieee1275/init.c: Likewise.
40985 * kern/sparc64/ieee1275/openfw.c: Likewise.
40986 * loader/efi/chainloader.c: Likewise.
40987 * loader/efi/chainloader_normal.c: Likewise.
40988 * loader/i386/efi/linux.c: Likewise.
40989 * loader/i386/efi/linux_normal.c: Likewise.
40990 * loader/i386/pc/chainloader.c: Likewise.
40991 * loader/i386/pc/chainloader_normal.c: Likewise.
40992 * loader/i386/pc/linux.c: Likewise.
40993 * loader/i386/pc/linux_normal.c: Likewise.
40994 * loader/i386/pc/multiboot.c: Likewise.
40995 * loader/i386/pc/multiboot_normal.c: Likewise.
40996 * loader/powerpc/ieee1275/linux.c: Likewise.
40997 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
40998 * normal/arg.c: Likewise.
40999 * normal/cmdline.c: Likewise.
41000 * normal/command.c: Likewise.
41001 * normal/completion.c: Likewise.
41002 * normal/execute.c: Likewise.
41003 * normal/function.c: Likewise.
41004 * normal/lexer.c: Likewise.
41005 * normal/main.c: Likewise.
41006 * normal/menu.c: Likewise.
41007 * normal/menu_entry.c: Likewise.
41008 * normal/misc.c: Likewise.
41009 * normal/parser.y: Likewise.
41010 * normal/script.c: Likewise.
41011 * normal/i386/setjmp.S: Likewise.
41012 * normal/powerpc/setjmp.S: Likewise.
41013 * normal/sparc64/setjmp.S: Likewise.
41014 * partmap/acorn.c: Likewise.
41015 * partmap/amiga.c: Likewise.
41016 * partmap/apple.c: Likewise.
41017 * partmap/gpt.c: Likewise.
41018 * partmap/pc.c: Likewise.
41019 * partmap/sun.c: Likewise.
41020 * term/gfxterm.c: Likewise.
41021 * term/terminfo.c: Likewise.
41022 * term/efi/console.c: Likewise.
41023 * term/i386/pc/console.c: Likewise.
41024 * term/i386/pc/serial.c: Likewise.
41025 * term/i386/pc/vesafb.c: Likewise.
41026 * term/i386/pc/vga.c: Likewise.
41027 * term/ieee1275/ofconsole.c: Likewise.
41028 * util/biosdisk.c: Likewise.
41029 * util/console.c: Likewise.
41030 * util/genmoddep.c: Likewise.
41031 * util/getroot.c: Likewise.
41032 * util/grub-emu.c: Likewise.
41033 * util/grub-mkdevicemap.c: Likewise.
41034 * util/grub-probe.c: Likewise.
41035 * util/lvm.c: Likewise.
41036 * util/misc.c: Likewise.
41037 * util/raid.c: Likewise.
41038 * util/resolve.c: Likewise.
41039 * util/update-grub.in: Likewise.
41040 * util/update-grub_lib.in: Likewise.
41041 * util/grub.d/00_header.in: Likewise.
41042 * util/grub.d/10_hurd.in: Likewise.
41043 * util/grub.d/10_linux.in: Likewise.
41044 * util/i386/efi/grub-install.in: Likewise.
41045 * util/i386/efi/grub-mkimage.c: Likewise.
41046 * util/i386/pc/grub-install.in: Likewise.
41047 * util/i386/pc/grub-mkimage.c: Likewise.
41048 * util/i386/pc/grub-mkrescue.in: Likewise.
41049 * util/i386/pc/grub-setup.c: Likewise.
41050 * util/i386/pc/misc.c: Likewise.
41051 * util/powerpc/ieee1275/grub-install.in: Likewise.
41052 * util/powerpc/ieee1275/grub-mkimage.c: Likewise.
41053 * util/powerpc/ieee1275/misc.c: Likewise.
41054 * video/bitmap.c: Likewise.
41055 * video/video.c: Likewise.
41056 * video/i386/pc/vbe.c: Likewise.
41057 * video/i386/pc/vbeblit.c: Likewise.
41058 * video/i386/pc/vbefill.c: Likewise.
41059 * video/i386/pc/vbeutil.c: Likewise.
41060 * video/readers/tga.c: Likewise.
41062 2007-07-02 Robert Millan <rmh@aybabtu.com>
41064 * conf/i386-efi.rmk: Replace obsolete reference to
41065 util/i386/pc/biosdisk.c with util/biosdisk.c, and util/i386/pc/getroot.c
41066 with util/getroot.c.
41067 * conf/powerpc-ieee1275.rmk: Likewise.
41068 * conf/sparc64-ieee1275.rmk: Likewise.
41070 * util/grub-emu.c (main): Fix unchecked pointer handling.
41072 2007-07-02 Robert Millan <rmh@aybabtu.com>
41074 * util/i386/efi/grub-install.in: Allow `grub_probe --target=partmap'
41075 invocation to fail, in order to support partition-less media.
41077 * util/i386/pc/grub-install.in: Likewise.
41079 * util/powerpc/ieee1275/grub-install.in: Use grub-probe to determine
41080 which fs or partmap modules are needed (akin to its sister scripts).
41082 Also use grub-probe to get rid of unportable /proc/mounts check.
41084 Print the same informational message that the other scripts do, before
41087 2007-06-23 Robert Millan <rmh@aybabtu.com>
41089 * util/update-grub_lib.in (font_path): New function. Determine whether
41090 a font file can be found and, if so, echo the GRUB path to it.
41092 * util/update-grub.in: Handle multiple terminals depending on user
41093 input, platform availability and font file presence. Propagate
41094 variables of our findings to /etc/grub.d/ children.
41096 * util/grub.d/00_header.in: Handle multiple terminals, based on
41097 environment setup by update-grub.
41099 2007-06-23 Robert Millan <rmh@aybabtu.com>
41101 * conf/i386-pc.rmk (pkgdata_MODULES): Add serial.mod.
41103 2007-06-21 Robert Millan <rmh@aybabtu.com>
41105 * include/grub/i386/pc/kernel.h: Define GRUB_KERNEL_MACHINE_DATA_END to
41106 indicate end of data section in kernel image.
41107 * include/grub/i386/efi/kernel.h: Define GRUB_KERNEL_MACHINE_PREFIX and
41108 GRUB_KERNEL_MACHINE_DATA_END.
41110 * kern/i386/pc/startup.S: Do not initialize grub_prefix, only reserve
41112 * kern/i386/efi/startup.S: Likewise.
41114 * util/i386/pc/grub-mkimage.c: Initialize grub_prefix to /boot/grub
41115 during image generation. Implement --prefix option to override this
41117 * util/i386/efi/grub-mkimage.c: Likewise.
41119 * util/update-grub_lib.in (convert_system_path_to_grub_path): Split
41120 code to make path relative to its root into a separate function.
41122 * util/i386/pc/grub-install.in: Use newly provided
41123 make_system_path_relative_to_its_root() to convert ${grubdir}, then
41124 pass the result to grub-install --prefix.
41126 2007-06-13 Robert Millan <rmh@aybabtu.com>
41128 * include/grub/util/misc.h: Define DEFAULT_DIRECTORY and
41129 DEFAULT_DEVICE_MAP.
41130 * util/grub-emu.c: Use above definitions from misc.h instead of
41132 * util/grub-mkdevicemap.c: Likewise.
41133 * util/i386/pc/grub-setup.c: Likewise.
41134 * util/grub-probe.c: Likewise.
41135 (probe): Abort with grub_util_error() when either
41136 grub_guess_root_device or grub_util_get_grub_dev fails.
41138 2007-06-12 Robert Millan <rmh@aybabtu.com>
41140 * normal/command.c (grub_command_execute): Use NULL rather than 0 for
41141 "pager" assignment.
41142 * util/biosdisk.c (grub_util_biosdisk_get_grub_dev): Likewise for
41144 * util/grub-probe.c (probe): Likewise for "drive_name".
41146 2007-06-11 Robert Millan <rmh@aybabtu.com>
41148 * util/i386/pc/grub-mkrescue.in: Pad both floppy images with zeroes,
41149 not just the cdrom one.
41151 2007-06-11 Robert Millan <rmh@aybabtu.com>
41153 * util/i386/pc/grub-mkrescue.in: Add "set -e".
41154 Add --pkglibdir=DIR option to override pkglibdir.
41155 Mention --image-type=TYPE in help output.
41156 Fix --grub-mkimage (it was a no-op).
41157 Abort gracefully when no parameter is given.
41159 2007-06-11 Robert Millan <rmh@aybabtu.com>
41161 * util/i386/pc/grub-mkrescue.in: New file.
41162 * conf/i386-pc.rmk: Add its build declarations. Put it in bin_SCRIPTS.
41163 * Makefile.in: Handle bin_SCRIPTS.
41165 2007-06-10 Vesa Jaaskelainen <chaac@nic.fi>
41167 * term/gfxterm.c (grub_gfxterm_init): Added support for specifying
41168 list of video modes.
41170 2007-06-06 Robert Millan <rmh@aybabtu.com>
41172 * util/update-grub_lib.in (convert_system_path_to_grub_path): Abort if
41173 file doesn't exist, or if it is in a filesystem grub can't read.
41175 * util/update-grub.in: Set fallback for GRUB_FS check to "unknown". Do
41176 not abort if GRUB_DRIVE could not be defined. Rearrange generated
41177 header comment to fit in 80 columns when the variables are resolved.
41179 * util/grub.d/00_header.in: Only set root variable when GRUB_DRIVE
41180 could be identified by update-grub. Remove redundant check for
41181 unifont.pff existence (since convert_system_path_to_grub_path now
41184 2007-06-04 Robert Millan <rmh@aybabtu.com>
41186 * conf/i386-efi.rmk (grub_probe_SOURCES): Add partmap/apple.c.
41188 * conf/i386-pc.rmk (grub_probe_SOURCES): Likewise.
41190 * conf/powerpc-ieee1275.rmk (grub_probe_SOURCES): Add partmap/pc.c.
41192 2007-06-04 Robert Millan <rmh@aybabtu.com>
41194 * conf/powerpc-ieee1275.rmk: Enable grub-mkdevicemap and grub-probe.
41196 * include/grub/partition.h: Declare grub_apple_partition_map_init and
41197 grub_apple_partition_map_fini.
41200 (grub_util_biosdisk_open): Replace BLKGETSIZE with BLKGETSIZE64 (needed
41201 to access >2 TiB disks).
41203 Print disk->total_sectors with %llu instead of %lu, since this
41204 variable is always 64-bit (prevents wrong disk size from being displayed
41205 on either >2 TiB disk or big-endian CPU).
41207 (grub_util_biosdisk_get_grub_dev): Convert gpt_partition_map handling
41208 into a generic case that supports all (sane) partition maps.
41210 Stop using grub_cpu_to_le32() on dos_part / bsd_part since it actually
41213 * util/grub-probe.c: Call grub_apple_partition_map_init() before probe()
41214 and grub_apple_partition_map_fini() after that.
41216 2007-06-01 Robert Millan <rmh@aybabtu.com>
41218 * util/update-grub.in: Export GRUB_CMDLINE_LINUX.
41220 * util/grub.d/00_header.in: Only enable gfxterm when
41221 convert_system_path_to_grub_path() succeeds.
41223 2007-05-20 Robert Millan <rmh@aybabtu.com>
41225 * util/update-grub_lib.in: New file.
41226 * DISTLIST: Add update-grub_lib.in.
41227 * conf/common.rmk: Generate update-grub_lib and install it in
41229 * Makefile.in: Add install routine for $(lib_DATA).
41231 * util/grub.d/00_header.in: Use convert_system_path_to_grub_path()
41232 function provided by update-grub_lib to support arbitrary paths of
41234 * util/update-grub.in: Use convert_system_path_to_grub_path() to
41235 initialize GRUB_DRIVE_BOOT and GRUB_DRIVE_BOOT_GRUB variables.
41237 2007-05-19 Robert Millan <rmh@aybabtu.com>
41239 * commands/i386/cpuid.c: New module.
41240 * DISTLIST: Add it.
41241 * conf/i386-efi.rmk: Enable cpuid.mod.
41242 * conf/i386-pc.rmk: Likewise.
41244 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41246 * kern/disk.c (grub_disk_read): Check return value of
41249 2007-05-18 Jeroen Dekkers <jeroen@dekkers.cx>
41251 * util/getroot.c (grub_util_get_grub_dev): Support partitionable
41253 * disk/raid.c (grub_raid_open): Likewise.
41255 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41257 * util/biosdisk.c (linux_find_partition): Allocate real_dev on the
41258 stack instead of on the heap.
41260 * kern/disk.c (grub_disk_read): Make sure tmp_buf is big enough
41261 before doing a read on it.
41263 * configure.ac: Only use -fno-stack-protector for the target
41266 2007-05-17 Jeroen Dekkers <jeroen@dekkers.cx>
41268 * video/i386/pc/vbe.c (grub_video_vbe_create_render_target): Add
41269 __attribute_ ((unused)) to mode_type argument.
41271 * util/getroot.c (grub_guess_root_device): Fix #endif.
41273 * kern/misc.c (memcmp): Fix prototype.
41275 * include/grub/partition.h [GRUB_UTIL]
41276 (grub_gpt_partition_map_init): Add prototype.
41277 (grub_gpt_partition_map_fini): Likewise.
41279 * fs/jfs.c (struct grub_jfs_inode): Put __attribute__ ((packed)
41280 at the right place.
41282 * fs/fat.c (grub_fat_mount): Replace ~0UL with ~0U.
41283 (grub_fat_read_data): Likewise.
41284 (grub_fat_find_dir): Likewise.
41286 * font/manager.c (find_glyph): Make table a const.
41287 (grub_font_get_glyph): Remove bitmap from if statement.
41289 2007-05-16 Jeroen Dekkers <jeroen@dekkers.cx>
41291 * util/getroot.c (grub_guess_root_device): Remove RAID and LVM
41292 code, first search for device in /dev/mapper, then in /dev.
41293 (grub_util_get_grub_dev): New function.
41294 * include/grub/util/getroot.h (grub_util_get_grub_dev): Add
41296 * util/grub-probe.c (probe): Remove check for RAID, call
41297 grub_util_get_grub_dev() instead of
41298 grub_util_biosdisk_get_grub_dev().
41299 * util/grub-emu.c (main): Call grub_util_get_grub_dev() instead of
41300 grub_util_biosdisk_get_grub_dev().
41301 * util/i386/pc/grub-setup.c (main): Likewise.
41303 2007-05-16 Robert Millan <rmh@aybabtu.com>
41305 * DISTLIST: Update for the latest changes.
41306 * conf/i386-pc.rmk: Use the new paths for util/getroot.c,
41307 util/grub-mkdevicemap.c, util/grub-probe.c and util/biosdisk.c.
41308 * util/grub-emu.c: Replace grub/i386/pc/util/biosdisk.h with
41309 grub/util/biosdisk.h.
41310 * util/i386/pc/grub-setup.c: Replace grub/machine/util/biosdisk.h with
41311 grub/util/biosdisk.h.
41313 2007-05-16 Robert Millan <rmh@aybabtu.com>
41315 * util/grub.d/00_header.in: Set default gfxmode to `640x480'.
41317 2007-05-16 Robert Millan <rmh@aybabtu.com>
41319 * util/i386/efi/grub-install.in: New.
41320 * conf/i386-efi.rmk: Enable grub-mkdevicemap, grub-probe and the
41321 newly added grub-install.
41322 * util/biosdisk.c: Remove unnecessary grub/machine/biosdisk.h
41324 * util/getroot.c: Replace grub/i386/pc/util/biosdisk.h with
41325 grub/util/biosdisk.h.
41326 * util/grub-probe.c: Replace grub/machine/util/biosdisk.h with
41327 grub/util/biosdisk.h.
41329 2007-05-16 Robert Millan <rmh@aybabtu.com>
41331 * include/grub/i386/pc/util/biosdisk.h: Moved to ...
41332 * include/grub/util/biosdisk.h: ... here.
41333 * util/i386/pc/biosdisk.c: Moved to ...
41334 * util/biosdisk.c: ... here.
41335 * util/i386/pc/getroot.c: Moved to ...
41336 * util/getroot.c: ... here.
41337 * util/i386/pc/grub-mkdevicemap.c: Moved to ...
41338 * util/grub-mkdevicemap.c: ... here.
41339 * util/i386/pc/grub-probe.c: Moved to ...
41340 * util/grub-probe.c: ... here.
41342 2007-05-15 Robert Millan <rmh@aybabtu.com>
41344 * util/update-grub.in: Remove duplicated line in grub.cfg header
41347 2007-05-13 Robert Millan <rmh@aybabtu.com>
41349 * util/update-grub.in: Fix a few assumptions about the devices holding
41350 /, /boot and /boot/grub being the same.
41351 * util/grub.d/00_header.in: Likewise.
41352 * util/grub.d/10_hurd.in: Likewise.
41353 * util/grub.d/10_linux.in: Likewise.
41355 * util/grub.d/10_linux.in: Implement Linux image sorting with arbitrary
41356 patterns. Use that to define the `.old' suffix as older than `'.
41358 * util/grub.d/00_header.in: Set default gfxmode to `800x600x16'.
41360 * util/update-grub.in: Add a reference to ${sysconfdir}/default/grub in
41361 the grub.cfg header message.
41363 2007-05-11 Robert Millan <rmh@aybabtu.com>
41365 * util/update-grub.in: Create device.map if it doesn't already exist,
41366 before attempting to run grub-probe.
41367 Check for grub-probe and grub-mkdevicemap with the same code
41368 grub-install is using.
41371 2007-05-09 Jeroen Dekkers <jeroen@dekkers.cx>
41373 * Makefile.in: Add the datarootdir autoconf variable.
41375 2007-05-09 Robert Millan <rmh@aybabtu.com>
41377 * util/i386/pc/grub-probe.c (probe): When detecting partition map,
41378 fail gracefully if dev->disk->partition == NULL.
41380 2007-05-07 Robert Millan <rmh@aybabtu.com>
41382 * util/i386/pc/grub-probe.c: Add `grub-probe -t partmap' parameter to
41383 determine partition map module.
41384 * util/i386/pc/grub-install.in: Use this feature to decide which
41385 partition module to load, instead of hardcoding pc and gpt.
41387 2007-05-07 Robert Millan <rmh@aybabtu.com>
41389 * Makefile.in: Fix assumption that $(srcdir) has a trailing slash when
41390 source directory differs from build directory.
41392 2007-05-05 Robert Millan <rmh@aybabtu.com>
41394 * util/powerpc/ieee1275/grub-install.in: Fix syntax error in pkglibdir
41397 2007-05-05 Robert Millan <rmh@aybabtu.com>
41399 * util/update-grub.in: Create ${grub_prefix} if it doesn't exist.
41401 2007-05-05 Robert Millan <rmh@aybabtu.com>
41403 * util/grub.d/10_linux.in: Allow the administrator to insert Linux
41404 command-line arguments via ${GRUB_CMDLINE_LINUX}.
41406 2007-05-05 Robert Millan <rmh@aybabtu.com>
41408 * conf/i386-pc.rmk (grub_setup_SOURCES): Add partmap/gpt.c.
41409 (grub_probe_SOURCES): Likewise.
41410 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): Detect
41411 GPT and initialize dos_part and bsd_part accordingly.
41412 * util/i386/pc/grub-setup.c (setup): Ditto for install_dos_part and
41414 (main): Activate gpt module for use during partition identification,
41415 and deactivate it afterwards.
41416 * util/i386/pc/grub-install.in: Add gpt module to core.img.
41417 * util/i386/pc/grub-probe.c (main): Activate gpt module for use during
41418 partition identification, and deactivate it afterwards.
41420 2007-05-05 Robert Millan <rmh@aybabtu.com>
41422 * term/i386/pc/console.c (grub_console_fini): Call
41423 grub_term_set_current() before grub_term_unregister().
41425 2007-05-04 Robert Millan <rmh@aybabtu.com>
41427 * DISTLIST: Add util/update-grub.in, util/grub.d/00_header.in,
41428 util/grub.d/10_hurd.in, util/grub.d/10_linux.in and util/grub.d/README.
41429 * Makefile.in: Build update-grub_SCRIPTS. Install update-grub_SCRIPTS
41430 and update-grub_DATA.
41431 * conf/common.rmk: Build and install update-grub components.
41432 * conf/common.mk: Regenerate.
41433 * util/update-grub.in: New. Core of update-grub.
41434 * util/grub.d/00_header.in: New. Generates grub.cfg header.
41435 * util/grub.d/10_hurd.in: New. Generates boot entries for the Hurd.
41436 * util/grub.d/10_linux.in: New. Generates boot entries for Linux.
41437 * util/grub.d/README: New. Document grub.d directory layout.
41439 2007-05-01 Robert Millan <rmh@aybabtu.com>
41441 * util/grub-emu.c: Move initialization functions
41442 grub_util_biosdisk_init() and grub_init_all() before
41443 grub_util_biosdisk_get_grub_dev(), which relies on them.
41445 2007-04-19 Robert Millan <rmh@aybabtu.com>
41447 * util/powerpc/ieee1275/grub-install.in: Initialize ${bindir}, since
41450 2007-04-18 Jerone Young <jerone@gmail.com>
41452 * kernel/elf.c: Add missing parenthesis for conditional statement
41455 2007-04-10 Jerone Young <jerone@gmail.com>
41457 * util/i386/pc/getroot.c: Update so that if root device is /dev/root ,
41458 continue on and look for device node with real device name.
41460 2007-04-10 Jerone Young <jerone@gmail.com>
41462 * configure.ac: Add argument for autoconf to use transformation
41464 * Makefile.in: Add autoconf package transformation code.
41465 * util/i386/pc/grub-install.in: Likewise.
41466 * util/powerpc/ieee1275/grub-install.in: Likewise.
41468 2007-03-19 Yoshinori K. Okuji <okuji@enbug.org>
41470 * fs/ext2.c (EXT2_GOOD_OLD_REVISION): New macro.
41471 (EXT2_GOOD_OLD_INODE_SIZE): Likewise.
41472 (EXT2_REVISION): Likewise.
41473 (EXT2_INODE_SIZE): Likewise.
41474 (struct grub_ext2_block_group): Added a missing member
41476 (grub_ext2_read_inode): Divide by the inode size in a superblock
41477 instead of 128 to obtain INODES_PER_BLOCK.
41478 Use the macro EXT2_INODE_SIZE instead of directly using
41479 SBLOCK->INODE_SIZE.
41481 2007-03-18 Yoshinori K. Okuji <okuji@enbug.org>
41483 * fs/ext2.c (grub_ext2_read_inode): Use the inode size in a
41484 superblock instead of the structure size to compute an
41485 offset. This fixes the problem that GRUB could not read a
41486 filesystem when inode size is different from 128-byte.
41488 2007-03-05 Marco Gerards <marco@gnu.org>
41490 * normal/main.c (read_config_file): When "menu" is not set, create
41491 an initial context.
41493 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41495 * kern/powerpc/ieee1275/init.c (HEAP_SIZE): Removed.
41496 (HEAP_LIMIT): New macro.
41497 (grub_claim_heap): Claim memory up to `heaplimit'.
41499 2007-02-21 Hollis Blanchard <hollis@penguinppc.org>
41501 * conf/powerpc-ieee1275.rmk (kernel_elf_LDFLAGS): Link at 64KB.
41502 * kern/powerpc/ieee1275/init.c (_end): Add declaration.
41503 (_start): Likewise.
41504 (grub_arch_modules_addr): Return address after `_end'.
41505 * util/powerpc/ieee1275/grub-mkimage.c: Include grub/misc.h.
41506 (load_modules): Use new parameter as `p_paddr' and `p_vaddr'.
41507 (add_segments): Calculate `_end' from phdr size and location.
41508 (ALIGN_UP): Moved to ...
41509 * include/grub/misc.h: here.
41510 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MOD_ALIGN):
41512 (GRUB_IEEE1275_MODULE_BASE): Removed.
41514 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41516 * kern/powerpc/ieee1275/openfw.c (grub_available_iterate): Correct
41519 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41521 * include/grub/elfload.h (grub_elf32_load_hook_t): Return grub_err_t.
41523 (grub_elf64_load_hook_t): Likewise.
41524 * kern/elf.c: Call `grub_error_push' before `grub_error'. Improve
41527 2007-02-20 Hollis Blanchard <hollis@penguinppc.org>
41529 * kern/mm.c: Update copyright.
41530 (grub_mm_debug): Correct syntax error.
41531 (grub_mm_dump_free): New function.
41532 (grub_debug_free): Call `grub_free'.
41533 * include/grub/mm.h: Update copyright.
41534 (grub_mm_dump_free): Add declaration.
41536 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41538 * include/grub/ieee1275/ieee1275.h: Update copyright.
41539 * kern/powerpc/ieee1275/init.c: Likewise.
41540 * kern/powerpc/ieee1275/openfw.c: Likewise.
41542 * loader/powerpc/ieee1275/linux.c: Likewise.
41543 * include/grub/elfload.h: Likewise.
41544 * kern/elf.c: Likewise.
41545 (grub_elf32_load): Pass `base' and `size' parameters. Update all
41547 (grub_elf64_load): Likewise.
41548 (grub_elf32_load_segment): Move to a nested function.
41549 (grub_elf64_load_segment): Likewise.
41551 2007-02-12 Hollis Blanchard <hollis@penguinppc.org>
41553 * include/grub/ieee1275/ieee1275.h (grub_available_iterate): New
41555 * kern/powerpc/ieee1275/init.c (grub_heap_start): Removed.
41556 (grub_heap_len): Likewise.
41557 (HEAP_SIZE): New macro.
41558 (grub_claim_heap): New function.
41559 (grub_machine_init): Don't claim heap directly. Call
41561 * kern/powerpc/ieee1275/openfw.c: Include alloca.h.
41562 (grub_available_iterate): New function.
41564 2007-02-03 Thomas Schwinge <tschwinge@gnu.org>
41566 * aclocal.m4 (grub_CHECK_STACK_PROTECTOR): New definition.
41567 * configure.ac: Use it for testing the HOST and TARGET compilers.
41569 2006-12-13 Thomas Schwinge <tschwinge@gnu.org>
41571 * Makefile.in (enable_grub_emu): New variable.
41572 * configure.ac (--enable-grub-emu): New option.
41573 Do the checks for (n)curses only if `--enable-grub-emu' is requested.
41574 * conf/i386-efi.rmk (sbin_UTILITIES): Add `grub-emu' only if requested.
41575 * conf/i386-pc.rmk: Likewise.
41576 * conf/powerpc-ieee1275.rmk: Likewise.
41577 * conf/sparc64-ieee1275.rmk (bin_UTILITIES): Likewise.
41579 2006-12-12 Marco Gerards <marco@gnu.org>
41581 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_MENU'.
41583 * kern/env.c (grub_env_unset): Don't free the member `value' when
41584 the type is GRUB_ENV_VAR_DATA, in this case it's a user defined
41587 * normal/main.c (current_menu): Removed.
41588 (free_menu): Unset the `menu' environment variable.
41589 (grub_normal_menu_addentry): Make use of the environment variable
41590 `menu', instead of using the global `current_menu'. Allocate
41591 memory for the sourcecode of this entry.
41592 (read_config_file): New argument `nested', changed all callers.
41593 Only in the case of a new context, initialize a new menu. Set the
41594 `menu' environment variable.
41595 (grub_normal_execute): Don't set and unset the environment
41596 variable `menu' here anymore. Only free the menu when leaving the
41599 * util/i386/pc/biosdisk.c (linux_find_partition): Fixed a memory
41602 2006-12-11 Marco Gerards <marco@gnu.org>
41604 * normal/menu_entry.c (run): Fix off by one bug so the last line
41605 is executed. Move the loader check to outside the loop.
41607 2006-12-08 Hollis Blanchard <hollis@penguinppc.org>
41609 * kern/powerpc/ieee1275/cmain.c (cmain): Mark r3 and r4 as `UNUSED'.
41611 2006-11-25 Yoshinori K. Okuji <okuji@enbug.org>
41613 * util/i386/pc/grub-mkimage.c (generate_image): Fix the offset of
41614 the number of sectors. Reported by Andrey Shuvikov
41615 <mr_hyro@yahoo.com>.
41617 2006-11-11 Jeroen Dekkers <jeroen@dekkers.cx>
41619 * kern/disk.c (grub_disk_read): When there is a read error, always
41620 try to read only the necessary data.
41622 * conf/i386-pc.rmk (grub_probe_SOURCES): Add disk/lvm.c and
41624 * include/grub/disk.h [GRUB_UTIL] (grub_raid_init): New
41626 [GRUB_UTIL] (grub_raid_fini): Likewise.
41627 [GRUB_UTIL] (grub_lvm_init): Likewise.
41628 [GRUB_UTIL] (grub_lvm_fini): Likewise.
41629 * util/i386/pc/grub-probe.c (probe): Check whether DEVICE_NAME is
41630 RAID device and copy DEVICE_NAME to DRIVE_NAME in that case.
41631 (main): Call grub_raid_init(), grub_lvm_init(), grub_lvm_fini()
41632 and grub_raid_fini().
41634 2006-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
41636 * include/grub/types.h (__unused): Rename to UNUSED.
41637 * kern/elf.c (grub_elf32_size): Use UNUSED instead of __unused.
41638 (grub_elf64_size): Likewise.
41640 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41642 * kern/elf.c (grub_elf_file): Call grub_file_seek. Call
41643 grub_error_push and grub_error_pop in the error-handling path.
41644 (grub_elf32_load_segment): Only call grub_file_read with non-zero
41647 2006-11-03 Hollis Blanchard <hollis@penguinppc.org>
41649 * conf/i386-efi.rmk (grub_emu_SOURCES): Add kern/elf.c.
41650 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
41651 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
41652 (kernel_elf_SOURCES): Likewise.
41653 * conf/i386-efi.rmk (kernel_mod_HEADERS): Add elfload.h and cache.h.
41654 * conf/i386-pc.rmk (kernel_mod_HEADERS): Likewise.
41655 * conf/powerpc-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41656 * conf/sparc64-ieee1275.rmk (kernel_elf_HEADERS): Likewise.
41657 * conf/common.rmk (pkgdata_MODULES): Add elf.mod.
41658 (elf_mod_SOURCES): New variable.
41659 (elf_mod_CFLAGS): Likewise.
41660 (elf_mod_LDFLAGS): Likewise.
41661 * include/grub/types.h (__unused): New macro.
41662 * include/grub/elfload.h: New file.
41663 * kern/elf.c: Likewise.
41664 * loader/powerpc/ieee1275/linux.c: Include elfload.h.
41665 (ELF32_LOADMASK): New macro.
41666 (ELF64_LOADMASK): Likewise.
41667 (vmlinux): Removed.
41668 (grub_linux_load32): New function.
41669 (grub_linux_load64): Likewise.
41670 (grub_rescue_cmd_linux): Call grub_linux_load32 or grub_linux_load64.
41671 Use grub_elf_t instead of grub_file_t.
41673 2006-11-02 Hollis Blanchard <hollis@penguinppc.org>
41675 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): Add
41676 `catch_result' to struct set_color_args.
41678 2006-10-28 Yoshinori K. Okuji <okuji@enbug.org>
41680 * normal/menu.c: Include grub/script.h.
41681 * normal/menu_entry.c: Likewise.
41682 * include/grub/normal.h: Do not include grub/script.h.
41684 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41686 * kern/disk.c (grub_disk_read): Correct debug printf formatting.
41688 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41690 * kern/disk.c (grub_disk_open): Print debug messages when opening a
41692 (grub_disk_close): Print debug messages when closing a disk.
41693 (grub_disk_read): Print debug messages when disk read fails.
41694 * kern/fs.c (grub_fs_probe): Print debug messages when detecting
41696 * kern/partition.c: Include misc.h.
41697 (grub_partition_iterate): Print debug messages when detecting
41700 2006-10-27 Hollis Blanchard <hollis@penguinppc.org>
41702 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Return error if `status'
41704 * kern/ieee1275/ieee1275.c (IEEE1275_IHANDLE_INVALID): Change to 0.
41706 2006-10-26 Hollis Blanchard <hollis@penguinppc.org>
41708 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_encode_devname):
41709 Reverse GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS test.
41711 2006-10-25 Jeroen Dekkers <jeroen@dekkers.cx>
41713 * disk/lvm.c (grub_lvm_scan_device): Malloc sizeof(*lv) bytes
41714 instead of sizeof(lv). Patch by Michael Guntsche.
41716 2006-10-18 Jeroen Dekkers <jeroen@dekkers.cx>
41718 * disk/lvm.c: Rename VGS to VG_LIST.
41719 (grub_lvm_iterate): Change VGS->LV to VG-LV.
41720 (grub_lvm_open): Likewise.
41721 Thanks to Michael Guntsche for finding this bug.
41723 2006-10-15 Yoshinori K. Okuji <okuji@enbug.org>
41725 * configure.ac (AC_INIT): Bumped to 1.95.
41727 2006-10-14 Robert Millan <rmh@aybabtu.com>
41729 * util/i386/pc/getroot.c (grub_guess_root_device): Don't compare os_dev
41730 with "/dev/.static/dev/md".
41732 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41734 * util/i386/pc/grub-probe.c (probe): Print DEVICE_NAME instead of
41735 DRIVE_NAME when grub_util_biosdisk_get_grub_dev fails. Open
41736 DRIVE_NAME instead of DEVICE_NAME. Make sure that DEVICE_NAME and
41737 DRIVE_NAME are always freed.
41739 * util/i386/pc/biosdisk.c (make_device_name): Add one into
41740 DOS_PART, as a DOS partition is counted from one instead of zero
41741 now. Reported by Robert Millan.
41743 2006-10-14 Robert Millan <rmh@aybabtu.com>
41745 * util/i386/pc/getroot.c (grub_guess_root_device): Stop using
41746 grub_util_biosdisk_get_grub_dev to convert system device to GRUB device.
41747 * util/grub-emu.c (main): Use grub_util_biosdisk_get_grub_dev with the
41748 string returned by grub_guess_root_device.
41749 * util/i386/pc/grub-setup.c: Likewise.
41750 * util/i386/pc/grub-probefs.c: Likewise.
41752 * util/i386/pc/grub-probefs.c: Rename to ...
41753 * util/i386/pc/grub-probe.c: ... this.
41754 * DISTLIST: Remove grub-probefs, add grub-probe.
41755 * conf/i386-efi.rmk: Likewise.
41756 * conf/i386-pc.rmk: Likewise.
41757 * util/i386/pc/grub-install.in: Likewise.
41759 * util/i386/pc/grub-probe.c: Add --target=(fs|device|drive) option to
41760 choose which information we want to print.
41762 2006-10-14 Yoshinori K. Okuji <okuji@enbug.org>
41764 * DISTLIST: Added commands/echo.c, disk/lvm.c, disk/raid.c,
41765 include/grub/bitmap.h, include/grub/lvm.h, include/grub/raid.h,
41766 include/grub/i386/pc/vbeutil.h, include/grub/util/lvm.h,
41767 include/grub/util/raid.h, util/lvm.c, util/raid.c, video/bitmap.c,
41768 video/readers/tga.c and video/i386/pc/vbeutil.c.
41770 2006-10-14 Jeroen Dekkers <jeroen@dekkers.cx>
41772 Added support for RAID and LVM.
41774 * disk/lvm.c: New file.
41775 * disk/raid.c: Likewise.
41776 * include/grub/lvm.h: Likewise.
41777 * include/grub/raid.h: Likewise.
41778 * include/grub/util/lvm.h: Likewise.
41779 * include/grub/util/raid.h: Likewise.
41780 * util/lvm.c: Likewise.
41781 * util/raid.c: Likewise.
41783 * include/grub/disk.h (grub_disk_dev_id): Add
41784 GRUB_DISK_DEVICE_RAID_ID and GRUB_DISK_DEVICE_LVM_ID.
41785 (grub_disk_get_size): New prototype.
41786 * kern/disk.c (grub_disk_open): Check whether grub_partition_probe()
41787 returns a partition.
41788 (grub_disk_get_size): New function.
41790 * kern/i386/pc/init.c (make_install_device): Copy the prefix
41791 verbatim if grub_install_dos_part is -2.
41793 * util/i386/pc/getroot.c (grub_guess_root_device): Support RAID
41796 * util/i386/pc/grub-setup.c (setup): New argument
41797 MUST_EMBED. Force embedding of GRUB when the argument is
41798 true. Close FILE before returning.
41799 (main): Add support for RAID and LVM.
41801 * conf/common.rmk: Add RAID and LVM modules.
41802 * conf/i386-pc.rmk (grub_setup_SOURCES): Add util/raid.c and
41804 (grub_emu_SOURCES): Add disk/raid.c and disk/lvm.c.
41806 * kern/misc.c (grub_strstr): New function.
41807 * include/grub/misc.h (grub_strstr): New prototype.
41809 2006-10-10 Tristan Gingold <tristan.gingold@bull.net>
41811 * include/grub/efi/api.h (GRUB_EFI_ERROR_CODE): Long constant.
41813 2006-10-05 Tristan Gingold <tristan.gingold@bull.net>
41815 * kern/misc.c (grub_strtoull): Guess the base only if not
41818 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41820 * kern/powerpc/ieee1275/cmain.c (cmain): Remove incomplete Old World
41823 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41825 * disk/ieee1275/ofdisk.c (grub_ofdisk_iterate): Cast `size' to long.
41827 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_next_property):
41828 Remove `flags' argument. All callers changed.
41829 * kern/ieee1275/ieee1275.c (IEEE1275_PHANDLE_ROOT): Removed.
41830 (IEEE1275_IHANDLE_INVALID): New variable.
41831 (IEEE1275_CELL_INVALID): New variable.
41832 (grub_ieee1275_finddevice, grub_ieee1275_get_property,
41833 grub_ieee1275_get_property_length, grub_ieee1275_instance_to_package,
41834 grub_ieee1275_package_to_path, grub_ieee1275_instance_to_path,
41835 grub_ieee1275_peer, grub_ieee1275_child, grub_ieee1275_open,
41836 grub_ieee1275_claim, grub_ieee1275_set_property): Error-check return
41837 codes from Open Firmware. All callers updated.
41838 (grub_ieee1275_next_property): Directly return Open Firmware return
41840 * kern/powerpc/ieee1275/cmain.c (grub_ieee1275_find_options):
41841 Standardize error checking from `grub_ieee1275_get_property'.
41842 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Rename
41843 `devalias' to `aliases'. Correct comments. Consolidate error paths.
41845 2006-10-01 Hollis Blanchard <hollis@penguinppc.org>
41847 * kern/ieee1275/ieee1275.c (grub_ieee1275_instance_to_path): Rename
41848 `instance_to_package_args' to `instance_to_path_args'.
41850 * kern/powerpc/ieee1275/init.c (grub_machine_init): Use
41851 `grub_ieee1275_chosen'.
41853 * term/ieee1275/ofconsole.c (grub_ofconsole_init): Call
41854 `grub_ieee1275_interpret'.
41856 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41858 * util/powerpc/ieee1275/grub-mkimage.c: Include config.h.
41860 2006-09-25 Hollis Blanchard <hollis@penguinppc.org>
41862 * include/grub/powerpc/libgcc.h (__floatdisf): New prototype.
41863 (__cmpdi): Likewise.
41865 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Pass 0 as
41866 `flags' to `grub_ieee1275_next_property'. Change `pathlen' to type
41869 * kern/powerpc/ieee1275/cmain.c: Include grub/misc.h.
41871 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Change `actual'
41872 to type `grub_ssize_t'.
41873 (grub_rescue_cmd_linux): Cast -1 to `grub_off_t'.
41875 2006-09-22 Marco Gerards <marco@gnu.org>
41877 * normal/script.c (grub_script_create_cmdmenu): Skip leading
41880 2006-09-22 Marco Gerards <marco@gnu.org>
41882 * commands/echo.c: New file.
41884 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/echo.c'.
41886 * conf/common.rmk (echo_mod_SOURCES): New variable.
41887 (echo_mod_CFLAGS): Likewise.
41888 (echo_mod_LDFLAGS): Likewise.
41890 2006-09-22 Marco Gerards <marco@gnu.org>
41892 * normal/main.c (get_line): Malloc memory instead of using
41893 preallocated memory. Removed the arguments `cmdline' and
41894 `max_len'. Updated all callers.
41896 2006-09-22 Marco Gerards <marco@gnu.org>
41898 * conf/i386-efi.rmk (grub_emu_DEPENDENCIES): New variable.
41899 (normal_mod_DEPENDENCIES): Likewise.
41901 * conf/powerpc-ieee1275.rmk (grub_emu_DEPENDENCIES): Likewise.
41902 (normal_mod_DEPENDENCIES): Likewise.
41904 * conf/sparc64-ieee1275.rmk (normal_mod_DEPENDENCIES): Likewise.
41906 2006-09-22 Johan Rydberg <jrydberg@gnu.org>
41908 * genmk.rb: Add DEPENDENCIES variables to modules, utilities, and
41910 * conf/i386-pc.rmk (grub_emu_DEPENDENCIES): Declare.
41911 (normal_mod_DEPENDENCIES): Likewise.
41912 * conf/i386-pc.mk: Regenerate.
41913 * conf/i386-efi.mk: Likewise
41914 * conf/common.mk: Likewise.
41915 * conf/powerpc-ieee1275.mk: Likewise.
41916 * conf/sparc64-ieee1275.mk: Likewise.
41918 2006-09-22 Robert Millan <rmh@aybabtu.com>
41920 Sync with i386 version.
41921 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Remove grub-emu, add grub-mkimage.
41922 * conf/powerpc-ieee1275.rmk (sbin_UTILITIES): Remove grub-mkimage, add grub-emu.
41924 2006-09-21 Robert Millan <rmh@aybabtu.com>
41926 Import from GRUB Legacy (lib/device.c):
41927 * util/i386/pc/grub-mkdevicemap.c (get_i2o_disk_name): New function.
41928 (init_device_map) [__linux__]: Add support for I2O devices.
41930 2006-09-14 Marco Gerards <marco@gnu.org>
41932 * conf/i386-pc.rmk (COMMON_LDFLAGS): Use `-m32' instead of
41935 2006-09-14 Robert Millan <rmh@aybabtu.com>
41937 * util/i386/pc/grub-install.in: Skip menu.lst when removing
41940 * util/i386/pc/getroot.c: Don't recurse into dotdirs (e.g. ".static").
41942 * util/i386/pc/grub-mkdevicemap.c: Make sure the floppy device exists
41943 before adding it to device.map.
41945 2006-08-15 Johan Rydberg <jrydberg@gnu.org>
41947 * genmk.rb: Let GCC generate dependencies the first time it
41948 compiles a file; using the -MD option.
41949 * conf/common.mk: Regenerate.
41950 * conf/i386-pc.mk: Likewise.
41951 * conf/i386-efi.mk: Likewise.
41952 * conf/powerpc-ieee1275.mk: Likewise.
41953 * conf/sparc64-ieee1275.mk: Likewise.
41955 2006-08-04 Yoshinori K. Okuji <okuji@enbug.org>
41957 Move the prototypes of grub_setjmp and grub_longjmp to
41958 cpu/setjmp.h, so that each architecture may specify different
41961 * include/grub/i386/setjmp.h (grub_setjmp): New prototype.
41962 (grub_longjmp): Likewise.
41963 * include/grub/powerpc/setjmp.h (grub_setjmp): Likewise..
41964 (grub_longjmp): Likewise.
41965 * include/grub/sparc64/setjmp.h (grub_setjmp): Likewise..
41966 (grub_longjmp): Likewise.
41968 * include/grub/setjmp.h [!GRUB_UTIL] (grub_setjmp): Removed.
41969 [!GRUB_UTIL] (grub_longjmp): Removed.
41971 2006-08-01 Pelletier Vincent <subdino2004@yahoo.fr>
41973 * kern/ieee1275/ieee1275.c (grub_ieee1275_set_color): IEEE1275
41974 "color!" method does not return any value.
41976 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
41978 * include/grub/bitmap.h: New file.
41980 * include/grub/i386/pc/vbeutil.h: Likewise.
41982 * video/bitmap.c: Likewise.
41984 * video/readers/tga.c: Likewise.
41986 * video/i386/pc/vbeutil.c: Likewise.
41988 * commands/videotest.c: Code cleanup and updated to reflect to new
41991 * term/gfxterm.c: Likewise.
41993 * video/video.c: Likewise.
41995 * conf/i386-pc.rmk (pkgdata_MODULES): Added tga.mod and bitmap.mod.
41996 (vbe_mod_SOURCES): Added video/i386/pc/vbeutil.c.
41997 (bitmap_mod_SOURCES): New entry.
41998 (bitmap_mod_CFLAGS): Likewise.
41999 (bitmap_mod_LDFLAGS): Likewise.
42000 (tga_mod_SOURCES): Likewise.
42001 (tga_mod_CFLAGS): Likewise.
42002 (tga_mod_LDFLAGS): Likewise.
42004 * include/grub/video.h (grub_video_blit_operators): New enum type.
42005 (grub_video_render_target): Changed as forward declaration and moved
42006 actual definition to be video driver specific.
42007 (grub_video_adapter.blit_bitmap): Added blitting operator.
42008 (grub_video_adapter.blit_render_target): Likewise.
42009 (grub_video_blit_bitmap): Likewise.
42010 (grub_video_blit_render_target): Likewise.
42012 * include/grub/i386/pc/vbe.h (grub_video_render_target): Added
42013 driver specific render target definition.
42014 (grub_video_vbe_map_rgba): Added driver internal helper.
42015 (grub_video_vbe_unmap_color): Updated to use
42016 grub_video_i386_vbeblit_info.
42017 (grub_video_vbe_get_video_ptr): Likewise.
42019 * include/grub/i386/pc/vbeblit.h
42020 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8A8): Updated to use
42021 grub_video_i386_vbeblit_info.
42022 (grub_video_i386_vbeblit_R8G8B8_R8G8B8A8): Likewise.
42023 (grub_video_i386_vbeblit_index_R8G8B8A8): Likewise.
42024 (grub_video_i386_vbeblit_R8G8B8A8_R8G8B8): Likewise.
42025 (grub_video_i386_vbeblit_R8G8B8_R8G8B8): Likewise.
42026 (grub_video_i386_vbeblit_index_R8G8B8): Likewise.
42027 (grub_video_i386_vbeblit_index_index): Likewise.
42028 (grub_video_i386_vbeblit_R8G8B8X8_R8G8B8X8): New blitter function.
42029 (grub_video_i386_vbeblit_R8G8B8_R8G8B8X8): Likewise.
42030 (grub_video_i386_vbeblit_index_R8G8B8X8): Likewise.
42031 (grub_video_i386_vbeblit_blend): Added generic blitter for blend
42033 (grub_video_i386_vbeblit_replace): Added generic blitter for replace
42036 * video/i386/pc/vbeblit.c: Updated to reflect changes on
42037 include/grub/i386/pc/vbeblit.h.
42039 * include/grub/i386/pc/vbefill.h (grub_video_i386_vbefill_R8G8B8A8):
42040 Updated to use grub_video_i386_vbeblit_info.
42041 (grub_video_i386_vbefill_R8G8B8): Likewise.
42042 (grub_video_i386_vbefill_index): Likewise.
42043 (grub_video_i386_vbefill): Added generic filler.
42045 * video/i386/pc/vbefill.c: Updated to reflect changes on
42046 include/grub/i386/pc/vbefill.h.
42048 * video/i386/pc/vbe.c (grub_video_vbe_get_video_ptr): Updated to use
42049 grub_video_i386_vbeblit_info.
42050 (grub_video_vbe_unmap_color): Likewise.
42051 (grub_video_vbe_blit_glyph): Likewise.
42052 (grub_video_vbe_scroll): Likewise.
42053 (grub_video_vbe_draw_pixel): Removed function.
42054 (grub_video_vbe_get_pixel): Likewise.
42055 (grub_video_vbe_fill_rect): Moved all blitters to vbefill.c and
42056 updated code to use it.
42057 (common_blitter): Added common blitter for render target and bitmap.
42058 (grub_video_vbe_blit_bitmap): Updated to use common_blitter.
42059 (grub_video_vbe_blit_render_target): Likewise.
42061 2006-07-30 Johan Rydberg <jrydberg@gnu.org>
42063 * kern/efi/efi.c (grub_efi_set_text_mode): Assume console already
42064 is in text mode if there is no console control protocol instance
42067 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42069 * include/grub/video.h: Code cleanup.
42071 * include/grub/i386/pc/vbe.h: Likewise.
42073 * video/i386/pc/vbe.c: Likewise.
42075 * video/i386/pc/vbeblit.c: Likewise.
42077 * video/i386/pc/vbefill.c: Likewise.
42079 * video/video.c: Likewise. Also added more comments.
42081 2006-07-29 Vesa Jaaskelainen <chaac@nic.fi>
42083 * disk/i386/pc/biosdisk.c (struct grub_biosdisk_drp): Moved to ...
42084 (struct grub_biosdisk_dap): Likewise.
42086 * include/grub/i386/pc/biosdisk.h: ... to here. Also corrected
42087 linkage settings for all functions.
42089 2006-07-12 Marco Gerards <marco@gnu.org>
42091 * configure.ac (--enable-mm-debug): Fix typo.
42093 * genkernsyms.sh.in: Use proper quoting for `CC'.
42095 2006-07-02 Jeroen Dekkers <jeroen@dekkers.cx>
42097 * conf/i386-pc.rmk (COMMON_ASFLAGS): Add "-m32".
42098 (normal_mod_ASFLAGS): Remove "-m32".
42100 2006-06-14 Yoshinori K. Okuji <okuji@enbug.org>
42102 * util/misc.c: Include config.h.
42103 [!HAVE_MEMALIGN]: Do not include malloc.h.
42104 (grub_memalign): Use posix_memalign, if present. Then, use
42105 memalign, if present. Otherwise, emit an error.
42107 * util/grub-emu.c: Do not include malloc.h.
42109 * include/grub/util/misc.h: Include unistd.h. This is required for
42110 FreeBSD, because off_t is defined in unistd.h. Reported by Harley
42111 D. Eades III <hde@foobar-qux.org>.
42113 * configure.ac (AC_GNU_SOURCE): Added.
42114 (AC_CHECK_FUNCS): Check posix_memalign and memalign for the host
42117 2006-06-09 Yoshinori K. Okuji <okuji@enbug.org>
42119 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Make sure that
42120 ADDR_MAX does not exceed GRUB_LINUX_INITRD_MAX_ADDRESS.
42122 2006-06-07 Jeroen Dekkers <jeroen@dekkers.cx>
42124 * include/grub/types.h (grub_host_addr_t): Rename to
42125 grub_target_addr_t.
42126 (grub_host_off_t): Rename to grub_target_off_t.
42127 (grub_host_size_t): Rename to grub_target_size_t.
42128 (grub_host_ssize_t): Rename to grub_target_ssize_t.
42129 Refer to GRUB_TARGET_SIZEOF_VOID_P to define those variables.
42131 * include/grub/kernel.h (struct grub_module_header): Change type
42132 of OFFSET to grub_target_off_t and type of SIZE to grub_target_size_t.
42133 (grub_module_info): Likewise.
42135 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42137 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): The conditional
42138 of checking LINUX_MEM_SIZE was reverse. Reported by Jesus
42139 Velazquez <jesus.velazquez@gmail.com>.
42141 2006-06-05 Yoshinori K. Okuji <okuji@enbug.org>
42143 Count partitions from 1 instead of 0 in the string representation
42144 of partitions. Still use 0-based internally.
42146 * partmap/sun.c (grub_sun_is_valid): A cosmetic change.
42147 (sun_partition_map_iterate): Use grub_partition_t instead of
42148 struct grub_partition *. Cast DESC->START_CYLINDER to
42149 grub_uint64_t after converting the endian.
42150 (sun_partition_map_probe): Subtract 1 for PARTNUM.
42151 (sun_partition_map_get_name): Add 1 to P->INDEX.
42153 * partmap/pc.c (grub_partition_parse): Subtract 1 for
42155 (pc_partition_map_get_name): Add 1 into PCDATA->DOS_PART.
42157 * partmap/gpt.c (gpt_partition_map_iterate): Initialize PARTNO to
42158 zero instead of one.
42159 (gpt_partition_map_probe): Subtract 1 for PARTNUM.
42160 (gpt_partition_map_get_name): Add 1 into P->INDEX.
42162 * partmap/apple.c (apple_partition_map_iterate): Change the type
42163 of POS to unsigned.
42164 (apple_partition_map_probe): Subtract 1 for PARTNUM.
42165 (apple_partition_map_get_name): Add 1 into P->INDEX.
42167 * partmap/amiga.c (amiga_partition_map_iterate): Change the type
42168 of POS to unsigned.
42169 (amiga_partition_map_iterate): Cast NEXT to grub_off_t to
42170 calculate the offset of a partition.
42171 (amiga_partition_map_probe): Subtract 1 for PARTNUM.
42172 (amiga_partition_map_get_name): Add 1 into P->INDEX.
42174 * partmap/acorn.c (acorn_partition_map_find): Change the type of
42175 SECTOR to grub_disk_addr_t.
42176 (acorn_partition_map_iterate): Likewise.
42177 (acorn_partition_map_probe): Subtract 1 for PARTNUM.
42178 Change the type of SECTOR to grub_disk_addr_t. Declare P on the
42180 (acorn_partition_map_get_name): Add 1 into P->INDEX.
42182 * kern/i386/pc/init.c (make_install_device): Add 1 into
42183 GRUB_INSTALL_DOS_PART.
42185 * fs/iso9660.c (grub_iso9660_mount): Fixed a reversed
42188 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42190 Clean up the code to support 64-bit addressing in disks and
42191 files. This change is not enough for filesystems yet.
42193 * util/i386/pc/grub-setup.c (struct boot_blocklist): Change the
42194 type of "start" to grub_uint64_t.
42195 (setup): Change the types of KERNEL_SECTOR and FIRST_SECTOR to
42196 grub_disk_addr_t * and grub_disk_addr_t. Fix the format string in
42197 save_first_sector and save_blocklists. Use grub_le_to_cpu64 to
42200 * util/i386/pc/biosdisk.c (open_device): Change the type of SECTOR
42201 to grub_disk_addr_t.
42203 * partmap/gpt.c (gpt_partition_map_iterate): Fix the format
42206 * partmap/pc.c (pc_partition_map_iterate): Likewise.
42208 * partmap/amiga.c (amiga_partition_map_iterate): Cast RDSK.MAGIC
42211 * normal/script.c (grub_script_parse): Remove unused MEMFREE.
42213 * normal/parser.y (YYLTYPE_IS_TRIVIAL): New macro.
42215 * normal/lexer.c (grub_script_yyerror): Specify unused to LEX.
42217 * loader/i386/pc/multiboot.c (grub_multiboot_load_elf64): Cast -1
42218 to grub_off_t, to detect an error from grub_file_seek.
42219 (grub_multiboot_load_elf32): Likewise.
42221 * kern/misc.c (grub_strtoul): Use grub_strtoull. Return the
42222 maximum unsigned long value when an overflow is detected.
42223 (grub_strtoull): New function.
42224 (grub_divmod64): Likewise.
42225 (grub_lltoa): use grub_divmod64.
42227 * kern/fs.c (struct grub_fs_block): Change the type of "offset" to
42229 (grub_fs_blocklist_open): Increase P if P is not NULL to advance
42230 the pointer to next character. Use grub_strtoull instead of
42232 (grub_fs_blocklist_read): Change the types of SECTOR, OFFSET and
42233 SIZE to grub_disk_addr_t, grub_off_t and grub_size_t,
42236 * kern/file.c (grub_file_read): Prevent an overflow of LEN, as the
42237 return value is signed.
42238 (grub_file_seek): Change the type of OLD to grub_off_t. Do not
42239 test if OFFSET is less than zero, as OFFSET is unsigned now.
42241 * kern/disk.c (struct grub_disk_cache): Change the type of
42242 "sector" to grub_disk_addr_t.
42243 (grub_disk_cache_get_index): Change the type of SECTOR to
42244 grub_disk_addr_t. Calculate the hash with SECTOR casted to
42245 unsigned after shifting.
42246 (grub_disk_cache_invalidate): Change the type of SECTOR to
42248 (grub_disk_cache_unlock): Likewise.
42249 (grub_disk_cache_store): Likewise.
42250 (grub_disk_check_range): Change the types of SECTOR, OFFSET, SIZE,
42251 START and LEN to grub_disk_addr_t *, grub_off_t *, grub_size_t,
42252 grub_disk_addr_t and grub_uint64_t, respectively.
42253 (grub_disk_read): Use an unsigned variable REAL_OFFSET for the
42254 body, as the value of OFFSET is tweaked by
42255 grub_disk_check_range. Change the types of START_SECTOR, LEN and
42256 POS to grub_disk_addr_t, grub_size_t and grub_size_t,
42258 (grub_disk_write): Use an unsigned variable REAL_OFFSET for the
42259 body, as the value of OFFSET is tweaked by
42260 grub_disk_check_range. Change the types of LEN and N to
42263 * io/gzio.c (struct grub_gzio): Change the types of "data_offset"
42264 and "saved_offset" to grub_off_t.
42265 (test_header): Cast BUF to char *.
42266 (get_byte): Cast GZIO->DATA_OFFSET to grub_off_t. Cast GZIO->INBUF
42268 (grub_gzio_read): Change the types of OFFSET and SIZE to
42269 grub_off_t and grub_size_t, respectively.
42271 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_FORCE_LBA):
42273 (GRUB_BOOT_MACHINE_BOOT_DRIVE): Changed to 0x4c.
42274 (GRUB_BOOT_MACHINE_KERNEL_ADDRESS): Changed to 0x40.
42275 (GRUB_BOOT_MACHINE_KERNEL_SEGMENT): Changed to 0x42.
42276 (GRUB_BOOT_MACHINE_DRIVE_CHECK): Changed to 0x4e.
42277 (GRUB_BOOT_MACHINE_LIST_SIZE): Increased to 12.
42279 * include/grub/types.h (grub_off_t): Unconditionally set to
42281 (grub_disk_addr_t): Changed to grub_uint64_t.
42283 * include/grub/partition.h (struct grub_partition): Change the
42284 types of "start", "len" and "offset" to grub_disk_addr_t,
42285 grub_uint64_t and grub_disk_addr_t, respectively.
42286 (grub_partition_get_start): Return grub_disk_addr_t.
42287 (grub_partition_get_len): Return grub_uint64_t.
42289 * include/grub/misc.h (grub_strtoull): New prototype.
42290 (grub_divmod64): Likewise.
42292 * include/grub/fshelp.h (grub_fshelp_read_file): Change the types
42293 of SECTOR, LEN and FILESIZE to grub_disk_addr_t, grub_size_t and
42294 grub_off_t, respectively.
42295 All callers and references changed.
42297 * include/grub/fs.h (struct grub_fs): Change the type of LEN to
42298 grub_size_t in "read".
42299 All callers and references changed.
42301 * include/grub/file.h (struct grub_file): Change the types of
42302 "offset" and "size" to grub_off_t and grub_off_t,
42303 respectively. Change the type of SECTOR to grub_disk_addr_t in
42305 (grub_file_read): Change the type of LEN to grub_size_t.
42306 (grub_file_seek): Return grub_off_t. Change the type of OFFSET to
42308 (grub_file_size): Return grub_off_t.
42309 (grub_file_tell): Likewise.
42310 All callers and references changed.
42312 * include/grub/disk.h (struct grub_disk_dev): Change the types of
42313 SECTOR and SIZE to grub_disk_addr_t and grub_size_t in "read" and
42315 (struct grub_disk): Change the type of "total_sectors" to
42316 grub_uint64_t. Change the type of SECTOR to grub_disk_addr_t in
42318 (grub_disk_read): Change the types of SECTOR, OFFSET and SIZE to
42319 grub_disk_addr_t, grub_off_t and grub_size_t, respectively.
42320 (grub_disk_write): Likewise.
42321 All callers and references changed.
42323 * fs/iso9660.c (grub_iso9660_susp_iterate): Cast parameters to
42324 char * for grub_strncmp to silence gcc.
42325 (grub_iso9660_mount): Likewise.
42326 (grub_iso9660_mount): Likewise.
42327 (grub_iso9660_read_symlink): Likewise. Also, remove the nonsense
42329 (grub_iso9660_iterate_dir): Likewise.
42330 (grub_iso9660_label): Cast DATA->VOLDESC.VOLNAME to char *.
42332 * fs/hfs.c (grub_hfs_read_file): Change the types of SECTOR and
42333 LEN to grub_disk_addr_t and grub_size_t, respectively.
42335 * fs/hfsplus.c (grub_hfsplus_read_file): Likewise.
42337 * fs/jfs.c (grub_jfs_read_file): Likewise.
42339 * fs/minix.c (grub_jfs_read_file): Likewise.
42341 * fs/sfs.c (grub_jfs_read_file): Likewise.
42343 * fs/ufs.c (grub_jfs_read_file): Likewise.
42345 * fs/xfs.c (grub_jfs_read_file): Likewise.
42347 * fs/fat.c (grub_fat_read_data): Change the types of SECTOR, LEN
42348 and SIZE to grub_disk_addr_t, grub_size_t and grub_size_t,
42351 * fs/ext2.c (grub_ext2_read_block): When an error happens, set
42352 BLKNR to -1 instead of returning GRUB_ERRNO.
42353 (grub_ext2_read_file): Change the types of SECTOR and
42354 LEN to grub_disk_addr_t and grub_size_t, respectively.
42356 * fs/affs.c (grub_affs_read_file): Change the types of SECTOR and
42357 LEN to grub_disk_addr_t and grub_size_t, respectively.
42359 * font/manager.c (grub_font_get_glyph): Cast BITMAP to char * for
42362 * disk/ieee1275/ofdisk.c (grub_ofdisk_read): Fix the format
42363 string. Do not cast SECTOR explicitly.
42365 * disk/i386/pc/biosdisk.c (grub_biosdisk_open): Change the type of
42366 TOTAL_SECTORS to grub_uint64_t. Do not mask DRP->TOTAL_SECTORS.
42367 (grub_biosdisk_rw): Change the types of SECTOR and SIZE to
42368 grub_disk_addr_t and grub_size_t, respectively. If the sector is
42369 over 2TB and LBA mode is not supported, raise an error.
42370 (get_safe_sectors): New function.
42371 (grub_biosdisk_read): Use get_safe_sectors.
42372 (grub_biosdisk_write): Likewise.
42374 * disk/efi/efidisk.c (grub_efidisk_read): Fix the format string.
42375 (grub_efidisk_write): Likewise.
42377 * disk/loopback.c (delete_loopback): Cosmetic changes.
42378 (grub_cmd_loopback): Likewise. Also, test NEWDEV->FILENAME
42380 (grub_loopback_open): Likewise.
42381 (grub_loopback_read): Likewise. Also, change the type of POS to
42382 grub_off_t, and fix the usage of grub_memset.
42384 * commands/i386/pc/play.c: Include grub/machine/time.h.
42386 * commands/ls.c (grub_ls_list_files): Use "llu" instead of "d" to
42389 * commands/configfile.c: Include grub/env.h.
42391 * commands/cmp.c (grub_cmd_cmp): Do not use ERR, but use
42392 GRUB_ERRNO directly instead. Change the type of POS to
42393 grub_off_t. Follow the coding standard.
42395 * commands/blocklist.c: Include grub/partition.h.
42396 (grub_cmd_blocklist): Return an error if the underlying device is
42397 not a disk. Take the starting sector of a partition into account,
42398 if a partition is used.
42400 * boot/i386/pc/diskboot.S (bootloop): Adapted to the new offset of
42402 (lba_mode): Support 64-bit addresses.
42403 (chs_mode): Likewise.
42404 (copy_buffer): Adapted to the new offsets of a length field and a
42406 (blocklist_default_start): Allocate 64-bit space.
42408 * boot/i386/pc/boot.S (force_lba): Removed.
42409 (boot_drive): Moved to under KERNEL_SECTOR.
42410 (kernel_sector): Moved to under KERNEL_SEGMENT. Allocate 64-bit
42412 (real_start): Set %si earlier. Remove code for FORCE_LBA, since it
42414 (lba_mode): Refactored to support a 64-bit address. More size
42416 (setup_sectors): Likewise.
42418 2006-06-04 Yoshinori K. Okuji <okuji@enbug.org>
42420 * DISTLIST: Added include/grub/i386/linux.h. Removed
42421 include/grub/i386/pc/linux.h
42423 * configure.ac (AC_INIT): Bumped to 1.94.
42425 * config.guess: Updated from gnulib.
42426 * config.sub: Likewise.
42427 * install-sh: Likewise.
42428 * mkinstalldirs: Likewise.
42430 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42432 * conf/common.rmk (grub_modules_init.lst): Depended on
42433 grub_emu_SOURCES, excluding grub_emu_init.c, instead of
42436 * genmk.rb (PModule::rule): Reverted the previous change.
42438 2006-06-02 Yoshinori K. Okuji <okuji@enbug.org>
42440 * conf/common.rmk (grub_modules_init.lst): Depends on
42441 $(MODSRCFILES). Grep only the files in $(MODSRCFILES). Make sure
42442 that the target does not exist before producing.
42443 (grub_modules_init.h): Remove the target before generating.
42444 (grub_emu_init.c): Likewise.
42446 * genmk.rb (PModule::rule): Add source files into MODSRCFILES.
42448 2006-05-31 Jeroen Dekkers <jeroen@dekkers.cx>
42450 * configure.ac: Don't set host_m32 for x86_64. Also reset LIBS
42451 for the target-specific tests. Make sure that we also have the
42452 up-to-date target variables for those tests.
42454 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42456 * genmk.rb (Image::rule): Prefix CFLAGS or ASFLAGS with TARGET_.
42457 (PModule::rule): Likewise.
42459 2006-05-31 Yoshinori K. Okuji <okuji@enbug.org>
42461 * genmk.rb (Image::rule): Set FLAG to CFLAGS or ASFLAGS instead of
42462 TARGET_CFLAGS or TARGET_ASFLAGS. There is no reason why
42463 target-specific flags should be prefixed.
42464 (PModule::rule): Likewise.
42466 2006-05-30 Yoshinori K. Okuji <okuji@enbug.org>
42468 * configure.ac (CMP): Check if cmp is available explicitly.
42470 2006-05-29 Yoshinori K. Okuji <okuji@enbug.org>
42472 * util/powerpc/ieee1275/grub-install.in (host_cpu): Removed.
42473 (target_cpu): New variable.
42474 (pkglibdir): Use target_cpu instead of host_cpu.
42476 * util/i386/pc/grub-install.in (host_cpu): Removed.
42477 (target_cpu): New variable.
42478 (pkglibdir): Use target_cpu instead of host_cpu.
42480 * util/genmoddep.c: Removed.
42482 * kern/efi/mm.c (filter_memory_map): Use GRUB_CPU_SIZEOF_VOID_P
42483 instead of GRUB_HOST_SIZEOF_VOID_P.
42484 * kern/dl.c: Likewise.
42486 * include/grub/i386/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed to
42488 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42489 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42490 (GRUB_TARGET_SIZEOF_LONG): ... this.
42491 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42492 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42493 * include/grub/powerpc/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42495 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42496 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42497 (GRUB_TARGET_SIZEOF_LONG): ... this.
42498 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42499 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42500 * include/grub/sparc64/types.h (GRUB_HOST_SIZEOF_VOID_P): Renamed
42502 (GRUB_TARGET_SIZEOF_VOID_P): ... this.
42503 (GRUB_HOST_SIZEOF_LONG): Renamed to ...
42504 (GRUB_TARGET_SIZEOF_LONG): ... this.
42505 (GRUB_HOST_WORDS_BIGENDIAN): Renamed to ...
42506 (GRUB_TARGET_WORDS_BIGENDIAN): ... this.
42508 * include/grub/types.h [!GRUB_UTIL] (GRUB_CPU_SIZEOF_VOID_P): Use
42509 GRUB_TARGET_SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P.
42510 [!GRUB_UTIL] (GRUB_CPU_SIZEOF_LONG): Use GRUB_TARGET_SIZEOF_LONG
42511 instead of GRUB_HOST_SIZEOF_LONG.
42512 [!GRUB_UTIL]: Refer to GRUB_TARGET_WORDS_BIGENDIAN instead of
42513 GRUB_HOST_WORDS_BIGENDIAN to define or undefine
42514 GRUB_CPU_WORDS_BIGENDIAN.
42515 Refer to SIZEOF_VOID_P instead of GRUB_HOST_SIZEOF_VOID_P to
42516 define grub_host_addr_t, grub_host_off_t, grub_host_size_t and
42519 * conf/i386-efi.rmk (noinst_UTILITIES): Removed.
42520 (genmoddep_SOURCES): Likewise.
42521 * conf/i386-pc.rmk (noinst_UTILITIES): Likewise.
42522 (genmoddep_SOURCES): Likewise.
42523 * conf/conf/powerpc-ieee1275.rmk (noinst_UTILITIES): Likewise.
42524 (genmoddep_SOURCES): Likewise.
42525 * conf/conf/conf/sparc64-ieee1275.rmk (noinst_UTILITIES):
42527 (genmoddep_SOURCES): Likewise.
42529 * genmoddep.awk: New file.
42531 * genmk.rb (Image::rule): Use TARGET_CC, TARGET_CPPFLAGS,
42532 TARGET_CFLAGS, TARGET_ASFLAGS and TARGET_LDFLAGS instead of CC,
42533 CPPFLAGS, CFLAGS, ASFLAGS and LDFLAGS, respectively.
42534 (PModule::rule): Likewise.
42535 (Program::rule): Likewise.
42536 (Utility::rule): Use CC, CPPFLAGS, CFLAGS and LDFLAGS instead of
42537 BUILD_CC, BUILD_CPPFLAGS, BUILD_CFLAGS and BUILD_LDFLAGS,
42540 * configure.ac: Rewritten intensively to use host and target
42541 instead of build and host, respectively.
42543 * Makefile.in (pkglibdir): Use target_cpu instead of host_cpu.
42544 (host_cpu): Removed.
42545 (target_cpu): New variable.
42546 (CPPFLAGS): Added @CPPFLAGS@ and -DGRUB_LIBDIR=\"$(pkglibdir)\".
42547 (BUILD_CC): Removed.
42548 (BUILD_CFLAGS): Likewise.
42549 (BUILD_CPPFLAGS): Likewise.
42550 (TARGET_CC): New variable.
42551 (TARGET_CFLAGS): Likewise.
42552 (TARGET_CPPFLAGS): Likewise.
42553 (TARGET_LDFLAGS): Likewise.
42555 (include): Use target_cpu instead of host_cpu.
42556 (moddep.lst:): Use genmoddep.awk instead of genmoddep.
42558 * DISTLIST: Added genmoddep.awk. Removed util/genmoddep.c.
42560 2006-05-29 Vesa Jaaskelainen <chaac@nic.fi>
42562 * include/grub/script.h (grub_script_cmdif): Renamed field 'bool' to
42563 'exec_to_evaluate'. Renamed field 'true' to 'exec_on_true'. Renamed
42564 field 'false' to 'exec_on_false'.
42565 (grub_script_create_cmdif): Renamed argument names to reflect above
42568 * normal/execute.c (grub_script_execute_cmdif): Likewise.
42570 * normal/script.c (grub_script_create_cmdif): Likewise.
42572 2006-05-28 Yoshinori K. Okuji <okuji@enbug.org>
42574 * fs/hfsplus.c (grub_hfsplus_btree_recoffset): Moved to near the
42576 (grub_hfsplus_btree_recptr): Likewise.
42577 (grub_hfsplus_find_block): Do not take RETRY any longer. Use
42578 FILEBLOCK both to pass a block number and store next block
42580 (grub_hfsplus_read_block): Rewritten heavily to support an extent
42581 overflow file correctly. Specify errors appropriately, because
42582 fshelp expects that GRUB_ERRNO is set when fails. Reuse
42583 grub_hfsplus_btree_recptr to get the pointer to a found key.
42584 (grub_hfsplus_btree_search): Return 1 instead of 0 when no match
42587 * conf/i386-efi.rmk (pkgdata_MODULES): Added _linux.mod and
42589 (_linux_mod_SOURCES): New variable.
42590 (_linux_mod_CFLAGS): Likewise.
42591 (_linux_mod_LDFLAGS): Likewise.
42592 (linux_mod_SOURCES): Likewise.
42593 (linux_mod_CFLAGS): Likewise.
42594 (linux_mod_LDFLAGS): Likewise.
42596 * DISTLIST: Added loader/i386/efi/linux.c,
42597 loader/i386/efi/linux_normal.c and
42598 include/grub/i386/efi/loader.h.
42600 * loader/i386/efi/linux.c: New file.
42601 * loader/i386/efi/linux_normal.c: Likewise.
42602 * include/grub/i386/efi/loader.h: Likewise.
42604 2006-05-27 Yoshinori K. Okuji <okuji@enbug.org>
42606 * commands/blocklist.c: New file.
42608 * DISTLIST: Added commands/blocklist.c.
42610 * term/efi/console.c (grub_console_highlight_color): Use a lighter
42611 color for the background, and a darker color for the foreground.
42612 (grub_console_checkkey): Return READ_KEY.
42613 (grub_console_cls): Set the background to
42614 GRUB_EFI_BACKGROUND_BLACK temporarily to clean out the screen.
42616 * kern/efi/efi.c (grub_efi_exit_boot_services): New function.
42618 * include/grub/i386/linux.h (struct linux_kernel_params): Fixed
42619 the size of "padding5", "hd0_drive_info" and "hd1_drive_info".
42621 * include/grub/efi/efi.h (grub_efi_exit_boot_services): New
42624 * include/grub/efi/api.h (GRUB_EFI_TEXT_ATTR): Do not shift
42625 BG. The spec is wrong again.
42627 * include/grub/normal.h [GRUB_UTIL] (grub_blocklist_init): New
42629 [GRUB_UTIL] (grub_blocklist_fini): Likewise.
42631 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
42632 commands/blocklist.c.
42633 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
42635 * conf/common.rmk (pkgdata_MODULES): Added blocklist.mod.
42636 (blocklist_mod_SOURCES): New variable.
42637 (blocklist_mod_CFLAGS): Likewise.
42638 (blocklist_mod_LDFLAGS): Likewise.
42640 2006-05-20 Yoshinori K. Okuji <okuji@enbug.org>
42642 * boot/i386/pc/boot.S (real_start): Set %si earlier to eliminate
42644 (lba_mode): Use %eax more intensively to reduce the code size.
42646 2006-05-20 Marco Gerards <marco@gnu.org>
42648 * normal/lexer.c (grub_script_yylex): Don't filter out newlines.
42650 * normal/parser.y (commandblock): Defined as <cmd>. A subroutine
42652 (script): Accept leading newlines.
42653 (newlines): New rule to describe 0 or more newlines.
42654 (commands): Accept `command' with trailing newline. Fixed the
42655 order in which arguments were passed to `grub_script_add_cmd'.
42656 Accept commands separated by newlines.
42657 (function): Changed to accept newlines.
42658 (menuentry) Rewritten.
42660 * normal/script.c (grub_script_create_cmdmenu): Add new entries in
42661 front of the list, instead of to the end.
42663 2006-05-19 Yoshinori K. Okuji <okuji@enbug.org>
42665 * util/i386/pc/grub-install.in (bindir): New variable.
42666 (grub_mkimage): Use BINDIR instead of SBINDIR. Reported by Lee
42667 Shaver <lbgwjl@gmail.com>.
42669 2006-05-14 Yoshinori K. Okuji <okuji@enbug.org>
42671 * kern/i386/pc/startup.S: Include grub/cpu/linux.h instead of
42672 grub/machine/linux.h
42673 * loader/i386/pc/linux.c: Likewise.
42675 * include/grub/i386/pc/linux.h: Moved to ...
42676 * include/grub/i386/linux.h: ... here.
42678 * include/grub/i386/linux.h (struct linux_kernel_params): New
42681 2006-05-09 Vesa Jaaskelainen <chaac@nic.fi>
42683 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Corrected bounds
42685 (grub_video_vbe_blit_glyph): Likewise.
42686 (grub_video_vbe_blit_bitmap): Likewise.
42687 (grub_video_vbe_blit_render_target): Likewise.
42689 2006-05-09 Yoshinori K. Okuji <okuji@enbug.org>
42691 * configure.ac (--with-platform): Properly quote the square
42694 2006-05-08 Marco Gerards <marco@gnu.org>
42696 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Renamed from
42698 (kernel_elf_HEADERS): ...to this. Updated all users.
42699 (grubof_symlist.c): Renamed from this...
42700 (kernel_elf_symlist.c): ...to this. Updated all users.
42701 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42702 (grubof_SOURCES): Renamed from this...
42703 (kernel_elf_SOURCES): ...to this.
42704 (grubof_HEADERS): Renamed from this...
42705 (kernel_elf_HEADERS): ...to this.
42706 (grubof_CFLAGS): Renamed from this...
42707 (kernel_elf_CFLAGS): ...to this.
42708 (grubof_ASFLAGS): Renamed from this...
42709 (kernel_elf_ASFLAGS): ...to this.
42710 (grubof_LDFLAGS): Renamed from this...
42711 (kernel_elf_LDFLAGS): ...to this.
42713 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Renamed from
42715 (kernel_elf_HEADERS): ...to this. Updated all users.
42716 (grubof_symlist.c): Renamed from this...
42717 (kernel_elf_symlist.c): ...to this. Updated all users.
42718 (pkgdata_PROGRAMS): Changed `grubof' to `kernel.elf'.
42719 (grubof_SOURCES): Renamed from this...
42720 (kernel_elf_SOURCES): ...to this.
42721 (grubof_HEADERS): Renamed from this...
42722 (kernel_elf_HEADERS): ...to this.
42723 (grubof_CFLAGS): Renamed from this...
42724 (kernel_elf_CFLAGS): ...to this.
42725 (grubof_ASFLAGS): Renamed from this...
42726 (kernel_elf_ASFLAGS): ...to this.
42727 (grubof_LDFLAGS): Renamed from this...
42728 (kernel_elf_LDFLAGS): ...to this.
42730 * util/powerpc/ieee1275/grub-mkimage.c (add_segments): Use
42731 `kernel.elf' instead of `grubof'.
42733 2006-05-08 Yoshinori K. Okuji <okuji@enbug.org>
42735 Add --with-platform to configure. Use pkglibdir instead of
42736 pkgdatadir. This is reported by Roger Leigh.
42738 * util/powerpc/ieee1275/grub-install.in (datadir): Removed.
42739 (host_vendor): Likewise.
42740 (host_os): Likewise.
42741 (pkgdatadir): Likewise.
42742 (platform): New variable.
42743 (pkglibdir): Likewise.
42744 Use PKGLIBDIR instead of PKGDATADIR.
42746 * util/i386/pc/grub-install.in (datadir): Removed.
42747 (host_vendor): Likewise.
42748 (host_os): Likewise.
42749 (pkgdatadir): Likewise.
42750 (platform): New variable.
42751 (pkglibdir): Likewise.
42752 Use PKGLIBDIR instead of PKGDATADIR.
42754 * util/powerpc/ieee1275/grub-mkimage.c (usage): Use GRUB_LIBDIR
42755 instead of GRUB_DATADIR.
42757 * util/i386/pc/grub-mkimage.c (usage): Likewise.
42759 * util/i386/efi/grub-mkimage.c (usage): Likewise.
42762 * configure.ac (--with-platform): New option.
42763 Use PLATFORM instead of HOST_VENDOR to specify a platform.
42765 * Makefile.in: Include a makefile based on PLATFORM instead of
42767 (pkgdatadir): Not appended by the machine type.
42768 (pkglibdir): Appended by the machine type.
42769 (host_vendor): Removed.
42770 (platform): New variable.
42771 (BUILD_CPPFLAGS): Specify GRUB_LIBDIR instead of GRUB_DATADIR.
42772 (install-local): Use PKGLIBDIR instead of PKGDATADIR.
42773 (uninstall): Likewise.
42775 2006-05-07 Yoshinori K. Okuji <okuji@enbug.org>
42777 Use the environment context in the menu. Remove the commands
42778 "default" and "timeout", and use variables instead.
42780 * normal/menu.c: Include grub/env.h.
42781 (print_entry): Cast TITLE to silence gcc.
42782 (get_timeout): New function.
42783 (set_timeout): Likewise.
42784 (get_entry_number): Likewise.
42785 (run_menu): Use a default entry, a fallback entry and a timeout
42786 in the environment variables "default", "fallback" and
42787 "timeout". Also, tweak the default entry if it is not within the
42788 current menu entries.
42789 (grub_menu_run): Use a fallback entry in the environment variable
42792 * normal/main.c (read_config_file): Do not initialize
42793 NEWMENU->DEFAULT_ENTRY, NEWMENU->FALLBACK_ENTRY or
42795 (grub_normal_execute): Use a data slot to store the menu.
42797 * include/grub/normal.h (struct grub_menu): Removed default_entry,
42798 fallback_entry and timeout.
42799 (struct grub_menu_list): Removed.
42800 (grub_menu_list_t): Likewise.
42801 (struct grub_context): Likewise.
42802 (grub_context_t): Likewise.
42803 (grub_context_get): Likewise.
42804 (grub_context_get_current_menu): Likewise.
42805 (grub_context_push_menu): Likewise.
42806 (grub_context_pop_menu): Likewise.
42807 (grub_default_init): Likewise.
42808 (grub_default_fini): Likewise.
42809 (grub_timeout_init): Likewise.
42810 (grub_timeout_fini): Likewise.
42812 * conf/sparc64-ieee1275.rmk (pkgdata_MODULES): Removed default.mod
42814 (normal_mod_SOURCES): Removed normal/context.c.
42816 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Removed
42817 commands/default.c, commands/timeout.c and normal/context.c.
42818 (normal_mod_SOURCES): Removed normal/context.c.
42820 * conf/i386-pc.rmk (grub_emu_SOURCES): Removed commands/default.c,
42821 commands/timeout.c and normal/context.c.
42822 (normal_mod_SOURCES): Removed normal/context.c.
42824 * conf/i386-efi.rmk (grub_emu_SOURCES): Removed
42825 commands/default.c, commands/timeout.c and normal/context.c.
42826 (normal_mod_SOURCES): Removed normal/context.c.
42828 * conf/common.rmk (pkgdata_MODULES): Removed default.mod and
42830 (default_mod_SOURCES): Removed.
42831 (default_mod_CFLAGS): Likewise.
42832 (default_mod_LDFLAGS): Likewise.
42833 (timeout_mod_SOURCES): Removed.
42834 (timeout_mod_CFLAGS): Likewise.
42835 (timeout_mod_LDFLAGS): Likewise.
42837 * DISTLIST: Removed commands/default.c, commands/timeout.c and
42840 * commands/default.c: Removed.
42841 * commands/timeout.c: Likewise.
42842 * normal/context.c: Likewise.
42844 2006-05-07 Vesa Jaaskelainen <chaac@nic.fi>
42846 * kern/i386/pc/startup.S (grub_exit): Added missing .code32 tag.
42848 2006-05-02 Yoshinori K. Okuji <okuji@enbug.org>
42850 * kern/env.c (struct grub_env_context): Removed "sorted". Renamed
42851 "next" to "prev" for readability.
42852 (struct grub_env_sorted_var): New struct.
42853 (grub_env_context): Renamed to ...
42854 (initial_context): ... this.
42855 (grub_env_var_context): Renamed to ...
42856 (current_context): ... this.
42857 (grub_env_find): Look only at CURRENT_CONTEXT.
42858 (grub_env_context_open): Rewritten to copy exported variables from
42860 (grub_env_context_close): Rewritten according to the new
42861 scheme. Also, add an assertion to prevent the initial context from
42863 (grub_env_insert): Removed the code for the sorted list.
42864 (grub_env_remove): Likewise.
42865 (grub_env_export): Simply mark the variable with
42866 GRUB_ENV_VAR_GLOBAL.
42867 (grub_env_set): A cosmetic change for naming consistency.
42868 (grub_env_get): Likewise.
42869 (grub_env_unset): Likewise.
42870 (grub_env_iterate): Rewritten to sort variables within this
42872 (grub_register_variable_hook): Fixed for naming consistency. Call
42873 grub_env_find again, only if NAME is not found at the first time.
42874 (mangle_data_slot_name): New function.
42875 (grub_env_set_data_slot): Likewise.
42876 (grub_env_get_data_slot): Likewise.
42877 (grub_env_unset_data_slot): Likewise.
42879 * include/grub/env.h (grub_env_var_type): New enum.
42880 (GRUB_ENV_VAR_LOCAL): New constant.
42881 (GRUB_ENV_VAR_GLOBAL): Likewise.
42882 (GRUB_ENV_VAR_DATA): Likewise.
42883 (struct grub_env_var): Removed "sort_next" and "sort_prevp". Added
42885 (grub_env_set): Replace VAR with NAME for consistency.
42886 (grub_register_variable_hook): Likewise.
42887 (grub_env_export): Specify the name of the argument.
42888 (grub_env_set_data_slot): New prototype.
42889 (grub_env_get_data_slot): Likewise.
42890 (grub_env_unset_data_slot): Likewise.
42892 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42894 Extend the loader so that GRUB can accept a loader which comes
42895 back to GRUB when a loaded image exits. Also, this change adds
42896 support for a chainloader on EFI.
42898 * term/efi/console.c: Include grub/misc.h.
42899 (grub_console_checkkey): Display a scan code on the top for
42900 debugging. This will be removed once the EFI port gets stable.
42901 Correct the scan code mapping.
42903 * kern/efi/mm.c (sort_memory_map): Sort in a descending order to
42904 allocate memory from larger regions, in order to reduce the number
42905 of allocated regions. Otherwise, the MacOSX loader panics.
42906 (filter_memory_map): Avoid less than 1MB for compatibility with
42908 (add_memory_regions): Allocate from the tail of a region, if
42909 possible, to avoid allocating a region near to 1MB, for the MacOSX
42912 * kern/efi/init.c (grub_efi_set_prefix): Specify
42913 GRUB_EFI_IMAGE_HANDLE to grub_efi_get_loaded_image.
42915 * kern/efi/efi.c (grub_efi_get_loaded_image): Accept a new
42916 argument IMAGE_HANDLE and specify it to get a loaded image.
42917 (grub_arch_modules_addr): Specify GRUB_EFI_IMAGE_HANDLE to
42918 grub_efi_get_loaded_image.
42919 (grub_efi_get_filename): Divide the length by the size of
42921 (grub_efi_get_device_path): New function.
42922 (grub_efi_print_device_path): Print End Device Path nodes. Divide
42923 the length by the size of grub_efi_char16_t for a file path device
42926 * kern/loader.c (grub_loader_noreturn): New variable.
42927 (grub_loader_set): Accept a new argument NORETURN. Set
42928 GRUB_LOADER_NORETURN to NORETURN.
42929 All callers changed.
42930 (grub_loader_boot): If GRUB_LOADER_NORETURN is false, do not call
42933 * include/grub/efi/efi.h (grub_efi_get_device_path): New
42935 (grub_efi_get_loaded_image): Take an argument to specify an image
42938 * include/grub/loader.h (grub_loader_set): Added one more argument
42941 * disk/efi/efidisk.c (make_devices): Use grub_efi_get_device_path
42942 instead of grub_efi_open_protocol.
42943 (grub_efidisk_get_device_name): Likewise.
42944 (grub_efidisk_close): Print a newline.
42945 (grub_efidisk_get_device_handle): Fixed to use
42946 GRUB_EFI_DEVICE_PATH_SUBTYPE instead of
42947 GRUB_EFI_DEVICE_PATH_TYPE.
42949 * disk/efi/efidisk.c (device_path_guid): Moved to ...
42950 * kern/efi/efi.c (device_path_guid): ... here.
42952 * conf/i386-efi.rmk (pkgdata_MODULES): Added _chain.mod and
42954 (kernel_mod_HEADERS): Added efi/disk.h.
42955 (_chain_mod_SOURCES): New variable.
42956 (_chain_mod_CFLAGS): Likewise.
42957 (_chain_mod_LDFLAGS): Likewise.
42958 (chain_mod_SOURCES): Likewise.
42959 (chain_mod_CFLAGS): Likewise.
42960 (chain_mod_LDFLAGS): Likewise.
42962 * DISTLIST: Added include/grub/efi/chainloader.h,
42963 loader/efi/chainloader.c and loader/efi/chainloader_normal.c.
42965 * include/grub/efi/chainloader.h: New file.
42966 * loader/efi/chainloader.c: Likewise.
42967 * loader/efi/chainloader_normal.c: Likewise.
42969 2006-04-30 Marco Gerards <marco@gnu.org>
42971 * commands/configfile.c (grub_cmd_source): New function.
42972 (GRUB_MOD_INIT): Register the commands `source' and `.'.
42973 (GRUB_MOD_FINI): De-register the commands `source' and `.'.
42975 2006-04-30 Marco Gerards <marco@gnu.org>
42977 * normal/execute.c (grub_script_execute_cmd): Change the return
42978 type to `grub_err_t'. Correctly return the error.
42979 (grub_script_execute_cmdline): In case a command line is not a
42980 command or a function, try to interpret it as an assignment.
42982 2006-04-30 Yoshinori K. Okuji <okuji@enbug.org>
42984 * fs/hfsplus.c (grub_hfsplus_read_block): Fixed a memory leak.
42985 (grub_hfsplus_iterate_dir): Reordered to skip unknown nodes. Also,
42986 skip a node whose name is obviously invalid as UTF-16,
42987 i.e. contains a NUL character. Stop the iteration when the last
42988 directory entry is found. Instead of using the return value of
42989 grub_hfsplus_btree_iterate_node, store the value in RET and use
42990 it, because the iterator can be stopped by the last directory
42993 2006-04-30 Marco Gerards <marco@gnu.org>
42995 * include/grub/env.h (grub_env_export): New prototype. Reported
42996 by Jan C. Kleinsorge <jan.kleinsorge@udo.edu>.
42998 2006-04-30 Marco Gerards <marco@gnu.org>
43000 * fs/hfsplus.c (grub_hfsplus_iterate_dir): Correctly calculate the
43001 size of the extents in a catalog file record.
43003 2006-04-29 Marco Gerards <marco@gnu.org>
43005 * commands/configfile.c (grub_cmd_configfile): Execute the
43006 configfile within its own context.
43008 * include/grub/env.h (grub_env_context_open): New prototype.
43009 (grub_env_context_close): Likewise.
43011 * kern/env.c (grub_env): Removed.
43012 (grub_env_sorted): Likewise.
43013 (grub_env_context): New variable.
43014 (grub_env_var_context): Likewise.
43015 (grub_env_find): Search both the active context and the global
43017 (grub_env_context_open): New function.
43018 (grub_env_context_close): Likewise.
43019 (grub_env_insert): Likewise.
43020 (grub_env_remove): Likewise.
43021 (grub_env_export): Likewise.
43022 (grub_env_set): Changed to use helper functions to avoid code
43024 (grub_env_iterate): Rewritten so both the current context and the
43025 global context are being used.
43027 * normal/command.c (export_command): New function.
43028 (grub_command_init): Register the `export' function.
43030 2006-04-26 Yoshinori K. Okuji <okuji@enbug.org>
43032 * util/i386/pc/grub-mkimage.c (compress_kernel): Cast arguments
43033 explicitly to suppress gcc's warnings.
43034 * fs/fat.c (grub_fat_find_dir): Likewise.
43035 (grub_fat_label): Likewise.
43036 * fs/xfs.c (grub_xfs_read_inode): Likewise.
43037 (grub_xfs_mount): Likewise.
43038 (grub_xfs_label): Likewise.
43039 * fs/affs.c (grub_affs_mount): Likewise.
43040 (grub_affs_label): Likewise.
43041 (grub_affs_iterate_dir): Likewise.
43042 * fs/sfs.c (grub_sfs_mount): Likewise.
43043 (grub_sfs_iterate_dir): Likewise.
43044 * fs/ufs.c (grub_ufs_lookup_symlink): Likewise.
43045 * fs/hfs.c (grub_hfs_mount): Likewise.
43046 (grub_hfs_cmp_catkeys): Likewise.
43047 (grub_hfs_find_dir): Likewise.
43048 (grub_hfs_dir): Likewise.
43049 (grub_hfs_label): Likewise.
43050 * fs/jfs.c (grub_jfs_mount): Likewise.
43051 (grub_jfs_opendir): Likewise.
43052 (grub_jfs_getent): Likewise.
43053 (grub_jfs_lookup_symlink): Likewise.
43054 (grub_jfs_label): Likewise.
43055 * fs/hfsplus.c (grub_hfsplus_cmp_catkey): Likewise.
43056 (grub_hfsplus_iterate_dir): Likewise.
43057 (grub_hfsplus_btree_iterate_node): Made static.
43059 * util/grub-emu.c (prefix): New variable.
43060 (grub_machine_set_prefix): New function.
43061 (main): Do not set the environment variable "prefix" here. Only
43062 set PREFIX, which is used later by grub_machine_set_prefix.
43064 * include/grub/video.h: Do not include grub/symbol.h.
43065 (grub_video_register): Not exported. This symbol is not defined in
43067 (grub_video_unregister): Likewise.
43068 (grub_video_iterate): Likewise.
43069 (grub_video_setup): Likewise.
43070 (grub_video_restore): Likewise.
43071 (grub_video_get_info): Likewise.
43072 (grub_video_get_blit_format): Likewise.
43073 (grub_video_set_palette): Likewise.
43074 (grub_video_get_palette): Likewise.
43075 (grub_video_set_viewport): Likewise.
43076 (grub_video_get_viewport): Likewise.
43077 (grub_video_map_color): Likewise.
43078 (grub_video_map_rgb): Likewise.
43079 (grub_video_map_rgba): Likewise.
43080 (grub_video_fill_rect): Likewise.
43081 (grub_video_blit_glyph): Likewise.
43082 (grub_video_blit_bitmap): Likewise.
43083 (grub_video_blit_render_target): Likewise.
43084 (grub_video_scroll): Likewise.
43085 (grub_video_swap_buffers): Likewise.
43086 (grub_video_create_render_target): Likewise.
43087 (grub_video_delete_render_target): Likewise.
43088 (grub_video_set_active_render_target): Likewise.
43090 * include/grub/symbol.h [GRUB_SYMBOL_GENERATOR] (EXPORT_FUNC):
43092 [GRUB_SYMBOL_GENERATOR] (EXPORT_VAR): Likewise.
43094 * conf/sparc64-ieee1275.rmk (grubof_symlist.c): Depended on
43095 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43096 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43097 instead of $(srcdir)/genkernsyms.sh.
43099 * conf/powerpc-ieee1275.rmk (grubof_symlist.c): Depended on
43100 config.h. Use gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43101 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43102 instead of $(srcdir)/genkernsyms.sh.
43104 * conf/i386-pc.rmk (symlist.c): Depended on config.h. Use
43105 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43106 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43107 instead of $(srcdir)/genkernsyms.sh.
43109 * conf/i386-efi.rmk (symlist.c): Depended on config.h. Use
43110 gensymlist.sh instead of $(srcdir)/gensymlist.sh.
43111 (kernel_syms.lst): Depended on config.h. Use genkernsyms.sh
43112 instead of $(srcdir)/genkernsyms.sh.
43114 * configure.ac (AC_CONFIG_FILES): Added gensymlist.sh and
43117 * Makefile.in (DISTCLEANFILES): Added gensymlist.sh and
43119 (gensymlist.sh): New target.
43120 (genkernsyms.sh): Likewise.
43122 * DISTLIST: Removed genkernsyms.sh and gensymlist.sh. Added
43123 genkernsyms.sh.in and gensymlist.sh.in.
43125 * genkernsyms.sh: Removed.
43126 * gensymlist.sh: Likewise.
43128 * genkernsyms.sh.in: New file.
43129 * gensymlist.sh.in: Likewise.
43131 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43133 * kern/powerpc/ieee1275/init.c (grub_machine_set_prefix): Do not
43134 clobber "prefix", since we may have already set it manually.
43136 2006-04-25 Hollis Blanchard <hollis@penguinppc.org>
43138 * kern/misc.c (abort): New alias for grub_abort.
43140 2006-04-25 Yoshinori K. Okuji <okuji@enbug.org>
43142 A new machine-specific function "grub_machine_set_prefix" is
43143 defined. This is called after loading modules, so that a prefix
43144 initialization can use modules. Also, this change adds an
43145 intensive debugging feature for the memory manager via the
43146 configure option "--enable-mm-debug".
43148 * partmap/gpt.c (gpt_partition_map_iterate): Add one more into
43151 * kern/sparc64/ieee1275/init.c (abort): Removed.
43152 (grub_stop): Likewise.
43153 (grub_exit): New function.
43154 (grub_set_prefix): Renamed to ...
43155 (grub_machine_set_prefix): ... this.
43156 (grub_machine_init): Do not call grub_set_prefix.
43158 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Renamed to ...
43159 (grub_machine_set_prefix): ... this.
43160 (grub_machine_init): Do not call grub_set_prefix.
43162 * kern/i386/pc/init.c (grub_machine_set_prefix): New function.
43163 (grub_machine_init): Do not set the prefix here.
43165 * kern/i386/efi/init.c (grub_machine_set_prefix): New function.
43167 * kern/efi/init.c: Include grub/mm.h.
43168 (grub_efi_set_prefix): New function.
43170 * kern/efi/efi.c (grub_exit): Call grub_efi_fini.
43171 (grub_efi_get_filename): New function.
43172 (grub_print_device_path): Renamed to ...
43173 (grub_efi_print_device_path): ... this.
43175 * kern/mm.c [MM_DEBUG] (grub_malloc): Undefined.
43176 [MM_DEBUG] (grub_realloc): Likewise.
43177 [MM_DEBUG] (grub_free): Likewise.
43178 [MM_DEBUG] (grub_memalign): Likewise.
43179 [MM_DEBUG] (grub_mm_debug): New variable.
43180 [MM_DEBUG] (grub_debug_malloc): New function.
43181 [MM_DEBUG] (grub_debug_free): New function.
43182 [MM_DEBUG] (grub_debug_realloc): New function.
43183 [MM_DEBUG] (grub_debug_memalign): New function.
43185 * kern/misc.c (grub_abort): Print a newline to distinguish
43188 * kern/main.c (grub_main): Call grub_machine_set_prefix and
43189 grub_set_root_dev after loading modules. This is necessary when
43190 setting a prefix depends on modules.
43192 * include/grub/efi/efi.h (grub_print_device_path): Renamed to ...
43193 (grub_efi_print_device_path): ... this.
43194 (grub_efi_get_filename): New prototype.
43195 (grub_efi_set_prefix): Likewise.
43197 * include/grub/efi/disk.h: Include grub/efi/api.h, grub/symbol.h
43199 (grub_efidisk_get_device_handle): New prototype.
43200 (grub_efidisk_get_device_name): Likewise.
43202 * include/grub/mm.h: Include config.h.
43203 (MM_DEBUG): Removed.
43204 [MM_DEBUG && !GRUB_UTIL] (grub_mm_debug): New prototype.
43205 [MM_DEBUG && !GRUB_UTIL] (grub_malloc): New macro.
43206 [MM_DEBUG && !GRUB_UTIL] (grub_realloc): Likewise.
43207 [MM_DEBUG && !GRUB_UTIL] (grub_memalign): Likewise.
43208 [MM_DEBUG && !GRUB_UTIL] (grub_free): Likewise.
43209 [MM_DEBUG && !GRUB_UTIL] (grub_debug_malloc): New prototype.
43210 [MM_DEBUG && !GRUB_UTIL] (grub_debug_realloc): New prototype.
43211 [MM_DEBUG && !GRUB_UTIL] (grub_debug_memalign): New prototype.
43212 [MM_DEBUG && !GRUB_UTIL] (grub_debug_free): New prototype.
43214 * include/grub/kernel.h (grub_machine_set_prefix): New prototype.
43216 * disk/efi/efidisk.c: Include grub/partition.h.
43217 (iterate_child_devices): New function.
43218 (add_device): First, compare only last device path nodes, so that
43219 devices are sorted by the types.
43220 (grub_efidisk_get_device_handle): New function.
43221 (grub_efidisk_get_device_name): Likewise.
43223 * configure.ac (--enable-mm-debug): New option to enable the
43224 memory manager debugging feature. This makes the binary much
43225 bigger, so is disabled by default.
43227 2006-04-23 Yoshinori K. Okuji <okuji@enbug.org>
43229 Use grub_abort instead of grub_stop, and grub_exit must be
43230 define in each architecture now. Also, this change adds support
43233 * util/i386/pc/grub-probefs.c: Include grub/term.h.
43234 (grub_getkey): New function.
43235 (grub_term_get_current): Likewise.
43237 * util/i386/pc/grub-setup.c: Include grub/term.h.
43238 (grub_getkey): New function.
43239 (grub_term_get_current): Likewise.
43241 * util/misc.c (grub_stop): Renamed to ...
43242 (grub_exit): ... this.
43244 * kern/powerpc/ieee1275/init.c (abort): Renamed to ...
43245 (grub_exit): ... this.
43246 (grub_machine_init): Use grub_abort instead of abort.
43247 (grub_stop): Removed.
43249 * kern/powerpc/ieee1275/cmain.c (cmain): Use grub_abort instead of
43252 * kern/i386/pc/startup.S (grub_exit): New function.
43253 (cold_reboot): New label.
43255 * kern/efi/init.c: Include grub/efi/disk.h and grub/env.h.
43256 (grub_efi_init): Call grub_efidisk_init.
43257 (grub_efi_fini): Call grub_efidisk_fini.
43259 * kern/efi/efi.c: Include grub/mm.h.
43260 (grub_efi_console_control_guid): Renamed to ...
43261 (console_control_guid): ... this.
43262 (grub_efi_loaded_image_guid): Renamed to ...
43263 (loaded_image_guid): ... this.
43264 (grub_efi_locate_handle): New function.
43265 (grub_efi_open_protocol): Likewise.
43266 (grub_efi_set_text_mode): Use CONSOLE_CONTROL_GUID instead of
43267 GRUB_EFI_CONSOLE_CONTROL_GUID.
43268 (grub_efi_exit): Removed.
43269 (grub_stop): Likewise.
43270 (grub_efi_get_loaded_image): Use grub_efi_open_protocol.
43271 (grub_exit): New function.
43272 (grub_print_device_path): Likewise.
43274 * kern/rescue.c (grub_rescue_cmd_exit): New function.
43275 (grub_enter_rescue_mode): Register "exit".
43277 * kern/misc.c (grub_real_dprintf): A cosmetic change.
43278 (grub_abort): New function.
43280 * kern/err.c (grub_fatal): Use grub_abort instead of grub_stop.
43282 * include/grub/sparc64/ieee1275/kernel.h (abort): Removed.
43284 * include/grub/powerpc/ieee1275/kernel.h (abort): Removed.
43286 * include/grub/efi/efi.h (grub_efi_exit): Removed.
43287 (grub_print_device_path): New prototype.
43288 (grub_efi_locate_handle): Likewise.
43289 (grub_efi_open_protocol): Likewise.
43291 * include/grub/efi/disk.h (grub_efidisk_fini): New file.
43292 * disk/efi/efidisk.c: Likewise.
43294 * DISTLIST: Added disk/efi/efidisk.c and include/grub/efi/disk.h.
43296 * include/grub/efi/console_control.h
43297 (GRUB_EFI_CONSOLE_CONTROL_GUID): Use an array for the last 8 bytes.
43299 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): Specify the
43300 last 8 bytes as an array.
43301 (GRUB_EFI_DISK_IO_GUID): New macro.
43302 (GRUB_EFI_BLOCK_IO_GUID): Likewise.
43303 (GRUB_EFI_DEVICE_PATH_GUID): Likewise.
43304 (grub_efi_ipv6_address_t): Change the type to grub_uint16_t from
43306 (struct grub_efi_guid): Use an array to specify the last 8 bytes.
43307 (struct grub_efi_device_path): Rename the member "sub_type" to
43309 (GRUB_EFI_DEVICE_PATH_TYPE): New macro.
43310 (GRUB_EFI_DEVICE_PATH_SUBTYPE): Likewise.
43311 (GRUB_EFI_DEVICE_PATH_LENGTH): Likewise.
43312 (GRUB_EFI_END_DEVICE_PATH_TYPE): Likewise.
43313 (GRUB_EFI_END_ENTIRE_DEVICE_PATH_SUBTYPE): Likewise.
43314 (GRUB_EFI_END_THIS_DEVICE_PATH_SUBTYPE): Likewise.
43315 (GRUB_EFI_END_ENTIRE_DEVICE_PATH): Likewise.
43316 (GRUB_EFI_NEXT_DEVICE_PATH): Likewise.
43317 (GRUB_EFI_HARDWARE_DEVICE_PATH_TYPE): Likewise.
43318 (GRUB_EFI_PCI_DEVICE_PATH_SUBTYPE): Likewise.
43319 (struct grub_efi_pci_device_path): New structure.
43320 (grub_efi_pci_device_path_t): New type.
43321 (GRUB_EFI_PCCARD_DEVICE_PATH_SUBTYPE): New macro.
43322 (struct grub_efi_pccard_device_path): New structure.
43323 (grub_efi_pccard_device_path_t): New type.
43324 (GRUB_EFI_MEMORY_MAPPED_DEVICE_PATH_SUBTYPE): New macro.
43325 (struct grub_efi_memory_mapped_device_path): New structure.
43326 (grub_efi_memory_mapped_device_path_t): New type.
43327 (GRUB_EFI_VENDOR_DEVICE_PATH_SUBTYPE): New macro.
43328 (struct grub_efi_vendor_device_path): New structure.
43329 (grub_efi_vendor_device_path_t): New type.
43330 (GRUB_EFI_CONTROLLER_DEVICE_PATH_SUBTYPE): New macro.
43331 (struct grub_efi_controller_device_path): New structure.
43332 (grub_efi_controller_device_path_t): New type.
43333 (GRUB_EFI_ACPI_DEVICE_PATH_TYPE): New macro.
43334 (GRUB_EFI_ACPI_DEVICE_PATH_SUBTYPE): Likewise.
43335 (struct grub_efi_acpi_device_path): New structure.
43336 (grub_efi_acpi_device_path_t): New type.
43337 (GRUB_EFI_EXPANDED_ACPI_DEVICE_PATH_SUBTYPE): New macro.
43338 (struct grub_efi_expanded_acpi_device_path): New structure.
43339 (grub_efi_expanded_acpi_device_path_t): New type.
43340 (GRUB_EFI_EXPANDED_ACPI_HIDSTR): New macro.
43341 (GRUB_EFI_EXPANDED_ACPI_UIDSTR): Likewise.
43342 (GRUB_EFI_EXPANDED_ACPI_CIDSTR): Likewise.
43343 (GRUB_EFI_MESSAGING_DEVICE_PATH_TYPE): Likewise.
43344 (GRUB_EFI_ATAPI_DEVICE_PATH_SUBTYPE): Likewise.
43345 (struct grub_efi_atapi_device_path): New structure.
43346 (grub_efi_atapi_device_path_t): New type.
43347 (GRUB_EFI_FIBRE_CHANNEL_DEVICE_PATH_SUBTYPE): New macro.
43348 (struct grub_efi_fibre_channel_device_path): New structure.
43349 (grub_efi_fibre_channel_device_path_t): New type.
43350 (GRUB_EFI_1394_DEVICE_PATH_SUBTYPE): New macro.
43351 (struct grub_efi_1394_device_path): New structure.
43352 (grub_efi_1394_device_path_t): New type.
43353 (GRUB_EFI_USB_DEVICE_PATH_SUBTYPE): New macro.
43354 (struct grub_efi_usb_device_path): New structure.
43355 (grub_efi_usb_device_path_t): New type.
43356 (GRUB_EFI_USB_CLASS_DEVICE_PATH_SUBTYPE): New macro.
43357 (struct grub_efi_usb_class_device_path): New structure.
43358 (grub_efi_usb_class_device_path_t): New type.
43359 (GRUB_EFI_I2O_DEVICE_PATH_SUBTYPE): New macro.
43360 (struct grub_efi_i2o_device_path): New structure.
43361 (grub_efi_i2o_device_path_t): New type.
43362 (GRUB_EFI_MAC_ADDRESS_DEVICE_PATH_SUBTYPE): New macro.
43363 (struct grub_efi_mac_address_device_path): New structure.
43364 (grub_efi_mac_address_device_path_t): New type.
43365 (GRUB_EFI_IPV4_DEVICE_PATH_SUBTYPE): New macro.
43366 (struct grub_efi_ipv4_device_path): New structure.
43367 (grub_efi_ipv4_device_path_t): New type.
43368 (GRUB_EFI_IPV6_DEVICE_PATH_SUBTYPE): New macro.
43369 (struct grub_efi_ipv6_device_path): New structure.
43370 (grub_efi_ipv6_device_path_t): New type.
43371 (GRUB_EFI_INFINIBAND_DEVICE_PATH_SUBTYPE): New macro.
43372 (struct grub_efi_infiniband_device_path): New structure.
43373 (grub_efi_infiniband_device_path_t): New type.
43374 (GRUB_EFI_UART_DEVICE_PATH_SUBTYPE): New macro.
43375 (struct grub_efi_uart_device_path): New structure.
43376 (grub_efi_uart_device_path_t): New type.
43377 (GRUB_EFI_VENDOR_MESSAGING_DEVICE_PATH_SUBTYPE): New macro.
43378 (struct grub_efi_vendor_messaging_device_path): New structure.
43379 (grub_efi_vendor_messaging_device_path_t): New type.
43380 (GRUB_EFI_MEDIA_DEVICE_PATH_TYPE): New macro.
43381 (GRUB_EFI_HARD_DRIVE_DEVICE_PATH_SUBTYPE): Likewise.
43382 (struct grub_efi_hard_drive_device_path): New structure.
43383 (grub_efi_hard_drive_device_path_t): New type.
43384 (GRUB_EFI_CDROM_DEVICE_PATH_SUBTYPE): New macro.
43385 (struct grub_efi_cdrom_device_path): New structure.
43386 (grub_efi_cdrom_device_path_t): New type.
43387 (GRUB_EFI_VENDOR_MEDIA_DEVICE_PATH_SUBTYPE): New macro.
43388 (struct grub_efi_vendor_media_device_path): New structure.
43389 (grub_efi_vendor_media_device_path_t): New type.
43390 (GRUB_EFI_FILE_PATH_DEVICE_PATH_SUBTYPE): New macro.
43391 (struct grub_efi_file_path_device_path): New structure.
43392 (grub_efi_file_path_device_path_t): New type.
43393 (GRUB_EFI_PROTOCOL_DEVICE_PATH_SUBTYPE): New macro.
43394 (struct grub_efi_protocol_device_path): New structure.
43395 (grub_efi_protocol_device_path_t): New type.
43396 (GRUB_EFI_BIOS_DEVICE_PATH_TYPE): New macro.
43397 (GRUB_EFI_BIOS_DEVICE_PATH_SUBTYPE): Likewise.
43398 (struct grub_efi_bios_device_path): New structure.
43399 (grub_efi_bios_device_path_t): New type.
43400 (struct grub_efi_disk_io): New structure.
43401 (grub_efi_disk_io_t): New type.
43402 (struct grub_efi_block_io_media): New structure.
43403 (grub_efi_block_io_media_t): New type.
43404 (struct grub_efi_block_io): New structure.
43405 (grub_efi_block_io_t): New type.
43407 * include/grub/misc.h (grub_stop): Removed.
43408 (grub_exit): New prototype.
43409 (grub_abort): Likewise.
43411 * include/grub/disk.h (enum grub_disk_dev_id): Added
43412 GRUB_DISK_DEVICE_EFIDISK_ID.
43414 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added
43415 disk/efi/efidisk.c.
43416 (kernel_syms.lst): Remove the target if an error occurs.
43418 2006-04-22 Yoshinori K. Okuji <okuji@enbug.org>
43420 * kern/misc.c (grub_lltoa): Rewritten the decimal conversion part,
43421 as it was simply too buggy.
43423 2006-04-21 Yoshinori K. Okuji <okuji@enbug.org>
43425 * kern/misc.c (grub_lltoa): New function.
43426 (grub_vsprintf): Added support for the long long suffix,
43429 2006-04-20 Hollis Blanchard <hollis@penguinppc.org>
43431 * Makefile.in (LDFLAGS): Add variable.
43432 (LD): Remove variable.
43433 * configure.ac: Add -m32 to LDFLAGS.
43434 * genmk.rb (PModule#rule): Use $(CC) instead of $(LD).
43435 * conf/powerpc-ieee1275.rmk (COMMON_LDFLAGS): Add variable.
43436 (grubof_LDFLAGS): Use $(COMMON_LDFLAGS).
43437 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS, normal_mod_LDFLAGS,
43438 suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS): New
43440 * conf/sparc64-ieee1275.rmk (COMMON_LDFLAGS): Add -nostdlib.
43441 * conf/i386-pc.rmk (COMMON_LDFLAGS): Add -nostdlib.
43442 * conf/i386-efi.rmk (COMMON_LDFLAGS): Add -nostdlib.
43444 2006-04-20 Vesa Jaaskelainen <chaac@nic.fi>
43446 * term/gfxterm.c (grub_gfxterm_getcharwidth): Fixed character
43447 length for unknown glyph.
43449 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43451 Add support for pre-loaded modules into the EFI port.
43453 * util/i386/efi/grub-mkimage.c (make_mods_section): Rewritten
43454 completely. Accept one more argument DIR. The caller has changed.
43456 * kern/i386/efi/init.c (grub_arch_modules_addr): Removed.
43458 * kern/efi/efi.c: Include grub/efi/pe32.h and grub/kernel.h.
43459 (grub_efi_loaded_image_guid): New variable.
43460 (grub_efi_get_loaded_image): New function.
43461 (grub_arch_modules_addr): Likewise.
43463 * include/grub/efi/efi.h (grub_efi_get_loaded_image): New
43466 * include/grub/efi/api.h (GRUB_EFI_LOADED_IMAGE_GUID): New macro.
43467 (struct grub_efi_loaded_image): New structure.
43468 (grub_efi_loaded_image_t): New type.
43470 2006-04-20 Yoshinori K. Okuji <okuji@enbug.org>
43472 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Compare the file
43473 size with GRUB_OS_AREA_SIZE as grub_size_t instead of
43474 grub_ssize_t. Reported by Jeff Chua <jeff84@silk.corp.fedex.com>.
43476 2006-04-19 Roger Leigh <rleigh@whinlatter.ukfsn.org>
43478 * DISTLIST: Added `util/powerpc/ieee1275/grub-install.in'.
43480 2006-04-19 Yoshinori K. Okuji <okuji@enbug.org>
43482 * DISTLIST: Added include/grub/efi/console.h,
43483 include/grub/efi/time.h, include/grub/i386/efi/kernel.h,
43484 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43486 * include/grub/efi/console.h: New file.
43487 * include/grub/efi/time.h: Likewise.
43488 * include/grub/i386/efi/kernel.h: Likewise.
43489 * kern/efi/init.c: Likewise.
43490 * kern/efi/mm.c: Likewise.
43491 * term/efi/console.c: Likewise.
43493 * kern/i386/efi/init.c: Do not include grub/machine/time.h.
43494 (grub_stop): Removed.
43495 (grub_get_rtc): Likewise.
43496 (grub_machine_init): Simply call grub_efi_init.
43497 (grub_machine_fini): Call grub_efi_fini.
43499 * kern/efi/efi.c: Include grub/machine/time.h and grub/term.h.
43500 (grub_efi_output_string): Removed.
43501 (grub_efi_stall): New function.
43502 (grub_stop): Likewise.
43503 (grub_get_rtc): Likewise.
43505 * include/grub/efi/efi.h (grub_efi_output_string): Removed.
43506 (grub_efi_stall): New prototype.
43507 (grub_efi_allocate_pages): Likewise.
43508 (grub_efi_free_pages): Likewise.
43509 (grub_efi_get_memory_map): Likewise.
43510 (grub_efi_mm_init): Likewise.
43511 (grub_efi_mm_fini): Likewise.
43512 (grub_efi_init): Likewise.
43513 (grub_efi_fini): Likewise.
43515 * include/grub/i386/efi/time.h: Do not include
43516 grub/symbol.h. Include grub/efi/time.h.
43517 (GRUB_TICKS_PER_SECOND): Removed.
43518 (grub_get_rtc): Likewise.
43520 * include/grub/efi/api.h (struct grub_efi_memory_descriptor):
43521 Added padding. The EFI spec is buggy.
43522 (GRUB_EFI_BLACK): New macro.
43523 (GRUB_EFI_BLUE): Likewise.
43524 (GRUB_EFI_GREEN): Likewise.
43525 (GRUB_EFI_CYAN): Likewise.
43526 (GRUB_EFI_RED): Likewise.
43527 (GRUB_EFI_MAGENTA): Likewise.
43528 (GRUB_EFI_BROWN): Likewise.
43529 (GRUB_EFI_LIGHTGRAY): Likewise.
43530 (GRUB_EFI_BRIGHT): Likewise.
43531 (GRUB_EFI_DARKGRAY): Likewise.
43532 (GRUB_EFI_LIGHTBLUE): Likewise.
43533 (GRUB_EFI_LIGHTGREEN): Likewise.
43534 (GRUB_EFI_LIGHTCYAN): Likewise.
43535 (GRUB_EFI_LIGHTRED): Likewise.
43536 (GRUB_EFI_LIGHTMAGENTA): Likewise.
43537 (GRUB_EFI_YELLOW): Likewise.
43538 (GRUB_EFI_WHITE): Likewise.
43539 (GRUB_EFI_BACKGROUND_BLACK): Likewise.
43540 (GRUB_EFI_BACKGROUND_BLUE): Likewise.
43541 (GRUB_EFI_BACKGROUND_GREEN): Likewise.
43542 (GRUB_EFI_BACKGROUND_CYAN): Likewise.
43543 (GRUB_EFI_BACKGROUND_RED): Likewise.
43544 (GRUB_EFI_BACKGROUND_MAGENTA): Likewise.
43545 (GRUB_EFI_BACKGROUND_BROWN): Likewise.
43546 (GRUB_EFI_BACKGROUND_LIGHTGRAY): Likewise.
43547 (GRUB_EFI_TEXT_ATTR): Likewise.
43549 * conf/i386-efi.rmk (kernel_mod_SOURCES): Added kern/efi/efi.c,
43550 kern/efi/init.c, kern/efi/mm.c, and term/efi/console.c.
43551 (kernel_mod_HEADERS): Added efi/time.h.
43553 2006-04-18 Yoshinori K. Okuji <okuji@enbug.org>
43555 * DISTLIST: Added conf/i386-efi.mk, conf/i386-efi.rmk,
43556 include/grub/efi/api.h, include/grub/efi/console_control.h,
43557 include/grub/efi/efi.h, include/grub/efi/pe32.h,
43558 include/grub/i386/efi/time.h, kern/efi/efi.c,
43559 kern/i386/efi/init.c, kern/i386/efi/startup.S,
43560 and util/i386/efi/grub-mkimage.c.
43562 * Makefile.in (RMKFILES): Added i386-efi.rmk.
43564 * genmk.rb (PModule#rule): Do not export symbols if
43565 #{prefix}_EXPORTS is set to "no".
43567 * conf/i386-efi.mk: New file.
43568 * conf/i386-efi.rmk: Likewise.
43569 * include/grub/efi/api.h: Likewise.
43570 * include/grub/efi/console_control.h: Likewise.
43571 * include/grub/efi/efi.h: Likewise.
43572 * include/grub/efi/pe32.h: Likewise.
43573 * include/grub/i386/efi/time.h: Likewise.
43574 * kern/efi/efi.c: Likewise.
43575 * kern/i386/efi/init.c: Likewise.
43576 * kern/i386/efi/startup.S: Likewise.
43577 * util/i386/efi/grub-mkimage.c: Likewise.
43579 2006-04-17 Marco Gerards <marco@gnu.org>
43581 * include/grub/script.h: Include <grub/parser.h> and
43582 "grub_script.tab.h".
43583 (struct grub_lexer_param): New struct.
43584 (struct grub_parser_param): Likewise.
43585 (grub_script_create_arglist): Pass the state in an argument.
43586 (grub_script_add_arglist): Likewise.
43587 (grub_script_create_cmdline): Likewise.
43588 (grub_script_create_cmdblock): Likewise.
43589 (grub_script_create_cmdif): Likewise.
43590 (grub_script_create_cmdmenu): Likewise.
43591 (grub_script_add_cmd): Likewise.
43592 (grub_script_arg_add): Likewise.
43593 (grub_script_lexer_ref): Likewise.
43594 (grub_script_lexer_deref): Likewise.
43595 (grub_script_lexer_record_start): Likewise.
43596 (grub_script_lexer_record_stop): Likewise.
43597 (grub_script_mem_record): Likewise.
43598 (grub_script_mem_record_stop): Likewise.
43599 (grub_script_malloc): Likewise.
43600 (grub_script_yylex): Likewise.
43601 (grub_script_yyparse): Likewise.
43602 (grub_script_yyerror): Likewise.
43603 (grub_script_yylex): Likewise.
43604 (grub_script_lexer_init): Return the state.
43606 * normal/lexer.c (grub_script_lexer_state): Removed variable.
43607 (grub_script_lexer_done): Likewise.
43608 (grub_script_lexer_getline): Likewise.
43609 (grub_script_lexer_refs): Likewise.
43610 (script): Likewise.
43611 (newscript): Likewise.
43612 (record): Likewise.
43613 (recording): Likewise.
43614 (recordpos): Likewise.
43615 (recordlen): Likewise.
43616 (grub_script_lexer_init): Return the state instead of setting
43618 (grub_script_lexer_ref): Use the newly added argument for state
43619 instead of globals.
43620 (grub_script_lexer_deref): Likewise.
43621 (grub_script_lexer_record_start): Likewise.
43622 (grub_script_lexer_record_stop): Likewise.
43623 (recordchar): Likewise.
43624 (nextchar): Likewise.
43625 (grub_script_yylex2): Likewise.
43626 (grub_script_yylex): Likewise.
43627 (grub_script_yyerror): Likewise.
43629 * normal/parser.y (func_mem): Removed variable.
43630 (menu_entry): Likewise.
43632 (%lex-param): New parser option.
43633 (%parse-param): Likewise.
43634 (script): Always return the AST.
43635 (argument): Pass the state around.
43636 (arguments): Likewise.
43637 (grubcmd): Likewise.
43638 (commands): Likewise.
43639 (function): Likewise.
43640 (menuentry): Likewise.
43641 (if_statement): Likewise.
43644 * normal/script.c (grub_script_memused): Removed variable.
43645 (grub_script_parsed): Likewise.
43646 (grub_script_malloc): Added a state argument. Use that instead of
43648 (grub_script_mem_record): Likewise.
43649 (grub_script_mem_record_stop): Likewise.
43650 (grub_script_arg_add): Likewise.
43651 (grub_script_add_arglist): Likewise.
43652 (grub_script_create_cmdline): Likewise.
43653 (grub_script_create_cmdif): Likewise.
43654 (grub_script_create_cmdmenu): Likewise.
43655 (grub_script_add_cmd): Likewise.
43656 (grub_script_parse): Setup the state before calling the parser.
43658 2006-04-16 Marco Gerards <marco@gnu.org>
43660 * normal/command.c (grub_command_init): Remove the title command.
43662 * normal/lexer.c (grub_script_yylex): Renamed from this...
43663 (grub_script_yylex2): ... to this.
43664 (grub_script_yylex): New function. Temporary
43665 introduced to filter some tokens.
43666 (grub_script_yyerror): Print a newline.
43668 * normal/main.c (read_config_file): Output information about the
43669 lines that contain errors. Wait for a key after all lines have
43670 been processed. Don't return an empty menu.
43672 * normal/parser.y (func_mem): Don't initialize.
43673 (menu_entry): Likewise.
43674 (err): New variable.
43675 (script): Don't return anything when an error was encountered.
43676 (ws, returns): Removed rules.
43677 (argument): Disabled concatenated variable support.
43678 (arguments): Remove explicit separators.
43679 (grubcmd): Likewise.
43680 (function): Likewise.
43681 (menuentry): Likewise.
43683 (commands): Likewise. Add error handling.
43685 * normal/script.c (grub_script_create_cmdline): If
43686 `grub_script_parsed' is 0, assume the parser encountered an error.
43688 2006-04-02 Yoshinori K. Okuji <okuji@enbug.org>
43690 * configure.ac: Add support for EFI. Fix the typo
43691 BUILD_LDDFLAGS. Restore the LDFLAGS after testing.
43693 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43695 * util/unifont2pff.rb: Removed unnecessary byte ordering. Now
43696 foreign multibyte characters should be shown correctly.
43698 2006-04-01 Vesa Jaaskelainen <chaac@nic.fi>
43700 * normal/main.c (grub_normal_menu_addentry): Fixed menu size
43702 (read_config_file): Made it to close file before returning.
43704 2006-03-31 Vesa Jaaskelainen <chaac@nic.fi>
43706 * DISTLIST: Added include/grub/i386/pc/vbeblit.h,
43707 include/grub/i386/pc/vbefill.h, video/i386/pc/vbeblit.c,
43708 video/i386/pc/vbefill.c.
43710 * conf/i386-pc.rmk (vbe_mod_SOURCES): Added video/i386/pc/vbeblit.c,
43711 video/i386/pc/vbefill.c.
43713 * include/grub/video.h (grub_video_blit_format): New enum.
43714 (grub_video_mode_info): Added new member blit_format.
43715 (grub_video_get_blit_format): New function prototype.
43717 * include/grub/i386/pc/vbe.h (grub_video_vbe_get_video_ptr): New
43718 function prototype.
43719 (grub_video_vbe_map_rgb): Likewise.
43720 (grub_video_vbe_unmap_color): Likewise.
43722 * include/grub/i386/pc/vbeblit.h: New file.
43724 * include/grub/i386/pc/vbefill.h: New file.
43726 * video/video.c (grub_video_get_blit_format): New function.
43727 (grub_video_vbe_get_video_ptr): Re-declared as non-static.
43728 (grub_video_vbe_map_rgb): Likewise.
43729 (grub_video_vbe_unmap_color): Likewise.
43731 * video/i386/pc/vbe.c (grub_video_vbe_fill_rect): Changed to use more
43733 (grub_video_vbe_blit_render_target): Changed to use more optimized
43735 (grub_video_vbe_setup): Added detection for optimized settings.
43736 (grub_video_vbe_create_render_target): Likewise.
43738 * video/i386/pc/vbeblit.c: New file.
43740 * video/i386/pc/vbefill.c: New file.
43742 2006-03-30 Vesa Jaaskelainen <chaac@nic.fi>
43744 * font/manager.c (grub_font_get_glyph): Removed font fixup from
43747 * util/unifont2pff.rb: ... and moved it to here. Improved argument
43748 parsing to support both hex and dec ranges. If filename was missing
43749 show usage information.
43751 2006-03-14 Vesa Jaaskelainen <chaac@nic.fi>
43753 * DISTLIST: Added include/grub/video.h, term/gfxterm.c,
43754 video/video.c, commands/videotest.c. Removed term/i386/pc/vesafb.c.
43756 * conf/i386-pc.rmk (pkgdata_MODULES): Added video.mod,
43757 gfxterm.mod, videotest.mod. Removed vga.mod, vesafb.mod.
43758 (video_mod_SOURCES): Added.
43759 (video_mod_CFLAGS): Likewise.
43760 (video_mod_LDFLAGS): Likewise.
43761 (gfxterm_mod_SOURCES): Likewise.
43762 (gfxterm_mod_CFLAGS): Likewise.
43763 (gfxterm_mod_LDFLAGS): Likewise.
43764 (videotest_mod_SOURCES): Likewise.
43765 (videotest_mod_CFLAGS): Likewise.
43766 (videotest_mod_LDFLAGS): Likewise.
43767 (vesafb_mod_SOURCES): Removed.
43768 (vesafb_mod_CFLAGS): Likewise.
43769 (vesafb_mod_LDFLAGS): Likewise.
43770 (vga_mod_SOURCES): Likewise.
43771 (vga_mod_CFLAGS): Likewise.
43772 (vga_mod_LDFLAGS): Likewise.
43774 * commands/videotest.c: New file.
43776 * font/manager.c (fill_with_default_glyph): Modified to use
43778 (grub_font_get_glyph): Likewise.
43779 (fontmanager): Renamed from this...
43780 (font_manager): ... to this.
43782 * include/grub/font.h (grub_font_glyph): Added new structure.
43783 (grub_font_get_glyph): Modified to use grub_font_glyph.
43785 * include/grub/misc.h (grub_abs): Added as inline function.
43787 * include/grub/video.h: New file.
43789 * include/grub/i386/pc/vbe.h (GRUB_VBE_STATUS_OK): New macro.
43790 (GRUB_VBE_MEMORY_MODEL_PACKED_PIXEL): Likewise.
43791 (GRUB_VBE_MEMORY_MODEL_DIRECT_COLOR): Likewise.
43792 (grub_vbe_get_controller_info): Renamed from this...
43793 (grub_vbe_bios_get_controller_info): ... to this.
43794 (grub_vbe_get_mode_info): Renamed from this...
43795 (grub_vbe_bios_get_mode_info): ... to this.
43796 (grub_vbe_set_mode): Renamed from this...
43797 (grub_vbe_bios_set_mode): ... to this.
43798 (grub_vbe_get_mode): Renamed from this...
43799 (grub_vbe_bios_get_mode): ... to this.
43800 (grub_vbe_set_memory_window): Renamed from this...
43801 (grub_vbe_bios_set_memory_window): ... to this.
43802 (grub_vbe_get_memory_window): Renamed from this...
43803 (grub_vbe_bios_get_memory_window): ... to this.
43804 (grub_vbe_set_scanline_length): Renamed from this...
43805 (grub_vbe_set_scanline_length): ... to this.
43806 (grub_vbe_get_scanline_length): Renamed from this...
43807 (grub_vbe_bios_get_scanline_length): ... to this.
43808 (grub_vbe_set_display_start): Renamed from this...
43809 (grub_vbe_bios_set_display_start): ... to this.
43810 (grub_vbe_get_display_start): Renamed from this...
43811 (grub_vbe_bios_get_display_start): ... to this.
43812 (grub_vbe_set_palette_data): Renamed from this...
43813 (grub_vbe_bios_set_palette_data): ... to this.
43814 (grub_vbe_set_pixel_rgb): Removed.
43815 (grub_vbe_set_pixel_index): Likewise.
43817 * kern/i386/pc/startup.S (grub_vbe_get_controller_info): Renamed
43819 (grub_vbe_bios_get_controller_info): ... to this.
43820 (grub_vbe_get_mode_info): Renamed from this...
43821 (grub_vbe_bios_get_mode_info): ... to this.
43822 (grub_vbe_set_mode): Renamed from this...
43823 (grub_vbe_bios_set_mode): ... to this.
43824 (grub_vbe_get_mode): Renamed from this...
43825 (grub_vbe_bios_get_mode): ... to this.
43826 (grub_vbe_set_memory_window): Renamed from this...
43827 (grub_vbe_bios_set_memory_window): ... to this.
43828 (grub_vbe_get_memory_window): Renamed from this...
43829 (grub_vbe_bios_get_memory_window): ... to this.
43830 (grub_vbe_set_scanline_length): Renamed from this...
43831 (grub_vbe_set_scanline_length): ... to this.
43832 (grub_vbe_get_scanline_length): Renamed from this...
43833 (grub_vbe_bios_get_scanline_length): ... to this.
43834 (grub_vbe_set_display_start): Renamed from this...
43835 (grub_vbe_bios_set_display_start): ... to this.
43836 (grub_vbe_get_display_start): Renamed from this...
43837 (grub_vbe_bios_get_display_start): ... to this.
43838 (grub_vbe_set_palette_data): Renamed from this...
43839 (grub_vbe_bios_set_palette_data): ... to this.
43840 (grub_vbe_bios_get_controller_info): Fixed problem with registers
43841 getting corrupted after calling it. Added more pushes and pops.
43842 (grub_vbe_bios_set_mode): Likewise.
43843 (grub_vbe_bios_get_mode): Likewise.
43844 (grub_vbe_bios_get_memory_window): Likewise.
43845 (grub_vbe_bios_set_scanline_length): Likewise.
43846 (grub_vbe_bios_get_scanline_length): Likewise.
43847 (grub_vbe_bios_get_display_start): Likewise.
43848 (grub_vbe_bios_set_palette_data): Likewise.
43850 * normal/cmdline.c (cl_set_pos): Refresh the screen.
43851 (cl_insert): Likewise.
43852 (cl_delete): Likewise.
43854 * term/gfxterm.c: New file.
43856 * term/i386/pc/vesafb.c: Removed file.
43858 * video/video.c: New file.
43860 * video/i386/pc/vbe.c (real2pm): Added new function.
43861 (grub_video_vbe_draw_pixel): Likewise.
43862 (grub_video_vbe_get_video_ptr): Likewise.
43863 (grub_video_vbe_get_pixel): Likewise
43864 (grub_video_vbe_init): Likewise.
43865 (grub_video_vbe_fini): Likewise.
43866 (grub_video_vbe_setup): Likewise.
43867 (grub_video_vbe_get_info): Likewise.
43868 (grub_video_vbe_set_palette): Likewise.
43869 (grub_video_vbe_get_palette): Likewise.
43870 (grub_video_vbe_set_viewport): Likewise.
43871 (grub_video_vbe_get_viewport): Likewise.
43872 (grub_video_vbe_map_color): Likewise.
43873 (grub_video_vbe_map_rgb): Likewise.
43874 (grub_video_vbe_map_rgba): Likewise.
43875 (grub_video_vbe_unmap_color): Likewise.
43876 (grub_video_vbe_fill_rect): Likewise.
43877 (grub_video_vbe_blit_glyph): Likewise.
43878 (grub_video_vbe_blit_bitmap): Likewise.
43879 (grub_video_vbe_blit_render_target): Likewise.
43880 (grub_video_vbe_scroll): Likewise.
43881 (grub_video_vbe_swap_buffers): Likewise.
43882 (grub_video_vbe_create_render_target): Likewise.
43883 (grub_video_vbe_delete_render_target): Likewise.
43884 (grub_video_vbe_set_active_render_target): Likewise.
43885 (grub_vbe_set_pixel_rgb): Remove function.
43886 (grub_vbe_set_pixel_index): Likewise.
43887 (index_color_mode): Remove static variable.
43888 (active_mode): Likewise.
43889 (framebuffer): Likewise.
43890 (bytes_per_scan_line): Likewise.
43891 (grub_video_vbe_adapter): Added new static variable.
43892 (framebuffer): Likewise.
43893 (render_target): Likewise.
43894 (initial_mode): Likewise.
43895 (mode_in_use): Likewise.
43896 (mode_list): Likewise.
43898 2006-03-10 Marco Gerards <marco@gnu.org>
43900 * configure.ac (AC_INIT): Bumped to 1.93.
43902 * DISTLIST: Added `include/grub/hfs.h'.
43904 2006-02-01 Yoshinori K. Okuji <okuji@enbug.org>
43906 * boot/i386/pc/boot.S (general_error): Before looping, try INT
43907 18H, which might help the BIOS falling back to next boot media.
43909 2006-01-25 Yoshinori K. Okuji <okuji@enbug.org>
43911 * util/i386/pc/grub-install.in: Escape a backslash. Reported by
43912 Poe Chen <poe.poechen@gmail.com>.
43914 2006-01-17 Marco Gerards <marco@gnu.org>
43916 * include/grub/normal.h: Include <grub/script.h>.
43917 (grub_command_list): Removed struct.
43918 (grub_command_list_t): Removed type.
43919 (grub_menu_entry): Remove members `num' and `command_list'. Add
43920 members `commands' and `sourcecode'.
43921 * include/grub/script.h: Add inclusion guards.
43922 (grub_script_cmd_menuentry): New struct.
43923 (grub_script_execute_menuentry): New prototype.
43924 (grub_script_lexer_record_start): Likewise.
43925 (grub_script_lexer_record_stop): Likewise.
43926 * normal/execute.c (grub_script_execute_menuentry): New function.
43927 * normal/lexer.c (record, recording, recordpos, recordlen): New
43929 (grub_script_lexer_record_start): New function.
43930 (grub_script_lexer_record_stop): Likewise.
43931 (recordchar): Likewise.
43932 (nextchar): Likewise.
43933 (grub_script_yylex): Use `nextchar' to fetch new characters. Use
43934 2048 as the buffer size. Add the tokens `menuentry' and `@'.
43935 * normal/main.c: Include <grub/parser.h> and <grub/script.h>
43936 (current_menu): New variable.
43937 (free_menu): Mainly rewritten.
43938 (grub_normal_menu_addentry): New function.
43939 (read_config_file): Rewritten.
43940 * normal/menu.c (run_menu_entry): Mainly rewritten.
43941 * normal/menu_entry.c (make_screen): Rewritten the code to insert
43943 (run): Mainly rewritten.
43944 * normal/parser.y (menu_entry): New variable.
43945 (GRUB_PARSER_TOKEN_MENUENTRY): New token.
43946 (menuentry): New rule.
43947 (command): Add `menuentry'.
43948 (if_statement): Allow additional returns before `fi'.
43949 * normal/script.c (grub_script_create_cmdmenu): New function.
43951 2006-01-03 Marco Gerards <marco@gnu.org>
43953 * INSTALL: GNU Bison is required.
43954 * configure.ac: Rewritten the test to detect Bison.
43955 * Makefile.in (YACC): New variable. Reported by Xun Sun
43956 <xun.sun.cn@gmail.com>.
43958 2006-01-03 Marco Gerards <marco@gnu.org>
43960 * fs/hfsplus.c (grub_hfsplus_read_block): Convert the offset of
43961 the HFS+ filesystem to filesystem blocks.
43962 (grub_hfsplus_iterate_dir): Cast the `fileinfo' assignment so a
43963 GCC warning is silenced.
43965 2006-01-03 Marco Gerards <marco@gnu.org>
43967 * partmap/apple.c (apple_partition_map_iterate): Convert the data
43968 read from disk from big endian to host byte order.
43970 2006-01-03 Hollis Blanchard <hollis@penguinppc.org>
43972 * fs/hfs.c: Include <grub/hfs.h>. Added reference to the official
43974 (GRUB_HFS_EMBED_HFSPLUS_SIG): New macro.
43975 (grub_hfs_mount): Grammar fix in error. Make sure this is not an
43976 embedded HFS+ filesystem.
43977 (GRUB_HFS_MAGIC, grub_hfs_extent, grub_hfs_datarecord_t)
43978 (grub_hfs_sblock): Move from here...
43979 * include/grub/hfs.h: To here... New file.
43980 * fs/hfsplus.c: Include <grub/hfs.h>. Added reference to the official
43982 (GRUB_HFSPLUS_MAGIC, GRUB_HFSPLUSX_MAGIC, GRUB_HFSPLUS_SBLOCK):
43984 (grub_hfsplus_volheader): Change type of member `magic' to
43986 (grub_hfsplus_data): Add new member `embedded_offset'.
43987 (grub_hfsplus_read_block): Add the HFS+ wrapper offset to the
43989 (grub_hfsplus_mount): Read the HFS+ wrapper if it exists.
43990 Calculate the offset.
43992 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
43994 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRP_ADDR):
43996 (GRUB_BOOT_MACHINE_DRP_SIZE): Likewise.
43998 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44000 * kern/env.c (grub_env_set): Check if ENV->VALUE instead of
44001 ENV->NAME is NULL after allocating ENV->VALUE.
44003 2005-12-25 Marco Gerards <marco@gnu.org>
44005 * kern/env.c (grub_env_set): Rewritten the error handling code.
44007 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44009 * geninit.sh: Made more robust, and more portable.
44011 2005-12-25 Marco Gerards <marco@gnu.org>
44013 Add support for Apple HFS+ filesystems.
44015 * fs/hfsplus.c: New file.
44017 * DISTLIST: Added `fs/hfsplus.c'.
44019 * conf/common.rmk (pkgdata_MODULES): Add `hfsplus.mod'.
44020 (hfsplus_mod_SOURCES): New variable.
44021 (hfsplus_mod_CFLAGS): Likewise.
44022 (hfsplus_mod_LDFLAGS): Likewise.
44023 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/hfsplus.c'.
44024 (grub_setup_SOURCES): Likewise.
44025 (grub_mkdevicemap_SOURCES): Likewise.
44026 (grub_emu_SOURCES): Likewise.
44027 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
44029 * fs/fshelp.c (grub_fshelp_log2blksize): New function.
44031 * include/grub/fshelp.h (grub_fshelp_log2blksize): new prototype.
44033 2005-12-25 Yoshinori K. Okuji <okuji@enbug.org>
44035 * DISTLIST: Added geninitheader.sh, geninit.sh, commands/test.c,
44036 commands/i386/pc/play.c, conf/common.mk, conf/common.rmk,
44037 include/grub/parser.h, include/grub/script.h, kern/parser.c,
44038 kern/sparc64/cache.S, normal/execute.c, normal/function.c,
44039 normal/lexer.c, normal/parser.y, normal/script.c, and
44041 Removed kern/sparc64/cache.c.
44043 * conf/common.rmk (DISTCLEANFILES): Added grub_script.tab.c,
44044 grub_script.tab.h, grub_modules_init.lst, grub_modules_init.h,
44047 * configure.ac (AC_INIT): Bumped to 1.92.
44049 2005-12-24 Vesa Jaaskelainen <chaac@nic.fi>
44051 * kern/err.c (grub_error_push): Added new function to support error
44053 (grub_error_pop): Likewise.
44054 (grub_error_stack_items): New local variable to support error stacks.
44055 (grub_error_stack_pos): Likewise.
44056 (grub_error_stack_assert): Likewise.
44057 (GRUB_ERROR_STACK_SIZE): Added new define to configure maximum error
44059 (grub_print_error): Added support to print errors from error stack.
44061 * include/grub/err.h (grub_error_push): Added function prototype.
44062 (grub_error_pop): Likewise.
44064 2005-12-09 Hollis Blanchard <hollis@penguinppc.org>
44066 * configure.ac: Accept `powerpc64' as host_cpu.
44067 (amd64): Rename to `biarch32'.
44069 * kern/powerpc/cache.S (grub_arch_sync_caches): Handle
44070 non-cacheline-aligned addresses.
44072 * kern/dl.c (grub_dl_load_core): Add grub_dprintf messages.
44073 (grub_dl_flush_cache): Likewise. Only call `grub_arch_sync_caches'
44074 if `size' is non-zero.
44076 2005-12-03 Marco Gerards <mgerards@xs4all.nl>
44078 * conf/common.rmk (grub_modules_init.lst): Use `-printf "%P\n"'
44079 and `cd' to make sure the filename is not prefixed with a
44081 (pkgdata_MODULES): Add `gpt.mod'.
44082 (gpt_mod_SOURCES): New variable.
44083 (gpt_mod_CFLAGS): Likewise.
44084 (gpt_mod_LDFLAGS): Likewise.
44086 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/gpt.c'.
44088 * include/grub/pc_partition.h (GRUB_PC_PARTITION_TYPE_GPT_DISK):
44091 * partmap/gpt.c: New file.
44093 * partmap/pc.c (pc_partition_map_iterate): Don't continue when a
44094 GPT partition map is detected.
44096 2005-12-03 Vincent Pelletier <subdino2004@yahoo.fr>
44098 * commands/i386/pc/play.c: New file.
44099 * conf/i386-pc.rmk (pkgdata_MODULES): Added play.mod.
44100 (play_mod_SOURCES, play_mod_CFLAGS, play_mod_LDFLAGS): New
44103 2005-11-27 Marco Gerards <mgerards@xs4all.nl>
44105 * include/grub/dl.h (GRUB_MOD_INIT): Use `__attribute__
44106 ((unused))' to silence gcc warning.
44108 2005-11-26 Hollis Blanchard <hollis@penguinppc.org>
44110 * configure.ac: Correct `AC_PROG_YACC' test.
44112 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44114 * util/powerpc/ieee1275/grub-install.in: Run the mount point
44115 check before installing files.
44117 2005-11-22 Mike Small <smallm@panix.com>
44119 * util/powerpc/ieee1275/grub-install.in (grubdir): Fixed partition
44120 number regex so multidigit numbers are recognized correctly.
44122 2005-11-22 Mike Small <smallm@panix.com>
44124 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Add a
44125 debugging message before attempting to claim memory.
44126 (grub_rescue_cmd_initrd): Add a claim debugging message and try
44127 multiple addresses in case of failure.
44129 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44131 * term/tparm.c (get_space): Remove empty `if' statement.
44133 * fs/ufs.c (grub_ufs_find_file): Remove `grub_le_to_cpu32'.
44135 * kern/parser.c (check_varstate): Rename `state' to 's'.
44137 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44139 * partmap/acorn.c: Change `unsigned' to `unsigned int'. Move all
44140 variable definitions to the beginning of each function. Sort stack
44142 (find): Rename to `acorn_partition_map_find'. Cast `grub_disk_read'
44143 `buf' argument to `char *'.
44145 2005-11-22 Hollis Blanchard <hollis@penguinppc.org>
44147 * conf/powerpc-ieee1275.rmk: Include conf/common.mk.
44148 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44149 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44150 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44151 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44152 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44153 configfile.mod, search.mod, gzio.mod and test.mod.
44154 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44155 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44156 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44157 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44158 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44159 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44160 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44161 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44162 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44163 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44164 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44165 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44166 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44167 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44168 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44169 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44170 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44171 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44172 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44173 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44174 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44175 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44176 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Removed.
44178 * conf/common.mk (grub_modules_init.lst): Use `find' instead of
44180 (pkgdata_MODULES): Add test.mod.
44182 2005-11-18 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44184 * genmk.rb: Fixed list rules moved to Makefile.in. Recognise
44185 appending to variables with "+=".
44186 (PModule): Use full pathname to generate *.lst filenames.
44188 * Makefile.in: Fixed list rules moved from genmk.rb.
44189 (.DELETE_ON_ERROR): New special target.
44190 (RMKFILES): Add common.rmk and sparc64-ieee1275.rmk.
44192 * conf/i386-pc.rmk: Include conf/common.mk.
44193 (pkgdata_MODULES): Removed fshelp.mod, fat.mod, ext2.mod, ufs.mod,
44194 minix.mod, hfs.mod, jfs.mod, xfs.mod, affs.mod, sfs.mod,
44195 hello.mod, boot.mod, terminal.mod, ls.mod, cmp.mod, cat.mod,
44196 help.mod, font.mod, terminfo.mod, amiga.mod, apple.mod, pc.mod,
44197 sun.mod, acorn.mod, loopback.mod, default.mod, timeout.mod,
44198 configfile.mod, search.mod, gzio.mod and test.mod.
44199 (symlist.c, grub_script.tab.c, grub_script.tab.h, kernel_syms.lst)
44200 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c)
44201 (fshelp_mod_SOURCES, fshelp_mod_CFLAGS, fshelp_mod_LDFLAGS)
44202 (fat_mod_SOURCES, fat_mod_CFLAGS, fat_mod_LDFLAGS)
44203 (ext2_mod_SOURCES, ext2_mod_CFLAGS, ext2_mod_LDFLAGS)
44204 (ufs_mod_SOURCES, ufs_mod_CFLAGS, ufs_mod_LDFLAGS)
44205 (minix_mod_SOURCES, minix_mod_CFLAGS, minix_mod_LDFLAGS)
44206 (hfs_mod_SOURCES, hfs_mod_CFLAGS, hfs_mod_LDFLAGS, jfs_mod_SOURCES)
44207 (jfs_mod_CFLAGS, jfs_mod_LDFLAGS, iso9660_mod_SOURCES)
44208 (iso9660_mod_CFLAGS, iso9660_mod_LDFLAGS, xfs_mod_SOURCES)
44209 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44210 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44211 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, hello_mod_SOURCES)
44212 (hello_mod_CFLAGS, hello_mod_LDFLAGS, boot_mod_SOURCES)
44213 (boot_mod_CFLAGS, boot_mod_LDFLAGS, terminal_mod_SOURCES)
44214 (terminal_mod_CFLAGS, terminal_mod_LDFLAGS, ls_mod_SOURCES)
44215 (ls_mod_CFLAGS, ls_mod_LDFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
44216 (cmp_mod_LDFLAGS, cat_mod_SOURCES, cat_mod_CFLAGS, cat_mod_LDFLAGS)
44217 (help_mod_SOURCES, help_mod_CFLAGS, help_mod_LDFLAGS)
44218 (font_mod_SOURCES, font_mod_CFLAGS, font_mod_LDFLAGS)
44219 (terminfo_mod_SOURCES, terminfo_mod_CFLAGS, terminfo_mod_LDFLAGS)
44220 (amiga_mod_SOURCES, amiga_mod_CFLAGS, amiga_mod_LDFLAGS)
44221 (apple_mod_SOURCES, apple_mod_CFLAGS, apple_mod_LDFLAG): Move from
44223 * conf/common.rmk: ... to here. New file.
44225 * conf/common.mk: New file.
44227 2005-11-18 Yoshinori K. Okuji <okuji@enbug.org>
44229 * conf/powerpc-ieee1275.rmk (grub_script.tab.h): Unified to ...
44230 (grub_script.tab.c): ... here.
44232 * conf/sparc64-ieee1275.rmk (grub_script.tab.h): Unified to ...
44233 (grub_script.tab.c): ... here.
44235 * conf/i386-pc.rmk (grub_script.tab.h): Unified to ...
44236 (grub_script.tab.c): ... here.
44238 * normal/command.c (grub_command_find): Fixed a memory leak of
44239 MODULE_NAME. Reported by Mike Small <smallm@panix.com>.
44241 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44243 * include/grub/symbol.h: (FUNCTION): Use double quotes instead of
44244 "@" which marks the start of a comment on ARM.
44245 (VARIABLE): Likewise.
44247 2005-11-13 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44249 Add support for Linux/ADFS partition tables.
44251 * partmap/acorn.c: New file.
44253 * include/grub/acorn_filecore.h: Likewise.
44255 * DISTLIST: Added `partmap/acorn.c' and
44256 `include/grub/acorn_filecore.h'.
44258 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44260 (pkgdata_MODULES): Add `acorn.mod'.
44261 (acorn_mod_SOURCES): New variable.
44262 (acorn_mod_CFLAGS): Likewise.
44264 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44266 (pkgdata_MODULES): Add `acorn.mod'.
44267 (acorn_mod_SOURCES): New variable.
44268 (acorn_mod_CFLAGS): Likewise.
44270 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `partmap/acorn.c'.
44271 (pkgdata_MODULES): Add `acorn.mod'.
44272 (acorn_mod_SOURCES): New variable.
44273 (acorn_mod_CFLAGS): Likewise.
44274 (acorn_mod_LDFLAGS): Likewise.
44276 * include/types.h (grub_disk_addr_t): New typedef.
44278 2005-11-13 Marco Gerards <mgerards@xs4all.nl>
44280 * geninit.sh: New file.
44282 * geninitheader.sh: Likewise.
44284 * commands/boot.c (grub_boot_init, grub_boot_fini): Removed.
44285 * commands/cat.c (grub_cat_init, grub_cat_fini): Likewise.
44286 * commands/cmp.c (grub_cmp_init, grub_cmp_fini): Likewise.
44287 * commands/configfile.c (grub_configfile_init)
44288 (grub_configfile_fini): Likewise.
44289 * commands/default.c (grub_default_init, grub_default_fini):
44291 * commands/help.c (grub_help_init, grub_help_fini): Likewise.
44292 * commands/ls.c (grub_ls_init, grub_ls_fini): Likewise.
44293 * commands/search.c (grub_search_init, grub_search_fini): Likewise.
44294 * commands/terminal.c (grub_terminal_init, grub_terminal_fini):
44296 * commands/test.c (grub_test_init, grub_test_fini): Likewise.
44297 * commands/timeout.c (grub_timeout_init, grub_timeout_fini):
44299 * commands/i386/pc/halt.c (grub_halt_init, grub_halt_fini): Likewise.
44300 * commands/ieee1275/halt.c (grub_halt_init, grub_halt_fini):
44302 * commands/i386/pc/reboot.c (grub_reboot_init, grub_reboot_fini):
44304 * commands/ieee1275/reboot.c (grub_reboot_init, grub_reboot_fini):
44306 * disk/loopback.c (grub_loop_init, grub_loop_fini): Likewise.
44307 * fs/affs.c (grub_affs_init, grub_affs_fini): Likewise.
44308 * fs/ext2.c (grub_ext2_init, grub_ext2_fini): Likewise.
44309 * fs/fat.c (grub_fat_init, grub_fat_fini): Likewise.
44310 * fs/hfs.c (grub_hfs_init, grub_hfs_fini): Likewise.
44311 * fs/iso9660.c (grub_iso9660_init, grub_iso9660_fini): Likewise.
44312 * fs/jfs.c (grub_jfs_init, grub_jfs_fini): Likewise.
44313 * fs/minix.c (grub_minix_init, grub_minix_fini): Likewise.
44314 * fs/sfs.c (grub_sfs_init, grub_sfs_fini): Likewise.
44315 * fs/ufs.c (grub_ufs_init, grub_ufs_fini): Likewise.
44316 * fs/xfs.c (grub_xfs_init, grub_xfs_fini): Likewise.
44317 * normal/main.c (grub_normal_init, grub_normal_fini): Likewise.
44318 * partmap/amiga.c (grub_amiga_partition_map_init)
44319 (grub_amiga_partition_map_fini): Likewise.
44320 * partmap/apple.c (grub_apple_partition_map_init)
44321 (grub_apple_partition_map_fini): Likewise.
44322 * partmap/pc.c (grub_pc_partition_map_init)
44323 (grub_pc_partition_map_fini): Likewise.
44324 * partmap/sun.c (grub_sun_partition_map_init,
44325 grub_sun_partition_map_fini): Likewise.
44326 * term/terminfo.c (grub_terminal_init, grub_terminal_fini):
44329 * util/grub-emu.c: Include <grub_modules_init.h>.
44330 (main): Don't initialize and de-initialize any modules directly,
44331 use `grub_init_all' and `grub_fini_all' instead.
44333 * term/i386/pc/vesafb.c (grub_vesafb_init): Renamed to
44334 `grub_vesafb_mod_init'.
44335 (grub_vesafb_fini): Renamed to `grub_vesafb_mod_fini'. Updated
44337 * term/i386/pc/vga.c (grub_vga_init): Renamed to
44338 `grub_vga_mod_init'. Updated all users.
44339 (grub_vga_fini): Renamed to `grub_vga_mod_fini'.
44341 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `grub_emu_init.c'.
44342 (grub_modules_init.lst, grub_modules_init.h, grub_emu_init.c): New
44345 * include/grub/dl.h (GRUB_MOD_INIT): Add argument `name'.
44346 Generate a function to initialize the module in utilities.
44347 Updated all callers.
44348 (GRUB_MOD_FINI): Add argument `name'. Generate a function to
44349 initialize the module in utilities. Updated all callers.
44351 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44353 * term/ieee1275/ofconsole.c (grub_ofconsole_cls): Use both the ANSI
44354 escape sequence and a literal ^L to clear the screen.
44356 * commands/ieee1275/suspend.c (grub_cmd_suspend): Clear the screen
44357 when returning from Open Firmware.
44359 2005-11-09 Hollis Blanchard <hollis@penguinppc.org>
44361 * term/ieee1275/ofconsole.c (grub_ofconsole_width): New variable.
44362 (grub_ofconsole_height): Likewise.
44363 (grub_ofconsole_putchar): If `grub_curr_x' exceeds console width,
44364 manually insert a '\n'.
44365 (grub_ofconsole_getwh): Set and return `grub_ofconsole_width' and
44366 `grub_ofconsole_height'. Return early if these are already set.
44368 2005-11-07 Vincent Pelletier <subdino2004@yahoo.fr>
44370 * conf/sparc64-ieee1275.rmk (grub_emu_SOURCES): Add
44371 `commands/test.c', `fs/affs.c', `fs/sfs.c', `fs/xfs.c',
44372 `normal/execute.c', `normal/lexer.c', `io/gzio.c',
44373 `kern/parser.c', `grub_script.tab.c', `normal/function.c'
44374 and `normal/script.c'.
44375 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44376 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44377 (test_mod_SOURCES): New variable.
44378 (test_mod_CFLAGS): Likewise.
44379 (test_mod_LDFLAGS): Likewise.
44380 (pkgdata_MODULES): Add `test.mod'.
44381 (grub_script.tab.c): New rule.
44382 (grub_script.tab.h): Likewise.
44384 2005-11-07 Marco Gerards <mgerards@xs4all.nl>
44386 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
44387 `commands/test.c', `normal/execute.c', `normal/lexer.c',
44388 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44389 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44390 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44391 (test_mod_SOURCES): New variable.
44392 (test_mod_CFLAGS): Likewise.
44393 (pkgdata_MODULES): Add `test.mod'.
44394 (grub_script.tab.c): New rule.
44395 (grub_script.tab.h): Likewise.
44397 2005-11-06 Marco Gerards <mgerards@xs4all.nl>
44399 Add initial scripting support.
44401 * commands/test.c: New file.
44402 * include/grub/script.h: Likewise.
44403 * normal/execute.c: Likewise.
44404 * normal/function.c: Likewise.
44405 * normal/lexer.c: Likewise.
44406 * normal/parser.y: Likewise.
44407 * normal/script.c: Likewise.
44409 * configure.ac: Add `AC_PROG_YACC' test.
44411 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/test.c',
44412 `normal/execute.c', `normal/lexer.c', `grub_script.tab.c',
44413 `normal/function.c' and `normal/script.c'.
44414 (normal_mod_SOURCES): `normal/execute.c', `normal/lexer.c',
44415 `grub_script.tab.c', `normal/function.c' and `normal/script.c'.
44416 (test_mod_SOURCES, test_mod_CFLAGS, test_mod_LDFLAGS): New
44418 (pkgdata_MODULES): Add `test.mod'.
44419 (grub_script.tab.c): New rule.
44420 (grub_script.tab.h): Likewise.
44422 * include/grub/err.h (grub_err_t): Add `GRUB_ERR_TEST_FAILURE'.
44424 * include/grub/normal.h (grub_test_init): New prototype.
44425 (grub_test_fini): Likewise.
44427 * normal/command.c: Include <grub/script.h>.
44428 (grub_command_execute): Rewritten.
44430 * util/grub-emu.c (main): Call `grub_test_init' and
44433 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44435 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Initialize `msecs'
44437 * term/ieee1275/ofconsole.c (grub_ofconsole_checkkey): Return -1 if
44438 there are no pending characters.
44440 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44442 * kern/powerpc/ieee1275/openfw.c (grub_ieee1275_get_devname): Use
44443 `grub_strndup' to drop device arguments. Replace unnecessary
44444 `grub_strndup' with `grub_strdup'.
44446 2005-11-03 Hollis Blanchard <hollis@penguinppc.org>
44448 * kern/term.c (grub_cls): Do not call grub_cur_term->cls() if the
44449 `debug' environment variable has been set.
44451 2005-11-02 Hollis Blanchard <hollis@penguinppc.org>
44453 * Makefile.in (install-local): Use $(DATA).
44454 (uninstall): Likewise.
44455 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Move grub-mkimage...
44456 (sbin_UTILITIES): ... to here.
44457 (sbin_SCRIPTS): New variable.
44458 (grub_install_SOURCES): New variable.
44459 * util/powerpc/ieee1275/grub-install.in: New file.
44460 * util/powerpc/ieee1275/grub-mkimage.c (kernel_path): Remove
44462 (add_segments): Call `grub_util_get_path'.
44464 2005-10-28 Yoshinori K. Okuji <okuji@enbug.org>
44466 From Timothy Baldwin:
44467 * commands/ls.c (grub_ls_list_files): Close FILE with
44469 * kern/misc.c (grub_vsprintf): Terminate the string S with NUL.
44471 2005-10-24 Marco Gerards <mgerards@xs4all.nl>
44473 * include/grub/parser.h: New file.
44475 * kern/parser.c: Likewise.
44477 * conf/i386-pc.rmk (kernel_img_SOURCES): Add `kern/parser.c'.
44478 (grub_setup_SOURCES): Likewise.
44479 (grub_probefs_SOURCES): Likewise.
44480 (grub_emu_SOURCES): Likewise.
44481 (kernel_img_HEADERS): Add `parser.h'.
44483 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44484 (grub_emu_SOURCES): Add `kern/parser.c'.
44485 (grubof_SOURCES): Likewise.
44487 * conf/sparc64-ieee1275.rmk (grubof_HEADERS): Add `parser.h'.
44488 (grubof_SOURCES): Add `kern/parser.c'.
44490 * include/grub/misc.h (grub_split_cmdline): Removed prototype.
44492 * kern/misc.c (grub_split_cmdline): Removed function.
44494 * kern/rescue.c: Include <grub/parser.h>.
44495 (grub_enter_rescue_mode): Use `grub_parser_split_cmdline' instead
44496 of `grub_split_cmdline'.
44498 * normal/command.c: Include <grub/parser.h>.
44499 (grub_command_execute): Use `grub_parser_split_cmdline' instead
44500 of `grub_split_cmdline'.
44502 * normal/completion.c: Include <grub/parser.h>.
44503 (cmdline_state): New variable.
44504 (iterate_dir): End the filename with a quote depending on the
44505 command line state.
44506 (get_state): new function.
44507 (grub_normal_do_completion): Use `grub_parser_split_cmdline' to
44508 split the arguments and determine the current argument. When the
44509 argument string is not quoted, escape all spaces.
44511 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44513 * normal/sparc64/setjmp.S: New file.
44515 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44517 * include/grub/sparc64/libgcc.h: New file.
44518 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Remove -Av9.
44519 (normal_mod_SOURCES): Use normal/sparc64/setjmp.S instead of
44520 normal/sparc64/setjmp.c.
44522 2005-10-23 Vincent Pelletier <subdino2004@yahoo.fr>
44524 * kern/sparc64/dl.c: Rewritten for SPARCV9 ELF.
44525 * kern/sparc64/cache.S: New file.
44526 * kern/sparc64/cache.c: Removed.
44527 * conf/sparc64-ieee1275.rmk (COMMON_ASFLAGS): Add -Av9.
44528 (COMMON_CFLAGS): Add -mno-app-regs. Remove -mcpu=v9 and
44530 (COMMON_LDFLAGS): Add -melf64_sparc.
44531 (grubof_HEADERS): Add sparc64/libgcc.h and machine/kernel.h.
44532 (grubof_SOURCES): Use cache.S instead of cache.c.
44533 (grubof_LDFLAGS): Add -mno-app-regs. Replace "-Xlinker
44534 --oformat -Xlinker elf64-sparc" by "-Bstatic,-melf64_sparc".
44535 (pkgdata_MODULES): Uncomment. Leave linux.mod and _linux.mod
44537 (normal_mod_SOURCES): Add normal/completion.c and normal/misc.c.
44538 (_linux_mod_SOURCES, _linux_mod_CFLAGS, linux_mod_SOURCES)
44539 (linux_mod_CFLAGS): Commented out.
44540 (_linux_mod_LDFLAGS, linux_mod_LDFLAGS): New macro, commented
44541 out because module isn't built.
44542 (fshelp_mod_LDFLAGS, fat_mod_LDFLAGS, ext2_mod_LDFLAGS)
44543 (ufs_mod_LDFLAGS, minix_mod_LDFLAGS, hfs_mod_LDFLAGS)
44544 (jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS, normal_mod_LDFLAGS)
44545 (hello_mod_LDFLAGS, boot_mod_LDFLAGS, terminal_mod_LDFLAGS)
44546 (ls_mod_LDFLAGS, cmp_mod_LDFLAGS, cat_mod_LDFLAGS)
44547 (font_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44548 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44549 (suspend_mod_LDFLAGS, reboot_mod_LDFLAGS, halt_mod_LDFLAGS)
44550 (help_mod_LDFLAGS, default_mod_LDFLAGS, timeout_mod_LDFLAGS)
44551 (configfile_mod_LDFLAGS, search_mod_LDFLAGS, xfs_mod_SOURCES)
44552 (xfs_mod_CFLAGS, xfs_mod_LDFLAGS, affs_mod_SOURCES)
44553 (affs_mod_CFLAGS, affs_mod_LDFLAGS, sfs_mod_SOURCES)
44554 (sfs_mod_CFLAGS, sfs_mod_LDFLAGS, gzio_mod_SOURCES)
44555 (gzio_mod_CFLAGS, gzio_mod_LDFLAGS): New macro.
44557 2005-10-20 Yoshinori K. Okuji <okuji@enbug.org>
44559 * util/i386/pc/grub-probefs.c (main): Call grub_xfs_init and
44560 grub_xfs_fini. Do not call grub_hfs_init or grub_hfs_fini any
44561 longer, because HFS should not be used on PC.
44563 2005-10-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
44565 * io/gzio.c (grub_gzio_read): Use OFFSET instead of FILE->OFFSET
44566 consistently within the loop.
44568 2005-10-15 Marco Gerards <mgerards@xs4all.nl>
44570 * fs/xfs.c (grub_xfs_iterate_dir): Detect an error if part of a
44571 directory can not be read.
44573 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44575 * configure.ac (AC_INIT): Increase the version number to 1.91.
44577 * DISTLIST: Added include/grub/terminfo.h, include/grub/tparm.h,
44578 include/grub/i386/pc/serial.h, term/terminfo.c, term/tparm.c and
44579 term/i386/pc/serial.c.
44581 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44583 * kern/file.c (grub_file_seek): Seeking to an offset equal to a
44584 file size must be permitted.
44586 * kern/i386/pc/startup.S (multiboot_trampoline): Fix a mistake
44587 between %ah and %al.
44589 2005-10-15 Yoshinori K. Okuji <okuji@enbug.org>
44591 * fs/xfs.c (grub_xfs_iterate_dir): Change the type of BLK to
44593 Call the hook with a NUL-terminated filename.
44594 (grub_xfs_mount): Use grub_be_to_cpu32 instead of
44597 * kern/term.c (cursor_state): New variable.
44598 (grub_term_set_current): Reset the cursor state on a new
44600 (grub_setcursor): Rewritten to use CURSOR_STATE.
44601 (grub_getcursor): New function.
44603 * include/grub/term.h (grub_getcursor): New prototype.
44605 * io/gzio.c (test_header): Align BUF for accessing it as 32-bit
44606 integers on ARM. Reported by Timothy Baldwin
44607 <T.E.Baldwin99@members.leeds.ac.uk>.
44609 2005-10-11 Marco Gerards <mgerards@xs4all.nl>
44611 * fs/sfs.c (grub_sfs_open): Don't free `data->label' if it is not
44613 (grub_sfs_dir): Likewise.
44615 2005-10-09 Marco Gerards <mgerards@xs4all.nl>
44617 Add support for the SFS filesystem.
44619 * fs/sfs.c: New file.
44621 * DISTLIST: Added `fs/sfs.c'.
44623 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/sfs.c'.
44624 (grub_probefs_SOURCES): Likewise.
44625 (grub_emu_SOURCES): Likewise.
44626 (pkgdata_MODULES): Add `sfs.mod'.
44627 (sfs_mod_SOURCES): New variable.
44628 (sfs_mod_CFLAGS): Likewise.
44629 (sfs_mod_LDFLAGS): Likewise.
44631 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/sfs.c'.
44632 (pkgdata_MODULES): Add `sfs.mod'.
44633 (sfs_mod_SOURCES): New variable.
44634 (sfs_mod_CFLAGS): Likewise.
44636 * util/grub-emu.c (main): Call `grub_sfs_init' and
44639 * include/grub/fs.h (grub_sfs_init): New prototype.
44640 (grub_sfs_fini): Likewise.
44642 2005-10-07 Marco Gerards <mgerards@xs4all.nl>
44644 Add support for the AFFS filesystem.
44646 * fs/affs.c: New file.
44648 * DISTLIST: Added `fs/affs.c'.
44650 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/affs.c'.
44651 (grub_probefs_SOURCES): Likewise.
44652 (grub_emu_SOURCES): Likewise.
44653 (pkgdata_MODULES): Add `affs.mod'.
44654 (affs_mod_SOURCES): New variable.
44655 (affs_mod_CFLAGS): Likewise.
44656 (affs_mod_LDFLAGS): Likewise.
44658 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/affs.c'.
44659 (pkgdata_MODULES): Add `affs.mod'.
44660 (affs_mod_SOURCES): New variable.
44661 (affs_mod_CFLAGS): Likewise.
44663 * util/grub-emu.c (main): Call `grub_affs_init' and
44666 * include/grub/fs.h (grub_affs_init): New prototype.
44667 (grub_affs_fini): Likewise.
44669 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44671 * fs/xfs.c (grub_xfs_iterate_dir): Add parentheses.
44673 2005-10-01 Marco Gerards <mgerards@xs4all.nl>
44675 * configure.ac: Accept `x86_64' as host_cpu. In that case add
44678 * genmk.rb (class PModule): Always use `$(#{prefix}_LDFLAGS)' when
44681 * conf/i386-pc.rmk (COMMON_CFLAGS): Add `-m32'.
44682 (COMMON_LDFLAGS): New variable.
44683 (kernel_img_LDFLAGS): Include `COMMON_FLAGS'.
44684 (_chain_mod_LDFLAGS, fshelp_mod_LDFLAGS, fat_mod_LDFLAGS)
44685 (ext2_mod_LDFLAGS, ufs_mod_LDFLAGS, minix_mod_LDFLAGS)
44686 (hfs_mod_LDFLAGS, jfs_mod_LDFLAGS, iso9660_mod_LDFLAGS)
44687 (xfs_mod_LDFLAGS, _linux_mod_LDFLAGS, linux_mod_LDFLAGS)
44688 (normal_mod_LDFLAGS, hello_mod_LDFLAGS, boot_mod_LDFLAGS)
44689 (terminal_mod_LDFLAGS, ls_mod_LDFLAGS, cmp_mod_LDFLAGS)
44690 (cat_mod_LDFLAGS, help_mod_LDFLAGS, reboot_mod_LDFLAGS)
44691 (halt_mod_LDFLAGS, vga_mod_LDFLAGS, font_mod_LDFLAGS)
44692 (terminfo_mod_LDFLAGS, serial_mod_LDFLAGS, _multiboot_mod_LDFLAGS)
44693 (multiboot_mod_LDFLAGS, amiga_mod_LDFLAGS, apple_mod_LDFLAGS)
44694 (pc_mod_LDFLAGS, sun_mod_LDFLAGS, loopback_mod_LDFLAGS)
44695 (default_mod_LDFLAGS, timeout_mod_LDFLAGS, configfile_mod_LDFLAGS)
44696 (vbe_mod_LDFLAGS, vesafb_mod_LDFLAGS, vbeinfo_mod_LDFLAGS)
44697 (vbetest_mod_LDFLAGS, search_mod_LDFLAGS, gzio_mod_LDFLAGS): New
44699 (normal_mod_ASFLAGS): Add `-m32'.
44701 * include/grub/types.h (grub_host_addr_t, grub_host_off_t)
44702 (grub_host_size_t, grub_host_ssize_t): New types.
44703 (grub_addr_t, grub_off_t, grub_size_t, grub_ssize_t): Make type
44704 dependent of `GRUB_CPU_SIZEOF_VOID_P' instead on
44705 `GRUB_HOST_SIZEOF_VOID_P'.
44707 * include/grub/kernel.h (struct grub_module_header): Type of
44708 member offset changed to `grub_host_off_t'. Type of member size
44709 changed to `grub_host_size_t'.
44710 (struct grub_module_info): Type of member offset changed to
44711 `grub_host_off_t'. Type of member size changed to
44712 `grub_host_size_t'.
44714 2005-09-29 Yoshinori K. Okuji <okuji@enbug.org>
44716 Make GRUB's kernel compliant to Multiboot Specification.
44718 * kern/i386/pc/startup.S (multiboot_header): New label.
44719 (multiboot_entry): Likewise.
44720 (multiboot_trampoline): Likewise.
44722 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
44723 Increased to 0x4A0.
44725 * fs/xfs.c (grub_xfs_iterate_dir): Fix a syntax error. You may not
44726 put parentheses after a question mark.
44727 [!GRUB_UTIL] (my_mod): New variable.
44729 * util/grub-emu.c (main): Call grub_xfs_init and grub_xfs_fini.
44731 2005-09-28 Marco Gerards <mgerards@xs4all.nl>
44733 Adds support for the XFS filesystem. Btrees are not supported
44736 * fs/xfs.c: New file.
44738 * DISTLIST: Added `fs/xfs.c'.
44740 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `fs/xfs.c'.
44741 (grub_probefs_SOURCES): Likewise.
44742 (grub_emu_SOURCES): Likewise.
44743 (pkgdata_MODULES): Add `xfs.mod'.
44744 (xfs_mod_SOURCES): New variable.
44745 (xfs_mod_CFLAGS): Likewise.
44747 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add `fs/xfs.c'.
44748 (pkgdata_MODULES): Add `xfs.mod'.
44749 (xfs_mod_SOURCES): New variable.
44750 (xfs_mod_CFLAGS): Likewise.
44752 * util/grub-emu.c (main): Call `grub_xfs_init' and
44755 * include/grub/fs.h (grub_xfs_init): New prototype.
44756 (grub_xfs_fini): Likewise.
44759 2005-09-18 Vesa Jaaskelainen <chaac@nic.fi>
44761 * video/i386/pc/vbe.c (grub_vbe_set_video_mode): In indexed
44762 color modes, allow greater than 16 colors to be configured as
44765 2005-09-03 Yoshinori K. Okuji <okuji@enbug.org>
44767 * normal/completion.c (complete_arguments): Add the qualifier
44768 const into OPTIONS.
44770 From Omniflux <omniflux+lists@omniflux.com>:
44771 * include/grub/terminfo.h: New file.
44772 * include/grub/tparm.h: Likewise.
44773 * include/grub/i386/pc/serial.h: Likewise.
44774 * term/terminfo.c: Likewise.
44775 * term/tparm.c: Likewise.
44776 * term/i386/pc/serial.c: Likewise.
44777 * conf/i386-pc.rmk (pkgdata_MODULES): Added terminfo.mod and
44779 (terminfo_mod_SOURCES): New variable.
44780 (terminfo_mod_CFLAGS): Likewise.
44781 (serial_mod_SOURCES): Likewise.
44782 (serial_mod_CFLAGS): Likewise.
44784 2005-08-31 Yoshinori K. Okuji <okuji@enbug.org>
44786 * DISTLIST: Replaced boot/powerpc/ieee1275/crt0.S and
44787 boot/powerpc/ieee1275/cmain.c with kern/powerpc/ieee1275/crt0.S
44788 and kern/powerpc/ieee1275/cmain.c, respectively.
44790 * boot/powerpc/ieee1275/crt0.S: Moved to ...
44791 * kern/powerpc/ieee1275/crt0.S: ... here.
44793 * boot/powerpc/ieee1275/cmain.c: Moved to ...
44794 * kern/powerpc/ieee1275/cmain.c: ... here.
44796 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Use
44797 kern/powerpc/ieee1275/crt0.S and kern/powerpc/ieee1275/cmain.c
44798 instead of boot/powerpc/ieee1275/crt0.S and
44799 boot/powerpc/ieee1275/cmain.c, respectively.
44801 * boot/i386/pc/boot.S (lba_mode): Do not store the total number of
44802 sectors. It was not used anyway.
44804 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44806 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): Fix
44807 `unused parameter' warning.
44809 2005-08-30 Hollis Blanchard <hollis@penguinppc.org>
44811 * term/ieee1275/ofconsole.c (grub_ofconsole_getcharwidth): New
44813 (grub_ofconsole_term): Specify grub_ofconsole_getcharwidth as
44816 2005-08-28 Marco Gerards <metgerards@student.han.nl>
44818 * include/grub/normal.h (enum grub_completion_type): Added
44819 `GRUB_COMPLETION_TYPE_ARGUMENT'.
44821 * normal/cmdline.c (print_completion): Handle
44822 the `GRUB_COMPLETION_TYPE_ARGUMENT' type.
44823 * normal/menu_entry.c (store_completion): Likewise.
44825 * normal/completion.c (complete_arguments): New function.
44826 (grub_normal_do_completion): Call `complete_arguments' when the
44827 current words start with a dash.
44829 2005-08-27 Marco Gerards <metgerards@student.han.nl>
44831 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Fix typo (use
44832 `gzio.mod' instead of `io.mod').
44834 2005-08-22 Yoshinori K. Okuji <okuji@enbug.org>
44836 * gendistlist.sh (EXTRA_DISTFILES): Added genfslist.sh.
44837 (DISTDIRS): Added io and video.
44838 Rewrite the search routine to make an output consistently.
44840 * DISTLIST: Added conf/sparc64-ieee1275.mk,
44841 conf/sparc64-ieee1275.rmk, include/grub/gzio.h,
44842 include/grub/ieee1275/ieee1275.h, include/grub/ieee1275/ofdisk.h,
44843 io/gzio.c, kern/sparc64/cache.c, kern/sparc64/dl.c,
44844 kern/sparc64/ieee1275/init.c, kern/sparc64/ieee1275/openfw.c and
44845 util/powerpc/ieee1275/misc.c.
44847 * include/grub/gzio.h: New file.
44848 * io/gzio.c: Likewise.
44850 * kern/file.c (grub_file_close): Call grub_device_close only if
44851 FILE->DEVICE is not NULL.
44853 * include/grub/mm.h [!NULL] (NULL): New macro.
44855 * include/grub/err.h (GRUB_ERR_BAD_GZIP_DATA): New constant.
44857 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added io/gzip.c.
44858 (pkgdata_MODULES): Added gzio.mod.
44859 (gzio_mod_SOURCES): New variable.
44860 (gzio_mod_CFLAGS): Likewise.
44862 * conf/i386-pc.rmk (grub_emu_SOURCES): Added io/gzip.c.
44863 (pkgdata_MODULES): Added gzio.mod.
44864 (gzio_mod_SOURCES): New variable.
44865 (gzio_mod_CFLAGS): Likewise.
44867 * commands/cat.c: Include grub/gzio.h.
44868 (grub_cmd_cat): Use grub_gzfile_open instead of
44871 * commands/cmp.c: Include grub/gzio.h.
44872 (grub_cmd_cmp): Use grub_gzfile_open instead of
44875 * loader/i386/pc/multiboot.c: Include grub/gzio.h.
44876 (grub_rescue_cmd_multiboot): Use grub_gzfile_open instead of
44878 (grub_rescue_cmd_module): Likewise.
44880 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44882 * conf/sparc64-ieee1275.rmk (grubof_SOURCES): The first file must be
44883 kern/sparc64/ieee1275/init.c because it contains _start.
44884 * conf/sparc64-ieee1275.mk: Generated from conf/sparc64-ieee1275.rmk.
44886 2005-08-21 Vincent Pelletier <subdino2004@yahoo.fr>
44888 * configure.ac: Add support for sparc64 host with ieee1275
44890 * configure: Generated from configure.ac.
44891 * disk/ieee1275/ofdisk.c (grub_ofdisk_open): Use grub_ssize_t
44893 (grub_ofdisk_read): Likewise.
44894 (grub_ofdisk_open): Use %p to print pointer values, and cast the
44895 pointers as (void *) to remove a warning.
44896 (grub_ofdisk_close): Likewise.
44897 (grub_ofdisk_read): Likewise.
44898 * kern/ieee1275/ieee1275.c (grub_ieee1275_exit): This never
44899 returns, so make it return void to remove a warning.
44900 * include/grub/ieee1275/ieee1275.h (grub_ieee1275_exit):
44901 Corresponding prototype change.
44902 * kern/mm.c (grub_mm_init_region): Use %p to print pointer
44903 values, and cast the pointers as (void *) to remove a warning.
44904 (grub_mm_dump): Likewise.
44905 * conf/sparc64-ieee1275.mk: New file.
44906 * conf/sparc64-ieee1275.rmk: Likewise.
44907 * include/grub/sparc64/setjmp.h: Likewise.
44908 * include/grub/sparc64/types.h: Likewise.
44909 * include/grub/sparc64/ieee1275/console.h: Likewise.
44910 * include/grub/sparc64/ieee1275/ieee1275.h: Likewise.
44911 * include/grub/sparc64/ieee1275/kernel.h: Likewise.
44912 * include/grub/sparc64/ieee1275/time.h: Likewise.
44913 * kern/sparc64/cache.c: Likewise.
44914 * kern/sparc64/dl.c: Likewise.
44915 * kern/sparc64/ieee1275/init.c: Likewise.
44916 * kern/sparc64/ieee1275/openfw.c: Likewise.
44918 2005-08-21 Yoshinori K. Okuji <okuji@enbug.org>
44920 * util/console.c (grub_ncurses_putchar): If C is greater than
44921 0x7f, set C to a question mark.
44922 (grub_ncurses_getcharwidth): New function.
44923 (grub_ncurses_term): Specify grub_ncurses_getcharwidth as
44926 * normal/menu.c (print_entry): Made aware of Unicode. First,
44927 convert TITLE to UCS-4, and predict the cursor position by
44930 * include/grub/misc.h (grub_utf8_to_ucs4): Specify the qualifier
44932 * kern/misc.c (grub_utf16_to_utf8): Likewise.
44934 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44936 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Specify
44937 the boot file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44940 * loader/i386/pc/linux.c (grub_rescue_cmd_linux): Specify the boot
44941 file by the option BOOT_IMAGE. Use grub_stpcpy instead of
44942 grub_strcpy and grub_strlen. Take it into account that a space
44943 character is inserted as a delimiter.
44945 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44947 * partmap/pc.c (pc_partition_map_iterate): Include the value of an
44948 invalid magic in the error.
44950 * commands/search.c: New file.
44952 * util/grub-emu.c (main): Call grub_search_init and
44955 * kern/rescue.c (grub_rescue_print_disks): Removed.
44956 (grub_rescue_print_devices): New function.
44957 (grub_rescue_cmd_ls): Use grub_device_iterate with
44958 grub_rescue_print_devices instead of grub_disk_dev_iterate with
44959 grub_rescue_print_disks.
44961 * kern/partition.c (grub_partition_iterate): Return the result of
44962 PARTMAP->ITERATE instead of GRUB_ERRNO.
44964 * kern/device.c: Include grub/partition.h.
44965 (grub_device_iterate): New function.
44967 * include/grub/partition.h (grub_partition_iterate): Return int
44968 instead of grub_err_t.
44970 * include/grub/normal.h [GRUB_UTIL] (grub_search_init): New
44972 [GRUB_UTIL] (grub_search_fini): Likewise.
44974 * include/grub/device.h (grub_device_iterate): New prototype.
44976 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
44978 (pkgdata_MODULES): Added search.mod.
44979 (search_mod_SOURCES): New variable.
44980 (search_mod_CFLAGS): Likewise.
44982 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/search.c.
44983 (pkgdata_MODULES): Added search.mod.
44984 (search_mod_SOURCES): New variable.
44985 (search_mod_CFLAGS): Likewise.
44987 * commands/ls.c (grub_ls_list_disks): Renamed to ...
44988 (grub_ls_list_devices): ... this, and use grub_device_iterate.
44989 All callers changed.
44991 * DISTLIST: Added commands/search.c.
44993 2005-08-20 Yoshinori K. Okuji <okuji@enbug.org>
44995 * kern/term.c (grub_putchar): Use grub_utf8_to_ucs4 for the
44997 (grub_getcharwidth): New function.
44999 * kern/misc.c (grub_utf8_to_ucs4): New function.
45001 * include/grub/term.h (struct grub_term): Added a new member
45003 (grub_getcharwidth): New prototype.
45005 * include/grub/misc.h (grub_utf8_to_ucs4): New prototype.
45007 * term/i386/pc/console.c (map_char): New function. Segregated from
45008 grub_console_putchar.
45009 (grub_console_putchar): Use map_char.
45010 (grub_console_getcharwidth): New function.
45011 (grub_console_term): Specified grub_console_getcharwidth as
45014 * term/i386/pc/vga.c (grub_vga_getcharwidth): New function.
45015 (grub_vga_term): Specified grub_vga_getcharwidth as getcharwidth.
45017 * term/i386/pc/vesafb.c (grub_virtual_screen_setup): Return
45019 (grub_vesafb_init): Do not use RC. Instead, use GRUB_ERRNO. Rely
45020 on grub_strtoul completely.
45021 (write_char): Declare local variables in the beginning of the
45023 (grub_vesafb_getcharwidth): New function.
45024 (grub_vesafb_term): Specified grub_vesafb_getcharwidth as
45027 2005-08-19 Yoshinori K. Okuji <okuji@enbug.org>
45029 * DISTLIST: Replace commands/i386/pc/vbe_list_modes.c and
45030 commands/i386/pc/vbe_test.c with commands/i386/pc/vbeinfo.c and
45031 commands/i386/pc/vbetest.c.
45033 * video/i386/pc/vbe.c (grub_vbe_probe): If INFOBLOCK is not NULL,
45034 call grub_vbe_get_controller_info again, because the returned
45035 information is volatile.
45036 (grub_vbe_set_video_mode): Mostly rewritten.
45037 (grub_vbe_get_video_mode): Use grub_vbe_probe and use
45038 grub_vbe_status_t correctly.
45039 (grub_vbe_get_video_mode_info): Likewise.
45040 (grub_vbe_set_pixel_rgb): Use a switch statement rather than
45041 several if statements.
45043 * commands/i386/pc/vbe_list_modes.c: Renamed to ...
45044 * commands/i386/pc/vbeinfo.c: ... this.
45046 * commands/i386/pc/vbe_test.c: Renamed to ...
45047 * commands/i386/pc/vbetest.c: ... this.
45049 * commands/i386/pc/vbeinfo.c (grub_cmd_vbe_list_modes): Renamed to
45051 (grub_cmd_vbeinfo): ... this. Save video modes before
45052 iterating. Skip a video mode, if it is not available, not enough
45053 information is given or it is monochrome. Show the memory
45054 model. Leave the interpretation of MODEVAR to grub_strtoul
45056 (GRUB_MOD_INIT): Rename vbe_list_modes to vbeinfo.
45057 (GRUB_MOD_FINI): Likewise.
45059 * commands/i386/pc/vbetest.c (grub_cmd_vbe_test): Renamed to ...
45060 (grub_cmd_vbetest): ... this. Don't print unnecessarily. Use
45061 grub_err_t instead of grub_uint32_t. Don't use SPTR. Remove a
45062 duplicated grub_env_get. Leave the interpretation of MODEVAR to
45063 grub_strtoul completely.
45064 (real2pm): Removed.
45065 (GRUB_MOD_INIT): Rename vbe_test to vbetest.
45066 (GRUB_MOD_FINI): Likewise.
45068 * normal/misc.c: Include grub/mm.h.
45070 * conf/i386-pc.rmk (pkgdata_MODULES): Replaced vbe_test.mod and
45071 vbe_list_modes with vbetest.mod and vbeinfo.mod.
45072 (vbe_list_modes_mod_SOURCES): Removed.
45073 (vbe_list_modes_mod_CFLAGS): Likewise.
45074 (vbe_test_mod_SOURCES): Likewise.
45075 (vbe_test_mod_CFLAGS): Likewise.
45076 (vbeinfo_mod_SOURCES): New variable.
45077 (vbeinfo_mod_CFLAGS): Likewise.
45078 (vbetest_mod_SOURCES): Likewise.
45079 (vbetest_mod_CFLAGS): Likewise.
45081 2005-08-18 Yoshinori K. Okuji <okuji@enbug.org>
45083 * normal/misc.c: New file.
45085 * DISTLIST: Added normal/misc.c.
45087 * partmap/amiga.c (amiga_partition_map_iterate): Add an argument
45088 DISK to HOOK. Call HOOK with DISK.
45089 * partmap/apple.c (apple_partition_map_iterate): Likewise.
45090 * partmap/pc.c (pc_partition_map_iterate): Likewise.
45091 * partmap/sun.c (sun_partition_map_iterate): Likewise.
45093 * normal/menu_entry.c (struct screen): Added a new member
45094 "completion_shown".
45095 (completion_buffer): New global variable.
45096 (make_screen): Set SCREEN->COMPLETION_SHOWN to zero.
45097 (store_completion): New function.
45098 (complete): Likewise.
45099 (clear_completions): Likewise.
45100 (grub_menu_entry_run): If SCREEN->COMPLETION_SHOWN is non-zero,
45101 call clear_completions and reset SCREEN->COMPLETION_SHOWN. If C is
45102 a tab, call complete.
45104 * normal/completion.c (disk_dev): Removed.
45105 (print_simple_completion): Likewise.
45106 (print_partition_completion): Likewise.
45107 (print_func): New global variable.
45108 (add_completion): Do not take the arguments WHAT or PRINT any
45109 longer. Added a new argument TYPE. Instead of printing directly,
45110 call PRINT_FUNC if not NULL.
45111 All callers changed.
45112 (complete_device): Use a local variable DEV instead of
45113 DISK_DEV. Do not move CURRENT_WORD to the end of a device name.
45114 (grub_normal_do_completion): Take a new argument HOOK. Do not
45115 initialize DISK_DEV. Initialize PRINT_FUNC to HOOK. If RET is an
45116 empty string, return NULL instead.
45117 All callers changed.
45119 * normal/cmdline.c (print_completion): New function.
45121 * kern/partition.c (grub_partition_iterate): Add an argument DISK
45123 All callers changed.
45125 * kern/disk.c (grub_print_partinfo): Removed.
45127 * include/grub/partition.h (struct grub_partition_map): Add a new
45128 argument DISK into HOOK of ITERATE.
45129 (grub_partition_iterate): Add a new argument DISK to HOOK.
45131 * include/grub/normal.h (enum grub_completion_type): New enum.
45132 (grub_completion_type_t): New type.
45133 (GRUB_COMPLETION_TYPE_COMMAND): New constant.
45134 (GRUB_COMPLETION_TYPE_DEVICE): Likewise.
45135 (GRUB_COMPLETION_TYPE_PARTITION): Likewise.
45136 (GRUB_COMPLETION_TYPE_FILE): Likewise.
45137 (grub_normal_do_completion): Added a new argument HOOK.
45138 (grub_normal_print_device_info): New prototype.
45140 * include/grub/disk.h (grub_print_partinfo): Removed.
45142 * conf/i386-pc.rmk (grub_emu_SOURCES): Added normal/misc.c.
45143 (normal_mod_SOURCES): Likewise.
45144 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
45145 (normal_mod_SOURCES): Likewise.
45147 * commands/ls.c (grub_ls_list_disks): Use
45148 grub_normal_print_device_info instead of grub_print_partinfo. Free
45150 (grub_ls_list_files): Use grub_normal_print_device_info instead of
45151 duplicating the code.
45153 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45155 * commands/i386/pc/vbe_list_modes.c: Update source formatting to
45156 follow GCS more precisely.
45157 * commands/i386/pc/vbe_test.c: Likewise.
45158 * include/grub/i386/pc/vbe.h: Likewise.
45159 * term/i386/pc/vesafb.c: Likewise.
45160 * video/i386/pc/vbe.c: Likewise.
45162 2005-08-16 Vesa Jaaskelainen <chaac@nic.fi>
45164 * DISTLIST: Added term/i386/pc/vesafb.c
45165 DISTLIST: Added video/i386/pc/vbe.c
45166 DISTLIST: Added commands/i386/pc/vbe_list_modes.c.
45167 DISTLIST: Added commands/i386/pc/vbe_test.c.
45168 * commands/i386/pc/vbe_list_modes.c: New file.
45169 * commands/i386/pc/vbe_test.c: Likewise.
45170 * term/i386/pc/vesafb.c: Likewise.
45171 * video/i386/pc/vbe.c: Likewise.
45172 * include/grub/i386/pc/vbe.h (GRUB_VBE_DEFAULT_VIDEO_MODE): Added define.
45173 (grub_vbe_probe) Added prototype.
45174 (grub_vbe_set_video_mode) Likewise.
45175 (grub_vbe_get_video_mode) Likewise.
45176 (grub_vbe_get_video_mode_info) Likewise.
45177 (grub_vbe_set_pixel_rgb) Likewise.
45178 (grub_vbe_set_pixel_index) Likewise.
45179 * conf/i386-pc.rmk (pkgdata_MODULES): Added vbe.mod.
45180 (pkgdata_MODULES): Added vesafb.mod.
45181 (pkgdata_MODULES): Added vbe_list_modes.mod.
45182 (pkgdata_MODULES): Added vbe_test.mod.
45183 (vbe_mod_SOURCES): Added.
45184 (vbe_mod_CFLAGS): Likewise.
45185 (vesafb_mod_SOURCES): Likewise.
45186 (vesafb_mod_CFLAGS): Likewise.
45187 (vbe_list_modes_mod_SOURCES): Likewise.
45188 (vbe_list_modes_mod_CFLAGS): Likewise.
45189 (vbe_test_mod_SOURCES): Likewise.
45190 (vbe_test_mod_CFLAGS): Likewise.
45192 2005-08-14 Yoshinori K. Okuji <okuji@enbug.org>
45194 * normal/command.c (grub_command_execute): If INTERACTIVE is
45195 false and GRUB_COMMAND_FLAG_NO_ECHO is not specified, print
45196 CMDLINE. Disable the pager if INTERACTIVE is true.
45197 All callers are changed.
45199 * normal/main.c (grub_normal_execute): Read command.lst and fs.lst
45200 before reading a config file.
45201 * normal/main.c (read_config_file): Even if a command is not
45202 found, register it if it is within an entry.
45204 * util/grub-emu.c: Include sys/types.h and unistd.h.
45205 (options): Added --hold.
45206 (struct arguments): Added a new member "hold".
45207 (parse_opt): If KEY is 'H', set ARGS->HOLD to ARG or -1 if ARG is
45209 (main): Initialize ARGS.HOLD to zero. Wait until ARGS.HOLD is
45210 cleared by a debugger, if it is not zero.
45212 * include/grub/normal.h (grub_command_execute): Add an argument
45215 2005-08-14 Vesa Jaaskelainen <chaac@nic.fi>
45217 * DISTLIST: Added include/grub/i386/pc/vbe.h.
45219 2005-08-13 Yoshinori K. Okuji <okuji@enbug.org>
45221 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): Replace the test
45222 program with another one, because the old one didn't detect a bug
45223 in gcc-3.4. Always use regparm 2, because the new test is still
45224 not enough for gcc-4.0. Someone must investigate a simple test
45225 case which detects a bug in gcc-4.0.
45227 2005-08-12 Yoshinori K. Okuji <okuji@enbug.org>
45229 * DISTLIST: Added normal/completion.c.
45231 * normal/completion.c: New file.
45233 * term/i386/pc/console.c (grub_console_getwh): New function.
45234 (grub_console_term): Assign grub_console_getwh to getwh.
45236 * normal/cmdline.c (grub_tab_complete): Removed. Now the same
45237 function is defined in normal/completion.c as
45238 grub_normal_do_completion.
45239 (grub_cmdline_get): Use grub_normal_do_completion instead of
45242 * kern/partition.c (grub_partition_map_iterate): Return 1 if HOOK
45243 returns non-zero, otherwise return 0.
45244 (grub_partition_iterate): First, probe the partition map. Then,
45245 call ITERATE only for this partition map.
45247 * kern/misc.c (grub_strncmp): Rewritten.
45249 * kern/disk.c (grub_disk_dev_iterate): Return 1 if P->ITERATE
45250 returns non-zero. Otherwise return 0.
45252 * include/grub/partition.h (grub_partition_map_iterate): Return
45253 int instead of void.
45255 * include/grub/normal.h (grub_normal_do_completion): New prototype.
45257 * include/grub/misc.h (grub_strncmp): Change the type of N to
45260 * include/grub/disk.h (grub_disk_dev_iterate): Return int instead
45263 * normal/menu.c (draw_border): Cast GRUB_TERM_BORDER_WIDTH to
45264 unsigned explicitly before comparing it with I.
45266 * kern/main.c (grub_env_write_root): Add the attribute unused into
45269 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
45270 normal/completion.c.
45271 (normal_mod_SOURCES): Likewise.
45272 * conf/i386-pc.rmk (grub_emu_SOURCES): Likewise.
45273 (normal_mod_SOURCES): Likewise.
45275 * normal/command.c (grub_iterate_commands): If ITERATE returns
45276 non-zero, return one immediately.
45278 2005-08-09 Vesa Jaaskelainen <chaac@nic.fi>
45280 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vbe.h.
45281 * kern/i386/pc/startup.S: Updated Global Descriptor table's
45283 (grub_vbe_get_controller_info): New function.
45284 (grub_vbe_get_mode_info): Likewise.
45285 (grub_vbe_set_mode): Likewise.
45286 (grub_vbe_get_mode): Likewise.
45287 (grub_vbe_set_memory_window): Likewise.
45288 (grub_vbe_get_memory_window): Likewise.
45289 (grub_vbe_set_scanline_length): Likewise.
45290 (grub_vbe_get_scanline_length): Likewise.
45291 (grub_vbe_set_display_start): Likewise.
45292 (grub_vbe_get_display_start): Likewise.
45293 (grub_vbe_set_palette_data): Likewise.
45294 * include/grub/i386/pc/vbe.h: New file.
45296 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45298 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45299 kern/ieee1275/of.c with kern/ieee1275/ieee1275.c.
45300 * DISTLIST: Likewise.
45301 * kern/ieee1275/of.c: Moved to ...
45302 * kern/ieee1275/ieee1275.c: ... here.
45304 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45306 * term/ieee1275/ofconsole.c: Include <grub/mm.h>.
45307 (grub_ofconsole_getwh): Cast -1 to type grub_ieee1275_ihandle_t.
45308 Pass 0 as `end' parameter to grub_strtoul().
45310 2005-08-08 Hollis Blanchard <hollis@penguinppc.org>
45312 * include/grub/powerpc/ieee1275/console.h: Do not include
45313 <grub/types.h>. Do not include <grub/symbol.h>. Remove ASM_FILE
45315 (grub_console_cur_color): Remove i386-specific prototype.
45316 (grub_console_real_putchar): Likewise.
45317 (grub_console_checkkey): Likewise.
45318 (grub_console_getkey): Likewise.
45319 (grub_console_getxy): Likewise.
45320 (grub_console_gotoxy): Likewise.
45321 (grub_console_cls): Likewise.
45322 (grub_console_setcursor): Likewise.
45323 * kern/powerpc/ieee1275/init.c: Don't include <grub/console.h>.
45324 Include <grub/machine/console.h>.
45325 * term/ieee1275/ofconsole.c: Likewise.
45327 2005-08-08 Yoshinori K. Okuji <okuji@enbug.org>
45329 * Makefile.in (LIBLZO): New variable.
45331 * configure.ac: Check for LZO version 2.
45333 * util/i386/pc/grub-mkimage.c [HAVE_LZO_LZO1X_H]: Include
45334 lzo/lzo1x.h instead of lzo1x.h.
45336 * conf/i386-pc.rmk (grub_mkimage_LDFLAGS): Use $(LIBLZO) instead
45339 * util/i386/pc/grub-setup.c (main): Do not free PREFIX
45340 twice. Reported by Vladimir Serbinenko <phcoder@gmail.com>.
45342 * partmap/pc.c (pc_partition_map_probe): Restore P->DATA after
45343 copying the data from PARTITION to P.
45345 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45347 * kern/rescue.c (grub_rescue_cmd_rmmod): If the reference count is
45348 negative, unload the module.
45350 * util/i386/pc/grub-setup.c (setup): The name of the PC partition
45351 map is "pc_partition_map" but not "pc".
45352 (usage): Fix the description. The options are --boot-image and
45353 --core-image but not --boot-file or --core-file.
45354 (main): If not specified explicitly, make BOOT_FILE and CORE_FILE
45355 based on DEFAULT_BOOT_FILE and DEFAULT_CORE_FILE with DIR or
45358 * util/i386/pc/grub-install.in: Do not specify --boot-file or
45359 --core-file. Specify INSTALL_DEVICE as an argument.
45361 * util/console.c: Include config.h.
45362 [HAVE_NCURSeS_CURSES_H]: Include ncurses/curses.h.
45363 [HAVE_NCURSES_H]: Include ncurses.h.
45364 [HAVE_CURSES_H]: Include curses.h.
45365 [!A_NORMAL] (A_NORMAL): Defined as zero.
45366 [!A_STANDOUT] (A_STANDOUT): Likewise.
45368 * conf/i386-pc.rmk (grub_emu_LDFLAGS): Use $(LIBCURSES) instead of
45370 * conf/powerpc-ieee1275.rmk (grub_emu_LDFLAGS): Likewise.
45372 * configure.ac: Check for curses libraries and headers.
45374 * Makefile.in (LIBCURSES): New variable.
45376 * genmk.rb (Script::rule): Set the executable bits.
45378 * util/i386/pc/biosdisk.c (grub_util_biosdisk_get_grub_dev): The
45379 name of the PC partition map is "pc_partition_map" but not "pc".
45381 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45383 * util/i386/pc/grub-install.in (grub_probefs): New variable.
45384 (modules): Likewise.
45385 (usage): Added descriptions for --modules and --grub-probefs.
45386 Handle --modules and --grub-probefs. Save the arguments in MODULES
45387 and GRUB_PROBEFS, respectively.
45388 Auto-detect a filesystem module against GRUBDIR. If the result is
45389 empty and modules are not specified explicitly, abort the
45390 installation. Add the result to MODULES.
45392 * DISTLIST: Removed boot/powerpc/ieee1275/ieee1275.c,
45393 disk/powerpc/ieee1275/ofdisk.c,
45394 include/grub/powerpc/ieee1275/init.h and
45395 term/powerpc/ieee1275/ofconsole.c.
45396 Added disk/ieee1275/ofdisk.c, kern/ieee1275/of.c and
45397 term/ieee1275/ofconsole.c.
45399 * include/grub/powerpc/ieee1275/console.h: Resurrected.
45401 * COPYING: Upgraded to the latest version. Only the address of the
45402 FSF office has changed.
45404 2005-08-07 Yoshinori K. Okuji <okuji@enbug.org>
45406 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Replaced
45407 kern/ieee1275.c with kern/ieee1275/of.c.
45409 * kern/ieee1275.c: Moved to ...
45410 * kern/ieee1275/of.c: ... here.
45412 2005-08-06 Yoshinori K. Okuji <okuji@enbug.org>
45414 * conf/i386-pc.rmk (kernel_img_HEADERS): Reordered for
45417 * config.guess: Updated to the latest version from gnulib.
45418 * config.sub: Likewise.
45419 * install.sh: Likewise.
45420 * mkinstalldirs: Likewise.
45422 * include/grub/console.h: Removed. This file is arch-specific. Do
45423 not put this in include/grub.
45425 * include/grub/i386/pc/console.h: Resurrected.
45427 * util/console.c: Include grub/machine/console.h instead of
45429 * util/grub-emu.c: Likewise.
45431 2005-08-04 Marco Gerards <metgerards@student.han.nl>
45433 * kern/term.c (grub_putcode): Use `grub_getwh' instead of
45436 From Vincent Pelletier <subdino2004@yahoo.fr>
45437 * include/grub/term.h (GRUB_TERM_WIDTH, GRUB_TERM_HEIGHT):
45438 Redefined to use grub_getwh.
45439 (grub_term): New member named getwh.
45440 (grub_getwh): New prototype.
45441 * kern/term.c (grub_getwh): New function.
45442 * term/i386/pc/console.c (grub_console_getwh): New function.
45443 (grub_console_term): New member `getwh'.
45444 * term/i386/pc/vga.c (grub_vga_getwh): New function.
45445 (grub_vga_term): New member `getwh'.
45446 * term/ieee1275/ofconsole.c (grub_ofconsole_readkey): Use
45448 (grub_ofconsole_getw): New function.
45449 (grub_ofconsole_init): Use grub_ssize_t and unsigned char.
45450 (grub_ofconsole_term): New field named getwh and new initial
45453 2005-08-03 Hollis Blanchard <hollis@penguinppc.org>
45455 * include/grub/powerpc/ieee1275/ieee1275.h: Move ...
45456 * include/grub/ieee1275/ieee1275.h: ... to here. All users updated.
45457 Move `abort', `grub_reboot', and `grub_halt' prototypes ...
45458 * include/grub/powerpc/ieee1275/kernel.h: ... to here.
45459 * commands/ieee1275/halt.c: Include <grub/machine/kernel.h> instead
45460 of <grub/machine/ieee1275.h>.
45461 * commands/ieee1275/reboot.c: Likewise.
45462 * boot/powerpc/ieee1275/ieee1275.c: Move ...
45463 * kern/ieee1275.c: ... to here. All users updated. Change all
45464 parameter structs to use new type `grub_ieee1275_cell_t'.
45465 * term/powerpc/ieee1275/ofconsole.c: Move ...
45466 * term/ieee1275/ofconsole.c: ... to here. All users updated.
45467 * disk/powerpc/ieee1275/ofdisk.c: Move ...
45468 * disk/ieee1275/ofdisk.c: ... to here. All users updated.
45469 * boot/powerpc/ieee1275/cmain.c: Change `grub_ieee1275_entry_fn' type
45471 * include/grub/i386/pc/console.h: Move to include/grub/console.h.
45472 Remove unused prototypes. All users updated.
45473 * include/grub/powerpc/ieee1275/console.h: Removed.
45474 * include/grub/powerpc/ieee1275/ieee1275.h: Define
45475 `grub_ieee1275_cell_t'.
45476 * kern/powerpc/ieee1275/openfw.c: Include <grub/machine/kernel.h>.
45477 Cast comparisons with -1 to the correct type.
45478 * loader/powerpc/ieee1275/linux.c (kernel_entry_t): Change parameter
45479 type to match `grub_ieee1275_entry_fn'.
45481 2005-08-01 Yoshinori K. Okuji <okuji@enbug.org>
45483 * DISTLIST: Added util/i386/pc/grub-probefs.c.
45485 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-probefs.
45486 (grub_setup_SOURCES): Removed partmap/amiga.c, partmap/apple.c and
45488 (grub_probefs_SOURCES): New variable.
45490 * util/i386/pc/grub-probefs.c: New file.
45492 * util/i386/pc/grub-setup.c (main): Call
45493 grub_pc_partition_map_init, grub_ufs_init, grub_minix_init,
45494 grub_hfs_init and grub_jfs_init to initialize the system. Call
45495 grub_ufs_fini, grub_minix_fini, grub_hfs_fini, grub_jfs_init and
45496 grub_pc_partition_map_fini to finish the system.
45498 2005-07-31 Yoshinori K. Okuji <okuji@enbug.org>
45500 * loader/i386/pc/multiboot.c (grub_multiboot_is_elf32): New
45502 (grub_multiboot_load_elf32): Likewise.
45503 (grub_multiboot_is_elf64): Likewise.
45504 (grub_multiboot_load_elf64): Likewise.
45505 (grub_multiboot_load_elf): Likewise.
45506 (grub_rescue_cmd_multiboot): Call grub_multiboot_load_elf to load
45507 an ELF32 or ELF64 file.
45508 This is based on a patch from Ruslan Nikolaev <nruslan@mail.com>.
45510 From Serbinenko Vladimir <serbinenko.vova@list.ru>:
45511 * kern/disk.c (grub_print_partinfo): Check if FS->LABEL is not
45512 NULL before calling FS->LABEL.
45513 * fs/fat.c (grub_fat_dir): Initialize DIRNAME to NULL.
45514 * commands/ls.c (grub_ls_list_files): Show labels, if possible.
45515 (grub_ls_list_disks): Check if FS and FS->LABEL are not NULL
45516 before calling FS->LABEL.
45518 2005-07-26 Yoshinori K. Okuji <okuji@enbug.org>
45520 * util/i386/pc/grub-install.in (datadir): New variable.
45522 (pkgdatadir): New variable.
45523 (pkglibdir): Removed.
45525 2005-07-24 Yoshinori K. Okuji <okuji@enbug.org>
45527 * DISTLIST: Added util/i386/pc/grub-install.in.
45529 * util/i386/pc/grub-install.in: New file.
45531 * conf/i386-pc.rmk (sbin_SCRIPTS): New variable.
45532 (grub_install_SOURCES): Likewise.
45534 * genmk.rb: Added support for scripts.
45535 (Script): New class.
45536 (scripts): New variable.
45538 * Makefile.in (install-local): Install sbin_SCRIPTS by
45540 (uninstall): Remove sbin_SCRIPTS.
45542 * util/i386/pc/grub-setup.c (main): If the argument is not a GRUB
45543 device, try to get a GRUB device by
45544 grub_util_biosdisk_get_grub_dev.
45547 * util/i386/pc/grub-mkdevicemap.c (usage): Remove a duplicated
45548 description for --device-map.
45550 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45552 Change the semantics of variable hooks. They now return strings
45553 instead of error values.
45555 * util/i386/pc/grub-setup.c: Include grub/env.h.
45556 (setup): Use grub_device_set_root instead of grub_env_set.
45558 * kern/rescue.c (grub_rescue_cmd_root): Use grub_env_set and
45559 grub_env_get instead of grub_device_set_root and
45560 grub_device_get_root, respectively.
45562 * kern/main.c (grub_env_write_root): New function.
45563 (grub_set_root_dev): Register grub_env_write_hook for "root". Use
45564 grub_env_set instead of grub_device_set_root.
45566 * kern/env.c (HASHSZ): Reduced to 13, because GRUB does not need
45568 (grub_env_set): Set ENV->VALUE to the result of ENV->WRITE_HOOK
45569 rather than calling ENV->WRITE_HOOK afterwards.
45570 (grub_env_get): Return the result of ENV->READ_HOOK rather than
45571 passing a pointer of a pointer.
45572 (grub_register_variable_hook): Change the types of "read_hook" and
45573 "write_hook" to grub_env_read_hook_t and grub_env_write_hook_t,
45575 Allocate the default empty string on the heap, because this string
45576 may be freed later.
45578 * kern/device.c: Include grub/env.h.
45579 (grub_device_set_root): Removed.
45580 (grub_device_get_root): Likewise.
45581 (grub_device_open): Use grub_env_get instead of
45582 grub_device_get_root.
45584 * include/grub/env.h (grub_env_read_hook_t): New type.
45585 (grub_env_write_hook_t): Likewise.
45586 (grub_env_var): Change the types of "read_hook" and "write_hook"
45587 to grub_env_read_hook_t and grub_env_write_hook_t, respectively.
45588 (grub_register_variable_hook): Likewise.
45590 * include/grub/device.h (grub_device_set_root): Removed.
45591 (grub_device_set_root): Likewise.
45593 * fs/fat.c (grub_fat_dir): Make a copy of PATH in DIRNAME, and
45594 make sure that DIRNAME terminates with '/', so that
45595 grub_fat_find_dir will fail if PATH is not a directory.
45597 * commands/ls.c (grub_ls_list_files): Remove the qualifier const
45599 Use the qualifier auto for print_files and print_files_long.
45600 If FS->DIR sets GRUB_ERRNO to GRUB_ERR_BAD_FILE_TYPE, try DIRNAME
45602 Put a newline only if there is no error.
45603 (grub_cmd_ls): Remove grub_ls_print_files, because this is not
45606 2005-07-20 Yoshinori K. Okuji <okuji@enbug.org>
45608 * kern/partition.c (grub_partition_probe): Initialize PART to
45609 NULL. Otherwise, when no partition map is registered, this returns
45612 2005-07-19 Yoshinori K. Okuji <okuji@enbug.org>
45614 * partmap/apple.c (apple_partition_map_iterate): Check if POS
45615 equals GRUB_DISK_SECTOR_SIZE to see if the partition table is
45618 2005-07-18 Yoshinori K. Okuji <okuji@enbug.org>
45620 * commands/ls.c (grub_ls_list_disks): Print the filesystem
45621 information on each device, if it does not have partitions. Print
45622 "Device" instead of "Disk", because this function is not specific
45625 * normal/main.c (grub_rescue_cmd_normal): Make the variable CONFIG
45626 static to ensure that it is put on the memory rather than a
45629 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45631 * commands/cat.c (GRUB_MOD_INIT): Use better documentation.
45632 (grub_cat_init): Likewise.
45633 * loader/i386/pc/chainloader_normal.c (GRUB_MOD_INIT): Likewise.
45634 (options): Likewise.
45635 * commands/configfile.c (GRUB_MOD_INIT): Likewise.
45636 (grub_configfile_init): Likewise.
45637 * font/manager.c (GRUB_MOD_INIT): Likewise.
45638 * commands/help.c (GRUB_MOD_INIT): Likewise.
45639 (grub_help_init): Likewise.
45640 * normal/command.c (grub_command_init): Likewise.
45641 * loader/i386/pc/linux_normal.c (GRUB_MOD_INIT): Likewise.
45642 * disk/loopback.c (grub_loop_init): Likewise.
45643 (GRUB_MOD_INIT): Likewise.
45644 * commands/ls.c (grub_ls_init): Likewise.
45645 (GRUB_MOD_INIT): Likewise.
45646 (options): Likewise.
45647 * commands/boot.c (grub_boot_init): Likewise.
45648 (GRUB_MOD_INIT): Likewise.
45649 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Likewise.
45650 * commands/i386/pc/reboot.c (grub_reboot_init): Likewise.
45651 (GRUB_MOD_INIT): Likewise.
45652 * commands/cmp.c (grub_cmp_init): Likewise.
45653 (GRUB_MOD_INIT): Likewise.
45655 * normal/arg.c: Use <> instead of "" to include header files.
45656 (SHORT_ARG_HELP): New macro.
45657 (SHORT_ARG_USAGE): Likewise.
45658 (help_options): Specify SHORT_ARG_HELP and SHORT_ARG_USAGE instead
45659 of 'h' and 'u' for help and usage, respectively. Use more GNU-like
45661 (find_short): Check if C is 'h' or 'u' explicitly.
45662 (grub_arg_show_help): Use space characters instead of tabs. Treat
45663 SHORT_ARG_HELP and SHORT_ARG_USAGE exceptionally so that -h and -u
45664 are shown with --help and --usage only if they are not used for
45665 the command itself.
45666 (parse_option): Use SHORT_ARG_HELP and SHORT_ARG_USAGE instead of
45669 * include/grub/arg.h (struct grub_arg_option): Add the qualifier
45670 const into "longarg". Change the type of "shortarg" to int.
45672 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45674 * boot/i386/pc/boot.S (boot_drive_check): New label.
45676 * include/grub/i386/pc/boot.h (GRUB_BOOT_MACHINE_DRIVE_CHECK): New
45679 * util/i386/pc/grub-setup.c (setup): Added a workaround for BIOSes
45680 which do not pass a boot drive correctly. Copied from GRUB Legacy.
45682 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45684 * kern/i386/pc/startup.S (gate_a20_try_system_control_port_a):
45685 When turning off Gate A20, skip the check and return immediately,
45686 because this is not fatal usually.
45688 2005-07-17 Yoshinori Okuji <okuji@enbug.org>
45690 * conf/i386-pc.rmk (pxeboot_img_LDFLAGS): The text address should
45691 be 0x7C00 instead of 0x8000.
45693 * boot/i386/pc/pxeboot.S: Rewritten.
45695 * kern/i386/pc/startup.S (gate_a20_try_bios): No need to specify
45697 (gate_a20_check_state): Read a byte from 0x108000. Invert the
45700 2005-07-16 Yoshinori K. Okuji <okuji@enbug.org>
45702 * kern/i386/pc/startup.S (grub_gate_a20): Rewritten for
45703 robustness. This routine now supports a BIOS call and System
45704 Control Port A to modify the gate A20.
45706 * include/grub/i386/pc/kernel.h (GRUB_KERNEL_MACHINE_RAW_SIZE):
45707 Increased to 0x440.
45709 2005-07-12 Hollis Blanchard <hollis@penguinppc.org>
45711 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): dprintf the
45712 device path and resulting ihandle.
45713 (grub_ofdisk_close): dprintf the ihandle being closed.
45714 (grub_ofdisk_read): dprintf function parameters.
45715 * kern/mm.c (grub_mm_init_region): Likewise.
45716 * loader/powerpc/ieee1275/linux.c: Remove extra whitespace.
45717 (grub_linux_boot): dprintf the Linux entry point, initrd address and
45718 size, and boot arguments.
45719 (grub_rescue_cmd_linux): dprintf each ELF segment's address and size
45720 before loading into memory.
45721 (grub_rescue_cmd_initrd): dprintf the initrd's address and size
45722 before loading into memory.
45724 2005-07-12 Yoshinori K. Okuji <okuji@enbug.org>
45726 * kern/mm.c: Added much documentation.
45727 (GRUB_MM_ALIGN_LOG2): When GRUB_CPU_SIZEOF_VOID_P is
45728 8, set to 5 instead of 8.
45730 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45732 * DISTLIST: Added util/i386/pc/grub-mkimage.c.
45734 * conf/i386-pc.rmk (sbin_UTILITIES): Added grub-mkdevicemap.
45735 (grub_mkdevicemap_SOURCES): New variable.
45737 * util/i386/pc/grub-mkdevicemap.c: New file. Mostly copied from
45738 lib/device.c of GRUB Legacy.
45740 2005-07-10 Yoshinori Okuji <okuji@enbug.org>
45742 * commands/ls.c (grub_ls_list_files): Check if *PATH is NUL
45743 instead of PATH is NULL.
45745 2005-07-09 Vincent Pelletier <subdino2004@yahoo.fr>
45747 * commands/cmp.c (BUFFER_SIZE): New macro.
45748 (grub_cmd_cmp): Close the right file at the right time. Compare
45749 only data just read. Don't report files of different size as
45750 identical. Dynamically allocate buffers. Move variable
45751 declarations at the beginning of function.
45753 2005-07-09 Yoshinori Okuji <okuji@enbug.org>
45755 * aclocal.m4 (grub_I386_CHECK_REGPARM_BUG): The return value was
45758 2004-07-04 Vincent Pelletier <subdino2004@yahoo.fr>
45760 * normal/cmdline.c (grub_cmdline_get): Don't fallback on ctrl-d
45761 when backspace is pressed at beginning of line.
45763 2005-07-03 Yoshinori Okuji <okuji@enbug.org>
45765 * DISTLIST: Added genfslist.sh.
45767 * normal/main.c (fs_module_list): New variable.
45768 (autoload_fs_module): New function.
45769 (read_fs_list): Likewise.
45770 (grub_normal_execute): Call read_fs_list.
45772 * kern/fs.c (grub_fs_autoload_hook): New variable.
45773 (grub_fs_probe): Added support for auto-loading.
45775 * include/grub/normal.h (struct grub_fs_module_list): New struct.
45776 (grub_fs_module_list_t): New type.
45778 * include/grub/fs.h (grub_fs_autoload_hook_t): New type.
45779 (grub_fs_autoload_hook): New prototype.
45781 * genfslist.sh: New file.
45783 * genmk.rb: Added a rule to generate a filesystem list.
45785 2005-06-30 Marco Gerards <metgerards@student.han.nl>
45787 * configure.ac: Fix the test for cross-compiling.
45789 * genmk.rb (Program): Use `$(CC)' instead of `$(BUILD_CC)'. Don't
45790 define GRUB_UTIL anymore.
45792 * util/powerpc/ieee1275/grub-mkimage.c (load_note): Endian fixes
45793 so this function works on other systems than just big endian.
45794 (load_modules): Likewise.
45795 (add_segments): Likewise.
45797 2005-06-23 Hollis Blanchard <hollis@penguinppc.org>
45799 * kern/misc.c (grub_vsprintf): Add `longfmt'. If format string
45800 contains `l' modifier, get a long from va_arg().
45802 2005-06-23 Yoshinori K. Okuji <okuji@enbug.org>
45804 * kern/mm.c (grub_free): If the next free block which is being
45805 merged is the first free block, set the first block to the block
45807 Reported by Vincent Guffens <guffens@inma.ucl.ac.be>.
45809 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45811 * boot/powerpc/ieee1275/cmain.c (cmain): Initialize
45812 `grub_ieee1275_chosen'.
45814 2005-05-08 Hollis Blanchard <hollis@penguinppc.org>
45816 * boot/powerpc/ieee1275/cmain.c (module_info): Remove definition.
45817 (grub_ieee1275_chosen): New variable.
45818 (cmain): Initialize and use `grub_ieee1275_chosen' instead of
45820 * boot/powerpc/ieee1275/crt0.S (init_stack): Remove stack space.
45821 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
45822 Rename first argument to `phandle' for consistency.
45823 (grub_ieee1275_get_property_length): Likewise.
45824 (grub_ieee1275_next_property): Likewise. Change type of first argument
45825 to grub_ieee1275_phandle_t.
45826 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_entry_fn):
45827 Move export next to declaration.
45828 (grub_ieee1275_chosen): New variable.
45829 * include/grub/powerpc/ieee1275/kernel.h (GRUB_IEEE1275_MODULE_BASE):
45830 Correct cosmetic typo.
45831 * kern/powerpc/ieee1275/init.c (grub_set_prefix): Use
45832 `grub_ieee1275_chosen'.
45833 * kern/powerpc/ieee1275/openfw.c (grub_map): Likewise.
45834 * loader/powerpc/ieee1275/linux.c (grub_linux_boot): Likewise.
45835 (grub_rescue_cmd_linux): Set `initrd_addr' to 0.
45836 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_refresh): Use
45837 `grub_ieee1275_chosen'.
45839 2005-05-10 Hollis Blanchard <hollis@penguinppc.org>
45841 * boot/powerpc/ieee1275/cmain.c (cmain): Remove code to parse
45843 * kern/powerpc/ieee1275/init.c (grub_machine_init): Parse
45844 /chosen/bootargs as "variable=value" pairs.
45846 2005-05-08 Vincent Pelletier <subdino2004@yahoo.fr>
45848 * include/grub/misc.h (grub_dprintf): New macro.
45849 (grub_real_dprintf): New prototype.
45850 (grub_strword): Likewise.
45851 (grub_iswordseparator): Likewise.
45852 * kern/misc.c (grub_real_dprintf): New function.
45853 (grub_strword): Likewise.
45854 (grub_iswordseparator): Likewise.
45856 2005-04-30 Hollis Blanchard <hollis@penguinppc.org>
45858 * boot/powerpc/ieee1275/cmain.c: Don't include grub/machine/init.h.
45859 (roundup): Remove macro.
45860 (grub_ieee1275_flags): Make static.
45861 (grub_ieee1275_realmode): Remove.
45862 (grub_ieee1275_test_flag): New function.
45863 (grub_ieee1275_set_flag): Likewise.
45864 (find_options): Rename to `grub_ieee1275_find_options'; update
45865 callers. Set GRUB_IEEE1275_FLAG_REAL_MODE and
45866 GRUB_IEEE1275_FLAG_0_BASED_PARTITIONS.
45867 (cmain): New prototype.
45868 (cmain): Use `grub_ieee1275_set_flag' instead of accessing
45869 `grub_ieee1275_flags' directly.
45870 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Remove
45871 machine/biosdisk.h.
45872 * disk/powerpc/ieee1275/ofdisk.c: Include grub/machine/ofdisk.h.
45873 Don't include grub/machine/init.h.
45874 (grub_ofdisk_open): Call `grub_ieee1275_test_flag'.
45875 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
45877 (grub_ieee1275_realmode): Likewise.
45878 (grub_ieee1275_flag): New enum.
45879 (grub_ieee1275_test_flag): New prototype.
45880 (grub_ieee1275_set_flag): New prototype.
45881 * include/grub/powerpc/ieee1275/init.h: Remove file.
45882 * include/grub/powerpc/ieee1275/ofdisk.h: New file.
45883 * kern/powerpc/ieee1275/init.c: Don't include grub/machine/init.h.
45884 Include grub/machine/console.h. Include grub/machine/ofdisk.h.
45885 (grub_machine_fini): Don't call `grub_ieee1275_release'. Remove
45887 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Call
45888 `grub_ieee1275_test_flag'.
45889 (grub_ieee1275_encode_devname): Likewise.
45891 2005-04-21 Hollis Blanchard <hollis@penguinppc.org>
45893 * include/grub/powerpc/ieee1275/ieee1275.h
45894 (grub_ieee1275_encode_devname): New prototype.
45895 (grub_ieee1275_get_filename): Likewise.
45896 * kern/powerpc/ieee1275/init.c (grub_translate_ieee175_path): New
45898 (grub_set_prefix): Likewise.
45899 (grub_machine_init): Call grub_set_prefix.
45900 * kern/powerpc/ieee1275/openfw.c: Fix typos.
45901 (grub_parse_type): New enum.
45902 (grub_ieee1275_get_devargs): New function.
45903 (grub_ieee1275_get_devname): Likewise.
45904 (grub_ieee1275_parse_args): Likewise.
45905 (grub_ieee1275_get_filename): Likewise.
45906 (grub_ieee1275_encode_devname): Likewise.
45908 2005-03-30 Marco Gerards <metgerards@student.han.nl>
45910 * kern/powerpc/ieee1275/init.c (grub_machine_fini): Don't call
45911 `grub_loader_unset'.
45913 2005-03-26 Hollis Blanchard <hollis@penguinppc.org>
45915 * commands/ieee1275/halt.c (grub_cmd_halt): Call grub_halt
45916 instead of grub_ieee1275_interpret.
45917 (grub_halt_init): New function.
45918 (grub_halt_fini): Likewise.
45919 (GRUB_MOD_INIT): Correct message grammar.
45920 * commands/ieee1275/reboot.c (grub_cmd_reboot): Call grub_reboot
45921 instead of grub_ieee1275_interpret.
45922 (grub_reboot_init): New function.
45923 (grub_reboot_fini): Likewise.
45924 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Replace
45925 commands/i386/pc/halt.c, commands/i386/pc/reboot.c, and
45926 util/i386/pc/misc.c with commands/ieee1275/halt.c,
45927 commands/ieee1275/reboot.c, and util/powerpc/ieee1275/misc.c.
45928 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_fini): New
45930 * include/grub/powerpc/ieee1275/console.h (grub_console_fini):
45932 * include/grub/powerpc/ieee1275/ieee1275.h (grub_reboot): Add
45934 (grub_halt): Likewise.
45935 * include/grub/powerpc/ieee1275/init.h: Remove inaccurate comment.
45936 (cmain): Remove __attribute__((unused)).
45937 * kern/powerpc/ieee1275/init.c (grub_heap_start): New variable.
45938 (grub_heap_len): Likewise.
45939 (grub_machine_fini): New function.
45940 * kern/powerpc/ieee1275/openfw.c (grub_reboot): New function.
45941 (grub_halt): Likewise.
45942 * term/powerpc/ieee1275/ofconsole.c (grub_console_fini): New
45944 * util/powerpc/ieee1275/misc.c: New file.
45946 2005-03-19 Yoshinori K. Okuji <okuji@enbug.org>
45948 * DISTLIST: New file.
45949 * gendistlist.sh: Likewise.
45951 * Makefile.in (COMMON_DISTFILES): Removed.
45952 (BOOT_DISTFILES): Likewise.
45953 (CONF_DISTFILES): Likewise.
45954 (DISK_DISTFILES): Likewise.
45955 (FS_DISTFILES): Likewise.
45956 (INCLUDE_DISTFILES): Likewise.
45957 (KERN_DISTFILES): Likewise.
45958 (LOADER_DISTFILES): Likewise.
45959 (TERM_DISTFILES): Likewise.
45960 (UTIL_DISTFILES): Likewise.
45961 (DISTFILES): Likewise.
45962 (uninstall): Uninstall files in $(pkgdata_DATA).
45963 (DISTLIST): New target.
45964 (distdir): Use the contents of the file DISTLIST to get a list of
45967 2005-03-18 Yoshinori K. Okuji <okuji@enbug.org>
45969 * fs/fat.c (grub_fat_mount): Ignore the 3rd bit of a media
45970 descriptor. This is ported from GRUB Legacy.
45972 * gencmdlist.sh: Added an extra semicolon to make it work with
45973 old sed versions. Reported by Robert Bihlmeyer
45974 <robbe@orcus.priv.at>.
45976 2005-03-08 Yoshinori Okuji <okuji@enbug.org>
45978 Automatic loading of commands is supported.
45980 * normal/main.c (read_command_list): New function.
45981 (grub_normal_execute): Call read_command_list.
45983 * normal/command.c (grub_register_command): Return zero or CMD.
45984 Allocate CMD->NAME from the heap.
45985 Initialize CMD->MODULE_NAME to zero.
45986 Find the same name as well. If the same command is found and it is
45987 a dummy command, overwrite members. If it is not a dummy command,
45989 (grub_unregister_command): Free Q->NAME and Q->MODULE_NAME.
45990 (grub_command_find): If a dummy command is found, load a module
45991 and retry to find a command only once.
45993 * normal/cmdline.c (grub_tab_complete): Call grub_command_find to
45994 make sure that each command is loaded.
45996 * include/grub/normal.h (GRUB_COMMAND_FLAG_NOT_LOADED): New
45998 (struct grub_command): Remove const from the member `name'.
45999 Add a new member `module_name'.
46000 (grub_register_command): Return grub_command_t.
46002 * commands/help.c (grub_cmd_help): Call grub_command_find to make
46003 sure that each command is loaded.
46005 * genmk.rb (PModule::rule): Specify a module name without the
46006 suffix ".mod" to gencmdlist.sh.
46008 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46010 * gencmdlist.sh: New file.
46012 * genmk.rb (PModule::rule): Generate a rule for a command list.
46014 Generate command.lst from $(COMMANDFILES).
46016 * Makefile.in (COMMON_DISTFILES): Added gencmdlist.sh.
46017 (DATA): Added $(pkgdata_DATA).
46018 (install-local): Install files in $(pkgdata_DATA).
46020 2005-03-02 Yoshinori K. Okuji <okuji@enbug.org>
46022 * term/i386/pc/vga.c (debug_command): Removed.
46023 (GRUB_MOD_INIT): Do not register the command "debug".
46025 From Hollis Blanchard:
46026 * commands/configfile.c: New file.
46027 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46028 commands/configfile.c.
46029 (pkgdata_MODULES): Added configfile.mod.
46030 (configfile_mod_SOURCES): New variable.
46031 (configfile_mod_CFLAGS): Likewise.
46032 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Added
46033 commands/configfile.c.
46034 (pkgdata_MODULES): Added configfile.mod.
46035 (configfile_mod_SOURCES): New variable.
46036 (configfile_mod_CFLAGS): Likewise.
46037 * util/grub-emu.c (main): Call grub_configfile_init and
46038 grub_configfile_fini.
46039 * include/grub/normal.h [GRUB_UTIL] (grub_configfile_init): New
46041 [GRUB_UTIL] (grub_configfile_fini): Likewise.
46043 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46045 * normal/arg.c (grub_arg_show_help): Do not show the bug report
46048 * commands/help.c (grub_cmd_help): Do not print newlines after
46049 the last command in print_command_help.
46051 2005-02-27 Yoshinori K. Okuji <okuji@enbug.org>
46053 * commands/default.h: New file.
46054 * commands/timeout.h: Likewise.
46055 * normal/context.c: Likewise.
46057 * util/misc.c: Do not include sys/times.h.
46058 Include sys/time.h and grub/machine/time.h.
46059 (grub_get_rtc): Rewritten with gettimeofday.
46061 * util/grub-emu.c (main): Call grub_default_init and
46062 grub_timeout_init before grub_normal_init, and call
46063 grub_timeout_fini and grub_default_fini after grub_main.
46065 * util/console.c (grub_ncurses_checkkey): Return the read
46068 * normal/menu.c (run_menu): Set MENU->TIMEOUT to -1 once it
46071 * normal/main.c (read_config_file): Push MENU. If this fails,
46072 print an error and wait for a user input.
46073 Print an error only if GRUB_ERRNO is not GRUB_ERR_NONE.
46074 If a menu is empty or an error occurs, pop MENU.
46075 (grub_normal_execute): Pop and free MENU after grub_menu_run
46078 * kern/loader.c (grub_loader_boot): Call grub_machine_fini.
46080 * include/grub/powerpc/ieee1275/time.h [GRUB_UTIL]: Do not
46082 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46084 * include/grub/i386/pc/time.h [GRUB_UTIL]: Do not include
46086 [GRUB_UTIL] (GRUB_TICKS_PER_SECOND): Use the same definition as
46089 * include/grub/normal.h (struct grub_menu_list): New struct.
46090 (grub_menu_list_t): New type.
46091 (struct grub_context): New struct.
46092 (grub_context_t): New type.
46093 (grub_register_command): Got rid of EXPORT_FUNC.
46094 (grub_unregister_command): Likewise.
46095 (grub_context_get): New prototype.
46096 (grub_context_get_current_menu): Likewise.
46097 (grub_context_push_menu): Likewise.
46098 (grub_context_pop_menu): Likewise.
46099 [GRUB_UTIL] (grub_default_init): Likewise.
46100 [GRUB_UTIL] (grub_default_fini): Likewise.
46101 [GRUB_UTIL] (grub_timeout_init): Likewise.
46102 [GRUB_UTIL] (grub_timeout_fini): Likewise.
46104 * conf/i386-pc.rmk (grub_emu_SOURCES): Added commands/default.c,
46105 commands/timeout.c and normal/context.c.
46106 (pkgdata_MODULES): Added default.mod and timeout.mod.
46107 (normal_mod_SOURCES): Added normal/context.c.
46108 (default_mod_SOURCES): New variable.
46109 (default_mod_CFLAGS): Likewise.
46110 (timeout_mod_SOURCES): Likewise.
46111 (timeout_mod_CFLAGS): Likewise.
46112 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Copied from
46114 (pkgdata_MODULES): Added default.mod and timeout.mod.
46115 (normal_mod_SOURCES): Added normal/context.c.
46116 (default_mod_SOURCES): New variable.
46117 (default_mod_CFLAGS): Likewise.
46118 (timeout_mod_SOURCES): Likewise.
46119 (timeout_mod_CFLAGS): Likewise.
46121 * Makefile.in (all-local): Added $(MKFILES).
46123 2005-02-21 Vincent Pelletier <subdino2004@yahoo.fr>
46125 * conf/i386-pc.rmk (grub_setup_SOURCES): Add `partmap/sun.c'.
46126 (grub_emu_SOURCES): Likewise.
46127 (pkgdata_MODULES): Add `sun.mod'.
46128 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46129 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46131 (pkgdata_MODULES): Add `sun.mod'.
46132 (sun_mod_SOURCES, sun_mod_CFLAGS): New variables.
46133 * include/grub/partition.h (grub_sun_partition_map_init): New
46135 (grub_sun_partition_map_fini): Likewise.
46136 * partmap/sun.c: New file.
46137 * util/grub-emu.c (main): Initialize and de-initialize the sun
46138 partitionmap support.
46140 2005-02-19 Yoshinori K. Okuji <okuji@enbug.org>
46142 This implements an Emacs-like menu entry editor.
46144 * normal/menu_entry.c: New file.
46146 * util/console.c (grub_ncurses_putchar): Translate some Unicode
46147 characters to ASCII.
46148 (saved_char): New variable.
46149 (grub_ncurses_checkkey): Rewritten completely.
46150 (grub_ncurses_getkey): Likewise.
46151 (grub_ncurses_init): Call raw instead of cbreak.
46153 * normal/menu.c (print_entry): Do not put a space.
46154 (init_page): Renamed to ...
46155 (grub_menu_init_page): ... this. All callers changed.
46156 (edit_menu_entry): Removed.
46157 (run_menu): Call grub_menu_entry_run instead of edit_menu_entry.
46159 * normal/cmdline.c (grub_cmdline_run): Call grub_setcursor.
46161 * kern/misc.c (grub_vprintf): Call grub_refresh.
46163 * normal/menu.c (DISP_LEFT): Renamed to ...
46164 * include/grub/term.h (GRUB_TERM_DISP_LEFT): ... this.
46165 * normal/menu.c (DISP_UP): Renamed to ...
46166 * include/grub/term.h (GRUB_TERM_DISP_UP): ... this.
46167 * normal/menu.c (DISP_RIGHT): Renamed to ...
46168 * include/grub/term.h (GRUB_TERM_DISP_RIGHT): ... this.
46169 * normal/menu.c (DISP_DOWN): Renamed to ...
46170 * include/grub/term.h (GRUB_TERM_DISP_DOWN): ... this.
46171 * normal/menu.c (DISP_HLINE): Renamed to ...
46172 * include/grub/term.h (GRUB_TERM_DISP_HLINE): ... this.
46173 * normal/menu.c (DISP_VLINE): Renamed to ...
46174 * include/grub/term.h (GRUB_TERM_DISP_VLINE): ... this.
46175 * normal/menu.c (DISP_UL): Renamed to ...
46176 * include/grub/term.h (GRUB_TERM_DISP_UL): ... this.
46177 * normal/menu.c (DISP_UR): Renamed to ...
46178 * include/grub/term.h (GRUB_TERM_DISP_UR): ... this.
46179 * normal/menu.c (DISP_LL): Renamed to ...
46180 * include/grub/term.h (GRUB_TERM_DISP_LL): ... this.
46181 * normal/menu.c (DISP_LR): Renamed to ...
46182 * include/grub/term.h (GRUB_TERM_DISP_LR): ... this.
46183 * normal/menu.c (TERM_WIDTH): Renamed to ...
46184 * include/grub/term.h (GRUB_TERM_WIDTH): ... this.
46185 * normal/menu.c (TERM_HEIGHT): Renamed to ...
46186 * include/grub/term.h (GRUB_TERM_HEIGHT): ... this.
46187 * normal/menu.c (TERM_INFO_HEIGHT): Renamed to ...
46188 * include/grub/term.h (GRUB_TERM_INFO_HEIGHT): ... this.
46189 * normal/menu.c (TERM_MARGIN): Renamed to ...
46190 * include/grub/term.h (GRUB_TERM_MARGIN): ... this.
46191 * normal/menu.c (TERM_SCROLL_WIDTH): Renamed to ...
46192 * include/grub/term.h (GRUB_TERM_SCROLL_WIDTH): ... this.
46193 * normal/menu.c (TERM_TOP_BORDER_Y): Renamed to ...
46194 * include/grub/term.h (GRUB_TERM_TOP_BORDER_Y): ... this.
46195 * normal/menu.c (TERM_LEFT_BORDER_X): Renamed to ...
46196 * include/grub/term.h (GRUB_TERM_LEFT_BORDER_X): ... this.
46197 * normal/menu.c (TERM_BORDER_WIDTH): Renamed to ...
46198 * include/grub/term.h (GRUB_TERM_BORDER_WIDTH): ... this.
46199 * normal/menu.c (TERM_MESSAGE_HEIGHT): Renamed to ...
46200 * include/grub/term.h (GRUB_TERM_MESSAGE_HEIGHT): ... this.
46201 * normal/menu.c (TERM_BORDER_HEIGHT): Renamed to ...
46202 * include/grub/term.h (GRUB_TERM_BORDER_HEIGHT): ... this.
46203 * normal/menu.c (TERM_NUM_ENTRIES): Renamed to ...
46204 * include/grub/term.h (GRUB_TERM_NUM_ENTRIES): ... this.
46205 * normal/menu.c (TERM_FIRST_ENTRY_Y): Renamed to ...
46206 * include/grub/term.h (GRUB_TERM_FIRST_ENTRY_Y): ... this.
46207 * normal/menu.c (TERM_ENTRY_WIDTH): Renamed to ...
46208 * include/grub/term.h (GRUB_TERM_ENTRY_WIDTH): ... this.
46209 * normal/menu.c (TERM_CURSOR_X): Renamed to ...
46210 * include/grub/term.h (GRUB_TERM_CURSOR_X): ... this.
46211 All callers changed.
46213 * include/grub/normal.h: New prototype.
46215 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46216 normal/menu_entry.c.
46217 (normal_mod_SOURCES): Likewise.
46218 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Likewise.
46219 (normal_mod_SOURCES): Likewise.
46221 2005-02-15 Yoshinori K. Okuji <okuji@enbug.org>
46223 * include/grub/normal.h (grub_halt_init): New prototype.
46224 (grub_halt_fini): Likewise.
46225 (grub_reboot_init): Likewise.
46226 (grub_reboot_fini): Likewise.
46228 * util/grub-emu.c: Include signal.h.
46229 (main_env): New global variable.
46230 (grub_machine_init): Ignore SIGINT. Otherwise grub-emu cannot
46232 (grub_machine_fini): New function.
46233 (main): Call grub_halt_init and grub_reboot_init before
46234 grub_main, and grub_reboot_fini and grub_halt_fini after it.
46235 Call setjmp with MAIN_ENV to go back afterwards.
46236 Call grub_machine_fini right before return.
46238 * include/grub/util/misc.h: Include setjmp.h.
46239 (main_env): New prototype.
46241 * include/grub/kernel.h (grub_machine_fini): New prototype.
46242 * include/grub/i386/pc/biosdisk.h (grub_biosdisk_fini): Likewise.
46243 * include/grub/i386/pc/console.h (grub_console_fini): Likewise.
46245 * disk/i386/pc/biosdisk.c (grub_biosdisk_fini): New function.
46246 * kern/i386/pc/init.c (grub_machine_fini): Likewise.
46247 * term/i386/pc/console.c (grub_console_fini): Likewise.
46249 * util/i386/pc/misc.c: New file.
46251 * conf/i386-pc.rmk (grub_emu_SOURCES): Added
46252 util/i386/pc/misc.c, commands/i386/pc/halt.c and
46253 commands/i386/pc/reboot.c.
46255 2005-02-14 Guillem Jover <guillem@hadrons.org>
46257 * include/grub/dl.h (grub_dl_check_header): New prototype.
46258 (grub_arch_dl_check_header): Change return type to grub_err_t,
46259 remove size parameter and export function. Update all callers.
46260 * kern/dl.c (grub_dl_check_header): New function.
46261 (grub_dl_load_core): Use `grub_dl_check_header' instead of
46262 `grub_arch_dl_check_header'. Check ELF type. Check if sections
46263 are inside the core.
46264 * kern/i386/dl.c (grub_arch_dl_check_header): Remove arch
46265 independent ELF header checks.
46266 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46267 * loader/i386/pc/multiboot.c (grub_rescue_cmd_multiboot): Use
46268 `grub_dl_check_header' instead of explicit checks. Check for the
46270 * loader/powerpc/ieee1275/linux.c (grub_rescue_cmd_linux): Use
46271 `grub_dl_check_header' instead of explicit checks. Remove arch
46272 specific ELF header checks.
46274 * util/grub-emu.c (grub_arch_dl_check_header): Remove the
46277 2005-02-13 Hollis Blanchard <hollis@penguinppc.org>
46279 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add ls.mod.
46280 * include/grub/powerpc/libgcc.h (__mulsf3): New prototype.
46282 2005-02-12 Hollis Blanchard <hollis@penguinppc.org>
46284 * kern/partition.c (grub_partition_probe): Clear `grub_errno' and
46285 return 0 if `grub_errno' is GRUB_ERR_BAD_PART_TABLE.
46286 (part_map_iterate): Clear `grub_errno' and return 0 if
46287 `partmap->iterate' returns GRUB_ERR_BAD_PART_TABLE.
46288 * partmap/amiga.c (amiga_partition_map_iterate): Return
46289 GRUB_ERR_BAD_PART_TABLE if no partition map magic is found.
46290 * partmap/apple.c (apple_partition_map_iterate): Likewise.
46292 2005-02-01 Guillem Jover <guillem@hadrons.org>
46294 * loader/i386/pc/multiboot_normal.c (GRUB_MOD_INIT): Fix module
46297 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46299 * include/grub/powerpc/ieee1275/loader.h (grub_load_linux):
46301 (grub_rescue_cmd_linux): New prototype.
46302 (grub_rescue_cmd_initrd): Likewise.
46303 * powerpc/ieee1275/linux.c (grub_linux_boot): Remove struct
46305 (grub_linux_release_mem): Release the memory for the initrd.
46306 (grub_load_linux): Renamed from this...
46307 (grub_rescue_cmd_linux): ...To this. Changed all callers.
46308 Changed `entry' not to be static. Loop over memory regions to
46309 find another one when the default fails.
46310 (grub_rescue_cmd_initrd): New function.
46311 (grub_linux_init): Remove function.
46312 (grub_linux_fini): Likewise.
46313 (GRUB_MOD_INIT): Register `initrd'.
46314 (GRUB_MOD_FINI): Unregister `initrd'.
46315 * powerpc/ieee1275/linux_normal.c (grub_linux_normal_init):
46317 (grub_linux_normal_fini): Likewise.
46318 (GRUB_MOD_INIT): Register `initrd'.
46319 (GRUB_MOD_FINI): Unregister `initrd'.
46321 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46323 * commands/help.c: New file.
46324 * normal/arg.c (show_help): Renamed to...
46325 (grub_arg_show_help): ... this.
46326 * commands/i386/pc/halt.c: New file.
46327 * commands/i386/pc/reboot.c: Likewise.
46328 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `commands/help.c'.
46329 (pkgdata_MODULES): Add `reboot.mod', `halt.mod' and `help.mod'.
46330 (help_mod_SOURCES, help_mod_CFLAGS, reboot_mod_SOURCES)
46331 (reboot_mod_CFLAGS, halt_mod_SOURCES, halt_mod_CFLAGS): New
46333 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46335 (pkgdata_MODULES): Add `help.mod'.
46336 (help_mod_SOURCES, help_mod_CFLAGS): New variables.
46337 * grub/i386/pc/init.h (grub_reboot): New prototype.
46338 (grub_halt): Likewise.
46339 * include/grub/normal.h (grub_arg_show_help): New prototype.
46340 (grub_help_init): Likewise.
46341 (grub_help_fini): Likewise.
46342 * util/grub-emu.c (main): Initialize and deinitialize the help
46345 * normal/cmdline.c (grub_cmdline_get): Doc fix.
46347 * normal/command.c (grub_command_init): Fixed the description of
46348 the `set' and `unset' commands.
46350 2005-01-31 Marco Gerards <metgerards@student.han.nl>
46352 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_interpret): New
46354 * commands/ieee1275/halt.c: New file.
46355 * commands/ieee1275/reboot.c: Likewise.
46356 * commands/ieee1275/suspend.c (grub_cmd_suspend): Use
46357 `__attribute__ ((unused))'. Some GCS related fixed.
46358 (grub_suspend_init) [GRUB_UTIL]: Function removed.
46359 (grub_suspend_fini): Likewise.
46360 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add `reboot.mod'
46362 (reboot_mod_SOURCES, reboot_mod_CFLAGS, halt_mod_SOURCES)
46363 (halt_mod_CFLAGS): New variables.
46364 * include/grub/powerpc/ieee1275/ieee1275.h
46365 (grub_ieee1275_interpret): New prototype.
46367 2005-01-29 Yoshinori K. Okuji <okuji@enbug.org>
46369 * include/grub/misc.h (memmove): New prototype.
46370 (memcpy): Likewise.
46372 2005-01-22 Hollis Blanchard <hollis@penguinppc.org>
46374 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Don't initialize
46375 `devpath' to 0. Use `name' instead of `devpath' with `grub_strndup'.
46377 2005-01-22 Marco Gerards <metgerards@student.han.nl>
46379 * kern/misc.c (grub_strndup): Function rewritten.
46381 2005-01-22 Vincent Pelletier <subdino2004@yahoo.fr>
46383 * normal/menu.c (TERM_WIDTH): Macro redefined.
46384 (TERM_TOP_BORDER_Y): Likewise.
46385 (draw_border): Replaced while-loop by a for-loop. Make the number
46386 of lines consistent with the number of lines displayed in
46387 print_entries. Added a margin below the rectangle.
46388 (print_entry): Make the entry fit in the rectangle.
46389 (print_entries): Display the scroll arrows next to the right
46392 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46394 * fs/minix.c (grub_minix_find_file): Reserve more space for
46395 `fpath' so the \0 can be stored. Use `grub_strcpy' instead of
46396 `grub_strncpy' to copy `path' into it.
46398 2005-01-21 Marco Gerards <metgerards@student.han.nl>
46400 Add the loopback device, a device via which files can be accessed
46403 * conf/i386-pc.rmk (grub_emu_SOURCES): Add `disk/loopback.c'.
46404 (pkgdata_MODULES): Add loopback.mod.
46405 (loopback_mod_SOURCES): New variable.
46406 (loopback_mod_CFLAGS): Likewise.
46407 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add
46409 (pkgdata_MODULES): Add loopback.mod.
46410 (loopback_mod_SOURCES): New variable.
46411 (loopback_mod_CFLAGS): Likewise.
46412 * disk/loopback.c: new file.
46413 * include/grub/normal.h (grub_loop_init): New prototype.
46414 (grub_loop_fini): New prototype.
46415 * util/grub-emu.c (main): Initialize and de-initialize loopback
46417 * include/grub/disk.h (grub_disk_dev_id): Add
46418 `GRUB_DISK_DEVICE_LOOPBACK_ID'.
46420 2005-01-20 Hollis Blanchard <hollis@penguinppc.org>
46422 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_enter): New
46424 * conf/powerpc-ieee1275.rmk (pkgdata_MODULES): Add suspend.mod.
46425 (suspend_mod_SOURCES): New variable.
46426 (suspend_mod_CFLAGS): Likewise.
46427 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_enter):
46429 * commands/ieee1275/suspend.c: New file.
46431 2005-01-20 Timothy Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
46433 * include/grub/dl.h (GRUB_MOD_INIT): Changed `__attribute__
46434 ((unused))' to `__attribute__ ((used))'.
46435 (GRUB_MOD_FINI): Likewise.
46436 * kern/dl.c (grub_dl_load_file): Fix null pointer dereference.
46437 * genmk.rb (PModule): Assign space to common symbols when linking
46440 2005-01-20 Marco Gerards <metgerards@student.han.nl>
46442 * include/grub/mm.h (grub_mm_init_region): Change the type of the
46443 `unsigned' arguments to `grub_size_t'.
46444 (grub_malloc): Likewise.
46445 (grub_realloc): Likewise.
46446 (grub_memalign): Likewise.
46447 * kern/i386/dl.c (grub_arch_dl_check_header): Likewise.
46448 * kern/powerpc/dl.c (grub_arch_dl_check_header): Likewise.
46449 * util/misc.c (grub_malloc): Likewise.
46450 (grub_realloc): Likewise.
46451 * kern/mm.c (get_header_from_pointer): Change the casts to
46452 `unsigned' into a cast to `grub_size_t'.
46454 * fs/fshelp.c (grub_fshelp_find_file): The `oldnode' should always
46455 point to `currnode' when `currnode' is changed.
46457 * util/grub-emu.c (main): Initialize `progname'. Reported by Nico
46458 Schottelius <nico-linux@schottelius.org>.
46460 2005-01-09 Hollis Blanchard <hollis@penguinppc.org>
46462 * util/powerpc/ieee1275/grub-mkimage.c: Include <string.h>.
46463 (note_path): Remove variable.
46464 (GRUB_IEEE1275_NOTE_NAME): New macro.
46465 (GRUB_IEEE1275_NOTE_TYPE): Likewise.
46466 (grub_ieee1275_note_hdr): New structure.
46467 (grub_ieee1275_note_desc): Likewise.
46468 (grub_ieee1275_note): Likewise.
46469 (load_note): Remove `dir' argument. All callers updated. Remove
46470 `note_img' and `path'. Do not load a file from `note_path'.
46471 Initialize a struct grub_ieee1275_note and write that to `out'.
46472 Use GRUB_IEEE1275_MODULE_BASE instead of MODULE_BASE.
46474 2005-01-05 Marco Gerards <metgerards@student.han.nl>
46476 * util/misc.c (grub_util_read_image): Revert last change. It
46477 called `grub_util_read_at', which seeks from the beginning of the
46480 2005-01-04 Hollis Blanchard <hollis@penguinppc.org>
46482 * TODO: Add note about endianness in grub-mkimage.
46483 * boot/powerpc/ieee1275/crt0.S (note): Remove unused .note
46485 * conf/powerpc-ieee1275.rmk (bin_UTILITIES): Add grub-mkimage.
46486 (grub_mkimage_SOURCES): New target.
46487 * include/grub/kernel.h (grub_start_addr): Remove variable.
46488 (grub_end_addr): Likewise.
46489 (grub_total_module_size): Likewise.
46490 (grub_kernel_image_size): Likewise.
46491 (GRUB_MODULE_MAGIC): New constant.
46492 (grub_module_info): New structure.
46493 (grub_arch_modules_addr): New prototype.
46494 (grub_get_end_addr): Remove prototype.
46495 * include/grub/i386/pc/kernel.h (grub_end_addr): New prototype.
46496 * include/grub/powerpc/ieee1275/kernel.h: New file.
46497 * include/grub/util/misc.h (grub_util_get_fp_size): New
46499 (grub_util_read_at): Likewise.
46500 (grub_util_write_image_at): Likewise.
46501 * kern/main.c (grub_get_end_addr): Remove function.
46502 (grub_load_modules): Call grub_arch_modules_addr instead of using
46503 grub_end_addr. Look for a grub_module_info struct in memory. Use
46504 the grub_module_info fields instead of calling grub_get_end_addr
46505 as loop conditions. Move grub_add_unused_region code here.
46506 (grub_add_unused_region): Remove function.
46507 * kern/i386/pc/init.c: Include grub/cache.h.
46508 (grub_machine_init): Remove call to grub_get_end_addr. Remove
46509 one call to add_mem_region.
46510 (grub_arch_modules_addr): New function.
46511 * kern/powerpc/ieee1275/init.c (grub_end_addr): Remove variable.
46512 (grub_total_module_size): Likewise.
46513 Include grub/machine/kernel.h.
46514 (grub_arch_modules_addr): New function.
46515 * util/grub-emu.c (grub_end_addr): Remove variable.
46516 (grub_total_module_size): Likewise.
46517 (grub_arch_modules_addr): New function.
46518 * util/misc.c: Include unistd.h.
46519 (grub_util_get_fp_size): New function.
46520 (grub_util_read_at): Likewise.
46521 (grub_util_write_image_at): Likewise.
46522 (grub_util_read_image): Call grub_util_read_at.
46523 (grub_util_write_image): Call grub_util_write_image_at.
46524 * util/i386/pc/grub-mkimage.c (generate_image): Allocate
46525 additional memory in kernel_img for a struct grub_module_info.
46526 Fill in that grub_module_info.
46527 * util/powerpc/ieee1275/grub-mkimage.c: New file.
46529 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46531 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_milliseconds):
46533 * include/grub/powerpc/ieee1275/ieee1275.h
46534 (grub_ieee1275_milliseconds): New prototype.
46535 * include/grub/powerpc/ieee1275/time.h (GRUB_TICKS_PER_SECOND):
46537 * kern/powerpc/ieee1275/init.c (grub_get_rtc): Call
46538 grub_ieee1275_milliseconds.
46540 2005-01-03 Hollis Blanchard <hollis@penguinppc.org>
46542 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_realmode): New
46544 (find_options): New function.
46545 (cmain): Call find_options.
46546 * include/grub/powerpc/ieee1275/ieee1275.h
46547 (grub_ieee1275_realmode): New extern variable.
46548 * kern/powerpc/ieee1275/openfw.c (grub_claimmap): Only call
46549 grub_map if grub_ieee1275_realmode is false.
46551 2004-12-29 Marco Gerards <metgerards@student.han.nl>
46553 * normal/cmdline.c (grub_cmdline_get): Redone logic so no empty
46554 lines are inserted and make it work like readline. Reported by
46555 Vincent Pelletier <subdino2004@yahoo.fr>.
46557 2004-12-28 Marco Gerards <metgerards@student.han.nl>
46559 * boot/powerpc/ieee1275/crt0.S (_start): Don't set up the stack.
46561 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCE): Remove
46562 `kern/powerpc/cache.S'.
46564 2004-12-27 Marco Gerards <metgerards@student.han.nl>
46566 * genmk.rb: Handle the `Program' class in the main loop. Written
46567 by Johan Rydberg <jrydberg@gnu.org>.
46568 (Program): New class.
46569 (programs): New variable.
46570 * boot/powerpc/ieee1275/cmain.c: Include <grub/machine/ieee1275.h>
46571 instead of "grub/machine/ieee1275.h". Include <grub/kernel.h>
46572 instead of "grub/kernel.h". Include <grub/machine/init.h>.
46573 (help_arch): Function removed.
46574 * conf/powerpc-ieee1275.rmk (grubof_HEADERS): Add
46575 `powerpc/libgcc.h' and `loader.h'.
46576 (pkgdata_PROGRAMS): New variable.
46577 (sbin_UTILITIES): Variable removed.
46578 (grub_emu_SOURCES): Added kern/powerpc/cache.S.
46579 (grubof_SOURCES): Variable re-defined so it only includes the
46580 core functionality.
46581 (grubof_CFLAGS): Remove `-DGRUBOF'.
46582 (pkgdata_MODULES, fshelp_mod_SOURCES, fshelp_mod_CFLAGS,
46583 (fat_mod_SOURCES, fat_mod_CFLAGS, ext2_mod_SOURCES)
46584 (ext2_mod_CFLAGS, ufs_mod_SOURCES, ufs_mod_CFLAGS)
46585 (minix_mod_SOURCES, minix_mod_CFLAGS, hfs_mod_SOURCES)
46586 (hfs_mod_CFLAGS, jfs_mod_SOURCES, jfs_mod_CFLAGS)
46587 (iso9660_mod_SOURCES, iso9660_mod_CFLAGS, _linux_mod_SOURCES)
46588 (_linux_mod_CFLAGS, linux_mod_SOURCES, linux_mod_CFLAGS)
46589 (normal_mod_SOURCES, normal_mod_CFLAGS, normal_mod_ASFLAGS)
46590 (hello_mod_SOURCES, hello_mod_CFLAGS, boot_mod_SOURCES)
46591 (boot_mod_CFLAGS, terminal_mod_SOURCES, terminal_mod_CFLAGS)
46592 (ls_mod_SOURCES, ls_mod_CFLAGS, cmp_mod_SOURCES, cmp_mod_CFLAGS)
46593 (cat_mod_SOURCES, cat_mod_CFLAGS, font_mod_SOURCES)
46594 (font_mod_CFLAGS, amiga_mod_SOURCES, amiga_mod_CFLAGS)
46595 (apple_mod_SOURCES, apple_mod_CFLAGS, pc_mod_SOURCES)
46596 (pc_mod_CFLAGS): New variables.
46597 * disk/powerpc/ieee1275/ofdisk.c: Include <grub/machine/init.h>.
46598 (grub_ofdisk_iterate): Add a prototype for `dev_iterate'.
46599 * include/grub/dl.h (grub_arch_dl_sync_caches): New prototype.
46600 * include/grub/loader.h (grub_os_area_addr, grub_os_area_size):
46602 * include/grub/i386/pc/init.h (grub_os_area_addr)
46603 (rub_os_area_size): ... to here.
46604 * include/grub/powerpc/ieee1275/ieee1275.h
46605 (grub_ieee1275_entry_fn): Export symbol.
46606 * include/grub/powerpc/ieee1275/init.h: New file.
46607 * include/grub/powerpc/libgcc.h: Likewise.
46608 * include/grub/cache.h: Likewise.
46609 * kern/powerpc/cache.S: Likewise. Written by Hollis Blanchard
46610 <hollis@penguinppc.org>.
46611 * kern/dl.c: Include <grub/cache.h>.
46612 (grub_dl_flush_cache): New function.
46613 (grub_dl_load_core): Call `grub_dl_flush_cache' to flush the cache
46615 * kern/powerpc/ieee1275/init.c (grub_ofdisk_init)
46616 (grub_console_init): Removed prototypes.
46617 (grub_machine_init): Don't initialize the modules anymore.
46618 * kern/powerpc/ieee1275/openfw.c (grub_map): Make the function
46620 * include/grub/powerpc/types.h (GRUB_HOST_WORDS_LITTLEENDIAN):
46621 Macro undef removed.
46622 (GRUB_HOST_WORDS_BIGENDIAN): New macro.
46623 * kern/powerpc/dl.c (grub_arch_dl_relocate_symbols): Add
46624 relocation `R_PPC_REL32'. Return an error when the relocation is
46626 * Makefile.in (DATA): Add `$(pkgdata_PROGRAMS)'.
46627 * kern/i386/pc/init.c (grub_arch_sync_caches): New function.
46628 * util/misc.c (grub_arch_sync_caches): Likewise.
46630 2004-12-19 Marco Gerards <metgerards@student.han.nl>
46632 * conf/powerpc-ieee1275.rmk (MOSTLYCLEANFILES): Remove
46633 `symlist.c', add `grubof_symlist.c'.
46634 (symlist.c): Variable removed.
46635 (grubof_HEADERS): Variable added.
46636 (grubof_symlist.c): New target.
46637 (kernel_syms.lst): Use `grubof_HEADERS' instead of
46638 `kernel_img_HEADERS'.
46639 (grubof_SOURCES): Add `kern/powerpc/dl.c' and `grubof_symlist.c'.
46640 * kern/powerpc/dl.c: New file.
46641 * kern/powerpc/ieee1275/init.c (grub_arch_dl_check_header):
46643 (grub_arch_dl_relocate_symbols): Likewise.
46644 (grub_register_exported_symbols): Likewise.
46646 2004-12-13 Marco Gerards <metgerards@student.han.nl>
46648 * fs/ext2.c (grub_ext2_open): Don't use data after freeing it.
46649 (grub_ext2_dir): Likewise. Don't return in case of an error, jump
46650 to fail instead. Reported by Vincent Pelletier
46651 <subdino2004@yahoo.fr>.
46653 * fs/fshelp.c (grub_fshelp_find_file): Don't free `oldnode' when
46654 it is not allocated. Reported by Vincent Pelletier
46655 <subdino2004@yahoo.fr>.
46657 * normal/cmdline.c (grub_tab_complete): Add a blank line to the
46658 output so the output looks better.
46660 2004-12-04 Marco Gerards <metgerards@student.han.nl>
46662 Modulize the partition map support and add support for the amiga
46665 * commands/ls.c: Include <grub/partition.h> instead of
46666 <grub/machine/partition.h>.
46667 * kern/disk.c: Likewise.
46668 * kern/rescue.c: Likewise.
46669 * loader/i386/pc/chainloader.c: Likewise.
46670 * normal/cmdline.c: Likewise.
46671 * kern/powerpc/ieee1275/init.c: Likewise.
46672 (grub_machine_init): Call `grub_pc_partition_map_init',
46673 `grub_amiga_partition_map_init' and
46674 `grub_apple_partition_map_init'.
46675 * conf/i386-pc.rmk (kernel_img_SOURCES): Remove
46676 `disk/i386/pc/partition.c'. Add `kern/partition.c'.
46677 (kernel_img_HEADERS): Remove `machine/partition.h'. Add
46678 `partition.h' and `pc_partition.h'.
46679 (grub_setup_SOURCES): Remove
46680 `disk/i386/pc/partition.c'. Add `kern/partition.c',
46681 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46682 (grub_emu_SOURCES): Likewise.
46683 (pkgdata_MODULES): Add `amiga.mod', `apple.mod' and `pc.mod'.
46684 (amiga_mod_SOURCES, amiga_mod_CFLAGS, apple_mod_SOURCES)
46685 (apple_mod_CFLAGS, pc_mod_SOURCES, pc_mod_CFLAGS): New variables.
46686 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46687 `disk/powerpc/ieee1275/partition.c'. Add `kern/partition.c',
46688 `partmap/amiga.c', `partmap/apple.c' and `partmap/pc.c'.
46689 (grubof_SOURCES): Likewise.
46690 * disk/i386/pc/partition.c: File removed.
46691 * disk/powerpc/ieee1275/partition.c: Likewise.
46692 * include/grub/powerpc/ieee1275/partition.h: Likewise.
46693 * include/grub/i386/pc/partition.h: Likewise.
46694 * kern/partition.c: New file.
46695 * partmap/amiga.c: Likewise.
46696 * partmap/apple.c: Likewise.
46697 * partmap/pc.c: Likewise.
46698 * include/grub/partition.h: Likewise..
46699 * include/grub/pc_partition.h: Likewise.
46700 * util/grub-emu.c: Include <grub/partition.h> instead of
46701 <grub/machine/partition.h>.
46702 (main): Call `grub_pc_partition_map_init',
46703 `grub_amiga_partition_map_init' and
46704 `grub_apple_partition_map_init' and deinitialize afterwards.
46705 * util/i386/pc/biosdisk.c: Include `#include
46706 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46707 `<grub/machine/partition.h>'.
46708 * util/i386/pc/grub-setup.c: Likewise.
46709 * util/i386/pc/biosdisk.c: Likewise.
46710 (grub_util_biosdisk_get_grub_dev): Only access the PC specific
46711 partition information in case of a PC partition.
46712 * util/i386/pc/grub-setup.c: Include `#include
46713 <grub/partition.h>' and `include <grub/pc_partition.h>' instead of
46714 `<grub/machine/partition.h>'.
46715 (setup): Only access the PC specific partition information in case
46718 2004-11-17 Hollis Blanchard <hollis@penguinppc.org>
46720 * kern/powerpc/ieee1275/init.c (grub_setjmp): Remove function.
46721 (grub_longjmp): Likewise.
46722 * include/grub/powerpc/setjmp.h (grub_jmp_buf): Set array size to
46724 * normal/powerpc/setjmp.S: New file.
46725 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
46726 `normal/powerpc/setjmp.S'.
46727 (grubof_CFLAGS): Add `-DGRUBOF'.
46728 * include/grub/setjmp.h [GRUB_UTIL]: Changed condition to
46729 [GRUB_UTIL && !GRUBOF].
46731 2004-11-16 Marco Gerards <metgerards@student.han.nl>
46733 * kern/powerpc/ieee1275/openfw.c (grub_devalias_iterate): Skip any
46734 property named `name'. Correctly handle the error returned by
46735 `grub_ieee1275_finddevice' if a device can not be opened.
46737 2004-11-02 Hollis Blanchard <hollis@penguinppc.org>
46739 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_readkey): Test
46740 `actual' for negativity.
46741 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Remove
46744 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46746 * term/i386/pc/vga.c (VGA_HEIGHT): Changed to 350.
46747 (PAGE_OFFSET): New macro.
46748 (CRTC_ADDR_PORT): Likewise.
46749 (CRTC_DATA_PORT): Likewise.
46750 (START_ADDR_HIGH_REGISTER): Likewise.
46751 (START_ADDR_LOW_REGISTER): Likewise.
46752 (GRAPHICS_ADDR_PORT): Likewise.
46753 (GRAPHICS_DATA_PORT): Likewise.
46754 (READ_MAP_REGISTER): Likewise.
46755 (INPUT_STATUS1_REGISTER): Likewise.
46756 (INPUT_STATUS1_VERTR_BIT): Likewise.
46757 (page): New variable.
46758 (wait_vretrace): New function.
46759 (set_read_map): Likewise.
46760 (set_start_address): Likewise.
46761 (grub_vga_init): Use mode 0x10 instead of mode 0x12. Switch to
46763 (check_vga_mem): Take the page into account.
46764 (write_char): Likewise.
46765 (write_cursor): Likewise.
46766 (scroll_up): Likewise. Copy the page to the page that is not
46767 shown and switch between both pages.
46768 (grub_vga_putchar): Fix off by one error.
46769 (grub_vga_cls): Wait for the vertical retrace. Take the page into
46772 2004-11-01 Marco Gerards <metgerards@student.han.nl>
46774 Add support for iso9660 (including rockridge).
46776 * conf/i386-pc.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46777 (iso9660_mod_SOURCES): New variable.
46778 (iso9660_mod_CFLAGS): Likewise.
46779 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/iso9660.c.
46780 * include/grub/fs.h (grub_iso9660_init): New prototype.
46781 * util/grub-emu.c (main): Call `grub_iso9660_init'.
46782 * fs/iso9660.c: New file.
46784 * include/grub/misc.h (grub_strncat): New prototype.
46785 * kern/misc.c (grub_strncat): New function.
46787 * fs/hfs.c (grub_hfs_mount): Translate the error
46788 `GRUB_ERR_OUT_OF_RANGE' to `GRUB_ERR_BAD_FS'.
46789 * fs/jfs.c (grub_jfs_mount): Likewise.
46790 * fs/ufs.c (grub_ufs_mount): Likewise.
46792 2004-10-28 Hollis Blanchard <hollis@penguinppc.org>
46794 * boot/powerpc/ieee1275/cmain.c (cmain): Remove asm statements
46795 which initialized BAT registers.
46796 * boot/powerpc/ieee1275/ieee1275.c (IEEE1275_CALL_ENTRY_FN,
46797 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46799 * include/grub/powerpc/ieee1275/ieee1275.h (IEEE1275_CALL_ENTRY_FN,
46800 grub_ieee1275_common_hdr, INIT_IEEE1275_COMMON):
46802 * kern/powerpc/ieee1275/openfw.c (grub_map): New function.
46803 (grub_mapclaim): Likewise.
46804 * loader/powerpc/ieee1275/linux.c (grub_load_linux): Use
46805 grub_mapclaim instead of grub_ieee1275_claim. Assign linux_addr by
46808 2004-10-19 Hollis Blanchard <hollis@penguinppc.org>
46810 * conf/powerpc-ieee1275.rmk (COMMON_ASFLAGS): Remove -fno-builtin.
46811 (COMMON_CFLAGS): Remove -fno-builtin and -D__ASSEMBLY__. Add
46812 -ffreestanding and -msoft-float.
46814 2004-10-15 Hollis Blanchard <hollis@penguinppc.org>
46816 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_open): Do not
46817 append ":0" to devpath if the GRUB_IEEE1275_NO_PARTITION_0 flag is
46818 set in grub_ieee1275_flags.
46820 2004-10-14 Hollis Blanchard <hollis@penguinppc.org>
46822 * include/grub/powerpc/ieee1275/ieee1275.h (abort): Add function
46824 * kern/powerpc/ieee1275/init.c (grub_machine_init): Call
46825 grub_console_init first.
46826 Change the memory range used for grub_ieee1275_claim and
46827 grub_mm_init_region.
46828 Print an error message if the claim fails.
46829 Include <grub/misc.h>.
46831 2004-10-13 Hollis Blanchard <hollis@penguinppc.org>
46833 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_iterate):
46834 Call grub_children_iterate for device nodes of type `scsi',
46836 (grub_ofdisk_open): Remove manual device alias resolution.
46837 Fix memory leak when device cannot be opened.
46838 * include/grub/powerpc/ieee1275/ieee1275.h
46839 (grub_children_iterate): New prototype.
46840 * kern/powerpc/ieee1275/openfw.c (grub_children_iterate):
46842 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46843 Return -1 if args.size was -1.
46845 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46847 * boot/powerpc/ieee1275/cmain.c (grub_ieee1275_flags): New global.
46848 (cmain): Accept 3 parameters. Test for 0xdeadbeef, indicating Old
46849 World Macintosh. If Old Wold, set flag in grub_ieee1275_flags; claim
46850 Open Firmware's memory for it; claim memory from _start to _end.
46851 * boot/powerpc/ieee1275/crt0.S (__bss_start): New extern.
46852 (_end): New extern.
46853 (_start): Zero BSS from __bss_start to _end.
46854 * include/grub/powerpc/ieee1275/ieee1275.h (grub_ieee1275_flags):
46856 (GRUB_IEEE1275_NO_PARTITION_0): New #define.
46858 2004-10-11 Hollis Blanchard <hollis@penguinppc.org>
46860 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): Return
46861 -1 if args.base was -1.
46863 2004-10-08 Hollis Blanchard <hollis@penguinppc.org>
46865 * term/powerpc/ieee1275/ieee1275.c (grub_ofconsole_cls): Use an ANSI
46866 escape sequence instead of a literal ^L. Also call
46867 grub_ofconsole_gotoxy.
46869 2004-10-03 Hollis Blanchard <hollis@penguinppc.org>
46871 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_claim): change
46872 void * arguments to grub_addr_t. All callers updated. Also make
46873 the `result' argument optional.
46874 (grub_ieee1275_release): change void * arguments to grub_addr_t.
46875 All callers updated.
46877 2004-09-22 Hollis Blanchard <hollis@penguinppc.org>
46879 * commands/ls.c (grub_ls_list_files): Use the string following the
46880 initial ')', if present, as the filesystem path.
46881 * kern/rescue.c (grub_rescue_cmd_ls): Likewise.
46883 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): List crt0.S first.
46885 2004-09-18 Yoshinori K. Okuji <okuji@enbug.org>
46887 Make the source code of the menu interface more readable.
46889 * normal/menu.c: Include grub/mm.h.
46890 (TERM_WIDTH): New macro.
46891 (TERM_HEIGHT): Likewise.
46892 (TERM_INFO_HEIGHT): Likewise.
46893 (TERM_MARGIN): Likewise.
46894 (TERM_SCROLL_WIDTH): Likewise.
46895 (TERM_TOP_BORDER_Y): Likewise.
46896 (TERM_LEFT_BORDER_X): Likewise.
46897 (TERM_BORDER_WIDTH): Likewise.
46898 (TERM_MESSAGE_HEIGHT): Likewise.
46899 (TERM_BORDER_HEIGHT): Likewise.
46900 (TERM_NUM_ENTRIES): Likewise.
46901 (TERM_FIRST_ENTRY_Y): Likewise.
46902 (TERM_ENTRY_WIDTH): Likewise.
46903 (TERM_CURSOR_X): Likewise.
46904 (draw_border): Use macros instead of magic numbers.
46905 (print_entry): Likewise.
46906 (print_entries): Likewise.
46907 (run_menu): Likewise. Also, handle the key 'e'.
46908 (run_menu_entry): Ignore empty command lines.
46909 (print_message): Added a new argument EDIT. If EDIT is true,
46910 print a different message.
46911 (init_page): Likewise.
46912 (edit_menu_entry): New function. Not implemented yet.
46914 2004-09-17 Marco Gerards <metgerards@student.han.nl>
46916 Add `linux.mod' and `multiboot.mod' so linux and multiboot kernels
46917 can be loaded from normal mode.
46919 * conf/i386-pc.rmk (pkgdata_MODULES): Add `linux.mod' and
46921 (linux_mod_SOURCES, linux_mod_CFLAGS, multiboot_mod_SOURCES)
46922 (multiboot_mod_CFLAGS): New variables.
46923 * loader/i386/pc/linux_normal.c: New file.
46924 * loader/i386/pc/multiboot_normal.c: Likewise.
46926 * loader/i386/pc/linux.c (grub_rescue_cmd_initrd): Don't use the
46927 attribute `unused'.
46929 * fs/ext2.c (grub_ext2_iterate_dir): Fix typos in inode type. Use
46930 `fdiro' to read the mode information from instead of `diro'.
46932 * fs/fshelp.c (grub_fshelp_find_file): Set type to foundtype after
46933 looking up a symlink.
46935 * include/grub/normal.h (GRUB_COMMAND_FLAG_NO_ARG_PARSE): New
46937 * normal/command.c (grub_command_execute): Don't parse the
46938 arguments when `GRUB_COMMAND_FLAG_NO_ARG_PARSE' is set in the
46939 flags of the command.
46941 * normal/menu.c (grub_menu_run): Fix typo.
46943 2004-09-14 Hollis Blanchard <hollis@penguinppc.org>
46945 * kern/powerpc/ieee1275/init.c (abort): Trap into Open Firmware.
46947 * term/powerpc/ieee1275/ofconsole.c (grub_ofconsole_gotoxy): Use
46948 `y + 1' instead of `y - 1'.
46950 * conf/powerpc-ieee1275.rmk (grubof_LDFLAGS): Add `-N' and `-S'.
46952 2004-09-14 Yoshinori K. Okuji <okuji@enbug.org>
46954 From Hollis Blanchard <hollis@penguinppc.org>:
46955 * kern/misc.c (memmove): New alias for grub_memmove.
46956 (memcmp): New alias for grub_memcmp.
46957 (memset): New alias for grub_memset.
46958 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_get_property):
46959 Change "int handle" to "grub_ieee1275_phandle_t handle".
46960 * include/grub/powerpc/ieee1275/ieee1275.h
46961 (grub_ieee1275_get_property): Likewise.
46963 2004-09-12 Tomas Ebenlendr <ebik@ucw.cz>
46965 Added normal mode command `chainloader' as module chain.mod, which
46966 depends on normal.mod and _chain.mod.
46968 * conf/i386-pc.rmk (pkgdata_MODULES): Add `chain.mod'.
46969 (chain_mod_SOURCES, chain_mod_CFLAGS): Variables added.
46970 * include/grub/i386/pc/loader.h (grub_rescue_cmd_chainloader):
46972 * loader/i386/pc/chainloader.c (grub_rescue_cmd_chainloader): All
46973 but arguments parsing moved to ...
46974 (grub_chainloader_cmd): ... here. New function.
46975 * include/grub/i386/pc/chainloader.h: New file.
46976 * loader/i386/pc/chainloader_normal.c: Likewise.
46978 2004-09-11 Marco Gerards <metgerards@student.han.nl>
46980 * conf/i386-pc.rmk (kernel_img_SOURCES): Added kern/fshelp.c.
46981 (grub_mkimage_LDFLAGS): Likewise.
46982 (grub_emu_SOURCES): Likewise.
46983 (kernel_img_HEADERS): Added fshelp.h.
46984 * fs/ext2.c: Include <grub/fshelp.h>.
46985 (FILETYPE_REG): New macro.
46986 (FILETYPE_INO_REG): Likewise.
46987 (grub_ext_sblock): Renamed to `grub_ext2_sblock'.
46989 (ext2_block_group): Renamed to `grub_ext2_block_group'. Changed
46991 (grub_fshelp_node): New struct.
46992 (grub_ext2_data): Added member `diropen'. Changed member `inode'
46994 (grub_ext2_get_file_block): Removed function.
46995 (grub_ext2_read_block): New function.
46996 (grub_ext2_read_file): Replaced parameter `data' by `node'.
46997 This function was written.
46998 (grub_ext2_mount): Read the root inode. Create a diropen struct.
46999 (grub_ext2_find_file): Removed function.
47000 (grub_ext2_read_symlink): New function.
47001 (grub_ext2_iterate_dir): Likewise.
47002 (grub_ext2_open): Rewritten.
47003 (grub_ext2_dir): Rewritten.
47004 * include/grub/fshelp.h: New file.
47005 * fs/fshelp.c: Likewise.
47007 2004-09-10 Yoshinori K. Okuji <okuji@enbug.org>
47009 * normal/menu.c: Include grub/loader.h and grub/machine/time.h.
47010 (print_message): Add a missing newline.
47011 (run_menu): Added timeout support.
47012 (run_menu_entry): New local function.
47013 (grub_menu_run): Added support for booting.
47015 * kern/loader.c (grub_loader_is_loaded): New function.
47017 * include/grub/powerpc/ieee1275/time.h: Include grub/symbol.h.
47018 (grub_get_rtc): Exported.
47020 * include/grub/i386/pc/time.h: Include grub/symbol.h.
47021 (grub_get_rtc): Exported.
47023 * include/grub/normal.h (struct grub_command_list): Remove
47024 constant from the member `command'.
47026 * include/grub/loader.h (grub_loader_is_loaded): Declared.
47028 * include/grub/err.h (GRUB_ERR_INVALID_COMMAND): New constant.
47030 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/time.h.
47032 2004-08-28 Marco Gerards <metgerards@student.han.nl>
47034 Add support for the JFS filesystem.
47036 * fs/jfs.c: New file.
47037 * include/grub/fs.h (grub_jfs_init): New prototype.
47038 (grub_jfs_fini): New prototype.
47039 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/jfs.c.
47040 (grub_emu_SOURCES): Likewise.
47041 (pkgdata_MODULES): Add jfs.mod.
47042 (jfs_mod_SOURCES): New variable.
47043 (jfs_mod_CFLAGS): Likewise.
47044 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs.jfs.c.
47045 (grubof_SOURCES): Likewise.
47046 * util/grub-emu.c (main): Initialize and deinitialize JFS support.
47048 * fs/fat.c (grub_fat_find_dir): Convert the filename little
47049 endian to the host endian.
47050 (grub_fat_utf16_to_utf8): Move function from there...
47051 * kern/misc.c (grub_utf16_to_utf8): ...to here. Do not convert
47052 the endianness of the source string anymore.
47053 * include/grub/misc.h (grub_utf16_to_utf8): New prototype.
47055 2004-08-24 Marco Gerards <metgerards@student.han.nl>
47057 * commands/boot.c (grub_boot_init) [GRUB_UTIL]: Make conditional.
47058 (grub_boot_fini) [GRUB_UTIL]: Likewise.
47059 (GRUB_MOD_INIT) [!GRUB_UTIL]: Likewise.
47060 (GRUB_MOD_FINI) [!GRUB_UTIL]: Likewise.
47062 * fs/hfs.c (grub_hfs_find_node): Add a prototype for `node_found'.
47063 (grub_hfs_iterate_dir): Make the function static. Add prototypes
47064 for `node_found' and `it_dir'.
47065 (grub_hfs_dir): Add prototype for `dir_hook'.
47067 * fs/minix.c (grub_minix_get_file_block): Add prototype for
47068 `grub_get_indir'. Rename `indir' in two blocks to `indir16'
47069 and `indir32' to silence a gcc warning.
47071 * include/grub/fs.h (grub_hfs_init): New prototype.
47072 (grub_hfs_fini): Likewise.
47075 2004-08-21 Yoshinori K. Okuji <okuji@enbug.org>
47077 Each disk device has its own id now. This is useful to make use
47078 of multiple disk devices.
47080 * include/grub/disk.h (grub_disk_dev_id): New enum.
47081 (GRUB_DISK_DEVICE_BIOSDISK_ID): New constant.
47082 (GRUB_DISK_DEVICE_OFDISK_ID): Likewise.
47084 * disk/i386/pc/biosdisk.c (grub_biosdisk_dev): Specify
47085 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47087 * disk/powerpc/ieee1275/ofdisk.c (grub_ofdisk_dev): Specify
47088 GRUB_DISK_DEVICE_OFDISK_ID as an id.
47090 * util/i386/pc/biosdisk.c (grub_util_biosdisk_dev): Specify
47091 GRUB_DISK_DEVICE_BIOSDISK_ID as an id.
47093 * include/grub/disk.h (struct grub_disk_dev): Added a new member
47094 "id" which is used by the cache manager.
47096 * normal/main.c (grub_normal_init_page): Use "GNU GRUB" instead
47099 2004-08-18 Marco Gerards <metgerards@student.han.nl>
47101 * fs/hfs.c: New file.
47102 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/hfs.c.
47103 (grub_emu_SOURCES): Likewise.
47104 (pkgdata_MODULES): Add hfs.mod.
47105 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/hfs.c.
47106 (grubof_SOURCES): Likewise.
47107 * util/grub-emu.c (main): Initialize and deinitialize HFS support.
47109 * include/grub/misc.h (grub_strncasecmp): Add prototype.
47110 * kern/misc.c (grub_strncasecmp): Add function.
47112 2004-08-14 Marco Gerards <metgerards@student.han.nl>
47114 * include/grub/arg.h (GRUB_ARG_OPTION_OPTIONAL): Surround macro
47117 * fs/ext2.c (FILETYPE_UNKNOWN): New macro.
47118 (grub_ext2_dir): In case the directory entry type is unknown, read
47121 2004-08-02 Peter Bruin <pjbruin@dds.nl>
47123 * loader/powerpc/ieee1275/linux.c (grub_linux_init): Pass
47124 grub_load_linux instead of grub_rescue_cmd_linux as second
47125 argument of grub_rescue_register_command.
47127 * Makefile.in (RMKFILES): Add conf/powerpc-ieee1275.rmk.
47129 2004-07-27 Marco Gerards <metgerards@student.han.nl>
47131 * boot/powerpc/ieee1275/ieee1275.c (grub_ieee1275_release): New
47133 * commands/boot.c: Remove the check for `GRUB_UTIL'.
47134 * conf/powerpc-ieee1275.rmk (grubof_SOURCES): Add
47135 `loader/powerpc/ieee1275/linux.c',
47136 `loader/powerpc/ieee1275/linux_normal.c' and `commands/boot.c'.
47137 * include/grub/powerpc/ieee1275/ieee1275.h
47138 (grub_ieee1275_release): New prototype.
47139 * include/grub/powerpc/ieee1275/loader.h: Rewritten.
47140 * kern/powerpc/ieee1275/init.c (grub_machine_init): Initialize
47141 normal, boot, linux and linux_normal.
47142 * loader/powerpc/ieee1275/linux.c: New file.
47143 * loader/powerpc/ieee1275/linux_normal.c: Likewise.
47145 2004-07-12 Marco Gerards <metgerards@student.han.nl>
47147 * normal/arg.c (grub_arg_parse): Correct error handling after
47148 reallocating the argumentlist (check if `argl' is not null instead
47149 of checking if `args' is not null).
47150 * kern/mm.c (grub_realloc): Return the same pointer when using the
47151 same region, instead of returning the header address.
47153 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47155 * disk/powerpc/ieee1275/partition.c (grub_partition_iterate): Skip
47156 one block instead of two when looking for the initial partition.
47157 (grub_partition_probe): Initialize the local variable `p' with 0.
47158 Use base 10 for the grub_strtoul call.
47159 * kern/misc.c (grub_strncpy): Fix off by one bug. Eliminated the
47160 need for one local variable.
47161 (grub_strtoul): Don't add the new value to `num', instead of that
47164 2004-07-11 Marco Gerards <metgerards@student.han.nl>
47166 * conf/i386-pc.rmk (pkgdata_IMAGE): Add pxeboot.img.
47167 (pxeboot_img_SOURCES): New variable.
47168 (pxeboot_img_ASFLAGS): Likewise.
47169 (pxeboot_img_LDFLAGS): Likewise.
47170 * boot/i386/pc/pxeboot.S: New file. Based on pxeloader.S from
47171 GRUB Legacy and boot.S. Adopted for GRUB 2 by lode leroy
47172 <lode_leroy@hotmail.com>.
47174 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47176 * kern/rescue.c (grub_enter_rescue_mode): Don't continue when
47177 there was no input.
47179 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47181 * normal/cmdline.c (grub_set_history): Fix off by one bug. Fixed
47182 the history buffer logic.
47184 2004-06-27 Tomas Ebenlendr <ebik@ucw.cz>
47186 * fs/ext2.c (FILETYPE_INO_MASK, FILETYPE_INO_DIRECTORY)
47187 (FILETYPE_INO_SYMLINK): New macros.
47188 (grub_ext2_find_file): Check if the node is a directory using the
47189 inode stat information instead of using the filetype in the
47190 dirent. Exclude the first character of an absolute symlink.
47191 (grub_ext2_dir): Mask out the filetype part of the mode member of
47194 2004-05-24 Marco Gerards <metgerards@student.han.nl>
47196 Add support for UFS version 1 and 2. Add support for the minix
47197 filesystem version 1 and 2, both the variants with 14 and 30 long
47200 * conf/i386-pc.rmk (grub_setup_SOURCES): Add fs/ufs.c and
47202 (grub_emu_SOURCES): Likewise.
47203 (pkgdata_MODULES): Add ufs.mod and minix.mod.
47204 (ufs_mod_SOURCES): New variable.
47205 (ufs_mod_CFLAGS): Likewise.
47206 (minix_mod_SOURCES): Likewise.
47207 (minix_mod_CFLAGS): Likewise.
47208 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add fs/ufs.c and
47210 (grubof_SOURCES): Likewise.
47211 * fs/ufs.c: New file.
47212 * fs/minix.c: New file.
47213 * include/grub/fs.h (grub_ufs_init): New prototype.
47214 (grub_ufs_fini): Likewise.
47215 (grub_minix_init): Likewise.
47216 (grub_minix_fini): Likewise.
47217 * util/grub-emu.c (main): Initialize and deinitialize UFS and
47220 2004-04-30 Jeroen Dekkers <jeroen@dekkers.cx>
47222 * conf/powerpc-ieee1275.rmk (grub_emu_SOURCES): Add normal/arg.c,
47223 commands/ls.c, commands/terminal.c, commands/boot.c,
47224 commands/cmp.c and commands/cat.c.
47225 (grubof_LDFLAGS): Add -nostdlib -static-libgcc -lgcc.
47227 * kern/powerpc/ieee1275/init.c: Include "grub/env.h" instead of
47230 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47232 All symbols prefixed with PUPA_ and pupa_ are renamed to GRUB_
47233 and grub_, respectively. Because the conversion is trivial and
47234 mechanical, I omit the details here. Please refer to the CVS
47235 if you need more information.
47237 2004-04-04 Yoshinori K. Okuji <okuji@enbug.org>
47239 * include/pupa: Renamed to ...
47240 * include/grub: ... this.
47241 * util/i386/pc/pupa-mkimage.c: Renamed to ...
47242 * util/i386/pc/grub-mkimage.c: ... this.
47243 * util/i386/pc/pupa-setup.c: Renamed to ...
47244 * util/i386/pc/grub-setup.c: ... this.
47245 * util/pupa-emu.c: Renamed to ...
47246 * util/grub-emu.c: ... this.
47248 2004-03-29 Marco Gerards <metgerards@student.han.nl>
47250 Add support for the newworld apple macintosh (PPC). This has been
47251 tested on the powerbook 2000 only. It only adds support for
47252 generic ieee1275 functions, console and disk support. This should
47253 be easy to port to other architectures with support for Open
47256 * configure.ac: Accept the powerpc as host_cpu. In the case of
47257 the powerpc cpu set the host_vendor to ieee1275. Make sure the i386
47258 specific tests are only executed while building for the i386.
47259 Inverse test for crosscompile.
47260 * genmk.rb (Utility): Allow assembler files.
47261 * normal/cmdline.c (pupa_tab_complete): Reset pupa_errno.
47262 * conf/powerpc-ieee1275.rmk: New file.
47263 * disk/powerpc/ieee1275/ofdisk.c: Likewise.
47264 * disk/powerpc/ieee1275/partition.c: Likewise.
47265 * include/pupa/powerpc/ieee1275/biosdisk.h: Likewise.
47266 * include/pupa/powerpc/ieee1275/console.h: Likewise.
47267 * include/pupa/powerpc/ieee1275/partition.h: Likewise.
47268 * include/pupa/powerpc/ieee1275/time.h: Likewise.
47269 * include/pupa/powerpc/ieee1275/util/biosdisk.h: Likewise.
47270 * include/pupa/powerpc/ieee1275/multiboot.h: Likewise.
47271 * include/pupa/powerpc/ieee1275/loader.h
47272 * include/pupa/powerpc/setjmp.h: Likewise.
47273 * include/pupa/powerpc/types.h: Likewise.
47274 * kern/powerpc/ieee1275/init.c: Likewise.
47275 * kern/powerpc/ieee1275/openfw.c: Likewise.
47276 * term/powerpc/ieee1275/ofconsole.c: Likewise.
47278 These files were written by Johan Rydberg
47279 (jrydberg@night.trouble.net) and I only modified them slightly.
47281 * boot/powerpc/ieee1275/cmain.c: New file.
47282 * boot/powerpc/ieee1275/crt0.S: Likewise.
47283 * boot/powerpc/ieee1275/ieee1275.c: Likewise.
47284 * include/pupa/powerpc/ieee1275/ieee1275.h: Likewise.
47286 2004-03-14 Jeroen Dekkers <jeroen@dekkers.cx>
47288 * Makefile.in: Update copyright.
47289 * genmodsrc.sh: Likewise.
47290 * gensymlist.sh: Likewise.
47291 * term/i386/pc/vga.c: Indent correctly.
47293 * util/i386/pc/pupa-mkimage.c (usage): Use PACKAGE_BUGREPORT as
47294 bugreporting address.
47295 * util/i386/pc/pupa-setup.c (usage): Likewise,
47296 (main): Call pupa_ext2_init and pupa_ext2_fini.
47298 * fs/fat.c (log2): Renamed to ...
47299 (fat_log2): ... this.
47300 All callers changed.
47301 * kern/misc.c (memcpy): Alias to pupa_memmove.
47302 * loader/i386/pc/multiboot.c (pupa_rescue_cmd_multiboot): Fix
47304 * util/console.c (pupa_ncurses_fini): Return 0.
47306 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open)[__linux__]:
47307 Move fail label here.
47308 [__GNU__]: Don't warn when using stat.
47309 (open_device)[!__linux__]: Check if FD < 0 instead of !FD.
47310 (pupa_util_biosdisk_get_pupa_dev)[__GNU__]: Change type of N to
47311 long int. Use strtol instead of strtoul.
47313 2004-03-14 Marco Gerards <metgerards@student.han.nl>
47315 * commands/boot.c: New file.
47316 * commands/cat.c: Likewise.
47317 * commands/cmp.c: Likewise.
47318 * commands/ls.c: Likewise.
47319 * commands/terminal.c: Likewise.
47320 * normal/command.c: Include <pupa/env.h> and <pupa/dl.h>.
47321 (pupa_register_command): Changed interface to match the new
47323 (pupa_command_execute): Changed (almost rewritten) so it uses
47324 pupa_split_command. Added support for setting variables using the
47326 (rescue_command): Changed to work with the new argument parser.
47327 (terminal_command): Moved from here to commands/terminal.c.
47328 (set_command): New function.
47329 (unset_command): New function.
47330 (insmod_command): New function.
47331 (rmmod_command): New function.
47332 (lsmod_command): New function.
47333 (pupa_command_init): Don't initialize the command terminal
47334 anymore. Initialize the commands set, unset, insmod, rmmod and
47336 * conf/i386-pc.rmk (kernel_img_SOURCES): Add kern/env.c.
47337 (kernel_img_HEADERS): Add arg.h and env.h.
47338 (pupa_mkimage_LDFLAGS): Add kern/env.c.
47339 (pupa_emu_SOURCES): Add kern/env.c, commands/ls.c,
47340 commands/terminal.c commands/boot.c commands/cmp.c commands/cat.c,
47342 (pkgdata_MODULES): Add ls.mod, boot.mod, cmp.mod, cat.mod and
47344 (normal_mod_SOURCES): Add normal/arg.c and normal/arg.c.
47345 (boot_mod_SOURCES): New variable.
47346 (terminal_mod_SOURCES): Likewise.
47347 (ls_mod_SOURCES): Likewise.
47348 (cmp_mod_SOURCES): Likewise.
47349 (cat_mod_SOURCES): Likewise.
47351 * normal/arg.c: New file.
47352 * kern/env.c: Likewise.
47353 * include/pupa/arg.h: Likewise.
47354 * include/pupa/env.h: Likewise.
47355 * font/manager.c (font_command): Changed to match argument parsing
47357 (PUPA_MOD_INIT): Likewise.
47358 * hello/hello.c (pupa_cmd_hello): Likewise.
47359 (PUPA_MOD_INIT): Likewise.
47360 * include/pupa/disk.h: Include <pupa/device.h>.
47361 (pupa_print_partinfo): New prototype.
47362 * include/pupa/dl.h (pupa_dl_set_prefix): Prototype removed.
47363 (pupa_dl_get_prefix): Likewise.
47364 * include/pupa/misc.h: Include <pupa/err.h>.
47365 (pupa_isgraph): New prototype.
47366 (pupa_isdigit): Likewise.
47367 (pupa_split_cmdline): Likewise.
47368 * include/pupa/normal.h: Include <pupa/arg.h>.
47369 (pupa_command): Changed the prototype of the member `func' to
47370 match the argument parsing interface. Added member `options'.
47371 (pupa_register_command): Updated to match function.
47372 (pupa_arg_parse): New prototype.
47373 (pupa_hello_init) [PUPA_UTIL]: New prototype.
47374 (pupa_hello_fini) [PUPA_UTIL]: Likewise.
47375 (pupa_ls_init) [PUPA_UTIL]: Likewise.
47376 (pupa_ls_fini) [PUPA_UTIL]: Likewise.
47377 (pupa_cat_init) [PUPA_UTIL]: Likewise.
47378 (pupa_cat_fini) [PUPA_UTIL]: Likewise.
47379 (pupa_boot_init) [PUPA_UTIL]: Likewise.
47380 (pupa_boot_fini) [PUPA_UTIL]: Likewise.
47381 (pupa_cmp_init) [PUPA_UTIL]: Likewise.
47382 (pupa_cmp_fini) [PUPA_UTIL]: Likewise.
47383 (pupa_terminal_init) [PUPA_UTIL]: Likewise.
47384 (pupa_terminal_fini) [PUPA_UTIL]: Likewise.
47385 * kern/disk.c: Include <pupa/file.h>.
47386 (pupa_print_partinfo): New function.
47387 * kern/dl.c: Include <pupa/env.h>.
47388 (pupa_dl_dir): Variable removed.
47389 (pupa_dl_load): Use the environment variable `prefix' instead of
47390 the variable pupa_dl_dir.
47391 (pupa_dl_set_prefix): Function removed.
47392 (pupa_dl_get_prefix): Likewise.
47393 * kern/i386/pc/init.c: Include <pupa/env.h>.
47394 (pupa_machine_init): Use the environment variable `prefix' instead of
47395 using pupa_dl_set_prefix to set the prefix.
47396 * kern/main.c: Include <pupa/env.h>.
47397 (pupa_set_root_dev): Use the environment variable `prefix' instead of
47398 using pupa_dl_get_prefix to get the prefix.
47399 * kern/misc.c: Include <pupa/env.h>.
47400 (pupa_isdigit): New function.
47401 (pupa_isgraph): Likewise.
47402 (pupa_ftoa): Likewise.
47403 (pupa_vsprintf): Added support for printing values of the type
47404 `double'. Make it possible to format variable output when using
47405 formatting like `%1.2%f'.
47406 (pupa_split_cmdline): New function.
47407 * kern/rescue.c: Include <pupa/env.h>.
47408 (next_word): Removed function.
47409 (pupa_rescue_cmd_prefix): Likewise.
47410 (pupa_rescue_cmd_set): New function.
47411 (pupa_rescue_cmd_unset): New function.
47412 (pupa_enter_rescue_mode): Use the `pupa_split_cmdline' function to
47413 split the command line instead of splitting it here. Added
47414 support for setting variables using the syntax `foo=bar'. Don't
47415 initialize the prefix command anymore. Initialized the set and
47417 * normal/cmdline.c: Include <pupa/env.h>.
47418 (pupa_tab_complete): Added prototypes for print_simple_completion,
47419 print_partition_completion, add_completion, iterate_commands,
47420 iterate_dev, iterate_part and iterate_dir. Moved code to print
47421 partition information from here to kern/disk.c.
47422 (pupa_cmdline_run): Don't check if the function exists anymore.
47423 * normal/main.c: Include <pupa/env.h>.
47424 (pupa_rescue_cmd_normal): Use the environment variable `prefix'
47425 instead of using pupa_dl_get_prefix to get the prefix.
47426 * term/i386/pc/vga.c: Include <pupa/arg.h>.
47427 (check_vga_mem): Cast pointers to `void *' to silence a gcc
47429 (pupa_vga_putchar) [! DEBUG_VGA]: Removed for this case.
47430 (pupa_vga_setcolor): Declare unused variables with `__attribute__
47431 ((unused))' to silence a gcc warning.
47432 (pupa_vga_setcolor): Likewise.
47433 (debug_command): Changed to match argument parsing
47435 * util/pupa-emu.c: Include <pupa/env.h>.
47436 (options): Added 0's for unused fields to silence a gcc warning.
47438 (main): Use the environment variable `prefix' instead of using
47439 pupa_dl_set_prefix to set the prefix. Initialize the commands ls,
47440 boot, cmp, cat and terminal. Finish the commands boot, cmp, cat
47443 * util/i386/pc/getroot.c: Include <pupa/i386/pc/util/biosdisk.h>.
47444 * util/misc.c: Include <malloc.h>.
47445 (pupa_malloc): Rewritten so errors are correctly reported.
47446 (pupa_realloc): Likewise.
47447 (pupa_memalign): Likewise.
47448 (pupa_mm_init_region): Declare unused variables with
47449 `__attribute__ ((unused))' to silence a gcc warning.
47450 * normal/i386/setjmp.S: Remove tab at the end of the file to
47451 silence a gcc warning.
47452 * loader/i386/pc/linux.c (pupa_rescue_cmd_initrd): Declare unused
47453 variables with `__attribute__ ((unused))' to silence a gcc
47455 * loader/i386/pc/multiboot.c (pupa_multiboot_unload): Make the
47456 local variable i unsigned to silence a gcc warning.
47458 * kern/term.c: Include <pupa/misc.h>.
47459 (pupa_more_lines): New variable.
47460 (pupa_more): Likewise.
47461 (pupa_putcode): When the pager is active pause at the end of every
47463 (pupa_set_more): New function.
47464 * include/pupa/term.h (pupa_set_more): New prototype.
47467 2004-03-07 Yoshinori K. Okuji <okuji@enbug.org>
47469 Now this project is GRUB 2 rather than PUPA. The location of
47470 the CVS repository was moved to GRUB's.
47472 * configure.ac: Use bug-grub as the reporting address.
47473 Use GRUB instead of PUPA.
47474 Change the version number to 1.90.
47476 2004-02-24 Yoshinori K. Okuji <okuji@enbug.org>
47478 * genkernsyms.sh: Updated copyright information.
47479 * genmk.rb: Likewise.
47480 * genmodsrc.sh: Likewise.
47481 * gensymlist.sh: Likewise.
47482 * boot/i386/pc/boot.S: Likewise.
47483 * boot/i386/pc/diskboot.S: Likewise.
47484 * disk/i386/pc/biosdisk.c: Likewise.
47485 * disk/i386/pc/partition.c: Likewise.
47486 * font/manager.c: Likewise.
47487 * fs/ext2.c: Likewise.
47488 * fs/fat.c: Likewise.
47489 * include/pupa/boot.h: Likewise.
47490 * include/pupa/device.h: Likewise.
47491 * include/pupa/disk.h: Likewise.
47492 * include/pupa/dl.h: Likewise.
47493 * include/pupa/elf.h: Likewise.
47494 * include/pupa/err.h: Likewise.
47495 * include/pupa/file.h: Likewise.
47496 * include/pupa/font.h: Likewise.
47497 * include/pupa/fs.h: Likewise.
47498 * include/pupa/kernel.h: Likewise.
47499 * include/pupa/loader.h: Likewise.
47500 * include/pupa/misc.h: Likewise.
47501 * include/pupa/mm.h: Likewise.
47502 * include/pupa/net.h: Likewise.
47503 * include/pupa/normal.h: Likewise.
47504 * include/pupa/rescue.h: Likewise.
47505 * include/pupa/setjmp.h: Likewise.
47506 * include/pupa/symbol.h: Likewise.
47507 * include/pupa/term.h: Likewise.
47508 * include/pupa/types.h: Likewise.
47509 * include/pupa/i386/setjmp.h: Likewise.
47510 * include/pupa/i386/types.h: Likewise.
47511 * include/pupa/i386/pc/biosdisk.h: Likewise.
47512 * include/pupa/i386/pc/boot.h: Likewise.
47513 * include/pupa/i386/pc/console.h: Likewise.
47514 * include/pupa/i386/pc/init.h: Likewise.
47515 * include/pupa/i386/pc/kernel.h: Likewise.
47516 * include/pupa/i386/pc/linux.h: Likewise.
47517 * include/pupa/i386/pc/loader.h: Likewise.
47518 * include/pupa/i386/pc/memory.h: Likewise.
47519 * include/pupa/i386/pc/multiboot.h: Likewise.
47520 * include/pupa/i386/pc/partition.h: Likewise.
47521 * include/pupa/i386/pc/time.h: Likewise.
47522 * include/pupa/i386/pc/vga.h: Likewise.
47523 * include/pupa/i386/pc/util/biosdisk.h: Likewise.
47524 * include/pupa/util/getroot.h: Likewise.
47525 * include/pupa/util/misc.h: Likewise.
47526 * include/pupa/util/resolve.h: Likewise.
47527 * kern/device.c: Likewise.
47528 * kern/disk.c: Likewise.
47529 * kern/dl.c: Likewise.
47530 * kern/err.c: Likewise.
47531 * kern/file.c: Likewise.
47532 * kern/fs.c: Likewise.
47533 * kern/loader.c: Likewise.
47534 * kern/main.c: Likewise.
47535 * kern/misc.c: Likewise.
47536 * kern/mm.c: Likewise.
47537 * kern/rescue.c: Likewise.
47538 * kern/term.c: Likewise.
47539 * kern/i386/dl.c: Likewise.
47540 * kern/i386/pc/init.c: Likewise.
47541 * kern/i386/pc/lzo1x.S: Likewise.
47542 * kern/i386/pc/startup.S: Likewise.
47543 * loader/i386/pc/chainloader.c: Likewise.
47544 * loader/i386/pc/linux.c: Likewise.
47545 * loader/i386/pc/multiboot.c: Likewise.
47546 * normal/cmdline.c: Likewise.
47547 * normal/command.c: Likewise.
47548 * normal/main.c: Likewise.
47549 * normal/menu.c: Likewise.
47550 * normal/i386/setjmp.S: Likewise.
47551 * term/i386/pc/console.c: Likewise.
47552 * term/i386/pc/vga.c: Likewise.
47553 * util/console.c: Likewise.
47554 * util/genmoddep.c: Likewise.
47555 * util/misc.c: Likewise.
47556 * util/pupa-emu.c: Likewise.
47557 * util/resolve.c: Likewise.
47558 * util/unifont2pff.rb: Likewise.
47559 * util/i386/pc/biosdisk.c: Likewise.
47560 * util/i386/pc/getroot.c: Likewise.
47561 * util/i386/pc/pupa-mkimage.c: Likewise.
47562 * util/i386/pc/pupa-setup.c: Likewise.
47564 2004-02-15 Jeroen Dekkers <jeroen@dekkers.cx>
47566 * fs/ext2.c (pupa_ext2_read_file): Correct the value of BLOCKEND
47567 when it is EXT2_BLOCK_SIZE (data). New argument READ_HOOK, all
47568 callers changed. Set DATA->DISK->READ_HOOK to READ_HOOK before
47569 reading and reset it after reading.
47570 (pupa_ext2_close): Return PUPA_ERR_NONE.
47572 * include/pupa/i386/pc/linux.h (PUPA_LINUX_INITRD_MAX_ADDRESS):
47574 (struct linux_kernel_header): Add kernel_version and
47576 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Check whether
47577 pupa_file_read succeeds.
47578 (pupa_rescue_cmd_initrd): Implement.
47580 2003-12-03 Marco Gerards <metgerards@student.han.nl>
47582 * fs/ext2.c (pupa_ext2_label): New function.
47583 (pupa_ext2_fs): Added label.
47584 * fs/fat.c (pupa_fat_label): New function.
47585 (pupa_fat_fs): Added label.
47586 * include/pupa/fs.h (struct pupa_fs): Added prototype label.
47588 * kern/misc.c (pupa_strndup): New function.
47589 * include/pupa/misc.h (pupa_strndup): New prototype.
47591 * include/pupa/normal.h: Include <pupa/err.h>.
47592 (pupa_set_history): New prototype.
47593 (pupa_iterate_commands): New prototype.
47594 * normal/cmdline.c: Include <pupa/machine/partition.h>,
47595 <pupa/disk.h>, <pupa/file.h>.
47596 (hist_size): New variable.
47597 (hist_lines): Likewise.
47598 (hist_end): Likewise.
47599 (hist_used): Likewise.
47600 (pupa_set_history): New function.
47601 (pupa_history_get): Likewise.
47602 (pupa_history_add): Likewise.
47603 (pupa_history_replace): Likewise.
47604 (pupa_tab_complete): Likewise.
47605 (pupa_cmdline_run): Added tab completion and history buffer. Tab
47606 completion shows partitionnames while completing partitions, this
47607 feature was suggested by Jeff Bailey.
47608 * normal/command.c (pupa_iterate_commands): New function.
47609 * normal/main.c (PUPA_DEFAULT_HISTORY_SIZE): New macro.
47610 (pupa_normal_init): Initialize history buffer.
47611 (PUPA_MOD_INIT): Likewise.
47612 (pupa_normal_fini): Free the history buffer.
47613 (PUPA_MOD_FINI): Likewise.
47615 * util/console.c (pupa_ncurses_getkey): Accept 127 as backspace
47618 * aclocal.m4 (pupa_I386_CHECK_REGPARM_BUG): New DEFUN.
47619 * configure.ac [i386]: Check for regparam bug.
47620 (NESTED_FUNC_ATTR) [! i386]: Defined.
47622 2003-11-17 Marco Gerards <metgerards@student.han.nl>
47624 * conf/i386-pc.rmk (sbin_UTILITIES): Added pupa-emu.
47625 (pupa_setup_SOURCES): Added util/i386/pc/getroot.c.
47626 (pupa_emu_SOURCES): New variable.
47627 (pupa_emu_LDFLAGS): Likewise.
47628 * include/pupa/fs.h (pupa_ext2_init) [PUPA_UTIL]: New prototype.
47629 (pupa_ext2_fini) [PUPA_UTIL]: Likewise.
47630 * include/pupa/normal.h (pupa_normal_init) [PUPA_UTIL]: Likewise.
47631 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47632 * include/pupa/setjmp.h [PUPA_UTIL]: Include <setjmp.h>.
47633 (pupa_jmp_buf): New typedef.
47634 (pupa_setjmp) [PUPA_UTIL]: New macro.
47635 (pupa_longjmp) [PUPA_UTIL]: Likewise.
47636 * include/pupa/term.h (struct pupa_term): New member `refresh'.
47637 (pupa_refresh): New prototype.
47638 * include/pupa/util/getroot.h: New file.
47639 * kern/misc.c (pupa_vsprintf): Refresh the screen after updating
47641 * kern/rescue.c (pupa_rescue_get_command_line): Likewise.
47642 (pupa_rescue_cmd_cat): Likewise.
47643 (pupa_rescue_cmd_ls): Likewise.
47644 (pupa_rescue_cmd_testload): Likewise.
47645 (pupa_rescue_cmd_lsmod): Likewise.
47646 * normal/cmdline.c (pupa_cmdline_get): Likewise.
47647 * normal/menu.c (run_menu): Likewise.
47648 * kern/term.c (pupa_cls): Likewise.
47649 (pupa_refresh): New function.
47650 * normal/normal.c (pupa_normal_init) [PUPA_UTIL]: New function.
47651 (pupa_normal_fini) [PUPA_UTIL]: Likewise.
47652 * util/console.c: New file.
47654 * util/i386/pc/getroot.c: New file.
47655 * util/i386/pc/pupa-setup.c: Include <pupa/util/getroot.h>.
47656 (pupa_putchar): New function.
47657 (pupa_refresh): Likewise.
47658 (xgetcwd): Function moved to ...
47659 (strip_extra_slashes): Likewise.
47660 (get_prefix): Likewise.
47661 * util/i386/pc/getroot.c: ... here.
47662 (find_root_device): Function moved and renamed to...
47663 * util/i386/pc/getroot.c (pupa_find_root_device): ... here.
47664 Changed all callers.
47665 * util/i386/pc/pupa-setup.c (guess_root_device): Function moved
47667 * util/i386/pc/getroot.c (pupa_guess_root_device): ... here.
47668 Changed all callers.
47669 * util/misc.c (pupa_memalign): New function.
47670 (pupa_mm_init_region): Likewise.
47671 (pupa_register_exported_symbols): Likewise.
47672 (pupa_putchar): Function removed.
47673 * util/pupa-emu.c: New file.
47675 2003-11-16 Jeroen Dekkers <jeroen@dekkers.cx>
47677 * conf/i386-pc.rmk (pkgdata_MODULES): Add _multiboot.mod.
47678 (_multiboot_mod_SOURCES): New variable.
47679 (_multiboot_mod_CFLAGS): Likewise.
47680 * loader/i386/pc/multiboot.c: New file.
47681 * include/pupa/i386/pc/multiboot.h: Likewise.
47682 * kern/i386/pc/startup.S: Include pupa/machine/multiboot.h.
47683 (pupa_multiboot_real_boot): New function.
47684 * include/pupa/i386/pc/loader.h: Include pupa/machine/multiboot.h.
47685 (pupa_multiboot_real_boot): New prototype.
47686 (pupa_rescue_cmd_multiboot): Likewise
47687 (pupa_rescue_cmd_module): Likewise.
47689 * kern/loader.c (pupa_loader_set): Continue when
47690 pupa_loader_unload_func() fails.
47691 (pupa_loader_unset): New function.
47692 * include/pupa/loader.h (pupa_loader_unset): New prototype.
47694 * kern/misc.c (pupa_stpcpy): New function.
47695 * include/pupa/misc.h (pupa_stpcpy): New prototype.
47697 2003-11-12 Marco Gerards <metgerards@student.han.nl>
47699 * disk/i386/pc/biosdisk.c (pupa_biosdisk_open): Correctly check
47700 for available extensions.
47702 * include/pupa/i386/pc/time.h: New file.
47703 * kern/disk.c: Include <pupa/machine/time.h>.
47704 (PUPA_CACHE_TIMEOUT): New macro.
47705 (pupa_last_time): New variable.
47706 (pupa_disk_open): Flush the cache when there was a timeout.
47707 (pupa_disk_close): Reset the timer.
47708 * kern/i386/pc/startup.S (pupa_get_rtc): Renamed from
47710 * util/misc.c: Include <sys/times.h>
47711 (pupa_get_rtc): New function.
47713 2003-11-09 Jeroen Dekkers <jeroen@dekkers.cx>
47715 * fs/ext2.c (struct pupa_ext2_inode): Declare struct datablocks
47717 (pupa_ext2_get_file_block): Use blocks member.
47719 * fs/ext2.c (pupa_ext2_read_file): Only set skipfirst for the
47720 first block. Return -1 instead of pupa_errno on error.
47722 2003-10-27 Marco Gerards <metgerards@student.han.nl>
47724 * README: In the pupa-mkimage example use _chain instead of chain
47725 and ext2 instead of fat.
47726 * TODO: Replace ext2fs with jfs as an example. Add an item for
47727 adding journal playback for ext2fs.
47728 * conf/i386-pc.rmk (pupa_setup_SOURCES): Added fs/ext2.c.
47729 (pkgdata_MODULES): Added ext2.mod.
47730 (ext2_mod_SOURCES): New variable.
47731 (ext2_mod_CFLAGS): Likewise.
47732 * include/pupa/err.h (pupa_err_t): Added PUPA_ERR_SYMLINK_LOOP.
47733 * include/pupa/misc.h (pupa_strncpy): New prototype.
47734 (pupa_strcat): Likewise.
47735 (pupa_strncmp): Likewise.
47736 * kern/misc.c (pupa_strcat): Enable function.
47737 (pupa_strncpy): New function.
47738 (pupa_strncmp): Likewise.
47739 * fs/ext2.c: New file.
47741 * kern/disk.c (pupa_disk_read): Set pupa_errno to PUPA_ERR_NONE
47742 when the read failed before retrying.
47743 * util/i386/pc/biosdisk.c (_LARGEFILE_SOURCE): Removed.
47744 (_FILE_OFFSET_BITS): Likewise.
47745 * configure.ac: Added AC_SYS_LARGEFILE.
47747 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47749 * genmk.rb (PModule#rule): Make sure to get only symbol names
47750 from the output of nm.
47751 Reported by Robert Millan <rmh.grub@aybabtu.com>.
47753 2003-09-25 Yoshinori K. Okuji <okuji@enbug.org>
47755 I forgot to check in these changes for a long time. This adds
47756 incomplete support for VGA console, and this is still very
47757 buggy. Also, a lot of consideration is required for I18N,
47758 UNICODE, and VGA font issues. Therefore, assume that this is
47759 such that "better than nothing".
47761 * font/manager.c: New file.
47762 * include/pupa/font.h: Likewise.
47763 * include/pupa/i386/pc/vga.h: Likewise.
47764 * term/i386/pc/vga.c: Likewise.
47765 * util/unifont2pff.rb: Likewise.
47767 * conf/i386-pc.rmk (kernel_img_HEADERS): Added machine/vga.h.
47768 (pkgdata_MODULES): Added vga.mod and font.mod.
47769 (vga_mod_SOURCES): New variables.
47770 (vga_mod_CFLAGS): Likewise.
47771 (font_mod_SOURCES): Likewise.
47772 (font_mod_CFLAGS): Likewise.
47774 * include/pupa/err.h (PUPA_ERR_BAD_FONT): New constant.
47776 * include/pupa/term.h: Include pupa/err.h.
47777 (struct pupa_term): Added init and fini.
47778 Changed the argument of putchar to pupa_uint32_t.
47780 * include/pupa/i386/pc/console.h: Include pupa/symbol.h.
47781 (pupa_console_real_putchar): New prototype.
47782 (pupa_console_putchar): Removed.
47783 (pupa_console_checkkey): Exported.
47784 (pupa_console_getkey): Likewise.
47786 * kern/misc.c (pupa_vsprintf): Add support for UNICODE
47789 * kern/term.c (pupa_term_set_current): Rewritten.
47790 (pupa_putchar): Likewise.
47791 (pupa_putcode): New function.
47793 * kern/i386/pc/startup.S (pupa_console_putchar): Renamed to ...
47794 (pupa_console_real_putchar): ... this.
47795 (pupa_vga_set_mode): New function.
47796 (pupa_vga_get_font): Likewise.
47798 * normal/command.c: Include pupa/term.h.
47799 (terminal_command): New function.
47800 (pupa_command_init): Register the command "terminal".
47802 * normal/menu.c (DISP_LEFT): Changed to a UNICODE value.
47803 (DISP_UP): Likewise.
47804 (DISP_RIGHT): Likewise.
47805 (DISP_DOWN): Likewise.
47806 (DISP_HLINE): Likewise.
47807 (DISP_VLINE): Likewise.
47808 (DISP_UL): Likewise.
47809 (DISP_UR): Likewise.
47810 (DISP_LL): Likewise.
47811 (DISP_LR): Likewise.
47813 * term/i386/pc/console.c (pupa_console_putchar): New function.
47815 2003-02-08 NIIBE Yutaka <gniibe@m17n.org>
47817 * util/resolve.c (pupa_util_resolve_dependencies): BUG
47818 FIX. Reverse the path_list.
47820 * include/pupa/normal.h: Export pupa_register_command and
47821 pupa_unregister_command.
47823 * hello/hello.c (pupa_cmd_hello): New module.
47824 * conf/i386-pc.rmk: Added hello.mod.
47826 2003-01-31 Yoshinori K. Okuji <okuji@enbug.org>
47828 * kern/i386/pc/lzo1x.S: New file.
47830 * util/i386/pc/pupa-mkimage.c: Include lzo1x.h.
47831 (compress_kernel): New variable.
47832 (generate_image): Heavily modified to support compressing a
47833 large part of the core image.
47835 * util/misc.c (pupa_util_read_image): Fix a file descriptor
47837 (pupa_util_load_image): New function.
47839 * kern/i386/pc/startup.S: Include pupa/machine/kernel.h.
47840 (pupa_compressed_size): New variable.
47841 (codestart): Enable Gate A20 here.
47842 Decompress the compressed part of the core image.
47843 Rearrange the code to put functions and variables which are
47844 required for initialization in the non-compressed part.
47847 * kern/i386/pc/init.c (pupa_machine_init): Don't enable Gate A20
47850 * include/pupa/util/misc.h (pupa_util_write_image): Declared.
47852 * include/pupa/i386/pc/kernel.h
47853 (PUPA_KERNEL_MACHINE_COMPRESSED_SIZE): New macro.
47854 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): Increased by 4.
47855 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
47856 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
47857 (PUPA_KERNEL_MACHINE_RAW_SIZE): New macro.
47859 * conf/i386-pc.rmk (pupa_mkimage_LDFLAGS): New variable.
47861 * genmk.rb (Image#rule): Put LDFLAGS at the end of a line.
47862 (Utility#rule): Likewise.
47864 * configure.ac: Check if LZO is available.
47866 2003-01-20 Yoshinori K. Okuji <okuji@enbug.org>
47868 * include/pupa/normal.h: New file.
47869 * include/pupa/setjmp.h: Likewise.
47870 * include/pupa/i386/setjmp.h: Likewise.
47871 * normal/cmdline.c: Likewise.
47872 * normal/command.c: Likewise.
47873 * normal/main.c: Likewise.
47874 * normal/menu.c: Likewise.
47875 * normal/i386/setjmp.S: Likewise.
47877 * loader/i386/pc/linux.c (pupa_rescue_cmd_linux): Made global.
47878 (pupa_rescue_cmd_initrd): Likewise.
47880 * loader/i386/pc/chainloader.c (pupa_rescue_cmd_chainloader):
47883 * kern/i386/pc/startup.S (translation_table): New variable.
47884 (translate_keycode): New function.
47885 (pupa_console_getkey): Call translate_keycode.
47887 * kern/rescue.c (attempt_normal_mode): New function.
47888 (pupa_enter_rescue_mode): Attempt to execute the normal mode. If
47889 it failed, print a message.
47891 * kern/mm.c (pupa_real_malloc): Print more information when a
47892 free magic is broken.
47893 (pupa_free): If the first free header is not free actually, set
47896 * kern/main.c (pupa_load_normal_mode): Just load the module
47898 (pupa_main): Don't print the message
47899 "Entering into rescue mode..." here.
47901 * include/pupa/i386/pc/loader.h (pupa_rescue_cmd_initrd):
47903 (pupa_rescue_cmd_initrd): Likewise.
47904 (pupa_rescue_cmd_initrd): Likewise.
47906 * include/pupa/symbol.h (FUNCTION): Specify the type.
47907 (VARIABLE): Likewise.
47909 * include/pupa/err.h (pupa_err_t): Added
47910 PUPA_ERR_UNKNOWN_COMMAND.
47912 * include/pupa/dl.h (pupa_dl_set_prefix): Exported.
47913 (pupa_dl_get_prefix): Likewise.
47915 * conf/i386-pc.rmk (pkgdata_MODULES): Added normal.mod.
47916 Added _chain.mod and _linux.mod instead of chain.mod and
47918 (chain_mod_SOURCES): Renamed to ...
47919 (_chain_mod_SOURCES): ... this.
47920 (chain_mod_CFLAGS): Renamed to ...
47921 (_chain_mod_CFLAGS): ... this.
47922 (linux_mod_SOURCES): Renamed to ...
47923 (_linux_mod_SOURCES): ... this.
47924 (linux_mod_CFLAGS): Renamed to ...
47925 (_linux_mod_CFLAGS): ... this.
47926 (normal_mod_SOURCES): New variable.
47927 (normal_mod_CFLAGS): Likewise.
47928 (normal_mod_ASFLAGS): Likewise.
47930 2003-01-18 Yoshinori K. Okuji <okuji@enbug.org>
47932 * kern/rescue.c (pupa_rescue_cmd_rmmod): Call pupa_dl_unload, if
47935 * kern/dl.c (pupa_dl_ref): Refer depending modules
47937 (pupa_dl_unref): Unrefer depending modules recursively.
47938 Don't call pupa_dl_unload implicitly, because PUPA can crash if
47939 a module is unloaded before one depending on that module is
47941 (pupa_dl_unload): Unload depending modules explicitly,
47944 2003-01-17 Yoshinori K. Okuji <okuji@enbug.org>
47946 * include/pupa/i386/pc/linux.h: New file.
47947 * loader/i386/pc/linux.c: Likewise.
47949 * loader/i386/pc/chainloader.c (pupa_chainloader_boot_sector):
47951 (pupa_chainloader_unload): Return PUPA_ERR_NONE.
47952 (pupa_rescue_cmd_chainloader): Read the image to 0x7C00 instead
47953 of PUPA_CHAINLOADER_BOOT_SECTOR.
47955 * kern/i386/pc/startup.S: Include pupa/machine/linux.h.
47956 (pupa_linux_prot_size): New variable.
47957 (pupa_linux_tmp_addr): Likewise.
47958 (pupa_linux_real_addr): Likewise.
47959 (pupa_linux_boot_zimage): New function.
47960 (pupa_linux_boot_bzimage): Likewise.
47962 * kern/i386/pc/init.c (struct mem_region): New structure.
47963 (MAX_REGIONS): New macro.
47964 (mem_regions): New variable.
47965 (num_regions): Likewise.
47966 (pupa_os_area_addr): Likewise.
47967 (pupa_os_area_size): Likewise.
47968 (pupa_lower_mem): Likewise.
47969 (pupa_upper_mem): Likewise.
47970 (add_mem_region): New function.
47971 (compact_mem_regions): Likewise.
47972 (pupa_machine_init): Set PUPA_LOWER_MEM and PUPA_UPPER_MEM to
47973 the size of the conventional memory and that of so-called upper
47974 memory (before the first memory hole).
47975 Instead of adding each found region to free memory, use
47976 add_mem_region and add them after removing overlaps.
47977 Also, add only 1/4 of the upper memory to free memory. The rest
47978 is used for loading OS images. Maybe this is ad hoc, but this
47979 makes it much easier to relocate OS images when booting.
47981 * kern/rescue.c (pupa_rescue_cmd_module): Removed.
47982 (pupa_enter_rescue_mode): Don't register initrd and module.
47984 * kern/mm.c: Include pupa/dl.h.
47986 * kern/main.c: Include pupa/file.h and pupa/device.h.
47988 * kern/loader.c (pupa_loader_load_module_func): Removed.
47989 (pupa_loader_load_module): Likewise.
47991 * kern/dl.c (pupa_dl_load): Use the suffix ``.mod'' instead of
47994 * include/pupa/i386/pc/loader.h (pupa_linux_prot_size): Declared.
47995 (pupa_linux_tmp_addr): Likewise.
47996 (pupa_linux_real_addr): Likewise.
47997 (pupa_linux_boot_zimage): Likewise.
47998 (pupa_linux_boot_bzimage): Likewise.
48000 * include/pupa/i386/pc/init.h (pupa_lower_mem): Declared.
48001 (pupa_upper_mem): Likewise.
48002 (pupa_gate_a20): Don't export, because turning off Gate A20 in a
48003 module is too dangerous.
48005 * include/pupa/loader.h (pupa_os_area_addr): Declared.
48006 (pupa_os_area_size): Likewise.
48007 (pupa_loader_set): Remove the first argument. Loader doesn't
48008 manage modules or initrd any longer.
48009 (pupa_loader_load_module): Removed.
48011 * conf/i386-pc.rmk (pkgdata_MODULES): Added linux.mod.
48012 (linux_mod_SOURCES): New variable.
48013 (linux_mod_CFLAGS): Likewise.
48015 2003-01-07 Yoshinori K. Okuji <okuji@enbug.org>
48017 * util/i386/pc/pupa-setup.c (setup): Convert the endianness of
48018 the length of a blocklist correctly.
48020 * util/i386/pc/biosdisk.c (pupa_util_biosdisk_open) [__linux__]:
48021 Use ioctl only if the OS file is a block device.
48022 (pupa_util_biosdisk_open): Don't use ST.ST_BLOCKS, because it is
48023 not very useful for normal files.
48025 * kern/main.c (pupa_set_root_dev): New function.
48026 (pupa_load_normal_mode): Likewise.
48027 (pupa_main): Call those above.
48029 * include/pupa/types.h (pupa_swap_bytes16): Cast the result to
48032 * include/pupa/kernel.h (pupa_enter_normal_mode): Removed.
48034 2003-01-06 Yoshinori K. Okuji <okuji@enbug.org>
48036 * util/i386/pc/pupa-setup.c: Include pupa/machine/kernel.h.
48037 (setup): Configure the installed partition information and the
48040 * loader/i386/pc/chainloader.c (my_mod): New variable.
48041 (pupa_chainloader_unload): New function.
48042 (pupa_rescue_cmd_chainloader): Refer itself.
48043 (PUPA_MOD_INIT): Save its own module in MY_MOD.
48045 * kern/i386/pc/startup.S (install_partition): Removed.
48046 (version_string): Likewise.
48047 (config_file): Likewise.
48048 (pupa_install_dos_part): New variable.
48049 (pupa_install_bsd_part): Likewise.
48050 (pupa_prefix): Likewise.
48051 (pupa_chainloader_real_boot): Call pupa_dl_unload_all.
48053 * kern/i386/pc/init.c: Include pupa/machine/kernel.h, pupa/dl.h
48055 (make_install_device): New function.
48056 (pupa_machine_init): Set the dl prefix.
48058 * kern/rescue.c: Include pupa/rescue.h and pupa/dl.h.
48059 (buf): Renamed to ...
48060 (linebuf): ... this.
48061 (pupa_rescue_cmd_prefix): New function.
48062 (pupa_rescue_cmd_insmod): Likewise.
48063 (pupa_rescue_cmd_rmmod): Likewise.
48064 (pupa_rescue_cmd_lsmod): Likewise.
48065 (pupa_enter_rescue_mode): Register new commands: prefix, insmod,
48068 * kern/mm.c (pupa_memalign): If failed even after invalidating
48069 disk caches, unload unneeded modules and retry.
48071 * kern/misc.c (pupa_memmove): New function.
48072 (pupa_memcpy): Removed.
48073 (pupa_strcpy): New function.
48074 (pupa_itoa): Made static.
48076 * kern/dl.c (pupa_dl_iterate): New function.
48077 (pupa_dl_ref): Likewise.
48078 (pupa_dl_unref): Likewise.
48079 (pupa_dl_unload): Return if succeeded or not.
48080 (pupa_dl_unload_unneeded): New function.
48081 (pupa_dl_unload_all): Likewise.
48082 (pupa_dl_init): Renamed to ...
48083 (pupa_dl_set_prefix): ... this.
48084 (pupa_dl_get_prefix): New function.
48086 * include/pupa/i386/pc/kernel.h: Include pupa/types.h.
48087 (PUPA_KERNEL_MACHINE_INSTALL_DOS_PART): New macro.
48088 (PUPA_KERNEL_MACHINE_INSTALL_BSD_PART): Likewise.
48089 (PUPA_KERNEL_MACHINE_PREFIX): Likewise.
48090 (pupa_install_dos_part): Declared.
48091 (pupa_install_bsd_part): Likewise.
48092 (pupa_prefix): Likewise.
48093 (pupa_boot_drive): Likewise.
48095 * include/pupa/types.h: Fix a typo.
48097 * include/pupa/misc.h (pupa_memcpy): New macro. Just an alias to
48099 (pupa_memmove): Declared.
48100 (pupa_strcpy): Likewise.
48102 * include/pupa/dl.h (PUPA_MOD_INIT): Change the prototype. Now
48103 pupa_mod_init takes one argument, its own module.
48104 (pupa_dl_unload_unneeded): Declared.
48105 (pupa_dl_unload_all): Likewise.
48106 (pupa_dl_ref): Likewise.
48107 (pupa_dl_unref): Likewise.
48108 (pupa_dl_iterate): Likewise.
48109 (pupa_dl_init): Renamed to ...
48110 (pupa_dl_set_prefix): ... this.
48111 (pupa_dl_get_prefix): Declared.
48113 * fs/fat.c [!PUPA_UTIL] (my_mod): New variable.
48114 (pupa_fat_dir) [!PUPA_UTIL]: Prevent the fat module from being
48116 (pupa_fat_open) [!PUPA_UTIL]: Refer itself if succeeded.
48117 (pupa_fat_close) [!PUPA_UTIL]: Unrefer itself.
48119 * configure.ac (tmp_CFLAGS): Added -Wshadow, -Wpointer-arith,
48120 -Wmissing-prototypes, -Wundef and -Wstrict-prototypes.
48122 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48124 * util/i386/pc/pupa-setup.c (setup): Define the internal
48125 function find_first_partition_start at the top level, because GCC
48126 3.0.x cannot compile internal functions in deeper scopes
48128 (find_root_device): Use lstat instead of stat.
48129 Don't follow symbolic links.
48130 Fix the path-constructing code.
48132 * util/i386/pc/biosdisk.c [__linux__] (BLKFLSBUF): New macro.
48133 (pupa_util_biosdisk_open) [__linux__]: Get the size of a device
48134 by a BLKGETSIZE ioctl first, because block devices don't fill
48135 the member st_mode of the structure stat on Linux.
48136 [__linux__] (linux_find_partition): Use a temporary buffer
48137 REAL_DEV for the working space. Copy it to DEV before returning.
48138 (open_device) [__linux__]: Call ioctl with BLKFLSBUF to make the
48139 buffer cache consistent.
48140 (get_os_disk) [__linux__]: Use the length 5 instead of 4 for
48141 strncmp. The previous value was merely wrong.
48142 (pupa_util_biosdisk_get_pupa_dev): Use stat instead of lstat.
48144 * fs/fat.c (pupa_fat_read_data): Shift 4 instead of 12 when the
48145 FAT size is 12. The previous value was merely wrong.
48147 * kern/main.c (pupa_main): Don't split the starting message from
48150 * kern/term.c (pupa_putchar): Put CR after LF instead of before
48151 LF, because BIOS goes crazy about character attributes in this
48154 2003-01-03 Yoshinori K. Okuji <okuji@enbug.org>
48156 * include/i386/pc/util/biosdisk.h: New file.
48157 * util/i386/pc/biosdisk.c: Likewise.
48158 * util/i386/pc/pupa-setup.c: Likewise.
48160 * Makefile.in (INCLUDE_DISTFILES): Added
48161 include/pupa/i386/pc/util/biosdisk.h.
48162 (UTIL_DISTFILES): Added biosdisk.c and pupa-setup.c under the
48163 directory util/i386/pc.
48164 (install-local): Added a rule for sbin_UTILITIES.
48165 (uninstall): Likewise.
48167 * util/i386/pc/pupa-mkimage.c (usage): Fix a typo in the doc.
48169 * util/misc.c (xrealloc): New function.
48170 (pupa_malloc): Likewise.
48171 (pupa_free): Likewise.
48172 (pupa_realloc): Likewise.
48173 (pupa_stop): Likewise.
48174 (pupa_putchar): Likewise.
48176 * kern/disk.c (pupa_disk_read): Prevent L from underflowing.
48178 * include/pupa/util/misc.h (xrealloc): Declared.
48180 * include/pupa/i386/pc/boot.h (PUPA_BOOT_MACHINE_BPB_START): New
48182 (PUPA_BOOT_MACHINE_BPBEND): Renamed to ...
48183 (PUPA_BOOT_MACHINE_BPB_END): ... this.
48185 * include/pupa/fs.h [PUPA_UTIL] (pupa_fat_init): Declared.
48186 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48188 * fs/fat.c [PUPA_UTIL] (pupa_fat_init): Defined. Maybe a better
48189 way should be implemented.
48190 [PUPA_UTIL] (pupa_fat_fini): Likewise.
48192 * disk/i386/pc/biosdisk.c (pupa_biosdisk_call_hook): Increase
48193 the size of NAME for safety.
48194 (pupa_biosdisk_iterate): Search hard disks to 0x90 instead of
48197 * conf/i386-pc.rmk (sbin_UTILITIES): New variable.
48198 (pupa_setup_SOURCES): Likewise.
48200 * genmk.rb (Utility#rule): Add $(BUILD_CFLAGS) into the rules.
48202 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48204 * kern/i386/pc/startup.S (push_get_mmap_entry): Revert to a
48205 bunch of pushl's from pusha, because this destroys the return
48208 2002-12-28 Yoshinori K. Okuji <okuji@enbug.org>
48210 Use -mrtd and -mregparm=3 to reduce the generated code sizes.
48211 This means that any missing prototypes could be fatal. Also, you
48212 must take care when writing assembly code. See the comments at
48213 the beginning of startup.S, for more details.
48215 * kern/i386/pc/startup.S (pupa_halt): Modified for the new
48216 compilation mechanism.
48217 (pupa_chainloader_real_boot): Likewise.
48218 (pupa_biosdisk_rw_int13_extensions): Likewise.
48219 (pupa_biosdisk_rw_standard): Likewise.
48220 (pupa_biosdisk_check_int13_extensions): Likewise.
48221 (pupa_biosdisk_get_diskinfo_int13_extensions): Likewise.
48222 (pupa_biosdisk_get_diskinfo_standard): Likewise.
48223 (pupa_get_memsize): Likewise.
48224 (pupa_get_mmap_entry): Likewise.
48225 (pupa_console_putchar): Likewise.
48226 (pupa_console_setcursor): Likewise.
48227 (pupa_getrtsecs): Use pushl instead of push.
48229 * kern/i386/pc/init.c (pupa_machine_init): Use the scratch
48230 memory instead of the stack for a mmap entry, because some
48231 BIOSes may ignore the maximum size and overflow.
48233 * conf/i386-pc.rmk (COMMON_CFLAGS): Added -mrtd and -mregparm=3.
48235 * genmk.rb (PModule#rule): Compile automatically generated
48236 sources with module-specific CFLAGS as well as other sources.
48238 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48240 * configure.ac: Check ld.
48241 Replace CFLAGS and CPPFLAGS with BUILD_CFLAGS and BUILD_CPPFLAGS
48242 respectively, before checking endianness and sizes.
48244 * Makefile.in (LD): New variable.
48246 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48248 * Makefile.in (BUILD_CC): CC -> BUILD_CC.
48250 2002-12-27 Yoshinori K. Okuji <okuji@enbug.org>
48252 * Changelog: New file.